mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-29 08:08:49 +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)
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
author: spasticVerbalizer
|
||||
|
||||
delete-after: True
|
||||
|
||||
changes:
|
||||
- bugfix: "False walls no longer stackable."
|
||||
Reference in New Issue
Block a user