mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-26 22:42:26 +01:00
Ports the TG globals controller and converts globals. (#18057)
* SDQL2 update * fix that verb * cl * fix that * toworld * this is pointless * update info * siiiiick.. * vv edit update * fix that * fix editing vars * fix VV * Port the /TG/ globals controller. * part 1 * part 2 * oops * part 3 * Hollow Purple * sadas * bsbsdb * muda na agaki ta * ids 1-15 * 16-31 * 41-75 * bring me back to how things used to be before i lost it all * the strength of mayhem * final touches * cl * protect some vars * update sdql2 to use glob * stuff? * forgot that is not defined there * whoops * observ * but it never gets better * a --------- Co-authored-by: Matt Atlas <liermattia@gmail.com>
This commit is contained in:
@@ -50,7 +50,7 @@
|
||||
return R
|
||||
|
||||
/datum/ghostspawner/revenant/proc/play_ambience(var/mob/living/carbon/human/H)
|
||||
for(var/m in player_list - H)
|
||||
for(var/m in GLOB.player_list - H)
|
||||
var/mob/M = m
|
||||
if(M.ear_deaf)
|
||||
continue
|
||||
@@ -65,7 +65,7 @@
|
||||
if(revenants.kill_count > kills_needed)
|
||||
var/turf/rift_turf
|
||||
var/list/possible_landmarks = list()
|
||||
for(var/thing in landmarks_list)
|
||||
for(var/thing in GLOB.landmarks_list)
|
||||
var/obj/effect/landmark/landmark = thing
|
||||
if(landmark.name == "RevenantRift")
|
||||
possible_landmarks += landmark
|
||||
|
||||
@@ -86,7 +86,7 @@
|
||||
return "This spawner is not enabled."
|
||||
if(respawn_flag && !user.MayRespawn(0,respawn_flag))
|
||||
return "You can not respawn at this time."
|
||||
if(!config.enter_allowed)
|
||||
if(!GLOB.config.enter_allowed)
|
||||
return "There is an administrative lock on entering the game."
|
||||
if(SSticker.mode?.explosion_in_progress)
|
||||
return "The station is currently exploding."
|
||||
@@ -124,7 +124,7 @@
|
||||
return T
|
||||
if(!isnull(landmark_name))
|
||||
var/list/possible_landmarks = list()
|
||||
for(var/obj/effect/landmark/landmark in landmarks_list)
|
||||
for(var/obj/effect/landmark/landmark in GLOB.landmarks_list)
|
||||
if(landmark.name == landmark_name)
|
||||
possible_landmarks += landmark
|
||||
if(length(possible_landmarks))
|
||||
@@ -174,9 +174,9 @@
|
||||
to_chat(user, SPAN_INFO("You are spawning as: ") + name)
|
||||
if(desc)
|
||||
to_chat(user, SPAN_INFO("Role description: ") + desc)
|
||||
universe.OnPlayerLatejoin(user)
|
||||
GLOB.universe.OnPlayerLatejoin(user)
|
||||
if(current_map.use_overmap)
|
||||
var/obj/effect/overmap/visitable/sector = map_sectors["[user.z]"]
|
||||
var/obj/effect/overmap/visitable/sector = GLOB.map_sectors["[user.z]"]
|
||||
if(sector?.invisible_until_ghostrole_spawn)
|
||||
sector.x = sector.start_x
|
||||
sector.y = sector.start_y
|
||||
@@ -210,7 +210,7 @@
|
||||
log_and_message_admins("has enabled the ghostspawner [src.name]")
|
||||
enabled = TRUE
|
||||
if(enable_dmessage)
|
||||
for(var/mob/abstract/observer/O in player_list)
|
||||
for(var/mob/abstract/observer/O in GLOB.player_list)
|
||||
if(O.client && !cant_see(O))
|
||||
if(enable_dmessage == TRUE)
|
||||
to_chat(O, "<span class='deadsay'><b>A ghostspawner for a \"[src.name]\" has been enabled.</b></span>")
|
||||
|
||||
@@ -89,7 +89,7 @@
|
||||
if(!picked_species)
|
||||
picked_species = possible_species[1]
|
||||
|
||||
var/datum/species/S = all_species[picked_species]
|
||||
var/datum/species/S = GLOB.all_species[picked_species]
|
||||
var/assigned_gender = pick(S.default_genders)
|
||||
|
||||
//Get the name / age from them first
|
||||
@@ -97,7 +97,7 @@
|
||||
var/age = tgui_input_number(user, "Enter your character's age.", "Age", 25, 1000, 0)
|
||||
|
||||
//Spawn in the mob
|
||||
var/mob/living/carbon/human/M = new spawn_mob(newplayer_start)
|
||||
var/mob/living/carbon/human/M = new spawn_mob(GLOB.newplayer_start)
|
||||
|
||||
M.change_gender(assigned_gender)
|
||||
|
||||
|
||||
@@ -27,5 +27,5 @@
|
||||
|
||||
/datum/ghostspawner/human/visitor/select_spawnlocation(var/use = TRUE)
|
||||
if(current_map.force_spawnpoint)
|
||||
return pick(force_spawnpoints["Anyone"])
|
||||
return pick(latejoin)
|
||||
return pick(GLOB.force_spawnpoints["Anyone"])
|
||||
return pick(GLOB.latejoin)
|
||||
|
||||
@@ -23,9 +23,9 @@
|
||||
return TRUE
|
||||
|
||||
/datum/ghostspawner/simplemob/maintdrone/cant_spawn()
|
||||
if(!config.allow_drone_spawn)
|
||||
if(!GLOB.config.allow_drone_spawn)
|
||||
return "Spawning as drone is disabled"
|
||||
if(count_drones() >= config.max_maint_drones)
|
||||
if(count_drones() >= GLOB.config.max_maint_drones)
|
||||
return "The maximum number of active drones has been reached"
|
||||
var/has_active_fabricator = FALSE
|
||||
for(var/obj/machinery/drone_fabricator/DF in SSmachinery.machinery)
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
return get_turf(spawnpoint)
|
||||
|
||||
/datum/ghostspawner/simplemob/rat/cant_spawn()
|
||||
if(config.disable_player_rats)
|
||||
if(GLOB.config.disable_player_rats)
|
||||
return "Spawning as Rat is disabled"
|
||||
return ..()
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
to_chat(user, "<span class='warning'>Unable to find any safe, unwelded vents to spawn rats at. The station must be quite a mess! Trying again might work, if you think there's still a safe place. </span>")
|
||||
|
||||
if(S)
|
||||
if(config.uneducated_rats)
|
||||
if(GLOB.config.uneducated_rats)
|
||||
S.universal_understand = 0
|
||||
announce_ghost_joinleave(user, 0, "They are now a [name].")
|
||||
S.ckey = user.ckey
|
||||
|
||||
Reference in New Issue
Block a user