public InsectGlaive( IDataSource dataSource, string name, KinsectBonusType kinsectBonus, int rarity, int attack, int affinity, int defense, int[] sharpnessRanksLevel1, int[] sharpnessRanksLevel5, EldersealLevel elderseal, ElementInfo[] elements, int[] slots) : base( dataSource, name, WeaponType.InsectGlaive, rarity, attack, affinity, defense, sharpnessRanksLevel1, sharpnessRanksLevel5, elderseal, elements, slots ) { KinsectBonus = kinsectBonus; }
public Gunlance( IDataSource dataSource, string name, GunlanceShellingType shellingType, int rarity, int shellingLevel, int attack, int affinity, int defense, int[] sharpnessRanksLevel1, int[] sharpnessRanksLevel5, EldersealLevel elderseal, ElementInfo[] elements, int[] slots) : base( dataSource, name, WeaponType.Gunlance, rarity, attack, affinity, defense, sharpnessRanksLevel1, sharpnessRanksLevel5, elderseal, elements, slots ) { ShellingType = shellingType; ShellingLevel = shellingLevel; }
public SwitchAxe( IDataSource dataSource, string name, SwitchAxePhialType phialType, int rarity, int phialValue, int attack, int affinity, int defense, int[] sharpnessRanksLevel1, int[] sharpnessRanksLevel5, EldersealLevel elderseal, ElementInfo[] elements, int[] slots) : base( dataSource, name, WeaponType.SwitchAxe, rarity, attack, affinity, defense, sharpnessRanksLevel1, sharpnessRanksLevel5, elderseal, elements, slots ) { PhialType = phialType; PhialValue = phialValue; }
public HuntingHorn( IDataSource dataSource, string name, Melody[] melodies, int rarity, int attack, int affinity, int defense, int[] sharpnessRanksLevel1, int[] sharpnessRanksLevel5, EldersealLevel elderseal, ElementInfo[] elements, int[] slots) : base( dataSource, name, WeaponType.HuntingHorn, rarity, attack, affinity, defense, sharpnessRanksLevel1, sharpnessRanksLevel5, elderseal, elements, slots ) { Melodies = melodies ?? new Melody[0]; }
public Weapon( IDataSource dataSource, string name, WeaponType type, int rarity, int attack, int affinity, int defense, int[] sharpnessRanksLevel1, int[] sharpnessRanksLevel5, EldersealLevel elderseal, ElementInfo[] elements, int[] slots ) { DataSource = dataSource; Id = -1; Name = name; Type = type; Rarity = rarity; Attack = attack; Affinity = affinity; Defense = defense; SharpnessRanksLevel1 = NormalizeSharpness(sharpnessRanksLevel1); SharpnessRanksLevel5 = NormalizeSharpness(sharpnessRanksLevel5); Elderseal = elderseal; Elements = elements.OrderBy(x => x.Type).ToArray(); Slots = new SlotInfo(slots); }
private void ExtractAttributes(JObject attributes, out int attack, out int affinity, out int defense, out EldersealLevel elderseal) { attack = (int)attributes["attack"]; affinity = 0; defense = 0; elderseal = EldersealLevel.None; JToken value; if (attributes.TryGetValue("affinity", out value)) { affinity = (int)value; } if (attributes.TryGetValue("defense", out value)) { defense = (int)value; } if (attributes.TryGetValue("elderseal", out value)) { elderseal = ConvertEldersealLevel((string)value); } }