mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-05-17 20:30:46 +01:00
1fcbb216e7
* move ref lists from world new to ref list creation * tg styl * . * next globals * ugh * some more * pain * . * horror * . * . * . * shoe me * ye * . * eh * . * . --------- Co-authored-by: Cameron Lennox <killer65311@gmail.com>
39 lines
1.2 KiB
Plaintext
39 lines
1.2 KiB
Plaintext
/datum/locations
|
|
var/name
|
|
var/desc
|
|
var/list/contents = list()
|
|
var/parent
|
|
|
|
/datum/locations/New(var/creator)
|
|
if(creator)
|
|
parent = creator
|
|
|
|
//Galaxy
|
|
|
|
/datum/locations/milky_way
|
|
name = "Milky Way Galaxy"
|
|
desc = "The galaxy we all live in."
|
|
|
|
/datum/locations/milky_way/New()
|
|
contents.Add(
|
|
new /datum/locations/sol(src),
|
|
new /datum/locations/tau_ceti(src),
|
|
new /datum/locations/nyx(src),
|
|
new /datum/locations/qerrvallis(src),
|
|
new /datum/locations/s_randarr(src),
|
|
new /datum/locations/uueoa_esa(src),
|
|
new /datum/locations/vir(src)
|
|
)
|
|
|
|
/proc/choose_location_datum(client/user)
|
|
var/datum/locations/choice = GLOB.all_locations
|
|
while(length(choice.contents) > 0) //For some reason it wouldn't let me do contents.len even when I defined it as a list.
|
|
var/specific = tgui_alert(user, "The location currently selected is [choice.name]. More specific options exist, would you like to pick a more specific location?", "Choose location", list("Yes", "No"))
|
|
if(specific == "Yes" && length(choice.contents) > 0)
|
|
choice = tgui_input_list(user, "Please choose a location.", "Locations", choice.contents)
|
|
else
|
|
break
|
|
to_chat(user,choice.name)
|
|
to_chat(user,choice.desc)
|
|
return choice
|