mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
Merge pull request #5514 from CameronWoof/medical-sprites
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/Initialize()
|
||||
. = ..()
|
||||
update_icon()
|
||||
|
||||
/obj/item/stack/medical/advanced/update_icon()
|
||||
switch(amount)
|
||||
if(1 to 2)
|
||||
icon_state = initial(icon_state)
|
||||
if(3 to 4)
|
||||
icon_state = "[initial(icon_state)]_4"
|
||||
if(5 to 6)
|
||||
icon_state = "[initial(icon_state)]_6"
|
||||
if(7 to 8)
|
||||
icon_state = "[initial(icon_state)]_8"
|
||||
if(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 |
@@ -1033,6 +1033,7 @@
|
||||
#include "code\game\objects\items\stacks\marker_beacons.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_vr.dm"
|
||||
#include "code\game\objects\items\stacks\nanopaste.dm"
|
||||
#include "code\game\objects\items\stacks\rods.dm"
|
||||
#include "code\game\objects\items\stacks\stack.dm"
|
||||
|
||||
Reference in New Issue
Block a user