Skip to content

Commit

Permalink
[MIRROR] Lazy load templates now have a prompt for whether or not to …
Browse files Browse the repository at this point in the history
…send you to the template area upon loading (#2215) (#3093)

* Lazy load templates now have a prompt for whether or not to send you to the template area upon loading (#82902)

## About The Pull Request

Generating a lazy load template map now gives you a choice for whether
or not you want to be ghosted/teleported to the template you are
loading.
## Why It's Good For The Game

This has always annoyed me, especially when testing stuff related to the
nukie base (since it needs to be manually loaded before creating a nukie
team to avoid runtime spam). It might be a minor gripe, but I don't
think it should be forced.
## Changelog
:cl: Rhials
admin: Lazy loading map templates now gives you the option to not
ghost/teleport to the loaded area upon completion.
/:cl:

* Lazy load templates now have a prompt for whether or not to send you to the template area upon loading

---------

Co-authored-by: NovaBot <[email protected]>
Co-authored-by: Rhials <[email protected]>
  • Loading branch information
3 people authored Apr 29, 2024
1 parent 0794643 commit 90235bb
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions code/modules/admin/admin_verbs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -593,6 +593,7 @@ ADMIN_VERB(debug_spell_requirements, R_DEBUG, "Debug Spell Requirements", "View
ADMIN_VERB(load_lazy_template, R_ADMIN, "Load/Jump Lazy Template", "Loads a lazy template and/or jumps to it.", ADMIN_CATEGORY_EVENTS)
var/list/choices = LAZY_TEMPLATE_KEY_LIST_ALL()
var/choice = tgui_input_list(user, "Key?", "Lazy Loader", choices)
var/teleport_to_template = tgui_input_list(user, "Jump to template after loading?", "Where to?", list("Yes", "No"))
if(!choice)
return

Expand All @@ -611,12 +612,13 @@ ADMIN_VERB(load_lazy_template, R_ADMIN, "Load/Jump Lazy Template", "Loads a lazy
to_chat(user, span_boldwarning("Failed to load template!"))
return

if(!isobserver(user.mob))
SSadmin_verbs.dynamic_invoke_verb(user, /datum/admin_verb/admin_ghost)
user.mob.forceMove(reservation.bottom_left_turfs[1])
if(teleport_to_template == "Yes")
if(!isobserver(user.mob))
SSadmin_verbs.dynamic_invoke_verb(user, /datum/admin_verb/admin_ghost)
user.mob.forceMove(reservation.bottom_left_turfs[1])
to_chat(user, span_boldnicegreen("Template loaded, you have been moved to the bottom left of the reservation."))

message_admins("[key_name_admin(user)] has loaded lazy template '[choice]'")
to_chat(user, span_boldnicegreen("Template loaded, you have been moved to the bottom left of the reservation."))

ADMIN_VERB(library_control, R_BAN, "Library Management", "List and manage the Library.", ADMIN_CATEGORY_MAIN)
if(!user.holder.library_manager)
Expand Down

0 comments on commit 90235bb

Please sign in to comment.