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