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!
This commit is contained in:
FloFluoro
2022-09-13 22:42:10 +01:00
committed by GitHub
parent 4431ddd01a
commit 4c2da8fc28
@@ -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, "<span class='danger'>There is already a resin construction here.</span>")