mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-11 08:06:33 +01:00
Fixes bullet stuff. (#40467)
This commit is contained in:
committed by
vuonojenmustaturska
parent
6bc51275fb
commit
ceebf2de40
@@ -125,12 +125,9 @@
|
||||
|
||||
//Behavior for magazines
|
||||
/obj/item/ammo_box/magazine/proc/ammo_count(countempties = TRUE)
|
||||
if(countempties)
|
||||
return stored_ammo.len
|
||||
|
||||
var/boolets = 0
|
||||
for(var/obj/item/ammo_casing/bullet in stored_ammo)
|
||||
if(bullet && bullet.BB)
|
||||
if(bullet && (bullet.BB || countempties))
|
||||
boolets++
|
||||
return boolets
|
||||
|
||||
|
||||
Reference in New Issue
Block a user