protected virtual void LoseCharges(int count) { for (int i = 0; i < count; i++) { HostShip.LoseCharge(); } }
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(); } } }