D2k Starport
- OG fly path and Frigate behaviour - BulkProductionQueue - ProductionStarport trait - OG palette widget behavior for Bulk queue - Purchase button for each BulkProduction - Delivery timer for each BulkProduction
This commit is contained in:
@@ -27,6 +27,7 @@ namespace OpenRA.Mods.Common.Activities
|
||||
readonly Mobile mobile;
|
||||
readonly bool assignTargetOnFirstRun;
|
||||
readonly WDist unloadRange;
|
||||
int delayBetweenUnloads = 0;
|
||||
|
||||
Target destination;
|
||||
bool takeOffAfterUnload;
|
||||
@@ -96,6 +97,13 @@ namespace OpenRA.Mods.Common.Activities
|
||||
|
||||
if (cargo.CanUnload())
|
||||
{
|
||||
if (delayBetweenUnloads > 0)
|
||||
{
|
||||
delayBetweenUnloads--;
|
||||
return false;
|
||||
}
|
||||
|
||||
delayBetweenUnloads = cargo.Info.BetweenUnloadDelay;
|
||||
foreach (var inu in notifiers)
|
||||
inu.Unloading(self);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user