Refactored ticks to delay per issue #9810
This commit is contained in:
committed by
colonelpopcorn
parent
689f05c3ca
commit
2d4c3f715f
@@ -74,7 +74,7 @@ namespace OpenRA.Mods.Common.Activities
|
||||
foreach (var t in self.TraitsImplementing<INotifyHarvesterAction>())
|
||||
t.Harvested(self, resource);
|
||||
|
||||
return ActivityUtils.SequenceActivities(new Wait(harvInfo.LoadTicksPerBale), this);
|
||||
return ActivityUtils.SequenceActivities(new Wait(harvInfo.BaleLoadDelay), this);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@ namespace OpenRA.Mods.Common.Activities
|
||||
if (ammoPools == null)
|
||||
return;
|
||||
|
||||
ammoPoolsReloadTimes = ammoPools.ToDictionary(x => x, y => y.Info.ReloadTicks);
|
||||
ammoPoolsReloadTimes = ammoPools.ToDictionary(x => x, y => y.Info.ReloadDelay);
|
||||
}
|
||||
|
||||
public override Activity Tick(Actor self)
|
||||
@@ -66,7 +66,7 @@ namespace OpenRA.Mods.Common.Activities
|
||||
if (sound != null)
|
||||
Game.Sound.Play(sound, self.CenterPosition);
|
||||
|
||||
ammoPoolsReloadTimes[pool] = pool.Info.ReloadTicks;
|
||||
ammoPoolsReloadTimes[pool] = pool.Info.ReloadDelay;
|
||||
}
|
||||
|
||||
return needsReloading ? this : NextActivity;
|
||||
|
||||
Reference in New Issue
Block a user