public void Add(int amount) { ammo[GetItemAmmoType(ply.GetCurrentItem().id)] += amount; ply.SetAmmo(AmmoType.Dropped5, 1); ply.SetAmmo(AmmoType.Dropped7, 1); ply.SetAmmo(AmmoType.Dropped9, 1); }
public int MaxAmmo(ReferenceHub hub) { return(hub.weaponManager.weapons.First(i => i.inventoryID == hub.GetCurrentItem().id).maxAmmo); }