mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2025-12-22 16:21:31 +00:00
Air Traffic Control from Polaris. Every TBD to TBD minutes, a radio exchange happens between a ship and Cyberiad Space Control, ranging from system transfer permission to declaring an emergency. Refactored MAP_NAME into /datum/map files. This also allows for built-in map lore (really just the name and system, which is only used for ATC). Secondary commit will adjust all of the lore to match our own instead of Polaris's.
33 lines
956 B
Plaintext
33 lines
956 B
Plaintext
/hook/startup/proc/setup_title_screen()
|
|
var/list/provisional_title_screens = flist("config/title_screens/images/")
|
|
var/list/title_screens = list()
|
|
var/use_rare_screens = prob(1)
|
|
|
|
for(var/S in provisional_title_screens)
|
|
var/list/L = splittext(S,"+")
|
|
if(L.len == 1 && L[1] != "blank.png")
|
|
title_screens += S
|
|
|
|
else if(L.len > 1)
|
|
if(use_rare_screens && lowertext(L[1]) == "rare")
|
|
title_screens += S
|
|
else if(using_map && (lowertext(L[1]) == lowertext(using_map.name)))
|
|
title_screens += S
|
|
|
|
if(!isemptylist(title_screens))
|
|
if(length(title_screens) > 1)
|
|
for(var/S in title_screens)
|
|
var/list/L = splittext(S,".")
|
|
if(L.len != 2 || L[1] != "default")
|
|
continue
|
|
title_screens -= S
|
|
break
|
|
|
|
var/file_path = "config/title_screens/images/[pick(title_screens)]"
|
|
|
|
var/icon/icon = new(fcopy_rsc(file_path))
|
|
|
|
for(var/turf/unsimulated/wall/splashscreen/splash in world)
|
|
splash.icon = icon
|
|
return TRUE
|
|
return FALSE |