mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-20 12:35:33 +01:00
Added check to prevent false wall stacking
This commit is contained in:
@@ -89,6 +89,12 @@
|
||||
if (!istype(src.loc, /turf/simulated/floor))
|
||||
usr << "<span class='warning'>A floor must be present to build a false wall!</span>"
|
||||
return
|
||||
if (locate(/turf/simulated/wall) in src.loc)
|
||||
usr << "<span class='warning'>There is already a wall present!</span>"
|
||||
return
|
||||
if (locate(/obj/structure/falsewall) in src.loc)
|
||||
usr << "<span class='warning'>There is already a false wall present!</span>"
|
||||
return
|
||||
|
||||
var/obj/item/stack/sheet/S = W
|
||||
switch(S.type)
|
||||
|
||||
Reference in New Issue
Block a user