mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
Resprites Advanced Burn and Trauma Kits
This commit is contained in:
@@ -220,6 +220,7 @@
|
||||
W.heal_damage(heal_brute)
|
||||
playsound(src, pick(apply_sounds), 25)
|
||||
used = 1 //VOREStation Edit
|
||||
update_icon() // VOREStation Edit - Support for stack icons
|
||||
affecting.update_damages()
|
||||
if(used == amount)
|
||||
if(affecting.is_bandaged())
|
||||
@@ -266,6 +267,7 @@
|
||||
use(1)
|
||||
affecting.salve()
|
||||
playsound(src, pick(apply_sounds), 25)
|
||||
update_icon() // VOREStation Edit - Support for stack icons
|
||||
|
||||
/obj/item/stack/medical/splint
|
||||
name = "medical splints"
|
||||
|
||||
21
code/game/objects/items/stacks/medical_vr.dm
Normal file
21
code/game/objects/items/stacks/medical_vr.dm
Normal file
@@ -0,0 +1,21 @@
|
||||
/obj/item/stack/medical/advanced
|
||||
icon = 'icons/obj/stacks_vr.dmi'
|
||||
|
||||
/obj/item/stack/medical/advanced/New()
|
||||
..()
|
||||
update_icon()
|
||||
return
|
||||
|
||||
/obj/item/stack/medical/advanced/update_icon()
|
||||
if(amount <= 2)
|
||||
icon_state = initial(icon_state)
|
||||
else if (amount <= 4)
|
||||
icon_state = "[initial(icon_state)]_4"
|
||||
else if (amount <= 6)
|
||||
icon_state = "[initial(icon_state)]_6"
|
||||
else if (amount <= 8)
|
||||
icon_state = "[initial(icon_state)]_8"
|
||||
else if (amount <= 9)
|
||||
icon_state = "[initial(icon_state)]_9"
|
||||
else
|
||||
icon_state = "[initial(icon_state)]_10"
|
||||
Reference in New Issue
Block a user