[s] Blocks any doubled wall mount placement (#27016)

* Blocks any doubled wall mount placement

* Fixes direction stuff

* Remove old code
This commit is contained in:
DGamerL
2024-10-07 22:08:11 +02:00
committed by GitHub
parent 19a8edae33
commit a01f41e904
3 changed files with 16 additions and 33 deletions
@@ -22,15 +22,15 @@
/obj/item/mounted/frame/try_build(turf/on_wall, mob/user)
if(!..())
return
return FALSE
var/turf/build_turf = get_turf(user)
if((mount_requirements & MOUNTED_FRAME_SIMFLOOR) && !isfloorturf(build_turf))
to_chat(user, "<span class='warning'>[src] cannot be placed on this spot.</span>")
return
return FALSE
if(mount_requirements & MOUNTED_FRAME_NOSPACE)
var/area/my_area = get_area(build_turf)
if(!istype(my_area) || !my_area.requires_power || isspacearea(my_area))
to_chat(user, "<span class='warning'>[src] cannot be placed in this area.</span>")
return
return FALSE
return TRUE