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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user