コード例 #1
0
 public override float getDamage(BasicShipGameObject s, float Mult)
 {
     if (s.TestTag(UnitTag.Building))
     {
         if (s.TestTag(UnitTag.Ring))
         {
             Mult *= PlayerWeapon.GetRingMult();
         }
         else
         {
             Mult *= PlayerWeapon.GetTurretMult();
         }
     }
     else if (s.TestTag(UnitTag.Player))
     {
         Mult *= PlayerWeapon.GetPlayerMult();
     }
     return(base.getDamage(s, Mult));
 }