Converts over the missing TGUI input lists (#23859)

* Converts over the missing TGUI input lists

* last fixes

* num revert
This commit is contained in:
GDN
2024-02-14 15:17:29 -06:00
committed by GitHub
parent 8f9035d1ed
commit 82b863cefd
54 changed files with 167 additions and 168 deletions

View File

@@ -11,18 +11,18 @@
/obj/effect/proc_holder/spell/area_teleport/before_cast(list/targets, mob/user)
..()
selected_area = null // Reset it
var/A
var/area_name
if(!randomise_selection)
A = input("Area to teleport to", "Teleport", A) as null|anything in SSmapping.teleportlocs
area_name = tgui_input_list(user, "Area to teleport to", "Teleport", SSmapping.teleportlocs)
else
A = pick(SSmapping.teleportlocs)
area_name = pick(SSmapping.teleportlocs)
if(!A)
if(!area_name)
smoke_type = SMOKE_NONE
return
var/area/thearea = SSmapping.teleportlocs[A]
var/area/thearea = SSmapping.teleportlocs[area_name]
if(thearea.tele_proof && !istype(thearea, /area/wizard_station))
to_chat(user, "A mysterious force disrupts your arcane spell matrix, and you remain where you are.")