forked from Elfocrash/L2dotNET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCrystalType.cs
More file actions
41 lines (37 loc) · 1.54 KB
/
Copy pathCrystalType.cs
File metadata and controls
41 lines (37 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
using System.Collections.Generic;
using L2dotNET.DataContracts.Shared.Enums;
namespace L2dotNET.Enums
{
public class CrystalType
{
public static readonly CrystalType None = new CrystalType(CrystalTypeId.None, 0, 0, 0);
public static readonly CrystalType D = new CrystalType(CrystalTypeId.D, 1458, 11, 90);
public static readonly CrystalType C = new CrystalType(CrystalTypeId.C, 1459, 6, 45);
public static readonly CrystalType B = new CrystalType(CrystalTypeId.B, 1460, 11, 67);
public static readonly CrystalType A = new CrystalType(CrystalTypeId.A, 1461, 19, 144);
public static readonly CrystalType S = new CrystalType(CrystalTypeId.S, 1462, 25, 250);
public CrystalTypeId Id { get; set; }
public int CrystalId { get; set; }
public int CrystalEnchantBonusArmor { get; set; }
public int CrystalEnchantBonusWeapon { get; set; }
public CrystalType(CrystalTypeId id, int crystalId, int crystalEnchantBonusArmor, int crystalEnchantBonusWeapon)
{
Id = id;
CrystalId = crystalId;
CrystalEnchantBonusArmor = crystalEnchantBonusArmor;
CrystalEnchantBonusWeapon = crystalEnchantBonusWeapon;
}
public static IEnumerable<CrystalType> Values
{
get
{
yield return None;
yield return D;
yield return C;
yield return B;
yield return A;
yield return S;
}
}
}
}