mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
Fix grenade launchers reporting incorrect live rounds (#40371)
This commit is contained in:
committed by
yogstation13-bot
parent
ba2980e051
commit
fa83e11b6d
@@ -46,7 +46,7 @@
|
||||
chambered.forceMove(src)
|
||||
|
||||
/obj/item/gun/ballistic/can_shoot()
|
||||
if(!magazine || !magazine.ammo_count(0))
|
||||
if(!magazine || !magazine.ammo_count(FALSE))
|
||||
return 0
|
||||
return 1
|
||||
|
||||
@@ -142,7 +142,7 @@
|
||||
..()
|
||||
to_chat(user, "It has [get_ammo()] round\s remaining.")
|
||||
|
||||
/obj/item/gun/ballistic/proc/get_ammo(countchambered = 1)
|
||||
/obj/item/gun/ballistic/proc/get_ammo(countchambered = TRUE)
|
||||
var/boolets = 0 //mature var names for mature people
|
||||
if (chambered && countchambered)
|
||||
boolets++
|
||||
|
||||
Reference in New Issue
Block a user