/*
  * [Obsolete]
  * public override void GetWeaponDamage(Item item, Player player, ref int damage)
  * {
  *  if (item.GetGlobalItem<ShapeShifterItem>().morph)
  *  {
  *      damage = (int)(damage * ShapeShifterPlayer.ModPlayer(player).morphDamage + 5E-06f);
  *  }
  * }*/
 public override void GetWeaponCrit(Item item, Player player, ref int crit)
 {
     if (item.GetGlobalItem <ShapeShifterItem>().morph)
     {
         crit = crit + ShapeShifterPlayer.ModPlayer(player).morphCrit;
     }
 }
Пример #2
0
 public override void GetWeaponDamage(Item item, Player player, ref int damage)
 {
     if (item.GetGlobalItem <ShapeShifterItem>(mod).morph)
     {
         damage = (int)(damage * ShapeShifterPlayer.ModPlayer(player).morphDamage + 5E-06f);
     }
 }