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:
mport2004@gmail.com
2011-10-25 13:16:09 +00:00
parent b01ad7199c
commit 76a584a808
3 changed files with 7 additions and 1 deletions

View File

@@ -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)

View File

@@ -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