12 if (
item.IsMagazine())
18 return ammo.ToString();
77 if (
item.IsMagazine())
99 if (
item.IsMagazine())
118 if (
item.IsMagazine())
140 if (
item.IsMagazine())
143 if (!
ib.m_CanShowQuantity)
146 int max =
item.GetQuantityMax();
149 if (
ib.m_HasQuantityBar)
Super root of all classes in Enforce script.
static void GetItemQuantity(InventoryItem item, out float q_cur, out float q_min, out float q_max)
static float GetItemQuantity(InventoryItem item)
static int HasItemQuantity(notnull EntityAI item)
static float GetItemQuantityMax(InventoryItem item)
static string GetItemQuantityText(EntityAI item, bool showMax=false)
const int QUANTITY_PROGRESS
const int QUANTITY_HIDDEN
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.