Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 52 additions & 4 deletions code/modules/projectiles/boxes_magazines/external/smg.dm
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,19 @@

/obj/item/ammo_box/magazine/wt550m9/update_icon()
..()
icon_state = "46x30mmt-[round(ammo_count(),4)]"
switch(ammo_count())
if(19 to 22)
icon_state = "46x30mmt-20"
if(15 to 18)
icon_state = "46x30mmt-16"
if(11 to 14)
icon_state = "46x30mmt-12"
if(7 to 10)
icon_state = "46x30mmt-8"
if(3 to 6)
icon_state = "46x30mmt-4"
else
icon_state = "46x30mmt-0"

/obj/item/ammo_box/magazine/wt550m9/wtap
name = "\improper WT-550 magazine (Armour Piercing 4.6x30mm)"
Expand All @@ -16,7 +28,19 @@

/obj/item/ammo_box/magazine/wt550m9/wtap/update_icon()
..()
icon_state = "46x30mmtA-[round(ammo_count(),4)]"
switch(ammo_count())
if(19 to 22)
icon_state = "46x30mmtA-20"
if(15 to 18)
icon_state = "46x30mmtA-16"
if(11 to 14)
icon_state = "46x30mmtA-12"
if(7 to 10)
icon_state = "46x30mmtA-8"
if(3 to 6)
icon_state = "46x30mmtA-4"
else
icon_state = "46x30mmtA-0"

/obj/item/ammo_box/magazine/wt550m9/wtic
name = "\improper WT-550 magazine (Incendiary 4.6x30mm)"
Expand All @@ -25,7 +49,19 @@

/obj/item/ammo_box/magazine/wt550m9/wtic/update_icon()
..()
icon_state = "46x30mmtI-[round(ammo_count(),4)]"
switch(ammo_count())
if(19 to 22)
icon_state = "46x30mmtI-20"
if(15 to 18)
icon_state = "46x30mmtI-16"
if(11 to 14)
icon_state = "46x30mmtI-12"
if(7 to 10)
icon_state = "46x30mmtI-8"
if(3 to 6)
icon_state = "46x30mmtI-4"
else
icon_state = "46x30mmtI-0"

/obj/item/ammo_box/magazine/wt550m9/wtr
name = "\improper WT-550 magazine(Rubber Rounds 4.6x30mm)"
Expand All @@ -34,7 +70,19 @@

/obj/item/ammo_box/magazine/wt550m9/wtr/update_icon()
..()
icon_state = "46x30mmtR-[round(ammo_count(),4)]"
switch(ammo_count())
if(19 to 22)
icon_state = "46x30mmtR-20"
if(15 to 18)
icon_state = "46x30mmtR-16"
if(11 to 14)
icon_state = "46x30mmtR-12"
if(7 to 10)
icon_state = "46x30mmtR-8"
if(3 to 6)
icon_state = "46x30mmtR-4"
else
icon_state = "46x30mmtR-0"

/obj/item/ammo_box/magazine/uzim9mm
name = "uzi magazine (9mm)"
Expand Down