Skip to content

Commit

Permalink
added Ammo Limit
Browse files Browse the repository at this point in the history
  • Loading branch information
GrafDimenzio committed Oct 23, 2021
1 parent 2baed0d commit 2f952de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Scp056/EventHandlers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ private void ReloadWeapon(Synapse.Api.Events.SynapseEventArguments.PlayerReloadE
if (ev.Player.RoleID == 56)
foreach (var ammo in (AmmoType[])Enum.GetValues(typeof(AmmoType)))
{
ev.Player.AmmoBox[ammo] = 100;
ev.Player.AmmoBox[ammo] = InventorySystem.Configs.InventoryLimits.GetAmmoLimit(null, (ItemType)ammo);
MEC.Timing.CallDelayed(5f, () => ev.Player.AmmoBox[ammo] = 0);
}
}
Expand Down

0 comments on commit 2f952de

Please sign in to comment.