[MIRROR] Builds logic that manages turfs contained inside an area [MDB IGNORE] (#17379)

* Builds logic that manages turfs contained inside an area

* Mirror Conflict

* Modular!

Co-authored-by: LemonInTheDark <58055496+LemonInTheDark@users.noreply.github.com>
Co-authored-by: Funce <funce.973@gmail.com>
Co-authored-by: tastyfish <crazychris32@gmail.com>
This commit is contained in:
SkyratBot
2022-11-16 14:42:22 -05:00
committed by GitHub
co-authored by LemonInTheDark Funce tastyfish
parent bd4e73411d
commit 24eb8217c0
45 changed files with 299 additions and 143 deletions
+4 -3
View File
@@ -1,4 +1,4 @@
/client/proc/jumptoarea(area/A in GLOB.sortedAreas)
/client/proc/jumptoarea(area/A in get_sorted_areas())
set name = "Jump to Area"
set desc = "Area to jump to"
set category = "Admin.Game"
@@ -159,10 +159,11 @@
if(!src.holder)
to_chat(src, "Only administrators may use this command.", confidential = TRUE)
return
if(!length(GLOB.sortedAreas))
var/list/sorted_areas = get_sorted_areas()
if(!length(sorted_areas))
to_chat(src, "No areas found.", confidential = TRUE)
return
var/area/target_area = tgui_input_list(src, "Pick an area", "Send Mob", GLOB.sortedAreas)
var/area/target_area = tgui_input_list(src, "Pick an area", "Send Mob", sorted_areas)
if(isnull(target_area))
return
if(!istype(target_area))