[MIRROR] Prevents overriding shuttle areas (#6081)
* Prevents overriding shuttle areas * Prevents overriding shuttle areas
This commit is contained in:
committed by
Poojawa
parent
c96253c376
commit
92c868a829
@@ -36,7 +36,10 @@
|
||||
|
||||
/proc/create_area(mob/creator)
|
||||
var/static/blacklisted_turfs = typecacheof(/turf/open/space)
|
||||
var/static/blacklisted_areas = typecacheof(/area/space)
|
||||
var/static/blacklisted_areas = typecacheof(list(
|
||||
/area/space,
|
||||
/area/shuttle,
|
||||
))
|
||||
var/list/turfs = detect_room(get_turf(creator), blacklisted_turfs)
|
||||
if(!turfs)
|
||||
to_chat(creator, "<span class='warning'>The new area must be completely airtight and not a part of a shuttle.</span>")
|
||||
|
||||
Reference in New Issue
Block a user