Files
Aurora.3/code/modules/admin/buildmode/buildmode.dm
Matt Atlas 1da20ad33f Adds the Odyssey gamemode. (#18972)
https://forums.aurorastation.org/topic/20198-mission-briefing-auroras-gamemode-revolution

To-do:

- [x] Finish storyteller verbs.
- [x] Storyteller landmarks.
- [x] Proper storyteller spawning. Right now the gamemode system is
happy with just picking one storyteller and no actors.
- [x] Antagonist whitelists code.
- [x] Adding the Storyteller whitelist.
- [x] Mission map loading code.
- [x] Map in a bunch of missions.
- [ ] Storyteller adminhelps.

---------

Co-authored-by: Matt Atlas <liermattia@gmail.com>
Co-authored-by: DreamySkrell <>
2024-11-26 20:18:43 +00:00

54 lines
1.3 KiB
Plaintext

/datum/build_mode
var/the_default = FALSE
var/name
var/icon_state
var/datum/click_handler/build_mode/host
var/mob/user
/// This variable controls the permissions required to have this build mode added. Mainly used to prevent VV editing from being given to storytellers.
var/permission_requirement
/datum/build_mode/New(var/host)
..()
src.host = host
user = src.host.user
/datum/build_mode/Destroy()
host = null
. = ..()
/datum/build_mode/proc/OnClick(var/atom/A, var/list/parameters)
return
/datum/build_mode/proc/Configurate()
return
/datum/build_mode/proc/Help()
return
/datum/build_mode/proc/Log(message)
log_admin("BUILD MODE - [name] - [key_name(usr)] - [message]")
/datum/build_mode/proc/Warn(message)
to_chat(user, "BUILD MODE - [name] - [message])")
/datum/build_mode/proc/select_subpath(given_path)
var/desired_path = input("Enter full or partial typepath.","Typepath","[given_path]") as text|null
if(!desired_path)
return
var/list/types = typesof(/atom)
var/list/matches = list()
for(var/path in types)
if(findtext("[path]", desired_path))
matches += path
if(!matches.len)
alert("No results found. Sorry.")
return
if(matches.len==1)
return matches[1]
else
return (input("Select an atom type", "Spawn Atom", matches[1]) as null|anything in matches)