From a6cb12b84a857bdbeff12463284b1b6659c42dc8 Mon Sep 17 00:00:00 2001 From: CitadelStationBot Date: Mon, 8 May 2017 02:25:20 -0500 Subject: [PATCH] [MIRROR] Plastic golems (#806) * Plastic golems * Update lavaland_ruin_code.dm * Delete lavaland_ruin_code.dm.rej --- .../living/carbon/human/species_types/golems.dm | 16 +++++++++++++++- code/modules/ruins/lavaland_ruin_code.dm | 3 +++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/code/modules/mob/living/carbon/human/species_types/golems.dm b/code/modules/mob/living/carbon/human/species_types/golems.dm index 4d68188686..42608e1e5d 100644 --- a/code/modules/mob/living/carbon/human/species_types/golems.dm +++ b/code/modules/mob/living/carbon/human/species_types/golems.dm @@ -643,4 +643,18 @@ if(P.is_hot()) visible_message("[src] bursts into flames!") - fire_act() \ No newline at end of file + fire_act() +/datum/species/golem/plastic + name = "Plastic" + id = "plastic golem" + prefix = "Plastic" + fixed_mut_color = "fff" + info_text = "As a Plastic Golem, you are capable of ventcrawling, and passing through plastic flaps." + +/datum/species/golem/plastic/on_species_gain(mob/living/carbon/C, datum/species/old_species) + . = ..() + C.ventcrawler = VENTCRAWLER_NUDE + +/datum/species/golem/plastic/on_species_loss(mob/living/carbon/C) + . = ..() + C.ventcrawler = initial(C.ventcrawler) diff --git a/code/modules/ruins/lavaland_ruin_code.dm b/code/modules/ruins/lavaland_ruin_code.dm index 0fcb638565..1007b32fe2 100644 --- a/code/modules/ruins/lavaland_ruin_code.dm +++ b/code/modules/ruins/lavaland_ruin_code.dm @@ -103,6 +103,9 @@ if(istype(O, /obj/item/stack/medical/gauze) || istype(O, /obj/item/stack/sheet/cloth)) species = /datum/species/golem/cloth + + if(istype(O, /obj/item/stack/sheet/plastic)) + species = /datum/species/golem/plastic if(species) if(O.use(10))