From 6e461cfbaf5f461c69f3ff93d60911bb3342a8b7 Mon Sep 17 00:00:00 2001
From: Sirryan2002 <80364400+Sirryan2002@users.noreply.github.com>
Date: Tue, 18 Jan 2022 04:33:35 -0500
Subject: [PATCH] Disallows Alien resin wall/membrane stacking (#17335)
---
code/modules/mob/living/carbon/alien/humanoid/alien_powers.dm | 4 ++++
1 file changed, 4 insertions(+)
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 58bdb3a9ecc..8ed21cd935a 100644
--- a/code/modules/mob/living/carbon/alien/humanoid/alien_powers.dm
+++ b/code/modules/mob/living/carbon/alien/humanoid/alien_powers.dm
@@ -118,6 +118,10 @@ Doesn't work on other aliens/AI.*/
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
+ var/obj/structure/alien/resin/T = locate() in get_turf(src)
+ if(T)
+ to_chat(src, "There is already a resin construction here.")
+ return
adjustPlasma(-55)
for(var/mob/O in viewers(src, null))
O.show_message(text("[src] vomits up a thick purple substance and shapes it!"), 1)