mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
Resprites Advanced Burn and Trauma Kits
This commit is contained in:
@@ -220,6 +220,7 @@
|
|||||||
W.heal_damage(heal_brute)
|
W.heal_damage(heal_brute)
|
||||||
playsound(src, pick(apply_sounds), 25)
|
playsound(src, pick(apply_sounds), 25)
|
||||||
used = 1 //VOREStation Edit
|
used = 1 //VOREStation Edit
|
||||||
|
update_icon() // VOREStation Edit - Support for stack icons
|
||||||
affecting.update_damages()
|
affecting.update_damages()
|
||||||
if(used == amount)
|
if(used == amount)
|
||||||
if(affecting.is_bandaged())
|
if(affecting.is_bandaged())
|
||||||
@@ -266,6 +267,7 @@
|
|||||||
use(1)
|
use(1)
|
||||||
affecting.salve()
|
affecting.salve()
|
||||||
playsound(src, pick(apply_sounds), 25)
|
playsound(src, pick(apply_sounds), 25)
|
||||||
|
update_icon() // VOREStation Edit - Support for stack icons
|
||||||
|
|
||||||
/obj/item/stack/medical/splint
|
/obj/item/stack/medical/splint
|
||||||
name = "medical splints"
|
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"
|
||||||
BIN
icons/obj/stacks_vr.dmi
Normal file
BIN
icons/obj/stacks_vr.dmi
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 614 B |
@@ -1027,6 +1027,7 @@
|
|||||||
#include "code\game\objects\items\stacks\marker_beacons.dm"
|
#include "code\game\objects\items\stacks\marker_beacons.dm"
|
||||||
#include "code\game\objects\items\stacks\matter_synth.dm"
|
#include "code\game\objects\items\stacks\matter_synth.dm"
|
||||||
#include "code\game\objects\items\stacks\medical.dm"
|
#include "code\game\objects\items\stacks\medical.dm"
|
||||||
|
#include "code\game\objects\items\stacks\medical_vr.dm"
|
||||||
#include "code\game\objects\items\stacks\nanopaste.dm"
|
#include "code\game\objects\items\stacks\nanopaste.dm"
|
||||||
#include "code\game\objects\items\stacks\rods.dm"
|
#include "code\game\objects\items\stacks\rods.dm"
|
||||||
#include "code\game\objects\items\stacks\stack.dm"
|
#include "code\game\objects\items\stacks\stack.dm"
|
||||||
|
|||||||
Reference in New Issue
Block a user