Skip to content

Commit

Permalink
Fixes ammo checking with helmet if the mag is exactly half full
Browse files Browse the repository at this point in the history
  • Loading branch information
Vicacrov committed Feb 14, 2024
1 parent 660a5f2 commit 4e4b4fa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions code/modules/clothing/head/helmet.dm
Original file line number Diff line number Diff line change
Expand Up @@ -476,10 +476,10 @@ GLOBAL_LIST_INIT(allowed_helmet_items, list(
/obj/item/clothing/head/helmet/marine/attackby(obj/item/attacking_item, mob/user)
if(istype(attacking_item, /obj/item/ammo_magazine) && world.time > helmet_bash_cooldown && user)
var/obj/item/ammo_magazine/M = attacking_item
var/ammo_level = "somewhat"
var/ammo_level = "more than half full."
playsound(user, 'sound/items/trayhit1.ogg', 15, FALSE)
if(M.current_rounds > (M.max_rounds/2))
ammo_level = "more than half full."
if(M.current_rounds == (M.max_rounds/2))
ammo_level = "half full."
if(M.current_rounds < (M.max_rounds/2))
ammo_level = "less than half full."
if(M.current_rounds < (M.max_rounds/6))
Expand Down

0 comments on commit 4e4b4fa

Please sign in to comment.