From fddbbce94e8fb51f2ade9d88cce4deb8e2c62365 Mon Sep 17 00:00:00 2001 From: Ragolution Date: Wed, 13 Mar 2019 22:26:38 -0400 Subject: [PATCH] Update firstaid.dm Amends erroneous icon_states and adds functionality to medkits to pick one of the random striped/color patterns. Hope it doesn't break anything. --- code/game/objects/items/storage/firstaid.dm | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/code/game/objects/items/storage/firstaid.dm b/code/game/objects/items/storage/firstaid.dm index c795726421..5470cb4dda 100644 --- a/code/game/objects/items/storage/firstaid.dm +++ b/code/game/objects/items/storage/firstaid.dm @@ -55,7 +55,7 @@ /obj/item/storage/firstaid/fire name = "burn treatment kit" desc = "A specialized medical kit for when the toxins lab -spontaneously- burns down." - icon_state = "ointment" + icon_state = "burn" item_state = "firstaid-ointment" /obj/item/storage/firstaid/fire/suicide_act(mob/living/carbon/user) @@ -64,7 +64,7 @@ /obj/item/storage/firstaid/fire/Initialize(mapload) . = ..() - icon_state = pick("ointment","firefirstaid") + icon_state = pick("burn","burn2", "burn3", "burn4") /obj/item/storage/firstaid/fire/PopulateContents() if(empty) @@ -79,7 +79,7 @@ /obj/item/storage/firstaid/toxin name = "toxin treatment kit" desc = "Used to treat toxic blood content and radiation poisoning." - icon_state = "antitoxin" + icon_state = "toxin" item_state = "firstaid-toxin" /obj/item/storage/firstaid/toxin/suicide_act(mob/living/carbon/user) @@ -88,7 +88,7 @@ /obj/item/storage/firstaid/toxin/Initialize(mapload) . = ..() - icon_state = pick("antitoxin","antitoxfirstaid","antitoxfirstaid2","antitoxfirstaid3") + icon_state = pick("toxin","toxin2","toxin3","toxin4") /obj/item/storage/firstaid/toxin/PopulateContents() if(empty) @@ -102,7 +102,7 @@ /obj/item/storage/firstaid/radbgone name = "radiation treatment kit" desc = "Used to treat minor toxic blood content and major radiation poisoning." - icon_state = "antitoxin" + icon_state = "toxin" item_state = "firstaid-toxin" /obj/item/storage/firstaid/radbgone/suicide_act(mob/living/carbon/user) @@ -122,13 +122,17 @@ /obj/item/storage/firstaid/o2 name = "oxygen deprivation treatment kit" desc = "A box full of oxygen goodies." - icon_state = "o2" + icon_state = "oxy" item_state = "firstaid-o2" /obj/item/storage/firstaid/o2/suicide_act(mob/living/carbon/user) user.visible_message("[user] begins hitting [user.p_their()] neck with \the [src]! It looks like [user.p_theyre()] trying to commit suicide!") return OXYLOSS +/obj/item/storage/firstaid/o2/Initialize(mapload) + . = ..() + icon_state = pick("oxy","oxy2","oxy3","oxy4") + /obj/item/storage/firstaid/o2/PopulateContents() if(empty) return @@ -148,6 +152,10 @@ user.visible_message("[user] begins beating [user.p_them()]self over the head with \the [src]! It looks like [user.p_theyre()] trying to commit suicide!") return BRUTELOSS +/obj/item/storage/firstaid/brute/Initialize(mapload) + . = ..() + icon_state = pick("brute","brute2","brute3","brute4") + /obj/item/storage/firstaid/brute/PopulateContents() if(empty) return