Exemplo n.º 1
0
 public override void GetWeaponKnockback(Player player, ref float knockback)
 {
     // Adds knockback bonuses
     knockback += SpiritDamagePlayer.ModPlayer(player).spiritKnockback;
 }
Exemplo n.º 2
0
 public override void GetWeaponCrit(Player player, ref int crit)
 {
     // Adds crit bonuses
     crit += SpiritDamagePlayer.ModPlayer(player).spiritCrit;
 }
Exemplo n.º 3
0
 // As a modder, you could also opt to make these overrides also sealed. Up to the modder
 public override void ModifyWeaponDamage(Player player, ref float add, ref float mult, ref float flat)
 {
     add  += SpiritDamagePlayer.ModPlayer(player).spiritDamageAdd;
     mult *= SpiritDamagePlayer.ModPlayer(player).spiritDamageMult;
 }