From 4c2da8fc28297b2c5935244014fefb1e5a26a91a Mon Sep 17 00:00:00 2001 From: FloFluoro <3611705+FloFluoro@users.noreply.github.com> Date: Tue, 13 Sep 2022 17:42:10 -0400 Subject: [PATCH] Fixes Xenomorphs being able to build resin structures in space (#19028) * Fixes Xenomorphs being able to build resin structures on turfless tiles * powerc my beloathed * When the return is indented! --- .../modules/mob/living/carbon/alien/humanoid/alien_powers.dm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/code/modules/mob/living/carbon/alien/humanoid/alien_powers.dm b/code/modules/mob/living/carbon/alien/humanoid/alien_powers.dm index 6a7e75636e5..2cf9c44acea 100644 --- a/code/modules/mob/living/carbon/alien/humanoid/alien_powers.dm +++ b/code/modules/mob/living/carbon/alien/humanoid/alien_powers.dm @@ -118,10 +118,11 @@ Doesn't work on other aliens/AI.*/ set desc = "Secrete tough malleable resin." set category = "Alien" - if(powerc(55)) + if(powerc(55, TRUE)) var/choice = input("Choose what you wish to shape.","Resin building") as null|anything in list("resin wall","resin membrane","resin nest") //would do it through typesof but then the player choice would have the type path and we don't want the internal workings to be exposed ICly - Urist - if(!choice || !powerc(55)) return + if(!choice || !powerc(55, TRUE)) + return var/obj/structure/alien/resin/T = locate() in get_turf(src) if(T) to_chat(src, "There is already a resin construction here.")