mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
Ammo boxes and such now have a multiple_sprites var that determines if the update_icon proc should actually update the icon.
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@2426 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -60,6 +60,7 @@
|
||||
list/stored_ammo = list()
|
||||
ammo_type = "/obj/item/ammo_casing"
|
||||
max_ammo = 7
|
||||
multiple_sprites = 0
|
||||
|
||||
|
||||
New()
|
||||
@@ -69,5 +70,6 @@
|
||||
|
||||
|
||||
update_icon()
|
||||
icon_state = text("[initial(icon_state)]-[]", stored_ammo.len)
|
||||
if(multiple_sprites)
|
||||
icon_state = text("[initial(icon_state)]-[]", stored_ammo.len)
|
||||
desc = text("There are [] shell\s left!", stored_ammo.len)
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
icon_state = "357"
|
||||
ammo_type = "/obj/item/ammo_casing/a357"
|
||||
max_ammo = 7
|
||||
multiple_sprites = 1
|
||||
|
||||
|
||||
|
||||
@@ -20,6 +21,7 @@
|
||||
icon_state = "38"
|
||||
ammo_type = "/obj/item/ammo_casing/c38"
|
||||
max_ammo = 7
|
||||
multiple_sprites = 1
|
||||
|
||||
|
||||
|
||||
@@ -28,6 +30,7 @@
|
||||
icon_state = "418"
|
||||
ammo_type = "/obj/item/ammo_casing/a418"
|
||||
max_ammo = 7
|
||||
multiple_sprites = 1
|
||||
|
||||
|
||||
|
||||
@@ -36,6 +39,7 @@
|
||||
icon_state = "666"
|
||||
ammo_type = "/obj/item/ammo_casing/a666"
|
||||
max_ammo = 4
|
||||
multiple_sprites = 1
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user