Replace AmmoPool lookup methods with properties

And gave the more suitable names while at it.
This is more in line with how we do things in
other places.
This commit is contained in:
reaperrr
2019-10-19 17:25:25 +02:00
committed by reaperrr
parent c77aa4c8f9
commit ee00954f2e
9 changed files with 24 additions and 24 deletions

View File

@@ -80,7 +80,7 @@ namespace OpenRA.Mods.Common.Traits
protected virtual void Reload(Actor self, int reloadDelay, int reloadCount, string sound)
{
if (!ammoPool.FullAmmo() && --remainingTicks == 0)
if (!ammoPool.HasFullAmmo && --remainingTicks == 0)
{
remainingTicks = Util.ApplyPercentageModifiers(reloadDelay, modifiers.Select(m => m.GetReloadAmmoModifier()));
if (!string.IsNullOrEmpty(sound))