mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-11 23:23:55 +01:00
@@ -246,7 +246,7 @@ ADMIN_VERB(stealth, R_STEALTH, "Stealth Mode", "Toggle stealth.", "Admin.Game")
|
||||
var/datum/preferences/D
|
||||
var/client/C = GLOB.directory[warned_ckey]
|
||||
if(C) D = C.prefs
|
||||
else D = preferences_datums[warned_ckey]
|
||||
else D = GLOB.preferences_datums[warned_ckey]
|
||||
|
||||
if(!D)
|
||||
to_chat(src, span_warning("Error: warn(): No such ckey found."))
|
||||
|
||||
@@ -19,8 +19,8 @@
|
||||
//- Identify how hard it is to break into the area and where the weak points are
|
||||
//- Check if the area has too much empty space. If so, make it smaller and replace the rest with maintenance tunnels.
|
||||
|
||||
var/camera_range_display_status = 0
|
||||
var/intercom_range_display_status = 0
|
||||
GLOBAL_VAR_INIT(camera_range_display_status, FALSE)
|
||||
GLOBAL_VAR_INIT(intercom_range_display_status, FALSE)
|
||||
|
||||
GLOBAL_LIST_BOILERPLATE(all_debugging_effects, /obj/effect/debugging)
|
||||
|
||||
@@ -48,17 +48,17 @@ GLOBAL_LIST_BOILERPLATE(all_debugging_effects, /obj/effect/debugging)
|
||||
set category = "Mapping"
|
||||
set name = "Camera Range Display"
|
||||
|
||||
if(camera_range_display_status)
|
||||
camera_range_display_status = 0
|
||||
if(GLOB.camera_range_display_status)
|
||||
GLOB.camera_range_display_status = FALSE
|
||||
else
|
||||
camera_range_display_status = 1
|
||||
GLOB.camera_range_display_status = TRUE
|
||||
|
||||
|
||||
|
||||
for(var/obj/effect/debugging/camera_range/C in GLOB.all_debugging_effects)
|
||||
qdel(C)
|
||||
|
||||
if(camera_range_display_status)
|
||||
if(GLOB.camera_range_display_status)
|
||||
for(var/obj/machinery/camera/C in cameranet.cameras)
|
||||
new/obj/effect/debugging/camera_range(C.loc)
|
||||
feedback_add_details("admin_verb","mCRD") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
||||
@@ -112,15 +112,15 @@ GLOBAL_LIST_BOILERPLATE(all_debugging_effects, /obj/effect/debugging)
|
||||
set category = "Mapping"
|
||||
set name = "Intercom Range Display"
|
||||
|
||||
if(intercom_range_display_status)
|
||||
intercom_range_display_status = 0
|
||||
if(GLOB.intercom_range_display_status)
|
||||
GLOB.intercom_range_display_status = FALSE
|
||||
else
|
||||
intercom_range_display_status = 1
|
||||
GLOB.intercom_range_display_status = TRUE
|
||||
|
||||
for(var/obj/effect/debugging/marker/M in GLOB.all_debugging_effects)
|
||||
qdel(M)
|
||||
|
||||
if(intercom_range_display_status)
|
||||
if(GLOB.intercom_range_display_status)
|
||||
for(var/obj/item/radio/intercom/I in GLOB.machines)
|
||||
for(var/turf/T in orange(7,I))
|
||||
var/obj/effect/debugging/marker/F = new/obj/effect/debugging/marker(T)
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
/datum/asset/simple/preferences
|
||||
var/preview_icons = 'icons/mob/human_races/preview.dmi'
|
||||
assets = list(
|
||||
"preview_protean_animation.gif" = 'icons/mob/human_races/preview_protean_animation.gif',
|
||||
"preview_custom_animation.gif" = 'icons/mob/human_races/preview_custom_animation.gif',
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
var/list/blob_cores = list()
|
||||
GLOBAL_LIST_EMPTY(blob_cores)
|
||||
|
||||
/obj/structure/blob/core
|
||||
name = "blob core"
|
||||
@@ -99,7 +99,7 @@ var/list/blob_cores = list()
|
||||
|
||||
/obj/structure/blob/core/Initialize(mapload, client/new_overmind = null, new_rate = 2, placed = 0)
|
||||
. = ..()
|
||||
blob_cores += src
|
||||
GLOB.blob_cores += src
|
||||
START_PROCESSING(SSobj, src)
|
||||
update_icon() //so it atleast appears
|
||||
point_rate = new_rate
|
||||
@@ -117,7 +117,7 @@ var/list/blob_cores = list()
|
||||
var/turf/T = get_turf(src)
|
||||
new /obj/item/blobcore_chunk(T, overmind.blob_type)
|
||||
|
||||
blob_cores -= src
|
||||
GLOB.blob_cores -= src
|
||||
if(overmind)
|
||||
overmind.blob_core = null
|
||||
qdel(overmind)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
var/list/blob_nodes = list()
|
||||
GLOBAL_LIST_EMPTY(blob_nodes)
|
||||
|
||||
/obj/structure/blob/node
|
||||
name = "blob node"
|
||||
@@ -11,12 +11,12 @@ var/list/blob_nodes = list()
|
||||
|
||||
/obj/structure/blob/node/Initialize(mapload, new_overmind)
|
||||
. = ..()
|
||||
blob_nodes += src
|
||||
GLOB.blob_nodes += src
|
||||
START_PROCESSING(SSobj, src)
|
||||
update_icon()
|
||||
|
||||
/obj/structure/blob/node/Destroy()
|
||||
blob_nodes -= src
|
||||
GLOB.blob_nodes -= src
|
||||
STOP_PROCESSING(SSobj, src)
|
||||
return ..()
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
var/list/overminds = list()
|
||||
GLOBAL_LIST_EMPTY(overminds)
|
||||
|
||||
/mob/observer/blob
|
||||
name = "Blob Overmind"
|
||||
@@ -36,7 +36,7 @@ var/list/overminds = list()
|
||||
if(pre_placed) //we already have a core!
|
||||
placed = 1
|
||||
|
||||
overminds += src
|
||||
GLOB.overminds += src
|
||||
var/new_name = "[initial(name)] ([rand(1, 999)])"
|
||||
name = new_name
|
||||
real_name = new_name
|
||||
@@ -67,7 +67,7 @@ var/list/overminds = list()
|
||||
BM.overmind = null
|
||||
BM.update_icons()
|
||||
|
||||
overminds -= src
|
||||
GLOB.overminds -= src
|
||||
return ..()
|
||||
|
||||
/mob/observer/blob/get_status_tab_items()
|
||||
|
||||
@@ -282,14 +282,14 @@ GLOBAL_LIST_INIT(blacklisted_builds, list(
|
||||
GLOB.tickets.ClientLogin(src)
|
||||
|
||||
//preferences datum - also holds some persistant data for the client (because we may as well keep these datums to a minimum)
|
||||
prefs = preferences_datums[ckey]
|
||||
prefs = GLOB.preferences_datums[ckey]
|
||||
if(prefs)
|
||||
prefs.client = src
|
||||
prefs.load_savefile() // just to make sure we have the latest data
|
||||
prefs.apply_all_client_preferences()
|
||||
else
|
||||
prefs = new /datum/preferences(src)
|
||||
preferences_datums[ckey] = prefs
|
||||
GLOB.preferences_datums[ckey] = prefs
|
||||
prefs.last_ip = address //these are gonna be used for banning
|
||||
prefs.last_id = computer_id //these are gonna be used for banning
|
||||
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
// Not actually used; just forces this into the RSC for TGUI.
|
||||
var/const/preview_icons = 'icons/mob/human_races/preview.dmi'
|
||||
|
||||
/datum/preferences
|
||||
var/equip_preview_mob = EQUIP_PREVIEW_ALL
|
||||
var/animations_toggle = FALSE
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
var/list/preferences_datums = list()
|
||||
GLOBAL_LIST_EMPTY(preferences_datums)
|
||||
|
||||
/datum/preferences
|
||||
/// The path to the general savefile for this datum
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
var/datum/trade_destination/affected_dest
|
||||
|
||||
/datum/event/economic_event/start()
|
||||
affected_dest = pickweight(weighted_randomevent_locations)
|
||||
affected_dest = pickweight(GLOB.weighted_randomevent_locations)
|
||||
if(affected_dest.viable_random_events.len)
|
||||
endWhen = rand(60,300)
|
||||
event_type = pick(affected_dest.viable_random_events)
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
var/author = "Editor Mike Hammers"
|
||||
var/channel = "The Gibson Gazette"
|
||||
|
||||
var/datum/trade_destination/affected_dest = pick(weighted_mundaneevent_locations)
|
||||
var/datum/trade_destination/affected_dest = pick(GLOB.weighted_mundaneevent_locations)
|
||||
var/body = pick(
|
||||
"Tree stuck in tajaran; firefighters baffled.",\
|
||||
"Armadillos want aardvarks removed from dictionary claims 'here first'.",\
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
|
||||
var/list/weighted_randomevent_locations = list()
|
||||
var/list/weighted_mundaneevent_locations = list()
|
||||
GLOBAL_LIST_EMPTY(weighted_randomevent_locations)
|
||||
GLOBAL_LIST_EMPTY(weighted_mundaneevent_locations)
|
||||
|
||||
/datum/trade_destination
|
||||
var/name = ""
|
||||
|
||||
@@ -36,8 +36,8 @@ GLOBAL_VAR_INIT(economy_init, 0)
|
||||
|
||||
for(var/loc_type in subtypesof(/datum/trade_destination))
|
||||
var/datum/trade_destination/D = new loc_type
|
||||
weighted_randomevent_locations[D] = D.viable_random_events.len
|
||||
weighted_mundaneevent_locations[D] = D.mundane_probability
|
||||
GLOB.weighted_randomevent_locations[D] = D.viable_random_events.len
|
||||
GLOB.weighted_mundaneevent_locations[D] = D.mundane_probability
|
||||
|
||||
create_station_account()
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
var/list/_default_mob_emotes = list(
|
||||
GLOBAL_LIST_INIT(default_mob_emotes, list(
|
||||
/decl/emote/visible,
|
||||
/decl/emote/visible/scratch,
|
||||
/decl/emote/visible/drool,
|
||||
@@ -23,4 +23,4 @@ var/list/_default_mob_emotes = list(
|
||||
/decl/emote/audible/choke,
|
||||
/decl/emote/audible/moan,
|
||||
/decl/emote/audible/gnarl,
|
||||
)
|
||||
))
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
var/last_emote_summary
|
||||
|
||||
/mob/proc/get_available_emotes()
|
||||
return global._default_mob_emotes.Copy()
|
||||
return GLOB.default_mob_emotes.Copy()
|
||||
|
||||
/mob/proc/can_emote(var/emote_type)
|
||||
return (stat == CONSCIOUS)
|
||||
|
||||
@@ -68,7 +68,7 @@ GLOBAL_LIST_EMPTY(event_last_fired)
|
||||
possibleEvents[/datum/event/electrical_storm] = 15 * active_with_role[JOB_JANITOR] + 5 * active_with_role[DEPARTMENT_ENGINEERING]
|
||||
possibleEvents[/datum/event/wallrot] = 30 * active_with_role[DEPARTMENT_ENGINEERING] + 50 * active_with_role[JOB_ALT_GARDENER]
|
||||
|
||||
if(!spacevines_spawned)
|
||||
if(!GLOB.spacevines_spawned)
|
||||
possibleEvents[/datum/event/spacevine] = 10 + 5 * active_with_role[DEPARTMENT_ENGINEERING]
|
||||
if(minutes_passed >= 30) // Give engineers time to set up engine
|
||||
possibleEvents[/datum/event/meteor_wave] = 10 * active_with_role[DEPARTMENT_ENGINEERING]
|
||||
@@ -80,7 +80,7 @@ GLOBAL_LIST_EMPTY(event_last_fired)
|
||||
|
||||
possibleEvents[/datum/event/prison_break] = active_with_role[DEPARTMENT_SECURITY] * 50
|
||||
if(active_with_role[DEPARTMENT_SECURITY] > 0)
|
||||
if(!sent_spiders_to_station)
|
||||
if(!GLOB.sent_spiders_to_station)
|
||||
possibleEvents[/datum/event/spider_infestation] = max(active_with_role[DEPARTMENT_SECURITY], 5) + 5
|
||||
possibleEvents[/datum/event/random_antag] = max(active_with_role[DEPARTMENT_SECURITY], 5) + 2.5
|
||||
|
||||
|
||||
@@ -70,13 +70,13 @@
|
||||
/datum/event/meteor_wave/proc/get_meteors()
|
||||
switch(severity)
|
||||
if(EVENT_LEVEL_MAJOR)
|
||||
return meteors_major
|
||||
return GLOB.meteors_major
|
||||
if(EVENT_LEVEL_MODERATE)
|
||||
return meteors_moderate
|
||||
return GLOB.meteors_moderate
|
||||
else
|
||||
return meteors_minor
|
||||
return GLOB.meteors_minor
|
||||
|
||||
/var/list/meteors_minor = list(
|
||||
GLOBAL_LIST_INIT(meteors_minor, list(
|
||||
/obj/effect/meteor/medium = 80,
|
||||
/obj/effect/meteor/dust = 30,
|
||||
/obj/effect/meteor/irradiated = 30,
|
||||
@@ -84,9 +84,9 @@
|
||||
/obj/effect/meteor/flaming = 10,
|
||||
///obj/effect/meteor/golden = 10,
|
||||
///obj/effect/meteor/silver = 10,
|
||||
)
|
||||
))
|
||||
|
||||
/var/list/meteors_moderate = list(
|
||||
GLOBAL_LIST_INIT(meteors_moderate, list(
|
||||
/obj/effect/meteor/medium = 80,
|
||||
/obj/effect/meteor/big = 30,
|
||||
/obj/effect/meteor/dust = 30,
|
||||
@@ -95,9 +95,9 @@
|
||||
///obj/effect/meteor/golden = 10,
|
||||
///obj/effect/meteor/silver = 10,
|
||||
/obj/effect/meteor/emp = 10,
|
||||
)
|
||||
))
|
||||
|
||||
/var/list/meteors_major = list(
|
||||
GLOBAL_LIST_INIT(meteors_major, list(
|
||||
/obj/effect/meteor/medium = 80,
|
||||
/obj/effect/meteor/big = 30,
|
||||
/obj/effect/meteor/dust = 30,
|
||||
@@ -107,7 +107,7 @@
|
||||
///obj/effect/meteor/golden = 10,
|
||||
///obj/effect/meteor/silver = 10,
|
||||
/obj/effect/meteor/tunguska = 1,
|
||||
)
|
||||
))
|
||||
|
||||
// Overmap version
|
||||
/datum/event/meteor_wave/overmap
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
//var/global/account_hack_attempted = 0
|
||||
|
||||
GLOBAL_VAR_INIT(account_hack_attempted, 0)
|
||||
|
||||
/datum/event/money_hacker
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
/var/global/spacevines_spawned = 0
|
||||
GLOBAL_VAR_INIT(spacevines_spawned, 0)
|
||||
|
||||
/datum/event/spacevine
|
||||
announceWhen = 60
|
||||
|
||||
/datum/event/spacevine/start()
|
||||
spacevine_infestation()
|
||||
spacevines_spawned = 1
|
||||
GLOB.spacevines_spawned = 1
|
||||
|
||||
/datum/event/spacevine/announce()
|
||||
level_seven_announcement()
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/var/global/sent_spiders_to_station = 0
|
||||
GLOBAL_VAR_INIT(sent_spiders_to_station, 0)
|
||||
|
||||
/datum/event/spider_infestation
|
||||
announceWhen = 90
|
||||
@@ -8,7 +8,7 @@
|
||||
/datum/event/spider_infestation/setup()
|
||||
announceWhen = rand(announceWhen, announceWhen + 60)
|
||||
spawncount = rand(4 * severity, 6 * severity) //spiderlings only have a 50% chance to grow big and strong
|
||||
sent_spiders_to_station = 0
|
||||
GLOB.sent_spiders_to_station = 0
|
||||
|
||||
/datum/event/spider_infestation/announce()
|
||||
command_announcement.Announce("Unidentified lifesigns detected coming aboard [station_name()]. Secure any exterior access, including ducting and ventilation.", "Lifesign Alert", new_sound = 'sound/AI/aliens.ogg')
|
||||
|
||||
@@ -166,7 +166,7 @@
|
||||
reagents.add_reagent(REAGENT_ID_SHOCKCHEM, 6)
|
||||
bitesize = 6
|
||||
|
||||
var/static/list/worm_meat_spawns = list (
|
||||
GLOBAL_LIST_INIT(worm_meat_spawns, list (
|
||||
/obj/random/junk = 30,
|
||||
/obj/random/trash = 30,
|
||||
/obj/random/maintenance/clean = 15,
|
||||
@@ -180,7 +180,7 @@ var/static/list/worm_meat_spawns = list (
|
||||
/obj/random/handgun = 1,
|
||||
/obj/random/toolbox = 4,
|
||||
/obj/random/drinkbottle = 5
|
||||
)
|
||||
))
|
||||
|
||||
/obj/item/reagent_containers/food/snacks/meat/worm
|
||||
name = "weird meat"
|
||||
@@ -200,7 +200,7 @@ var/static/list/worm_meat_spawns = list (
|
||||
|
||||
/obj/item/reagent_containers/food/snacks/meat/worm/attackby(obj/item/W as obj, mob/user as mob)
|
||||
if(istype(W,/obj/item/material/knife))
|
||||
var/to_spawn = pickweight(worm_meat_spawns)
|
||||
var/to_spawn = pickweight(GLOB.worm_meat_spawns)
|
||||
|
||||
new to_spawn(get_turf(src))
|
||||
|
||||
|
||||
@@ -102,7 +102,7 @@ This allows for events that have their announcement happen after the end itself.
|
||||
|
||||
/datum/event2/event/proc/find_random_areas(list/specific_areas = list(), ignore_occupancy = FALSE)
|
||||
if(!LAZYLEN(specific_areas))
|
||||
specific_areas = global.the_station_areas.Copy()
|
||||
specific_areas = GLOB.the_station_areas.Copy()
|
||||
|
||||
var/list/area/grand_list_of_areas = get_all_existing_areas_of_types(specific_areas)
|
||||
. = list()
|
||||
|
||||
@@ -32,6 +32,7 @@
|
||||
|
||||
var/rest_dir = 0 //To lay down in a specific direction
|
||||
var/list/datum/genetics/side_effect/genetic_side_effects = list() //For any genetic side effects we currently have.
|
||||
var/last_chew = 0
|
||||
|
||||
/mob/living/carbon/human/Initialize(mapload, var/new_species = null)
|
||||
if(!dna)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#define AI_CHECK_WIRELESS 1
|
||||
#define AI_CHECK_RADIO 2
|
||||
|
||||
var/list/ai_verbs_default = list(
|
||||
GLOBAL_LIST_INIT(ai_verbs_default, list(
|
||||
// /mob/living/silicon/ai/proc/ai_recall_shuttle,
|
||||
/mob/living/silicon/ai/proc/ai_emergency_message,
|
||||
/mob/living/silicon/ai/proc/ai_goto_location,
|
||||
@@ -27,7 +27,7 @@ var/list/ai_verbs_default = list(
|
||||
/mob/living/silicon/ai/proc/delete_images,
|
||||
/mob/living/silicon/ai/proc/toggle_multicam_verb,
|
||||
/mob/living/silicon/ai/proc/add_multicam_verb
|
||||
)
|
||||
))
|
||||
|
||||
//Not sure why this is necessary...
|
||||
/proc/AutoUpdateAI(obj/subject)
|
||||
@@ -99,11 +99,11 @@ var/list/ai_verbs_default = list(
|
||||
can_be_antagged = TRUE
|
||||
|
||||
/mob/living/silicon/ai/proc/add_ai_verbs()
|
||||
add_verb(src, ai_verbs_default)
|
||||
add_verb(src, GLOB.ai_verbs_default)
|
||||
add_verb(src, silicon_subsystems)
|
||||
|
||||
/mob/living/silicon/ai/proc/remove_ai_verbs()
|
||||
remove_verb(src, ai_verbs_default)
|
||||
remove_verb(src, GLOB.ai_verbs_default)
|
||||
remove_verb(src, silicon_subsystems)
|
||||
|
||||
/mob/living/silicon/ai/Initialize(mapload, is_decoy, datum/ai_laws/L, obj/item/mmi/B, safety = FALSE)
|
||||
@@ -286,7 +286,7 @@ var/list/ai_verbs_default = list(
|
||||
custom_sprite = 1
|
||||
selected_sprite = new/datum/ai_icon("Custom", "[src.ckey]-ai", "4", "[ckey]-ai-crash", "#FFFFFF", "#FFFFFF", "#FFFFFF")
|
||||
else
|
||||
selected_sprite = default_ai_icon
|
||||
selected_sprite = GLOB.default_ai_icon
|
||||
update_icon()
|
||||
|
||||
/mob/living/silicon/ai/pointed(atom/A as mob|obj|turf in view())
|
||||
@@ -362,7 +362,7 @@ var/list/ai_verbs_default = list(
|
||||
return
|
||||
|
||||
if (!custom_sprite)
|
||||
var/new_sprite = tgui_input_list(src, "Select an icon!", "AI", ai_icons)
|
||||
var/new_sprite = tgui_input_list(src, "Select an icon!", "AI", GLOB.ai_icons)
|
||||
if(new_sprite) selected_sprite = new_sprite
|
||||
update_icon()
|
||||
|
||||
@@ -903,7 +903,7 @@ var/list/ai_verbs_default = list(
|
||||
..()
|
||||
|
||||
/mob/living/silicon/ai/update_icon()
|
||||
if(!selected_sprite) selected_sprite = default_ai_icon
|
||||
if(!selected_sprite) selected_sprite = GLOB.default_ai_icon
|
||||
|
||||
if(stat == DEAD)
|
||||
icon_state = selected_sprite.dead_icon
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
var/datum/ai_icon/default_ai_icon = new/datum/ai_icon/blue()
|
||||
var/list/datum/ai_icon/ai_icons
|
||||
GLOBAL_DATUM_INIT(default_ai_icon, /datum/ai_icon, new/datum/ai_icon/blue())
|
||||
GLOBAL_LIST_INIT_TYPED(ai_icons, /datum/ai_icon, init_subtypes(/datum/ai_icon, ai_icons))
|
||||
|
||||
/datum/ai_icon
|
||||
var/name
|
||||
@@ -19,9 +19,6 @@ var/list/datum/ai_icon/ai_icons
|
||||
src.alive_light = alive_light
|
||||
src.nopower_light = nopower_light
|
||||
src.dead_light = dead_light
|
||||
if(!ai_icons)
|
||||
ai_icons = list()
|
||||
init_subtypes(/datum/ai_icon, ai_icons)
|
||||
..()
|
||||
|
||||
/datum/ai_icon/red
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
var/list/_cat_default_emotes = list(
|
||||
GLOBAL_LIST_INIT(cat_default_emotes, list(
|
||||
/decl/emote/visible,
|
||||
/decl/emote/visible/scratch,
|
||||
/decl/emote/visible/drool,
|
||||
@@ -25,7 +25,7 @@ var/list/_cat_default_emotes = list(
|
||||
/decl/emote/audible/gnarl,
|
||||
/decl/emote/audible/purr,
|
||||
/decl/emote/audible/purrlong
|
||||
)
|
||||
))
|
||||
|
||||
/mob/living/simple_mob/animal/passive/cat
|
||||
name = "cat"
|
||||
@@ -60,7 +60,7 @@ var/list/_cat_default_emotes = list(
|
||||
return ..()
|
||||
|
||||
/mob/living/simple_mob/animal/passive/cat/get_available_emotes()
|
||||
return global._cat_default_emotes.Copy()
|
||||
return GLOB.cat_default_emotes.Copy()
|
||||
|
||||
/mob/living/simple_mob/animal/passive/cat/handle_special()
|
||||
if(!stat && prob(2)) // spooky
|
||||
|
||||
@@ -89,7 +89,7 @@ Field studies suggest analytical abilities on par with some species of cepholapo
|
||||
to_chat(target, span_notice("You hear an eerie howl from somewhere to the [dir2text(direction)]."))
|
||||
|
||||
/mob/living/simple_mob/animal/sif/grafadreka/get_available_emotes()
|
||||
. = global._default_mob_emotes.Copy()
|
||||
. = GLOB.default_mob_emotes.Copy()
|
||||
if(!is_baby)
|
||||
. |= /decl/emote/audible/drake_howl
|
||||
return
|
||||
|
||||
@@ -218,8 +218,8 @@ GLOBAL_LIST_EMPTY(limb_icon_cache)
|
||||
// damage amount to represent the pain of the injuries involved.
|
||||
|
||||
// Global scope, used in code below.
|
||||
var/list/flesh_hud_colours = list("#02BA08","#9ECF19","#DEDE10","#FFAA00","#FF0000","#AA0000","#660000")
|
||||
var/list/robot_hud_colours = list("#CFCFCF","#AFAFAF","#8F8F8F","#6F6F6F","#4F4F4F","#2F2F2F","#000000")
|
||||
GLOBAL_LIST_INIT(flesh_hud_colours, list("#02BA08","#9ECF19","#DEDE10","#FFAA00","#FF0000","#AA0000","#660000"))
|
||||
GLOBAL_LIST_INIT(robot_hud_colours, list("#CFCFCF","#AFAFAF","#8F8F8F","#6F6F6F","#4F4F4F","#2F2F2F","#000000"))
|
||||
|
||||
/obj/item/organ/external/proc/get_damage_hud_image(var/min_dam_state)
|
||||
|
||||
@@ -254,6 +254,6 @@ var/list/robot_hud_colours = list("#CFCFCF","#AFAFAF","#8F8F8F","#6F6F6F","#4F4F
|
||||
if(!isnull(min_dam_state) && dam_state < min_dam_state)
|
||||
dam_state = min_dam_state
|
||||
// Apply colour and return product.
|
||||
var/list/hud_colours = (robotic < ORGAN_ROBOT) ? flesh_hud_colours : robot_hud_colours
|
||||
var/list/hud_colours = (robotic < ORGAN_ROBOT) ? GLOB.flesh_hud_colours : GLOB.robot_hud_colours
|
||||
hud_damage_image.color = hud_colours[max(1,min(CEILING(dam_state*hud_colours.len, 1),hud_colours.len))]
|
||||
return hud_damage_image
|
||||
|
||||
@@ -189,19 +189,19 @@
|
||||
if(CONFIG_GET(flag/ert_admin_call_only)) return 1
|
||||
return SSticker.mode && SSticker.mode.ert_disabled
|
||||
|
||||
var/global/maint_all_access = 0
|
||||
GLOBAL_VAR_INIT(maint_all_access, FALSE)
|
||||
|
||||
/proc/make_maint_all_access()
|
||||
maint_all_access = 1
|
||||
GLOB.maint_all_access = TRUE
|
||||
to_chat(world, span_alert(span_red(span_huge("Attention!"))))
|
||||
to_chat(world, span_alert(span_red("The maintenance access requirement has been revoked on all airlocks.")))
|
||||
|
||||
/proc/revoke_maint_all_access()
|
||||
maint_all_access = 0
|
||||
GLOB.maint_all_access = FALSE
|
||||
to_chat(world, span_alert(span_red(span_huge("Attention!"))))
|
||||
to_chat(world, span_alert(span_red("The maintenance access requirement has been readded on all maintenance airlocks.")))
|
||||
|
||||
/obj/machinery/door/airlock/allowed(mob/M)
|
||||
if(maint_all_access && src.check_access_list(list(ACCESS_MAINT_TUNNELS)))
|
||||
if(GLOB.maint_all_access && src.check_access_list(list(ACCESS_MAINT_TUNNELS)))
|
||||
return 1
|
||||
return ..(M)
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
// Find out of this mob is a proper mob!
|
||||
if (persister.mind && persister.mind.loaded_from_ckey)
|
||||
// Okay this mob has a real loaded-from-savefile mind in it!
|
||||
var/datum/preferences/prefs = preferences_datums[persister.mind.loaded_from_ckey]
|
||||
var/datum/preferences/prefs = GLOB.preferences_datums[persister.mind.loaded_from_ckey]
|
||||
if(!prefs)
|
||||
WARNING("Persist (P4P): [persister.mind] was loaded from ckey [persister.mind.loaded_from_ckey] but no prefs datum found.")
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user