public override void GetWeaponCrit(Player player, ref int crit) { // Adds crit bonuses crit = crit + PartyDamagePlayer.ModPlayer(player).partyCrit; }
// As a modder, you could also opt to make the Get overrides also sealed. Up to the modder public override void GetWeaponDamage(Player player, ref int damage) { // Multiplies the damage by our custom damage multiplier damage = (int)(damage * PartyDamagePlayer.ModPlayer(player).partyDamage + 5E-06f); }