mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-23 16:42:49 +00:00
Huge commit! Standardizes var definitions in most places.
Signed-off-by: Mloc <colmohici@gmail.com>
This commit is contained in:
@@ -1,3 +1,5 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:04
|
||||||
|
|
||||||
atom
|
atom
|
||||||
proc/temperature_expose(datum/gas_mixture/air, exposed_temperature, exposed_volume)
|
proc/temperature_expose(datum/gas_mixture/air, exposed_temperature, exposed_volume)
|
||||||
//Purpose: Managing temperature exposure.
|
//Purpose: Managing temperature exposure.
|
||||||
@@ -67,13 +69,12 @@ obj
|
|||||||
|
|
||||||
layer = TURF_LAYER
|
layer = TURF_LAYER
|
||||||
|
|
||||||
var
|
var/volume = 125
|
||||||
volume = 125
|
var/temperature = FIRE_MINIMUM_TEMPERATURE_TO_EXIST
|
||||||
temperature = FIRE_MINIMUM_TEMPERATURE_TO_EXIST
|
|
||||||
|
|
||||||
just_spawned = 1
|
var/just_spawned = 1
|
||||||
|
|
||||||
bypassing = 0
|
var/bypassing = 0
|
||||||
|
|
||||||
proc/perform_exposure()
|
proc/perform_exposure()
|
||||||
var/turf/simulated/floor/location = loc
|
var/turf/simulated/floor/location = loc
|
||||||
@@ -179,4 +180,4 @@ obj
|
|||||||
|
|
||||||
loc = null
|
loc = null
|
||||||
|
|
||||||
..()
|
..()
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:04
|
||||||
|
|
||||||
/*
|
/*
|
||||||
What are the archived variables for?
|
What are the archived variables for?
|
||||||
Calculations are done using the archived variables with the results merged into the regular variables.
|
Calculations are done using the archived variables with the results merged into the regular variables.
|
||||||
@@ -22,11 +24,10 @@ datum
|
|||||||
volatile_fuel
|
volatile_fuel
|
||||||
specific_heat = 30
|
specific_heat = 30
|
||||||
|
|
||||||
var
|
var/moles = 0
|
||||||
moles = 0
|
var/specific_heat = 0
|
||||||
specific_heat = 0
|
|
||||||
|
|
||||||
moles_archived = 0
|
var/moles_archived = 0
|
||||||
|
|
||||||
gas_mixture
|
gas_mixture
|
||||||
var //Holds the "moles" of each of the four gases.
|
var //Holds the "moles" of each of the four gases.
|
||||||
@@ -1006,4 +1007,4 @@ datum
|
|||||||
|
|
||||||
corresponding.moles -= trace_gas.moles
|
corresponding.moles -= trace_gas.moles
|
||||||
update_values()
|
update_values()
|
||||||
return 1
|
return 1
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:04
|
||||||
|
|
||||||
atom/movable/var/pressure_resistance = 20
|
atom/movable/var/pressure_resistance = 20
|
||||||
atom/movable/var/last_forced_movement = 0
|
atom/movable/var/last_forced_movement = 0
|
||||||
|
|
||||||
@@ -91,23 +93,22 @@ turf
|
|||||||
|
|
||||||
var/current_graphic = null
|
var/current_graphic = null
|
||||||
|
|
||||||
var/tmp
|
var/tmp/datum/gas_mixture/air
|
||||||
datum/gas_mixture/air
|
|
||||||
|
|
||||||
processing = 1
|
var/tmp/processing = 1
|
||||||
datum/air_group/parent
|
var/tmp/datum/air_group/parent
|
||||||
group_border = 0
|
var/tmp/group_border = 0
|
||||||
length_space_border = 0
|
var/tmp/length_space_border = 0
|
||||||
|
|
||||||
air_check_directions = 0 //Do not modify this, just add turf to air_master.tiles_to_update
|
var/tmp/air_check_directions = 0 //Do not modify this, just add turf to air_master.tiles_to_update
|
||||||
|
|
||||||
archived_cycle = 0
|
var/tmp/archived_cycle = 0
|
||||||
current_cycle = 0
|
var/tmp/current_cycle = 0
|
||||||
|
|
||||||
obj/effect/hotspot/active_hotspot
|
var/tmp/obj/effect/hotspot/active_hotspot
|
||||||
|
|
||||||
temperature_archived //USED ONLY FOR SOLIDS
|
var/tmp/temperature_archived //USED ONLY FOR SOLIDS
|
||||||
being_superconductive = 0
|
var/tmp/being_superconductive = 0
|
||||||
|
|
||||||
|
|
||||||
proc
|
proc
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:06
|
||||||
|
|
||||||
/obj/item/weapon/stamperaser
|
/obj/item/weapon/stamperaser
|
||||||
name = "eraser"
|
name = "eraser"
|
||||||
desc = "It looks like some kind of eraser."
|
desc = "It looks like some kind of eraser."
|
||||||
@@ -15,10 +17,9 @@
|
|||||||
var/on = 0
|
var/on = 0
|
||||||
flags = FPRINT|TABLEPASS
|
flags = FPRINT|TABLEPASS
|
||||||
w_class = 1
|
w_class = 1
|
||||||
var
|
var/list/obj/item/device/radio/Old = list()
|
||||||
list/obj/item/device/radio/Old = list()
|
var/list/obj/item/device/radio/Curr = list()
|
||||||
list/obj/item/device/radio/Curr = list()
|
var/time_remaining = 5
|
||||||
time_remaining = 5
|
|
||||||
|
|
||||||
/obj/item/device/jammer/New()
|
/obj/item/device/jammer/New()
|
||||||
..()
|
..()
|
||||||
@@ -72,4 +73,4 @@
|
|||||||
icon_state = "t-ray0"
|
icon_state = "t-ray0"
|
||||||
|
|
||||||
sleep(2)
|
sleep(2)
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:06
|
||||||
|
|
||||||
/obj/item/wardrobe
|
/obj/item/wardrobe
|
||||||
name = "\improper Wardrobe"
|
name = "\improper Wardrobe"
|
||||||
desc = "A standard-issue bag for clothing and equipment. Usually comes sealed, stocked with everything you need for a particular job."
|
desc = "A standard-issue bag for clothing and equipment. Usually comes sealed, stocked with everything you need for a particular job."
|
||||||
@@ -6,9 +8,8 @@
|
|||||||
item_state = "wardrobe"
|
item_state = "wardrobe"
|
||||||
w_class = 4
|
w_class = 4
|
||||||
layer = 2.99
|
layer = 2.99
|
||||||
var
|
var/descriptor = "various clothing"
|
||||||
descriptor = "various clothing"
|
var/seal_torn = 0
|
||||||
seal_torn = 0
|
|
||||||
|
|
||||||
attack_self(mob/user)
|
attack_self(mob/user)
|
||||||
if(!contents.len)
|
if(!contents.len)
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:06
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
||||||
TODO:
|
TODO:
|
||||||
@@ -15,12 +17,11 @@ log transactions
|
|||||||
anchored = 1
|
anchored = 1
|
||||||
use_power = 1
|
use_power = 1
|
||||||
idle_power_usage = 10
|
idle_power_usage = 10
|
||||||
var
|
var/obj/item/weapon/card/id/card
|
||||||
obj/item/weapon/card/id/card
|
var/obj/item/weapon/money/cashes = list()
|
||||||
obj/item/weapon/money/cashes = list()
|
var/inserted = 0
|
||||||
inserted = 0
|
var/accepted = 0
|
||||||
accepted = 0
|
var/pincode = 0
|
||||||
pincode = 0
|
|
||||||
|
|
||||||
attackby(var/obj/A, var/mob/user)
|
attackby(var/obj/A, var/mob/user)
|
||||||
if(istype(A,/obj/item/weapon/money))
|
if(istype(A,/obj/item/weapon/money))
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:06
|
||||||
|
|
||||||
// pure concentrated antibodies
|
// pure concentrated antibodies
|
||||||
datum/reagent/antibodies
|
datum/reagent/antibodies
|
||||||
data = new/list("antibodies"=0)
|
data = new/list("antibodies"=0)
|
||||||
@@ -16,20 +18,19 @@ datum/reagent/antibodies
|
|||||||
return
|
return
|
||||||
|
|
||||||
// reserving some numbers for later special antigens
|
// reserving some numbers for later special antigens
|
||||||
var/global/const
|
var/global/const/ANTIGEN_A = 1
|
||||||
ANTIGEN_A = 1
|
var/global/const/ANTIGEN_B = 2
|
||||||
ANTIGEN_B = 2
|
var/global/const/ANTIGEN_RH = 4
|
||||||
ANTIGEN_RH = 4
|
var/global/const/ANTIGEN_Q = 8
|
||||||
ANTIGEN_Q = 8
|
var/global/const/ANTIGEN_U = 16
|
||||||
ANTIGEN_U = 16
|
var/global/const/ANTIGEN_V = 32
|
||||||
ANTIGEN_V = 32
|
var/global/const/ANTIGEN_X = 64
|
||||||
ANTIGEN_X = 64
|
var/global/const/ANTIGEN_Y = 128
|
||||||
ANTIGEN_Y = 128
|
var/global/const/ANTIGEN_Z = 256
|
||||||
ANTIGEN_Z = 256
|
var/global/const/ANTIGEN_M = 512
|
||||||
ANTIGEN_M = 512
|
var/global/const/ANTIGEN_N = 1024
|
||||||
ANTIGEN_N = 1024
|
var/global/const/ANTIGEN_P = 2048
|
||||||
ANTIGEN_P = 2048
|
var/global/const/ANTIGEN_O = 4096
|
||||||
ANTIGEN_O = 4096
|
|
||||||
|
|
||||||
var/global/list/ANTIGENS = list("[ANTIGEN_A]" = "A", "[ANTIGEN_B]" = "B", "[ANTIGEN_RH]" = "RH", "[ANTIGEN_Q]" = "Q",
|
var/global/list/ANTIGENS = list("[ANTIGEN_A]" = "A", "[ANTIGEN_B]" = "B", "[ANTIGEN_RH]" = "RH", "[ANTIGEN_Q]" = "Q",
|
||||||
"[ANTIGEN_U]" = "U", "[ANTIGEN_V]" = "V", "[ANTIGEN_Z]" = "Z", "[ANTIGEN_M]" = "M",
|
"[ANTIGEN_U]" = "U", "[ANTIGEN_V]" = "V", "[ANTIGEN_Z]" = "Z", "[ANTIGEN_M]" = "M",
|
||||||
@@ -53,4 +54,4 @@ var/global/list/ANTIGENS = list("[ANTIGEN_A]" = "A", "[ANTIGEN_B]" = "B", "[ANTI
|
|||||||
// iterate over the list of antigens and see what matches
|
// iterate over the list of antigens and see what matches
|
||||||
var/code = ""
|
var/code = ""
|
||||||
for(var/V in ANTIGENS) if(text2num(V) & M.antibodies) code += ANTIGENS[V]
|
for(var/V in ANTIGENS) if(text2num(V) & M.antibodies) code += ANTIGENS[V]
|
||||||
user << text("\blue [src] The antibody scanner displays a cryptic set of data: [code]")
|
user << text("\blue [src] The antibody scanner displays a cryptic set of data: [code]")
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:04
|
||||||
|
|
||||||
/datum/data
|
/datum/data
|
||||||
var
|
var/name = "data"
|
||||||
name = "data"
|
var/size = 1.0
|
||||||
size = 1.0
|
|
||||||
|
|
||||||
|
|
||||||
/datum/data/function
|
/datum/data/function
|
||||||
@@ -30,20 +31,19 @@
|
|||||||
|
|
||||||
|
|
||||||
/datum/powernet
|
/datum/powernet
|
||||||
var
|
var/list/cables = list() // all cables & junctions
|
||||||
list/cables = list() // all cables & junctions
|
var/list/nodes = list() // all APCs & sources
|
||||||
list/nodes = list() // all APCs & sources
|
|
||||||
|
|
||||||
newload = 0
|
var/newload = 0
|
||||||
load = 0
|
var/load = 0
|
||||||
newavail = 0
|
var/newavail = 0
|
||||||
avail = 0
|
var/avail = 0
|
||||||
viewload = 0
|
var/viewload = 0
|
||||||
number = 0
|
var/number = 0
|
||||||
perapc = 0 // per-apc avilability
|
var/perapc = 0 // per-apc avilability
|
||||||
netexcess = 0
|
var/netexcess = 0
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/datum/debug
|
/datum/debug
|
||||||
var/list/debuglist
|
var/list/debuglist
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:04
|
||||||
|
|
||||||
// Controls the emergency shuttle
|
// Controls the emergency shuttle
|
||||||
|
|
||||||
|
|
||||||
@@ -10,19 +12,18 @@
|
|||||||
var/global/datum/shuttle_controller/emergency_shuttle/emergency_shuttle
|
var/global/datum/shuttle_controller/emergency_shuttle/emergency_shuttle
|
||||||
|
|
||||||
datum/shuttle_controller
|
datum/shuttle_controller
|
||||||
var
|
var/alert = 0 //0 = emergency, 1 = crew cycle
|
||||||
alert = 0 //0 = emergency, 1 = crew cycle
|
|
||||||
|
|
||||||
location = 0 //0 = somewhere far away (in spess), 1 = at SS13, 2 = returned from SS13
|
var/location = 0 //0 = somewhere far away (in spess), 1 = at SS13, 2 = returned from SS13
|
||||||
online = 0
|
var/online = 0
|
||||||
direction = 1 //-1 = going back to central command, 1 = going to SS13, 2 = in transit to centcom (not recalled)
|
var/direction = 1 //-1 = going back to central command, 1 = going to SS13, 2 = in transit to centcom (not recalled)
|
||||||
|
|
||||||
endtime // timeofday that shuttle arrives
|
var/endtime // timeofday that shuttle arrives
|
||||||
timelimit //important when the shuttle gets called for more than shuttlearrivetime
|
var/timelimit //important when the shuttle gets called for more than shuttlearrivetime
|
||||||
//timeleft = 360 //600
|
//timeleft = 360 //600
|
||||||
fake_recall = 0 //Used in rounds to prevent "ON NOES, IT MUST [INSERT ROUND] BECAUSE SHUTTLE CAN'T BE CALLED"
|
var/fake_recall = 0 //Used in rounds to prevent "ON NOES, IT MUST [INSERT ROUND] BECAUSE SHUTTLE CAN'T BE CALLED"
|
||||||
deny_shuttle = 0 //for admins not allowing it to be called.
|
var/deny_shuttle = 0 //for admins not allowing it to be called.
|
||||||
departed = 0
|
var/departed = 0
|
||||||
// sound_siren = 1 //if siren should go off //People hat it :(
|
// sound_siren = 1 //if siren should go off //People hat it :(
|
||||||
// call the shuttle
|
// call the shuttle
|
||||||
// if not called before, set the endtime to T+600 seconds
|
// if not called before, set the endtime to T+600 seconds
|
||||||
|
|||||||
@@ -1,16 +1,17 @@
|
|||||||
var/global
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:04
|
||||||
obj/datacore/data_core = null
|
|
||||||
obj/effect/overlay/plmaster = null
|
var/global/obj/datacore/data_core = null
|
||||||
obj/effect/overlay/slmaster = null
|
var/global/obj/effect/overlay/plmaster = null
|
||||||
|
var/global/obj/effect/overlay/slmaster = null
|
||||||
|
|
||||||
//obj/hud/main_hud1 = null
|
//obj/hud/main_hud1 = null
|
||||||
|
|
||||||
list/machines = list()
|
var/global/list/machines = list()
|
||||||
list/processing_objects = list()
|
var/global/list/processing_objects = list()
|
||||||
list/active_diseases = list()
|
var/global/list/active_diseases = list()
|
||||||
//items that ask to be called every cycle
|
//items that ask to be called every cycle
|
||||||
|
|
||||||
defer_powernet_rebuild = 0 // true if net rebuild will be called manually after an event
|
var/global/defer_powernet_rebuild = 0 // true if net rebuild will be called manually after an event
|
||||||
|
|
||||||
//list/global_map = null //Borked, do not touch. DMTG
|
//list/global_map = null //Borked, do not touch. DMTG
|
||||||
//list/global_map = list(list(1,5),list(4,3))//an array of map Z levels.
|
//list/global_map = list(list(1,5),list(4,3))//an array of map Z levels.
|
||||||
@@ -23,197 +24,196 @@ var/global
|
|||||||
//3 - AI satellite
|
//3 - AI satellite
|
||||||
//5 - empty space
|
//5 - empty space
|
||||||
|
|
||||||
var
|
|
||||||
|
|
||||||
//////////////
|
//////////////
|
||||||
|
|
||||||
BLINDBLOCK = 0
|
var/BLINDBLOCK = 0
|
||||||
DEAFBLOCK = 0
|
var/DEAFBLOCK = 0
|
||||||
HULKBLOCK = 0
|
var/HULKBLOCK = 0
|
||||||
TELEBLOCK = 0
|
var/TELEBLOCK = 0
|
||||||
FIREBLOCK = 0
|
var/FIREBLOCK = 0
|
||||||
XRAYBLOCK = 0
|
var/XRAYBLOCK = 0
|
||||||
CLUMSYBLOCK = 0
|
var/CLUMSYBLOCK = 0
|
||||||
FAKEBLOCK = 0
|
var/FAKEBLOCK = 0
|
||||||
BLOCKADD = 0
|
var/BLOCKADD = 0
|
||||||
DIFFMUT = 0
|
var/DIFFMUT = 0
|
||||||
HEADACHEBLOCK = 0
|
var/HEADACHEBLOCK = 0
|
||||||
COUGHBLOCK = 0
|
var/COUGHBLOCK = 0
|
||||||
TWITCHBLOCK = 0
|
var/TWITCHBLOCK = 0
|
||||||
NERVOUSBLOCK = 0
|
var/NERVOUSBLOCK = 0
|
||||||
NOBREATHBLOCK = 0
|
var/NOBREATHBLOCK = 0
|
||||||
REMOTEVIEWBLOCK = 0
|
var/REMOTEVIEWBLOCK = 0
|
||||||
REGENERATEBLOCK = 0
|
var/REGENERATEBLOCK = 0
|
||||||
INCREASERUNBLOCK = 0
|
var/INCREASERUNBLOCK = 0
|
||||||
REMOTETALKBLOCK = 0
|
var/REMOTETALKBLOCK = 0
|
||||||
MORPHBLOCK = 0
|
var/MORPHBLOCK = 0
|
||||||
BLENDBLOCK = 0
|
var/BLENDBLOCK = 0
|
||||||
HALLUCINATIONBLOCK = 0
|
var/HALLUCINATIONBLOCK = 0
|
||||||
NOPRINTSBLOCK = 0
|
var/NOPRINTSBLOCK = 0
|
||||||
SHOCKIMMUNITYBLOCK = 0
|
var/SHOCKIMMUNITYBLOCK = 0
|
||||||
SMALLSIZEBLOCK = 0
|
var/SMALLSIZEBLOCK = 0
|
||||||
GLASSESBLOCK = 0
|
var/GLASSESBLOCK = 0
|
||||||
MONKEYBLOCK = 27
|
var/MONKEYBLOCK = 27
|
||||||
|
|
||||||
skipupdate = 0
|
var/skipupdate = 0
|
||||||
///////////////
|
///////////////
|
||||||
eventchance = 1 //% per 2 mins
|
var/eventchance = 1 //% per 2 mins
|
||||||
EventsOn = 1
|
var/EventsOn = 1
|
||||||
hadevent = 0
|
var/hadevent = 0
|
||||||
blobevent = 0
|
var/blobevent = 0
|
||||||
///////////////
|
///////////////
|
||||||
|
|
||||||
diary = null
|
var/diary = null
|
||||||
diaryofmeanpeople = null
|
var/diaryofmeanpeople = null
|
||||||
station_name = null
|
var/station_name = null
|
||||||
game_version = "Baystation 12"
|
var/game_version = "Baystation 12"
|
||||||
|
|
||||||
datum/air_tunnel/air_tunnel1/SS13_airtunnel = null
|
var/datum/air_tunnel/air_tunnel1/SS13_airtunnel = null
|
||||||
going = 1.0
|
var/going = 1.0
|
||||||
master_mode = "traitor"//"extended"
|
var/master_mode = "traitor"//"extended"
|
||||||
secret_force_mode = "secret" // if this is anything but "secret", the secret rotation will forceably choose this mode
|
var/secret_force_mode = "secret" // if this is anything but "secret", the secret rotation will forceably choose this mode
|
||||||
|
|
||||||
datum/engine_eject/engine_eject_control = null
|
var/datum/engine_eject/engine_eject_control = null
|
||||||
host = null
|
var/host = null
|
||||||
aliens_allowed = 1
|
var/aliens_allowed = 1
|
||||||
ooc_allowed = 1
|
var/ooc_allowed = 1
|
||||||
dooc_allowed = 1
|
var/dooc_allowed = 1
|
||||||
traitor_scaling = 1
|
var/traitor_scaling = 1
|
||||||
goonsay_allowed = 0
|
var/goonsay_allowed = 0
|
||||||
dna_ident = 1
|
var/dna_ident = 1
|
||||||
abandon_allowed = 1
|
var/abandon_allowed = 1
|
||||||
enter_allowed = 1
|
var/enter_allowed = 1
|
||||||
// guests_allowed = 1
|
// guests_allowed = 1
|
||||||
shuttle_frozen = 0
|
var/shuttle_frozen = 0
|
||||||
shuttle_left = 0
|
var/shuttle_left = 0
|
||||||
tinted_weldhelh = 1
|
var/tinted_weldhelh = 1
|
||||||
|
|
||||||
list/jobMax = list()
|
var/list/jobMax = list()
|
||||||
list/bombers = list( )
|
var/list/bombers = list( )
|
||||||
list/admin_log = list ( )
|
var/list/admin_log = list ( )
|
||||||
list/lastsignalers = list( ) //keeps last 100 signals here in format: "[src] used \ref[src] @ location [src.loc]: [freq]/[code]"
|
var/list/lastsignalers = list( ) //keeps last 100 signals here in format: "[src] used \ref[src] @ location [src.loc]: [freq]/[code]"
|
||||||
list/lawchanges = list( ) //Stores who uploaded laws to which silicon-based lifeform, and what the law was
|
var/list/lawchanges = list( ) //Stores who uploaded laws to which silicon-based lifeform, and what the law was
|
||||||
list/admins = list( )
|
var/list/admins = list( )
|
||||||
list/alien_whitelist = list( )
|
var/list/alien_whitelist = list( )
|
||||||
list/shuttles = list( )
|
var/list/shuttles = list( )
|
||||||
list/reg_dna = list( )
|
var/list/reg_dna = list( )
|
||||||
// list/traitobj = list( )
|
// list/traitobj = list( )
|
||||||
|
|
||||||
|
|
||||||
CELLRATE = 0.002 // multiplier for watts per tick <> cell storage (eg: .002 means if there is a load of 1000 watts, 20 units will be taken from a cell per second)
|
var/CELLRATE = 0.002 // multiplier for watts per tick <> cell storage (eg: .002 means if there is a load of 1000 watts, 20 units will be taken from a cell per second)
|
||||||
CHARGELEVEL = 0.001 // Cap for how fast cells charge, as a percentage-per-tick (.001 means cellcharge is capped to 1% per second)
|
var/CHARGELEVEL = 0.001 // Cap for how fast cells charge, as a percentage-per-tick (.001 means cellcharge is capped to 1% per second)
|
||||||
|
|
||||||
shuttle_z = 2 //default
|
var/shuttle_z = 2 //default
|
||||||
airtunnel_start = 68 // default
|
var/airtunnel_start = 68 // default
|
||||||
airtunnel_stop = 68 // default
|
var/airtunnel_stop = 68 // default
|
||||||
airtunnel_bottom = 72 // default
|
var/airtunnel_bottom = 72 // default
|
||||||
list/monkeystart = list()
|
var/list/monkeystart = list()
|
||||||
list/wizardstart = list()
|
var/list/wizardstart = list()
|
||||||
list/newplayer_start = list()
|
var/list/newplayer_start = list()
|
||||||
list/latejoin = list()
|
var/list/latejoin = list()
|
||||||
list/prisonwarp = list() //prisoners go to these
|
var/list/prisonwarp = list() //prisoners go to these
|
||||||
list/holdingfacility = list() //captured people go here
|
var/list/holdingfacility = list() //captured people go here
|
||||||
list/xeno_spawn = list()//Aliens spawn at these.
|
var/list/xeno_spawn = list()//Aliens spawn at these.
|
||||||
// list/mazewarp = list()
|
// list/mazewarp = list()
|
||||||
list/tdome1 = list()
|
var/list/tdome1 = list()
|
||||||
list/tdome2 = list()
|
var/list/tdome2 = list()
|
||||||
list/tdomeobserve = list()
|
var/list/tdomeobserve = list()
|
||||||
list/tdomeadmin = list()
|
var/list/tdomeadmin = list()
|
||||||
list/prisonsecuritywarp = list() //prison security goes to these
|
var/list/prisonsecuritywarp = list() //prison security goes to these
|
||||||
list/prisonwarped = list() //list of players already warped
|
var/list/prisonwarped = list() //list of players already warped
|
||||||
list/blobstart = list()
|
var/list/blobstart = list()
|
||||||
// list/traitors = list() //traitor list
|
// list/traitors = list() //traitor list
|
||||||
list/cardinal = list( NORTH, SOUTH, EAST, WEST )
|
var/list/cardinal = list( NORTH, SOUTH, EAST, WEST )
|
||||||
list/alldirs = list(NORTH, SOUTH, EAST, WEST, NORTHEAST, NORTHWEST, SOUTHEAST, SOUTHWEST)
|
var/list/alldirs = list(NORTH, SOUTH, EAST, WEST, NORTHEAST, NORTHWEST, SOUTHEAST, SOUTHWEST)
|
||||||
list/emclosets = list() //random emergency closets woo
|
var/list/emclosets = list() //random emergency closets woo
|
||||||
|
|
||||||
datum/station_state/start_state = null
|
var/datum/station_state/start_state = null
|
||||||
datum/configuration/config = null
|
var/datum/configuration/config = null
|
||||||
datum/vote/vote = null
|
var/datum/vote/vote = null
|
||||||
datum/sun/sun = null
|
var/datum/sun/sun = null
|
||||||
|
|
||||||
list/combatlog = list()
|
var/list/combatlog = list()
|
||||||
list/IClog = list()
|
var/list/IClog = list()
|
||||||
list/OOClog = list()
|
var/list/OOClog = list()
|
||||||
list/adminlog = list()
|
var/list/adminlog = list()
|
||||||
|
|
||||||
|
|
||||||
list/powernets = null
|
var/list/powernets = null
|
||||||
|
|
||||||
Debug = 0 // global debug switch
|
var/Debug = 0 // global debug switch
|
||||||
Debug2 = 0
|
var/Debug2 = 0
|
||||||
|
|
||||||
datum/debug/debugobj
|
var/datum/debug/debugobj
|
||||||
|
|
||||||
datum/moduletypes/mods = new()
|
var/datum/moduletypes/mods = new()
|
||||||
|
|
||||||
wavesecret = 0
|
var/wavesecret = 0
|
||||||
|
|
||||||
shuttlecoming = 0
|
var/shuttlecoming = 0
|
||||||
|
|
||||||
join_motd = null
|
var/join_motd = null
|
||||||
rules = null
|
var/rules = null
|
||||||
forceblob = 0
|
var/forceblob = 0
|
||||||
|
|
||||||
custom_event_msg = null
|
var/custom_event_msg = null
|
||||||
|
|
||||||
//airlockWireColorToIndex takes a number representing the wire color, e.g. the orange wire is always 1, the dark red wire is always 2, etc. It returns the index for whatever that wire does.
|
//airlockWireColorToIndex takes a number representing the wire color, e.g. the orange wire is always 1, the dark red wire is always 2, etc. It returns the index for whatever that wire does.
|
||||||
//airlockIndexToWireColor does the opposite thing - it takes the index for what the wire does, for example AIRLOCK_WIRE_IDSCAN is 1, AIRLOCK_WIRE_POWER1 is 2, etc. It returns the wire color number.
|
//airlockIndexToWireColor does the opposite thing - it takes the index for what the wire does, for example AIRLOCK_WIRE_IDSCAN is 1, AIRLOCK_WIRE_POWER1 is 2, etc. It returns the wire color number.
|
||||||
//airlockWireColorToFlag takes the wire color number and returns the flag for it (1, 2, 4, 8, 16, etc)
|
//airlockWireColorToFlag takes the wire color number and returns the flag for it (1, 2, 4, 8, 16, etc)
|
||||||
list/airlockWireColorToFlag = RandomAirlockWires()
|
var/list/airlockWireColorToFlag = RandomAirlockWires()
|
||||||
list/airlockIndexToFlag
|
var/list/airlockIndexToFlag
|
||||||
list/airlockIndexToWireColor
|
var/list/airlockIndexToWireColor
|
||||||
list/airlockWireColorToIndex
|
var/list/airlockWireColorToIndex
|
||||||
list/APCWireColorToFlag = RandomAPCWires()
|
var/list/APCWireColorToFlag = RandomAPCWires()
|
||||||
list/APCIndexToFlag
|
var/list/APCIndexToFlag
|
||||||
list/APCIndexToWireColor
|
var/list/APCIndexToWireColor
|
||||||
list/APCWireColorToIndex
|
var/list/APCWireColorToIndex
|
||||||
list/BorgWireColorToFlag = RandomBorgWires()
|
var/list/BorgWireColorToFlag = RandomBorgWires()
|
||||||
list/BorgIndexToFlag
|
var/list/BorgIndexToFlag
|
||||||
list/BorgIndexToWireColor
|
var/list/BorgIndexToWireColor
|
||||||
list/BorgWireColorToIndex
|
var/list/BorgWireColorToIndex
|
||||||
list/ScrambledFrequencies = list( ) //These are used for electrical storms, and anything else that jams radios.
|
var/list/ScrambledFrequencies = list( ) //These are used for electrical storms, and anything else that jams radios.
|
||||||
list/UnscrambledFrequencies = list( )
|
var/list/UnscrambledFrequencies = list( )
|
||||||
list/AAlarmWireColorToFlag = RandomAAlarmWires() // Air Alarm hacking wires.
|
var/list/AAlarmWireColorToFlag = RandomAAlarmWires() // Air Alarm hacking wires.
|
||||||
list/AAlarmIndexToFlag
|
var/list/AAlarmIndexToFlag
|
||||||
list/AAlarmIndexToWireColor
|
var/list/AAlarmIndexToWireColor
|
||||||
list/AAlarmWireColorToIndex
|
var/list/AAlarmWireColorToIndex
|
||||||
|
|
||||||
const/SPEED_OF_LIGHT = 3e8 //not exact but hey!
|
var/const/SPEED_OF_LIGHT = 3e8 //not exact but hey!
|
||||||
const/SPEED_OF_LIGHT_SQ = 9e+16
|
var/const/SPEED_OF_LIGHT_SQ = 9e+16
|
||||||
const/FIRE_DAMAGE_MODIFIER = 0.0215 //Higher values result in more external fire damage to the skin (default 0.0215)
|
var/const/FIRE_DAMAGE_MODIFIER = 0.0215 //Higher values result in more external fire damage to the skin (default 0.0215)
|
||||||
const/AIR_DAMAGE_MODIFIER = 2.025 //More means less damage from hot air scalding lungs, less = more damage. (default 2.025)
|
var/const/AIR_DAMAGE_MODIFIER = 2.025 //More means less damage from hot air scalding lungs, less = more damage. (default 2.025)
|
||||||
const/INFINITY = 1e31 //closer then enough
|
var/const/INFINITY = 1e31 //closer then enough
|
||||||
|
|
||||||
//Don't set this very much higher then 1024 unless you like inviting people in to dos your server with message spam
|
//Don't set this very much higher then 1024 unless you like inviting people in to dos your server with message spam
|
||||||
const/MAX_MESSAGE_LEN = 1024
|
var/const/MAX_MESSAGE_LEN = 1024
|
||||||
const/MAX_PAPER_MESSAGE_LEN = 3072
|
var/const/MAX_PAPER_MESSAGE_LEN = 3072
|
||||||
const/MAX_BOOK_MESSAGE_LEN = 9216
|
var/const/MAX_BOOK_MESSAGE_LEN = 9216
|
||||||
|
|
||||||
const/MAX_NAME_LEN = 40
|
var/const/MAX_NAME_LEN = 40
|
||||||
|
|
||||||
list/paper_blacklist = list("script","frame","iframe","input","button","a","embed","object")
|
var/list/paper_blacklist = list("script","frame","iframe","input","button","a","embed","object")
|
||||||
|
|
||||||
const/shuttle_time_in_station = 1800 // 3 minutes in the station
|
var/const/shuttle_time_in_station = 1800 // 3 minutes in the station
|
||||||
const/shuttle_time_to_arrive = 6000 // 10 minutes to arrive
|
var/const/shuttle_time_to_arrive = 6000 // 10 minutes to arrive
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// MySQL configuration. You can also use the config/dbconfig.txt file.
|
// MySQL configuration. You can also use the config/dbconfig.txt file.
|
||||||
|
|
||||||
sqladdress = "localhost"
|
var/sqladdress = "localhost"
|
||||||
sqlport = "3306"
|
var/sqlport = "3306"
|
||||||
sqldb = "tgstation"
|
var/sqldb = "tgstation"
|
||||||
sqllogin = "root"
|
var/sqllogin = "root"
|
||||||
sqlpass = ""
|
var/sqlpass = ""
|
||||||
|
|
||||||
// Feedback gathering sql connection
|
// Feedback gathering sql connection
|
||||||
|
|
||||||
sqlfdbkdb = "test"
|
var/sqlfdbkdb = "test"
|
||||||
sqlfdbklogin = "root"
|
var/sqlfdbklogin = "root"
|
||||||
sqlfdbkpass = ""
|
var/sqlfdbkpass = ""
|
||||||
|
|
||||||
sqllogging = 0 // Should we log deaths, population stats, etc?
|
var/sqllogging = 0 // Should we log deaths, population stats, etc?
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -231,7 +231,7 @@ var
|
|||||||
|
|
||||||
// For FTP requests. (i.e. downloading runtime logs.)
|
// 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.
|
// However it'd be ok to use for accessing attack logs and such too, which are even laggier.
|
||||||
fileaccess_timer = 1800 //Cannot access files by ftp until the game is finished setting up and stuff.
|
var/fileaccess_timer = 1800 //Cannot access files by ftp until the game is finished setting up and stuff.
|
||||||
|
|
||||||
// It turns out that /var/const can't handle lists, because lists use
|
// It turns out that /var/const can't handle lists, because lists use
|
||||||
// an initializer. Sigh. That's no reason that we shouldn't make
|
// an initializer. Sigh. That's no reason that we shouldn't make
|
||||||
@@ -239,8 +239,7 @@ var
|
|||||||
// separate location, though, so: below are all lists that should not
|
// separate location, though, so: below are all lists that should not
|
||||||
// ever be changed in code.
|
// ever be changed in code.
|
||||||
|
|
||||||
/var/global
|
/var/global/AI_VERB_LIST = list(
|
||||||
AI_VERB_LIST = list(
|
|
||||||
/mob/living/silicon/ai/proc/ai_call_shuttle,
|
/mob/living/silicon/ai/proc/ai_call_shuttle,
|
||||||
/mob/living/silicon/ai/proc/show_laws_verb,
|
/mob/living/silicon/ai/proc/show_laws_verb,
|
||||||
/mob/living/silicon/ai/proc/ai_camera_track,
|
/mob/living/silicon/ai/proc/ai_camera_track,
|
||||||
@@ -250,4 +249,4 @@ var
|
|||||||
/mob/living/silicon/ai/proc/ai_statuschange,
|
/mob/living/silicon/ai/proc/ai_statuschange,
|
||||||
/mob/living/silicon/ai/proc/ai_hologram_change,
|
/mob/living/silicon/ai/proc/ai_hologram_change,
|
||||||
/mob/living/silicon/ai/proc/ai_roster,
|
/mob/living/silicon/ai/proc/ai_roster,
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:04
|
||||||
|
|
||||||
/obj
|
/obj
|
||||||
//var/datum/module/mod //not used
|
//var/datum/module/mod //not used
|
||||||
var/m_amt = 0 // metal
|
var/m_amt = 0 // metal
|
||||||
@@ -30,11 +32,10 @@
|
|||||||
icon_state = "rollstart"
|
icon_state = "rollstart"
|
||||||
flags = FPRINT
|
flags = FPRINT
|
||||||
w_class = 1.0
|
w_class = 1.0
|
||||||
var
|
var/turf/start
|
||||||
turf/start
|
var/turf/end
|
||||||
turf/end
|
var/tape_type = /obj/item/tape
|
||||||
tape_type = /obj/item/tape
|
var/icon_base
|
||||||
icon_base
|
|
||||||
|
|
||||||
/obj/item/tape
|
/obj/item/tape
|
||||||
name = "tape"
|
name = "tape"
|
||||||
@@ -1100,8 +1101,7 @@
|
|||||||
throw_range = 5
|
throw_range = 5
|
||||||
origin_tech = "biotech=3"
|
origin_tech = "biotech=3"
|
||||||
|
|
||||||
var
|
var/mob/living/carbon/brain/brainmob = null
|
||||||
mob/living/carbon/brain/brainmob = null
|
|
||||||
|
|
||||||
New()
|
New()
|
||||||
..()
|
..()
|
||||||
|
|||||||
@@ -1,22 +1,22 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:04
|
||||||
|
|
||||||
/obj/machinery
|
/obj/machinery
|
||||||
name = "machinery"
|
name = "machinery"
|
||||||
icon = 'stationobjs.dmi'
|
icon = 'stationobjs.dmi'
|
||||||
var
|
var/stat = 0
|
||||||
stat = 0
|
var/emagged = 0
|
||||||
emagged = 0
|
var/use_power = 0
|
||||||
use_power = 0
|
|
||||||
//0 = dont run the auto
|
//0 = dont run the auto
|
||||||
//1 = run auto, use idle
|
//1 = run auto, use idle
|
||||||
//2 = run auto, use active
|
//2 = run auto, use active
|
||||||
idle_power_usage = 0
|
var/idle_power_usage = 0
|
||||||
active_power_usage = 0
|
var/active_power_usage = 0
|
||||||
power_channel = EQUIP
|
var/power_channel = EQUIP
|
||||||
//EQUIP,ENVIRON or LIGHT
|
//EQUIP,ENVIRON or LIGHT
|
||||||
list/component_parts = null //list of all the parts used to build it, if made from certain kinds of frames.
|
var/list/component_parts = null //list of all the parts used to build it, if made from certain kinds of frames.
|
||||||
uid
|
var/uid
|
||||||
manual = 0
|
var/manual = 0
|
||||||
global
|
var/global/gl_uid = 1
|
||||||
gl_uid = 1
|
|
||||||
|
|
||||||
/obj/machinery/autolathe
|
/obj/machinery/autolathe
|
||||||
name = "\improper Autolathe"
|
name = "\improper Autolathe"
|
||||||
@@ -384,16 +384,14 @@
|
|||||||
use_power = 1
|
use_power = 1
|
||||||
idle_power_usage = 5
|
idle_power_usage = 5
|
||||||
active_power_usage = 100
|
active_power_usage = 100
|
||||||
var
|
var/obj/effect/overlay/hologram//The projection itself. If there is one, the instrument is on, off otherwise.
|
||||||
obj/effect/overlay/hologram//The projection itself. If there is one, the instrument is on, off otherwise.
|
|
||||||
|
|
||||||
/obj/machinery/hologram/holopad
|
/obj/machinery/hologram/holopad
|
||||||
name = "\improper AI holopad"
|
name = "\improper AI holopad"
|
||||||
desc = "It's a floor-mounted device for projecting holographic images. It is activated remotely."
|
desc = "It's a floor-mounted device for projecting holographic images. It is activated remotely."
|
||||||
icon_state = "holopad0"
|
icon_state = "holopad0"
|
||||||
var
|
var/mob/living/silicon/ai/master//Which AI, if any, is controlling the object? Only one AI may control a hologram at any time.
|
||||||
mob/living/silicon/ai/master//Which AI, if any, is controlling the object? Only one AI may control a hologram at any time.
|
var/last_request = 0 //to prevent request spam. ~Carn
|
||||||
last_request = 0 //to prevent request spam. ~Carn
|
|
||||||
|
|
||||||
/obj/machinery/hologram/projector
|
/obj/machinery/hologram/projector
|
||||||
name = "hologram projector"
|
name = "hologram projector"
|
||||||
@@ -406,12 +404,11 @@
|
|||||||
desc = "It's used by the AI for fooling around."
|
desc = "It's used by the AI for fooling around."
|
||||||
icon = 'stationobjs.dmi'
|
icon = 'stationobjs.dmi'
|
||||||
icon_state = "hologram0"
|
icon_state = "hologram0"
|
||||||
var
|
var/temp = null
|
||||||
temp = null
|
var/lumens = 0.0
|
||||||
lumens = 0.0
|
var/h_r = 245.0
|
||||||
h_r = 245.0
|
var/h_g = 245.0
|
||||||
h_g = 245.0
|
var/h_b = 245.0
|
||||||
h_b = 245.0
|
|
||||||
|
|
||||||
/obj/machinery/coatrack
|
/obj/machinery/coatrack
|
||||||
name = "coat rack"
|
name = "coat rack"
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:04
|
||||||
|
|
||||||
/obj/item/weapon
|
/obj/item/weapon
|
||||||
name = "weapon"
|
name = "weapon"
|
||||||
icon = 'weapons.dmi'
|
icon = 'weapons.dmi'
|
||||||
@@ -326,9 +328,8 @@
|
|||||||
m_amt = 30
|
m_amt = 30
|
||||||
g_amt = 20
|
g_amt = 20
|
||||||
origin_tech = "magnets=2;biotech=2"
|
origin_tech = "magnets=2;biotech=2"
|
||||||
var
|
var/details = 0
|
||||||
details = 0
|
var/recent_fail = 0
|
||||||
recent_fail = 0
|
|
||||||
|
|
||||||
/obj/item/device/mass_spectrometer/adv
|
/obj/item/device/mass_spectrometer/adv
|
||||||
name = "advanced mass-spectrometer"
|
name = "advanced mass-spectrometer"
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:04
|
||||||
|
|
||||||
/*
|
/*
|
||||||
A Star pathfinding algorithm
|
A Star pathfinding algorithm
|
||||||
Returns a list of tiles forming a path from A to B, taking dense objects as well as walls, and the orientation of
|
Returns a list of tiles forming a path from A to B, taking dense objects as well as walls, and the orientation of
|
||||||
@@ -36,9 +38,8 @@ length to avoid portals or something i guess?? Not that they're counted right no
|
|||||||
|
|
||||||
|
|
||||||
PriorityQueue
|
PriorityQueue
|
||||||
var
|
var/L[]
|
||||||
L[]
|
var/cmp
|
||||||
cmp
|
|
||||||
New(compare)
|
New(compare)
|
||||||
L = new()
|
L = new()
|
||||||
cmp = compare
|
cmp = compare
|
||||||
@@ -92,13 +93,12 @@ PriorityQueue
|
|||||||
if(ind)
|
if(ind)
|
||||||
Remove(ind)
|
Remove(ind)
|
||||||
PathNode
|
PathNode
|
||||||
var
|
var/datum/source
|
||||||
datum/source
|
var/PathNode/prevNode
|
||||||
PathNode/prevNode
|
var/f
|
||||||
f
|
var/g
|
||||||
g
|
var/h
|
||||||
h
|
var/nt // Nodes traversed
|
||||||
nt // Nodes traversed
|
|
||||||
New(s,p,pg,ph,pnt)
|
New(s,p,pg,ph,pnt)
|
||||||
source = s
|
source = s
|
||||||
prevNode = p
|
prevNode = p
|
||||||
@@ -109,8 +109,7 @@ PathNode
|
|||||||
nt = pnt
|
nt = pnt
|
||||||
|
|
||||||
datum
|
datum
|
||||||
var
|
var/bestF
|
||||||
bestF
|
|
||||||
proc
|
proc
|
||||||
PathWeightCompare(PathNode/a, PathNode/b)
|
PathWeightCompare(PathNode/a, PathNode/b)
|
||||||
return a.f - b.f
|
return a.f - b.f
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:04
|
||||||
|
|
||||||
//cursors
|
//cursors
|
||||||
#define Default_Cursor 0
|
#define Default_Cursor 0
|
||||||
#define Client_Cursor 1
|
#define Client_Cursor 1
|
||||||
@@ -37,9 +39,8 @@
|
|||||||
|
|
||||||
// Deprecated! See global.dm for new configuration vars
|
// Deprecated! See global.dm for new configuration vars
|
||||||
/*
|
/*
|
||||||
var
|
var/DB_SERVER = "" // This is the location of your MySQL server (localhost is USUALLY fine)
|
||||||
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)
|
||||||
DB_PORT = 3306 // This is the port your MySQL server is running on (3306 is the default)
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
DBConnection
|
DBConnection
|
||||||
@@ -69,15 +70,14 @@ DBConnection
|
|||||||
return Connect("[dbi?"[dbi]":"dbi:mysql:[database_name]:[sqladdress]:[sqlport]"]",user,password)
|
return Connect("[dbi?"[dbi]":"dbi:mysql:[database_name]:[sqladdress]:[sqlport]"]",user,password)
|
||||||
NewQuery(sql_query,cursor_handler=src.default_cursor) return new/DBQuery(sql_query,src,cursor_handler)
|
NewQuery(sql_query,cursor_handler=src.default_cursor) return new/DBQuery(sql_query,src,cursor_handler)
|
||||||
|
|
||||||
var
|
var/_db_con // This variable contains a reference to the actual database connection.
|
||||||
_db_con // This variable contains a reference to the actual database connection.
|
var/dbi // This variable is a string containing the DBI MySQL requires.
|
||||||
dbi // This variable is a string containing the DBI MySQL requires.
|
var/user // This variable contains the username data.
|
||||||
user // This variable contains the username data.
|
var/password // This variable contains the password data.
|
||||||
password // This variable contains the password data.
|
var/default_cursor // This contains the default database cursor data.
|
||||||
default_cursor // This contains the default database cursor data.
|
|
||||||
//
|
//
|
||||||
server = ""
|
var/server = ""
|
||||||
port = 3306
|
var/port = 3306
|
||||||
|
|
||||||
DBQuery
|
DBQuery
|
||||||
New(sql_query,DBConnection/connection_handler,cursor_handler)
|
New(sql_query,DBConnection/connection_handler,cursor_handler)
|
||||||
@@ -134,25 +134,23 @@ DBQuery
|
|||||||
else if(conversions.len < column) conversions.len = column
|
else if(conversions.len < column) conversions.len = column
|
||||||
conversions[column] = conversion
|
conversions[column] = conversion
|
||||||
|
|
||||||
var
|
var/sql // The sql query being executed.
|
||||||
sql // The sql query being executed.
|
var/default_cursor
|
||||||
default_cursor
|
var/list/columns //list of DB Columns populated by Columns()
|
||||||
list/columns //list of DB Columns populated by Columns()
|
var/list/conversions
|
||||||
list/conversions
|
var/list/item[0] //list of data values populated by NextRow()
|
||||||
list/item[0] //list of data values populated by NextRow()
|
|
||||||
|
|
||||||
DBConnection/db_connection
|
var/DBConnection/db_connection
|
||||||
_db_query
|
var/_db_query
|
||||||
|
|
||||||
DBColumn
|
DBColumn
|
||||||
var
|
var/name
|
||||||
name
|
var/table
|
||||||
table
|
var/position //1-based index into item data
|
||||||
position //1-based index into item data
|
var/sql_type
|
||||||
sql_type
|
var/flags
|
||||||
flags
|
var/length
|
||||||
length
|
var/max_length
|
||||||
max_length
|
|
||||||
|
|
||||||
New(name_handler,table_handler,position_handler,type_handler,flag_handler,length_handler,max_length_handler)
|
New(name_handler,table_handler,position_handler,type_handler,flag_handler,length_handler,max_length_handler)
|
||||||
src.name = name_handler
|
src.name = name_handler
|
||||||
@@ -179,4 +177,4 @@ DBColumn
|
|||||||
if(TIMESTAMP) return "TIMESTAMP"
|
if(TIMESTAMP) return "TIMESTAMP"
|
||||||
if(TIME) return "TIME"
|
if(TIME) return "TIME"
|
||||||
if(STRING) return "STRING"
|
if(STRING) return "STRING"
|
||||||
if(BLOB) return "BLOB"
|
if(BLOB) return "BLOB"
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:04
|
||||||
|
|
||||||
/proc/dopage(src,target)
|
/proc/dopage(src,target)
|
||||||
var/href_list
|
var/href_list
|
||||||
var/href
|
var/href
|
||||||
@@ -261,11 +263,10 @@ proc
|
|||||||
return 0
|
return 0
|
||||||
Y1+=s
|
Y1+=s
|
||||||
else
|
else
|
||||||
var
|
var/m=(32*(Y2-Y1)+(PY2-PY1))/(32*(X2-X1)+(PX2-PX1))
|
||||||
m=(32*(Y2-Y1)+(PY2-PY1))/(32*(X2-X1)+(PX2-PX1))
|
var/b=(Y1+PY1/32-0.015625)-m*(X1+PX1/32-0.015625) //In tiles
|
||||||
b=(Y1+PY1/32-0.015625)-m*(X1+PX1/32-0.015625) //In tiles
|
var/signX = SIGN(X2-X1)
|
||||||
signX = SIGN(X2-X1)
|
var/signY = SIGN(Y2-Y1)
|
||||||
signY = SIGN(Y2-Y1)
|
|
||||||
if(X1<X2)
|
if(X1<X2)
|
||||||
b+=m
|
b+=m
|
||||||
while(X1!=X2 || Y1!=Y2)
|
while(X1!=X2 || Y1!=Y2)
|
||||||
@@ -318,4 +319,4 @@ proc/is_carrying(var/M as mob, var/O as obj)
|
|||||||
if(O:loc == M)
|
if(O:loc == M)
|
||||||
return 1
|
return 1
|
||||||
O = O:loc
|
O = O:loc
|
||||||
return 0
|
return 0
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:04
|
||||||
|
|
||||||
/*
|
/*
|
||||||
IconProcs
|
IconProcs
|
||||||
by Lummox JR
|
by Lummox JR
|
||||||
@@ -434,14 +436,13 @@ proc
|
|||||||
if(!dir) dir = A.dir
|
if(!dir) dir = A.dir
|
||||||
|
|
||||||
// Loop through the underlays, then overlays, sorting them into the layers list
|
// Loop through the underlays, then overlays, sorting them into the layers list
|
||||||
var
|
var/list/process = A.underlays // Current list being processed
|
||||||
list/process = A.underlays // Current list being processed
|
var/pSet=0 // Which list is being processed: 0 = underlays, 1 = overlays
|
||||||
pSet=0 // Which list is being processed: 0 = underlays, 1 = overlays
|
var/curIndex=1 // index of 'current' in list being processed
|
||||||
curIndex=1 // index of 'current' in list being processed
|
var/current // Current overlay being sorted
|
||||||
current // Current overlay being sorted
|
var/currentLayer // Calculated layer that overlay appears on (special case for FLOAT_LAYER)
|
||||||
currentLayer // Calculated layer that overlay appears on (special case for FLOAT_LAYER)
|
var/compare // The overlay 'add' is being compared against
|
||||||
compare // The overlay 'add' is being compared against
|
var/cmpIndex // The index in the layers list of 'compare'
|
||||||
cmpIndex // The index in the layers list of 'compare'
|
|
||||||
while(TRUE)
|
while(TRUE)
|
||||||
if(curIndex<=process.len)
|
if(curIndex<=process.len)
|
||||||
current = process[curIndex]
|
current = process[curIndex]
|
||||||
@@ -487,15 +488,20 @@ proc
|
|||||||
// Icon already exists, just return that one
|
// Icon already exists, just return that one
|
||||||
return _flatIcons[h]
|
return _flatIcons[h]
|
||||||
|
|
||||||
var
|
|
||||||
// We start with a blank canvas, otherwise some icon procs crash silently
|
// We start with a blank canvas, otherwise some icon procs crash silently
|
||||||
icon/flat = icon('effects.dmi', "icon_state"="nothing") // Final flattened icon
|
var/icon/flat = icon('effects.dmi', "icon_state"="nothing") // Final flattened icon
|
||||||
icon/add // Icon of overlay being added
|
var/icon/add // Icon of overlay being added
|
||||||
|
|
||||||
// Current dimensions of flattened icon
|
// Current dimensions of flattened icon
|
||||||
flatX1=1;flatX2=flat.Width();flatY1=1;flatY2=flat.Height()
|
var/flatX1=1
|
||||||
|
var/flatX2=flat.Width()
|
||||||
|
var/flatY1=1
|
||||||
|
var/flatY2=flat.Height()
|
||||||
// Dimensions of overlay being added
|
// Dimensions of overlay being added
|
||||||
addX1;addX2;addY1;addY2
|
var/addX1
|
||||||
|
var/addX2
|
||||||
|
var/addY1
|
||||||
|
var/addY2
|
||||||
|
|
||||||
for(var/I in layers)
|
for(var/I in layers)
|
||||||
|
|
||||||
@@ -581,4 +587,4 @@ proc
|
|||||||
for(var/O in A.overlays)
|
for(var/O in A.overlays)
|
||||||
var/image/I = O
|
var/image/I = O
|
||||||
composite.Blend(icon(I.icon, I.icon_state, I.dir, 1), ICON_OVERLAY)
|
composite.Blend(icon(I.icon, I.icon_state, I.dir, 1), ICON_OVERLAY)
|
||||||
return composite
|
return composite
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:04
|
||||||
|
|
||||||
/* base 64 procs
|
/* base 64 procs
|
||||||
These procs convert plain text to a hexidecimal string to 64 encoded text and vice versa.
|
These procs convert plain text to a hexidecimal string to 64 encoded text and vice versa.
|
||||||
|
|
||||||
@@ -33,12 +35,11 @@ proc
|
|||||||
pad_code = the character or ASCII code used to pad the base64 text.
|
pad_code = the character or ASCII code used to pad the base64 text.
|
||||||
DEFAULT: 67 (= sign)
|
DEFAULT: 67 (= sign)
|
||||||
RETURNS: the hexidecimal text */
|
RETURNS: the hexidecimal text */
|
||||||
var
|
var/pos = 1
|
||||||
pos = 1
|
var/offset = 2
|
||||||
offset = 2
|
var/current = 0
|
||||||
current = 0
|
var/padding = 0
|
||||||
padding = 0
|
var/hextext = ""
|
||||||
hextext = ""
|
|
||||||
if(istext(pad_code)) pad_code = text2ascii(pad_code)
|
if(istext(pad_code)) pad_code = text2ascii(pad_code)
|
||||||
while(pos <= length(encode64))
|
while(pos <= length(encode64))
|
||||||
var/val = text2ascii(encode64, pos++)
|
var/val = text2ascii(encode64, pos++)
|
||||||
@@ -80,15 +81,14 @@ proc
|
|||||||
pad_char = the character or ASCII code used to pad the base64 text.
|
pad_char = the character or ASCII code used to pad the base64 text.
|
||||||
DEFAULT: "=" (ASCII 67)
|
DEFAULT: "=" (ASCII 67)
|
||||||
RETURNS: the base 64 encoded text */
|
RETURNS: the base 64 encoded text */
|
||||||
var
|
var/key64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
|
||||||
key64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
|
var/encode64 = ""
|
||||||
encode64 = ""
|
var/pos = 1
|
||||||
pos = 1
|
var/offset = 2
|
||||||
offset = 2
|
var/current = 0
|
||||||
current = 0
|
var/len = length(hextext)
|
||||||
len = length(hextext)
|
var/end = len
|
||||||
end = len
|
var/padding = end%6
|
||||||
padding = end%6
|
|
||||||
if(padding)
|
if(padding)
|
||||||
padding = 6 - padding
|
padding = 6 - padding
|
||||||
end += padding
|
end += padding
|
||||||
@@ -128,4 +128,4 @@ proc
|
|||||||
var/hex = ""
|
var/hex = ""
|
||||||
for(var/loop = 1 to length(txt))
|
for(var/loop = 1 to length(txt))
|
||||||
hex += sd_dec2base(text2ascii(txt,loop),,2)
|
hex += sd_dec2base(text2ascii(txt,loop),,2)
|
||||||
return hex
|
return hex
|
||||||
|
|||||||
@@ -1,15 +1,16 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:04
|
||||||
|
|
||||||
/* sd_color and procs
|
/* sd_color and procs
|
||||||
sd_color is a special datum that contains color data in various
|
sd_color is a special datum that contains color data in various
|
||||||
formats. Sample colors are available in samplecolors.dm.
|
formats. Sample colors are available in samplecolors.dm.
|
||||||
|
|
||||||
sd_color
|
sd_color
|
||||||
var
|
var/name // the name of the color
|
||||||
name // the name of the color
|
var/red // red componant of the color
|
||||||
red // red componant of the color
|
var/green // green componant of the color
|
||||||
green // green componant of the color
|
var/blue // red componant of the color
|
||||||
blue // red componant of the color
|
var/html // html string for the color
|
||||||
html // html string for the color
|
var/icon/Icon // contains the icon produced by the rgb2icon() proc
|
||||||
icon/Icon // contains the icon produced by the rgb2icon() proc
|
|
||||||
|
|
||||||
PROCS
|
PROCS
|
||||||
brightness()
|
brightness()
|
||||||
@@ -30,13 +31,12 @@ sd_color
|
|||||||
* Implimentation: No need to read further. *
|
* Implimentation: No need to read further. *
|
||||||
*********************************************/
|
*********************************************/
|
||||||
sd_color
|
sd_color
|
||||||
var
|
var/name // the name of the color
|
||||||
name // the name of the color
|
var/red = 0 // red componant of the color
|
||||||
red = 0 // red componant of the color
|
var/green = 0 // green componant of the color
|
||||||
green = 0 // green componant of the color
|
var/blue = 0 // red componant of the color
|
||||||
blue = 0 // red componant of the color
|
var/html // html string for the color
|
||||||
html // html string for the color
|
var/icon/Icon // contains the icon produced by the rgb2icon() proc
|
||||||
icon/Icon // contains the icon produced by the rgb2icon() proc
|
|
||||||
|
|
||||||
proc
|
proc
|
||||||
brightness()
|
brightness()
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:04
|
||||||
|
|
||||||
/* HSL procs
|
/* HSL procs
|
||||||
These procs convert between RGB (red, green, blu) and HSL (hue, saturation, light)
|
These procs convert between RGB (red, green, blu) and HSL (hue, saturation, light)
|
||||||
color spaces. The algorithms used for these procs were found at
|
color spaces. The algorithms used for these procs were found at
|
||||||
@@ -80,20 +82,18 @@ proc
|
|||||||
sat /= scale
|
sat /= scale
|
||||||
lgh /= scale
|
lgh /= scale
|
||||||
|
|
||||||
var
|
var/red
|
||||||
red
|
var/grn
|
||||||
grn
|
var/blu
|
||||||
blu
|
|
||||||
|
|
||||||
if(!sat) // greyscale
|
if(!sat) // greyscale
|
||||||
red = lgh
|
red = lgh
|
||||||
grn = lgh
|
grn = lgh
|
||||||
blu = lgh
|
blu = lgh
|
||||||
else
|
else
|
||||||
var
|
var/temp1
|
||||||
temp1
|
var/temp2
|
||||||
temp2
|
var/temp3
|
||||||
temp3
|
|
||||||
if(lgh < 0.5) temp2 = lgh * (1 + sat)
|
if(lgh < 0.5) temp2 = lgh * (1 + sat)
|
||||||
else temp2 = lgh + sat - lgh * sat
|
else temp2 = lgh + sat - lgh * sat
|
||||||
temp1 = 2 * lgh - temp2
|
temp1 = 2 * lgh - temp2
|
||||||
@@ -160,12 +160,11 @@ proc
|
|||||||
red /= 255
|
red /= 255
|
||||||
grn /= 255
|
grn /= 255
|
||||||
blu /= 255
|
blu /= 255
|
||||||
var
|
var/lo = min(red, grn, blu)
|
||||||
lo = min(red, grn, blu)
|
var/hi = max(red, grn, blu)
|
||||||
hi = max(red, grn, blu)
|
var/hue = 0
|
||||||
hue = 0
|
var/sat = 0
|
||||||
sat = 0
|
var/lgh = (lo + hi)/2
|
||||||
lgh = (lo + hi)/2
|
|
||||||
|
|
||||||
if(lo != hi) // if equal, hue and sat may both stay 0
|
if(lo != hi) // if equal, hue and sat may both stay 0
|
||||||
if(lgh < 0.5) sat = (hi - lo) / (hi + lo)
|
if(lgh < 0.5) sat = (hi - lo) / (hi + lo)
|
||||||
|
|||||||
@@ -1,26 +1,27 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:04
|
||||||
|
|
||||||
/turf
|
/turf
|
||||||
icon = 'floors.dmi'
|
icon = 'floors.dmi'
|
||||||
var/intact = 1 //for floors, use is_plating(), is_plasteel_floor() and is_light_floor()
|
var/intact = 1 //for floors, use is_plating(), is_plasteel_floor() and is_light_floor()
|
||||||
|
|
||||||
level = 1.0
|
level = 1.0
|
||||||
|
|
||||||
var
|
|
||||||
//Properties for open tiles (/floor)
|
//Properties for open tiles (/floor)
|
||||||
oxygen = 0
|
var/oxygen = 0
|
||||||
carbon_dioxide = 0
|
var/carbon_dioxide = 0
|
||||||
nitrogen = 0
|
var/nitrogen = 0
|
||||||
toxins = 0
|
var/toxins = 0
|
||||||
|
|
||||||
//Properties for airtight tiles (/wall)
|
//Properties for airtight tiles (/wall)
|
||||||
thermal_conductivity = 0.05
|
var/thermal_conductivity = 0.05
|
||||||
heat_capacity = 1
|
var/heat_capacity = 1
|
||||||
|
|
||||||
//Properties for both
|
//Properties for both
|
||||||
temperature = T20C
|
var/temperature = T20C
|
||||||
|
|
||||||
blocks_air = 0
|
var/blocks_air = 0
|
||||||
icon_old = null
|
var/icon_old = null
|
||||||
pathweight = 1
|
var/pathweight = 1
|
||||||
|
|
||||||
proc/is_plating()
|
proc/is_plating()
|
||||||
return 0
|
return 0
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:04
|
||||||
|
|
||||||
/world/New()
|
/world/New()
|
||||||
..()
|
..()
|
||||||
|
|
||||||
@@ -48,25 +50,24 @@ proc/countJob(rank)
|
|||||||
jobCount++
|
jobCount++
|
||||||
return jobCount
|
return jobCount
|
||||||
|
|
||||||
/mob/living/carbon/human/var/const
|
/mob/living/carbon/human/var/const/slot_back = 1
|
||||||
slot_back = 1
|
/mob/living/carbon/human/var/const/slot_wear_mask = 2
|
||||||
slot_wear_mask = 2
|
/mob/living/carbon/human/var/const/slot_handcuffed = 3
|
||||||
slot_handcuffed = 3
|
/mob/living/carbon/human/var/const/slot_l_hand = 4
|
||||||
slot_l_hand = 4
|
/mob/living/carbon/human/var/const/slot_r_hand = 5
|
||||||
slot_r_hand = 5
|
/mob/living/carbon/human/var/const/slot_belt = 6
|
||||||
slot_belt = 6
|
/mob/living/carbon/human/var/const/slot_wear_id = 7
|
||||||
slot_wear_id = 7
|
/mob/living/carbon/human/var/const/slot_ears = 8
|
||||||
slot_ears = 8
|
/mob/living/carbon/human/var/const/slot_glasses = 9
|
||||||
slot_glasses = 9
|
/mob/living/carbon/human/var/const/slot_gloves = 10
|
||||||
slot_gloves = 10
|
/mob/living/carbon/human/var/const/slot_head = 11
|
||||||
slot_head = 11
|
/mob/living/carbon/human/var/const/slot_shoes = 12
|
||||||
slot_shoes = 12
|
/mob/living/carbon/human/var/const/slot_wear_suit = 13
|
||||||
slot_wear_suit = 13
|
/mob/living/carbon/human/var/const/slot_w_uniform = 14
|
||||||
slot_w_uniform = 14
|
/mob/living/carbon/human/var/const/slot_l_store = 15
|
||||||
slot_l_store = 15
|
/mob/living/carbon/human/var/const/slot_r_store = 16
|
||||||
slot_r_store = 16
|
/mob/living/carbon/human/var/const/slot_s_store = 17
|
||||||
slot_s_store = 17
|
/mob/living/carbon/human/var/const/slot_in_backpack = 18
|
||||||
slot_in_backpack = 18
|
|
||||||
|
|
||||||
/mob/living/carbon/human/proc/equip_in_one_of_slots(obj/item/W, list/slots, del_on_fail = 1)
|
/mob/living/carbon/human/proc/equip_in_one_of_slots(obj/item/W, list/slots, del_on_fail = 1)
|
||||||
for (var/slot in slots)
|
for (var/slot in slots)
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:04
|
||||||
|
|
||||||
var/global/list/space_surprises = list( /obj/item/clothing/mask/facehugger/angry =4,
|
var/global/list/space_surprises = list( /obj/item/clothing/mask/facehugger/angry =4,
|
||||||
// /obj/effect/critter/spesscarp =2,
|
// /obj/effect/critter/spesscarp =2,
|
||||||
/obj/effect/critter/spesscarp/elite =2,
|
/obj/effect/critter/spesscarp/elite =2,
|
||||||
@@ -34,9 +36,8 @@ var/global/list/spawned_surprises = list()
|
|||||||
anchored = 1
|
anchored = 1
|
||||||
density = 1
|
density = 1
|
||||||
|
|
||||||
var
|
var/charges = 1
|
||||||
charges = 1
|
var/insisting = 0
|
||||||
insisting = 0
|
|
||||||
|
|
||||||
/obj/machinery/wish_granter/attack_hand(var/mob/user as mob)
|
/obj/machinery/wish_granter/attack_hand(var/mob/user as mob)
|
||||||
usr.machine = src
|
usr.machine = src
|
||||||
@@ -228,4 +229,4 @@ proc/spawn_room(var/atom/start_loc,var/x_size,var/y_size,var/wall,var/floor , va
|
|||||||
A.contents += T
|
A.contents += T
|
||||||
|
|
||||||
|
|
||||||
return room_turfs
|
return room_turfs
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:04
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Space dust
|
Space dust
|
||||||
Commonish random event that causes small clumps of "space dust" to hit the station at high speeds.
|
Commonish random event that causes small clumps of "space dust" to hit the station at high speeds.
|
||||||
@@ -34,9 +36,8 @@ The "dust" will damage the hull of the station causin minor hull breaches.
|
|||||||
icon_state = "space_dust"
|
icon_state = "space_dust"
|
||||||
density = 1
|
density = 1
|
||||||
anchored = 1
|
anchored = 1
|
||||||
var
|
var/strength = 2 //ex_act severity number
|
||||||
strength = 2 //ex_act severity number
|
var/life = 2 //how many things we hit before del(src)
|
||||||
life = 2 //how many things we hit before del(src)
|
|
||||||
|
|
||||||
weak
|
weak
|
||||||
strength = 3
|
strength = 3
|
||||||
@@ -116,4 +117,4 @@ The "dust" will damage the hull of the station causin minor hull breaches.
|
|||||||
|
|
||||||
ex_act(severity)
|
ex_act(severity)
|
||||||
del(src)
|
del(src)
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:04
|
||||||
|
|
||||||
/datum/event/electricalstorm
|
/datum/event/electricalstorm
|
||||||
var
|
var/list/obj/machinery/light/Lights = list( )
|
||||||
list/obj/machinery/light/Lights = list( )
|
var/list/obj/machinery/light/APCs = list( )
|
||||||
list/obj/machinery/light/APCs = list( )
|
var/list/obj/machinery/light/Doors = list( )
|
||||||
list/obj/machinery/light/Doors = list( )
|
var/list/obj/machinery/light/Comms = list( )
|
||||||
list/obj/machinery/light/Comms = list( )
|
|
||||||
|
|
||||||
Announce()
|
Announce()
|
||||||
// command_alert("The station is flying through an electrical storm. Radio communications may be disrupted", "Anomaly Alert")
|
// command_alert("The station is flying through an electrical storm. Radio communications may be disrupted", "Anomaly Alert")
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:04
|
||||||
|
|
||||||
/datum/event/ionstorm
|
/datum/event/ionstorm
|
||||||
var
|
var/botEmagChance = 0.5
|
||||||
botEmagChance = 0.5
|
var/list/players = list()
|
||||||
list/players = list()
|
|
||||||
|
|
||||||
Announce()
|
Announce()
|
||||||
Lifetime = rand(15, 20)
|
Lifetime = rand(15, 20)
|
||||||
@@ -57,4 +58,4 @@
|
|||||||
Die()
|
Die()
|
||||||
spawn(rand(5000,8000))
|
spawn(rand(5000,8000))
|
||||||
if(prob(50))
|
if(prob(50))
|
||||||
command_alert("It has come to our attention that the station passed through an ion storm. Please monitor all electronic equipment for malfunctions.", "Anomaly Alert")
|
command_alert("It has come to our attention that the station passed through an ion storm. Please monitor all electronic equipment for malfunctions.", "Anomaly Alert")
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:04
|
||||||
|
|
||||||
/datum/event/viralinfection
|
/datum/event/viralinfection
|
||||||
var
|
var/virus_type
|
||||||
virus_type
|
var/virus
|
||||||
virus
|
var/virus2 = 0
|
||||||
virus2 = 0
|
|
||||||
|
|
||||||
Announce()
|
Announce()
|
||||||
if(!virus)
|
if(!virus)
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:04
|
||||||
|
|
||||||
//Few global vars to track the blob
|
//Few global vars to track the blob
|
||||||
var
|
var/list/blobs = list()
|
||||||
list/blobs = list()
|
var/list/blob_cores = list()
|
||||||
list/blob_cores = list()
|
var/list/blob_nodes = list()
|
||||||
list/blob_nodes = list()
|
|
||||||
|
|
||||||
|
|
||||||
/datum/game_mode/blob
|
/datum/game_mode/blob
|
||||||
@@ -16,19 +17,18 @@ var
|
|||||||
var/const/waittime_l = 1800 //lower bound on time before intercept arrives (in tenths of seconds)
|
var/const/waittime_l = 1800 //lower bound on time before intercept arrives (in tenths of seconds)
|
||||||
var/const/waittime_h = 3600 //upper bound on time before intercept arrives (in tenths of seconds)
|
var/const/waittime_h = 3600 //upper bound on time before intercept arrives (in tenths of seconds)
|
||||||
|
|
||||||
var
|
var/declared = 0
|
||||||
declared = 0
|
var/stage = 0
|
||||||
stage = 0
|
|
||||||
|
|
||||||
cores_to_spawn = 1
|
var/cores_to_spawn = 1
|
||||||
players_per_core = 16
|
var/players_per_core = 16
|
||||||
|
|
||||||
//Controls expansion via game controller
|
//Controls expansion via game controller
|
||||||
autoexpand = 0
|
var/autoexpand = 0
|
||||||
expanding = 0
|
var/expanding = 0
|
||||||
|
|
||||||
blobnukecount = 500
|
var/blobnukecount = 500
|
||||||
blobwincount = 700
|
var/blobwincount = 700
|
||||||
|
|
||||||
|
|
||||||
announce()
|
announce()
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:04
|
||||||
|
|
||||||
/datum/game_mode/blob/send_intercept(var/report = 1)
|
/datum/game_mode/blob/send_intercept(var/report = 1)
|
||||||
var/intercepttext = ""
|
var/intercepttext = ""
|
||||||
var/interceptname = "Error"
|
var/interceptname = "Error"
|
||||||
@@ -43,14 +45,13 @@
|
|||||||
|
|
||||||
|
|
||||||
/datum/station_state
|
/datum/station_state
|
||||||
var
|
var/floor = 0
|
||||||
floor = 0
|
var/wall = 0
|
||||||
wall = 0
|
var/r_wall = 0
|
||||||
r_wall = 0
|
var/window = 0
|
||||||
window = 0
|
var/door = 0
|
||||||
door = 0
|
var/grille = 0
|
||||||
grille = 0
|
var/mach = 0
|
||||||
mach = 0
|
|
||||||
|
|
||||||
|
|
||||||
proc/count()
|
proc/count()
|
||||||
@@ -101,4 +102,4 @@
|
|||||||
output += (result.door / max(door,1))
|
output += (result.door / max(door,1))
|
||||||
output += (result.grille / max(grille,1))
|
output += (result.grille / max(grille,1))
|
||||||
output += (result.mach / max(mach,1))
|
output += (result.mach / max(mach,1))
|
||||||
return (output/7)
|
return (output/7)
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:04
|
||||||
|
|
||||||
//I will need to recode parts of this but I am way too tired atm
|
//I will need to recode parts of this but I am way too tired atm
|
||||||
/obj/effect/blob
|
/obj/effect/blob
|
||||||
name = "blob"
|
name = "blob"
|
||||||
@@ -7,22 +9,21 @@
|
|||||||
density = 1
|
density = 1
|
||||||
opacity = 0
|
opacity = 0
|
||||||
anchored = 1
|
anchored = 1
|
||||||
var
|
var/active = 1
|
||||||
active = 1
|
var/health = 30
|
||||||
health = 30
|
var/brute_resist = 4
|
||||||
brute_resist = 4
|
var/fire_resist = 1
|
||||||
fire_resist = 1
|
var/blobtype = "Blob"
|
||||||
blobtype = "Blob"
|
var/blobdebug = 0
|
||||||
blobdebug = 0
|
|
||||||
/*Types
|
/*Types
|
||||||
Blob
|
var/Blob
|
||||||
Node
|
var/Node
|
||||||
Core
|
var/Core
|
||||||
Factory
|
var/Factory
|
||||||
Shield
|
var/Shield
|
||||||
*/
|
*/
|
||||||
steps_per_action = 4 // how many times should process() needs to be called for Life() to happen
|
var/steps_per_action = 4 // how many times should process() needs to be called for Life() to happen
|
||||||
steps_since_action = 1
|
var/steps_since_action = 1
|
||||||
|
|
||||||
|
|
||||||
New(loc, var/h = 30)
|
New(loc, var/h = 30)
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:04
|
||||||
|
|
||||||
/datum/game_mode
|
/datum/game_mode
|
||||||
var/list/datum/mind/changelings = list()
|
var/list/datum/mind/changelings = list()
|
||||||
|
|
||||||
@@ -13,29 +15,27 @@
|
|||||||
uplink_welcome = "Syndicate Uplink Console:"
|
uplink_welcome = "Syndicate Uplink Console:"
|
||||||
uplink_uses = 10
|
uplink_uses = 10
|
||||||
|
|
||||||
var
|
var/const/prob_int_murder_target = 50 // intercept names the assassination target half the time
|
||||||
const
|
var/const/prob_right_murder_target_l = 25 // lower bound on probability of naming right assassination target
|
||||||
prob_int_murder_target = 50 // intercept names the assassination target half the time
|
var/const/prob_right_murder_target_h = 50 // upper bound on probability of naimg the right assassination target
|
||||||
prob_right_murder_target_l = 25 // lower bound on probability of naming right assassination target
|
|
||||||
prob_right_murder_target_h = 50 // upper bound on probability of naimg the right assassination target
|
|
||||||
|
|
||||||
prob_int_item = 50 // intercept names the theft target half the time
|
var/const/prob_int_item = 50 // intercept names the theft target half the time
|
||||||
prob_right_item_l = 25 // lower bound on probability of naming right theft target
|
var/const/prob_right_item_l = 25 // lower bound on probability of naming right theft target
|
||||||
prob_right_item_h = 50 // upper bound on probability of naming the right theft target
|
var/const/prob_right_item_h = 50 // upper bound on probability of naming the right theft target
|
||||||
|
|
||||||
prob_int_sab_target = 50 // intercept names the sabotage target half the time
|
var/const/prob_int_sab_target = 50 // intercept names the sabotage target half the time
|
||||||
prob_right_sab_target_l = 25 // lower bound on probability of naming right sabotage target
|
var/const/prob_right_sab_target_l = 25 // lower bound on probability of naming right sabotage target
|
||||||
prob_right_sab_target_h = 50 // upper bound on probability of naming right sabotage target
|
var/const/prob_right_sab_target_h = 50 // upper bound on probability of naming right sabotage target
|
||||||
|
|
||||||
prob_right_killer_l = 25 //lower bound on probability of naming the right operative
|
var/const/prob_right_killer_l = 25 //lower bound on probability of naming the right operative
|
||||||
prob_right_killer_h = 50 //upper bound on probability of naming the right operative
|
var/const/prob_right_killer_h = 50 //upper bound on probability of naming the right operative
|
||||||
prob_right_objective_l = 25 //lower bound on probability of determining the objective correctly
|
var/const/prob_right_objective_l = 25 //lower bound on probability of determining the objective correctly
|
||||||
prob_right_objective_h = 50 //upper bound on probability of determining the objective correctly
|
var/const/prob_right_objective_h = 50 //upper bound on probability of determining the objective correctly
|
||||||
|
|
||||||
waittime_l = 600 //lower bound on time before intercept arrives (in tenths of seconds)
|
var/const/waittime_l = 600 //lower bound on time before intercept arrives (in tenths of seconds)
|
||||||
waittime_h = 1800 //upper bound on time before intercept arrives (in tenths of seconds)
|
var/const/waittime_h = 1800 //upper bound on time before intercept arrives (in tenths of seconds)
|
||||||
|
|
||||||
const/changeling_amount = 4
|
var/const/changeling_amount = 4
|
||||||
|
|
||||||
/datum/game_mode/changeling/announce()
|
/datum/game_mode/changeling/announce()
|
||||||
world << "<B>The current game mode is - Changeling!</B>"
|
world << "<B>The current game mode is - Changeling!</B>"
|
||||||
@@ -233,4 +233,4 @@
|
|||||||
if(possibleIDs.len)
|
if(possibleIDs.len)
|
||||||
changelingID = pick(possibleIDs)
|
changelingID = pick(possibleIDs)
|
||||||
else
|
else
|
||||||
changelingID = "[rand(1,1000)]"
|
changelingID = "[rand(1,1000)]"
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:04
|
||||||
|
|
||||||
/datum/game_mode
|
/datum/game_mode
|
||||||
var
|
var/list/datum/mind/cult = list()
|
||||||
list/datum/mind/cult = list()
|
var/list/allwords = list("travel","self","see","hell","blood","join","tech","destroy", "other", "hide")
|
||||||
list/allwords = list("travel","self","see","hell","blood","join","tech","destroy", "other", "hide")
|
|
||||||
|
|
||||||
|
|
||||||
/proc/iscultist(mob/living/M as mob)
|
/proc/iscultist(mob/living/M as mob)
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:04
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* GAMEMODES (by Rastaf0)
|
* GAMEMODES (by Rastaf0)
|
||||||
*
|
*
|
||||||
@@ -11,24 +13,23 @@
|
|||||||
|
|
||||||
|
|
||||||
/datum/game_mode
|
/datum/game_mode
|
||||||
var
|
var/name = "invalid"
|
||||||
name = "invalid"
|
var/config_tag = null
|
||||||
config_tag = null
|
var/intercept_hacked = 0
|
||||||
intercept_hacked = 0
|
var/votable = 1
|
||||||
votable = 1
|
var/probability = 1
|
||||||
probability = 1
|
var/station_was_nuked = 0 //see nuclearbomb.dm and malfunction.dm
|
||||||
station_was_nuked = 0 //see nuclearbomb.dm and malfunction.dm
|
var/explosion_in_progress = 0 //sit back and relax
|
||||||
explosion_in_progress = 0 //sit back and relax
|
var/list/datum/mind/modePlayer = new
|
||||||
list/datum/mind/modePlayer = new
|
var/list/restricted_jobs = list() // Jobs it doesn't make sense to be. I.E chaplain or AI cultist
|
||||||
list/restricted_jobs = list() // Jobs it doesn't make sense to be. I.E chaplain or AI cultist
|
var/list/protected_jobs = list() // Jobs that can't be tratiors because
|
||||||
list/protected_jobs = list() // Jobs that can't be tratiors because
|
var/list/logtraitors = list()
|
||||||
list/logtraitors = list()
|
var/required_players = 1
|
||||||
required_players = 1
|
var/required_enemies = 0
|
||||||
required_enemies = 0
|
var/recommended_enemies = 0
|
||||||
recommended_enemies = 0
|
var/uplink_welcome
|
||||||
uplink_welcome
|
var/uplink_uses
|
||||||
uplink_uses
|
var/uplink_items = {"Highly Visible and Dangerous Weapons;
|
||||||
uplink_items = {"Highly Visible and Dangerous Weapons;
|
|
||||||
/obj/item/weapon/gun/projectile:6:Revolver;
|
/obj/item/weapon/gun/projectile:6:Revolver;
|
||||||
/obj/item/ammo_magazine/a357:2:Ammo-357;
|
/obj/item/ammo_magazine/a357:2:Ammo-357;
|
||||||
/obj/item/weapon/gun/energy/crossbow:5:Energy Crossbow;
|
/obj/item/weapon/gun/energy/crossbow:5:Energy Crossbow;
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:04
|
||||||
|
|
||||||
/datum/game_mode/var/list/memes = list()
|
/datum/game_mode/var/list/memes = list()
|
||||||
|
|
||||||
/datum/game_mode/meme
|
/datum/game_mode/meme
|
||||||
@@ -9,31 +11,29 @@
|
|||||||
votable = 0 // temporarily disable this mode for voting
|
votable = 0 // temporarily disable this mode for voting
|
||||||
|
|
||||||
|
|
||||||
var
|
|
||||||
|
|
||||||
var/list/datum/mind/first_hosts = list()
|
var/var/list/datum/mind/first_hosts = list()
|
||||||
var/list/assigned_hosts = list()
|
var/var/list/assigned_hosts = list()
|
||||||
|
|
||||||
const
|
var/const/prob_int_murder_target = 50 // intercept names the assassination target half the time
|
||||||
prob_int_murder_target = 50 // intercept names the assassination target half the time
|
var/const/prob_right_murder_target_l = 25 // lower bound on probability of naming right assassination target
|
||||||
prob_right_murder_target_l = 25 // lower bound on probability of naming right assassination target
|
var/const/prob_right_murder_target_h = 50 // upper bound on probability of naimg the right assassination target
|
||||||
prob_right_murder_target_h = 50 // upper bound on probability of naimg the right assassination target
|
|
||||||
|
|
||||||
prob_int_item = 50 // intercept names the theft target half the time
|
var/const/prob_int_item = 50 // intercept names the theft target half the time
|
||||||
prob_right_item_l = 25 // lower bound on probability of naming right theft target
|
var/const/prob_right_item_l = 25 // lower bound on probability of naming right theft target
|
||||||
prob_right_item_h = 50 // upper bound on probability of naming the right theft target
|
var/const/prob_right_item_h = 50 // upper bound on probability of naming the right theft target
|
||||||
|
|
||||||
prob_int_sab_target = 50 // intercept names the sabotage target half the time
|
var/const/prob_int_sab_target = 50 // intercept names the sabotage target half the time
|
||||||
prob_right_sab_target_l = 25 // lower bound on probability of naming right sabotage target
|
var/const/prob_right_sab_target_l = 25 // lower bound on probability of naming right sabotage target
|
||||||
prob_right_sab_target_h = 50 // upper bound on probability of naming right sabotage target
|
var/const/prob_right_sab_target_h = 50 // upper bound on probability of naming right sabotage target
|
||||||
|
|
||||||
prob_right_killer_l = 25 //lower bound on probability of naming the right operative
|
var/const/prob_right_killer_l = 25 //lower bound on probability of naming the right operative
|
||||||
prob_right_killer_h = 50 //upper bound on probability of naming the right operative
|
var/const/prob_right_killer_h = 50 //upper bound on probability of naming the right operative
|
||||||
prob_right_objective_l = 25 //lower bound on probability of determining the objective correctly
|
var/const/prob_right_objective_l = 25 //lower bound on probability of determining the objective correctly
|
||||||
prob_right_objective_h = 50 //upper bound on probability of determining the objective correctly
|
var/const/prob_right_objective_h = 50 //upper bound on probability of determining the objective correctly
|
||||||
|
|
||||||
waittime_l = 600 //lower bound on time before intercept arrives (in tenths of seconds)
|
var/const/waittime_l = 600 //lower bound on time before intercept arrives (in tenths of seconds)
|
||||||
waittime_h = 1800 //upper bound on time before intercept arrives (in tenths of seconds)
|
var/const/waittime_h = 1800 //upper bound on time before intercept arrives (in tenths of seconds)
|
||||||
|
|
||||||
/datum/game_mode/meme/announce()
|
/datum/game_mode/meme/announce()
|
||||||
world << "<B>The current game mode is - Meme!</B>"
|
world << "<B>The current game mode is - Meme!</B>"
|
||||||
@@ -177,4 +177,4 @@
|
|||||||
else
|
else
|
||||||
world << "<B>The meme has failed!<B>"
|
world << "<B>The meme has failed!<B>"
|
||||||
feedback_add_details("meme_success","FAIL")
|
feedback_add_details("meme_success","FAIL")
|
||||||
return 1
|
return 1
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:04
|
||||||
|
|
||||||
datum/objective
|
datum/objective
|
||||||
var
|
var/datum/mind/owner = null //Who owns the objective.
|
||||||
datum/mind/owner = null //Who owns the objective.
|
var/explanation_text = "Nothing" //What that person is supposed to do.
|
||||||
explanation_text = "Nothing" //What that person is supposed to do.
|
var/datum/mind/target = null //If they are focused on a particular person.
|
||||||
datum/mind/target = null //If they are focused on a particular person.
|
var/target_amount = 0 //If they are focused on a particular number. Steal objectives have their own counter.
|
||||||
target_amount = 0 //If they are focused on a particular number. Steal objectives have their own counter.
|
|
||||||
|
|
||||||
New(var/text)
|
New(var/text)
|
||||||
if(text)
|
if(text)
|
||||||
@@ -530,4 +531,4 @@ datum/objective/absorb
|
|||||||
return 0
|
return 0
|
||||||
|
|
||||||
/*-------ENDOF CULTIST------*/
|
/*-------ENDOF CULTIST------*/
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
var
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:04
|
||||||
hsboxspawn = 1
|
|
||||||
list
|
var/hsboxspawn = 1
|
||||||
|
var/list
|
||||||
hrefs = list(
|
hrefs = list(
|
||||||
"hsbsuit" = "Suit Up (Space Travel Gear)",
|
"hsbsuit" = "Suit Up (Space Travel Gear)",
|
||||||
"hsbmetal" = "Spawn 50 Metal",
|
"hsbmetal" = "Spawn 50 Metal",
|
||||||
@@ -15,8 +16,7 @@ var
|
|||||||
"hsbmedkit" = "Spawn Medical Kit")
|
"hsbmedkit" = "Spawn Medical Kit")
|
||||||
|
|
||||||
mob
|
mob
|
||||||
var
|
var/datum/hSB/sandbox = null
|
||||||
datum/hSB/sandbox = null
|
|
||||||
proc
|
proc
|
||||||
CanBuild()
|
CanBuild()
|
||||||
if(master_mode == "sandbox")
|
if(master_mode == "sandbox")
|
||||||
@@ -30,9 +30,8 @@ mob
|
|||||||
sandbox.update()
|
sandbox.update()
|
||||||
|
|
||||||
datum/hSB
|
datum/hSB
|
||||||
var
|
var/owner = null
|
||||||
owner = null
|
var/admin = 0
|
||||||
admin = 0
|
|
||||||
proc
|
proc
|
||||||
update()
|
update()
|
||||||
var/hsbpanel = "<center><b>h_Sandbox Panel</b></center><hr>"
|
var/hsbpanel = "<center><b>h_Sandbox Panel</b></center><hr>"
|
||||||
@@ -153,4 +152,4 @@ datum/hSB
|
|||||||
|
|
||||||
var/hsbitem = input(usr, "Choose an object to spawn.", "Sandbox:") in selectable + "Cancel"
|
var/hsbitem = input(usr, "Choose an object to spawn.", "Sandbox:") in selectable + "Cancel"
|
||||||
if(hsbitem != "Cancel")
|
if(hsbitem != "Cancel")
|
||||||
new hsbitem(usr.loc)
|
new hsbitem(usr.loc)
|
||||||
|
|||||||
@@ -1,14 +1,15 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:04
|
||||||
|
|
||||||
var/global/datum/controller/occupations/job_master
|
var/global/datum/controller/occupations/job_master
|
||||||
|
|
||||||
/datum/controller/occupations
|
/datum/controller/occupations
|
||||||
var
|
|
||||||
//List of all jobs
|
//List of all jobs
|
||||||
list/occupations = list()
|
var/list/occupations = list()
|
||||||
list/occupations2 = list() // Prevents problems with latejoiners.
|
var/list/occupations2 = list() // Prevents problems with latejoiners.
|
||||||
//Players who need jobs
|
//Players who need jobs
|
||||||
list/unassigned = list()
|
var/list/unassigned = list()
|
||||||
//Debug info
|
//Debug info
|
||||||
list/job_debug = list()
|
var/list/job_debug = list()
|
||||||
|
|
||||||
|
|
||||||
New()
|
New()
|
||||||
@@ -392,4 +393,4 @@ var/global/datum/controller/occupations/job_master
|
|||||||
|
|
||||||
tmp_str += "HIGH=[level1]|MEDIUM=[level2]|LOW=[level3]|NEVER=[level4]|BANNED=[level5]|-"
|
tmp_str += "HIGH=[level1]|MEDIUM=[level2]|LOW=[level3]|NEVER=[level4]|BANNED=[level5]|-"
|
||||||
feedback_add_details("job_preferences",tmp_str)
|
feedback_add_details("job_preferences",tmp_str)
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:04
|
||||||
|
|
||||||
|
|
||||||
/proc/RandomAAlarmWires()
|
/proc/RandomAAlarmWires()
|
||||||
//to make this not randomize the wires, just set index to 1 and increment it in the flag for loop (after doing everything else).
|
//to make this not randomize the wires, just set index to 1 and increment it in the flag for loop (after doing everything else).
|
||||||
@@ -24,11 +26,10 @@
|
|||||||
// A datum for dealing with threshold limit values
|
// A datum for dealing with threshold limit values
|
||||||
// used in /obj/machinery/alarm
|
// used in /obj/machinery/alarm
|
||||||
/datum/tlv
|
/datum/tlv
|
||||||
var
|
var/min2
|
||||||
min2
|
var/min1
|
||||||
min1
|
var/max1
|
||||||
max1
|
var/max2
|
||||||
max2
|
|
||||||
New(_min2 as num, _min1 as num, _max1 as num, _max2 as num)
|
New(_min2 as num, _min1 as num, _max1 as num, _max2 as num)
|
||||||
min2 = _min2
|
min2 = _min2
|
||||||
min1 = _min1
|
min1 = _min1
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:04
|
||||||
|
|
||||||
var/global/list/autolathe_recipes = list( \
|
var/global/list/autolathe_recipes = list( \
|
||||||
/* screwdriver removed*/ \
|
/* screwdriver removed*/ \
|
||||||
new /obj/item/weapon/reagent_containers/glass/bucket(), \
|
new /obj/item/weapon/reagent_containers/glass/bucket(), \
|
||||||
@@ -54,12 +56,11 @@ var/global/list/autolathe_recipes_hidden = list( \
|
|||||||
)
|
)
|
||||||
|
|
||||||
/obj/machinery/autolathe
|
/obj/machinery/autolathe
|
||||||
var
|
var/busy = 0
|
||||||
busy = 0
|
var/max_m_amount = 150000.0
|
||||||
max_m_amount = 150000.0
|
var/max_g_amount = 75000.0
|
||||||
max_g_amount = 75000.0
|
var/outputAmount = 1
|
||||||
outputAmount = 1
|
var/makeDir = 0
|
||||||
makeDir = 0
|
|
||||||
|
|
||||||
proc
|
proc
|
||||||
wires_win(mob/user as mob)
|
wires_win(mob/user as mob)
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:04
|
||||||
|
|
||||||
// Mulebot - carries crates around for Quartermaster
|
// Mulebot - carries crates around for Quartermaster
|
||||||
// Navigates via floor navbeacons
|
// Navigates via floor navbeacons
|
||||||
// Remote Controlled from QM's PDA
|
// Remote Controlled from QM's PDA
|
||||||
@@ -52,17 +54,16 @@
|
|||||||
// the installed power cell
|
// the installed power cell
|
||||||
|
|
||||||
// constants for internal wiring bitflags
|
// constants for internal wiring bitflags
|
||||||
var/const
|
var/const/wire_power1 = 1 // power connections
|
||||||
wire_power1 = 1 // power connections
|
var/const/wire_power2 = 2
|
||||||
wire_power2 = 2
|
var/const/wire_mobavoid = 4 // mob avoidance
|
||||||
wire_mobavoid = 4 // mob avoidance
|
var/const/wire_loadcheck = 8 // load checking (non-crate)
|
||||||
wire_loadcheck = 8 // load checking (non-crate)
|
var/const/wire_motor1 = 16 // motor wires
|
||||||
wire_motor1 = 16 // motor wires
|
var/const/wire_motor2 = 32 //
|
||||||
wire_motor2 = 32 //
|
var/const/wire_remote_rx = 64 // remote recv functions
|
||||||
wire_remote_rx = 64 // remote recv functions
|
var/const/wire_remote_tx = 128 // remote trans status
|
||||||
wire_remote_tx = 128 // remote trans status
|
var/const/wire_beacon_rx = 256 // beacon ping recv
|
||||||
wire_beacon_rx = 256 // beacon ping recv
|
var/const/wire_beacon_tx = 512 // beacon ping trans
|
||||||
wire_beacon_tx = 512 // beacon ping trans
|
|
||||||
|
|
||||||
var/wires = 1023 // all flags on
|
var/wires = 1023 // all flags on
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:04
|
||||||
|
|
||||||
|
|
||||||
/obj/machinery/cell_charger
|
/obj/machinery/cell_charger
|
||||||
name = "cell charger"
|
name = "cell charger"
|
||||||
@@ -9,9 +11,8 @@
|
|||||||
idle_power_usage = 5
|
idle_power_usage = 5
|
||||||
active_power_usage = 60
|
active_power_usage = 60
|
||||||
power_channel = EQUIP
|
power_channel = EQUIP
|
||||||
var
|
var/obj/item/weapon/cell/charging = null
|
||||||
obj/item/weapon/cell/charging = null
|
var/chargelevel = -1
|
||||||
chargelevel = -1
|
|
||||||
proc
|
proc
|
||||||
updateicon()
|
updateicon()
|
||||||
icon_state = "ccharger[charging ? 1 : 0]"
|
icon_state = "ccharger[charging ? 1 : 0]"
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:04
|
||||||
|
|
||||||
/obj/machinery/computer/operating
|
/obj/machinery/computer/operating
|
||||||
name = "Operating Computer"
|
name = "Operating Computer"
|
||||||
density = 1
|
density = 1
|
||||||
@@ -5,9 +7,8 @@
|
|||||||
desc = "Used to monitor status of people being operated on."
|
desc = "Used to monitor status of people being operated on."
|
||||||
icon_state = "operating"
|
icon_state = "operating"
|
||||||
circuit = "/obj/item/weapon/circuitboard/operating"
|
circuit = "/obj/item/weapon/circuitboard/operating"
|
||||||
var
|
var/mob/living/carbon/human/victim = null
|
||||||
mob/living/carbon/human/victim = null
|
var/obj/machinery/optable/table = null
|
||||||
obj/machinery/optable/table = null
|
|
||||||
|
|
||||||
/obj/machinery/computer/operating/New()
|
/obj/machinery/computer/operating/New()
|
||||||
..()
|
..()
|
||||||
@@ -93,4 +94,4 @@
|
|||||||
if(!(stat & (NOPOWER|BROKEN)) )
|
if(!(stat & (NOPOWER|BROKEN)) )
|
||||||
use_power(500)
|
use_power(500)
|
||||||
|
|
||||||
src.updateDialog()
|
src.updateDialog()
|
||||||
|
|||||||
@@ -1,13 +1,14 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:04
|
||||||
|
|
||||||
|
|
||||||
/obj/machinery/computer/atmos_alert
|
/obj/machinery/computer/atmos_alert
|
||||||
name = "Atmospheric Alert Computer"
|
name = "Atmospheric Alert Computer"
|
||||||
desc = "Used to access the station's atmospheric sensors."
|
desc = "Used to access the station's atmospheric sensors."
|
||||||
icon_state = "alert:0"
|
icon_state = "alert:0"
|
||||||
var
|
var/list/priority_alarms = list()
|
||||||
list/priority_alarms = list()
|
var/list/minor_alarms = list()
|
||||||
list/minor_alarms = list()
|
var/receive_frequency = 1437
|
||||||
receive_frequency = 1437
|
var/datum/radio_frequency/radio_connection
|
||||||
datum/radio_frequency/radio_connection
|
|
||||||
|
|
||||||
|
|
||||||
initialize()
|
initialize()
|
||||||
@@ -102,4 +103,4 @@
|
|||||||
if(ckey(zone) == removing_zone)
|
if(ckey(zone) == removing_zone)
|
||||||
minor_alarms -= zone
|
minor_alarms -= zone
|
||||||
update_icon()
|
update_icon()
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:04
|
||||||
|
|
||||||
/obj/structure/computerframe
|
/obj/structure/computerframe
|
||||||
density = 1
|
density = 1
|
||||||
anchored = 0
|
anchored = 0
|
||||||
@@ -17,16 +19,15 @@
|
|||||||
icon_state = "id_mod"
|
icon_state = "id_mod"
|
||||||
item_state = "electronic"
|
item_state = "electronic"
|
||||||
origin_tech = "programming=2"
|
origin_tech = "programming=2"
|
||||||
var
|
var/id = null
|
||||||
id = null
|
var/frequency = null
|
||||||
frequency = null
|
var/build_path = null
|
||||||
build_path = null
|
var/board_type = "computer"
|
||||||
board_type = "computer"
|
var/list/req_components = null
|
||||||
list/req_components = null
|
var/powernet = null
|
||||||
powernet = null
|
var/list/records = null
|
||||||
list/records = null
|
var/frame_desc = null
|
||||||
frame_desc = null
|
var/contain_parts = 1
|
||||||
contain_parts = 1
|
|
||||||
|
|
||||||
/obj/item/weapon/circuitboard/aicore
|
/obj/item/weapon/circuitboard/aicore
|
||||||
name = "Circuit board (AI core)"
|
name = "Circuit board (AI core)"
|
||||||
|
|||||||
@@ -1,15 +1,16 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:04
|
||||||
|
|
||||||
/obj/machinery/computer/card
|
/obj/machinery/computer/card
|
||||||
name = "Identification Computer"
|
name = "Identification Computer"
|
||||||
desc = "A computer used to modify ID cards."
|
desc = "A computer used to modify ID cards."
|
||||||
icon_state = "id"
|
icon_state = "id"
|
||||||
req_access = list(access_change_ids)
|
req_access = list(access_change_ids)
|
||||||
circuit = "/obj/item/weapon/circuitboard/card"
|
circuit = "/obj/item/weapon/circuitboard/card"
|
||||||
var
|
var/obj/item/weapon/card/id/scan = null
|
||||||
obj/item/weapon/card/id/scan = null
|
var/obj/item/weapon/card/id/modify = null
|
||||||
obj/item/weapon/card/id/modify = null
|
var/authenticated = 0.0
|
||||||
authenticated = 0.0
|
var/mode = 0.0
|
||||||
mode = 0.0
|
var/printing = null
|
||||||
printing = null
|
|
||||||
|
|
||||||
|
|
||||||
/obj/machinery/computer/card/attackby(O as obj, user as mob)//TODO:SANITY
|
/obj/machinery/computer/card/attackby(O as obj, user as mob)//TODO:SANITY
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:04
|
||||||
|
|
||||||
// The communications computer
|
// The communications computer
|
||||||
/obj/machinery/computer/communications
|
/obj/machinery/computer/communications
|
||||||
name = "Communications Console"
|
name = "Communications Console"
|
||||||
@@ -16,17 +18,16 @@
|
|||||||
var/message_cooldown = 0
|
var/message_cooldown = 0
|
||||||
var/centcomm_message_cooldown = 0
|
var/centcomm_message_cooldown = 0
|
||||||
var/tmp_alertlevel = 0
|
var/tmp_alertlevel = 0
|
||||||
var/const
|
var/const/STATE_DEFAULT = 1
|
||||||
STATE_DEFAULT = 1
|
var/const/STATE_CALLSHUTTLE = 2
|
||||||
STATE_CALLSHUTTLE = 2
|
var/const/STATE_CANCELSHUTTLE = 3
|
||||||
STATE_CANCELSHUTTLE = 3
|
var/const/STATE_MESSAGELIST = 4
|
||||||
STATE_MESSAGELIST = 4
|
var/const/STATE_VIEWMESSAGE = 5
|
||||||
STATE_VIEWMESSAGE = 5
|
var/const/STATE_DELMESSAGE = 6
|
||||||
STATE_DELMESSAGE = 6
|
var/const/STATE_STATUSDISPLAY = 7
|
||||||
STATE_STATUSDISPLAY = 7
|
var/const/STATE_ALERT_LEVEL = 8
|
||||||
STATE_ALERT_LEVEL = 8
|
var/const/STATE_CONFIRM_LEVEL = 9
|
||||||
STATE_CONFIRM_LEVEL = 9
|
var/const/STATE_CREWTRANSFER = 10
|
||||||
STATE_CREWTRANSFER = 10
|
|
||||||
|
|
||||||
var/status_display_freq = "1435"
|
var/status_display_freq = "1435"
|
||||||
var/stat_msg1
|
var/stat_msg1
|
||||||
@@ -612,4 +613,4 @@
|
|||||||
captain_announce("The emergency shuttle has been called. It will arrive in [round(emergency_shuttle.timeleft()/60)] minutes.")
|
captain_announce("The emergency shuttle has been called. It will arrive in [round(emergency_shuttle.timeleft()/60)] minutes.")
|
||||||
world << sound('shuttlecalled.ogg')
|
world << sound('shuttlecalled.ogg')
|
||||||
|
|
||||||
..()
|
..()
|
||||||
|
|||||||
@@ -1,15 +1,16 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:04
|
||||||
|
|
||||||
/obj/machinery/computer/hologram_comp
|
/obj/machinery/computer/hologram_comp
|
||||||
name = "Hologram Computer"
|
name = "Hologram Computer"
|
||||||
desc = "Rumoured to control holograms."
|
desc = "Rumoured to control holograms."
|
||||||
icon = 'stationobjs.dmi'
|
icon = 'stationobjs.dmi'
|
||||||
icon_state = "holo_console0"
|
icon_state = "holo_console0"
|
||||||
var
|
var/obj/machinery/hologram/projector/projector = null
|
||||||
obj/machinery/hologram/projector/projector = null
|
var/temp = null
|
||||||
temp = null
|
var/lumens = 0.0
|
||||||
lumens = 0.0
|
var/h_r = 245.0
|
||||||
h_r = 245.0
|
var/h_g = 245.0
|
||||||
h_g = 245.0
|
var/h_b = 245.0
|
||||||
h_b = 245.0
|
|
||||||
|
|
||||||
|
|
||||||
/obj/machinery/computer/hologram_comp/New()
|
/obj/machinery/computer/hologram_comp/New()
|
||||||
@@ -105,4 +106,4 @@
|
|||||||
for(var/mob/M in viewers(1, src))
|
for(var/mob/M in viewers(1, src))
|
||||||
if ((M.client && M.machine == src))
|
if ((M.client && M.machine == src))
|
||||||
src.show_console(M)
|
src.show_console(M)
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -1,11 +1,12 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:04
|
||||||
|
|
||||||
/obj/machinery/computer/aiupload
|
/obj/machinery/computer/aiupload
|
||||||
name = "AI Upload"
|
name = "AI Upload"
|
||||||
desc = "Used to upload laws to the AI."
|
desc = "Used to upload laws to the AI."
|
||||||
icon_state = "command"
|
icon_state = "command"
|
||||||
circuit = "/obj/item/weapon/circuitboard/aiupload"
|
circuit = "/obj/item/weapon/circuitboard/aiupload"
|
||||||
var
|
var/mob/living/silicon/ai/current = null
|
||||||
mob/living/silicon/ai/current = null
|
var/opened = 0
|
||||||
opened = 0
|
|
||||||
|
|
||||||
|
|
||||||
verb/AccessInternals()
|
verb/AccessInternals()
|
||||||
@@ -188,4 +189,4 @@
|
|||||||
for(var/obj/item/weapon/aiModule/M in src)
|
for(var/obj/item/weapon/aiModule/M in src)
|
||||||
M.loc = src.loc
|
M.loc = src.loc
|
||||||
M.ex_act(severity)
|
M.ex_act(severity)
|
||||||
del(src)
|
del(src)
|
||||||
|
|||||||
@@ -1,22 +1,23 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:04
|
||||||
|
|
||||||
/obj/machinery/computer/med_data//TODO:SANITY
|
/obj/machinery/computer/med_data//TODO:SANITY
|
||||||
name = "Medical Records"
|
name = "Medical Records"
|
||||||
desc = "This can be used to check medical records."
|
desc = "This can be used to check medical records."
|
||||||
icon_state = "medcomp"
|
icon_state = "medcomp"
|
||||||
req_access = list(access_medical)
|
req_access = list(access_medical)
|
||||||
circuit = "/obj/item/weapon/circuitboard/med_data"
|
circuit = "/obj/item/weapon/circuitboard/med_data"
|
||||||
var
|
var/obj/item/weapon/card/id/scan = null
|
||||||
obj/item/weapon/card/id/scan = null
|
var/obj/item/weapon/disk/records/disk = null
|
||||||
obj/item/weapon/disk/records/disk = null
|
var/authenticated = null
|
||||||
authenticated = null
|
var/rank = null
|
||||||
rank = null
|
var/screen = null
|
||||||
screen = null
|
var/datum/data/record/active1 = null
|
||||||
datum/data/record/active1 = null
|
var/datum/data/record/active2 = null
|
||||||
datum/data/record/active2 = null
|
var/a_id = null
|
||||||
a_id = null
|
var/temp = null
|
||||||
temp = null
|
var/printing = null
|
||||||
printing = null
|
var/list/Perp
|
||||||
list/Perp
|
var/tempname = null
|
||||||
tempname = null
|
|
||||||
|
|
||||||
|
|
||||||
/obj/machinery/computer/med_data/attackby(obj/item/O as obj, user as mob)
|
/obj/machinery/computer/med_data/attackby(obj/item/O as obj, user as mob)
|
||||||
|
|||||||
@@ -1,12 +1,13 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:04
|
||||||
|
|
||||||
/obj/machinery/computer/pod
|
/obj/machinery/computer/pod
|
||||||
name = "Pod Launch Control"
|
name = "Pod Launch Control"
|
||||||
desc = "A control for launching pods."
|
desc = "A control for launching pods."
|
||||||
icon_state = "computer_generic"
|
icon_state = "computer_generic"
|
||||||
var
|
var/id = 1.0
|
||||||
id = 1.0
|
var/obj/machinery/mass_driver/connected = null
|
||||||
obj/machinery/mass_driver/connected = null
|
var/timing = 0.0
|
||||||
timing = 0.0
|
var/time = 30.0
|
||||||
time = 30.0
|
|
||||||
|
|
||||||
|
|
||||||
/obj/machinery/computer/pod/New()
|
/obj/machinery/computer/pod/New()
|
||||||
|
|||||||
@@ -1,16 +1,17 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:04
|
||||||
|
|
||||||
/obj/machinery/computer/prisoner
|
/obj/machinery/computer/prisoner
|
||||||
name = "Prisoner Management"
|
name = "Prisoner Management"
|
||||||
icon = 'computer.dmi'
|
icon = 'computer.dmi'
|
||||||
icon_state = "explosive"
|
icon_state = "explosive"
|
||||||
req_access = list(access_armory)
|
req_access = list(access_armory)
|
||||||
circuit = "/obj/item/weapon/circuitboard/prisoner"
|
circuit = "/obj/item/weapon/circuitboard/prisoner"
|
||||||
var
|
var/id = 0.0
|
||||||
id = 0.0
|
var/temp = null
|
||||||
temp = null
|
var/status = 0
|
||||||
status = 0
|
var/timeleft = 60
|
||||||
timeleft = 60
|
var/stop = 0.0
|
||||||
stop = 0.0
|
var/screen = 0 // 0 - No Access Denied, 1 - Access allowed
|
||||||
screen = 0 // 0 - No Access Denied, 1 - Access allowed
|
|
||||||
|
|
||||||
|
|
||||||
attack_ai(var/mob/user as mob)
|
attack_ai(var/mob/user as mob)
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:04
|
||||||
|
|
||||||
|
|
||||||
/obj/machinery/computer/robotics
|
/obj/machinery/computer/robotics
|
||||||
name = "Robotics Control"
|
name = "Robotics Control"
|
||||||
@@ -7,13 +9,12 @@
|
|||||||
req_access = list(access_robotics)
|
req_access = list(access_robotics)
|
||||||
circuit = "/obj/item/weapon/circuitboard/robotics"
|
circuit = "/obj/item/weapon/circuitboard/robotics"
|
||||||
|
|
||||||
var
|
var/id = 0.0
|
||||||
id = 0.0
|
var/temp = null
|
||||||
temp = null
|
var/status = 0
|
||||||
status = 0
|
var/timeleft = 60
|
||||||
timeleft = 60
|
var/stop = 0.0
|
||||||
stop = 0.0
|
var/screen = 0 // 0 - Main Menu, 1 - Cyborg Status, 2 - Kill 'em All! -- In text
|
||||||
screen = 0 // 0 - Main Menu, 1 - Cyborg Status, 2 - Kill 'em All! -- In text
|
|
||||||
|
|
||||||
|
|
||||||
/obj/machinery/computer/robotics/attack_ai(var/mob/user as mob)
|
/obj/machinery/computer/robotics/attack_ai(var/mob/user as mob)
|
||||||
|
|||||||
@@ -1,23 +1,24 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:04
|
||||||
|
|
||||||
/obj/machinery/computer/secure_data
|
/obj/machinery/computer/secure_data
|
||||||
name = "Security Records"
|
name = "Security Records"
|
||||||
desc = "Used to view and edit personnel's security records"
|
desc = "Used to view and edit personnel's security records"
|
||||||
icon_state = "security"
|
icon_state = "security"
|
||||||
req_access = list(access_security)
|
req_access = list(access_security)
|
||||||
circuit = "/obj/item/weapon/circuitboard/secure_data"
|
circuit = "/obj/item/weapon/circuitboard/secure_data"
|
||||||
var
|
var/obj/item/weapon/card/id/scan = null
|
||||||
obj/item/weapon/card/id/scan = null
|
var/obj/item/weapon/disk/records/disk = null
|
||||||
obj/item/weapon/disk/records/disk = null
|
var/authenticated = null
|
||||||
authenticated = null
|
var/rank = null
|
||||||
rank = null
|
var/screen = null
|
||||||
screen = null
|
var/datum/data/record/active1 = null
|
||||||
datum/data/record/active1 = null
|
var/datum/data/record/active2 = null
|
||||||
datum/data/record/active2 = null
|
var/a_id = null
|
||||||
a_id = null
|
var/temp = null
|
||||||
temp = null
|
var/printing = null
|
||||||
printing = null
|
var/can_change_id = 0
|
||||||
can_change_id = 0
|
var/list/Perp
|
||||||
list/Perp
|
var/tempname = null
|
||||||
tempname = null
|
|
||||||
|
|
||||||
|
|
||||||
/obj/machinery/computer/secure_data/attackby(obj/item/O as obj, user as mob)
|
/obj/machinery/computer/secure_data/attackby(obj/item/O as obj, user as mob)
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:04
|
||||||
|
|
||||||
/obj/machinery/constructable_frame //Made into a seperate type to make future revisions easier.
|
/obj/machinery/constructable_frame //Made into a seperate type to make future revisions easier.
|
||||||
name = "machine frame"
|
name = "machine frame"
|
||||||
icon = 'stock_parts.dmi'
|
icon = 'stock_parts.dmi'
|
||||||
@@ -5,12 +7,11 @@
|
|||||||
density = 1
|
density = 1
|
||||||
anchored = 1
|
anchored = 1
|
||||||
use_power = 0
|
use_power = 0
|
||||||
var
|
var/obj/item/weapon/circuitboard/circuit = null
|
||||||
obj/item/weapon/circuitboard/circuit = null
|
var/list/components = null
|
||||||
list/components = null
|
var/list/req_components = null
|
||||||
list/req_components = null
|
var/list/req_component_names = null
|
||||||
list/req_component_names = null
|
var/state = 1
|
||||||
state = 1
|
|
||||||
|
|
||||||
proc/update_desc()
|
proc/update_desc()
|
||||||
var/D
|
var/D
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:04
|
||||||
|
|
||||||
/obj/item/weapon/airlock_electronics
|
/obj/item/weapon/airlock_electronics
|
||||||
name = "Airlock Electronics"
|
name = "Airlock Electronics"
|
||||||
icon = 'door_assembly.dmi'
|
icon = 'door_assembly.dmi'
|
||||||
@@ -8,12 +10,11 @@
|
|||||||
|
|
||||||
req_access = list(access_engine)
|
req_access = list(access_engine)
|
||||||
|
|
||||||
var
|
var/list/conf_access = null
|
||||||
list/conf_access = null
|
var/last_configurator = null
|
||||||
last_configurator = null
|
var/locked = 1
|
||||||
locked = 1
|
var/style_name = "General"
|
||||||
style_name = "General"
|
var/style = /obj/structure/door_assembly/door_assembly_0
|
||||||
style = /obj/structure/door_assembly/door_assembly_0
|
|
||||||
|
|
||||||
attack_self(mob/user as mob)
|
attack_self(mob/user as mob)
|
||||||
if (!ishuman(user))
|
if (!ishuman(user))
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:04
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// Brig Door control displays.
|
// Brig Door control displays.
|
||||||
// Description: This is a controls the timer for the brig doors, displays the timer on itself and
|
// Description: This is a controls the timer for the brig doors, displays the timer on itself and
|
||||||
@@ -14,12 +16,11 @@
|
|||||||
req_access = list(access_brig)
|
req_access = list(access_brig)
|
||||||
anchored = 1.0 // can't pick it up
|
anchored = 1.0 // can't pick it up
|
||||||
density = 0 // can walk through it.
|
density = 0 // can walk through it.
|
||||||
var
|
var/id = null // id of door it controls.
|
||||||
id = null // id of door it controls.
|
var/releasetime = 0 // when world.time reaches it - release the prisoneer
|
||||||
releasetime = 0 // when world.time reaches it - release the prisoneer
|
var/timing = 1 // boolean, true/1 timer is on, false/0 means it's not timing
|
||||||
timing = 1 // boolean, true/1 timer is on, false/0 means it's not timing
|
var/picture_state // icon_state of alert picture, if not displaying text/numbers
|
||||||
picture_state // icon_state of alert picture, if not displaying text/numbers
|
var/list/obj/machinery/targets = list()
|
||||||
list/obj/machinery/targets = list()
|
|
||||||
|
|
||||||
|
|
||||||
New()
|
New()
|
||||||
@@ -293,4 +294,4 @@
|
|||||||
name = "Cell 6"
|
name = "Cell 6"
|
||||||
id = "Cell 6"
|
id = "Cell 6"
|
||||||
dir = 4
|
dir = 4
|
||||||
pixel_x = 32
|
pixel_x = 32
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:04
|
||||||
|
|
||||||
/obj/machinery/door
|
/obj/machinery/door
|
||||||
name = "Door"
|
name = "Door"
|
||||||
desc = "It opens and closes."
|
desc = "It opens and closes."
|
||||||
@@ -8,15 +10,14 @@
|
|||||||
density = 1
|
density = 1
|
||||||
layer = 2.7
|
layer = 2.7
|
||||||
|
|
||||||
var
|
var/secondsElectrified = 0
|
||||||
secondsElectrified = 0
|
var/visible = 1
|
||||||
visible = 1
|
var/p_open = 0
|
||||||
p_open = 0
|
var/operating = 0
|
||||||
operating = 0
|
var/autoclose = 0
|
||||||
autoclose = 0
|
var/glass = 0
|
||||||
glass = 0
|
var/forcecrush = 0
|
||||||
forcecrush = 0
|
var/holdopen = 0
|
||||||
holdopen = 0
|
|
||||||
|
|
||||||
proc/bumpopen(mob/user as mob)
|
proc/bumpopen(mob/user as mob)
|
||||||
proc/update_nearby_tiles(need_rebuild)
|
proc/update_nearby_tiles(need_rebuild)
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:04
|
||||||
|
|
||||||
obj/machinery/recharger
|
obj/machinery/recharger
|
||||||
anchored = 1
|
anchored = 1
|
||||||
icon = 'stationobjs.dmi'
|
icon = 'stationobjs.dmi'
|
||||||
@@ -7,9 +9,8 @@ obj/machinery/recharger
|
|||||||
idle_power_usage = 4
|
idle_power_usage = 4
|
||||||
active_power_usage = 250
|
active_power_usage = 250
|
||||||
|
|
||||||
var
|
var/obj/item/weapon/gun/energy/charging = null
|
||||||
obj/item/weapon/gun/energy/charging = null
|
var/obj/item/weapon/melee/baton/charging2 = null
|
||||||
obj/item/weapon/melee/baton/charging2 = null
|
|
||||||
|
|
||||||
attackby(obj/item/weapon/G as obj, mob/user as mob)
|
attackby(obj/item/weapon/G as obj, mob/user as mob)
|
||||||
if(issilicon(user))
|
if(issilicon(user))
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:04
|
||||||
|
|
||||||
// Beacon randomly spawns in space
|
// Beacon randomly spawns in space
|
||||||
// When a non-traitor (no special role in /mind) uses it, he is given the choice to become a traitor
|
// When a non-traitor (no special role in /mind) uses it, he is given the choice to become a traitor
|
||||||
// If he accepts there is a random chance he will be accepted, rejected, or rejected and killed
|
// If he accepts there is a random chance he will be accepted, rejected, or rejected and killed
|
||||||
@@ -13,10 +15,9 @@
|
|||||||
anchored = 1
|
anchored = 1
|
||||||
density = 1
|
density = 1
|
||||||
|
|
||||||
var
|
var/temptext = ""
|
||||||
temptext = ""
|
var/selfdestructing = 0
|
||||||
selfdestructing = 0
|
var/charges = 1
|
||||||
charges = 1
|
|
||||||
|
|
||||||
attack_hand(var/mob/user as mob)
|
attack_hand(var/mob/user as mob)
|
||||||
usr.machine = src
|
usr.machine = src
|
||||||
@@ -113,10 +114,9 @@
|
|||||||
layer = MOB_LAYER - 0.1 //so people can't hide it and it's REALLY OBVIOUS
|
layer = MOB_LAYER - 0.1 //so people can't hide it and it's REALLY OBVIOUS
|
||||||
stat = 0
|
stat = 0
|
||||||
|
|
||||||
var
|
var/active = 0 //It doesn't use up power, so use_power wouldn't really suit it
|
||||||
active = 0 //It doesn't use up power, so use_power wouldn't really suit it
|
var/icontype = "beacon"
|
||||||
icontype = "beacon"
|
var/obj/structure/cable/attached = null
|
||||||
obj/structure/cable/attached = null
|
|
||||||
|
|
||||||
|
|
||||||
proc/Activate(mob/user = null)
|
proc/Activate(mob/user = null)
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:04
|
||||||
|
|
||||||
/*
|
/*
|
||||||
The broadcaster sends processed messages to all radio devices in the game. They
|
The broadcaster sends processed messages to all radio devices in the game. They
|
||||||
do not have to be headsets; intercoms and station-bounced radios suffice.
|
do not have to be headsets; intercoms and station-bounced radios suffice.
|
||||||
@@ -5,8 +7,7 @@
|
|||||||
They receive their message from a server after the message has been logged.
|
They receive their message from a server after the message has been logged.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var
|
var/list/recentmessages = list() // global list of recent messages broadcasted : used to circumvent massive radio spam
|
||||||
list/recentmessages = list() // global list of recent messages broadcasted : used to circumvent massive radio spam
|
|
||||||
|
|
||||||
|
|
||||||
/obj/machinery/telecomms/broadcaster
|
/obj/machinery/telecomms/broadcaster
|
||||||
|
|||||||
@@ -1,16 +1,17 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:04
|
||||||
|
|
||||||
/obj/machinery/computer/telecomms/server
|
/obj/machinery/computer/telecomms/server
|
||||||
name = "Telecommunications Server Monitor"
|
name = "Telecommunications Server Monitor"
|
||||||
icon_state = "comm_logs"
|
icon_state = "comm_logs"
|
||||||
|
|
||||||
var
|
var/screen = 0 // the screen number:
|
||||||
screen = 0 // the screen number:
|
var/list/servers = list() // the servers located by the computer
|
||||||
list/servers = list() // the servers located by the computer
|
var/var/obj/machinery/telecomms/server/SelectedServer
|
||||||
var/obj/machinery/telecomms/server/SelectedServer
|
|
||||||
|
|
||||||
network = "NULL" // the network to probe
|
var/network = "NULL" // the network to probe
|
||||||
temp = "" // temporary feedback messages
|
var/temp = "" // temporary feedback messages
|
||||||
|
|
||||||
universal_translate = 0 // set to 1 if it can translate nonhuman speech
|
var/universal_translate = 0 // set to 1 if it can translate nonhuman speech
|
||||||
|
|
||||||
req_access = list(access_tcomsat)
|
req_access = list(access_tcomsat)
|
||||||
|
|
||||||
@@ -241,4 +242,4 @@
|
|||||||
emagged = 1
|
emagged = 1
|
||||||
user << "\blue You you disable the security protocols"
|
user << "\blue You you disable the security protocols"
|
||||||
src.updateUsrDialog()
|
src.updateUsrDialog()
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:04
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
||||||
@@ -6,9 +8,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/obj/machinery/telecomms
|
/obj/machinery/telecomms
|
||||||
var
|
var/temp = "" // output message
|
||||||
temp = "" // output message
|
var/construct_op = 0
|
||||||
construct_op = 0
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:04
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Hello, friends, this is Doohl from sexylands. You may be wondering what this
|
Hello, friends, this is Doohl from sexylands. You may be wondering what this
|
||||||
monstrous code file is. Sit down, boys and girls, while I tell you the tale.
|
monstrous code file is. Sit down, boys and girls, while I tell you the tale.
|
||||||
@@ -12,24 +14,23 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/obj/machinery/telecomms
|
/obj/machinery/telecomms
|
||||||
var
|
var/list/links = list() // list of machines this machine is linked to
|
||||||
list/links = list() // list of machines this machine is linked to
|
var/traffic = 0 // value increases as traffic increases
|
||||||
traffic = 0 // value increases as traffic increases
|
var/netspeed = 5 // how much traffic to lose per tick (50 gigabytes/second * netspeed)
|
||||||
netspeed = 5 // how much traffic to lose per tick (50 gigabytes/second * netspeed)
|
var/list/autolinkers = list() // list of text/number values to link with
|
||||||
list/autolinkers = list() // list of text/number values to link with
|
var/id = "NULL" // identification string
|
||||||
id = "NULL" // identification string
|
var/network = "NULL" // the network of the machinery
|
||||||
network = "NULL" // the network of the machinery
|
|
||||||
|
|
||||||
list/freq_listening = list() // list of frequencies to tune into: if none, will listen to all
|
var/list/freq_listening = list() // list of frequencies to tune into: if none, will listen to all
|
||||||
|
|
||||||
machinetype = 0 // just a hacky way of preventing alike machines from pairing
|
var/machinetype = 0 // just a hacky way of preventing alike machines from pairing
|
||||||
on = 1
|
var/on = 1
|
||||||
integrity = 100 // basically HP, loses integrity by heat
|
var/integrity = 100 // basically HP, loses integrity by heat
|
||||||
heatgen = 20 // how much heat to transfer to the environment
|
var/heatgen = 20 // how much heat to transfer to the environment
|
||||||
delay = 10 // how many process() ticks to delay per heat
|
var/delay = 10 // how many process() ticks to delay per heat
|
||||||
heating_power = 40000
|
var/heating_power = 40000
|
||||||
|
|
||||||
circuitboard = null // string pointing to a circuitboard type
|
var/circuitboard = null // string pointing to a circuitboard type
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -360,22 +361,21 @@
|
|||||||
machinetype = 4
|
machinetype = 4
|
||||||
heatgen = 50
|
heatgen = 50
|
||||||
circuitboard = "/obj/item/weapon/circuitboard/telecomms/server"
|
circuitboard = "/obj/item/weapon/circuitboard/telecomms/server"
|
||||||
var
|
var/list/log_entries = list()
|
||||||
list/log_entries = list()
|
var/list/stored_names = list()
|
||||||
list/stored_names = list()
|
var/list/TrafficActions = list()
|
||||||
list/TrafficActions = list()
|
var/logs = 0 // number of logs
|
||||||
logs = 0 // number of logs
|
var/totaltraffic = 0 // gigabytes (if > 1024, divide by 1024 -> terrabytes)
|
||||||
totaltraffic = 0 // gigabytes (if > 1024, divide by 1024 -> terrabytes)
|
|
||||||
|
|
||||||
list/memory = list() // stored memory
|
var/list/memory = list() // stored memory
|
||||||
rawcode = "" // the code to compile (raw text)
|
var/rawcode = "" // the code to compile (raw text)
|
||||||
datum/TCS_Compiler/Compiler // the compiler that compiles and runs the code
|
var/datum/TCS_Compiler/Compiler // the compiler that compiles and runs the code
|
||||||
autoruncode = 0 // 1 if the code is set to run every time a signal is picked up
|
var/autoruncode = 0 // 1 if the code is set to run every time a signal is picked up
|
||||||
|
|
||||||
encryption = "null" // encryption key: ie "password"
|
var/encryption = "null" // encryption key: ie "password"
|
||||||
salt = "null" // encryption salt: ie "123comsat"
|
var/salt = "null" // encryption salt: ie "123comsat"
|
||||||
// would add up to md5("password123comsat")
|
// would add up to md5("password123comsat")
|
||||||
language = "human"
|
var/language = "human"
|
||||||
|
|
||||||
receive_information(datum/signal/signal, obj/machinery/telecomms/machine_from)
|
receive_information(datum/signal/signal, obj/machinery/telecomms/machine_from)
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:04
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Telecomms monitor tracks the overall trafficing of a telecommunications network
|
Telecomms monitor tracks the overall trafficing of a telecommunications network
|
||||||
@@ -9,14 +11,13 @@
|
|||||||
name = "Telecommunications Monitor"
|
name = "Telecommunications Monitor"
|
||||||
icon_state = "comm_monitor"
|
icon_state = "comm_monitor"
|
||||||
|
|
||||||
var
|
var/screen = 0 // the screen number:
|
||||||
screen = 0 // the screen number:
|
var/list/machines = list() // the machines located by the computer
|
||||||
list/machines = list() // the machines located by the computer
|
var/var/obj/machinery/telecomms/SelectedMachine
|
||||||
var/obj/machinery/telecomms/SelectedMachine
|
|
||||||
|
|
||||||
network = "NULL" // the network to probe
|
var/network = "NULL" // the network to probe
|
||||||
|
|
||||||
temp = "" // temporary feedback messages
|
var/temp = "" // temporary feedback messages
|
||||||
|
|
||||||
attack_hand(mob/user as mob)
|
attack_hand(mob/user as mob)
|
||||||
if(stat & (BROKEN|NOPOWER))
|
if(stat & (BROKEN|NOPOWER))
|
||||||
@@ -153,4 +154,4 @@
|
|||||||
emagged = 1
|
emagged = 1
|
||||||
user << "\blue You you disable the security protocols"
|
user << "\blue You you disable the security protocols"
|
||||||
src.updateUsrDialog()
|
src.updateUsrDialog()
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:04
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -6,18 +8,17 @@
|
|||||||
name = "Telecommunications Traffic Control"
|
name = "Telecommunications Traffic Control"
|
||||||
icon_state = "computer_generic"
|
icon_state = "computer_generic"
|
||||||
|
|
||||||
var
|
var/screen = 0 // the screen number:
|
||||||
screen = 0 // the screen number:
|
var/list/servers = list() // the servers located by the computer
|
||||||
list/servers = list() // the servers located by the computer
|
var/mob/editingcode
|
||||||
mob/editingcode
|
var/mob/lasteditor
|
||||||
mob/lasteditor
|
var/list/viewingcode = list()
|
||||||
list/viewingcode = list()
|
var/obj/machinery/telecomms/server/SelectedServer
|
||||||
obj/machinery/telecomms/server/SelectedServer
|
|
||||||
|
|
||||||
network = "NULL" // the network to probe
|
var/network = "NULL" // the network to probe
|
||||||
temp = "" // temporary feedback messages
|
var/temp = "" // temporary feedback messages
|
||||||
|
|
||||||
storedcode = "" // code stored
|
var/storedcode = "" // code stored
|
||||||
|
|
||||||
|
|
||||||
proc/update_ide()
|
proc/update_ide()
|
||||||
@@ -237,4 +238,4 @@
|
|||||||
emagged = 1
|
emagged = 1
|
||||||
user << "\blue You you disable the security protocols"
|
user << "\blue You you disable the security protocols"
|
||||||
src.updateUsrDialog()
|
src.updateUsrDialog()
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:04
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Important notice: I changed "vendingwindow" to "vendingwindow_n" (n for new) because
|
Important notice: I changed "vendingwindow" to "vendingwindow_n" (n for new) because
|
||||||
I extended the window's height a small amount and, for some reason, BYOND saves the
|
I extended the window's height a small amount and, for some reason, BYOND saves the
|
||||||
@@ -10,11 +12,10 @@ To combat this, I changed the window name. -- Doohl
|
|||||||
#define PRODUCTS_PER_PAGE 15 // # of products per page
|
#define PRODUCTS_PER_PAGE 15 // # of products per page
|
||||||
|
|
||||||
/obj/machinery/vending
|
/obj/machinery/vending
|
||||||
var/const
|
var/const/WIRE_EXTEND = 1
|
||||||
WIRE_EXTEND = 1
|
var/const/WIRE_SCANID = 2
|
||||||
WIRE_SCANID = 2
|
var/const/WIRE_SHOCK = 3
|
||||||
WIRE_SHOCK = 3
|
var/const/WIRE_SHOOTINV = 4
|
||||||
WIRE_SHOOTINV = 4
|
|
||||||
var/page
|
var/page
|
||||||
var/builtpaths = 0
|
var/builtpaths = 0
|
||||||
var/lastpaths
|
var/lastpaths
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:04
|
||||||
|
|
||||||
#define BOOK_VERSION_MIN 1
|
#define BOOK_VERSION_MIN 1
|
||||||
#define BOOK_VERSION_MAX 2
|
#define BOOK_VERSION_MAX 2
|
||||||
#define BOOK_PATH "data/books/"
|
#define BOOK_PATH "data/books/"
|
||||||
@@ -61,16 +63,15 @@ datum/book_manager/proc/remove(var/id)
|
|||||||
fdel(path(id))
|
fdel(path(id))
|
||||||
|
|
||||||
datum/archived_book
|
datum/archived_book
|
||||||
var
|
var/author // Who wrote the thing, can be changed by pen or PC. It is not automatically assigned
|
||||||
author // Who wrote the thing, can be changed by pen or PC. It is not automatically assigned
|
var/title // The real name of the book.
|
||||||
title // The real name of the book.
|
var/category // The category/genre of the book
|
||||||
category // The category/genre of the book
|
var/id // the id of the book (like an isbn number)
|
||||||
id // the id of the book (like an isbn number)
|
var/dat // Actual page content
|
||||||
dat // Actual page content
|
|
||||||
|
|
||||||
author_real // author's real_name
|
var/author_real // author's real_name
|
||||||
author_key // author's byond key
|
var/author_key // author's byond key
|
||||||
list/icon/photos // in-game photos used
|
var/list/icon/photos // in-game photos used
|
||||||
|
|
||||||
// loads the book corresponding by the specified id
|
// loads the book corresponding by the specified id
|
||||||
datum/archived_book/New(var/path)
|
datum/archived_book/New(var/path)
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:05
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var/use_uristrunes = 1
|
var/use_uristrunes = 1
|
||||||
@@ -64,10 +66,9 @@ var/engwords = list("travel", "blood", "join", "hell", "destroy", "technology",
|
|||||||
layer = TURF_LAYER
|
layer = TURF_LAYER
|
||||||
|
|
||||||
|
|
||||||
var
|
var/word1
|
||||||
word1
|
var/word2
|
||||||
word2
|
var/word3
|
||||||
word3
|
|
||||||
// Places these combos are mentioned: this file - twice in the rune code, once in imbued tome, once in tome's HTML runes.dm - in the imbue rune code. If you change a combination - dont forget to change it everywhere.
|
// Places these combos are mentioned: this file - twice in the rune code, once in imbued tome, once in tome's HTML runes.dm - in the imbue rune code. If you change a combination - dont forget to change it everywhere.
|
||||||
|
|
||||||
// travel self [word] - Teleport to random [rune with word destination matching]
|
// travel self [word] - Teleport to random [rune with word destination matching]
|
||||||
@@ -781,8 +782,7 @@ var/engwords = list("travel", "blood", "join", "hell", "destroy", "technology",
|
|||||||
w_class = 1.0
|
w_class = 1.0
|
||||||
flags = FPRINT | TABLEPASS
|
flags = FPRINT | TABLEPASS
|
||||||
|
|
||||||
var
|
var/data
|
||||||
data
|
|
||||||
|
|
||||||
attack_self(mob/user as mob)
|
attack_self(mob/user as mob)
|
||||||
view_scrap(user)
|
view_scrap(user)
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:05
|
||||||
|
|
||||||
//*******************************
|
//*******************************
|
||||||
//
|
//
|
||||||
// Library SQL Configuration
|
// Library SQL Configuration
|
||||||
@@ -211,20 +213,19 @@
|
|||||||
throw_range = 5
|
throw_range = 5
|
||||||
w_class = 1.0
|
w_class = 1.0
|
||||||
flags = FPRINT | TABLEPASS
|
flags = FPRINT | TABLEPASS
|
||||||
var
|
var/dat // Actual page content
|
||||||
dat // Actual page content
|
var/due_date = 0 // Game time in 1/10th seconds
|
||||||
due_date = 0 // Game time in 1/10th seconds
|
var/author // Who wrote the thing, can be changed by pen or PC. It is not automatically assigned
|
||||||
author // Who wrote the thing, can be changed by pen or PC. It is not automatically assigned
|
var/unique = 0 // 0 - Normal book, 1 - Should not be treated as normal book, unable to be copied, unable to be modified
|
||||||
unique = 0 // 0 - Normal book, 1 - Should not be treated as normal book, unable to be copied, unable to be modified
|
var/title // The real name of the book.
|
||||||
title // The real name of the book.
|
|
||||||
|
|
||||||
author_real // author's real_name
|
var/author_real // author's real_name
|
||||||
author_key // author's byond key
|
var/author_key // author's byond key
|
||||||
ssbn // the ssbn, if a downloaded book
|
var/ssbn // the ssbn, if a downloaded book
|
||||||
|
|
||||||
list/pages = new() // individual pages as a list of text
|
var/list/pages = new() // individual pages as a list of text
|
||||||
cur_page = 1 // current page being read
|
var/cur_page = 1 // current page being read
|
||||||
list/icon/photos // in-game photos used
|
var/list/icon/photos // in-game photos used
|
||||||
|
|
||||||
proc/navbar()
|
proc/navbar()
|
||||||
return "<div style='color:#666;font-style:italic;padding-top:1em;height:7.5%'>" \
|
return "<div style='color:#666;font-style:italic;padding-top:1em;height:7.5%'>" \
|
||||||
@@ -414,10 +415,9 @@
|
|||||||
throw_range = 5
|
throw_range = 5
|
||||||
w_class = 1.0
|
w_class = 1.0
|
||||||
flags = FPRINT | TABLEPASS
|
flags = FPRINT | TABLEPASS
|
||||||
var
|
var/obj/machinery/librarycomp/computer // Associated computer - Modes 1 to 3 use this
|
||||||
obj/machinery/librarycomp/computer // Associated computer - Modes 1 to 3 use this
|
var/obj/item/weapon/book/book // Currently scanned book
|
||||||
obj/item/weapon/book/book // Currently scanned book
|
var/mode = 0 // 0 - Scan only, 1 - Scan and Set Buffer, 2 - Scan and Attempt to Check In, 3 - Scan and Attempt to Add to Inventory
|
||||||
mode = 0 // 0 - Scan only, 1 - Scan and Set Buffer, 2 - Scan and Attempt to Check In, 3 - Scan and Attempt to Add to Inventory
|
|
||||||
|
|
||||||
attack_self(mob/user as mob)
|
attack_self(mob/user as mob)
|
||||||
mode += 1
|
mode += 1
|
||||||
@@ -453,11 +453,10 @@
|
|||||||
|
|
||||||
|
|
||||||
datum/borrowbook // Datum used to keep track of who has borrowed what when and for how long.
|
datum/borrowbook // Datum used to keep track of who has borrowed what when and for how long.
|
||||||
var
|
var/bookname
|
||||||
bookname
|
var/mobname
|
||||||
mobname
|
var/getdate
|
||||||
getdate
|
var/duedate
|
||||||
duedate
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -472,12 +471,11 @@ datum/borrowbook // Datum used to keep track of who has borrowed what when and f
|
|||||||
icon_state = "computer"
|
icon_state = "computer"
|
||||||
anchored = 1
|
anchored = 1
|
||||||
density = 1
|
density = 1
|
||||||
var
|
var/screenstate = 0
|
||||||
screenstate = 0
|
var/title
|
||||||
title
|
var/category = "Any"
|
||||||
category = "Any"
|
var/author
|
||||||
author
|
var/SQLquery
|
||||||
SQLquery
|
|
||||||
|
|
||||||
|
|
||||||
/obj/machinery/librarypubliccomp/attack_hand(var/mob/user as mob)
|
/obj/machinery/librarypubliccomp/attack_hand(var/mob/user as mob)
|
||||||
@@ -580,18 +578,17 @@ datum/borrowbook // Datum used to keep track of who has borrowed what when and f
|
|||||||
icon_state = "computer"
|
icon_state = "computer"
|
||||||
anchored = 1
|
anchored = 1
|
||||||
density = 1
|
density = 1
|
||||||
var
|
var/arcanecheckout = 0
|
||||||
arcanecheckout = 0
|
var/screenstate = 0 // 0 - Main Menu, 1 - Inventory, 2 - Checked Out, 3 - Check Out a Book
|
||||||
screenstate = 0 // 0 - Main Menu, 1 - Inventory, 2 - Checked Out, 3 - Check Out a Book
|
var/buffer_book
|
||||||
buffer_book
|
var/buffer_mob
|
||||||
buffer_mob
|
var/upload_category = "Fiction"
|
||||||
upload_category = "Fiction"
|
var/list/checkouts = list()
|
||||||
list/checkouts = list()
|
var/list/inventory = list()
|
||||||
list/inventory = list()
|
var/checkoutperiod = 5 // In minutes
|
||||||
checkoutperiod = 5 // In minutes
|
var/obj/machinery/libraryscanner/scanner // Book scanner that will be used when uploading books to the Archive
|
||||||
obj/machinery/libraryscanner/scanner // Book scanner that will be used when uploading books to the Archive
|
|
||||||
|
|
||||||
bibledelay = 0 // LOL NO SPAM (1 minute delay) -- Doohl
|
var/bibledelay = 0 // LOL NO SPAM (1 minute delay) -- Doohl
|
||||||
|
|
||||||
/obj/machinery/librarycomp/attack_hand(var/mob/user as mob)
|
/obj/machinery/librarycomp/attack_hand(var/mob/user as mob)
|
||||||
usr.machine = src
|
usr.machine = src
|
||||||
@@ -936,8 +933,7 @@ datum/borrowbook // Datum used to keep track of who has borrowed what when and f
|
|||||||
icon_state = "bigscanner"
|
icon_state = "bigscanner"
|
||||||
anchored = 1
|
anchored = 1
|
||||||
density = 1
|
density = 1
|
||||||
var
|
var/obj/item/weapon/book/cache // Last scanned book
|
||||||
obj/item/weapon/book/cache // Last scanned book
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:05
|
||||||
|
|
||||||
/datum/song
|
/datum/song
|
||||||
var
|
var/name = "Untitled"
|
||||||
name = "Untitled"
|
var/list/lines = new()
|
||||||
list/lines = new()
|
var/tempo = 5
|
||||||
tempo = 5
|
|
||||||
|
|
||||||
/obj/structure/device/piano
|
/obj/structure/device/piano
|
||||||
name = "space minimoog"
|
name = "space minimoog"
|
||||||
@@ -10,11 +11,10 @@
|
|||||||
icon_state = "minimoog"
|
icon_state = "minimoog"
|
||||||
anchored = 1
|
anchored = 1
|
||||||
density = 1
|
density = 1
|
||||||
var
|
var/datum/song/song
|
||||||
datum/song/song
|
var/playing = 0
|
||||||
playing = 0
|
var/help = 0
|
||||||
help = 0
|
var/edit = 1
|
||||||
edit = 1
|
|
||||||
|
|
||||||
proc
|
proc
|
||||||
playnote(var/note as text)
|
playnote(var/note as text)
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
var/const
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:05
|
||||||
MIN_IMPREGNATION_TIME = 100 //time it takes to impregnate someone
|
|
||||||
MAX_IMPREGNATION_TIME = 150
|
|
||||||
|
|
||||||
MIN_ACTIVE_TIME = 300 //time between being dropped and going idle
|
var/const/MIN_IMPREGNATION_TIME = 100 //time it takes to impregnate someone
|
||||||
MAX_ACTIVE_TIME = 600
|
var/const/MAX_IMPREGNATION_TIME = 150
|
||||||
|
|
||||||
|
var/const/MIN_ACTIVE_TIME = 300 //time between being dropped and going idle
|
||||||
|
var/const/MAX_ACTIVE_TIME = 600
|
||||||
|
|
||||||
/obj/item/clothing/mask/facehugger
|
/obj/item/clothing/mask/facehugger
|
||||||
name = "alien"
|
name = "alien"
|
||||||
@@ -267,4 +268,4 @@ var/const
|
|||||||
..(M)
|
..(M)
|
||||||
processing_objects.Remove(src)
|
processing_objects.Remove(src)
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:05
|
||||||
|
|
||||||
/obj/item/device/flashlight
|
/obj/item/device/flashlight
|
||||||
name = "flashlight"
|
name = "flashlight"
|
||||||
desc = "A hand-held emergency light."
|
desc = "A hand-held emergency light."
|
||||||
@@ -7,11 +9,10 @@
|
|||||||
flags = FPRINT | ONBELT | TABLEPASS | CONDUCT
|
flags = FPRINT | ONBELT | TABLEPASS | CONDUCT
|
||||||
m_amt = 50
|
m_amt = 50
|
||||||
g_amt = 20
|
g_amt = 20
|
||||||
var
|
var/on = 0
|
||||||
on = 0
|
var/brightness_on = 4 //luminosity when on
|
||||||
brightness_on = 4 //luminosity when on
|
var/icon_on = "flight1"
|
||||||
icon_on = "flight1"
|
var/icon_off = "flight0"
|
||||||
icon_off = "flight0"
|
|
||||||
|
|
||||||
/obj/item/device/flashlight/initialize()
|
/obj/item/device/flashlight/initialize()
|
||||||
..()
|
..()
|
||||||
@@ -196,4 +197,4 @@
|
|||||||
set src in oview(1)
|
set src in oview(1)
|
||||||
|
|
||||||
if(!usr.stat)
|
if(!usr.stat)
|
||||||
attack_self(usr)
|
attack_self(usr)
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:05
|
||||||
|
|
||||||
/obj/structure/grille
|
/obj/structure/grille
|
||||||
desc = "A piece of metal with evenly spaced gridlike holes in it. Blocks large object but lets small items, gas, or energy beams through. Strangely enough these grilles also lets meteors pass through them, whether they be small or huge station breaking death stones."
|
desc = "A piece of metal with evenly spaced gridlike holes in it. Blocks large object but lets small items, gas, or energy beams through. Strangely enough these grilles also lets meteors pass through them, whether they be small or huge station breaking death stones."
|
||||||
name = "grille"
|
name = "grille"
|
||||||
@@ -8,9 +10,8 @@
|
|||||||
flags = FPRINT | CONDUCT
|
flags = FPRINT | CONDUCT
|
||||||
pressure_resistance = 5*ONE_ATMOSPHERE
|
pressure_resistance = 5*ONE_ATMOSPHERE
|
||||||
layer = 2.9
|
layer = 2.9
|
||||||
var
|
var/health = 10
|
||||||
health = 10
|
var/destroyed = 0
|
||||||
destroyed = 0
|
|
||||||
proc
|
proc
|
||||||
healthcheck()
|
healthcheck()
|
||||||
shock(mob/user, prb)
|
shock(mob/user, prb)
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:05
|
||||||
|
|
||||||
#define CANDLE_LUM 3
|
#define CANDLE_LUM 3
|
||||||
|
|
||||||
/obj/item/candle
|
/obj/item/candle
|
||||||
@@ -7,9 +9,8 @@
|
|||||||
icon_state = "candle1"
|
icon_state = "candle1"
|
||||||
item_state = "candle1"
|
item_state = "candle1"
|
||||||
|
|
||||||
var
|
var/wax = 200
|
||||||
wax = 200
|
var/lit = 0
|
||||||
lit = 0
|
|
||||||
proc
|
proc
|
||||||
light(var/flavor_text = "\red [usr] lights the [name].")
|
light(var/flavor_text = "\red [usr] lights the [name].")
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:05
|
||||||
|
|
||||||
/**********************************************************************
|
/**********************************************************************
|
||||||
Cyborg Spec Items
|
Cyborg Spec Items
|
||||||
***********************************************************************/
|
***********************************************************************/
|
||||||
@@ -90,8 +92,7 @@
|
|||||||
possible_transfer_amounts = list(5,10,15,25,30,50,100)
|
possible_transfer_amounts = list(5,10,15,25,30,50,100)
|
||||||
flags = FPRINT | TABLEPASS | OPENCONTAINER
|
flags = FPRINT | TABLEPASS | OPENCONTAINER
|
||||||
volume = 60
|
volume = 60
|
||||||
var
|
var/reagent = ""
|
||||||
reagent = ""
|
|
||||||
|
|
||||||
|
|
||||||
/obj/item/weapon/reagent_containers/glass/bottle/robot/inaprovaline
|
/obj/item/weapon/reagent_containers/glass/bottle/robot/inaprovaline
|
||||||
@@ -221,11 +222,10 @@
|
|||||||
flags = FPRINT | TABLEPASS| CONDUCT
|
flags = FPRINT | TABLEPASS| CONDUCT
|
||||||
force = 5.0
|
force = 5.0
|
||||||
w_class = 3.0
|
w_class = 3.0
|
||||||
var
|
|
||||||
// datum/effect/effect/system/spark_spread/spark_system
|
// datum/effect/effect/system/spark_spread/spark_system
|
||||||
working = 0
|
var/working = 0
|
||||||
mode = 1
|
var/mode = 1
|
||||||
disabled = 0
|
var/disabled = 0
|
||||||
|
|
||||||
/*
|
/*
|
||||||
New()
|
New()
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:05
|
||||||
|
|
||||||
/obj/item/tk_grab
|
/obj/item/tk_grab
|
||||||
name = "Telekinetic Grab"
|
name = "Telekinetic Grab"
|
||||||
desc = "Magic"
|
desc = "Magic"
|
||||||
@@ -8,10 +10,9 @@
|
|||||||
w_class = 10.0
|
w_class = 10.0
|
||||||
layer = 20
|
layer = 20
|
||||||
|
|
||||||
var
|
var/last_throw = 0
|
||||||
last_throw = 0
|
var/obj/focus = null
|
||||||
obj/focus = null
|
var/mob/living/host = null
|
||||||
mob/living/host = null
|
|
||||||
|
|
||||||
|
|
||||||
dropped(mob/user as mob)
|
dropped(mob/user as mob)
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:05
|
||||||
|
|
||||||
/*
|
/*
|
||||||
CONTAINS:
|
CONTAINS:
|
||||||
RCD
|
RCD
|
||||||
@@ -18,13 +20,12 @@ RCD
|
|||||||
w_class = 3.0
|
w_class = 3.0
|
||||||
m_amt = 50000
|
m_amt = 50000
|
||||||
origin_tech = "engineering=4;materials=2"
|
origin_tech = "engineering=4;materials=2"
|
||||||
var
|
var/datum/effect/effect/system/spark_spread/spark_system
|
||||||
datum/effect/effect/system/spark_spread/spark_system
|
var/matter = 0
|
||||||
matter = 0
|
var/working = 0
|
||||||
working = 0
|
var/mode = 1
|
||||||
mode = 1
|
var/disabled = 0
|
||||||
disabled = 0
|
var/max_matter = 30
|
||||||
max_matter = 30
|
|
||||||
|
|
||||||
|
|
||||||
New()
|
New()
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:05
|
||||||
|
|
||||||
/*
|
/*
|
||||||
CONTAINS:
|
CONTAINS:
|
||||||
MATCHES
|
MATCHES
|
||||||
@@ -113,14 +115,13 @@ ZIPPO
|
|||||||
item_state = "cigoff"
|
item_state = "cigoff"
|
||||||
w_class = 1
|
w_class = 1
|
||||||
body_parts_covered = null
|
body_parts_covered = null
|
||||||
var
|
var/lit = 0
|
||||||
lit = 0
|
var/icon_on = "cigon" //Note - these are in masks.dmi not in cigarette.dmi
|
||||||
icon_on = "cigon" //Note - these are in masks.dmi not in cigarette.dmi
|
var/icon_off = "cigoff"
|
||||||
icon_off = "cigoff"
|
var/icon_butt = "cigbutt"
|
||||||
icon_butt = "cigbutt"
|
var/lastHolder = null
|
||||||
lastHolder = null
|
var/smoketime = 300
|
||||||
smoketime = 300
|
var/butt_count = 5 //count of butt sprite variations
|
||||||
butt_count = 5 //count of butt sprite variations
|
|
||||||
proc
|
proc
|
||||||
light(var/flavor_text = "[usr] lights the [name].")
|
light(var/flavor_text = "[usr] lights the [name].")
|
||||||
|
|
||||||
@@ -244,13 +245,12 @@ ZIPPO
|
|||||||
item_state = "cobpipeoff"
|
item_state = "cobpipeoff"
|
||||||
w_class = 1
|
w_class = 1
|
||||||
body_parts_covered = null
|
body_parts_covered = null
|
||||||
var
|
var/lit = 0
|
||||||
lit = 0
|
var/icon_on = "cobpipeon" //Note - these are in masks.dmi
|
||||||
icon_on = "cobpipeon" //Note - these are in masks.dmi
|
var/icon_off = "cobpipeoff"
|
||||||
icon_off = "cobpipeoff"
|
var/lastHolder = null
|
||||||
lastHolder = null
|
var/smoketime = 100
|
||||||
smoketime = 100
|
var/maxsmoketime = 100 //make sure this is equal to your smoketime
|
||||||
maxsmoketime = 100 //make sure this is equal to your smoketime
|
|
||||||
proc
|
proc
|
||||||
light(var/flavor_text = "[usr] lights the [name].")
|
light(var/flavor_text = "[usr] lights the [name].")
|
||||||
|
|
||||||
@@ -338,8 +338,7 @@ ZIPPO
|
|||||||
w_class = 1
|
w_class = 1
|
||||||
throwforce = 2
|
throwforce = 2
|
||||||
flags = ONBELT | TABLEPASS
|
flags = ONBELT | TABLEPASS
|
||||||
var
|
var/cigcount = 6
|
||||||
cigcount = 6
|
|
||||||
|
|
||||||
|
|
||||||
update_icon()
|
update_icon()
|
||||||
@@ -472,4 +471,4 @@ ZIPPO
|
|||||||
if(lit)
|
if(lit)
|
||||||
user.total_luminosity -= 2
|
user.total_luminosity -= 2
|
||||||
src.sd_SetLuminosity(2)
|
src.sd_SetLuminosity(2)
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:05
|
||||||
|
|
||||||
/obj/item/weapon/flamethrower/full/New(var/loc)
|
/obj/item/weapon/flamethrower/full/New(var/loc)
|
||||||
..()
|
..()
|
||||||
weldtool = new/obj/item/weapon/weldingtool(src)
|
weldtool = new/obj/item/weapon/weldingtool(src)
|
||||||
@@ -24,15 +26,14 @@
|
|||||||
w_class = 3.0
|
w_class = 3.0
|
||||||
m_amt = 500
|
m_amt = 500
|
||||||
origin_tech = "combat=1;plasmatech=1"
|
origin_tech = "combat=1;plasmatech=1"
|
||||||
var
|
var/status = 0
|
||||||
status = 0
|
var/throw_amount = 100
|
||||||
throw_amount = 100
|
var/lit = 0 //on or off
|
||||||
lit = 0 //on or off
|
var/operating = 0//cooldown
|
||||||
operating = 0//cooldown
|
var/turf/previousturf = null
|
||||||
turf/previousturf = null
|
var/obj/item/weapon/weldingtool/weldtool = null
|
||||||
obj/item/weapon/weldingtool/weldtool = null
|
var/obj/item/device/assembly/igniter/igniter = null
|
||||||
obj/item/device/assembly/igniter/igniter = null
|
var/obj/item/weapon/tank/plasma/ptank = null
|
||||||
obj/item/weapon/tank/plasma/ptank = null
|
|
||||||
|
|
||||||
|
|
||||||
Del()
|
Del()
|
||||||
@@ -245,4 +246,4 @@
|
|||||||
//target.hotspot_expose(part4.air_contents.temperature*2,300)
|
//target.hotspot_expose(part4.air_contents.temperature*2,300)
|
||||||
target.hotspot_expose((ptank.air_contents.temperature*2) + 380,500) // -- More of my "how do I shot fire?" dickery. -- TLE
|
target.hotspot_expose((ptank.air_contents.temperature*2) + 380,500) // -- More of my "how do I shot fire?" dickery. -- TLE
|
||||||
//location.hotspot_expose(1000,500,1)
|
//location.hotspot_expose(1000,500,1)
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:05
|
||||||
|
|
||||||
/*
|
/*
|
||||||
CONTAINS:
|
CONTAINS:
|
||||||
EMP GRENADE
|
EMP GRENADE
|
||||||
@@ -16,9 +18,8 @@ FLASHBANG
|
|||||||
throw_range = 20
|
throw_range = 20
|
||||||
flags = FPRINT | TABLEPASS | CONDUCT | ONBELT
|
flags = FPRINT | TABLEPASS | CONDUCT | ONBELT
|
||||||
origin_tech = "materials=2;magnets=3"
|
origin_tech = "materials=2;magnets=3"
|
||||||
var
|
var/active = 0
|
||||||
active = 0
|
var/det_time = 50
|
||||||
det_time = 50
|
|
||||||
proc
|
proc
|
||||||
prime()
|
prime()
|
||||||
clown_check(var/mob/living/user)
|
clown_check(var/mob/living/user)
|
||||||
@@ -90,10 +91,9 @@ FLASHBANG
|
|||||||
throw_range = 20
|
throw_range = 20
|
||||||
flags = FPRINT | TABLEPASS | CONDUCT | ONBELT
|
flags = FPRINT | TABLEPASS | CONDUCT | ONBELT
|
||||||
origin_tech = "materials=2;combat=1"
|
origin_tech = "materials=2;combat=1"
|
||||||
var
|
var/active = 0
|
||||||
active = 0
|
var/det_time = 30
|
||||||
det_time = 30
|
var/banglet = 0
|
||||||
banglet = 0
|
|
||||||
proc
|
proc
|
||||||
bang(var/turf/T , var/mob/living/carbon/M)
|
bang(var/turf/T , var/mob/living/carbon/M)
|
||||||
prime()
|
prime()
|
||||||
|
|||||||
@@ -1,13 +1,14 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:05
|
||||||
|
|
||||||
/obj/item/weapon/implant
|
/obj/item/weapon/implant
|
||||||
name = "implant"
|
name = "implant"
|
||||||
desc = "An implant. Not usually seen outside a body."
|
desc = "An implant. Not usually seen outside a body."
|
||||||
icon = 'items.dmi'
|
icon = 'items.dmi'
|
||||||
icon_state = "implant"
|
icon_state = "implant"
|
||||||
var
|
var/implanted = null
|
||||||
implanted = null
|
var/mob/imp_in = null
|
||||||
mob/imp_in = null
|
var/color = "b"
|
||||||
color = "b"
|
var/allow_reagents = 0
|
||||||
allow_reagents = 0
|
|
||||||
proc
|
proc
|
||||||
trigger(emote, source as mob)
|
trigger(emote, source as mob)
|
||||||
activate()
|
activate()
|
||||||
@@ -48,9 +49,8 @@
|
|||||||
/obj/item/weapon/implant/uplink
|
/obj/item/weapon/implant/uplink
|
||||||
name = "uplink implant"
|
name = "uplink implant"
|
||||||
desc = "A micro-telecrystal implant which allows for instant transportation of equipment."
|
desc = "A micro-telecrystal implant which allows for instant transportation of equipment."
|
||||||
var
|
var/activation_emote = "chuckle"
|
||||||
activation_emote = "chuckle"
|
var/obj/item/device/uplink/radio/uplink = null
|
||||||
obj/item/device/uplink/radio/uplink = null
|
|
||||||
|
|
||||||
|
|
||||||
New()
|
New()
|
||||||
@@ -77,8 +77,7 @@
|
|||||||
/obj/item/weapon/implant/tracking
|
/obj/item/weapon/implant/tracking
|
||||||
name = "tracking implant"
|
name = "tracking implant"
|
||||||
desc = "An implant which relays information to the appropriate tracking computer."
|
desc = "An implant which relays information to the appropriate tracking computer."
|
||||||
var
|
var/id = 1.0
|
||||||
id = 1.0
|
|
||||||
|
|
||||||
|
|
||||||
get_data()
|
get_data()
|
||||||
@@ -450,4 +449,4 @@ the implant may become unstable and either pre-maturely inject the subject or si
|
|||||||
usr << "You suddenly start seeing body temperatures of whoever is around you."
|
usr << "You suddenly start seeing body temperatures of whoever is around you."
|
||||||
else
|
else
|
||||||
usr << "This implant is not compatible!"
|
usr << "This implant is not compatible!"
|
||||||
return*/
|
return*/
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:05
|
||||||
|
|
||||||
/obj/item/weapon/implantcase
|
/obj/item/weapon/implantcase
|
||||||
name = "Glass Case"
|
name = "Glass Case"
|
||||||
desc = "A case containing an implant."
|
desc = "A case containing an implant."
|
||||||
@@ -6,8 +8,7 @@
|
|||||||
throw_speed = 1
|
throw_speed = 1
|
||||||
throw_range = 5
|
throw_range = 5
|
||||||
w_class = 1.0
|
w_class = 1.0
|
||||||
var
|
var/obj/item/weapon/implant/imp = null
|
||||||
obj/item/weapon/implant/imp = null
|
|
||||||
proc
|
proc
|
||||||
update()
|
update()
|
||||||
|
|
||||||
@@ -125,4 +126,4 @@
|
|||||||
New()
|
New()
|
||||||
src.imp = new /obj/item/weapon/implant/death_alarm( src )
|
src.imp = new /obj/item/weapon/implant/death_alarm( src )
|
||||||
..()
|
..()
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:05
|
||||||
|
|
||||||
/obj/machinery/implantchair
|
/obj/machinery/implantchair
|
||||||
name = "Loyalty Implanter"
|
name = "Loyalty Implanter"
|
||||||
desc = "Used to implant occupants with loyalty implants."
|
desc = "Used to implant occupants with loyalty implants."
|
||||||
@@ -7,16 +9,15 @@
|
|||||||
opacity = 0
|
opacity = 0
|
||||||
anchored = 1
|
anchored = 1
|
||||||
|
|
||||||
var
|
var/ready = 1
|
||||||
ready = 1
|
var/malfunction = 0
|
||||||
malfunction = 0
|
var/list/obj/item/weapon/implant/loyalty/implant_list = list()
|
||||||
list/obj/item/weapon/implant/loyalty/implant_list = list()
|
var/max_implants = 5
|
||||||
max_implants = 5
|
var/injection_cooldown = 600
|
||||||
injection_cooldown = 600
|
var/replenish_cooldown = 6000
|
||||||
replenish_cooldown = 6000
|
var/replenishing = 0
|
||||||
replenishing = 0
|
var/mob/living/carbon/occupant = null
|
||||||
mob/living/carbon/occupant = null
|
var/injecting = 0
|
||||||
injecting = 0
|
|
||||||
|
|
||||||
proc
|
proc
|
||||||
go_out()
|
go_out()
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:05
|
||||||
|
|
||||||
/obj/item/weapon/implanter
|
/obj/item/weapon/implanter
|
||||||
name = "implanter"
|
name = "implanter"
|
||||||
icon = 'items.dmi'
|
icon = 'items.dmi'
|
||||||
@@ -6,8 +8,7 @@
|
|||||||
throw_speed = 1
|
throw_speed = 1
|
||||||
throw_range = 5
|
throw_range = 5
|
||||||
w_class = 2.0
|
w_class = 2.0
|
||||||
var
|
var/obj/item/weapon/implant/imp = null
|
||||||
obj/item/weapon/implant/imp = null
|
|
||||||
proc
|
proc
|
||||||
update()
|
update()
|
||||||
|
|
||||||
@@ -108,4 +109,4 @@
|
|||||||
var/obj/item/weapon/implant/compressed/c = imp
|
var/obj/item/weapon/implant/compressed/c = imp
|
||||||
c.scanned = A
|
c.scanned = A
|
||||||
A.loc.contents.Remove(A)
|
A.loc.contents.Remove(A)
|
||||||
update()
|
update()
|
||||||
|
|||||||
@@ -1,10 +1,11 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:05
|
||||||
|
|
||||||
/obj/item/weapon/implant/freedom
|
/obj/item/weapon/implant/freedom
|
||||||
name = "freedom"
|
name = "freedom"
|
||||||
desc = "Use this to escape from those evil Red Shirts."
|
desc = "Use this to escape from those evil Red Shirts."
|
||||||
color = "r"
|
color = "r"
|
||||||
var
|
var/activation_emote = "chuckle"
|
||||||
activation_emote = "chuckle"
|
var/uses = 1.0
|
||||||
uses = 1.0
|
|
||||||
|
|
||||||
|
|
||||||
New()
|
New()
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:05
|
||||||
|
|
||||||
/obj/item/weapon/implantpad
|
/obj/item/weapon/implantpad
|
||||||
name = "implantpad"
|
name = "implantpad"
|
||||||
desc = "Used to modify implants."
|
desc = "Used to modify implants."
|
||||||
@@ -7,10 +9,9 @@
|
|||||||
throw_speed = 1
|
throw_speed = 1
|
||||||
throw_range = 5
|
throw_range = 5
|
||||||
w_class = 2.0
|
w_class = 2.0
|
||||||
var
|
var/obj/item/weapon/implantcase/case = null
|
||||||
obj/item/weapon/implantcase/case = null
|
var/broadcasting = null
|
||||||
broadcasting = null
|
var/listening = 1.0
|
||||||
listening = 1.0
|
|
||||||
proc
|
proc
|
||||||
update()
|
update()
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:05
|
||||||
|
|
||||||
/obj/item/weapon/cleaner
|
/obj/item/weapon/cleaner
|
||||||
desc = "A chemical that cleans messes."
|
desc = "A chemical that cleans messes."
|
||||||
icon = 'janitor.dmi'
|
icon = 'janitor.dmi'
|
||||||
@@ -451,13 +453,12 @@ obj/item/weapon/mop/proc/clean(turf/simulated/A as turf)
|
|||||||
|
|
||||||
/proc/GetColors(hex)
|
/proc/GetColors(hex)
|
||||||
hex = uppertext(hex)
|
hex = uppertext(hex)
|
||||||
var
|
var/hi1 = text2ascii(hex, 2)
|
||||||
hi1 = text2ascii(hex, 2)
|
var/lo1 = text2ascii(hex, 3)
|
||||||
lo1 = text2ascii(hex, 3)
|
var/hi2 = text2ascii(hex, 4)
|
||||||
hi2 = text2ascii(hex, 4)
|
var/lo2 = text2ascii(hex, 5)
|
||||||
lo2 = text2ascii(hex, 5)
|
var/hi3 = text2ascii(hex, 6)
|
||||||
hi3 = text2ascii(hex, 6)
|
var/lo3 = text2ascii(hex, 7)
|
||||||
lo3 = text2ascii(hex, 7)
|
|
||||||
return list(((hi1>= 65 ? hi1-55 : hi1-48)<<4) | (lo1 >= 65 ? lo1-55 : lo1-48),
|
return list(((hi1>= 65 ? hi1-55 : hi1-48)<<4) | (lo1 >= 65 ? lo1-55 : lo1-48),
|
||||||
((hi2 >= 65 ? hi2-55 : hi2-48)<<4) | (lo2 >= 65 ? lo2-55 : lo2-48),
|
((hi2 >= 65 ? hi2-55 : hi2-48)<<4) | (lo2 >= 65 ? lo2-55 : lo2-48),
|
||||||
((hi3 >= 65 ? hi3-55 : hi3-48)<<4) | (lo3 >= 65 ? lo3-55 : lo3-48))
|
((hi3 >= 65 ? hi3-55 : hi3-48)<<4) | (lo3 >= 65 ? lo3-55 : lo3-48))
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:05
|
||||||
|
|
||||||
/*
|
/*
|
||||||
CONTAINS:
|
CONTAINS:
|
||||||
RETRACTOR
|
RETRACTOR
|
||||||
@@ -651,11 +653,10 @@ CIRCULAR SAW
|
|||||||
/obj/item/weapon/autopsy_scanner/var/timeofdeath = null
|
/obj/item/weapon/autopsy_scanner/var/timeofdeath = null
|
||||||
|
|
||||||
/datum/autopsy_data_data
|
/datum/autopsy_data_data
|
||||||
var
|
var/weapon = null // this is the DEFINITE weapon type that was used
|
||||||
weapon = null // this is the DEFINITE weapon type that was used
|
var/list/organs_scanned = list() // this maps a number of scanned organs to
|
||||||
list/organs_scanned = list() // this maps a number of scanned organs to
|
|
||||||
// the wounds to those organs with this data's weapon type
|
// the wounds to those organs with this data's weapon type
|
||||||
organ_names = ""
|
var/organ_names = ""
|
||||||
|
|
||||||
/obj/item/weapon/autopsy_scanner/proc/add_data(var/datum/organ/external/O)
|
/obj/item/weapon/autopsy_scanner/proc/add_data(var/datum/organ/external/O)
|
||||||
if(!O.autopsy_data.len && !O.trace_chemicals.len) return
|
if(!O.autopsy_data.len && !O.trace_chemicals.len) return
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:05
|
||||||
|
|
||||||
/*
|
/*
|
||||||
CONTAINS:
|
CONTAINS:
|
||||||
|
|
||||||
@@ -53,10 +55,9 @@ WELDINGTOOOL
|
|||||||
m_amt = 70
|
m_amt = 70
|
||||||
g_amt = 30
|
g_amt = 30
|
||||||
origin_tech = "engineering=1"
|
origin_tech = "engineering=1"
|
||||||
var
|
var/welding = 0
|
||||||
welding = 0
|
var/status = 1
|
||||||
status = 1
|
var/max_fuel = 20
|
||||||
max_fuel = 20
|
|
||||||
proc
|
proc
|
||||||
get_fuel()
|
get_fuel()
|
||||||
remove_fuel(var/amount = 1, var/mob/M = null)
|
remove_fuel(var/amount = 1, var/mob/M = null)
|
||||||
@@ -334,4 +335,4 @@ WELDINGTOOOL
|
|||||||
M.update_clothing()
|
M.update_clothing()
|
||||||
return
|
return
|
||||||
else
|
else
|
||||||
..()
|
..()
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:05
|
||||||
|
|
||||||
/obj/item/device/radio/headset
|
/obj/item/device/radio/headset
|
||||||
name = "radio headset"
|
name = "radio headset"
|
||||||
desc = "An updated, modular intercom that fits over the head. Takes encryption keys"
|
desc = "An updated, modular intercom that fits over the head. Takes encryption keys"
|
||||||
@@ -8,11 +10,10 @@
|
|||||||
subspace_transmission = 1
|
subspace_transmission = 1
|
||||||
protective_temperature = 0
|
protective_temperature = 0
|
||||||
canhear_range = 1 // can't hear headsets from very far away
|
canhear_range = 1 // can't hear headsets from very far away
|
||||||
var
|
var/translate_binary = 0
|
||||||
translate_binary = 0
|
var/translate_hive = 0
|
||||||
translate_hive = 0
|
var/obj/item/device/encryptionkey/keyslot1 = null
|
||||||
obj/item/device/encryptionkey/keyslot1 = null
|
var/obj/item/device/encryptionkey/keyslot2 = null
|
||||||
obj/item/device/encryptionkey/keyslot2 = null
|
|
||||||
|
|
||||||
/obj/item/device/radio/headset/New()
|
/obj/item/device/radio/headset/New()
|
||||||
..()
|
..()
|
||||||
@@ -245,4 +246,4 @@
|
|||||||
src.name = "broken radio headset"
|
src.name = "broken radio headset"
|
||||||
return
|
return
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:05
|
||||||
|
|
||||||
var/GLOBAL_RADIO_TYPE = 1 // radio type to use
|
var/GLOBAL_RADIO_TYPE = 1 // radio type to use
|
||||||
// 0 = old radios
|
// 0 = old radios
|
||||||
// 1 = new radios (subspace technology)
|
// 1 = new radios (subspace technology)
|
||||||
@@ -9,21 +11,20 @@ var/GLOBAL_RADIO_TYPE = 1 // radio type to use
|
|||||||
suffix = "\[3\]"
|
suffix = "\[3\]"
|
||||||
icon_state = "walkietalkie"
|
icon_state = "walkietalkie"
|
||||||
item_state = "walkietalkie"
|
item_state = "walkietalkie"
|
||||||
var
|
var/on = 1 // 0 for off
|
||||||
on = 1 // 0 for off
|
var/last_transmission
|
||||||
last_transmission
|
var/frequency = 1459 //common chat
|
||||||
frequency = 1459 //common chat
|
var/traitor_frequency = 0 //tune to frequency to unlock traitor supplies
|
||||||
traitor_frequency = 0 //tune to frequency to unlock traitor supplies
|
var/canhear_range = 3 // the range which mobs can hear this radio from
|
||||||
canhear_range = 3 // the range which mobs can hear this radio from
|
var/obj/item/device/radio/patch_link = null
|
||||||
obj/item/device/radio/patch_link = null
|
var/obj/item/device/uplink/radio/traitorradio = null
|
||||||
obj/item/device/uplink/radio/traitorradio = null
|
var/wires = WIRE_SIGNAL | WIRE_RECEIVE | WIRE_TRANSMIT
|
||||||
wires = WIRE_SIGNAL | WIRE_RECEIVE | WIRE_TRANSMIT
|
var/b_stat = 0
|
||||||
b_stat = 0
|
var/broadcasting = 0
|
||||||
broadcasting = 0
|
var/listening = 1
|
||||||
listening = 1
|
var/freerange = 0 // 0 - Sanitize frequencies, 1 - Full range
|
||||||
freerange = 0 // 0 - Sanitize frequencies, 1 - Full range
|
var/list/channels = list() //see communications.dm for full list. First channes is a "default" for :h
|
||||||
list/channels = list() //see communications.dm for full list. First channes is a "default" for :h
|
var/subspace_transmission = 0
|
||||||
subspace_transmission = 0
|
|
||||||
// "Example" = FREQ_LISTENING|FREQ_BROADCASTING
|
// "Example" = FREQ_LISTENING|FREQ_BROADCASTING
|
||||||
flags = 450 // hello i'm a fucking idiot why is this 450?? CODE GODS PLEASE EXPLAIN~
|
flags = 450 // hello i'm a fucking idiot why is this 450?? CODE GODS PLEASE EXPLAIN~
|
||||||
throw_speed = 2
|
throw_speed = 2
|
||||||
@@ -31,19 +32,17 @@ var/GLOBAL_RADIO_TYPE = 1 // radio type to use
|
|||||||
w_class = 2
|
w_class = 2
|
||||||
g_amt = 25
|
g_amt = 25
|
||||||
m_amt = 75
|
m_amt = 75
|
||||||
var/const
|
var/const/WIRE_SIGNAL = 1 //sends a signal, like to set off a bomb or electrocute someone
|
||||||
WIRE_SIGNAL = 1 //sends a signal, like to set off a bomb or electrocute someone
|
var/const/WIRE_RECEIVE = 2
|
||||||
WIRE_RECEIVE = 2
|
var/const/WIRE_TRANSMIT = 4
|
||||||
WIRE_TRANSMIT = 4
|
var/const/TRANSMISSION_DELAY = 5 // only 2/second/radio
|
||||||
TRANSMISSION_DELAY = 5 // only 2/second/radio
|
var/const/FREQ_LISTENING = 1
|
||||||
FREQ_LISTENING = 1
|
|
||||||
//FREQ_BROADCASTING = 2
|
//FREQ_BROADCASTING = 2
|
||||||
|
|
||||||
|
|
||||||
/obj/item/device/radio
|
/obj/item/device/radio
|
||||||
var
|
var/datum/radio_frequency/radio_connection
|
||||||
datum/radio_frequency/radio_connection
|
var/list/datum/radio_frequency/secure_radio_connections = new
|
||||||
list/datum/radio_frequency/secure_radio_connections = new
|
|
||||||
proc
|
proc
|
||||||
set_frequency(new_frequency)
|
set_frequency(new_frequency)
|
||||||
radio_controller.remove_object(src, frequency)
|
radio_controller.remove_object(src, frequency)
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:05
|
||||||
|
|
||||||
/obj/item/weapon/storage/lockbox
|
/obj/item/weapon/storage/lockbox
|
||||||
name = "lockbox"
|
name = "lockbox"
|
||||||
desc = "A locked box."
|
desc = "A locked box."
|
||||||
@@ -8,12 +10,11 @@
|
|||||||
max_combined_w_class = 14 //The sum of the w_classes of all the items in this storage item.
|
max_combined_w_class = 14 //The sum of the w_classes of all the items in this storage item.
|
||||||
storage_slots = 4
|
storage_slots = 4
|
||||||
req_access = list(access_armory)
|
req_access = list(access_armory)
|
||||||
var
|
var/locked = 1
|
||||||
locked = 1
|
var/broken = 0
|
||||||
broken = 0
|
var/icon_locked = "lockbox+l"
|
||||||
icon_locked = "lockbox+l"
|
var/icon_closed = "lockbox"
|
||||||
icon_closed = "lockbox"
|
var/icon_broken = "lockbox+b"
|
||||||
icon_broken = "lockbox+b"
|
|
||||||
|
|
||||||
|
|
||||||
attackby(obj/item/weapon/W as obj, mob/user as mob)
|
attackby(obj/item/weapon/W as obj, mob/user as mob)
|
||||||
@@ -90,4 +91,4 @@
|
|||||||
|
|
||||||
New()
|
New()
|
||||||
..()
|
..()
|
||||||
new /obj/item/weapon/flashbang/clusterbang(src)
|
new /obj/item/weapon/flashbang/clusterbang(src)
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:05
|
||||||
|
|
||||||
/obj/item/weapon/tank/jetpack
|
/obj/item/weapon/tank/jetpack
|
||||||
name = "Jetpack (Empty)"
|
name = "Jetpack (Empty)"
|
||||||
desc = "A tank of compressed gas for use as propulsion in zero-gravity areas. Use with caution."
|
desc = "A tank of compressed gas for use as propulsion in zero-gravity areas. Use with caution."
|
||||||
@@ -5,11 +7,10 @@
|
|||||||
w_class = 4.0
|
w_class = 4.0
|
||||||
item_state = "jetpack"
|
item_state = "jetpack"
|
||||||
distribute_pressure = ONE_ATMOSPHERE*O2STANDARD
|
distribute_pressure = ONE_ATMOSPHERE*O2STANDARD
|
||||||
var
|
var/datum/effect/effect/system/ion_trail_follow/ion_trail
|
||||||
datum/effect/effect/system/ion_trail_follow/ion_trail
|
var/on = 0.0
|
||||||
on = 0.0
|
var/stabilization_on = 0
|
||||||
stabilization_on = 0
|
var/volume_rate = 500 //Needed for borg jetpack transfer
|
||||||
volume_rate = 500 //Needed for borg jetpack transfer
|
|
||||||
|
|
||||||
New()
|
New()
|
||||||
..()
|
..()
|
||||||
@@ -108,4 +109,4 @@
|
|||||||
if(air_contents.carbon_dioxide < 10)
|
if(air_contents.carbon_dioxide < 10)
|
||||||
usr << text("\red <B>The meter on the [src.name] indicates you are almost out of air!</B>")
|
usr << text("\red <B>The meter on the [src.name] indicates you are almost out of air!</B>")
|
||||||
playsound(usr, 'alert.ogg', 50, 1)
|
playsound(usr, 'alert.ogg', 50, 1)
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
var
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:05
|
||||||
jobban_runonce // Updates legacy bans with new info
|
|
||||||
jobban_keylist[0] //to store the keys & ranks
|
var/jobban_runonce // Updates legacy bans with new info
|
||||||
|
var/jobban_keylist[0] //to store the keys & ranks
|
||||||
|
|
||||||
/proc/jobban_fullban(mob/M, rank, reason)
|
/proc/jobban_fullban(mob/M, rank, reason)
|
||||||
if (!M || !M.key) return
|
if (!M || !M.key) return
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:05
|
||||||
|
|
||||||
|
|
||||||
/proc/isassembly(O)
|
/proc/isassembly(O)
|
||||||
if(istype(O, /obj/item/device/assembly))
|
if(istype(O, /obj/item/device/assembly))
|
||||||
@@ -46,38 +48,35 @@
|
|||||||
throw_range = 10
|
throw_range = 10
|
||||||
origin_tech = "magnets=1"
|
origin_tech = "magnets=1"
|
||||||
|
|
||||||
var
|
var/secured = 1
|
||||||
secured = 1
|
var/small_icon_state_left = null
|
||||||
small_icon_state_left = null
|
var/small_icon_state_right = null
|
||||||
small_icon_state_right = null
|
var/list/small_icon_state_overlays = null
|
||||||
list/small_icon_state_overlays = null
|
var/obj/item/device/assembly_holder/holder = null
|
||||||
obj/item/device/assembly_holder/holder = null
|
var/cooldown = 0//To prevent spam
|
||||||
cooldown = 0//To prevent spam
|
var/wires = WIRE_RECEIVE | WIRE_PULSE
|
||||||
wires = WIRE_RECEIVE | WIRE_PULSE
|
|
||||||
|
|
||||||
var/const
|
var/const/WIRE_RECEIVE = 1 //Allows Pulsed(0) to call Activate()
|
||||||
WIRE_RECEIVE = 1 //Allows Pulsed(0) to call Activate()
|
var/const/WIRE_PULSE = 2 //Allows Pulse(0) to act on the holder
|
||||||
WIRE_PULSE = 2 //Allows Pulse(0) to act on the holder
|
var/const/WIRE_PULSE_SPECIAL = 4 //Allows Pulse(0) to act on the holders special assembly
|
||||||
WIRE_PULSE_SPECIAL = 4 //Allows Pulse(0) to act on the holders special assembly
|
var/const/WIRE_RADIO_RECEIVE = 8 //Allows Pulsed(1) to call Activate()
|
||||||
WIRE_RADIO_RECEIVE = 8 //Allows Pulsed(1) to call Activate()
|
var/const/WIRE_RADIO_PULSE = 16 //Allows Pulse(1) to send a radio message
|
||||||
WIRE_RADIO_PULSE = 16 //Allows Pulse(1) to send a radio message
|
|
||||||
|
|
||||||
proc
|
|
||||||
activate() //What the device does when turned on
|
|
||||||
pulsed(var/radio = 0) //Called when another assembly acts on this one, var/radio will determine where it came from for wire calcs
|
|
||||||
pulse(var/radio = 0) //Called when this device attempts to act on another device, var/radio determines if it was sent via radio or direct
|
|
||||||
toggle_secure() //Code that has to happen when the assembly is un\secured goes here
|
|
||||||
attach_assembly(var/obj/A, var/mob/user) //Called when an assembly is attacked by another
|
|
||||||
process_cooldown() //Called via spawn(10) to have it count down the cooldown var
|
|
||||||
holder_movement() //Called when the holder is moved
|
|
||||||
interact(mob/user as mob) //Called when attack_self is called
|
|
||||||
|
|
||||||
|
|
||||||
process_cooldown()
|
proc/activate() //What the device does when turned on
|
||||||
|
proc/pulsed(var/radio = 0) //Called when another assembly acts on this one, var/radio will determine where it came from for wire calcs
|
||||||
|
pulse(var/radio = 0) //Called when this device attempts to act on another device, var/radio determines if it was sent via radio or direct
|
||||||
|
proc/toggle_secure() //Code that has to happen when the assembly is un\secured goes here
|
||||||
|
proc/attach_assembly(var/obj/A, var/mob/user) //Called when an assembly is attacked by another
|
||||||
|
proc/holder_movement() //Called when the holder is moved
|
||||||
|
proc/interact(mob/user as mob) //Called when attack_self is called
|
||||||
|
|
||||||
|
|
||||||
|
proc/process_cooldown()
|
||||||
cooldown--
|
cooldown--
|
||||||
if(cooldown <= 0) return 0
|
if(cooldown <= 0) return 0
|
||||||
spawn(10)
|
spawn(10)
|
||||||
process_cooldown()
|
process_cooldown()
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
|
|
||||||
@@ -89,7 +88,7 @@
|
|||||||
return 1
|
return 1
|
||||||
|
|
||||||
|
|
||||||
pulse(var/radio = 0)
|
proc/pulse(var/radio = 0)
|
||||||
if(holder && (wires & WIRE_PULSE))
|
if(holder && (wires & WIRE_PULSE))
|
||||||
holder.process_activation(src, 1, 0)
|
holder.process_activation(src, 1, 0)
|
||||||
if(holder && (wires & WIRE_PULSE_SPECIAL))
|
if(holder && (wires & WIRE_PULSE_SPECIAL))
|
||||||
@@ -186,15 +185,13 @@ Desc: If true is an object that can be attached to an assembly holder but is a s
|
|||||||
/obj/proc/IsSpecialAssembly()
|
/obj/proc/IsSpecialAssembly()
|
||||||
return 0
|
return 0
|
||||||
/*
|
/*
|
||||||
var
|
var/small_icon_state = null//If this obj will go inside the assembly use this for icons
|
||||||
small_icon_state = null//If this obj will go inside the assembly use this for icons
|
var/list/small_icon_state_overlays = null//Same here
|
||||||
list/small_icon_state_overlays = null//Same here
|
var/obj/holder = null
|
||||||
obj/holder = null
|
var/cooldown = 0//To prevent spam
|
||||||
cooldown = 0//To prevent spam
|
|
||||||
|
|
||||||
proc
|
proc
|
||||||
Activate()//Called when this assembly is pulsed by another one
|
Activate()//Called when this assembly is pulsed by another one
|
||||||
Process_cooldown()//Call this via spawn(10) to have it count down the cooldown var
|
|
||||||
Attach_Holder(var/obj/H, var/mob/user)//Called when an assembly holder attempts to attach, sets src's loc in here
|
Attach_Holder(var/obj/H, var/mob/user)//Called when an assembly holder attempts to attach, sets src's loc in here
|
||||||
|
|
||||||
|
|
||||||
@@ -222,4 +219,4 @@ Desc: If true is an object that can be attached to an assembly holder but is a s
|
|||||||
//Remember to have it set its loc somewhere in here
|
//Remember to have it set its loc somewhere in here
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:05
|
||||||
|
|
||||||
/obj/item/device/assembly_holder
|
/obj/item/device/assembly_holder
|
||||||
name = "Assembly"
|
name = "Assembly"
|
||||||
desc = "Holds various devices"//Fix this by adding dynamic desc
|
desc = "Holds various devices"//Fix this by adding dynamic desc
|
||||||
@@ -11,11 +13,10 @@
|
|||||||
throw_speed = 3
|
throw_speed = 3
|
||||||
throw_range = 10
|
throw_range = 10
|
||||||
|
|
||||||
var
|
var/secured = 0
|
||||||
secured = 0
|
var/obj/item/device/assembly/a_left = null
|
||||||
obj/item/device/assembly/a_left = null
|
var/obj/item/device/assembly/a_right = null
|
||||||
obj/item/device/assembly/a_right = null
|
var/obj/special_assembly = null
|
||||||
obj/special_assembly = null
|
|
||||||
|
|
||||||
proc
|
proc
|
||||||
attach(var/obj/item/device/D, var/obj/item/device/D2, var/mob/user)
|
attach(var/obj/item/device/D, var/obj/item/device/D2, var/mob/user)
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:05
|
||||||
|
|
||||||
/obj/item/device/assembly/infra
|
/obj/item/device/assembly/infra
|
||||||
name = "Infrared Beam"
|
name = "Infrared Beam"
|
||||||
desc = "Emits a visible or invisible beam and is triggered when the beam is interrupted."
|
desc = "Emits a visible or invisible beam and is triggered when the beam is interrupted."
|
||||||
@@ -11,10 +13,9 @@
|
|||||||
small_icon_state_left = "infrared_left"
|
small_icon_state_left = "infrared_left"
|
||||||
small_icon_state_right = "infrared_right"
|
small_icon_state_right = "infrared_right"
|
||||||
|
|
||||||
var
|
var/scanning = 0
|
||||||
scanning = 0
|
var/visible = 0
|
||||||
visible = 0
|
var/obj/effect/beam/i_beam/first = null
|
||||||
obj/effect/beam/i_beam/first = null
|
|
||||||
|
|
||||||
proc
|
proc
|
||||||
trigger_beam()
|
trigger_beam()
|
||||||
@@ -271,4 +272,4 @@
|
|||||||
/obj/effect/beam/i_beam/Del()
|
/obj/effect/beam/i_beam/Del()
|
||||||
del(src.next)
|
del(src.next)
|
||||||
..()
|
..()
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:05
|
||||||
|
|
||||||
/obj/item/device/assembly/prox_sensor
|
/obj/item/device/assembly/prox_sensor
|
||||||
name = "proximity sensor"
|
name = "proximity sensor"
|
||||||
desc = "Used for scanning and alerting when someone enters a certain proximity."
|
desc = "Used for scanning and alerting when someone enters a certain proximity."
|
||||||
@@ -11,10 +13,9 @@
|
|||||||
small_icon_state_left = "prox_left"
|
small_icon_state_left = "prox_left"
|
||||||
small_icon_state_right = "prox_right"
|
small_icon_state_right = "prox_right"
|
||||||
|
|
||||||
var
|
var/scanning = 0
|
||||||
scanning = 0
|
var/timing = 0
|
||||||
timing = 0
|
var/time = 10
|
||||||
time = 10
|
|
||||||
|
|
||||||
proc
|
proc
|
||||||
toggle_scan()
|
toggle_scan()
|
||||||
@@ -153,4 +154,4 @@
|
|||||||
attack_self(usr)
|
attack_self(usr)
|
||||||
|
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:05
|
||||||
|
|
||||||
/obj/item/device/assembly/signaler
|
/obj/item/device/assembly/signaler
|
||||||
name = "Remote Signaling Device"
|
name = "Remote Signaling Device"
|
||||||
desc = "Used to remotely activate devices."
|
desc = "Used to remotely activate devices."
|
||||||
@@ -13,13 +15,12 @@
|
|||||||
small_icon_state_left = "signaller_left"
|
small_icon_state_left = "signaller_left"
|
||||||
small_icon_state_right = "signaller_right"
|
small_icon_state_right = "signaller_right"
|
||||||
|
|
||||||
var
|
var/code = 30
|
||||||
code = 30
|
var/frequency = 1457
|
||||||
frequency = 1457
|
var/delay = 0
|
||||||
delay = 0
|
var/airlock_wire = null
|
||||||
airlock_wire = null
|
var/datum/radio_frequency/radio_connection
|
||||||
datum/radio_frequency/radio_connection
|
var/deadman = 0
|
||||||
deadman = 0
|
|
||||||
|
|
||||||
proc
|
proc
|
||||||
signal()
|
signal()
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:05
|
||||||
|
|
||||||
/obj/item/device/assembly/timer
|
/obj/item/device/assembly/timer
|
||||||
name = "timer"
|
name = "timer"
|
||||||
desc = "Used to time things. Works well with contraptions which has to count down. Tick tock."
|
desc = "Used to time things. Works well with contraptions which has to count down. Tick tock."
|
||||||
@@ -11,9 +13,8 @@
|
|||||||
small_icon_state_left = "timer_left"
|
small_icon_state_left = "timer_left"
|
||||||
small_icon_state_right = "timer_right"
|
small_icon_state_right = "timer_right"
|
||||||
|
|
||||||
var
|
var/timing = 0
|
||||||
timing = 0
|
var/time = 10
|
||||||
time = 10
|
|
||||||
|
|
||||||
proc
|
proc
|
||||||
timer_end()
|
timer_end()
|
||||||
@@ -114,4 +115,4 @@
|
|||||||
if(usr)
|
if(usr)
|
||||||
attack_self(usr)
|
attack_self(usr)
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user