protected override void UpdateWeapon(MeleeWeaponPrimitiveBase weapon, HuntingHorn resultWeapon) { base.UpdateWeapon(weapon, resultWeapon); HuntingHornNotesPrimitive notes = huntingHornNotes.Table[weapon.Weapon1Id]; resultWeapon.Songs = FindSongs(notes); }
protected override bool IsValidWeapon(MeleeWeaponPrimitiveBase weapon) { if (sharpnessPackageProcessor.Table.ContainsKey(weapon.SharpnessId) == false) { return(false); } return(true); }
protected override void UpdateWeapon(MeleeWeaponPrimitiveBase weapon, Gunlance resultWeapon) { base.UpdateWeapon(weapon, resultWeapon); GunlanceShellPrimitive gunlanceShell = gunlanceShells.Table[weapon.Weapon1Id]; resultWeapon.Shelling = new GunlanceShell { ShellType = (int)gunlanceShell.ShellType, // Matches type core.GunlanceShellType. ShellLevel = gunlanceShell.ShellLevel + 1 }; }
protected override void UpdateWeapon(MeleeWeaponPrimitiveBase weapon, DualBlades resultWeapon) { base.UpdateWeapon(weapon, resultWeapon); if (weapon.Weapon1Id == 0) { return; } DualBladesSpecialPrimitive dualBladesElementInfo = dualBladesSpecial.Table[weapon.Weapon1Id]; resultWeapon.ElementStatus = dualBladesElementInfo.Element1; resultWeapon.ElementStatusDamage = dualBladesElementInfo.Element1Damage * 10; resultWeapon.SecondaryElementStatus = dualBladesElementInfo.Element2; resultWeapon.SecondaryElementStatusDamage = dualBladesElementInfo.Element2Damage * 10; }
protected override void UpdateWeapon(MeleeWeaponPrimitiveBase weapon, SwitchAxe resultWeapon) { base.UpdateWeapon(weapon, resultWeapon); SwitchAxePhialPrimitive axePhial = axePhials.Table[weapon.Weapon1Id]; int?damage = null; if (axePhial.Damage > 0) { damage = axePhial.Damage * 10; } resultWeapon.Phial = new SwitchAxePhial { Type = (SwitchAxePhialType)axePhial.PhialType, Damage = damage }; }
protected override void UpdateWeapon(MeleeWeaponPrimitiveBase weapon, TResultWeapon resultWeapon) { core.SharpnessInfo maxSharpness = sharpnessPackageProcessor.Table[weapon.SharpnessId]; ushort sharpnessModifier = SharpnessUtils.ToSharpnessModifier(weapon.Handicraft); core.SharpnessInfo minSharpness = SharpnessUtils.ApplySharpnessModifier(sharpnessModifier, maxSharpness); var allSharpness = new List <core.SharpnessInfo>(); core.SharpnessInfo currentSharpness = maxSharpness; while (currentSharpness.Equals(minSharpness) == false) { currentSharpness = SharpnessUtils.ApplySharpnessModifier(10, currentSharpness); allSharpness.Insert(0, currentSharpness); } allSharpness.Add(maxSharpness); resultWeapon.Sharpness = allSharpness.Take(6).ToArray(); }
protected override void UpdateWeapon(MeleeWeaponPrimitiveBase weapon, ChargeBlade resultWeapon) { base.UpdateWeapon(weapon, resultWeapon); resultWeapon.PhialType = (ChargeBladePhialType)weapon.Weapon1Id; }
protected override void UpdateWeapon(MeleeWeaponPrimitiveBase weapon, InsectGlaive resultWeapon) { base.UpdateWeapon(weapon, resultWeapon); resultWeapon.InsectBonus = weapon.Weapon1Id; // Matches type core.KinsectBonus. }