Example #1
0
 protected virtual void LoseCharges(int count)
 {
     for (int i = 0; i < count; i++)
     {
         HostShip.LoseCharge();
     }
 }
Example #2
0
        private void CheckRemoveCharge(GenericShip destroyedShip, bool isFled)
        {
            if (HostShip.State.Charges == 0)
            {
                return;
            }

            if (destroyedShip.Owner.PlayerNo != HostShip.Owner.PlayerNo)
            {
                DistanceInfo distInfo = new DistanceInfo(HostShip, destroyedShip);
                if (distInfo.Range < 4)
                {
                    Messages.ShowInfo(HostShip.PilotInfo.PilotName + " has lost a charge token");
                    HostShip.LoseCharge();
                }
            }
        }