mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-13 19:52:13 +00:00
Merge pull request #8531 from Spookerton/spkrtn/sys/global-agenda
updates all bare globals to use /global/ semantics, and all shared members to /static/
This commit is contained in:
@@ -30,7 +30,7 @@ Pipelines + Other Objects -> Pipe network
|
||||
var/initialize_directions = 0
|
||||
var/pipe_color
|
||||
|
||||
var/global/datum/pipe_icon_manager/icon_manager
|
||||
var/static/datum/pipe_icon_manager/icon_manager
|
||||
var/obj/machinery/atmospherics/node1
|
||||
var/obj/machinery/atmospherics/node2
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
var/datum/controller/subsystem/air/air_master
|
||||
var/global/datum/controller/subsystem/air/air_master
|
||||
|
||||
var/tick_multiplier = 2
|
||||
var/global/tick_multiplier = 2
|
||||
|
||||
/*
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
var/image/assigned = image('icons/Testing/Zone.dmi', icon_state = "assigned")
|
||||
var/image/created = image('icons/Testing/Zone.dmi', icon_state = "created")
|
||||
var/image/merged = image('icons/Testing/Zone.dmi', icon_state = "merged")
|
||||
var/image/invalid_zone = image('icons/Testing/Zone.dmi', icon_state = "invalid")
|
||||
var/image/air_blocked = image('icons/Testing/Zone.dmi', icon_state = "block")
|
||||
var/image/zone_blocked = image('icons/Testing/Zone.dmi', icon_state = "zoneblock")
|
||||
var/image/blocked = image('icons/Testing/Zone.dmi', icon_state = "fullblock")
|
||||
var/image/mark = image('icons/Testing/Zone.dmi', icon_state = "mark")
|
||||
var/global/image/assigned = image('icons/Testing/Zone.dmi', icon_state = "assigned")
|
||||
var/global/image/created = image('icons/Testing/Zone.dmi', icon_state = "created")
|
||||
var/global/image/merged = image('icons/Testing/Zone.dmi', icon_state = "merged")
|
||||
var/global/image/invalid_zone = image('icons/Testing/Zone.dmi', icon_state = "invalid")
|
||||
var/global/image/air_blocked = image('icons/Testing/Zone.dmi', icon_state = "block")
|
||||
var/global/image/zone_blocked = image('icons/Testing/Zone.dmi', icon_state = "zoneblock")
|
||||
var/global/image/blocked = image('icons/Testing/Zone.dmi', icon_state = "fullblock")
|
||||
var/global/image/mark = image('icons/Testing/Zone.dmi', icon_state = "mark")
|
||||
|
||||
/connection_edge/var/dbg_out = 0
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
var/image/contamination_overlay = image('icons/effects/contamination.dmi')
|
||||
var/global/image/contamination_overlay = image('icons/effects/contamination.dmi')
|
||||
|
||||
/pl_control
|
||||
var/PHORON_DMG = 3
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
#define GLOBAL_REAL(X, Typepath) var/global##Typepath/##X
|
||||
|
||||
// Defines a global var on the controller, do not use outside this file.
|
||||
#define GLOBAL_RAW(X) /datum/controller/global_vars/var/global##X
|
||||
#define GLOBAL_RAW(X) /datum/controller/global_vars/var/static##X
|
||||
|
||||
// Create an untyped global with an initializer expression
|
||||
#define GLOBAL_VAR_INIT(X, InitValue) GLOBAL_RAW(/##X); GLOBAL_MANAGED(X, InitValue)
|
||||
|
||||
@@ -46,10 +46,10 @@
|
||||
#define ANTIBIO_SUPER 3
|
||||
|
||||
// Chemistry lists.
|
||||
var/list/tachycardics = list("coffee", "inaprovaline", "hyperzine", "nitroglycerin", "thirteenloko", "nicotine", "bliss") // Increase heart rate.
|
||||
var/list/bradycardics = list("neurotoxin", "cryoxadone", "clonexadone", "ambrosia_extract", "stoxin") // Decrease heart rate.
|
||||
var/list/heartstopper = list("potassium_chlorophoride", "zombie_powder") // This stops the heart.
|
||||
var/list/cheartstopper = list("potassium_chloride") // This stops the heart when overdose is met. -- c = conditional
|
||||
var/global/list/tachycardics = list("coffee", "inaprovaline", "hyperzine", "nitroglycerin", "thirteenloko", "nicotine", "bliss") // Increase heart rate.
|
||||
var/global/list/bradycardics = list("neurotoxin", "cryoxadone", "clonexadone", "ambrosia_extract", "stoxin") // Decrease heart rate.
|
||||
var/global/list/heartstopper = list("potassium_chlorophoride", "zombie_powder") // This stops the heart.
|
||||
var/global/list/cheartstopper = list("potassium_chloride") // This stops the heart when overdose is met. -- c = conditional
|
||||
|
||||
#define MAX_PILL_SPRITE 24 //max icon state of the pill sprites
|
||||
#define MAX_BOTTLE_SPRITE 4 //max icon state of the pill sprites
|
||||
@@ -57,4 +57,4 @@ var/list/cheartstopper = list("potassium_chloride") // Thi
|
||||
#define MAX_UNITS_PER_PILL 60 // Max amount of units in a pill
|
||||
#define MAX_UNITS_PER_PATCH 60 // Max amount of units in a patch
|
||||
#define MAX_UNITS_PER_BOTTLE 60 // Max amount of units in a bottle (it's volume)
|
||||
#define MAX_CUSTOM_NAME_LEN 64 // Max length of a custom pill/condiment/whatever
|
||||
#define MAX_CUSTOM_NAME_LEN 64 // Max length of a custom pill/condiment/whatever
|
||||
|
||||
@@ -44,33 +44,33 @@
|
||||
|
||||
// The way blocks are handled badly needs a rewrite, this is horrible.
|
||||
// Too much of a project to handle at the moment, TODO for later.
|
||||
var/BLINDBLOCK = 0
|
||||
var/DEAFBLOCK = 0
|
||||
var/HULKBLOCK = 0
|
||||
var/TELEBLOCK = 0
|
||||
var/FIREBLOCK = 0
|
||||
var/XRAYBLOCK = 0
|
||||
var/CLUMSYBLOCK = 0
|
||||
var/FAKEBLOCK = 0
|
||||
var/COUGHBLOCK = 0
|
||||
var/GLASSESBLOCK = 0
|
||||
var/EPILEPSYBLOCK = 0
|
||||
var/TWITCHBLOCK = 0
|
||||
var/NERVOUSBLOCK = 0
|
||||
var/MONKEYBLOCK = STRUCDNASIZE
|
||||
var/global/BLINDBLOCK = 0
|
||||
var/global/DEAFBLOCK = 0
|
||||
var/global/HULKBLOCK = 0
|
||||
var/global/TELEBLOCK = 0
|
||||
var/global/FIREBLOCK = 0
|
||||
var/global/XRAYBLOCK = 0
|
||||
var/global/CLUMSYBLOCK = 0
|
||||
var/global/FAKEBLOCK = 0
|
||||
var/global/COUGHBLOCK = 0
|
||||
var/global/GLASSESBLOCK = 0
|
||||
var/global/EPILEPSYBLOCK = 0
|
||||
var/global/TWITCHBLOCK = 0
|
||||
var/global/NERVOUSBLOCK = 0
|
||||
var/global/MONKEYBLOCK = STRUCDNASIZE
|
||||
|
||||
var/BLOCKADD = 0
|
||||
var/DIFFMUT = 0
|
||||
var/global/BLOCKADD = 0
|
||||
var/global/DIFFMUT = 0
|
||||
|
||||
var/HEADACHEBLOCK = 0
|
||||
var/NOBREATHBLOCK = 0
|
||||
var/REMOTEVIEWBLOCK = 0
|
||||
var/REGENERATEBLOCK = 0
|
||||
var/INCREASERUNBLOCK = 0
|
||||
var/REMOTETALKBLOCK = 0
|
||||
var/MORPHBLOCK = 0
|
||||
var/BLENDBLOCK = 0
|
||||
var/HALLUCINATIONBLOCK = 0
|
||||
var/NOPRINTSBLOCK = 0
|
||||
var/SHOCKIMMUNITYBLOCK = 0
|
||||
var/SMALLSIZEBLOCK = 0
|
||||
var/global/HEADACHEBLOCK = 0
|
||||
var/global/NOBREATHBLOCK = 0
|
||||
var/global/REMOTEVIEWBLOCK = 0
|
||||
var/global/REGENERATEBLOCK = 0
|
||||
var/global/INCREASERUNBLOCK = 0
|
||||
var/global/REMOTETALKBLOCK = 0
|
||||
var/global/MORPHBLOCK = 0
|
||||
var/global/BLENDBLOCK = 0
|
||||
var/global/HALLUCINATIONBLOCK = 0
|
||||
var/global/NOPRINTSBLOCK = 0
|
||||
var/global/SHOCKIMMUNITYBLOCK = 0
|
||||
var/global/SMALLSIZEBLOCK = 0
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
#define BE_LOYALIST 0x4000
|
||||
#define BE_PAI 0x8000
|
||||
|
||||
var/list/be_special_flags = list(
|
||||
var/global/list/be_special_flags = list(
|
||||
"Traitor" = BE_TRAITOR,
|
||||
"Operative" = BE_OPERATIVE,
|
||||
"Changeling" = BE_CHANGELING,
|
||||
|
||||
@@ -74,7 +74,7 @@ var/global/defer_powernet_rebuild = 0 // True if net rebuild will be called
|
||||
#define NETWORK_ALARM_FIRE "Fire Alarms"
|
||||
|
||||
// Those networks can only be accessed by pre-existing terminals. AIs and new terminals can't use them.
|
||||
var/list/restricted_camera_networks = list(NETWORK_ERT,NETWORK_MERCENARY,"Secret", NETWORK_COMMUNICATORS)
|
||||
var/global/list/restricted_camera_networks = list(NETWORK_ERT,NETWORK_MERCENARY,"Secret", NETWORK_COMMUNICATORS)
|
||||
|
||||
#define TRANSMISSION_WIRE 0 //Is this ever used? I don't think it is.
|
||||
#define TRANSMISSION_RADIO 1 //Radio transmissions (like airlock controller to pump)
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
var/datum/gear_tweak/color/gear_tweak_free_color_choice = new()
|
||||
var/datum/gear_tweak/implant_location/gear_tweak_implant_location = new()
|
||||
var/global/datum/gear_tweak/color/gear_tweak_free_color_choice = new()
|
||||
var/global/datum/gear_tweak/implant_location/gear_tweak_implant_location = new()
|
||||
@@ -1,4 +1,4 @@
|
||||
var/list/admins = list() //list of all clients whom are admins
|
||||
var/global/list/admins = list() //list of all clients whom are admins
|
||||
|
||||
//Since it didn't really belong in any other category, I'm putting this here
|
||||
//This is for procs to replace all the goddamn 'in world's that are chilling around the code
|
||||
@@ -23,7 +23,7 @@ var/global/list/joblist = list() //list of all jobstypes, minus borg and AI
|
||||
#define all_genders_define_list list(MALE,FEMALE,PLURAL,NEUTER)
|
||||
#define all_genders_text_list list("Male","Female","Plural","Neuter")
|
||||
|
||||
var/list/mannequins_
|
||||
var/global/list/mannequins_
|
||||
|
||||
// Times that players are allowed to respawn ("ckey" = world.time)
|
||||
GLOBAL_LIST_EMPTY(respawn_timers)
|
||||
@@ -50,7 +50,7 @@ var/global/list/wing_styles_list = list() // Stores /datum/sprite_accessory/wing
|
||||
|
||||
GLOBAL_LIST_INIT(custom_species_bases, new) // Species that can be used for a Custom Species icon base
|
||||
//Underwear
|
||||
var/datum/category_collection/underwear/global_underwear = new()
|
||||
var/global/datum/category_collection/underwear/global_underwear = new()
|
||||
|
||||
//Backpacks
|
||||
var/global/list/backbaglist = list("Nothing", "Backpack", "Satchel", "Satchel Alt", "Messenger Bag", "Sports Bag")
|
||||
@@ -58,9 +58,9 @@ var/global/list/pdachoicelist = list("Default", "Slim", "Old", "Rugged", "Hologr
|
||||
var/global/list/exclude_jobs = list(/datum/job/ai,/datum/job/cyborg)
|
||||
|
||||
// Visual nets
|
||||
var/list/datum/visualnet/visual_nets = list()
|
||||
var/datum/visualnet/camera/cameranet = new()
|
||||
var/datum/visualnet/cult/cultnet = new()
|
||||
var/global/list/datum/visualnet/visual_nets = list()
|
||||
var/global/datum/visualnet/camera/cameranet = new()
|
||||
var/global/datum/visualnet/cult/cultnet = new()
|
||||
|
||||
// Runes
|
||||
var/global/list/rune_list = new()
|
||||
|
||||
@@ -15,7 +15,7 @@ CHANGING ICONS
|
||||
Several new procs have been added to the /icon datum to simplify working with icons. To use them,
|
||||
remember you first need to setup an /icon var like so:
|
||||
|
||||
var/icon/my_icon = new('iconfile.dmi')
|
||||
var/icon/my_icon = new('iconfile.dmi')
|
||||
|
||||
icon/ChangeOpacity(amount = 1)
|
||||
A very common operation in DM is to try to make an icon more or less transparent. Making an icon more
|
||||
|
||||
@@ -70,7 +70,7 @@
|
||||
|
||||
return list(1,0,0, 0,1,0, 0,0,1, power,power,power)
|
||||
|
||||
/var/list/delta_index = list(
|
||||
var/global/list/delta_index = list(
|
||||
0, 0.01, 0.02, 0.04, 0.05, 0.06, 0.07, 0.08, 0.1, 0.11,
|
||||
0.12, 0.14, 0.15, 0.16, 0.17, 0.18, 0.20, 0.21, 0.22, 0.24,
|
||||
0.25, 0.27, 0.28, 0.30, 0.32, 0.34, 0.36, 0.38, 0.40, 0.42,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
var/church_name = null
|
||||
var/global/church_name = null
|
||||
/proc/church_name()
|
||||
if (church_name)
|
||||
return church_name
|
||||
@@ -25,7 +25,7 @@ var/church_name = null
|
||||
|
||||
return name
|
||||
|
||||
var/religion_name = null
|
||||
var/global/religion_name = null
|
||||
/proc/religion_name()
|
||||
if (religion_name)
|
||||
return religion_name
|
||||
@@ -111,7 +111,7 @@ var/religion_name = null
|
||||
|
||||
return name
|
||||
|
||||
var/syndicate_name = null
|
||||
var/global/syndicate_name = null
|
||||
/proc/syndicate_name()
|
||||
if (syndicate_name)
|
||||
return syndicate_name
|
||||
@@ -143,8 +143,8 @@ var/syndicate_name = null
|
||||
|
||||
|
||||
//Traitors and traitor silicons will get these. Revs will not.
|
||||
var/syndicate_code_phrase//Code phrase for traitors.
|
||||
var/syndicate_code_response//Code response for traitors.
|
||||
var/global/syndicate_code_phrase//Code phrase for traitors.
|
||||
var/global/syndicate_code_response//Code response for traitors.
|
||||
|
||||
/*
|
||||
Should be expanded.
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
#define MIN_GALLOP 7
|
||||
|
||||
//This is a global instance to allow much of this code to be reused. The interfaces are kept separately
|
||||
var/datum/sortInstance/sortInstance = new()
|
||||
var/global/datum/sortInstance/sortInstance = new()
|
||||
/datum/sortInstance
|
||||
//The array being sorted.
|
||||
var/list/L
|
||||
|
||||
@@ -370,8 +370,8 @@
|
||||
//For generating neat chat tag-images
|
||||
//The icon var could be local in the proc, but it's a waste of resources
|
||||
// to always create it and then throw it out.
|
||||
/var/icon/text_tag_icons = 'icons/chattags.dmi'
|
||||
/var/list/text_tag_cache = list()
|
||||
var/global/icon/text_tag_icons = 'icons/chattags.dmi'
|
||||
var/global/list/text_tag_cache = list()
|
||||
/proc/create_text_tag(var/tagname, var/tagdesc = tagname, var/client/C = null)
|
||||
if(!(C && C.is_preference_enabled(/datum/client_preference/chat_tags)))
|
||||
return tagdesc
|
||||
|
||||
@@ -20,12 +20,12 @@
|
||||
#define TICKS2DS(T) ((T) TICKS) // Convert ticks to deciseconds
|
||||
#define DS2NEARESTTICK(DS) TICKS2DS(-round(-(DS2TICKS(DS))))
|
||||
|
||||
var/world_startup_time
|
||||
var/global/world_startup_time
|
||||
|
||||
/proc/get_game_time()
|
||||
var/global/time_offset = 0
|
||||
var/global/last_time = 0
|
||||
var/global/last_usage = 0
|
||||
var/static/time_offset = 0
|
||||
var/static/last_time = 0
|
||||
var/static/last_usage = 0
|
||||
|
||||
var/wtime = world.time
|
||||
var/wusage = TICK_USAGE * 0.01
|
||||
@@ -39,8 +39,8 @@ var/world_startup_time
|
||||
return wtime + (time_offset + wusage) * world.tick_lag
|
||||
|
||||
GLOBAL_VAR_INIT(roundstart_hour, pick(2,7,12,17))
|
||||
var/station_date = ""
|
||||
var/next_station_date_change = 1 DAY
|
||||
var/global/station_date = ""
|
||||
var/global/next_station_date_change = 1 DAY
|
||||
|
||||
#define duration2stationtime(time) time2text(station_time_in_ds + time, "hh:mm")
|
||||
#define worldtime2stationtime(time) time2text(GLOB.roundstart_hour HOURS + time, "hh:mm")
|
||||
@@ -91,8 +91,8 @@ var/next_station_date_change = 1 DAY
|
||||
//else
|
||||
//return 1
|
||||
|
||||
var/next_duration_update = 0
|
||||
var/last_round_duration = 0
|
||||
var/global/next_duration_update = 0
|
||||
var/global/last_round_duration = 0
|
||||
GLOBAL_VAR_INIT(round_start_time, 0)
|
||||
|
||||
/hook/roundstart/proc/start_timer()
|
||||
@@ -117,8 +117,8 @@ GLOBAL_VAR_INIT(round_start_time, 0)
|
||||
next_duration_update = world.time + 1 MINUTES
|
||||
return last_round_duration
|
||||
|
||||
/var/midnight_rollovers = 0
|
||||
/var/rollovercheck_last_timeofday = 0
|
||||
var/global/midnight_rollovers = 0
|
||||
var/global/rollovercheck_last_timeofday = 0
|
||||
/proc/update_midnight_rollover()
|
||||
if (world.timeofday < rollovercheck_last_timeofday) //TIME IS GOING BACKWARDS!
|
||||
return midnight_rollovers++
|
||||
|
||||
@@ -1193,7 +1193,7 @@ var/global/list/common_tools = list(
|
||||
Checks if that loc and dir has a item on the wall
|
||||
TODO - Fix this ancient list of wall items. Preferably make it dynamically populated. ~Leshana
|
||||
*/
|
||||
var/list/WALLITEMS = list(
|
||||
var/global/list/WALLITEMS = list(
|
||||
/obj/machinery/power/apc, /obj/machinery/alarm, /obj/item/radio/intercom, /obj/structure/frame,
|
||||
/obj/structure/extinguisher_cabinet, /obj/structure/reagent_dispensers/peppertank,
|
||||
/obj/machinery/status_display, /obj/machinery/requests_console, /obj/machinery/light_switch, /obj/structure/sign,
|
||||
@@ -1258,7 +1258,7 @@ var/list/WALLITEMS = list(
|
||||
var/color = hex || rgb(red, green, blue)
|
||||
return "<span style='font-face: fixedsys; font-size: 14px; background-color: [color]; color: [color]'>___</span>"
|
||||
|
||||
var/mob/dview/dview_mob = new
|
||||
var/global/mob/dview/dview_mob = new
|
||||
|
||||
//Version of view() which ignores darkness, because BYOND doesn't have it.
|
||||
/proc/dview(var/range = world.view, var/center, var/invis_flags = 0)
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
The global hud:
|
||||
Uses the same visual objects for all players.
|
||||
*/
|
||||
var/datum/global_hud/global_hud = new()
|
||||
var/list/global_huds = list(
|
||||
var/global/datum/global_hud/global_hud = new()
|
||||
var/global/list/global_huds = list(
|
||||
global_hud.druggy,
|
||||
global_hud.blurry,
|
||||
global_hud.whitense,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
var/obj/screen/robot_inventory
|
||||
var/global/obj/screen/robot_inventory
|
||||
|
||||
/mob/living/silicon/robot/create_mob_hud(datum/hud/HUD, apply_to_client = TRUE)
|
||||
..()
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
This needs more thinking out, but I might as well.
|
||||
*/
|
||||
var/const/tk_maxrange = 15
|
||||
var/global/const/tk_maxrange = 15
|
||||
|
||||
/*
|
||||
Telekinetic attack:
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
var/datum/controller/transfer_controller/transfer_controller
|
||||
var/global/datum/controller/transfer_controller/transfer_controller
|
||||
|
||||
/datum/controller/transfer_controller
|
||||
var/timerbuffer = 0 //buffer for time check
|
||||
|
||||
@@ -97,35 +97,35 @@ On the map:
|
||||
1455 for AI access
|
||||
*/
|
||||
|
||||
var/const/RADIO_LOW_FREQ = 1200
|
||||
var/const/PUBLIC_LOW_FREQ = 1441
|
||||
var/const/PUBLIC_HIGH_FREQ = 1489
|
||||
var/const/RADIO_HIGH_FREQ = 1600
|
||||
var/global/const/RADIO_LOW_FREQ = 1200
|
||||
var/global/const/PUBLIC_LOW_FREQ = 1441
|
||||
var/global/const/PUBLIC_HIGH_FREQ = 1489
|
||||
var/global/const/RADIO_HIGH_FREQ = 1600
|
||||
|
||||
var/const/BOT_FREQ = 1447
|
||||
var/const/COMM_FREQ = 1353
|
||||
var/const/ERT_FREQ = 1345
|
||||
var/const/AI_FREQ = 1343
|
||||
var/const/DTH_FREQ = 1341
|
||||
var/const/SYND_FREQ = 1213
|
||||
var/const/RAID_FREQ = 1277
|
||||
var/const/ENT_FREQ = 1461 //entertainment frequency. This is not a diona exclusive frequency.
|
||||
var/global/const/BOT_FREQ = 1447
|
||||
var/global/const/COMM_FREQ = 1353
|
||||
var/global/const/ERT_FREQ = 1345
|
||||
var/global/const/AI_FREQ = 1343
|
||||
var/global/const/DTH_FREQ = 1341
|
||||
var/global/const/SYND_FREQ = 1213
|
||||
var/global/const/RAID_FREQ = 1277
|
||||
var/global/const/ENT_FREQ = 1461 //entertainment frequency. This is not a diona exclusive frequency.
|
||||
|
||||
// department channels
|
||||
var/const/PUB_FREQ = 1459
|
||||
var/const/SEC_FREQ = 1359
|
||||
var/const/ENG_FREQ = 1357
|
||||
var/const/MED_FREQ = 1355
|
||||
var/const/SCI_FREQ = 1351
|
||||
var/const/SRV_FREQ = 1349
|
||||
var/const/SUP_FREQ = 1347
|
||||
var/const/EXP_FREQ = 1361
|
||||
var/global/const/PUB_FREQ = 1459
|
||||
var/global/const/SEC_FREQ = 1359
|
||||
var/global/const/ENG_FREQ = 1357
|
||||
var/global/const/MED_FREQ = 1355
|
||||
var/global/const/SCI_FREQ = 1351
|
||||
var/global/const/SRV_FREQ = 1349
|
||||
var/global/const/SUP_FREQ = 1347
|
||||
var/global/const/EXP_FREQ = 1361
|
||||
|
||||
// internal department channels
|
||||
var/const/MED_I_FREQ = 1485
|
||||
var/const/SEC_I_FREQ = 1475
|
||||
var/global/const/MED_I_FREQ = 1485
|
||||
var/global/const/SEC_I_FREQ = 1475
|
||||
|
||||
var/list/radiochannels = list(
|
||||
var/global/list/radiochannels = list(
|
||||
"Common" = PUB_FREQ,
|
||||
"Science" = SCI_FREQ,
|
||||
"Command" = COMM_FREQ,
|
||||
@@ -146,13 +146,13 @@ var/list/radiochannels = list(
|
||||
)
|
||||
|
||||
// central command channels, i.e deathsquid & response teams
|
||||
var/list/CENT_FREQS = list(ERT_FREQ, DTH_FREQ)
|
||||
var/global/list/CENT_FREQS = list(ERT_FREQ, DTH_FREQ)
|
||||
|
||||
// Antag channels, i.e. Syndicate
|
||||
var/list/ANTAG_FREQS = list(SYND_FREQ, RAID_FREQ)
|
||||
var/global/list/ANTAG_FREQS = list(SYND_FREQ, RAID_FREQ)
|
||||
|
||||
//Department channels, arranged lexically
|
||||
var/list/DEPT_FREQS = list(AI_FREQ, COMM_FREQ, ENG_FREQ, ENT_FREQ, MED_FREQ, SEC_FREQ, SCI_FREQ, SRV_FREQ, SUP_FREQ)
|
||||
var/global/list/DEPT_FREQS = list(AI_FREQ, COMM_FREQ, ENG_FREQ, ENT_FREQ, MED_FREQ, SEC_FREQ, SCI_FREQ, SRV_FREQ, SUP_FREQ)
|
||||
|
||||
/proc/frequency_span_class(var/frequency)
|
||||
// Antags!
|
||||
@@ -195,17 +195,17 @@ var/list/DEPT_FREQS = list(AI_FREQ, COMM_FREQ, ENG_FREQ, ENT_FREQ, MED_FREQ, SEC
|
||||
//This is done for performance, so we don't send signals to lots of machines unnecessarily.
|
||||
|
||||
//This filter is special because devices belonging to default also recieve signals sent to any other filter.
|
||||
var/const/RADIO_DEFAULT = "radio_default"
|
||||
var/global/const/RADIO_DEFAULT = "radio_default"
|
||||
|
||||
var/const/RADIO_TO_AIRALARM = "radio_airalarm" //air alarms
|
||||
var/const/RADIO_FROM_AIRALARM = "radio_airalarm_rcvr" //devices interested in recieving signals from air alarms
|
||||
var/const/RADIO_CHAT = "radio_telecoms"
|
||||
var/const/RADIO_ATMOSIA = "radio_atmos"
|
||||
var/const/RADIO_NAVBEACONS = "radio_navbeacon"
|
||||
var/const/RADIO_AIRLOCK = "radio_airlock"
|
||||
var/const/RADIO_SECBOT = "radio_secbot"
|
||||
var/const/RADIO_MULEBOT = "radio_mulebot"
|
||||
var/const/RADIO_MAGNETS = "radio_magnet"
|
||||
var/global/const/RADIO_TO_AIRALARM = "radio_airalarm" //air alarms
|
||||
var/global/const/RADIO_FROM_AIRALARM = "radio_airalarm_rcvr" //devices interested in recieving signals from air alarms
|
||||
var/global/const/RADIO_CHAT = "radio_telecoms"
|
||||
var/global/const/RADIO_ATMOSIA = "radio_atmos"
|
||||
var/global/const/RADIO_NAVBEACONS = "radio_navbeacon"
|
||||
var/global/const/RADIO_AIRLOCK = "radio_airlock"
|
||||
var/global/const/RADIO_SECBOT = "radio_secbot"
|
||||
var/global/const/RADIO_MULEBOT = "radio_mulebot"
|
||||
var/global/const/RADIO_MAGNETS = "radio_magnet"
|
||||
|
||||
var/global/datum/controller/radio/radio_controller
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
var/list/gamemode_cache = list()
|
||||
var/global/list/gamemode_cache = list()
|
||||
|
||||
/datum/configuration
|
||||
var/server_name = null // server name (for world name / status)
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
* Pretty much pokes the MC to make sure it's still alive.
|
||||
**/
|
||||
|
||||
var/datum/controller/failsafe/Failsafe
|
||||
var/global/datum/controller/failsafe/Failsafe
|
||||
|
||||
/datum/controller/failsafe // This thing pretty much just keeps poking the master controller
|
||||
name = "Failsafe"
|
||||
|
||||
@@ -12,10 +12,10 @@
|
||||
#define DUAL_TICK_CHECK if (init_tick_checks) { CHECK_TICK; } else if (MC_TICK_CHECK) { return; }
|
||||
|
||||
// Globals
|
||||
/var/lighting_overlays_initialised = FALSE
|
||||
/var/list/lighting_update_lights = list() // List of lighting sources queued for update.
|
||||
/var/list/lighting_update_corners = list() // List of lighting corners queued for update.
|
||||
/var/list/lighting_update_overlays = list() // List of lighting overlays queued for update.
|
||||
var/global/lighting_overlays_initialised = FALSE
|
||||
var/global/list/lighting_update_lights = list() // List of lighting sources queued for update.
|
||||
var/global/list/lighting_update_corners = list() // List of lighting corners queued for update.
|
||||
var/global/list/lighting_update_overlays = list() // List of lighting overlays queued for update.
|
||||
|
||||
SUBSYSTEM_DEF(lighting)
|
||||
name = "Lighting"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
var/datum/category_collection/autolathe/autolathe_recipes
|
||||
var/global/datum/category_collection/autolathe/autolathe_recipes
|
||||
|
||||
/datum/category_item/autolathe/New()
|
||||
..()
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
*/
|
||||
|
||||
// Cached runechat icon
|
||||
var/list/runechat_image_cache = list()
|
||||
var/global/list/runechat_image_cache = list()
|
||||
|
||||
|
||||
/hook/startup/proc/runechat_images()
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
var/list/modcount = list() // assoc list of the count of modules for a type
|
||||
|
||||
|
||||
var/list/modules = list( // global associative list
|
||||
var/global/list/modules = list( // global associative list
|
||||
"/obj/machinery/power/apc" = "card_reader,power_control,id_auth,cell_power,cell_charge")
|
||||
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
// /old_opacity: Opacity before the change
|
||||
// /new_opacity: Opacity after the change
|
||||
|
||||
var/decl/observ/turf_changed/turf_changed_event = new()
|
||||
var/global/decl/observ/turf_changed/turf_changed_event = new()
|
||||
|
||||
/decl/observ/turf_changed
|
||||
name = "Turf Changed"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
var/list/outfits_decls_
|
||||
var/list/outfits_decls_root_
|
||||
var/list/outfits_decls_by_type_
|
||||
var/global/list/outfits_decls_
|
||||
var/global/list/outfits_decls_root_
|
||||
var/global/list/outfits_decls_by_type_
|
||||
|
||||
/proc/outfit_by_type(var/outfit_type)
|
||||
if(!outfits_decls_root_)
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
// III. Thou shalt not write a decl that relies on arguments supplied to New().
|
||||
// IV. Thou shalt not call Initialize() on a /decl.
|
||||
|
||||
var/repository/decls/decls_repository = new()
|
||||
var/global/repository/decls/decls_repository = new()
|
||||
/repository/decls
|
||||
var/list/fetched_decls
|
||||
var/list/fetched_decl_types
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
var/repository/unique/uniqueness_repository = new()
|
||||
var/global/repository/unique/uniqueness_repository = new()
|
||||
|
||||
/repository/unique
|
||||
var/list/generators
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
//NOTE NOTE: Hidden var is now deprecated, whoever removed support for it should've removed the var altogether
|
||||
|
||||
//var/list/all_supply_groups = list("Operations","Security","Hospitality","Engineering","Atmospherics","Medical","Reagents","Reagent Cartridges","Science","Hydroponics", "Supply", "Miscellaneous")
|
||||
var/list/all_supply_groups = list("Atmospherics",
|
||||
var/global/list/all_supply_groups = list("Atmospherics",
|
||||
"Costumes",
|
||||
"Engineering",
|
||||
"Hospitality",
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
var/datum/uplink/uplink = new()
|
||||
var/global/datum/uplink/uplink = new()
|
||||
|
||||
/datum/uplink
|
||||
var/list/items_assoc
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
* This item is completely unused, but removing it will break something in R&D and Radio code causing PDA and Ninja code to fail on compile
|
||||
*/
|
||||
|
||||
/var/list/acting_rank_prefixes = list("acting", "temporary", "interim", "provisional")
|
||||
var/global/list/acting_rank_prefixes = list("acting", "temporary", "interim", "provisional")
|
||||
|
||||
/proc/make_list_rank(rank)
|
||||
for(var/prefix in acting_rank_prefixes)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/var/datum/announcement/priority/priority_announcement = new(do_log = 0)
|
||||
/var/datum/announcement/priority/command/command_announcement = new(do_log = 0, do_newscast = 1)
|
||||
var/global/datum/announcement/priority/priority_announcement = new(do_log = 0)
|
||||
var/global/datum/announcement/priority/command/command_announcement = new(do_log = 0, do_newscast = 1)
|
||||
|
||||
/datum/announcement
|
||||
var/title = "Attention"
|
||||
|
||||
@@ -31,13 +31,6 @@
|
||||
#define BLOB 14
|
||||
// TODO: Investigate more recent type additions and see if I can handle them. - Nadrew
|
||||
|
||||
|
||||
// Deprecated! See global.dm for new configuration vars
|
||||
/*
|
||||
var/DB_SERVER = "" // This is the location of your MySQL server (localhost is USUALLY fine)
|
||||
var/DB_PORT = 3306 // This is the port your MySQL server is running on (3306 is the default)
|
||||
*/
|
||||
|
||||
/DBConnection
|
||||
var/_db_con // This variable contains a reference to the actual database connection.
|
||||
var/dbi // This variable is a string containing the DBI MySQL requires.
|
||||
|
||||
@@ -346,7 +346,7 @@
|
||||
|
||||
//////////////////////////////////////////////////////////////////
|
||||
|
||||
var/list/mob/living/forced_ambiance_list = new
|
||||
var/global/list/mob/living/forced_ambiance_list = new
|
||||
|
||||
/area/Entered(A)
|
||||
if(!istype(A,/mob/living)) return
|
||||
@@ -471,7 +471,7 @@ var/list/mob/living/forced_ambiance_list = new
|
||||
|
||||
/*Adding a wizard area teleport list because motherfucking lag -- Urist*/
|
||||
/*I am far too lazy to make it a proper list of areas so I'll just make it run the usual telepot routine at the start of the game*/
|
||||
var/list/teleportlocs = list()
|
||||
var/global/list/teleportlocs = list()
|
||||
|
||||
/hook/startup/proc/setupTeleportLocs()
|
||||
for(var/area/AR in world)
|
||||
@@ -486,7 +486,7 @@ var/list/teleportlocs = list()
|
||||
|
||||
return 1
|
||||
|
||||
var/list/ghostteleportlocs = list()
|
||||
var/global/list/ghostteleportlocs = list()
|
||||
|
||||
/hook/startup/proc/setupGhostTeleportLocs()
|
||||
for(var/area/AR in world)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
var/list/powers = typesof(/datum/power/changeling) - /datum/power/changeling //needed for the badmin verb for now
|
||||
var/list/datum/power/changeling/powerinstances = list()
|
||||
var/global/list/powers = typesof(/datum/power/changeling) - /datum/power/changeling //needed for the badmin verb for now
|
||||
var/global/list/datum/power/changeling/powerinstances = list()
|
||||
|
||||
/datum/power //Could be used by other antags too
|
||||
var/name = "Power"
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
|
||||
// HIVE MIND UPLOAD/DOWNLOAD DNA
|
||||
|
||||
var/list/datum/dna/hivemind_bank = list()
|
||||
var/global/list/datum/dna/hivemind_bank = list()
|
||||
|
||||
/mob/proc/changeling_hiveupload()
|
||||
set category = "Changeling"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
//This file was auto-corrected by findeclaration.exe on 25.5.2012 20:42:32
|
||||
|
||||
var/cultwords = list()
|
||||
var/runedec = 0
|
||||
var/global/cultwords = list()
|
||||
var/global/runedec = 0
|
||||
var/global/list/engwords = list("travel", "blood", "join", "hell", "destroy", "technology", "self", "see", "other", "hide")
|
||||
var/global/list/rnwords = list("ire","ego","nahlizet","certum","veri","jatkaa","mgar","balaq", "karazet", "geeri")
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
var/list/sacrificed = list()
|
||||
var/global/list/sacrificed = list()
|
||||
|
||||
/obj/effect/rune/cultify()
|
||||
return
|
||||
|
||||
@@ -98,8 +98,8 @@
|
||||
if(15)
|
||||
communications_blackout()
|
||||
*/
|
||||
var/eventchance = 10 // Percent chance per 5 minutes.
|
||||
var/hadevent = 0
|
||||
var/global/eventchance = 10 // Percent chance per 5 minutes.
|
||||
var/global/hadevent = 0
|
||||
|
||||
/proc/appendicitis()
|
||||
for(var/mob/living/carbon/human/H in shuffle(living_mob_list))
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
/var/const/meteor_wave_delay = 625 //minimum wait between waves in tenths of seconds
|
||||
var/global/const/meteor_wave_delay = 625 //minimum wait between waves in tenths of seconds
|
||||
//set to at least 100 unless you want evarr ruining every round
|
||||
|
||||
//Meteors probability of spawning during a given wave
|
||||
|
||||
//for space dust event
|
||||
/var/list/meteors_dust = list(/obj/effect/meteor/dust)
|
||||
var/global/list/meteors_dust = list(/obj/effect/meteor/dust)
|
||||
|
||||
//for normal meteor event
|
||||
/var/list/meteors_normal = list(
|
||||
var/global/list/meteors_normal = list(
|
||||
/obj/effect/meteor/dust=3,
|
||||
/obj/effect/meteor/medium=5,
|
||||
/obj/effect/meteor/medium/spalling = 3,
|
||||
@@ -17,7 +17,7 @@
|
||||
)
|
||||
|
||||
//for threatening meteor event
|
||||
/var/list/meteors_threatening = list(
|
||||
var/global/list/meteors_threatening = list(
|
||||
/obj/effect/meteor/medium=3,
|
||||
/obj/effect/meteor/medium/spalling = 2,
|
||||
/obj/effect/meteor/big=10,
|
||||
@@ -26,7 +26,7 @@
|
||||
/obj/effect/meteor/emp=3)
|
||||
|
||||
//for catastrophic meteor event
|
||||
/var/list/meteors_catastrophic = list(
|
||||
var/global/list/meteors_catastrophic = list(
|
||||
/obj/effect/meteor/medium=2,
|
||||
/obj/effect/meteor/medium/spalling = 3,
|
||||
/obj/effect/meteor/big=75,
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
MERCENARY ROUNDTYPE
|
||||
*/
|
||||
|
||||
var/list/nuke_disks = list()
|
||||
var/global/list/nuke_disks = list()
|
||||
|
||||
/datum/game_mode/nuclear
|
||||
name = "Mercenary"
|
||||
|
||||
@@ -423,7 +423,7 @@ var/global/list/all_objectives = list()
|
||||
var/obj/item/steal_target
|
||||
var/target_name
|
||||
|
||||
var/global/possible_items[] = list(
|
||||
var/static/possible_items[] = list(
|
||||
"the Site Manager's antique laser gun" = /obj/item/gun/energy/captain,
|
||||
"a hand teleporter" = /obj/item/hand_tele,
|
||||
"an RCD" = /obj/item/rcd,
|
||||
@@ -446,8 +446,7 @@ var/global/list/all_objectives = list()
|
||||
"an ablative armor vest" = /obj/item/clothing/suit/armor/laserproof,
|
||||
)
|
||||
|
||||
var/global/possible_items_special[] = list(
|
||||
/*"nuclear authentication disk" = /obj/item/disk/nuclear,*///Broken with the change to nuke disk making it respawn on z level change.
|
||||
var/static/possible_items_special[] = list(
|
||||
"nuclear gun" = /obj/item/gun/energy/gun/nuclear,
|
||||
"diamond drill" = /obj/item/pickaxe/diamonddrill,
|
||||
"bag of holding" = /obj/item/storage/backpack/holding,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
//This file was auto-corrected by findeclaration.exe on 25.5.2012 20:42:31
|
||||
|
||||
var/hsboxspawn = 1
|
||||
var/list
|
||||
var/global/hsboxspawn = 1
|
||||
var/global/list
|
||||
hrefs = list(
|
||||
"hsbsuit" = "Suit Up (Space Travel Gear)",
|
||||
"hsbmetal" = "Spawn 50 Metal",
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
#define UTILITY_SPELLS "Utility"
|
||||
#define SUPPORT_SPELLS "Support"
|
||||
|
||||
var/list/all_technomancer_spells = typesof(/datum/technomancer/spell) - /datum/technomancer/spell
|
||||
var/list/all_technomancer_equipment = typesof(/datum/technomancer/equipment) - /datum/technomancer/equipment
|
||||
var/list/all_technomancer_consumables = typesof(/datum/technomancer/consumable) - /datum/technomancer/consumable
|
||||
var/list/all_technomancer_assistance = typesof(/datum/technomancer/assistance) - /datum/technomancer/assistance
|
||||
var/global/list/all_technomancer_spells = typesof(/datum/technomancer/spell) - /datum/technomancer/spell
|
||||
var/global/list/all_technomancer_equipment = typesof(/datum/technomancer/equipment) - /datum/technomancer/equipment
|
||||
var/global/list/all_technomancer_consumables = typesof(/datum/technomancer/consumable) - /datum/technomancer/consumable
|
||||
var/global/list/all_technomancer_assistance = typesof(/datum/technomancer/assistance) - /datum/technomancer/assistance
|
||||
|
||||
/datum/technomancer
|
||||
var/name = "technomancer thing"
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
// This stores a ref to all important items that belong to a Technomancer, in case of theft. Used by the spell below.
|
||||
// I feel dirty for adding yet another global list used by one thing, but the only alternative is to loop through world, and yeahhh.
|
||||
var/list/technomancer_belongings = list()
|
||||
var/global/list/technomancer_belongings = list()
|
||||
|
||||
/obj/item/spell/track
|
||||
name = "track"
|
||||
|
||||
@@ -65,7 +65,7 @@
|
||||
if("Supreme Commander")
|
||||
return get_all_centcom_access()
|
||||
|
||||
/var/list/datum/access/priv_all_access_datums
|
||||
var/global/list/datum/access/priv_all_access_datums
|
||||
/proc/get_all_access_datums()
|
||||
if(!priv_all_access_datums)
|
||||
priv_all_access_datums = init_subtypes(/datum/access)
|
||||
@@ -73,7 +73,7 @@
|
||||
|
||||
return priv_all_access_datums
|
||||
|
||||
/var/list/datum/access/priv_all_access_datums_id
|
||||
var/global/list/datum/access/priv_all_access_datums_id
|
||||
/proc/get_all_access_datums_by_id()
|
||||
if(!priv_all_access_datums_id)
|
||||
priv_all_access_datums_id = list()
|
||||
@@ -82,7 +82,7 @@
|
||||
|
||||
return priv_all_access_datums_id
|
||||
|
||||
/var/list/datum/access/priv_all_access_datums_region
|
||||
var/global/list/datum/access/priv_all_access_datums_region
|
||||
/proc/get_all_access_datums_by_region()
|
||||
if(!priv_all_access_datums_region)
|
||||
priv_all_access_datums_region = list()
|
||||
@@ -100,7 +100,7 @@
|
||||
L += A.id
|
||||
return L
|
||||
|
||||
/var/list/priv_all_access
|
||||
var/global/list/priv_all_access
|
||||
/proc/get_all_accesses()
|
||||
RETURN_TYPE(/list)
|
||||
if(!priv_all_access)
|
||||
@@ -108,7 +108,7 @@
|
||||
|
||||
return priv_all_access
|
||||
|
||||
/var/list/priv_station_access
|
||||
var/global/list/priv_station_access
|
||||
/proc/get_all_station_access()
|
||||
RETURN_TYPE(/list)
|
||||
if(!priv_station_access)
|
||||
@@ -116,7 +116,7 @@
|
||||
|
||||
return priv_station_access
|
||||
|
||||
/var/list/priv_centcom_access
|
||||
var/global/list/priv_centcom_access
|
||||
/proc/get_all_centcom_access()
|
||||
RETURN_TYPE(/list)
|
||||
if(!priv_centcom_access)
|
||||
@@ -124,7 +124,7 @@
|
||||
|
||||
return priv_centcom_access
|
||||
|
||||
/var/list/priv_syndicate_access
|
||||
var/global/list/priv_syndicate_access
|
||||
/proc/get_all_syndicate_access()
|
||||
RETURN_TYPE(/list)
|
||||
if(!priv_syndicate_access)
|
||||
@@ -132,7 +132,7 @@
|
||||
|
||||
return priv_syndicate_access
|
||||
|
||||
/var/list/priv_private_access
|
||||
var/global/list/priv_private_access
|
||||
/proc/get_all_private_access()
|
||||
RETURN_TYPE(/list)
|
||||
if(!priv_private_access)
|
||||
@@ -140,7 +140,7 @@
|
||||
|
||||
return priv_syndicate_access
|
||||
|
||||
/var/list/priv_region_access
|
||||
var/global/list/priv_region_access
|
||||
/proc/get_region_accesses(var/code)
|
||||
if(code == ACCESS_REGION_ALL)
|
||||
return get_all_station_access()
|
||||
|
||||
@@ -10,253 +10,253 @@
|
||||
/*****************
|
||||
* Station access *
|
||||
*****************/
|
||||
/var/const/access_security = 1
|
||||
var/global/const/access_security = 1
|
||||
/datum/access/security
|
||||
id = access_security
|
||||
desc = "Security Equipment"
|
||||
region = ACCESS_REGION_SECURITY
|
||||
|
||||
/var/const/access_brig = 2 // Brig timers and permabrig
|
||||
var/global/const/access_brig = 2 // Brig timers and permabrig
|
||||
/datum/access/holding
|
||||
id = access_brig
|
||||
desc = "Holding Cells"
|
||||
region = ACCESS_REGION_SECURITY
|
||||
|
||||
/var/const/access_armory = 3
|
||||
var/global/const/access_armory = 3
|
||||
/datum/access/armory
|
||||
id = access_armory
|
||||
desc = "Armory"
|
||||
region = ACCESS_REGION_SECURITY
|
||||
|
||||
/var/const/access_forensics_lockers = 4
|
||||
var/global/const/access_forensics_lockers = 4
|
||||
/datum/access/forensics_lockers
|
||||
id = access_forensics_lockers
|
||||
desc = "Forensics"
|
||||
region = ACCESS_REGION_SECURITY
|
||||
|
||||
/var/const/access_medical = 5
|
||||
var/global/const/access_medical = 5
|
||||
/datum/access/medical
|
||||
id = access_medical
|
||||
desc = "Medical"
|
||||
region = ACCESS_REGION_MEDBAY
|
||||
|
||||
/var/const/access_morgue = 6
|
||||
var/global/const/access_morgue = 6
|
||||
/datum/access/morgue
|
||||
id = access_morgue
|
||||
desc = "Morgue"
|
||||
region = ACCESS_REGION_MEDBAY
|
||||
|
||||
/var/const/access_tox = 7
|
||||
var/global/const/access_tox = 7
|
||||
/datum/access/tox
|
||||
id = access_tox
|
||||
desc = "R&D Lab"
|
||||
region = ACCESS_REGION_RESEARCH
|
||||
|
||||
/var/const/access_tox_storage = 8
|
||||
var/global/const/access_tox_storage = 8
|
||||
/datum/access/tox_storage
|
||||
id = access_tox_storage
|
||||
desc = "Toxins Lab"
|
||||
region = ACCESS_REGION_RESEARCH
|
||||
|
||||
/var/const/access_genetics = 9
|
||||
var/global/const/access_genetics = 9
|
||||
/datum/access/genetics
|
||||
id = access_genetics
|
||||
desc = "Genetics Lab"
|
||||
region = ACCESS_REGION_MEDBAY
|
||||
|
||||
/var/const/access_engine = 10
|
||||
var/global/const/access_engine = 10
|
||||
/datum/access/engine
|
||||
id = access_engine
|
||||
desc = "Engineering"
|
||||
region = ACCESS_REGION_ENGINEERING
|
||||
|
||||
/var/const/access_engine_equip = 11
|
||||
var/global/const/access_engine_equip = 11
|
||||
/datum/access/engine_equip
|
||||
id = access_engine_equip
|
||||
desc = "Engine Room"
|
||||
region = ACCESS_REGION_ENGINEERING
|
||||
|
||||
/var/const/access_maint_tunnels = 12
|
||||
var/global/const/access_maint_tunnels = 12
|
||||
/datum/access/maint_tunnels
|
||||
id = access_maint_tunnels
|
||||
desc = "Maintenance"
|
||||
region = ACCESS_REGION_ENGINEERING
|
||||
|
||||
/var/const/access_external_airlocks = 13
|
||||
var/global/const/access_external_airlocks = 13
|
||||
/datum/access/external_airlocks
|
||||
id = access_external_airlocks
|
||||
desc = "External Airlocks"
|
||||
region = ACCESS_REGION_ENGINEERING
|
||||
|
||||
/var/const/access_emergency_storage = 14
|
||||
var/global/const/access_emergency_storage = 14
|
||||
/datum/access/emergency_storage
|
||||
id = access_emergency_storage
|
||||
desc = "Emergency Storage"
|
||||
region = ACCESS_REGION_ENGINEERING
|
||||
|
||||
/var/const/access_change_ids = 15
|
||||
var/global/const/access_change_ids = 15
|
||||
/datum/access/change_ids
|
||||
id = access_change_ids
|
||||
desc = "ID Computer"
|
||||
region = ACCESS_REGION_COMMAND
|
||||
|
||||
/var/const/access_ai_upload = 16
|
||||
var/global/const/access_ai_upload = 16
|
||||
/datum/access/ai_upload
|
||||
id = access_ai_upload
|
||||
desc = "AI Upload"
|
||||
region = ACCESS_REGION_COMMAND
|
||||
|
||||
/var/const/access_teleporter = 17
|
||||
var/global/const/access_teleporter = 17
|
||||
/datum/access/teleporter
|
||||
id = access_teleporter
|
||||
desc = "Teleporter"
|
||||
region = ACCESS_REGION_COMMAND
|
||||
|
||||
/var/const/access_eva = 18
|
||||
var/global/const/access_eva = 18
|
||||
/datum/access/eva
|
||||
id = access_eva
|
||||
desc = "EVA"
|
||||
region = ACCESS_REGION_COMMAND
|
||||
|
||||
/var/const/access_heads = 19
|
||||
var/global/const/access_heads = 19
|
||||
/datum/access/heads
|
||||
id = access_heads
|
||||
desc = "Bridge"
|
||||
region = ACCESS_REGION_COMMAND
|
||||
|
||||
/var/const/access_captain = 20
|
||||
var/global/const/access_captain = 20
|
||||
/datum/access/captain
|
||||
id = access_captain
|
||||
desc = "Site Manager"
|
||||
region = ACCESS_REGION_COMMAND
|
||||
|
||||
/var/const/access_all_personal_lockers = 21
|
||||
var/global/const/access_all_personal_lockers = 21
|
||||
/datum/access/all_personal_lockers
|
||||
id = access_all_personal_lockers
|
||||
desc = "Personal Lockers"
|
||||
region = ACCESS_REGION_COMMAND
|
||||
|
||||
/var/const/access_chapel_office = 22
|
||||
var/global/const/access_chapel_office = 22
|
||||
/datum/access/chapel_office
|
||||
id = access_chapel_office
|
||||
desc = "Chapel Office"
|
||||
region = ACCESS_REGION_GENERAL
|
||||
|
||||
/var/const/access_tech_storage = 23
|
||||
var/global/const/access_tech_storage = 23
|
||||
/datum/access/tech_storage
|
||||
id = access_tech_storage
|
||||
desc = "Technical Storage"
|
||||
region = ACCESS_REGION_ENGINEERING
|
||||
|
||||
/var/const/access_atmospherics = 24
|
||||
var/global/const/access_atmospherics = 24
|
||||
/datum/access/atmospherics
|
||||
id = access_atmospherics
|
||||
desc = "Atmospherics"
|
||||
region = ACCESS_REGION_ENGINEERING
|
||||
|
||||
/var/const/access_bar = 25
|
||||
var/global/const/access_bar = 25
|
||||
/datum/access/bar
|
||||
id = access_bar
|
||||
desc = "Bar"
|
||||
region = ACCESS_REGION_GENERAL
|
||||
|
||||
/var/const/access_janitor = 26
|
||||
var/global/const/access_janitor = 26
|
||||
/datum/access/janitor
|
||||
id = access_janitor
|
||||
desc = "Custodial Closet"
|
||||
region = ACCESS_REGION_GENERAL
|
||||
|
||||
/var/const/access_crematorium = 27
|
||||
var/global/const/access_crematorium = 27
|
||||
/datum/access/crematorium
|
||||
id = access_crematorium
|
||||
desc = "Crematorium"
|
||||
region = ACCESS_REGION_GENERAL
|
||||
|
||||
/var/const/access_kitchen = 28
|
||||
var/global/const/access_kitchen = 28
|
||||
/datum/access/kitchen
|
||||
id = access_kitchen
|
||||
desc = "Kitchen"
|
||||
region = ACCESS_REGION_GENERAL
|
||||
|
||||
/var/const/access_robotics = 29
|
||||
var/global/const/access_robotics = 29
|
||||
/datum/access/robotics
|
||||
id = access_robotics
|
||||
desc = "Robotics"
|
||||
region = ACCESS_REGION_RESEARCH
|
||||
|
||||
/var/const/access_rd = 30
|
||||
var/global/const/access_rd = 30
|
||||
/datum/access/rd
|
||||
id = access_rd
|
||||
desc = "Research Director"
|
||||
region = ACCESS_REGION_RESEARCH
|
||||
|
||||
/var/const/access_cargo = 31
|
||||
var/global/const/access_cargo = 31
|
||||
/datum/access/cargo
|
||||
id = access_cargo
|
||||
desc = "Cargo Bay"
|
||||
region = ACCESS_REGION_SUPPLY
|
||||
|
||||
/var/const/access_construction = 32
|
||||
var/global/const/access_construction = 32
|
||||
/datum/access/construction
|
||||
id = access_construction
|
||||
desc = "Construction Areas"
|
||||
region = ACCESS_REGION_ENGINEERING
|
||||
|
||||
/var/const/access_chemistry = 33
|
||||
var/global/const/access_chemistry = 33
|
||||
/datum/access/chemistry
|
||||
id = access_chemistry
|
||||
desc = "Chemistry Lab"
|
||||
region = ACCESS_REGION_MEDBAY
|
||||
|
||||
/var/const/access_cargo_bot = 34
|
||||
var/global/const/access_cargo_bot = 34
|
||||
/datum/access/cargo_bot
|
||||
id = access_cargo_bot
|
||||
desc = "Cargo Bot Delivery"
|
||||
region = ACCESS_REGION_SUPPLY
|
||||
|
||||
/var/const/access_hydroponics = 35
|
||||
var/global/const/access_hydroponics = 35
|
||||
/datum/access/hydroponics
|
||||
id = access_hydroponics
|
||||
desc = "Hydroponics"
|
||||
region = ACCESS_REGION_GENERAL
|
||||
|
||||
/var/const/access_manufacturing = 36
|
||||
var/global/const/access_manufacturing = 36
|
||||
/datum/access/manufacturing
|
||||
id = access_manufacturing
|
||||
desc = "Manufacturing"
|
||||
access_type = ACCESS_TYPE_NONE
|
||||
|
||||
/var/const/access_library = 37
|
||||
var/global/const/access_library = 37
|
||||
/datum/access/library
|
||||
id = access_library
|
||||
desc = "Library"
|
||||
region = ACCESS_REGION_GENERAL
|
||||
|
||||
/var/const/access_lawyer = 38
|
||||
var/global/const/access_lawyer = 38
|
||||
/datum/access/lawyer
|
||||
id = access_lawyer
|
||||
desc = "Internal Affairs"
|
||||
region = ACCESS_REGION_COMMAND
|
||||
|
||||
/var/const/access_virology = 39
|
||||
var/global/const/access_virology = 39
|
||||
/datum/access/virology
|
||||
id = access_virology
|
||||
desc = "Virology"
|
||||
region = ACCESS_REGION_MEDBAY
|
||||
|
||||
/var/const/access_cmo = 40
|
||||
var/global/const/access_cmo = 40
|
||||
/datum/access/cmo
|
||||
id = access_cmo
|
||||
desc = "Chief Medical Officer"
|
||||
region = ACCESS_REGION_COMMAND
|
||||
|
||||
/var/const/access_qm = 41
|
||||
var/global/const/access_qm = 41
|
||||
/datum/access/qm
|
||||
id = access_qm
|
||||
desc = "Quartermaster"
|
||||
region = ACCESS_REGION_SUPPLY
|
||||
|
||||
/var/const/access_network = 42
|
||||
var/global/const/access_network = 42
|
||||
/datum/access/network
|
||||
id = access_network
|
||||
desc = "Station Network"
|
||||
@@ -265,7 +265,7 @@
|
||||
// /var/const/free_access_id = 43
|
||||
// /var/const/free_access_id = 44
|
||||
|
||||
/var/const/access_surgery = 45
|
||||
var/global/const/access_surgery = 45
|
||||
/datum/access/surgery
|
||||
id = access_surgery
|
||||
desc = "Surgery"
|
||||
@@ -273,25 +273,25 @@
|
||||
|
||||
// /var/const/free_access_id = 46
|
||||
|
||||
/var/const/access_research = 47
|
||||
var/global/const/access_research = 47
|
||||
/datum/access/research
|
||||
id = access_research
|
||||
desc = "Science"
|
||||
region = ACCESS_REGION_RESEARCH
|
||||
|
||||
/var/const/access_mining = 48
|
||||
var/global/const/access_mining = 48
|
||||
/datum/access/mining
|
||||
id = access_mining
|
||||
desc = "Mining"
|
||||
region = ACCESS_REGION_SUPPLY
|
||||
|
||||
/var/const/access_mining_office = 49
|
||||
var/global/const/access_mining_office = 49
|
||||
/datum/access/mining_office
|
||||
id = access_mining_office
|
||||
desc = "Mining Office"
|
||||
access_type = ACCESS_TYPE_NONE
|
||||
|
||||
/var/const/access_mailsorting = 50
|
||||
var/global/const/access_mailsorting = 50
|
||||
/datum/access/mailsorting
|
||||
id = access_mailsorting
|
||||
desc = "Cargo Office"
|
||||
@@ -300,85 +300,85 @@
|
||||
// /var/const/free_access_id = 51
|
||||
// /var/const/free_access_id = 52
|
||||
|
||||
/var/const/access_heads_vault = 53
|
||||
var/global/const/access_heads_vault = 53
|
||||
/datum/access/heads_vault
|
||||
id = access_heads_vault
|
||||
desc = "Main Vault"
|
||||
region = ACCESS_REGION_COMMAND
|
||||
|
||||
/var/const/access_mining_station = 54
|
||||
var/global/const/access_mining_station = 54
|
||||
/datum/access/mining_station
|
||||
id = access_mining_station
|
||||
desc = "Mining EVA"
|
||||
region = ACCESS_REGION_SUPPLY
|
||||
|
||||
/var/const/access_xenobiology = 55
|
||||
var/global/const/access_xenobiology = 55
|
||||
/datum/access/xenobiology
|
||||
id = access_xenobiology
|
||||
desc = "Xenobiology Lab"
|
||||
region = ACCESS_REGION_RESEARCH
|
||||
|
||||
/var/const/access_ce = 56
|
||||
var/global/const/access_ce = 56
|
||||
/datum/access/ce
|
||||
id = access_ce
|
||||
desc = "Chief Engineer"
|
||||
region = ACCESS_REGION_ENGINEERING
|
||||
|
||||
/var/const/access_hop = 57
|
||||
var/global/const/access_hop = 57
|
||||
/datum/access/hop
|
||||
id = access_hop
|
||||
desc = "Head of Personnel"
|
||||
region = ACCESS_REGION_COMMAND
|
||||
|
||||
/var/const/access_hos = 58
|
||||
var/global/const/access_hos = 58
|
||||
/datum/access/hos
|
||||
id = access_hos
|
||||
desc = "Head of Security"
|
||||
region = ACCESS_REGION_SECURITY
|
||||
|
||||
/var/const/access_RC_announce = 59 //Request console announcements
|
||||
var/global/const/access_RC_announce = 59 //Request console announcements
|
||||
/datum/access/RC_announce
|
||||
id = access_RC_announce
|
||||
desc = "RC Announcements"
|
||||
region = ACCESS_REGION_COMMAND
|
||||
|
||||
/var/const/access_keycard_auth = 60 //Used for events which require at least two people to confirm them
|
||||
var/global/const/access_keycard_auth = 60 //Used for events which require at least two people to confirm them
|
||||
/datum/access/keycard_auth
|
||||
id = access_keycard_auth
|
||||
desc = "Keycode Auth. Device"
|
||||
region = ACCESS_REGION_COMMAND
|
||||
|
||||
/var/const/access_tcomsat = 61 // has access to the entire telecomms satellite / machinery
|
||||
var/global/const/access_tcomsat = 61 // has access to the entire telecomms satellite / machinery
|
||||
/datum/access/tcomsat
|
||||
id = access_tcomsat
|
||||
desc = "Telecommunications"
|
||||
region = ACCESS_REGION_COMMAND
|
||||
|
||||
/var/const/access_gateway = 62
|
||||
var/global/const/access_gateway = 62
|
||||
/datum/access/gateway
|
||||
id = access_gateway
|
||||
desc = "Gateway"
|
||||
region = ACCESS_REGION_COMMAND
|
||||
|
||||
/var/const/access_sec_doors = 63 // Security front doors
|
||||
var/global/const/access_sec_doors = 63 // Security front doors
|
||||
/datum/access/sec_doors
|
||||
id = access_sec_doors
|
||||
desc = "Security"
|
||||
region = ACCESS_REGION_SECURITY
|
||||
|
||||
/var/const/access_psychiatrist = 64 // Psychiatrist's office
|
||||
var/global/const/access_psychiatrist = 64 // Psychiatrist's office
|
||||
/datum/access/psychiatrist
|
||||
id = access_psychiatrist
|
||||
desc = "Psychiatrist's Office"
|
||||
region = ACCESS_REGION_MEDBAY
|
||||
|
||||
/var/const/access_xenoarch = 65
|
||||
var/global/const/access_xenoarch = 65
|
||||
/datum/access/xenoarch
|
||||
id = access_xenoarch
|
||||
desc = "Xenoarchaeology"
|
||||
region = ACCESS_REGION_RESEARCH
|
||||
|
||||
/var/const/access_medical_equip = 66
|
||||
var/global/const/access_medical_equip = 66
|
||||
/datum/access/medical_equip
|
||||
id = access_medical_equip
|
||||
desc = "Medical Equipment"
|
||||
@@ -387,55 +387,55 @@
|
||||
/******************
|
||||
* Central Command *
|
||||
******************/
|
||||
/var/const/access_cent_general = 101//General facilities.
|
||||
var/global/const/access_cent_general = 101//General facilities.
|
||||
/datum/access/cent_general
|
||||
id = access_cent_general
|
||||
desc = "General Facilities"
|
||||
access_type = ACCESS_TYPE_CENTCOM
|
||||
|
||||
/var/const/access_cent_thunder = 102//Thunderdome.
|
||||
var/global/const/access_cent_thunder = 102//Thunderdome.
|
||||
/datum/access/cent_thunder
|
||||
id = access_cent_thunder
|
||||
desc = "Entertainment Facilities"
|
||||
access_type = ACCESS_TYPE_CENTCOM
|
||||
|
||||
/var/const/access_cent_specops = 103//Special Ops.
|
||||
var/global/const/access_cent_specops = 103//Special Ops.
|
||||
/datum/access/cent_specops
|
||||
id = access_cent_specops
|
||||
desc = "Emergency Response Team Prep"
|
||||
access_type = ACCESS_TYPE_CENTCOM
|
||||
|
||||
/var/const/access_cent_medical = 104//Medical/Research
|
||||
var/global/const/access_cent_medical = 104//Medical/Research
|
||||
/datum/access/cent_medical
|
||||
id = access_cent_medical
|
||||
desc = "Medical Facilities"
|
||||
access_type = ACCESS_TYPE_CENTCOM
|
||||
|
||||
/var/const/access_cent_living = 105//Living quarters.
|
||||
var/global/const/access_cent_living = 105//Living quarters.
|
||||
/datum/access/cent_living
|
||||
id = access_cent_living
|
||||
desc = "Dormitories"
|
||||
access_type = ACCESS_TYPE_CENTCOM
|
||||
|
||||
/var/const/access_cent_storage = 106//Generic storage areas.
|
||||
var/global/const/access_cent_storage = 106//Generic storage areas.
|
||||
/datum/access/cent_storage
|
||||
id = access_cent_storage
|
||||
desc = "Storage"
|
||||
access_type = ACCESS_TYPE_CENTCOM
|
||||
|
||||
/var/const/access_cent_teleporter = 107//Teleporter.
|
||||
var/global/const/access_cent_teleporter = 107//Teleporter.
|
||||
/datum/access/cent_teleporter
|
||||
id = access_cent_teleporter
|
||||
desc = "Central Command Teleporter"
|
||||
access_type = ACCESS_TYPE_CENTCOM
|
||||
|
||||
/var/const/access_cent_creed = 108//Creed's office.
|
||||
var/global/const/access_cent_creed = 108//Creed's office.
|
||||
/datum/access/cent_creed
|
||||
id = access_cent_creed
|
||||
desc = "Emergency Response Team Administration"
|
||||
access_type = ACCESS_TYPE_CENTCOM
|
||||
|
||||
/var/const/access_cent_captain = 109//Captain's office/ID comp/AI.
|
||||
var/global/const/access_cent_captain = 109//Captain's office/ID comp/AI.
|
||||
/datum/access/cent_captain
|
||||
id = access_cent_captain
|
||||
desc = "Central Command Administration"
|
||||
@@ -444,7 +444,7 @@
|
||||
/***************
|
||||
* Antag access *
|
||||
***************/
|
||||
/var/const/access_syndicate = 150//General Syndicate Access
|
||||
var/global/const/access_syndicate = 150//General Syndicate Access
|
||||
/datum/access/syndicate
|
||||
id = access_syndicate
|
||||
access_type = ACCESS_TYPE_SYNDICATE
|
||||
@@ -452,23 +452,23 @@
|
||||
/*******
|
||||
* Misc *
|
||||
*******/
|
||||
/var/const/access_synth = 199
|
||||
var/global/const/access_synth = 199
|
||||
/datum/access/synthetic
|
||||
id = access_synth
|
||||
desc = "Synthetic"
|
||||
access_type = ACCESS_TYPE_NONE
|
||||
|
||||
/var/const/access_crate_cash = 200
|
||||
var/global/const/access_crate_cash = 200
|
||||
/datum/access/crate_cash
|
||||
id = access_crate_cash
|
||||
access_type = ACCESS_TYPE_NONE
|
||||
|
||||
/var/const/access_trader = 160//General Beruang Trader Access
|
||||
var/global/const/access_trader = 160//General Beruang Trader Access
|
||||
/datum/access/trader
|
||||
id = access_trader
|
||||
access_type = ACCESS_TYPE_PRIVATE
|
||||
|
||||
/var/const/access_alien = 300 // For things like crashed ships.
|
||||
var/global/const/access_alien = 300 // For things like crashed ships.
|
||||
/datum/access/alien
|
||||
id = access_alien
|
||||
desc = "#%_^&*@!"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
var/datum/announcement/minor/captain_announcement = new(do_newscast = 1)
|
||||
var/global/datum/announcement/minor/captain_announcement = new(do_newscast = 1)
|
||||
|
||||
//////////////////////////////////
|
||||
// Captain
|
||||
|
||||
@@ -1,48 +1,48 @@
|
||||
|
||||
var/const/ENGSEC =(1<<0)
|
||||
var/global/const/ENGSEC =(1<<0)
|
||||
|
||||
var/const/CAPTAIN =(1<<0)
|
||||
var/const/HOS =(1<<1)
|
||||
var/const/WARDEN =(1<<2)
|
||||
var/const/DETECTIVE =(1<<3)
|
||||
var/const/OFFICER =(1<<4)
|
||||
var/const/CHIEF =(1<<5)
|
||||
var/const/ENGINEER =(1<<6)
|
||||
var/const/ATMOSTECH =(1<<7)
|
||||
var/const/AI =(1<<8)
|
||||
var/const/CYBORG =(1<<9)
|
||||
var/global/const/CAPTAIN =(1<<0)
|
||||
var/global/const/HOS =(1<<1)
|
||||
var/global/const/WARDEN =(1<<2)
|
||||
var/global/const/DETECTIVE =(1<<3)
|
||||
var/global/const/OFFICER =(1<<4)
|
||||
var/global/const/CHIEF =(1<<5)
|
||||
var/global/const/ENGINEER =(1<<6)
|
||||
var/global/const/ATMOSTECH =(1<<7)
|
||||
var/global/const/AI =(1<<8)
|
||||
var/global/const/CYBORG =(1<<9)
|
||||
|
||||
|
||||
var/const/MEDSCI =(1<<1)
|
||||
var/global/const/MEDSCI =(1<<1)
|
||||
|
||||
var/const/RD =(1<<0)
|
||||
var/const/SCIENTIST =(1<<1)
|
||||
var/const/CHEMIST =(1<<2)
|
||||
var/const/CMO =(1<<3)
|
||||
var/const/DOCTOR =(1<<4)
|
||||
var/const/GENETICIST =(1<<5)
|
||||
var/const/VIROLOGIST =(1<<6)
|
||||
var/const/PSYCHIATRIST =(1<<7)
|
||||
var/const/ROBOTICIST =(1<<8)
|
||||
var/const/XENOBIOLOGIST =(1<<9)
|
||||
var/const/PARAMEDIC =(1<<10)
|
||||
var/global/const/RD =(1<<0)
|
||||
var/global/const/SCIENTIST =(1<<1)
|
||||
var/global/const/CHEMIST =(1<<2)
|
||||
var/global/const/CMO =(1<<3)
|
||||
var/global/const/DOCTOR =(1<<4)
|
||||
var/global/const/GENETICIST =(1<<5)
|
||||
var/global/const/VIROLOGIST =(1<<6)
|
||||
var/global/const/PSYCHIATRIST =(1<<7)
|
||||
var/global/const/ROBOTICIST =(1<<8)
|
||||
var/global/const/XENOBIOLOGIST =(1<<9)
|
||||
var/global/const/PARAMEDIC =(1<<10)
|
||||
|
||||
|
||||
var/const/CIVILIAN =(1<<2)
|
||||
var/global/const/CIVILIAN =(1<<2)
|
||||
|
||||
var/const/HOP =(1<<0)
|
||||
var/const/BARTENDER =(1<<1)
|
||||
var/const/BOTANIST =(1<<2)
|
||||
var/const/CHEF =(1<<3)
|
||||
var/const/JANITOR =(1<<4)
|
||||
var/const/LIBRARIAN =(1<<5)
|
||||
var/const/QUARTERMASTER =(1<<6)
|
||||
var/const/CARGOTECH =(1<<7)
|
||||
var/const/MINER =(1<<8)
|
||||
var/const/LAWYER =(1<<9)
|
||||
var/const/CHAPLAIN =(1<<10)
|
||||
var/const/ASSISTANT =(1<<11)
|
||||
var/const/BRIDGE =(1<<12)
|
||||
var/global/const/HOP =(1<<0)
|
||||
var/global/const/BARTENDER =(1<<1)
|
||||
var/global/const/BOTANIST =(1<<2)
|
||||
var/global/const/CHEF =(1<<3)
|
||||
var/global/const/JANITOR =(1<<4)
|
||||
var/global/const/LIBRARIAN =(1<<5)
|
||||
var/global/const/QUARTERMASTER =(1<<6)
|
||||
var/global/const/CARGOTECH =(1<<7)
|
||||
var/global/const/MINER =(1<<8)
|
||||
var/global/const/LAWYER =(1<<9)
|
||||
var/global/const/CHAPLAIN =(1<<10)
|
||||
var/global/const/ASSISTANT =(1<<11)
|
||||
var/global/const/BRIDGE =(1<<12)
|
||||
|
||||
/proc/guest_jobbans(var/job)
|
||||
return ( (job in SSjob.get_job_titles_in_department(DEPARTMENT_COMMAND)) || (job in SSjob.get_job_titles_in_department(DEPARTMENT_SYNTHETIC)) || (job in SSjob.get_job_titles_in_department(DEPARTMENT_SECURITY)) )
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
var/list/whitelist = list()
|
||||
var/global/list/whitelist = list()
|
||||
|
||||
/hook/startup/proc/loadWhitelist()
|
||||
if(config.usewhitelist)
|
||||
@@ -14,7 +14,7 @@ var/list/whitelist = list()
|
||||
return FALSE
|
||||
return ("[M.ckey]" in whitelist)
|
||||
|
||||
/var/list/alien_whitelist = list()
|
||||
var/global/list/alien_whitelist = list()
|
||||
|
||||
/hook/startup/proc/loadAlienWhitelist()
|
||||
if(config.usealienwhitelist)
|
||||
@@ -73,7 +73,7 @@ var/list/whitelist = list()
|
||||
/proc/whitelist_overrides(mob/M)
|
||||
return !config.usealienwhitelist || check_rights(R_ADMIN|R_EVENT, 0, M)
|
||||
|
||||
/var/list/genemod_whitelist = list()
|
||||
var/global/list/genemod_whitelist = list()
|
||||
/hook/startup/proc/LoadGenemodWhitelist()
|
||||
global.genemod_whitelist = file2list("config/genemodwhitelist.txt")
|
||||
return TRUE
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
|
||||
var/jsonpath = "/home/bay12/public_html"
|
||||
var/dmepath = "/home/bay12/git/baystation12.dme"
|
||||
var/makejson = 1 //temp
|
||||
var/global/jsonpath = "/home/bay12/public_html"
|
||||
var/global/dmepath = "/home/bay12/git/baystation12.dme"
|
||||
var/global/makejson = 1 //temp
|
||||
/proc/makejson()
|
||||
|
||||
if(!makejson)
|
||||
|
||||
@@ -159,7 +159,7 @@
|
||||
idle_power_usage = 500 //internal circuitry, friction losses and stuff
|
||||
active_power_usage = 100000 //100 kW ~ 135 HP
|
||||
|
||||
var/global/gid = 1
|
||||
var/static/gid = 1
|
||||
var/id = 0
|
||||
|
||||
/obj/machinery/portable_atmospherics/powered/scrubber/huge/Initialize()
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
#define PRISON_STATION_AREATYPE "/area/shuttle/prison/station" //Type of the prison shuttle area for station
|
||||
#define PRISON_DOCK_AREATYPE "/area/shuttle/prison/prison" //Type of the prison shuttle area for dock
|
||||
|
||||
var/prison_shuttle_moving_to_station = 0
|
||||
var/prison_shuttle_moving_to_prison = 0
|
||||
var/prison_shuttle_at_station = 0
|
||||
var/prison_shuttle_can_send = 1
|
||||
var/prison_shuttle_time = 0
|
||||
var/prison_shuttle_timeleft = 0
|
||||
var/global/prison_shuttle_moving_to_station = 0
|
||||
var/global/prison_shuttle_moving_to_prison = 0
|
||||
var/global/prison_shuttle_at_station = 0
|
||||
var/global/prison_shuttle_can_send = 1
|
||||
var/global/prison_shuttle_time = 0
|
||||
var/global/prison_shuttle_timeleft = 0
|
||||
|
||||
/obj/machinery/computer/prison_shuttle
|
||||
name = "prison shuttle control console"
|
||||
|
||||
@@ -4,12 +4,12 @@
|
||||
#define SPECOPS_DOCK_AREATYPE "/area/shuttle/specops/centcom" //Type of the spec ops shuttle area for dock
|
||||
#define SPECOPS_RETURN_DELAY 600 //Time between the shuttle is capable of moving.
|
||||
|
||||
var/specops_shuttle_moving_to_station = 0
|
||||
var/specops_shuttle_moving_to_centcom = 0
|
||||
var/specops_shuttle_at_station = 0
|
||||
var/specops_shuttle_can_send = 1
|
||||
var/specops_shuttle_time = 0
|
||||
var/specops_shuttle_timeleft = 0
|
||||
var/global/specops_shuttle_moving_to_station = 0
|
||||
var/global/specops_shuttle_moving_to_centcom = 0
|
||||
var/global/specops_shuttle_at_station = 0
|
||||
var/global/specops_shuttle_can_send = 1
|
||||
var/global/specops_shuttle_time = 0
|
||||
var/global/specops_shuttle_timeleft = 0
|
||||
|
||||
/obj/machinery/computer/specops_shuttle
|
||||
name = "special operations shuttle control console"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
var/list/doppler_arrays = list()
|
||||
var/global/list/doppler_arrays = list()
|
||||
|
||||
/obj/machinery/doppler_array
|
||||
anchored = 1
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
var/list/floor_light_cache = list()
|
||||
var/global/list/floor_light_cache = list()
|
||||
|
||||
/obj/machinery/floor_light
|
||||
name = "floor light"
|
||||
|
||||
@@ -27,7 +27,7 @@ Possible to do for anyone motivated enough:
|
||||
#define RANGE_BASED 4
|
||||
#define AREA_BASED 6
|
||||
|
||||
var/const/HOLOPAD_MODE = RANGE_BASED
|
||||
var/global/const/HOLOPAD_MODE = RANGE_BASED
|
||||
|
||||
/obj/machinery/hologram/holopad
|
||||
name = "\improper AI holopad"
|
||||
|
||||
@@ -106,7 +106,7 @@ Class Procs:
|
||||
var/list/component_parts = null //list of all the parts used to build it, if made from certain kinds of frames.
|
||||
var/uid
|
||||
var/panel_open = 0
|
||||
var/global/gl_uid = 1
|
||||
var/static/gl_uid = 1
|
||||
var/clicksound // sound played on succesful interface. Just put it in the list of vars at the start.
|
||||
var/clickvol = 40 // volume
|
||||
var/interact_offline = 0 // Can the machine be interacted with while de-powered.
|
||||
|
||||
@@ -120,7 +120,7 @@
|
||||
|
||||
// PDA.new_news(annoncement)
|
||||
|
||||
var/datum/feed_network/news_network = new /datum/feed_network //The global news-network, which is coincidentally a global list.
|
||||
var/global/datum/feed_network/news_network = new /datum/feed_network //The global news-network, which is coincidentally a global list.
|
||||
|
||||
GLOBAL_LIST_BOILERPLATE(allCasters, /obj/machinery/newscaster)
|
||||
/obj/machinery/newscaster
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
var/bomb_set
|
||||
var/global/bomb_set
|
||||
|
||||
/obj/machinery/nuclearbomb
|
||||
name = "\improper Nuclear Fission Explosive"
|
||||
|
||||
@@ -17,10 +17,10 @@
|
||||
#define RCS_MESSAUTH 7 // Authentication before sending
|
||||
#define RCS_ANNOUNCE 8 // Send announcement
|
||||
|
||||
var/req_console_assistance = list()
|
||||
var/req_console_supplies = list()
|
||||
var/req_console_information = list()
|
||||
var/list/obj/machinery/requests_console/allConsoles = list()
|
||||
var/global/req_console_assistance = list()
|
||||
var/global/req_console_supplies = list()
|
||||
var/global/req_console_information = list()
|
||||
var/global/list/obj/machinery/requests_console/allConsoles = list()
|
||||
|
||||
/obj/machinery/requests_console
|
||||
name = "requests console"
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
overlay = over
|
||||
ckey = key
|
||||
|
||||
var/list/ai_status_emotions = list(
|
||||
var/global/list/ai_status_emotions = list(
|
||||
"Very Happy" = new /datum/ai_emotion("ai_veryhappy"),
|
||||
"Happy" = new /datum/ai_emotion("ai_happy"),
|
||||
"Neutral" = new /datum/ai_emotion("ai_neutral"),
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
They receive their message from a server after the message has been logged.
|
||||
*/
|
||||
|
||||
var/list/recentmessages = list() // global list of recent messages broadcasted : used to circumvent massive radio spam
|
||||
var/message_delay = 0 // To make sure restarting the recentmessages list is kept in sync
|
||||
var/global/list/recentmessages = list() // global list of recent messages broadcasted : used to circumvent massive radio spam
|
||||
var/global/message_delay = 0 // To make sure restarting the recentmessages list is kept in sync
|
||||
|
||||
/obj/machinery/telecomms/broadcaster
|
||||
name = "Subspace Broadcaster"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
var/list/word_to_uristrune_table = null
|
||||
var/global/list/word_to_uristrune_table = null
|
||||
|
||||
/proc/word_to_uristrune_bit(word)
|
||||
if(word_to_uristrune_table == null)
|
||||
@@ -57,7 +57,7 @@ var/list/word_to_uristrune_table = null
|
||||
return get_uristrune(bits, animated)
|
||||
|
||||
|
||||
var/list/uristrune_cache = list()
|
||||
var/global/list/uristrune_cache = list()
|
||||
|
||||
/proc/get_uristrune(symbol_bits, animated = 0)
|
||||
var/lookup = "[symbol_bits]-[animated]"
|
||||
|
||||
@@ -420,14 +420,13 @@
|
||||
/*
|
||||
* Egg
|
||||
*/
|
||||
/var/const //for the status var
|
||||
BURST = 0
|
||||
BURSTING = 1
|
||||
GROWING = 2
|
||||
GROWN = 3
|
||||
|
||||
MIN_GROWTH_TIME = 1800 //time it takes to grow a hugger
|
||||
MAX_GROWTH_TIME = 3000
|
||||
var/global/const/BURST = 0
|
||||
var/global/const/BURSTING = 1
|
||||
var/global/const/GROWING = 2
|
||||
var/global/const/GROWN = 3
|
||||
var/global/const/MIN_GROWTH_TIME = 1800 //time it takes to grow a hugger
|
||||
var/global/const/MAX_GROWTH_TIME = 3000
|
||||
|
||||
/obj/effect/alien/egg
|
||||
desc = "It looks like a weird egg"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
var/list/obj/effect/bump_teleporter/BUMP_TELEPORTERS = list()
|
||||
var/global/list/obj/effect/bump_teleporter/BUMP_TELEPORTERS = list()
|
||||
|
||||
/obj/effect/bump_teleporter
|
||||
name = "bump-teleporter"
|
||||
|
||||
@@ -8,9 +8,9 @@
|
||||
|
||||
|
||||
|
||||
var/list/explosion_turfs = list()
|
||||
var/global/list/explosion_turfs = list()
|
||||
|
||||
var/explosion_in_progress = 0
|
||||
var/global/explosion_in_progress = 0
|
||||
|
||||
|
||||
/proc/explosion_rec(turf/epicenter, power)
|
||||
|
||||
@@ -352,7 +352,7 @@
|
||||
return
|
||||
|
||||
//Defines which slots correspond to which slot flags
|
||||
var/list/global/slot_flags_enumeration = list(
|
||||
var/global/list/slot_flags_enumeration = list(
|
||||
"[slot_wear_mask]" = SLOT_MASK,
|
||||
"[slot_back]" = SLOT_BACK,
|
||||
"[slot_wear_suit]" = SLOT_OCLOTHING,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
var/list/GPS_list = list()
|
||||
var/global/list/GPS_list = list()
|
||||
|
||||
/obj/item/gps
|
||||
name = "global positioning system"
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
var/client/user_client //since making sure overlays are properly added and removed is pretty important, so we track the current user explicitly
|
||||
var/flicker = 0
|
||||
|
||||
var/global/list/overlay_cache = list() //cache recent overlays
|
||||
var/static/list/overlay_cache = list() //cache recent overlays
|
||||
|
||||
/obj/item/t_scanner/update_icon()
|
||||
icon_state = "t-ray[on]"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
var/datum/uplink_random_selection/default_uplink_selection = new/datum/uplink_random_selection/default()
|
||||
var/datum/uplink_random_selection/all_uplink_selection = new/datum/uplink_random_selection/all()
|
||||
var/global/datum/uplink_random_selection/default_uplink_selection = new/datum/uplink_random_selection/default()
|
||||
var/global/datum/uplink_random_selection/all_uplink_selection = new/datum/uplink_random_selection/all()
|
||||
|
||||
/datum/uplink_random_item
|
||||
var/uplink_item // The uplink item
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*****************Marker Beacons**************************/
|
||||
var/list/marker_beacon_colors = list(
|
||||
var/global/list/marker_beacon_colors = list(
|
||||
"Random" = FALSE, //not a true color, will pick a random color
|
||||
"Burgundy" = LIGHT_COLOR_FLARE,
|
||||
"Bronze" = LIGHT_COLOR_ORANGE,
|
||||
|
||||
@@ -112,7 +112,7 @@
|
||||
user.drop_l_hand()
|
||||
user.stop_pulling()
|
||||
|
||||
var/last_chew = 0
|
||||
var/global/last_chew = 0
|
||||
/mob/living/carbon/human/RestrainedClickOn(var/atom/A)
|
||||
if (A != src) return ..()
|
||||
if (last_chew + 26 > world.time) return
|
||||
|
||||
@@ -26,8 +26,8 @@
|
||||
return INITIALIZE_HINT_QDEL
|
||||
|
||||
|
||||
var/list/image/hazard_overlays
|
||||
var/list/tape_roll_applications = list()
|
||||
var/global/list/image/hazard_overlays
|
||||
var/global/list/tape_roll_applications = list()
|
||||
|
||||
/obj/item/tape
|
||||
name = "tape"
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Donut Box
|
||||
*/
|
||||
|
||||
var/list/random_weighted_donuts = list(
|
||||
var/global/list/random_weighted_donuts = list(
|
||||
/obj/item/reagent_containers/food/snacks/donut/plain = 5,
|
||||
/obj/item/reagent_containers/food/snacks/donut/plain/jelly = 5,
|
||||
/obj/item/reagent_containers/food/snacks/donut/pink = 4,
|
||||
@@ -101,4 +101,4 @@ var/list/random_weighted_donuts = list(
|
||||
|
||||
/obj/item/storage/box/wormcan/deluxe/update_icon(var/itemremoved = 0)
|
||||
if (contents.len == 0)
|
||||
icon_state = "wormcan_empty_deluxe"
|
||||
icon_state = "wormcan_empty_deluxe"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#define TANK_IDEAL_PRESSURE 1015 //Arbitrary.
|
||||
|
||||
var/list/global/tank_gauge_cache = list()
|
||||
var/global/list/tank_gauge_cache = list()
|
||||
|
||||
/obj/item/tank
|
||||
name = "tank"
|
||||
|
||||
@@ -44,8 +44,8 @@
|
||||
if(build_path)
|
||||
return new build_path(drop_location())
|
||||
|
||||
var/list/random_junk_
|
||||
var/list/random_useful_
|
||||
var/global/list/random_junk_
|
||||
var/global/list/random_useful_
|
||||
/proc/get_random_useful_type()
|
||||
if(!random_useful_)
|
||||
random_useful_ = subtypesof(/obj/item/pen/crayon)
|
||||
@@ -103,7 +103,7 @@ var/list/random_useful_
|
||||
// Multi Point Spawn
|
||||
// Selects one spawn point out of a group of points with the same ID and asks it to generate its items
|
||||
*/
|
||||
var/list/multi_point_spawns
|
||||
var/global/list/multi_point_spawns
|
||||
|
||||
/obj/random_multi
|
||||
name = "random object spawn point"
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
active_power_usage = 5
|
||||
var/interference = FALSE
|
||||
var/icon/plant = null
|
||||
var/global/list/possible_plants = list(
|
||||
var/static/list/possible_plants = list(
|
||||
"plant-1",
|
||||
"plant-10",
|
||||
"plant-09",
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
// the specific order matters to get a usable icon_state, it is
|
||||
// copied here so that, in the unlikely case that alldirs is changed,
|
||||
// this continues to work.
|
||||
var/global/list/tube_dir_list = list(NORTH, SOUTH, EAST, WEST, NORTHEAST, NORTHWEST, SOUTHEAST, SOUTHWEST)
|
||||
var/static/list/tube_dir_list = list(NORTH, SOUTH, EAST, WEST, NORTHEAST, NORTHWEST, SOUTHEAST, SOUTHWEST)
|
||||
|
||||
|
||||
// A place where tube pods stop, and people can get in or out.
|
||||
@@ -520,7 +520,7 @@
|
||||
// but it is probably safer to assume the existence of, and
|
||||
// rely on, a sufficiently smart compiler/optimizer.
|
||||
/obj/structure/transit_tube/proc/parse_dirs(text)
|
||||
var/global/list/direction_table = list()
|
||||
var/static/list/direction_table = list()
|
||||
|
||||
if(text in direction_table)
|
||||
return direction_table[text]
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
|
||||
var/global/send_emergency_team = 0 // Used for automagic response teams
|
||||
// 'admin_emergency_team' for admin-spawned response teams
|
||||
var/ert_base_chance = 10 // Default base chance. Will be incremented by increment ERT chance.
|
||||
var/can_call_ert
|
||||
var/silent_ert = 0
|
||||
var/global/ert_base_chance = 10 // Default base chance. Will be incremented by increment ERT chance.
|
||||
var/global/can_call_ert
|
||||
var/global/silent_ert = 0
|
||||
|
||||
/client/proc/response_team()
|
||||
set name = "Dispatch Emergency Response Team"
|
||||
|
||||
@@ -226,5 +226,5 @@
|
||||
return soundin
|
||||
|
||||
//Are these even used?
|
||||
var/list/keyboard_sound = list ('sound/effects/keyboard/keyboard1.ogg','sound/effects/keyboard/keyboard2.ogg','sound/effects/keyboard/keyboard3.ogg', 'sound/effects/keyboard/keyboard4.ogg')
|
||||
var/list/bodyfall_sound = list('sound/effects/bodyfall1.ogg','sound/effects/bodyfall2.ogg','sound/effects/bodyfall3.ogg','sound/effects/bodyfall4.ogg')
|
||||
var/global/list/keyboard_sound = list ('sound/effects/keyboard/keyboard1.ogg','sound/effects/keyboard/keyboard2.ogg','sound/effects/keyboard/keyboard3.ogg', 'sound/effects/keyboard/keyboard4.ogg')
|
||||
var/global/list/bodyfall_sound = list('sound/effects/bodyfall1.ogg','sound/effects/bodyfall2.ogg','sound/effects/bodyfall3.ogg','sound/effects/bodyfall4.ogg')
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
//Based on the ERT setup
|
||||
|
||||
var/global/send_beruang = 0
|
||||
var/can_call_traders = 1
|
||||
var/global/can_call_traders = 1
|
||||
|
||||
/client/proc/trader_ship()
|
||||
set name = "Dispatch Beruang Trader Ship"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
var/list/flooring_types
|
||||
var/global/list/flooring_types
|
||||
|
||||
/proc/populate_flooring_types()
|
||||
flooring_types = list()
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// These are objects that destroy themselves and add themselves to the
|
||||
// decal list of the floor under them. Use them rather than distinct icon_states
|
||||
// when mapping in interesting floor designs.
|
||||
var/list/floor_decals = list()
|
||||
var/global/list/floor_decals = list()
|
||||
|
||||
/obj/effect/floor_decal
|
||||
name = "floor decal"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
var/list/flooring_cache = list()
|
||||
var/global/list/flooring_cache = list()
|
||||
|
||||
var/image/no_ceiling_image = null
|
||||
var/global/image/no_ceiling_image = null
|
||||
|
||||
/hook/startup/proc/setup_no_ceiling_image()
|
||||
cache_no_ceiling_image()
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
var/list/turf_edge_cache = list()
|
||||
var/global/list/turf_edge_cache = list()
|
||||
|
||||
/turf
|
||||
// If greater than 0, this turf will apply edge overlays on top of other turfs cardinally adjacent to it, if those adjacent turfs are of a different icon_state,
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
var/damage = 0
|
||||
var/damage_overlay = 0
|
||||
var/global/damage_overlays[16]
|
||||
var/static/damage_overlays[16]
|
||||
var/active
|
||||
var/can_open = 0
|
||||
var/datum/material/girder_material
|
||||
|
||||
@@ -152,7 +152,7 @@
|
||||
remove_modifiers_of_type(/datum/modifier/fire)
|
||||
inflict_water_damage(20 * amount) // Only things vulnerable to water will actually be harmed (slimes/prommies).
|
||||
|
||||
var/list/shoreline_icon_cache = list()
|
||||
var/global/list/shoreline_icon_cache = list()
|
||||
|
||||
/turf/simulated/floor/water/beach
|
||||
name = "beach shoreline"
|
||||
|
||||
@@ -63,8 +63,8 @@
|
||||
|
||||
return
|
||||
|
||||
var/world_topic_spam_protect_ip = "0.0.0.0"
|
||||
var/world_topic_spam_protect_time = world.timeofday
|
||||
var/global/world_topic_spam_protect_ip = "0.0.0.0"
|
||||
var/global/world_topic_spam_protect_time = world.timeofday
|
||||
|
||||
/world/Topic(T, addr, master, key)
|
||||
debug_log << "TOPIC: \"[T]\", from:[addr], master:[master], key:[key][log_end]"
|
||||
@@ -542,8 +542,8 @@ var/world_topic_spam_protect_time = world.timeofday
|
||||
src.status = s
|
||||
|
||||
#define FAILED_DB_CONNECTION_CUTOFF 5
|
||||
var/failed_db_connections = 0
|
||||
var/failed_old_db_connections = 0
|
||||
var/global/failed_db_connections = 0
|
||||
var/global/failed_old_db_connections = 0
|
||||
|
||||
/hook/startup/proc/connectDB()
|
||||
if(!config.sql_enabled)
|
||||
|
||||
156
code/global.dm
156
code/global.dm
@@ -16,12 +16,12 @@ var/global/datum/universal_state/universe = new
|
||||
var/global/list/global_map = null
|
||||
|
||||
// Noises made when hit while typing.
|
||||
var/list/hit_appends = list("-OOF", "-ACK", "-UGH", "-HRNK", "-HURGH", "-GLORF")
|
||||
var/log_path = "data/logs/" //See world.dm for the full calculated path
|
||||
var/diary = null
|
||||
var/error_log = null
|
||||
var/debug_log = null
|
||||
var/href_logfile = null
|
||||
var/global/list/hit_appends = list("-OOF", "-ACK", "-UGH", "-HRNK", "-HURGH", "-GLORF")
|
||||
var/global/log_path = "data/logs/" //See world.dm for the full calculated path
|
||||
var/global/diary = null
|
||||
var/global/error_log = null
|
||||
var/global/debug_log = null
|
||||
var/global/href_logfile = null
|
||||
// var/station_name = "Northern Star"
|
||||
// var/const/station_orig = "Northern Star" //station_name can't be const due to event prefix/suffix
|
||||
// var/const/station_short = "Northern Star"
|
||||
@@ -32,115 +32,115 @@ var/href_logfile = null
|
||||
// var/const/company_short = "NT"
|
||||
// var/const/star_name = "Vir"
|
||||
// var/const/starsys_name = "Vir"
|
||||
var/const/game_version = "Polaris"
|
||||
var/changelog_hash = ""
|
||||
var/game_year = (text2num(time2text(world.realtime, "YYYY")) + 552)
|
||||
var/round_progressing = 1
|
||||
var/global/const/game_version = "Polaris"
|
||||
var/global/changelog_hash = ""
|
||||
var/global/game_year = (text2num(time2text(world.realtime, "YYYY")) + 552)
|
||||
var/global/round_progressing = 1
|
||||
|
||||
var/master_mode = "extended" // "extended"
|
||||
var/secret_force_mode = "secret" // if this is anything but "secret", the secret rotation will forceably choose this mode.
|
||||
var/global/master_mode = "extended" // "extended"
|
||||
var/global/secret_force_mode = "secret" // if this is anything but "secret", the secret rotation will forceably choose this mode.
|
||||
|
||||
var/host = null //only here until check @ code\modules\ghosttrap\trap.dm:112 is fixed
|
||||
var/global/host = null //only here until check @ code\modules\ghosttrap\trap.dm:112 is fixed
|
||||
|
||||
var/list/jobMax = list()
|
||||
var/list/bombers = list()
|
||||
var/list/admin_log = list()
|
||||
var/list/lastsignalers = list() // Keeps last 100 signals here in format: "[src] used \ref[src] @ location [src.loc]: [freq]/[code]"
|
||||
var/list/lawchanges = list() // Stores who uploaded laws to which silicon-based lifeform, and what the law was.
|
||||
var/list/reg_dna = list()
|
||||
var/global/list/jobMax = list()
|
||||
var/global/list/bombers = list()
|
||||
var/global/list/admin_log = list()
|
||||
var/global/list/lastsignalers = list() // Keeps last 100 signals here in format: "[src] used \ref[src] @ location [src.loc]: [freq]/[code]"
|
||||
var/global/list/lawchanges = list() // Stores who uploaded laws to which silicon-based lifeform, and what the law was.
|
||||
var/global/list/reg_dna = list()
|
||||
|
||||
var/mouse_respawn_time = 5 // Amount of time that must pass between a player dying as a mouse and repawning as a mouse. In minutes.
|
||||
var/global/mouse_respawn_time = 5 // Amount of time that must pass between a player dying as a mouse and repawning as a mouse. In minutes.
|
||||
|
||||
var/list/monkeystart = list()
|
||||
var/list/wizardstart = list()
|
||||
var/list/newplayer_start = list()
|
||||
var/global/list/monkeystart = list()
|
||||
var/global/list/wizardstart = list()
|
||||
var/global/list/newplayer_start = list()
|
||||
|
||||
//Spawnpoints.
|
||||
var/list/latejoin = list()
|
||||
var/list/latejoin_gateway = list()
|
||||
var/list/latejoin_elevator = list()
|
||||
var/list/latejoin_cryo = list()
|
||||
var/list/latejoin_cyborg = list()
|
||||
var/list/latejoin_checkpoint = list()
|
||||
var/global/list/latejoin = list()
|
||||
var/global/list/latejoin_gateway = list()
|
||||
var/global/list/latejoin_elevator = list()
|
||||
var/global/list/latejoin_cryo = list()
|
||||
var/global/list/latejoin_cyborg = list()
|
||||
var/global/list/latejoin_checkpoint = list()
|
||||
|
||||
var/list/prisonwarp = list() // Prisoners go to these
|
||||
var/list/holdingfacility = list() // Captured people go here
|
||||
var/list/xeno_spawn = list() // Aliens spawn at at these.
|
||||
var/list/tdome1 = list()
|
||||
var/list/tdome2 = list()
|
||||
var/list/tdomeobserve = list()
|
||||
var/list/tdomeadmin = list()
|
||||
var/list/prisonsecuritywarp = list() // Prison security goes to these.
|
||||
var/list/prisonwarped = list() // List of players already warped.
|
||||
var/list/blobstart = list()
|
||||
var/list/ninjastart = list()
|
||||
var/global/list/prisonwarp = list() // Prisoners go to these
|
||||
var/global/list/holdingfacility = list() // Captured people go here
|
||||
var/global/list/xeno_spawn = list() // Aliens spawn at at these.
|
||||
var/global/list/tdome1 = list()
|
||||
var/global/list/tdome2 = list()
|
||||
var/global/list/tdomeobserve = list()
|
||||
var/global/list/tdomeadmin = list()
|
||||
var/global/list/prisonsecuritywarp = list() // Prison security goes to these.
|
||||
var/global/list/prisonwarped = list() // List of players already warped.
|
||||
var/global/list/blobstart = list()
|
||||
var/global/list/ninjastart = list()
|
||||
|
||||
var/list/cardinal = list(NORTH, SOUTH, EAST, WEST)
|
||||
var/list/cardinalz = list(NORTH, SOUTH, EAST, WEST, UP, DOWN)
|
||||
var/list/cornerdirs = list(NORTHEAST, NORTHWEST, SOUTHEAST, SOUTHWEST)
|
||||
var/list/cornerdirsz = list(NORTHEAST, NORTHWEST, SOUTHEAST, SOUTHWEST, NORTH|UP, EAST|UP, WEST|UP, SOUTH|UP, NORTH|DOWN, EAST|DOWN, WEST|DOWN, SOUTH|DOWN)
|
||||
var/list/alldirs = list(NORTH, SOUTH, EAST, WEST, NORTHEAST, NORTHWEST, SOUTHEAST, SOUTHWEST)
|
||||
var/list/reverse_dir = list( // reverse_dir[dir] = reverse of dir
|
||||
var/global/list/cardinal = list(NORTH, SOUTH, EAST, WEST)
|
||||
var/global/list/cardinalz = list(NORTH, SOUTH, EAST, WEST, UP, DOWN)
|
||||
var/global/list/cornerdirs = list(NORTHEAST, NORTHWEST, SOUTHEAST, SOUTHWEST)
|
||||
var/global/list/cornerdirsz = list(NORTHEAST, NORTHWEST, SOUTHEAST, SOUTHWEST, NORTH|UP, EAST|UP, WEST|UP, SOUTH|UP, NORTH|DOWN, EAST|DOWN, WEST|DOWN, SOUTH|DOWN)
|
||||
var/global/list/alldirs = list(NORTH, SOUTH, EAST, WEST, NORTHEAST, NORTHWEST, SOUTHEAST, SOUTHWEST)
|
||||
var/global/list/reverse_dir = list( // reverse_dir[dir] = reverse of dir
|
||||
2, 1, 3, 8, 10, 9, 11, 4, 6, 5, 7, 12, 14, 13, 15, 32, 34, 33, 35, 40, 42,
|
||||
41, 43, 36, 38, 37, 39, 44, 46, 45, 47, 16, 18, 17, 19, 24, 26, 25, 27, 20, 22, 21,
|
||||
23, 28, 30, 29, 31, 48, 50, 49, 51, 56, 58, 57, 59, 52, 54, 53, 55, 60, 62, 61, 63
|
||||
)
|
||||
|
||||
var/datum/configuration/config = null
|
||||
var/global/datum/configuration/config = null
|
||||
|
||||
var/list/combatlog = list()
|
||||
var/list/IClog = list()
|
||||
var/list/OOClog = list()
|
||||
var/list/adminlog = list()
|
||||
var/global/list/combatlog = list()
|
||||
var/global/list/IClog = list()
|
||||
var/global/list/OOClog = list()
|
||||
var/global/list/adminlog = list()
|
||||
|
||||
var/list/powernets = list() // TODO - Move into SSmachines
|
||||
var/global/list/powernets = list() // TODO - Move into SSmachines
|
||||
|
||||
var/Debug2 = 0
|
||||
var/datum/debug/debugobj
|
||||
var/global/Debug2 = 0
|
||||
var/global/datum/debug/debugobj
|
||||
|
||||
var/datum/moduletypes/mods = new()
|
||||
var/global/datum/moduletypes/mods = new()
|
||||
|
||||
var/gravity_is_on = 1
|
||||
var/global/gravity_is_on = 1
|
||||
|
||||
var/join_motd = null
|
||||
var/global/join_motd = null
|
||||
|
||||
var/datum/metric/metric = new() // Metric datum, used to keep track of the round.
|
||||
var/global/datum/metric/metric = new() // Metric datum, used to keep track of the round.
|
||||
|
||||
var/list/awaydestinations = list() // Away missions. A list of landmarks that the warpgate can take you to.
|
||||
var/global/list/awaydestinations = list() // Away missions. A list of landmarks that the warpgate can take you to.
|
||||
|
||||
// Forum MySQL configuration. (for use with forum account/key authentication)
|
||||
// These are all default values that will load should the forumdbconfig.txt file fail to read for whatever reason.
|
||||
var/forumsqladdress = "localhost"
|
||||
var/forumsqlport = "3306"
|
||||
var/forumsqldb = "tgstation"
|
||||
var/forumsqllogin = "root"
|
||||
var/forumsqlpass = ""
|
||||
var/forum_activated_group = "2"
|
||||
var/forum_authenticated_group = "10"
|
||||
var/global/forumsqladdress = "localhost"
|
||||
var/global/forumsqlport = "3306"
|
||||
var/global/forumsqldb = "tgstation"
|
||||
var/global/forumsqllogin = "root"
|
||||
var/global/forumsqlpass = ""
|
||||
var/global/forum_activated_group = "2"
|
||||
var/global/forum_authenticated_group = "10"
|
||||
|
||||
// For FTP requests. (i.e. downloading runtime logs.)
|
||||
// However it'd be ok to use for accessing attack logs and such too, which are even laggier.
|
||||
var/fileaccess_timer = 0
|
||||
var/custom_event_msg = null
|
||||
var/global/fileaccess_timer = 0
|
||||
var/global/custom_event_msg = null
|
||||
|
||||
// Database connections. A connection is established on world creation.
|
||||
// Ideally, the connection dies when the server restarts (After feedback logging.).
|
||||
var/DBConnection/dbcon = new() // Feedback database (New database)
|
||||
var/DBConnection/dbcon_old = new() // /tg/station database (Old database) -- see the files in the SQL folder for information on what goes where.
|
||||
var/global/DBConnection/dbcon = new() // Feedback database (New database)
|
||||
var/global/DBConnection/dbcon_old = new() // /tg/station database (Old database) -- see the files in the SQL folder for information on what goes where.
|
||||
|
||||
// Added for Xenoarchaeology, might be useful for other stuff.
|
||||
var/global/list/alphabet_uppercase = list("A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z")
|
||||
|
||||
|
||||
// Used by robots and robot preferences.
|
||||
var/list/robot_module_types = list(
|
||||
var/global/list/robot_module_types = list(
|
||||
"Standard", "Engineering", "Surgeon", "Crisis",
|
||||
"Miner", "Janitor", "Service", "Clerical", "Security",
|
||||
"Research"
|
||||
)
|
||||
|
||||
// Some scary sounds.
|
||||
var/static/list/scarySounds = list(
|
||||
var/global/static/list/scarySounds = list(
|
||||
'sound/weapons/thudswoosh.ogg',
|
||||
'sound/weapons/Taser.ogg',
|
||||
'sound/weapons/armbomb.ogg',
|
||||
@@ -161,18 +161,18 @@ var/static/list/scarySounds = list(
|
||||
)
|
||||
|
||||
// Bomb cap!
|
||||
var/max_explosion_range = 14
|
||||
var/global/max_explosion_range = 14
|
||||
|
||||
// Announcer intercom, because too much stuff creates an intercom for one message then hard del()s it.
|
||||
var/global/obj/item/radio/intercom/omni/global_announcer = new /obj/item/radio/intercom/omni(null)
|
||||
|
||||
var/list/station_departments = list("Command", "Medical", "Engineering", "Science", "Security", "Cargo", "Civilian")
|
||||
var/global/list/station_departments = list("Command", "Medical", "Engineering", "Science", "Security", "Cargo", "Civilian")
|
||||
|
||||
//Icons for in-game HUD glasses. Why don't we just share these a little bit?
|
||||
var/static/icon/ingame_hud = icon('icons/mob/hud.dmi')
|
||||
var/static/icon/ingame_hud_med = icon('icons/mob/hud_med.dmi')
|
||||
var/static/icon/buildmode_hud = icon('icons/misc/buildmode.dmi')
|
||||
var/global/static/icon/ingame_hud = icon('icons/mob/hud.dmi')
|
||||
var/global/static/icon/ingame_hud_med = icon('icons/mob/hud_med.dmi')
|
||||
var/global/static/icon/buildmode_hud = icon('icons/misc/buildmode.dmi')
|
||||
|
||||
//Keyed list for caching icons so you don't need to make them for records, IDs, etc all separately.
|
||||
//Could be useful for AI impersonation or something at some point?
|
||||
var/static/list/cached_character_icons = list()
|
||||
var/global/static/list/cached_character_icons = list()
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//this function places received data into element with specified id.
|
||||
var/const/js_byjax = {"
|
||||
var/global/const/js_byjax = {"
|
||||
|
||||
function replaceContent() {
|
||||
var args = Array.prototype.slice.call(arguments);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
var/const/js_dropdowns = {"
|
||||
var/global/const/js_dropdowns = {"
|
||||
function dropdowns() {
|
||||
var divs = document.getElementsByTagName('div');
|
||||
var headers = new Array();
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
var/CMinutes = null
|
||||
var/savefile/Banlist
|
||||
var/global/CMinutes = null
|
||||
var/global/savefile/Banlist
|
||||
|
||||
|
||||
/proc/CheckBan(var/ckey, var/id, var/address)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
var/list/admin_ranks = list() //list of all ranks with associated rights
|
||||
var/global/list/admin_ranks = list() //list of all ranks with associated rights
|
||||
|
||||
//load our rank - > rights associations
|
||||
/proc/load_admin_ranks()
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
else if(href_list["action"] == "edit")
|
||||
C.edit_report(text2num(href_list["ID"]))
|
||||
|
||||
var/datum/report_topic_handler/report_topic_handler
|
||||
var/global/datum/report_topic_handler/report_topic_handler
|
||||
|
||||
world/New()
|
||||
..()
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user