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:
N.N
2024-05-02 13:07:34 +02:00
committed by Gustas Kažukauskas
parent fcae6a26d1
commit 18870cbb03
17 changed files with 825 additions and 54 deletions

View File

@@ -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);