mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-10 18:02:57 +00:00
Cleans up unused code
This commit is contained in:
committed by
CitadelStationBot
parent
ceda48865d
commit
2498e1ddc0
@@ -84,18 +84,6 @@
|
|||||||
|
|
||||||
init_subtypes(/datum/crafting_recipe, GLOB.crafting_recipes)
|
init_subtypes(/datum/crafting_recipe, GLOB.crafting_recipes)
|
||||||
|
|
||||||
/* // Uncomment to debug chemical reaction list.
|
|
||||||
/client/verb/debug_chemical_list()
|
|
||||||
|
|
||||||
for (var/reaction in chemical_reactions_list)
|
|
||||||
. += "chemical_reactions_list\[\"[reaction]\"\] = \"[chemical_reactions_list[reaction]]\"\n"
|
|
||||||
if(islist(chemical_reactions_list[reaction]))
|
|
||||||
var/list/L = chemical_reactions_list[reaction]
|
|
||||||
for(var/t in L)
|
|
||||||
. += " has: [t]\n"
|
|
||||||
to_chat(world, .)
|
|
||||||
*/
|
|
||||||
|
|
||||||
//creates every subtype of prototype (excluding prototype) and adds it to list L.
|
//creates every subtype of prototype (excluding prototype) and adds it to list L.
|
||||||
//if no list/L is provided, one is created.
|
//if no list/L is provided, one is created.
|
||||||
/proc/init_subtypes(prototype, list/L)
|
/proc/init_subtypes(prototype, list/L)
|
||||||
|
|||||||
@@ -865,8 +865,7 @@ The _flatIcons list is a cache for generated icon files.
|
|||||||
/mob/proc/AddCamoOverlay(atom/A)//A is the atom which we are using as the overlay.
|
/mob/proc/AddCamoOverlay(atom/A)//A is the atom which we are using as the overlay.
|
||||||
var/icon/opacity_icon = new(A.icon, A.icon_state)//Don't really care for overlays/underlays.
|
var/icon/opacity_icon = new(A.icon, A.icon_state)//Don't really care for overlays/underlays.
|
||||||
//Now we need to culculate overlays+underlays and add them together to form an image for a mask.
|
//Now we need to culculate overlays+underlays and add them together to form an image for a mask.
|
||||||
//var/icon/alpha_mask = getFlatIcon(src)//Accurate but SLOW. Not designed for running each tick. Could have other uses I guess.
|
var/icon/alpha_mask = getIconMask(src)//getFlatIcon(src) is accurate but SLOW. Not designed for running each tick. This is also a little slow since it's blending a bunch of icons together but good enough.
|
||||||
var/icon/alpha_mask = getIconMask(src)//Which is why I created that proc. Also a little slow since it's blending a bunch of icons together but good enough.
|
|
||||||
opacity_icon.AddAlphaMask(alpha_mask)//Likely the main source of lag for this proc. Probably not designed to run each tick.
|
opacity_icon.AddAlphaMask(alpha_mask)//Likely the main source of lag for this proc. Probably not designed to run each tick.
|
||||||
opacity_icon.ChangeOpacity(0.4)//Front end for MapColors so it's fast. 0.5 means half opacity and looks the best in my opinion.
|
opacity_icon.ChangeOpacity(0.4)//Front end for MapColors so it's fast. 0.5 means half opacity and looks the best in my opinion.
|
||||||
for(var/i=0,i<5,i++)//And now we add it as overlays. It's faster than creating an icon and then merging it.
|
for(var/i=0,i<5,i++)//And now we add it as overlays. It's faster than creating an icon and then merging it.
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ GLOBAL_DATUM_INIT(sortInstance, /datum/sortInstance, new())
|
|||||||
//Stores information regarding runs yet to be merged.
|
//Stores information regarding runs yet to be merged.
|
||||||
//Run i starts at runBase[i] and extends for runLen[i] elements.
|
//Run i starts at runBase[i] and extends for runLen[i] elements.
|
||||||
//runBase[i] + runLen[i] == runBase[i+1]
|
//runBase[i] + runLen[i] == runBase[i+1]
|
||||||
//var/stackSize
|
|
||||||
var/list/runBases = list()
|
var/list/runBases = list()
|
||||||
var/list/runLens = list()
|
var/list/runLens = list()
|
||||||
|
|
||||||
@@ -326,8 +325,6 @@ GLOBAL_DATUM_INIT(sortInstance, /datum/sortInstance, new())
|
|||||||
while(offset < maxOffset && call(cmp)(key, fetchElement(L,base+hint-offset)) < 0) //we are iterating backwards
|
while(offset < maxOffset && call(cmp)(key, fetchElement(L,base+hint-offset)) < 0) //we are iterating backwards
|
||||||
lastOffset = offset
|
lastOffset = offset
|
||||||
offset = (offset << 1) + 1 //1 3 7 15
|
offset = (offset << 1) + 1 //1 3 7 15
|
||||||
//if(offset <= 0) //int overflow, not an issue here since we are using floats
|
|
||||||
// offset = maxOffset
|
|
||||||
|
|
||||||
if(offset > maxOffset)
|
if(offset > maxOffset)
|
||||||
offset = maxOffset
|
offset = maxOffset
|
||||||
@@ -341,8 +338,6 @@ GLOBAL_DATUM_INIT(sortInstance, /datum/sortInstance, new())
|
|||||||
while(offset < maxOffset && call(cmp)(key, fetchElement(L,base+hint+offset)) >= 0)
|
while(offset < maxOffset && call(cmp)(key, fetchElement(L,base+hint+offset)) >= 0)
|
||||||
lastOffset = offset
|
lastOffset = offset
|
||||||
offset = (offset << 1) + 1
|
offset = (offset << 1) + 1
|
||||||
//if(offset <= 0) //int overflow, not an issue here since we are using floats
|
|
||||||
// offset = maxOffset
|
|
||||||
|
|
||||||
if(offset > maxOffset)
|
if(offset > maxOffset)
|
||||||
offset = maxOffset
|
offset = maxOffset
|
||||||
@@ -575,7 +570,6 @@ GLOBAL_DATUM_INIT(sortInstance, /datum/sortInstance, new())
|
|||||||
|
|
||||||
//If array is small, do an insertion sort
|
//If array is small, do an insertion sort
|
||||||
if(remaining < MIN_MERGE)
|
if(remaining < MIN_MERGE)
|
||||||
//var/initRunLen = countRunAndMakeAscending(start, end)
|
|
||||||
binarySort(start, end, start/*+initRunLen*/)
|
binarySort(start, end, start/*+initRunLen*/)
|
||||||
return
|
return
|
||||||
|
|
||||||
@@ -637,8 +631,6 @@ GLOBAL_DATUM_INIT(sortInstance, /datum/sortInstance, new())
|
|||||||
break
|
break
|
||||||
++end1
|
++end1
|
||||||
++cursor1
|
++cursor1
|
||||||
//if(++cursor1 >= end1)
|
|
||||||
// break
|
|
||||||
|
|
||||||
val2 = fetchElement(L,cursor2)
|
val2 = fetchElement(L,cursor2)
|
||||||
|
|
||||||
|
|||||||
@@ -19,10 +19,6 @@
|
|||||||
if(month == MM && day == DD)
|
if(month == MM && day == DD)
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
// Uncomment this out when debugging!
|
|
||||||
//else
|
|
||||||
//return 1
|
|
||||||
|
|
||||||
//returns timestamp in a sql and ISO 8601 friendly format
|
//returns timestamp in a sql and ISO 8601 friendly format
|
||||||
/proc/SQLtime(timevar)
|
/proc/SQLtime(timevar)
|
||||||
if(!timevar)
|
if(!timevar)
|
||||||
|
|||||||
@@ -64,7 +64,6 @@ Turf and target are separate in case you want to teleport some distance from a t
|
|||||||
|
|
||||||
errorx = abs(errorx)//Error should never be negative.
|
errorx = abs(errorx)//Error should never be negative.
|
||||||
errory = abs(errory)
|
errory = abs(errory)
|
||||||
//var/errorxy = round((errorx+errory)/2)//Used for diagonal boxes.
|
|
||||||
|
|
||||||
switch(target.dir)//This can be done through equations but switch is the simpler method. And works fast to boot.
|
switch(target.dir)//This can be done through equations but switch is the simpler method. And works fast to boot.
|
||||||
//Directs on what values need modifying.
|
//Directs on what values need modifying.
|
||||||
@@ -340,10 +339,6 @@ Turf and target are separate in case you want to teleport some distance from a t
|
|||||||
moblist.Add(M)
|
moblist.Add(M)
|
||||||
for(var/mob/living/simple_animal/M in sortmob)
|
for(var/mob/living/simple_animal/M in sortmob)
|
||||||
moblist.Add(M)
|
moblist.Add(M)
|
||||||
// for(var/mob/living/silicon/hivebot/M in world)
|
|
||||||
// mob_list.Add(M)
|
|
||||||
// for(var/mob/living/silicon/hive_mainframe/M in world)
|
|
||||||
// mob_list.Add(M)
|
|
||||||
for(var/mob/living/carbon/true_devil/M in sortmob)
|
for(var/mob/living/carbon/true_devil/M in sortmob)
|
||||||
moblist.Add(M)
|
moblist.Add(M)
|
||||||
return moblist
|
return moblist
|
||||||
@@ -1447,7 +1442,6 @@ GLOBAL_DATUM_INIT(dview_mob, /mob/dview, new)
|
|||||||
var/target_loc = target.loc
|
var/target_loc = target.loc
|
||||||
|
|
||||||
var/endtime = world.time+time
|
var/endtime = world.time+time
|
||||||
// var/starttime = world.time
|
|
||||||
. = TRUE
|
. = TRUE
|
||||||
while (world.time < endtime)
|
while (world.time < endtime)
|
||||||
stoplag(1)
|
stoplag(1)
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
<<<<<<< HEAD
|
||||||
//this function places received data into element with specified id.
|
//this function places received data into element with specified id.
|
||||||
#define js_byjax {"
|
#define js_byjax {"
|
||||||
|
|
||||||
@@ -48,3 +49,53 @@ Be sure to include required js functions in your page, or it'll raise an excepti
|
|||||||
receiver << output(argums,"[control_id]:replaceContent")
|
receiver << output(argums,"[control_id]:replaceContent")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
=======
|
||||||
|
//this function places received data into element with specified id.
|
||||||
|
#define js_byjax {"
|
||||||
|
|
||||||
|
function replaceContent() {
|
||||||
|
var args = Array.prototype.slice.call(arguments);
|
||||||
|
var id = args\[0\];
|
||||||
|
var content = args\[1\];
|
||||||
|
var callback = null;
|
||||||
|
if(args\[2\]){
|
||||||
|
callback = args\[2\];
|
||||||
|
if(args\[3\]){
|
||||||
|
args = args.slice(3);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var parent = document.getElementById(id);
|
||||||
|
if(typeof(parent)!=='undefined' && parent!=null){
|
||||||
|
parent.innerHTML = content?content:'';
|
||||||
|
}
|
||||||
|
if(callback && window\[callback\]){
|
||||||
|
window\[callback\].apply(null,args);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
"}
|
||||||
|
|
||||||
|
/*
|
||||||
|
sends data to control_id:replaceContent
|
||||||
|
|
||||||
|
receiver - mob
|
||||||
|
control_id - window id (for windows opened with browse(), it'll be "windowname.browser")
|
||||||
|
target_element - HTML element id
|
||||||
|
new_content - HTML content
|
||||||
|
callback - js function that will be called after the data is sent
|
||||||
|
callback_args - arguments for callback function
|
||||||
|
|
||||||
|
Be sure to include required js functions in your page, or it'll raise an exception.
|
||||||
|
*/
|
||||||
|
/proc/send_byjax(receiver, control_id, target_element, new_content=null, callback=null, list/callback_args=null)
|
||||||
|
if(receiver && target_element && control_id) // && winexists(receiver, control_id))
|
||||||
|
var/list/argums = list(target_element, new_content)
|
||||||
|
if(callback)
|
||||||
|
argums += callback
|
||||||
|
if(callback_args)
|
||||||
|
argums += callback_args
|
||||||
|
argums = list2params(argums)
|
||||||
|
|
||||||
|
receiver << output(argums,"[control_id]:replaceContent")
|
||||||
|
return
|
||||||
|
|
||||||
|
>>>>>>> b7a9a2a... Merge pull request #32844 from ShizCalev/code-cleanup
|
||||||
|
|||||||
@@ -80,12 +80,6 @@
|
|||||||
set_waypoint(A)
|
set_waypoint(A)
|
||||||
return
|
return
|
||||||
|
|
||||||
/*
|
|
||||||
AI restrained() currently does nothing
|
|
||||||
if(restrained())
|
|
||||||
RestrainedClickOn(A)
|
|
||||||
else
|
|
||||||
*/
|
|
||||||
A.attack_ai(src)
|
A.attack_ai(src)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -57,8 +57,6 @@ SUBSYSTEM_DEF(events)
|
|||||||
/datum/controller/subsystem/events/proc/spawnEvent()
|
/datum/controller/subsystem/events/proc/spawnEvent()
|
||||||
set waitfor = FALSE //for the admin prompt
|
set waitfor = FALSE //for the admin prompt
|
||||||
if(!CONFIG_GET(flag/allow_random_events))
|
if(!CONFIG_GET(flag/allow_random_events))
|
||||||
// var/datum/round_event_control/E = locate(/datum/round_event_control/dust) in control
|
|
||||||
// if(E) E.runEvent()
|
|
||||||
return
|
return
|
||||||
|
|
||||||
var/gamemode = SSticker.mode.config_tag
|
var/gamemode = SSticker.mode.config_tag
|
||||||
|
|||||||
@@ -505,14 +505,7 @@ SUBSYSTEM_DEF(shuttle)
|
|||||||
// Then we want the point closest to -infinity,-infinity
|
// Then we want the point closest to -infinity,-infinity
|
||||||
var/x2 = min(x0, x1)
|
var/x2 = min(x0, x1)
|
||||||
var/y2 = min(y0, y1)
|
var/y2 = min(y0, y1)
|
||||||
/*
|
|
||||||
var/lowx = topleft.x + SHUTTLE_TRANSIT_BORDER
|
|
||||||
var/lowy = topleft.y + SHUTTLE_TRANSIT_BORDER
|
|
||||||
|
|
||||||
var/turf/low_point = locate(lowx, lowy, topleft.z)
|
|
||||||
new /obj/effect/landmark/stationary(low_point)
|
|
||||||
to_chat(world, "Starting at the low point, we go [x2],[y2]")
|
|
||||||
*/
|
|
||||||
// Then invert the numbers
|
// Then invert the numbers
|
||||||
var/transit_x = topleft.x + SHUTTLE_TRANSIT_BORDER + abs(x2)
|
var/transit_x = topleft.x + SHUTTLE_TRANSIT_BORDER + abs(x2)
|
||||||
var/transit_y = topleft.y + SHUTTLE_TRANSIT_BORDER + abs(y2)
|
var/transit_y = topleft.y + SHUTTLE_TRANSIT_BORDER + abs(y2)
|
||||||
|
|||||||
@@ -15,8 +15,6 @@
|
|||||||
|
|
||||||
var/list/stored_profiles = list() //list of datum/changelingprofile
|
var/list/stored_profiles = list() //list of datum/changelingprofile
|
||||||
var/datum/changelingprofile/first_prof = null
|
var/datum/changelingprofile/first_prof = null
|
||||||
//var/list/absorbed_dna = list()
|
|
||||||
//var/list/protected_dna = list() //dna that is not lost when capacity is otherwise full
|
|
||||||
var/dna_max = 6 //How many extra DNA strands the changeling can store for transformation.
|
var/dna_max = 6 //How many extra DNA strands the changeling can store for transformation.
|
||||||
var/absorbedcount = 0
|
var/absorbedcount = 0
|
||||||
var/chem_charges = 20
|
var/chem_charges = 20
|
||||||
|
|||||||
@@ -220,18 +220,6 @@
|
|||||||
// This is added to mob so that it can be used without a reference to the browser object
|
// This is added to mob so that it can be used without a reference to the browser object
|
||||||
// There is probably a better place for this...
|
// There is probably a better place for this...
|
||||||
/mob/proc/browse_rsc_icon(icon, icon_state, dir = -1)
|
/mob/proc/browse_rsc_icon(icon, icon_state, dir = -1)
|
||||||
/*
|
|
||||||
var/icon/I
|
|
||||||
if (dir >= 0)
|
|
||||||
I = new /icon(icon, icon_state, dir)
|
|
||||||
else
|
|
||||||
I = new /icon(icon, icon_state)
|
|
||||||
setDir("default")
|
|
||||||
|
|
||||||
var/filename = "[ckey("[icon]_[icon_state]_[dir]")].png"
|
|
||||||
src << browse_rsc(I, filename)
|
|
||||||
return filename
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
// Registers the on-close verb for a browse window (client/verb/.windowclose)
|
// Registers the on-close verb for a browse window (client/verb/.windowclose)
|
||||||
|
|||||||
@@ -22,8 +22,6 @@
|
|||||||
var/last_insert_success
|
var/last_insert_success
|
||||||
var/precise_insertion = FALSE
|
var/precise_insertion = FALSE
|
||||||
var/datum/callback/precondition
|
var/datum/callback/precondition
|
||||||
//MAX_STACK_SIZE = 50
|
|
||||||
//MINERAL_MATERIAL_AMOUNT = 2000
|
|
||||||
|
|
||||||
/datum/component/material_container/Initialize(list/mat_list, max_amt = 0, _show_on_examine = FALSE, list/allowed_types, datum/callback/_precondition)
|
/datum/component/material_container/Initialize(list/mat_list, max_amt = 0, _show_on_examine = FALSE, list/allowed_types, datum/callback/_precondition)
|
||||||
materials = list()
|
materials = list()
|
||||||
|
|||||||
@@ -418,24 +418,9 @@
|
|||||||
item = "[VV_HTML_ENCODE(name)] = /icon (<span class='value'>[value]</span>)"
|
item = "[VV_HTML_ENCODE(name)] = /icon (<span class='value'>[value]</span>)"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* else if (istype(value, /image))
|
|
||||||
#ifdef VARSICON
|
|
||||||
var/rnd = rand(1, 10000)
|
|
||||||
var/image/I = value
|
|
||||||
|
|
||||||
src << browse_rsc(I.icon, "tmp[REF(value)][rnd].png")
|
|
||||||
html += "[name] = <img src=\"tmp[REF(value)][rnd].png\">"
|
|
||||||
#else
|
|
||||||
html += "[name] = /image (<span class='value'>[value]</span>)"
|
|
||||||
#endif
|
|
||||||
*/
|
|
||||||
else if (isfile(value))
|
else if (isfile(value))
|
||||||
item = "[VV_HTML_ENCODE(name)] = <span class='value'>'[value]'</span>"
|
item = "[VV_HTML_ENCODE(name)] = <span class='value'>'[value]'</span>"
|
||||||
|
|
||||||
//else if (istype(value, /client))
|
|
||||||
// var/client/C = value
|
|
||||||
// item = "<a href='?_src_=vars;Vars=[REF(value)]'>[VV_HTML_ENCODE(name)] [REF(value)]</a> = [C] [C.type]"
|
|
||||||
|
|
||||||
else if (istype(value, /datum))
|
else if (istype(value, /datum))
|
||||||
var/datum/D = value
|
var/datum/D = value
|
||||||
if ("[D]" != "[D.type]") //if the thing as a name var, lets use it.
|
if ("[D]" != "[D.type]") //if the thing as a name var, lets use it.
|
||||||
|
|||||||
@@ -35,6 +35,10 @@
|
|||||||
affected_mob.visible_message("<span class='danger'>[affected_mob] coughs up a swarm of bees!</span>", \
|
affected_mob.visible_message("<span class='danger'>[affected_mob] coughs up a swarm of bees!</span>", \
|
||||||
"<span class='userdanger'>You cough up a swarm of bees!</span>")
|
"<span class='userdanger'>You cough up a swarm of bees!</span>")
|
||||||
new /mob/living/simple_animal/hostile/poison/bees(affected_mob.loc)
|
new /mob/living/simple_animal/hostile/poison/bees(affected_mob.loc)
|
||||||
|
<<<<<<< HEAD
|
||||||
//if(5)
|
//if(5)
|
||||||
//Plus if you die, you explode into bees
|
//Plus if you die, you explode into bees
|
||||||
return
|
return
|
||||||
|
=======
|
||||||
|
return
|
||||||
|
>>>>>>> b7a9a2a... Merge pull request #32844 from ShizCalev/code-cleanup
|
||||||
|
|||||||
@@ -13,12 +13,6 @@
|
|||||||
..()
|
..()
|
||||||
switch(stage)
|
switch(stage)
|
||||||
if(2)
|
if(2)
|
||||||
/*
|
|
||||||
if(affected_mob.sleeping && prob(40)) //removed until sleeping is fixed
|
|
||||||
to_chat(affected_mob, "\blue You feel better.")
|
|
||||||
cure()
|
|
||||||
return
|
|
||||||
*/
|
|
||||||
if(affected_mob.lying && prob(40)) //changed FROM prob(10) until sleeping is fixed
|
if(affected_mob.lying && prob(40)) //changed FROM prob(10) until sleeping is fixed
|
||||||
to_chat(affected_mob, "<span class='notice'>You feel better.</span>")
|
to_chat(affected_mob, "<span class='notice'>You feel better.</span>")
|
||||||
cure()
|
cure()
|
||||||
@@ -36,12 +30,6 @@
|
|||||||
if(prob(1))
|
if(prob(1))
|
||||||
to_chat(affected_mob, "<span class='danger'>Mucous runs down the back of your throat.</span>")
|
to_chat(affected_mob, "<span class='danger'>Mucous runs down the back of your throat.</span>")
|
||||||
if(3)
|
if(3)
|
||||||
/*
|
|
||||||
if(affected_mob.sleeping && prob(25)) //removed until sleeping is fixed
|
|
||||||
to_chat(affected_mob, "\blue You feel better.")
|
|
||||||
cure()
|
|
||||||
return
|
|
||||||
*/
|
|
||||||
if(affected_mob.lying && prob(25)) //changed FROM prob(5) until sleeping is fixed
|
if(affected_mob.lying && prob(25)) //changed FROM prob(5) until sleeping is fixed
|
||||||
to_chat(affected_mob, "<span class='notice'>You feel better.</span>")
|
to_chat(affected_mob, "<span class='notice'>You feel better.</span>")
|
||||||
cure()
|
cure()
|
||||||
|
|||||||
@@ -511,10 +511,6 @@ NOTE: there are two lists of areas in the end of this file: centcom and station
|
|||||||
name = "Research Director's Private Quarters"
|
name = "Research Director's Private Quarters"
|
||||||
icon_state = "rd_private"
|
icon_state = "rd_private"
|
||||||
|
|
||||||
/area/mint
|
|
||||||
name = "Mint"
|
|
||||||
icon_state = "green"
|
|
||||||
|
|
||||||
/area/comms
|
/area/comms
|
||||||
name = "Communications Relay"
|
name = "Communications Relay"
|
||||||
icon_state = "tcomsatcham"
|
icon_state = "tcomsatcham"
|
||||||
@@ -1375,16 +1371,6 @@ NOTE: there are two lists of areas in the end of this file: centcom and station
|
|||||||
icon_state = "eva"
|
icon_state = "eva"
|
||||||
ambientsounds = HIGHSEC
|
ambientsounds = HIGHSEC
|
||||||
|
|
||||||
/area/ai_monitored/storage/secure
|
|
||||||
name = "AI Satellite Storage"
|
|
||||||
icon_state = "storage"
|
|
||||||
ambientsounds = HIGHSEC
|
|
||||||
|
|
||||||
/area/ai_monitored/storage/emergency
|
|
||||||
name = "Emergency Storage"
|
|
||||||
icon_state = "storage"
|
|
||||||
ambientsounds = HIGHSEC
|
|
||||||
|
|
||||||
/area/ai_monitored/storage/satellite
|
/area/ai_monitored/storage/satellite
|
||||||
name = "AI Satellite Maint"
|
name = "AI Satellite Maint"
|
||||||
icon_state = "storage"
|
icon_state = "storage"
|
||||||
@@ -1522,7 +1508,6 @@ GLOBAL_LIST_INIT(the_station_areas, list (
|
|||||||
/area/library,
|
/area/library,
|
||||||
/area/maintenance,
|
/area/maintenance,
|
||||||
/area/medical,
|
/area/medical,
|
||||||
// /area/mint, //not present on map
|
|
||||||
/area/quartermaster,
|
/area/quartermaster,
|
||||||
/area/science,
|
/area/science,
|
||||||
/area/security,
|
/area/security,
|
||||||
@@ -1530,8 +1515,6 @@ GLOBAL_LIST_INIT(the_station_areas, list (
|
|||||||
/area/storage,
|
/area/storage,
|
||||||
/area/teleporter,
|
/area/teleporter,
|
||||||
/area/ai_monitored/storage/eva, //do not try to simplify to "/area/ai_monitored" --rastaf0
|
/area/ai_monitored/storage/eva, //do not try to simplify to "/area/ai_monitored" --rastaf0
|
||||||
// /area/ai_monitored/storage/secure, //not present on map
|
|
||||||
// /area/ai_monitored/storage/emergency, //not present on map
|
|
||||||
/area/ai_monitored/turret_protected/ai_upload, //do not try to simplify to "/area/ai_monitored/turret_protected" --rastaf0
|
/area/ai_monitored/turret_protected/ai_upload, //do not try to simplify to "/area/ai_monitored/turret_protected" --rastaf0
|
||||||
/area/ai_monitored/turret_protected/ai_upload_foyer,
|
/area/ai_monitored/turret_protected/ai_upload_foyer,
|
||||||
/area/ai_monitored/turret_protected/ai,
|
/area/ai_monitored/turret_protected/ai,
|
||||||
|
|||||||
@@ -257,8 +257,6 @@
|
|||||||
|
|
||||||
if(desc)
|
if(desc)
|
||||||
to_chat(user, desc)
|
to_chat(user, desc)
|
||||||
// *****RM
|
|
||||||
//to_chat(user, "[name]: Dn:[density] dir:[dir] cont:[contents] icon:[icon] is:[icon_state] loc:[loc]")
|
|
||||||
|
|
||||||
if(reagents && (is_open_container() || is_transparent())) //is_open_container() isn't really the right proc for this, but w/e
|
if(reagents && (is_open_container() || is_transparent())) //is_open_container() isn't really the right proc for this, but w/e
|
||||||
to_chat(user, "It contains:")
|
to_chat(user, "It contains:")
|
||||||
|
|||||||
@@ -44,8 +44,6 @@
|
|||||||
contractName = "of revival"
|
contractName = "of revival"
|
||||||
if(CONTRACT_KNOWLEDGE)
|
if(CONTRACT_KNOWLEDGE)
|
||||||
contractName = "for knowledge"
|
contractName = "for knowledge"
|
||||||
//if(CONTRACT_UNWILLING) //Makes round unfun.
|
|
||||||
// contractName = "against their will"
|
|
||||||
update_explanation_text()
|
update_explanation_text()
|
||||||
|
|
||||||
/datum/objective/devil/soulquality/update_explanation_text()
|
/datum/objective/devil/soulquality/update_explanation_text()
|
||||||
|
|||||||
@@ -1,16 +1,6 @@
|
|||||||
/datum/objective/sintouched
|
/datum/objective/sintouched
|
||||||
completed = 1
|
completed = 1
|
||||||
|
|
||||||
/* NO ERP OBJECTIVE FOR YOU.
|
|
||||||
/datum/objective/sintouched/lust
|
|
||||||
|
|
||||||
/datum/objective/sintouched/lust/New()
|
|
||||||
var/mob/dead/D = pick(dead_mob_list)
|
|
||||||
if(prob(50) && D)
|
|
||||||
explanation_text = "You know that [D] has perished.... and you think [D] is kinda cute. Make sure everyone knows how HOT [D]'s lifeless body is."
|
|
||||||
else
|
|
||||||
explanation_text = "Go get married, then immediately cheat on your new spouse." */
|
|
||||||
|
|
||||||
/datum/objective/sintouched/gluttony
|
/datum/objective/sintouched/gluttony
|
||||||
explanation_text = "Everything is so delicious. Go eat everything."
|
explanation_text = "Everything is so delicious. Go eat everything."
|
||||||
|
|
||||||
|
|||||||
@@ -178,14 +178,6 @@
|
|||||||
disk_rescued = 0
|
disk_rescued = 0
|
||||||
break
|
break
|
||||||
var/crew_evacuated = (SSshuttle.emergency.mode == SHUTTLE_ENDGAME)
|
var/crew_evacuated = (SSshuttle.emergency.mode == SHUTTLE_ENDGAME)
|
||||||
//var/operatives_are_dead = is_operatives_are_dead()
|
|
||||||
|
|
||||||
|
|
||||||
//nukes_left
|
|
||||||
//station_was_nuked
|
|
||||||
//derp //Used for tracking if the syndies actually haul the nuke to the station //no
|
|
||||||
//herp //Used for tracking if the syndies got the shuttle off of the z-level //NO, DON'T FUCKING NAME VARS LIKE THIS
|
|
||||||
|
|
||||||
|
|
||||||
if(nuke_off_station == NUKE_SYNDICATE_BASE)
|
if(nuke_off_station == NUKE_SYNDICATE_BASE)
|
||||||
SSticker.mode_result = "loss - syndicate nuked - disk secured"
|
SSticker.mode_result = "loss - syndicate nuked - disk secured"
|
||||||
|
|||||||
@@ -100,10 +100,6 @@
|
|||||||
dat += text("<td>[]</td>", R.fields["p_stat"])
|
dat += text("<td>[]</td>", R.fields["p_stat"])
|
||||||
dat += text("<td>[]</td></tr>", R.fields["m_stat"])
|
dat += text("<td>[]</td></tr>", R.fields["m_stat"])
|
||||||
dat += "</table><hr width='75%' />"
|
dat += "</table><hr width='75%' />"
|
||||||
// if(GLOB.data_core.general)
|
|
||||||
// for(var/datum/data/record/R in sortRecord(GLOB.data_core.general))
|
|
||||||
// dat += "<A href='?src=[REF(src)];d_rec=[R.fields["id"]]'>[R.fields["id"]]: [R.fields["name"]]<BR>"
|
|
||||||
// //Foreach goto(132)
|
|
||||||
dat += "<HR><A href='?src=[REF(src)];screen=1'>Back</A>"
|
dat += "<HR><A href='?src=[REF(src)];screen=1'>Back</A>"
|
||||||
if(3)
|
if(3)
|
||||||
dat += "<B>Records Maintenance</B><HR>\n<A href='?src=[REF(src)];back=1'>Backup To Disk</A><BR>\n<A href='?src=[REF(src)];u_load=1'>Upload From Disk</A><BR>\n<A href='?src=[REF(src)];del_all=1'>Delete All Records</A><BR>\n<BR>\n<A href='?src=[REF(src)];screen=1'>Back</A>"
|
dat += "<B>Records Maintenance</B><HR>\n<A href='?src=[REF(src)];back=1'>Backup To Disk</A><BR>\n<A href='?src=[REF(src)];u_load=1'>Upload From Disk</A><BR>\n<A href='?src=[REF(src)];del_all=1'>Delete All Records</A><BR>\n<BR>\n<A href='?src=[REF(src)];screen=1'>Back</A>"
|
||||||
|
|||||||
@@ -119,9 +119,6 @@
|
|||||||
//Message Logs
|
//Message Logs
|
||||||
if(1)
|
if(1)
|
||||||
var/index = 0
|
var/index = 0
|
||||||
//var/recipient = "Unspecified" //name of the person
|
|
||||||
//var/sender = "Unspecified" //name of the sender
|
|
||||||
//var/message = "Blank" //transferred message
|
|
||||||
dat += "<center><A href='?src=[REF(src)];back=1'>Back</a> - <A href='?src=[REF(src)];refresh=1'>Refresh</center><hr>"
|
dat += "<center><A href='?src=[REF(src)];back=1'>Back</a> - <A href='?src=[REF(src)];refresh=1'>Refresh</center><hr>"
|
||||||
dat += "<table border='1' width='100%'><tr><th width = '5%'>X</th><th width='15%'>Sender</th><th width='15%'>Recipient</th><th width='300px' word-wrap: break-word>Message</th></tr>"
|
dat += "<table border='1' width='100%'><tr><th width = '5%'>X</th><th width='15%'>Sender</th><th width='15%'>Recipient</th><th width='300px' word-wrap: break-word>Message</th></tr>"
|
||||||
for(var/datum/data_pda_msg/pda in src.linkedServer.pda_msgs)
|
for(var/datum/data_pda_msg/pda in src.linkedServer.pda_msgs)
|
||||||
|
|||||||
@@ -261,7 +261,7 @@
|
|||||||
justzap = TRUE
|
justzap = TRUE
|
||||||
addtimer(CALLBACK(src, .proc/unzap), 10)
|
addtimer(CALLBACK(src, .proc/unzap), 10)
|
||||||
return
|
return
|
||||||
else /*if(src.justzap)*/
|
else
|
||||||
return
|
return
|
||||||
else if(user.hallucinating() && ishuman(user) && prob(4) && !operating)
|
else if(user.hallucinating() && ishuman(user) && prob(4) && !operating)
|
||||||
var/mob/living/carbon/human/H = user
|
var/mob/living/carbon/human/H = user
|
||||||
|
|||||||
@@ -63,9 +63,6 @@
|
|||||||
spark_system = null
|
spark_system = null
|
||||||
return ..()
|
return ..()
|
||||||
|
|
||||||
//process()
|
|
||||||
//return
|
|
||||||
|
|
||||||
/obj/machinery/door/CollidedWith(atom/movable/AM)
|
/obj/machinery/door/CollidedWith(atom/movable/AM)
|
||||||
if(operating || emagged)
|
if(operating || emagged)
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -73,7 +73,6 @@
|
|||||||
if(src.z in GLOB.station_z_levels)
|
if(src.z in GLOB.station_z_levels)
|
||||||
add_overlay("overlay_[GLOB.security_level]")
|
add_overlay("overlay_[GLOB.security_level]")
|
||||||
else
|
else
|
||||||
//var/green = SEC_LEVEL_GREEN
|
|
||||||
add_overlay("overlay_[SEC_LEVEL_GREEN]")
|
add_overlay("overlay_[SEC_LEVEL_GREEN]")
|
||||||
|
|
||||||
if(detecting)
|
if(detecting)
|
||||||
|
|||||||
@@ -119,7 +119,6 @@
|
|||||||
if(!colour2 && !T.density)
|
if(!colour2 && !T.density)
|
||||||
var/datum/gas_mixture/environment = T.return_air()
|
var/datum/gas_mixture/environment = T.return_air()
|
||||||
var/turf_total = environment.total_moles()
|
var/turf_total = environment.total_moles()
|
||||||
//var/turf_total = T.co2 + T.oxygen + T.poison + T.sl_gas + T.n2
|
|
||||||
|
|
||||||
|
|
||||||
var/t1 = turf_total / MOLES_CELLSTANDARD * 150
|
var/t1 = turf_total / MOLES_CELLSTANDARD * 150
|
||||||
@@ -242,9 +241,6 @@
|
|||||||
else
|
else
|
||||||
colour = rgb(255,128,128)
|
colour = rgb(255,128,128)
|
||||||
|
|
||||||
//if(istype(AM, /obj/structure/blob))
|
|
||||||
// colour = rgb(255,0,255)
|
|
||||||
|
|
||||||
var/area/A = T.loc
|
var/area/A = T.loc
|
||||||
|
|
||||||
if(A.fire)
|
if(A.fire)
|
||||||
@@ -296,10 +292,6 @@
|
|||||||
|
|
||||||
src.close(user)
|
src.close(user)
|
||||||
|
|
||||||
/* if(seccomp == src)
|
|
||||||
drawmap(user)
|
|
||||||
else
|
|
||||||
user.clearmap()*/
|
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -622,16 +622,6 @@
|
|||||||
IF YOU MODIFY THE PRODUCTS LIST OF A MACHINE, MAKE SURE TO UPDATE ITS RESUPPLY CANISTER CHARGES in vending_items.dm
|
IF YOU MODIFY THE PRODUCTS LIST OF A MACHINE, MAKE SURE TO UPDATE ITS RESUPPLY CANISTER CHARGES in vending_items.dm
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
|
||||||
/obj/machinery/vending/atmospherics //Commenting this out until someone ponies up some actual working, broken, and unpowered sprites - Quarxink
|
|
||||||
name = "Tank Vendor"
|
|
||||||
desc = "A vendor with a wide variety of masks and gas tanks."
|
|
||||||
icon = 'icons/obj/objects.dmi'
|
|
||||||
icon_state = "dispenser"
|
|
||||||
product_paths = "/obj/item/tank/internals/oxygen;/obj/item/tank/internals/plasma;/obj/item/tank/internals/emergency_oxygen;/obj/item/tank/internals/emergency_oxygen/engi;/obj/item/clothing/mask/breath"
|
|
||||||
product_amounts = "10;10;10;5;25"
|
|
||||||
*/
|
|
||||||
|
|
||||||
/obj/machinery/vending/boozeomat
|
/obj/machinery/vending/boozeomat
|
||||||
name = "\improper Booze-O-Mat"
|
name = "\improper Booze-O-Mat"
|
||||||
desc = "A technological marvel, supposedly able to mix just the mixture you'd like to drink the moment you ask for one."
|
desc = "A technological marvel, supposedly able to mix just the mixture you'd like to drink the moment you ask for one."
|
||||||
|
|||||||
@@ -15,17 +15,6 @@
|
|||||||
max_equip = 3
|
max_equip = 3
|
||||||
var/squeak = 0
|
var/squeak = 0
|
||||||
|
|
||||||
/*
|
|
||||||
/obj/mecha/combat/honker/New()
|
|
||||||
..()
|
|
||||||
|
|
||||||
weapons += new /datum/mecha_weapon/honker(src)
|
|
||||||
weapons += new /datum/mecha_weapon/missile_rack/banana_mortar(src)
|
|
||||||
weapons += new /datum/mecha_weapon/missile_rack/mousetrap_mortar(src)
|
|
||||||
selected_weapon = weapons[1]
|
|
||||||
return
|
|
||||||
*/
|
|
||||||
|
|
||||||
/obj/mecha/combat/honker/get_stats_part()
|
/obj/mecha/combat/honker/get_stats_part()
|
||||||
var/integrity = obj_integrity/max_integrity*100
|
var/integrity = obj_integrity/max_integrity*100
|
||||||
var/cell_charge = get_charge()
|
var/cell_charge = get_charge()
|
||||||
|
|||||||
@@ -51,7 +51,6 @@ GLOBAL_VAR_INIT(rpg_loot_items, FALSE)
|
|||||||
var/item_color = null //this needs deprecating, soonish
|
var/item_color = null //this needs deprecating, soonish
|
||||||
|
|
||||||
var/body_parts_covered = 0 //see setup.dm for appropriate bit flags
|
var/body_parts_covered = 0 //see setup.dm for appropriate bit flags
|
||||||
//var/heat_transfer_coefficient = 1 //0 prevents all transfers, 1 is invisible
|
|
||||||
var/gas_transfer_coefficient = 1 // for leaking gas from turf to mask and vice-versa (for masks right now, but at some point, i'd like to include space helmets)
|
var/gas_transfer_coefficient = 1 // for leaking gas from turf to mask and vice-versa (for masks right now, but at some point, i'd like to include space helmets)
|
||||||
var/permeability_coefficient = 1 // for chemicals/diseases
|
var/permeability_coefficient = 1 // for chemicals/diseases
|
||||||
var/siemens_coefficient = 1 // for electrical admittance/conductance (electrocution checks and shit)
|
var/siemens_coefficient = 1 // for electrical admittance/conductance (electrocution checks and shit)
|
||||||
|
|||||||
@@ -29,7 +29,6 @@
|
|||||||
|
|
||||||
var/access = 0 //Bit flags_1 for cartridge access
|
var/access = 0 //Bit flags_1 for cartridge access
|
||||||
|
|
||||||
// var/access_flora = 0
|
|
||||||
var/remote_door_id = ""
|
var/remote_door_id = ""
|
||||||
|
|
||||||
var/bot_access_flags = 0 //Bit flags_1. Selection: SEC_BOT | MULE_BOT | FLOOR_BOT | CLEAN_BOT | MED_BOT
|
var/bot_access_flags = 0 //Bit flags_1. Selection: SEC_BOT | MULE_BOT | FLOOR_BOT | CLEAN_BOT | MED_BOT
|
||||||
@@ -110,13 +109,6 @@
|
|||||||
icon_state = "cart-s"
|
icon_state = "cart-s"
|
||||||
access = CART_NEWSCASTER
|
access = CART_NEWSCASTER
|
||||||
|
|
||||||
/*
|
|
||||||
/obj/item/cartridge/botanist
|
|
||||||
name = "\improper Green Thumb v4.20 cartridge"
|
|
||||||
icon_state = "cart-b"
|
|
||||||
access_flora = 1
|
|
||||||
*/
|
|
||||||
|
|
||||||
/obj/item/cartridge/roboticist
|
/obj/item/cartridge/roboticist
|
||||||
name = "\improper B.O.O.P. Remote Control cartridge"
|
name = "\improper B.O.O.P. Remote Control cartridge"
|
||||||
desc = "Packed with heavy duty triple-bot interlink!"
|
desc = "Packed with heavy duty triple-bot interlink!"
|
||||||
@@ -669,9 +661,6 @@ Code:
|
|||||||
|
|
||||||
var/mob/living/simple_animal/bot/Bot
|
var/mob/living/simple_animal/bot/Bot
|
||||||
|
|
||||||
// if(!SC)
|
|
||||||
// menu = "Interlink Error - Please reinsert cartridge."
|
|
||||||
// return
|
|
||||||
if(active_bot)
|
if(active_bot)
|
||||||
menu += "<B>[active_bot]</B><BR> Status: (<A href='byond://?src=[REF(src)];op=control;bot=[REF(active_bot)]'><img src=pda_refresh.png><i>refresh</i></A>)<BR>"
|
menu += "<B>[active_bot]</B><BR> Status: (<A href='byond://?src=[REF(src)];op=control;bot=[REF(active_bot)]'><img src=pda_refresh.png><i>refresh</i></A>)<BR>"
|
||||||
menu += "Model: [active_bot.model]<BR>"
|
menu += "Model: [active_bot.model]<BR>"
|
||||||
|
|||||||
@@ -4,7 +4,6 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Multitool -- A multitool is used for hacking electronic devices.
|
* Multitool -- A multitool is used for hacking electronic devices.
|
||||||
* TO-DO -- Using it as a power measurement tool for cables etc. Nannek.
|
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
@@ -35,9 +35,3 @@
|
|||||||
src.code = "beacon"
|
src.code = "beacon"
|
||||||
src.add_fingerprint(usr)
|
src.add_fingerprint(usr)
|
||||||
return
|
return
|
||||||
|
|
||||||
/*
|
|
||||||
//Probably a better way of doing this, I'm lazy.
|
|
||||||
/obj/item/device/radio/beacon/bacon/proc/digest_delay()
|
|
||||||
spawn(600)
|
|
||||||
qdel(src)*/ //Bacon beacons are no more rip in peace
|
|
||||||
|
|||||||
@@ -454,18 +454,6 @@
|
|||||||
if(message_mode == MODE_WHISPER || message_mode == MODE_WHISPER_CRIT)
|
if(message_mode == MODE_WHISPER || message_mode == MODE_WHISPER_CRIT)
|
||||||
raw_message = stars(raw_message)
|
raw_message = stars(raw_message)
|
||||||
talk_into(speaker, raw_message, , spans, language=message_language)
|
talk_into(speaker, raw_message, , spans, language=message_language)
|
||||||
/*
|
|
||||||
/obj/item/device/radio/proc/accept_rad(obj/item/device/radio/R as obj, message)
|
|
||||||
|
|
||||||
if ((R.frequency == frequency && message))
|
|
||||||
return 1
|
|
||||||
else if
|
|
||||||
|
|
||||||
else
|
|
||||||
return null
|
|
||||||
return
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
/obj/item/device/radio/proc/receive_range(freq, level)
|
/obj/item/device/radio/proc/receive_range(freq, level)
|
||||||
// check if this radio can receive on the given frequency, and if so,
|
// check if this radio can receive on the given frequency, and if so,
|
||||||
|
|||||||
@@ -375,16 +375,12 @@ GLOBAL_LIST_INIT(adamantine_recipes, list(
|
|||||||
sheettype = "abductor"
|
sheettype = "abductor"
|
||||||
|
|
||||||
GLOBAL_LIST_INIT(abductor_recipes, list ( \
|
GLOBAL_LIST_INIT(abductor_recipes, list ( \
|
||||||
/* new/datum/stack_recipe("alien chair", /obj/structure/chair, one_per_turf = 1, on_floor = 1), \ */
|
|
||||||
new/datum/stack_recipe("alien bed", /obj/structure/bed/abductor, 2, one_per_turf = 1, on_floor = 1), \
|
new/datum/stack_recipe("alien bed", /obj/structure/bed/abductor, 2, one_per_turf = 1, on_floor = 1), \
|
||||||
new/datum/stack_recipe("alien locker", /obj/structure/closet/abductor, 2, time = 15, one_per_turf = 1, on_floor = 1), \
|
new/datum/stack_recipe("alien locker", /obj/structure/closet/abductor, 2, time = 15, one_per_turf = 1, on_floor = 1), \
|
||||||
new/datum/stack_recipe("alien table frame", /obj/structure/table_frame/abductor, 1, time = 15, one_per_turf = 1, on_floor = 1), \
|
new/datum/stack_recipe("alien table frame", /obj/structure/table_frame/abductor, 1, time = 15, one_per_turf = 1, on_floor = 1), \
|
||||||
new/datum/stack_recipe("alien airlock assembly", /obj/structure/door_assembly/door_assembly_abductor, 4, time = 20, one_per_turf = 1, on_floor = 1), \
|
new/datum/stack_recipe("alien airlock assembly", /obj/structure/door_assembly/door_assembly_abductor, 4, time = 20, one_per_turf = 1, on_floor = 1), \
|
||||||
null, \
|
null, \
|
||||||
new/datum/stack_recipe("alien floor tile", /obj/item/stack/tile/mineral/abductor, 1, 4, 20), \
|
new/datum/stack_recipe("alien floor tile", /obj/item/stack/tile/mineral/abductor, 1, 4, 20), \
|
||||||
/* null, \
|
|
||||||
new/datum/stack_recipe("Abductor Agent Statue", /obj/structure/statue/bananium/clown, 5, one_per_turf = 1, on_floor = 1), \
|
|
||||||
new/datum/stack_recipe("Abductor Sciencist Statue", /obj/structure/statue/bananium/clown, 5, one_per_turf = 1, on_floor = 1)*/
|
|
||||||
))
|
))
|
||||||
|
|
||||||
/obj/item/stack/sheet/mineral/abductor/Initialize(mapload, new_amount, merge = TRUE)
|
/obj/item/stack/sheet/mineral/abductor/Initialize(mapload, new_amount, merge = TRUE)
|
||||||
|
|||||||
@@ -254,7 +254,6 @@
|
|||||||
adjusted_contents++
|
adjusted_contents++
|
||||||
numbered_contents.Add( new/datum/numbered_display(I) )
|
numbered_contents.Add( new/datum/numbered_display(I) )
|
||||||
|
|
||||||
//var/mob/living/carbon/human/H = user
|
|
||||||
var/row_num = 0
|
var/row_num = 0
|
||||||
var/col_count = min(7,storage_slots) -1
|
var/col_count = min(7,storage_slots) -1
|
||||||
if(adjusted_contents > 7)
|
if(adjusted_contents > 7)
|
||||||
|
|||||||
@@ -53,11 +53,6 @@
|
|||||||
if ("delete")
|
if ("delete")
|
||||||
qdel(src)
|
qdel(src)
|
||||||
|
|
||||||
//If you want to re-add fire, just add "fire" = 15 to the pick list.
|
|
||||||
/*if ("fire")
|
|
||||||
new /obj/structure/closet/firecloset(src.loc)
|
|
||||||
qdel(src)*/
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Fire Closet
|
* Fire Closet
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -13,8 +13,6 @@
|
|||||||
icon = 'icons/turf/walls/gold_wall.dmi'
|
icon = 'icons/turf/walls/gold_wall.dmi'
|
||||||
icon_state = "gold"
|
icon_state = "gold"
|
||||||
sheet_type = /obj/item/stack/sheet/mineral/gold
|
sheet_type = /obj/item/stack/sheet/mineral/gold
|
||||||
//var/electro = 1
|
|
||||||
//var/shocked = null
|
|
||||||
explosion_block = 0 //gold is a soft metal you dingus.
|
explosion_block = 0 //gold is a soft metal you dingus.
|
||||||
canSmoothWith = list(/turf/closed/wall/mineral/gold, /obj/structure/falsewall/gold)
|
canSmoothWith = list(/turf/closed/wall/mineral/gold, /obj/structure/falsewall/gold)
|
||||||
|
|
||||||
@@ -24,8 +22,6 @@
|
|||||||
icon = 'icons/turf/walls/silver_wall.dmi'
|
icon = 'icons/turf/walls/silver_wall.dmi'
|
||||||
icon_state = "silver"
|
icon_state = "silver"
|
||||||
sheet_type = /obj/item/stack/sheet/mineral/silver
|
sheet_type = /obj/item/stack/sheet/mineral/silver
|
||||||
//var/electro = 0.75
|
|
||||||
//var/shocked = null
|
|
||||||
canSmoothWith = list(/turf/closed/wall/mineral/silver, /obj/structure/falsewall/silver)
|
canSmoothWith = list(/turf/closed/wall/mineral/silver, /obj/structure/falsewall/silver)
|
||||||
|
|
||||||
/turf/closed/wall/mineral/diamond
|
/turf/closed/wall/mineral/diamond
|
||||||
|
|||||||
@@ -175,7 +175,6 @@ GLOBAL_PROTECT(Banlist)
|
|||||||
/datum/admins/proc/unbanpanel()
|
/datum/admins/proc/unbanpanel()
|
||||||
var/count = 0
|
var/count = 0
|
||||||
var/dat
|
var/dat
|
||||||
//var/dat = "<HR><B>Unban Player:</B> \blue(U) = Unban , (E) = Edit Ban\green (Total<HR><table border=1 rules=all frame=void cellspacing=0 cellpadding=3 >"
|
|
||||||
GLOB.Banlist.cd = "/base"
|
GLOB.Banlist.cd = "/base"
|
||||||
for (var/A in GLOB.Banlist.dir)
|
for (var/A in GLOB.Banlist.dir)
|
||||||
count++
|
count++
|
||||||
|
|||||||
@@ -615,24 +615,6 @@
|
|||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////////////////////ADMIN HELPER PROCS
|
////////////////////////////////////////////////////////////////////////////////////////////////ADMIN HELPER PROCS
|
||||||
|
|
||||||
/*
|
|
||||||
/datum/admins/proc/get_sab_desc(var/target)
|
|
||||||
switch(target)
|
|
||||||
if(1)
|
|
||||||
return "Destroy at least 70% of the plasma canisters on the station"
|
|
||||||
if(2)
|
|
||||||
return "Destroy the AI"
|
|
||||||
if(3)
|
|
||||||
var/count = 0
|
|
||||||
for(var/mob/living/carbon/monkey/Monkey in world)
|
|
||||||
if(Monkey.z in GLOB.station_z_levels)
|
|
||||||
count++
|
|
||||||
return "Kill all [count] of the monkeys on the station"
|
|
||||||
if(4)
|
|
||||||
return "Cut power to at least 80% of the station"
|
|
||||||
else
|
|
||||||
return "Error: Invalid sabotage target: [target]"
|
|
||||||
*/
|
|
||||||
/datum/admins/proc/spawn_atom(object as text)
|
/datum/admins/proc/spawn_atom(object as text)
|
||||||
set category = "Debug"
|
set category = "Debug"
|
||||||
set desc = "(atom path) Spawn an atom"
|
set desc = "(atom path) Spawn an atom"
|
||||||
|
|||||||
@@ -228,15 +228,6 @@ GLOBAL_LIST_INIT(admin_verbs_debug_mapping, list(
|
|||||||
if(B.z == num_level)
|
if(B.z == num_level)
|
||||||
count++
|
count++
|
||||||
atom_list += A
|
atom_list += A
|
||||||
/*
|
|
||||||
var/atom/temp_atom
|
|
||||||
for(var/i = 0; i <= (atom_list.len/10); i++)
|
|
||||||
var/line = ""
|
|
||||||
for(var/j = 1; j <= 10; j++)
|
|
||||||
if(i*10+j <= atom_list.len)
|
|
||||||
temp_atom = atom_list[i*10+j]
|
|
||||||
line += " no.[i+10+j]@\[[temp_atom.x], [temp_atom.y], [temp_atom.z]\]; "
|
|
||||||
to_chat(world, line)*/
|
|
||||||
|
|
||||||
to_chat(world, "There are [count] objects of type [type_path] on z-level [num_level]")
|
to_chat(world, "There are [count] objects of type [type_path] on z-level [num_level]")
|
||||||
SSblackbox.add_details("admin_verb","Count Objects Zlevel") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
SSblackbox.add_details("admin_verb","Count Objects Zlevel") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
||||||
@@ -257,15 +248,6 @@ GLOBAL_LIST_INIT(admin_verbs_debug_mapping, list(
|
|||||||
for(var/atom/A in world)
|
for(var/atom/A in world)
|
||||||
if(istype(A,type_path))
|
if(istype(A,type_path))
|
||||||
count++
|
count++
|
||||||
/*
|
|
||||||
var/atom/temp_atom
|
|
||||||
for(var/i = 0; i <= (atom_list.len/10); i++)
|
|
||||||
var/line = ""
|
|
||||||
for(var/j = 1; j <= 10; j++)
|
|
||||||
if(i*10+j <= atom_list.len)
|
|
||||||
temp_atom = atom_list[i*10+j]
|
|
||||||
line += " no.[i+10+j]@\[[temp_atom.x], [temp_atom.y], [temp_atom.z]\]; "
|
|
||||||
to_chat(world, line)*/
|
|
||||||
|
|
||||||
to_chat(world, "There are [count] objects of type [type_path] in the game world")
|
to_chat(world, "There are [count] objects of type [type_path] in the game world")
|
||||||
SSblackbox.add_details("admin_verb","Count Objects All") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
SSblackbox.add_details("admin_verb","Count Objects All") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
||||||
|
|||||||
@@ -39,10 +39,6 @@
|
|||||||
/obj/item/device/assembly/signaler/interact(mob/user, flag1)
|
/obj/item/device/assembly/signaler/interact(mob/user, flag1)
|
||||||
if(is_secured(user))
|
if(is_secured(user))
|
||||||
var/t1 = "-------"
|
var/t1 = "-------"
|
||||||
// if ((src.b_stat && !( flag1 )))
|
|
||||||
// t1 = text("-------<BR>\nGreen Wire: []<BR>\nRed Wire: []<BR>\nBlue Wire: []<BR>\n", (src.wires & 4 ? "<A href='?src=[REF(src)];wires=4'>Cut Wire</A>" : "<A href='?src=[REF(src)];wires=4'>Mend Wire</A>"), (src.wires & 2 ? "<A href='?src=[REF(src)];wires=2'>Cut Wire</A>" : "<A href='?src=[REF(src)];wires=2'>Mend Wire</A>"), (src.wires & 1 ? "<A href='?src=[REF(src)];wires=1'>Cut Wire</A>" : "<A href='?src=[REF(src)];wires=1'>Mend Wire</A>"))
|
|
||||||
// else
|
|
||||||
// t1 = "-------" Speaker: [src.listening ? "<A href='byond://?src=[REF(src)];listen=0'>Engaged</A>" : "<A href='byond://?src=[REF(src)];listen=1'>Disengaged</A>"]<BR>
|
|
||||||
var/dat = {"
|
var/dat = {"
|
||||||
<TT>
|
<TT>
|
||||||
|
|
||||||
@@ -123,17 +119,6 @@ Code:
|
|||||||
|
|
||||||
|
|
||||||
return
|
return
|
||||||
/*
|
|
||||||
for(var/obj/item/device/assembly/signaler/S in world)
|
|
||||||
if(!S)
|
|
||||||
continue
|
|
||||||
if(S == src)
|
|
||||||
continue
|
|
||||||
if((S.frequency == src.frequency) && (S.code == src.code))
|
|
||||||
spawn(0)
|
|
||||||
if(S)
|
|
||||||
S.pulse(0)
|
|
||||||
return 0*/
|
|
||||||
|
|
||||||
/obj/item/device/assembly/signaler/receive_signal(datum/signal/signal)
|
/obj/item/device/assembly/signaler/receive_signal(datum/signal/signal)
|
||||||
if(!signal)
|
if(!signal)
|
||||||
|
|||||||
@@ -423,22 +423,7 @@ GLOBAL_LIST_INIT(gaslist_cache, init_gaslist_cache())
|
|||||||
continue reaction_loop
|
continue reaction_loop
|
||||||
//at this point, all minimum requirements for the reaction are satisfied.
|
//at this point, all minimum requirements for the reaction are satisfied.
|
||||||
|
|
||||||
/* currently no reactions have maximum requirements, so we can leave the checks commented out for a slight performance boost
|
|
||||||
var/list/max_reqs = reaction.max_requirements.Copy()
|
|
||||||
if((max_reqs["TEMP"] && temp > max_reqs["TEMP"]) \
|
|
||||||
|| (max_reqs["ENER"] && ener > max_reqs["ENER"]))
|
|
||||||
continue
|
|
||||||
max_reqs -= "TEMP"
|
|
||||||
max_reqs -= "ENER"
|
|
||||||
|
|
||||||
for(var/id in max_reqs)
|
|
||||||
if(cached_gases[id] && cached_gases[id][MOLES] > max_reqs[id])
|
|
||||||
continue reaction_loop
|
|
||||||
//at this point, all requirements for the reaction are satisfied. we can now react()
|
|
||||||
*/
|
|
||||||
|
|
||||||
. |= reaction.react(src, dump_location)
|
. |= reaction.react(src, dump_location)
|
||||||
//to_chat(world,reaction.name)
|
|
||||||
if (. & STOP_REACTIONS)
|
if (. & STOP_REACTIONS)
|
||||||
break
|
break
|
||||||
if(.)
|
if(.)
|
||||||
|
|||||||
@@ -197,7 +197,6 @@ Acts like a normal vent, but has an input AND output.
|
|||||||
spawn(2)
|
spawn(2)
|
||||||
broadcast_status()
|
broadcast_status()
|
||||||
return //do not update_icon
|
return //do not update_icon
|
||||||
//if(signal.data["tag"])
|
|
||||||
spawn(2)
|
spawn(2)
|
||||||
broadcast_status()
|
broadcast_status()
|
||||||
update_icon()
|
update_icon()
|
||||||
|
|||||||
@@ -31,7 +31,6 @@
|
|||||||
|
|
||||||
// asset_cache
|
// asset_cache
|
||||||
if(href_list["asset_cache_confirm_arrival"])
|
if(href_list["asset_cache_confirm_arrival"])
|
||||||
//to_chat(src, "ASSET JOB [href_list["asset_cache_confirm_arrival"]] ARRIVED.")
|
|
||||||
var/job = text2num(href_list["asset_cache_confirm_arrival"])
|
var/job = text2num(href_list["asset_cache_confirm_arrival"])
|
||||||
//because we skip the limiter, we have to make sure this is a valid arrival and not somebody tricking us
|
//because we skip the limiter, we have to make sure this is a valid arrival and not somebody tricking us
|
||||||
// into letting append to a list without limit.
|
// into letting append to a list without limit.
|
||||||
@@ -131,13 +130,6 @@
|
|||||||
if(filelength > UPLOAD_LIMIT)
|
if(filelength > UPLOAD_LIMIT)
|
||||||
to_chat(src, "<font color='red'>Error: AllowUpload(): File Upload too large. Upload Limit: [UPLOAD_LIMIT/1024]KiB.</font>")
|
to_chat(src, "<font color='red'>Error: AllowUpload(): File Upload too large. Upload Limit: [UPLOAD_LIMIT/1024]KiB.</font>")
|
||||||
return 0
|
return 0
|
||||||
/* //Don't need this at the moment. But it's here if it's needed later.
|
|
||||||
//Helps prevent multiple files being uploaded at once. Or right after eachother.
|
|
||||||
var/time_to_wait = fileaccess_timer - world.time
|
|
||||||
if(time_to_wait > 0)
|
|
||||||
to_chat(src, "<font color='red'>Error: AllowUpload(): Spam prevention. Please wait [round(time_to_wait/10)] seconds.</font>")
|
|
||||||
return 0
|
|
||||||
fileaccess_timer = world.time + FTPDELAY */
|
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -239,8 +239,6 @@ GLOBAL_LIST_EMPTY(preferences_datums)
|
|||||||
S["real_name"] >> name
|
S["real_name"] >> name
|
||||||
if(!name)
|
if(!name)
|
||||||
name = "Character[i]"
|
name = "Character[i]"
|
||||||
/*if(i!=1)
|
|
||||||
dat += " | " */
|
|
||||||
dat += "<a style='white-space:nowrap;' href='?_src_=prefs;preference=changeslot;num=[i];' [i == default_slot ? "class='linkOn'" : ""]>[name]</a> "
|
dat += "<a style='white-space:nowrap;' href='?_src_=prefs;preference=changeslot;num=[i];' [i == default_slot ? "class='linkOn'" : ""]>[name]</a> "
|
||||||
dat += "</center>"
|
dat += "</center>"
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,6 @@
|
|||||||
flags_cover = HEADCOVERSEYES | HEADCOVERSMOUTH
|
flags_cover = HEADCOVERSEYES | HEADCOVERSMOUTH
|
||||||
item_state = "welding"
|
item_state = "welding"
|
||||||
materials = list(MAT_METAL=1750, MAT_GLASS=400)
|
materials = list(MAT_METAL=1750, MAT_GLASS=400)
|
||||||
// var/up = 0
|
|
||||||
flash_protect = 2
|
flash_protect = 2
|
||||||
tint = 2
|
tint = 2
|
||||||
armor = list(melee = 10, bullet = 0, laser = 0,energy = 0, bomb = 0, bio = 0, rad = 0, fire = 100, acid = 60)
|
armor = list(melee = 10, bullet = 0, laser = 0,energy = 0, bomb = 0, bio = 0, rad = 0, fire = 100, acid = 60)
|
||||||
|
|||||||
@@ -471,7 +471,6 @@
|
|||||||
else //If tile is fully grown
|
else //If tile is fully grown
|
||||||
SV.entangle_mob()
|
SV.entangle_mob()
|
||||||
|
|
||||||
//if(prob(25))
|
|
||||||
SV.spread()
|
SV.spread()
|
||||||
if(i >= length)
|
if(i >= length)
|
||||||
break
|
break
|
||||||
|
|||||||
@@ -78,7 +78,6 @@ GLOBAL_LIST_INIT(duplicate_forbidden_vars,list("tag","area","type","loc","locs",
|
|||||||
var/copiedobjs = list()
|
var/copiedobjs = list()
|
||||||
|
|
||||||
for (var/turf/T in refined_src)
|
for (var/turf/T in refined_src)
|
||||||
//var/datum/coords/C_src = refined_src[T]
|
|
||||||
var/coordstring = refined_src[T]
|
var/coordstring = refined_src[T]
|
||||||
var/turf/B = refined_trg[coordstring]
|
var/turf/B = refined_trg[coordstring]
|
||||||
if(!istype(B))
|
if(!istype(B))
|
||||||
|
|||||||
@@ -230,11 +230,9 @@ GLOBAL_LIST(cachedbooks) // List of our cached book datums
|
|||||||
dat += "<h3>Checked Out Books</h3><BR>"
|
dat += "<h3>Checked Out Books</h3><BR>"
|
||||||
for(var/datum/borrowbook/b in checkouts)
|
for(var/datum/borrowbook/b in checkouts)
|
||||||
var/timetaken = world.time - b.getdate
|
var/timetaken = world.time - b.getdate
|
||||||
//timetaken *= 10
|
|
||||||
timetaken /= 600
|
timetaken /= 600
|
||||||
timetaken = round(timetaken)
|
timetaken = round(timetaken)
|
||||||
var/timedue = b.duedate - world.time
|
var/timedue = b.duedate - world.time
|
||||||
//timedue *= 10
|
|
||||||
timedue /= 600
|
timedue /= 600
|
||||||
if(timedue <= 0)
|
if(timedue <= 0)
|
||||||
timedue = "<font color=red><b>(OVERDUE)</b> [timedue]</font>"
|
timedue = "<font color=red><b>(OVERDUE)</b> [timedue]</font>"
|
||||||
|
|||||||
@@ -138,42 +138,6 @@
|
|||||||
|
|
||||||
// This is the define used to calculate falloff.
|
// This is the define used to calculate falloff.
|
||||||
|
|
||||||
/*
|
|
||||||
/datum/light_source/proc/apply_lum()
|
|
||||||
var/static/update_gen = 1
|
|
||||||
applied = 1
|
|
||||||
|
|
||||||
// Keep track of the last applied lum values so that the lighting can be reversed
|
|
||||||
var/thing
|
|
||||||
var/datum/lighting_corner/C
|
|
||||||
var/corners = list()
|
|
||||||
LAZYINITLIST(effect_str)
|
|
||||||
FOR_DVIEW(var/turf/T, light_range+1, source_turf, INVISIBILITY_LIGHTING)
|
|
||||||
var/list/turf_corners = T.get_corners()
|
|
||||||
|
|
||||||
for (thing in turf_corners)
|
|
||||||
C = thing
|
|
||||||
if (C.update_gen == update_gen)
|
|
||||||
continue
|
|
||||||
|
|
||||||
C.update_gen = update_gen
|
|
||||||
LAZYADD(C.affecting,src)
|
|
||||||
|
|
||||||
if (!C.active)
|
|
||||||
effect_str[C] = 0
|
|
||||||
continue
|
|
||||||
|
|
||||||
APPLY_CORNER(C)
|
|
||||||
|
|
||||||
LAZYADD(T.affecting_lights, src)
|
|
||||||
LAZYADD(affecting_turfs, T)
|
|
||||||
FOR_DVIEW_END
|
|
||||||
update_gen++
|
|
||||||
applied_lum_r = lum_r
|
|
||||||
applied_lum_g = lum_g
|
|
||||||
applied_lum_b = lum_b
|
|
||||||
*/
|
|
||||||
|
|
||||||
/datum/light_source/proc/remove_lum()
|
/datum/light_source/proc/remove_lum()
|
||||||
applied = FALSE
|
applied = FALSE
|
||||||
var/thing
|
var/thing
|
||||||
|
|||||||
@@ -24,14 +24,6 @@
|
|||||||
if(BR)
|
if(BR)
|
||||||
BR.damaged_brain = 1 //beaten to a pulp
|
BR.damaged_brain = 1 //beaten to a pulp
|
||||||
|
|
||||||
/* //currently unused feature, since brain outside a mmi is always dead.
|
|
||||||
/mob/living/brain/proc/handle_brain_revival_life()
|
|
||||||
if(stat != DEAD)
|
|
||||||
if(config.revival_brain_life != -1)
|
|
||||||
if( !container && (world.time - timeofhostdeath) > config.revival_brain_life)
|
|
||||||
death()
|
|
||||||
*/
|
|
||||||
|
|
||||||
/mob/living/brain/proc/handle_emp_damage()
|
/mob/living/brain/proc/handle_emp_damage()
|
||||||
if(emp_damage)
|
if(emp_damage)
|
||||||
if(stat == DEAD)
|
if(stat == DEAD)
|
||||||
|
|||||||
@@ -32,7 +32,6 @@
|
|||||||
var/aiRestorePowerRoutine = 0
|
var/aiRestorePowerRoutine = 0
|
||||||
var/requires_power = POWER_REQ_ALL
|
var/requires_power = POWER_REQ_ALL
|
||||||
var/can_be_carded = TRUE
|
var/can_be_carded = TRUE
|
||||||
//var/list/laws = list()
|
|
||||||
var/alarms = list("Motion"=list(), "Fire"=list(), "Atmosphere"=list(), "Power"=list(), "Camera"=list(), "Burglar"=list())
|
var/alarms = list("Motion"=list(), "Fire"=list(), "Atmosphere"=list(), "Power"=list(), "Camera"=list(), "Burglar"=list())
|
||||||
var/viewalerts = 0
|
var/viewalerts = 0
|
||||||
var/icon/holo_icon//Default is assigned when AI is created.
|
var/icon/holo_icon//Default is assigned when AI is created.
|
||||||
@@ -172,7 +171,6 @@
|
|||||||
if(incapacitated())
|
if(incapacitated())
|
||||||
return
|
return
|
||||||
|
|
||||||
//if(icon_state == initial(icon_state))
|
|
||||||
var/icontype = input("Please, select a display!", "AI", null/*, null*/) in list("Clown", "Monochrome", "Blue", "Inverted", "Firewall", "Green", "Red", "Static", "Red October", "House", "Heartline", "Hades", "Helios", "President", "Syndicat Meow", "Alien", "Too Deep", "Triumvirate", "Triumvirate-M", "Text", "Matrix", "Dorf", "Bliss", "Not Malf", "Fuzzy", "Goon", "Database", "Glitchman", "Murica", "Nanotrasen", "Gentoo", "Angel")
|
var/icontype = input("Please, select a display!", "AI", null/*, null*/) in list("Clown", "Monochrome", "Blue", "Inverted", "Firewall", "Green", "Red", "Static", "Red October", "House", "Heartline", "Hades", "Helios", "President", "Syndicat Meow", "Alien", "Too Deep", "Triumvirate", "Triumvirate-M", "Text", "Matrix", "Dorf", "Bliss", "Not Malf", "Fuzzy", "Goon", "Database", "Glitchman", "Murica", "Nanotrasen", "Gentoo", "Angel")
|
||||||
if(icontype == "Clown")
|
if(icontype == "Clown")
|
||||||
icon_state = "ai-clown2"
|
icon_state = "ai-clown2"
|
||||||
@@ -238,9 +236,6 @@
|
|||||||
icon_state = "ai-gentoo"
|
icon_state = "ai-gentoo"
|
||||||
else if(icontype == "Angel")
|
else if(icontype == "Angel")
|
||||||
icon_state = "ai-angel"
|
icon_state = "ai-angel"
|
||||||
//else
|
|
||||||
//to_chat(usr, "You can only change your display once!")
|
|
||||||
//return
|
|
||||||
|
|
||||||
/mob/living/silicon/ai/Stat()
|
/mob/living/silicon/ai/Stat()
|
||||||
..()
|
..()
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
<<<<<<< HEAD
|
||||||
// CAMERA NET
|
// CAMERA NET
|
||||||
//
|
//
|
||||||
// The datum containing all the chunks.
|
// The datum containing all the chunks.
|
||||||
@@ -159,3 +160,154 @@ GLOBAL_DATUM_INIT(cameranet, /datum/cameranet, new)
|
|||||||
var/datum/camerachunk/chunk = cameranet.getCameraChunk(x, y, z)
|
var/datum/camerachunk/chunk = cameranet.getCameraChunk(x, y, z)
|
||||||
usr.client.debug_variables(chunk)
|
usr.client.debug_variables(chunk)
|
||||||
*/
|
*/
|
||||||
|
=======
|
||||||
|
// CAMERA NET
|
||||||
|
//
|
||||||
|
// The datum containing all the chunks.
|
||||||
|
|
||||||
|
#define CHUNK_SIZE 16 // Only chunk sizes that are to the power of 2. E.g: 2, 4, 8, 16, etc..
|
||||||
|
|
||||||
|
GLOBAL_DATUM_INIT(cameranet, /datum/cameranet, new)
|
||||||
|
|
||||||
|
/datum/cameranet
|
||||||
|
var/name = "Camera Net" // Name to show for VV and stat()
|
||||||
|
|
||||||
|
// The cameras on the map, no matter if they work or not. Updated in obj/machinery/camera.dm by New() and Del().
|
||||||
|
var/list/cameras = list()
|
||||||
|
// The chunks of the map, mapping the areas that the cameras can see.
|
||||||
|
var/list/chunks = list()
|
||||||
|
var/ready = 0
|
||||||
|
|
||||||
|
// The object used for the clickable stat() button.
|
||||||
|
var/obj/effect/statclick/statclick
|
||||||
|
|
||||||
|
// Checks if a chunk has been Generated in x, y, z.
|
||||||
|
/datum/cameranet/proc/chunkGenerated(x, y, z)
|
||||||
|
x &= ~(CHUNK_SIZE - 1)
|
||||||
|
y &= ~(CHUNK_SIZE - 1)
|
||||||
|
var/key = "[x],[y],[z]"
|
||||||
|
return (chunks[key])
|
||||||
|
|
||||||
|
// Returns the chunk in the x, y, z.
|
||||||
|
// If there is no chunk, it creates a new chunk and returns that.
|
||||||
|
/datum/cameranet/proc/getCameraChunk(x, y, z)
|
||||||
|
x &= ~(CHUNK_SIZE - 1)
|
||||||
|
y &= ~(CHUNK_SIZE - 1)
|
||||||
|
var/key = "[x],[y],[z]"
|
||||||
|
if(!chunks[key])
|
||||||
|
chunks[key] = new /datum/camerachunk(null, x, y, z)
|
||||||
|
|
||||||
|
return chunks[key]
|
||||||
|
|
||||||
|
// Updates what the aiEye can see. It is recommended you use this when the aiEye moves or it's location is set.
|
||||||
|
|
||||||
|
/datum/cameranet/proc/visibility(mob/camera/aiEye/ai)
|
||||||
|
// 0xf = 15
|
||||||
|
var/x1 = max(0, ai.x - 16) & ~(CHUNK_SIZE - 1)
|
||||||
|
var/y1 = max(0, ai.y - 16) & ~(CHUNK_SIZE - 1)
|
||||||
|
var/x2 = min(world.maxx, ai.x + 16) & ~(CHUNK_SIZE - 1)
|
||||||
|
var/y2 = min(world.maxy, ai.y + 16) & ~(CHUNK_SIZE - 1)
|
||||||
|
|
||||||
|
var/list/visibleChunks = list()
|
||||||
|
|
||||||
|
for(var/x = x1; x <= x2; x += CHUNK_SIZE)
|
||||||
|
for(var/y = y1; y <= y2; y += CHUNK_SIZE)
|
||||||
|
visibleChunks |= getCameraChunk(x, y, ai.z)
|
||||||
|
|
||||||
|
var/list/remove = ai.visibleCameraChunks - visibleChunks
|
||||||
|
var/list/add = visibleChunks - ai.visibleCameraChunks
|
||||||
|
|
||||||
|
for(var/chunk in remove)
|
||||||
|
var/datum/camerachunk/c = chunk
|
||||||
|
c.remove(ai)
|
||||||
|
|
||||||
|
for(var/chunk in add)
|
||||||
|
var/datum/camerachunk/c = chunk
|
||||||
|
c.add(ai)
|
||||||
|
|
||||||
|
// Updates the chunks that the turf is located in. Use this when obstacles are destroyed or when doors open.
|
||||||
|
|
||||||
|
/datum/cameranet/proc/updateVisibility(atom/A, opacity_check = 1)
|
||||||
|
|
||||||
|
if(!SSticker || (opacity_check && !A.opacity))
|
||||||
|
return
|
||||||
|
majorChunkChange(A, 2)
|
||||||
|
|
||||||
|
/datum/cameranet/proc/updateChunk(x, y, z)
|
||||||
|
// 0xf = 15
|
||||||
|
if(!chunkGenerated(x, y, z))
|
||||||
|
return
|
||||||
|
var/datum/camerachunk/chunk = getCameraChunk(x, y, z)
|
||||||
|
chunk.hasChanged()
|
||||||
|
|
||||||
|
// Removes a camera from a chunk.
|
||||||
|
|
||||||
|
/datum/cameranet/proc/removeCamera(obj/machinery/camera/c)
|
||||||
|
if(c.can_use())
|
||||||
|
majorChunkChange(c, 0)
|
||||||
|
|
||||||
|
// Add a camera to a chunk.
|
||||||
|
|
||||||
|
/datum/cameranet/proc/addCamera(obj/machinery/camera/c)
|
||||||
|
if(c.can_use())
|
||||||
|
majorChunkChange(c, 1)
|
||||||
|
|
||||||
|
// Used for Cyborg cameras. Since portable cameras can be in ANY chunk.
|
||||||
|
|
||||||
|
/datum/cameranet/proc/updatePortableCamera(obj/machinery/camera/c)
|
||||||
|
if(c.can_use())
|
||||||
|
majorChunkChange(c, 1)
|
||||||
|
|
||||||
|
// Never access this proc directly!!!!
|
||||||
|
// This will update the chunk and all the surrounding chunks.
|
||||||
|
// It will also add the atom to the cameras list if you set the choice to 1.
|
||||||
|
// Setting the choice to 0 will remove the camera from the chunks.
|
||||||
|
// If you want to update the chunks around an object, without adding/removing a camera, use choice 2.
|
||||||
|
|
||||||
|
/datum/cameranet/proc/majorChunkChange(atom/c, choice)
|
||||||
|
// 0xf = 15
|
||||||
|
if(!c)
|
||||||
|
return
|
||||||
|
|
||||||
|
var/turf/T = get_turf(c)
|
||||||
|
if(T)
|
||||||
|
var/x1 = max(0, T.x - (CHUNK_SIZE / 2)) & ~(CHUNK_SIZE - 1)
|
||||||
|
var/y1 = max(0, T.y - (CHUNK_SIZE / 2)) & ~(CHUNK_SIZE - 1)
|
||||||
|
var/x2 = min(world.maxx, T.x + (CHUNK_SIZE / 2)) & ~(CHUNK_SIZE - 1)
|
||||||
|
var/y2 = min(world.maxy, T.y + (CHUNK_SIZE / 2)) & ~(CHUNK_SIZE - 1)
|
||||||
|
for(var/x = x1; x <= x2; x += CHUNK_SIZE)
|
||||||
|
for(var/y = y1; y <= y2; y += CHUNK_SIZE)
|
||||||
|
if(chunkGenerated(x, y, T.z))
|
||||||
|
var/datum/camerachunk/chunk = getCameraChunk(x, y, T.z)
|
||||||
|
if(choice == 0)
|
||||||
|
// Remove the camera.
|
||||||
|
chunk.cameras -= c
|
||||||
|
else if(choice == 1)
|
||||||
|
// You can't have the same camera in the list twice.
|
||||||
|
chunk.cameras |= c
|
||||||
|
chunk.hasChanged()
|
||||||
|
|
||||||
|
// Will check if a mob is on a viewable turf. Returns 1 if it is, otherwise returns 0.
|
||||||
|
|
||||||
|
/datum/cameranet/proc/checkCameraVis(mob/living/target)
|
||||||
|
|
||||||
|
// 0xf = 15
|
||||||
|
var/turf/position = get_turf(target)
|
||||||
|
return checkTurfVis(position)
|
||||||
|
|
||||||
|
|
||||||
|
/datum/cameranet/proc/checkTurfVis(turf/position)
|
||||||
|
var/datum/camerachunk/chunk = getCameraChunk(position.x, position.y, position.z)
|
||||||
|
if(chunk)
|
||||||
|
if(chunk.changed)
|
||||||
|
chunk.hasChanged(1) // Update now, no matter if it's visible or not.
|
||||||
|
if(chunk.visibleTurfs[position])
|
||||||
|
return 1
|
||||||
|
return 0
|
||||||
|
|
||||||
|
/datum/cameranet/proc/stat_entry()
|
||||||
|
if(!statclick)
|
||||||
|
statclick = new/obj/effect/statclick/debug(null, "Initializing...", src)
|
||||||
|
|
||||||
|
stat(name, statclick.update("Cameras: [GLOB.cameranet.cameras.len] | Chunks: [GLOB.cameranet.chunks.len]"))
|
||||||
|
>>>>>>> b7a9a2a... Merge pull request #32844 from ShizCalev/code-cleanup
|
||||||
|
|||||||
@@ -138,14 +138,6 @@
|
|||||||
|
|
||||||
for(var/word in words)
|
for(var/word in words)
|
||||||
play_vox_word(word, src.z, null)
|
play_vox_word(word, src.z, null)
|
||||||
/*
|
|
||||||
for(var/mob/M in player_list)
|
|
||||||
if(M.client)
|
|
||||||
var/turf/T = get_turf(M)
|
|
||||||
var/turf/our_turf = get_turf(src)
|
|
||||||
if(T.z == our_turf.z)
|
|
||||||
to_chat(M, "<b><font size = 3><font color = red>AI announcement:</font color> [message]</font size></b>")
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
/proc/play_vox_word(word, z_level, mob/only_listener)
|
/proc/play_vox_word(word, z_level, mob/only_listener)
|
||||||
|
|||||||
@@ -588,7 +588,6 @@
|
|||||||
if(!istype(machine, /obj/machinery/door))
|
if(!istype(machine, /obj/machinery/door))
|
||||||
dat += "Connected device's firmware does not appear to be compatible with Airlock Jack protocols.<br>"
|
dat += "Connected device's firmware does not appear to be compatible with Airlock Jack protocols.<br>"
|
||||||
return dat
|
return dat
|
||||||
// var/obj/machinery/airlock/door = machine
|
|
||||||
|
|
||||||
if(!hackdoor)
|
if(!hackdoor)
|
||||||
dat += "<a href='byond://?src=[REF(src)];software=doorjack;jack=1;sub=0'>Begin Airlock Jacking</a> <br>"
|
dat += "<a href='byond://?src=[REF(src)];software=doorjack;jack=1;sub=0'>Begin Airlock Jacking</a> <br>"
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
<<<<<<< HEAD
|
||||||
//These procs handle putting stuff in your hand. It's probably best to use these rather than setting stuff manually
|
//These procs handle putting stuff in your hand. It's probably best to use these rather than setting stuff manually
|
||||||
//as they handle all relevant stuff like adding it to the player's screen and such
|
//as they handle all relevant stuff like adding it to the player's screen and such
|
||||||
|
|
||||||
@@ -213,3 +214,219 @@
|
|||||||
|
|
||||||
/mob/living/silicon/robot/swap_hand()
|
/mob/living/silicon/robot/swap_hand()
|
||||||
cycle_modules()
|
cycle_modules()
|
||||||
|
=======
|
||||||
|
//These procs handle putting stuff in your hand. It's probably best to use these rather than setting stuff manually
|
||||||
|
//as they handle all relevant stuff like adding it to the player's screen and such
|
||||||
|
|
||||||
|
//Returns the thing in our active hand (whatever is in our active module-slot, in this case)
|
||||||
|
/mob/living/silicon/robot/get_active_held_item()
|
||||||
|
return module_active
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/mob/living/silicon/robot/proc/uneq_module(obj/item/O)
|
||||||
|
if(!O)
|
||||||
|
return 0
|
||||||
|
O.mouse_opacity = MOUSE_OPACITY_OPAQUE
|
||||||
|
if(istype(O, /obj/item/borg/sight))
|
||||||
|
var/obj/item/borg/sight/S = O
|
||||||
|
sight_mode &= ~S.sight_mode
|
||||||
|
update_sight()
|
||||||
|
else if(istype(O, /obj/item/storage/bag/tray/))
|
||||||
|
var/obj/item/storage/bag/tray/T = O
|
||||||
|
T.do_quick_empty()
|
||||||
|
if(client)
|
||||||
|
client.screen -= O
|
||||||
|
observer_screen_update(O,FALSE)
|
||||||
|
O.forceMove(module) //Return item to module so it appears in its contents, so it can be taken out again.
|
||||||
|
|
||||||
|
if(O.flags_1 & DROPDEL_1)
|
||||||
|
O.flags_1 &= ~DROPDEL_1 //we shouldn't HAVE things with DROPDEL_1 in our modules, but better safe than runtiming horribly
|
||||||
|
|
||||||
|
O.dropped(src)
|
||||||
|
|
||||||
|
if(module_active == O)
|
||||||
|
module_active = null
|
||||||
|
if(held_items[1] == O)
|
||||||
|
inv1.icon_state = "inv1"
|
||||||
|
held_items[1] = null
|
||||||
|
else if(held_items[2] == O)
|
||||||
|
inv2.icon_state = "inv2"
|
||||||
|
held_items[2] = null
|
||||||
|
else if(held_items[3] == O)
|
||||||
|
inv3.icon_state = "inv3"
|
||||||
|
held_items[3] = null
|
||||||
|
hud_used.update_robot_modules_display()
|
||||||
|
return 1
|
||||||
|
|
||||||
|
/mob/living/silicon/robot/proc/activate_module(obj/item/O)
|
||||||
|
. = FALSE
|
||||||
|
if(!(O in module.modules))
|
||||||
|
return
|
||||||
|
if(activated(O))
|
||||||
|
to_chat(src, "<span class='warning'>That module is already activated.</span>")
|
||||||
|
return
|
||||||
|
if(!held_items[1])
|
||||||
|
held_items[1] = O
|
||||||
|
O.screen_loc = inv1.screen_loc
|
||||||
|
. = TRUE
|
||||||
|
else if(!held_items[2])
|
||||||
|
held_items[2] = O
|
||||||
|
O.screen_loc = inv2.screen_loc
|
||||||
|
. = TRUE
|
||||||
|
else if(!held_items[3])
|
||||||
|
held_items[3] = O
|
||||||
|
O.screen_loc = inv3.screen_loc
|
||||||
|
. = TRUE
|
||||||
|
else
|
||||||
|
to_chat(src, "<span class='warning'>You need to disable a module first!</span>")
|
||||||
|
if(.)
|
||||||
|
O.equipped(src, slot_hands)
|
||||||
|
O.mouse_opacity = initial(O.mouse_opacity)
|
||||||
|
O.layer = ABOVE_HUD_LAYER
|
||||||
|
O.plane = ABOVE_HUD_PLANE
|
||||||
|
observer_screen_update(O,TRUE)
|
||||||
|
O.forceMove(src)
|
||||||
|
if(istype(O, /obj/item/borg/sight))
|
||||||
|
var/obj/item/borg/sight/S = O
|
||||||
|
sight_mode |= S.sight_mode
|
||||||
|
update_sight()
|
||||||
|
|
||||||
|
|
||||||
|
/mob/living/silicon/robot/proc/observer_screen_update(obj/item/I,add = TRUE)
|
||||||
|
if(observers && observers.len)
|
||||||
|
for(var/M in observers)
|
||||||
|
var/mob/dead/observe = M
|
||||||
|
if(observe.client && observe.client.eye == src)
|
||||||
|
if(add)
|
||||||
|
observe.client.screen += I
|
||||||
|
else
|
||||||
|
observe.client.screen -= I
|
||||||
|
else
|
||||||
|
observers -= observe
|
||||||
|
if(!observers.len)
|
||||||
|
observers = null
|
||||||
|
break
|
||||||
|
|
||||||
|
/mob/living/silicon/robot/proc/uneq_active()
|
||||||
|
uneq_module(module_active)
|
||||||
|
|
||||||
|
/mob/living/silicon/robot/proc/uneq_all()
|
||||||
|
for(var/obj/item/I in held_items)
|
||||||
|
uneq_module(I)
|
||||||
|
|
||||||
|
/mob/living/silicon/robot/proc/activated(obj/item/O)
|
||||||
|
if(O in held_items)
|
||||||
|
return TRUE
|
||||||
|
return FALSE
|
||||||
|
|
||||||
|
//Helper procs for cyborg modules on the UI.
|
||||||
|
//These are hackish but they help clean up code elsewhere.
|
||||||
|
|
||||||
|
//module_selected(module) - Checks whether the module slot specified by "module" is currently selected.
|
||||||
|
/mob/living/silicon/robot/proc/module_selected(module) //Module is 1-3
|
||||||
|
return module == get_selected_module()
|
||||||
|
|
||||||
|
//module_active(module) - Checks whether there is a module active in the slot specified by "module".
|
||||||
|
/mob/living/silicon/robot/proc/module_active(module) //Module is 1-3
|
||||||
|
if(module < 1 || module > 3)
|
||||||
|
return FALSE
|
||||||
|
|
||||||
|
if(LAZYLEN(held_items) >= module)
|
||||||
|
if(held_items[module])
|
||||||
|
return TRUE
|
||||||
|
return FALSE
|
||||||
|
|
||||||
|
//get_selected_module() - Returns the slot number of the currently selected module. Returns 0 if no modules are selected.
|
||||||
|
/mob/living/silicon/robot/proc/get_selected_module()
|
||||||
|
if(module_active)
|
||||||
|
return held_items.Find(module_active)
|
||||||
|
|
||||||
|
return 0
|
||||||
|
|
||||||
|
//select_module(module) - Selects the module slot specified by "module"
|
||||||
|
/mob/living/silicon/robot/proc/select_module(module) //Module is 1-3
|
||||||
|
if(module < 1 || module > 3)
|
||||||
|
return
|
||||||
|
|
||||||
|
if(!module_active(module))
|
||||||
|
return
|
||||||
|
|
||||||
|
switch(module)
|
||||||
|
if(1)
|
||||||
|
if(module_active != held_items[module])
|
||||||
|
inv1.icon_state = "inv1 +a"
|
||||||
|
inv2.icon_state = "inv2"
|
||||||
|
inv3.icon_state = "inv3"
|
||||||
|
if(2)
|
||||||
|
if(module_active != held_items[module])
|
||||||
|
inv1.icon_state = "inv1"
|
||||||
|
inv2.icon_state = "inv2 +a"
|
||||||
|
inv3.icon_state = "inv3"
|
||||||
|
if(3)
|
||||||
|
if(module_active != held_items[module])
|
||||||
|
inv1.icon_state = "inv1"
|
||||||
|
inv2.icon_state = "inv2"
|
||||||
|
inv3.icon_state = "inv3 +a"
|
||||||
|
module_active = held_items[module]
|
||||||
|
|
||||||
|
//deselect_module(module) - Deselects the module slot specified by "module"
|
||||||
|
/mob/living/silicon/robot/proc/deselect_module(module) //Module is 1-3
|
||||||
|
if(module < 1 || module > 3)
|
||||||
|
return
|
||||||
|
|
||||||
|
if(!module_active(module))
|
||||||
|
return
|
||||||
|
|
||||||
|
switch(module)
|
||||||
|
if(1)
|
||||||
|
if(module_active == held_items[module])
|
||||||
|
inv1.icon_state = "inv1"
|
||||||
|
if(2)
|
||||||
|
if(module_active == held_items[module])
|
||||||
|
inv2.icon_state = "inv2"
|
||||||
|
if(3)
|
||||||
|
if(module_active == held_items[module])
|
||||||
|
inv3.icon_state = "inv3"
|
||||||
|
module_active = null
|
||||||
|
|
||||||
|
//toggle_module(module) - Toggles the selection of the module slot specified by "module".
|
||||||
|
/mob/living/silicon/robot/proc/toggle_module(module) //Module is 1-3
|
||||||
|
if(module < 1 || module > 3)
|
||||||
|
return
|
||||||
|
|
||||||
|
if(module_selected(module))
|
||||||
|
deselect_module(module)
|
||||||
|
else
|
||||||
|
if(module_active(module))
|
||||||
|
select_module(module)
|
||||||
|
else
|
||||||
|
deselect_module(get_selected_module()) //If we can't do select anything, at least deselect the current module.
|
||||||
|
return
|
||||||
|
|
||||||
|
//cycle_modules() - Cycles through the list of selected modules.
|
||||||
|
/mob/living/silicon/robot/proc/cycle_modules()
|
||||||
|
var/slot_start = get_selected_module()
|
||||||
|
if(slot_start)
|
||||||
|
deselect_module(slot_start) //Only deselect if we have a selected slot.
|
||||||
|
|
||||||
|
var/slot_num
|
||||||
|
if(slot_start == 0)
|
||||||
|
slot_num = 1
|
||||||
|
slot_start = 4
|
||||||
|
else
|
||||||
|
slot_num = slot_start + 1
|
||||||
|
|
||||||
|
while(slot_num != slot_start) //If we wrap around without finding any free slots, just give up.
|
||||||
|
if(module_active(slot_num))
|
||||||
|
select_module(slot_num)
|
||||||
|
return
|
||||||
|
slot_num++
|
||||||
|
if(slot_num > 4) // not >3 otherwise cycling with just one item on module 3 wouldn't work
|
||||||
|
slot_num = 1 //Wrap around.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/mob/living/silicon/robot/swap_hand()
|
||||||
|
cycle_modules()
|
||||||
|
>>>>>>> b7a9a2a... Merge pull request #32844 from ShizCalev/code-cleanup
|
||||||
|
|||||||
@@ -70,8 +70,6 @@
|
|||||||
var/parrot_dam_zone = list("chest", "head", "l_arm", "l_leg", "r_arm", "r_leg") //For humans, select a bodypart to attack
|
var/parrot_dam_zone = list("chest", "head", "l_arm", "l_leg", "r_arm", "r_leg") //For humans, select a bodypart to attack
|
||||||
|
|
||||||
var/parrot_speed = 5 //"Delay in world ticks between movement." according to byond. Yeah, that's BS but it does directly affect movement. Higher number = slower.
|
var/parrot_speed = 5 //"Delay in world ticks between movement." according to byond. Yeah, that's BS but it does directly affect movement. Higher number = slower.
|
||||||
//var/parrot_been_shot = 0 this wasn't working right, and parrots don't survive bullets.((Parrots get a speed bonus after being shot. This will deincrement every Life() and at 0 the parrot will return to regular speed.))
|
|
||||||
|
|
||||||
var/parrot_lastmove = null //Updates/Stores position of the parrot while it's moving
|
var/parrot_lastmove = null //Updates/Stores position of the parrot while it's moving
|
||||||
var/parrot_stuck = 0 //If parrot_lastmove hasnt changed, this will increment until it reaches parrot_stuck_threshold
|
var/parrot_stuck = 0 //If parrot_lastmove hasnt changed, this will increment until it reaches parrot_stuck_threshold
|
||||||
var/parrot_stuck_threshold = 10 //if this == parrot_stuck, it'll force the parrot back to wandering
|
var/parrot_stuck_threshold = 10 //if this == parrot_stuck, it'll force the parrot back to wandering
|
||||||
@@ -547,8 +545,6 @@
|
|||||||
parrot_state = PARROT_WANDER
|
parrot_state = PARROT_WANDER
|
||||||
|
|
||||||
walk_away(src, parrot_interest, 1, parrot_speed)
|
walk_away(src, parrot_interest, 1, parrot_speed)
|
||||||
/*if(parrot_been_shot > 0)
|
|
||||||
parrot_been_shot-- didn't work anyways, and besides, any bullet poly survives isn't worth the speed boost.*/
|
|
||||||
if(isStuck())
|
if(isStuck())
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
@@ -112,7 +112,6 @@
|
|||||||
if(!environment)
|
if(!environment)
|
||||||
return
|
return
|
||||||
|
|
||||||
//var/environment_heat_capacity = environment.heat_capacity()
|
|
||||||
var/loc_temp = get_temperature(environment)
|
var/loc_temp = get_temperature(environment)
|
||||||
|
|
||||||
bodytemperature += adjust_body_temperature(bodytemperature, loc_temp, 1)
|
bodytemperature += adjust_body_temperature(bodytemperature, loc_temp, 1)
|
||||||
|
|||||||
@@ -420,18 +420,6 @@
|
|||||||
I.attack_self(src)
|
I.attack_self(src)
|
||||||
update_inv_hands()
|
update_inv_hands()
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
/mob/verb/dump_source()
|
|
||||||
|
|
||||||
var/master = "<PRE>"
|
|
||||||
for(var/t in typesof(/area))
|
|
||||||
master += text("[]\n", t)
|
|
||||||
//Foreach goto(26)
|
|
||||||
src << browse(master)
|
|
||||||
return
|
|
||||||
*/
|
|
||||||
|
|
||||||
/mob/verb/memory()
|
/mob/verb/memory()
|
||||||
set name = "Notes"
|
set name = "Notes"
|
||||||
set category = "IC"
|
set category = "IC"
|
||||||
|
|||||||
@@ -110,9 +110,6 @@
|
|||||||
|
|
||||||
var/list/mob_spell_list = list() //construct spells and mime spells. Spells that do not transfer from one mob to another and can not be lost in mindswap.
|
var/list/mob_spell_list = list() //construct spells and mime spells. Spells that do not transfer from one mob to another and can not be lost in mindswap.
|
||||||
|
|
||||||
//Changlings, but can be used in other modes
|
|
||||||
// var/obj/effect/proc_holder/changpower/list/power_list = list()
|
|
||||||
|
|
||||||
//List of active diseases
|
//List of active diseases
|
||||||
|
|
||||||
var/list/viruses = list() // list of all diseases in a mob
|
var/list/viruses = list() // list of all diseases in a mob
|
||||||
|
|||||||
@@ -41,7 +41,6 @@
|
|||||||
var/turf/T = get_turf(ui_host())
|
var/turf/T = get_turf(ui_host())
|
||||||
if(!T)
|
if(!T)
|
||||||
return
|
return
|
||||||
//var/valid_z_levels = (GetConnectedZlevels(T.z) & using_map.station_levels)
|
|
||||||
for(var/obj/machinery/power/supermatter_shard/S in GLOB.machines)
|
for(var/obj/machinery/power/supermatter_shard/S in GLOB.machines)
|
||||||
// Delaminating, not within coverage, not on a tile.
|
// Delaminating, not within coverage, not on a tile.
|
||||||
if(!((S.z in GLOB.station_z_levels) || S.z == ZLEVEL_MINING || S.z == T.z || !isturf(S.loc)))
|
if(!((S.z in GLOB.station_z_levels) || S.z == ZLEVEL_MINING || S.z == T.z || !isturf(S.loc)))
|
||||||
|
|||||||
@@ -1,10 +0,0 @@
|
|||||||
|
|
||||||
/*
|
|
||||||
|
|
||||||
Removing Snowflake:
|
|
||||||
- Search for NINJACODE (one word, all caps) to find Space Ninja Code outside of the /modules/ninja folder.
|
|
||||||
|
|
||||||
Ninja Folder:
|
|
||||||
- This folder contains 90% of Ninja code and will eventually contain it all, once snowflake is cleaned out
|
|
||||||
|
|
||||||
*/
|
|
||||||
@@ -101,7 +101,6 @@
|
|||||||
if(href_list["retrieve"])
|
if(href_list["retrieve"])
|
||||||
usr << browse("", "window=filingcabinet") // Close the menu
|
usr << browse("", "window=filingcabinet") // Close the menu
|
||||||
|
|
||||||
//var/retrieveindex = text2num(href_list["retrieve"])
|
|
||||||
var/obj/item/P = locate(href_list["retrieve"])//contents[retrieveindex]
|
var/obj/item/P = locate(href_list["retrieve"])//contents[retrieveindex]
|
||||||
if(istype(P) && P.loc == src && in_range(src, usr))
|
if(istype(P) && P.loc == src && in_range(src, usr))
|
||||||
usr.put_in_hands(P)
|
usr.put_in_hands(P)
|
||||||
|
|||||||
@@ -180,7 +180,6 @@
|
|||||||
for(var/direction in GLOB.alldirs)
|
for(var/direction in GLOB.alldirs)
|
||||||
var/found_am_device=0
|
var/found_am_device=0
|
||||||
for(var/obj/machinery/machine in get_step(loc, direction))
|
for(var/obj/machinery/machine in get_step(loc, direction))
|
||||||
//var/machine = locate(/obj/machinery, get_step(loc, direction))
|
|
||||||
if(!machine)
|
if(!machine)
|
||||||
continue//Need all for a core
|
continue//Need all for a core
|
||||||
if(istype(machine, /obj/machinery/am_shielding) || istype(machine, /obj/machinery/power/am_control_unit))
|
if(istype(machine, /obj/machinery/am_shielding) || istype(machine, /obj/machinery/power/am_control_unit))
|
||||||
|
|||||||
@@ -1052,15 +1052,6 @@
|
|||||||
force_update = 1
|
force_update = 1
|
||||||
return
|
return
|
||||||
|
|
||||||
/*
|
|
||||||
if (equipment > 1) // off=0, off auto=1, on=2, on auto=3
|
|
||||||
use_power(src.equip_consumption, EQUIP)
|
|
||||||
if (lighting > 1) // off=0, off auto=1, on=2, on auto=3
|
|
||||||
use_power(src.light_consumption, LIGHT)
|
|
||||||
if (environ > 1) // off=0, off auto=1, on=2, on auto=3
|
|
||||||
use_power(src.environ_consumption, ENVIRON)
|
|
||||||
|
|
||||||
area.calc_lighting() */
|
|
||||||
lastused_light = area.usage(STATIC_LIGHT)
|
lastused_light = area.usage(STATIC_LIGHT)
|
||||||
lastused_light += area.usage(LIGHT)
|
lastused_light += area.usage(LIGHT)
|
||||||
lastused_equip = area.usage(EQUIP)
|
lastused_equip = area.usage(EQUIP)
|
||||||
|
|||||||
@@ -111,12 +111,6 @@
|
|||||||
|
|
||||||
/obj/item/stock_parts/cell/proc/explode()
|
/obj/item/stock_parts/cell/proc/explode()
|
||||||
var/turf/T = get_turf(src.loc)
|
var/turf/T = get_turf(src.loc)
|
||||||
/*
|
|
||||||
* 1000-cell explosion(T, -1, 0, 1, 1)
|
|
||||||
* 2500-cell explosion(T, -1, 0, 1, 1)
|
|
||||||
* 10000-cell explosion(T, -1, 1, 3, 3)
|
|
||||||
* 15000-cell explosion(T, -1, 2, 4, 4)
|
|
||||||
* */
|
|
||||||
if (charge==0)
|
if (charge==0)
|
||||||
return
|
return
|
||||||
var/devastation_range = -1 //round(charge/11000)
|
var/devastation_range = -1 //round(charge/11000)
|
||||||
|
|||||||
@@ -1,12 +1,3 @@
|
|||||||
// dummy generator object for testing
|
|
||||||
|
|
||||||
/*/obj/machinery/power/generator/verb/set_amount(var/g as num)
|
|
||||||
set src in view(1)
|
|
||||||
|
|
||||||
gen_amount = g
|
|
||||||
|
|
||||||
*/
|
|
||||||
|
|
||||||
/obj/machinery/power/generator
|
/obj/machinery/power/generator
|
||||||
name = "thermoelectric generator"
|
name = "thermoelectric generator"
|
||||||
desc = "It's a high efficiency thermoelectric generator."
|
desc = "It's a high efficiency thermoelectric generator."
|
||||||
|
|||||||
@@ -188,7 +188,6 @@
|
|||||||
// if unmarked==1, only return those with no powernet
|
// if unmarked==1, only return those with no powernet
|
||||||
/proc/power_list(turf/T, source, d, unmarked=0, cable_only = 0)
|
/proc/power_list(turf/T, source, d, unmarked=0, cable_only = 0)
|
||||||
. = list()
|
. = list()
|
||||||
//var/fdir = (!d)? 0 : turn(d, 180) // the opposite direction to d (or 0 if d==0)
|
|
||||||
|
|
||||||
for(var/AM in T)
|
for(var/AM in T)
|
||||||
if(AM == source)
|
if(AM == source)
|
||||||
|
|||||||
@@ -152,11 +152,6 @@
|
|||||||
|
|
||||||
|
|
||||||
/obj/machinery/power/emitter/emp_act(severity)//Emitters are hardened but still might have issues
|
/obj/machinery/power/emitter/emp_act(severity)//Emitters are hardened but still might have issues
|
||||||
// add_load(1000)
|
|
||||||
/* if((severity == 1)&&prob(1)&&prob(1))
|
|
||||||
if(src.active)
|
|
||||||
src.active = 0
|
|
||||||
src.use_power = IDLE_POWER_USE */
|
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -139,7 +139,6 @@
|
|||||||
// It's a simplified version taking only 1/10 of the moles from the turf nearby. It should be later changed into a better version
|
// It's a simplified version taking only 1/10 of the moles from the turf nearby. It should be later changed into a better version
|
||||||
|
|
||||||
var/transfer_moles = environment.total_moles()/10
|
var/transfer_moles = environment.total_moles()/10
|
||||||
//var/transfer_moles = rpm/10000*capacity
|
|
||||||
var/datum/gas_mixture/removed = inturf.remove_air(transfer_moles)
|
var/datum/gas_mixture/removed = inturf.remove_air(transfer_moles)
|
||||||
gas_contained.merge(removed)
|
gas_contained.merge(removed)
|
||||||
|
|
||||||
|
|||||||
@@ -336,7 +336,6 @@
|
|||||||
step_towards(src, locate(new_x, new_y, z))
|
step_towards(src, locate(new_x, new_y, z))
|
||||||
pixel_x = old_pixel_x
|
pixel_x = old_pixel_x
|
||||||
pixel_y = old_pixel_y
|
pixel_y = old_pixel_y
|
||||||
//var/animation_time = ((SSprojectiles.flags & SS_TICKER? (SSprojectiles.wait * world.tick_lag) : SSprojectiles.wait) / moves)
|
|
||||||
animate(src, pixel_x = pixel_x_offset, pixel_y = pixel_y_offset, time = 1, flags = ANIMATION_END_NOW)
|
animate(src, pixel_x = pixel_x_offset, pixel_y = pixel_y_offset, time = 1, flags = ANIMATION_END_NOW)
|
||||||
old_pixel_x = pixel_x_offset
|
old_pixel_x = pixel_x_offset
|
||||||
old_pixel_y = pixel_y_offset
|
old_pixel_y = pixel_y_offset
|
||||||
|
|||||||
@@ -179,12 +179,6 @@
|
|||||||
if(C)
|
if(C)
|
||||||
C.set_operable(stepdir, id, op)
|
C.set_operable(stepdir, id, op)
|
||||||
|
|
||||||
/*
|
|
||||||
/obj/machinery/conveyor/verb/destroy()
|
|
||||||
set src in view()
|
|
||||||
src.broken()
|
|
||||||
*/
|
|
||||||
|
|
||||||
/obj/machinery/conveyor/power_change()
|
/obj/machinery/conveyor/power_change()
|
||||||
..()
|
..()
|
||||||
update()
|
update()
|
||||||
|
|||||||
@@ -191,16 +191,6 @@
|
|||||||
construction_time = 130
|
construction_time = 130
|
||||||
category = list("Odysseus")
|
category = list("Odysseus")
|
||||||
|
|
||||||
/*/datum/design/odysseus_armor
|
|
||||||
name = "Exosuit Armor (\"Odysseus\")"
|
|
||||||
id = "odysseus_armor"
|
|
||||||
build_type = MECHFAB
|
|
||||||
build_path = /obj/item/mecha_parts/part/odysseus_armor
|
|
||||||
materials = list(MAT_METAL=15000)
|
|
||||||
construction_time = 200
|
|
||||||
category = list("Odysseus")
|
|
||||||
*/
|
|
||||||
|
|
||||||
//Gygax
|
//Gygax
|
||||||
/datum/design/gygax_chassis
|
/datum/design/gygax_chassis
|
||||||
name = "Exosuit Chassis (\"Gygax\")"
|
name = "Exosuit Chassis (\"Gygax\")"
|
||||||
|
|||||||
@@ -43,6 +43,7 @@
|
|||||||
temp_list[O] = text2num(temp_list[O])
|
temp_list[O] = text2num(temp_list[O])
|
||||||
return temp_list
|
return temp_list
|
||||||
|
|
||||||
|
<<<<<<< HEAD
|
||||||
/* //uncomment to enable forced reactions.
|
/* //uncomment to enable forced reactions.
|
||||||
/obj/machinery/r_n_d/experimentor/verb/forceReaction()
|
/obj/machinery/r_n_d/experimentor/verb/forceReaction()
|
||||||
set name = "Force Experimentor Reaction"
|
set name = "Force Experimentor Reaction"
|
||||||
@@ -56,6 +57,8 @@
|
|||||||
if(loaded_item)
|
if(loaded_item)
|
||||||
item_reactions["[loaded_item.type]"] = oldReaction
|
item_reactions["[loaded_item.type]"] = oldReaction
|
||||||
*/
|
*/
|
||||||
|
=======
|
||||||
|
>>>>>>> b7a9a2a... Merge pull request #32844 from ShizCalev/code-cleanup
|
||||||
|
|
||||||
/obj/machinery/r_n_d/experimentor/proc/SetTypeReactions()
|
/obj/machinery/r_n_d/experimentor/proc/SetTypeReactions()
|
||||||
var/probWeight = 0
|
var/probWeight = 0
|
||||||
|
|||||||
@@ -98,8 +98,6 @@ GLOBAL_LIST_INIT(message_servers, list())
|
|||||||
return newKey
|
return newKey
|
||||||
|
|
||||||
/obj/machinery/message_server/process()
|
/obj/machinery/message_server/process()
|
||||||
//if(decryptkey == "password")
|
|
||||||
// decryptkey = generateKey()
|
|
||||||
if(active && (stat & (BROKEN|NOPOWER)))
|
if(active && (stat & (BROKEN|NOPOWER)))
|
||||||
active = 0
|
active = 0
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -57,11 +57,14 @@ GLOBAL_VAR_INIT(security_level, 0)
|
|||||||
minor_announce(CONFIG_GET(string/alert_red_downto), "Attention! Code red!")
|
minor_announce(CONFIG_GET(string/alert_red_downto), "Attention! Code red!")
|
||||||
GLOB.security_level = SEC_LEVEL_RED
|
GLOB.security_level = SEC_LEVEL_RED
|
||||||
|
|
||||||
|
<<<<<<< HEAD
|
||||||
/* - At the time of commit, setting status displays didn't work properly
|
/* - At the time of commit, setting status displays didn't work properly
|
||||||
var/obj/machinery/computer/communications/CC = locate(/obj/machinery/computer/communications,world)
|
var/obj/machinery/computer/communications/CC = locate(/obj/machinery/computer/communications,world)
|
||||||
if(CC)
|
if(CC)
|
||||||
CC.post_status("alert", "redalert")*/
|
CC.post_status("alert", "redalert")*/
|
||||||
sound_to_playing_players('sound/misc/voyalert.ogg')
|
sound_to_playing_players('sound/misc/voyalert.ogg')
|
||||||
|
=======
|
||||||
|
>>>>>>> b7a9a2a... Merge pull request #32844 from ShizCalev/code-cleanup
|
||||||
for(var/obj/machinery/firealarm/FA in GLOB.machines)
|
for(var/obj/machinery/firealarm/FA in GLOB.machines)
|
||||||
if(FA.z in GLOB.station_z_levels)
|
if(FA.z in GLOB.station_z_levels)
|
||||||
FA.update_icon()
|
FA.update_icon()
|
||||||
@@ -116,15 +119,3 @@ GLOBAL_VAR_INIT(security_level, 0)
|
|||||||
return SEC_LEVEL_RED
|
return SEC_LEVEL_RED
|
||||||
if("delta")
|
if("delta")
|
||||||
return SEC_LEVEL_DELTA
|
return SEC_LEVEL_DELTA
|
||||||
|
|
||||||
|
|
||||||
/*DEBUG
|
|
||||||
/mob/verb/set_thing0()
|
|
||||||
set_security_level(0)
|
|
||||||
/mob/verb/set_thing1()
|
|
||||||
set_security_level(1)
|
|
||||||
/mob/verb/set_thing2()
|
|
||||||
set_security_level(2)
|
|
||||||
/mob/verb/set_thing3()
|
|
||||||
set_security_level(3)
|
|
||||||
*/
|
|
||||||
|
|||||||
@@ -1663,7 +1663,6 @@
|
|||||||
#include "code\modules\mob\login.dm"
|
#include "code\modules\mob\login.dm"
|
||||||
#include "code\modules\mob\logout.dm"
|
#include "code\modules\mob\logout.dm"
|
||||||
#include "code\modules\mob\mob.dm"
|
#include "code\modules\mob\mob.dm"
|
||||||
#include "code\modules\mob\mob_cleanup.dm"
|
|
||||||
#include "code\modules\mob\mob_defines.dm"
|
#include "code\modules\mob\mob_defines.dm"
|
||||||
#include "code\modules\mob\mob_helpers.dm"
|
#include "code\modules\mob\mob_helpers.dm"
|
||||||
#include "code\modules\mob\mob_movement.dm"
|
#include "code\modules\mob\mob_movement.dm"
|
||||||
@@ -2011,7 +2010,6 @@
|
|||||||
#include "code\modules\ninja\__ninjaDefines.dm"
|
#include "code\modules\ninja\__ninjaDefines.dm"
|
||||||
#include "code\modules\ninja\energy_katana.dm"
|
#include "code\modules\ninja\energy_katana.dm"
|
||||||
#include "code\modules\ninja\ninja_event.dm"
|
#include "code\modules\ninja\ninja_event.dm"
|
||||||
#include "code\modules\ninja\Ninja_Readme.dm"
|
|
||||||
#include "code\modules\ninja\outfit.dm"
|
#include "code\modules\ninja\outfit.dm"
|
||||||
#include "code\modules\ninja\suit\gloves.dm"
|
#include "code\modules\ninja\suit\gloves.dm"
|
||||||
#include "code\modules\ninja\suit\head.dm"
|
#include "code\modules\ninja\suit\head.dm"
|
||||||
@@ -2060,7 +2058,6 @@
|
|||||||
#include "code\modules\power\rtg.dm"
|
#include "code\modules\power\rtg.dm"
|
||||||
#include "code\modules\power\smes.dm"
|
#include "code\modules\power\smes.dm"
|
||||||
#include "code\modules\power\solar.dm"
|
#include "code\modules\power\solar.dm"
|
||||||
#include "code\modules\power\switch.dm"
|
|
||||||
#include "code\modules\power\terminal.dm"
|
#include "code\modules\power\terminal.dm"
|
||||||
#include "code\modules\power\tracker.dm"
|
#include "code\modules\power\tracker.dm"
|
||||||
#include "code\modules\power\turbine.dm"
|
#include "code\modules\power\turbine.dm"
|
||||||
|
|||||||
Reference in New Issue
Block a user