public void AddSubmachinegunAmmo() { if (guns[GunsConstants.SubmachinegunGunType()].AmmunitionLeft == GunsConstants.EmptyMagazine() && guns[GunsConstants.SubmachinegunGunType()].Ammunition == GunsConstants.EmptyMagazine()) { guns[GunsConstants.SubmachinegunGunType()].Ammunition = GunsConstants.SubmachinegunMagazineCapacity(); guns[GunsConstants.SubmachinegunGunType()].AmmunitionLeft = GunsConstants.SubmachineStartAmmunitionLeftQuantity(); } else if (guns[GunsConstants.SubmachinegunGunType()].Ammunition == GunsConstants.EmptyMagazine()) { guns[GunsConstants.SubmachinegunGunType()].Ammunition += GunsConstants.SubmachinegunMagazineCapacity(); guns[GunsConstants.SubmachinegunGunType()].AmmunitionLeft += GunsConstants.SubmachinegunMagazineCapacity(); } else { guns[GunsConstants.SubmachinegunGunType()].AmmunitionLeft += GunsConstants.SubmachineStartAmmunitionLeftQuantity(); } if (guns[GunsConstants.SubmachinegunGunType()].Ammunition > GunsConstants.SubmachinegunMagazineCapacity()) { guns[GunsConstants.SubmachinegunGunType()].Ammunition = GunsConstants.SubmachinegunMagazineCapacity(); } if (guns[GunsConstants.SubmachinegunGunType()].AmmunitionLeft > GunsConstants.SubmachinegunTotalAmmunitionCapacity()) { guns[GunsConstants.SubmachinegunGunType()].AmmunitionLeft = GunsConstants.SubmachinegunTotalAmmunitionCapacity(); } }