Shotgun Ammo Display Tweak (#18719)

* Shotgun Ammo Display Tweak

* fluffy review
This commit is contained in:
Geeves
2024-03-24 16:12:24 +00:00
committed by GitHub
parent 42da15301f
commit 23f74bd39b
3 changed files with 30 additions and 8 deletions
@@ -66,6 +66,15 @@
///Whether the item icon has a cycling animation
var/cycle_anim = TRUE
/obj/item/gun/projectile/shotgun/pump/handle_maptext()
var/ammo = length(loaded)
if(ammo > 9)
maptext_x = 12
else
maptext_x = 16
var/ammo_display = "[ammo]+[chambered?.BB ? "1" : "0"]"
maptext = "<span style=\"font-family: 'Small Fonts'; -dm-text-outline: 1 black; font-size: 7px;\">[ammo_display]</span>"
/obj/item/gun/projectile/shotgun/pump/consume_next_projectile()
if(chambered)
return chambered.BB