Exemplo n.º 1
0
 public override void GetWeaponCrit(Player player, ref int crit)
 {
     // Adds crit bonuses
     crit = crit + PaleDamagePlayer.ModPlayer(player).paleCrit;
 }
Exemplo n.º 2
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  += PaleDamagePlayer.ModPlayer(player).paleDamageAdd;
     mult *= PaleDamagePlayer.ModPlayer(player).paleDamageMult;
 }
Exemplo n.º 3
0
 public override void GetWeaponKnockback(Player player, ref float knockback)
 {
     // Adds knockback bonuses
     knockback = knockback + PaleDamagePlayer.ModPlayer(player).paleKnockback;
 }
Exemplo n.º 4
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 * PaleDamagePlayer.ModPlayer(player).paleDamage + 5E-06f);
 }