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

@@ -37,7 +37,7 @@ namespace OpenRA.Mods.Common.Scripting
if (pool == null)
throw new LuaException("Invalid ammopool name {0} queried on actor {1}.".F(poolName, self));
return pool.GetAmmoCount();
return pool.CurrentAmmoCount;
}
[Desc("Returns the maximum count of ammo the actor can load.")]