Add GrantPrerequisiteChargeDrainPower and DrainPrerequisitePowerOnDamage.

These traits implement the Firestorm defense charge/drain logic.
This commit is contained in:
Paul Chote
2019-08-26 10:04:39 +01:00
committed by reaperrr
parent 1fa90c0474
commit f39b688c39
3 changed files with 280 additions and 1 deletions

View File

@@ -159,7 +159,7 @@ namespace OpenRA.Mods.Common.Traits
bool instancesEnabled;
bool prereqsAvailable = true;
bool oneShotFired;
bool notifiedCharging;
protected bool notifiedCharging;
bool notifiedReady;
public SupportPowerInstance(string key, SupportPowerInfo info, SupportPowerManager manager)