コード例 #1
0
 public override void GetWeaponCrit(Player player, ref int crit)
 {
     // Adds crit bonuses
     crit = crit + PartyDamagePlayer.ModPlayer(player).partyCrit;
 }
コード例 #2
0
 // 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);
 }