"
/proc/TgsPm(target,msg,sender)
@@ -451,6 +451,6 @@
i = 0
var/stealth = "@[num2text(num)]"
GLOB.stealthminID["IRCKEY"] = stealth
- return stealth
+ return stealth
#undef EXTERNALREPLYCOUNT
diff --git a/code/modules/admin/verbs/borgpanel.dm b/code/modules/admin/verbs/borgpanel.dm
index eab5b2484e1..5bb712bbc1f 100644
--- a/code/modules/admin/verbs/borgpanel.dm
+++ b/code/modules/admin/verbs/borgpanel.dm
@@ -175,7 +175,7 @@
borg.radio.keyslot.independent = FALSE
message_admins("[key_name_admin(user)] removed the [channel] radio channel from [ADMIN_LOOKUPFLW(borg)].")
log_admin("[key_name(user)] removed the [channel] radio channel from [key_name(borg)].")
- else // We're adding a channel
+ else // We're adding a channel
if (!borg.radio.keyslot) // Assert that an encryption key exists
borg.radio.keyslot = new (borg.radio)
borg.radio.keyslot.channels[channel] = 1
diff --git a/code/modules/admin/verbs/cinematic.dm b/code/modules/admin/verbs/cinematic.dm
index 96a417e7b97..2293f63896a 100644
--- a/code/modules/admin/verbs/cinematic.dm
+++ b/code/modules/admin/verbs/cinematic.dm
@@ -1,7 +1,7 @@
/client/proc/cinematic()
set name = "Cinematic"
set category = "Admin.Fun"
- set desc = "Shows a cinematic." // Intended for testing but I thought it might be nice for events on the rare occasion Feel free to comment it out if it's not wanted.
+ set desc = "Shows a cinematic." // Intended for testing but I thought it might be nice for events on the rare occasion Feel free to comment it out if it's not wanted.
set hidden = TRUE
if(!SSticker)
return
diff --git a/code/modules/admin/verbs/debug.dm b/code/modules/admin/verbs/debug.dm
index 3e94c79ebbb..74f9331ce9d 100644
--- a/code/modules/admin/verbs/debug.dm
+++ b/code/modules/admin/verbs/debug.dm
@@ -748,7 +748,7 @@ But you can call procs that are of type /mob/living/carbon/human/proc/ for that
message_admins("[key_name_admin(src)] cleared dynamic transit space.")
SSblackbox.record_feedback("tally", "admin_verb", 1, "Clear Dynamic Transit") // If...
log_admin("[key_name(src)] cleared dynamic transit space.")
- SSmapping.wipe_reservations() //this goes after it's logged, incase something horrible happens.
+ SSmapping.wipe_reservations() //this goes after it's logged, incase something horrible happens.
/client/proc/toggle_medal_disable()
set category = "Debug"
@@ -815,9 +815,9 @@ But you can call procs that are of type /mob/living/carbon/human/proc/ for that
set desc = "Shows tracked profiling info from code lines that support it"
var/sortlist = list(
- "Avg time" = /proc/cmp_profile_avg_time_dsc,
- "Total Time" = /proc/cmp_profile_time_dsc,
- "Call Count" = /proc/cmp_profile_count_dsc
+ "Avg time" = /proc/cmp_profile_avg_time_dsc,
+ "Total Time" = /proc/cmp_profile_time_dsc,
+ "Call Count" = /proc/cmp_profile_count_dsc
)
var/sort = input(src, "Sort type?", "Sort Type", "Avg time") as null|anything in sortlist
if (!sort)
diff --git a/code/modules/admin/verbs/mapping.dm b/code/modules/admin/verbs/mapping.dm
index 169159b55e2..c3b0a0fa440 100644
--- a/code/modules/admin/verbs/mapping.dm
+++ b/code/modules/admin/verbs/mapping.dm
@@ -20,18 +20,18 @@
//- Check if the area has too much empty space. If so, make it smaller and replace the rest with maintenance tunnels.
GLOBAL_LIST_INIT(admin_verbs_debug_mapping, list(
- /client/proc/camera_view, //-errorage
- /client/proc/sec_camera_report, //-errorage
- /client/proc/intercom_view, //-errorage
+ /client/proc/camera_view, //-errorage
+ /client/proc/sec_camera_report, //-errorage
+ /client/proc/intercom_view, //-errorage
/client/proc/air_status, //Air things
/client/proc/Cell, //More air things
/client/proc/atmosscan, //check plumbing
/client/proc/powerdebug, //check power
/client/proc/count_objects_on_z_level,
/client/proc/count_objects_all,
- /client/proc/cmd_assume_direct_control, //-errorage
+ /client/proc/cmd_assume_direct_control, //-errorage
/client/proc/cmd_give_direct_control,
- /client/proc/set_server_fps, //allows you to set the ticklag.
+ /client/proc/set_server_fps, //allows you to set the ticklag.
/client/proc/cmd_admin_grantfullaccess,
/client/proc/cmd_admin_areatest_all,
/client/proc/cmd_admin_areatest_station,
diff --git a/code/modules/admin/verbs/one_click_antag.dm b/code/modules/admin/verbs/one_click_antag.dm
index 5d4672ac34a..f1fb6009f00 100644
--- a/code/modules/admin/verbs/one_click_antag.dm
+++ b/code/modules/admin/verbs/one_click_antag.dm
@@ -1,5 +1,5 @@
/// If we spawn an ERT with the "choose experienced leader" option, select the leader from the top X playtimes
-#define ERT_EXPERIENCED_LEADER_CHOOSE_TOP 3
+#define ERT_EXPERIENCED_LEADER_CHOOSE_TOP 3
/client/proc/one_click_antag()
set name = "Create Antagonist"
diff --git a/code/modules/admin/verbs/pray.dm b/code/modules/admin/verbs/pray.dm
index 873007a2a55..fa7363f15c3 100644
--- a/code/modules/admin/verbs/pray.dm
+++ b/code/modules/admin/verbs/pray.dm
@@ -2,7 +2,7 @@
set category = "IC"
set name = "Pray"
- if(GLOB.say_disabled) //This is here to try to identify lag problems
+ if(GLOB.say_disabled) //This is here to try to identify lag problems
to_chat(usr, "Speech is currently admin-disabled.", confidential = TRUE)
return
diff --git a/code/modules/admin/verbs/randomverbs.dm b/code/modules/admin/verbs/randomverbs.dm
index 94cbf67d4c7..5532fc0a67e 100644
--- a/code/modules/admin/verbs/randomverbs.dm
+++ b/code/modules/admin/verbs/randomverbs.dm
@@ -288,13 +288,13 @@
var/list/candidates = list()
for(var/mob/M in GLOB.player_list)
if(M.stat != DEAD)
- continue //we are not dead!
+ continue //we are not dead!
if(!(ROLE_ALIEN in M.client.prefs.be_special))
- continue //we don't want to be an alium
+ continue //we don't want to be an alium
if(M.client.is_afk())
- continue //we are afk
+ continue //we are afk
if(M.mind && M.mind.current && M.mind.current.stat != DEAD)
- continue //we have a live body we are tied to
+ continue //we have a live body we are tied to
candidates += M.ckey
if(candidates.len)
ckey = input("Pick the player you want to respawn as a xeno.", "Suitable Candidates") as null|anything in sortKey(candidates)
@@ -356,7 +356,7 @@ Traitors and the like can also be revived with the previous role mostly intact.
to_chat(usr, "There is no active key like that in the game or the person is not currently a ghost.", confidential = TRUE)
return
- if(G_found.mind && !G_found.mind.active) //mind isn't currently in use by someone/something
+ if(G_found.mind && !G_found.mind.active) //mind isn't currently in use by someone/something
//Check if they were an alien
if(G_found.mind.assigned_role == ROLE_ALIEN)
if(alert("This character appears to have been an alien. Would you like to respawn them as such?",,"Yes","No")=="Yes")
@@ -384,34 +384,34 @@ Traitors and the like can also be revived with the previous role mostly intact.
SSjob.SendToLateJoin(new_xeno, FALSE)
//Now to give them their mind back.
- G_found.mind.transfer_to(new_xeno) //be careful when doing stuff like this! I've already checked the mind isn't in use
+ G_found.mind.transfer_to(new_xeno) //be careful when doing stuff like this! I've already checked the mind isn't in use
new_xeno.key = G_found.key
to_chat(new_xeno, "You have been fully respawned. Enjoy the game.", confidential = TRUE)
var/msg = "[key_name_admin(usr)] has respawned [new_xeno.key] as a filthy xeno."
message_admins(msg)
admin_ticket_log(new_xeno, msg)
- return //all done. The ghost is auto-deleted
+ return //all done. The ghost is auto-deleted
//check if they were a monkey
else if(findtext(G_found.real_name,"monkey"))
if(alert("This character appears to have been a monkey. Would you like to respawn them as such?",,"Yes","No")=="Yes")
var/mob/living/carbon/human/species/monkey/new_monkey = new
SSjob.SendToLateJoin(new_monkey)
- G_found.mind.transfer_to(new_monkey) //be careful when doing stuff like this! I've already checked the mind isn't in use
+ G_found.mind.transfer_to(new_monkey) //be careful when doing stuff like this! I've already checked the mind isn't in use
new_monkey.key = G_found.key
to_chat(new_monkey, "You have been fully respawned. Enjoy the game.", confidential = TRUE)
var/msg = "[key_name_admin(usr)] has respawned [new_monkey.key] as a filthy monkey."
message_admins(msg)
admin_ticket_log(new_monkey, msg)
- return //all done. The ghost is auto-deleted
+ return //all done. The ghost is auto-deleted
//Ok, it's not a xeno or a monkey. So, spawn a human.
var/mob/living/carbon/human/new_character = new//The mob being spawned.
SSjob.SendToLateJoin(new_character)
- var/datum/data/record/record_found //Referenced to later to either randomize or not randomize the character.
- if(G_found.mind && !G_found.mind.active) //mind isn't currently in use by someone/something
+ var/datum/data/record/record_found //Referenced to later to either randomize or not randomize the character.
+ if(G_found.mind && !G_found.mind.active) //mind isn't currently in use by someone/something
/*Try and locate a record for the person being respawned through GLOB.data_core.
This isn't an exact science but it does the trick more often than not.*/
var/id = md5("[G_found.real_name][G_found.mind.assigned_role]")
@@ -432,7 +432,7 @@ Traitors and the like can also be revived with the previous role mostly intact.
new_character.name = new_character.real_name
if(G_found.mind && !G_found.mind.active)
- G_found.mind.transfer_to(new_character) //be careful when doing stuff like this! I've already checked the mind isn't in use
+ G_found.mind.transfer_to(new_character) //be careful when doing stuff like this! I've already checked the mind isn't in use
else
new_character.mind_initialize()
if(!new_character.mind.assigned_role)
@@ -729,7 +729,7 @@ Traitors and the like can also be revived with the previous role mostly intact.
view_size.resetToDefault(getScreenSize(prefs.widescreenpref))
log_admin("[key_name(usr)] changed their view range to [view].")
- //message_admins("\blue [key_name_admin(usr)] changed their view range to [view].") //why? removed by order of XSI
+ //message_admins("\blue [key_name_admin(usr)] changed their view range to [view].") //why? removed by order of XSI
SSblackbox.record_feedback("nested tally", "admin_toggle", 1, list("Change View Range", "[view]")) //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
@@ -1178,7 +1178,7 @@ Traitors and the like can also be revived with the previous role mostly intact.
log_game("[key_name(usr)] triggered a CentCom recall, with the message of: [message]")
SSshuttle.centcom_recall(SSshuttle.emergency.timer, message)
-/client/proc/cmd_admin_check_player_exp() //Allows admins to determine who the newer players are.
+/client/proc/cmd_admin_check_player_exp() //Allows admins to determine who the newer players are.
set category = "Admin"
set name = "Player Playtime"
if(!check_rights(R_ADMIN))
diff --git a/code/modules/admin/view_variables/debug_variables.dm b/code/modules/admin/view_variables/debug_variables.dm
index a7c191de58f..938cac122e4 100644
--- a/code/modules/admin/view_variables/debug_variables.dm
+++ b/code/modules/admin/view_variables/debug_variables.dm
@@ -1,6 +1,6 @@
#define VV_HTML_ENCODE(thing) ( sanitize ? html_encode(thing) : thing )
/// Get displayed variable in VV variable list
-/proc/debug_variable(name, value, level, datum/D, sanitize = TRUE) //if D is a list, name will be index, and value will be assoc value.
+/proc/debug_variable(name, value, level, datum/D, sanitize = TRUE) //if D is a list, name will be index, and value will be assoc value.
var/header
if(D)
if(islist(D))
@@ -72,7 +72,7 @@
var/val
if (IS_NORMAL_LIST(L) && !isnum(key))
val = L[key]
- if (isnull(val)) // we still want to display non-null false values, such as 0 or ""
+ if (isnull(val)) // we still want to display non-null false values, such as 0 or ""
val = key
key = i
diff --git a/code/modules/admin/view_variables/get_variables.dm b/code/modules/admin/view_variables/get_variables.dm
index 3f90002edc0..e391c48c798 100644
--- a/code/modules/admin/view_variables/get_variables.dm
+++ b/code/modules/admin/view_variables/get_variables.dm
@@ -205,7 +205,7 @@
if(VV_PROCCALL_RETVAL)
var/list/get_retval = list()
callproc_blocking(get_retval)
- .["value"] = get_retval[1] //should have been set in proccall!
+ .["value"] = get_retval[1] //should have been set in proccall!
if(.["value"] == null)
.["class"] = null
return
diff --git a/code/modules/admin/view_variables/mass_edit_variables.dm b/code/modules/admin/view_variables/mass_edit_variables.dm
index db1536ef00a..b01506a6001 100644
--- a/code/modules/admin/view_variables/mass_edit_variables.dm
+++ b/code/modules/admin/view_variables/mass_edit_variables.dm
@@ -3,7 +3,7 @@
set name = "Mass Edit Variables"
set desc="(target) Edit all instances of a target item's variables"
- var/method = 0 //0 means strict type detection while 1 means this type and all subtypes (IE: /obj/item with this set to 1 will set it to ALL items)
+ var/method = 0 //0 means strict type detection while 1 means this type and all subtypes (IE: /obj/item with this set to 1 will set it to ALL items)
if(tgui_alert(src, "Are you sure you'd like to mass-modify every instance of the [var_name] variable? This can break everything if you do not know what you are doing.", "Slow down, chief!", list("Yes", "No")) != "Yes")
return
diff --git a/code/modules/admin/view_variables/modify_variables.dm b/code/modules/admin/view_variables/modify_variables.dm
index b9de3e09bcf..1f400054d9c 100644
--- a/code/modules/admin/view_variables/modify_variables.dm
+++ b/code/modules/admin/view_variables/modify_variables.dm
@@ -1,10 +1,10 @@
-GLOBAL_LIST_INIT(VVlocked, list("vars", "datum_flags", "client", "mob")) //Requires DEBUG
+GLOBAL_LIST_INIT(VVlocked, list("vars", "datum_flags", "client", "mob")) //Requires DEBUG
GLOBAL_PROTECT(VVlocked)
-GLOBAL_LIST_INIT(VVicon_edit_lock, list("icon", "icon_state", "overlays", "underlays")) //Requires DEBUG or FUN
+GLOBAL_LIST_INIT(VVicon_edit_lock, list("icon", "icon_state", "overlays", "underlays")) //Requires DEBUG or FUN
GLOBAL_PROTECT(VVicon_edit_lock)
-GLOBAL_LIST_INIT(VVckey_edit, list("key", "ckey")) //Requires DEBUG or SPAWN
+GLOBAL_LIST_INIT(VVckey_edit, list("key", "ckey")) //Requires DEBUG or SPAWN
GLOBAL_PROTECT(VVckey_edit)
-GLOBAL_LIST_INIT(VVpixelmovement, list("bound_x", "bound_y", "step_x", "step_y", "step_size", "bound_height", "bound_width", "bounds")) //No editing ever.
+GLOBAL_LIST_INIT(VVpixelmovement, list("bound_x", "bound_y", "step_x", "step_y", "step_size", "bound_height", "bound_width", "bounds")) //No editing ever.
GLOBAL_PROTECT(VVpixelmovement)
/client/proc/vv_parse_text(O, new_var)
@@ -50,9 +50,9 @@ GLOBAL_PROTECT(VVpixelmovement)
var/datum/D = thing
i++
//try one of 3 methods to shorten the type text:
- // fancy type,
- // fancy type with the base type removed from the begaining,
- // the type with the base type removed from the begaining
+ // fancy type,
+ // fancy type with the base type removed from the begaining,
+ // the type with the base type removed from the begaining
var/fancytype = types[D.type]
if (findtext(fancytype, types[type]))
fancytype = copytext(fancytype, length(types[type]) + 1)
@@ -186,7 +186,7 @@ GLOBAL_PROTECT(VVpixelmovement)
assoc_key = L[index]
var/default
var/variable
- var/old_assoc_value //EXPERIMENTAL - Keep old associated value while modifying key, if any
+ var/old_assoc_value //EXPERIMENTAL - Keep old associated value while modifying key, if any
if(is_normal_list)
if (assoc)
variable = L[assoc_key]
diff --git a/code/modules/admin/view_variables/topic_basic.dm b/code/modules/admin/view_variables/topic_basic.dm
index dbc2a58be3b..a6becc966cf 100644
--- a/code/modules/admin/view_variables/topic_basic.dm
+++ b/code/modules/admin/view_variables/topic_basic.dm
@@ -43,7 +43,7 @@
if(check_rights(R_DEBUG))
if(href_list[VV_HK_DELETE])
usr.client.admin_delete(target)
- if (isturf(src)) // show the turf that took its place
+ if (isturf(src)) // show the turf that took its place
usr.client.debug_variables(src)
return
diff --git a/code/modules/admin/view_variables/topic_list.dm b/code/modules/admin/view_variables/topic_list.dm
index 349d9da698a..6bd99253429 100644
--- a/code/modules/admin/view_variables/topic_list.dm
+++ b/code/modules/admin/view_variables/topic_list.dm
@@ -30,7 +30,7 @@
message_admins("[key_name_admin(src)] modified list's contents: CLEAR NULLS")
if(href_list[VV_HK_LIST_SET_LENGTH])
var/value = vv_get_value(VV_NUM)
- if (value["class"] != VV_NUM || value["value"] > max(50000, target.len)) //safety - would rather someone not put an extra 0 and erase the server's memory lmao.
+ if (value["class"] != VV_NUM || value["value"] > max(50000, target.len)) //safety - would rather someone not put an extra 0 and erase the server's memory lmao.
return
target.len = value["value"]
log_world("### ListVarEdit by [src]: /list len: [target.len]")
diff --git a/code/modules/admin/view_variables/view_variables.dm b/code/modules/admin/view_variables/view_variables.dm
index 487fc2e000d..72eba46b968 100644
--- a/code/modules/admin/view_variables/view_variables.dm
+++ b/code/modules/admin/view_variables/view_variables.dm
@@ -4,7 +4,7 @@
//set src in world
var/static/cookieoffset = rand(1, 9999) //to force cookies to reset after the round.
- if(!usr.client || !usr.client.holder) //This is usr because admins can call the proc on other clients, even if they're not admins, to show them VVs.
+ if(!usr.client || !usr.client.holder) //This is usr because admins can call the proc on other clients, even if they're not admins, to show them VVs.
to_chat(usr, "You need to be an administrator to access this.", confidential = TRUE)
return
diff --git a/code/modules/antagonists/_common/antag_datum.dm b/code/modules/antagonists/_common/antag_datum.dm
index e1e2e53bc45..37df21d569e 100644
--- a/code/modules/antagonists/_common/antag_datum.dm
+++ b/code/modules/antagonists/_common/antag_datum.dm
@@ -2,13 +2,13 @@ GLOBAL_LIST_EMPTY(antagonists)
/datum/antagonist
var/name = "Antagonist"
- var/roundend_category = "other antagonists" //Section of roundend report, datums with same category will be displayed together, also default header for the section
- var/show_in_roundend = TRUE //Set to false to hide the antagonists from roundend report
- var/prevent_roundtype_conversion = TRUE //If false, the roundtype will still convert with this antag active
- var/datum/mind/owner //Mind that owns this datum
- var/silent = FALSE //Silent will prevent the gain/lose texts to show
- var/can_coexist_with_others = TRUE //Whether or not the person will be able to have more than one datum
- var/list/typecache_datum_blacklist = list() //List of datums this type can't coexist with
+ var/roundend_category = "other antagonists" //Section of roundend report, datums with same category will be displayed together, also default header for the section
+ var/show_in_roundend = TRUE //Set to false to hide the antagonists from roundend report
+ var/prevent_roundtype_conversion = TRUE //If false, the roundtype will still convert with this antag active
+ var/datum/mind/owner //Mind that owns this datum
+ var/silent = FALSE //Silent will prevent the gain/lose texts to show
+ var/can_coexist_with_others = TRUE //Whether or not the person will be able to have more than one datum
+ var/list/typecache_datum_blacklist = list() //List of datums this type can't coexist with
var/job_rank
var/replace_banned = TRUE //Should replace jobbanned player with ghosts if granted.
var/list/objectives = list()
@@ -23,8 +23,8 @@ GLOBAL_LIST_EMPTY(antagonists)
var/soft_antag = FALSE
//Antag panel properties
- var/show_in_antagpanel = TRUE //This will hide adding this antag type in antag panel, use only for internal subtypes that shouldn't be added directly but still show if possessed by mind
- var/antagpanel_category = "Uncategorized" //Antagpanel will display these together, REQUIRED
+ var/show_in_antagpanel = TRUE //This will hide adding this antag type in antag panel, use only for internal subtypes that shouldn't be added directly but still show if possessed by mind
+ var/antagpanel_category = "Uncategorized" //Antagpanel will display these together, REQUIRED
var/show_name_in_check_antagonists = FALSE //Will append antagonist name in admin listings - use for categories that share more than one antag type
var/show_to_ghosts = FALSE // Should this antagonist be shown as antag to ghosts? Shouldn't be used for stealthy antagonists like traitors
@@ -200,7 +200,7 @@ GLOBAL_LIST_EMPTY(antagonists)
//Displayed at the start of roundend_category section, default to roundend_category header
/datum/antagonist/proc/roundend_report_header()
- return "
"
+ return "
"
//Displayed at the end of roundend_category section
/datum/antagonist/proc/roundend_report_footer()
diff --git a/code/modules/antagonists/abductor/equipment/abduction_gear.dm b/code/modules/antagonists/abductor/equipment/abduction_gear.dm
index 0ecb54078d6..0b3dccbd693 100644
--- a/code/modules/antagonists/abductor/equipment/abduction_gear.dm
+++ b/code/modules/antagonists/abductor/equipment/abduction_gear.dm
@@ -801,7 +801,7 @@ Congratulations! You are now trained for invasive xenobiology research!"}
if(istype(I, /obj/item/stack/sheet/mineral/silver))
var/obj/item/stack/sheet/P = I
if(P.get_amount() < 1)
- to_chat(user, "You need one sheet of silver to do this!")
+ to_chat(user, "You need one sheet of silver to do this!")
return
to_chat(user, "You start adding [P] to [src]...")
if(do_after(user, 50, target = src))
diff --git a/code/modules/antagonists/abductor/machinery/console.dm b/code/modules/antagonists/abductor/machinery/console.dm
index 422e0274658..df68ef3924c 100644
--- a/code/modules/antagonists/abductor/machinery/console.dm
+++ b/code/modules/antagonists/abductor/machinery/console.dm
@@ -212,7 +212,7 @@
entry.name = target.name
entry.icon = target.icon
entry.icon_state = target.icon_state
- entry.overlays = target.get_overlays_copy(list(HANDS_LAYER)) //ugh
+ entry.overlays = target.get_overlays_copy(list(HANDS_LAYER)) //ugh
//Update old disguise instead of adding new one
if(disguises[entry.name])
disguises[entry.name] = entry
diff --git a/code/modules/antagonists/blob/overmind.dm b/code/modules/antagonists/blob/overmind.dm
index 33e1b66e85b..b9cc7b26ac6 100644
--- a/code/modules/antagonists/blob/overmind.dm
+++ b/code/modules/antagonists/blob/overmind.dm
@@ -36,8 +36,8 @@ GLOBAL_LIST_EMPTY(blob_nodes)
var/last_reroll_time = 0 //time since we last rerolled, used to give free rerolls
var/nodes_required = TRUE //if the blob needs nodes to place resource and factory blobs
var/placed = FALSE
- var/manualplace_min_time = OVERMIND_STARTING_MIN_PLACE_TIME // Some time to get your bearings
- var/autoplace_max_time = OVERMIND_STARTING_AUTO_PLACE_TIME // Automatically place the core in a random spot
+ var/manualplace_min_time = OVERMIND_STARTING_MIN_PLACE_TIME // Some time to get your bearings
+ var/autoplace_max_time = OVERMIND_STARTING_AUTO_PLACE_TIME // Automatically place the core in a random spot
var/list/blobs_legit = list()
var/max_count = 0 //The biggest it got before death
var/blobwincount = OVERMIND_WIN_CONDITION_AMOUNT
diff --git a/code/modules/antagonists/blob/powers.dm b/code/modules/antagonists/blob/powers.dm
index c1eebaf0fc6..ca285953236 100644
--- a/code/modules/antagonists/blob/powers.dm
+++ b/code/modules/antagonists/blob/powers.dm
@@ -140,7 +140,7 @@
if(!can_buy(BLOBMOB_BLOBBERNAUT_RESOURCE_COST))
return
- B.naut = TRUE //temporary placeholder to prevent creation of more than one per factory.
+ B.naut = TRUE //temporary placeholder to prevent creation of more than one per factory.
to_chat(src, "You attempt to produce a blobbernaut.")
var/list/mob/dead/observer/candidates = pollGhostCandidates("Do you want to play as a [blobstrain.name] blobbernaut?", ROLE_BLOB, null, ROLE_BLOB, 50) //players must answer rapidly
if(LAZYLEN(candidates)) //if we got at least one candidate, they're a blobbernaut now.
diff --git a/code/modules/antagonists/blob/structures/_blob.dm b/code/modules/antagonists/blob/structures/_blob.dm
index ae3b1965539..467c9727215 100644
--- a/code/modules/antagonists/blob/structures/_blob.dm
+++ b/code/modules/antagonists/blob/structures/_blob.dm
@@ -339,10 +339,10 @@
desc = "A thick wall of lifeless tendrils."
brute_resist = BLOB_BRUTE_RESIST * 0.5
-/obj/structure/blob/special // Generic type for nodes/factories/cores/resource
+/obj/structure/blob/special // Generic type for nodes/factories/cores/resource
// Core and node vars: claiming, pulsing and expanding
/// The radius inside which (previously dead) blob tiles are 'claimed' again by the pulsing overmind. Very rarely used.
- var/claim_range = 0
+ var/claim_range = 0
/// The radius inside which blobs are pulsed by this overmind. Does stuff like expanding, making blob spores from factories, make resources from nodes etc.
var/pulse_range = 0
/// The radius up to which this special structure naturally grows normal blobs.
@@ -351,7 +351,7 @@
// Spore production vars: for core, factories, and nodes (with strains)
var/mob/living/simple_animal/hostile/blob/blobbernaut/naut = null
var/max_spores = 0
- var/list/spores = list()
+ var/list/spores = list()
COOLDOWN_DECLARE(spore_delay)
var/spore_cooldown = BLOBMOB_SPORE_SPAWN_COOLDOWN
@@ -361,7 +361,7 @@
/// Range this blob free upgrades to reflector blobs at: for the core, and for strains
var/reflector_reinforce_range = 0
-/obj/structure/blob/special/proc/reinforce_area(delta_time) // Used by cores and nodes to upgrade their surroundings
+/obj/structure/blob/special/proc/reinforce_area(delta_time) // Used by cores and nodes to upgrade their surroundings
if(strong_reinforce_range)
for(var/obj/structure/blob/normal/B in range(strong_reinforce_range, src))
if(DT_PROB(BLOB_REINFORCE_CHANCE, delta_time))
diff --git a/code/modules/antagonists/blob/structures/core.dm b/code/modules/antagonists/blob/structures/core.dm
index e2f8ff17636..af808c2aa8d 100644
--- a/code/modules/antagonists/blob/structures/core.dm
+++ b/code/modules/antagonists/blob/structures/core.dm
@@ -11,7 +11,7 @@
resistance_flags = LAVA_PROOF
strong_reinforce_range = BLOB_CORE_STRONG_REINFORCE_RANGE
reflector_reinforce_range = BLOB_CORE_REFLECTOR_REINFORCE_RANGE
- claim_range = BLOB_CORE_CLAIM_RANGE
+ claim_range = BLOB_CORE_CLAIM_RANGE
pulse_range = BLOB_CORE_PULSE_RANGE
expand_range = BLOB_CORE_EXPAND_RANGE
max_spores = BLOB_CORE_MAX_SPORES
diff --git a/code/modules/antagonists/blob/structures/node.dm b/code/modules/antagonists/blob/structures/node.dm
index 73d2250d6d4..89df63444b0 100644
--- a/code/modules/antagonists/blob/structures/node.dm
+++ b/code/modules/antagonists/blob/structures/node.dm
@@ -7,7 +7,7 @@
health_regen = BLOB_NODE_HP_REGEN
armor = list(MELEE = 0, BULLET = 0, LASER = 0, ENERGY = 0, BOMB = 0, BIO = 0, RAD = 0, FIRE = 65, ACID = 90)
point_return = BLOB_REFUND_NODE_COST
- claim_range = BLOB_NODE_CLAIM_RANGE
+ claim_range = BLOB_NODE_CLAIM_RANGE
pulse_range = BLOB_NODE_PULSE_RANGE
expand_range = BLOB_NODE_EXPAND_RANGE
resistance_flags = LAVA_PROOF
diff --git a/code/modules/antagonists/blob/structures/shield.dm b/code/modules/antagonists/blob/structures/shield.dm
index 5da6ce75f51..37a1ab12afd 100644
--- a/code/modules/antagonists/blob/structures/shield.dm
+++ b/code/modules/antagonists/blob/structures/shield.dm
@@ -17,7 +17,7 @@
return "Will prevent the spread of atmospheric changes."
return "N/A"
-/obj/structure/blob/shield/core // Automatically generated by the core
+/obj/structure/blob/shield/core // Automatically generated by the core
point_return = 0
/obj/structure/blob/shield/update_icon()
@@ -46,5 +46,5 @@
max_integrity = BLOB_REFLECTOR_MAX_HP
health_regen = BLOB_REFLECTOR_HP_REGEN
-/obj/structure/blob/shield/reflective/core // Automatically generated by the core
+/obj/structure/blob/shield/reflective/core // Automatically generated by the core
point_return = 0
diff --git a/code/modules/antagonists/changeling/changeling.dm b/code/modules/antagonists/changeling/changeling.dm
index cc724fc7974..04e0c4dff7d 100644
--- a/code/modules/antagonists/changeling/changeling.dm
+++ b/code/modules/antagonists/changeling/changeling.dm
@@ -1,6 +1,6 @@
-#define LING_FAKEDEATH_TIME 400 //40 seconds
-#define LING_DEAD_GENETICDAMAGE_HEAL_CAP 50 //The lowest value of geneticdamage handle_changeling() can take it to while dead.
-#define LING_ABSORB_RECENT_SPEECH 8 //The amount of recent spoken lines to gain on absorbing a mob
+#define LING_FAKEDEATH_TIME 400 //40 seconds
+#define LING_DEAD_GENETICDAMAGE_HEAL_CAP 50 //The lowest value of geneticdamage handle_changeling() can take it to while dead.
+#define LING_ABSORB_RECENT_SPEECH 8 //The amount of recent spoken lines to gain on absorbing a mob
/datum/antagonist/changeling
name = "Changeling"
@@ -76,7 +76,7 @@
//SKYRAT EDIT REMOVAL END
if(give_objectives)
forge_objectives()
- owner.current.grant_all_languages(FALSE, FALSE, TRUE) //Grants omnitongue. We are able to transform our body after all.
+ owner.current.grant_all_languages(FALSE, FALSE, TRUE) //Grants omnitongue. We are able to transform our body after all.
. = ..()
/datum/antagonist/changeling/on_removal()
@@ -358,7 +358,7 @@
/datum/antagonist/changeling/proc/create_initial_profile()
- var/mob/living/carbon/C = owner.current //only carbons have dna now, so we have to typecaste
+ var/mob/living/carbon/C = owner.current //only carbons have dna now, so we have to typecaste
if(ishuman(C))
add_new_profile(C)
diff --git a/code/modules/antagonists/creep/creep.dm b/code/modules/antagonists/creep/creep.dm
index 71f85ed8583..8e325e2ffeb 100644
--- a/code/modules/antagonists/creep/creep.dm
+++ b/code/modules/antagonists/creep/creep.dm
@@ -96,7 +96,7 @@
O.update_explanation_text()
/datum/antagonist/obsessed/roundend_report_header()
- return "
"
+ return "
"
/datum/antagonist/obsessed/roundend_report()
var/list/report = list()
@@ -255,7 +255,7 @@
for(var/datum/mind/M in owners)
if(!isliving(M.current))
continue
- var/list/all_items = M.current.GetAllContents() //this should get things in cheesewheels, books, etc.
+ var/list/all_items = M.current.GetAllContents() //this should get things in cheesewheels, books, etc.
for(var/obj/I in all_items) //Check for wanted items
if(istype(I, /obj/item/photo))
var/obj/item/photo/P = I
diff --git a/code/modules/antagonists/disease/disease_disease.dm b/code/modules/antagonists/disease/disease_disease.dm
index 482beaba6be..37ab6ccd153 100644
--- a/code/modules/antagonists/disease/disease_disease.dm
+++ b/code/modules/antagonists/disease/disease_disease.dm
@@ -51,7 +51,7 @@
if(cures.len)
return
var/list/not_used = advance_cures.Copy()
- not_used.Cut(1, 6) // Removes the first five tiers of cures.
+ not_used.Cut(1, 6) // Removes the first five tiers of cures.
cures = list(pick(pick_n_take(not_used)), pick(pick_n_take(not_used)))
// Get the cure name from the cure_id
diff --git a/code/modules/antagonists/monkey/monkey.dm b/code/modules/antagonists/monkey/monkey.dm
index 7c8ad8659cb..3eac7501505 100644
--- a/code/modules/antagonists/monkey/monkey.dm
+++ b/code/modules/antagonists/monkey/monkey.dm
@@ -1,7 +1,7 @@
-#define MONKEYS_ESCAPED 1
-#define MONKEYS_LIVED 2
-#define MONKEYS_DIED 3
-#define DISEASE_LIVED 4
+#define MONKEYS_ESCAPED 1
+#define MONKEYS_LIVED 2
+#define MONKEYS_DIED 3
+#define DISEASE_LIVED 4
/datum/antagonist/monkey
name = "Monkey"
diff --git a/code/modules/antagonists/morph/morph.dm b/code/modules/antagonists/morph/morph.dm
index c07166885e9..847fce35808 100644
--- a/code/modules/antagonists/morph/morph.dm
+++ b/code/modules/antagonists/morph/morph.dm
@@ -100,7 +100,7 @@
"You twist your body and assume the form of [target].")
appearance = target.appearance
copy_overlays(target)
- alpha = max(alpha, 150) //fucking chameleons
+ alpha = max(alpha, 150) //fucking chameleons
transform = initial(transform)
pixel_y = base_pixel_y
pixel_x = base_pixel_x
diff --git a/code/modules/antagonists/nukeop/equipment/nuclearbomb.dm b/code/modules/antagonists/nukeop/equipment/nuclearbomb.dm
index 2fbf832ea07..9238f83f67a 100644
--- a/code/modules/antagonists/nukeop/equipment/nuclearbomb.dm
+++ b/code/modules/antagonists/nukeop/equipment/nuclearbomb.dm
@@ -526,8 +526,8 @@
/obj/machinery/nuclearbomb/beer/attackby(obj/item/W, mob/user, params)
if(W.is_refillable())
- W.afterattack(keg, user, TRUE) // redirect refillable containers to the keg, allowing them to be filled
- return TRUE // pretend we handled the attack, too.
+ W.afterattack(keg, user, TRUE) // redirect refillable containers to the keg, allowing them to be filled
+ return TRUE // pretend we handled the attack, too.
if(istype(W, /obj/item/nuke_core_container))
to_chat(user, "[src] has had its plutonium core removed as a part of being decommissioned.")
return TRUE
diff --git a/code/modules/antagonists/nukeop/nukeop.dm b/code/modules/antagonists/nukeop/nukeop.dm
index 966bc177150..70c5124b90d 100644
--- a/code/modules/antagonists/nukeop/nukeop.dm
+++ b/code/modules/antagonists/nukeop/nukeop.dm
@@ -317,7 +317,7 @@
else if (!disk_rescued && evacuation)
return NUKE_RESULT_DISK_STOLEN
else
- return //Undefined result
+ return //Undefined result
/datum/team/nuclear/roundend_report()
var/list/parts = list()
diff --git a/code/modules/antagonists/slaughter/slaughter.dm b/code/modules/antagonists/slaughter/slaughter.dm
index 0a5a901176a..cd24db4dece 100644
--- a/code/modules/antagonists/slaughter/slaughter.dm
+++ b/code/modules/antagonists/slaughter/slaughter.dm
@@ -40,7 +40,7 @@
deathmessage = "screams in agony as it sublimates into a sulfurous smoke."
deathsound = 'sound/magic/demon_dies.ogg'
var/playstyle_string = "You are an imp, a mischievous creature from hell. You are the lowest rank on the hellish totem pole \
- Though you are not obligated to help, perhaps by aiding a higher ranking devil, you might just get a promotion. However, you are incapable \
+ Though you are not obligated to help, perhaps by aiding a higher ranking devil, you might just get a promotion. However, you are incapable \
of intentionally harming a fellow devil."
/datum/antagonist/imp
@@ -271,7 +271,7 @@
if(M.revive(full_heal = TRUE, admin_revive = TRUE))
M.grab_ghost(force = TRUE)
playsound(T, feast_sound, 50, TRUE, -1)
- to_chat(M, "You leave [src]'s warm embrace, and feel ready to take on the world.")
+ to_chat(M, "You leave [src]'s warm embrace, and feel ready to take on the world.")
/mob/living/simple_animal/hostile/imp/slaughter/laughter/bloodcrawl_swallow(mob/living/victim)
// Keep their corpse so rescue is possible
diff --git a/code/modules/antagonists/traitor/datum_traitor.dm b/code/modules/antagonists/traitor/datum_traitor.dm
index 5f6c5c2866b..6c3d9316cc7 100644
--- a/code/modules/antagonists/traitor/datum_traitor.dm
+++ b/code/modules/antagonists/traitor/datum_traitor.dm
@@ -1,5 +1,5 @@
#define TRAITOR_HUMAN "human"
-#define TRAITOR_AI "AI"
+#define TRAITOR_AI "AI"
/datum/antagonist/traitor
name = "Traitor"
@@ -9,7 +9,7 @@
antag_moodlet = /datum/mood_event/focused
antag_hud_type = ANTAG_HUD_TRAITOR
antag_hud_name = "traitor"
- hijack_speed = 0.5 //10 seconds per hijack stage by default
+ hijack_speed = 0.5 //10 seconds per hijack stage by default
var/special_role = ROLE_TRAITOR
var/employer = "The Syndicate"
var/give_objectives = TRUE
@@ -71,7 +71,7 @@
if (GLOB.joined_player_list.len >= 30) // Less murderboning on lowpop thanks
is_hijacker = prob(10)
var/martyr_chance = prob(20)
- var/objective_count = is_hijacker //Hijacking counts towards number of objectives
+ var/objective_count = is_hijacker //Hijacking counts towards number of objectives
var/toa = CONFIG_GET(number/traitor_objectives_amount)
for(var/i = objective_count, i < toa, i++)
diff --git a/code/modules/antagonists/wizard/equipment/soulstone.dm b/code/modules/antagonists/wizard/equipment/soulstone.dm
index 077328c5ca6..6d666f538f8 100644
--- a/code/modules/antagonists/wizard/equipment/soulstone.dm
+++ b/code/modules/antagonists/wizard/equipment/soulstone.dm
@@ -68,7 +68,7 @@
/obj/item/soulstone/proc/hot_potato(mob/living/user)
to_chat(user, "Holy magics residing in \the [src] burn your hand!")
var/obj/item/bodypart/affecting = user.get_bodypart("[(user.active_hand_index % 2 == 0) ? "r" : "l" ]_arm")
- affecting.receive_damage( 0, 10 ) // 10 burn damage
+ affecting.receive_damage( 0, 10 ) // 10 burn damage
user.emote("scream")
user.update_damage_overlays()
user.dropItemToGround(src)
@@ -199,7 +199,7 @@
/obj/item/soulstone/proc/transfer_soul(choice as text, target, mob/user)
switch(choice)
if("FORCE")
- if(!iscarbon(target)) //TODO: Add sacrifice stoning for non-organics, just because you have no body doesnt mean you dont have a soul
+ if(!iscarbon(target)) //TODO: Add sacrifice stoning for non-organics, just because you have no body doesnt mean you dont have a soul
return FALSE
if(contents.len)
return FALSE
@@ -363,7 +363,7 @@
if(user)
S.copy_languages(user, LANGUAGE_MASTER)
S.update_atom_languages()
- grant_all_languages(FALSE, FALSE, TRUE) //Grants omnitongue
+ grant_all_languages(FALSE, FALSE, TRUE) //Grants omnitongue
if(user)
S.faction |= "[REF(user)]" //Add the master as a faction, allowing inter-mob cooperation
if(user && iscultist(user))
@@ -390,7 +390,7 @@
chosen_ghost = T.get_ghost(TRUE,TRUE) //Try to grab original owner's ghost first
- if(!chosen_ghost || !chosen_ghost.client) //Failing that, we grab a ghosts
+ if(!chosen_ghost || !chosen_ghost.client) //Failing that, we grab a ghosts
var/list/consenting_candidates = pollGhostCandidates("Would you like to play as a Shade?", "Cultist", null, ROLE_CULTIST, 50, POLL_IGNORE_SHADE)
if(consenting_candidates.len)
chosen_ghost = pick(consenting_candidates)
diff --git a/code/modules/assembly/assembly.dm b/code/modules/assembly/assembly.dm
index ed7f49c36a6..2158129372d 100644
--- a/code/modules/assembly/assembly.dm
+++ b/code/modules/assembly/assembly.dm
@@ -1,8 +1,8 @@
-#define WIRE_RECEIVE (1<<0)
-#define WIRE_PULSE (1<<1)
-#define WIRE_PULSE_SPECIAL (1<<2)
-#define WIRE_RADIO_RECEIVE (1<<3)
-#define WIRE_RADIO_PULSE (1<<4)
+#define WIRE_RECEIVE (1<<0)
+#define WIRE_PULSE (1<<1)
+#define WIRE_PULSE_SPECIAL (1<<2)
+#define WIRE_RADIO_RECEIVE (1<<3)
+#define WIRE_RADIO_PULSE (1<<4)
#define ASSEMBLY_BEEP_VOLUME 5
/obj/item/assembly
@@ -18,7 +18,7 @@
throw_range = 7
drop_sound = 'sound/items/handling/component_drop.ogg'
pickup_sound = 'sound/items/handling/component_pickup.ogg'
- var/is_position_sensitive = FALSE //set to true if the device has different icons for each position.
+ var/is_position_sensitive = FALSE //set to true if the device has different icons for each position.
//This will prevent things such as visible lasers from facing the incorrect direction when transformed by assembly_holder's update_icon()
var/secured = TRUE
var/list/attached_overlays = null
diff --git a/code/modules/assembly/bomb.dm b/code/modules/assembly/bomb.dm
index 9f486ff2d27..06e703fa4e9 100644
--- a/code/modules/assembly/bomb.dm
+++ b/code/modules/assembly/bomb.dm
@@ -65,14 +65,14 @@
add_fingerprint(user)
return
-/obj/item/onetankbomb/receive_signal() //This is mainly called by the sensor through sense() to the holder, and from the holder to here.
+/obj/item/onetankbomb/receive_signal() //This is mainly called by the sensor through sense() to the holder, and from the holder to here.
audible_message("[icon2html(src, hearers(src))] *beep* *beep* *beep*")
playsound(src, 'sound/machines/triple_beep.ogg', ASSEMBLY_BEEP_VOLUME, TRUE)
sleep(10)
if(QDELETED(src))
return
if(status)
- bombtank.ignite() //if its not a dud, boom (or not boom if you made shitty mix) the ignite proc is below, in this file
+ bombtank.ignite() //if its not a dud, boom (or not boom if you made shitty mix) the ignite proc is below, in this file
else
bombtank.release()
@@ -128,20 +128,20 @@
user.transferItemToLoc(src, bomb)
user.transferItemToLoc(assembly, bomb)
- bomb.bombassembly = assembly //Tell the bomb about its assembly part
- assembly.master = bomb //Tell the assembly about its new owner
+ bomb.bombassembly = assembly //Tell the bomb about its assembly part
+ assembly.master = bomb //Tell the assembly about its new owner
- bomb.bombtank = src //Same for tank
+ bomb.bombtank = src //Same for tank
master = bomb
forceMove(bomb)
bomb.update_icon()
- user.put_in_hands(bomb) //Equips the bomb if possible, or puts it on the floor.
+ user.put_in_hands(bomb) //Equips the bomb if possible, or puts it on the floor.
to_chat(user, "You attach [assembly] to [src].")
return
-/obj/item/tank/proc/ignite() //This happens when a bomb is told to explode
+/obj/item/tank/proc/ignite() //This happens when a bomb is told to explode
air_contents.assert_gases(/datum/gas/plasma, /datum/gas/oxygen)
var/fuel_moles = air_contents.gases[/datum/gas/plasma][MOLES] + air_contents.gases[/datum/gas/oxygen][MOLES]/6
air_contents.garbage_collect()
@@ -195,7 +195,7 @@
ground_zero.air_update_turf(FALSE, FALSE)
-/obj/item/tank/proc/release() //This happens when the bomb is not welded. Tank contents are just spat out.
+/obj/item/tank/proc/release() //This happens when the bomb is not welded. Tank contents are just spat out.
var/datum/gas_mixture/removed = air_contents.remove(air_contents.total_moles())
var/turf/T = get_turf(src)
if(!T)
diff --git a/code/modules/assembly/doorcontrol.dm b/code/modules/assembly/doorcontrol.dm
index c13613935e6..bf9aacf5721 100644
--- a/code/modules/assembly/doorcontrol.dm
+++ b/code/modules/assembly/doorcontrol.dm
@@ -59,7 +59,7 @@
id = "badmin" // Set it to null for MEGAFUN.
var/specialfunctions = OPEN
/*
- Bitflag, 1= open (OPEN)
+ Bitflag, 1= open (OPEN)
2= idscan (IDSCAN)
4= bolts (BOLTS)
8= shock (SHOCK)
diff --git a/code/modules/assembly/flash.dm b/code/modules/assembly/flash.dm
index e3804922e24..52d42b920b5 100644
--- a/code/modules/assembly/flash.dm
+++ b/code/modules/assembly/flash.dm
@@ -125,11 +125,11 @@
/**
* Handles actual flashing part of the attack
*
- * This proc is awful in every sense of the way, someone should definately refactor this whole code.
+ * This proc is awful in every sense of the way, someone should definately refactor this whole code.
* Arguments:
* * M - Victim
* * user - Attacker
- * * power - handles the amount of confusion it gives you
+ * * power - handles the amount of confusion it gives you
* * targeted - determines if it was aoe or targeted
* * generic_message - checks if it should display default message.
*/
@@ -183,7 +183,7 @@
/**
* Handles the directionality of the attack
*
- * Returns the amount of 'deviation', 0 being facing eachother, 1 being sideways, 2 being facing away from eachother.
+ * Returns the amount of 'deviation', 0 being facing eachother, 1 being sideways, 2 being facing away from eachother.
* Arguments:
* * victim - Victim
* * attacker - Attacker
diff --git a/code/modules/assembly/helpers.dm b/code/modules/assembly/helpers.dm
index 2c39751a8bc..76d63966f96 100644
--- a/code/modules/assembly/helpers.dm
+++ b/code/modules/assembly/helpers.dm
@@ -1,16 +1,16 @@
// See _DEFINES/is_helpers.dm for type helpers
/*
-Name: IsSpecialAssembly
-Desc: If true is an object that can be attached to an assembly holder but is a special thing like a plasma can or door
+Name: IsSpecialAssembly
+Desc: If true is an object that can be attached to an assembly holder but is a special thing like a plasma can or door
*/
/obj/proc/IsSpecialAssembly()
return FALSE
/*
-Name: IsAssemblyHolder
-Desc: If true is an object that can hold an assemblyholder object
+Name: IsAssemblyHolder
+Desc: If true is an object that can hold an assemblyholder object
*/
/obj/proc/IsAssemblyHolder()
return FALSE
diff --git a/code/modules/assembly/mousetrap.dm b/code/modules/assembly/mousetrap.dm
index e6e4ed22d8f..de8c60e5c7a 100644
--- a/code/modules/assembly/mousetrap.dm
+++ b/code/modules/assembly/mousetrap.dm
@@ -131,7 +131,7 @@
finder.visible_message("[finder] accidentally sets off [src], breaking their fingers.", \
"You accidentally trigger [src]!")
triggered(finder, (finder.active_hand_index % 2 == 0) ? BODY_ZONE_PRECISE_R_HAND : BODY_ZONE_PRECISE_L_HAND)
- return TRUE //end the search!
+ return TRUE //end the search!
else
visible_message("[src] snaps shut!")
triggered(loc)
diff --git a/code/modules/asset_cache/asset_list_items.dm b/code/modules/asset_cache/asset_list_items.dm
index dd2bc8d4632..f72a05cd762 100644
--- a/code/modules/asset_cache/asset_list_items.dm
+++ b/code/modules/asset_cache/asset_list_items.dm
@@ -188,7 +188,7 @@
)
/datum/asset/simple/namespaced/common
- assets = list("padlock.png" = 'html/padlock.png')
+ assets = list("padlock.png" = 'html/padlock.png')
parents = list("common.css" = 'html/browser/common.css')
/datum/asset/simple/permissions
@@ -452,7 +452,7 @@
/datum/asset/simple/orbit
assets = list(
- "ghost.png" = 'html/ghost.png'
+ "ghost.png" = 'html/ghost.png'
)
/datum/asset/simple/vv
diff --git a/code/modules/atmospherics/environmental/LINDA_system.dm b/code/modules/atmospherics/environmental/LINDA_system.dm
index 5955b6bbb92..c23574e5472 100644
--- a/code/modules/atmospherics/environmental/LINDA_system.dm
+++ b/code/modules/atmospherics/environmental/LINDA_system.dm
@@ -31,10 +31,10 @@
var/turf/other = (O.loc == src ? T : src)
if(!(vertical? (CANVERTICALATMOSPASS(O, other)) : (CANATMOSPASS(O, other))))
R = TRUE
- if(O.BlockSuperconductivity()) //the direction and open/closed are already checked on CanAtmosPass() so there are no arguments
+ if(O.BlockSuperconductivity()) //the direction and open/closed are already checked on CanAtmosPass() so there are no arguments
atmos_supeconductivity |= dir
T.atmos_supeconductivity |= opp
- return FALSE //no need to keep going, we got all we asked
+ return FALSE //no need to keep going, we got all we asked
atmos_supeconductivity &= ~dir
T.atmos_supeconductivity &= ~opp
@@ -67,7 +67,7 @@
//returns a list of adjacent turfs that can share air with this one.
//alldir includes adjacent diagonal tiles that can share
-// air with both of the related adjacent cardinal tiles
+// air with both of the related adjacent cardinal tiles
/turf/proc/GetAtmosAdjacentTurfs(alldir = 0)
var/adjacent_turfs
if (atmos_adjacent_turfs)
diff --git a/code/modules/atmospherics/gasmixtures/gas_mixture.dm b/code/modules/atmospherics/gasmixtures/gas_mixture.dm
index bc028ec2da0..64a7ec92bb1 100644
--- a/code/modules/atmospherics/gasmixtures/gas_mixture.dm
+++ b/code/modules/atmospherics/gasmixtures/gas_mixture.dm
@@ -3,8 +3,8 @@ What are the archived variables for?
Calculations are done using the archived variables with the results merged into the regular variables.
This prevents race conditions that arise based on the order of tile processing.
*/
-#define MINIMUM_HEAT_CAPACITY 0.0003
-#define MINIMUM_MOLE_COUNT 0.01
+#define MINIMUM_HEAT_CAPACITY 0.0003
+#define MINIMUM_MOLE_COUNT 0.01
#define MOLAR_ACCURACY 1E-7
/**
*I feel the need to document what happens here. Basically this is used
@@ -347,10 +347,10 @@ GLOBAL_LIST_INIT(gaslist_cache, init_gaslist_cache())
else
heat_capacity_sharer_to_self -= gas_heat_capacity //subtract here instead of adding the absolute value because we know that delta is negative.
- gas[MOLES] -= delta
- sharergas[MOLES] += delta
- moved_moles += delta
- abs_moved_moles += abs(delta)
+ gas[MOLES] -= delta
+ sharergas[MOLES] += delta
+ moved_moles += delta
+ abs_moved_moles += abs(delta)
last_share = abs_moved_moles
@@ -458,7 +458,7 @@ GLOBAL_LIST_INIT(gaslist_cache, init_gaslist_cache())
var/datum/gas_reaction/reaction = r
var/list/min_reqs = reaction.min_requirements
- if( (min_reqs["TEMP"] && temp < min_reqs["TEMP"]) || \
+ if( (min_reqs["TEMP"] && temp < min_reqs["TEMP"]) || \
(min_reqs["ENER"] && ener < min_reqs["ENER"]) || \
(min_reqs["MAX_TEMP"] && temp > min_reqs["MAX_TEMP"])
)
diff --git a/code/modules/atmospherics/gasmixtures/reactions.dm b/code/modules/atmospherics/gasmixtures/reactions.dm
index 541e3feb977..ca6957156a1 100644
--- a/code/modules/atmospherics/gasmixtures/reactions.dm
+++ b/code/modules/atmospherics/gasmixtures/reactions.dm
@@ -530,7 +530,7 @@ nobiliumsuppression = INFINITY
/datum/gas_reaction/metalhydrogen/init_reqs()
min_requirements = list(
/datum/gas/hydrogen = 100,
- /datum/gas/bz = 5,
+ /datum/gas/bz = 5,
"TEMP" = METAL_HYDROGEN_MINIMUM_HEAT
)
@@ -658,7 +658,7 @@ nobiliumsuppression = INFINITY
air.temperature = max(((air.temperature * old_heat_capacity + energy_produced) / new_heat_capacity), TCMB)
-/datum/gas_reaction/miaster //dry heat sterilization: clears out pathogens in the air
+/datum/gas_reaction/miaster //dry heat sterilization: clears out pathogens in the air
priority = -10 //after all the heating from fires etc. is done
name = "Dry Heat Sterilization"
id = "sterilization"
diff --git a/code/modules/atmospherics/machinery/airalarm.dm b/code/modules/atmospherics/machinery/airalarm.dm
index 17a9fa39d97..eac5d29f852 100644
--- a/code/modules/atmospherics/machinery/airalarm.dm
+++ b/code/modules/atmospherics/machinery/airalarm.dm
@@ -84,83 +84,83 @@
var/datum/radio_frequency/radio_connection
var/list/TLV = list( // Breathable air.
- "pressure" = new/datum/tlv(HAZARD_LOW_PRESSURE, WARNING_LOW_PRESSURE, WARNING_HIGH_PRESSURE, HAZARD_HIGH_PRESSURE), // kPa. Values are min2, min1, max1, max2
- "temperature" = new/datum/tlv(T0C, T0C+10, T0C+40, T0C+66),
- /datum/gas/oxygen = new/datum/tlv(16, 19, 135, 140), // Partial pressure, kpa
- /datum/gas/nitrogen = new/datum/tlv(-1, -1, 1000, 1000),
- /datum/gas/carbon_dioxide = new/datum/tlv(-1, -1, 5, 10),
- /datum/gas/miasma = new/datum/tlv/(-1, -1, 15, 30),
- /datum/gas/plasma = new/datum/tlv/dangerous,
- /datum/gas/nitrous_oxide = new/datum/tlv/dangerous,
- /datum/gas/bz = new/datum/tlv/dangerous,
- /datum/gas/hypernoblium = new/datum/tlv(-1, -1, 1000, 1000), // Hyper-Noblium is inert and nontoxic
- /datum/gas/water_vapor = new/datum/tlv/dangerous,
- /datum/gas/tritium = new/datum/tlv/dangerous,
- /datum/gas/stimulum = new/datum/tlv/dangerous,
- /datum/gas/nitryl = new/datum/tlv/dangerous,
- /datum/gas/pluoxium = new/datum/tlv(-1, -1, 1000, 1000), // Unlike oxygen, pluoxium does not fuel plasma/tritium fires
- /datum/gas/freon = new/datum/tlv/dangerous,
- /datum/gas/hydrogen = new/datum/tlv/dangerous,
- /datum/gas/healium = new/datum/tlv/dangerous,
- /datum/gas/proto_nitrate = new/datum/tlv/dangerous,
- /datum/gas/zauker = new/datum/tlv/dangerous,
- /datum/gas/helium = new/datum/tlv/dangerous,
- /datum/gas/antinoblium = new/datum/tlv/dangerous,
- /datum/gas/halon = new/datum/tlv/dangerous
+ "pressure" = new/datum/tlv(HAZARD_LOW_PRESSURE, WARNING_LOW_PRESSURE, WARNING_HIGH_PRESSURE, HAZARD_HIGH_PRESSURE), // kPa. Values are min2, min1, max1, max2
+ "temperature" = new/datum/tlv(T0C, T0C+10, T0C+40, T0C+66),
+ /datum/gas/oxygen = new/datum/tlv(16, 19, 135, 140), // Partial pressure, kpa
+ /datum/gas/nitrogen = new/datum/tlv(-1, -1, 1000, 1000),
+ /datum/gas/carbon_dioxide = new/datum/tlv(-1, -1, 5, 10),
+ /datum/gas/miasma = new/datum/tlv/(-1, -1, 15, 30),
+ /datum/gas/plasma = new/datum/tlv/dangerous,
+ /datum/gas/nitrous_oxide = new/datum/tlv/dangerous,
+ /datum/gas/bz = new/datum/tlv/dangerous,
+ /datum/gas/hypernoblium = new/datum/tlv(-1, -1, 1000, 1000), // Hyper-Noblium is inert and nontoxic
+ /datum/gas/water_vapor = new/datum/tlv/dangerous,
+ /datum/gas/tritium = new/datum/tlv/dangerous,
+ /datum/gas/stimulum = new/datum/tlv/dangerous,
+ /datum/gas/nitryl = new/datum/tlv/dangerous,
+ /datum/gas/pluoxium = new/datum/tlv(-1, -1, 1000, 1000), // Unlike oxygen, pluoxium does not fuel plasma/tritium fires
+ /datum/gas/freon = new/datum/tlv/dangerous,
+ /datum/gas/hydrogen = new/datum/tlv/dangerous,
+ /datum/gas/healium = new/datum/tlv/dangerous,
+ /datum/gas/proto_nitrate = new/datum/tlv/dangerous,
+ /datum/gas/zauker = new/datum/tlv/dangerous,
+ /datum/gas/helium = new/datum/tlv/dangerous,
+ /datum/gas/antinoblium = new/datum/tlv/dangerous,
+ /datum/gas/halon = new/datum/tlv/dangerous
)
/obj/machinery/airalarm/server // No checks here.
TLV = list(
- "pressure" = new/datum/tlv/no_checks,
- "temperature" = new/datum/tlv/no_checks,
- /datum/gas/oxygen = new/datum/tlv/no_checks,
- /datum/gas/nitrogen = new/datum/tlv/no_checks,
- /datum/gas/carbon_dioxide = new/datum/tlv/no_checks,
- /datum/gas/miasma = new/datum/tlv/no_checks,
- /datum/gas/plasma = new/datum/tlv/no_checks,
- /datum/gas/nitrous_oxide = new/datum/tlv/no_checks,
- /datum/gas/bz = new/datum/tlv/no_checks,
- /datum/gas/hypernoblium = new/datum/tlv/no_checks,
- /datum/gas/water_vapor = new/datum/tlv/no_checks,
- /datum/gas/tritium = new/datum/tlv/no_checks,
- /datum/gas/stimulum = new/datum/tlv/no_checks,
- /datum/gas/nitryl = new/datum/tlv/no_checks,
- /datum/gas/pluoxium = new/datum/tlv/no_checks,
- /datum/gas/freon = new/datum/tlv/no_checks,
- /datum/gas/hydrogen = new/datum/tlv/no_checks,
- /datum/gas/healium = new/datum/tlv/dangerous,
- /datum/gas/proto_nitrate = new/datum/tlv/dangerous,
- /datum/gas/zauker = new/datum/tlv/dangerous,
- /datum/gas/helium = new/datum/tlv/dangerous,
- /datum/gas/antinoblium = new/datum/tlv/dangerous,
- /datum/gas/halon = new/datum/tlv/dangerous
+ "pressure" = new/datum/tlv/no_checks,
+ "temperature" = new/datum/tlv/no_checks,
+ /datum/gas/oxygen = new/datum/tlv/no_checks,
+ /datum/gas/nitrogen = new/datum/tlv/no_checks,
+ /datum/gas/carbon_dioxide = new/datum/tlv/no_checks,
+ /datum/gas/miasma = new/datum/tlv/no_checks,
+ /datum/gas/plasma = new/datum/tlv/no_checks,
+ /datum/gas/nitrous_oxide = new/datum/tlv/no_checks,
+ /datum/gas/bz = new/datum/tlv/no_checks,
+ /datum/gas/hypernoblium = new/datum/tlv/no_checks,
+ /datum/gas/water_vapor = new/datum/tlv/no_checks,
+ /datum/gas/tritium = new/datum/tlv/no_checks,
+ /datum/gas/stimulum = new/datum/tlv/no_checks,
+ /datum/gas/nitryl = new/datum/tlv/no_checks,
+ /datum/gas/pluoxium = new/datum/tlv/no_checks,
+ /datum/gas/freon = new/datum/tlv/no_checks,
+ /datum/gas/hydrogen = new/datum/tlv/no_checks,
+ /datum/gas/healium = new/datum/tlv/dangerous,
+ /datum/gas/proto_nitrate = new/datum/tlv/dangerous,
+ /datum/gas/zauker = new/datum/tlv/dangerous,
+ /datum/gas/helium = new/datum/tlv/dangerous,
+ /datum/gas/antinoblium = new/datum/tlv/dangerous,
+ /datum/gas/halon = new/datum/tlv/dangerous
)
/obj/machinery/airalarm/kitchen_cold_room // Kitchen cold rooms start off at -14°C or 259.15°K.
TLV = list(
- "pressure" = new/datum/tlv(ONE_ATMOSPHERE * 0.8, ONE_ATMOSPHERE * 0.9, ONE_ATMOSPHERE * 1.1, ONE_ATMOSPHERE * 1.2), // kPa
- "temperature" = new/datum/tlv(COLD_ROOM_TEMP-40, COLD_ROOM_TEMP-20, COLD_ROOM_TEMP+20, COLD_ROOM_TEMP+40),
- /datum/gas/oxygen = new/datum/tlv(16, 19, 135, 140), // Partial pressure, kpa
- /datum/gas/nitrogen = new/datum/tlv(-1, -1, 1000, 1000),
- /datum/gas/carbon_dioxide = new/datum/tlv(-1, -1, 5, 10),
- /datum/gas/miasma = new/datum/tlv/(-1, -1, 2, 5),
- /datum/gas/plasma = new/datum/tlv/dangerous,
- /datum/gas/nitrous_oxide = new/datum/tlv/dangerous,
- /datum/gas/bz = new/datum/tlv/dangerous,
- /datum/gas/hypernoblium = new/datum/tlv(-1, -1, 1000, 1000), // Hyper-Noblium is inert and nontoxic
- /datum/gas/water_vapor = new/datum/tlv/dangerous,
- /datum/gas/tritium = new/datum/tlv/dangerous,
- /datum/gas/stimulum = new/datum/tlv/dangerous,
- /datum/gas/nitryl = new/datum/tlv/dangerous,
- /datum/gas/pluoxium = new/datum/tlv(-1, -1, 1000, 1000), // Unlike oxygen, pluoxium does not fuel plasma/tritium fires
- /datum/gas/freon = new/datum/tlv/dangerous,
- /datum/gas/hydrogen = new/datum/tlv/dangerous,
- /datum/gas/healium = new/datum/tlv/dangerous,
- /datum/gas/proto_nitrate = new/datum/tlv/dangerous,
- /datum/gas/zauker = new/datum/tlv/dangerous,
- /datum/gas/helium = new/datum/tlv/dangerous,
- /datum/gas/antinoblium = new/datum/tlv/dangerous,
- /datum/gas/halon = new/datum/tlv/dangerous
+ "pressure" = new/datum/tlv(ONE_ATMOSPHERE * 0.8, ONE_ATMOSPHERE * 0.9, ONE_ATMOSPHERE * 1.1, ONE_ATMOSPHERE * 1.2), // kPa
+ "temperature" = new/datum/tlv(COLD_ROOM_TEMP-40, COLD_ROOM_TEMP-20, COLD_ROOM_TEMP+20, COLD_ROOM_TEMP+40),
+ /datum/gas/oxygen = new/datum/tlv(16, 19, 135, 140), // Partial pressure, kpa
+ /datum/gas/nitrogen = new/datum/tlv(-1, -1, 1000, 1000),
+ /datum/gas/carbon_dioxide = new/datum/tlv(-1, -1, 5, 10),
+ /datum/gas/miasma = new/datum/tlv/(-1, -1, 2, 5),
+ /datum/gas/plasma = new/datum/tlv/dangerous,
+ /datum/gas/nitrous_oxide = new/datum/tlv/dangerous,
+ /datum/gas/bz = new/datum/tlv/dangerous,
+ /datum/gas/hypernoblium = new/datum/tlv(-1, -1, 1000, 1000), // Hyper-Noblium is inert and nontoxic
+ /datum/gas/water_vapor = new/datum/tlv/dangerous,
+ /datum/gas/tritium = new/datum/tlv/dangerous,
+ /datum/gas/stimulum = new/datum/tlv/dangerous,
+ /datum/gas/nitryl = new/datum/tlv/dangerous,
+ /datum/gas/pluoxium = new/datum/tlv(-1, -1, 1000, 1000), // Unlike oxygen, pluoxium does not fuel plasma/tritium fires
+ /datum/gas/freon = new/datum/tlv/dangerous,
+ /datum/gas/hydrogen = new/datum/tlv/dangerous,
+ /datum/gas/healium = new/datum/tlv/dangerous,
+ /datum/gas/proto_nitrate = new/datum/tlv/dangerous,
+ /datum/gas/zauker = new/datum/tlv/dangerous,
+ /datum/gas/helium = new/datum/tlv/dangerous,
+ /datum/gas/antinoblium = new/datum/tlv/dangerous,
+ /datum/gas/halon = new/datum/tlv/dangerous
)
/obj/machinery/airalarm/unlocked
@@ -317,15 +317,15 @@
if(!info || info["frequency"] != frequency)
continue
data["vents"] += list(list(
- "id_tag" = id_tag,
+ "id_tag" = id_tag,
"long_name" = sanitize(long_name),
- "power" = info["power"],
- "checks" = info["checks"],
- "excheck" = info["checks"]&1,
- "incheck" = info["checks"]&2,
- "direction" = info["direction"],
- "external" = info["external"],
- "internal" = info["internal"],
+ "power" = info["power"],
+ "checks" = info["checks"],
+ "excheck" = info["checks"]&1,
+ "incheck" = info["checks"]&2,
+ "direction" = info["direction"],
+ "external" = info["external"],
+ "internal" = info["internal"],
"extdefault"= (info["external"] == ONE_ATMOSPHERE),
"intdefault"= (info["internal"] == 0)
))
@@ -336,25 +336,25 @@
if(!info || info["frequency"] != frequency)
continue
data["scrubbers"] += list(list(
- "id_tag" = id_tag,
- "long_name" = sanitize(long_name),
- "power" = info["power"],
- "scrubbing" = info["scrubbing"],
- "widenet" = info["widenet"],
- "filter_types" = info["filter_types"]
+ "id_tag" = id_tag,
+ "long_name" = sanitize(long_name),
+ "power" = info["power"],
+ "scrubbing" = info["scrubbing"],
+ "widenet" = info["widenet"],
+ "filter_types" = info["filter_types"]
))
data["mode"] = mode
data["modes"] = list()
- data["modes"] += list(list("name" = "Filtering - Scrubs out contaminants", "mode" = AALARM_MODE_SCRUBBING, "selected" = mode == AALARM_MODE_SCRUBBING, "danger" = 0))
- data["modes"] += list(list("name" = "Contaminated - Scrubs out ALL contaminants quickly","mode" = AALARM_MODE_CONTAMINATED, "selected" = mode == AALARM_MODE_CONTAMINATED, "danger" = 0))
- data["modes"] += list(list("name" = "Draught - Siphons out air while replacing", "mode" = AALARM_MODE_VENTING, "selected" = mode == AALARM_MODE_VENTING, "danger" = 0))
- data["modes"] += list(list("name" = "Refill - Triple vent output", "mode" = AALARM_MODE_REFILL, "selected" = mode == AALARM_MODE_REFILL, "danger" = 1))
- data["modes"] += list(list("name" = "Cycle - Siphons air before replacing", "mode" = AALARM_MODE_REPLACEMENT, "selected" = mode == AALARM_MODE_REPLACEMENT, "danger" = 1))
- data["modes"] += list(list("name" = "Siphon - Siphons air out of the room", "mode" = AALARM_MODE_SIPHON, "selected" = mode == AALARM_MODE_SIPHON, "danger" = 1))
- data["modes"] += list(list("name" = "Panic Siphon - Siphons air out of the room quickly","mode" = AALARM_MODE_PANIC, "selected" = mode == AALARM_MODE_PANIC, "danger" = 1))
- data["modes"] += list(list("name" = "Off - Shuts off vents and scrubbers", "mode" = AALARM_MODE_OFF, "selected" = mode == AALARM_MODE_OFF, "danger" = 0))
+ data["modes"] += list(list("name" = "Filtering - Scrubs out contaminants", "mode" = AALARM_MODE_SCRUBBING, "selected" = mode == AALARM_MODE_SCRUBBING, "danger" = 0))
+ data["modes"] += list(list("name" = "Contaminated - Scrubs out ALL contaminants quickly","mode" = AALARM_MODE_CONTAMINATED, "selected" = mode == AALARM_MODE_CONTAMINATED, "danger" = 0))
+ data["modes"] += list(list("name" = "Draught - Siphons out air while replacing", "mode" = AALARM_MODE_VENTING, "selected" = mode == AALARM_MODE_VENTING, "danger" = 0))
+ data["modes"] += list(list("name" = "Refill - Triple vent output", "mode" = AALARM_MODE_REFILL, "selected" = mode == AALARM_MODE_REFILL, "danger" = 1))
+ data["modes"] += list(list("name" = "Cycle - Siphons air before replacing", "mode" = AALARM_MODE_REPLACEMENT, "selected" = mode == AALARM_MODE_REPLACEMENT, "danger" = 1))
+ data["modes"] += list(list("name" = "Siphon - Siphons air out of the room", "mode" = AALARM_MODE_SIPHON, "selected" = mode == AALARM_MODE_SIPHON, "danger" = 1))
+ data["modes"] += list(list("name" = "Panic Siphon - Siphons air out of the room quickly","mode" = AALARM_MODE_PANIC, "selected" = mode == AALARM_MODE_PANIC, "danger" = 1))
+ data["modes"] += list(list("name" = "Off - Shuts off vents and scrubbers", "mode" = AALARM_MODE_OFF, "selected" = mode == AALARM_MODE_OFF, "danger" = 0))
if(obj_flags & EMAGGED)
- data["modes"] += list(list("name" = "Flood - Shuts off scrubbers and opens vents", "mode" = AALARM_MODE_FLOOD, "selected" = mode == AALARM_MODE_FLOOD, "danger" = 1))
+ data["modes"] += list(list("name" = "Flood - Shuts off scrubbers and opens vents", "mode" = AALARM_MODE_FLOOD, "selected" = mode == AALARM_MODE_FLOOD, "danger" = 1))
var/datum/tlv/selected
var/list/thresholds = list()
@@ -466,7 +466,7 @@
/obj/machinery/airalarm/proc/shock(mob/user, prb)
- if((machine_stat & (NOPOWER))) // unpowered, no shock
+ if((machine_stat & (NOPOWER))) // unpowered, no shock
return FALSE
if(!prob(prb))
return FALSE //you lucked out, no shock for you
diff --git a/code/modules/atmospherics/machinery/atmosmachinery.dm b/code/modules/atmospherics/machinery/atmosmachinery.dm
index 80c33bcb38d..6a8e51dfeae 100644
--- a/code/modules/atmospherics/machinery/atmosmachinery.dm
+++ b/code/modules/atmospherics/machinery/atmosmachinery.dm
@@ -12,7 +12,7 @@
/obj/machinery/atmospherics
anchored = TRUE
- move_resist = INFINITY //Moving a connected machine without actually doing the normal (dis)connection things will probably cause a LOT of issues. (this imply moving machines with something that can push turfs like a megafauna)
+ move_resist = INFINITY //Moving a connected machine without actually doing the normal (dis)connection things will probably cause a LOT of issues. (this imply moving machines with something that can push turfs like a megafauna)
idle_power_usage = 0
active_power_usage = 0
power_channel = AREA_USAGE_ENVIRON
diff --git a/code/modules/atmospherics/machinery/components/binary_devices/dp_vent_pump.dm b/code/modules/atmospherics/machinery/components/binary_devices/dp_vent_pump.dm
index 854996ba910..d7225502e54 100644
--- a/code/modules/atmospherics/machinery/components/binary_devices/dp_vent_pump.dm
+++ b/code/modules/atmospherics/machinery/components/binary_devices/dp_vent_pump.dm
@@ -1,8 +1,8 @@
//Acts like a normal vent, but has an input AND output.
-#define EXT_BOUND 1
-#define INPUT_MIN 2
-#define OUTPUT_MAX 4
+#define EXT_BOUND 1
+#define INPUT_MIN 2
+#define OUTPUT_MAX 4
/obj/machinery/atmospherics/components/binary/dp_vent_pump
icon = 'icons/obj/atmospherics/components/unary_devices.dmi' //We reuse the normal vent icons!
diff --git a/code/modules/atmospherics/machinery/components/binary_devices/pump.dm b/code/modules/atmospherics/machinery/components/binary_devices/pump.dm
index b5647f39cfa..12fcc827fa9 100644
--- a/code/modules/atmospherics/machinery/components/binary_devices/pump.dm
+++ b/code/modules/atmospherics/machinery/components/binary_devices/pump.dm
@@ -52,7 +52,7 @@
icon_state = (on && is_operational) ? "pump_on-[set_overlay_offset(piping_layer)]" : "pump_off-[set_overlay_offset(piping_layer)]"
/obj/machinery/atmospherics/components/binary/pump/process_atmos()
-// ..()
+// ..()
if(!on || !is_operational)
return
diff --git a/code/modules/atmospherics/machinery/components/binary_devices/volume_pump.dm b/code/modules/atmospherics/machinery/components/binary_devices/volume_pump.dm
index 1aeceb8f6ed..0e05d8ef81b 100644
--- a/code/modules/atmospherics/machinery/components/binary_devices/volume_pump.dm
+++ b/code/modules/atmospherics/machinery/components/binary_devices/volume_pump.dm
@@ -51,7 +51,7 @@
icon_state = on && is_operational ? "volpump_on-[set_overlay_offset(piping_layer)]" : "volpump_off-[set_overlay_offset(piping_layer)]"
/obj/machinery/atmospherics/components/binary/volume_pump/process_atmos(delta_time)
-// ..()
+// ..()
if(!on || !is_operational)
return
diff --git a/code/modules/atmospherics/machinery/components/components_base.dm b/code/modules/atmospherics/machinery/components/components_base.dm
index d0919030a0c..2d89c177914 100644
--- a/code/modules/atmospherics/machinery/components/components_base.dm
+++ b/code/modules/atmospherics/machinery/components/components_base.dm
@@ -100,7 +100,7 @@
* is projected to have no member and cause GC problems.
* We have to do this because components don't qdel pipelines
* while pipes must and will happily wreck and rebuild everything
- * again every time they are qdeleted.
+ * again every time they are qdeleted.
*/
if(!length(reference.other_atmosmch) && !length(reference.members))
if(QDESTROYING(reference))
diff --git a/code/modules/atmospherics/machinery/components/fusion/hypertorus.dm b/code/modules/atmospherics/machinery/components/fusion/hypertorus.dm
index 55d322acd20..b9dd26be81b 100644
--- a/code/modules/atmospherics/machinery/components/fusion/hypertorus.dm
+++ b/code/modules/atmospherics/machinery/components/fusion/hypertorus.dm
@@ -1,51 +1,51 @@
///Max amount of radiation that can be emitted per reaction cycle
-#define FUSION_RAD_MAX 5000
+#define FUSION_RAD_MAX 5000
///Maximum instability before the reaction goes endothermic
#define FUSION_INSTABILITY_ENDOTHERMALITY 4
///Maximum reachable fusion temperature
-#define FUSION_MAXIMUM_TEMPERATURE 1e8
+#define FUSION_MAXIMUM_TEMPERATURE 1e8
///Speed of light, in m/s
-#define LIGHT_SPEED 299792458
+#define LIGHT_SPEED 299792458
///Calculation between the plank constant and the lambda of the lightwave
-#define PLANCK_LIGHT_CONSTANT 2e-16
+#define PLANCK_LIGHT_CONSTANT 2e-16
///Radius of the h2 calculated based on the amount of number of atom in a mole (and some addition for balancing issues)
-#define CALCULATED_H2RADIUS 120e-4
+#define CALCULATED_H2RADIUS 120e-4
///Radius of the trit calculated based on the amount of number of atom in a mole (and some addition for balancing issues)
-#define CALCULATED_TRITRADIUS 230e-3
+#define CALCULATED_TRITRADIUS 230e-3
///Power conduction in the void, used to calculate the efficiency of the reaction
-#define VOID_CONDUCTION 1e-2
+#define VOID_CONDUCTION 1e-2
///Max reaction point per reaction cycle
-#define MAX_FUSION_RESEARCH 1000
+#define MAX_FUSION_RESEARCH 1000
///Min amount of allowed heat change
-#define MIN_HEAT_VARIATION -1e5
+#define MIN_HEAT_VARIATION -1e5
///Max amount of allowed heat change
-#define MAX_HEAT_VARIATION 1e5
+#define MAX_HEAT_VARIATION 1e5
///Max mole consumption per reaction cycle
-#define MAX_FUEL_USAGE 36
+#define MAX_FUEL_USAGE 36
///Mole count required (tritium/hydrogen) to start a fusion reaction
-#define FUSION_MOLE_THRESHOLD 25
+#define FUSION_MOLE_THRESHOLD 25
///Used to reduce the gas_power to a more useful amount
-#define INSTABILITY_GAS_POWER_FACTOR 0.003
+#define INSTABILITY_GAS_POWER_FACTOR 0.003
///Used to calculate the toroidal_size for the instability
-#define TOROID_VOLUME_BREAKEVEN 1000
+#define TOROID_VOLUME_BREAKEVEN 1000
///Constant used when calculating the chance of emitting a radioactive particle
-#define PARTICLE_CHANCE_CONSTANT (-20000000)
+#define PARTICLE_CHANCE_CONSTANT (-20000000)
///Conduction of heat inside the fusion reactor
-#define METALLIC_VOID_CONDUCTIVITY 0.15
+#define METALLIC_VOID_CONDUCTIVITY 0.15
///Conduction of heat near the external cooling loop
-#define HIGH_EFFICIENCY_CONDUCTIVITY 0.95
+#define HIGH_EFFICIENCY_CONDUCTIVITY 0.95
///Sets the range of the hallucinations
-#define HALLUCINATION_RANGE(P) (min(7, round(abs(P) ** 0.25)))
+#define HALLUCINATION_RANGE(P) (min(7, round(abs(P) ** 0.25)))
///Sets the minimum amount of power the machine uses
-#define MIN_POWER_USAGE 50000
+#define MIN_POWER_USAGE 50000
-#define DAMAGE_CAP_MULTIPLIER 0.005
+#define DAMAGE_CAP_MULTIPLIER 0.005
//If integrity percent remaining is less than these values, the monitor sets off the relevant alarm.
-#define HYPERTORUS_MELTING_PERCENT 5
-#define HYPERTORUS_EMERGENCY_PERCENT 25
-#define HYPERTORUS_DANGER_PERCENT 50
-#define HYPERTORUS_WARNING_PERCENT 100
+#define HYPERTORUS_MELTING_PERCENT 5
+#define HYPERTORUS_EMERGENCY_PERCENT 25
+#define HYPERTORUS_DANGER_PERCENT 50
+#define HYPERTORUS_WARNING_PERCENT 100
#define WARNING_TIME_DELAY 60
///to prevent accent sounds from layering
@@ -848,7 +848,7 @@
*Modifiers
*/
///Those are the scaled gases that gets consumed and releases energy or help increase that energy
- var/positive_modifiers = scaled_hydrogen + \
+ var/positive_modifiers = scaled_hydrogen + \
scaled_tritium + \
scaled_m_nitrogen * 0.35 + \
scaled_m_co2 * 0.55 + \
@@ -857,14 +857,14 @@
scaled_m_antinoblium * 10 - \
scaled_m_hypernoblium * 10 //Hypernob decreases the amount of energy
///Those are the scaled gases that gets produced and consumes energy or help decrease that energy
- var/negative_modifiers = scaled_helium + \
+ var/negative_modifiers = scaled_helium + \
scaled_m_h2o * 0.75 + \
scaled_m_no2 * 0.15 + \
scaled_m_healium * 0.45 + \
scaled_m_freon * 1.15 - \
scaled_m_antinoblium * 10
///Between 0.25 and 100, this value is used to modify the behaviour of the internal energy and the core temperature based on the gases present in the mix
- var/power_modifier = clamp( scaled_tritium * 1.05 + \
+ var/power_modifier = clamp( scaled_tritium * 1.05 + \
scaled_m_oxygen * 0.55 + \
scaled_m_co2 * 0.95 + \
scaled_m_no2 * 1.45 + \
@@ -875,7 +875,7 @@
scaled_m_freon * 0.75, \
0.25, 100)
///Minimum 0.25, this value is used to modify the behaviour of the energy emission based on the gases present in the mix
- var/heat_modifier = clamp( scaled_hydrogen * 1.15 + \
+ var/heat_modifier = clamp( scaled_hydrogen * 1.15 + \
scaled_helium * 1.05 + \
scaled_m_plasma * 1.25 - \
scaled_m_nitrogen * 0.75 - \
@@ -883,7 +883,7 @@
scaled_m_freon * 0.95, \
0.25, 100)
///Between 0.005 and 1000, this value modify the radiation emission of the reaction, higher values increase the emission
- var/radiation_modifier = clamp( scaled_helium * 0.55 - \
+ var/radiation_modifier = clamp( scaled_helium * 0.55 - \
scaled_m_freon * 1.15 - \
scaled_m_nitrogen * 0.45 - \
scaled_m_plasma * 0.95 + \
@@ -1326,7 +1326,7 @@
var/gas = gas_id2path(params["mode"])
if(gas in GLOB.meta_gas_info)
connected_core.filter_type = gas
- filter_name = GLOB.meta_gas_info[gas][META_GAS_NAME]
+ filter_name = GLOB.meta_gas_info[gas][META_GAS_NAME]
investigate_log("was set to filter [filter_name] by [key_name(usr)]", INVESTIGATE_ATMOS)
. = TRUE
diff --git a/code/modules/atmospherics/machinery/components/trinary_devices/filter.dm b/code/modules/atmospherics/machinery/components/trinary_devices/filter.dm
index fcb2b3d8f26..056407756db 100644
--- a/code/modules/atmospherics/machinery/components/trinary_devices/filter.dm
+++ b/code/modules/atmospherics/machinery/components/trinary_devices/filter.dm
@@ -165,7 +165,7 @@
var/gas = gas_id2path(params["mode"])
if(gas in GLOB.meta_gas_info)
filter_type = gas
- filter_name = GLOB.meta_gas_info[gas][META_GAS_NAME]
+ filter_name = GLOB.meta_gas_info[gas][META_GAS_NAME]
investigate_log("was set to filter [filter_name] by [key_name(usr)]", INVESTIGATE_ATMOS)
. = TRUE
update_icon()
diff --git a/code/modules/atmospherics/machinery/components/unary_devices/tank.dm b/code/modules/atmospherics/machinery/components/unary_devices/tank.dm
index 8d9df3984c7..7bc46e1433a 100644
--- a/code/modules/atmospherics/machinery/components/unary_devices/tank.dm
+++ b/code/modules/atmospherics/machinery/components/unary_devices/tank.dm
@@ -1,4 +1,4 @@
-#define AIR_CONTENTS ((25*ONE_ATMOSPHERE)*(air_contents.volume)/(R_IDEAL_GAS_EQUATION*air_contents.temperature))
+#define AIR_CONTENTS ((25*ONE_ATMOSPHERE)*(air_contents.volume)/(R_IDEAL_GAS_EQUATION*air_contents.temperature))
/obj/machinery/atmospherics/components/unary/tank
icon = 'icons/obj/atmospherics/pipes/pressure_tank.dmi'
icon_state = "generic"
diff --git a/code/modules/atmospherics/machinery/components/unary_devices/vent_pump.dm b/code/modules/atmospherics/machinery/components/unary_devices/vent_pump.dm
index d4f0959ffa9..6c234b2df68 100644
--- a/code/modules/atmospherics/machinery/components/unary_devices/vent_pump.dm
+++ b/code/modules/atmospherics/machinery/components/unary_devices/vent_pump.dm
@@ -1,9 +1,9 @@
-#define EXT_BOUND 1
-#define INT_BOUND 2
-#define NO_BOUND 3
+#define EXT_BOUND 1
+#define INT_BOUND 2
+#define NO_BOUND 3
-#define SIPHONING 0
-#define RELEASING 1
+#define SIPHONING 0
+#define RELEASING 1
/obj/machinery/atmospherics/components/unary/vent_pump
icon_state = "vent_map-3"
diff --git a/code/modules/atmospherics/machinery/components/unary_devices/vent_scrubber.dm b/code/modules/atmospherics/machinery/components/unary_devices/vent_scrubber.dm
index 6ffacc63ec0..f6d110fcf83 100644
--- a/code/modules/atmospherics/machinery/components/unary_devices/vent_scrubber.dm
+++ b/code/modules/atmospherics/machinery/components/unary_devices/vent_scrubber.dm
@@ -1,5 +1,5 @@
-#define SIPHONING 0
-#define SCRUBBING 1
+#define SIPHONING 0
+#define SCRUBBING 1
/obj/machinery/atmospherics/components/unary/vent_scrubber
icon_state = "scrub_map-3"
@@ -203,13 +203,13 @@
return TRUE
//There is no easy way for an object to be notified of changes to atmos can pass flags
-// So we check every machinery process (2 seconds)
+// So we check every machinery process (2 seconds)
/obj/machinery/atmospherics/components/unary/vent_scrubber/process()
if(widenet)
check_turfs()
//we populate a list of turfs with nonatmos-blocked cardinal turfs AND
-// diagonal turfs that can share atmos with *both* of the cardinal turfs
+// diagonal turfs that can share atmos with *both* of the cardinal turfs
/obj/machinery/atmospherics/components/unary/vent_scrubber/proc/check_turfs()
adjacent_turfs.Cut()
diff --git a/code/modules/atmospherics/machinery/other/meter.dm b/code/modules/atmospherics/machinery/other/meter.dm
index c36468b6b2d..59943db9f52 100644
--- a/code/modules/atmospherics/machinery/other/meter.dm
+++ b/code/modules/atmospherics/machinery/other/meter.dm
@@ -144,7 +144,7 @@
deconstruct()
// TURF METER - REPORTS A TILE'S AIR CONTENTS
-// why are you yelling?
+// why are you yelling?
/obj/machinery/meter/turf
/obj/machinery/meter/turf/reattach_to_layer()
diff --git a/code/modules/atmospherics/machinery/other/miner.dm b/code/modules/atmospherics/machinery/other/miner.dm
index 3e918ef61ed..51dd4b02685 100644
--- a/code/modules/atmospherics/machinery/other/miner.dm
+++ b/code/modules/atmospherics/machinery/other/miner.dm
@@ -1,7 +1,7 @@
#define GASMINER_POWER_NONE 0
#define GASMINER_POWER_STATIC 1
-#define GASMINER_POWER_MOLES 2 //Scaled from here on down.
+#define GASMINER_POWER_MOLES 2 //Scaled from here on down.
#define GASMINER_POWER_KPA 3
#define GASMINER_POWER_FULLSCALE 4
@@ -22,7 +22,7 @@
var/active = TRUE
var/power_draw = 0
var/power_draw_static = 2000
- var/power_draw_dynamic_mol_coeff = 5 //DO NOT USE DYNAMIC SETTINGS UNTIL SOMEONE MAKES A USER INTERFACE/CONTROLLER FOR THIS!
+ var/power_draw_dynamic_mol_coeff = 5 //DO NOT USE DYNAMIC SETTINGS UNTIL SOMEONE MAKES A USER INTERFACE/CONTROLLER FOR THIS!
var/power_draw_dynamic_kpa_coeff = 0.5
var/broken = FALSE
var/broken_message = "ERROR"
@@ -31,7 +31,7 @@
/obj/machinery/atmospherics/miner/Initialize()
. = ..()
- set_active(active) //Force overlay update.
+ set_active(active) //Force overlay update.
/obj/machinery/atmospherics/miner/examine(mob/user)
. = ..()
diff --git a/code/modules/atmospherics/machinery/pipes/layermanifold.dm b/code/modules/atmospherics/machinery/pipes/layermanifold.dm
index 01fdd54b867..977164282c0 100644
--- a/code/modules/atmospherics/machinery/pipes/layermanifold.dm
+++ b/code/modules/atmospherics/machinery/pipes/layermanifold.dm
@@ -40,7 +40,7 @@
/obj/machinery/atmospherics/pipe/layer_manifold/update_icon()
cut_overlays()
- layer = initial(layer) + (PIPING_LAYER_MAX * PIPING_LAYER_LCHANGE) //This is above everything else.
+ layer = initial(layer) + (PIPING_LAYER_MAX * PIPING_LAYER_LCHANGE) //This is above everything else.
for(var/node in front_nodes)
add_attached_images(node)
diff --git a/code/modules/atmospherics/machinery/pipes/mapping.dm b/code/modules/atmospherics/machinery/pipes/mapping.dm
index 5e919a1e9ca..d51526b173b 100644
--- a/code/modules/atmospherics/machinery/pipes/mapping.dm
+++ b/code/modules/atmospherics/machinery/pipes/mapping.dm
@@ -1,65 +1,65 @@
//Colored pipes, use these for mapping
#define HELPER_PARTIAL(Fulltype, Iconbase, Color) \
- ##Fulltype { \
- pipe_color = Color; \
- color = Color; \
- } \
- ##Fulltype/visible { \
- hide = FALSE; \
- layer = GAS_PIPE_VISIBLE_LAYER; \
- } \
- ##Fulltype/visible/layer2 { \
- piping_layer = 2; \
- icon_state = Iconbase + "-2"; \
- } \
- ##Fulltype/visible/layer4 { \
- piping_layer = 4; \
- icon_state = Iconbase + "-4"; \
- } \
- ##Fulltype/visible/layer1 { \
- piping_layer = 1; \
- icon_state = Iconbase + "-1"; \
- } \
- ##Fulltype/visible/layer5 { \
- piping_layer = 5; \
- icon_state = Iconbase + "-5"; \
- } \
- ##Fulltype/hidden { \
- hide = TRUE; \
- } \
- ##Fulltype/hidden/layer2 { \
- piping_layer = 2; \
- icon_state = Iconbase + "-2"; \
- } \
- ##Fulltype/hidden/layer4 { \
- piping_layer = 4; \
- icon_state = Iconbase + "-4"; \
- } \
- ##Fulltype/hidden/layer1 { \
- piping_layer = 1; \
- icon_state = Iconbase + "-1"; \
- } \
- ##Fulltype/hidden/layer5 { \
- piping_layer = 5; \
- icon_state = Iconbase + "-5"; \
+ ##Fulltype { \
+ pipe_color = Color; \
+ color = Color; \
+ } \
+ ##Fulltype/visible { \
+ hide = FALSE; \
+ layer = GAS_PIPE_VISIBLE_LAYER; \
+ } \
+ ##Fulltype/visible/layer2 { \
+ piping_layer = 2; \
+ icon_state = Iconbase + "-2"; \
+ } \
+ ##Fulltype/visible/layer4 { \
+ piping_layer = 4; \
+ icon_state = Iconbase + "-4"; \
+ } \
+ ##Fulltype/visible/layer1 { \
+ piping_layer = 1; \
+ icon_state = Iconbase + "-1"; \
+ } \
+ ##Fulltype/visible/layer5 { \
+ piping_layer = 5; \
+ icon_state = Iconbase + "-5"; \
+ } \
+ ##Fulltype/hidden { \
+ hide = TRUE; \
+ } \
+ ##Fulltype/hidden/layer2 { \
+ piping_layer = 2; \
+ icon_state = Iconbase + "-2"; \
+ } \
+ ##Fulltype/hidden/layer4 { \
+ piping_layer = 4; \
+ icon_state = Iconbase + "-4"; \
+ } \
+ ##Fulltype/hidden/layer1 { \
+ piping_layer = 1; \
+ icon_state = Iconbase + "-1"; \
+ } \
+ ##Fulltype/hidden/layer5 { \
+ piping_layer = 5; \
+ icon_state = Iconbase + "-5"; \
}
#define HELPER_PARTIAL_NAMED(Fulltype, Iconbase, Name, Color) \
- HELPER_PARTIAL(Fulltype, Iconbase, Color) \
- ##Fulltype { \
- name = Name; \
+ HELPER_PARTIAL(Fulltype, Iconbase, Color) \
+ ##Fulltype { \
+ name = Name; \
}
#define HELPER(Type, Color) \
- HELPER_PARTIAL(/obj/machinery/atmospherics/pipe/simple/##Type, "pipe11", Color) \
- HELPER_PARTIAL(/obj/machinery/atmospherics/pipe/manifold/##Type, "manifold", Color) \
+ HELPER_PARTIAL(/obj/machinery/atmospherics/pipe/simple/##Type, "pipe11", Color) \
+ HELPER_PARTIAL(/obj/machinery/atmospherics/pipe/manifold/##Type, "manifold", Color) \
HELPER_PARTIAL(/obj/machinery/atmospherics/pipe/manifold4w/##Type, "manifold4w", Color) \
HELPER_PARTIAL(/obj/effect/mapping_helpers/simple_pipes/##Type,"pipe",Color)
#define HELPER_NAMED(Type, Name, Color) \
- HELPER_PARTIAL_NAMED(/obj/machinery/atmospherics/pipe/simple/##Type, "pipe11", Name, Color) \
- HELPER_PARTIAL_NAMED(/obj/machinery/atmospherics/pipe/manifold/##Type, "manifold", Name, Color) \
+ HELPER_PARTIAL_NAMED(/obj/machinery/atmospherics/pipe/simple/##Type, "pipe11", Name, Color) \
+ HELPER_PARTIAL_NAMED(/obj/machinery/atmospherics/pipe/manifold/##Type, "manifold", Name, Color) \
HELPER_PARTIAL_NAMED(/obj/machinery/atmospherics/pipe/manifold4w/##Type, "manifold4w", Name, Color) \
HELPER_PARTIAL_NAMED(/obj/effect/mapping_helpers/simple_pipes/##Type,"pipe", Name, Color)
diff --git a/code/modules/atmospherics/machinery/portable/canister.dm b/code/modules/atmospherics/machinery/portable/canister.dm
index 4da5e52fc06..67473db5796 100644
--- a/code/modules/atmospherics/machinery/portable/canister.dm
+++ b/code/modules/atmospherics/machinery/portable/canister.dm
@@ -1,9 +1,9 @@
-#define CAN_DEFAULT_RELEASE_PRESSURE (ONE_ATMOSPHERE)
+#define CAN_DEFAULT_RELEASE_PRESSURE (ONE_ATMOSPHERE)
///Used when setting the mode of the canisters, enabling us to switch the overlays
//These are used as icon states later down the line for tier overlays
-#define CANISTER_TIER_1 1
-#define CANISTER_TIER_2 2
-#define CANISTER_TIER_3 3
+#define CANISTER_TIER_1 1
+#define CANISTER_TIER_2 2
+#define CANISTER_TIER_3 3
/obj/machinery/portable_atmospherics/canister //SKYRAT EDIT - ICON OVERRIDEN BY AESTHETICS - SEE MODULE
name = "canister"
diff --git a/code/modules/awaymissions/capture_the_flag.dm b/code/modules/awaymissions/capture_the_flag.dm
index ff165caf544..995386304e2 100644
--- a/code/modules/awaymissions/capture_the_flag.dm
+++ b/code/modules/awaymissions/capture_the_flag.dm
@@ -464,7 +464,7 @@
/obj/projectile/bullet/ctf/prehit_pierce(atom/target)
if(is_ctf_target(target))
damage = 60
- return PROJECTILE_PIERCE_NONE /// hey uhh don't hit anyone behind them
+ return PROJECTILE_PIERCE_NONE /// hey uhh don't hit anyone behind them
. = ..()
/obj/item/gun/ballistic/automatic/laser/ctf
@@ -501,7 +501,7 @@
/obj/projectile/beam/ctf/prehit_pierce(atom/target)
if(is_ctf_target(target))
damage = 150
- return PROJECTILE_PIERCE_NONE /// hey uhhh don't hit anyone behind them
+ return PROJECTILE_PIERCE_NONE /// hey uhhh don't hit anyone behind them
. = ..()
/proc/is_ctf_target(atom/target)
diff --git a/code/modules/awaymissions/corpse.dm b/code/modules/awaymissions/corpse.dm
index c6a2456fe7f..8ffa1e7a9db 100644
--- a/code/modules/awaymissions/corpse.dm
+++ b/code/modules/awaymissions/corpse.dm
@@ -16,16 +16,16 @@
var/mob_gender = null
var/death = TRUE //Kill the mob
var/roundstart = TRUE //fires on initialize
- var/instant = FALSE //fires on New
+ var/instant = FALSE //fires on New
var/short_desc = "The mapper forgot to set this!"
var/flavour_text = ""
var/important_info = ""
var/faction = null
- var/permanent = FALSE //If true, the spawner will not disappear upon running out of uses.
- var/random = FALSE //Don't set a name or gender, just go random
+ var/permanent = FALSE //If true, the spawner will not disappear upon running out of uses.
+ var/random = FALSE //Don't set a name or gender, just go random
var/antagonist_type
var/objectives = null
- var/uses = 1 //how many times can we spawn from it. set to -1 for infinite.
+ var/uses = 1 //how many times can we spawn from it. set to -1 for infinite.
var/brute_damage = 0
var/oxy_damage = 0
var/burn_damage = 0
@@ -176,15 +176,15 @@
/obj/effect/mob_spawn/human
mob_type = /mob/living/carbon/human
//Human specific stuff.
- //var/mob_species = null //Set to make them a mutant race such as lizard or skeleton. Uses the datum typepath instead of the ID. //ORIGINAL
+ //var/mob_species = null //Set to make them a mutant race such as lizard or skeleton. Uses the datum typepath instead of the ID. //ORIGINAL
var/mob_species = /datum/species/human //SKYRAT EDIT CHANGE
var/datum/outfit/outfit = /datum/outfit //If this is a path, it will be instanced in Initialize()
var/disable_pda = TRUE
var/disable_sensors = TRUE
//All of these only affect the ID that the outfit has placed in the ID slot
- var/id_job = null //Such as "Clown" or "Chef." This just determines what the ID reads as, not their access
- var/id_access = null //This is for access. See access.dm for which jobs give what access. Use "Captain" if you want it to be all access.
- var/id_access_list = null //Allows you to manually add access to an ID card.
+ var/id_job = null //Such as "Clown" or "Chef." This just determines what the ID reads as, not their access
+ var/id_access = null //This is for access. See access.dm for which jobs give what access. Use "Captain" if you want it to be all access.
+ var/id_access_list = null //Allows you to manually add access to an ID card.
assignedrole = "Ghost Role"
var/husk = null
@@ -423,7 +423,7 @@
qdel(src)
/obj/effect/mob_spawn/slime
- mob_type = /mob/living/simple_animal/slime
+ mob_type = /mob/living/simple_animal/slime
var/mobcolour = "grey"
icon = 'icons/mob/slimes.dmi'
icon_state = "grey baby slime" //sets the icon in the map editor
diff --git a/code/modules/awaymissions/mission_code/snowdin.dm b/code/modules/awaymissions/mission_code/snowdin.dm
index 5be2f3432c1..4ccb89dff2f 100644
--- a/code/modules/awaymissions/mission_code/snowdin.dm
+++ b/code/modules/awaymissions/mission_code/snowdin.dm
@@ -193,7 +193,7 @@
. = 1
var/mob/living/L = thing
if(L.movement_type & FLYING)
- continue //YOU'RE FLYING OVER IT
+ continue //YOU'RE FLYING OVER IT
if("snow" in L.weather_immunities)
continue
@@ -257,7 +257,7 @@
icon = 'icons/obj/lavaland/dragonboat.dmi'
resistance_flags = FREEZE_PROOF
can_buckle = TRUE
-/////////// papers
+/////////// papers
/obj/item/paper/crumpled/ruins/snowdin/foreshadowing
diff --git a/code/modules/awaymissions/mission_code/stationCollision.dm b/code/modules/awaymissions/mission_code/stationCollision.dm
index 859654c0cb7..ae0437532a6 100644
--- a/code/modules/awaymissions/mission_code/stationCollision.dm
+++ b/code/modules/awaymissions/mission_code/stationCollision.dm
@@ -1,17 +1,17 @@
/* Station-Collision(sc) away mission map specific stuff
*
* Notes:
- * Feel free to use parts of this map, or even all of it for your own project. Just include me in the credits :)
+ * Feel free to use parts of this map, or even all of it for your own project. Just include me in the credits :)
*
- * Some of this code unnecessary, but the intent is to add a little bit of everything to serve as examples
- * for anyone who wants to make their own stuff.
+ * Some of this code unnecessary, but the intent is to add a little bit of everything to serve as examples
+ * for anyone who wants to make their own stuff.
*
* Contains:
- * Landmarks
- * Guns
- * Safe code hints
- * Captain's safe
- * Modified Nar'Sie
+ * Landmarks
+ * Guns
+ * Safe code hints
+ * Captain's safe
+ * Modified Nar'Sie
*/
diff --git a/code/modules/awaymissions/mission_code/wildwest.dm b/code/modules/awaymissions/mission_code/wildwest.dm
index 0c6f6197a4e..b2bf3bbd747 100644
--- a/code/modules/awaymissions/mission_code/wildwest.dm
+++ b/code/modules/awaymissions/mission_code/wildwest.dm
@@ -1,7 +1,7 @@
/* Code for the Wild West map by Brotemis
* Contains:
- * Wish Granter
- * Meat Grinder
+ * Wish Granter
+ * Meat Grinder
*/
//Areas
diff --git a/code/modules/buildmode/buildmode.dm b/code/modules/buildmode/buildmode.dm
index e0703201a13..921d1e057bb 100644
--- a/code/modules/buildmode/buildmode.dm
+++ b/code/modules/buildmode/buildmode.dm
@@ -1,6 +1,6 @@
-#define BM_SWITCHSTATE_NONE 0
-#define BM_SWITCHSTATE_MODE 1
-#define BM_SWITCHSTATE_DIR 2
+#define BM_SWITCHSTATE_NONE 0
+#define BM_SWITCHSTATE_MODE 1
+#define BM_SWITCHSTATE_DIR 2
/datum/buildmode
var/build_dir = SOUTH
diff --git a/code/modules/buildmode/submodes/delete.dm b/code/modules/buildmode/submodes/delete.dm
index 92148de9d69..8a4129fc40f 100644
--- a/code/modules/buildmode/submodes/delete.dm
+++ b/code/modules/buildmode/submodes/delete.dm
@@ -18,7 +18,7 @@
qdel(object)
if(LAZYACCESS(modifiers, RIGHT_CLICK))
- if(check_rights(R_DEBUG|R_SERVER)) //Prevents buildmoded non-admins from breaking everything.
+ if(check_rights(R_DEBUG|R_SERVER)) //Prevents buildmoded non-admins from breaking everything.
if(isturf(object))
return
var/atom/deleting = object
diff --git a/code/modules/cargo/blackmarket/blackmarket_item.dm b/code/modules/cargo/blackmarket/blackmarket_item.dm
index fddbcc1682f..ea6f3560f4d 100644
--- a/code/modules/cargo/blackmarket/blackmarket_item.dm
+++ b/code/modules/cargo/blackmarket/blackmarket_item.dm
@@ -17,13 +17,13 @@
var/item
/// Minimum price for the item if generated randomly.
- var/price_min = 0
+ var/price_min = 0
/// Maximum price for the item if generated randomly.
- var/price_max = 0
+ var/price_max = 0
/// Minimum amount that there should be of this item in the market if generated randomly. This defaults to 1 as most items will have it as 1.
- var/stock_min = 1
+ var/stock_min = 1
/// Maximum amount that there should be of this item in the market if generated randomly.
- var/stock_max = 0
+ var/stock_max = 0
/// Probability for this item to be available. Used by SSblackmarket on init.
var/availability_prob = 0
diff --git a/code/modules/cargo/blackmarket/blackmarket_market.dm b/code/modules/cargo/blackmarket/blackmarket_market.dm
index e70a8af715b..2a56ce688fd 100644
--- a/code/modules/cargo/blackmarket/blackmarket_market.dm
+++ b/code/modules/cargo/blackmarket/blackmarket_market.dm
@@ -10,7 +10,7 @@
/// Items available from this market, populated by SSblackmarket on initialization.
var/list/available_items = list()
/// Item categories available from this market, only items which are in these categories can be gotten from this market.
- var/list/categories = list()
+ var/list/categories = list()
/// Adds item to the available items and add it's category if it is not in categories yet.
/datum/blackmarket_market/proc/add_item(datum/blackmarket_item/item)
@@ -48,6 +48,6 @@
/datum/blackmarket_market/blackmarket
name = "Black Market"
- shipping = list(SHIPPING_METHOD_LTSRBT =50,
- SHIPPING_METHOD_LAUNCH =10,
+ shipping = list(SHIPPING_METHOD_LTSRBT =50,
+ SHIPPING_METHOD_LAUNCH =10,
SHIPPING_METHOD_TELEPORT=75)
diff --git a/code/modules/cargo/centcom_podlauncher.dm b/code/modules/cargo/centcom_podlauncher.dm
index beebdf4efc0..4385e1053c2 100644
--- a/code/modules/cargo/centcom_podlauncher.dm
+++ b/code/modules/cargo/centcom_podlauncher.dm
@@ -640,7 +640,7 @@
/datum/centcom_podlauncher/proc/refreshBay() //Called whenever the bay is switched, as well as wheneber a pod is launched
bay = GLOB.supplypod_loading_bays[bayNumber]
orderedArea = createOrderedArea(bay) //Create an ordered list full of turfs form the bay
- preLaunch() //Fill acceptable turfs from orderedArea, then fill launchList from acceptableTurfs (see proc for more info)
+ preLaunch() //Fill acceptable turfs from orderedArea, then fill launchList from acceptableTurfs (see proc for more info)
refreshView()
/area/centcom/supplypod/pod_storage/Initialize(mapload) //temp_pod holding area
diff --git a/code/modules/cargo/exports.dm b/code/modules/cargo/exports.dm
index 7232815846c..19ccb8fdfce 100644
--- a/code/modules/cargo/exports.dm
+++ b/code/modules/cargo/exports.dm
@@ -21,10 +21,10 @@ Then the player gets the profit from selling his own wasted time.
// Simple holder datum to pass export results around
/datum/export_report
- var/list/exported_atoms = list() //names of atoms sold/deleted by export
- var/list/total_amount = list() //export instance => total count of sold objects of its type, only exists if any were sold
- var/list/total_value = list() //export instance => total value of sold objects
- var/list/exported_atoms_ref = list() //if they're not deleted they go in here for use.
+ var/list/exported_atoms = list() //names of atoms sold/deleted by export
+ var/list/total_amount = list() //export instance => total count of sold objects of its type, only exists if any were sold
+ var/list/total_value = list() //export instance => total value of sold objects
+ var/list/exported_atoms_ref = list() //if they're not deleted they go in here for use.
// external_report works as "transaction" object, pass same one in if you're doing more than one export in single go
/proc/export_item_and_contents(atom/movable/AM, apply_elastic = TRUE, delete_unsold = TRUE, dry_run=FALSE, datum/export_report/external_report)
@@ -64,13 +64,13 @@ Then the player gets the profit from selling his own wasted time.
return report
/datum/export
- var/unit_name = "" // Unit name. Only used in "Received [total_amount] [name]s [message]." message
+ var/unit_name = "" // Unit name. Only used in "Received [total_amount] [name]s [message]." message
var/message = ""
- var/cost = 1 // Cost of item, in cargo credits. Must not alow for infinite price dupes, see above.
- var/k_elasticity = 1/30 //coefficient used in marginal price calculation that roughly corresponds to the inverse of price elasticity, or "quantity elasticity"
- var/list/export_types = list() // Type of the exported object. If none, the export datum is considered base type.
- var/include_subtypes = TRUE // Set to FALSE to make the datum apply only to a strict type.
- var/list/exclude_types = list() // Types excluded from export
+ var/cost = 1 // Cost of item, in cargo credits. Must not alow for infinite price dupes, see above.
+ var/k_elasticity = 1/30 //coefficient used in marginal price calculation that roughly corresponds to the inverse of price elasticity, or "quantity elasticity"
+ var/list/export_types = list() // Type of the exported object. If none, the export datum is considered base type.
+ var/include_subtypes = TRUE // Set to FALSE to make the datum apply only to a strict type.
+ var/list/exclude_types = list() // Types excluded from export
//cost includes elasticity, this does not.
var/init_cost
@@ -99,9 +99,9 @@ Then the player gets the profit from selling his own wasted time.
var/amount = get_amount(O)
if(apply_elastic)
if(k_elasticity!=0)
- return round((cost/k_elasticity) * (1 - NUM_E**(-1 * k_elasticity * amount))) //anti-derivative of the marginal cost function
+ return round((cost/k_elasticity) * (1 - NUM_E**(-1 * k_elasticity * amount))) //anti-derivative of the marginal cost function
else
- return round(cost * amount) //alternative form derived from L'Hopital to avoid division by 0
+ return round(cost * amount) //alternative form derived from L'Hopital to avoid division by 0
else
return round(init_cost * amount)
@@ -156,7 +156,7 @@ Then the player gets the profit from selling his own wasted time.
if(!dry_run)
if(apply_elastic)
- cost *= NUM_E**(-1*k_elasticity*amount) //marginal cost modifier
+ cost *= NUM_E**(-1*k_elasticity*amount) //marginal cost modifier
SSblackbox.record_feedback("nested tally", "export_sold_cost", 1, list("[O.type]", "[the_cost]"))
return TRUE
diff --git a/code/modules/cargo/exports/organs.dm b/code/modules/cargo/exports/organs.dm
index d3a877061c2..de4d8429df3 100644
--- a/code/modules/cargo/exports/organs.dm
+++ b/code/modules/cargo/exports/organs.dm
@@ -1,5 +1,5 @@
/datum/export/organ
- include_subtypes = FALSE //CentCom doesn't need organs from non-humans.
+ include_subtypes = FALSE //CentCom doesn't need organs from non-humans.
/datum/export/organ/heart
cost = CARGO_CRATE_VALUE * 0.2 //For the man who has everything and nothing.
diff --git a/code/modules/cargo/exports/seeds.dm b/code/modules/cargo/exports/seeds.dm
index 067ee6af8b8..2415fde99ba 100644
--- a/code/modules/cargo/exports/seeds.dm
+++ b/code/modules/cargo/exports/seeds.dm
@@ -1,6 +1,6 @@
/datum/export/seed
cost = CARGO_CRATE_VALUE * 0.25 // Gets multiplied by potency
- k_elasticity = 1 //price inelastic/quantity elastic, only need to export a few samples
+ k_elasticity = 1 //price inelastic/quantity elastic, only need to export a few samples
unit_name = "new plant species sample"
export_types = list(/obj/item/seeds)
var/needs_discovery = FALSE // Only for undiscovered species
diff --git a/code/modules/cargo/exports/tools.dm b/code/modules/cargo/exports/tools.dm
index 2c46fdbffba..4714099a8af 100644
--- a/code/modules/cargo/exports/tools.dm
+++ b/code/modules/cargo/exports/tools.dm
@@ -3,9 +3,9 @@
unit_name = "toolbox"
export_types = list(/obj/item/storage/toolbox)
-// mechanical toolbox: 22cr
-// emergency toolbox: 17-20cr
-// electrical toolbox: 36cr
+// mechanical toolbox: 22cr
+// emergency toolbox: 17-20cr
+// electrical toolbox: 36cr
// robust: priceless
// Basic tools
diff --git a/code/modules/cargo/packs.dm b/code/modules/cargo/packs.dm
index b1a8e307c0a..ce5d8bd614c 100644
--- a/code/modules/cargo/packs.dm
+++ b/code/modules/cargo/packs.dm
@@ -732,7 +732,7 @@
/datum/supply_pack/engineering/powergamermitts
name = "Insulated Gloves Crate"
desc = "The backbone of modern society. Barely ever ordered for actual engineering. Contains three insulated gloves."
- cost = CARGO_CRATE_VALUE * 8 //Made of pure-grade bullshittinium
+ cost = CARGO_CRATE_VALUE * 8 //Made of pure-grade bullshittinium
access_view = ACCESS_ENGINE_EQUIP
contains = list(/obj/item/clothing/gloves/color/yellow,
/obj/item/clothing/gloves/color/yellow,
@@ -2372,7 +2372,7 @@
if(prob(30)) //Not all mafioso have mustaches, some people also find this item annoying.
new /obj/item/clothing/mask/fakemoustache/italian(C)
if(prob(10)) //A little extra sugar every now and then to shake things up.
- new /obj/item/switchblade(C)
+ new /obj/item/switchblade(C)
/datum/supply_pack/costumes_toys/randomised/tcg
name = "Big-Ass Booster Pack Pack"
@@ -2535,7 +2535,7 @@
/datum/supply_pack/misc/religious_supplies
name = "Religious Supplies Crate"
desc = "Keep your local chaplain happy and well-supplied, lest they call down judgement upon your cargo bay. Contains two bottles of holywater, bibles, chaplain robes, and burial garmets."
- cost = CARGO_CRATE_VALUE * 6 // it costs so much because the Space Church needs funding to build a cathedral
+ cost = CARGO_CRATE_VALUE * 6 // it costs so much because the Space Church needs funding to build a cathedral
access_view = ACCESS_CHAPEL_OFFICE
contains = list(/obj/item/reagent_containers/food/drinks/bottle/holywater,
/obj/item/reagent_containers/food/drinks/bottle/holywater,
diff --git a/code/modules/client/client_procs.dm b/code/modules/client/client_procs.dm
index 19b2443e471..a8c3886ce37 100644
--- a/code/modules/client/client_procs.dm
+++ b/code/modules/client/client_procs.dm
@@ -1,8 +1,8 @@
////////////
//SECURITY//
////////////
-#define UPLOAD_LIMIT 524288 //Restricts client uploads to the server to 0.5MB
-#define UPLOAD_LIMIT_ADMIN 2621440 //Restricts admin client uploads to the server to 2.5MB
+#define UPLOAD_LIMIT 524288 //Restricts client uploads to the server to 0.5MB
+#define UPLOAD_LIMIT_ADMIN 2621440 //Restricts admin client uploads to the server to 2.5MB
GLOBAL_LIST_INIT(blacklisted_builds, list(
"1407" = "bug preventing client display overrides from working leads to clients being able to see things/mobs they shouldn't be able to see",
@@ -11,12 +11,12 @@ GLOBAL_LIST_INIT(blacklisted_builds, list(
))
-#define LIMITER_SIZE 5
-#define CURRENT_SECOND 1
-#define SECOND_COUNT 2
-#define CURRENT_MINUTE 3
-#define MINUTE_COUNT 4
-#define ADMINSWARNED_AT 5
+#define LIMITER_SIZE 5
+#define CURRENT_SECOND 1
+#define SECOND_COUNT 2
+#define CURRENT_MINUTE 3
+#define MINUTE_COUNT 4
+#define ADMINSWARNED_AT 5
/*
When somebody clicks a link in game, this Topic is called first.
It does the stuff in this proc and then is redirected to the Topic() proc for the src=[0xWhatever]
@@ -34,7 +34,7 @@ GLOBAL_LIST_INIT(blacklisted_builds, list(
*/
/client/Topic(href, href_list, hsrc)
- if(!usr || usr != mob) //stops us calling Topic for somebody else's client. Also helps prevent usr=null
+ if(!usr || usr != mob) //stops us calling Topic for somebody else's client. Also helps prevent usr=null
return
//SKYRAT EDIT ADDITION BEGIN - MENTOR
if(mentor_client_procs(href_list))
@@ -128,7 +128,7 @@ GLOBAL_LIST_INIT(blacklisted_builds, list(
if(QDELETED(real_src))
return
- ..() //redirect to hsrc.Topic()
+ ..() //redirect to hsrc.Topic()
/client/proc/is_content_unlocked()
if(!prefs.unlock_content)
@@ -204,7 +204,7 @@ GLOBAL_LIST_INIT(blacklisted_builds, list(
/client/New(TopicData)
var/tdata = TopicData //save this for later use
- TopicData = null //Prevent calls to client.Topic from connect
+ TopicData = null //Prevent calls to client.Topic from connect
if(connection != "seeker" && connection != "web")//Invalid connection type.
return null
@@ -252,8 +252,8 @@ GLOBAL_LIST_INIT(blacklisted_builds, list(
else
prefs = new /datum/preferences(src)
GLOB.preferences_datums[ckey] = prefs
- prefs.last_ip = address //these are gonna be used for banning
- prefs.last_id = computer_id //these are gonna be used for banning
+ prefs.last_ip = address //these are gonna be used for banning
+ prefs.last_id = computer_id //these are gonna be used for banning
fps = (prefs.clientfps < 0) ? RECOMMENDED_FPS : prefs.clientfps
if(fexists(roundend_report_file()))
@@ -298,7 +298,7 @@ GLOBAL_LIST_INIT(blacklisted_builds, list(
GLOB.player_details[ckey] = player_details
- . = ..() //calls mob.Login()
+ . = ..() //calls mob.Login()
if (length(GLOB.stickybanadminexemptions))
GLOB.stickybanadminexemptions -= ckey
if (!length(GLOB.stickybanadminexemptions))
@@ -341,7 +341,7 @@ GLOBAL_LIST_INIT(blacklisted_builds, list(
var/cev = CONFIG_GET(number/client_error_version)
var/ceb = CONFIG_GET(number/client_error_build)
var/cwv = CONFIG_GET(number/client_warn_version)
- if (byond_version < cev || (byond_version == cev && byond_build < ceb)) //Out of date client.
+ if (byond_version < cev || (byond_version == cev && byond_build < ceb)) //Out of date client.
to_chat(src, "Your version of BYOND is too old:")
to_chat(src, CONFIG_GET(string/client_error_message))
to_chat(src, "Your version: [byond_version].[byond_build]")
@@ -352,7 +352,7 @@ GLOBAL_LIST_INIT(blacklisted_builds, list(
else
qdel(src)
return
- else if (byond_version < cwv) //We have words for this client.
+ else if (byond_version < cwv) //We have words for this client.
if(CONFIG_GET(flag/client_warn_popup))
var/msg = "Your version of byond may be getting out of date:
"
msg += CONFIG_GET(string/client_warn_message) + "
"
@@ -1046,11 +1046,11 @@ GLOBAL_LIST_INIT(blacklisted_builds, list(
///Redirect proc that makes it easier to call the unlock achievement proc. Achievement type is the typepath to the award, user is the mob getting the award, and value is an optional variable used for leaderboard value increments
/client/proc/give_award(achievement_type, mob/user, value = 1)
- return player_details.achievements.unlock(achievement_type, user, value)
+ return player_details.achievements.unlock(achievement_type, user, value)
///Redirect proc that makes it easier to get the status of an achievement. Achievement type is the typepath to the award.
/client/proc/get_award_status(achievement_type, mob/user, value = 1)
- return player_details.achievements.get_achievement_status(achievement_type)
+ return player_details.achievements.get_achievement_status(achievement_type)
///Gives someone hearted status for OOC, from behavior commendations
/client/proc/adjust_heart(duration = 24 HOURS)
diff --git a/code/modules/client/preferences.dm b/code/modules/client/preferences.dm
index a47586a01ed..ad0e4b21e07 100644
--- a/code/modules/client/preferences.dm
+++ b/code/modules/client/preferences.dm
@@ -6,7 +6,7 @@ GLOBAL_LIST_EMPTY(preferences_datums)
var/client/parent
//doohickeys for savefiles
var/path
- var/default_slot = 1 //Holder so it doesn't default to slot 1, rather the last one used
+ var/default_slot = 1 //Holder so it doesn't default to slot 1, rather the last one used
var/max_save_slots = 3
//non-preference stuff
@@ -15,17 +15,17 @@ GLOBAL_LIST_EMPTY(preferences_datums)
var/last_id
//game-preferences
- var/lastchangelog = "" //Saved changlog filesize to detect if there was a change
+ var/lastchangelog = "" //Saved changlog filesize to detect if there was a change
var/ooccolor = "#c43b23"
- var/asaycolor = "#ff4500" //This won't change the color for current admins, only incoming ones.
+ var/asaycolor = "#ff4500" //This won't change the color for current admins, only incoming ones.
/// If we spawn an ERT as an admin and choose to spawn as the briefing officer, we'll be given this outfit
var/brief_outfit = /datum/outfit/centcom/commander
var/enable_tips = TRUE
var/tip_delay = 500 //tip delay in milliseconds
//Antag preferences
- var/list/be_special = list() //Special role selection
- var/tmp/old_be_special = 0 //Bitflag version of be_special, used to update old savefiles and nothing more
+ var/list/be_special = list() //Special role selection
+ var/tmp/old_be_special = 0 //Bitflag version of be_special, used to update old savefiles and nothing more
//If it's 0, that's good, if it's anything but 0, the owner of this prefs file's antag choices were,
//autocorrected this round, not that you'd need to check that.
@@ -65,23 +65,23 @@ GLOBAL_LIST_EMPTY(preferences_datums)
var/uses_glasses_colour = 0
//character preferences
- var/slot_randomized //keeps track of round-to-round randomization of the character slot, prevents overwriting
- var/real_name //our character's name
- var/gender = MALE //gender of character (well duh)
- var/age = 30 //age of character
- var/underwear = "Nude" //underwear type
- var/underwear_color = "000" //underwear color
- var/undershirt = "Nude" //undershirt type
- var/socks = "Nude" //socks type
- var/backpack = DBACKPACK //backpack type
- var/jumpsuit_style = PREF_SUIT //suit/skirt
- var/hairstyle = "Bald" //Hair type
- var/hair_color = "000" //Hair color
- var/facial_hairstyle = "Shaved" //Face hair type
- var/facial_hair_color = "000" //Facial hair color
- var/skin_tone = "caucasian1" //Skin color
- var/eye_color = "000" //Eye color
- var/datum/species/pref_species = new /datum/species/human() //Mutant race
+ var/slot_randomized //keeps track of round-to-round randomization of the character slot, prevents overwriting
+ var/real_name //our character's name
+ var/gender = MALE //gender of character (well duh)
+ var/age = 30 //age of character
+ var/underwear = "Nude" //underwear type
+ var/underwear_color = "000" //underwear color
+ var/undershirt = "Nude" //undershirt type
+ var/socks = "Nude" //socks type
+ var/backpack = DBACKPACK //backpack type
+ var/jumpsuit_style = PREF_SUIT //suit/skirt
+ var/hairstyle = "Bald" //Hair type
+ var/hair_color = "000" //Hair color
+ var/facial_hairstyle = "Shaved" //Face hair type
+ var/facial_hair_color = "000" //Facial hair color
+ var/skin_tone = "caucasian1" //Skin color
+ var/eye_color = "000" //Eye color
+ var/datum/species/pref_species = new /datum/species/human() //Mutant race
var/list/features = list("mcolor" = "FFF", "ethcolor" = "9c3030", "tail_lizard" = "Smooth", "tail_human" = "None", "snout" = "Round", "horns" = "None", "ears" = "None", "wings" = "None", "frills" = "None", "spines" = "None", "body_markings" = "None", "legs" = "Normal Legs", "moth_wings" = "Plain", "moth_antennae" = "Plain", "moth_markings" = "None")
var/list/randomise = list(RANDOM_UNDERWEAR = TRUE, RANDOM_UNDERWEAR_COLOR = TRUE, RANDOM_UNDERSHIRT = TRUE, RANDOM_SOCKS = TRUE, RANDOM_BACKPACK = TRUE, RANDOM_JUMPSUIT_STYLE = TRUE, RANDOM_HAIRSTYLE = TRUE, RANDOM_HAIR_COLOR = TRUE, RANDOM_FACIAL_HAIRSTYLE = TRUE, RANDOM_FACIAL_HAIR_COLOR = TRUE, RANDOM_SKIN_TONE = TRUE, RANDOM_EYE_COLOR = TRUE)
var/phobia = "spiders"
@@ -160,13 +160,13 @@ GLOBAL_LIST_EMPTY(preferences_datums)
if(load_character())
return
//we couldn't load character data so just randomize the character appearance + name
- random_character() //let's create a random character then - rather than a fat, bald and naked man.
+ random_character() //let's create a random character then - rather than a fat, bald and naked man.
key_bindings = deepCopyList(GLOB.hotkey_keybinding_list_by_key) // give them default keybinds and update their movement keys
C?.set_macros()
real_name = pref_species.random_name(gender,1)
if(!loaded_preferences_successfully)
save_preferences()
- save_character() //let's save this new random character so it doesn't keep generating new ones.
+ save_character() //let's save this new random character so it doesn't keep generating new ones.
menuoptions = list()
return
@@ -1113,7 +1113,7 @@ GLOBAL_LIST_EMPTY(preferences_datums)
if(GetQuirkBalance() < 0)
all_quirks = list()
-/datum/preferences/Topic(href, href_list, hsrc) //yeah, gotta do this I guess..
+/datum/preferences/Topic(href, href_list, hsrc) //yeah, gotta do this I guess..
. = ..()
if(href_list["close"])
var/client/C = usr.client
@@ -1918,7 +1918,7 @@ GLOBAL_LIST_EMPTY(preferences_datums)
if(CONFIG_GET(flag/humans_need_surnames) && (pref_species.id == "human"))
var/firstspace = findtext(real_name, " ")
var/name_length = length(real_name)
- if(!firstspace) //we need a surname
+ if(!firstspace) //we need a surname
real_name += " [pick(GLOB.last_names)]"
else if(firstspace == name_length)
real_name += "[pick(GLOB.last_names)]"
diff --git a/code/modules/client/preferences_savefile.dm b/code/modules/client/preferences_savefile.dm
index cc6b22e0a78..6b385a75dac 100644
--- a/code/modules/client/preferences_savefile.dm
+++ b/code/modules/client/preferences_savefile.dm
@@ -1,13 +1,13 @@
//This is the lowest supported version, anything below this is completely obsolete and the entire savefile will be wiped.
//SKYRAT EDIT REMOVAL BEGIN - CUSTOMIZATION (moved to modular)
/*
-#define SAVEFILE_VERSION_MIN 32
+#define SAVEFILE_VERSION_MIN 32
//This is the current version, anything below this will attempt to update (if it's not obsolete)
-// You do not need to raise this if you are adding new values that have sane defaults.
-// Only raise this value when changing the meaning/format/name/layout of an existing value
-// where you would want the updater procs below to run
-#define SAVEFILE_VERSION_MAX 39
+// You do not need to raise this if you are adding new values that have sane defaults.
+// Only raise this value when changing the meaning/format/name/layout of an existing value
+// where you would want the updater procs below to run
+#define SAVEFILE_VERSION_MAX 39
/*
SAVEFILE UPDATING/VERSIONING - 'Simplified', or rather, more coder-friendly ~Carn
@@ -152,7 +152,7 @@ SAVEFILE UPDATING/VERSIONING - 'Simplified', or rather, more coder-friendly ~Car
S.cd = "/"
var/needs_update = savefile_needs_update(S)
- if(needs_update == -2) //fatal, can't load any data
+ if(needs_update == -2) //fatal, can't load any data
var/bacpath = "[path].updatebac" //todo: if the savefile version is higher then the server, check the backup, and give the player a prompt to load the backup
if (fexists(bacpath))
fdel(bacpath) //only keep 1 version of backup
@@ -218,44 +218,44 @@ SAVEFILE UPDATING/VERSIONING - 'Simplified', or rather, more coder-friendly ~Car
if (fexists(bacpath))
fdel(bacpath) //only keep 1 version of backup
fcopy(S, bacpath) //byond helpfully lets you use a savefile for the first arg.
- update_preferences(needs_update, S) //needs_update = savefile_version if we need an update (positive integer)
+ update_preferences(needs_update, S) //needs_update = savefile_version if we need an update (positive integer)
//Sanitize
- asaycolor = sanitize_ooccolor(sanitize_hexcolor(asaycolor, 6, 1, initial(asaycolor)))
- ooccolor = sanitize_ooccolor(sanitize_hexcolor(ooccolor, 6, 1, initial(ooccolor)))
- lastchangelog = sanitize_text(lastchangelog, initial(lastchangelog))
- UI_style = sanitize_inlist(UI_style, GLOB.available_ui_styles, GLOB.available_ui_styles[1])
- hotkeys = sanitize_integer(hotkeys, FALSE, TRUE, initial(hotkeys))
- chat_on_map = sanitize_integer(chat_on_map, FALSE, TRUE, initial(chat_on_map))
+ asaycolor = sanitize_ooccolor(sanitize_hexcolor(asaycolor, 6, 1, initial(asaycolor)))
+ ooccolor = sanitize_ooccolor(sanitize_hexcolor(ooccolor, 6, 1, initial(ooccolor)))
+ lastchangelog = sanitize_text(lastchangelog, initial(lastchangelog))
+ UI_style = sanitize_inlist(UI_style, GLOB.available_ui_styles, GLOB.available_ui_styles[1])
+ hotkeys = sanitize_integer(hotkeys, FALSE, TRUE, initial(hotkeys))
+ chat_on_map = sanitize_integer(chat_on_map, FALSE, TRUE, initial(chat_on_map))
max_chat_length = sanitize_integer(max_chat_length, 1, CHAT_MESSAGE_MAX_LENGTH, initial(max_chat_length))
- see_chat_non_mob = sanitize_integer(see_chat_non_mob, FALSE, TRUE, initial(see_chat_non_mob))
- see_rc_emotes = sanitize_integer(see_rc_emotes, FALSE, TRUE, initial(see_rc_emotes))
+ see_chat_non_mob = sanitize_integer(see_chat_non_mob, FALSE, TRUE, initial(see_chat_non_mob))
+ see_rc_emotes = sanitize_integer(see_rc_emotes, FALSE, TRUE, initial(see_rc_emotes))
broadcast_login_logout = sanitize_integer(broadcast_login_logout, FALSE, TRUE, initial(broadcast_login_logout))
- tgui_fancy = sanitize_integer(tgui_fancy, FALSE, TRUE, initial(tgui_fancy))
- tgui_lock = sanitize_integer(tgui_lock, FALSE, TRUE, initial(tgui_lock))
- buttons_locked = sanitize_integer(buttons_locked, FALSE, TRUE, initial(buttons_locked))
- windowflashing = sanitize_integer(windowflashing, FALSE, TRUE, initial(windowflashing))
- default_slot = sanitize_integer(default_slot, 1, max_save_slots, initial(default_slot))
- toggles = sanitize_integer(toggles, 0, (2**24)-1, initial(toggles))
- clientfps = sanitize_integer(clientfps, -1, 1000, 0)
- parallax = sanitize_integer(parallax, PARALLAX_INSANE, PARALLAX_DISABLE, null)
- ambientocclusion = sanitize_integer(ambientocclusion, FALSE, TRUE, initial(ambientocclusion))
- auto_fit_viewport = sanitize_integer(auto_fit_viewport, FALSE, TRUE, initial(auto_fit_viewport))
+ tgui_fancy = sanitize_integer(tgui_fancy, FALSE, TRUE, initial(tgui_fancy))
+ tgui_lock = sanitize_integer(tgui_lock, FALSE, TRUE, initial(tgui_lock))
+ buttons_locked = sanitize_integer(buttons_locked, FALSE, TRUE, initial(buttons_locked))
+ windowflashing = sanitize_integer(windowflashing, FALSE, TRUE, initial(windowflashing))
+ default_slot = sanitize_integer(default_slot, 1, max_save_slots, initial(default_slot))
+ toggles = sanitize_integer(toggles, 0, (2**24)-1, initial(toggles))
+ clientfps = sanitize_integer(clientfps, -1, 1000, 0)
+ parallax = sanitize_integer(parallax, PARALLAX_INSANE, PARALLAX_DISABLE, null)
+ ambientocclusion = sanitize_integer(ambientocclusion, FALSE, TRUE, initial(ambientocclusion))
+ auto_fit_viewport = sanitize_integer(auto_fit_viewport, FALSE, TRUE, initial(auto_fit_viewport))
widescreenpref = sanitize_integer(widescreenpref, FALSE, TRUE, initial(widescreenpref))
- pixel_size = sanitize_float(pixel_size, PIXEL_SCALING_AUTO, PIXEL_SCALING_3X, 0.5, initial(pixel_size))
+ pixel_size = sanitize_float(pixel_size, PIXEL_SCALING_AUTO, PIXEL_SCALING_3X, 0.5, initial(pixel_size))
scaling_method = sanitize_text(scaling_method, initial(scaling_method))
- ghost_form = sanitize_inlist(ghost_form, GLOB.ghost_forms, initial(ghost_form))
- ghost_orbit = sanitize_inlist(ghost_orbit, GLOB.ghost_orbits, initial(ghost_orbit))
- ghost_accs = sanitize_inlist(ghost_accs, GLOB.ghost_accs_options, GHOST_ACCS_DEFAULT_OPTION)
- ghost_others = sanitize_inlist(ghost_others, GLOB.ghost_others_options, GHOST_OTHERS_DEFAULT_OPTION)
- menuoptions = SANITIZE_LIST(menuoptions)
- be_special = SANITIZE_LIST(be_special)
- brief_outfit = sanitize_inlist(brief_outfit, subtypesof(/datum/outfit), null)
- pda_style = sanitize_inlist(pda_style, GLOB.pda_styles, initial(pda_style))
- pda_color = sanitize_hexcolor(pda_color, 6, 1, initial(pda_color))
- key_bindings = sanitize_keybindings(key_bindings)
+ ghost_form = sanitize_inlist(ghost_form, GLOB.ghost_forms, initial(ghost_form))
+ ghost_orbit = sanitize_inlist(ghost_orbit, GLOB.ghost_orbits, initial(ghost_orbit))
+ ghost_accs = sanitize_inlist(ghost_accs, GLOB.ghost_accs_options, GHOST_ACCS_DEFAULT_OPTION)
+ ghost_others = sanitize_inlist(ghost_others, GLOB.ghost_others_options, GHOST_OTHERS_DEFAULT_OPTION)
+ menuoptions = SANITIZE_LIST(menuoptions)
+ be_special = SANITIZE_LIST(be_special)
+ brief_outfit = sanitize_inlist(brief_outfit, subtypesof(/datum/outfit), null)
+ pda_style = sanitize_inlist(pda_style, GLOB.pda_styles, initial(pda_style))
+ pda_color = sanitize_hexcolor(pda_color, 6, 1, initial(pda_color))
+ key_bindings = sanitize_keybindings(key_bindings)
if(needs_update >= 0) //save the updated version
var/old_default_slot = default_slot
@@ -285,7 +285,7 @@ SAVEFILE UPDATING/VERSIONING - 'Simplified', or rather, more coder-friendly ~Car
return FALSE
S.cd = "/"
- WRITE_FILE(S["version"] , SAVEFILE_VERSION_MAX) //updates (or failing that the sanity checks) will ensure data is not invalid at load. Assume up-to-date
+ WRITE_FILE(S["version"] , SAVEFILE_VERSION_MAX) //updates (or failing that the sanity checks) will ensure data is not invalid at load. Assume up-to-date
//general preferences
WRITE_FILE(S["asaycolor"], asaycolor)
@@ -350,7 +350,7 @@ SAVEFILE UPDATING/VERSIONING - 'Simplified', or rather, more coder-friendly ~Car
S.cd = "/character[slot]"
var/needs_update = savefile_needs_update(S)
- if(needs_update == -2) //fatal, can't load any data
+ if(needs_update == -2) //fatal, can't load any data
return FALSE
//Species
@@ -422,7 +422,7 @@ SAVEFILE UPDATING/VERSIONING - 'Simplified', or rather, more coder-friendly ~Car
//try to fix any outdated data if necessary
//preference updating will handle saving the updated data for us.
if(needs_update >= 0)
- update_character(needs_update, S) //needs_update == savefile_version if we need an update (positive integer)
+ update_character(needs_update, S) //needs_update == savefile_version if we need an update (positive integer)
//Sanitize
real_name = reject_bad_name(real_name)
@@ -446,50 +446,50 @@ SAVEFILE UPDATING/VERSIONING - 'Simplified', or rather, more coder-friendly ~Car
randomise = SANITIZE_LIST(randomise)
if(gender == MALE)
- hairstyle = sanitize_inlist(hairstyle, GLOB.hairstyles_male_list)
- facial_hairstyle = sanitize_inlist(facial_hairstyle, GLOB.facial_hairstyles_male_list)
- underwear = sanitize_inlist(underwear, GLOB.underwear_m)
- undershirt = sanitize_inlist(undershirt, GLOB.undershirt_m)
+ hairstyle = sanitize_inlist(hairstyle, GLOB.hairstyles_male_list)
+ facial_hairstyle = sanitize_inlist(facial_hairstyle, GLOB.facial_hairstyles_male_list)
+ underwear = sanitize_inlist(underwear, GLOB.underwear_m)
+ undershirt = sanitize_inlist(undershirt, GLOB.undershirt_m)
else if(gender == FEMALE)
- hairstyle = sanitize_inlist(hairstyle, GLOB.hairstyles_female_list)
- facial_hairstyle = sanitize_inlist(facial_hairstyle, GLOB.facial_hairstyles_female_list)
- underwear = sanitize_inlist(underwear, GLOB.underwear_f)
- undershirt = sanitize_inlist(undershirt, GLOB.undershirt_f)
+ hairstyle = sanitize_inlist(hairstyle, GLOB.hairstyles_female_list)
+ facial_hairstyle = sanitize_inlist(facial_hairstyle, GLOB.facial_hairstyles_female_list)
+ underwear = sanitize_inlist(underwear, GLOB.underwear_f)
+ undershirt = sanitize_inlist(undershirt, GLOB.undershirt_f)
else
- hairstyle = sanitize_inlist(hairstyle, GLOB.hairstyles_list)
- facial_hairstyle = sanitize_inlist(facial_hairstyle, GLOB.facial_hairstyles_list)
- underwear = sanitize_inlist(underwear, GLOB.underwear_list)
- undershirt = sanitize_inlist(undershirt, GLOB.undershirt_list)
+ hairstyle = sanitize_inlist(hairstyle, GLOB.hairstyles_list)
+ facial_hairstyle = sanitize_inlist(facial_hairstyle, GLOB.facial_hairstyles_list)
+ underwear = sanitize_inlist(underwear, GLOB.underwear_list)
+ undershirt = sanitize_inlist(undershirt, GLOB.undershirt_list)
- socks = sanitize_inlist(socks, GLOB.socks_list)
- age = sanitize_integer(age, AGE_MIN, AGE_MAX, initial(age))
- hair_color = sanitize_hexcolor(hair_color, 3, 0)
- facial_hair_color = sanitize_hexcolor(facial_hair_color, 3, 0)
- underwear_color = sanitize_hexcolor(underwear_color, 3, 0)
- eye_color = sanitize_hexcolor(eye_color, 3, 0)
- skin_tone = sanitize_inlist(skin_tone, GLOB.skin_tones)
- backpack = sanitize_inlist(backpack, GLOB.backpacklist, initial(backpack))
- jumpsuit_style = sanitize_inlist(jumpsuit_style, GLOB.jumpsuitlist, initial(jumpsuit_style))
+ socks = sanitize_inlist(socks, GLOB.socks_list)
+ age = sanitize_integer(age, AGE_MIN, AGE_MAX, initial(age))
+ hair_color = sanitize_hexcolor(hair_color, 3, 0)
+ facial_hair_color = sanitize_hexcolor(facial_hair_color, 3, 0)
+ underwear_color = sanitize_hexcolor(underwear_color, 3, 0)
+ eye_color = sanitize_hexcolor(eye_color, 3, 0)
+ skin_tone = sanitize_inlist(skin_tone, GLOB.skin_tones)
+ backpack = sanitize_inlist(backpack, GLOB.backpacklist, initial(backpack))
+ jumpsuit_style = sanitize_inlist(jumpsuit_style, GLOB.jumpsuitlist, initial(jumpsuit_style))
uplink_spawn_loc = sanitize_inlist(uplink_spawn_loc, GLOB.uplink_spawn_loc_list, initial(uplink_spawn_loc))
playtime_reward_cloak = sanitize_integer(playtime_reward_cloak)
- features["mcolor"] = sanitize_hexcolor(features["mcolor"], 3, 0)
- features["ethcolor"] = copytext_char(features["ethcolor"], 1, 7)
- features["tail_lizard"] = sanitize_inlist(features["tail_lizard"], GLOB.tails_list_lizard)
- features["tail_human"] = sanitize_inlist(features["tail_human"], GLOB.tails_list_human, "None")
- features["snout"] = sanitize_inlist(features["snout"], GLOB.snouts_list)
- features["horns"] = sanitize_inlist(features["horns"], GLOB.horns_list)
- features["ears"] = sanitize_inlist(features["ears"], GLOB.ears_list, "None")
- features["frills"] = sanitize_inlist(features["frills"], GLOB.frills_list)
- features["spines"] = sanitize_inlist(features["spines"], GLOB.spines_list)
- features["body_markings"] = sanitize_inlist(features["body_markings"], GLOB.body_markings_list)
- features["feature_lizard_legs"] = sanitize_inlist(features["legs"], GLOB.legs_list, "Normal Legs")
- features["moth_wings"] = sanitize_inlist(features["moth_wings"], GLOB.moth_wings_list, "Plain")
- features["moth_antennae"] = sanitize_inlist(features["moth_antennae"], GLOB.moth_antennae_list, "Plain")
- features["moth_markings"] = sanitize_inlist(features["moth_markings"], GLOB.moth_markings_list, "None")
+ features["mcolor"] = sanitize_hexcolor(features["mcolor"], 3, 0)
+ features["ethcolor"] = copytext_char(features["ethcolor"], 1, 7)
+ features["tail_lizard"] = sanitize_inlist(features["tail_lizard"], GLOB.tails_list_lizard)
+ features["tail_human"] = sanitize_inlist(features["tail_human"], GLOB.tails_list_human, "None")
+ features["snout"] = sanitize_inlist(features["snout"], GLOB.snouts_list)
+ features["horns"] = sanitize_inlist(features["horns"], GLOB.horns_list)
+ features["ears"] = sanitize_inlist(features["ears"], GLOB.ears_list, "None")
+ features["frills"] = sanitize_inlist(features["frills"], GLOB.frills_list)
+ features["spines"] = sanitize_inlist(features["spines"], GLOB.spines_list)
+ features["body_markings"] = sanitize_inlist(features["body_markings"], GLOB.body_markings_list)
+ features["feature_lizard_legs"] = sanitize_inlist(features["legs"], GLOB.legs_list, "Normal Legs")
+ features["moth_wings"] = sanitize_inlist(features["moth_wings"], GLOB.moth_wings_list, "Plain")
+ features["moth_antennae"] = sanitize_inlist(features["moth_antennae"], GLOB.moth_antennae_list, "Plain")
+ features["moth_markings"] = sanitize_inlist(features["moth_markings"], GLOB.moth_markings_list, "None")
persistent_scars = sanitize_integer(persistent_scars)
- joblessrole = sanitize_integer(joblessrole, 1, 3, initial(joblessrole))
+ joblessrole = sanitize_integer(joblessrole, 1, 3, initial(joblessrole))
//Validate job prefs
for(var/j in job_preferences)
if(job_preferences[j] != JP_LOW && job_preferences[j] != JP_MEDIUM && job_preferences[j] != JP_HIGH)
@@ -508,45 +508,45 @@ SAVEFILE UPDATING/VERSIONING - 'Simplified', or rather, more coder-friendly ~Car
return FALSE
S.cd = "/character[default_slot]"
- WRITE_FILE(S["version"] , SAVEFILE_VERSION_MAX) //load_character will sanitize any bad data, so assume up-to-date.)
+ WRITE_FILE(S["version"] , SAVEFILE_VERSION_MAX) //load_character will sanitize any bad data, so assume up-to-date.)
//Character
- WRITE_FILE(S["real_name"] , real_name)
- WRITE_FILE(S["gender"] , gender)
- WRITE_FILE(S["body_type"] , body_type)
- WRITE_FILE(S["age"] , age)
- WRITE_FILE(S["hair_color"] , hair_color)
- WRITE_FILE(S["facial_hair_color"] , facial_hair_color)
- WRITE_FILE(S["eye_color"] , eye_color)
- WRITE_FILE(S["skin_tone"] , skin_tone)
- WRITE_FILE(S["hairstyle_name"] , hairstyle)
- WRITE_FILE(S["facial_style_name"] , facial_hairstyle)
- WRITE_FILE(S["underwear"] , underwear)
- WRITE_FILE(S["underwear_color"] , underwear_color)
- WRITE_FILE(S["undershirt"] , undershirt)
- WRITE_FILE(S["socks"] , socks)
- WRITE_FILE(S["backpack"] , backpack)
- WRITE_FILE(S["jumpsuit_style"] , jumpsuit_style)
- WRITE_FILE(S["uplink_loc"] , uplink_spawn_loc)
- WRITE_FILE(S["playtime_reward_cloak"] , playtime_reward_cloak)
- WRITE_FILE(S["randomise"] , randomise)
- WRITE_FILE(S["species"] , pref_species.id)
+ WRITE_FILE(S["real_name"] , real_name)
+ WRITE_FILE(S["gender"] , gender)
+ WRITE_FILE(S["body_type"] , body_type)
+ WRITE_FILE(S["age"] , age)
+ WRITE_FILE(S["hair_color"] , hair_color)
+ WRITE_FILE(S["facial_hair_color"] , facial_hair_color)
+ WRITE_FILE(S["eye_color"] , eye_color)
+ WRITE_FILE(S["skin_tone"] , skin_tone)
+ WRITE_FILE(S["hairstyle_name"] , hairstyle)
+ WRITE_FILE(S["facial_style_name"] , facial_hairstyle)
+ WRITE_FILE(S["underwear"] , underwear)
+ WRITE_FILE(S["underwear_color"] , underwear_color)
+ WRITE_FILE(S["undershirt"] , undershirt)
+ WRITE_FILE(S["socks"] , socks)
+ WRITE_FILE(S["backpack"] , backpack)
+ WRITE_FILE(S["jumpsuit_style"] , jumpsuit_style)
+ WRITE_FILE(S["uplink_loc"] , uplink_spawn_loc)
+ WRITE_FILE(S["playtime_reward_cloak"] , playtime_reward_cloak)
+ WRITE_FILE(S["randomise"] , randomise)
+ WRITE_FILE(S["species"] , pref_species.id)
WRITE_FILE(S["phobia"], phobia)
- WRITE_FILE(S["feature_mcolor"] , features["mcolor"])
- WRITE_FILE(S["feature_ethcolor"] , features["ethcolor"])
- WRITE_FILE(S["feature_lizard_tail"] , features["tail_lizard"])
- WRITE_FILE(S["feature_human_tail"] , features["tail_human"])
- WRITE_FILE(S["feature_lizard_snout"] , features["snout"])
- WRITE_FILE(S["feature_lizard_horns"] , features["horns"])
- WRITE_FILE(S["feature_human_ears"] , features["ears"])
- WRITE_FILE(S["feature_lizard_frills"] , features["frills"])
- WRITE_FILE(S["feature_lizard_spines"] , features["spines"])
- WRITE_FILE(S["feature_lizard_body_markings"] , features["body_markings"])
- WRITE_FILE(S["feature_lizard_legs"] , features["legs"])
- WRITE_FILE(S["feature_moth_wings"] , features["moth_wings"])
- WRITE_FILE(S["feature_moth_antennae"] , features["moth_antennae"])
- WRITE_FILE(S["feature_moth_markings"] , features["moth_markings"])
- WRITE_FILE(S["persistent_scars"] , persistent_scars)
+ WRITE_FILE(S["feature_mcolor"] , features["mcolor"])
+ WRITE_FILE(S["feature_ethcolor"] , features["ethcolor"])
+ WRITE_FILE(S["feature_lizard_tail"] , features["tail_lizard"])
+ WRITE_FILE(S["feature_human_tail"] , features["tail_human"])
+ WRITE_FILE(S["feature_lizard_snout"] , features["snout"])
+ WRITE_FILE(S["feature_lizard_horns"] , features["horns"])
+ WRITE_FILE(S["feature_human_ears"] , features["ears"])
+ WRITE_FILE(S["feature_lizard_frills"] , features["frills"])
+ WRITE_FILE(S["feature_lizard_spines"] , features["spines"])
+ WRITE_FILE(S["feature_lizard_body_markings"] , features["body_markings"])
+ WRITE_FILE(S["feature_lizard_legs"] , features["legs"])
+ WRITE_FILE(S["feature_moth_wings"] , features["moth_wings"])
+ WRITE_FILE(S["feature_moth_antennae"] , features["moth_antennae"])
+ WRITE_FILE(S["feature_moth_markings"] , features["moth_markings"])
+ WRITE_FILE(S["persistent_scars"] , persistent_scars)
//Custom names
for(var/custom_name_id in GLOB.preferences_custom_names)
@@ -557,12 +557,12 @@ SAVEFILE UPDATING/VERSIONING - 'Simplified', or rather, more coder-friendly ~Car
WRITE_FILE(S["prefered_security_department"] , prefered_security_department)
//Jobs
- WRITE_FILE(S["joblessrole"] , joblessrole)
+ WRITE_FILE(S["joblessrole"] , joblessrole)
//Write prefs
WRITE_FILE(S["job_preferences"] , job_preferences)
//Quirks
- WRITE_FILE(S["all_quirks"] , all_quirks)
+ WRITE_FILE(S["all_quirks"] , all_quirks)
return TRUE
diff --git a/code/modules/client/verbs/ooc.dm b/code/modules/client/verbs/ooc.dm
index 3e591487a9d..2a3f486d7a1 100644
--- a/code/modules/client/verbs/ooc.dm
+++ b/code/modules/client/verbs/ooc.dm
@@ -5,7 +5,7 @@ GLOBAL_VAR_INIT(normal_ooc_colour, "#002eb8")
set name = "OOC" //Gave this shit a shorter name so you only have to time out "ooc" rather than "ooc message" to use it --NeoFite
set category = "OOC"
- if(GLOB.say_disabled) //This is here to try to identify lag problems
+ if(GLOB.say_disabled) //This is here to try to identify lag problems
to_chat(usr, "Speech is currently admin-disabled.")
return
diff --git a/code/modules/client/verbs/suicide.dm b/code/modules/client/verbs/suicide.dm
index bc6ce38f07d..7d9c86104a6 100644
--- a/code/modules/client/verbs/suicide.dm
+++ b/code/modules/client/verbs/suicide.dm
@@ -69,7 +69,7 @@
if(damagetype & OXYLOSS)
adjustOxyLoss(200/damage_mod)
- if(damagetype & MANUAL_SUICIDE) //Assume the object will handle the death.
+ if(damagetype & MANUAL_SUICIDE) //Assume the object will handle the death.
return
//If something went wrong, just do normal oxyloss
@@ -77,7 +77,7 @@
adjustOxyLoss(max(200 - getToxLoss() - getFireLoss() - getBruteLoss() - getOxyLoss(), 0))
death(FALSE)
- ghostize(FALSE) // Disallows reentering body and disassociates mind
+ ghostize(FALSE) // Disallows reentering body and disassociates mind
return
@@ -108,7 +108,7 @@
adjustOxyLoss(max(200 - getToxLoss() - getFireLoss() - getBruteLoss() - getOxyLoss(), 0))
death(FALSE)
- ghostize(FALSE) // Disallows reentering body and disassociates mind
+ ghostize(FALSE) // Disallows reentering body and disassociates mind
/mob/living/brain/verb/suicide()
set hidden = TRUE
@@ -125,7 +125,7 @@
suicide_log()
death(FALSE)
- ghostize(FALSE) // Disallows reentering body and disassociates mind
+ ghostize(FALSE) // Disallows reentering body and disassociates mind
/mob/living/silicon/ai/verb/suicide()
set hidden = TRUE
@@ -144,7 +144,7 @@
//put em at -175
adjustOxyLoss(max(maxHealth * 2 - getToxLoss() - getFireLoss() - getBruteLoss() - getOxyLoss(), 0))
death(FALSE)
- ghostize(FALSE) // Disallows reentering body and disassociates mind
+ ghostize(FALSE) // Disallows reentering body and disassociates mind
/mob/living/silicon/robot/verb/suicide()
set hidden = TRUE
@@ -163,7 +163,7 @@
//put em at -175
adjustOxyLoss(max(maxHealth * 2 - getToxLoss() - getFireLoss() - getBruteLoss() - getOxyLoss(), 0))
death(FALSE)
- ghostize(FALSE) // Disallows reentering body and disassociates mind
+ ghostize(FALSE) // Disallows reentering body and disassociates mind
/mob/living/silicon/pai/verb/suicide()
set hidden = TRUE
@@ -176,7 +176,7 @@
suicide_log()
death(FALSE)
- ghostize(FALSE) // Disallows reentering body and disassociates mind
+ ghostize(FALSE) // Disallows reentering body and disassociates mind
else
to_chat(src, "Aborting suicide attempt.")
@@ -198,7 +198,7 @@
//put em at -175
adjustOxyLoss(max(200 - getFireLoss() - getBruteLoss() - getOxyLoss(), 0))
death(FALSE)
- ghostize(FALSE) // Disallows reentering body and disassociates mind
+ ghostize(FALSE) // Disallows reentering body and disassociates mind
/mob/living/simple_animal/verb/suicide()
set hidden = TRUE
@@ -244,7 +244,7 @@
/mob/living/carbon/canSuicide()
if(!..())
return
- if(!(mobility_flags & MOBILITY_USE)) //just while I finish up the new 'fun' suiciding verb. This is to prevent metagaming via suicide
+ if(!(mobility_flags & MOBILITY_USE)) //just while I finish up the new 'fun' suiciding verb. This is to prevent metagaming via suicide
to_chat(src, "You can't commit suicide whilst immobile! ((You can type Ghost instead however.))")
return
return TRUE
diff --git a/code/modules/clothing/clothing.dm b/code/modules/clothing/clothing.dm
index 293c730ade4..dc2c1c4aee3 100644
--- a/code/modules/clothing/clothing.dm
+++ b/code/modules/clothing/clothing.dm
@@ -9,11 +9,11 @@
///What level of bright light protection item has.
var/flash_protect = FLASH_PROTECTION_NONE
- var/tint = 0 //Sets the item's level of visual impairment tint, normally set to the same as flash_protect
- var/up = 0 //but separated to allow items to protect but not impair vision, like space helmets
- var/visor_flags = 0 //flags that are added/removed when an item is adjusted up/down
- var/visor_flags_inv = 0 //same as visor_flags, but for flags_inv
- var/visor_flags_cover = 0 //same as above, but for flags_cover
+ var/tint = 0 //Sets the item's level of visual impairment tint, normally set to the same as flash_protect
+ var/up = 0 //but separated to allow items to protect but not impair vision, like space helmets
+ var/visor_flags = 0 //flags that are added/removed when an item is adjusted up/down
+ var/visor_flags_inv = 0 //same as visor_flags, but for flags_inv
+ var/visor_flags_cover = 0 //same as above, but for flags_cover
//what to toggle when toggled with weldingvisortoggle()
var/visor_vars_to_toggle = VISOR_FLASHPROTECT | VISOR_TINT | VISOR_VISIONFLAGS | VISOR_DARKNESSVIEW | VISOR_INVISVIEW
lefthand_file = 'icons/mob/inhands/clothing_lefthand.dmi'
@@ -171,7 +171,7 @@
/**
* take_damage_zone() is used for dealing damage to specific bodyparts on a worn piece of clothing, meant to be called from [/obj/item/bodypart/proc/check_woundings_mods]
*
- * This proc only matters when a bodypart that this clothing is covering is harmed by a direct attack (being on fire or in space need not apply), and only if this clothing covers
+ * This proc only matters when a bodypart that this clothing is covering is harmed by a direct attack (being on fire or in space need not apply), and only if this clothing covers
* more than one bodypart to begin with. No point in tracking damage by zone for a hat, and I'm not cruel enough to let you fully break them in a few shots.
* Also if limb_integrity is 0, then this clothing doesn't have bodypart damage enabled so skip it.
*
@@ -416,8 +416,8 @@
var/static/list/damaged_clothes_icons = list()
var/icon/damaged_clothes_icon = damaged_clothes_icons[index]
if(!damaged_clothes_icon)
- damaged_clothes_icon = icon(initial(icon), initial(icon_state), , 1) //we only want to apply damaged effect to the initial icon_state for each object
- damaged_clothes_icon.Blend("#fff", ICON_ADD) //fills the icon_state with white (except where it's transparent)
+ damaged_clothes_icon = icon(initial(icon), initial(icon_state), , 1) //we only want to apply damaged effect to the initial icon_state for each object
+ damaged_clothes_icon.Blend("#fff", ICON_ADD) //fills the icon_state with white (except where it's transparent)
damaged_clothes_icon.Blend(icon('icons/effects/item_damage.dmi', "itemdamaged"), ICON_MULTIPLY) //adds damage effect and the remaining white areas become transparant
damaged_clothes_icon = fcopy_rsc(damaged_clothes_icon)
damaged_clothes_icons[index] = damaged_clothes_icon
@@ -434,10 +434,10 @@ BLIND // can't see anything
*/
/proc/generate_female_clothing(index,t_color,icon,type)
- var/icon/female_clothing_icon = icon("icon"=icon, "icon_state"=t_color)
- var/icon/female_s = icon("icon"='icons/mob/clothing/under/masking_helpers.dmi', "icon_state"="[(type == FEMALE_UNIFORM_FULL) ? "female_full" : "female_top"]")
+ var/icon/female_clothing_icon = icon("icon"=icon, "icon_state"=t_color)
+ var/icon/female_s = icon("icon"='icons/mob/clothing/under/masking_helpers.dmi', "icon_state"="[(type == FEMALE_UNIFORM_FULL) ? "female_full" : "female_top"]")
female_clothing_icon.Blend(female_s, ICON_MULTIPLY)
- female_clothing_icon = fcopy_rsc(female_clothing_icon)
+ female_clothing_icon = fcopy_rsc(female_clothing_icon)
GLOB.female_clothing_icons[index] = female_clothing_icon
/obj/item/clothing/proc/weldingvisortoggle(mob/user) //proc to toggle welding visors on helmets, masks, goggles, etc.
diff --git a/code/modules/clothing/glasses/_glasses.dm b/code/modules/clothing/glasses/_glasses.dm
index 9f69d07509b..cd2e2b3a23c 100644
--- a/code/modules/clothing/glasses/_glasses.dm
+++ b/code/modules/clothing/glasses/_glasses.dm
@@ -11,7 +11,7 @@
custom_materials = list(/datum/material/glass = 250)
var/vision_flags = 0
var/darkness_view = 2//Base human is 2
- var/invis_view = SEE_INVISIBLE_LIVING //admin only for now
+ var/invis_view = SEE_INVISIBLE_LIVING //admin only for now
var/invis_override = 0 //Override to allow glasses to set higher than normal see_invis
var/lighting_alpha
var/list/icon/current = list() //the current hud icons
@@ -385,7 +385,7 @@
desc = "A pair of xray goggles manufactured by the Syndicate."
vision_flags = SEE_TURFS|SEE_MOBS|SEE_OBJS
-/obj/item/clothing/glasses/thermal/syndi //These are now a traitor item, concealed as mesons. -Pete
+/obj/item/clothing/glasses/thermal/syndi //These are now a traitor item, concealed as mesons. -Pete
name = "chameleon thermals"
desc = "A pair of thermal optic goggles with an onboard chameleon generator."
special_desc_requirement = EXAMINE_CHECK_SYNDICATE // SKYRAT EDIT
diff --git a/code/modules/clothing/glasses/engine_goggles.dm b/code/modules/clothing/glasses/engine_goggles.dm
index e37ad48eabc..bc5dcbeec43 100644
--- a/code/modules/clothing/glasses/engine_goggles.dm
+++ b/code/modules/clothing/glasses/engine_goggles.dm
@@ -101,7 +101,7 @@
for(var/i in rad_places)
var/turf/place = i
- if(get_dist(user, place) >= range*5) //Rads are easier to see than wires under the floor
+ if(get_dist(user, place) >= range*5) //Rads are easier to see than wires under the floor
continue
var/strength = round(rad_places[i] / 1000, 0.1)
var/image/pic = image(loc = place)
diff --git a/code/modules/clothing/gloves/color.dm b/code/modules/clothing/gloves/color.dm
index b0610642f2c..0621bb44457 100644
--- a/code/modules/clothing/gloves/color.dm
+++ b/code/modules/clothing/gloves/color.dm
@@ -65,7 +65,7 @@
name = "budget insulated gloves"
icon_state = "yellow"
inhand_icon_state = "ygloves"
- siemens_coefficient = 1 //Set to a default of 1, gets overridden in Initialize()
+ siemens_coefficient = 1 //Set to a default of 1, gets overridden in Initialize()
permeability_coefficient = 0.05
resistance_flags = NONE
cut_type = /obj/item/clothing/gloves/cut
diff --git a/code/modules/clothing/head/jobs.dm b/code/modules/clothing/head/jobs.dm
index 9a0aec75315..95e0315a93b 100644
--- a/code/modules/clothing/head/jobs.dm
+++ b/code/modules/clothing/head/jobs.dm
@@ -1,8 +1,8 @@
//defines the drill hat's yelling setting
-#define DRILL_DEFAULT "default"
-#define DRILL_SHOUTING "shouting"
-#define DRILL_YELLING "yelling"
-#define DRILL_CANADIAN "canadian"
+#define DRILL_DEFAULT "default"
+#define DRILL_SHOUTING "shouting"
+#define DRILL_YELLING "yelling"
+#define DRILL_CANADIAN "canadian"
//Chef
/obj/item/clothing/head/chefhat
diff --git a/code/modules/clothing/head/misc_special.dm b/code/modules/clothing/head/misc_special.dm
index d24a71bbcfb..e1f52c61e6e 100644
--- a/code/modules/clothing/head/misc_special.dm
+++ b/code/modules/clothing/head/misc_special.dm
@@ -1,13 +1,13 @@
/*
* Contents:
- * Welding mask
- * Cakehat
- * Ushanka
- * Pumpkin head
- * Kitty ears
- * Cardborg disguise
- * Wig
- * Bronze hat
+ * Welding mask
+ * Cakehat
+ * Ushanka
+ * Pumpkin head
+ * Kitty ears
+ * Cardborg disguise
+ * Wig
+ * Bronze hat
*/
/*
@@ -217,7 +217,7 @@
/obj/item/clothing/head/wig
name = "wig"
desc = "A bunch of hair without a head attached."
- icon = 'icons/mob/human_face.dmi' // default icon for all hairs
+ icon = 'icons/mob/human_face.dmi' // default icon for all hairs
icon_state = "hair_vlong"
inhand_icon_state = "pwig"
worn_icon_state = "wig"
diff --git a/code/modules/clothing/head/soft_caps.dm b/code/modules/clothing/head/soft_caps.dm
index 2f49cabc025..2f84d6bb942 100644
--- a/code/modules/clothing/head/soft_caps.dm
+++ b/code/modules/clothing/head/soft_caps.dm
@@ -36,7 +36,7 @@
else
icon_state = "[soft_type]soft"
to_chat(user, "You flip the hat back in normal position.")
- usr.update_inv_head() //so our mob-overlays update
+ usr.update_inv_head() //so our mob-overlays update
/obj/item/clothing/head/soft/examine(mob/user)
. = ..()
diff --git a/code/modules/clothing/masks/boxing.dm b/code/modules/clothing/masks/boxing.dm
index fbd73dd22e7..861dd961b9e 100644
--- a/code/modules/clothing/masks/boxing.dm
+++ b/code/modules/clothing/masks/boxing.dm
@@ -71,7 +71,7 @@
message = replacetext(message, "library", "biblioteca")
message = replacetext(message, "traitor", "traidor")
message = replacetext(message, "wizard", "mago")
- message = uppertext(message) //Things end up looking better this way (no mixed cases), and it fits the macho wrestler image.
+ message = uppertext(message) //Things end up looking better this way (no mixed cases), and it fits the macho wrestler image.
if(prob(25))
message += " OLE!"
speech_args[SPEECH_MESSAGE] = message
diff --git a/code/modules/clothing/masks/hailer.dm b/code/modules/clothing/masks/hailer.dm
index 273f32b7ce7..7fe8b6b4f91 100644
--- a/code/modules/clothing/masks/hailer.dm
+++ b/code/modules/clothing/masks/hailer.dm
@@ -2,21 +2,21 @@
// **** Security gas mask ****
// Cooldown times
-#define PHRASE_COOLDOWN 30
-#define OVERUSE_COOLDOWN 180
+#define PHRASE_COOLDOWN 30
+#define OVERUSE_COOLDOWN 180
// Aggression levels
-#define AGGR_GOOD_COP 1
-#define AGGR_BAD_COP 2
-#define AGGR_SHIT_COP 3
-#define AGGR_BROKEN 4
+#define AGGR_GOOD_COP 1
+#define AGGR_BAD_COP 2
+#define AGGR_SHIT_COP 3
+#define AGGR_BROKEN 4
// Phrase list index markers
-#define EMAG_PHRASE 1 // index of emagged phrase
-#define GOOD_COP_PHRASES 6 // final index of good cop phrases
-#define BAD_COP_PHRASES 12 // final index of bad cop phrases
-#define BROKE_PHRASES 13 // starting index of broken phrases
-#define ALL_PHRASES 19 // total phrases
+#define EMAG_PHRASE 1 // index of emagged phrase
+#define GOOD_COP_PHRASES 6 // final index of good cop phrases
+#define BAD_COP_PHRASES 12 // final index of bad cop phrases
+#define BROKE_PHRASES 13 // starting index of broken phrases
+#define ALL_PHRASES 19 // total phrases
// All possible hailer phrases
// Remember to modify above index markers if changing contents
diff --git a/code/modules/clothing/neck/_neck.dm b/code/modules/clothing/neck/_neck.dm
index b2a1dcb88f1..bba3309f90c 100644
--- a/code/modules/clothing/neck/_neck.dm
+++ b/code/modules/clothing/neck/_neck.dm
@@ -20,7 +20,7 @@
desc = "A neosilk clip-on tie."
icon = 'icons/obj/clothing/neck.dmi'
icon_state = "bluetie"
- inhand_icon_state = "" //no inhands
+ inhand_icon_state = "" //no inhands
w_class = WEIGHT_CLASS_SMALL
custom_price = PAYCHECK_EASY
diff --git a/code/modules/clothing/shoes/magboots.dm b/code/modules/clothing/shoes/magboots.dm
index c3ea63da314..28631ea9ce3 100644
--- a/code/modules/clothing/shoes/magboots.dm
+++ b/code/modules/clothing/shoes/magboots.dm
@@ -30,7 +30,7 @@
magpulse = !magpulse
icon_state = "[magboot_state][magpulse]"
to_chat(user, "You [magpulse ? "enable" : "disable"] the mag-pulse traction system.")
- user.update_inv_shoes() //so our mob-overlays update
+ user.update_inv_shoes() //so our mob-overlays update
user.update_gravity(user.has_gravity())
user.update_equipment_speed_mods() //we want to update our speed so we arent running at max speed in regular magboots
for(var/X in actions)
diff --git a/code/modules/clothing/spacesuits/_spacesuits.dm b/code/modules/clothing/spacesuits/_spacesuits.dm
index 0ba58085462..8b748ce21da 100644
--- a/code/modules/clothing/spacesuits/_spacesuits.dm
+++ b/code/modules/clothing/spacesuits/_spacesuits.dm
@@ -61,7 +61,7 @@
. = ..()
if(slot == ITEM_SLOT_OCLOTHING) // Check that the slot is valid
START_PROCESSING(SSobj, src)
- update_hud_icon(user) // update the hud
+ update_hud_icon(user) // update the hud
// On removal stop processing, save battery
/obj/item/clothing/suit/space/dropped(mob/user)
diff --git a/code/modules/clothing/spacesuits/hardsuit.dm b/code/modules/clothing/spacesuits/hardsuit.dm
index 6f2eb47f2c8..735b84c8204 100644
--- a/code/modules/clothing/spacesuits/hardsuit.dm
+++ b/code/modules/clothing/spacesuits/hardsuit.dm
@@ -18,7 +18,7 @@
var/obj/item/clothing/suit/space/hardsuit/suit
var/hardsuit_type = "engineering" //Determines used sprites: hardsuit[on]-[type]
actions_types = list(/datum/action/item_action/toggle_helmet_light)
- flags_cover = HEADCOVERSEYES | HEADCOVERSMOUTH | PEPPERPROOF
+ flags_cover = HEADCOVERSEYES | HEADCOVERSMOUTH | PEPPERPROOF
visor_flags_cover = HEADCOVERSEYES | HEADCOVERSMOUTH | PEPPERPROOF
var/current_tick_amount = 0
var/radiation_count = 0
@@ -38,7 +38,7 @@
/obj/item/clothing/head/helmet/space/hardsuit/attack_self(mob/user)
on = !on
icon_state = "[basestate][on]-[hardsuit_type]"
- user.update_inv_head() //so our mob-overlays update
+ user.update_inv_head() //so our mob-overlays update
set_light_on(on)
@@ -231,7 +231,7 @@
inhand_icon_state = "atmo_helm"
hardsuit_type = "atmospherics"
armor = list(MELEE = 30, BULLET = 5, LASER = 10, ENERGY = 20, BOMB = 10, BIO = 100, RAD = 25, FIRE = 100, ACID = 75, WOUND = 10)
- heat_protection = HEAD //Uncomment to enable firesuit protection
+ heat_protection = HEAD //Uncomment to enable firesuit protection
max_heat_protection_temperature = FIRE_IMMUNITY_MAX_TEMP_PROTECT
/obj/item/clothing/suit/space/hardsuit/engine/atmos
@@ -240,7 +240,7 @@
icon_state = "hardsuit-atmospherics"
inhand_icon_state = "atmo_hardsuit"
armor = list(MELEE = 30, BULLET = 5, LASER = 10, ENERGY = 20, BOMB = 10, BIO = 100, RAD = 25, FIRE = 100, ACID = 75, WOUND = 10)
- heat_protection = CHEST|GROIN|LEGS|FEET|ARMS|HANDS //Uncomment to enable firesuit protection
+ heat_protection = CHEST|GROIN|LEGS|FEET|ARMS|HANDS //Uncomment to enable firesuit protection
max_heat_protection_temperature = FIRE_IMMUNITY_MAX_TEMP_PROTECT
helmettype = /obj/item/clothing/head/helmet/space/hardsuit/engine/atmos
@@ -505,7 +505,7 @@
hardsuit_type = "wiz"
resistance_flags = FIRE_PROOF | ACID_PROOF //No longer shall our kind be foiled by lone chemists with spray bottles!
armor = list(MELEE = 40, BULLET = 40, LASER = 40, ENERGY = 50, BOMB = 35, BIO = 100, RAD = 50, FIRE = 100, ACID = 100, WOUND = 30)
- heat_protection = HEAD //Uncomment to enable firesuit protection
+ heat_protection = HEAD //Uncomment to enable firesuit protection
max_heat_protection_temperature = FIRE_IMMUNITY_MAX_TEMP_PROTECT
/obj/item/clothing/suit/space/hardsuit/wizard
@@ -517,7 +517,7 @@
resistance_flags = FIRE_PROOF | ACID_PROOF
armor = list(MELEE = 40, BULLET = 40, LASER = 40, ENERGY = 50, BOMB = 35, BIO = 100, RAD = 50, FIRE = 100, ACID = 100, WOUND = 30)
allowed = list(/obj/item/teleportation_scroll, /obj/item/tank/internals)
- heat_protection = CHEST|GROIN|LEGS|FEET|ARMS|HANDS //Uncomment to enable firesuit protection
+ heat_protection = CHEST|GROIN|LEGS|FEET|ARMS|HANDS //Uncomment to enable firesuit protection
max_heat_protection_temperature = FIRE_IMMUNITY_MAX_TEMP_PROTECT
helmettype = /obj/item/clothing/head/helmet/space/hardsuit/wizard
cell = /obj/item/stock_parts/cell/hyper
diff --git a/code/modules/clothing/spacesuits/miscellaneous.dm b/code/modules/clothing/spacesuits/miscellaneous.dm
index 3d4060f7608..b6b921f8f2a 100644
--- a/code/modules/clothing/spacesuits/miscellaneous.dm
+++ b/code/modules/clothing/spacesuits/miscellaneous.dm
@@ -310,7 +310,7 @@ Contains:
desc = "Spaceworthy and it looks like a space carp's head, smells like one too."
icon_state = "carp_helm"
inhand_icon_state = "syndicate"
- armor = list(MELEE = -20, BULLET = 0, LASER = 0, ENERGY = 0, BOMB = 0, BIO = 100, RAD = 75, FIRE = 60, ACID = 75) //As whimpy as a space carp
+ armor = list(MELEE = -20, BULLET = 0, LASER = 0, ENERGY = 0, BOMB = 0, BIO = 100, RAD = 75, FIRE = 60, ACID = 75) //As whimpy as a space carp
light_system = NO_LIGHT_SUPPORT
light_range = 0 //luminosity when on
actions_types = list()
@@ -325,9 +325,9 @@ Contains:
desc = "A slimming piece of dubious space carp technology, you suspect it won't stand up to hand-to-hand blows."
icon_state = "carp_suit"
inhand_icon_state = "space_suit_syndicate"
- slowdown = 0 //Space carp magic, never stop believing
+ slowdown = 0 //Space carp magic, never stop believing
armor = list(MELEE = -20, BULLET = 0, LASER = 0, ENERGY = 0, BOMB = 0, BIO = 100, RAD = 75, FIRE = 60, ACID = 75) //As whimpy whimpy whoo
- allowed = list(/obj/item/tank/internals, /obj/item/gun/ballistic/rifle/boltaction/harpoon) //I'm giving you a hint here
+ allowed = list(/obj/item/tank/internals, /obj/item/gun/ballistic/rifle/boltaction/harpoon) //I'm giving you a hint here
helmettype = /obj/item/clothing/head/helmet/space/hardsuit/carp
/obj/item/clothing/head/helmet/space/hardsuit/carp/equipped(mob/living/carbon/human/user, slot)
diff --git a/code/modules/clothing/suits/armor.dm b/code/modules/clothing/suits/armor.dm
index 09e7d4cec7a..ec5339d8e63 100644
--- a/code/modules/clothing/suits/armor.dm
+++ b/code/modules/clothing/suits/armor.dm
@@ -234,7 +234,7 @@
/obj/item/clothing/suit/armor/tdome/green
name = "thunderdome suit"
- desc = "Pukish armor." //classy.
+ desc = "Pukish armor." //classy.
icon_state = "tdgreen"
inhand_icon_state = "tdgreen"
diff --git a/code/modules/clothing/suits/miscellaneous.dm b/code/modules/clothing/suits/miscellaneous.dm
index 0423b87460c..b7523cea88c 100644
--- a/code/modules/clothing/suits/miscellaneous.dm
+++ b/code/modules/clothing/suits/miscellaneous.dm
@@ -1,8 +1,8 @@
/*
* Contains:
- * Lasertag
- * Costume
- * Misc
+ * Lasertag
+ * Costume
+ * Misc
*/
/*
@@ -261,7 +261,7 @@
inhand_icon_state = "labcoat"
body_parts_covered = CHEST|GROIN|ARMS
cold_protection = CHEST|GROIN|ARMS
- min_cold_protection_temperature = FIRE_SUIT_MIN_TEMP_PROTECT //Space carp like space, so you should too
+ min_cold_protection_temperature = FIRE_SUIT_MIN_TEMP_PROTECT //Space carp like space, so you should too
allowed = list(/obj/item/tank/internals/emergency_oxygen, /obj/item/tank/internals/plasmaman, /obj/item/gun/ballistic/rifle/boltaction/harpoon)
hoodtype = /obj/item/clothing/head/hooded/carp_hood
@@ -284,7 +284,7 @@
if (user.head == src)
user.faction -= "carp"
-/obj/item/clothing/suit/hooded/ian_costume //It's Ian, rub his bell- oh god what happened to his inside parts?
+/obj/item/clothing/suit/hooded/ian_costume //It's Ian, rub his bell- oh god what happened to his inside parts?
name = "corgi costume"
desc = "A costume that looks like someone made a human-like corgi, it won't guarantee belly rubs."
icon_state = "ian"
@@ -323,7 +323,7 @@
flags_inv = HIDEHAIR|HIDEEARS
dynamic_hair_suffix = ""
-/obj/item/clothing/suit/hooded/bloated_human //OH MY GOD WHAT HAVE YOU DONE!?!?!?
+/obj/item/clothing/suit/hooded/bloated_human //OH MY GOD WHAT HAVE YOU DONE!?!?!?
name = "bloated human suit"
desc = "A horribly bloated suit made from human skins."
icon_state = "lingspacesuit"
diff --git a/code/modules/clothing/suits/reactive_armour.dm b/code/modules/clothing/suits/reactive_armour.dm
index efa70c5b271..835349add6a 100644
--- a/code/modules/clothing/suits/reactive_armour.dm
+++ b/code/modules/clothing/suits/reactive_armour.dm
@@ -8,9 +8,9 @@
/obj/item/reactive_armour_shell/attackby(obj/item/I, mob/user, params)
..()
var/static/list/anomaly_armour_types = list(
- /obj/effect/anomaly/grav = /obj/item/clothing/suit/armor/reactive/repulse,
- /obj/effect/anomaly/flux = /obj/item/clothing/suit/armor/reactive/tesla,
- /obj/effect/anomaly/bluespace = /obj/item/clothing/suit/armor/reactive/teleport
+ /obj/effect/anomaly/grav = /obj/item/clothing/suit/armor/reactive/repulse,
+ /obj/effect/anomaly/flux = /obj/item/clothing/suit/armor/reactive/tesla,
+ /obj/effect/anomaly/bluespace = /obj/item/clothing/suit/armor/reactive/teleport
)
if(istype(I, /obj/item/assembly/signaler/anomaly))
diff --git a/code/modules/clothing/suits/utility.dm b/code/modules/clothing/suits/utility.dm
index 5ac587d75fa..001732ae5d8 100644
--- a/code/modules/clothing/suits/utility.dm
+++ b/code/modules/clothing/suits/utility.dm
@@ -1,8 +1,8 @@
/*
* Contains:
- * Fire protection
- * Bomb protection
- * Radiation protection
+ * Fire protection
+ * Bomb protection
+ * Radiation protection
*/
/*
diff --git a/code/modules/clothing/under/accessories.dm b/code/modules/clothing/under/accessories.dm
index b95d875864c..62d06a41da7 100755
--- a/code/modules/clothing/under/accessories.dm
+++ b/code/modules/clothing/under/accessories.dm
@@ -3,7 +3,7 @@
desc = "Something has gone wrong!"
icon = 'icons/obj/clothing/accessories.dmi'
icon_state = "plasma"
- inhand_icon_state = "" //no inhands
+ inhand_icon_state = "" //no inhands
slot_flags = 0
w_class = WEIGHT_CLASS_SMALL
var/above_suit = FALSE
@@ -29,13 +29,13 @@
layer = FLOAT_LAYER
plane = FLOAT_PLANE
if(minimize_when_attached)
- transform *= 0.5 //halve the size so it doesn't overpower the under
+ transform *= 0.5 //halve the size so it doesn't overpower the under
pixel_x += 8
pixel_y -= 8
U.add_overlay(src)
- if (islist(U.armor) || isnull(U.armor)) // This proc can run before /obj/Initialize has run for U and src,
- U.armor = getArmor(arglist(U.armor)) // we have to check that the armor list has been transformed into a datum before we try to call a proc on it
+ if (islist(U.armor) || isnull(U.armor)) // This proc can run before /obj/Initialize has run for U and src,
+ U.armor = getArmor(arglist(U.armor)) // we have to check that the armor list has been transformed into a datum before we try to call a proc on it
// This is safe to do as /obj/Initialize only handles setting up the datum if actually needed.
if (islist(armor) || isnull(armor))
armor = getArmor(arglist(armor))
diff --git a/code/modules/clothing/under/color.dm b/code/modules/clothing/under/color.dm
index f4f62d6b0d0..b705b014b37 100644
--- a/code/modules/clothing/under/color.dm
+++ b/code/modules/clothing/under/color.dm
@@ -23,7 +23,7 @@
return INITIALIZE_HINT_QDEL
/obj/item/clothing/under/color/jumpskirt/random
- icon_state = "random_jumpsuit" //Skirt variant needed
+ icon_state = "random_jumpsuit" //Skirt variant needed
/obj/item/clothing/under/color/jumpskirt/random/Initialize()
..()
diff --git a/code/modules/clothing/under/jobs/security.dm b/code/modules/clothing/under/jobs/security.dm
index 5cab587f8dc..1716cb67d78 100644
--- a/code/modules/clothing/under/jobs/security.dm
+++ b/code/modules/clothing/under/jobs/security.dm
@@ -1,8 +1,8 @@
/*
* Contains:
- * Security
- * Detective
- * Navy uniforms
+ * Security
+ * Detective
+ * Navy uniforms
*/
/*
diff --git a/code/modules/detectivework/detective_work.dm b/code/modules/detectivework/detective_work.dm
index 98df8ad72d9..57e8e0c3a81 100644
--- a/code/modules/detectivework/detective_work.dm
+++ b/code/modules/detectivework/detective_work.dm
@@ -25,7 +25,7 @@
if(D)
. = D.fibers
-/atom/proc/add_fingerprint_list(list/fingerprints) //ASSOC LIST FINGERPRINT = FINGERPRINT
+/atom/proc/add_fingerprint_list(list/fingerprints) //ASSOC LIST FINGERPRINT = FINGERPRINT
if(length(fingerprints))
. = AddComponent(/datum/component/forensics, fingerprints)
@@ -34,7 +34,7 @@
var/datum/component/forensics/D = AddComponent(/datum/component/forensics)
. = D.add_fingerprint(M, ignoregloves)
-/atom/proc/add_fiber_list(list/fibertext) //ASSOC LIST FIBERTEXT = FIBERTEXT
+/atom/proc/add_fiber_list(list/fibertext) //ASSOC LIST FIBERTEXT = FIBERTEXT
if(length(fibertext))
. = AddComponent(/datum/component/forensics, null, null, null, fibertext)
@@ -53,7 +53,7 @@
var/datum/component/forensics/D = AddComponent(/datum/component/forensics)
. = D.add_fibers(M)
-/atom/proc/add_hiddenprint_list(list/hiddenprints) //NOTE: THIS IS FOR ADMINISTRATION FINGERPRINTS, YOU MUST CUSTOM SET THIS TO INCLUDE CKEY/REAL NAMES! CHECK FORENSICS.DM
+/atom/proc/add_hiddenprint_list(list/hiddenprints) //NOTE: THIS IS FOR ADMINISTRATION FINGERPRINTS, YOU MUST CUSTOM SET THIS TO INCLUDE CKEY/REAL NAMES! CHECK FORENSICS.DM
if(length(hiddenprints))
. = AddComponent(/datum/component/forensics, null, hiddenprints)
@@ -61,7 +61,7 @@
var/datum/component/forensics/D = AddComponent(/datum/component/forensics)
. = D.add_hiddenprint(M)
-/atom/proc/add_blood_DNA(list/dna) //ASSOC LIST DNA = BLOODTYPE
+/atom/proc/add_blood_DNA(list/dna) //ASSOC LIST DNA = BLOODTYPE
return FALSE
/obj/add_blood_DNA(list/dna)
@@ -93,7 +93,7 @@
else if(length(blood_dna))
AddComponent(/datum/component/forensics, null, null, blood_dna)
blood_in_hands = rand(2, 4)
- update_inv_gloves() //handles bloody hands overlays and updating
+ update_inv_gloves() //handles bloody hands overlays and updating
return TRUE
/atom/proc/transfer_fingerprints_to(atom/A)
diff --git a/code/modules/detectivework/evidence.dm b/code/modules/detectivework/evidence.dm
index 1e0c5df0c3d..10f267be2ce 100644
--- a/code/modules/detectivework/evidence.dm
+++ b/code/modules/detectivework/evidence.dm
@@ -30,7 +30,7 @@
if(SEND_SIGNAL(loc, COMSIG_CONTAINS_STORAGE) && SEND_SIGNAL(I, COMSIG_CONTAINS_STORAGE))
to_chat(user, "No matter what way you try, you can't get [I] to fit inside [src].")
- return TRUE //begone infinite storage ghosts, begone from me
+ return TRUE //begone infinite storage ghosts, begone from me
if(istype(I, /obj/item/evidencebag))
to_chat(user, "You find putting an evidence bag in another evidence bag to be slightly absurd.")
@@ -49,7 +49,7 @@
return
if(!isturf(I.loc)) //If it isn't on the floor. Do some checks to see if it's in our hands or a box. Otherwise give up.
- if(SEND_SIGNAL(I.loc, COMSIG_CONTAINS_STORAGE)) //in a container.
+ if(SEND_SIGNAL(I.loc, COMSIG_CONTAINS_STORAGE)) //in a container.
SEND_SIGNAL(I.loc, COMSIG_TRY_STORAGE_TAKE, I, src)
if(!user.dropItemToGround(I))
return
@@ -65,7 +65,7 @@
in_evidence.pixel_x = 0
in_evidence.pixel_y = 0
add_overlay(in_evidence)
- add_overlay("evidence") //should look nicer for transparent stuff. not really that important, but hey.
+ add_overlay("evidence") //should look nicer for transparent stuff. not really that important, but hey.
desc = "An evidence bag containing [I]. [I.desc]"
I.forceMove(src)
@@ -77,7 +77,7 @@
var/obj/item/I = contents[1]
user.visible_message("[user] takes [I] out of [src].", "You take [I] out of [src].",\
"You hear someone rustle around in a plastic bag, and remove something.")
- cut_overlays() //remove the overlays
+ cut_overlays() //remove the overlays
user.put_in_hands(I)
w_class = WEIGHT_CLASS_TINY
icon_state = "evidenceobj"
diff --git a/code/modules/events/_event.dm b/code/modules/events/_event.dm
index 89e7bc8da11..fff0ffadbef 100644
--- a/code/modules/events/_event.dm
+++ b/code/modules/events/_event.dm
@@ -1,30 +1,30 @@
//this singleton datum is used by the events controller to dictate how it selects events
/datum/round_event_control
- var/name //The human-readable name of the event
- var/typepath //The typepath of the event datum /datum/round_event
+ var/name //The human-readable name of the event
+ var/typepath //The typepath of the event datum /datum/round_event
- var/weight = 10 //The weight this event has in the random-selection process.
+ var/weight = 10 //The weight this event has in the random-selection process.
//Higher weights are more likely to be picked.
//10 is the default weight. 20 is twice more likely; 5 is half as likely as this default.
//0 here does NOT disable the event, it just makes it extremely unlikely
- var/earliest_start = 20 MINUTES //The earliest world.time that an event can start (round-duration in deciseconds) default: 20 mins
- var/min_players = 0 //The minimum amount of alive, non-AFK human players on server required to start the event.
+ var/earliest_start = 20 MINUTES //The earliest world.time that an event can start (round-duration in deciseconds) default: 20 mins
+ var/min_players = 0 //The minimum amount of alive, non-AFK human players on server required to start the event.
- var/occurrences = 0 //How many times this event has occured
- var/max_occurrences = 20 //The maximum number of times this event can occur (naturally), it can still be forced.
+ var/occurrences = 0 //How many times this event has occured
+ var/max_occurrences = 20 //The maximum number of times this event can occur (naturally), it can still be forced.
//By setting this to 0 you can effectively disable an event.
- var/holidayID = "" //string which should be in the SSeventss.holidays list if you wish this event to be holiday-specific
+ var/holidayID = "" //string which should be in the SSeventss.holidays list if you wish this event to be holiday-specific
//anything with a (non-null) holidayID which does not match holiday, cannot run.
var/wizardevent = FALSE
- var/alert_observers = TRUE //should we let the ghosts and admins know this event is firing
+ var/alert_observers = TRUE //should we let the ghosts and admins know this event is firing
//should be disabled on events that fire a lot
var/list/gamemode_blacklist = list() // Event won't happen in these gamemodes
var/list/gamemode_whitelist = list() // Event will happen ONLY in these gamemodes if not empty
- var/triggering //admin cancellation
+ var/triggering //admin cancellation
/datum/round_event_control/New()
if(config && !wizardevent) // Magic is unaffected by configs
@@ -74,7 +74,7 @@
return EVENT_INTERRUPTED
if(!triggering)
- return EVENT_CANCELLED //admin cancelled
+ return EVENT_CANCELLED //admin cancelled
triggering = FALSE
return EVENT_READY
@@ -107,18 +107,18 @@
/datum/round_event_control/proc/admin_setup()
return
-/datum/round_event //NOTE: Times are measured in master controller ticks!
+/datum/round_event //NOTE: Times are measured in master controller ticks!
var/processing = TRUE
var/datum/round_event_control/control
- var/startWhen = 0 //When in the lifetime to call start().
- var/announceWhen = 0 //When in the lifetime to call announce(). If you don't want it to announce use announceChance, below.
- var/announceChance = 100 // Probability of announcing, used in prob(), 0 to 100, default 100. Used in ion storms currently.
- var/endWhen = 0 //When in the lifetime the event should end.
+ var/startWhen = 0 //When in the lifetime to call start().
+ var/announceWhen = 0 //When in the lifetime to call announce(). If you don't want it to announce use announceChance, below.
+ var/announceChance = 100 // Probability of announcing, used in prob(), 0 to 100, default 100. Used in ion storms currently.
+ var/endWhen = 0 //When in the lifetime the event should end.
- var/activeFor = 0 //How long the event has existed. You don't need to change this.
- var/current_players = 0 //Amount of of alive, non-AFK human players on server at the time of event start
- var/fakeable = TRUE //Can be faked by fake news event.
+ var/activeFor = 0 //How long the event has existed. You don't need to change this.
+ var/current_players = 0 //Amount of of alive, non-AFK human players on server at the time of event start
+ var/fakeable = TRUE //Can be faked by fake news event.
//Called first before processing.
//Allows you to setup your event, such as randomly
diff --git a/code/modules/events/alien_infestation.dm b/code/modules/events/alien_infestation.dm
index bb5484cfdcb..e34d2cece49 100644
--- a/code/modules/events/alien_infestation.dm
+++ b/code/modules/events/alien_infestation.dm
@@ -5,7 +5,7 @@
//weight = 5 - SKYRAT EDIT - ORIGINAL
weight = 2
//SKYRAT EDIT CHANGE END
-
+
min_players = 10
/datum/round_event_control/alien_infestation/canSpawnEvent()
@@ -18,7 +18,7 @@
return FALSE
/datum/round_event/ghost_role/alien_infestation
- announceWhen = 400
+ announceWhen = 400
//SKYRAT EDIT CHANGE BEGIN
//minimum_required = 1 - SKYRAT EDIT - ORIGINAL
minimum_required = 2
diff --git a/code/modules/events/anomaly.dm b/code/modules/events/anomaly.dm
index 2823c19d144..5a5da83fe81 100644
--- a/code/modules/events/anomaly.dm
+++ b/code/modules/events/anomaly.dm
@@ -9,7 +9,7 @@
/datum/round_event/anomaly
var/area/impact_area
var/obj/effect/anomaly/anomaly_path = /obj/effect/anomaly/flux
- announceWhen = 1
+ announceWhen = 1
/datum/round_event/anomaly/proc/findEventArea()
diff --git a/code/modules/events/blob.dm b/code/modules/events/blob.dm
index 52bf8eabb27..492ba317064 100644
--- a/code/modules/events/blob.dm
+++ b/code/modules/events/blob.dm
@@ -15,7 +15,7 @@
return ..()
/datum/round_event/ghost_role/blob
- announceChance = 0
+ announceChance = 0
role_name = "blob overmind"
fakeable = TRUE
diff --git a/code/modules/events/brand_intelligence.dm b/code/modules/events/brand_intelligence.dm
index adf7be1915d..9dcb4cdd27d 100644
--- a/code/modules/events/brand_intelligence.dm
+++ b/code/modules/events/brand_intelligence.dm
@@ -8,8 +8,8 @@
max_occurrences = 0 //SKYRAT EDIT CHANGE
/datum/round_event/brand_intelligence
- announceWhen = 21
- endWhen = 1000 //Ends when all vending machines are subverted anyway.
+ announceWhen = 21
+ endWhen = 1000 //Ends when all vending machines are subverted anyway.
var/list/obj/machinery/vending/vendingMachines = list()
var/list/obj/machinery/vending/infectedMachines = list()
var/obj/machinery/vending/originMachine
@@ -47,7 +47,7 @@
announce_to_ghosts(originMachine)
/datum/round_event/brand_intelligence/tick()
- if(!originMachine || QDELETED(originMachine) || originMachine.shut_up || originMachine.wires.is_all_cut()) //if the original vending machine is missing or has it's voice switch flipped
+ if(!originMachine || QDELETED(originMachine) || originMachine.shut_up || originMachine.wires.is_all_cut()) //if the original vending machine is missing or has it's voice switch flipped
for(var/obj/machinery/vending/saved in infectedMachines)
saved.shoot_inventory = 0
if(originMachine)
@@ -56,7 +56,7 @@
kill()
return
vendingMachines = removeNullsFromList(vendingMachines)
- if(!vendingMachines.len) //if every machine is infected
+ if(!vendingMachines.len) //if every machine is infected
for(var/obj/machinery/vending/upriser in infectedMachines)
if(prob(70) && !QDELETED(upriser))
upriser.ai_controller = new /datum/ai_controller/vending_machine(upriser)
diff --git a/code/modules/events/bureaucratic_error.dm b/code/modules/events/bureaucratic_error.dm
index b7e7726d935..2a5292b4b88 100644
--- a/code/modules/events/bureaucratic_error.dm
+++ b/code/modules/events/bureaucratic_error.dm
@@ -12,7 +12,7 @@
/datum/round_event/bureaucratic_error/start()
var/list/jobs = SSjob.occupations.Copy()
- if(prob(33)) // Only allows latejoining as a single role. Add latejoin AI bluespace pods for fun later.
+ if(prob(33)) // Only allows latejoining as a single role. Add latejoin AI bluespace pods for fun later.
var/datum/job/overflow = pick_n_take(jobs)
overflow.spawn_positions = -1
overflow.total_positions = -1 // Ensures infinite slots as this role. Assistant will still be open for those that cant play it.
@@ -21,7 +21,7 @@
if(!current.allow_bureaucratic_error)
continue
current.total_positions = 0
- else // Adds/removes a random amount of job slots from all jobs.
+ else // Adds/removes a random amount of job slots from all jobs.
for(var/job in jobs)
var/datum/job/current = job
if(!current.allow_bureaucratic_error)
diff --git a/code/modules/events/carp_migration.dm b/code/modules/events/carp_migration.dm
index bbf199498e6..a8cb9867be1 100644
--- a/code/modules/events/carp_migration.dm
+++ b/code/modules/events/carp_migration.dm
@@ -16,7 +16,7 @@
/datum/round_event/carp_migration
- announceWhen = 3
+ announceWhen = 3
startWhen = 50
var/hasAnnounced = FALSE
diff --git a/code/modules/events/communications_blackout.dm b/code/modules/events/communications_blackout.dm
index e77b86e8a15..3ad325f9005 100644
--- a/code/modules/events/communications_blackout.dm
+++ b/code/modules/events/communications_blackout.dm
@@ -4,20 +4,20 @@
weight = 30
/datum/round_event/communications_blackout
- announceWhen = 1
+ announceWhen = 1
/datum/round_event/communications_blackout/announce(fake)
- var/alert = pick( "Ionospheric anomalies detected. Temporary telecommunication failure imminent. Please contact you*%fj00)`5vc-BZZT", \
+ var/alert = pick( "Ionospheric anomalies detected. Temporary telecommunication failure imminent. Please contact you*%fj00)`5vc-BZZT", \
"Ionospheric anomalies detected. Temporary telecommunication failu*3mga;b4;'1v¬-BZZZT", \
"Ionospheric anomalies detected. Temporary telec#MCi46:5.;@63-BZZZZT", \
"Ionospheric anomalies dete'fZ\\kg5_0-BZZZZZT", \
"Ionospheri:%£ MCayj^j<.3-BZZZZZZT", \
"#4nd%;f4y6,>£%-BZZZZZZZT")
- for(var/mob/living/silicon/ai/A in GLOB.ai_list) //AIs are always aware of communication blackouts.
+ for(var/mob/living/silicon/ai/A in GLOB.ai_list) //AIs are always aware of communication blackouts.
to_chat(A, "
[alert]
")
- if(prob(30) || fake) //most of the time, we don't want an announcement, so as to allow AIs to fake blackouts.
+ if(prob(30) || fake) //most of the time, we don't want an announcement, so as to allow AIs to fake blackouts.
priority_announce(alert)
diff --git a/code/modules/events/disease_outbreak.dm b/code/modules/events/disease_outbreak.dm
index 8e68a0b837d..72493ab6a71 100644
--- a/code/modules/events/disease_outbreak.dm
+++ b/code/modules/events/disease_outbreak.dm
@@ -6,7 +6,7 @@
weight = 5
/datum/round_event/disease_outbreak
- announceWhen = 15
+ announceWhen = 15
var/virus_type
@@ -41,7 +41,7 @@
continue
if(HAS_TRAIT(H, TRAIT_VIRUSIMMUNE)) //Don't pick someone who's virus immune, only for it to not do anything.
continue
- var/foundAlready = FALSE // don't infect someone that already has a disease
+ var/foundAlready = FALSE // don't infect someone that already has a disease
for(var/thing in H.diseases)
foundAlready = TRUE
break
@@ -50,8 +50,8 @@
var/datum/disease/D
if(!advanced_virus)
- if(virus_type == /datum/disease/dnaspread) //Dnaspread needs strain_data set to work.
- if(!H.dna || (HAS_TRAIT(H, TRAIT_BLIND))) //A blindness disease would be the worst.
+ if(virus_type == /datum/disease/dnaspread) //Dnaspread needs strain_data set to work.
+ if(!H.dna || (HAS_TRAIT(H, TRAIT_BLIND))) //A blindness disease would be the worst.
continue
D = new virus_type()
var/datum/disease/dnaspread/DS = D
diff --git a/code/modules/events/dust.dm b/code/modules/events/dust.dm
index eb7edcafbf8..06c75c0c07f 100644
--- a/code/modules/events/dust.dm
+++ b/code/modules/events/dust.dm
@@ -7,8 +7,8 @@
alert_observers = FALSE
/datum/round_event/space_dust
- startWhen = 1
- endWhen = 2
+ startWhen = 1
+ endWhen = 2
fakeable = FALSE
/datum/round_event/space_dust/start()
diff --git a/code/modules/events/electrical_storm.dm b/code/modules/events/electrical_storm.dm
index a769bad1588..39b7039ed28 100644
--- a/code/modules/events/electrical_storm.dm
+++ b/code/modules/events/electrical_storm.dm
@@ -7,9 +7,9 @@
alert_observers = FALSE
/datum/round_event/electrical_storm
- var/lightsoutAmount = 1
- var/lightsoutRange = 25
- announceWhen = 1
+ var/lightsoutAmount = 1
+ var/lightsoutRange = 25
+ announceWhen = 1
/datum/round_event/electrical_storm/announce(fake)
priority_announce("An electrical storm has been detected in your area, please repair potential electronic overloads.", "Electrical Storm Alert")
diff --git a/code/modules/events/false_alarm.dm b/code/modules/events/false_alarm.dm
index e68f5a0e3f5..d60bf3c7367 100644
--- a/code/modules/events/false_alarm.dm
+++ b/code/modules/events/false_alarm.dm
@@ -1,7 +1,7 @@
/datum/round_event_control/falsealarm
- name = "False Alarm"
- typepath = /datum/round_event/falsealarm
- weight = 20
+ name = "False Alarm"
+ typepath = /datum/round_event/falsealarm
+ weight = 20
max_occurrences = 5
var/forced_type //Admin abuse
@@ -45,8 +45,8 @@
if(event_control)
var/datum/round_event/Event = new event_control.typepath()
message_admins("False Alarm: [Event]")
- Event.kill() //do not process this event - no starts, no ticks, no ends
- Event.announce(TRUE) //just announce it like it's happening
+ Event.kill() //do not process this event - no starts, no ticks, no ends
+ Event.announce(TRUE) //just announce it like it's happening
/proc/gather_false_events(players_amt, gamemode)
. = list()
diff --git a/code/modules/events/ghost_role.dm b/code/modules/events/ghost_role.dm
index 5d763733235..b5d0ba35903 100644
--- a/code/modules/events/ghost_role.dm
+++ b/code/modules/events/ghost_role.dm
@@ -22,7 +22,7 @@
if((status == WAITING_FOR_SOMETHING))
if(retry >= MAX_SPAWN_ATTEMPT)
message_admins("[role_name] event has exceeded maximum spawn attempts. Aborting and refunding.")
- if(control && control.occurrences > 0) //Don't refund if it hasn't
+ if(control && control.occurrences > 0) //Don't refund if it hasn't
control.occurrences--
return
var/waittime = 300 * (2^retry)
diff --git a/code/modules/events/grid_check.dm b/code/modules/events/grid_check.dm
index eaef2e0d110..9d6913299ad 100644
--- a/code/modules/events/grid_check.dm
+++ b/code/modules/events/grid_check.dm
@@ -5,7 +5,7 @@
max_occurrences = 3
/datum/round_event/grid_check
- announceWhen = 1
+ announceWhen = 1
startWhen = 1
/datum/round_event/grid_check/announce(fake)
diff --git a/code/modules/events/holiday/halloween.dm b/code/modules/events/holiday/halloween.dm
index 07edf1053e8..32eed690d30 100644
--- a/code/modules/events/holiday/halloween.dm
+++ b/code/modules/events/holiday/halloween.dm
@@ -2,7 +2,7 @@
name = "2 SPOOKY! (Halloween)"
holidayID = HALLOWEEN
typepath = /datum/round_event/spooky
- weight = -1 //forces it to be called, regardless of weight
+ weight = -1 //forces it to be called, regardless of weight
max_occurrences = 1
earliest_start = 0 MINUTES
diff --git a/code/modules/events/holiday/vday.dm b/code/modules/events/holiday/vday.dm
index a35b4acc60e..7e68b26ea72 100644
--- a/code/modules/events/holiday/vday.dm
+++ b/code/modules/events/holiday/vday.dm
@@ -9,7 +9,7 @@
name = "Valentines!"
holidayID = VALENTINES
typepath = /datum/round_event/valentines
- weight = -1 //forces it to be called, regardless of weight
+ weight = -1 //forces it to be called, regardless of weight
max_occurrences = 1
earliest_start = 0 MINUTES
diff --git a/code/modules/events/ion_storm.dm b/code/modules/events/ion_storm.dm
index e4272a6440d..222ec7b04df 100644
--- a/code/modules/events/ion_storm.dm
+++ b/code/modules/events/ion_storm.dm
@@ -11,7 +11,7 @@
var/shuffleLawsChance = 10 //chance the AI's laws are shuffled afterwards
var/botEmagChance = 1
var/ionMessage = null
- announceWhen = 1
+ announceWhen = 1
announceChance = 33
/datum/round_event/ion_storm/add_law_only // special subtype that adds a law only
diff --git a/code/modules/events/mass_hallucination.dm b/code/modules/events/mass_hallucination.dm
index 7e32289fed0..2e40878d633 100644
--- a/code/modules/events/mass_hallucination.dm
+++ b/code/modules/events/mass_hallucination.dm
@@ -29,7 +29,7 @@
continue
new /datum/hallucination/stationmessage(C, TRUE, stationmessage)
if(4 to 6)
- var/picked_hallucination = pick( /datum/hallucination/bolts,
+ var/picked_hallucination = pick( /datum/hallucination/bolts,
/datum/hallucination/chat,
/datum/hallucination/message,
/datum/hallucination/bolts,
diff --git a/code/modules/events/meteor_wave.dm b/code/modules/events/meteor_wave.dm
index 2c30e2a5e99..a32615bbc9e 100644
--- a/code/modules/events/meteor_wave.dm
+++ b/code/modules/events/meteor_wave.dm
@@ -9,9 +9,9 @@
earliest_start = 25 MINUTES
/datum/round_event/meteor_wave
- startWhen = 6
- endWhen = 66
- announceWhen = 1
+ startWhen = 6
+ endWhen = 66
+ announceWhen = 1
var/list/wave_type
var/wave_name = "normal"
diff --git a/code/modules/events/pirates.dm b/code/modules/events/pirates.dm
index a5a0a2a753c..0edb6054578 100644
--- a/code/modules/events/pirates.dm
+++ b/code/modules/events/pirates.dm
@@ -176,7 +176,7 @@
new /obj/effect/temp_visual/emp(get_turf(S))
/obj/machinery/shuttle_scrambler/proc/dump_loot(mob/user)
- if(credits_stored) // Prevents spamming empty holochips
+ if(credits_stored) // Prevents spamming empty holochips
new /obj/item/holochip(drop_location(), credits_stored)
to_chat(user,"You retrieve the siphoned credits!")
credits_stored = 0
diff --git a/code/modules/events/processor_overload.dm b/code/modules/events/processor_overload.dm
index 741ae0092cd..742af87fb2c 100644
--- a/code/modules/events/processor_overload.dm
+++ b/code/modules/events/processor_overload.dm
@@ -5,10 +5,10 @@
min_players = 20
/datum/round_event/processor_overload
- announceWhen = 1
+ announceWhen = 1
/datum/round_event/processor_overload/announce(fake)
- var/alert = pick( "Exospheric bubble inbound. Processor overload is likely. Please contact you*%xp25)`6cq-BZZT", \
+ var/alert = pick( "Exospheric bubble inbound. Processor overload is likely. Please contact you*%xp25)`6cq-BZZT", \
"Exospheric bubble inbound. Processor overload is likel*1eta;c5;'1v¬-BZZZT", \
"Exospheric bubble inbound. Processor ov#MCi46:5.;@63-BZZZZT", \
"Exospheric bubble inbo'Fz\\k55_@-BZZZZZT", \
diff --git a/code/modules/events/radiation_storm.dm b/code/modules/events/radiation_storm.dm
index 96e400fa67c..945daa9f901 100644
--- a/code/modules/events/radiation_storm.dm
+++ b/code/modules/events/radiation_storm.dm
@@ -10,7 +10,7 @@
/datum/round_event/radiation_storm/setup()
startWhen = 3
endWhen = startWhen + 1
- announceWhen = 1
+ announceWhen = 1
/datum/round_event/radiation_storm/announce(fake)
priority_announce("High levels of radiation detected near the station. Maintenance is best shielded from radiation.", "Anomaly Alert", ANNOUNCER_RADIATION)
diff --git a/code/modules/events/shuttle_loan.dm b/code/modules/events/shuttle_loan.dm
index 7c4b242fd4f..8dfc896aef9 100644
--- a/code/modules/events/shuttle_loan.dm
+++ b/code/modules/events/shuttle_loan.dm
@@ -135,7 +135,7 @@
pack.generate(pick_n_take(empty_shuttle_turfs))
shuttle_spawns.Add(/mob/living/simple_animal/hostile/russian)
- shuttle_spawns.Add(/mob/living/simple_animal/hostile/russian/ranged) //drops a mateba
+ shuttle_spawns.Add(/mob/living/simple_animal/hostile/russian/ranged) //drops a mateba
shuttle_spawns.Add(/mob/living/simple_animal/hostile/bear/russian)
if(prob(75))
shuttle_spawns.Add(/mob/living/simple_animal/hostile/russian)
diff --git a/code/modules/events/spacevine.dm b/code/modules/events/spacevine.dm
index 11dcb4c1fba..ccab978ad0a 100644
--- a/code/modules/events/spacevine.dm
+++ b/code/modules/events/spacevine.dm
@@ -282,7 +282,7 @@
var/mob/living/M = hitter
M.adjustBruteLoss(5)
to_chat(M, "You cut yourself on the thorny vines.")
- . = expected_damage
+ . = expected_damage
/datum/spacevine_mutation/woodening
name = "hardened"
@@ -454,8 +454,8 @@
if(alert(usr, "Are you sure you want to delete this spacevine cluster?", "Delete Vines", "Yes", "No") == "Yes")
DeleteVines()
-/datum/spacevine_controller/proc/DeleteVines() //this is kill
- QDEL_LIST(vines) //this will also qdel us
+/datum/spacevine_controller/proc/DeleteVines() //this is kill
+ QDEL_LIST(vines) //this will also qdel us
/datum/spacevine_controller/Destroy()
STOP_PROCESSING(SSobj, src)
diff --git a/code/modules/events/spontaneous_appendicitis.dm b/code/modules/events/spontaneous_appendicitis.dm
index 66d399d3d59..13e930a73db 100644
--- a/code/modules/events/spontaneous_appendicitis.dm
+++ b/code/modules/events/spontaneous_appendicitis.dm
@@ -22,7 +22,7 @@
continue
if(H.z in SSmapping.levels_by_trait(ZTRAIT_CENTCOM))//not for admin/ooc stuff
continue
- var/foundAlready = FALSE //don't infect someone that already has appendicitis
+ var/foundAlready = FALSE //don't infect someone that already has appendicitis
for(var/datum/disease/appendicitis/A in H.diseases)
foundAlready = TRUE
break
diff --git a/code/modules/events/wizard/curseditems.dm b/code/modules/events/wizard/curseditems.dm
index 44359d4baa9..29987f4d9fd 100644
--- a/code/modules/events/wizard/curseditems.dm
+++ b/code/modules/events/wizard/curseditems.dm
@@ -39,7 +39,7 @@
for(var/mob/living/carbon/human/H in GLOB.alive_mob_list)
if(ruins_spaceworthiness && !is_station_level(H.z) || isspaceturf(H.loc) || isplasmaman(H))
- continue //#savetheminers
+ continue //#savetheminers
if(ruins_wizard_loadout && iswizard(H))
continue
if(item_set == "catgirls2015") //Wizard code means never having to say you're sorry
diff --git a/code/modules/events/wizard/departmentrevolt.dm b/code/modules/events/wizard/departmentrevolt.dm
index d21570f8423..063657b50ca 100644
--- a/code/modules/events/wizard/departmentrevolt.dm
+++ b/code/modules/events/wizard/departmentrevolt.dm
@@ -50,7 +50,7 @@
department = pick(list("Uprising of Assistants", "Medical", "Engineering", "Science", "Supply", "Service", "Security") - cannot_pick)
if(!department)
message_admins("Department Revolt could not create a nation, as all the departments are independent! You have created nations, you madman!")
- var/list/jobs_to_revolt = list()
+ var/list/jobs_to_revolt = list()
var/nation_name
var/list/citizens = list()
diff --git a/code/modules/events/wizard/greentext.dm b/code/modules/events/wizard/greentext.dm
index 5a90845f3cf..a4c6c80ac9e 100644
--- a/code/modules/events/wizard/greentext.dm
+++ b/code/modules/events/wizard/greentext.dm
@@ -56,8 +56,8 @@
if(user in color_altered_mobs)
to_chat(user, "A sudden wave of failure washes over you...")
user.add_atom_colour("#FF0000", ADMIN_COLOUR_PRIORITY) //ya blew it
- last_holder = null
- new_holder = null
+ last_holder = null
+ new_holder = null
STOP_PROCESSING(SSobj, src)
..()
diff --git a/code/modules/events/wizard/magicarp.dm b/code/modules/events/wizard/magicarp.dm
index 7f9f3413c64..e956f11c039 100644
--- a/code/modules/events/wizard/magicarp.dm
+++ b/code/modules/events/wizard/magicarp.dm
@@ -6,7 +6,7 @@
earliest_start = 0 MINUTES
/datum/round_event/wizard/magicarp
- announceWhen = 3
+ announceWhen = 3
startWhen = 50
/datum/round_event/wizard/magicarp/setup()
diff --git a/code/modules/events/wizard/shuffle.dm b/code/modules/events/wizard/shuffle.dm
index 55dc909abf7..e56ab993c3e 100644
--- a/code/modules/events/wizard/shuffle.dm
+++ b/code/modules/events/wizard/shuffle.dm
@@ -10,7 +10,7 @@
/datum/round_event/wizard/shuffleloc/start()
var/list/moblocs = list()
- var/list/mobs = list()
+ var/list/mobs = list()
for(var/mob/living/carbon/human/H in GLOB.alive_mob_list)
if(!is_station_level(H.z))
@@ -46,7 +46,7 @@
/datum/round_event/wizard/shufflenames/start()
var/list/mobnames = list()
- var/list/mobs = list()
+ var/list/mobs = list()
for(var/mob/living/carbon/human/H in GLOB.alive_mob_list)
mobnames += H.real_name
@@ -79,7 +79,7 @@
earliest_start = 0 MINUTES
/datum/round_event/wizard/shuffleminds/start()
- var/list/mobs = list()
+ var/list/mobs = list()
for(var/mob/living/carbon/human/H in GLOB.alive_mob_list)
if(H.stat || !H.mind || iswizard(H))
diff --git a/code/modules/events/wormholes.dm b/code/modules/events/wormholes.dm
index 8172ffd15ff..36f58e25158 100644
--- a/code/modules/events/wormholes.dm
+++ b/code/modules/events/wormholes.dm
@@ -61,7 +61,7 @@ GLOBAL_LIST_EMPTY(all_wormholes) // So we can pick wormholes to teleport to
GLOB.all_wormholes -= src
/obj/effect/portal/wormhole/teleport(atom/movable/M)
- if(iseffect(M)) //sparks don't teleport
+ if(iseffect(M)) //sparks don't teleport
return
if(M.anchored)
if(!(ismecha(M) && mech_sized))
diff --git a/code/modules/fields/fields.dm b/code/modules/fields/fields.dm
index cb8d3e8dcf6..7e25d500fd1 100644
--- a/code/modules/fields/fields.dm
+++ b/code/modules/fields/fields.dm
@@ -4,9 +4,9 @@
//If there's any way to make this less CPU intensive than I've managed, gimme a call or do it yourself! - kevinz000
//Field shapes
-#define FIELD_NO_SHAPE 0 //Does not update turfs automatically
-#define FIELD_SHAPE_RADIUS_SQUARE 1 //Uses current_range and square_depth_up/down
-#define FIELD_SHAPE_CUSTOM_SQUARE 2 //Uses square_height and square_width and square_depth_up/down
+#define FIELD_NO_SHAPE 0 //Does not update turfs automatically
+#define FIELD_SHAPE_RADIUS_SQUARE 1 //Uses current_range and square_depth_up/down
+#define FIELD_SHAPE_CUSTOM_SQUARE 2 //Uses square_height and square_width and square_depth_up/down
//Proc to make fields. make_field(field_type, field_params_in_associative_list)
/proc/make_field(field_type, list/field_params, override_checks = FALSE, start_field = TRUE)
@@ -28,12 +28,12 @@
var/square_depth_up = 0
var/square_depth_down = 0
//Processing
- var/process_inner_turfs = FALSE //Don't do this unless it's absolutely necessary
- var/process_edge_turfs = FALSE //Don't do this either unless it's absolutely necessary, you can just track what things are inside manually or on the initial setup.
+ var/process_inner_turfs = FALSE //Don't do this unless it's absolutely necessary
+ var/process_edge_turfs = FALSE //Don't do this either unless it's absolutely necessary, you can just track what things are inside manually or on the initial setup.
var/requires_processing = FALSE
- var/setup_edge_turfs = FALSE //Setup edge turfs/all field turfs. Set either or both to ON when you need it, it's defaulting to off unless you do to save CPU.
+ var/setup_edge_turfs = FALSE //Setup edge turfs/all field turfs. Set either or both to ON when you need it, it's defaulting to off unless you do to save CPU.
var/setup_field_turfs = FALSE
- var/use_host_turf = FALSE //For fields from items carried on mobs to check turf instead of loc...
+ var/use_host_turf = FALSE //For fields from items carried on mobs to check turf instead of loc...
var/list/turf/field_turfs = list()
var/list/turf/edge_turfs = list()
@@ -56,7 +56,7 @@
/datum/proximity_monitor/advanced/proc/check_variables()
var/pass = TRUE
- if(field_shape == FIELD_NO_SHAPE) //If you're going to make a manually updated field you shouldn't be using automatic checks so don't.
+ if(field_shape == FIELD_NO_SHAPE) //If you're going to make a manually updated field you shouldn't be using automatic checks so don't.
pass = FALSE
if(current_range < 0 || square_height < 0 || square_width < 0 || square_depth_up < 0 || square_depth_down < 0)
pass = FALSE
@@ -68,11 +68,11 @@
if(process_inner_turfs)
for(var/turf/T in field_turfs)
process_inner_turf(T)
- CHECK_TICK //Really crappy lagchecks, needs improvement once someone starts using processed fields.
+ CHECK_TICK //Really crappy lagchecks, needs improvement once someone starts using processed fields.
if(process_edge_turfs)
for(var/turf/T in edge_turfs)
process_edge_turf(T)
- CHECK_TICK //Same here.
+ CHECK_TICK //Same here.
/datum/proximity_monitor/advanced/proc/process_inner_turf(turf/T)
@@ -86,7 +86,7 @@
setup_field()
post_setup_field()
-/datum/proximity_monitor/advanced/proc/full_cleanup() //Full cleanup for when you change something that would require complete resetting.
+/datum/proximity_monitor/advanced/proc/full_cleanup() //Full cleanup for when you change something that would require complete resetting.
for(var/turf/T in edge_turfs)
cleanup_edge_turf(T)
for(var/turf/T in field_turfs)
@@ -103,7 +103,7 @@
return TRUE
return FALSE
-/datum/proximity_monitor/advanced/proc/recalculate_field(ignore_movement_check = FALSE) //Call every time the field moves (done automatically if you use update_center) or a setup specification is changed.
+/datum/proximity_monitor/advanced/proc/recalculate_field(ignore_movement_check = FALSE) //Call every time the field moves (done automatically if you use update_center) or a setup specification is changed.
if(!(ignore_movement_check || check_movement()) && (field_shape != FIELD_NO_SHAPE))
return
update_new_turfs()
diff --git a/code/modules/fields/peaceborg_dampener.dm b/code/modules/fields/peaceborg_dampener.dm
index c743270d2f1..c3edae0050c 100644
--- a/code/modules/fields/peaceborg_dampener.dm
+++ b/code/modules/fields/peaceborg_dampener.dm
@@ -41,7 +41,7 @@
for(var/mob/living/silicon/robot/R in range(current_range, get_turf(host)))
if(R.has_buckled_mobs())
for(var/mob/living/L in R.buckled_mobs)
- L.visible_message("[L] is knocked off of [R] by the charge in [R]'s chassis induced by [name]!") //I know it's bad.
+ L.visible_message("[L] is knocked off of [R] by the charge in [R]'s chassis induced by [name]!") //I know it's bad.
L.Paralyze(10)
R.unbuckle_mob(L)
do_sparks(5, 0, L)
@@ -111,4 +111,4 @@
staging[AM] = get_turf(AM)
. = ..()
if(!.)
- staging -= AM //This one ain't goin' through.
+ staging -= AM //This one ain't goin' through.
diff --git a/code/modules/fields/timestop.dm b/code/modules/fields/timestop.dm
index 40014d2f157..c6aff1fc8da 100644
--- a/code/modules/fields/timestop.dm
+++ b/code/modules/fields/timestop.dm
@@ -18,7 +18,7 @@
var/check_anti_magic = FALSE
var/check_holy = FALSE
-/obj/effect/timestop/Initialize(mapload, radius, time, list/immune_atoms, start = TRUE) //Immune atoms assoc list atom = TRUE
+/obj/effect/timestop/Initialize(mapload, radius, time, list/immune_atoms, start = TRUE) //Immune atoms assoc list atom = TRUE
. = ..()
if(!isnull(time))
duration = time
diff --git a/code/modules/fields/turf_objects.dm b/code/modules/fields/turf_objects.dm
index f8d139a45dd..d82febe6f79 100644
--- a/code/modules/fields/turf_objects.dm
+++ b/code/modules/fields/turf_objects.dm
@@ -69,7 +69,7 @@
return parent.field_edge_uncrossed(AM, src)
return TRUE
-/proc/is_turf_in_field(turf/T, datum/proximity_monitor/advanced/F) //Looking for ways to optimize this!
+/proc/is_turf_in_field(turf/T, datum/proximity_monitor/advanced/F) //Looking for ways to optimize this!
for(var/obj/effect/abstract/proximity_checker/advanced/O in T)
if(istype(O, /obj/effect/abstract/proximity_checker/advanced/field_edge))
if(O.parent == F)
diff --git a/code/modules/food_and_drinks/drinks/drinks.dm b/code/modules/food_and_drinks/drinks/drinks.dm
index cefd2bff537..3514a6f1156 100644
--- a/code/modules/food_and_drinks/drinks/drinks.dm
+++ b/code/modules/food_and_drinks/drinks/drinks.dm
@@ -126,7 +126,7 @@
/obj/item/reagent_containers/food/drinks/proc/smash(atom/target, mob/thrower, ranged = FALSE)
if(!isGlass)
return
- if(QDELING(src) || !target) //Invalid loc
+ if(QDELING(src) || !target) //Invalid loc
return
if(bartender_check(target) && ranged)
return
@@ -211,8 +211,8 @@
///////////////////////////////////////////////Drinks
//Notes by Darem: Drinks are simply containers that start preloaded. Unlike condiments, the contents can be ingested directly
-// rather then having to add it to something else first. They should only contain liquids. They have a default container size of 50.
-// Formatting is the same as food.
+// rather then having to add it to something else first. They should only contain liquids. They have a default container size of 50.
+// Formatting is the same as food.
/obj/item/reagent_containers/food/drinks/coffee
name = "robust coffee"
@@ -560,8 +560,8 @@
//////////////////////////drinkingglass and shaker//
//Note by Darem: This code handles the mixing of drinks. New drinks go in three places: In Chemistry-Reagents.dm (for the drink
-// itself), in Chemistry-Recipes.dm (for the reaction that changes the components into the drink), and here (for the drinking glass
-// icon states.
+// itself), in Chemistry-Recipes.dm (for the reaction that changes the components into the drink), and here (for the drinking glass
+// icon states.
/obj/item/reagent_containers/food/drinks/shaker
name = "shaker"
diff --git a/code/modules/food_and_drinks/drinks/drinks/bottle.dm b/code/modules/food_and_drinks/drinks/drinks/bottle.dm
index acb013d0d1c..cee7a9cf6d7 100644
--- a/code/modules/food_and_drinks/drinks/drinks/bottle.dm
+++ b/code/modules/food_and_drinks/drinks/drinks/bottle.dm
@@ -523,7 +523,7 @@
desc = "A throwing weapon used to ignite things, typically filled with an accelerant. Recommended highly by rioters and revolutionaries. Light and toss."
icon_state = "vodkabottle"
list_reagents = list()
- var/list/accelerants = list( /datum/reagent/consumable/ethanol, /datum/reagent/fuel, /datum/reagent/clf3, /datum/reagent/phlogiston,
+ var/list/accelerants = list( /datum/reagent/consumable/ethanol, /datum/reagent/fuel, /datum/reagent/clf3, /datum/reagent/phlogiston,
/datum/reagent/napalm, /datum/reagent/hellwater, /datum/reagent/toxin/plasma, /datum/reagent/toxin/spore_burning)
var/active = 0
@@ -589,7 +589,7 @@
list_reagents = list(/datum/reagent/consumable/prunomix = 50)
var/fermentation_time = 30 SECONDS /// time it takes to ferment
var/fermentation_time_remaining /// for partial fermentation
- var/fermentation_timer /// store the timer id of fermentation
+ var/fermentation_timer /// store the timer id of fermentation
/obj/item/reagent_containers/food/drinks/bottle/pruno/Initialize()
. = ..()
diff --git a/code/modules/food_and_drinks/food.dm b/code/modules/food_and_drinks/food.dm
index e2402d5fd4b..afec8213f00 100644
--- a/code/modules/food_and_drinks/food.dm
+++ b/code/modules/food_and_drinks/food.dm
@@ -8,7 +8,7 @@
/obj/item/reagent_containers/food
possible_transfer_amounts = list()
- volume = 50 //Sets the default container amount for all food items.
+ volume = 50 //Sets the default container amount for all food items.
reagent_flags = INJECTABLE
resistance_flags = FLAMMABLE
var/foodtype = NONE
diff --git a/code/modules/food_and_drinks/food/condiment.dm b/code/modules/food_and_drinks/food/condiment.dm
index 35f4b688ea9..e7896ba448c 100644
--- a/code/modules/food_and_drinks/food/condiment.dm
+++ b/code/modules/food_and_drinks/food/condiment.dm
@@ -1,8 +1,8 @@
///////////////////////////////////////////////Condiments
//Notes by Darem: The condiments food-subtype is for stuff you don't actually eat but you use to modify existing food. They all
-// leave empty containers when used up and can be filled/re-filled with other items. Formatting for first section is identical
-// to mixed-drinks code. If you want an object that starts pre-loaded, you need to make it in addition to the other code.
+// leave empty containers when used up and can be filled/re-filled with other items. Formatting for first section is identical
+// to mixed-drinks code. If you want an object that starts pre-loaded, you need to make it in addition to the other code.
//Food items that aren't eaten normally and leave an empty container behind.
/obj/item/reagent_containers/food/condiment
@@ -109,8 +109,8 @@
list_reagents = list(/datum/reagent/consumable/sugar = 50)
fill_icon_thresholds = null
-/obj/item/reagent_containers/food/condiment/saltshaker //Separate from above since it's a small shaker rather then
- name = "salt shaker" // a large one.
+/obj/item/reagent_containers/food/condiment/saltshaker //Separate from above since it's a small shaker rather then
+ name = "salt shaker" // a large one.
desc = "Salt. From space oceans, presumably."
icon_state = "saltshakersmall"
icon_empty = "emptyshaker"
diff --git a/code/modules/food_and_drinks/kitchen_machinery/deep_fryer.dm b/code/modules/food_and_drinks/kitchen_machinery/deep_fryer.dm
index 352c6438d13..a7abd1b4fc8 100644
--- a/code/modules/food_and_drinks/kitchen_machinery/deep_fryer.dm
+++ b/code/modules/food_and_drinks/kitchen_machinery/deep_fryer.dm
@@ -20,7 +20,7 @@ GLOBAL_LIST_INIT(oilfry_blacklisted_items, typecacheof(list(
idle_power_usage = 5
layer = BELOW_OBJ_LAYER
circuit = /obj/item/circuitboard/machine/deep_fryer
- var/obj/item/food/deepfryholder/frying //What's being fried RIGHT NOW?
+ var/obj/item/food/deepfryholder/frying //What's being fried RIGHT NOW?
var/cook_time = 0
var/oil_use = 0.025 //How much cooking oil is used per second
var/fry_speed = 1 //How quickly we fry food
@@ -75,7 +75,7 @@ GLOBAL_LIST_INIT(oilfry_blacklisted_items, typecacheof(list(
return
if(default_unfasten_wrench(user, I))
return
- else if(default_deconstruction_screwdriver(user, "fryer_off", "fryer_off" ,I)) //where's the open maint panel icon?!
+ else if(default_deconstruction_screwdriver(user, "fryer_off", "fryer_off" ,I)) //where's the open maint panel icon?!
return
else
if(is_type_in_typecache(I, deepfry_blacklisted_items) || is_type_in_typecache(I, GLOB.oilfry_blacklisted_items) || HAS_TRAIT(I, TRAIT_NODROP) || (I.item_flags & (ABSTRACT | DROPDEL)))
diff --git a/code/modules/food_and_drinks/kitchen_machinery/monkeyrecycler.dm b/code/modules/food_and_drinks/kitchen_machinery/monkeyrecycler.dm
index 3c01e913a2b..6f615c85aee 100644
--- a/code/modules/food_and_drinks/kitchen_machinery/monkeyrecycler.dm
+++ b/code/modules/food_and_drinks/kitchen_machinery/monkeyrecycler.dm
@@ -13,7 +13,7 @@ GLOBAL_LIST_EMPTY(monkey_recyclers)
circuit = /obj/item/circuitboard/machine/monkey_recycler
var/stored_matter = 0
var/cube_production = 0.2
- var/list/connected = list() //Keeps track of connected xenobio consoles, for deletion in /Destroy()
+ var/list/connected = list() //Keeps track of connected xenobio consoles, for deletion in /Destroy()
/obj/machinery/monkey_recycler/Initialize(mapload)
. = ..()
@@ -28,7 +28,7 @@ GLOBAL_LIST_EMPTY(monkey_recyclers)
connected.Cut()
return ..()
-/obj/machinery/monkey_recycler/RefreshParts() //Ranges from 0.2 to 0.8 per monkey recycled
+/obj/machinery/monkey_recycler/RefreshParts() //Ranges from 0.2 to 0.8 per monkey recycled
cube_production = 0
for(var/obj/item/stock_parts/manipulator/B in component_parts)
//cube_production += B.rating * 0.1 //ORIGINAL
diff --git a/code/modules/food_and_drinks/kitchen_machinery/smartfridge.dm b/code/modules/food_and_drinks/kitchen_machinery/smartfridge.dm
index 071d1c089d0..7a2950856df 100644
--- a/code/modules/food_and_drinks/kitchen_machinery/smartfridge.dm
+++ b/code/modules/food_and_drinks/kitchen_machinery/smartfridge.dm
@@ -179,9 +179,9 @@
var/atom/movable/O = I
if (!QDELETED(O))
- var/md5name = md5(O.name) // This needs to happen because of a bug in a TGUI component, https://github.com/ractivejs/ractive/issues/744
- if (listofitems[md5name]) // which is fixed in a version we cannot use due to ie8 incompatibility
- listofitems[md5name]["amount"]++ // The good news is, #30519 made smartfridge UIs non-auto-updating
+ var/md5name = md5(O.name) // This needs to happen because of a bug in a TGUI component, https://github.com/ractivejs/ractive/issues/744
+ if (listofitems[md5name]) // which is fixed in a version we cannot use due to ie8 incompatibility
+ listofitems[md5name]["amount"]++ // The good news is, #30519 made smartfridge UIs non-auto-updating
else
listofitems[md5name] = list("name" = O.name, "type" = O.type, "amount" = 1)
sortList(listofitems)
@@ -419,7 +419,7 @@
/obj/machinery/smartfridge/organ
name = "smart organ storage"
desc = "A refrigerated storage unit for organ storage."
- max_n_of_items = 20 //vastly lower to prevent processing too long
+ max_n_of_items = 20 //vastly lower to prevent processing too long
base_build_path = /obj/machinery/smartfridge/organ
var/repair_rate = 0
@@ -430,7 +430,7 @@
/obj/machinery/smartfridge/organ/load(obj/item/O)
. = ..()
- if(!.) //if the item loads, clear can_decompose
+ if(!.) //if the item loads, clear can_decompose
return
if(isorgan(O))
var/obj/item/organ/organ = O
diff --git a/code/modules/food_and_drinks/recipes/drinks_recipes.dm b/code/modules/food_and_drinks/recipes/drinks_recipes.dm
index da378521c4a..456fffce5c6 100644
--- a/code/modules/food_and_drinks/recipes/drinks_recipes.dm
+++ b/code/modules/food_and_drinks/recipes/drinks_recipes.dm
@@ -273,7 +273,7 @@
/datum/chemical_reaction/drink/acidspit
results = list(/datum/reagent/consumable/ethanol/acid_spit = 6)
required_reagents = list(/datum/reagent/toxin/acid = 1, /datum/reagent/consumable/ethanol/wine = 5)
- optimal_ph_min = 0 //Our reaction is very acidic, so lets shift our range
+ optimal_ph_min = 0 //Our reaction is very acidic, so lets shift our range
/datum/chemical_reaction/drink/amasec
results = list(/datum/reagent/consumable/ethanol/amasec = 10)
@@ -358,7 +358,7 @@
/datum/chemical_reaction/drink/triple_citrus
results = list(/datum/reagent/consumable/triple_citrus = 5)
required_reagents = list(/datum/reagent/consumable/lemonjuice = 1, /datum/reagent/consumable/limejuice = 1, /datum/reagent/consumable/orangejuice = 1)
- optimal_ph_min = 0//Our reaction is very acidic, so lets shift our range
+ optimal_ph_min = 0//Our reaction is very acidic, so lets shift our range
/datum/chemical_reaction/drink/grape_soda
results = list(/datum/reagent/consumable/grape_soda = 2)
diff --git a/code/modules/food_and_drinks/recipes/tablecraft/recipes_pastry.dm b/code/modules/food_and_drinks/recipes/tablecraft/recipes_pastry.dm
index 3494543fbb9..8ad024430c5 100644
--- a/code/modules/food_and_drinks/recipes/tablecraft/recipes_pastry.dm
+++ b/code/modules/food_and_drinks/recipes/tablecraft/recipes_pastry.dm
@@ -493,7 +493,7 @@
/obj/item/food/pastrybase = 1,
/obj/item/paper = 1
)
- parts = list(
+ parts = list(
/obj/item/paper = 1
)
result = /obj/item/food/fortunecookie
diff --git a/code/modules/food_and_drinks/recipes/tablecraft/recipes_pie.dm b/code/modules/food_and_drinks/recipes/tablecraft/recipes_pie.dm
index d187ca65b93..f52c8d563bc 100644
--- a/code/modules/food_and_drinks/recipes/tablecraft/recipes_pie.dm
+++ b/code/modules/food_and_drinks/recipes/tablecraft/recipes_pie.dm
@@ -201,7 +201,7 @@
name = "Baklava pie"
reqs = list(
/obj/item/food/butter = 2,
- /obj/item/food/tortilla = 4, //Layers
+ /obj/item/food/tortilla = 4, //Layers
/obj/item/seeds/wheat/oat = 4
)
result = /obj/item/food/pie/baklava
diff --git a/code/modules/holiday/halloween.dm b/code/modules/holiday/halloween.dm
index f4b74981ad4..2e97ec34ad8 100644
--- a/code/modules/holiday/halloween.dm
+++ b/code/modules/holiday/halloween.dm
@@ -25,9 +25,9 @@
#define SPOOKY_SKELETON 1
#define ANGRY_FAITHLESS 2
-#define SCARY_BATS 3
-#define INSANE_CLOWN 4
-#define HOWLING_GHOST 5
+#define SCARY_BATS 3
+#define INSANE_CLOWN 4
+#define HOWLING_GHOST 5
//Spookoween variables
/obj/structure/closet
diff --git a/code/modules/holodeck/area_copy.dm b/code/modules/holodeck/area_copy.dm
index bca19aaeeea..07641f5f152 100644
--- a/code/modules/holodeck/area_copy.dm
+++ b/code/modules/holodeck/area_copy.dm
@@ -24,7 +24,7 @@ GLOBAL_LIST_INIT(duplicate_forbidden_vars,list(
var/list/L = original.vars[V]
O.vars[V] = L.Copy()
else if(istype(original.vars[V], /datum) || ismob(original.vars[V]))
- continue // this would reference the original's object, that will break when it is used or deleted.
+ continue // this would reference the original's object, that will break when it is used or deleted.
else
O.vars[V] = original.vars[V]
@@ -56,7 +56,7 @@ GLOBAL_LIST_INIT(duplicate_forbidden_vars,list(
if(M.circuit)
M.circuit.flags_1 |= HOLOGRAM_1
- if(ismob(O)) //Overlays are carried over despite disallowing them, if a fix is found remove this.
+ if(ismob(O)) //Overlays are carried over despite disallowing them, if a fix is found remove this.
var/mob/M = O
M.cut_overlays()
M.regenerate_icons()
@@ -68,7 +68,7 @@ GLOBAL_LIST_INIT(duplicate_forbidden_vars,list(
//Returns: Nothing.
//Notes: Attempts to move the contents of one area to another area.
// Movement based on lower left corner. Tiles that do not fit
- // into the new area will not be moved.
+ // into the new area will not be moved.
if(!A || !src)
return 0
diff --git a/code/modules/hydroponics/beekeeping/beebox.dm b/code/modules/hydroponics/beekeeping/beebox.dm
index b290f07b79b..076a5a54931 100644
--- a/code/modules/hydroponics/beekeeping/beebox.dm
+++ b/code/modules/hydroponics/beekeeping/beebox.dm
@@ -1,9 +1,9 @@
-#define BEEBOX_MAX_FRAMES 3 //Max frames per box
-#define BEES_RATIO 0.5 //Multiplied by the max number of honeycombs to find the max number of bees
-#define BEE_PROB_NEW_BEE 20 //The chance for spare bee_resources to be turned into new bees
-#define BEE_RESOURCE_HONEYCOMB_COST 100 //The amount of bee_resources for a new honeycomb to be produced, percentage cost 1-100
-#define BEE_RESOURCE_NEW_BEE_COST 50 //The amount of bee_resources for a new bee to be produced, percentage cost 1-100
+#define BEEBOX_MAX_FRAMES 3 //Max frames per box
+#define BEES_RATIO 0.5 //Multiplied by the max number of honeycombs to find the max number of bees
+#define BEE_PROB_NEW_BEE 20 //The chance for spare bee_resources to be turned into new bees
+#define BEE_RESOURCE_HONEYCOMB_COST 100 //The amount of bee_resources for a new honeycomb to be produced, percentage cost 1-100
+#define BEE_RESOURCE_NEW_BEE_COST 50 //The amount of bee_resources for a new bee to be produced, percentage cost 1-100
diff --git a/code/modules/hydroponics/grown/onion.dm b/code/modules/hydroponics/grown/onion.dm
index 6a5702ad32e..b1349d20357 100644
--- a/code/modules/hydroponics/grown/onion.dm
+++ b/code/modules/hydroponics/grown/onion.dm
@@ -50,8 +50,8 @@
AddElement(/datum/element/processable, TOOL_KNIFE, /obj/item/food/onion_slice/red, 2, 15)
/obj/item/food/grown/onion/UsedforProcessing(mob/living/user, obj/item/I, list/chosen_option)
- var/datum/effect_system/smoke_spread/chem/S = new //Since the onion is destroyed when it's sliced,
- var/splat_location = get_turf(src) //we need to set up the smoke beforehand
+ var/datum/effect_system/smoke_spread/chem/S = new //Since the onion is destroyed when it's sliced,
+ var/splat_location = get_turf(src) //we need to set up the smoke beforehand
S.attach(splat_location)
S.set_up(reagents, 0, splat_location, 0)
S.start()
diff --git a/code/modules/hydroponics/hydroponics.dm b/code/modules/hydroponics/hydroponics.dm
index a3e7cba10b9..b190124de93 100644
--- a/code/modules/hydroponics/hydroponics.dm
+++ b/code/modules/hydroponics/hydroponics.dm
@@ -379,7 +379,7 @@
myseed = null
else
oldPlantName = "empty tray"
- switch(rand(1,18)) // randomly pick predominative weed
+ switch(rand(1,18)) // randomly pick predominative weed
if(16 to 18)
myseed = new /obj/item/seeds/reishi(src)
if(14 to 15)
diff --git a/code/modules/hydroponics/seeds.dm b/code/modules/hydroponics/seeds.dm
index d72edc502cc..84b93087652 100644
--- a/code/modules/hydroponics/seeds.dm
+++ b/code/modules/hydroponics/seeds.dm
@@ -4,7 +4,7 @@
/obj/item/seeds
icon = 'icons/obj/hydroponics/seeds.dmi'
- icon_state = "seed" // Unknown plant seed - these shouldn't exist in-game.
+ icon_state = "seed" // Unknown plant seed - these shouldn't exist in-game.
worn_icon_state = "seed"
w_class = WEIGHT_CLASS_TINY
resistance_flags = FLAMMABLE
diff --git a/code/modules/instruments/instrument_data/_instrument_data.dm b/code/modules/instruments/instrument_data/_instrument_data.dm
index 5af78a995f4..39d16e499f2 100644
--- a/code/modules/instruments/instrument_data/_instrument_data.dm
+++ b/code/modules/instruments/instrument_data/_instrument_data.dm
@@ -96,7 +96,7 @@
var/to_key = real_keys[i+1]
var/sample1 = real_samples[num2text(from_key)]
var/sample2 = real_samples[num2text(to_key)]
- var/pivot = FLOOR((from_key + to_key) / 2, 1) //original code was a round but I replaced it because that's effectively a floor, thanks Baystation! who knows what was intended.
+ var/pivot = FLOOR((from_key + to_key) / 2, 1) //original code was a round but I replaced it because that's effectively a floor, thanks Baystation! who knows what was intended.
for(var/key in from_key to pivot)
samples[num2text(key)] = new /datum/instrument_key(sample1, key, key - from_key)
for(var/key in (pivot + 1) to to_key)
diff --git a/code/modules/instruments/instrument_data/hardcoded.dm b/code/modules/instruments/instrument_data/hardcoded.dm
index 5db7e8b3bb4..c770f9569e3 100644
--- a/code/modules/instruments/instrument_data/hardcoded.dm
+++ b/code/modules/instruments/instrument_data/hardcoded.dm
@@ -5,7 +5,7 @@
abstract_type = /datum/instrument/hardcoded
category = "Non-Synthesized"
instrument_flags = INSTRUMENT_LEGACY
- volume_multiplier = 1 //not as loud as synth'd
+ volume_multiplier = 1 //not as loud as synth'd
/datum/instrument/hardcoded/accordion
name = "Accordion"
diff --git a/code/modules/instruments/items.dm b/code/modules/instruments/items.dm
index 990f6ba3a90..31dff351c19 100644
--- a/code/modules/instruments/items.dm
+++ b/code/modules/instruments/items.dm
@@ -17,14 +17,14 @@
/obj/item/instrument/Initialize(mapload)
. = ..()
song = new(src, allowed_instrument_ids, instrument_range)
- allowed_instrument_ids = null //We don't need this clogging memory after it's used.
+ allowed_instrument_ids = null //We don't need this clogging memory after it's used.
/obj/item/instrument/Destroy()
QDEL_NULL(song)
return ..()
/obj/item/instrument/proc/should_stop_playing(mob/user)
- return user.incapacitated() || !((loc == user) || (isturf(loc) && Adjacent(user))) // sorry, no more TK playing.
+ return user.incapacitated() || !((loc == user) || (isturf(loc) && Adjacent(user))) // sorry, no more TK playing.
/obj/item/instrument/suicide_act(mob/user)
user.visible_message("[user] begins to play 'Gloomy Sunday'! It looks like [user.p_theyre()] trying to commit suicide!")
diff --git a/code/modules/instruments/songs/_song.dm b/code/modules/instruments/songs/_song.dm
index eb6bc977329..d7766e9263c 100644
--- a/code/modules/instruments/songs/_song.dm
+++ b/code/modules/instruments/songs/_song.dm
@@ -265,7 +265,7 @@
*/
/datum/song/proc/tempodiv_to_delay(tempodiv)
if(!tempodiv)
- tempodiv = 1 // no division by 0. some song converters tend to use 0 for when it wants to have no div, for whatever reason.
+ tempodiv = 1 // no division by 0. some song converters tend to use 0 for when it wants to have no div, for whatever reason.
return max(1, round((tempo/tempodiv) / world.tick_lag, 1))
/**
diff --git a/code/modules/instruments/songs/editor.dm b/code/modules/instruments/songs/editor.dm
index f672c0ecac6..c7c5e449ecb 100644
--- a/code/modules/instruments/songs/editor.dm
+++ b/code/modules/instruments/songs/editor.dm
@@ -112,7 +112,7 @@
lines.Remove(l)
else
linenum++
- updateDialog(usr) // make sure updates when complete
+ updateDialog(usr) // make sure updates when complete
/datum/song/Topic(href, href_list)
if(!usr.canUseTopic(parent, TRUE, FALSE, FALSE, FALSE))
@@ -228,7 +228,7 @@
var/choice = input(usr, "Select Instrument", "Instrument Selection") as null|anything in instruments
if(!choice)
return
- choice = instruments[choice] //get id
+ choice = instruments[choice] //get id
if(choice)
set_instrument(choice)
diff --git a/code/modules/instruments/songs/play_legacy.dm b/code/modules/instruments/songs/play_legacy.dm
index 1b6b58139dc..bcd9935ab4c 100644
--- a/code/modules/instruments/songs/play_legacy.dm
+++ b/code/modules/instruments/songs/play_legacy.dm
@@ -4,7 +4,7 @@
/datum/song/proc/compile_legacy()
if(!length(src.lines))
return
- var/list/lines = src.lines //cache for hyepr speed!
+ var/list/lines = src.lines //cache for hyepr speed!
compiled_chords = list()
var/list/octaves = list(3, 3, 3, 3, 3, 3, 3)
var/list/accents = list("n", "n", "n", "n", "n", "n", "n")
@@ -17,7 +17,7 @@
var/len = length(notes_tempodiv)
if(len >= 2)
tempodiv = text2num(notes_tempodiv[2])
- if(len) //some dunkass is going to do ,,,, to make 3 rests instead of ,/1 because there's no standardization so let's be prepared for that.
+ if(len) //some dunkass is going to do ,,,, to make 3 rests instead of ,/1 because there's no standardization so let's be prepared for that.
var/list/notes = splittext(notes_tempodiv[1], "-")
for(var/note in notes)
if(length(note) == 0)
@@ -29,12 +29,12 @@
for(var/i in 2 to length(note))
var/oct_acc = copytext(note, i, i + 1)
var/num = text2num(oct_acc)
- if(!num) //it's an accidental
- accents[key] = oct_acc //if they misspelled it/fucked up that's on them lmao, no safety checks.
- else //octave
+ if(!num) //it's an accidental
+ accents[key] = oct_acc //if they misspelled it/fucked up that's on them lmao, no safety checks.
+ else //octave
octaves[key] = clamp(num, octave_min, octave_max)
compiled_chord[++compiled_chord.len] = list(key, accents[key], octaves[key])
- compiled_chord += tempodiv //this goes last
+ compiled_chord += tempodiv //this goes last
if(length(compiled_chord))
compiled_chords[++compiled_chords.len] = compiled_chord
diff --git a/code/modules/instruments/songs/play_synthesized.dm b/code/modules/instruments/songs/play_synthesized.dm
index fbe146bd793..649368b61ba 100644
--- a/code/modules/instruments/songs/play_synthesized.dm
+++ b/code/modules/instruments/songs/play_synthesized.dm
@@ -4,7 +4,7 @@
/datum/song/proc/compile_synthesized()
if(!length(src.lines))
return
- var/list/lines = src.lines //cache for hyepr speed!
+ var/list/lines = src.lines //cache for hyepr speed!
compiled_chords = list()
var/list/octaves = list(3, 3, 3, 3, 3, 3, 3)
var/list/accents = list("n", "n", "n", "n", "n", "n", "n")
@@ -17,7 +17,7 @@
var/len = length(notes_tempodiv)
if(len >= 2)
tempodiv = text2num(notes_tempodiv[2])
- if(len) //some dunkass is going to do ,,,, to make 3 rests instead of ,/1 because there's no standardization so let's be prepared for that.
+ if(len) //some dunkass is going to do ,,,, to make 3 rests instead of ,/1 because there's no standardization so let's be prepared for that.
var/list/notes = splittext(notes_tempodiv[1], "-")
for(var/note in notes)
if(length(note) == 0)
@@ -29,12 +29,12 @@
for(var/i in 2 to length(note))
var/oct_acc = copytext(note, i, i + 1)
var/num = text2num(oct_acc)
- if(!num) //it's an accidental
- accents[key] = oct_acc //if they misspelled it/fucked up that's on them lmao, no safety checks.
- else //octave
+ if(!num) //it's an accidental
+ accents[key] = oct_acc //if they misspelled it/fucked up that's on them lmao, no safety checks.
+ else //octave
octaves[key] = clamp(num, octave_min, octave_max)
compiled_chord += clamp((note_offset_lookup[key] + octaves[key] * 12 + accent_lookup[accents[key]]), key_min, key_max)
- compiled_chord += tempodiv //this goes last
+ compiled_chord += tempodiv //this goes last
if(length(compiled_chord))
compiled_chords[++compiled_chords.len] = compiled_chord
@@ -47,7 +47,7 @@
key = clamp(key + note_shift, key_min, key_max)
if((world.time - MUSICIAN_HEARCHECK_MINDELAY) > last_hearcheck)
do_hearcheck()
- var/datum/instrument_key/K = using_instrument.samples[num2text(key)] //See how fucking easy it is to make a number text? You don't need a complicated 9 line proc!
+ var/datum/instrument_key/K = using_instrument.samples[num2text(key)] //See how fucking easy it is to make a number text? You don't need a complicated 9 line proc!
//Should probably add channel limiters here at some point but I don't care right now.
var/channel = pop_channel()
if(isnull(channel))
@@ -94,7 +94,7 @@
* Pops a channel we have reserved so we don't have to release and re-request them from SSsounds every time we play a note. This is faster.
*/
/datum/song/proc/pop_channel()
- if(length(channels_idle)) //just pop one off of here if we have one available
+ if(length(channels_idle)) //just pop one off of here if we have one available
. = text2num(channels_idle[1])
channels_idle.Cut(1,2)
return
diff --git a/code/modules/instruments/stationary.dm b/code/modules/instruments/stationary.dm
index 009e02494e7..41d2c0e7284 100644
--- a/code/modules/instruments/stationary.dm
+++ b/code/modules/instruments/stationary.dm
@@ -20,7 +20,7 @@
return TRUE
if(!user)
return FALSE
- return !user.canUseTopic(src, FALSE, TRUE, FALSE, FALSE) //can play with TK and while resting because fun.
+ return !user.canUseTopic(src, FALSE, TRUE, FALSE, FALSE) //can play with TK and while resting because fun.
/obj/structure/musician/ui_interact(mob/user)
. = ..()
diff --git a/code/modules/interview/interview.dm b/code/modules/interview/interview.dm
index 924704c604c..58507798178 100644
--- a/code/modules/interview/interview.dm
+++ b/code/modules/interview/interview.dm
@@ -1,9 +1,9 @@
/// State when an interview has been approved
-#define INTERVIEW_APPROVED "interview_approved"
+#define INTERVIEW_APPROVED "interview_approved"
/// State when an interview as been denied
-#define INTERVIEW_DENIED "interview_denied"
+#define INTERVIEW_DENIED "interview_denied"
/// State when an interview has had no action on it yet
-#define INTERVIEW_PENDING "interview_pending"
+#define INTERVIEW_PENDING "interview_pending"
/**
* Represents a new-player interview form
diff --git a/code/modules/jobs/access.dm b/code/modules/jobs/access.dm
index d34964d56ba..5cf4124e128 100644
--- a/code/modules/jobs/access.dm
+++ b/code/modules/jobs/access.dm
@@ -7,7 +7,7 @@
if(issilicon(M))
if(ispAI(M))
return FALSE
- return TRUE //AI can do whatever it wants
+ return TRUE //AI can do whatever it wants
if(isAdminGhostAI(M))
//Access can't stop the abuse
return TRUE
diff --git a/code/modules/jobs/job_exp.dm b/code/modules/jobs/job_exp.dm
index 7be2fcb76e2..d1ffb238ae9 100644
--- a/code/modules/jobs/job_exp.dm
+++ b/code/modules/jobs/job_exp.dm
@@ -185,7 +185,7 @@ GLOBAL_PROTECT(exp_to_update)
play_records[EXP_TYPE_GHOST] += minutes
if(announce_changes)
to_chat(src,"You got: [minutes] Ghost EXP!")
- else if(minutes) //Let "refresh" checks go through
+ else if(minutes) //Let "refresh" checks go through
return
for(var/jtype in play_records)
@@ -220,6 +220,6 @@ GLOBAL_PROTECT(exp_to_update)
if(flags_read.NextRow())
prefs.db_flags = text2num(flags_read.item[1])
else if(isnull(prefs.db_flags))
- prefs.db_flags = 0 //This PROBABLY won't happen, but better safe than sorry.
+ prefs.db_flags = 0 //This PROBABLY won't happen, but better safe than sorry.
qdel(flags_read)
return TRUE
diff --git a/code/modules/jobs/job_types/_job.dm b/code/modules/jobs/job_types/_job.dm
index 76c2558bed8..3ac455146ec 100644
--- a/code/modules/jobs/job_types/_job.dm
+++ b/code/modules/jobs/job_types/_job.dm
@@ -3,8 +3,8 @@
var/title = "NOPE"
//Job access. The use of minimal_access or access is determined by a config setting: config.jobs_have_minimal_access
- var/list/minimal_access = list() //Useful for servers which prefer to only have access given to the places a job absolutely needs (Larger server population)
- var/list/access = list() //Useful for servers which either have fewer players, so each person needs to fill more than one role, or servers which like to give more access, so players can't hide forever in their super secure departments (I'm looking at you, chemistry!)
+ var/list/minimal_access = list() //Useful for servers which prefer to only have access given to the places a job absolutely needs (Larger server population)
+ var/list/access = list() //Useful for servers which either have fewer players, so each person needs to fill more than one role, or servers which like to give more access, so players can't hide forever in their super secure departments (I'm looking at you, chemistry!)
/// Innate skill levels unlocked at roundstart. Based on config.jobs_have_minimal_access config setting, for example with a skeleton crew. Format is list(/datum/skill/foo = SKILL_EXP_NOVICE) with exp as an integer or as per code/_DEFINES/skills.dm
var/list/skills
@@ -105,7 +105,7 @@
if(!ishuman(H))
return
- if(!config) //Needed for robots.
+ if(!config) //Needed for robots.
roundstart_experience = minimal_skills
if(CONFIG_GET(flag/jobs_have_minimal_access))
@@ -122,7 +122,7 @@
if(head_announce)
announce_head(H, head_announce)
-/datum/job/proc/override_latejoin_spawn(mob/living/carbon/human/H) //Return TRUE to force latejoining to not automatically place the person in latejoin shuttle/whatever.
+/datum/job/proc/override_latejoin_spawn(mob/living/carbon/human/H) //Return TRUE to force latejoining to not automatically place the person in latejoin shuttle/whatever.
return FALSE
//Used for a special check of whether to allow a client to latejoin as this job.
@@ -159,7 +159,7 @@
announce(H)
/datum/job/proc/get_access()
- if(!config) //Needed for robots.
+ if(!config) //Needed for robots.
return src.minimal_access.Copy()
. = list()
@@ -180,7 +180,7 @@
//If the configuration option is set to require players to be logged as old enough to play certain jobs, then this proc checks that they are, otherwise it just returns 1
/datum/job/proc/player_old_enough(client/C)
if(available_in_days(C) == 0)
- return TRUE //Available in 0 days = available right now = player is old enough to play.
+ return TRUE //Available in 0 days = available right now = player is old enough to play.
return FALSE
diff --git a/code/modules/jobs/job_types/ai.dm b/code/modules/jobs/job_types/ai.dm
index e29e44e4f46..7b2b6990fcc 100644
--- a/code/modules/jobs/job_types/ai.dm
+++ b/code/modules/jobs/job_types/ai.dm
@@ -37,7 +37,7 @@
if(SSticker.anonymousnames)
AI.fully_replace_character_name(AI.real_name, SSticker.anonymousnames.anonymous_ai_name(TRUE))
else
- AI.apply_pref_name("ai", M.client) //If this runtimes oh well jobcode is fucked. //what is this no energy attitude man
+ AI.apply_pref_name("ai", M.client) //If this runtimes oh well jobcode is fucked. //what is this no energy attitude man
AI.set_core_display_icon(null, M.client)
//we may have been created after our borg
diff --git a/code/modules/jobs/job_types/assistant.dm b/code/modules/jobs/job_types/assistant.dm
index 366f1ca94e0..aa0a99fde8e 100644
--- a/code/modules/jobs/job_types/assistant.dm
+++ b/code/modules/jobs/job_types/assistant.dm
@@ -8,8 +8,8 @@ Assistant
spawn_positions = 5
supervisors = "absolutely everyone"
selection_color = "#dddddd"
- access = list() //See /datum/job/assistant/get_access()
- minimal_access = list() //See /datum/job/assistant/get_access()
+ access = list() //See /datum/job/assistant/get_access()
+ minimal_access = list() //See /datum/job/assistant/get_access()
outfit = /datum/outfit/job/assistant
antag_rep = 7
paycheck = PAYCHECK_ASSISTANT // Get a job. Job reassignment changes your paycheck now. Get over it.
diff --git a/code/modules/jobs/job_types/captain.dm b/code/modules/jobs/job_types/captain.dm
index bacc99fcaec..e48a23f0757 100755
--- a/code/modules/jobs/job_types/captain.dm
+++ b/code/modules/jobs/job_types/captain.dm
@@ -15,8 +15,8 @@
outfit = /datum/outfit/job/captain
- access = list() //See get_access()
- minimal_access = list() //See get_access()
+ access = list() //See get_access()
+ minimal_access = list() //See get_access()
paycheck = PAYCHECK_COMMAND
paycheck_department = ACCOUNT_SEC
diff --git a/code/modules/jobs/job_types/cyborg.dm b/code/modules/jobs/job_types/cyborg.dm
index 6510f4c301e..67f0f3f926e 100644
--- a/code/modules/jobs/job_types/cyborg.dm
+++ b/code/modules/jobs/job_types/cyborg.dm
@@ -2,9 +2,9 @@
title = "Cyborg"
auto_deadmin_role_flags = DEADMIN_POSITION_SILICON
faction = "Station"
- total_positions = 3 // SKYRAT EDIT: Original value (0)
- spawn_positions = 3 // SKYRAT EDIT: Original value (1)
- supervisors = "your laws and the AI" //Nodrak
+ total_positions = 3 // SKYRAT EDIT: Original value (0)
+ spawn_positions = 3 // SKYRAT EDIT: Original value (1)
+ supervisors = "your laws and the AI" //Nodrak
selection_color = "#ddffdd"
minimal_player_age = 21
exp_requirements = 120
diff --git a/code/modules/jobs/job_types/shaft_miner.dm b/code/modules/jobs/job_types/shaft_miner.dm
index e36472c8ad1..f773e71295d 100644
--- a/code/modules/jobs/job_types/shaft_miner.dm
+++ b/code/modules/jobs/job_types/shaft_miner.dm
@@ -27,7 +27,7 @@
gloves = /obj/item/clothing/gloves/color/black
uniform = /obj/item/clothing/under/rank/cargo/miner/lavaland
l_pocket = /obj/item/reagent_containers/hypospray/medipen/survival
- r_pocket = /obj/item/storage/bag/ore //causes issues if spawned in backpack
+ r_pocket = /obj/item/storage/bag/ore //causes issues if spawned in backpack
backpack_contents = list(
/obj/item/flashlight/seclite=1,\
/obj/item/kitchen/knife/combat/survival=1,\
diff --git a/code/modules/language/language_holder.dm b/code/modules/language/language_holder.dm
index 456610dbf90..05decf701a5 100644
--- a/code/modules/language/language_holder.dm
+++ b/code/modules/language/language_holder.dm
@@ -82,7 +82,7 @@ Key procs
/datum/language_holder/proc/grant_all_languages(understood = TRUE, spoken = TRUE, grant_omnitongue = TRUE, source = LANGUAGE_MIND)
for(var/language in GLOB.all_languages)
grant_language(language, understood, spoken, source)
- if(grant_omnitongue) // Overrides tongue limitations.
+ if(grant_omnitongue) // Overrides tongue limitations.
omnitongue = TRUE
return TRUE
@@ -194,8 +194,8 @@ Key procs
/// Empties out the atom specific languages and updates them according to the supplied atoms language holder.
/datum/language_holder/proc/update_atom_languages(atom/movable/thing)
- var/datum/language_holder/from_atom = thing.get_language_holder(FALSE) //Gets the atoms language holder
- if(from_atom == src) //This could happen if called on an atom without a mind.
+ var/datum/language_holder/from_atom = thing.get_language_holder(FALSE) //Gets the atoms language holder
+ if(from_atom == src) //This could happen if called on an atom without a mind.
return FALSE
for(var/language in understood_languages)
remove_language(language, TRUE, FALSE, LANGUAGE_ATOM)
@@ -211,7 +211,7 @@ Key procs
/// Copies all languages from the supplied atom/language holder. Source should be overridden when you
/// do not want the language overwritten by later atom updates or want to avoid blocked languages.
/datum/language_holder/proc/copy_languages(datum/language_holder/from_holder, source_override)
- if(source_override) //No blocked languages here, for now only used by ling absorb.
+ if(source_override) //No blocked languages here, for now only used by ling absorb.
for(var/language in from_holder.understood_languages)
grant_language(language, TRUE, FALSE, source_override)
for(var/language in from_holder.spoken_languages)
diff --git a/code/modules/library/lib_items.dm b/code/modules/library/lib_items.dm
index e98c23c7de1..a2507516e31 100644
--- a/code/modules/library/lib_items.dm
+++ b/code/modules/library/lib_items.dm
@@ -5,9 +5,9 @@
/* Library Items
*
* Contains:
- * Bookcase
- * Book
- * Barcode Scanner
+ * Bookcase
+ * Book
+ * Barcode Scanner
*/
/*
@@ -208,17 +208,17 @@
desc = "Crack it open, inhale the musk of its pages, and learn something new."
throw_speed = 1
throw_range = 5
- w_class = WEIGHT_CLASS_NORMAL //upped to three because books are, y'know, pretty big. (and you could hide them inside eachother recursively forever)
+ w_class = WEIGHT_CLASS_NORMAL //upped to three because books are, y'know, pretty big. (and you could hide them inside eachother recursively forever)
attack_verb_continuous = list("bashes", "whacks", "educates")
attack_verb_simple = list("bash", "whack", "educate")
resistance_flags = FLAMMABLE
drop_sound = 'sound/items/handling/book_drop.ogg'
pickup_sound = 'sound/items/handling/book_pickup.ogg'
- var/dat //Actual page content
- var/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
- var/unique = FALSE //false - Normal book, true - Should not be treated as normal book, unable to be copied, unable to be modified
- var/title //The real name of the book.
+ var/dat //Actual page content
+ var/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
+ var/unique = FALSE //false - Normal book, true - Should not be treated as normal book, unable to be copied, unable to be modified
+ var/title //The real name of the book.
var/window_size = null // Specific window size for the book, i.e: "1920x1080", Size x Width
@@ -349,9 +349,9 @@
throw_speed = 3
throw_range = 5
w_class = WEIGHT_CLASS_TINY
- var/obj/machinery/computer/bookmanagement/computer //Associated computer - Modes 1 to 3 use this
- var/obj/item/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
+ var/obj/machinery/computer/bookmanagement/computer //Associated computer - Modes 1 to 3 use this
+ var/obj/item/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
/obj/item/barcodescanner/attack_self(mob/user)
mode += 1
diff --git a/code/modules/library/lib_machines.dm b/code/modules/library/lib_machines.dm
index d659153407c..b274c594c1e 100644
--- a/code/modules/library/lib_machines.dm
+++ b/code/modules/library/lib_machines.dm
@@ -1,12 +1,12 @@
/* Library Machines
*
* Contains:
- * Borrowbook datum
- * Library Public Computer
- * Cachedbook datum
- * Library Computer
- * Library Scanner
- * Book Binder
+ * Borrowbook datum
+ * Library Public Computer
+ * Cachedbook datum
+ * Library Computer
+ * Library Scanner
+ * Book Binder
*/
@@ -185,7 +185,7 @@
var/list/inventory = list()
var/checkoutperiod = 5 // In minutes
var/obj/machinery/libraryscanner/scanner // Book scanner that will be used when uploading books to the Archive
- var/page = 1 //current page of the external archives
+ var/page = 1 //current page of the external archives
var/printer_cooldown = 0
COOLDOWN_DECLARE(library_console_topic_cooldown)
@@ -517,7 +517,7 @@
icon_state = "bigscanner"
desc = "It servers the purpose of scanning stuff."
density = TRUE
- var/obj/item/book/cache // Last scanned book
+ var/obj/item/book/cache // Last scanned book
/obj/machinery/libraryscanner/attackby(obj/O, mob/user, params)
if(istype(O, /obj/item/book))
diff --git a/code/modules/library/random_books.dm b/code/modules/library/random_books.dm
index d60609147af..bd2bbafa76b 100644
--- a/code/modules/library/random_books.dm
+++ b/code/modules/library/random_books.dm
@@ -59,12 +59,12 @@
while(query_get_random_books.NextRow())
var/obj/item/book/B
B = existing_book ? existing_book : new(location)
- B.author = query_get_random_books.item[1]
- B.title = query_get_random_books.item[2]
- B.dat = query_get_random_books.item[3]
- B.name = "Book: [B.title]"
+ B.author = query_get_random_books.item[1]
+ B.title = query_get_random_books.item[2]
+ B.dat = query_get_random_books.item[3]
+ B.name = "Book: [B.title]"
if(!existing_book)
- B.icon_state= "book[rand(1,8)]"
+ B.icon_state= "book[rand(1,8)]"
qdel(query_get_random_books)
/obj/structure/bookcase/random/fiction
diff --git a/code/modules/lighting/lighting_atom.dm b/code/modules/lighting/lighting_atom.dm
index 47a80ca4d96..79a2fea1ac2 100644
--- a/code/modules/lighting/lighting_atom.dm
+++ b/code/modules/lighting/lighting_atom.dm
@@ -4,7 +4,7 @@
#define NONSENSICAL_VALUE -99999
/atom/proc/set_light(l_range, l_power, l_color = NONSENSICAL_VALUE, l_on)
if(l_range > 0 && l_range < MINIMUM_USEFUL_LIGHT_RANGE)
- l_range = MINIMUM_USEFUL_LIGHT_RANGE //Brings the range up to 1.4, which is just barely brighter than the soft lighting that surrounds players.
+ l_range = MINIMUM_USEFUL_LIGHT_RANGE //Brings the range up to 1.4, which is just barely brighter than the soft lighting that surrounds players.
if (!isnull(l_power))
light_power = l_power
diff --git a/code/modules/mafia/_defines.dm b/code/modules/mafia/_defines.dm
index e8626997517..6c0c73e0d0f 100644
--- a/code/modules/mafia/_defines.dm
+++ b/code/modules/mafia/_defines.dm
@@ -29,17 +29,17 @@
//role flags (special status of roles like detection immune)
///to all forms of detection, shows themselves as an assistant.
-#define ROLE_UNDETECTABLE (1<<0)
+#define ROLE_UNDETECTABLE (1<<0)
///has the ability to kill at night and thus, blocks the game from ending with other teams alive.
-#define ROLE_CAN_KILL (1<<1)
+#define ROLE_CAN_KILL (1<<1)
///can only be one in a randomly generated game
-#define ROLE_UNIQUE (1<<2)
+#define ROLE_UNIQUE (1<<2)
///role is public to all other players in the game.
-#define ROLE_REVEALED (1<<3)
+#define ROLE_REVEALED (1<<3)
///can not be defended, protected, or any other form of protection. all kills succeed no matter what.
-#define ROLE_VULNERABLE (1<<4)
+#define ROLE_VULNERABLE (1<<4)
///cannot perform any actions that night, preselected actions fail
-#define ROLE_ROLEBLOCKED (1<<5)
+#define ROLE_ROLEBLOCKED (1<<5)
#define MAFIA_PHASE_SETUP 1
#define MAFIA_PHASE_DAY 2
diff --git a/code/modules/mapping/map_template.dm b/code/modules/mapping/map_template.dm
index 27b305841c9..83b5a590fff 100644
--- a/code/modules/mapping/map_template.dm
+++ b/code/modules/mapping/map_template.dm
@@ -134,8 +134,8 @@
if(T.y+height > world.maxy)
return
- var/list/border = block(locate(max(T.x-1, 1), max(T.y-1, 1), T.z),
- locate(min(T.x+width+1, world.maxx), min(T.y+height+1, world.maxy), T.z))
+ var/list/border = block(locate(max(T.x-1, 1), max(T.y-1, 1), T.z),
+ locate(min(T.x+width+1, world.maxx), min(T.y+height+1, world.maxy), T.z))
for(var/L in border)
var/turf/turf_to_disable = L
SSair.remove_from_active(turf_to_disable) //stop processing turfs along the border to prevent runtimes, we return it in initTemplateBounds()
diff --git a/code/modules/mapping/reader.dm b/code/modules/mapping/reader.dm
index 0dbe35beaf4..8c21f9256a7 100644
--- a/code/modules/mapping/reader.dm
+++ b/code/modules/mapping/reader.dm
@@ -165,15 +165,15 @@
WARNING("Z-level expansion occurred without no_changeturf set, this may cause problems when /turf/AfterChange is called")
for(var/line in gset.gridLines)
- if((ycrd - y_offset + 1) < y_lower || (ycrd - y_offset + 1) > y_upper) //Reverse operation and check if it is out of bounds of cropping.
+ if((ycrd - y_offset + 1) < y_lower || (ycrd - y_offset + 1) > y_upper) //Reverse operation and check if it is out of bounds of cropping.
--ycrd
continue
if(ycrd <= world.maxy && ycrd >= 1)
var/xcrd = gset.xcrd + x_offset - 1
for(var/tpos = 1 to length(line) - key_len + 1 step key_len)
- if((xcrd - x_offset + 1) < x_lower || (xcrd - x_offset + 1) > x_upper) //Same as above.
+ if((xcrd - x_offset + 1) < x_lower || (xcrd - x_offset + 1) > x_upper) //Same as above.
++xcrd
- continue //X cropping.
+ continue //X cropping.
if(xcrd > world.maxx)
if(cropMap)
break
diff --git a/code/modules/mapping/ruins.dm b/code/modules/mapping/ruins.dm
index b322fe0cf7a..76c3a4670cc 100644
--- a/code/modules/mapping/ruins.dm
+++ b/code/modules/mapping/ruins.dm
@@ -71,8 +71,8 @@
var/list/ruins = potentialRuins.Copy()
- var/list/forced_ruins = list() //These go first on the z level associated (same random one by default) or if the assoc value is a turf to the specified turf.
- var/list/ruins_available = list() //we can try these in the current pass
+ var/list/forced_ruins = list() //These go first on the z level associated (same random one by default) or if the assoc value is a turf to the specified turf.
+ var/list/ruins_available = list() //we can try these in the current pass
//Set up the starting ruin list
for(var/key in ruins)
@@ -87,7 +87,7 @@
while(budget > 0 && (ruins_available.len || forced_ruins.len))
var/datum/map_template/ruin/current_pick
var/forced = FALSE
- var/forced_z //If set we won't pick z level and use this one instead.
+ var/forced_z //If set we won't pick z level and use this one instead.
var/forced_turf //If set we place the ruin centered on the given turf
if(forced_ruins.len) //We have something we need to load right now, so just pick it
for(var/ruin in forced_ruins)
diff --git a/code/modules/mapping/space_management/space_transition.dm b/code/modules/mapping/space_management/space_transition.dm
index 5a9d52033c1..4542b8bb2ad 100644
--- a/code/modules/mapping/space_management/space_transition.dm
+++ b/code/modules/mapping/space_management/space_transition.dm
@@ -96,10 +96,10 @@
var/list/x_pos_beginning = list(1, 1, world.maxx - TRANSITIONEDGE, 1) //x values of the lowest-leftest turfs of the respective 4 blocks on each side of zlevel
var/list/y_pos_beginning = list(world.maxy - TRANSITIONEDGE, 1, 1 + TRANSITIONEDGE, 1 + TRANSITIONEDGE) //y values respectively
- var/list/x_pos_ending = list(world.maxx, world.maxx, world.maxx, 1 + TRANSITIONEDGE) //x values of the highest-rightest turfs of the respective 4 blocks on each side of zlevel
- var/list/y_pos_ending = list(world.maxy, 1 + TRANSITIONEDGE, world.maxy - TRANSITIONEDGE, world.maxy - TRANSITIONEDGE) //y values respectively
- var/list/x_pos_transition = list(1, 1, TRANSITIONEDGE + 2, world.maxx - TRANSITIONEDGE - 1) //values of x for the transition from respective blocks on the side of zlevel, 1 is being translated into turfs respective x value later in the code
- var/list/y_pos_transition = list(TRANSITIONEDGE + 2, world.maxy - TRANSITIONEDGE - 1, 1, 1) //values of y for the transition from respective blocks on the side of zlevel, 1 is being translated into turfs respective y value later in the code
+ var/list/x_pos_ending = list(world.maxx, world.maxx, world.maxx, 1 + TRANSITIONEDGE) //x values of the highest-rightest turfs of the respective 4 blocks on each side of zlevel
+ var/list/y_pos_ending = list(world.maxy, 1 + TRANSITIONEDGE, world.maxy - TRANSITIONEDGE, world.maxy - TRANSITIONEDGE) //y values respectively
+ var/list/x_pos_transition = list(1, 1, TRANSITIONEDGE + 2, world.maxx - TRANSITIONEDGE - 1) //values of x for the transition from respective blocks on the side of zlevel, 1 is being translated into turfs respective x value later in the code
+ var/list/y_pos_transition = list(TRANSITIONEDGE + 2, world.maxy - TRANSITIONEDGE - 1, 1, 1) //values of y for the transition from respective blocks on the side of zlevel, 1 is being translated into turfs respective y value later in the code
for(var/I in cached_z_list)
var/datum/space_level/D = I
diff --git a/code/modules/mining/aux_base.dm b/code/modules/mining/aux_base.dm
index 07b82332548..d8ce7e3359f 100644
--- a/code/modules/mining/aux_base.dm
+++ b/code/modules/mining/aux_base.dm
@@ -1,10 +1,10 @@
///Mining Base////
-#define ZONE_SET 0
-#define BAD_ZLEVEL 1
-#define BAD_AREA 2
-#define BAD_COORDS 3
-#define BAD_TURF 4
+#define ZONE_SET 0
+#define BAD_ZLEVEL 1
+#define BAD_AREA 2
+#define BAD_COORDS 3
+#define BAD_TURF 4
/area/shuttle/auxiliary_base
name = "Auxiliary Base"
diff --git a/code/modules/mining/lavaland/necropolis_chests.dm b/code/modules/mining/lavaland/necropolis_chests.dm
index 9ac3f955ce8..983379dfd41 100644
--- a/code/modules/mining/lavaland/necropolis_chests.dm
+++ b/code/modules/mining/lavaland/necropolis_chests.dm
@@ -971,11 +971,11 @@
stage_prob = 20
severity = DISEASE_SEVERITY_BIOHAZARD
visibility_flags = 0
- stage1 = list("Your bones ache.")
- stage2 = list("Your skin feels scaly.")
- stage3 = list("You have an overwhelming urge to terrorize some peasants.", "Your teeth feel sharper.")
- stage4 = list("Your blood burns.")
- stage5 = list("You're a fucking dragon. However, any previous allegiances you held still apply. It'd be incredibly rude to eat your still human friends for no reason.")
+ stage1 = list("Your bones ache.")
+ stage2 = list("Your skin feels scaly.")
+ stage3 = list("You have an overwhelming urge to terrorize some peasants.", "Your teeth feel sharper.")
+ stage4 = list("Your blood burns.")
+ stage5 = list("You're a fucking dragon. However, any previous allegiances you held still apply. It'd be incredibly rude to eat your still human friends for no reason.")
new_form = /mob/living/simple_animal/hostile/megafauna/dragon/lesser
diff --git a/code/modules/mining/machine_vending.dm b/code/modules/mining/machine_vending.dm
index 69e11246fab..3fcbede322c 100644
--- a/code/modules/mining/machine_vending.dm
+++ b/code/modules/mining/machine_vending.dm
@@ -10,58 +10,58 @@
var/icon_deny = "mining-deny"
var/obj/item/card/id/inserted_id
var/list/prize_list = list( //if you add something to this, please, for the love of god, sort it by price/type. use tabs and not spaces.
- new /datum/data/mining_equipment("1 Marker Beacon", /obj/item/stack/marker_beacon, 10),
- new /datum/data/mining_equipment("10 Marker Beacons", /obj/item/stack/marker_beacon/ten, 100),
- new /datum/data/mining_equipment("30 Marker Beacons", /obj/item/stack/marker_beacon/thirty, 300),
- new /datum/data/mining_equipment("Skeleton Key", /obj/item/skeleton_key, 777),
- new /datum/data/mining_equipment("Whiskey", /obj/item/reagent_containers/food/drinks/bottle/whiskey, 100),
- new /datum/data/mining_equipment("Absinthe", /obj/item/reagent_containers/food/drinks/bottle/absinthe/premium, 100),
- new /datum/data/mining_equipment("Bubblegum Gum Packet", /obj/item/storage/box/gum/bubblegum, 100),
- new /datum/data/mining_equipment("Cigar", /obj/item/clothing/mask/cigarette/cigar/havana, 150),
- new /datum/data/mining_equipment("Soap", /obj/item/soap/nanotrasen, 200),
- new /datum/data/mining_equipment("Laser Pointer", /obj/item/laser_pointer, 300),
- new /datum/data/mining_equipment("Alien Toy", /obj/item/clothing/mask/facehugger/toy, 300),
- new /datum/data/mining_equipment("Stabilizing Serum", /obj/item/hivelordstabilizer, 400),
- new /datum/data/mining_equipment("Fulton Beacon", /obj/item/fulton_core, 400),
- new /datum/data/mining_equipment("Shelter Capsule", /obj/item/survivalcapsule, 400),
- new /datum/data/mining_equipment("GAR Meson Scanners", /obj/item/clothing/glasses/meson/gar, 500),
- new /datum/data/mining_equipment("Explorer's Webbing", /obj/item/storage/belt/mining, 500),
- new /datum/data/mining_equipment("Point Transfer Card", /obj/item/card/mining_point_card, 500),
- new /datum/data/mining_equipment("Survival Medipen", /obj/item/reagent_containers/hypospray/medipen/survival, 500),
- new /datum/data/mining_equipment("Brute First-Aid Kit", /obj/item/storage/firstaid/brute, 600),
- new /datum/data/mining_equipment("Tracking Implant Kit", /obj/item/storage/box/minertracker, 600),
- new /datum/data/mining_equipment("Jaunter", /obj/item/wormhole_jaunter, 750),
- new /datum/data/mining_equipment("Kinetic Crusher", /obj/item/kinetic_crusher, 750),
- new /datum/data/mining_equipment("Kinetic Accelerator", /obj/item/gun/energy/kinetic_accelerator, 750),
- new /datum/data/mining_equipment("Advanced Scanner", /obj/item/t_scanner/adv_mining_scanner, 800),
- new /datum/data/mining_equipment("Resonator", /obj/item/resonator, 800),
- new /datum/data/mining_equipment("Luxury Medipen", /obj/item/reagent_containers/hypospray/medipen/survival/luxury, 1000),
- new /datum/data/mining_equipment("Fulton Pack", /obj/item/extraction_pack, 1000),
- new /datum/data/mining_equipment("Lazarus Injector", /obj/item/lazarus_injector, 1000),
- new /datum/data/mining_equipment("Silver Pickaxe", /obj/item/pickaxe/silver, 1000),
- new /datum/data/mining_equipment("Mining Conscription Kit", /obj/item/storage/backpack/duffelbag/mining_conscript, 1500),
- new /datum/data/mining_equipment("Jetpack Upgrade", /obj/item/tank/jetpack/suit, 2000),
- new /datum/data/mining_equipment("Space Cash", /obj/item/stack/spacecash/c1000, 2000),
- new /datum/data/mining_equipment("Mining Hardsuit", /obj/item/clothing/suit/space/hardsuit/mining, 2000),
- new /datum/data/mining_equipment("Diamond Pickaxe", /obj/item/pickaxe/diamond, 2000),
- new /datum/data/mining_equipment("Super Resonator", /obj/item/resonator/upgraded, 2500),
- new /datum/data/mining_equipment("Jump Boots", /obj/item/clothing/shoes/bhop, 2500),
- new /datum/data/mining_equipment("Luxury Shelter Capsule", /obj/item/survivalcapsule/luxury, 3000),
- new /datum/data/mining_equipment("Luxury Bar Capsule", /obj/item/survivalcapsule/luxuryelite, 10000),
- new /datum/data/mining_equipment("Nanotrasen Minebot", /mob/living/simple_animal/hostile/mining_drone, 800),
- new /datum/data/mining_equipment("Minebot Melee Upgrade", /obj/item/mine_bot_upgrade, 400),
- new /datum/data/mining_equipment("Minebot Armor Upgrade", /obj/item/mine_bot_upgrade/health, 400),
- new /datum/data/mining_equipment("Minebot Cooldown Upgrade", /obj/item/borg/upgrade/modkit/cooldown/minebot, 600),
- new /datum/data/mining_equipment("Minebot AI Upgrade", /obj/item/slimepotion/slime/sentience/mining, 1000),
- new /datum/data/mining_equipment("KA Minebot Passthrough", /obj/item/borg/upgrade/modkit/minebot_passthrough, 100),
- new /datum/data/mining_equipment("KA White Tracer Rounds", /obj/item/borg/upgrade/modkit/tracer, 100),
- new /datum/data/mining_equipment("KA Adjustable Tracer Rounds", /obj/item/borg/upgrade/modkit/tracer/adjustable, 150),
- new /datum/data/mining_equipment("KA Super Chassis", /obj/item/borg/upgrade/modkit/chassis_mod, 250),
- new /datum/data/mining_equipment("KA Hyper Chassis", /obj/item/borg/upgrade/modkit/chassis_mod/orange, 300),
- new /datum/data/mining_equipment("KA Range Increase", /obj/item/borg/upgrade/modkit/range, 1000),
- new /datum/data/mining_equipment("KA Damage Increase", /obj/item/borg/upgrade/modkit/damage, 1000),
- new /datum/data/mining_equipment("KA Cooldown Decrease", /obj/item/borg/upgrade/modkit/cooldown, 1000),
- new /datum/data/mining_equipment("KA AoE Damage", /obj/item/borg/upgrade/modkit/aoe/mobs, 2000)
+ new /datum/data/mining_equipment("1 Marker Beacon", /obj/item/stack/marker_beacon, 10),
+ new /datum/data/mining_equipment("10 Marker Beacons", /obj/item/stack/marker_beacon/ten, 100),
+ new /datum/data/mining_equipment("30 Marker Beacons", /obj/item/stack/marker_beacon/thirty, 300),
+ new /datum/data/mining_equipment("Skeleton Key", /obj/item/skeleton_key, 777),
+ new /datum/data/mining_equipment("Whiskey", /obj/item/reagent_containers/food/drinks/bottle/whiskey, 100),
+ new /datum/data/mining_equipment("Absinthe", /obj/item/reagent_containers/food/drinks/bottle/absinthe/premium, 100),
+ new /datum/data/mining_equipment("Bubblegum Gum Packet", /obj/item/storage/box/gum/bubblegum, 100),
+ new /datum/data/mining_equipment("Cigar", /obj/item/clothing/mask/cigarette/cigar/havana, 150),
+ new /datum/data/mining_equipment("Soap", /obj/item/soap/nanotrasen, 200),
+ new /datum/data/mining_equipment("Laser Pointer", /obj/item/laser_pointer, 300),
+ new /datum/data/mining_equipment("Alien Toy", /obj/item/clothing/mask/facehugger/toy, 300),
+ new /datum/data/mining_equipment("Stabilizing Serum", /obj/item/hivelordstabilizer, 400),
+ new /datum/data/mining_equipment("Fulton Beacon", /obj/item/fulton_core, 400),
+ new /datum/data/mining_equipment("Shelter Capsule", /obj/item/survivalcapsule, 400),
+ new /datum/data/mining_equipment("GAR Meson Scanners", /obj/item/clothing/glasses/meson/gar, 500),
+ new /datum/data/mining_equipment("Explorer's Webbing", /obj/item/storage/belt/mining, 500),
+ new /datum/data/mining_equipment("Point Transfer Card", /obj/item/card/mining_point_card, 500),
+ new /datum/data/mining_equipment("Survival Medipen", /obj/item/reagent_containers/hypospray/medipen/survival, 500),
+ new /datum/data/mining_equipment("Brute First-Aid Kit", /obj/item/storage/firstaid/brute, 600),
+ new /datum/data/mining_equipment("Tracking Implant Kit", /obj/item/storage/box/minertracker, 600),
+ new /datum/data/mining_equipment("Jaunter", /obj/item/wormhole_jaunter, 750),
+ new /datum/data/mining_equipment("Kinetic Crusher", /obj/item/kinetic_crusher, 750),
+ new /datum/data/mining_equipment("Kinetic Accelerator", /obj/item/gun/energy/kinetic_accelerator, 750),
+ new /datum/data/mining_equipment("Advanced Scanner", /obj/item/t_scanner/adv_mining_scanner, 800),
+ new /datum/data/mining_equipment("Resonator", /obj/item/resonator, 800),
+ new /datum/data/mining_equipment("Luxury Medipen", /obj/item/reagent_containers/hypospray/medipen/survival/luxury, 1000),
+ new /datum/data/mining_equipment("Fulton Pack", /obj/item/extraction_pack, 1000),
+ new /datum/data/mining_equipment("Lazarus Injector", /obj/item/lazarus_injector, 1000),
+ new /datum/data/mining_equipment("Silver Pickaxe", /obj/item/pickaxe/silver, 1000),
+ new /datum/data/mining_equipment("Mining Conscription Kit", /obj/item/storage/backpack/duffelbag/mining_conscript, 1500),
+ new /datum/data/mining_equipment("Jetpack Upgrade", /obj/item/tank/jetpack/suit, 2000),
+ new /datum/data/mining_equipment("Space Cash", /obj/item/stack/spacecash/c1000, 2000),
+ new /datum/data/mining_equipment("Mining Hardsuit", /obj/item/clothing/suit/space/hardsuit/mining, 2000),
+ new /datum/data/mining_equipment("Diamond Pickaxe", /obj/item/pickaxe/diamond, 2000),
+ new /datum/data/mining_equipment("Super Resonator", /obj/item/resonator/upgraded, 2500),
+ new /datum/data/mining_equipment("Jump Boots", /obj/item/clothing/shoes/bhop, 2500),
+ new /datum/data/mining_equipment("Luxury Shelter Capsule", /obj/item/survivalcapsule/luxury, 3000),
+ new /datum/data/mining_equipment("Luxury Bar Capsule", /obj/item/survivalcapsule/luxuryelite, 10000),
+ new /datum/data/mining_equipment("Nanotrasen Minebot", /mob/living/simple_animal/hostile/mining_drone, 800),
+ new /datum/data/mining_equipment("Minebot Melee Upgrade", /obj/item/mine_bot_upgrade, 400),
+ new /datum/data/mining_equipment("Minebot Armor Upgrade", /obj/item/mine_bot_upgrade/health, 400),
+ new /datum/data/mining_equipment("Minebot Cooldown Upgrade", /obj/item/borg/upgrade/modkit/cooldown/minebot, 600),
+ new /datum/data/mining_equipment("Minebot AI Upgrade", /obj/item/slimepotion/slime/sentience/mining, 1000),
+ new /datum/data/mining_equipment("KA Minebot Passthrough", /obj/item/borg/upgrade/modkit/minebot_passthrough, 100),
+ new /datum/data/mining_equipment("KA White Tracer Rounds", /obj/item/borg/upgrade/modkit/tracer, 100),
+ new /datum/data/mining_equipment("KA Adjustable Tracer Rounds", /obj/item/borg/upgrade/modkit/tracer/adjustable, 150),
+ new /datum/data/mining_equipment("KA Super Chassis", /obj/item/borg/upgrade/modkit/chassis_mod, 250),
+ new /datum/data/mining_equipment("KA Hyper Chassis", /obj/item/borg/upgrade/modkit/chassis_mod/orange, 300),
+ new /datum/data/mining_equipment("KA Range Increase", /obj/item/borg/upgrade/modkit/range, 1000),
+ new /datum/data/mining_equipment("KA Damage Increase", /obj/item/borg/upgrade/modkit/damage, 1000),
+ new /datum/data/mining_equipment("KA Cooldown Decrease", /obj/item/borg/upgrade/modkit/cooldown, 1000),
+ new /datum/data/mining_equipment("KA AoE Damage", /obj/item/borg/upgrade/modkit/aoe/mobs, 2000)
)
/datum/data/mining_equipment
@@ -213,14 +213,14 @@
/obj/machinery/mineral/equipment_vendor/golem/Initialize()
desc += "\nIt seems a few selections have been added."
prize_list += list(
- new /datum/data/mining_equipment("Extra Id", /obj/item/card/id/mining, 250),
- new /datum/data/mining_equipment("Science Goggles", /obj/item/clothing/glasses/science, 250),
- new /datum/data/mining_equipment("Monkey Cube", /obj/item/food/monkeycube, 300),
- new /datum/data/mining_equipment("Toolbelt", /obj/item/storage/belt/utility, 350),
- new /datum/data/mining_equipment("Royal Cape of the Liberator", /obj/item/bedsheet/rd/royal_cape, 500),
- new /datum/data/mining_equipment("Grey Slime Extract", /obj/item/slime_extract/grey, 1000),
- new /datum/data/mining_equipment("Modification Kit", /obj/item/borg/upgrade/modkit/trigger_guard, 1700),
- new /datum/data/mining_equipment("The Liberator's Legacy", /obj/item/storage/box/rndboards, 2000)
+ new /datum/data/mining_equipment("Extra Id", /obj/item/card/id/mining, 250),
+ new /datum/data/mining_equipment("Science Goggles", /obj/item/clothing/glasses/science, 250),
+ new /datum/data/mining_equipment("Monkey Cube", /obj/item/food/monkeycube, 300),
+ new /datum/data/mining_equipment("Toolbelt", /obj/item/storage/belt/utility, 350),
+ new /datum/data/mining_equipment("Royal Cape of the Liberator", /obj/item/bedsheet/rd/royal_cape, 500),
+ new /datum/data/mining_equipment("Grey Slime Extract", /obj/item/slime_extract/grey, 1000),
+ new /datum/data/mining_equipment("Modification Kit", /obj/item/borg/upgrade/modkit/trigger_guard, 1700),
+ new /datum/data/mining_equipment("The Liberator's Legacy", /obj/item/storage/box/rndboards, 2000)
)
return ..()
@@ -268,7 +268,7 @@
. = ..()
if(istype(AM, /obj/item/card/id) && proximity)
var/obj/item/card/id/I = AM
- I.access |= ACCESS_MINING
+ I.access |= ACCESS_MINING
I.access |= ACCESS_MINING_STATION
I.access |= ACCESS_MECH_MINING
I.access |= ACCESS_MINERAL_STOREROOM
diff --git a/code/modules/mining/ores_coins.dm b/code/modules/mining/ores_coins.dm
index 3e3639cada2..ad6d09ead06 100644
--- a/code/modules/mining/ores_coins.dm
+++ b/code/modules/mining/ores_coins.dm
@@ -27,12 +27,12 @@
var/difference = min(ORESTACK_OVERLAYS_MAX, amount) - (LAZYLEN(stack_overlays)+1)
if(difference == 0)
return
- else if(difference < 0 && LAZYLEN(stack_overlays)) //amount < stack_overlays, remove excess.
+ else if(difference < 0 && LAZYLEN(stack_overlays)) //amount < stack_overlays, remove excess.
if (LAZYLEN(stack_overlays)-difference <= 0)
stack_overlays = null
else
stack_overlays.len += difference
- else if(difference > 0) //amount > stack_overlays, add some.
+ else if(difference > 0) //amount > stack_overlays, add some.
for(var/i in 1 to difference)
var/mutable_appearance/newore = mutable_appearance(icon, icon_state)
newore.pixel_x = rand(-8,8)
diff --git a/code/modules/mob/dead/dead.dm b/code/modules/mob/dead/dead.dm
index d0f6244b5af..3f6fe0c7f7d 100644
--- a/code/modules/mob/dead/dead.dm
+++ b/code/modules/mob/dead/dead.dm
@@ -85,7 +85,7 @@ INITIALIZE_IMMEDIATE(/mob/dead)
new /atom/movable/screen/splash(C)
notransform = TRUE
- sleep(29) //let the animation play
+ sleep(29) //let the animation play
notransform = FALSE
if(!C)
diff --git a/code/modules/mob/dead/new_player/new_player.dm b/code/modules/mob/dead/new_player/new_player.dm
index 8ba934e0773..c6cb01748d8 100644
--- a/code/modules/mob/dead/new_player/new_player.dm
+++ b/code/modules/mob/dead/new_player/new_player.dm
@@ -12,7 +12,7 @@
stat = DEAD
hud_possible = list()
- var/mob/living/new_character //for instant transfer once the round is set up
+ var/mob/living/new_character //for instant transfer once the round is set up
//Used to make sure someone doesn't get spammed with messages if they're ineligible for roles
var/ineligible_for_roles = FALSE
@@ -313,7 +313,7 @@
var/arrivals_docked = TRUE
if(SSshuttle.arrivals)
- close_spawn_windows() //In case we get held up
+ close_spawn_windows() //In case we get held up
if(SSshuttle.arrivals.damaged && CONFIG_GET(flag/arrivals_shuttle_require_safe_latejoin))
src << alert("The arrivals shuttle is currently malfunctioning! You cannot join.")
return FALSE
@@ -328,9 +328,9 @@
SSjob.AssignRole(src, rank, 1)
- var/mob/living/character = create_character(TRUE) //creates the human and transfers vars and mind
+ var/mob/living/character = create_character(TRUE) //creates the human and transfers vars and mind
var/equip = SSjob.EquipRank(character, rank, TRUE)
- if(isliving(equip)) //Borgs get borged in the equip, so we need to make sure we handle the new mob.
+ if(isliving(equip)) //Borgs get borged in the equip, so we need to make sure we handle the new mob.
character = equip
var/datum/job/job = SSjob.GetJob(rank)
@@ -357,9 +357,9 @@
//SKYRAT EDIT ADDITION END
if(ishuman(character))
- humanc = character //Let's retypecast the var to be human,
+ humanc = character //Let's retypecast the var to be human,
- if(humanc) //These procs all expect humans
+ if(humanc) //These procs all expect humans
GLOB.data_core.manifest_inject(humanc)
if(SSshuttle.arrivals)
SSshuttle.arrivals.QueueAnnounce(humanc, rank)
@@ -384,7 +384,7 @@
GLOB.joined_player_list += character.ckey
- if(CONFIG_GET(flag/allow_latejoin_antagonists) && humanc) //Borgs aren't allowed to be antags. Will need to be tweaked if we get true latejoin ais.
+ if(CONFIG_GET(flag/allow_latejoin_antagonists) && humanc) //Borgs aren't allowed to be antags. Will need to be tweaked if we get true latejoin ais.
if(SSshuttle.emergency)
switch(SSshuttle.emergency.mode)
if(SHUTTLE_RECALL, SHUTTLE_IDLE)
@@ -484,9 +484,9 @@
if(mind)
if(transfer_after)
mind.late_joiner = TRUE
- mind.active = FALSE //we wish to transfer the key manually
+ mind.active = FALSE //we wish to transfer the key manually
mind.original_character_slot_index = client.prefs.default_slot
- mind.transfer_to(H) //won't transfer key since the mind is not active
+ mind.transfer_to(H) //won't transfer key since the mind is not active
mind.original_character = H
H.name = real_name
@@ -499,7 +499,7 @@
/mob/dead/new_player/proc/transfer_character()
. = new_character
if(.)
- new_character.key = key //Manually transfer the key to log them in,
+ new_character.key = key //Manually transfer the key to log them in,
new_character.stop_sound_channel(CHANNEL_LOBBYMUSIC)
new_character = null
qdel(src)
diff --git a/code/modules/mob/dead/new_player/sprite_accessories.dm b/code/modules/mob/dead/new_player/sprite_accessories.dm
index 7472a160b8a..3afcd11bf35 100644
--- a/code/modules/mob/dead/new_player/sprite_accessories.dm
+++ b/code/modules/mob/dead/new_player/sprite_accessories.dm
@@ -47,24 +47,24 @@
return L
/datum/sprite_accessory
- var/icon //the icon file the accessory is located in
- var/icon_state //the icon_state of the accessory
- var/name //the preview name of the accessory
- var/gender = NEUTER //Determines if the accessory will be skipped or included in random hair generations
+ var/icon //the icon file the accessory is located in
+ var/icon_state //the icon_state of the accessory
+ var/name //the preview name of the accessory
+ var/gender = NEUTER //Determines if the accessory will be skipped or included in random hair generations
var/gender_specific //Something that can be worn by either gender, but looks different on each
- var/use_static //determines if the accessory will be skipped by color preferences
- var/color_src = MUTCOLORS //Currently only used by mutantparts so don't worry about hair and stuff. This is the source that this accessory will get its color from. Default is MUTCOLOR, but can also be HAIR, FACEHAIR, EYECOLOR and 0 if none.
- var/hasinner //Decides if this sprite has an "inner" part, such as the fleshy parts on ears.
- var/locked = FALSE //Is this part locked from roundstart selection? Used for parts that apply effects
+ var/use_static //determines if the accessory will be skipped by color preferences
+ var/color_src = MUTCOLORS //Currently only used by mutantparts so don't worry about hair and stuff. This is the source that this accessory will get its color from. Default is MUTCOLOR, but can also be HAIR, FACEHAIR, EYECOLOR and 0 if none.
+ var/hasinner //Decides if this sprite has an "inner" part, such as the fleshy parts on ears.
+ var/locked = FALSE //Is this part locked from roundstart selection? Used for parts that apply effects
var/dimension_x = 32
var/dimension_y = 32
- var/center = FALSE //Should we center the sprite?
+ var/center = FALSE //Should we center the sprite?
//////////////////////
// Hair Definitions //
//////////////////////
/datum/sprite_accessory/hair
- icon = 'icons/mob/human_face.dmi' // default icon for all hairs
+ icon = 'icons/mob/human_face.dmi' // default icon for all hairs
// please make sure they're sorted alphabetically and, where needed, categorized
// try to capitalize the names please~
@@ -1814,8 +1814,8 @@
name = "Aquatic"
icon_state = "aqua"
-/datum/sprite_accessory/legs //legs are a special case, they aren't actually sprite_accessories but are updated with them.
- icon = null //These datums exist for selecting legs on preference, and little else
+/datum/sprite_accessory/legs //legs are a special case, they aren't actually sprite_accessories but are updated with them.
+ icon = null //These datums exist for selecting legs on preference, and little else
/datum/sprite_accessory/legs/none
name = "Normal Legs"
diff --git a/code/modules/mob/dead/observer/logout.dm b/code/modules/mob/dead/observer/logout.dm
index 3ca6405a0cf..1bc86a7ce2d 100644
--- a/code/modules/mob/dead/observer/logout.dm
+++ b/code/modules/mob/dead/observer/logout.dm
@@ -12,5 +12,5 @@
observetarget = null
..()
spawn(0)
- if(src && !key) //we've transferred to another mob. This ghost should be deleted.
+ if(src && !key) //we've transferred to another mob. This ghost should be deleted.
qdel(src)
diff --git a/code/modules/mob/dead/observer/observer.dm b/code/modules/mob/dead/observer/observer.dm
index af079ebd87e..68c99fe1013 100644
--- a/code/modules/mob/dead/observer/observer.dm
+++ b/code/modules/mob/dead/observer/observer.dm
@@ -33,7 +33,7 @@ GLOBAL_VAR_INIT(observer_default_invisibility, INVISIBILITY_OBSERVER)
var/image/ghostimage_default = null //this mobs ghost image without accessories and dirs
var/image/ghostimage_simple = null //this mob with the simple white ghost sprite
var/ghostvision = 1 //is the ghost able to see things humans can't?
- var/mob/observetarget = null //The target mob that the ghost is observing. Used as a reference in logout()
+ var/mob/observetarget = null //The target mob that the ghost is observing. Used as a reference in logout()
var/ghost_hud_enabled = 1 //did this ghost disable the on-screen HUD?
var/data_huds_on = 0 //Are data HUDs currently enabled?
var/health_scan = FALSE //Are health scans currently enabled?
@@ -50,8 +50,8 @@ GLOBAL_VAR_INIT(observer_default_invisibility, INVISIBILITY_OBSERVER)
var/facial_hair_color
var/mutable_appearance/facial_hair_overlay
- var/updatedir = 1 //Do we have to update our dir as the ghost moves around?
- var/lastsetting = null //Stores the last setting that ghost_others was set to, for a little more efficiency when we update ghost images. Null means no update is necessary
+ var/updatedir = 1 //Do we have to update our dir as the ghost moves around?
+ var/lastsetting = null //Stores the last setting that ghost_others was set to, for a little more efficiency when we update ghost images. Null means no update is necessary
//We store copies of the ghost display preferences locally so they can be referred to even if no client is connected.
//If there's a bug with changing your ghost settings, it's probably related to this.
@@ -87,7 +87,7 @@ GLOBAL_VAR_INIT(observer_default_invisibility, INVISIBILITY_OBSERVER)
var/turf/T
var/mob/body = loc
if(ismob(body))
- T = get_turf(body) //Where is the body located?
+ T = get_turf(body) //Where is the body located?
gender = body.gender
if(body.mind && body.mind.name)
@@ -101,7 +101,7 @@ GLOBAL_VAR_INIT(observer_default_invisibility, INVISIBILITY_OBSERVER)
else
name = random_unique_name(gender)
- mind = body.mind //we don't transfer the mind but we keep a reference to it.
+ mind = body.mind //we don't transfer the mind but we keep a reference to it.
set_suicide(body.suiciding) // Transfer whether they committed suicide.
@@ -125,7 +125,7 @@ GLOBAL_VAR_INIT(observer_default_invisibility, INVISIBILITY_OBSERVER)
forceMove(T)
- if(!name) //To prevent nameless ghosts
+ if(!name) //To prevent nameless ghosts
name = random_unique_name(gender)
real_name = name
@@ -213,8 +213,8 @@ GLOBAL_VAR_INIT(observer_default_invisibility, INVISIBILITY_OBSERVER)
if(ghost_accs >= GHOST_ACCS_DIR && (icon_state in GLOB.ghost_forms_with_directions_list)) //if this icon has dirs AND the client wants to show them, we make sure we update the dir on movement
updatedir = 1
else
- updatedir = 0 //stop updating the dir in case we want to show accessories with dirs on a ghost sprite without dirs
- setDir(2 )//reset the dir to its default so the sprites all properly align up
+ updatedir = 0 //stop updating the dir in case we want to show accessories with dirs on a ghost sprite without dirs
+ setDir(2 )//reset the dir to its default so the sprites all properly align up
if(ghost_accs == GHOST_ACCS_FULL && (icon_state in GLOB.ghost_forms_with_accessories_list)) //check if this form supports accessories and if the client wants to show them
var/datum/sprite_accessory/S
@@ -280,12 +280,12 @@ Works together with spawning an observer, noted above.
if(key)
if(key[1] != "@") // Skip aghosts.
stop_sound_channel(CHANNEL_HEARTBEAT) //Stop heartbeat sounds because You Are A Ghost Now
- var/mob/dead/observer/ghost = new(src) // Transfer safety to observer spawning proc.
+ var/mob/dead/observer/ghost = new(src) // Transfer safety to observer spawning proc.
SStgui.on_transfer(src, ghost) // Transfer NanoUIs.
ghost.can_reenter_corpse = can_reenter_corpse
ghost.key = key
ghost.client.init_verbs()
- if(!can_reenter_corpse) // Disassociates observer mind from the body mind
+ if(!can_reenter_corpse) // Disassociates observer mind from the body mind
ghost.mind = null
return ghost
@@ -311,7 +311,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
var/response = alert(src, "Are you -sure- you want to ghost?\n(You are alive. If you ghost whilst still alive you may not play again this round! You can't change your mind so choose wisely!!)","Are you sure you want to ghost?","Ghost","Stay in body")
if(response != "Ghost")
return FALSE//didn't want to ghost after-all
- ghostize(FALSE) // FALSE parameter is so we can never re-enter our body. U ded.
+ ghostize(FALSE) // FALSE parameter is so we can never re-enter our body. U ded.
return TRUE
/mob/camera/verb/ghost()
@@ -358,7 +358,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
if(!can_reenter_corpse)
to_chat(src, "You cannot re-enter your body.")
return
- if(mind.current.key && mind.current.key[1] != "@") //makes sure we don't accidentally kick any clients
+ if(mind.current.key && mind.current.key[1] != "@") //makes sure we don't accidentally kick any clients
to_chat(usr, "Another consciousness is in your body...It is resisting you.")
return
client.view_size.setDefault(getScreenSize(client.prefs.widescreenpref))//Let's reset so people can't become allseeing gods
@@ -495,7 +495,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
var/list/dest = list() //List of possible destinations (mobs)
- var/target = null //Chosen target.
+ var/target = null //Chosen target.
dest += getpois(mobs_only = TRUE) //Fill list, prompt user with list
target = input("Please, select a player!", "Jump to Mob", null, null) as null|anything in dest
@@ -504,10 +504,10 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
return
else
var/mob/M = dest[target] //Destination mob
- var/mob/A = src //Source mob
+ var/mob/A = src //Source mob
var/turf/T = get_turf(M) //Turf of the destination mob
- if(T && isturf(T)) //Make sure the turf exists, then move the source to that destination.
+ if(T && isturf(T)) //Make sure the turf exists, then move the source to that destination.
A.forceMove(T)
A.update_parallax_contents()
else
diff --git a/code/modules/mob/inventory.dm b/code/modules/mob/inventory.dm
index a3a027958a0..00816a45189 100644
--- a/code/modules/mob/inventory.dm
+++ b/code/modules/mob/inventory.dm
@@ -186,7 +186,7 @@
return put_in_hand(I, get_empty_held_index_for_side(RIGHT_HANDS))
/mob/proc/put_in_hand_check(obj/item/I)
- return FALSE //nonliving mobs don't have hands
+ return FALSE //nonliving mobs don't have hands
/mob/living/put_in_hand_check(obj/item/I)
if(istype(I) && ((mobility_flags & MOBILITY_PICKUP) || (I.item_flags & ABSTRACT)))
@@ -319,7 +319,7 @@
I.layer = initial(I.layer)
I.plane = initial(I.plane)
I.appearance_flags &= ~NO_CLIENT_COLOR
- if(!no_move && !(I.item_flags & DROPDEL)) //item may be moved/qdel'd immedietely, don't bother moving it
+ if(!no_move && !(I.item_flags & DROPDEL)) //item may be moved/qdel'd immedietely, don't bother moving it
if (isnull(newloc))
I.moveToNullspace()
else
diff --git a/code/modules/mob/living/brain/brain.dm b/code/modules/mob/living/brain/brain.dm
index 8f49ad99421..9656d6ae420 100644
--- a/code/modules/mob/living/brain/brain.dm
+++ b/code/modules/mob/living/brain/brain.dm
@@ -27,12 +27,12 @@
stored_dna.species = new rando_race()
/mob/living/brain/Destroy()
- if(key) //If there is a mob connected to this thing. Have to check key twice to avoid false death reporting.
- if(stat!=DEAD) //If not dead.
- death(1) //Brains can die again. AND THEY SHOULD AHA HA HA HA HA HA
- if(mind) //You aren't allowed to return to brains that don't exist
+ if(key) //If there is a mob connected to this thing. Have to check key twice to avoid false death reporting.
+ if(stat!=DEAD) //If not dead.
+ death(1) //Brains can die again. AND THEY SHOULD AHA HA HA HA HA HA
+ if(mind) //You aren't allowed to return to brains that don't exist
mind.current = null
- ghostize() //Ghostize checks for key so nothing else is necessary.
+ ghostize() //Ghostize checks for key so nothing else is necessary.
container = null
return ..()
diff --git a/code/modules/mob/living/brain/brain_item.dm b/code/modules/mob/living/brain/brain_item.dm
index 72d5544ff1d..bcdc9589cbc 100644
--- a/code/modules/mob/living/brain/brain_item.dm
+++ b/code/modules/mob/living/brain/brain_item.dm
@@ -12,7 +12,7 @@
attack_verb_simple = list("attack", "slap", "whack")
///The brain's organ variables are significantly more different than the other organs, with half the decay rate for balance reasons, and twice the maxHealth
- decay_factor = STANDARD_ORGAN_DECAY * 0.5 //30 minutes of decaying to result in a fully damaged brain, since a fast decay rate would be unfun gameplay-wise
+ decay_factor = STANDARD_ORGAN_DECAY * 0.5 //30 minutes of decaying to result in a fully damaged brain, since a fast decay rate would be unfun gameplay-wise
maxHealth = BRAIN_DAMAGE_DEATH
low_threshold = 45
@@ -20,7 +20,7 @@
var/suicided = FALSE
var/mob/living/brain/brainmob = null
- var/decoy_override = FALSE //if it's a fake brain with no brainmob assigned. Feedback messages will be faked as if it does have a brainmob. See changelings & dullahans.
+ var/decoy_override = FALSE //if it's a fake brain with no brainmob assigned. Feedback messages will be faked as if it does have a brainmob. See changelings & dullahans.
//two variables necessary for calculating whether we get a brain trauma or not
var/damage_delta = 0
@@ -39,7 +39,7 @@
name = "brain"
- if(C.mind && C.mind.has_antag_datum(/datum/antagonist/changeling) && !no_id_transfer) //congrats, you're trapped in a body you don't control
+ if(C.mind && C.mind.has_antag_datum(/datum/antagonist/changeling) && !no_id_transfer) //congrats, you're trapped in a body you don't control
if(brainmob && !(C.stat == DEAD || (HAS_TRAIT(C, TRAIT_DEATHCOMA))))
to_chat(brainmob, "You can't feel your body! You're still just a brain!")
forceMove(C)
@@ -130,7 +130,7 @@
user.visible_message("[user] pours the contents of [O] onto [src], causing it to reform its original shape and turn a slightly brighter shade of pink.", "You pour the contents of [O] onto [src], causing it to reform its original shape and turn a slightly brighter shade of pink.")
var/healby = O.reagents.get_reagent_amount(/datum/reagent/medicine/mannitol)
- setOrganDamage(damage - healby*2) //heals 2 damage per unit of mannitol, and by using "setorgandamage", we clear the failing variable if that was up
+ setOrganDamage(damage - healby*2) //heals 2 damage per unit of mannitol, and by using "setorgandamage", we clear the failing variable if that was up
O.reagents.clear_reagents()
return
@@ -213,7 +213,7 @@
to_chat(C, "[user] inserts [src] into your head.")
to_chat(user, "You insert [src] into [C]'s head.")
else
- to_chat(user, "You insert [src] into your head." )
+ to_chat(user, "You insert [src] into your head." )
Insert(C)
else
@@ -225,7 +225,7 @@
QDEL_LIST(traumas)
destroy_all_skillchips()
- if(owner?.mind) //You aren't allowed to return to brains that don't exist
+ if(owner?.mind) //You aren't allowed to return to brains that don't exist
owner.mind.current = null
return ..()
diff --git a/code/modules/mob/living/carbon/alien/alien_defense.dm b/code/modules/mob/living/carbon/alien/alien_defense.dm
index 73d6a6a83e3..8473b14635f 100644
--- a/code/modules/mob/living/carbon/alien/alien_defense.dm
+++ b/code/modules/mob/living/carbon/alien/alien_defense.dm
@@ -49,7 +49,7 @@ In all, this is a lot like the monkey code. /N
/mob/living/carbon/alien/attack_hand(mob/living/carbon/human/M, modifiers)
. = ..()
- if(.) //to allow surgery to return properly.
+ if(.) //to allow surgery to return properly.
return FALSE
if(M.combat_mode)
diff --git a/code/modules/mob/living/carbon/alien/humanoid/humanoid.dm b/code/modules/mob/living/carbon/alien/humanoid/humanoid.dm
index c80c80d88fc..b3c8ed8a46b 100644
--- a/code/modules/mob/living/carbon/alien/humanoid/humanoid.dm
+++ b/code/modules/mob/living/carbon/alien/humanoid/humanoid.dm
@@ -5,7 +5,7 @@
butcher_results = list(/obj/item/food/meat/slab/xeno = 5, /obj/item/stack/sheet/animalhide/xeno = 1)
limb_destroyer = 1
hud_type = /datum/hud/alien
- melee_damage_lower = 20 //Refers to unarmed damage, aliens do unarmed attacks.
+ melee_damage_lower = 20 //Refers to unarmed damage, aliens do unarmed attacks.
melee_damage_upper = 20
var/obj/item/r_store = null
var/obj/item/l_store = null
diff --git a/code/modules/mob/living/carbon/alien/humanoid/humanoid_update_icons.dm b/code/modules/mob/living/carbon/alien/humanoid/humanoid_update_icons.dm
index ece2a9a46a3..bad958e07a1 100644
--- a/code/modules/mob/living/carbon/alien/humanoid/humanoid_update_icons.dm
+++ b/code/modules/mob/living/carbon/alien/humanoid/humanoid_update_icons.dm
@@ -48,7 +48,7 @@
/mob/living/carbon/alien/humanoid/regenerate_icons()
if(!..())
- // update_icons() //Handled in update_transform(), leaving this here as a reminder
+ // update_icons() //Handled in update_transform(), leaving this here as a reminder
update_transform()
/mob/living/carbon/alien/humanoid/update_transform() //The old method of updating lying/standing was update_icons(). Aliens still expect that.
diff --git a/code/modules/mob/living/carbon/alien/humanoid/life.dm b/code/modules/mob/living/carbon/alien/humanoid/life.dm
index fd6a73ae7bf..3701de61608 100644
--- a/code/modules/mob/living/carbon/alien/humanoid/life.dm
+++ b/code/modules/mob/living/carbon/alien/humanoid/life.dm
@@ -2,13 +2,13 @@
/mob/living/carbon/alien/humanoid/proc/adjust_body_temperature(current, loc_temp, boost)
var/temperature = current
- var/difference = abs(current-loc_temp) //get difference
- var/increments// = difference/10 //find how many increments apart they are
+ var/difference = abs(current-loc_temp) //get difference
+ var/increments// = difference/10 //find how many increments apart they are
if(difference > 50)
increments = difference/5
else
increments = difference/10
- var/change = increments*boost // Get the amount to change by (x per increment)
+ var/change = increments*boost // Get the amount to change by (x per increment)
var/temp_change
if(current < loc_temp)
temperature = min(loc_temp, temperature+change)
diff --git a/code/modules/mob/living/carbon/alien/humanoid/queen.dm b/code/modules/mob/living/carbon/alien/humanoid/queen.dm
index 10a57fe19b8..2db2b2649e0 100644
--- a/code/modules/mob/living/carbon/alien/humanoid/queen.dm
+++ b/code/modules/mob/living/carbon/alien/humanoid/queen.dm
@@ -36,7 +36,7 @@
if(Q.stat == DEAD)
continue
if(Q.client)
- name = "alien princess ([rand(1, 999)])" //if this is too cutesy feel free to change it/remove it.
+ name = "alien princess ([rand(1, 999)])" //if this is too cutesy feel free to change it/remove it.
break
real_name = src.name
diff --git a/code/modules/mob/living/carbon/alien/larva/powers.dm b/code/modules/mob/living/carbon/alien/larva/powers.dm
index 8ec61e1f178..33551c82acd 100644
--- a/code/modules/mob/living/carbon/alien/larva/powers.dm
+++ b/code/modules/mob/living/carbon/alien/larva/powers.dm
@@ -36,7 +36,7 @@
to_chat(user, "You cannot evolve when you are cuffed!")
return
- if(L.amount_grown >= L.max_grown) //TODO ~Carn
+ if(L.amount_grown >= L.max_grown) //TODO ~Carn
to_chat(L, "You are growing into a beautiful alien! It is time to choose a caste.")
to_chat(L, "There are three to choose from:")
to_chat(L, "Hunters are the most agile caste, tasked with hunting for hosts. They are faster than a human and can even pounce, but are not much tougher than a drone.")
diff --git a/code/modules/mob/living/carbon/alien/special/alien_embryo.dm b/code/modules/mob/living/carbon/alien/special/alien_embryo.dm
index 7f34973dfe8..705ded877e7 100644
--- a/code/modules/mob/living/carbon/alien/special/alien_embryo.dm
+++ b/code/modules/mob/living/carbon/alien/special/alien_embryo.dm
@@ -85,7 +85,7 @@
if(!candidates.len || !owner)
bursting = FALSE
- stage = 5 // If no ghosts sign up for the Larva, let's regress our growth by one minute, we will try again!
+ stage = 5 // If no ghosts sign up for the Larva, let's regress our growth by one minute, we will try again!
addtimer(CALLBACK(src, .proc/advance_embryo_stage), growth_time)
return
@@ -97,7 +97,7 @@
var/atom/xeno_loc = get_turf(owner)
var/mob/living/carbon/alien/larva/new_xeno = new(xeno_loc)
new_xeno.key = ghost.key
- SEND_SOUND(new_xeno, sound('sound/voice/hiss5.ogg',0,0,0,100)) //To get the player's attention
+ SEND_SOUND(new_xeno, sound('sound/voice/hiss5.ogg',0,0,0,100)) //To get the player's attention
ADD_TRAIT(new_xeno, TRAIT_IMMOBILIZED, type) //so we don't move during the bursting animation
ADD_TRAIT(new_xeno, TRAIT_HANDS_BLOCKED, type)
new_xeno.notransform = 1
diff --git a/code/modules/mob/living/carbon/carbon.dm b/code/modules/mob/living/carbon/carbon.dm
index fb6e571240e..644cb810330 100644
--- a/code/modules/mob/living/carbon/carbon.dm
+++ b/code/modules/mob/living/carbon/carbon.dm
@@ -559,13 +559,13 @@
/mob/living/carbon/updatehealth()
if(status_flags & GODMODE)
return
- var/total_burn = 0
- var/total_brute = 0
+ var/total_burn = 0
+ var/total_brute = 0
var/total_stamina = 0
- for(var/X in bodyparts) //hardcoded to streamline things a bit
+ for(var/X in bodyparts) //hardcoded to streamline things a bit
var/obj/item/bodypart/BP = X
- total_brute += (BP.brute_dam * BP.body_damage_coeff)
- total_burn += (BP.burn_dam * BP.body_damage_coeff)
+ total_brute += (BP.brute_dam * BP.body_damage_coeff)
+ total_burn += (BP.burn_dam * BP.body_damage_coeff)
total_stamina += (BP.stamina_dam * BP.stam_damage_coeff)
set_health(round(maxHealth - getOxyLoss() - getToxLoss() - getCloneLoss() - total_burn - total_brute, DAMAGE_PRECISION))
staminaloss = round(total_stamina, DAMAGE_PRECISION)
diff --git a/code/modules/mob/living/carbon/carbon_defense.dm b/code/modules/mob/living/carbon/carbon_defense.dm
index 92aeae45970..ea8cbed4759 100644
--- a/code/modules/mob/living/carbon/carbon_defense.dm
+++ b/code/modules/mob/living/carbon/carbon_defense.dm
@@ -86,7 +86,7 @@
I.add_mob_blood(src)
var/turf/location = get_turf(src)
add_splatter_floor(location)
- if(get_dist(user, src) <= 1) //people with TK won't get smeared with blood
+ if(get_dist(user, src) <= 1) //people with TK won't get smeared with blood
user.add_mob_blood(src)
if(affecting.body_zone == BODY_ZONE_HEAD)
if(wear_mask)
diff --git a/code/modules/mob/living/carbon/carbon_movement.dm b/code/modules/mob/living/carbon/carbon_movement.dm
index 8565c17bcb3..11a1ce7f86a 100644
--- a/code/modules/mob/living/carbon/carbon_movement.dm
+++ b/code/modules/mob/living/carbon/carbon_movement.dm
@@ -25,7 +25,7 @@
. = ..()
if(. && !(movement_type & FLOATING)) //floating is easy
if(HAS_TRAIT(src, TRAIT_NOHUNGER))
- set_nutrition(NUTRITION_LEVEL_FED - 1) //just less than feeling vigorous
+ set_nutrition(NUTRITION_LEVEL_FED - 1) //just less than feeling vigorous
else if(nutrition && stat != DEAD)
adjust_nutrition(-(HUNGER_FACTOR/10))
if(m_intent == MOVE_INTENT_RUN)
diff --git a/code/modules/mob/living/carbon/carbon_update_icons.dm b/code/modules/mob/living/carbon/carbon_update_icons.dm
index 35e1ae6dff7..199beeeae8b 100644
--- a/code/modules/mob/living/carbon/carbon_update_icons.dm
+++ b/code/modules/mob/living/carbon/carbon_update_icons.dm
@@ -97,7 +97,7 @@
var/obj/item/bodypart/BP = X
if(BP.dmg_overlay_type)
if(BP.brutestate)
- damage_overlay.add_overlay("[BP.dmg_overlay_type]_[BP.body_zone]_[BP.brutestate]0") //we're adding icon_states of the base image as overlays
+ damage_overlay.add_overlay("[BP.dmg_overlay_type]_[BP.body_zone]_[BP.brutestate]0") //we're adding icon_states of the base image as overlays
if(BP.burnstate)
damage_overlay.add_overlay("[BP.dmg_overlay_type]_[BP.body_zone]_0[BP.burnstate]")
diff --git a/code/modules/mob/living/carbon/damage_procs.dm b/code/modules/mob/living/carbon/damage_procs.dm
index a7064828d55..8463b9cdfd4 100644
--- a/code/modules/mob/living/carbon/damage_procs.dm
+++ b/code/modules/mob/living/carbon/damage_procs.dm
@@ -131,7 +131,7 @@
/**
* If an organ exists in the slot requested, and we are capable of taking damage (we don't have [GODMODE] on), call the set damage proc on that organ, which can
- * set or clear the failing variable on that organ, making it either cease or start functions again, unlike adjustOrganLoss.
+ * set or clear the failing variable on that organ, making it either cease or start functions again, unlike adjustOrganLoss.
*
* Arguments:
* * slot - organ slot, like [ORGAN_SLOT_HEART]
@@ -248,7 +248,7 @@
/// damage MANY bodyparts, in random order
/mob/living/carbon/take_overall_damage(brute = 0, burn = 0, stamina = 0, updating_health = TRUE, required_status)
if(status_flags & GODMODE)
- return //godmode
+ return //godmode
var/list/obj/item/bodypart/parts = get_damageable_bodyparts(required_status)
var/update = 0
@@ -265,8 +265,8 @@
update |= picked.receive_damage(brute_per_part, burn_per_part, stamina_per_part, FALSE, required_status, wound_bonus = CANT_WOUND) // disabling wounds from these for now cuz your entire body snapping cause your heart stopped would suck
- brute = round(brute - (picked.brute_dam - brute_was), DAMAGE_PRECISION)
- burn = round(burn - (picked.burn_dam - burn_was), DAMAGE_PRECISION)
+ brute = round(brute - (picked.brute_dam - brute_was), DAMAGE_PRECISION)
+ burn = round(burn - (picked.burn_dam - burn_was), DAMAGE_PRECISION)
stamina = round(stamina - (picked.stamina_dam - stamina_was), DAMAGE_PRECISION)
parts -= picked
diff --git a/code/modules/mob/living/carbon/human/human.dm b/code/modules/mob/living/carbon/human/human.dm
index 16e3d509778..e0116c6c960 100644
--- a/code/modules/mob/living/carbon/human/human.dm
+++ b/code/modules/mob/living/carbon/human/human.dm
@@ -2,7 +2,7 @@
add_verb(src, /mob/living/proc/mob_sleep)
add_verb(src, /mob/living/proc/toggle_resting)
- icon_state = "" //Remove the inherent human icon that is visible on the map editor. We're rendering ourselves limb by limb, having it still be there results in a bug where the basic human icon appears below as south in all directions and generally looks nasty.
+ icon_state = "" //Remove the inherent human icon that is visible on the map editor. We're rendering ourselves limb by limb, having it still be there results in a bug where the basic human icon appears below as south in all directions and generally looks nasty.
//initialize limbs first
create_bodyparts()
@@ -117,12 +117,12 @@
if(obscured & ITEM_SLOT_EYES)
dat += "| Eyes: | Obscured |
"
else
- dat += "| Eyes: | [(glasses && !(glasses.item_flags & ABSTRACT)) ? glasses : "Empty"] |
"
+ dat += "| Eyes: | [(glasses && !(glasses.item_flags & ABSTRACT)) ? glasses : "Empty"] |
"
if(obscured & ITEM_SLOT_EARS)
dat += "| Ears: | Obscured |
"
else
- dat += "| Ears: | [(ears && !(ears.item_flags & ABSTRACT)) ? ears : "Empty"] |
"
+ dat += "| Ears: | [(ears && !(ears.item_flags & ABSTRACT)) ? ears : "Empty"] |
"
dat += "| |
"
@@ -141,7 +141,7 @@
if(obscured & ITEM_SLOT_FEET)
dat += "| Shoes: | Obscured |
"
else
- dat += "| Shoes: | [(shoes && !(shoes.item_flags & ABSTRACT)) ? shoes : "Empty"]"
+ dat += " |
| Shoes: | [(shoes && !(shoes.item_flags & ABSTRACT)) ? shoes : "Empty"]"
if(shoes && shoes.can_be_tied && shoes.tied != SHOES_KNOTTED)
dat += " [shoes.tied ? "Untie shoes" : "Knot shoes"]"
@@ -149,7 +149,7 @@
if(obscured & ITEM_SLOT_GLOVES)
dat += " |
| Gloves: | Obscured |
"
else
- dat += "| Gloves: | [(gloves && !(gloves.item_flags & ABSTRACT)) ? gloves : "Empty"] |
"
+ dat += "| Gloves: | [(gloves && !(gloves.item_flags & ABSTRACT)) ? gloves : "Empty"] |
"
if(obscured & ITEM_SLOT_ICLOTHING)
dat += "| Uniform: | Obscured |
"
@@ -379,7 +379,7 @@
if(!HAS_TRAIT(H, TRAIT_SECURITY_HUD))
return
if(usr.stat || usr == src) //|| !usr.canmove || usr.restrained()) Fluff: Sechuds have eye-tracking technology and sets 'arrest' to people that the wearer looks and blinks at.
- return //Non-fluff: This allows sec to set people to arrest as they get disarmed or beaten
+ return //Non-fluff: This allows sec to set people to arrest as they get disarmed or beaten
// Checks the user has security clearence before allowing them to change arrest status via hud, comment out to enable all access
var/allowed_access = null
var/obj/item/clothing/glasses/hud/security/G = H.glasses
@@ -421,7 +421,7 @@
return
if(!HAS_TRAIT(H, TRAIT_SECURITY_HUD))
return
- to_chat(usr, "Name: [R.fields["name"]] Criminal Status: [R.fields["criminal"]]")
+ to_chat(usr, "Name: [R.fields["name"]] Criminal Status: [R.fields["criminal"]]")
for(var/datum/data/crime/c in R.fields["crim"])
to_chat(usr, "Crime: [c.crimeName]")
if (c.crimeDetails)
diff --git a/code/modules/mob/living/carbon/human/human_defense.dm b/code/modules/mob/living/carbon/human/human_defense.dm
index 2e74ffdbba7..fe74520074e 100644
--- a/code/modules/mob/living/carbon/human/human_defense.dm
+++ b/code/modules/mob/living/carbon/human/human_defense.dm
@@ -88,7 +88,7 @@
P.yo = new_y - curloc.y
P.xo = new_x - curloc.x
var/new_angle_s = P.Angle + rand(120,240)
- while(new_angle_s > 180) // Translate to regular projectile degrees
+ while(new_angle_s > 180) // Translate to regular projectile degrees
new_angle_s -= 360
P.setAngle(new_angle_s)
@@ -207,7 +207,7 @@
apply_damage(15, BRUTE, wound_bonus=10)
/mob/living/carbon/human/attack_hand(mob/user, modifiers)
- if(..()) //to allow surgery to return properly.
+ if(..()) //to allow surgery to return properly.
return
if(ishuman(user))
var/mob/living/carbon/human/H = user
@@ -412,12 +412,12 @@
burn_loss = 60
if(bomb_armor)
brute_loss = 30*(2 - round(bomb_armor*0.01, 0.05))
- burn_loss = brute_loss //damage gets reduced from 120 to up to 60 combined brute+burn
+ burn_loss = brute_loss //damage gets reduced from 120 to up to 60 combined brute+burn
damage_clothes(200 - bomb_armor, BRUTE, BOMB)
if (ears && !HAS_TRAIT_FROM(src, TRAIT_DEAF, CLOTHING_TRAIT))
ears.adjustEarDamage(30, 120)
- Unconscious(20) //short amount of time for follow up attacks against elusive enemies like wizards
- Knockdown(200 - (bomb_armor * 1.6)) //between ~4 and ~20 seconds of knockdown depending on bomb armor
+ Unconscious(20) //short amount of time for follow up attacks against elusive enemies like wizards
+ Knockdown(200 - (bomb_armor * 1.6)) //between ~4 and ~20 seconds of knockdown depending on bomb armor
if(EXPLODE_LIGHT)
brute_loss = 30
@@ -426,7 +426,7 @@
damage_clothes(max(50 - bomb_armor, 0), BRUTE, BOMB)
if (ears && !HAS_TRAIT_FROM(src, TRAIT_DEAF, CLOTHING_TRAIT))
ears.adjustEarDamage(15,60)
- Knockdown(160 - (bomb_armor * 1.6)) //100 bomb armor will prevent knockdown altogether
+ Knockdown(160 - (bomb_armor * 1.6)) //100 bomb armor will prevent knockdown altogether
take_overall_damage(brute_loss,burn_loss)
@@ -858,7 +858,7 @@
broken.Insert(broken.len, "and ")
broken_plural = TRUE
else
- var/holder = broken[1] //our one and only element
+ var/holder = broken[1] //our one and only element
if(holder[length(holder)] == "s")
broken_plural = TRUE
//Put the items in that list into a string of text
diff --git a/code/modules/mob/living/carbon/human/human_defines.dm b/code/modules/mob/living/carbon/human/human_defines.dm
index 5109eb51854..4d80893735b 100644
--- a/code/modules/mob/living/carbon/human/human_defines.dm
+++ b/code/modules/mob/living/carbon/human/human_defines.dm
@@ -28,19 +28,19 @@
//Eye colour
var/eye_color = "000"
- var/skin_tone = "caucasian1" //Skin tone
+ var/skin_tone = "caucasian1" //Skin tone
- var/lip_style = null //no lipstick by default- arguably misleading, as it could be used for general makeup
+ var/lip_style = null //no lipstick by default- arguably misleading, as it could be used for general makeup
var/lip_color = "white"
- var/age = 30 //Player's age
+ var/age = 30 //Player's age
- var/underwear = "Nude" //Which underwear the player wants
+ var/underwear = "Nude" //Which underwear the player wants
var/underwear_color = "000"
var/undershirt = "Nude" //Which undershirt the player wants
var/socks = "Nude" //Which socks the player wants
- var/backpack = DBACKPACK //Which backpack type the player has chosen.
- var/jumpsuit_style = PREF_SUIT //suit/skirt
+ var/backpack = DBACKPACK //Which backpack type the player has chosen.
+ var/jumpsuit_style = PREF_SUIT //suit/skirt
//Equipment slots
var/obj/item/clothing/wear_suit = null
diff --git a/code/modules/mob/living/carbon/human/human_helpers.dm b/code/modules/mob/living/carbon/human/human_helpers.dm
index 7c14e6754a6..caf2b21cf5b 100644
--- a/code/modules/mob/living/carbon/human/human_helpers.dm
+++ b/code/modules/mob/living/carbon/human/human_helpers.dm
@@ -47,12 +47,12 @@
//Returns "Unknown" if facially disfigured and real_name if not. Useful for setting name when Fluacided or when updating a human's name variable
/mob/living/carbon/human/proc/get_face_name(if_no_face="Unknown")
- if( wear_mask && (wear_mask.flags_inv&HIDEFACE) ) //Wearing a mask which hides our face, use id-name if possible
+ if( wear_mask && (wear_mask.flags_inv&HIDEFACE) ) //Wearing a mask which hides our face, use id-name if possible
return if_no_face
if( head && (head.flags_inv&HIDEFACE) )
- return if_no_face //Likewise for hats
+ return if_no_face //Likewise for hats
var/obj/item/bodypart/O = get_bodypart(BODY_ZONE_HEAD)
- if( !O || (HAS_TRAIT(src, TRAIT_DISFIGURED)) || (O.brutestate+O.burnstate)>2 || cloneloss>50 || !real_name ) //disfigured. use id-name if possible
+ if( !O || (HAS_TRAIT(src, TRAIT_DISFIGURED)) || (O.brutestate+O.burnstate)>2 || cloneloss>50 || !real_name ) //disfigured. use id-name if possible
return if_no_face
return real_name
@@ -74,7 +74,7 @@
if(card_slot?.stored_card)
. = card_slot.stored_card.registered_name
if(!.)
- . = if_no_id //to prevent null-names making the mob unclickable
+ . = if_no_id //to prevent null-names making the mob unclickable
return
/mob/living/carbon/human/get_idcard(hand_first = TRUE)
diff --git a/code/modules/mob/living/carbon/human/human_update_icons.dm b/code/modules/mob/living/carbon/human/human_update_icons.dm
index c7d0bd9d90a..b2c63ca3813 100644
--- a/code/modules/mob/living/carbon/human/human_update_icons.dm
+++ b/code/modules/mob/living/carbon/human/human_update_icons.dm
@@ -6,7 +6,7 @@ This system allows you to update individual mob-overlays, without regenerating t
When we generate overlays we generate the standing version and then rotate the mob as necessary..
As of the time of writing there are 20 layers within this list. Please try to keep this from increasing. //22 and counting, good job guys
- var/overlays_standing[20] //For the standing stance
+ var/overlays_standing[20] //For the standing stance
Most of the time we only wish to update one overlay:
e.g. - we dropped the fireaxe out of our left hand and need to remove its icon from our mob
@@ -28,7 +28,7 @@ Note: The defines for layer numbers is now kept exclusvely in __DEFINES/misc.dm
All of this means that this code is more maintainable, faster and still fairly easy to use.
There are several things that need to be remembered:
-> Whenever we do something that should cause an overlay to update (which doesn't use standard procs
+> Whenever we do something that should cause an overlay to update (which doesn't use standard procs
( i.e. you do something like l_hand = /obj/item/something new(src), rather than using the helper procs)
You will need to call the relevant update_inv_* proc
@@ -37,12 +37,12 @@ There are several things that need to be remembered:
slime etc. Instead, it'll just return without doing any work. So no harm in calling it for slimes and such.
-> There are also these special cases:
- update_damage_overlays() //handles damage overlays for brute/burn damage
- update_body() //Handles updating your mob's body layer and mutant bodyparts
+> There are also these special cases:
+ update_damage_overlays() //handles damage overlays for brute/burn damage
+ update_body() //Handles updating your mob's body layer and mutant bodyparts
as well as sprite-accessories that didn't really fit elsewhere (underwear, undershirts, socks, lips, eyes)
//NOTE: update_mutantrace() is now merged into this!
- update_hair() //Handles updating your hair overlay (used to be update_face, but mouth and
+ update_hair() //Handles updating your hair overlay (used to be update_face, but mouth and
eyes were merged into update_body())
@@ -216,10 +216,10 @@ There are several things that need to be remembered:
inv.update_icon()
if(glasses)
- glasses.screen_loc = ui_glasses //...draw the item in the inventory screen
+ glasses.screen_loc = ui_glasses //...draw the item in the inventory screen
if(client && hud_used?.hud_shown)
- if(hud_used.inventory_shown) //if the inventory is open ...
- client.screen += glasses //Either way, add the item to the HUD
+ if(hud_used.inventory_shown) //if the inventory is open ...
+ client.screen += glasses //Either way, add the item to the HUD
update_observer_view(glasses,1)
if(!(head && (head.flags_inv & HIDEEYES)) && !(wear_mask && (wear_mask.flags_inv & HIDEEYES)))
overlays_standing[GLASSES_LAYER] = glasses.build_worn_icon(default_layer = GLASSES_LAYER, default_icon_file = 'icons/mob/clothing/eyes.dmi')
@@ -246,10 +246,10 @@ There are several things that need to be remembered:
inv.update_icon()
if(ears)
- ears.screen_loc = ui_ears //move the item to the appropriate screen loc
+ ears.screen_loc = ui_ears //move the item to the appropriate screen loc
if(client && hud_used?.hud_shown)
- if(hud_used.inventory_shown) //if the inventory is open
- client.screen += ears //add it to the client's screen
+ if(hud_used.inventory_shown) //if the inventory is open
+ client.screen += ears //add it to the client's screen
update_observer_view(ears,1)
overlays_standing[EARS_LAYER] = ears.build_worn_icon(default_layer = EARS_LAYER, default_icon_file = 'icons/mob/clothing/ears.dmi')
var/mutable_appearance/ears_overlay = overlays_standing[EARS_LAYER]
@@ -273,10 +273,10 @@ There are several things that need to be remembered:
inv.update_icon()
if(shoes)
- shoes.screen_loc = ui_shoes //move the item to the appropriate screen loc
+ shoes.screen_loc = ui_shoes //move the item to the appropriate screen loc
if(client && hud_used?.hud_shown)
- if(hud_used.inventory_shown) //if the inventory is open
- client.screen += shoes //add it to client's screen
+ if(hud_used.inventory_shown) //if the inventory is open
+ client.screen += shoes //add it to client's screen
update_observer_view(shoes,1)
overlays_standing[SHOES_LAYER] = shoes.build_worn_icon(default_layer = SHOES_LAYER, default_icon_file = 'icons/mob/clothing/feet.dmi')
var/mutable_appearance/shoes_overlay = overlays_standing[SHOES_LAYER]
@@ -302,7 +302,7 @@ There are several things that need to be remembered:
if(client && hud_used?.hud_shown)
client.screen += s_store
update_observer_view(s_store)
- overlays_standing[SUIT_STORE_LAYER] = s_store.build_worn_icon(default_layer = SUIT_STORE_LAYER, default_icon_file = 'icons/mob/clothing/belt_mirror.dmi')
+ overlays_standing[SUIT_STORE_LAYER] = s_store.build_worn_icon(default_layer = SUIT_STORE_LAYER, default_icon_file = 'icons/mob/clothing/belt_mirror.dmi')
var/mutable_appearance/s_store_overlay = overlays_standing[SUIT_STORE_LAYER]
if(OFFSET_S_STORE in dna.species.offset_features)
s_store_overlay.pixel_x += dna.species.offset_features[OFFSET_S_STORE][1]
@@ -432,7 +432,7 @@ There are several things that need to be remembered:
/proc/wear_female_version(t_color, icon, layer, type)
var/index = t_color
var/icon/female_clothing_icon = GLOB.female_clothing_icons[index]
- if(!female_clothing_icon) //Create standing/laying icons if they don't exist
+ if(!female_clothing_icon) //Create standing/laying icons if they don't exist
generate_female_clothing(index,t_color,icon,type)
return mutable_appearance(GLOB.female_clothing_icons[t_color], layer = -layer)
diff --git a/code/modules/mob/living/carbon/human/life.dm b/code/modules/mob/living/carbon/human/life.dm
index 119b47a8829..ccfd551d2d8 100644
--- a/code/modules/mob/living/carbon/human/life.dm
+++ b/code/modules/mob/living/carbon/human/life.dm
@@ -6,17 +6,17 @@
// Used with human/proc/get_heat_protection() and human/proc/get_cold_protection()
// The values here should add up to 1.
// Hands and feet have 2.5%, arms and legs 7.5%, each of the torso parts has 15% and the head has 30%
-#define THERMAL_PROTECTION_HEAD 0.3
-#define THERMAL_PROTECTION_CHEST 0.15
-#define THERMAL_PROTECTION_GROIN 0.15
-#define THERMAL_PROTECTION_LEG_LEFT 0.075
-#define THERMAL_PROTECTION_LEG_RIGHT 0.075
-#define THERMAL_PROTECTION_FOOT_LEFT 0.025
-#define THERMAL_PROTECTION_FOOT_RIGHT 0.025
-#define THERMAL_PROTECTION_ARM_LEFT 0.075
-#define THERMAL_PROTECTION_ARM_RIGHT 0.075
-#define THERMAL_PROTECTION_HAND_LEFT 0.025
-#define THERMAL_PROTECTION_HAND_RIGHT 0.025
+#define THERMAL_PROTECTION_HEAD 0.3
+#define THERMAL_PROTECTION_CHEST 0.15
+#define THERMAL_PROTECTION_GROIN 0.15
+#define THERMAL_PROTECTION_LEG_LEFT 0.075
+#define THERMAL_PROTECTION_LEG_RIGHT 0.075
+#define THERMAL_PROTECTION_FOOT_LEFT 0.025
+#define THERMAL_PROTECTION_FOOT_RIGHT 0.025
+#define THERMAL_PROTECTION_ARM_LEFT 0.075
+#define THERMAL_PROTECTION_ARM_RIGHT 0.075
+#define THERMAL_PROTECTION_HAND_LEFT 0.025
+#define THERMAL_PROTECTION_HAND_RIGHT 0.025
/mob/living/carbon/human/Life()
if (notransform)
diff --git a/code/modules/mob/living/carbon/human/monkey/monkey.dm b/code/modules/mob/living/carbon/human/monkey/monkey.dm
index e980679592d..f0ea641a031 100644
--- a/code/modules/mob/living/carbon/human/monkey/monkey.dm
+++ b/code/modules/mob/living/carbon/human/monkey/monkey.dm
@@ -36,7 +36,7 @@
var/ancestor_name
/// The number of times Pun Pun has died since he was last gibbed
var/ancestor_chain = 1
- var/relic_hat //Note: these two are paths
+ var/relic_hat //Note: these two are paths
var/relic_mask
var/memory_saved = FALSE
@@ -81,10 +81,10 @@
/mob/living/carbon/human/species/monkey/punpun/proc/Read_Memory()
if(fexists("data/npc_saves/Punpun.sav")) //legacy compatability to convert old format to new
var/savefile/S = new /savefile("data/npc_saves/Punpun.sav")
- S["ancestor_name"] >> ancestor_name
+ S["ancestor_name"] >> ancestor_name
S["ancestor_chain"] >> ancestor_chain
- S["relic_hat"] >> relic_hat
- S["relic_mask"] >> relic_mask
+ S["relic_hat"] >> relic_hat
+ S["relic_mask"] >> relic_mask
fdel("data/npc_saves/Punpun.sav")
else
var/json_file = file("data/npc_saves/Punpun.json")
diff --git a/code/modules/mob/living/carbon/human/physiology.dm b/code/modules/mob/living/carbon/human/physiology.dm
index 2a197b64ee2..f83cc5e6203 100644
--- a/code/modules/mob/living/carbon/human/physiology.dm
+++ b/code/modules/mob/living/carbon/human/physiology.dm
@@ -1,27 +1,27 @@
//Stores several modifiers in a way that isn't cleared by changing species
/datum/physiology
- var/brute_mod = 1 // % of brute damage taken from all sources
- var/burn_mod = 1 // % of burn damage taken from all sources
- var/tox_mod = 1 // % of toxin damage taken from all sources
- var/oxy_mod = 1 // % of oxygen damage taken from all sources
- var/clone_mod = 1 // % of clone damage taken from all sources
- var/stamina_mod = 1 // % of stamina damage taken from all sources
- var/brain_mod = 1 // % of brain damage taken from all sources
+ var/brute_mod = 1 // % of brute damage taken from all sources
+ var/burn_mod = 1 // % of burn damage taken from all sources
+ var/tox_mod = 1 // % of toxin damage taken from all sources
+ var/oxy_mod = 1 // % of oxygen damage taken from all sources
+ var/clone_mod = 1 // % of clone damage taken from all sources
+ var/stamina_mod = 1 // % of stamina damage taken from all sources
+ var/brain_mod = 1 // % of brain damage taken from all sources
- var/pressure_mod = 1 // % of brute damage taken from low or high pressure (stacks with brute_mod)
- var/heat_mod = 1 // % of burn damage taken from heat (stacks with burn_mod)
- var/cold_mod = 1 // % of burn damage taken from cold (stacks with burn_mod)
+ var/pressure_mod = 1 // % of brute damage taken from low or high pressure (stacks with brute_mod)
+ var/heat_mod = 1 // % of burn damage taken from heat (stacks with burn_mod)
+ var/cold_mod = 1 // % of burn damage taken from cold (stacks with burn_mod)
var/damage_resistance = 0 // %damage reduction from all sources
- var/siemens_coeff = 1 // resistance to shocks
+ var/siemens_coeff = 1 // resistance to shocks
- var/stun_mod = 1 // % stun modifier
- var/bleed_mod = 1 // % bleeding modifier
- var/datum/armor/armor // internal armor datum
+ var/stun_mod = 1 // % stun modifier
+ var/bleed_mod = 1 // % bleeding modifier
+ var/datum/armor/armor // internal armor datum
- var/hunger_mod = 1 //% of hunger rate taken per tick.
+ var/hunger_mod = 1 //% of hunger rate taken per tick.
/datum/physiology/New()
armor = new
diff --git a/code/modules/mob/living/carbon/human/species.dm b/code/modules/mob/living/carbon/human/species.dm
index dcde7d3e04f..44e6a1a5059 100644
--- a/code/modules/mob/living/carbon/human/species.dm
+++ b/code/modules/mob/living/carbon/human/species.dm
@@ -106,7 +106,7 @@ GLOBAL_LIST_EMPTY(roundstart_races)
///To use MUTCOLOR with a fixed color that's independent of the mcolor feature in DNA.
var/fixed_mut_color = ""
///Special mutation that can be found in the genepool exclusively in this species. Dont leave empty or changing species will be a headache
- var/inert_mutation = DWARFISM
+ var/inert_mutation = DWARFISM
///Used to set the mob's deathsound upon species change
var/deathsound
///Sounds to override barefeet walking
@@ -198,7 +198,7 @@ GLOBAL_LIST_EMPTY(roundstart_races)
/datum/species/New()
- if(!limbs_id) //if we havent set a limbs id to use, just use our own id
+ if(!limbs_id) //if we havent set a limbs id to use, just use our own id
limbs_id = id
..()
@@ -390,7 +390,7 @@ GLOBAL_LIST_EMPTY(roundstart_races)
var/obj/item/I = V
if(istype(I))
C.dropItemToGround(I)
- else //Entries in the list should only ever be items or null, so if it's not an item, we can assume it's an empty hand
+ else //Entries in the list should only ever be items or null, so if it's not an item, we can assume it's an empty hand
C.put_in_hands(new mutanthands())
for(var/X in inherent_traits)
@@ -749,7 +749,7 @@ GLOBAL_LIST_EMPTY(roundstart_races)
/datum/species/proc/handle_mutant_bodyparts(mob/living/carbon/human/H, forced_colour)
var/list/bodyparts_to_add = mutant_bodyparts.Copy()
var/list/relevent_layers = list(BODY_BEHIND_LAYER, BODY_ADJ_LAYER, BODY_FRONT_LAYER)
- var/list/standing = list()
+ var/list/standing = list()
H.remove_overlay(BODY_BEHIND_LAYER)
H.remove_overlay(BODY_ADJ_LAYER)
@@ -1294,7 +1294,7 @@ GLOBAL_LIST_EMPTY(roundstart_races)
addtimer(CALLBACK(src, .proc/go_bald, H), 50)
/datum/species/proc/go_bald(mob/living/carbon/human/H)
- if(QDELETED(H)) //may be called from a timer
+ if(QDELETED(H)) //may be called from a timer
return
H.facial_hairstyle = "Shaved"
H.hairstyle = "Bald"
@@ -1529,13 +1529,13 @@ GLOBAL_LIST_EMPTY(roundstart_races)
var/bloody = FALSE
if(((I.damtype == BRUTE) && I.force && prob(25 + (I.force * 2))))
if(affecting.status == BODYPART_ORGANIC)
- I.add_mob_blood(H) //Make the weapon bloody, not the person.
- if(prob(I.force * 2)) //blood spatter!
+ I.add_mob_blood(H) //Make the weapon bloody, not the person.
+ if(prob(I.force * 2)) //blood spatter!
bloody = TRUE
var/turf/location = H.loc
if(istype(location))
H.add_splatter_floor(location)
- if(get_dist(user, H) <= 1) //people with TK won't get smeared with blood
+ if(get_dist(user, H) <= 1) //people with TK won't get smeared with blood
user.add_mob_blood(H)
switch(hit_area)
@@ -1558,7 +1558,7 @@ GLOBAL_LIST_EMPTY(roundstart_races)
if(rev)
rev.remove_revolutionary(FALSE, user)
- if(bloody) //Apply blood
+ if(bloody) //Apply blood
if(H.wear_mask)
H.wear_mask.add_mob_blood(H)
H.update_inv_wear_mask()
@@ -2103,7 +2103,7 @@ GLOBAL_LIST_EMPTY(roundstart_races)
/datum/species/proc/CanFly(mob/living/carbon/human/H)
if(H.stat || H.body_position == LYING_DOWN)
return FALSE
- if(H.wear_suit && ((H.wear_suit.flags_inv & HIDEJUMPSUIT) && (!H.wear_suit.species_exception || !is_type_in_list(src, H.wear_suit.species_exception)))) //Jumpsuits have tail holes, so it makes sense they have wing holes too
+ if(H.wear_suit && ((H.wear_suit.flags_inv & HIDEJUMPSUIT) && (!H.wear_suit.species_exception || !is_type_in_list(src, H.wear_suit.species_exception)))) //Jumpsuits have tail holes, so it makes sense they have wing holes too
to_chat(H, "Your suit blocks your wings from extending!")
return FALSE
var/turf/T = get_turf(H)
diff --git a/code/modules/mob/living/carbon/human/species_types/felinid.dm b/code/modules/mob/living/carbon/human/species_types/felinid.dm
index 6f638c7da85..265026bfc65 100644
--- a/code/modules/mob/living/carbon/human/species_types/felinid.dm
+++ b/code/modules/mob/living/carbon/human/species_types/felinid.dm
@@ -51,7 +51,7 @@
/datum/species/human/felinid/on_species_gain(mob/living/carbon/C, datum/species/old_species, pref_load)
if(ishuman(C))
var/mob/living/carbon/human/H = C
- if(!pref_load) //Hah! They got forcefully purrbation'd. Force default felinid parts on them if they have no mutant parts in those areas!
+ if(!pref_load) //Hah! They got forcefully purrbation'd. Force default felinid parts on them if they have no mutant parts in those areas!
if(H.dna.features["tail_human"] == "None")
H.dna.features["tail_human"] = "Cat"
if(H.dna.features["ears"] == "None")
diff --git a/code/modules/mob/living/carbon/human/species_types/golems.dm b/code/modules/mob/living/carbon/human/species_types/golems.dm
index d4db440a635..dbd633338af 100644
--- a/code/modules/mob/living/carbon/human/species_types/golems.dm
+++ b/code/modules/mob/living/carbon/human/species_types/golems.dm
@@ -863,7 +863,7 @@
/datum/species/golem/bronze/proc/gong(mob/living/carbon/human/H)
last_gong_time = world.time
for(var/mob/living/M in get_hearers_in_view(7,H))
- if(M.stat == DEAD) //F
+ if(M.stat == DEAD) //F
continue
if(M == H)
H.show_message("You cringe with pain as your body rings around you!", MSG_AUDIBLE)
diff --git a/code/modules/mob/living/carbon/human/species_types/jellypeople.dm b/code/modules/mob/living/carbon/human/species_types/jellypeople.dm
index d8e0c76832f..e951c1870ed 100644
--- a/code/modules/mob/living/carbon/human/species_types/jellypeople.dm
+++ b/code/modules/mob/living/carbon/human/species_types/jellypeople.dm
@@ -370,24 +370,24 @@
return FALSE
var/datum/species/jelly/slime/SS = H.dna.species
- if(QDELETED(dupe)) //Is there a body?
+ if(QDELETED(dupe)) //Is there a body?
SS.bodies -= dupe
return FALSE
- if(!isslimeperson(dupe)) //Is it a slimeperson?
+ if(!isslimeperson(dupe)) //Is it a slimeperson?
SS.bodies -= dupe
return FALSE
- if(dupe.stat == DEAD) //Is it alive?
+ if(dupe.stat == DEAD) //Is it alive?
return FALSE
- if(dupe.stat != CONSCIOUS) //Is it awake?
+ if(dupe.stat != CONSCIOUS) //Is it awake?
return FALSE
- if(dupe.mind && dupe.mind.active) //Is it unoccupied?
+ if(dupe.mind && dupe.mind.active) //Is it unoccupied?
return FALSE
- if(!(dupe in SS.bodies)) //Do we actually own it?
+ if(!(dupe in SS.bodies)) //Do we actually own it?
return FALSE
return TRUE
diff --git a/code/modules/mob/living/carbon/human/suicides.dm b/code/modules/mob/living/carbon/human/suicides.dm
index 8aac47d188d..94c917ab6bc 100644
--- a/code/modules/mob/living/carbon/human/suicides.dm
+++ b/code/modules/mob/living/carbon/human/suicides.dm
@@ -2,4 +2,4 @@
suicide_log()
adjustBruteLoss(max(200 - getToxLoss() - getFireLoss() - getBruteLoss() - getOxyLoss(), 0))
death(FALSE)
- ghostize(FALSE) // Disallows reentering body and disassociates mind
+ ghostize(FALSE) // Disallows reentering body and disassociates mind
diff --git a/code/modules/mob/living/life.dm b/code/modules/mob/living/life.dm
index 0a99e840305..a0fd6fcae02 100644
--- a/code/modules/mob/living/life.dm
+++ b/code/modules/mob/living/life.dm
@@ -146,12 +146,12 @@
/mob/living/proc/handle_traits()
//Eyes
- if(eye_blind) //blindness, heals slowly over time
+ if(eye_blind) //blindness, heals slowly over time
if(HAS_TRAIT_FROM(src, TRAIT_BLIND, EYES_COVERED)) //covering your eyes heals blurry eyes faster
adjust_blindness(-3)
else if(!stat && !(HAS_TRAIT(src, TRAIT_BLIND)))
adjust_blindness(-1)
- else if(eye_blurry) //blurry eyes heal slowly
+ else if(eye_blurry) //blurry eyes heal slowly
adjust_blurriness(-1)
/mob/living/proc/update_damage_hud()
diff --git a/code/modules/mob/living/living.dm b/code/modules/mob/living/living.dm
index dbb1861d8fb..d1aa2d581fa 100644
--- a/code/modules/mob/living/living.dm
+++ b/code/modules/mob/living/living.dm
@@ -241,7 +241,7 @@
if((AM.move_resist * MOVE_FORCE_CRUSH_RATIO) <= force)
if(move_crush(AM, move_force, dir_to_target))
push_anchored = TRUE
- if((AM.move_resist * MOVE_FORCE_FORCEPUSH_RATIO) <= force) //trigger move_crush and/or force_push regardless of if we can push it normally
+ if((AM.move_resist * MOVE_FORCE_FORCEPUSH_RATIO) <= force) //trigger move_crush and/or force_push regardless of if we can push it normally
if(force_push(AM, move_force, dir_to_target, push_anchored))
push_anchored = TRUE
if((AM.anchored && !push_anchored) || (force < (AM.move_resist * MOVE_FORCE_PUSH_RATIO)))
@@ -612,11 +612,11 @@
//Recursive function to find everything a mob is holding. Really shitty proc tbh.
/mob/living/get_contents()
var/list/ret = list()
- ret |= contents //add our contents
- for(var/i in ret.Copy()) //iterate storage objects
+ ret |= contents //add our contents
+ for(var/i in ret.Copy()) //iterate storage objects
var/atom/A = i
SEND_SIGNAL(A, COMSIG_TRY_STORAGE_RETURN_INVENTORY, ret)
- for(var/obj/item/folder/F in ret.Copy()) //very snowflakey-ly iterate folders
+ for(var/obj/item/folder/F in ret.Copy()) //very snowflakey-ly iterate folders
ret |= F.contents
return ret
@@ -854,7 +854,7 @@
return
var/bleed_amount = bleedDragAmount()
- blood_volume = max(blood_volume - bleed_amount, 0) //that depends on our brute damage.
+ blood_volume = max(blood_volume - bleed_amount, 0) //that depends on our brute damage.
var/newdir = get_dir(target_turf, start)
if(newdir != direction)
newdir = newdir | direction
diff --git a/code/modules/mob/living/living_defines.dm b/code/modules/mob/living/living_defines.dm
index 159170b5563..2d4c1bfb305 100644
--- a/code/modules/mob/living/living_defines.dm
+++ b/code/modules/mob/living/living_defines.dm
@@ -18,12 +18,12 @@
var/health = MAX_LIVING_HEALTH
//Damage related vars, NOTE: THESE SHOULD ONLY BE MODIFIED BY PROCS
- var/bruteloss = 0 ///Brutal damage caused by brute force (punching, being clubbed by a toolbox ect... this also accounts for pressure damage)
- var/oxyloss = 0 ///Oxygen depravation damage (no air in lungs)
- var/toxloss = 0 ///Toxic damage caused by being poisoned or radiated
- var/fireloss = 0 ///Burn damage caused by being way too hot, too cold or burnt.
- var/cloneloss = 0 ///Damage caused by being cloned or ejected from the cloner early. slimes also deal cloneloss damage to victims
- var/staminaloss = 0 ///Stamina damage, or exhaustion. You recover it slowly naturally, and are knocked down if it gets too high. Holodeck and hallucinations deal this.
+ var/bruteloss = 0 ///Brutal damage caused by brute force (punching, being clubbed by a toolbox ect... this also accounts for pressure damage)
+ var/oxyloss = 0 ///Oxygen depravation damage (no air in lungs)
+ var/toxloss = 0 ///Toxic damage caused by being poisoned or radiated
+ var/fireloss = 0 ///Burn damage caused by being way too hot, too cold or burnt.
+ var/cloneloss = 0 ///Damage caused by being cloned or ejected from the cloner early. slimes also deal cloneloss damage to victims
+ var/staminaloss = 0 ///Stamina damage, or exhaustion. You recover it slowly naturally, and are knocked down if it gets too high. Holodeck and hallucinations deal this.
var/crit_threshold = HEALTH_THRESHOLD_CRIT /// when the mob goes from "normal" to crit
///When the mob enters hard critical state and is fully incapacitated.
var/hardcrit_threshold = HEALTH_THRESHOLD_FULLCRIT
@@ -64,7 +64,7 @@
var/list/roundstart_quirks = list()
- var/list/surgeries = list() ///a list of surgery datums. generally empty, they're added when the player wants them.
+ var/list/surgeries = list() ///a list of surgery datums. generally empty, they're added when the player wants them.
var/now_pushing = null //! Used by [living/Bump()][/mob/living/proc/Bump] and [living/PushAM()][/mob/living/proc/PushAM] to prevent potential infinite loop.
@@ -132,11 +132,11 @@
var/list/implants = null
- var/last_words ///used for database logging
+ var/last_words ///used for database logging
var/list/obj/effect/proc_holder/abilities = list()
- var/can_be_held = FALSE //whether this can be picked up and held.
+ var/can_be_held = FALSE //whether this can be picked up and held.
var/worn_slot_flags = NONE //if it can be held, can it be equipped to any slots? (think pAI's on head)
var/radiation = 0 ///If the mob is irradiated.
diff --git a/code/modules/mob/living/living_say.dm b/code/modules/mob/living/living_say.dm
index 1875959eaa7..5a3e2c17895 100644
--- a/code/modules/mob/living/living_say.dm
+++ b/code/modules/mob/living/living_say.dm
@@ -313,8 +313,8 @@ GLOBAL_LIST_INIT(message_modes_stat_limits, list(
if(client) //client is so that ghosts don't have to listen to mice
for(var/_M in GLOB.player_list)
var/mob/M = _M
- if(QDELETED(M)) //Some times nulls and deleteds stay in this list. This is a workaround to prevent ic chat breaking for everyone when they do.
- continue //Remove if underlying cause (likely byond issue) is fixed. See TG PR #49004.
+ if(QDELETED(M)) //Some times nulls and deleteds stay in this list. This is a workaround to prevent ic chat breaking for everyone when they do.
+ continue //Remove if underlying cause (likely byond issue) is fixed. See TG PR #49004.
if(M.stat != DEAD) //not dead, not important
continue
if(get_dist(M, src) > 7 || M.z != z) //they're out of range of normal hearing
diff --git a/code/modules/mob/living/logout.dm b/code/modules/mob/living/logout.dm
index ca5296cdffc..1b21d7f676b 100644
--- a/code/modules/mob/living/logout.dm
+++ b/code/modules/mob/living/logout.dm
@@ -1,6 +1,6 @@
/mob/living/Logout()
update_z(null)
..()
- if(!key && mind) //key and mind have become separated.
- mind.active = FALSE //This is to stop say, a mind.transfer_to call on a corpse causing a ghost to re-enter its body.
+ if(!key && mind) //key and mind have become separated.
+ mind.active = FALSE //This is to stop say, a mind.transfer_to call on a corpse causing a ghost to re-enter its body.
med_hud_set_status()
diff --git a/code/modules/mob/living/silicon/ai/ai.dm b/code/modules/mob/living/silicon/ai/ai.dm
index 40a7f89deb9..321dc9ed822 100644
--- a/code/modules/mob/living/silicon/ai/ai.dm
+++ b/code/modules/mob/living/silicon/ai/ai.dm
@@ -53,14 +53,14 @@
var/datum/module_picker/malf_picker
var/list/datum/ai_module/current_modules = list()
var/can_dominate_mechs = FALSE
- var/shunted = FALSE //1 if the AI is currently shunted. Used to differentiate between shunted and ghosted/braindead
+ var/shunted = FALSE //1 if the AI is currently shunted. Used to differentiate between shunted and ghosted/braindead
- var/control_disabled = FALSE // Set to 1 to stop AI from interacting via Click()
- var/malfhacking = FALSE // More or less a copy of the above var, so that malf AIs can hack and still get new cyborgs -- NeoFite
- var/malf_cooldown = 0 //Cooldown var for malf modules, stores a worldtime + cooldown
+ var/control_disabled = FALSE // Set to 1 to stop AI from interacting via Click()
+ var/malfhacking = FALSE // More or less a copy of the above var, so that malf AIs can hack and still get new cyborgs -- NeoFite
+ var/malf_cooldown = 0 //Cooldown var for malf modules, stores a worldtime + cooldown
var/obj/machinery/power/apc/malfhack
- var/explosive = FALSE //does the AI explode when it dies?
+ var/explosive = FALSE //does the AI explode when it dies?
var/mob/living/silicon/ai/parent
var/camera_light_on = FALSE
@@ -70,11 +70,11 @@
var/last_paper_seen = null
var/can_shunt = TRUE
- var/last_announcement = "" // For AI VOX, if enabled
+ var/last_announcement = "" // For AI VOX, if enabled
var/turf/waypoint //Holds the turf of the currently selected waypoint.
- var/waypoint_mode = FALSE //Waypoint mode is for selecting a turf via clicking.
- var/call_bot_cooldown = 0 //time of next call bot command
- var/obj/machinery/power/apc/apc_override //Ref of the AI's APC, used when the AI has no power in order to access their APC.
+ var/waypoint_mode = FALSE //Waypoint mode is for selecting a turf via clicking.
+ var/call_bot_cooldown = 0 //time of next call bot command
+ var/obj/machinery/power/apc/apc_override //Ref of the AI's APC, used when the AI has no power in order to access their APC.
var/nuking = FALSE
var/obj/machinery/doomsday_device/doomsday_device
@@ -547,7 +547,7 @@
var/foo = 0
var/dat2 = ""
for (var/obj/machinery/camera/I in CL)
- dat2 += text("[][]", (!foo) ? "" : " | ", I.c_tag) //I'm not fixing this shit...
+ dat2 += text("[][]", (!foo) ? "" : " | ", I.c_tag) //I'm not fixing this shit...
foo = 1
queueAlarm(text ("--- [] alarm detected in []! ([])", class, A.name, dat2), class)
else
@@ -619,7 +619,7 @@
to_chat(src, "Switched to the \"[uppertext(network)]\" camera network.")
//End of code by Mord_Sith
-//I am the icon meister. Bow fefore me. //>fefore
+//I am the icon meister. Bow fefore me. //>fefore
/mob/living/silicon/ai/proc/ai_hologram_change()
set name = "Change Hologram"
set desc = "Change the default hologram available to AI to something else."
@@ -785,7 +785,7 @@
new_core.circuit.battery = battery
ai_restore_power()//So the AI initially has power.
control_disabled = TRUE //Can't control things remotely if you're stuck in a card!
- radio_enabled = FALSE //No talking on the built-in radio for you either!
+ radio_enabled = FALSE //No talking on the built-in radio for you either!
forceMove(card)
card.AI = src
to_chat(src, "You have been downloaded to a mobile storage device. Remote device connection severed.")
diff --git a/code/modules/mob/living/silicon/ai/freelook/cameranet.dm b/code/modules/mob/living/silicon/ai/freelook/cameranet.dm
index 5addbe00a89..4d40a49b77e 100644
--- a/code/modules/mob/living/silicon/ai/freelook/cameranet.dm
+++ b/code/modules/mob/living/silicon/ai/freelook/cameranet.dm
@@ -106,7 +106,7 @@ GLOBAL_DATUM_INIT(cameranet, /datum/cameranet, new)
if(USE_STATIC_OPAQUE)
client.images -= GLOB.cameranet.obscured
-// Updates the chunks that the turf is located in. Use this when obstacles are destroyed or when doors open.
+// 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))
diff --git a/code/modules/mob/living/silicon/ai/multicam.dm b/code/modules/mob/living/silicon/ai/multicam.dm
index 8ed811e9265..c16fb59beaf 100644
--- a/code/modules/mob/living/silicon/ai/multicam.dm
+++ b/code/modules/mob/living/silicon/ai/multicam.dm
@@ -38,7 +38,7 @@
add_overlay(highlighted ? highlighted_background : standard_background)
/atom/movable/screen/movable/pic_in_pic/ai/set_view_size(width, height, do_refresh = TRUE)
- aiEye.static_visibility_range = (round(max(width, height) / 2) + 1)
+ aiEye.static_visibility_range = (round(max(width, height) / 2) + 1)
if(ai)
ai.camera_visibility(aiEye)
..()
diff --git a/code/modules/mob/living/silicon/pai/pai.dm b/code/modules/mob/living/silicon/pai/pai.dm
index 92dd0c5066e..66b25adcec1 100644
--- a/code/modules/mob/living/silicon/pai/pai.dm
+++ b/code/modules/mob/living/silicon/pai/pai.dm
@@ -26,45 +26,45 @@
var/network = "ss13"
var/obj/machinery/camera/current = null
- var/ram = 100 // Used as currency to purchase different abilities
+ var/ram = 100 // Used as currency to purchase different abilities
var/list/software = list()
- var/userDNA // The DNA string of our assigned user
- var/obj/item/paicard/card // The card we inhabit
- var/hacking = FALSE //Are we hacking a door?
+ var/userDNA // The DNA string of our assigned user
+ var/obj/item/paicard/card // The card we inhabit
+ var/hacking = FALSE //Are we hacking a door?
var/speakStatement = "states"
var/speakExclamation = "declares"
var/speakDoubleExclamation = "alarms"
var/speakQuery = "queries"
- var/obj/item/pai_cable/hacking_cable // The cable we produce when hacking a door
+ var/obj/item/pai_cable/hacking_cable // The cable we produce when hacking a door
- var/master // Name of the one who commands us
- var/master_dna // DNA string for owner verification
+ var/master // Name of the one who commands us
+ var/master_dna // DNA string for owner verification
// Various software-specific vars
- var/temp // General error reporting text contained here will typically be shown once and cleared
- var/screen // Which screen our main window displays
- var/subscreen // Which specific function of the main screen is being displayed
+ var/temp // General error reporting text contained here will typically be shown once and cleared
+ var/screen // Which screen our main window displays
+ var/subscreen // Which specific function of the main screen is being displayed
- var/secHUD = 0 // Toggles whether the Security HUD is active or not
- var/medHUD = 0 // Toggles whether the Medical HUD is active or not
+ var/secHUD = 0 // Toggles whether the Security HUD is active or not
+ var/medHUD = 0 // Toggles whether the Medical HUD is active or not
- var/datum/data/record/medicalActive1 // Datacore record declarations for record software
+ var/datum/data/record/medicalActive1 // Datacore record declarations for record software
var/datum/data/record/medicalActive2
- var/datum/data/record/securityActive1 // Could probably just combine all these into one
+ var/datum/data/record/securityActive1 // Could probably just combine all these into one
var/datum/data/record/securityActive2
- var/obj/machinery/door/hackdoor // The airlock being hacked
- var/hackprogress = 0 // Possible values: 0 - 100, >= 100 means the hack is complete and will be reset upon next check
+ var/obj/machinery/door/hackdoor // The airlock being hacked
+ var/hackprogress = 0 // Possible values: 0 - 100, >= 100 means the hack is complete and will be reset upon next check
var/obj/item/integrated_signaler/signaler // AI's signaller
var/obj/item/instrument/piano_synth/internal_instrument
- var/obj/machinery/newscaster //pAI Newscaster
- var/obj/item/healthanalyzer/hostscan //pAI healthanalyzer
+ var/obj/machinery/newscaster //pAI Newscaster
+ var/obj/item/healthanalyzer/hostscan //pAI healthanalyzer
/// Internal pAI GPS, enabled if pAI downloads GPS software, and then uses it.
var/obj/item/gps/pai/internal_gps = null
@@ -75,7 +75,7 @@
var/can_transmit = TRUE
var/can_receive = TRUE
var/chassis = "repairbot"
- var/list/possible_chassis = list("cat" = TRUE, "mouse" = TRUE, "monkey" = TRUE, "corgi" = FALSE, "fox" = FALSE, "repairbot" = TRUE, "rabbit" = TRUE, "bat" = FALSE, "butterfly" = FALSE, "hawk" = FALSE, "lizard" = FALSE, "duffel" = TRUE) //assoc value is whether it can be picked up.
+ var/list/possible_chassis = list("cat" = TRUE, "mouse" = TRUE, "monkey" = TRUE, "corgi" = FALSE, "fox" = FALSE, "repairbot" = TRUE, "rabbit" = TRUE, "bat" = FALSE, "butterfly" = FALSE, "hawk" = FALSE, "lizard" = FALSE, "duffel" = TRUE) //assoc value is whether it can be picked up.
var/emitterhealth = 20
var/emittermaxhealth = 20
@@ -85,7 +85,7 @@
var/emittersemicd = FALSE
var/overload_ventcrawl = 0
- var/overload_bulletblock = 0 //Why is this a good idea?
+ var/overload_bulletblock = 0 //Why is this a good idea?
var/overload_maxhealth = 0
var/silent = FALSE
var/brightness_power = 5
diff --git a/code/modules/mob/living/silicon/pai/pai_defense.dm b/code/modules/mob/living/silicon/pai/pai_defense.dm
index cfc77011c6b..af6ae269ccd 100644
--- a/code/modules/mob/living/silicon/pai/pai_defense.dm
+++ b/code/modules/mob/living/silicon/pai/pai_defense.dm
@@ -30,7 +30,7 @@
/mob/living/silicon/pai/ex_act(severity, target)
take_holo_damage(severity * 50)
switch(severity)
- if(1) //RIP
+ if(1) //RIP
qdel(card)
qdel(src)
if(2)
diff --git a/code/modules/mob/living/silicon/pai/software.dm b/code/modules/mob/living/silicon/pai/software.dm
index 272f37d4516..3c38a1a5c7d 100644
--- a/code/modules/mob/living/silicon/pai/software.dm
+++ b/code/modules/mob/living/silicon/pai/software.dm
@@ -1,6 +1,6 @@
// TODO:
-// - Potentially roll HUDs and Records into one
-// - Shock collar/lock system for prisoner pAIs?
+// - Potentially roll HUDs and Records into one
+// - Shock collar/lock system for prisoner pAIs?
/mob/living/silicon/pai/var/list/available_software = list(
@@ -36,12 +36,12 @@
if(temp)
left_part = temp
- else if(stat == DEAD) // Show some flavor text if the pAI is dead
+ else if(stat == DEAD) // Show some flavor text if the pAI is dead
left_part = "ÈRrÖR Ða†Ä ÇÖRrÚþ†Ìoñ"
right_part = "Program index hash not found
"
else
- switch(screen) // Determine which interface to show here
+ switch(screen) // Determine which interface to show here
if("main")
left_part = ""
if("directives")
@@ -76,7 +76,7 @@
left_part = softwareHostScan()
- //usr << browse_rsc('windowbak.png') // This has been moved to the mob's Login() proc
+ //usr << browse_rsc('windowbak.png') // This has been moved to the mob's Login() proc
// Declaring a doctype is necessary to enable BYOND's crappy browser's more advanced CSS functionality
@@ -255,7 +255,7 @@
radio.subspace_transmission = TRUE
if("translator")
- if(href_list["toggle"]) //This is permanent.
+ if(href_list["toggle"]) //This is permanent.
grant_all_languages(TRUE, TRUE, TRUE, LANGUAGE_SOFTWARE)
if("doorjack")
@@ -293,7 +293,7 @@
// MENUS
-/mob/living/silicon/pai/proc/softwareMenu() // Populate the right menu
+/mob/living/silicon/pai/proc/softwareMenu() // Populate the right menu
var/dat = ""
dat += "Refresh
"
diff --git a/code/modules/mob/living/silicon/robot/robot.dm b/code/modules/mob/living/silicon/robot/robot.dm
index 36a436bbcbc..7a2066b3866 100644
--- a/code/modules/mob/living/silicon/robot/robot.dm
+++ b/code/modules/mob/living/silicon/robot/robot.dm
@@ -10,7 +10,7 @@
robot_modules_background = new()
robot_modules_background.icon_state = "block"
- robot_modules_background.layer = HUD_LAYER //Objects that appear on screen are on layer ABOVE_HUD_LAYER, UI should be just below it.
+ robot_modules_background.layer = HUD_LAYER //Objects that appear on screen are on layer ABOVE_HUD_LAYER, UI should be just below it.
robot_modules_background.plane = HUD_PLANE
inv1 = new /atom/movable/screen/robot/module1()
@@ -180,7 +180,7 @@
real_name = changed_name
name = real_name
if(!QDELETED(builtInCamera))
- builtInCamera.c_tag = real_name //update the camera name too
+ builtInCamera.c_tag = real_name //update the camera name too
/mob/living/silicon/robot/proc/get_standard_name()
return "[(designation ? "[designation] " : "")][mmi.braintype]-[ident]"
@@ -784,7 +784,7 @@
real_name = name
GLOB.available_ai_shells |= src
if(!QDELETED(builtInCamera))
- builtInCamera.c_tag = real_name //update the camera name too
+ builtInCamera.c_tag = real_name //update the camera name too
diag_hud_set_aishell()
/**
@@ -815,7 +815,7 @@
real_name = "[AI.real_name] [designation] Shell-[ident]"
name = real_name
if(!QDELETED(builtInCamera))
- builtInCamera.c_tag = real_name //update the camera name too
+ builtInCamera.c_tag = real_name //update the camera name too
mainframe = AI
deployed = TRUE
set_connected_ai(mainframe)
@@ -860,7 +860,7 @@
if(radio) //Return radio to normal
radio.recalculateChannels()
if(!QDELETED(builtInCamera))
- builtInCamera.c_tag = real_name //update the camera name too
+ builtInCamera.c_tag = real_name //update the camera name too
diag_hud_set_aishell()
mainframe.diag_hud_set_deployed()
if(mainframe.laws)
diff --git a/code/modules/mob/living/silicon/robot/robot_defense.dm b/code/modules/mob/living/silicon/robot/robot_defense.dm
index f632dfcc94b..f2a05e1c9fa 100644
--- a/code/modules/mob/living/silicon/robot/robot_defense.dm
+++ b/code/modules/mob/living/silicon/robot/robot_defense.dm
@@ -39,7 +39,7 @@ GLOBAL_LIST_INIT(blacklisted_borg_hats, typecacheof(list( //Hats that don't real
to_chat(user, "The wires seem fine, there's no need to fix them.")
return
- if(W.tool_behaviour == TOOL_CROWBAR) // crowbar means open or close the cover
+ if(W.tool_behaviour == TOOL_CROWBAR) // crowbar means open or close the cover
if(opened)
to_chat(user, "You close the cover.")
opened = FALSE
@@ -53,7 +53,7 @@ GLOBAL_LIST_INIT(blacklisted_borg_hats, typecacheof(list( //Hats that don't real
update_icons()
return
- if(istype(W, /obj/item/stock_parts/cell) && opened) // trying to put a cell inside
+ if(istype(W, /obj/item/stock_parts/cell) && opened) // trying to put a cell inside
if(wiresexposed)
to_chat(user, "Close the cover first!")
else if(cell)
@@ -74,13 +74,13 @@ GLOBAL_LIST_INIT(blacklisted_borg_hats, typecacheof(list( //Hats that don't real
to_chat(user, "You can't reach the wiring!")
return
- if(W.tool_behaviour == TOOL_SCREWDRIVER && opened) // wire hacking or radio management
+ if(W.tool_behaviour == TOOL_SCREWDRIVER && opened) // wire hacking or radio management
if(!cell) //haxing
wiresexposed = !wiresexposed
to_chat(user, "The wires have been [wiresexposed ? "exposed" : "unexposed"].")
else //radio
if(shell)
- to_chat(user, "You cannot seem to open the radio compartment!") //Prevent AI radio key theft
+ to_chat(user, "You cannot seem to open the radio compartment!") //Prevent AI radio key theft
else if(radio)
radio.attackby(W,user)//Push it to the radio to let it handle everything
else
@@ -163,7 +163,7 @@ GLOBAL_LIST_INIT(blacklisted_borg_hats, typecacheof(list( //Hats that don't real
to_chat(user, "Unable to locate a radio!")
return
- if (W.GetID()) // trying to unlock the interface with an ID card
+ if (W.GetID()) // trying to unlock the interface with an ID card
if(opened)
to_chat(user, "You must close the cover to swipe an ID card!")
else
diff --git a/code/modules/mob/living/silicon/robot/robot_modules.dm b/code/modules/mob/living/silicon/robot/robot_modules.dm
index 27a43203cf6..a35b3bea94f 100644
--- a/code/modules/mob/living/silicon/robot/robot_modules.dm
+++ b/code/modules/mob/living/silicon/robot/robot_modules.dm
@@ -215,7 +215,7 @@
/obj/item/paint/anycolor,
/obj/item/soap/nanotrasen,
/obj/item/pneumatic_cannon/pie/selfcharge/cyborg,
- /obj/item/razor, //killbait material
+ /obj/item/razor, //killbait material
/obj/item/lipstick/purple,
/obj/item/reagent_containers/spray/waterflower/cyborg,
/obj/item/borg/cyborghug/peacekeeper,
diff --git a/code/modules/mob/living/silicon/silicon.dm b/code/modules/mob/living/silicon/silicon.dm
index 944089a76a4..44380030e07 100644
--- a/code/modules/mob/living/silicon/silicon.dm
+++ b/code/modules/mob/living/silicon/silicon.dm
@@ -43,7 +43,7 @@
var/updating = FALSE //portable camera camerachunk update
var/hack_software = FALSE //Will be able to use hacking actions
- var/interaction_range = 7 //wireless control range
+ var/interaction_range = 7 //wireless control range
var/obj/item/pda/ai/aiPDA
/mob/living/silicon/Initialize()
@@ -371,7 +371,7 @@
Autochan += " ([radio.frequency])"
else if(Autochan == "None") //Prevents use of the radio for automatic annoucements.
radiomod = ""
- else //For department channels, if any, given by the internal radio.
+ else //For department channels, if any, given by the internal radio.
for(var/key in GLOB.department_radio_keys)
if(GLOB.department_radio_keys[key] == Autochan)
radiomod = ":" + key
diff --git a/code/modules/mob/living/silicon/silicon_defense.dm b/code/modules/mob/living/silicon/silicon_defense.dm
index 52db1f7c58b..7aa3d01909d 100644
--- a/code/modules/mob/living/silicon/silicon_defense.dm
+++ b/code/modules/mob/living/silicon/silicon_defense.dm
@@ -86,7 +86,7 @@
if(buckled_mobs)
for(var/mob/living/M in buckled_mobs)
unbuckle_mob(M)
- M.electrocute_act(shock_damage/100, source, siemens_coeff, flags) //Hard metal shell conducts!
+ M.electrocute_act(shock_damage/100, source, siemens_coeff, flags) //Hard metal shell conducts!
return 0 //So borgs they don't die trying to fix wiring
/mob/living/silicon/emp_act(severity)
diff --git a/code/modules/mob/living/simple_animal/bot/SuperBeepsky.dm b/code/modules/mob/living/simple_animal/bot/SuperBeepsky.dm
index c471d988413..a56015be5d2 100644
--- a/code/modules/mob/living/simple_animal/bot/SuperBeepsky.dm
+++ b/code/modules/mob/living/simple_animal/bot/SuperBeepsky.dm
@@ -59,13 +59,13 @@
if(!on)
return
switch(mode)
- if(BOT_IDLE) // idle
+ if(BOT_IDLE) // idle
update_icon()
walk_to(src,0)
- look_for_perp() // see if any criminals are in range
- if(!mode && auto_patrol) // still idle, and set to patrol
- mode = BOT_START_PATROL // switch to patrol mode
- if(BOT_HUNT) // hunting for perp
+ look_for_perp() // see if any criminals are in range
+ if(!mode && auto_patrol) // still idle, and set to patrol
+ mode = BOT_START_PATROL // switch to patrol mode
+ if(BOT_HUNT) // hunting for perp
update_icon()
playsound(src,'sound/effects/beepskyspinsabre.ogg',100,TRUE,-1)
// general beepsky doesn't give up so easily, jedi scum
@@ -73,13 +73,13 @@
walk_to(src,0)
back_to_idle()
return
- if(target) // make sure target exists
- if(Adjacent(target) && isturf(target.loc)) // if right next to perp
+ if(target) // make sure target exists
+ if(Adjacent(target) && isturf(target.loc)) // if right next to perp
target_lastloc = target.loc //stun_attack() can clear the target if they're dead, so this needs to be set first
stun_attack(target)
set_anchored(TRUE)
return
- else // not next to perp
+ else // not next to perp
var/turf/olddist = get_dist(src, target)
walk_to(src, target,1,4)
if((get_dist(src, target)) >= (olddist))
diff --git a/code/modules/mob/living/simple_animal/bot/bot.dm b/code/modules/mob/living/simple_animal/bot/bot.dm
index c3d4b82bbaa..f920ee86ec6 100644
--- a/code/modules/mob/living/simple_animal/bot/bot.dm
+++ b/code/modules/mob/living/simple_animal/bot/bot.dm
@@ -45,8 +45,8 @@
var/open = FALSE//Maint panel
var/locked = TRUE
var/hacked = FALSE //Used to differentiate between being hacked by silicons and emagged by humans.
- var/text_hack = "" //Custom text returned to a silicon upon hacking a bot.
- var/text_dehack = "" //Text shown when resetting a bots hacked status to normal.
+ var/text_hack = "" //Custom text returned to a silicon upon hacking a bot.
+ var/text_dehack = "" //Text shown when resetting a bots hacked status to normal.
var/text_dehack_fail = "" //Shown when a silicon tries to reset a bot emagged with the emag item, which cannot be reset.
var/declare_message = "" //What the bot will display to the HUD user.
var/frustration = 0 //Used by some bots for tracking failures to reach their target.
@@ -63,18 +63,18 @@
var/radio_key = null //which channels can the bot listen to
var/radio_channel = RADIO_CHANNEL_COMMON //The bot's default radio channel
var/auto_patrol = 0// set to make bot automatically patrol
- var/turf/patrol_target // this is turf to navigate to (location of beacon)
- var/turf/summon_target // The turf of a user summoning a bot.
- var/new_destination // pending new destination (waiting for beacon response)
- var/destination // destination description tag
- var/next_destination // the next destination in the patrol route
- var/shuffle = FALSE // If we should shuffle our adjacency checking
+ var/turf/patrol_target // this is turf to navigate to (location of beacon)
+ var/turf/summon_target // The turf of a user summoning a bot.
+ var/new_destination // pending new destination (waiting for beacon response)
+ var/destination // destination description tag
+ var/next_destination // the next destination in the patrol route
+ var/shuffle = FALSE // If we should shuffle our adjacency checking
- var/blockcount = 0 //number of times retried a blocked path
- var/awaiting_beacon = 0 // count of pticks awaiting a beacon response
+ var/blockcount = 0 //number of times retried a blocked path
+ var/awaiting_beacon = 0 // count of pticks awaiting a beacon response
- var/nearest_beacon // the nearest beacon's tag
- var/turf/nearest_beacon_loc // the nearest beacon's location
+ var/nearest_beacon // the nearest beacon's tag
+ var/turf/nearest_beacon_loc // the nearest beacon's location
var/beacon_freq = FREQ_NAV_BEACON
var/model = "" //The type of bot it is.
@@ -282,10 +282,10 @@
break
switch(mode) //High-priority overrides are processed first. Bots can do nothing else while under direct command.
- if(BOT_RESPONDING) //Called by the AI.
+ if(BOT_RESPONDING) //Called by the AI.
call_mode()
return
- if(BOT_SUMMON) //Called by PDA
+ if(BOT_SUMMON) //Called by PDA
bot_summon()
return
return TRUE //Successful completion. Used to prevent child process() continuing if this one is ended early.
@@ -456,13 +456,13 @@ Pass the desired type path itself, declaring a temporary var beforehand is not r
if(!T)
return
var/list/adjacent = T.GetAtmosAdjacentTurfs(1)
- if(shuffle) //If we were on the same tile as another bot, let's randomize our choices so we dont both go the same way
+ if(shuffle) //If we were on the same tile as another bot, let's randomize our choices so we dont both go the same way
adjacent = shuffle(adjacent)
shuffle = FALSE
for(var/scan in adjacent)//Let's see if there's something right next to us first!
- if(check_bot(scan)) //Is there another bot there? Then let's just skip it
+ if(check_bot(scan)) //Is there another bot there? Then let's just skip it
continue
- if(isturf(scan_type)) //If we're lookeing for a turf we can just run the checks directly!
+ if(isturf(scan_type)) //If we're lookeing for a turf we can just run the checks directly!
var/final_result = checkscan(scan,scan_type,old_target)
if(final_result)
return final_result
@@ -493,8 +493,8 @@ Pass the desired type path itself, declaring a temporary var beforehand is not r
var/turf/T = get_turf(targ)
if(T)
for(var/C in T.contents)
- if(istype(C,type) && (C != src)) //Is there another bot there already? If so, let's skip it so we dont all atack on top of eachother.
- return TRUE //Let's abort if we find a bot so we dont have to keep rechecking
+ if(istype(C,type) && (C != src)) //Is there another bot there already? If so, let's skip it so we dont all atack on top of eachother.
+ return TRUE //Let's abort if we find a bot so we dont have to keep rechecking
//When the scan finds a target, run bot specific processing to select it for the next step. Empty by default.
/mob/living/simple_animal/bot/proc/process_scan(scan_target)
@@ -640,14 +640,14 @@ Pass a positive integer as an argument to override a bot's default speed.
if(patrol_target) // has patrol target
INVOKE_ASYNC(src, .proc/target_patrol)
- else // no patrol target, so need a new one
+ else // no patrol target, so need a new one
speak("Engaging patrol mode.")
find_patrol_target()
tries++
return
/mob/living/simple_animal/bot/proc/target_patrol()
- calc_path() // Find a route to it
+ calc_path() // Find a route to it
if(!path.len)
patrol_target = null
return
@@ -656,26 +656,26 @@ Pass a positive integer as an argument to override a bot's default speed.
/mob/living/simple_animal/bot/proc/patrol_step()
- if(client) // In use by player, don't actually move.
+ if(client) // In use by player, don't actually move.
return
- if(loc == patrol_target) // reached target
+ if(loc == patrol_target) // reached target
//Find the next beacon matching the target.
if(!get_next_patrol_target())
find_patrol_target() //If it fails, look for the nearest one instead.
return
- else if(path.len > 0 && patrol_target) // valid path
+ else if(path.len > 0 && patrol_target) // valid path
if(path[1] == loc)
increment_path()
return
- var/moved = bot_move(patrol_target)//step_towards(src, next) // attempt to move
+ var/moved = bot_move(patrol_target)//step_towards(src, next) // attempt to move
if(!moved) //Couldn't proceed the next step of the path BOT_STEP_MAX_RETRIES times
addtimer(CALLBACK(src, .proc/patrol_step_not_moved), 2)
- else // no path, so calculate new one
+ else // no path, so calculate new one
mode = BOT_START_PATROL
/mob/living/simple_animal/bot/proc/patrol_step_not_moved()
@@ -732,7 +732,7 @@ Pass a positive integer as an argument to override a bot's default speed.
// process control input
switch(command)
if("patroloff")
- bot_reset() //HOLD IT!! //OBJECTION!!
+ bot_reset() //HOLD IT!! //OBJECTION!!
auto_patrol = FALSE
if("patrolon")
@@ -794,23 +794,23 @@ Pass a positive integer as an argument to override a bot's default speed.
/mob/living/simple_animal/bot/proc/summon_step()
- if(client) // In use by player, don't actually move.
+ if(client) // In use by player, don't actually move.
return
- if(loc == summon_target) // Arrived to summon location.
+ if(loc == summon_target) // Arrived to summon location.
bot_reset()
return
- else if(path.len > 0 && summon_target) //Proper path acquired!
+ else if(path.len > 0 && summon_target) //Proper path acquired!
if(path[1] == loc)
increment_path()
return
- var/moved = bot_move(summon_target, 3) // Move attempt
+ var/moved = bot_move(summon_target, 3) // Move attempt
if(!moved)
addtimer(CALLBACK(src, .proc/summon_step_not_moved), 2)
- else // no path, so calculate new one
+ else // no path, so calculate new one
calc_summon_path()
/mob/living/simple_animal/bot/proc/summon_step_not_moved()
diff --git a/code/modules/mob/living/simple_animal/bot/cleanbot.dm b/code/modules/mob/living/simple_animal/bot/cleanbot.dm
index 539509a116b..ecc0f740960 100644
--- a/code/modules/mob/living/simple_animal/bot/cleanbot.dm
+++ b/code/modules/mob/living/simple_animal/bot/cleanbot.dm
@@ -253,14 +253,14 @@
return
if(loc == get_turf(target))
- if(!(check_bot(target) && prob(50))) //Target is not defined at the parent. 50% chance to still try and clean so we dont get stuck on the last blood drop.
- UnarmedAttack(target) //Rather than check at every step of the way, let's check before we do an action, so we can rescan before the other bot.
+ if(!(check_bot(target) && prob(50))) //Target is not defined at the parent. 50% chance to still try and clean so we dont get stuck on the last blood drop.
+ UnarmedAttack(target) //Rather than check at every step of the way, let's check before we do an action, so we can rescan before the other bot.
if(QDELETED(target)) //We done here.
target = null
mode = BOT_IDLE
return
else
- shuffle = TRUE //Shuffle the list the next time we scan so we dont both go the same way.
+ shuffle = TRUE //Shuffle the list the next time we scan so we dont both go the same way.
path = list()
if(!path || path.len == 0) //No path, need a new one
diff --git a/code/modules/mob/living/simple_animal/bot/floorbot.dm b/code/modules/mob/living/simple_animal/bot/floorbot.dm
index faed479a3e8..faa9f306522 100644
--- a/code/modules/mob/living/simple_animal/bot/floorbot.dm
+++ b/code/modules/mob/living/simple_animal/bot/floorbot.dm
@@ -31,13 +31,13 @@
var/toolbox = /obj/item/storage/toolbox/mechanical
var/toolbox_color = ""
- #define HULL_BREACH 1
- #define LINE_SPACE_MODE 2
- #define FIX_TILE 3
- #define AUTO_TILE 4
- #define PLACE_TILE 5
- #define REPLACE_TILE 6
- #define TILE_EMAG 7
+ #define HULL_BREACH 1
+ #define LINE_SPACE_MODE 2
+ #define FIX_TILE 3
+ #define AUTO_TILE 4
+ #define PLACE_TILE 5
+ #define REPLACE_TILE 6
+ #define TILE_EMAG 7
/mob/living/simple_animal/bot/floorbot/Initialize(mapload, new_toolbox_color)
. = ..()
@@ -242,9 +242,9 @@
if(target)
if(loc == target || loc == get_turf(target))
- if(check_bot(target)) //Target is not defined at the parent
+ if(check_bot(target)) //Target is not defined at the parent
shuffle = TRUE
- if(prob(50)) //50% chance to still try to repair so we dont end up with 2 floorbots failing to fix the last breach
+ if(prob(50)) //50% chance to still try to repair so we dont end up with 2 floorbots failing to fix the last breach
target = null
path = list()
return
@@ -317,7 +317,7 @@
F = scan_target
if(isfloorturf(F) && !isplatingturf(F)) //The floor must already have a tile.
result = F
- if(FIX_TILE) //Selects only damaged floors.
+ if(FIX_TILE) //Selects only damaged floors.
F = scan_target
if(istype(F) && (F.broken || F.burnt))
result = F
diff --git a/code/modules/mob/living/simple_animal/bot/honkbot.dm b/code/modules/mob/living/simple_animal/bot/honkbot.dm
index 5b0bcf652a8..e3f97f978b5 100644
--- a/code/modules/mob/living/simple_animal/bot/honkbot.dm
+++ b/code/modules/mob/living/simple_animal/bot/honkbot.dm
@@ -26,8 +26,8 @@
var/cooldowntimehorn = 10
var/mob/living/carbon/target
var/oldtarget_name
- var/target_lastloc = FALSE //Loc of target when arrested.
- var/last_found = FALSE //There's a delay
+ var/target_lastloc = FALSE //Loc of target when arrested.
+ var/last_found = FALSE //There's a delay
var/threatlevel = FALSE
var/declare_arrests = FALSE // speak, you shall not, unless to Honk
var/idcheck = TRUE
@@ -94,7 +94,7 @@ Maintenance panel panel is [open ? "opened" : "closed"]"},
dat += text({"
Auto Patrol: []"},
"[auto_patrol ? "On" : "Off"]" )
- return dat
+ return dat
/mob/living/simple_animal/bot/honkbot/proc/judgement_criteria()
var/final = NONE
@@ -228,7 +228,7 @@ Maintenance panel panel is [open ? "opened" : "closed"]"},
switch(mode)
- if(BOT_IDLE) // idle
+ if(BOT_IDLE) // idle
walk_to(src,0)
look_for_perp()
@@ -243,7 +243,7 @@ Maintenance panel panel is [open ? "opened" : "closed"]"},
back_to_idle()
return
- if(target) // make sure target exists
+ if(target) // make sure target exists
if(Adjacent(target) && isturf(target.loc))
if(threatlevel <= 4)
@@ -256,7 +256,7 @@ Maintenance panel panel is [open ? "opened" : "closed"]"},
target_lastloc = target.loc
return
- else // not next to perp
+ else // not next to perp
var/turf/olddist = get_dist(src, target)
walk_to(src, target,1,4)
if((get_dist(src, target)) >= (olddist))
diff --git a/code/modules/mob/living/simple_animal/bot/hygienebot.dm b/code/modules/mob/living/simple_animal/bot/hygienebot.dm
index 38a3ed64da8..4212fcf9476 100644
--- a/code/modules/mob/living/simple_animal/bot/hygienebot.dm
+++ b/code/modules/mob/living/simple_animal/bot/hygienebot.dm
@@ -107,13 +107,13 @@
tile.MakeSlippery(TURF_WET_WATER, min_wet_time = 10 SECONDS, wet_time_to_add = 5 SECONDS)
switch(mode)
- if(BOT_IDLE) // idle
+ if(BOT_IDLE) // idle
walk_to(src,0)
- look_for_lowhygiene() // see if any disgusting fucks are in range
- if(!mode && auto_patrol) // still idle, and set to patrol
- mode = BOT_START_PATROL // switch to patrol mode
+ look_for_lowhygiene() // see if any disgusting fucks are in range
+ if(!mode && auto_patrol) // still idle, and set to patrol
+ mode = BOT_START_PATROL // switch to patrol mode
- if(BOT_HUNT) // hunting for stinkman
+ if(BOT_HUNT) // hunting for stinkman
if(emagged) //lol fuck em up
currentspeed = 3.5
start_washing()
@@ -224,7 +224,7 @@ Maintenance panel is [open ? "opened" : "closed"]"}
if(!locked || issilicon(user) || isAdminGhostAI(user))
dat += {"
Auto Patrol: ["[auto_patrol ? "On" : "Off"]"]"}
- return dat.Join("")
+ return dat.Join("")
/mob/living/simple_animal/bot/hygienebot/proc/check_purity(mob/living/L)
if((emagged == 2) && L.stat != DEAD)
diff --git a/code/modules/mob/living/simple_animal/bot/medbot.dm b/code/modules/mob/living/simple_animal/bot/medbot.dm
index f730d58baa6..d321fb7522d 100644
--- a/code/modules/mob/living/simple_animal/bot/medbot.dm
+++ b/code/modules/mob/living/simple_animal/bot/medbot.dm
@@ -1,13 +1,13 @@
//MEDBOT
//MEDBOT PATHFINDING
//MEDBOT ASSEMBLY
-#define MEDBOT_PANIC_NONE 0
-#define MEDBOT_PANIC_LOW 15
-#define MEDBOT_PANIC_MED 35
-#define MEDBOT_PANIC_HIGH 55
-#define MEDBOT_PANIC_FUCK 70
-#define MEDBOT_PANIC_ENDING 90
-#define MEDBOT_PANIC_END 100
+#define MEDBOT_PANIC_NONE 0
+#define MEDBOT_PANIC_LOW 15
+#define MEDBOT_PANIC_MED 35
+#define MEDBOT_PANIC_HIGH 55
+#define MEDBOT_PANIC_FUCK 70
+#define MEDBOT_PANIC_ENDING 90
+#define MEDBOT_PANIC_END 100
/mob/living/simple_animal/bot/medbot
name = "\improper Medibot"
@@ -405,7 +405,7 @@
if(stationary_mode && !Adjacent(C)) //YOU come to ME, BRO
return FALSE
if(C.stat == DEAD || (HAS_TRAIT(C, TRAIT_FAKEDEATH)))
- return FALSE //welp too late for them!
+ return FALSE //welp too late for them!
if(!(loc == C.loc) && !(isturf(C.loc) && isturf(loc)))
return FALSE
diff --git a/code/modules/mob/living/simple_animal/bot/mulebot.dm b/code/modules/mob/living/simple_animal/bot/mulebot.dm
index b595e5cf049..e9e516af886 100644
--- a/code/modules/mob/living/simple_animal/bot/mulebot.dm
+++ b/code/modules/mob/living/simple_animal/bot/mulebot.dm
@@ -41,14 +41,14 @@
var/base_icon = "mulebot" /// icon_state to use in update_icon_state
var/atom/movable/load /// what we're transporting
var/mob/living/passenger /// who's riding us
- var/turf/target /// this is turf to navigate to (location of beacon)
- var/loaddir = 0 /// this the direction to unload onto/load from
- var/home_destination = "" /// tag of home delivery beacon
+ var/turf/target /// this is turf to navigate to (location of beacon)
+ var/loaddir = 0 /// this the direction to unload onto/load from
+ var/home_destination = "" /// tag of home delivery beacon
- var/reached_target = TRUE ///true if already reached the target
+ var/reached_target = TRUE ///true if already reached the target
- var/auto_return = TRUE /// true if auto return to home beacon after unload
- var/auto_pickup = TRUE /// true if auto-pickup at beacon
+ var/auto_return = TRUE /// true if auto return to home beacon after unload
+ var/auto_pickup = TRUE /// true if auto-pickup at beacon
var/report_delivery = TRUE /// true if bot will announce an arrival to a location.
var/obj/item/stock_parts/cell/cell /// Internal Powercell
@@ -433,7 +433,7 @@
if(!istype(crate))
if(!wires.is_cut(WIRE_LOADCHECK))
buzz(SIGH)
- return // if not hacked, only allow crates to be loaded
+ return // if not hacked, only allow crates to be loaded
crate = null
if(crate || isobj(AM))
@@ -578,8 +578,8 @@
return
if(isturf(next))
var/oldloc = loc
- var/moved = step_towards(src, next) // attempt to move
- if(moved && oldloc!=loc) // successful move
+ var/moved = step_towards(src, next) // attempt to move
+ if(moved && oldloc!=loc) // successful move
blockcount = 0
path -= loc
@@ -588,14 +588,14 @@
else
mode = BOT_DELIVER
- else // failed to move
+ else // failed to move
blockcount++
mode = BOT_BLOCKED
if(blockcount == 3)
buzz(ANNOYED)
- if(blockcount > 10) // attempt 10 times before recomputing
+ if(blockcount > 10) // attempt 10 times before recomputing
// find new path excluding blocked turf
buzz(SIGH)
mode = BOT_WAIT_FOR_NAV
@@ -611,7 +611,7 @@
mode = BOT_NAV
return
- if(BOT_NAV) // calculate new path
+ if(BOT_NAV) // calculate new path
mode = BOT_WAIT_FOR_NAV
INVOKE_ASYNC(src, .proc/process_nav)
@@ -682,7 +682,7 @@
calling_ai = null
radio_channel = RADIO_CHANNEL_AI_PRIVATE //Report on AI Private instead if the AI is controlling us.
- if(load) // if loaded, unload at target
+ if(load) // if loaded, unload at target
if(report_delivery)
speak("Destination [destination] reached. Unloading [load].",radio_channel)
unload(loaddir)
@@ -695,7 +695,7 @@
if(!A.anchored)
AM = A
break
- else // otherwise, look for crates only
+ else // otherwise, look for crates only
AM = locate(/obj/structure/closet/crate) in get_step(loc,loaddir)
if(AM?.Adjacent(src))
load(AM)
@@ -708,7 +708,7 @@
start_home()
mode = BOT_BLOCKED
else
- bot_reset() // otherwise go idle
+ bot_reset() // otherwise go idle
/mob/living/simple_animal/bot/mulebot/MobBump(mob/M) // called when the bot bumps into a mob
@@ -760,11 +760,11 @@
return
for(var/obj/machinery/navbeacon/NB in GLOB.deliverybeacons)
- if(NB.location == new_destination) // if the beacon location matches the set destination
+ if(NB.location == new_destination) // if the beacon location matches the set destination
// the we will navigate there
destination = new_destination
target = NB.loc
- var/direction = NB.dir // this will be the load/unload dir
+ var/direction = NB.dir // this will be the load/unload dir
if(direction)
loaddir = text2num(direction)
else
@@ -851,7 +851,7 @@
else if(!wires.is_cut(WIRE_LOADCHECK))
buzz(SIGH)
- return // if not hacked, only allow ghosts to be loaded
+ return // if not hacked, only allow ghosts to be loaded
else if(isobj(AM))
var/obj/O = AM
diff --git a/code/modules/mob/living/simple_animal/bot/secbot.dm b/code/modules/mob/living/simple_animal/bot/secbot.dm
index 147be489bcc..5a00b0990c9 100644
--- a/code/modules/mob/living/simple_animal/bot/secbot.dm
+++ b/code/modules/mob/living/simple_animal/bot/secbot.dm
@@ -148,7 +148,7 @@ Auto Patrol: []"},
"[declare_arrests ? "Yes" : "No"]",
"[auto_patrol ? "On" : "Off"]" )
- return dat
+ return dat
/mob/living/simple_animal/bot/secbot/Topic(href, href_list)
if(..())
@@ -314,14 +314,14 @@ Auto Patrol: []"},
switch(mode)
- if(BOT_IDLE) // idle
+ if(BOT_IDLE) // idle
walk_to(src,0)
- look_for_perp() // see if any criminals are in range
- if(!mode && auto_patrol) // still idle, and set to patrol
- mode = BOT_START_PATROL // switch to patrol mode
+ look_for_perp() // see if any criminals are in range
+ if(!mode && auto_patrol) // still idle, and set to patrol
+ mode = BOT_START_PATROL // switch to patrol mode
- if(BOT_HUNT) // hunting for perp
+ if(BOT_HUNT) // hunting for perp
// if can't reach perp for long enough, go idle
if(frustration >= 8)
@@ -329,8 +329,8 @@ Auto Patrol: []"},
back_to_idle()
return
- if(target) // make sure target exists
- if(Adjacent(target) && isturf(target.loc)) // if right next to perp
+ if(target) // make sure target exists
+ if(Adjacent(target) && isturf(target.loc)) // if right next to perp
if(!check_nap_violations())
stun_attack(target, TRUE)
else
@@ -342,7 +342,7 @@ Auto Patrol: []"},
set_anchored(TRUE)
return
- else // not next to perp
+ else // not next to perp
var/turf/olddist = get_dist(src, target)
walk_to(src, target,1,4)
if((get_dist(src, target)) >= (olddist))
@@ -352,7 +352,7 @@ Auto Patrol: []"},
else
back_to_idle()
- if(BOT_PREP_ARREST) // preparing to arrest target
+ if(BOT_PREP_ARREST) // preparing to arrest target
// see if he got away. If he's no no longer adjacent or inside a closet or about to get up, we hunt again.
if( !Adjacent(target) || !isturf(target.loc) || (target.AmountParalyzed() < 40 && target.staminaloss < STAMINA_THRESHOLD_SOFTCRIT)) //SKYRAT EDIT CHANGE: if( !Adjacent(target) || !isturf(target.loc) || target.AmountParalyzed() < 40)
diff --git a/code/modules/mob/living/simple_animal/constructs.dm b/code/modules/mob/living/simple_animal/constructs.dm
index c5c9f4eca73..a1ddc7722d0 100644
--- a/code/modules/mob/living/simple_animal/constructs.dm
+++ b/code/modules/mob/living/simple_animal/constructs.dm
@@ -175,7 +175,7 @@
P.yo = new_y - curloc.y
P.xo = new_x - curloc.x
var/new_angle_s = P.Angle + rand(120,240)
- while(new_angle_s > 180) // Translate to regular projectile degrees
+ while(new_angle_s > 180) // Translate to regular projectile degrees
new_angle_s -= 360
P.setAngle(new_angle_s)
@@ -391,7 +391,7 @@
if(iscarbon(target))
var/mob/living/carbon/C = target
if(HAS_TRAIT(C, TRAIT_NODISMEMBER))
- return ..() //ATTACK!
+ return ..() //ATTACK!
var/list/parts = list()
var/undismembermerable_limbs = 0
for(var/X in C.bodyparts)
diff --git a/code/modules/mob/living/simple_animal/friendly/crab.dm b/code/modules/mob/living/simple_animal/friendly/crab.dm
index 33a3868c7f3..a83a8b1bb57 100644
--- a/code/modules/mob/living/simple_animal/friendly/crab.dm
+++ b/code/modules/mob/living/simple_animal/friendly/crab.dm
@@ -32,7 +32,7 @@
..()
//CRAB movement
if(!ckey && !stat)
- if(isturf(loc) && !resting && !buckled) //This is so it only moves if it's not inside a closet, gentics machine, etc.
+ if(isturf(loc) && !resting && !buckled) //This is so it only moves if it's not inside a closet, gentics machine, etc.
turns_since_move++
if(turns_since_move >= turns_per_move)
var/east_vs_west = pick(4,8)
diff --git a/code/modules/mob/living/simple_animal/friendly/dog.dm b/code/modules/mob/living/simple_animal/friendly/dog.dm
index 9853b1ef980..0c38f56c5e0 100644
--- a/code/modules/mob/living/simple_animal/friendly/dog.dm
+++ b/code/modules/mob/living/simple_animal/friendly/dog.dm
@@ -54,7 +54,7 @@
sleep(3)
step_to(src,movement_target,1)
- if(movement_target) //Not redundant due to sleeps, Item can be gone in 6 decisecomds
+ if(movement_target) //Not redundant due to sleeps, Item can be gone in 6 decisecomds
var/turf/T = get_turf(movement_target)
if(!T)
return
@@ -100,7 +100,7 @@
var/obj/item/inventory_head
var/obj/item/inventory_back
var/shaved = FALSE
- var/nofur = FALSE //Corgis that have risen past the material plane of existence.
+ var/nofur = FALSE //Corgis that have risen past the material plane of existence.
/mob/living/simple_animal/pet/dog/corgi/add_cell_sample()
AddElement(/datum/element/swabable, CELL_LINE_TABLE_CORGI, CELL_VIRUS_TABLE_GENERIC_MOB, 1, 5)
@@ -413,7 +413,7 @@
//IAN! SQUEEEEEEEEE~
/mob/living/simple_animal/pet/dog/corgi/ian
name = "Ian"
- real_name = "Ian" //Intended to hold the name without altering it.
+ real_name = "Ian" //Intended to hold the name without altering it.
gender = MALE
desc = "It's the HoP's beloved corgi."
response_help_continuous = "pets"
@@ -462,8 +462,8 @@
/mob/living/simple_animal/pet/dog/corgi/ian/proc/Read_Memory()
if(fexists("data/npc_saves/Ian.sav")) //legacy compatability to convert old format to new
var/savefile/S = new /savefile("data/npc_saves/Ian.sav")
- S["age"] >> age
- S["record_age"] >> record_age
+ S["age"] >> age
+ S["record_age"] >> record_age
S["saved_head"] >> saved_head
fdel("data/npc_saves/Ian.sav")
else
@@ -612,7 +612,7 @@
desc = "It's the HoP's beloved corgi puppy."
-/mob/living/simple_animal/pet/dog/corgi/puppy/void //Tribute to the corgis born in nullspace
+/mob/living/simple_animal/pet/dog/corgi/puppy/void //Tribute to the corgis born in nullspace
name = "\improper void puppy"
real_name = "voidy"
desc = "A corgi puppy that has been infused with deep space energy. It's staring back..."
@@ -626,7 +626,7 @@
held_state = "void_puppy"
/mob/living/simple_animal/pet/dog/corgi/puppy/void/Process_Spacemove(movement_dir = 0)
- return 1 //Void puppies can navigate space.
+ return 1 //Void puppies can navigate space.
//LISA! SQUEEEEEEEEE~
diff --git a/code/modules/mob/living/simple_animal/friendly/drone/_drone.dm b/code/modules/mob/living/simple_animal/friendly/drone/_drone.dm
index ec3cc37e826..b70a21eccc9 100644
--- a/code/modules/mob/living/simple_animal/friendly/drone/_drone.dm
+++ b/code/modules/mob/living/simple_animal/friendly/drone/_drone.dm
@@ -9,13 +9,13 @@
#define DRONE_NET_DISCONNECT "DRONE NETWORK: [name] is not responding."
/// Maintenance Drone icon_state (multiple colors)
-#define MAINTDRONE "drone_maint"
+#define MAINTDRONE "drone_maint"
/// Repair Drone icon_state
-#define REPAIRDRONE "drone_repair"
+#define REPAIRDRONE "drone_repair"
/// Scout Drone icon_state
-#define SCOUTDRONE "drone_scout"
+#define SCOUTDRONE "drone_scout"
/// Clockwork Drone icon_state
-#define CLOCKDRONE "drone_clock"
+#define CLOCKDRONE "drone_clock"
/// [MAINTDRONE] hacked icon_state
#define MAINTDRONE_HACKED "drone_maint_red"
diff --git a/code/modules/mob/living/simple_animal/hostile/bees.dm b/code/modules/mob/living/simple_animal/hostile/bees.dm
index 6e7d1c7ab11..df0a4c19391 100644
--- a/code/modules/mob/living/simple_animal/hostile/bees.dm
+++ b/code/modules/mob/living/simple_animal/hostile/bees.dm
@@ -1,14 +1,14 @@
-#define BEE_IDLE_ROAMING 70 //The value of idle at which a bee in a beebox will try to wander
-#define BEE_IDLE_GOHOME 0 //The value of idle at which a bee will try to go home
-#define BEE_PROB_GOHOME 35 //Probability to go home when idle is below BEE_IDLE_GOHOME
-#define BEE_PROB_GOROAM 5 //Probability to go roaming when idle is above BEE_IDLE_ROAMING
-#define BEE_TRAY_RECENT_VISIT 200 //How long in deciseconds until a tray can be visited by a bee again
-#define BEE_DEFAULT_COLOUR "#e5e500" //the colour we make the stripes of the bee if our reagent has no colour (or we have no reagent)
+#define BEE_IDLE_ROAMING 70 //The value of idle at which a bee in a beebox will try to wander
+#define BEE_IDLE_GOHOME 0 //The value of idle at which a bee will try to go home
+#define BEE_PROB_GOHOME 35 //Probability to go home when idle is below BEE_IDLE_GOHOME
+#define BEE_PROB_GOROAM 5 //Probability to go roaming when idle is above BEE_IDLE_ROAMING
+#define BEE_TRAY_RECENT_VISIT 200 //How long in deciseconds until a tray can be visited by a bee again
+#define BEE_DEFAULT_COLOUR "#e5e500" //the colour we make the stripes of the bee if our reagent has no colour (or we have no reagent)
-#define BEE_POLLINATE_YIELD_CHANCE 33
-#define BEE_POLLINATE_PEST_CHANCE 33
-#define BEE_POLLINATE_POTENCY_CHANCE 50
+#define BEE_POLLINATE_YIELD_CHANCE 33
+#define BEE_POLLINATE_PEST_CHANCE 33
+#define BEE_POLLINATE_POTENCY_CHANCE 50
/mob/living/simple_animal/hostile/poison/bees
name = "bee"
diff --git a/code/modules/mob/living/simple_animal/hostile/hostile.dm b/code/modules/mob/living/simple_animal/hostile/hostile.dm
index 390f3c5f85e..693751aaf37 100644
--- a/code/modules/mob/living/simple_animal/hostile/hostile.dm
+++ b/code/modules/mob/living/simple_animal/hostile/hostile.dm
@@ -10,19 +10,19 @@
var/dodging = FALSE
var/approaching_target = FALSE //We should dodge now
- var/in_melee = FALSE //We should sidestep now
+ var/in_melee = FALSE //We should sidestep now
var/dodge_prob = 30
var/sidestep_per_cycle = 1 //How many sidesteps per npcpool cycle when in melee
- var/projectiletype //set ONLY it and NULLIFY casingtype var, if we have ONLY projectile
+ var/projectiletype //set ONLY it and NULLIFY casingtype var, if we have ONLY projectile
var/projectilesound
- var/casingtype //set ONLY it and NULLIFY projectiletype, if we have projectile IN CASING
+ var/casingtype //set ONLY it and NULLIFY projectiletype, if we have projectile IN CASING
var/move_to_delay = 3 //delay for the automated movement.
var/list/friends = list()
var/list/emote_taunt = list()
var/taunt_chance = 0
- var/rapid_melee = 1 //Number of melee attacks between each npc pool tick. Spread evenly.
+ var/rapid_melee = 1 //Number of melee attacks between each npc pool tick. Spread evenly.
var/melee_queue_distance = 4 //If target is close enough start preparing to hit them if we have rapid_melee enabled
var/ranged_message = "fires" //Fluff text for ranged mobs
@@ -93,8 +93,8 @@
if(!QDELETED(target) && !targets_from.Adjacent(target))
DestroyPathToTarget()
if(!MoveToTarget(possible_targets)) //if we lose our target
- if(AIShouldSleep(possible_targets)) // we try to acquire a new one
- toggle_ai(AI_IDLE) // otherwise we go idle
+ if(AIShouldSleep(possible_targets)) // we try to acquire a new one
+ toggle_ai(AI_IDLE) // otherwise we go idle
return 1
/mob/living/simple_animal/hostile/handle_automated_movement()
diff --git a/code/modules/mob/living/simple_animal/hostile/mecha_pilot.dm b/code/modules/mob/living/simple_animal/hostile/mecha_pilot.dm
index d6bf03ea700..4d3ecf0b2ef 100644
--- a/code/modules/mob/living/simple_animal/hostile/mecha_pilot.dm
+++ b/code/modules/mob/living/simple_animal/hostile/mecha_pilot.dm
@@ -219,7 +219,7 @@
exit_mecha(mecha)
return
- //Smoke if there's too many targets - Smoke Power
+ //Smoke if there's too many targets - Smoke Power
if(threat_count >= threat_use_mecha_smoke && prob(smoke_chance))
if(LAZYACCESSASSOC(mecha.occupant_actions, src, /datum/action/vehicle/sealed/mecha/mech_smoke) && !mecha.smoke_charges)
var/datum/action/action = mecha.occupant_actions[src][/datum/action/vehicle/sealed/mecha/mech_smoke]
@@ -263,7 +263,7 @@
if(ismecha(the_target))
var/obj/vehicle/sealed/mecha/M = the_target
if(mecha)
- if(M == mecha) //Dont kill yourself
+ if(M == mecha) //Dont kill yourself
return FALSE
else //we're not in a mecha, so we check if we can steal it instead.
if(is_valid_mecha(M))
diff --git a/code/modules/mob/living/simple_animal/hostile/megafauna/megafauna.dm b/code/modules/mob/living/simple_animal/hostile/megafauna/megafauna.dm
index 928ad200f9f..996a132aed2 100644
--- a/code/modules/mob/living/simple_animal/hostile/megafauna/megafauna.dm
+++ b/code/modules/mob/living/simple_animal/hostile/megafauna/megafauna.dm
@@ -91,7 +91,7 @@
var/tab = "megafauna_kills"
if(crusher_kill)
tab = "megafauna_kills_crusher"
- if(!elimination) //used so the achievment only occurs for the last legion to die.
+ if(!elimination) //used so the achievment only occurs for the last legion to die.
grant_achievement(achievement_type, score_achievement_type, crusher_kill, force_grant)
SSblackbox.record_feedback("tally", tab, 1, "[initial(name)]")
return ..()
diff --git a/code/modules/mob/living/simple_animal/hostile/megafauna/swarmer.dm b/code/modules/mob/living/simple_animal/hostile/megafauna/swarmer.dm
index 34be37cdb80..8e336ebd51c 100644
--- a/code/modules/mob/living/simple_animal/hostile/megafauna/swarmer.dm
+++ b/code/modules/mob/living/simple_animal/hostile/megafauna/swarmer.dm
@@ -188,7 +188,7 @@ GLOBAL_LIST_INIT(AISwarmerCapsByType, list(/mob/living/simple_animal/hostile/swa
if(is_type_in_typecache(the_target, sharedWanted)) //always eat
return TRUE
- return ..() //else, have a nibble, see if it's food
+ return ..() //else, have a nibble, see if it's food
/mob/living/simple_animal/hostile/swarmer/ai/resource/OpenFire(atom/A)
diff --git a/code/modules/mob/living/simple_animal/hostile/mimic.dm b/code/modules/mob/living/simple_animal/hostile/mimic.dm
index a5618ee83d7..d4f84ffceb6 100644
--- a/code/modules/mob/living/simple_animal/hostile/mimic.dm
+++ b/code/modules/mob/living/simple_animal/hostile/mimic.dm
@@ -47,7 +47,7 @@
// Pickup loot
/mob/living/simple_animal/hostile/mimic/crate/Initialize(mapload)
. = ..()
- if(mapload) //eat shit
+ if(mapload) //eat shit
for(var/obj/item/I in loc)
I.forceMove(src)
diff --git a/code/modules/mob/living/simple_animal/hostile/mining_mobs/lobstrosity.dm b/code/modules/mob/living/simple_animal/hostile/mining_mobs/lobstrosity.dm
index 0f876ed5c49..0ca32a1a687 100644
--- a/code/modules/mob/living/simple_animal/hostile/mining_mobs/lobstrosity.dm
+++ b/code/modules/mob/living/simple_animal/hostile/mining_mobs/lobstrosity.dm
@@ -1,5 +1,5 @@
/**
- * Lobstrosities, the poster boy of charging AI mobs. Drops crab meat and bones.
+ * Lobstrosities, the poster boy of charging AI mobs. Drops crab meat and bones.
* Outside of charging, it's intended behavior is that it is generally slow moving, but makes up for that with a knockdown attack to score additional hits.
*/
/mob/living/simple_animal/hostile/asteroid/lobstrosity
diff --git a/code/modules/mob/living/simple_animal/hostile/space_dragon.dm b/code/modules/mob/living/simple_animal/hostile/space_dragon.dm
index af22c291290..8c32f679941 100644
--- a/code/modules/mob/living/simple_animal/hostile/space_dragon.dm
+++ b/code/modules/mob/living/simple_animal/hostile/space_dragon.dm
@@ -1,11 +1,11 @@
/// The carp rift is currently charging.
-#define CHARGE_ONGOING 0
+#define CHARGE_ONGOING 0
/// The carp rift is currently charging and has output a final warning.
-#define CHARGE_FINALWARNING 1
+#define CHARGE_FINALWARNING 1
/// The carp rift is now fully charged.
-#define CHARGE_COMPLETED 2
+#define CHARGE_COMPLETED 2
/// The darkness threshold for space dragon when choosing a color
-#define DARKNESS_THRESHOLD 50
+#define DARKNESS_THRESHOLD 50
/**
* # Space Dragon
diff --git a/code/modules/mob/living/simple_animal/parrot.dm b/code/modules/mob/living/simple_animal/parrot.dm
index e79d902c343..0a87a50f1c4 100644
--- a/code/modules/mob/living/simple_animal/parrot.dm
+++ b/code/modules/mob/living/simple_animal/parrot.dm
@@ -1,12 +1,12 @@
/* Parrots!
* Contains
- * Defines
- * Inventory (headset stuff)
- * Attack responces
- * AI
- * Procs / Verbs (usable by players)
- * Sub-types
- * Hear & say (the things we do for gimmicks)
+ * Defines
+ * Inventory (headset stuff)
+ * Attack responces
+ * AI
+ * Procs / Verbs (usable by players)
+ * Sub-types
+ * Hear & say (the things we do for gimmicks)
*/
/*
@@ -15,15 +15,15 @@
//Only a maximum of one action and one intent should be active at any given time.
//Actions
-#define PARROT_PERCH (1<<0) //Sitting/sleeping, not moving
-#define PARROT_SWOOP (1<<1) //Moving towards or away from a target
-#define PARROT_WANDER (1<<2) //Moving without a specific target in mind
+#define PARROT_PERCH (1<<0) //Sitting/sleeping, not moving
+#define PARROT_SWOOP (1<<1) //Moving towards or away from a target
+#define PARROT_WANDER (1<<2) //Moving without a specific target in mind
//Intents
-#define PARROT_STEAL (1<<3) //Flying towards a target to steal it/from it
-#define PARROT_ATTACK (1<<4) //Flying towards a target to attack it
-#define PARROT_RETURN (1<<5) //Flying towards its perch
-#define PARROT_FLEE (1<<6) //Flying away from its attacker
+#define PARROT_STEAL (1<<3) //Flying towards a target to steal it/from it
+#define PARROT_ATTACK (1<<4) //Flying towards a target to attack it
+#define PARROT_RETURN (1<<5) //Flying towards its perch
+#define PARROT_FLEE (1<<6) //Flying away from its attacker
/mob/living/simple_animal/parrot
@@ -74,7 +74,7 @@
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_lastmove = null //Updates/Stores position of the parrot while it's moving
- var/parrot_stuck = 0 //If parrot_lastmove hasn't changed, this will increment until it reaches parrot_stuck_threshold
+ var/parrot_stuck = 0 //If parrot_lastmove hasn't 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/list/speech_buffer = list()
@@ -299,7 +299,7 @@
if(health > 30) //Let's get in there and squawk it up!
parrot_state |= PARROT_ATTACK
else
- parrot_state |= PARROT_FLEE //Otherwise, fly like a bat out of hell!
+ parrot_state |= PARROT_FLEE //Otherwise, fly like a bat out of hell!
drop_held_item(0)
if(stat != DEAD && !M.combat_mode)
handle_automated_speech(1) //assured speak/emote
@@ -470,12 +470,12 @@
if(!held_item && !parrot_perch) //If we've got nothing to do.. look for something to do.
var/atom/movable/AM = search_for_perch_and_item() //This handles checking through lists so we know it's either a perch or stealable item
if(AM)
- if(istype(AM, /obj/item) || isliving(AM)) //If stealable item
+ if(istype(AM, /obj/item) || isliving(AM)) //If stealable item
parrot_interest = AM
manual_emote("turns and flies towards [parrot_interest].")
parrot_state = PARROT_SWOOP | PARROT_STEAL
return
- else //Else it's a perch
+ else //Else it's a perch
parrot_perch = AM
parrot_state = PARROT_SWOOP | PARROT_RETURN
return
@@ -929,9 +929,9 @@
/mob/living/simple_animal/parrot/poly/proc/Read_Memory()
if(fexists("data/npc_saves/Poly.sav")) //legacy compatability to convert old format to new
var/savefile/S = new /savefile("data/npc_saves/Poly.sav")
- S["phrases"] >> speech_buffer
- S["roundssurvived"] >> rounds_survived
- S["longestsurvival"] >> longest_survival
+ S["phrases"] >> speech_buffer
+ S["roundssurvived"] >> rounds_survived
+ S["longestsurvival"] >> longest_survival
S["longestdeathstreak"] >> longest_deathstreak
fdel("data/npc_saves/Poly.sav")
else
diff --git a/code/modules/mob/living/simple_animal/simple_animal.dm b/code/modules/mob/living/simple_animal/simple_animal.dm
index 941c5718446..c99709fd718 100644
--- a/code/modules/mob/living/simple_animal/simple_animal.dm
+++ b/code/modules/mob/living/simple_animal/simple_animal.dm
@@ -295,7 +295,7 @@
/mob/living/simple_animal/proc/handle_automated_movement()
set waitfor = FALSE
if(!stop_automated_movement && wander)
- if((isturf(loc) || allow_movement_on_non_turfs) && (mobility_flags & MOBILITY_MOVE)) //This is so it only moves if it's not inside a closet, gentics machine, etc.
+ if((isturf(loc) || allow_movement_on_non_turfs) && (mobility_flags & MOBILITY_MOVE)) //This is so it only moves if it's not inside a closet, gentics machine, etc.
turns_since_move++
if(turns_since_move >= turns_per_move)
if(!(stop_automated_movement_when_pulled && pulledby)) //Some animals don't move when pulled
diff --git a/code/modules/mob/living/simple_animal/slime/powers.dm b/code/modules/mob/living/simple_animal/slime/powers.dm
index 0aad2e96937..d78bf02e6c9 100644
--- a/code/modules/mob/living/simple_animal/slime/powers.dm
+++ b/code/modules/mob/living/simple_animal/slime/powers.dm
@@ -1,9 +1,9 @@
-#define SIZE_DOESNT_MATTER -1
-#define BABIES_ONLY 0
-#define ADULTS_ONLY 1
+#define SIZE_DOESNT_MATTER -1
+#define BABIES_ONLY 0
+#define ADULTS_ONLY 1
-#define NO_GROWTH_NEEDED 0
-#define GROWTH_NEEDED 1
+#define NO_GROWTH_NEEDED 0
+#define GROWTH_NEEDED 1
/datum/action/innate/slime
check_flags = AB_CHECK_CONSCIOUS
diff --git a/code/modules/mob/living/simple_animal/slime/slime.dm b/code/modules/mob/living/simple_animal/slime/slime.dm
index 84097d7a564..c4eb7572638 100644
--- a/code/modules/mob/living/simple_animal/slime/slime.dm
+++ b/code/modules/mob/living/simple_animal/slime/slime.dm
@@ -187,7 +187,7 @@
. = ..()
var/mod = 0
if(bodytemperature >= 330.23) // 135 F or 57.08 C
- mod = -1 // slimes become supercharged at high temperatures
+ mod = -1 // slimes become supercharged at high temperatures
else if(bodytemperature < 283.222)
mod = ((283.222 - bodytemperature) / 10) * 1.75
if(mod)
diff --git a/code/modules/mob/login.dm b/code/modules/mob/login.dm
index 269d0608327..a8f06200af0 100644
--- a/code/modules/mob/login.dm
+++ b/code/modules/mob/login.dm
@@ -26,11 +26,11 @@
if(!client)
return FALSE
add_to_player_list()
- lastKnownIP = client.address
- computer_id = client.computer_id
+ lastKnownIP = client.address
+ computer_id = client.computer_id
log_access("Mob Login: [key_name(src)] was assigned to a [type]")
world.update_status()
- client.screen = list() //remove hud items just in case
+ client.screen = list() //remove hud items just in case
client.images = list()
client.set_right_click_menu_mode(shift_to_open_context_menu)
diff --git a/code/modules/mob/mob.dm b/code/modules/mob/mob.dm
index 1987d308b05..0735d3e8f25 100644
--- a/code/modules/mob/mob.dm
+++ b/code/modules/mob/mob.dm
@@ -118,8 +118,8 @@
var/datum/gas_mixture/environment = loc.return_air()
- var/t = "Coordinates: [x],[y] \n"
- t += "Temperature: [environment.temperature] \n"
+ var/t = "Coordinates: [x],[y] \n"
+ t += "Temperature: [environment.temperature] \n"
for(var/id in environment.gases)
var/gas = environment.gases[id]
if(gas[MOLES])
@@ -544,7 +544,7 @@
*
* Note that if either party has their face obscured, the other won't get the notice about the eye contact
* Also note that examine_more() doesn't proc this or extend the timer, just because it's simpler this way and doesn't lose much.
- * The nice part about relying on examining is that we don't bother checking visibility, because we already know they were both visible to each other within the last second, and the one who triggers it is currently seeing them
+ * The nice part about relying on examining is that we don't bother checking visibility, because we already know they were both visible to each other within the last second, and the one who triggers it is currently seeing them
*/
/mob/proc/handle_eye_contact(mob/living/examined_mob)
return
@@ -603,7 +603,7 @@
///Can this mob resist (default FALSE)
/mob/proc/can_resist()
- return FALSE //overridden in living.dm
+ return FALSE //overridden in living.dm
///Spin this mob around it's central axis
/mob/proc/spin(spintime, speed)
diff --git a/code/modules/mob/mob_defines.dm b/code/modules/mob/mob_defines.dm
index b4cda48aa86..6f159451956 100644
--- a/code/modules/mob/mob_defines.dm
+++ b/code/modules/mob/mob_defines.dm
@@ -28,15 +28,15 @@
var/static/next_mob_id = 0
/// List of movement speed modifiers applying to this mob
- var/list/movespeed_modification //Lazy list, see mob_movespeed.dm
+ var/list/movespeed_modification //Lazy list, see mob_movespeed.dm
/// List of movement speed modifiers ignored by this mob. List -> List (id) -> List (sources)
- var/list/movespeed_mod_immunities //Lazy list, see mob_movespeed.dm
+ var/list/movespeed_mod_immunities //Lazy list, see mob_movespeed.dm
/// The calculated mob speed slowdown based on the modifiers list
var/cached_multiplicative_slowdown
/// List of action speed modifiers applying to this mob
- var/list/actionspeed_modification //Lazy list, see mob_movespeed.dm
+ var/list/actionspeed_modification //Lazy list, see mob_movespeed.dm
/// List of action speed modifiers ignored by this mob. List -> List (id) -> List (sources)
- var/list/actionspeed_mod_immunities //Lazy list, see mob_movespeed.dm
+ var/list/actionspeed_mod_immunities //Lazy list, see mob_movespeed.dm
/// The calculated mob action speed slowdown based on the modifiers list
var/cached_multiplicative_actions_slowdown
/// List of action hud items the user has
@@ -74,12 +74,12 @@
* Set when you're being turned into something else and also used in a bunch of places
* it probably shouldn't really be
*/
- var/notransform = null //Carbon
+ var/notransform = null //Carbon
/// Is the mob blind
- var/eye_blind = 0 //Carbon
+ var/eye_blind = 0 //Carbon
/// Does the mob have blurry sight
- var/eye_blurry = 0 //Carbon
+ var/eye_blurry = 0 //Carbon
/// What is the mobs real name (name is overridden for disguises etc)
var/real_name = null
@@ -93,7 +93,7 @@
var/name_archive //For admin things like possession
/// Default body temperature
- var/bodytemperature = BODYTEMP_NORMAL //310.15K / 98.6F
+ var/bodytemperature = BODYTEMP_NORMAL //310.15K / 98.6F
/// Drowsyness level of the mob
var/drowsyness = 0//Carbon
/// Dizziness level of the mob
@@ -106,7 +106,7 @@
var/satiety = 0//Carbon
/// How many ticks this mob has been over reating
- var/overeatduration = 0 // How long this guy is overeating //Carbon
+ var/overeatduration = 0 // How long this guy is overeating //Carbon
/// The movement intent of the mob (run/wal)
var/m_intent = MOVE_INTENT_RUN//Living
@@ -192,7 +192,7 @@
var/list/observers = null
///List of progress bars this mob is currently seeing for actions
- var/list/progressbars = null //for stacking do_after bars
+ var/list/progressbars = null //for stacking do_after bars
///For storing what do_after's someone has, key = string, value = amount of interactions of that type happening.
var/list/do_afters
diff --git a/code/modules/mob/mob_helpers.dm b/code/modules/mob/mob_helpers.dm
index ebb55692c13..5ce06f4bc94 100644
--- a/code/modules/mob/mob_helpers.dm
+++ b/code/modules/mob/mob_helpers.dm
@@ -304,7 +304,7 @@
* * notify_volume How loud the sound should be to spook the user
*/
/proc/notify_ghosts(message, ghost_sound = null, enter_link = null, atom/source = null, mutable_appearance/alert_overlay = null, action = NOTIFY_JUMP, flashwindow = TRUE, ignore_mapload = TRUE, ignore_key, header = null, notify_suiciders = TRUE, notify_volume = 100) //Easy notification of ghosts.
- if(ignore_mapload && SSatoms.initialized != INITIALIZATION_INNEW_REGULAR) //don't notify for objects created during a map load
+ if(ignore_mapload && SSatoms.initialized != INITIALIZATION_INNEW_REGULAR) //don't notify for objects created during a map load
return
for(var/mob/dead/observer/O in GLOB.player_list)
if(!notify_suiciders && (O in GLOB.suicided_mob_list))
@@ -357,7 +357,7 @@
///Is the passed in mob a ghost with admin powers, doesn't check for AI interact like isAdminGhost() used to
/proc/isAdminObserver(mob/user)
- if(!user) //Are they a mob? Auto interface updates call this with a null src
+ if(!user) //Are they a mob? Auto interface updates call this with a null src
return
if(!user.client) // Do they have a client?
return
diff --git a/code/modules/mob/mob_movement.dm b/code/modules/mob/mob_movement.dm
index 341504fbbbd..ea745736fbd 100644
--- a/code/modules/mob/mob_movement.dm
+++ b/code/modules/mob/mob_movement.dm
@@ -79,7 +79,7 @@
if(!n || !direct)
return FALSE
if(mob.notransform)
- return FALSE //This is sota the goto stop mobs from moving var
+ return FALSE //This is sota the goto stop mobs from moving var
if(mob.control_object)
return Move_object(direct)
if(!isliving(mob))
@@ -98,11 +98,11 @@
//SKYRAT EDIT ADDITION END
var/mob/living/L = mob //Already checked for isliving earlier
- if(L.incorporeal_move) //Move though walls
+ if(L.incorporeal_move) //Move though walls
Process_Incorpmove(direct)
return FALSE
- if(mob.remote_control) //we're controlling something, our movement is relayed to it
+ if(mob.remote_control) //we're controlling something, our movement is relayed to it
return mob.remote_control.relaymove(mob, direct)
if(isAI(mob))
@@ -111,13 +111,13 @@
if(Process_Grab()) //are we restrained by someone's grip?
return
- if(mob.buckled) //if we're buckled to something, tell it we moved.
+ if(mob.buckled) //if we're buckled to something, tell it we moved.
return mob.buckled.relaymove(mob, direct)
if(!(L.mobility_flags & MOBILITY_MOVE))
return FALSE
- if(isobj(mob.loc) || ismob(mob.loc)) //Inside an object, tell it we moved
+ if(isobj(mob.loc) || ismob(mob.loc)) //Inside an object, tell it we moved
var/atom/O = mob.loc
return O.relaymove(mob, direct)
diff --git a/code/modules/mob/mob_say.dm b/code/modules/mob/mob_say.dm
index a7b01aa7af3..e375abaf22f 100644
--- a/code/modules/mob/mob_say.dm
+++ b/code/modules/mob/mob_say.dm
@@ -8,7 +8,7 @@
if(typing_indicator)
set_typing_indicator(FALSE)
//SKYRAT EDIT ADDITION END
- if(GLOB.say_disabled) //This is here to try to identify lag problems
+ if(GLOB.say_disabled) //This is here to try to identify lag problems
to_chat(usr, "Speech is currently admin-disabled.")
return
if(message)
@@ -18,7 +18,7 @@
/mob/verb/whisper_verb(message as text)
set name = "Whisper"
set category = "IC"
- if(GLOB.say_disabled) //This is here to try to identify lag problems
+ if(GLOB.say_disabled) //This is here to try to identify lag problems
to_chat(usr, "Speech is currently admin-disabled.")
return
whisper(message)
@@ -39,7 +39,7 @@
set_typing_indicator(FALSE)
//SKYRAT EDIT ADDITION END
- if(GLOB.say_disabled) //This is here to try to identify lag problems
+ if(GLOB.say_disabled) //This is here to try to identify lag problems
to_chat(usr, "Speech is currently admin-disabled.")
return
@@ -52,7 +52,7 @@
var/name = real_name
var/alt_name = ""
- if(GLOB.say_disabled) //This is here to try to identify lag problems
+ if(GLOB.say_disabled) //This is here to try to identify lag problems
to_chat(usr, "Speech is currently admin-disabled.")
return
diff --git a/code/modules/mob/mob_update_icons.dm b/code/modules/mob/mob_update_icons.dm
index baa849705bb..9fceade1af5 100644
--- a/code/modules/mob/mob_update_icons.dm
+++ b/code/modules/mob/mob_update_icons.dm
@@ -1,7 +1,7 @@
//Most of these are defined at this level to reduce on checks elsewhere in the code.
//Having them here also makes for a nice reference list of the various overlay-updating procs available
-/mob/proc/regenerate_icons() //TODO: phase this out completely if possible
+/mob/proc/regenerate_icons() //TODO: phase this out completely if possible
return
/mob/proc/update_icons()
diff --git a/code/modules/mob/transform_procs.dm b/code/modules/mob/transform_procs.dm
index e243a654d00..584a161378a 100644
--- a/code/modules/mob/transform_procs.dm
+++ b/code/modules/mob/transform_procs.dm
@@ -138,7 +138,7 @@
if(client)
R.updatename(client)
- if(mind) //TODO //TODO WHAT
+ if(mind) //TODO //TODO WHAT
if(!transfer_after)
mind.active = FALSE
mind.transfer_to(R)
@@ -208,7 +208,7 @@
var/mob/living/simple_animal/slime/new_slime
if(reproduce)
- var/number = pick(14;2,3,4) //reproduce (has a small chance of producing 3 or 4 offspring)
+ var/number = pick(14;2,3,4) //reproduce (has a small chance of producing 3 or 4 offspring)
var/list/babies = list()
for(var/i=1,i<=number,i++)
var/mob/living/simple_animal/slime/M = new/mob/living/simple_animal/slime(loc)
@@ -242,7 +242,7 @@
regenerate_icons()
icon = null
invisibility = INVISIBILITY_MAXIMUM
- for(var/t in bodyparts) //this really should not be necessary
+ for(var/t in bodyparts) //this really should not be necessary
qdel(t)
var/mob/living/simple_animal/pet/dog/corgi/new_corgi = new /mob/living/simple_animal/pet/dog/corgi (loc)
@@ -339,7 +339,7 @@
//Bad mobs! - Remember to add a comment explaining what's wrong with the mob
if(!MP)
- return FALSE //Sanity, this should never happen.
+ return FALSE //Sanity, this should never happen.
if(ispath(MP, /mob/living/simple_animal/hostile/construct))
return FALSE //Verbs do not appear for players.
diff --git a/code/modules/modular_computers/computers/item/computer.dm b/code/modules/modular_computers/computers/item/computer.dm
index 583ead83aef..2769479e0a7 100644
--- a/code/modules/modular_computers/computers/item/computer.dm
+++ b/code/modules/modular_computers/computers/item/computer.dm
@@ -11,13 +11,13 @@
max_integrity = 100
armor = list(MELEE = 0, BULLET = 20, LASER = 20, ENERGY = 100, BOMB = 0, BIO = 100, RAD = 100, FIRE = 0, ACID = 0)
- var/enabled = 0 // Whether the computer is turned on.
- var/screen_on = 1 // Whether the computer is active/opened/it's screen is on.
- var/device_theme = "ntos" // Sets the theme for the main menu, hardware config, and file browser apps. Overridden by certain non-NT devices.
- var/datum/computer_file/program/active_program = null // A currently active program running on the computer.
- var/hardware_flag = 0 // A flag that describes this device type
+ var/enabled = 0 // Whether the computer is turned on.
+ var/screen_on = 1 // Whether the computer is active/opened/it's screen is on.
+ var/device_theme = "ntos" // Sets the theme for the main menu, hardware config, and file browser apps. Overridden by certain non-NT devices.
+ var/datum/computer_file/program/active_program = null // A currently active program running on the computer.
+ var/hardware_flag = 0 // A flag that describes this device type
var/last_power_usage = 0
- var/last_battery_percent = 0 // Used for deciding if battery percentage has chandged
+ var/last_battery_percent = 0 // Used for deciding if battery percentage has chandged
var/last_world_time = "00:00"
var/list/last_header_icons
///Looping sound for when the computer is on
@@ -25,19 +25,19 @@
///Whether or not this modular computer uses the looping sound
var/looping_sound = TRUE
- var/base_active_power_usage = 50 // Power usage when the computer is open (screen is active) and can be interacted with. Remember hardware can use power too.
- var/base_idle_power_usage = 5 // Power usage when the computer is idle and screen is off (currently only applies to laptops)
+ var/base_active_power_usage = 50 // Power usage when the computer is open (screen is active) and can be interacted with. Remember hardware can use power too.
+ var/base_idle_power_usage = 5 // Power usage when the computer is idle and screen is off (currently only applies to laptops)
// Modular computers can run on various devices. Each DEVICE (Laptop, Console, Tablet,..)
// must have it's own DMI file. Icon states must be called exactly the same in all files, but may look differently
// If you create a program which is limited to Laptops and Consoles you don't have to add it's icon_state overlay for Tablets too, for example.
- var/icon_state_unpowered = null // Icon state when the computer is turned off.
- var/icon_state_powered = null // Icon state when the computer is turned on.
- var/icon_state_menu = "menu" // Icon state overlay when the computer is turned on, but no program is loaded that would override the screen.
- var/display_overlays = TRUE // If FALSE, don't draw overlays on this device at all
- var/max_hardware_size = 0 // Maximal hardware w_class. Tablets/PDAs have 1, laptops 2, consoles 4.
- var/steel_sheet_cost = 5 // Amount of steel sheets refunded when disassembling an empty frame of this computer.
+ var/icon_state_unpowered = null // Icon state when the computer is turned off.
+ var/icon_state_powered = null // Icon state when the computer is turned on.
+ var/icon_state_menu = "menu" // Icon state overlay when the computer is turned on, but no program is loaded that would override the screen.
+ var/display_overlays = TRUE // If FALSE, don't draw overlays on this device at all
+ var/max_hardware_size = 0 // Maximal hardware w_class. Tablets/PDAs have 1, laptops 2, consoles 4.
+ var/steel_sheet_cost = 5 // Amount of steel sheets refunded when disassembling an empty frame of this computer.
/// List of "connection ports" in this computer and the components with which they are plugged
var/list/all_components = list()
@@ -46,11 +46,11 @@
/// Number of total expansion bays this computer has available.
var/max_bays = 0
- var/list/idle_threads // Idle programs on background. They still receive process calls but can't be interacted with.
- var/obj/physical = null // Object that represents our computer. It's used for Adjacent() and UI visibility checks.
- var/has_light = FALSE //If the computer has a flashlight/LED light/what-have-you installed
- var/comp_light_luminosity = 3 //The brightness of that light
- var/comp_light_color //The color of that light
+ var/list/idle_threads // Idle programs on background. They still receive process calls but can't be interacted with.
+ var/obj/physical = null // Object that represents our computer. It's used for Adjacent() and UI visibility checks.
+ var/has_light = FALSE //If the computer has a flashlight/LED light/what-have-you installed
+ var/comp_light_luminosity = 3 //The brightness of that light
+ var/comp_light_color //The color of that light
/obj/item/modular_computer/Initialize()
diff --git a/code/modules/modular_computers/computers/item/laptop.dm b/code/modules/modular_computers/computers/item/laptop.dm
index 2f7ff827a2e..904a3d4cf62 100644
--- a/code/modules/modular_computers/computers/item/laptop.dm
+++ b/code/modules/modular_computers/computers/item/laptop.dm
@@ -17,8 +17,8 @@
// No running around with open laptops in hands.
item_flags = SLOWS_WHILE_IN_HAND
- screen_on = FALSE // Starts closed
- var/start_open = TRUE // unless this var is set to 1
+ screen_on = FALSE // Starts closed
+ var/start_open = TRUE // unless this var is set to 1
var/icon_state_closed = "laptop-closed"
var/w_class_open = WEIGHT_CLASS_BULKY
var/slowdown_open = TRUE
diff --git a/code/modules/modular_computers/computers/machinery/modular_computer.dm b/code/modules/modular_computers/computers/machinery/modular_computer.dm
index daabe7b7eb4..06af3e31d9f 100644
--- a/code/modules/modular_computers/computers/machinery/modular_computer.dm
+++ b/code/modules/modular_computers/computers/machinery/modular_computer.dm
@@ -6,8 +6,8 @@
use_power = IDLE_POWER_USE
idle_power_usage = 5
- var/hardware_flag = 0 // A flag that describes this device type
- var/last_power_usage = 0 // Power usage during last tick
+ var/hardware_flag = 0 // A flag that describes this device type
+ var/last_power_usage = 0 // Power usage during last tick
// Modular computers can run on various devices. Each DEVICE (Laptop, Console, Tablet,..)
// must have it's own DMI file. Icon states must be called exactly the same in all files, but may look differently
@@ -15,17 +15,17 @@
icon = null
icon_state = null
- var/icon_state_unpowered = null // Icon state when the computer is turned off.
- var/icon_state_powered = null // Icon state when the computer is turned on.
- var/screen_icon_state_menu = "menu" // Icon state overlay when the computer is turned on, but no program is loaded that would override the screen.
- var/screen_icon_screensaver = "standby" // Icon state overlay when the computer is powered, but not 'switched on'.
- var/max_hardware_size = 0 // Maximal hardware size. Currently, tablets have 1, laptops 2 and consoles 3. Limits what hardware types can be installed.
- var/steel_sheet_cost = 10 // Amount of steel sheets refunded when disassembling an empty frame of this computer.
- var/light_strength = 0 // Light luminosity when turned on
- var/base_active_power_usage = 100 // Power usage when the computer is open (screen is active) and can be interacted with. Remember hardware can use power too.
- var/base_idle_power_usage = 10 // Power usage when the computer is idle and screen is off (currently only applies to laptops)
+ var/icon_state_unpowered = null // Icon state when the computer is turned off.
+ var/icon_state_powered = null // Icon state when the computer is turned on.
+ var/screen_icon_state_menu = "menu" // Icon state overlay when the computer is turned on, but no program is loaded that would override the screen.
+ var/screen_icon_screensaver = "standby" // Icon state overlay when the computer is powered, but not 'switched on'.
+ var/max_hardware_size = 0 // Maximal hardware size. Currently, tablets have 1, laptops 2 and consoles 3. Limits what hardware types can be installed.
+ var/steel_sheet_cost = 10 // Amount of steel sheets refunded when disassembling an empty frame of this computer.
+ var/light_strength = 0 // Light luminosity when turned on
+ var/base_active_power_usage = 100 // Power usage when the computer is open (screen is active) and can be interacted with. Remember hardware can use power too.
+ var/base_idle_power_usage = 10 // Power usage when the computer is idle and screen is off (currently only applies to laptops)
- var/obj/item/modular_computer/processor/cpu = null // CPU that handles most logic while this type only handles power and other specific things.
+ var/obj/item/modular_computer/processor/cpu = null // CPU that handles most logic while this type only handles power and other specific things.
/obj/machinery/modular_computer/Initialize()
. = ..()
diff --git a/code/modules/modular_computers/file_system/computer_file.dm b/code/modules/modular_computers/file_system/computer_file.dm
index 4e862c4ae35..08e77b8a9bb 100644
--- a/code/modules/modular_computers/file_system/computer_file.dm
+++ b/code/modules/modular_computers/file_system/computer_file.dm
@@ -1,11 +1,11 @@
/datum/computer_file
- var/filename = "NewFile" // Placeholder. No spacebars
- var/filetype = "XXX" // File full names are [filename].[filetype] so like NewFile.XXX in this case
- var/size = 1 // File size in GQ. Integers only!
- var/obj/item/computer_hardware/hard_drive/holder // Holder that contains this file.
- var/unsendable = FALSE // Whether the file may be sent to someone via NTNet transfer or other means.
- var/undeletable = FALSE // Whether the file may be deleted. Setting to TRUE prevents deletion/renaming/etc.
- var/uid // UID of this file
+ var/filename = "NewFile" // Placeholder. No spacebars
+ var/filetype = "XXX" // File full names are [filename].[filetype] so like NewFile.XXX in this case
+ var/size = 1 // File size in GQ. Integers only!
+ var/obj/item/computer_hardware/hard_drive/holder // Holder that contains this file.
+ var/unsendable = FALSE // Whether the file may be sent to someone via NTNet transfer or other means.
+ var/undeletable = FALSE // Whether the file may be deleted. Setting to TRUE prevents deletion/renaming/etc.
+ var/uid // UID of this file
var/static/file_uid = 0
/datum/computer_file/New()
diff --git a/code/modules/modular_computers/file_system/data.dm b/code/modules/modular_computers/file_system/data.dm
index 32ef6f53dd1..e0404e787fb 100644
--- a/code/modules/modular_computers/file_system/data.dm
+++ b/code/modules/modular_computers/file_system/data.dm
@@ -1,10 +1,10 @@
// /data/ files store data in string format.
// They don't contain other logic for now.
/datum/computer_file/data
- var/stored_data = "" // Stored data in string format.
+ var/stored_data = "" // Stored data in string format.
filetype = "DAT"
var/block_size = 250
- var/do_not_edit = 0 // Whether the user will be reminded that the file probably shouldn't be edited.
+ var/do_not_edit = 0 // Whether the user will be reminded that the file probably shouldn't be edited.
/datum/computer_file/data/clone()
var/datum/computer_file/data/temp = ..()
diff --git a/code/modules/modular_computers/file_system/program.dm b/code/modules/modular_computers/file_system/program.dm
index 751332c8623..0bce722a5b3 100644
--- a/code/modules/modular_computers/file_system/program.dm
+++ b/code/modules/modular_computers/file_system/program.dm
@@ -111,7 +111,7 @@
if(!access_to_check) // No required_access, allow it.
return TRUE
- if(!transfer && computer && (computer.obj_flags & EMAGGED)) //emags can bypass the execution locks but not the download ones.
+ if(!transfer && computer && (computer.obj_flags & EMAGGED)) //emags can bypass the execution locks but not the download ones.
return TRUE
if(isAdminGhostAI(user))
diff --git a/code/modules/modular_computers/file_system/programs/airestorer.dm b/code/modules/modular_computers/file_system/programs/airestorer.dm
index eafbcb6126d..bec4ab7dd1e 100644
--- a/code/modules/modular_computers/file_system/programs/airestorer.dm
+++ b/code/modules/modular_computers/file_system/programs/airestorer.dm
@@ -56,7 +56,7 @@
/datum/computer_file/program/aidiag/process_tick()
. = ..()
- if(!restoring) //Put the check here so we don't check for an ai all the time
+ if(!restoring) //Put the check here so we don't check for an ai all the time
return
var/obj/item/aicard/cardhold = get_ai(2)
@@ -65,7 +65,7 @@
var/mob/living/silicon/ai/A = get_ai()
if(!A || !cardhold)
- restoring = FALSE // If the AI was removed, stop the restoration sequence.
+ restoring = FALSE // If the AI was removed, stop the restoration sequence.
if(ai_slot)
ai_slot.locked = FALSE
return
diff --git a/code/modules/modular_computers/file_system/programs/budgetordering.dm b/code/modules/modular_computers/file_system/programs/budgetordering.dm
index 307483c209b..5e1afe8c4d7 100644
--- a/code/modules/modular_computers/file_system/programs/budgetordering.dm
+++ b/code/modules/modular_computers/file_system/programs/budgetordering.dm
@@ -105,7 +105,7 @@
data["docked"] = SSshuttle.supply.mode == SHUTTLE_IDLE
data["loan"] = !!SSshuttle.shuttle_loan
data["loan_dispatched"] = SSshuttle.shuttle_loan && SSshuttle.shuttle_loan.dispatched
- data["can_send"] = FALSE //There is no situation where I want the app to be able to send the shuttle AWAY from the station, but conversely is fine.
+ data["can_send"] = FALSE //There is no situation where I want the app to be able to send the shuttle AWAY from the station, but conversely is fine.
data["can_approve_requests"] = can_approve_requests
data["app_cost"] = TRUE
var/message = "Remember to stamp and send back the supply manifests."
diff --git a/code/modules/modular_computers/file_system/programs/ntmonitor.dm b/code/modules/modular_computers/file_system/programs/ntmonitor.dm
index d508317008a..22d3f20346c 100644
--- a/code/modules/modular_computers/file_system/programs/ntmonitor.dm
+++ b/code/modules/modular_computers/file_system/programs/ntmonitor.dm
@@ -6,7 +6,7 @@
extended_desc = "This program monitors stationwide NTNet network, provides access to logging systems, and allows for configuration changes"
size = 12
requires_ntnet = TRUE
- required_access = ACCESS_NETWORK //NETWORK CONTROL IS A MORE SECURE PROGRAM.
+ required_access = ACCESS_NETWORK //NETWORK CONTROL IS A MORE SECURE PROGRAM.
available_on_ntnet = TRUE
tgui_id = "NtosNetMonitor"
program_icon = "network-wired"
diff --git a/code/modules/modular_computers/file_system/programs/ntnrc_client.dm b/code/modules/modular_computers/file_system/programs/ntnrc_client.dm
index b4e48d0e79a..8779414e397 100644
--- a/code/modules/modular_computers/file_system/programs/ntnrc_client.dm
+++ b/code/modules/modular_computers/file_system/programs/ntnrc_client.dm
@@ -11,12 +11,12 @@
available_on_ntnet = 1
tgui_id = "NtosNetChat"
program_icon = "comment-alt"
- var/last_message // Used to generate the toolbar icon
+ var/last_message // Used to generate the toolbar icon
var/username
var/active_channel
var/list/channel_history = list()
- var/operator_mode = FALSE // Channel operator mode
- var/netadmin_mode = FALSE // Administrator mode (invisible to other users + bypasses passwords)
+ var/operator_mode = FALSE // Channel operator mode
+ var/netadmin_mode = FALSE // Administrator mode (invisible to other users + bypasses passwords)
/datum/computer_file/program/chatclient/New()
username = "DefaultUser[rand(100, 999)]"
@@ -119,7 +119,7 @@
CRASH("Var computer is null!")
if(!hard_drive)
computer.visible_message("\The [computer] shows an \"I/O Error - Hard drive connection error\" warning.")
- else // In 99.9% cases this will mean our HDD is full
+ else // In 99.9% cases this will mean our HDD is full
computer.visible_message("\The [computer] shows an \"I/O Error - Hard drive may be full. Please free some space and try again. Required space: [logfile.size]GQ\" warning.")
return TRUE
if("PRG_renamechannel")
diff --git a/code/modules/modular_computers/file_system/programs/sm_monitor.dm b/code/modules/modular_computers/file_system/programs/sm_monitor.dm
index f0ee46e23ae..940742dfde0 100644
--- a/code/modules/modular_computers/file_system/programs/sm_monitor.dm
+++ b/code/modules/modular_computers/file_system/programs/sm_monitor.dm
@@ -13,7 +13,7 @@
alert_able = TRUE
var/last_status = SUPERMATTER_INACTIVE
var/list/supermatters
- var/obj/machinery/power/supermatter_crystal/active // Currently selected supermatter crystal.
+ var/obj/machinery/power/supermatter_crystal/active // Currently selected supermatter crystal.
/datum/computer_file/program/supermatter_monitor/Destroy()
clear_signals()
diff --git a/code/modules/modular_computers/hardware/_hardware.dm b/code/modules/modular_computers/hardware/_hardware.dm
index 850ba76f063..0fc0b11fbdf 100644
--- a/code/modules/modular_computers/hardware/_hardware.dm
+++ b/code/modules/modular_computers/hardware/_hardware.dm
@@ -4,21 +4,21 @@
icon = 'icons/obj/module.dmi'
icon_state = "std_mod"
- w_class = WEIGHT_CLASS_TINY // w_class limits which devices can contain this component.
+ w_class = WEIGHT_CLASS_TINY // w_class limits which devices can contain this component.
// 1: PDAs/Tablets, 2: Laptops, 3-4: Consoles only
var/obj/item/modular_computer/holder = null
// Computer that holds this hardware, if any.
- var/power_usage = 0 // If the hardware uses extra power, change this.
- var/enabled = TRUE // If the hardware is turned off set this to 0.
- var/critical = FALSE // Prevent disabling for important component, like the CPU.
- var/can_install = TRUE // Prevents direct installation of removable media.
- var/expansion_hw = FALSE // Hardware that fits into expansion bays.
- var/removable = TRUE // Whether the hardware is removable or not.
- var/damage = 0 // Current damage level
- var/max_damage = 100 // Maximal damage level.
- var/damage_malfunction = 20 // "Malfunction" threshold. When damage exceeds this value the hardware piece will semi-randomly fail and do !!FUN!! things
- var/damage_failure = 50 // "Failure" threshold. When damage exceeds this value the hardware piece will not work at all.
+ var/power_usage = 0 // If the hardware uses extra power, change this.
+ var/enabled = TRUE // If the hardware is turned off set this to 0.
+ var/critical = FALSE // Prevent disabling for important component, like the CPU.
+ var/can_install = TRUE // Prevents direct installation of removable media.
+ var/expansion_hw = FALSE // Hardware that fits into expansion bays.
+ var/removable = TRUE // Whether the hardware is removable or not.
+ var/damage = 0 // Current damage level
+ var/max_damage = 100 // Maximal damage level.
+ var/damage_malfunction = 20 // "Malfunction" threshold. When damage exceeds this value the hardware piece will semi-randomly fail and do !!FUN!! things
+ var/damage_failure = 50 // "Failure" threshold. When damage exceeds this value the hardware piece will not work at all.
var/malfunction_probability = 10// Chance of malfunction when the component is damaged
var/device_type
diff --git a/code/modules/modular_computers/hardware/card_slot.dm b/code/modules/modular_computers/hardware/card_slot.dm
index b90547ac21d..db5a660a2e6 100644
--- a/code/modules/modular_computers/hardware/card_slot.dm
+++ b/code/modules/modular_computers/hardware/card_slot.dm
@@ -1,5 +1,5 @@
/obj/item/computer_hardware/card_slot
- name = "primary RFID card module" // \improper breaks the find_hardware_by_name proc
+ name = "primary RFID card module" // \improper breaks the find_hardware_by_name proc
desc = "A module allowing this computer to read or write data on ID cards. Necessary for some programs to run properly."
power_usage = 10 //W
icon_state = "card_mini"
diff --git a/code/modules/modular_computers/hardware/hard_drive.dm b/code/modules/modular_computers/hardware/hard_drive.dm
index 8debb00c19d..d168dd784fe 100644
--- a/code/modules/modular_computers/hardware/hard_drive.dm
+++ b/code/modules/modular_computers/hardware/hard_drive.dm
@@ -8,15 +8,15 @@
device_type = MC_HDD
var/max_capacity = 128
var/used_capacity = 0
- var/list/stored_files = list() // List of stored files on this drive. DO NOT MODIFY DIRECTLY!
+ var/list/stored_files = list() // List of stored files on this drive. DO NOT MODIFY DIRECTLY!
/obj/item/computer_hardware/hard_drive/on_remove(obj/item/modular_computer/MC, mob/user)
MC.shutdown_computer()
/obj/item/computer_hardware/hard_drive/proc/install_default_programs()
- store_file(new/datum/computer_file/program/computerconfig(src)) // Computer configuration utility, allows hardware control and displays more info than status bar
- store_file(new/datum/computer_file/program/ntnetdownload(src)) // NTNet Downloader Utility, allows users to download more software from NTNet repository
- store_file(new/datum/computer_file/program/filemanager(src)) // File manager, allows text editor functions and basic file manipulation.
+ store_file(new/datum/computer_file/program/computerconfig(src)) // Computer configuration utility, allows hardware control and displays more info than status bar
+ store_file(new/datum/computer_file/program/ntnetdownload(src)) // NTNet Downloader Utility, allows users to download more software from NTNet repository
+ store_file(new/datum/computer_file/program/filemanager(src)) // File manager, allows text editor functions and basic file manipulation.
/obj/item/computer_hardware/hard_drive/examine(user)
. = ..()
@@ -129,7 +129,7 @@
name = "advanced hard disk drive"
desc = "A hybrid HDD, for use in higher grade computers where balance between power efficiency and capacity is desired."
max_capacity = 256
- power_usage = 50 // Hybrid, medium capacity and medium power storage
+ power_usage = 50 // Hybrid, medium capacity and medium power storage
icon_state = "harddisk_mini"
w_class = WEIGHT_CLASS_SMALL
@@ -137,7 +137,7 @@
name = "super hard disk drive"
desc = "A high capacity HDD, for use in cluster storage solutions where capacity is more important than power efficiency."
max_capacity = 512
- power_usage = 100 // High-capacity but uses lots of power, shortening battery life. Best used with APC link.
+ power_usage = 100 // High-capacity but uses lots of power, shortening battery life. Best used with APC link.
icon_state = "harddisk_mini"
w_class = WEIGHT_CLASS_SMALL
@@ -161,8 +161,8 @@
// For borg integrated tablets. No downloader.
/obj/item/computer_hardware/hard_drive/small/integrated/install_default_programs()
- store_file(new /datum/computer_file/program/computerconfig(src)) // Computer configuration utility, allows hardware control and displays more info than status bar
- store_file(new /datum/computer_file/program/filemanager(src)) // File manager, allows text editor functions and basic file manipulation.
+ store_file(new /datum/computer_file/program/computerconfig(src)) // Computer configuration utility, allows hardware control and displays more info than status bar
+ store_file(new /datum/computer_file/program/filemanager(src)) // File manager, allows text editor functions and basic file manipulation.
store_file(new /datum/computer_file/program/robotact(src))
diff --git a/code/modules/modular_computers/hardware/network_card.dm b/code/modules/modular_computers/hardware/network_card.dm
index bba19831619..b0662785e95 100644
--- a/code/modules/modular_computers/hardware/network_card.dm
+++ b/code/modules/modular_computers/hardware/network_card.dm
@@ -3,9 +3,9 @@
desc = "A basic wireless network card for usage with standard NTNet frequencies."
power_usage = 50
icon_state = "radio_mini"
- network_id = NETWORK_CARDS // Network we are on
- var/hardware_id = null // Identification ID. Technically MAC address of this device. Can't be changed by user.
- var/identification_string = "" // Identification string, technically nickname seen in the network. Can be set by user.
+ network_id = NETWORK_CARDS // Network we are on
+ var/hardware_id = null // Identification ID. Technically MAC address of this device. Can't be changed by user.
+ var/identification_string = "" // Identification string, technically nickname seen in the network. Can be set by user.
var/long_range = 0
var/ethernet = 0 // Hard-wired, therefore always on, ignores NTNet wireless checks.
malfunction_probability = 1
diff --git a/code/modules/modular_computers/laptop_vendor.dm b/code/modules/modular_computers/laptop_vendor.dm
index 2cc4da6f9db..6a507ad7e78 100644
--- a/code/modules/modular_computers/laptop_vendor.dm
+++ b/code/modules/modular_computers/laptop_vendor.dm
@@ -13,19 +13,19 @@
var/obj/item/modular_computer/tablet/fabricated_tablet = null
// Utility vars
- var/state = 0 // 0: Select device type, 1: Select loadout, 2: Payment, 3: Thankyou screen
- var/devtype = 0 // 0: None(unselected), 1: Laptop, 2: Tablet
- var/total_price = 0 // Price of currently vended device.
+ var/state = 0 // 0: Select device type, 1: Select loadout, 2: Payment, 3: Thankyou screen
+ var/devtype = 0 // 0: None(unselected), 1: Laptop, 2: Tablet
+ var/total_price = 0 // Price of currently vended device.
var/credits = 0
// Device loadout
- var/dev_cpu = 1 // 1: Default, 2: Upgraded
- var/dev_battery = 1 // 1: Default, 2: Upgraded, 3: Advanced
- var/dev_disk = 1 // 1: Default, 2: Upgraded, 3: Advanced
- var/dev_netcard = 0 // 0: None, 1: Basic, 2: Long-Range
- var/dev_apc_recharger = 0 // 0: None, 1: Standard (LAPTOP ONLY)
- var/dev_printer = 0 // 0: None, 1: Standard
- var/dev_card = 0 // 0: None, 1: Standard
+ var/dev_cpu = 1 // 1: Default, 2: Upgraded
+ var/dev_battery = 1 // 1: Default, 2: Upgraded, 3: Advanced
+ var/dev_disk = 1 // 1: Default, 2: Upgraded, 3: Advanced
+ var/dev_netcard = 0 // 0: None, 1: Basic, 2: Long-Range
+ var/dev_apc_recharger = 0 // 0: None, 1: Standard (LAPTOP ONLY)
+ var/dev_printer = 0 // 0: None, 1: Standard
+ var/dev_card = 0 // 0: None, 1: Standard
// Removes all traces of old order and allows you to begin configuration from scratch.
/obj/machinery/lapvend/proc/reset_order()
@@ -48,7 +48,7 @@
// Recalculates the price and optionally even fabricates the device.
/obj/machinery/lapvend/proc/fabricate_and_recalc_price(fabricate = FALSE)
total_price = 0
- if(devtype == 1) // Laptop, generally cheaper to make it accessible for most station roles
+ if(devtype == 1) // Laptop, generally cheaper to make it accessible for most station roles
var/obj/item/computer_hardware/battery/battery_module = null
if(fabricate)
fabricated_laptop = new /obj/item/modular_computer/laptop/buildable(src)
@@ -111,7 +111,7 @@
fabricated_laptop.install_component(new /obj/item/computer_hardware/card_slot/secondary)
return total_price
- else if(devtype == 2) // Tablet, more expensive, not everyone could probably afford this.
+ else if(devtype == 2) // Tablet, more expensive, not everyone could probably afford this.
var/obj/item/computer_hardware/battery/battery_module = null
if(fabricate)
fabricated_tablet = new(src)
diff --git a/code/modules/movespeed/_movespeed_modifier.dm b/code/modules/movespeed/_movespeed_modifier.dm
index 248aa137b56..2a49d842fe0 100644
--- a/code/modules/movespeed/_movespeed_modifier.dm
+++ b/code/modules/movespeed/_movespeed_modifier.dm
@@ -76,7 +76,7 @@ GLOBAL_LIST_EMPTY(movespeed_modification_cache)
type_or_datum = new type_or_datum
var/datum/movespeed_modifier/existing = LAZYACCESS(movespeed_modification, type_or_datum.id)
if(existing)
- if(existing == type_or_datum) //same thing don't need to touch
+ if(existing == type_or_datum) //same thing don't need to touch
return TRUE
remove_movespeed_modifier(existing, FALSE)
if(length(movespeed_modification))
@@ -90,10 +90,10 @@ GLOBAL_LIST_EMPTY(movespeed_modification_cache)
/mob/proc/remove_movespeed_modifier(datum/movespeed_modifier/type_id_datum, update = TRUE)
var/key
if(ispath(type_id_datum))
- key = initial(type_id_datum.id) || "[type_id_datum]" //id if set, path set to string if not.
- else if(!istext(type_id_datum)) //if it isn't text it has to be a datum, as it isn't a type.
+ key = initial(type_id_datum.id) || "[type_id_datum]" //id if set, path set to string if not.
+ else if(!istext(type_id_datum)) //if it isn't text it has to be a datum, as it isn't a type.
key = type_id_datum.id
- else //assume it's an id
+ else //assume it's an id
key = type_id_datum
if(!LAZYACCESS(movespeed_modification, key))
return FALSE
@@ -201,7 +201,7 @@ GLOBAL_LIST_EMPTY(movespeed_modification_cache)
. += M.multiplicative_slowdown
/// Checks if a move speed modifier is valid and not missing any data
-/proc/movespeed_data_null_check(datum/movespeed_modifier/M) //Determines if a data list is not meaningful and should be discarded.
+/proc/movespeed_data_null_check(datum/movespeed_modifier/M) //Determines if a data list is not meaningful and should be discarded.
. = TRUE
if(M.multiplicative_slowdown)
. = FALSE
diff --git a/code/modules/ninja/__ninjaDefines.dm b/code/modules/ninja/__ninjaDefines.dm
index b02389207d8..8414f9e4244 100644
--- a/code/modules/ninja/__ninjaDefines.dm
+++ b/code/modules/ninja/__ninjaDefines.dm
@@ -1,12 +1,12 @@
//ninjacost() specificCheck defines
-#define N_STEALTH_CANCEL 1
-#define N_ADRENALINE 2
+#define N_STEALTH_CANCEL 1
+#define N_ADRENALINE 2
//ninjaDrainAct() defines for non numerical returns
-#define INVALID_DRAIN "INVALID" //This one is if the drain proc needs to cancel, eg missing variables, etc, it's important.
-#define DRAIN_RD_HACK_FAILED "RDHACKFAIL"
-#define DRAIN_MOB_SHOCK "MOBSHOCK"
-#define DRAIN_MOB_SHOCK_FAILED "MOBSHOCKFAIL"
+#define INVALID_DRAIN "INVALID" //This one is if the drain proc needs to cancel, eg missing variables, etc, it's important.
+#define DRAIN_RD_HACK_FAILED "RDHACKFAIL"
+#define DRAIN_MOB_SHOCK "MOBSHOCK"
+#define DRAIN_MOB_SHOCK_FAILED "MOBSHOCKFAIL"
//Tells whether or not someone is a space ninja
#define IS_SPACE_NINJA(ninja) (ninja.mind && ninja.mind.has_antag_datum(/datum/antagonist/ninja))
diff --git a/code/modules/ninja/suit/gloves.dm b/code/modules/ninja/suit/gloves.dm
index 6c91a155bbd..83cbb38159c 100644
--- a/code/modules/ninja/suit/gloves.dm
+++ b/code/modules/ninja/suit/gloves.dm
@@ -39,7 +39,7 @@
if(!candrain || draining)
return FALSE
if(!ishuman(loc))
- return FALSE //Only works while worn
+ return FALSE //Only works while worn
var/mob/living/carbon/human/wearer = loc
@@ -64,7 +64,7 @@
else
to_chat(wearer, "\The [A] has run dry of energy, you must find another source!")
else
- . = FALSE //as to not cancel attack_hand()
+ . = FALSE //as to not cancel attack_hand()
/obj/item/clothing/gloves/space_ninja/examine(mob/user)
. = ..()
diff --git a/code/modules/ninja/suit/ninja_equipment_actions/ninja_suit_initialisation.dm b/code/modules/ninja/suit/ninja_equipment_actions/ninja_suit_initialisation.dm
index 51167b0e0dd..763d1c33c20 100644
--- a/code/modules/ninja/suit/ninja_equipment_actions/ninja_suit_initialisation.dm
+++ b/code/modules/ninja/suit/ninja_equipment_actions/ninja_suit_initialisation.dm
@@ -1,8 +1,8 @@
-#define NINJA_LOCK_PHASE 1
-#define NINJA_ICON_GENERATE_PHASE 3
-#define NINJA_COMPLETE_PHASE 6
-#define NINJA_DEINIT_LOGOFF_PHASE 1
-#define NINJA_DEINIT_STEALTH_PHASE 5
+#define NINJA_LOCK_PHASE 1
+#define NINJA_ICON_GENERATE_PHASE 3
+#define NINJA_COMPLETE_PHASE 6
+#define NINJA_DEINIT_LOGOFF_PHASE 1
+#define NINJA_DEINIT_STEALTH_PHASE 5
GLOBAL_LIST_INIT(ninja_initialize_messages, list(
"Now initializing...",
diff --git a/code/modules/paperwork/clipboard.dm b/code/modules/paperwork/clipboard.dm
index 98a92217bbc..b2747c63d74 100644
--- a/code/modules/paperwork/clipboard.dm
+++ b/code/modules/paperwork/clipboard.dm
@@ -8,8 +8,8 @@
w_class = WEIGHT_CLASS_SMALL
throw_speed = 3
throw_range = 7
- var/obj/item/pen/haspen //The stored pen.
- var/obj/item/paper/toppaper //The topmost piece of paper.
+ var/obj/item/pen/haspen //The stored pen.
+ var/obj/item/paper/toppaper //The topmost piece of paper.
slot_flags = ITEM_SLOT_BELT
resistance_flags = FLAMMABLE
@@ -23,7 +23,7 @@
/obj/item/clipboard/Destroy()
QDEL_NULL(haspen)
- QDEL_NULL(toppaper) //let movable/Destroy handle the rest
+ QDEL_NULL(toppaper) //let movable/Destroy handle the rest
return ..()
/obj/item/clipboard/update_overlays()
@@ -54,7 +54,7 @@
else
dat += "Add Pen
"
- //The topmost paper. You can't organise contents directly in byond, so this is what we're stuck with. -Pete
+ //The topmost paper. You can't organise contents directly in byond, so this is what we're stuck with. -Pete
if(toppaper)
var/obj/item/paper/P = toppaper
dat += "Write Remove - [P.name]
"
diff --git a/code/modules/paperwork/filingcabinet.dm b/code/modules/paperwork/filingcabinet.dm
index badc0e94ecd..b496110d143 100644
--- a/code/modules/paperwork/filingcabinet.dm
+++ b/code/modules/paperwork/filingcabinet.dm
@@ -1,9 +1,9 @@
/* Filing cabinets!
* Contains:
- * Filing Cabinets
- * Security Record Cabinets
- * Medical Record Cabinets
- * Employment Contract Cabinets
+ * Filing Cabinets
+ * Security Record Cabinets
+ * Medical Record Cabinets
+ * Employment Contract Cabinets
*/
@@ -27,7 +27,7 @@
desc = "A small cabinet with drawers. This one has wheels!"
anchored = FALSE
-/obj/structure/filingcabinet/filingcabinet //not changing the path to avoid unnecessary map issues, but please don't name stuff like this in the future -Pete
+/obj/structure/filingcabinet/filingcabinet //not changing the path to avoid unnecessary map issues, but please don't name stuff like this in the future -Pete
icon_state = "tallcabinet"
@@ -136,7 +136,7 @@
counter++
P.info += ""
P.name = "paper - '[G.fields["name"]]'"
- virgin = FALSE //tabbing here is correct- it's possible for people to try and use it
+ virgin = FALSE //tabbing here is correct- it's possible for people to try and use it
//before the records have been generated, so we do this inside the loop.
/obj/structure/filingcabinet/security/attack_hand()
@@ -170,7 +170,7 @@
counter++
P.info += ""
P.name = "paper - '[G.fields["name"]]'"
- virgin = FALSE //tabbing here is correct- it's possible for people to try and use it
+ virgin = FALSE //tabbing here is correct- it's possible for people to try and use it
//before the records have been generated, so we do this inside the loop.
//ATTACK HAND IGNORING PARENT RETURN VALUE
diff --git a/code/modules/paperwork/handlabeler.dm b/code/modules/paperwork/handlabeler.dm
index 8dcd3704f3d..1ce9fd10ba0 100644
--- a/code/modules/paperwork/handlabeler.dm
+++ b/code/modules/paperwork/handlabeler.dm
@@ -39,7 +39,7 @@
. = ..()
if(!proximity)
return
- if(!mode) //if it's off, give up.
+ if(!mode) //if it's off, give up.
return
if(!labels_left)
@@ -85,7 +85,7 @@
if(istype(I, /obj/item/hand_labeler_refill))
to_chat(user, "You insert [I] into [src].")
qdel(I)
- labels_left = initial(labels_left) //Yes, it's capped at its initial value
+ labels_left = initial(labels_left) //Yes, it's capped at its initial value
/obj/item/hand_labeler/borg
name = "cyborg-hand labeler"
diff --git a/code/modules/paperwork/paper.dm b/code/modules/paperwork/paper.dm
index 4e3e6c96f5b..d8fc67bb7f3 100644
--- a/code/modules/paperwork/paper.dm
+++ b/code/modules/paperwork/paper.dm
@@ -5,7 +5,7 @@
* lipstick wiping is in code/game/objects/items/weapons/cosmetics.dm!
*/
#define MAX_PAPER_LENGTH 5000
-#define MAX_PAPER_STAMPS 30 // Too low?
+#define MAX_PAPER_STAMPS 30 // Too low?
#define MAX_PAPER_STAMPS_OVERLAYS 4
#define MODE_READING 0
#define MODE_WRITING 1
@@ -43,8 +43,8 @@
var/show_written_words = TRUE
/// The (text for the) stamps on the paper.
- var/list/stamps /// Positioning for the stamp in tgui
- var/list/stamped /// Overlay info
+ var/list/stamps /// Positioning for the stamp in tgui
+ var/list/stamped /// Overlay info
var/contact_poison // Reagent ID to transfer on contact
var/contact_poison_volume = 0
@@ -209,7 +209,7 @@
return /// Normaly you just stamp, you don't need to read the thing
else
// cut paper? the sky is the limit!
- ui_interact(user) // The other ui will be created with just read mode outside of this
+ ui_interact(user) // The other ui will be created with just read mode outside of this
return ..()
@@ -236,8 +236,8 @@
. = list()
.["text"] = info
.["max_length"] = MAX_PAPER_LENGTH
- .["paper_color"] = !color || color == "white" ? "#FFFFFF" : color // color might not be set
- .["paper_state"] = icon_state /// TODO: show the sheet will bloodied or crinkling?
+ .["paper_color"] = !color || color == "white" ? "#FFFFFF" : color // color might not be set
+ .["paper_state"] = icon_state /// TODO: show the sheet will bloodied or crinkling?
.["stamps"] = stamps
@@ -291,14 +291,14 @@
if("stamp")
var/stamp_x = text2num(params["x"])
var/stamp_y = text2num(params["y"])
- var/stamp_r = text2num(params["r"]) // rotation in degrees
+ var/stamp_r = text2num(params["r"]) // rotation in degrees
var/stamp_icon_state = params["stamp_icon_state"]
var/stamp_class = params["stamp_class"]
if (isnull(stamps))
stamps = list()
if(stamps.len < MAX_PAPER_STAMPS)
// I hate byond when dealing with freaking lists
- stamps[++stamps.len] = list(stamp_class, stamp_x, stamp_y, stamp_r) /// WHHHHY
+ stamps[++stamps.len] = list(stamp_class, stamp_x, stamp_y, stamp_r) /// WHHHHY
/// This does the overlay stuff
if (isnull(stamped))
diff --git a/code/modules/paperwork/paper_premade.dm b/code/modules/paperwork/paper_premade.dm
index 9a6e45f8d0a..7c3040baa69 100644
--- a/code/modules/paperwork/paper_premade.dm
+++ b/code/modules/paperwork/paper_premade.dm
@@ -1,5 +1,5 @@
/*
- * Premade paper
+ * Premade paper
*/
/obj/item/paper/fluff/sop
@@ -21,7 +21,7 @@
-Love, Your Dearest"}
-//////////// Job guides n' fluff
+//////////// Job guides n' fluff
/obj/item/paper/guides/jobs/hydroponics
name = "paper- 'Greetings from Billy Bob'"
@@ -92,11 +92,11 @@
"}
/*
- * Stations
+ * Stations
*/
-/////////// CentCom
+/////////// CentCom
/obj/item/paper/fluff/stations/centcom/disk_memo
name = "memo"
@@ -110,7 +110,7 @@
info = "
CentCom Security
Port Division
Official Bulletin
Inspector,
There is an emergency shuttle arriving today.
Approval is restricted to Nanotrasen employees only. Deny all other entrants.
CentCom Port Commissioner"
-/////////// Lavaland
+/////////// Lavaland
/obj/item/paper/fluff/stations/lavaland/orm_notice
name = "URGENT!"
diff --git a/code/modules/paperwork/paperplane.dm b/code/modules/paperwork/paperplane.dm
index 1e7b073fa79..e926df0013c 100644
--- a/code/modules/paperwork/paperplane.dm
+++ b/code/modules/paperwork/paperplane.dm
@@ -75,7 +75,7 @@
to_chat(user, "You should unfold [src] before changing it!")
return
- else if(istype(P, /obj/item/stamp)) //we don't randomize stamps on a paperplane
+ else if(istype(P, /obj/item/stamp)) //we don't randomize stamps on a paperplane
internalPaper.attackby(P, user) //spoofed attack to update internal paper.
update_icon()
add_fingerprint(user)
diff --git a/code/modules/paperwork/pen.dm b/code/modules/paperwork/pen.dm
index 0cf8a12e5ef..d231aaca6c6 100644
--- a/code/modules/paperwork/pen.dm
+++ b/code/modules/paperwork/pen.dm
@@ -1,9 +1,9 @@
-/* Pens!
- * Contains:
- * Pens
- * Sleepy Pens
- * Parapens
- * Edaggers
+/* Pens!
+ * Contains:
+ * Pens
+ * Sleepy Pens
+ * Parapens
+ * Edaggers
*/
@@ -25,7 +25,7 @@
custom_materials = list(/datum/material/iron=10)
pressure_resistance = 2
grind_results = list(/datum/reagent/iron = 2, /datum/reagent/iodine = 1)
- var/colour = "black" //what colour the ink is!
+ var/colour = "black" //what colour the ink is!
var/degrees = 0
var/font = PEN_FONT
embedding = list()
diff --git a/code/modules/paperwork/photocopier.dm b/code/modules/paperwork/photocopier.dm
index 3d213786a09..ea90e185cc0 100644
--- a/code/modules/paperwork/photocopier.dm
+++ b/code/modules/paperwork/photocopier.dm
@@ -1,19 +1,19 @@
/// For use with the `color_mode` var. Photos will be printed in greyscale while the var has this value.
-#define PHOTO_GREYSCALE "Greyscale"
+#define PHOTO_GREYSCALE "Greyscale"
/// For use with the `color_mode` var. Photos will be printed in full color while the var has this value.
-#define PHOTO_COLOR "Color"
+#define PHOTO_COLOR "Color"
/// How much toner is used for making a copy of a paper.
-#define PAPER_TONER_USE 0.125
+#define PAPER_TONER_USE 0.125
/// How much toner is used for making a copy of a photo.
-#define PHOTO_TONER_USE 0.625
+#define PHOTO_TONER_USE 0.625
/// How much toner is used for making a copy of a document.
-#define DOCUMENT_TONER_USE 0.75
+#define DOCUMENT_TONER_USE 0.75
/// How much toner is used for making a copy of an ass.
-#define ASS_TONER_USE 0.625
+#define ASS_TONER_USE 0.625
/// The maximum amount of copies you can make with one press of the copy button.
-#define MAX_COPIES_AT_ONCE 10
+#define MAX_COPIES_AT_ONCE 10
/obj/machinery/photocopier
name = "photocopier"
@@ -238,8 +238,8 @@
copied_paper.info = ""
var/copied_info = paper_copy.info
- copied_info = replacetext(copied_info, ""
copied_paper.name = paper_copy.name
diff --git a/code/modules/photography/_pictures.dm b/code/modules/photography/_pictures.dm
index daa0fc53c1e..e9411fd64dd 100644
--- a/code/modules/photography/_pictures.dm
+++ b/code/modules/photography/_pictures.dm
@@ -9,8 +9,8 @@
var/psize_x = 96
var/psize_y = 96
var/has_blueprints = FALSE
- var/logpath //If the picture has been logged this is the path.
- var/id //this var is NOT protected because the worst you can do with this that you couldn't do otherwise is overwrite photos, and photos aren't going to be used as attack logs/investigations anytime soon.
+ var/logpath //If the picture has been logged this is the path.
+ var/id //this var is NOT protected because the worst you can do with this that you couldn't do otherwise is overwrite photos, and photos aren't going to be used as attack logs/investigations anytime soon.
///Was this image capable of seeing ghosts?
var/see_ghosts = CAMERA_NO_GHOSTS
@@ -141,7 +141,7 @@
if(!CONFIG_GET(flag/log_pictures))
return
if(logpath)
- return //we're already logged
+ return //we're already logged
var/number = GLOB.picture_logging_id++
var/finalpath = "[GLOB.picture_log_directory]/[number].png"
fcopy(icon(picture_image, dir = SOUTH, frame = 1), finalpath)
@@ -163,7 +163,7 @@
P.picture_name = picture_name
P.picture_desc = picture_desc
if(picture_image)
- P.picture_image = icon(picture_image) //Copy, not reference.
+ P.picture_image = icon(picture_image) //Copy, not reference.
if(picture_icon)
P.picture_icon = icon(picture_icon)
P.psize_x = psize_x - cropx * 2
diff --git a/code/modules/photography/camera/camera.dm b/code/modules/photography/camera/camera.dm
index 73019014aad..789a5b3e99a 100644
--- a/code/modules/photography/camera/camera.dm
+++ b/code/modules/photography/camera/camera.dm
@@ -27,7 +27,7 @@
var/pictures_left = 10
var/on = TRUE
var/cooldown = 64
- var/blending = FALSE //lets not take pictures while the previous is still processing!
+ var/blending = FALSE //lets not take pictures while the previous is still processing!
var/see_ghosts = CAMERA_NO_GHOSTS //for the spoop of it
var/obj/item/disk/holodisk/disk
var/sound/custom_sound
@@ -116,7 +116,7 @@
return FALSE
else if(!(get_turf(target) in get_hear(world.view, user)))
return FALSE
- else //user is an atom
+ else //user is an atom
if(!(get_turf(target) in view(world.view, user)))
return FALSE
return TRUE
diff --git a/code/modules/photography/camera/camera_image_capturing.dm b/code/modules/photography/camera/camera_image_capturing.dm
index 95966711a4f..d26b95e9c6d 100644
--- a/code/modules/photography/camera/camera_image_capturing.dm
+++ b/code/modules/photography/camera/camera_image_capturing.dm
@@ -1,6 +1,6 @@
/obj/effect/appearance_clone
-/obj/effect/appearance_clone/New(loc, atom/A) //Intentionally not Initialize(), to make sure the clone assumes the intended appearance in time for the camera getFlatIcon.
+/obj/effect/appearance_clone/New(loc, atom/A) //Intentionally not Initialize(), to make sure the clone assumes the intended appearance in time for the camera getFlatIcon.
if(istype(A))
appearance = A.appearance
dir = A.dir
@@ -23,7 +23,7 @@
var/offset_x = T.x - center.x
var/offset_y = T.y - center.y
var/turf/newT = locate(cloned_center_x + offset_x, cloned_center_y + offset_y, clone_area.bottom_left_coords[3])
- if(!(newT in clone_area.reserved_turfs)) //sanity check so we don't overwrite other areas somehow
+ if(!(newT in clone_area.reserved_turfs)) //sanity check so we don't overwrite other areas somehow
continue
atoms += new /obj/effect/appearance_clone(newT, T)
if(T.loc.icon_state)
@@ -105,7 +105,7 @@
CHECK_TICK
if(!silent)
- if(istype(custom_sound)) //This is where the camera actually finishes its exposure.
+ if(istype(custom_sound)) //This is where the camera actually finishes its exposure.
playsound(loc, custom_sound, 75, TRUE, -3)
else
playsound(loc, pick('sound/items/polaroid1.ogg', 'sound/items/polaroid2.ogg'), 75, TRUE, -3)
diff --git a/code/modules/photography/camera/silicon_camera.dm b/code/modules/photography/camera/silicon_camera.dm
index 454c2474ff6..88c2e4ef53f 100644
--- a/code/modules/photography/camera/silicon_camera.dm
+++ b/code/modules/photography/camera/silicon_camera.dm
@@ -86,6 +86,6 @@
var/obj/item/photo/p = new /obj/item/photo(C.loc, selection)
p.pixel_x = p.base_pixel_x + rand(-10, 10)
p.pixel_y = p.base_pixel_y + rand(-10, 10)
- C.toner -= printcost //All fun allowed.
+ C.toner -= printcost //All fun allowed.
visible_message("[C.name] spits out a photograph from a narrow slot on its chassis.")
to_chat(usr, "You print a photograph.")
diff --git a/code/modules/photography/photos/photo.dm b/code/modules/photography/photos/photo.dm
index ee4cc083e0a..5f4bb327b31 100644
--- a/code/modules/photography/photos/photo.dm
+++ b/code/modules/photography/photos/photo.dm
@@ -12,7 +12,7 @@
grind_results = list(/datum/reagent/iodine = 4)
material_flags = MATERIAL_NO_EFFECTS
var/datum/picture/picture
- var/scribble //Scribble on the back.
+ var/scribble //Scribble on the back.
/obj/item/photo/Initialize(mapload, datum/picture/P, datum_name = TRUE, datum_desc = TRUE)
set_picture(P, datum_name, datum_desc, TRUE)
diff --git a/code/modules/power/apc.dm b/code/modules/power/apc.dm
index 2b2c4a11623..b734afcbaf1 100644
--- a/code/modules/power/apc.dm
+++ b/code/modules/power/apc.dm
@@ -1,30 +1,30 @@
//update_state
-#define UPSTATE_CELL_IN (1<<0)
-#define UPSTATE_OPENED1 (1<<1)
-#define UPSTATE_OPENED2 (1<<2)
-#define UPSTATE_MAINT (1<<3)
-#define UPSTATE_BROKE (1<<4)
-#define UPSTATE_BLUESCREEN (1<<5)
-#define UPSTATE_WIREEXP (1<<6)
-#define UPSTATE_ALLGOOD (1<<7)
+#define UPSTATE_CELL_IN (1<<0)
+#define UPSTATE_OPENED1 (1<<1)
+#define UPSTATE_OPENED2 (1<<2)
+#define UPSTATE_MAINT (1<<3)
+#define UPSTATE_BROKE (1<<4)
+#define UPSTATE_BLUESCREEN (1<<5)
+#define UPSTATE_WIREEXP (1<<6)
+#define UPSTATE_ALLGOOD (1<<7)
#define APC_RESET_EMP "emp"
//update_overlay
-#define APC_UPOVERLAY_CHARGEING0 (1<<0)
-#define APC_UPOVERLAY_CHARGEING1 (1<<1)
-#define APC_UPOVERLAY_CHARGEING2 (1<<2)
-#define APC_UPOVERLAY_EQUIPMENT0 (1<<3)
-#define APC_UPOVERLAY_EQUIPMENT1 (1<<4)
-#define APC_UPOVERLAY_EQUIPMENT2 (1<<5)
-#define APC_UPOVERLAY_LIGHTING0 (1<<6)
-#define APC_UPOVERLAY_LIGHTING1 (1<<7)
-#define APC_UPOVERLAY_LIGHTING2 (1<<8)
-#define APC_UPOVERLAY_ENVIRON0 (1<<9)
-#define APC_UPOVERLAY_ENVIRON1 (1<<10)
-#define APC_UPOVERLAY_ENVIRON2 (1<<11)
-#define APC_UPOVERLAY_LOCKED (1<<12)
-#define APC_UPOVERLAY_OPERATING (1<<13)
+#define APC_UPOVERLAY_CHARGEING0 (1<<0)
+#define APC_UPOVERLAY_CHARGEING1 (1<<1)
+#define APC_UPOVERLAY_CHARGEING2 (1<<2)
+#define APC_UPOVERLAY_EQUIPMENT0 (1<<3)
+#define APC_UPOVERLAY_EQUIPMENT1 (1<<4)
+#define APC_UPOVERLAY_EQUIPMENT2 (1<<5)
+#define APC_UPOVERLAY_LIGHTING0 (1<<6)
+#define APC_UPOVERLAY_LIGHTING1 (1<<7)
+#define APC_UPOVERLAY_LIGHTING2 (1<<8)
+#define APC_UPOVERLAY_ENVIRON0 (1<<9)
+#define APC_UPOVERLAY_ENVIRON1 (1<<10)
+#define APC_UPOVERLAY_ENVIRON2 (1<<11)
+#define APC_UPOVERLAY_LOCKED (1<<12)
+#define APC_UPOVERLAY_OPERATING (1<<13)
#define APC_ELECTRONICS_MISSING 0 // None
#define APC_ELECTRONICS_INSTALLED 1 // Installed but not secured
@@ -65,8 +65,8 @@
var/area/area
var/areastring = null
var/obj/item/stock_parts/cell/cell
- var/start_charge = 90 // initial cell charge %
- var/cell_type = /obj/item/stock_parts/cell/upgraded //Base cell has 2500 capacity. Enter the path of a different cell you want to use. cell determines charge rates, max capacity, ect. These can also be changed with other APC vars, but isn't recommended to minimize the risk of accidental usage of dirty editted APCs
+ var/start_charge = 90 // initial cell charge %
+ var/cell_type = /obj/item/stock_parts/cell/upgraded //Base cell has 2500 capacity. Enter the path of a different cell you want to use. cell determines charge rates, max capacity, ect. These can also be changed with other APC vars, but isn't recommended to minimize the risk of accidental usage of dirty editted APCs
var/opened = APC_COVER_CLOSED
var/shorted = FALSE
var/lighting = 3
@@ -86,7 +86,7 @@
var/lastused_environ = 0
var/lastused_total = 0
var/main_status = 0
- powernet = FALSE // set so that APCs aren't found as powernet nodes //Hackish, Horrible, was like this before I changed it :(
+ powernet = FALSE // set so that APCs aren't found as powernet nodes //Hackish, Horrible, was like this before I changed it :(
var/malfhack = FALSE //New var for my changes to AI malf. --NeoFite
var/mob/living/silicon/ai/malfai = null //See above --NeoFite
var/has_electronics = APC_ELECTRONICS_MISSING // 0 - none, 1 - plugged in, 2 - secured by screwdriver
@@ -165,7 +165,7 @@
// this allows the APC to be embedded in a wall, yet still inside an area
if (building)
setDir(ndir)
- tdir = dir // to fix Vars bug
+ tdir = dir // to fix Vars bug
setDir(SOUTH)
switch(tdir)
@@ -234,7 +234,7 @@
// is starting with a power cell installed, create it and set its charge level
if(cell_type)
cell = new cell_type
- cell.charge = start_charge * cell.maxcharge / 100 // (convert percentage to actual value)
+ cell.charge = start_charge * cell.maxcharge / 100 // (convert percentage to actual value)
var/area/A = loc.loc
@@ -292,7 +292,7 @@
// update the APC icon to show the three base states
// also add overlays for indicator lights
/obj/machinery/power/apc/update_icon()
- var/update = check_updates() //returns 0 if no need to update icons.
+ var/update = check_updates() //returns 0 if no need to update icons.
// 1 if we need to update the icon_state
// 2 if we need to update the overlays
if(!update)
@@ -555,7 +555,7 @@
if(issilicon(user) && get_dist(src,user)>1)
return attack_hand(user)
- if (istype(W, /obj/item/stock_parts/cell) && opened)
+ if (istype(W, /obj/item/stock_parts/cell) && opened)
if(cell)
to_chat(user, "There is a power cell already installed!")
return
@@ -1084,7 +1084,7 @@
if(!is_station_level(z))
return
malf.ShutOffDoomsdayDevice()
- occupier = new /mob/living/silicon/ai(src, malf.laws, malf) //DEAR GOD WHY? //IKR????
+ occupier = new /mob/living/silicon/ai(src, malf.laws, malf) //DEAR GOD WHY? //IKR????
occupier.adjustOxyLoss(malf.getOxyLoss())
if(!findtext(occupier.name, "APC Copy"))
occupier.name = "[malf.name] APC Copy"
@@ -1227,22 +1227,22 @@
if(cell && !shorted)
// draw power from cell as before to power the area
- var/cellused = min(cell.charge, GLOB.CELLRATE * lastused_total) // clamp deduction to a max, amount left in cell
+ var/cellused = min(cell.charge, GLOB.CELLRATE * lastused_total) // clamp deduction to a max, amount left in cell
cell.use(cellused)
- if(excess > lastused_total) // if power excess recharge the cell
+ if(excess > lastused_total) // if power excess recharge the cell
// by the same amount just used
cell.give(cellused)
- add_load(cellused/GLOB.CELLRATE) // add the load used to recharge the cell
+ add_load(cellused/GLOB.CELLRATE) // add the load used to recharge the cell
- else // no excess, and not enough per-apc
- if((cell.charge/GLOB.CELLRATE + excess) >= lastused_total) // can we draw enough from cell+grid to cover last usage?
- cell.charge = min(cell.maxcharge, cell.charge + GLOB.CELLRATE * excess) //recharge with what we can
- add_load(excess) // so draw what we can from the grid
+ else // no excess, and not enough per-apc
+ if((cell.charge/GLOB.CELLRATE + excess) >= lastused_total) // can we draw enough from cell+grid to cover last usage?
+ cell.charge = min(cell.maxcharge, cell.charge + GLOB.CELLRATE * excess) //recharge with what we can
+ add_load(excess) // so draw what we can from the grid
charging = APC_NOT_CHARGING
- else // not enough power available to run the last tick!
+ else // not enough power available to run the last tick!
charging = APC_NOT_CHARGING
chargecount = 0
// This turns everything off in the case that there is still a charge left on the battery, just not enough to run the room.
@@ -1259,22 +1259,22 @@
else if(longtermpower > -10)
longtermpower -= 2
- if(cell.charge <= 0) // zero charge, turn all off
+ if(cell.charge <= 0) // zero charge, turn all off
equipment = autoset(equipment, 0)
lighting = autoset(lighting, 0)
environ = autoset(environ, 0)
area.poweralert(TRUE, src)
- else if(cell.percent() < 15 && longtermpower < 0) // <15%, turn off lighting & equipment
+ else if(cell.percent() < 15 && longtermpower < 0) // <15%, turn off lighting & equipment
equipment = autoset(equipment, 2)
lighting = autoset(lighting, 2)
environ = autoset(environ, 1)
area.poweralert(TRUE, src)
- else if(cell.percent() < 30 && longtermpower < 0) // <30%, turn off equipment
+ else if(cell.percent() < 30 && longtermpower < 0) // <30%, turn off equipment
equipment = autoset(equipment, 2)
lighting = autoset(lighting, 1)
environ = autoset(environ, 1)
area.poweralert(TRUE, src)
- else // otherwise all can be on
+ else // otherwise all can be on
equipment = autoset(equipment, 1)
lighting = autoset(lighting, 1)
environ = autoset(environ, 1)
@@ -1284,14 +1284,14 @@
// now trickle-charge the cell
if(chargemode && charging == APC_CHARGING && operating)
- if(excess > 0) // check to make sure we have enough to charge
+ if(excess > 0) // check to make sure we have enough to charge
// Max charge is capped to % per second constant
var/ch = min(excess*GLOB.CELLRATE, cell.maxcharge*GLOB.CHARGELEVEL)
add_load(ch/GLOB.CELLRATE) // Removes the power we're taking from the grid
cell.give(ch) // actually recharge the cell
else
- charging = APC_NOT_CHARGING // stop charging
+ charging = APC_NOT_CHARGING // stop charging
chargecount = 0
// show cell as fully charged if so
@@ -1338,15 +1338,15 @@
/obj/machinery/power/apc/proc/autoset(val, on)
if(on==0)
- if(val==2) // if on, return off
+ if(val==2) // if on, return off
return 0
- else if(val==3) // if auto-on, return auto-off
+ else if(val==3) // if auto-on, return auto-off
return 1
else if(on==1)
- if(val==1) // if auto-off, return auto-on
+ if(val==1) // if auto-off, return auto-on
return 3
else if(on==2)
- if(val==3) // if auto-on, return auto-off
+ if(val==3) // if auto-on, return auto-off
return 1
return val
diff --git a/code/modules/power/cable.dm b/code/modules/power/cable.dm
index db8c2956235..8be77dcf72d 100644
--- a/code/modules/power/cable.dm
+++ b/code/modules/power/cable.dm
@@ -22,7 +22,7 @@ GLOBAL_LIST_INIT(wire_node_generating_types, typecacheof(list(/obj/structure/gri
obj_flags = CAN_BE_HIT | ON_BLUEPRINTS
var/linked_dirs = 0 //bitflag
var/node = FALSE //used for sprites display
- var/cable_layer = CABLE_LAYER_2 //bitflag
+ var/cable_layer = CABLE_LAYER_2 //bitflag
var/machinery_layer = MACHINERY_LAYER_1 //bitflag
var/datum/powernet/powernet
@@ -110,14 +110,14 @@ GLOBAL_LIST_INIT(wire_node_generating_types, typecacheof(list(/obj/structure/gri
C.linked_dirs &= ~inverse
C.update_icon()
-/obj/structure/cable/Destroy() // called when a cable is deleted
+/obj/structure/cable/Destroy() // called when a cable is deleted
Disconnect_cable()
if(powernet)
- cut_cable_from_powernet() // update the powernets
- GLOB.cable_list -= src //remove it from global cable list
+ cut_cable_from_powernet() // update the powernets
+ GLOB.cable_list -= src //remove it from global cable list
- return ..() // then go ahead and delete the cable
+ return ..() // then go ahead and delete the cable
/obj/structure/cable/deconstruct(disassembled = TRUE)
if(!(flags_1 & NODECONSTRUCT_1))
@@ -164,7 +164,7 @@ GLOBAL_LIST_INIT(wire_node_generating_types, typecacheof(list(/obj/structure/gri
return
else if(W.tool_behaviour == TOOL_MULTITOOL)
- if(powernet && (powernet.avail > 0)) // is it powered?
+ if(powernet && (powernet.avail > 0)) // is it powered?
to_chat(user, "Total power: [DisplayPower(powernet.avail)]\nLoad: [DisplayPower(powernet.load)]\nExcess power: [DisplayPower(surplus())]")
else
to_chat(user, "The cable is not powered.")
@@ -668,7 +668,7 @@ GLOBAL_LIST_INIT(wire_node_generating_types, typecacheof(list(/obj/structure/gri
var/turf/T = get_turf(src)
for(var/obj/structure/cable/C in T.contents - src)
if(C.cable_layer & cable_layer)
- C.deconstruct() // remove adversary cable
+ C.deconstruct() // remove adversary cable
if(!mapload)
auto_propagate_cut_cable(src)
@@ -682,12 +682,12 @@ GLOBAL_LIST_INIT(wire_node_generating_types, typecacheof(list(/obj/structure/gri
vis_contents += cable_node_3
update_icon()
-/obj/structure/cable/multilayer/Destroy() // called when a cable is deleted
+/obj/structure/cable/multilayer/Destroy() // called when a cable is deleted
QDEL_NULL(machinery_node)
QDEL_NULL(cable_node_1)
QDEL_NULL(cable_node_2)
QDEL_NULL(cable_node_3)
- return ..() // then go ahead and delete the cable
+ return ..() // then go ahead and delete the cable
/obj/structure/cable/multilayer/examine(mob/user)
. += ..()
@@ -755,8 +755,8 @@ GLOBAL_LIST(hub_radial_layer_list)
var/turf/T = get_turf(src)
for(var/obj/structure/cable/C in T.contents - src)
if(C.cable_layer & cable_layer)
- C.deconstruct() // remove adversary cable
- auto_propagate_cut_cable(src) // update the powernets
+ C.deconstruct() // remove adversary cable
+ auto_propagate_cut_cable(src) // update the powernets
/obj/structure/cable/multilayer/CtrlClick(mob/living/user)
to_chat(user, "You pust reset button.")
diff --git a/code/modules/power/cell.dm b/code/modules/power/cell.dm
index 34a0b0678d0..d8098f92b07 100644
--- a/code/modules/power/cell.dm
+++ b/code/modules/power/cell.dm
@@ -15,11 +15,11 @@
throw_speed = 2
throw_range = 5
w_class = WEIGHT_CLASS_SMALL
- var/charge = 0 // note %age conveted to actual charge in New
+ var/charge = 0 // note %age conveted to actual charge in New
var/maxcharge = 1000
custom_materials = list(/datum/material/iron=700, /datum/material/glass=50)
grind_results = list(/datum/reagent/lithium = 15, /datum/reagent/iron = 5, /datum/reagent/silicon = 5)
- var/rigged = FALSE /// If the cell has been booby-trapped by injecting it with plasma. Chance on use() to explode.
+ var/rigged = FALSE /// If the cell has been booby-trapped by injecting it with plasma. Chance on use() to explode.
var/corrupted = FALSE /// If the power cell was damaged by an explosion, chance for it to become corrupted and function the same as rigged.
var/chargerate = 100 //how much power is given every tick in a recharger
var/ratingdesc = TRUE
@@ -60,7 +60,7 @@
else
. += mutable_appearance('icons/obj/power.dmi', "cell-o1")
-/obj/item/stock_parts/cell/proc/percent() // return % charge of cell
+/obj/item/stock_parts/cell/proc/percent() // return % charge of cell
return 100*charge/maxcharge
// use power from a cell
@@ -219,7 +219,7 @@
/obj/item/stock_parts/cell/secborg
name = "security borg rechargeable D battery"
- maxcharge = 600 //600 max charge / 100 charge per shot = six shots
+ maxcharge = 600 //600 max charge / 100 charge per shot = six shots
custom_materials = list(/datum/material/glass=40)
/obj/item/stock_parts/cell/secborg/empty/Initialize()
@@ -364,7 +364,7 @@
name = "beam rifle capacitor"
desc = "A high powered capacitor that can provide huge amounts of energy in an instant."
maxcharge = 50000
- chargerate = 5000 //Extremely energy intensive
+ chargerate = 5000 //Extremely energy intensive
/obj/item/stock_parts/cell/beam_rifle/corrupt()
return
diff --git a/code/modules/power/generator.dm b/code/modules/power/generator.dm
index 20417cd443c..aac314828dc 100644
--- a/code/modules/power/generator.dm
+++ b/code/modules/power/generator.dm
@@ -42,7 +42,7 @@
. += "teg-oc[lastcirc]"
-#define GENRATE 800 // generator output coefficient from Q
+#define GENRATE 800 // generator output coefficient from Q
/obj/machinery/power/generator/process_atmos()
diff --git a/code/modules/power/gravitygenerator.dm b/code/modules/power/gravitygenerator.dm
index ee48b3e4357..3167b23563f 100644
--- a/code/modules/power/gravitygenerator.dm
+++ b/code/modules/power/gravitygenerator.dm
@@ -131,7 +131,7 @@ GLOBAL_LIST_EMPTY(gravity_generators) // We will keep track of this by adding ne
var/charge_count = 100
var/current_overlay = null
var/broken_state = 0
- var/setting = 1 //Gravity value when on
+ var/setting = 1 //Gravity value when on
/obj/machinery/gravity_generator/main/Destroy() // If we somehow get deleted, remove all of our other parts.
investigate_log("was destroyed!", INVESTIGATE_GRAVITY)
diff --git a/code/modules/power/lighting.dm b/code/modules/power/lighting.dm
index 9aacbd15d9e..6a9d305ce71 100644
--- a/code/modules/power/lighting.dm
+++ b/code/modules/power/lighting.dm
@@ -213,7 +213,7 @@
name = "light fixture"
icon = 'icons/obj/lighting.dmi' //ICON OVERRIDEN IN SKYRAT AESTHETICS - SEE MODULE
var/overlayicon = 'icons/obj/lighting_overlay.dmi' //ICON OVERRIDEN IN SKYRAT AESTHETICS - SEE MODULE
- var/base_state = "tube" // base description and icon_state
+ var/base_state = "tube" // base description and icon_state
icon_state = "tube"
desc = "A lighting fixture."
layer = WALL_OBJ_LAYER
@@ -222,36 +222,36 @@
idle_power_usage = 2
active_power_usage = 20
power_channel = AREA_USAGE_LIGHT //Lights are calc'd via area so they dont need to be in the machine list
- var/on = FALSE // 1 if on, 0 if off
+ var/on = FALSE // 1 if on, 0 if off
var/on_gs = FALSE
var/static_power_used = 0
- var/brightness = 8 // luminosity when on, also used in power calculation
- var/bulb_power = 1 // basically the alpha of the emitted light source
- var/bulb_colour = "#f3fffa" // befault colour of the light.
- var/status = LIGHT_OK // LIGHT_OK, _EMPTY, _BURNED or _BROKEN
+ var/brightness = 8 // luminosity when on, also used in power calculation
+ var/bulb_power = 1 // basically the alpha of the emitted light source
+ var/bulb_colour = "#f3fffa" // befault colour of the light.
+ var/status = LIGHT_OK // LIGHT_OK, _EMPTY, _BURNED or _BROKEN
var/flickering = FALSE
- var/light_type = /obj/item/light/tube // the type of light item
+ var/light_type = /obj/item/light/tube // the type of light item
var/fitting = "tube"
- var/switchcount = 0 // count of number of times switched on/off
+ var/switchcount = 0 // count of number of times switched on/off
// this is used to calc the probability the light burns out
- var/rigged = FALSE // true if rigged to explode
+ var/rigged = FALSE // true if rigged to explode
var/obj/item/stock_parts/cell/cell
- var/start_with_cell = TRUE // if true, this fixture generates a very weak cell at roundstart
+ var/start_with_cell = TRUE // if true, this fixture generates a very weak cell at roundstart
- var/nightshift_enabled = FALSE //Currently in night shift mode?
- var/nightshift_allowed = TRUE //Set to FALSE to never let this light get switched to night mode.
+ var/nightshift_enabled = FALSE //Currently in night shift mode?
+ var/nightshift_allowed = TRUE //Set to FALSE to never let this light get switched to night mode.
var/nightshift_brightness = 8
var/nightshift_light_power = 0.45
var/nightshift_light_color = "#FFDDCC"
- var/emergency_mode = FALSE // if true, the light is in emergency mode
- var/no_emergency = FALSE // if true, this light cannot ever have an emergency mode
- var/bulb_emergency_brightness_mul = 0.25 // multiplier for this light's base brightness in emergency power mode
- var/bulb_emergency_colour = "#FF3232" // determines the colour of the light while it's in emergency mode
- var/bulb_emergency_pow_mul = 0.75 // the multiplier for determining the light's power in emergency mode
- var/bulb_emergency_pow_min = 0.5 // the minimum value for the light's power in emergency mode
+ var/emergency_mode = FALSE // if true, the light is in emergency mode
+ var/no_emergency = FALSE // if true, this light cannot ever have an emergency mode
+ var/bulb_emergency_brightness_mul = 0.25 // multiplier for this light's base brightness in emergency power mode
+ var/bulb_emergency_colour = "#FF3232" // determines the colour of the light while it's in emergency mode
+ var/bulb_emergency_pow_mul = 0.75 // the multiplier for determining the light's power in emergency mode
+ var/bulb_emergency_pow_min = 0.5 // the minimum value for the light's power in emergency mode
/obj/machinery/light/broken
status = LIGHT_BROKEN
@@ -379,12 +379,12 @@
var/area/A = get_area(src)
if(A)
on = FALSE
-// A.update_lights()
+// A.update_lights()
QDEL_NULL(cell)
return ..()
/obj/machinery/light/update_icon_state()
- switch(status) // set icon_states
+ switch(status) // set icon_states
if(LIGHT_OK)
var/area/A = get_area(src)
if(emergency_mode || (A?.fire))
@@ -757,13 +757,13 @@
to_chat(user, "You telekinetically remove the light [fitting].")
else
var/obj/item/bodypart/affecting = H.get_bodypart("[(user.active_hand_index % 2 == 0) ? "r" : "l" ]_arm")
- if(affecting?.receive_damage( 0, 5 )) // 5 burn damage
+ if(affecting?.receive_damage( 0, 5 )) // 5 burn damage
H.update_damage_overlays()
if(HAS_TRAIT(user, TRAIT_LIGHTBULB_REMOVER))
to_chat(user, "You feel like you're burning, but you can push through.")
if(!do_after(user, 5 SECONDS, target = src))
return
- if(affecting?.receive_damage( 0, 10 )) // 10 more burn damage
+ if(affecting?.receive_damage( 0, 10 )) // 10 more burn damage
H.update_damage_overlays()
to_chat(user, "You manage to remove the light [fitting], shattering it in process.")
break_light_tube()
@@ -857,7 +857,7 @@
/obj/machinery/light/proc/explode()
set waitfor = 0
var/turf/T = get_turf(src.loc)
- break_light_tube() // break it first to give a warning
+ break_light_tube() // break it first to give a warning
sleep(2)
explosion(T, 0, 0, 2, 2)
sleep(1)
@@ -872,12 +872,12 @@
force = 2
throwforce = 5
w_class = WEIGHT_CLASS_TINY
- var/status = LIGHT_OK // LIGHT_OK, LIGHT_BURNED or LIGHT_BROKEN
+ var/status = LIGHT_OK // LIGHT_OK, LIGHT_BURNED or LIGHT_BROKEN
var/base_state
- var/switchcount = 0 // number of times switched
+ var/switchcount = 0 // number of times switched
custom_materials = list(/datum/material/glass=100)
grind_results = list(/datum/reagent/silicon = 5, /datum/reagent/nitrogen = 10) //Nitrogen is used as a cheaper alternative to argon in incandescent lighbulbs
- var/rigged = FALSE // true if rigged to explode
+ var/rigged = FALSE // true if rigged to explode
var/brightness = 2 //how much light it gives off
/obj/item/light/suicide_act(mob/living/carbon/user)
@@ -1000,7 +1000,7 @@
/obj/machinery/light/floor
name = "floor light"
icon = 'icons/obj/lighting.dmi'
- base_state = "floor" // base description and icon_state
+ base_state = "floor" // base description and icon_state
icon_state = "floor"
brightness = 4
layer = 2.5
diff --git a/code/modules/power/pipecleaners.dm b/code/modules/power/pipecleaners.dm
index adecef56c63..25ab5081299 100644
--- a/code/modules/power/pipecleaners.dm
+++ b/code/modules/power/pipecleaners.dm
@@ -23,9 +23,9 @@ GLOBAL_LIST_INIT(pipe_cleaner_colors, list(
/* Cable directions (d1 and d2)
* 9 1 5
- * \ | /
+ * \ | /
* 8 - 0 - 4
- * / | \
+ * / | \
* 10 2 6
If d1 = 0 and d2 = 0, there's no pipe_cleaner
@@ -92,12 +92,12 @@ By design, d1 is the smallest direction and d2 is the highest
color = pipe_cleaner_colors[random_color]
update_icon()
-/obj/structure/pipe_cleaner/Destroy() // called when a pipe_cleaner is deleted
+/obj/structure/pipe_cleaner/Destroy() // called when a pipe_cleaner is deleted
//If we have a stored item at this point, lets just delete it, since that should be
//handled by deconstruction
if(stored)
QDEL_NULL(stored)
- return ..() // then go ahead and delete the pipe_cleaner
+ return ..() // then go ahead and delete the pipe_cleaner
/obj/structure/pipe_cleaner/deconstruct(disassembled = TRUE)
if(!(flags_1 & NODECONSTRUCT_1))
@@ -334,10 +334,10 @@ By design, d1 is the smallest direction and d2 is the highest
var/turf/T = C.loc
- if(!isturf(T)) // sanity check
+ if(!isturf(T)) // sanity check
return
- if(get_dist(C, user) > 1) // make sure it's close enough
+ if(get_dist(C, user) > 1) // make sure it's close enough
to_chat(user, "You can't lay pipe cleaner at a place that far away!")
return
@@ -352,7 +352,7 @@ By design, d1 is the smallest direction and d2 is the highest
// one end of the clicked pipe_cleaner is pointing towards us and no direction was supplied
if((C.d1 == dirn || C.d2 == dirn) && !forceddir)
- if(!U.can_have_cabling()) //checking if it's a plating or catwalk
+ if(!U.can_have_cabling()) //checking if it's a plating or catwalk
if (showerror)
to_chat(user, "You can only lay pipe cleaners on catwalks and plating!")
return
@@ -360,9 +360,9 @@ By design, d1 is the smallest direction and d2 is the highest
// pipe_cleaner is pointing at us, we're standing on an open tile
// so create a stub pointing at the clicked pipe_cleaner on our tile
- var/fdirn = turn(dirn, 180) // the opposite direction
+ var/fdirn = turn(dirn, 180) // the opposite direction
- for(var/obj/structure/pipe_cleaner/LC in U) // check to make sure there's not a pipe_cleaner there already
+ for(var/obj/structure/pipe_cleaner/LC in U) // check to make sure there's not a pipe_cleaner there already
if(LC.d1 == fdirn || LC.d2 == fdirn)
if (showerror)
to_chat(user, "There's already a pipe cleaner at that position!")
@@ -382,19 +382,19 @@ By design, d1 is the smallest direction and d2 is the highest
// exisiting pipe_cleaner doesn't point at our position or we have a supplied direction, so see if it's a stub
else if(C.d1 == 0)
// if so, make it a full pipe_cleaner pointing from it's old direction to our dirn
- var/nd1 = C.d2 // these will be the new directions
+ var/nd1 = C.d2 // these will be the new directions
var/nd2 = dirn
- if(nd1 > nd2) // swap directions to match icons/states
+ if(nd1 > nd2) // swap directions to match icons/states
nd1 = dirn
nd2 = C.d2
- for(var/obj/structure/pipe_cleaner/LC in T) // check to make sure there's no matching pipe_cleaner
- if(LC == C) // skip the pipe_cleaner we're interacting with
+ for(var/obj/structure/pipe_cleaner/LC in T) // check to make sure there's no matching pipe_cleaner
+ if(LC == C) // skip the pipe_cleaner we're interacting with
continue
- if((LC.d1 == nd1 && LC.d2 == nd2) || (LC.d1 == nd2 && LC.d2 == nd1) ) // make sure no pipe_cleaner matches either direction
+ if((LC.d1 == nd1 && LC.d2 == nd2) || (LC.d1 == nd2 && LC.d2 == nd1) ) // make sure no pipe_cleaner matches either direction
if (showerror)
to_chat(user, "There's already a pipe cleaner at that position!")
diff --git a/code/modules/power/power.dm b/code/modules/power/power.dm
index 213d06c9e1a..e7714e166e9 100644
--- a/code/modules/power/power.dm
+++ b/code/modules/power/power.dm
@@ -85,16 +85,16 @@
if(!use_power)
return TRUE
- var/area/A = get_area(src) // make sure it's in an area
+ var/area/A = get_area(src) // make sure it's in an area
if(!A)
- return FALSE // if not, then not powered
+ return FALSE // if not, then not powered
if(chan == -1)
chan = power_channel
- return A.powered(chan) // return power status of the area
+ return A.powered(chan) // return power status of the area
// increment the power usage stats for an area
/obj/machinery/proc/use_power(amount, chan = -1) // defaults to power_channel
- var/area/A = get_area(src) // make sure it's in an area
+ var/area/A = get_area(src) // make sure it's in an area
if(!A)
return
if(chan == -1)
@@ -313,7 +313,7 @@
return
//We assume net1 is larger. If net2 is in fact larger we are just going to make them switch places to reduce on code.
- if(net1.cables.len < net2.cables.len) //net2 is larger than net1. Let's switch them around
+ if(net1.cables.len < net2.cables.len) //net2 is larger than net1. Let's switch them around
var/temp = net1
net1 = net2
net2 = temp
diff --git a/code/modules/power/powernet.dm b/code/modules/power/powernet.dm
index e29e186d403..910e03a8f5b 100644
--- a/code/modules/power/powernet.dm
+++ b/code/modules/power/powernet.dm
@@ -3,17 +3,17 @@
// each contiguous network of cables & nodes
/////////////////////////////////////
/datum/powernet
- var/number // unique id
- var/list/cables = list() // all cables & junctions
- var/list/nodes = list() // all connected machines
+ var/number // unique id
+ var/list/cables = list() // all cables & junctions
+ var/list/nodes = list() // all connected machines
- var/load = 0 // the current load on the powernet, increased by each machine at processing
- var/newavail = 0 // what available power was gathered last tick, then becomes...
- var/avail = 0 //...the current available power in the powernet
- var/viewavail = 0 // the available power as it appears on the power console (gradually updated)
- var/viewload = 0 // the load as it appears on the power console (gradually updated)
- var/netexcess = 0 // excess power on the powernet (typically avail-load)///////
- var/delayedload = 0 // load applied to powernet between power ticks.
+ var/load = 0 // the current load on the powernet, increased by each machine at processing
+ var/newavail = 0 // what available power was gathered last tick, then becomes...
+ var/avail = 0 //...the current available power in the powernet
+ var/viewavail = 0 // the available power as it appears on the power console (gradually updated)
+ var/viewload = 0 // the load as it appears on the power console (gradually updated)
+ var/netexcess = 0 // excess power on the powernet (typically avail-load)///////
+ var/delayedload = 0 // load applied to powernet between power ticks.
/datum/powernet/New()
SSmachines.powernets += src
@@ -80,9 +80,9 @@
//see if there's a surplus of power remaining in the powernet and stores unused power in the SMES
netexcess = avail - load
- if(netexcess > 100 && nodes?.len) // if there was excess power last cycle
- for(var/obj/machinery/power/smes/S in nodes) // find the SMESes in the network
- S.restore() // and restore some of the power that was used
+ if(netexcess > 100 && nodes?.len) // if there was excess power last cycle
+ for(var/obj/machinery/power/smes/S in nodes) // find the SMESes in the network
+ S.restore() // and restore some of the power that was used
// update power consoles
viewavail = round(0.8 * viewavail + 0.2 * avail)
diff --git a/code/modules/power/singularity/collector.dm b/code/modules/power/singularity/collector.dm
index e3ee3418fe1..987f5915c8b 100644
--- a/code/modules/power/singularity/collector.dm
+++ b/code/modules/power/singularity/collector.dm
@@ -1,7 +1,7 @@
// stored_energy += (pulse_strength-RAD_COLLECTOR_EFFICIENCY)*RAD_COLLECTOR_COEFFICIENT
-#define RAD_COLLECTOR_EFFICIENCY 80 // radiation needs to be over this amount to get power
+#define RAD_COLLECTOR_EFFICIENCY 80 // radiation needs to be over this amount to get power
#define RAD_COLLECTOR_COEFFICIENT 100
-#define RAD_COLLECTOR_STORED_OUT 0.04 // (this*100)% of stored power outputted per tick. Doesn't actualy change output total, lower numbers just means collectors output for longer in absence of a source
+#define RAD_COLLECTOR_STORED_OUT 0.04 // (this*100)% of stored power outputted per tick. Doesn't actualy change output total, lower numbers just means collectors output for longer in absence of a source
#define RAD_COLLECTOR_MINING_CONVERSION_RATE 0.00001 //This is gonna need a lot of tweaking to get right. This is the number used to calculate the conversion of watts to research points per process()
#define RAD_COLLECTOR_OUTPUT min(stored_energy, (stored_energy*RAD_COLLECTOR_STORED_OUT)+1000) //Produces at least 1000 watts if it has more than that stored
/obj/machinery/power/rad_collector
diff --git a/code/modules/power/singularity/emitter.dm b/code/modules/power/singularity/emitter.dm
index f2d70cf3b7f..b93b2864fbf 100644
--- a/code/modules/power/singularity/emitter.dm
+++ b/code/modules/power/singularity/emitter.dm
@@ -452,7 +452,7 @@
if(U.dropItemToGround(I))
var/obj/item/turret_control/TC = new /obj/item/turret_control()
U.put_in_hands(TC)
- else //Entries in the list should only ever be items or null, so if it's not an item, we can assume it's an empty hand
+ else //Entries in the list should only ever be items or null, so if it's not an item, we can assume it's an empty hand
var/obj/item/turret_control/TC = new /obj/item/turret_control()
U.put_in_hands(TC)
UpdateButtonIcon()
diff --git a/code/modules/power/singularity/singularity.dm b/code/modules/power/singularity/singularity.dm
index 05ec3d3627e..8ad2b1f893b 100644
--- a/code/modules/power/singularity/singularity.dm
+++ b/code/modules/power/singularity/singularity.dm
@@ -279,13 +279,13 @@
set_light(10)
/obj/singularity/proc/check_cardinals_range(steps, retry_with_move = FALSE)
- . = length(GLOB.cardinals) //Should be 4.
+ . = length(GLOB.cardinals) //Should be 4.
for(var/i in GLOB.cardinals)
- . -= check_turfs_in(i, steps) //-1 for each working direction
- if(. && retry_with_move) //If there's still a positive value it means it didn't pass. Retry with move if applicable
+ . -= check_turfs_in(i, steps) //-1 for each working direction
+ if(. && retry_with_move) //If there's still a positive value it means it didn't pass. Retry with move if applicable
for(var/i in GLOB.cardinals)
- if(step(src, i)) //Move in each direction.
- if(check_cardinals_range(steps, FALSE)) //New location passes, return true.
+ if(step(src, i)) //Move in each direction.
+ if(check_cardinals_range(steps, FALSE)) //New location passes, return true.
return TRUE
return !.
diff --git a/code/modules/power/smes.dm b/code/modules/power/smes.dm
index 72e051e1523..39cc3cd0a8e 100644
--- a/code/modules/power/smes.dm
+++ b/code/modules/power/smes.dm
@@ -1,18 +1,18 @@
// the SMES
// stores power
-#define SMESRATE 0.05 // rate of internal charge to external power
+#define SMESRATE 0.05 // rate of internal charge to external power
//Cache defines
-#define SMES_CLEVEL_1 1
-#define SMES_CLEVEL_2 2
-#define SMES_CLEVEL_3 3
-#define SMES_CLEVEL_4 4
-#define SMES_CLEVEL_5 5
-#define SMES_OUTPUTTING 6
+#define SMES_CLEVEL_1 1
+#define SMES_CLEVEL_2 2
+#define SMES_CLEVEL_3 3
+#define SMES_CLEVEL_4 4
+#define SMES_CLEVEL_5 5
+#define SMES_OUTPUTTING 6
#define SMES_NOT_OUTPUTTING 7
-#define SMES_INPUTTING 8
-#define SMES_INPUT_ATTEMPT 9
+#define SMES_INPUTTING 8
+#define SMES_INPUT_ATTEMPT 9
/obj/machinery/power/smes
name = "power storage unit"
@@ -243,16 +243,16 @@
input_available = terminal.surplus()
if(inputting)
- if(input_available > 0) // if there's power available, try to charge
+ if(input_available > 0) // if there's power available, try to charge
- var/load = min(min((capacity-charge)/SMESRATE, input_level), input_available) // charge at set rate, limited to spare capacity
+ var/load = min(min((capacity-charge)/SMESRATE, input_level), input_available) // charge at set rate, limited to spare capacity
- charge += load * SMESRATE // increase the charge
+ charge += load * SMESRATE // increase the charge
terminal.add_load(load) // add the load to the terminal side network
- else // if not enough capcity
- inputting = FALSE // stop inputting
+ else // if not enough capcity
+ inputting = FALSE // stop inputting
else
if(input_attempt && input_available > 0)
@@ -263,14 +263,14 @@
//outputting
if(output_attempt)
if(outputting)
- output_used = min( charge/SMESRATE, output_level) //limit output to that stored
+ output_used = min( charge/SMESRATE, output_level) //limit output to that stored
- if (add_avail(output_used)) // add output to powernet if it exists (smes side)
- charge -= output_used*SMESRATE // reduce the storage (may be recovered in /restore() if excessive)
+ if (add_avail(output_used)) // add output to powernet if it exists (smes side)
+ charge -= output_used*SMESRATE // reduce the storage (may be recovered in /restore() if excessive)
else
outputting = FALSE
- if(output_used < 0.0001) // either from no charge or set to 0
+ if(output_used < 0.0001) // either from no charge or set to 0
outputting = FALSE
investigate_log("lost power and turned off", INVESTIGATE_SINGULO)
else if(output_attempt && charge > output_level && output_level > 0)
@@ -296,18 +296,18 @@
output_used = 0
return
- var/excess = powernet.netexcess // this was how much wasn't used on the network last ptick, minus any removed by other SMESes
+ var/excess = powernet.netexcess // this was how much wasn't used on the network last ptick, minus any removed by other SMESes
- excess = min(output_used, excess) // clamp it to how much was actually output by this SMES last ptick
+ excess = min(output_used, excess) // clamp it to how much was actually output by this SMES last ptick
- excess = min((capacity-charge)/SMESRATE, excess) // for safety, also limit recharge by space capacity of SMES (shouldn't happen)
+ excess = min((capacity-charge)/SMESRATE, excess) // for safety, also limit recharge by space capacity of SMES (shouldn't happen)
// now recharge this amount
var/clev = chargedisplay()
- charge += excess * SMESRATE // restore unused power
- powernet.netexcess -= excess // remove the excess from the powernet, so later SMESes don't try to use it
+ charge += excess * SMESRATE // restore unused power
+ powernet.netexcess -= excess // remove the excess from the powernet, so later SMESes don't try to use it
output_used -= excess
diff --git a/code/modules/power/solar.dm b/code/modules/power/solar.dm
index b8465b178dc..77bd57ba132 100644
--- a/code/modules/power/solar.dm
+++ b/code/modules/power/solar.dm
@@ -67,7 +67,7 @@
else
S.forceMove(src)
if(S.glass_type == /obj/item/stack/sheet/rglass) //if the panel is in reinforced glass
- max_integrity *= 2 //this need to be placed here, because panels already on the map don't have an assembly linked to
+ max_integrity *= 2 //this need to be placed here, because panels already on the map don't have an assembly linked to
obj_integrity = max_integrity
/obj/machinery/power/solar/crowbar_act(mob/user, obj/item/I)
diff --git a/code/modules/power/turbine.dm b/code/modules/power/turbine.dm
index 1f4146e7903..d099b5ea0e6 100644
--- a/code/modules/power/turbine.dm
+++ b/code/modules/power/turbine.dm
@@ -12,11 +12,11 @@
//
// - Numbers
//
-// Example setup S - sparker
-// B - Blast doors into space for venting
-// *BBB****BBB* C - Compressor
-// S CT * T - Turbine
-// * ^ * * V * D - Doors with firedoor
+// Example setup S - sparker
+// B - Blast doors into space for venting
+// *BBB****BBB* C - Compressor
+// S CT * T - Turbine
+// * ^ * * V * D - Doors with firedoor
// **|***D**|** ^ - Fuel feed (Not vent, but a gas outlet)
// | | V - Suction vent (Like the ones in atmos
//
diff --git a/code/modules/procedural_mapping/mapGenerator.dm b/code/modules/procedural_mapping/mapGenerator.dm
index 9e6767dc642..7a1567279cd 100644
--- a/code/modules/procedural_mapping/mapGenerator.dm
+++ b/code/modules/procedural_mapping/mapGenerator.dm
@@ -2,20 +2,20 @@
//All based on clusterMin and clusterMax as guides
//Individual defines
-#define CLUSTER_CHECK_NONE 0 //No checks are done, cluster as much as possible
-#define CLUSTER_CHECK_DIFFERENT_TURFS (1<<1) //Don't let turfs of DIFFERENT types cluster
-#define CLUSTER_CHECK_DIFFERENT_ATOMS (1<<2) //Don't let atoms of DIFFERENT types cluster
-#define CLUSTER_CHECK_SAME_TURFS (1<<3) //Don't let turfs of the SAME type cluster
-#define CLUSTER_CHECK_SAME_ATOMS (1<<4) //Don't let atoms of the SAME type cluster
+#define CLUSTER_CHECK_NONE 0 //No checks are done, cluster as much as possible
+#define CLUSTER_CHECK_DIFFERENT_TURFS (1<<1) //Don't let turfs of DIFFERENT types cluster
+#define CLUSTER_CHECK_DIFFERENT_ATOMS (1<<2) //Don't let atoms of DIFFERENT types cluster
+#define CLUSTER_CHECK_SAME_TURFS (1<<3) //Don't let turfs of the SAME type cluster
+#define CLUSTER_CHECK_SAME_ATOMS (1<<4) //Don't let atoms of the SAME type cluster
//Combined defines
-#define CLUSTER_CHECK_SAMES 24 //Don't let any of the same type cluster
-#define CLUSTER_CHECK_DIFFERENTS 6 //Don't let any of different types cluster
-#define CLUSTER_CHECK_ALL_TURFS 10 //Don't let ANY turfs cluster same and different types
-#define CLUSTER_CHECK_ALL_ATOMS 20 //Don't let ANY atoms cluster same and different types
+#define CLUSTER_CHECK_SAMES 24 //Don't let any of the same type cluster
+#define CLUSTER_CHECK_DIFFERENTS 6 //Don't let any of different types cluster
+#define CLUSTER_CHECK_ALL_TURFS 10 //Don't let ANY turfs cluster same and different types
+#define CLUSTER_CHECK_ALL_ATOMS 20 //Don't let ANY atoms cluster same and different types
//All
-#define CLUSTER_CHECK_ALL 30 //Don't let anything cluster, like, at all
+#define CLUSTER_CHECK_ALL 30 //Don't let anything cluster, like, at all
/datum/map_generator
@@ -30,7 +30,7 @@
/datum/map_generator/New()
..()
if(buildmode_name == "Undocumented")
- buildmode_name = copytext_char("[type]", 20) // / d a t u m / m a p g e n e r a t o r / = 20 characters.
+ buildmode_name = copytext_char("[type]", 20) // / d a t u m / m a p g e n e r a t o r / = 20 characters.
initialiseModules()
//Defines the region the map represents, sets map
diff --git a/code/modules/procedural_mapping/mapGeneratorModules/helpers.dm b/code/modules/procedural_mapping/mapGeneratorModules/helpers.dm
index 55f4fcf6e80..844b41c05c7 100644
--- a/code/modules/procedural_mapping/mapGeneratorModules/helpers.dm
+++ b/code/modules/procedural_mapping/mapGeneratorModules/helpers.dm
@@ -20,7 +20,7 @@
/datum/map_generator_module/bottom_layer/massdelete
spawnableAtoms = list()
spawnableTurfs = list()
- var/deleteturfs = TRUE //separate var for the empty type.
+ var/deleteturfs = TRUE //separate var for the empty type.
var/list/ignore_typecache
/datum/map_generator_module/bottom_layer/massdelete/generate()
diff --git a/code/modules/procedural_mapping/mapGenerators/repair.dm b/code/modules/procedural_mapping/mapGenerators/repair.dm
index 1a1a155f8fb..b305ac2c438 100644
--- a/code/modules/procedural_mapping/mapGenerators/repair.dm
+++ b/code/modules/procedural_mapping/mapGenerators/repair.dm
@@ -105,7 +105,7 @@ GLOBAL_VAR_INIT(reloading_map, FALSE)
if(!loader)
loader = new
if(cleanload)
- ..() //Trigger mass deletion.
+ ..() //Trigger mass deletion.
modules |= loader
syncModules()
loader.generate()
diff --git a/code/modules/projectiles/ammunition/_ammunition.dm b/code/modules/projectiles/ammunition/_ammunition.dm
index 12a35d28fa4..40fa8907818 100644
--- a/code/modules/projectiles/ammunition/_ammunition.dm
+++ b/code/modules/projectiles/ammunition/_ammunition.dm
@@ -9,16 +9,16 @@
throwforce = 0
w_class = WEIGHT_CLASS_TINY
custom_materials = list(/datum/material/iron = 500)
- var/fire_sound = null //What sound should play when this ammo is fired
- var/caliber = null //Which kind of guns it can be loaded into
- var/projectile_type = null //The bullet type to create when New() is called
- var/obj/projectile/BB = null //The loaded bullet
- var/pellets = 1 //Pellets for spreadshot
- var/variance = 0 //Variance for inaccuracy fundamental to the casing
- var/randomspread = 0 //Randomspread for automatics
- var/delay = 0 //Delay for energy weapons
- var/click_cooldown_override = 0 //Override this to make your gun have a faster fire rate, in tenths of a second. 4 is the default gun cooldown.
- var/firing_effect_type = /obj/effect/temp_visual/dir_setting/firing_effect //the visual effect appearing when the ammo is fired.
+ var/fire_sound = null //What sound should play when this ammo is fired
+ var/caliber = null //Which kind of guns it can be loaded into
+ var/projectile_type = null //The bullet type to create when New() is called
+ var/obj/projectile/BB = null //The loaded bullet
+ var/pellets = 1 //Pellets for spreadshot
+ var/variance = 0 //Variance for inaccuracy fundamental to the casing
+ var/randomspread = 0 //Randomspread for automatics
+ var/delay = 0 //Delay for energy weapons
+ var/click_cooldown_override = 0 //Override this to make your gun have a faster fire rate, in tenths of a second. 4 is the default gun cooldown.
+ var/firing_effect_type = /obj/effect/temp_visual/dir_setting/firing_effect //the visual effect appearing when the ammo is fired.
var/heavy_metal = TRUE
var/harmful = TRUE //pacifism check for boolet, set to FALSE if bullet is non-lethal
diff --git a/code/modules/projectiles/boxes_magazines/_box_magazine.dm b/code/modules/projectiles/boxes_magazines/_box_magazine.dm
index d2f6dfdf2f0..a40667b0736 100644
--- a/code/modules/projectiles/boxes_magazines/_box_magazine.dm
+++ b/code/modules/projectiles/boxes_magazines/_box_magazine.dm
@@ -131,7 +131,7 @@
var/obj/item/ammo_casing/A = get_round()
if(A)
A.forceMove(drop_location())
- if(!user.is_holding(src) || !user.put_in_hands(A)) //incase they're using TK
+ if(!user.is_holding(src) || !user.put_in_hands(A)) //incase they're using TK
A.bounce_away(FALSE, NONE)
playsound(src, 'sound/weapons/gun/general/mag_bullet_insert.ogg', 60, TRUE)
to_chat(user, "You remove a round from [src]!")
diff --git a/code/modules/projectiles/gun.dm b/code/modules/projectiles/gun.dm
index dd63c5350d2..109898f1538 100644
--- a/code/modules/projectiles/gun.dm
+++ b/code/modules/projectiles/gun.dm
@@ -25,29 +25,29 @@
var/vary_fire_sound = TRUE
var/fire_sound_volume = 50
var/dry_fire_sound = 'sound/weapons/gun/general/dry_fire.ogg'
- var/suppressed = null //whether or not a message is displayed when fired
+ var/suppressed = null //whether or not a message is displayed when fired
var/can_suppress = FALSE
var/suppressed_sound = 'sound/weapons/gun/general/heavy_shot_suppressed.ogg'
var/suppressed_volume = 60
var/can_unsuppress = TRUE
- var/recoil = 0 //boom boom shake the room
+ var/recoil = 0 //boom boom shake the room
var/clumsy_check = TRUE
var/obj/item/ammo_casing/chambered = null
- trigger_guard = TRIGGER_GUARD_NORMAL //trigger guard on the weapon, hulks can't fire them with their big meaty fingers
- var/sawn_desc = null //description change if weapon is sawn-off
+ trigger_guard = TRIGGER_GUARD_NORMAL //trigger guard on the weapon, hulks can't fire them with their big meaty fingers
+ var/sawn_desc = null //description change if weapon is sawn-off
var/sawn_off = FALSE
- var/burst_size = 1 //how large a burst is
- var/fire_delay = 0 //rate of fire for burst firing and semi auto
- var/firing_burst = 0 //Prevent the weapon from firing again while already firing
- var/semicd = 0 //cooldown handler
+ var/burst_size = 1 //how large a burst is
+ var/fire_delay = 0 //rate of fire for burst firing and semi auto
+ var/firing_burst = 0 //Prevent the weapon from firing again while already firing
+ var/semicd = 0 //cooldown handler
var/weapon_weight = WEAPON_LIGHT
- var/dual_wield_spread = 24 //additional spread when dual wielding
+ var/dual_wield_spread = 24 //additional spread when dual wielding
/// Just 'slightly' snowflakey way to modify projectile damage for projectiles fired from this gun.
var/projectile_damage_multiplier = 1
- var/spread = 0 //Spread induced by the gun itself.
- var/randomspread = 1 //Set to 0 for shotguns. This is used for weapons that don't fire all their bullets at once.
+ var/spread = 0 //Spread induced by the gun itself.
+ var/randomspread = 1 //Set to 0 for shotguns. This is used for weapons that don't fire all their bullets at once.
lefthand_file = 'icons/mob/inhands/weapons/guns_lefthand.dmi'
righthand_file = 'icons/mob/inhands/weapons/guns_righthand.dmi'
@@ -148,7 +148,7 @@
/obj/item/gun/equipped(mob/living/user, slot)
. = ..()
if(zoomed && user.get_active_held_item() != src)
- zoom(user, user.dir, FALSE) //we can only stay zoomed in if it's in our hands //yeah and we only unzoom if we're actually zoomed using the gun!!
+ zoom(user, user.dir, FALSE) //we can only stay zoomed in if it's in our hands //yeah and we only unzoom if we're actually zoomed using the gun!!
//called after the gun has successfully fired its chambered ammo.
/obj/item/gun/proc/process_chamber()
@@ -342,7 +342,7 @@
var/randomized_gun_spread = 0
var/rand_spr = rand()
if(spread)
- randomized_gun_spread = rand(0,spread)
+ randomized_gun_spread = rand(0,spread)
if(HAS_TRAIT(user, TRAIT_POOR_AIM)) //nice shootin' tex
user.blind_eyes(1)
bonus_spread += 25
@@ -594,8 +594,8 @@
. = ..()
if(gun_light)
var/mutable_appearance/flashlight_overlay
- var/state = "[gunlight_state][gun_light.on? "_on":""]" //Generic state.
- if(gun_light.icon_state in icon_states('icons/obj/guns/flashlights.dmi')) //Snowflake state?
+ var/state = "[gunlight_state][gun_light.on? "_on":""]" //Generic state.
+ if(gun_light.icon_state in icon_states('icons/obj/guns/flashlights.dmi')) //Snowflake state?
state = gun_light.icon_state
flashlight_overlay = mutable_appearance('icons/obj/guns/flashlights.dmi', state)
flashlight_overlay.pixel_x = flight_x_offset
@@ -604,8 +604,8 @@
if(bayonet)
var/mutable_appearance/knife_overlay
- var/state = "bayonet" //Generic state.
- if(bayonet.icon_state in icon_states('icons/obj/guns/bayonets.dmi')) //Snowflake state?
+ var/state = "bayonet" //Generic state.
+ if(bayonet.icon_state in icon_states('icons/obj/guns/bayonets.dmi')) //Snowflake state?
state = bayonet.icon_state
var/icon/bayonet_icons = 'icons/obj/guns/bayonets.dmi'
knife_overlay = mutable_appearance(bayonet_icons, state)
diff --git a/code/modules/projectiles/guns/ballistic.dm b/code/modules/projectiles/guns/ballistic.dm
index df51f04f080..a7fe375dc2d 100644
--- a/code/modules/projectiles/guns/ballistic.dm
+++ b/code/modules/projectiles/guns/ballistic.dm
@@ -208,7 +208,7 @@
if (bolt_type == BOLT_TYPE_NO_BOLT) //If there's no bolt, nothing to rack
return
if (bolt_type == BOLT_TYPE_OPEN)
- if(!bolt_locked) //If it's an open bolt, racking again would do nothing
+ if(!bolt_locked) //If it's an open bolt, racking again would do nothing
if (user)
to_chat(user, "\The [src]'s [bolt_wording] is already cocked!")
return
@@ -543,8 +543,8 @@ GLOBAL_LIST_INIT(gun_saw_types, typecacheof(list(
w_class = WEIGHT_CLASS_NORMAL
inhand_icon_state = "gun"
worn_icon_state = "gun"
- slot_flags &= ~ITEM_SLOT_BACK //you can't sling it on your back
- slot_flags |= ITEM_SLOT_BELT //but you can wear it on your belt (poorly concealed under a trenchcoat, ideally)
+ slot_flags &= ~ITEM_SLOT_BACK //you can't sling it on your back
+ slot_flags |= ITEM_SLOT_BELT //but you can wear it on your belt (poorly concealed under a trenchcoat, ideally)
recoil = SAWN_OFF_RECOIL
sawn_off = TRUE
update_icon()
@@ -574,7 +574,7 @@ GLOBAL_LIST_INIT(gun_saw_types, typecacheof(list(
return
if(bolt_type == BOLT_TYPE_STANDARD)
- if(get_ammo())
+ if(get_ammo())
to_chat(user, "You can't get at the internals while the gun has a bullet in it!")
return
diff --git a/code/modules/projectiles/guns/energy.dm b/code/modules/projectiles/guns/energy.dm
index 5cae6c77ea0..26fcd52d535 100644
--- a/code/modules/projectiles/guns/energy.dm
+++ b/code/modules/projectiles/guns/energy.dm
@@ -10,7 +10,7 @@
var/list/ammo_type = list(/obj/item/ammo_casing/energy)
var/select = 1 //The state of the select fire switch. Determines from the ammo_type list what kind of shot is fired next.
var/can_charge = TRUE //Can it be charged in a recharger?
- var/automatic_charge_overlays = TRUE //Do we handle overlays with base update_icon()?
+ var/automatic_charge_overlays = TRUE //Do we handle overlays with base update_icon()?
var/charge_sections = 4
ammo_x_offset = 2
var/shaded_charge = FALSE //if this gun uses a stateful charge bar for more detail
@@ -100,8 +100,8 @@
var/mob/living/silicon/robot/R = loc
if(R.cell)
var/obj/item/ammo_casing/energy/shot = ammo_type[select] //Necessary to find cost of shot
- if(R.cell.use(shot.e_cost)) //Take power from the borg...
- cell.give(shot.e_cost) //... to recharge the shot
+ if(R.cell.use(shot.e_cost)) //Take power from the borg...
+ cell.give(shot.e_cost) //... to recharge the shot
if(!chambered)
var/obj/item/ammo_casing/energy/AC = ammo_type[select]
if(cell.charge >= AC.e_cost) //if there's enough power in the cell cell...
@@ -118,12 +118,12 @@
/obj/item/gun/energy/process_fire(atom/target, mob/living/user, message = TRUE, params = null, zone_override = "", bonus_spread = 0)
if(!chambered && can_shoot())
- process_chamber() // If the gun was drained and then recharged, load a new shot.
+ process_chamber() // If the gun was drained and then recharged, load a new shot.
return ..()
/obj/item/gun/energy/process_burst(mob/living/user, atom/target, message = TRUE, params = null, zone_override="", sprd = 0, randomized_gun_spread = 0, randomized_bonus_spread = 0, rand_spr = 0, iteration = 0)
if(!chambered && can_shoot())
- process_chamber() // Ditto.
+ process_chamber() // Ditto.
return ..()
/obj/item/gun/energy/proc/select_fire(mob/living/user)
diff --git a/code/modules/projectiles/guns/energy/energy_gun.dm b/code/modules/projectiles/guns/energy/energy_gun.dm
index 58de0d90f14..18dfc2a0f6e 100644
--- a/code/modules/projectiles/guns/energy/energy_gun.dm
+++ b/code/modules/projectiles/guns/energy/energy_gun.dm
@@ -3,7 +3,7 @@
desc = "A basic hybrid energy gun with two settings: disable and kill."
icon_state = "energy"
w_class = WEIGHT_CLASS_BULKY
- inhand_icon_state = null //so the human update icon uses the icon_state instead.
+ inhand_icon_state = null //so the human update icon uses the icon_state instead.
ammo_type = list(/obj/item/ammo_casing/energy/disabler, /obj/item/ammo_casing/energy/laser)
modifystate = 1
can_flashlight = TRUE
diff --git a/code/modules/projectiles/guns/energy/special.dm b/code/modules/projectiles/guns/energy/special.dm
index 544ecb55842..10aa4f65de9 100644
--- a/code/modules/projectiles/guns/energy/special.dm
+++ b/code/modules/projectiles/guns/energy/special.dm
@@ -2,7 +2,7 @@
name = "ion rifle"
desc = "A man-portable anti-armor weapon designed to disable mechanical threats at range."
icon_state = "ionrifle"
- inhand_icon_state = null //so the human update icon uses the icon_state instead.
+ inhand_icon_state = null //so the human update icon uses the icon_state instead.
worn_icon_state = null
shaded_charge = TRUE
can_flashlight = TRUE
diff --git a/code/modules/projectiles/guns/energy/stun.dm b/code/modules/projectiles/guns/energy/stun.dm
index 40d8c64cbd3..fea2c04426b 100644
--- a/code/modules/projectiles/guns/energy/stun.dm
+++ b/code/modules/projectiles/guns/energy/stun.dm
@@ -2,7 +2,7 @@
name = "taser gun"
desc = "A low-capacity, energy-based stun gun used by security teams to subdue targets at range."
icon_state = "taser"
- inhand_icon_state = null //so the human update icon uses the icon_state instead.
+ inhand_icon_state = null //so the human update icon uses the icon_state instead.
ammo_type = list(/obj/item/ammo_casing/energy/electrode)
ammo_x_offset = 3
diff --git a/code/modules/projectiles/guns/misc/beam_rifle.dm b/code/modules/projectiles/guns/misc/beam_rifle.dm
index f0e9045d435..c01b8b9ea63 100644
--- a/code/modules/projectiles/guns/misc/beam_rifle.dm
+++ b/code/modules/projectiles/guns/misc/beam_rifle.dm
@@ -45,7 +45,7 @@
var/mob/current_user = null
var/list/obj/effect/projectile/tracer/current_tracers
- var/structure_piercing = 2 //Amount * 2. For some reason structures aren't respecting this unless you have it doubled. Probably with the objects in question's Bump() code instead of this but I'll deal with this later.
+ var/structure_piercing = 2 //Amount * 2. For some reason structures aren't respecting this unless you have it doubled. Probably with the objects in question's Bump() code instead of this but I'll deal with this later.
var/structure_bleed_coeff = 0.7
var/wall_pierce_amount = 0
var/wall_devastate = 0
@@ -215,7 +215,7 @@
last_process = world.time
/obj/item/gun/energy/beam_rifle/proc/check_user(automatic_cleanup = TRUE)
- if(!istype(current_user) || !isturf(current_user.loc) || !(src in current_user.held_items) || current_user.incapacitated()) //Doesn't work if you're not holding it!
+ if(!istype(current_user) || !isturf(current_user.loc) || !(src in current_user.held_items) || current_user.incapacitated()) //Doesn't work if you're not holding it!
if(automatic_cleanup)
stop_aiming()
set_user(null)
@@ -368,11 +368,11 @@
HS_BB.stun = projectile_stun
HS_BB.impact_structure_damage = impact_structure_damage
HS_BB.aoe_mob_damage = aoe_mob_damage
- HS_BB.aoe_mob_range = clamp(aoe_mob_range, 0, 15) //Badmin safety lock
+ HS_BB.aoe_mob_range = clamp(aoe_mob_range, 0, 15) //Badmin safety lock
HS_BB.aoe_fire_chance = aoe_fire_chance
HS_BB.aoe_fire_range = aoe_fire_range
HS_BB.aoe_structure_damage = aoe_structure_damage
- HS_BB.aoe_structure_range = clamp(aoe_structure_range, 0, 15) //Badmin safety lock
+ HS_BB.aoe_structure_range = clamp(aoe_structure_range, 0, 15) //Badmin safety lock
HS_BB.wall_devastate = wall_devastate
HS_BB.wall_pierce_amount = wall_pierce_amount
HS_BB.structure_pierce_amount = structure_piercing
@@ -409,13 +409,13 @@
name = "particle beam"
icon = null
hitsound = 'sound/effects/explosion3.ogg'
- damage = 0 //Handled manually.
+ damage = 0 //Handled manually.
damage_type = BURN
flag = ENERGY
range = 150
jitter = 10
var/obj/item/gun/energy/beam_rifle/gun
- var/structure_pierce_amount = 0 //All set to 0 so the gun can manually set them during firing.
+ var/structure_pierce_amount = 0 //All set to 0 so the gun can manually set them during firing.
var/structure_bleed_coeff = 0
var/structure_pierce = 0
var/do_pierce = TRUE
@@ -436,10 +436,10 @@
if(!epicenter)
return
new /obj/effect/temp_visual/explosion/fast(epicenter)
- for(var/mob/living/L in range(aoe_mob_range, epicenter)) //handle aoe mob damage
+ for(var/mob/living/L in range(aoe_mob_range, epicenter)) //handle aoe mob damage
L.adjustFireLoss(aoe_mob_damage)
to_chat(L, "\The [src] sears you!")
- for(var/turf/T in range(aoe_fire_range, epicenter)) //handle aoe fire
+ for(var/turf/T in range(aoe_fire_range, epicenter)) //handle aoe fire
if(prob(aoe_fire_chance))
new /obj/effect/hotspot(T)
for(var/obj/O in range(aoe_structure_range, epicenter))
@@ -455,12 +455,12 @@
else
SSexplosions.medturf += A
++wall_pierce
- return PROJECTILE_PIERCE_PHASE // yeah this gun is a snowflakey piece of garbage
+ return PROJECTILE_PIERCE_PHASE // yeah this gun is a snowflakey piece of garbage
if(isobj(A) && (structure_pierce < structure_pierce_amount))
++structure_pierce
var/obj/O = A
O.take_damage((impact_structure_damage + aoe_structure_damage) * structure_bleed_coeff * get_damage_coeff(A), BURN, ENERGY, FALSE)
- return PROJECTILE_PIERCE_PHASE // ditto and this could be refactored to on_hit honestly
+ return PROJECTILE_PIERCE_PHASE // ditto and this could be refactored to on_hit honestly
return ..()
/obj/projectile/beam/beam_rifle/proc/get_damage_coeff(atom/target)
diff --git a/code/modules/projectiles/guns/misc/blastcannon.dm b/code/modules/projectiles/guns/misc/blastcannon.dm
index f5e8a7381e8..3d30302a827 100644
--- a/code/modules/projectiles/guns/misc/blastcannon.dm
+++ b/code/modules/projectiles/guns/misc/blastcannon.dm
@@ -137,7 +137,7 @@
damage = 0
nodamage = FALSE
movement_type = FLYING
- projectile_phasing = ALL // just blows up the turfs lmao
+ projectile_phasing = ALL // just blows up the turfs lmao
/// The maximum distance this will inflict [EXPLODE_DEVASTATE]
var/heavyr = 0
/// The maximum distance this will inflict [EXPLODE_HEAVY]
diff --git a/code/modules/projectiles/projectile.dm b/code/modules/projectiles/projectile.dm
index 8eaa483ea62..35b6436d7ab 100644
--- a/code/modules/projectiles/projectile.dm
+++ b/code/modules/projectiles/projectile.dm
@@ -1,6 +1,6 @@
-#define MOVES_HITSCAN -1 //Not actually hitscan but close as we get without actual hitscan.
-#define MUZZLE_EFFECT_PIXEL_INCREMENT 17 //How many pixels to move the muzzle flash up so your character doesn't look like they're shitting out lasers.
+#define MOVES_HITSCAN -1 //Not actually hitscan but close as we get without actual hitscan.
+#define MUZZLE_EFFECT_PIXEL_INCREMENT 17 //How many pixels to move the muzzle flash up so your character doesn't look like they're shitting out lasers.
/obj/projectile
name = "projectile"
@@ -17,25 +17,25 @@
var/hitsound_wall = ""
resistance_flags = LAVA_PROOF | FIRE_PROOF | UNACIDABLE | ACID_PROOF
- var/def_zone = "" //Aiming at
+ var/def_zone = "" //Aiming at
var/atom/movable/firer = null//Who shot it
var/atom/fired_from = null // the atom that the projectile was fired from (gun, turret)
- var/suppressed = FALSE //Attack message
+ var/suppressed = FALSE //Attack message
var/yo = null
var/xo = null
var/atom/original = null // the original target clicked
var/turf/starting = null // the projectile's starting turf
var/p_x = 16
- var/p_y = 16 // the pixel location of the tile that the player clicked. Default is the center
+ var/p_y = 16 // the pixel location of the tile that the player clicked. Default is the center
//Fired processing vars
- var/fired = FALSE //Have we been fired yet
- var/paused = FALSE //for suspending the projectile midair
+ var/fired = FALSE //Have we been fired yet
+ var/paused = FALSE //for suspending the projectile midair
var/last_projectile_move = 0
var/last_process = 0
var/time_offset = 0
var/datum/point/vector/trajectory
- var/trajectory_ignore_forcemove = FALSE //instructs forceMove to NOT reset our trajectory to the new location!
+ var/trajectory_ignore_forcemove = FALSE //instructs forceMove to NOT reset our trajectory to the new location!
/// We already impacted these things, do not impact them again. Used to make sure we can pierce things we want to pierce. Lazylist, typecache style (object = TRUE) for performance.
var/list/impacted
/// If TRUE, we can hit our firer.
@@ -66,12 +66,12 @@
/// number of times we've pierced something. Incremented BEFORE bullet_act and on_hit proc!
var/pierces = 0
- var/speed = 0.8 //Amount of deciseconds it takes for projectile to travel
+ var/speed = 0.8 //Amount of deciseconds it takes for projectile to travel
var/Angle = 0
- var/original_angle = 0 //Angle at firing
+ var/original_angle = 0 //Angle at firing
var/nondirectional_sprite = FALSE //Set TRUE to prevent projectiles from having their sprites rotated based on firing angle
- var/spread = 0 //amount (in degrees) of projectile spread
- animate_movement = NO_STEPS //Use SLIDE_STEPS in conjunction with legacy
+ var/spread = 0 //amount (in degrees) of projectile spread
+ animate_movement = NO_STEPS //Use SLIDE_STEPS in conjunction with legacy
/// how many times we've ricochet'd so far (instance variable, not a stat)
var/ricochets = 0
/// how many times we can ricochet max
@@ -93,12 +93,12 @@
var/force_hit = FALSE
//Hitscan
- var/hitscan = FALSE //Whether this is hitscan. If it is, speed is basically ignored.
- var/list/beam_segments //assoc list of datum/point or datum/point/vector, start = end. Used for hitscan effect generation.
+ var/hitscan = FALSE //Whether this is hitscan. If it is, speed is basically ignored.
+ var/list/beam_segments //assoc list of datum/point or datum/point/vector, start = end. Used for hitscan effect generation.
/// Last turf an angle was changed in for hitscan projectiles.
var/turf/last_angle_set_hitscan_store
var/datum/point/beam_index
- var/turf/hitscan_last //last turf touched during hitscanning.
+ var/turf/hitscan_last //last turf touched during hitscanning.
var/tracer_type
var/muzzle_type
var/impact_type
@@ -117,8 +117,8 @@
//Homing
var/homing = FALSE
var/atom/homing_target
- var/homing_turn_speed = 10 //Angle per tick.
- var/homing_inaccuracy_min = 0 //in pixels for these. offsets are set once when setting target.
+ var/homing_turn_speed = 10 //Angle per tick.
+ var/homing_inaccuracy_min = 0 //in pixels for these. offsets are set once when setting target.
var/homing_inaccuracy_max = 0
var/homing_offset_x = 0
var/homing_offset_y = 0
@@ -131,8 +131,8 @@
var/armour_penetration = 0
var/projectile_type = /obj/projectile
var/range = 50 //This will de-increment every step. When 0, it will deletze the projectile.
- var/decayedRange //stores original range
- var/reflect_range_decrease = 5 //amount of original range that falls off when reflecting, so it doesn't go forever
+ var/decayedRange //stores original range
+ var/reflect_range_decrease = 5 //amount of original range that falls off when reflecting, so it doesn't go forever
var/reflectable = NONE // Can it be reflected or not?
//Effects
var/stun = 0
@@ -345,7 +345,7 @@
if(!trajectory)
qdel(src)
return FALSE
- if(impacted[A]) // NEVER doublehit
+ if(impacted[A]) // NEVER doublehit
return FALSE
var/datum/point/pcache = trajectory.copy_to()
var/turf/T = get_turf(A)
@@ -366,7 +366,7 @@
var/distance = get_dist(T, starting) // Get the distance between the turf shot from and the mob we hit and use that for the calculations.
def_zone = ran_zone(def_zone, max(100-(7*distance), 5)) //Lower accurancy/longer range tradeoff. 7 is a balanced number to use.
- return process_hit(T, select_target(T, A, A), A) // SELECT TARGET FIRST!
+ return process_hit(T, select_target(T, A, A), A) // SELECT TARGET FIRST!
/**
* The primary workhorse proc of projectile impacts.
@@ -386,7 +386,7 @@
* T - Turf we're on/supposedly hitting
* target - target we're hitting
* bumped - target we originally bumped. it's here to ensure that if something blocks our projectile by means of Cross() failure, we hit it
- * even if it is not dense.
+ * even if it is not dense.
* hit_something - only should be set by recursive calling by this proc - tracks if we hit something already
*
* Returns if we hit something.
@@ -396,7 +396,7 @@
if(QDELETED(src) || !T || !target)
return
// 2.
- impacted[target] = TRUE //hash lookup > in for performance in hit-checking
+ impacted[target] = TRUE //hash lookup > in for performance in hit-checking
// 3.
var/mode = prehit_pierce(target)
if(mode == PROJECTILE_DELETE_WITHOUT_HITTING)
@@ -406,7 +406,7 @@
if(!(movement_type & PHASING))
temporary_unstoppable_movement = TRUE
movement_type |= PHASING
- return process_hit(T, select_target(T, target, bumped), bumped, hit_something) // try to hit something else
+ return process_hit(T, select_target(T, target, bumped), bumped, hit_something) // try to hit something else
// at this point we are going to hit the thing
// in which case send signal to it
SEND_SIGNAL(target, COMSIG_PROJECTILE_PREHIT, args)
@@ -433,8 +433,8 @@
*
* Priority:
* 0. Anything that is already in impacted is ignored no matter what. Furthermore, in any bracket, if the target atom parameter is in it, that's hit first.
- * Furthermore, can_hit_target is always checked. This (entire proc) is PERFORMANCE OVERHEAD!! But, it shouldn't be ""too"" bad and I frankly don't have a better *generic non snowflakey* way that I can think of right now at 3 AM.
- * FURTHERMORE, mobs/objs have a density check from can_hit_target - to hit non dense objects over a turf, you must click on them, same for mobs that usually wouldn't get hit.
+ * Furthermore, can_hit_target is always checked. This (entire proc) is PERFORMANCE OVERHEAD!! But, it shouldn't be ""too"" bad and I frankly don't have a better *generic non snowflakey* way that I can think of right now at 3 AM.
+ * FURTHERMORE, mobs/objs have a density check from can_hit_target - to hit non dense objects over a turf, you must click on them, same for mobs that usually wouldn't get hit.
* 1. The thing originally aimed at/clicked on
* 2. Mobs - picks lowest buckled mob to prevent scarp piggybacking memes
* 3. Objs
@@ -445,10 +445,10 @@
// 1. original
if(can_hit_target(original, TRUE, FALSE, original == bumped))
return original
- var/list/atom/possible = list() // let's define these ONCE
+ var/list/atom/possible = list() // let's define these ONCE
var/list/atom/considering = list()
// 2. mobs
- possible = typecache_filter_list(T, GLOB.typecache_living) // living only
+ possible = typecache_filter_list(T, GLOB.typecache_living) // living only
for(var/i in possible)
if(!can_hit_target(i, i == original, TRUE, i == bumped))
continue
@@ -484,14 +484,14 @@
var/mob/M = firer
if((target == firer) || ((target == firer.loc) && ismecha(firer.loc)) || (target in firer.buckled_mobs) || (istype(M) && (M.buckled == target)))
return FALSE
- if(target.density || cross_failed) //This thing blocks projectiles, hit it regardless of layer/mob stuns/etc.
+ if(target.density || cross_failed) //This thing blocks projectiles, hit it regardless of layer/mob stuns/etc.
return TRUE
if(!isliving(target))
- if(isturf(target)) // non dense turfs
+ if(isturf(target)) // non dense turfs
return FALSE
if(target.layer < PROJECTILE_HIT_THRESHHOLD_LAYER)
return FALSE
- else if(!direct_target) // non dense objects do not get hit unless specifically clicked
+ else if(!direct_target) // non dense objects do not get hit unless specifically clicked
return FALSE
else
var/mob/living/L = target
@@ -533,10 +533,10 @@
// and hope projectiles get refactored again in the future to have a less stupid impact detection system
// that hopefully won't also involve a ton of overhead
if(can_hit_target(original, TRUE, FALSE))
- Impact(original) // try to hit thing clicked on
+ Impact(original) // try to hit thing clicked on
// else, try to hit mobs
- else // because if we impacted original and pierced we'll already have select target'd and hit everything else we should be hitting
- for(var/mob/M in loc) // so I guess we're STILL doing a for loop of mobs because living movement would otherwise have snowflake code for projectile CanPass
+ else // because if we impacted original and pierced we'll already have select target'd and hit everything else we should be hitting
+ for(var/mob/M in loc) // so I guess we're STILL doing a for loop of mobs because living movement would otherwise have snowflake code for projectile CanPass
// so the snowflake vs performance is pretty arguable here
if(can_hit_target(M, M == original, TRUE))
Impact(M)
@@ -572,7 +572,7 @@
if(temporary_unstoppable_movement)
temporary_unstoppable_movement = FALSE
movement_type &= ~PHASING
- scan_moved_turf() //mostly used for making sure we can hit a non-dense object the user directly clicked on, and for penetrating projectiles that don't bump
+ scan_moved_turf() //mostly used for making sure we can hit a non-dense object the user directly clicked on, and for penetrating projectiles that don't bump
/**
* Checks if we should pierce something.
@@ -608,7 +608,7 @@
return FALSE
-/obj/projectile/proc/return_predicted_turf_after_moves(moves, forced_angle) //I say predicted because there's no telling that the projectile won't change direction/location in flight.
+/obj/projectile/proc/return_predicted_turf_after_moves(moves, forced_angle) //I say predicted because there's no telling that the projectile won't change direction/location in flight.
if(!trajectory && isnull(forced_angle) && isnull(Angle))
return FALSE
var/datum/point/vector/current = trajectory
@@ -624,7 +624,7 @@
return getline(current, ending)
/obj/projectile/Process_Spacemove(movement_dir = 0)
- return TRUE //Bullets don't drift in space
+ return TRUE //Bullets don't drift in space
/obj/projectile/process()
last_process = world.time
@@ -632,11 +632,11 @@
fired = FALSE
return PROCESS_KILL
if(paused || !isturf(loc))
- last_projectile_move += world.time - last_process //Compensates for pausing, so it doesn't become a hitscan projectile when unpaused from charged up ticks.
+ last_projectile_move += world.time - last_process //Compensates for pausing, so it doesn't become a hitscan projectile when unpaused from charged up ticks.
return
var/elapsed_time_deciseconds = (world.time - last_projectile_move) + time_offset
time_offset = 0
- var/required_moves = speed > 0? FLOOR(elapsed_time_deciseconds / speed, 1) : MOVES_HITSCAN //Would be better if a 0 speed made hitscan but everyone hates those so I can't make it a universal system :<
+ var/required_moves = speed > 0? FLOOR(elapsed_time_deciseconds / speed, 1) : MOVES_HITSCAN //Would be better if a 0 speed made hitscan but everyone hates those so I can't make it a universal system :<
if(required_moves == MOVES_HITSCAN)
required_moves = SSprojectiles.global_max_tick_moves
else
@@ -658,7 +658,7 @@
AddElement(/datum/element/embed, projectile_payload = shrapnel_type)
if(!log_override && firer && original)
log_combat(firer, original, "fired at", src, "from [get_area_name(src, TRUE)]")
- if(direct_target && (get_dist(direct_target, get_turf(src)) <= 1)) // point blank shots
+ if(direct_target && (get_dist(direct_target, get_turf(src)) <= 1)) // point blank shots
process_hit(get_turf(direct_target), direct_target)
if(QDELETED(src))
return
@@ -667,7 +667,7 @@
if(spread)
setAngle(Angle + ((rand() - 0.5) * spread))
var/turf/starting = get_turf(src)
- if(isnull(Angle)) //Try to resolve through offsets if there's no angle set.
+ if(isnull(Angle)) //Try to resolve through offsets if there's no angle set.
if(isnull(xo) || isnull(yo))
stack_trace("WARNING: Projectile [type] deleted due to being unable to resolve a target after angle was null!")
qdel(src)
@@ -690,7 +690,7 @@
process_hitscan()
if(!(datum_flags & DF_ISPROCESSING))
START_PROCESSING(SSprojectiles, src)
- pixel_move(1, FALSE) //move it now!
+ pixel_move(1, FALSE) //move it now!
/obj/projectile/proc/setAngle(new_angle) //wrapper for overrides.
Angle = new_angle
@@ -717,7 +717,7 @@
if(zc)
before_z_change(old, target)
. = ..()
- if(QDELETED(src)) // we coulda bumped something
+ if(QDELETED(src)) // we coulda bumped something
return
if(trajectory && !trajectory_ignore_forcemove && isturf(target))
if(hitscan)
@@ -750,7 +750,7 @@
if(pcache)
beam_segments = list()
beam_index = pcache
- beam_segments[beam_index] = null //record start.
+ beam_segments[beam_index] = null //record start.
/obj/projectile/proc/process_hitscan()
var/safety = range * 10
@@ -764,7 +764,7 @@
Bump(loc)
if(!QDELETED(src))
qdel(src)
- return //Kill!
+ return //Kill!
pixel_move(1, TRUE)
/obj/projectile/proc/pixel_move(trajectory_multiplier, hitscanning = FALSE)
@@ -807,7 +807,7 @@
animate(src, pixel_x = trajectory.return_px(), pixel_y = trajectory.return_py(), time = 1, flags = ANIMATION_END_NOW)
Range()
-/obj/projectile/proc/process_homing() //may need speeding up in the future performance wise.
+/obj/projectile/proc/process_homing() //may need speeding up in the future performance wise.
if(!homing_target)
return FALSE
var/datum/point/PT = RETURN_PRECISE_POINT(homing_target)
diff --git a/code/modules/projectiles/projectile/beams.dm b/code/modules/projectiles/projectile/beams.dm
index 31cb0e096fc..01790928a0a 100644
--- a/code/modules/projectiles/projectile/beams.dm
+++ b/code/modules/projectiles/projectile/beams.dm
@@ -13,7 +13,7 @@
light_range = 1
light_power = 1
light_color = COLOR_SOFT_RED
- ricochets_max = 50 //Honk!
+ ricochets_max = 50 //Honk!
ricochet_chance = 80
reflectable = REFLECT_NORMAL
wound_bonus = -20
diff --git a/code/modules/projectiles/projectile/bullets/_incendiary.dm b/code/modules/projectiles/projectile/bullets/_incendiary.dm
index 5dd418f40f0..bbb77e853b9 100644
--- a/code/modules/projectiles/projectile/bullets/_incendiary.dm
+++ b/code/modules/projectiles/projectile/bullets/_incendiary.dm
@@ -43,7 +43,7 @@
var/list/launched_items
/// we only try to knock back the first 6 items per tile
-#define BACKBLAST_MAX_ITEM_KNOCKBACK 6
+#define BACKBLAST_MAX_ITEM_KNOCKBACK 6
/obj/projectile/bullet/incendiary/backblast/Move()
. = ..()
diff --git a/code/modules/projectiles/projectile/bullets/shotgun.dm b/code/modules/projectiles/projectile/bullets/shotgun.dm
index 8af5a7ed75f..343a9bfedca 100644
--- a/code/modules/projectiles/projectile/bullets/shotgun.dm
+++ b/code/modules/projectiles/projectile/bullets/shotgun.dm
@@ -105,7 +105,7 @@
qdel(src)
/obj/projectile/bullet/pellet/shotgun_improvised
- tile_dropoff = 0.35 //Come on it does 6 damage don't be like that.
+ tile_dropoff = 0.35 //Come on it does 6 damage don't be like that.
damage = 6
wound_bonus = 0
bare_wound_bonus = 7.5
diff --git a/code/modules/projectiles/projectile/magic.dm b/code/modules/projectiles/projectile/magic.dm
index e271eaecd1a..fd710747d8a 100644
--- a/code/modules/projectiles/projectile/magic.dm
+++ b/code/modules/projectiles/projectile/magic.dm
@@ -208,7 +208,7 @@
var/mob/living/silicon/robot/Robot = new_mob
Robot.lawupdate = FALSE
Robot.connected_ai = null
- Robot.mmi.transfer_identity(M) //Does not transfer key/client.
+ Robot.mmi.transfer_identity(M) //Does not transfer key/client.
Robot.clear_inherent_laws(0)
Robot.clear_zeroth_law(0)
@@ -272,7 +272,7 @@
if(chooseable_races.len)
new_mob.set_species(pick(chooseable_races))
- var/datum/preferences/A = new() //Randomize appearance for the human
+ var/datum/preferences/A = new() //Randomize appearance for the human
A.copy_to(new_mob, icon_updates=0)
var/mob/living/carbon/human/H = new_mob
@@ -406,7 +406,7 @@
. = ..()
if(isliving(A) && locker_suck)
var/mob/living/M = A
- if(M.anti_magic_check()) // no this doesn't check if ..() returned to phase through do I care no it's magic ain't gotta explain shit
+ if(M.anti_magic_check()) // no this doesn't check if ..() returned to phase through do I care no it's magic ain't gotta explain shit
M.visible_message("[src] vanishes on contact with [A]!")
return PROJECTILE_DELETE_WITHOUT_HITTING
if(!locker_temp_instance.insertion_allowed(M))
@@ -616,7 +616,7 @@
/obj/projectile/magic/aoe/lightning
name = "lightning bolt"
- icon_state = "tesla_projectile" //Better sprites are REALLY needed and appreciated!~
+ icon_state = "tesla_projectile" //Better sprites are REALLY needed and appreciated!~
damage = 15
damage_type = BURN
nodamage = FALSE
diff --git a/code/modules/reagents/chem_splash.dm b/code/modules/reagents/chem_splash.dm
index 519ae53cf92..f655f8321bb 100644
--- a/code/modules/reagents/chem_splash.dm
+++ b/code/modules/reagents/chem_splash.dm
@@ -28,7 +28,7 @@
splash_holder.chem_temp = (total_temp/reactants.len) + extra_heat // Average temperature of reagents + extra heat.
splash_holder.handle_reactions() // React them now.
- if(splash_holder.total_volume && affected_range >= 0) //The possible reactions didnt use up all reagents, so we spread it around.
+ if(splash_holder.total_volume && affected_range >= 0) //The possible reactions didnt use up all reagents, so we spread it around.
var/datum/effect_system/steam_spread/steam = new /datum/effect_system/steam_spread()
steam.set_up(10, 0, epicenter)
steam.attach(epicenter)
diff --git a/code/modules/reagents/chemistry/equilibrium.dm b/code/modules/reagents/chemistry/equilibrium.dm
index e44ddbc53f0..0a5b458e10c 100644
--- a/code/modules/reagents/chemistry/equilibrium.dm
+++ b/code/modules/reagents/chemistry/equilibrium.dm
@@ -194,7 +194,7 @@
if(time_deficit < 0.25)
delta_time += time_deficit
time_deficit = 0
- else
+ else
delta_time += 0.25
time_deficit = 0.25
return delta_time
@@ -250,7 +250,7 @@
return
if(!calculate_yield())//So that this can detect if we're missing reagents
to_delete = TRUE
- return
+ return
delta_time = deal_with_time(delta_time)
delta_t = 0 //how far off optimal temp we care
@@ -267,7 +267,7 @@
//Lower range
else if (cached_ph < reaction.optimal_ph_min) //If we're outside of the optimal lower bound
if (cached_ph < (reaction.optimal_ph_min - reaction.determin_ph_range)) //If we're outside of the deterministic bound
- delta_ph = 0 //0% purity
+ delta_ph = 0 //0% purity
else //We're in the deterministic phase
delta_ph = (((cached_ph - (reaction.optimal_ph_min - reaction.determin_ph_range))**reaction.ph_exponent_factor)/((reaction.determin_ph_range**reaction.ph_exponent_factor))) //main pH calculation
//Upper range
diff --git a/code/modules/reagents/chemistry/holder.dm b/code/modules/reagents/chemistry/holder.dm
index e96c5ab3586..0de8e402b0f 100644
--- a/code/modules/reagents/chemistry/holder.dm
+++ b/code/modules/reagents/chemistry/holder.dm
@@ -292,7 +292,7 @@
else
if(istype(R, reagent_type))
matches = 1
- // We found a match, proceed to remove the reagent. Keep looping, we might find other reagents of the same type.
+ // We found a match, proceed to remove the reagent. Keep looping, we might find other reagents of the same type.
if(matches)
// Have our other proc handle removement
has_removed_reagent = remove_reagent(R.type, amount, safety)
@@ -953,7 +953,7 @@
var/reaction_message = equilibrium.reaction.mix_message
if(equilibrium.reaction.mix_sound)
playsound(get_turf(my_atom), equilibrium.reaction.mix_sound, 80, TRUE)
- qdel(equilibrium)
+ qdel(equilibrium)
update_total()
SEND_SIGNAL(src, COMSIG_REAGENTS_REACTED, .)
return reaction_message
@@ -1348,7 +1348,7 @@
/// Returns the total heat capacity for all of the reagents currently in this holder.
/datum/reagents/proc/heat_capacity()
. = 0
- var/list/cached_reagents = reagent_list //cache reagents
+ var/list/cached_reagents = reagent_list //cache reagents
for(var/I in cached_reagents)
var/datum/reagent/R = I
. += R.specific_heat * R.volume
@@ -1363,7 +1363,7 @@
/datum/reagents/proc/adjust_thermal_energy(delta_energy, min_temp = 2.7, max_temp = 1000)
var/heat_capacity = heat_capacity()
if(!heat_capacity)
- return // no div/0 please
+ return // no div/0 please
set_temperature(clamp(chem_temp + (delta_energy / heat_capacity), min_temp, max_temp))
/// Applies heat to this holder
@@ -1492,7 +1492,7 @@
reagents = new /datum/reagents(max_vol, flags)
reagents.my_atom = src
-/proc/get_random_reagent_id() // Returns a random reagent ID minus blacklisted reagents
+/proc/get_random_reagent_id() // Returns a random reagent ID minus blacklisted reagents
var/static/list/random_reagents = list()
if(!random_reagents.len)
for(var/thing in subtypesof(/datum/reagent))
diff --git a/code/modules/reagents/chemistry/machinery/chem_heater.dm b/code/modules/reagents/chemistry/machinery/chem_heater.dm
index c9ccc1894b2..c218dcc7346 100644
--- a/code/modules/reagents/chemistry/machinery/chem_heater.dm
+++ b/code/modules/reagents/chemistry/machinery/chem_heater.dm
@@ -109,7 +109,7 @@
if(beaker?.reagents.chem_temp > 374)//If they heated it up as asked
tutorial_state = TUT_IS_ACTIVE
target_temperature = 375
- beaker.reagents.chem_temp = 375
+ beaker.reagents.chem_temp = 375
if(TUT_IS_ACTIVE)
if(!(beaker?.reagents.has_reagent(/datum/reagent/mercury)) || !(beaker?.reagents.has_reagent(/datum/reagent/chlorine))) //Slightly concerned that people might take ages to read and it'll react anyways
@@ -299,12 +299,12 @@
if(TUT_NO_BUFFER)//missing buffer
data["tutorialMessage"] = {"It looks like you’re a little low on buffers, here’s how to make more:
-Acidic buffer: 2 parts Sodium
+Acidic buffer: 2 parts Sodium
2 parts Hydrogen
2 parts Ethanol
2 parts Water
-Basic buffer: 3 parts Ammonia
+Basic buffer: 3 parts Ammonia
2 parts Chlorine
2 parts Hydrogen
2 parts Oxygen
diff --git a/code/modules/reagents/chemistry/machinery/chem_master.dm b/code/modules/reagents/chemistry/machinery/chem_master.dm
index 425d111c1d5..d4997982db3 100644
--- a/code/modules/reagents/chemistry/machinery/chem_master.dm
+++ b/code/modules/reagents/chemistry/machinery/chem_master.dm
@@ -484,18 +484,18 @@
* Uses typelist() for styles storage after initialization.
* For fallback style must provide style with key (const) CONDIMASTER_STYLE_FALLBACK
* Returns list(
- * = list(
- * "icon_state" = ,
- * "name" = ,
- * "desc" = ,
- * ?"generate_name" = ,
- * ?"icon_empty" = ,
- * ?"fill_icon_thresholds" = ,
- * ?"inhand_icon_state" = ,
- * ?"lefthand_file" = ,
- * ?"righthand_file" = ,
- * ),
- * ..
+ * = list(
+ * "icon_state" = ,
+ * "name" = ,
+ * "desc" = ,
+ * ?"generate_name" = ,
+ * ?"icon_empty" = ,
+ * ?"fill_icon_thresholds" = ,
+ * ?"inhand_icon_state" = ,
+ * ?"lefthand_file" = ,
+ * ?"righthand_file" = ,
+ * ),
+ * ..
* )
*
*/
diff --git a/code/modules/reagents/chemistry/reagents.dm b/code/modules/reagents/chemistry/reagents.dm
index c041ca67627..888b4f261f9 100644
--- a/code/modules/reagents/chemistry/reagents.dm
+++ b/code/modules/reagents/chemistry/reagents.dm
@@ -87,7 +87,7 @@ GLOBAL_LIST_INIT(name2reagent, build_name2reagent())
var/impure_chem = /datum/reagent/impurity
/// If the impurity is below 0.5, replace ALL of the chem with inverse_chem upon metabolising
var/inverse_chem_val = 0.25
- /// What chem is metabolised when purity is below inverse_chem_val
+ /// What chem is metabolised when purity is below inverse_chem_val
var/inverse_chem = /datum/reagent/impurity/toxic
///what chem is made at the end of a reaction IF the purity is below the recipies purity_min at the END of a reaction only
var/failed_chem = /datum/reagent/consumable/failed_reaction
diff --git a/code/modules/reagents/chemistry/reagents/cat2_medicine_reagents.dm b/code/modules/reagents/chemistry/reagents/cat2_medicine_reagents.dm
index 88e6d6a5c10..3950126a33b 100644
--- a/code/modules/reagents/chemistry/reagents/cat2_medicine_reagents.dm
+++ b/code/modules/reagents/chemistry/reagents/cat2_medicine_reagents.dm
@@ -82,7 +82,7 @@
/datum/reagent/medicine/c2/libital //messes with your liber
name = "Libital"
description = "A bruise reliever. Does minor liver damage."
- color = "#ECEC8D" // rgb: 236 236 141
+ color = "#ECEC8D" // rgb: 236 236 141
taste_description = "bitter with a hint of alcohol"
reagent_state = SOLID
chemical_flags = REAGENT_CAN_BE_SYNTHESIZED
@@ -218,7 +218,7 @@
/******OXY******/
/*Suffix: -mol*/
-#define CONVERMOL_RATIO 5 //# Oxygen damage to result in 1 tox
+#define CONVERMOL_RATIO 5 //# Oxygen damage to result in 1 tox
/datum/reagent/medicine/c2/convermol
name = "Convermol"
@@ -244,7 +244,7 @@
..()
return TRUE
-#undef CONVERMOL_RATIO
+#undef CONVERMOL_RATIO
/datum/reagent/medicine/c2/tirimol
name = "Tirimol"
@@ -340,7 +340,7 @@
. = ..()
mytray.adjustToxic(-round(chems.get_reagent_amount(type) * 2))
-#define issyrinormusc(A) (istype(A,/datum/reagent/medicine/c2/syriniver) || istype(A,/datum/reagent/medicine/c2/musiver)) //musc is metab of syrin so let's make sure we're not purging either
+#define issyrinormusc(A) (istype(A,/datum/reagent/medicine/c2/syriniver) || istype(A,/datum/reagent/medicine/c2/musiver)) //musc is metab of syrin so let's make sure we're not purging either
/datum/reagent/medicine/c2/syriniver //Inject >> SYRINge
name = "Syriniver"
@@ -357,7 +357,7 @@
return
var/mob/living/carbon/C = A
if(trans_volume >= 0.6) //prevents cheesing with ultralow doses.
- C.adjustToxLoss(-1.5 * min(2, trans_volume) * REM, 0) //This is to promote iv pole use for that chemotherapy feel.
+ C.adjustToxLoss(-1.5 * min(2, trans_volume) * REM, 0) //This is to promote iv pole use for that chemotherapy feel.
var/obj/item/organ/liver/L = C.internal_organs_slot[ORGAN_SLOT_LIVER]
if((L.organ_flags & ORGAN_FAILING) || !L)
return
diff --git a/code/modules/reagents/chemistry/reagents/food_reagents.dm b/code/modules/reagents/chemistry/reagents/food_reagents.dm
index ee6bc5ccbac..f0a4766c4a4 100755
--- a/code/modules/reagents/chemistry/reagents/food_reagents.dm
+++ b/code/modules/reagents/chemistry/reagents/food_reagents.dm
@@ -4,7 +4,7 @@
// Part of the food code. Also is where all the food
-// condiments, additives, and such go.
+// condiments, additives, and such go.
/datum/reagent/consumable
@@ -12,7 +12,7 @@
taste_description = "generic food"
taste_mult = 4
var/nutriment_factor = 1 * REAGENTS_METABOLISM
- var/quality = 0 //affects mood, typically higher for mixed drinks with more complex recipes
+ var/quality = 0 //affects mood, typically higher for mixed drinks with more complex recipes
impure_chem = /datum/reagent/water
inverse_chem_val = 0.1
inverse_chem = /datum/reagent/water
@@ -687,7 +687,7 @@
if(!(methods & INGEST) || !((methods & (TOUCH|PATCH|VAPOR)) && (exposed_mob.is_mouth_covered() || exposed_mob.is_eyes_covered())))
return
- if(!exposed_mob.getorganslot(ORGAN_SLOT_EYES)) //can't blind somebody with no eyes
+ if(!exposed_mob.getorganslot(ORGAN_SLOT_EYES)) //can't blind somebody with no eyes
to_chat(exposed_mob, "Your eye sockets feel wet.")
else
if(!exposed_mob.eye_blurry)
@@ -697,7 +697,7 @@
/datum/reagent/consumable/tearjuice/on_mob_life(mob/living/carbon/M)
..()
- if(M.eye_blurry) //Don't worsen vision if it was otherwise fine
+ if(M.eye_blurry) //Don't worsen vision if it was otherwise fine
M.blur_eyes(4)
if(prob(10))
to_chat(M, "Your eyes sting!")
diff --git a/code/modules/reagents/chemistry/reagents/medicine_reagents.dm b/code/modules/reagents/chemistry/reagents/medicine_reagents.dm
index fa2e4b93222..035ff600cf9 100644
--- a/code/modules/reagents/chemistry/reagents/medicine_reagents.dm
+++ b/code/modules/reagents/chemistry/reagents/medicine_reagents.dm
@@ -54,7 +54,7 @@
switch(rand(100))
if(66 to 100)
mytray.mutatespecie()
- if(33 to 65)
+ if(33 to 65)
mytray.mutateweed()
if(1 to 32)
mytray.mutatepest(user)
@@ -303,7 +303,7 @@
overdose_threshold = 60
taste_description = "sweetness and salt"
var/last_added = 0
- var/maximum_reachable = BLOOD_VOLUME_NORMAL - 10 //So that normal blood regeneration can continue with salglu active
+ var/maximum_reachable = BLOOD_VOLUME_NORMAL - 10 //So that normal blood regeneration can continue with salglu active
var/extra_regen = 0.25 // in addition to acting as temporary blood, also add this much to their actual blood per tick
ph = 5.5
chemical_flags = REAGENT_CAN_BE_SYNTHESIZED
@@ -312,7 +312,7 @@
if(last_added)
M.blood_volume -= last_added
last_added = 0
- if(M.blood_volume < maximum_reachable) //Can only up to double your effective blood level.
+ if(M.blood_volume < maximum_reachable) //Can only up to double your effective blood level.
var/amount_to_add = min(M.blood_volume, volume*5)
var/new_blood_level = min(M.blood_volume + amount_to_add, maximum_reachable)
last_added = new_blood_level - M.blood_volume
diff --git a/code/modules/reagents/chemistry/reagents/other_reagents.dm b/code/modules/reagents/chemistry/reagents/other_reagents.dm
index 023544bb204..2ad106c18c6 100644
--- a/code/modules/reagents/chemistry/reagents/other_reagents.dm
+++ b/code/modules/reagents/chemistry/reagents/other_reagents.dm
@@ -146,7 +146,7 @@
chemical_flags = REAGENT_CAN_BE_SYNTHESIZED
/*
- * Water reaction to turf
+ * Water reaction to turf
*/
/datum/reagent/water/expose_turf(turf/open/exposed_turf, reac_volume)
@@ -170,7 +170,7 @@
qdel(hotspot)
/*
- * Water reaction to an object
+ * Water reaction to an object
*/
/datum/reagent/water/expose_obj(obj/exposed_obj, reac_volume)
@@ -193,7 +193,7 @@
qdel(HH)
/*
- * Water reaction to a mob
+ * Water reaction to a mob
*/
/datum/reagent/water/expose_mob(mob/living/exposed_mob, methods=TOUCH, reac_volume)//Splashing people with water can help put them out!
@@ -249,7 +249,7 @@
to_chat(M, "Your blood rites falter as holy water scours your body!")
for(var/datum/action/innate/cult/blood_spell/BS in BM.spells)
qdel(BS)
- if(data["misc"] >= 25) // 10 units, 45 seconds @ metabolism 0.4 units & tick rate 1.8 sec
+ if(data["misc"] >= 25) // 10 units, 45 seconds @ metabolism 0.4 units & tick rate 1.8 sec
if(!M.stuttering)
M.stuttering = 1
M.stuttering = min(M.stuttering+4, 10)
@@ -261,14 +261,14 @@
M.Unconscious(120)
to_chat(M, "[pick("Your blood is your bond - you are nothing without it", "Do not forget your place", \
"All that power, and you still fail?", "If you cannot scour this poison, I shall scour your meager life!")].")
- if(data["misc"] >= 60) // 30 units, 135 seconds
+ if(data["misc"] >= 60) // 30 units, 135 seconds
if(iscultist(M))
SSticker.mode.remove_cultist(M.mind, FALSE, TRUE)
M.jitteriness = 0
M.stuttering = 0
- holder.remove_reagent(type, volume) // maybe this is a little too perfect and a max() cap on the statuses would be better??
+ holder.remove_reagent(type, volume) // maybe this is a little too perfect and a max() cap on the statuses would be better??
return
- holder.remove_reagent(type, 0.4) //fixed consumption to prevent balancing going out of whack
+ holder.remove_reagent(type, 0.4) //fixed consumption to prevent balancing going out of whack
/datum/reagent/water/holywater/expose_turf(turf/exposed_turf, reac_volume)
. = ..()
@@ -308,7 +308,7 @@
chemical_flags = REAGENT_CAN_BE_SYNTHESIZED
/*
- * Water reaction to turf
+ * Water reaction to turf
*/
/datum/reagent/hydrogen_peroxide/expose_turf(turf/open/exposed_turf, reac_volume)
@@ -318,7 +318,7 @@
if(reac_volume >= 5)
exposed_turf.MakeSlippery(TURF_WET_WATER, 10 SECONDS, min(reac_volume*1.5 SECONDS, 60 SECONDS))
/*
- * Water reaction to a mob
+ * Water reaction to a mob
*/
/datum/reagent/hydrogen_peroxide/expose_mob(mob/living/exposed_mob, methods=TOUCH, reac_volume)//Splashing people with h2o2 can burn them !
@@ -326,7 +326,7 @@
if(methods & TOUCH)
exposed_mob.adjustFireLoss(2, 0) // burns
-/datum/reagent/fuel/unholywater //if you somehow managed to extract this from someone, dont splash it on yourself and have a smoke
+/datum/reagent/fuel/unholywater //if you somehow managed to extract this from someone, dont splash it on yourself and have a smoke
name = "Unholy Water"
description = "Something that shouldn't exist on this plane of existence."
taste_description = "suffering"
@@ -354,7 +354,7 @@
M.adjustBruteLoss(2, 0)
..()
-/datum/reagent/hellwater //if someone has this in their system they've really pissed off an eldrich god
+/datum/reagent/hellwater //if someone has this in their system they've really pissed off an eldrich god
name = "Hell Water"
description = "YOUR FLESH! IT BURNS!"
taste_description = "burning"
@@ -363,9 +363,9 @@
/datum/reagent/hellwater/on_mob_life(mob/living/carbon/M)
M.set_fire_stacks(min(5, M.fire_stacks + 3))
- M.IgniteMob() //Only problem with igniting people is currently the commonly available fire suits make you immune to being on fire
+ M.IgniteMob() //Only problem with igniting people is currently the commonly available fire suits make you immune to being on fire
M.adjustToxLoss(1, 0)
- M.adjustFireLoss(1, 0) //Hence the other damages... ain't I a bastard?
+ M.adjustFireLoss(1, 0) //Hence the other damages... ain't I a bastard?
M.adjustOrganLoss(ORGAN_SLOT_BRAIN, 5, 150)
holder.remove_reagent(type, 1)
@@ -451,15 +451,15 @@
if(48)
newcolor += "0"
if(49 to 57)
- newcolor += ascii2text(ascii-1) //numbers 1 to 9
+ newcolor += ascii2text(ascii-1) //numbers 1 to 9
if(97)
newcolor += "9"
if(98 to 102)
- newcolor += ascii2text(ascii-1) //letters b to f lowercase
+ newcolor += ascii2text(ascii-1) //letters b to f lowercase
if(65)
newcolor += "9"
if(66 to 70)
- newcolor += ascii2text(ascii+31) //letters B to F - translates to lowercase
+ newcolor += ascii2text(ascii+31) //letters B to F - translates to lowercase
else
break
if(ReadHSV(newcolor)[3] >= ReadHSV("#7F7F7F")[3])
@@ -1557,7 +1557,7 @@
name = "Invisible Powder"
colorname = "invisible"
color = "#FFFFFF00" // white + no alpha
- random_color_list = list(null) //because using the powder color turns things invisible
+ random_color_list = list(null) //because using the powder color turns things invisible
chemical_flags = REAGENT_CAN_BE_SYNTHESIZED
/datum/reagent/colorful_reagent/powder/black
@@ -2078,7 +2078,7 @@
. = ..()
if(!istype(exposed_turf))
return
- exposed_turf.MakeDry(ALL, TRUE, reac_volume * 5 SECONDS) //50 deciseconds per unit
+ exposed_turf.MakeDry(ALL, TRUE, reac_volume * 5 SECONDS) //50 deciseconds per unit
/datum/reagent/drying_agent/expose_obj(obj/exposed_obj, reac_volume)
. = ..()
@@ -2335,8 +2335,8 @@
chemical_flags = REAGENT_CAN_BE_SYNTHESIZED
/datum/reagent/peaceborg/tire/on_mob_life(mob/living/carbon/M)
- var/healthcomp = (100 - M.health) //DOES NOT ACCOUNT FOR ADMINBUS THINGS THAT MAKE YOU HAVE MORE THAN 200/210 HEALTH, OR SOMETHING OTHER THAN A HUMAN PROCESSING THIS.
- if(M.getStaminaLoss() < (45 - healthcomp)) //At 50 health you would have 200 - 150 health meaning 50 compensation. 60 - 50 = 10, so would only do 10-19 stamina.)
+ var/healthcomp = (100 - M.health) //DOES NOT ACCOUNT FOR ADMINBUS THINGS THAT MAKE YOU HAVE MORE THAN 200/210 HEALTH, OR SOMETHING OTHER THAN A HUMAN PROCESSING THIS.
+ if(M.getStaminaLoss() < (45 - healthcomp)) //At 50 health you would have 200 - 150 health meaning 50 compensation. 60 - 50 = 10, so would only do 10-19 stamina.)
M.adjustStaminaLoss(10)
if(prob(30))
to_chat(M, "You should sit down and take a rest...")
@@ -2379,8 +2379,8 @@
if(HAS_TRAIT(L, TRAIT_NOHUNGER)) //they can't puke
holder.del_reagent(type)
-#define YUCK_PUKE_CYCLES 3 // every X cycle is a puke
-#define YUCK_PUKES_TO_STUN 3 // hit this amount of pukes in a row to start stunning
+#define YUCK_PUKE_CYCLES 3 // every X cycle is a puke
+#define YUCK_PUKES_TO_STUN 3 // hit this amount of pukes in a row to start stunning
/datum/reagent/yuck/on_mob_life(mob/living/carbon/C)
if(!yuck_cycle)
if(prob(8))
diff --git a/code/modules/reagents/chemistry/reagents/toxin_reagents.dm b/code/modules/reagents/chemistry/reagents/toxin_reagents.dm
index e88a53915ac..cb38a8806ae 100644
--- a/code/modules/reagents/chemistry/reagents/toxin_reagents.dm
+++ b/code/modules/reagents/chemistry/reagents/toxin_reagents.dm
@@ -65,7 +65,7 @@
if(chems.has_reagent(type, 1))
mytray.adjustToxic(3) //It is still toxic, mind you, but not to the same degree.
-#define LIQUID_PLASMA_BP (50+T0C)
+#define LIQUID_PLASMA_BP (50+T0C)
/datum/reagent/toxin/plasma
name = "Plasma"
@@ -436,7 +436,7 @@
. = 1
..()
-/datum/reagent/toxin/fakebeer //disguised as normal beer for use by emagged brobots
+/datum/reagent/toxin/fakebeer //disguised as normal beer for use by emagged brobots
name = "Beer"
description = "A specially-engineered sedative disguised as beer. It induces instant sleep in its target."
color = "#664300" // rgb: 102, 67, 0
diff --git a/code/modules/reagents/chemistry/recipes/others.dm b/code/modules/reagents/chemistry/recipes/others.dm
index e9ffa8a4f4b..39bebca739d 100644
--- a/code/modules/reagents/chemistry/recipes/others.dm
+++ b/code/modules/reagents/chemistry/recipes/others.dm
@@ -327,7 +327,7 @@
results = list(/datum/reagent/ammonia = 3)
required_reagents = list(/datum/reagent/hydrogen = 3, /datum/reagent/nitrogen = 1)
optimal_ph_min = 1 // Lets increase our range for this basic chem
- optimal_ph_max = 12
+ optimal_ph_max = 12
H_ion_release = -0.02 //handmade is more neutral
/datum/chemical_reaction/diethylamine
@@ -346,7 +346,7 @@
/datum/chemical_reaction/weedkiller
results = list(/datum/reagent/toxin/plantbgone/weedkiller = 5)
required_reagents = list(/datum/reagent/toxin = 1, /datum/reagent/ammonia = 4)
- H_ion_release = -0.05 // Push towards acidic
+ H_ion_release = -0.05 // Push towards acidic
/datum/chemical_reaction/pestkiller
results = list(/datum/reagent/toxin/pestkiller = 5)
@@ -487,7 +487,7 @@
..()
//scream powder
/datum/chemical_reaction/scream
- required_reagents = list(/datum/reagent/medicine/strange_reagent = 1, /datum/reagent/consumable/cream = 5, /datum/reagent/consumable/ethanol/lizardwine = 5 )
+ required_reagents = list(/datum/reagent/medicine/strange_reagent = 1, /datum/reagent/consumable/cream = 5, /datum/reagent/consumable/ethanol/lizardwine = 5 )
required_temp = 374
reaction_flags = REACTION_INSTANT
diff --git a/code/modules/reagents/chemistry/recipes/pyrotechnics.dm b/code/modules/reagents/chemistry/recipes/pyrotechnics.dm
index 37adf451bd9..188c6d3d139 100644
--- a/code/modules/reagents/chemistry/recipes/pyrotechnics.dm
+++ b/code/modules/reagents/chemistry/recipes/pyrotechnics.dm
@@ -470,7 +470,7 @@
var/zap_flags = ZAP_MOB_DAMAGE | ZAP_OBJ_DAMAGE | ZAP_MOB_STUN
/datum/chemical_reaction/reagent_explosion/teslium_lightning/on_reaction(datum/equilibrium/reaction, datum/reagents/holder, created_volume)
- var/T1 = created_volume * 20 //100 units : Zap 3 times, with powers 2000/5000/12000. Tesla revolvers have a power of 10000 for comparison.
+ var/T1 = created_volume * 20 //100 units : Zap 3 times, with powers 2000/5000/12000. Tesla revolvers have a power of 10000 for comparison.
var/T2 = created_volume * 50
var/T3 = created_volume * 120
var/added_delay = 0.5 SECONDS
@@ -480,7 +480,7 @@
if(created_volume >= 40)
addtimer(CALLBACK(src, .proc/zappy_zappy, holder, T2), added_delay)
added_delay += 1.5 SECONDS
- if(created_volume >= 10) //10 units minimum for lightning, 40 units for secondary blast, 75 units for tertiary blast.
+ if(created_volume >= 10) //10 units minimum for lightning, 40 units for secondary blast, 75 units for tertiary blast.
addtimer(CALLBACK(src, .proc/zappy_zappy, holder, T3), added_delay)
addtimer(CALLBACK(src, .proc/explode, holder, created_volume), added_delay)
@@ -516,7 +516,7 @@
required_reagents = list(/datum/reagent/stabilizing_agent = 1,/datum/reagent/fluorosurfactant = 1,/datum/reagent/carbon = 1)
required_temp = 200
is_cold_recipe = 1
- optimal_temp = 50
+ optimal_temp = 50
overheat_temp = 5
thermic_constant= -1
H_ion_release = -0.02
diff --git a/code/modules/reagents/chemistry/recipes/reaction_agents.dm b/code/modules/reagents/chemistry/recipes/reaction_agents.dm
index 4af750fbb61..d104e12f168 100644
--- a/code/modules/reagents/chemistry/recipes/reaction_agents.dm
+++ b/code/modules/reagents/chemistry/recipes/reaction_agents.dm
@@ -34,7 +34,7 @@
purity_min = 0
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
-//////////////////// Example competitive reaction (REACTION_COMPETITIVE) //////////////////////////////////
+//////////////////// Example competitive reaction (REACTION_COMPETITIVE) //////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
diff --git a/code/modules/reagents/reagent_containers/borghydro.dm b/code/modules/reagents/reagent_containers/borghydro.dm
index 2edb22026a8..f2131aeadab 100644
--- a/code/modules/reagents/reagent_containers/borghydro.dm
+++ b/code/modules/reagents/reagent_containers/borghydro.dm
@@ -1,4 +1,4 @@
-#define C2NAMEREAGENT "[initial(reagent.name)] (Has Side-Effects)"
+#define C2NAMEREAGENT "[initial(reagent.name)] (Has Side-Effects)"
/*
Contains:
Borg Hypospray
@@ -98,9 +98,9 @@ Borg Hypospray
if(R?.cell)
for(var/i in 1 to reagent_ids.len)
var/datum/reagents/RG = reagent_list[i]
- if(RG.total_volume < RG.maximum_volume) //Don't recharge reagents and drain power if the storage is full.
- R.cell.use(charge_cost) //Take power from borg...
- RG.add_reagent(reagent_ids[i], 5) //And fill hypo with reagent.
+ if(RG.total_volume < RG.maximum_volume) //Don't recharge reagents and drain power if the storage is full.
+ R.cell.use(charge_cost) //Take power from borg...
+ RG.add_reagent(reagent_ids[i], 5) //And fill hypo with reagent.
/obj/item/reagent_containers/borghypo/attack(mob/living/carbon/M, mob/user)
var/datum/reagents/R = reagent_list[mode]
@@ -133,7 +133,7 @@ Borg Hypospray
/obj/item/reagent_containers/borghypo/examine(mob/user)
. = ..()
- . += DescribeContents() //Because using the standardized reagents datum was just too cool for whatever fuckwit wrote this
+ . += DescribeContents() //Because using the standardized reagents datum was just too cool for whatever fuckwit wrote this
var/datum/reagent/loaded = modes[mode]
. += "Currently loaded: [initial(loaded.name)]. [initial(loaded.description)]"
. += "Alt+Click to change transfer amount. Currently set to [amount_per_transfer_from_this == 5 ? "dose normally (5u)" : "microdose (2u)"]."
diff --git a/code/modules/reagents/reagent_containers/patch.dm b/code/modules/reagents/reagent_containers/patch.dm
index d04dd3ad0d6..bd145ac8a47 100644
--- a/code/modules/reagents/reagent_containers/patch.dm
+++ b/code/modules/reagents/reagent_containers/patch.dm
@@ -8,7 +8,7 @@
volume = 40
apply_type = PATCH
apply_method = "apply"
- self_delay = 30 // three seconds
+ self_delay = 30 // three seconds
dissolvable = FALSE
/obj/item/reagent_containers/pill/patch/attack(mob/living/L, mob/user)
diff --git a/code/modules/reagents/reagent_containers/spray.dm b/code/modules/reagents/reagent_containers/spray.dm
index b3e8eca4502..9f6549a0fec 100644
--- a/code/modules/reagents/reagent_containers/spray.dm
+++ b/code/modules/reagents/reagent_containers/spray.dm
@@ -253,7 +253,7 @@
var/generate_amount = 5
var/generate_type = /datum/reagent/water
var/last_generate = 0
- var/generate_delay = 10 //deciseconds
+ var/generate_delay = 10 //deciseconds
can_fill_from_container = FALSE
/obj/item/reagent_containers/spray/waterflower/cyborg/hacked
@@ -263,7 +263,7 @@
volume = 3
generate_type = /datum/reagent/clf3
generate_amount = 1
- generate_delay = 40 //deciseconds
+ generate_delay = 40 //deciseconds
/obj/item/reagent_containers/spray/waterflower/cyborg/Initialize()
. = ..()
@@ -340,7 +340,7 @@
var/generate_amount = 50
var/generate_type = /datum/reagent/space_cleaner
var/last_generate = 0
- var/generate_delay = 10 //deciseconds
+ var/generate_delay = 10 //deciseconds
/obj/item/reagent_containers/spray/chemsprayer/janitor/Initialize()
. = ..()
diff --git a/code/modules/reagents/reagent_containers/syringes.dm b/code/modules/reagents/reagent_containers/syringes.dm
index 417d42a605a..db688b616b8 100644
--- a/code/modules/reagents/reagent_containers/syringes.dm
+++ b/code/modules/reagents/reagent_containers/syringes.dm
@@ -10,7 +10,7 @@
amount_per_transfer_from_this = 5
possible_transfer_amounts = list(5, 10, 15)
volume = 15
- var/busy = FALSE // needed for delayed drawing of blood
+ var/busy = FALSE // needed for delayed drawing of blood
var/proj_piercing = 0 //does it pierce through thick clothes when shot with syringe gun
custom_materials = list(/datum/material/iron=10, /datum/material/glass=20)
reagent_flags = TRANSPARENT
diff --git a/code/modules/recycling/conveyor2.dm b/code/modules/recycling/conveyor2.dm
index 656e2bf29d3..de112f7c0c5 100644
--- a/code/modules/recycling/conveyor2.dm
+++ b/code/modules/recycling/conveyor2.dm
@@ -11,13 +11,13 @@ GLOBAL_LIST_EMPTY(conveyors_by_id)
layer = BELOW_OPEN_DOOR_LAYER
processing_flags = START_PROCESSING_MANUALLY
subsystem_type = /datum/controller/subsystem/processing/fastprocess
- var/operating = 0 // 1 if running forward, -1 if backwards, 0 if off
- var/operable = 1 // true if can operate (no broken segments in this belt run)
- var/forwards // this is the default (forward) direction, set by the map dir
- var/backwards // hopefully self-explanatory
- var/movedir // the actual direction to move stuff in
- var/id = "" // the control ID - must match controller ID
- var/verted = 1 // Inverts the direction the conveyor belt moves.
+ var/operating = 0 // 1 if running forward, -1 if backwards, 0 if off
+ var/operable = 1 // true if can operate (no broken segments in this belt run)
+ var/forwards // this is the default (forward) direction, set by the map dir
+ var/backwards // hopefully self-explanatory
+ var/movedir // the actual direction to move stuff in
+ var/id = "" // the control ID - must match controller ID
+ var/verted = 1 // Inverts the direction the conveyor belt moves.
var/conveying = FALSE
/obj/machinery/conveyor/centcom_auto
@@ -151,7 +151,7 @@ GLOBAL_LIST_EMPTY(conveyors_by_id)
/obj/machinery/conveyor/proc/convey(list/affecting)
for(var/am in affecting)
- if(!ismovable(am)) //This is like a third faster than for(var/atom/movable in affecting)
+ if(!ismovable(am)) //This is like a third faster than for(var/atom/movable in affecting)
continue
var/atom/movable/movable_thing = am
//Give this a chance to yield if the server is busy
@@ -248,12 +248,12 @@ GLOBAL_LIST_EMPTY(conveyors_by_id)
icon_state = "switch-off"
processing_flags = START_PROCESSING_MANUALLY
- var/position = 0 // 0 off, -1 reverse, 1 forward
- var/last_pos = -1 // last direction setting
- var/oneway = FALSE // if the switch only operates the conveyor belts in a single direction.
- var/invert_icon = FALSE // If the level points the opposite direction when it's turned on.
+ var/position = 0 // 0 off, -1 reverse, 1 forward
+ var/last_pos = -1 // last direction setting
+ var/oneway = FALSE // if the switch only operates the conveyor belts in a single direction.
+ var/invert_icon = FALSE // If the level points the opposite direction when it's turned on.
- var/id = "" // must match conveyor IDs to control them
+ var/id = "" // must match conveyor IDs to control them
/obj/machinery/conveyor_switch/Initialize(mapload, newid)
. = ..()
diff --git a/code/modules/recycling/disposal/bin.dm b/code/modules/recycling/disposal/bin.dm
index ea422d9be24..5f3ed733a6c 100644
--- a/code/modules/recycling/disposal/bin.dm
+++ b/code/modules/recycling/disposal/bin.dm
@@ -12,12 +12,12 @@
obj_flags = CAN_BE_HIT | USES_TGUI
flags_1 = RAD_PROTECT_CONTENTS_1 | RAD_NO_CONTAMINATE_1
- var/datum/gas_mixture/air_contents // internal reservoir
+ var/datum/gas_mixture/air_contents // internal reservoir
var/full_pressure = FALSE
var/pressure_charging = TRUE
- var/flush = 0 // true if flush handle is pulled
+ var/flush = 0 // true if flush handle is pulled
var/obj/structure/disposalpipe/trunk/trunk = null // the attached pipe trunk
- var/flushing = 0 // true if flushing in progress
+ var/flushing = 0 // true if flushing in progress
var/flush_every_ticks = 30 //Every 30 ticks it will look whether it is ready to flush
var/flush_count = 0 //this var adds 1 once per tick. When it reaches flush_every_ticks it resets and tries to flush.
var/last_sound = 0
@@ -282,7 +282,7 @@
// attack by item places it in to disposal
/obj/machinery/disposal/bin/attackby(obj/item/I, mob/user, params)
- if(istype(I, /obj/item/storage/bag/trash)) //Not doing component overrides because this is a specific type.
+ if(istype(I, /obj/item/storage/bag/trash)) //Not doing component overrides because this is a specific type.
var/obj/item/storage/bag/trash/T = I
var/datum/component/storage/STR = T.GetComponent(/datum/component/storage)
to_chat(user, "You empty the bag.")
@@ -466,7 +466,7 @@
. = ..()
trunk = locate() in loc
if(trunk)
- trunk.linked = src // link the pipe trunk to self
+ trunk.linked = src // link the pipe trunk to self
/obj/machinery/disposal/delivery_chute/place_item_in_disposal(obj/item/I, mob/user)
if(I.CanEnterDisposals())
diff --git a/code/modules/recycling/disposal/construction.dm b/code/modules/recycling/disposal/construction.dm
index 819089f73ea..e950d2653a0 100644
--- a/code/modules/recycling/disposal/construction.dm
+++ b/code/modules/recycling/disposal/construction.dm
@@ -93,7 +93,7 @@
if(rotation_type == ROTATION_FLIP)
var/obj/structure/disposalpipe/temp = pipe_type
if(initial(temp.flip_type))
- if(ISDIAGONALDIR(dir)) // Fix RPD-induced diagonal turning
+ if(ISDIAGONALDIR(dir)) // Fix RPD-induced diagonal turning
setDir(turn(dir, 45))
pipe_type = initial(temp.flip_type)
update_icon()
@@ -134,7 +134,7 @@
to_chat(user, "There is already a disposal pipe at that location!")
return TRUE
- else // Disposal or outlet
+ else // Disposal or outlet
var/found_trunk = locate(/obj/structure/disposalpipe/trunk) in T
if(!found_trunk)
diff --git a/code/modules/recycling/disposal/holder.dm b/code/modules/recycling/disposal/holder.dm
index 44fc5c6ddd4..87d29e5e11c 100644
--- a/code/modules/recycling/disposal/holder.dm
+++ b/code/modules/recycling/disposal/holder.dm
@@ -8,12 +8,12 @@
resistance_flags = INDESTRUCTIBLE | LAVA_PROOF | FIRE_PROOF | UNACIDABLE | ACID_PROOF
dir = NONE
flags_1 = RAD_PROTECT_CONTENTS_1 | RAD_NO_CONTAMINATE_1
- var/datum/gas_mixture/gas // gas used to flush, will appear at exit point
- var/active = FALSE // true if the holder is moving, otherwise inactive
- var/count = 1000 // can travel 1000 steps before going inactive (in case of loops)
- var/destinationTag = NONE // changes if contains a delivery container
- var/tomail = FALSE // contains wrapped package
- var/hasmob = FALSE // contains a mob
+ var/datum/gas_mixture/gas // gas used to flush, will appear at exit point
+ var/active = FALSE // true if the holder is moving, otherwise inactive
+ var/count = 1000 // can travel 1000 steps before going inactive (in case of loops)
+ var/destinationTag = NONE // changes if contains a delivery container
+ var/tomail = FALSE // contains wrapped package
+ var/hasmob = FALSE // contains a mob
/obj/structure/disposalholder/Destroy()
QDEL_NULL(gas)
@@ -62,7 +62,7 @@
// argument is the disposal unit the holder started in
/obj/structure/disposalholder/proc/start(obj/machinery/disposal/D)
if(!D.trunk)
- D.expel(src) // no trunk connected, so expel immediately
+ D.expel(src) // no trunk connected, so expel immediately
return
forceMove(D.trunk)
active = TRUE
@@ -108,9 +108,9 @@
if(!T)
return null
- var/fdir = turn(dir, 180) // flip the movement direction
+ var/fdir = turn(dir, 180) // flip the movement direction
for(var/obj/structure/disposalpipe/P in T)
- if(fdir & P.dpdir) // find pipe direction mask that matches flipped dir
+ if(fdir & P.dpdir) // find pipe direction mask that matches flipped dir
return P
// if no matching pipe, return null
return null
@@ -120,10 +120,10 @@
/obj/structure/disposalholder/proc/merge(obj/structure/disposalholder/other)
for(var/A in other)
var/atom/movable/AM = A
- AM.forceMove(src) // move everything in other holder to this one
+ AM.forceMove(src) // move everything in other holder to this one
if(ismob(AM))
var/mob/M = AM
- M.reset_perspective(src) // if a client mob, update eye to follow this holder
+ M.reset_perspective(src) // if a client mob, update eye to follow this holder
qdel(other)
diff --git a/code/modules/recycling/disposal/multiz.dm b/code/modules/recycling/disposal/multiz.dm
index c6760e46a07..69f4601314e 100644
--- a/code/modules/recycling/disposal/multiz.dm
+++ b/code/modules/recycling/disposal/multiz.dm
@@ -13,7 +13,7 @@
multiz_dir = MULTIZ_PIPE_DOWN
/obj/structure/disposalpipe/trunk/multiz/transfer(obj/structure/disposalholder/H)
- if(H.dir == DOWN) //Since we're a trunk, you can still place a chute / bin over us. If theyve entered from there, treat this as a normal trunk
+ if(H.dir == DOWN) //Since we're a trunk, you can still place a chute / bin over us. If theyve entered from there, treat this as a normal trunk
return ..()
// otherwise, go to the linked object
if(multiz_dir) //Are we a trunk that goes up? Or down?
@@ -37,10 +37,10 @@
else
var/obj/structure/disposaloutlet/O = linked
if(istype(O))
- O.expel(H) // expel at outlet
+ O.expel(H) // expel at outlet
else
var/obj/machinery/disposal/D = linked
- D.expel(H) // expel at disposal
+ D.expel(H) // expel at disposal
// Returning null without expelling holder makes the holder expell itself
return null
diff --git a/code/modules/recycling/disposal/outlet.dm b/code/modules/recycling/disposal/outlet.dm
index 1de442ebbd7..a460d2e0e7b 100644
--- a/code/modules/recycling/disposal/outlet.dm
+++ b/code/modules/recycling/disposal/outlet.dm
@@ -8,7 +8,7 @@
anchored = TRUE
flags_1 = RAD_PROTECT_CONTENTS_1 | RAD_NO_CONTAMINATE_1
var/active = FALSE
- var/turf/target // this will be where the output objects are 'thrown' to.
+ var/turf/target // this will be where the output objects are 'thrown' to.
var/obj/structure/disposalpipe/trunk/trunk // the attached pipe trunk
var/obj/structure/disposalconstruct/stored
var/start_eject = 0
@@ -29,7 +29,7 @@
trunk = locate() in loc
if(trunk)
- trunk.linked = src // link the pipe trunk to self
+ trunk.linked = src // link the pipe trunk to self
/obj/structure/disposaloutlet/Destroy()
if(trunk)
diff --git a/code/modules/recycling/disposal/pipe.dm b/code/modules/recycling/disposal/pipe.dm
index 9b86043469a..a01c9f6af2d 100644
--- a/code/modules/recycling/disposal/pipe.dm
+++ b/code/modules/recycling/disposal/pipe.dm
@@ -7,15 +7,15 @@
anchored = TRUE
density = FALSE
obj_flags = CAN_BE_HIT | ON_BLUEPRINTS
- dir = NONE // dir will contain dominant direction for junction pipes
+ dir = NONE // dir will contain dominant direction for junction pipes
max_integrity = 200
armor = list(MELEE = 25, BULLET = 10, LASER = 10, ENERGY = 100, BOMB = 0, BIO = 100, RAD = 100, FIRE = 90, ACID = 30)
- layer = DISPOSAL_PIPE_LAYER // slightly lower than wires and other pipes
+ layer = DISPOSAL_PIPE_LAYER // slightly lower than wires and other pipes
flags_1 = RAD_PROTECT_CONTENTS_1 | RAD_NO_CONTAMINATE_1
damage_deflection = 10
- var/dpdir = NONE // bitmask of pipe directions
- var/initialize_dirs = NONE // bitflags of pipe directions added on init, see \code\_DEFINES\pipe_construction.dm
- var/flip_type // If set, the pipe is flippable and becomes this type when flipped
+ var/dpdir = NONE // bitmask of pipe directions
+ var/initialize_dirs = NONE // bitflags of pipe directions added on init, see \code\_DEFINES\pipe_construction.dm
+ var/flip_type // If set, the pipe is flippable and becomes this type when flipped
var/obj/structure/disposalconstruct/stored
@@ -99,10 +99,10 @@
new floorturf.floor_tile(T)
floorturf.make_plating(TRUE)
- if(direction) // direction is specified
+ if(direction) // direction is specified
if(isspaceturf(T)) // if ended in space, then range is unlimited
target = get_edge_target_turf(T, direction)
- else // otherwise limit to 10 tiles
+ else // otherwise limit to 10 tiles
target = get_ranged_target_turf(T, direction, 10)
eject_range = 10
@@ -183,11 +183,11 @@
// if coming in from primary dir, then next is equal chance of other dirs
/obj/structure/disposalpipe/junction/nextdir(obj/structure/disposalholder/H)
var/flipdir = turn(H.dir, 180)
- if(flipdir != dir) // came from secondary dir, so exit through primary
+ if(flipdir != dir) // came from secondary dir, so exit through primary
return dir
- else // came from primary, so need to choose a secondary exit
- var/mask = dpdir & (~dir) // get a mask of secondary dirs
+ else // came from primary, so need to choose a secondary exit
+ var/mask = dpdir & (~dir) // get a mask of secondary dirs
// find one secondary dir in mask
var/secdir = NONE
@@ -196,9 +196,9 @@
secdir = D
break
- if(prob(50)) // 50% chance to choose the found secondary dir
+ if(prob(50)) // 50% chance to choose the found secondary dir
return secdir
- else // or the other one
+ else // or the other one
return mask & (~secdir)
/obj/structure/disposalpipe/junction/flip
@@ -215,7 +215,7 @@
//a trunk joining to a disposal bin or outlet on the same turf
/obj/structure/disposalpipe/trunk
icon_state = "pipe-t"
- var/obj/linked // the linked obj/machinery/disposal or obj/disposaloutlet
+ var/obj/linked // the linked obj/machinery/disposal or obj/disposaloutlet
/obj/structure/disposalpipe/trunk/Initialize()
. = ..()
@@ -255,16 +255,16 @@
// if not entering from disposal bin,
// transfer to linked object (outlet or bin)
/obj/structure/disposalpipe/trunk/transfer(obj/structure/disposalholder/H)
- if(H.dir == DOWN) // we just entered from a disposer
- return ..() // so do base transfer proc
+ if(H.dir == DOWN) // we just entered from a disposer
+ return ..() // so do base transfer proc
// otherwise, go to the linked object
if(linked)
var/obj/structure/disposaloutlet/O = linked
if(istype(O))
- O.expel(H) // expel at outlet
+ O.expel(H) // expel at outlet
else
var/obj/machinery/disposal/D = linked
- D.expel(H) // expel at disposal
+ D.expel(H) // expel at disposal
// Returning null without expelling holder makes the holder expell itself
return null
diff --git a/code/modules/recycling/disposal/pipe_sorting.dm b/code/modules/recycling/disposal/pipe_sorting.dm
index cc9dc5f1551..9e237934b45 100644
--- a/code/modules/recycling/disposal/pipe_sorting.dm
+++ b/code/modules/recycling/disposal/pipe_sorting.dm
@@ -8,9 +8,9 @@
/obj/structure/disposalpipe/sorting/nextdir(obj/structure/disposalholder/H)
var/sortdir = dpdir & ~(dir | turn(dir, 180))
- if(H.dir != sortdir) // probably came from the negdir
- if(check_sorting(H)) // if destination matches filtered type...
- return sortdir // exit through sortdirection
+ if(H.dir != sortdir) // probably came from the negdir
+ if(check_sorting(H)) // if destination matches filtered type...
+ return sortdir // exit through sortdirection
// go with the flow to positive direction
return dir
diff --git a/code/modules/recycling/sortingmachinery.dm b/code/modules/recycling/sortingmachinery.dm
index 5462da432fe..edbd8998718 100644
--- a/code/modules/recycling/sortingmachinery.dm
+++ b/code/modules/recycling/sortingmachinery.dm
@@ -106,8 +106,8 @@
user.visible_message("[user] attaches a barcode to [src].", "You attach a barcode to [src].")
tagger.paper_count -= 1
sticker = new /obj/item/barcode(src)
- sticker.payments_acc = tagger.payments_acc //new tag gets the tagger's current account.
- sticker.percent_cut = tagger.percent_cut //same, but for the percentage taken.
+ sticker.payments_acc = tagger.payments_acc //new tag gets the tagger's current account.
+ sticker.percent_cut = tagger.percent_cut //same, but for the percentage taken.
var/list/wrap_contents = src.GetAllContents()
for(var/obj/I in wrap_contents)
@@ -289,8 +289,8 @@
user.visible_message("[user] attaches a barcode to [src].", "You attach a barcode to [src].")
tagger.paper_count -= 1
sticker = new /obj/item/barcode(src)
- sticker.payments_acc = tagger.payments_acc //new tag gets the tagger's current account.
- sticker.percent_cut = tagger.percent_cut //as above, as before.
+ sticker.payments_acc = tagger.payments_acc //new tag gets the tagger's current account.
+ sticker.percent_cut = tagger.percent_cut //as above, as before.
var/list/wrap_contents = src.GetAllContents()
for(var/obj/I in wrap_contents)
@@ -445,8 +445,8 @@
playsound(src, 'sound/machines/click.ogg', 40, TRUE)
to_chat(user, "You print a new barcode.")
var/obj/item/barcode/new_barcode = new /obj/item/barcode(src)
- new_barcode.payments_acc = payments_acc // The sticker gets the scanner's registered account.
- new_barcode.percent_cut = percent_cut // Also the registered percent cut.
+ new_barcode.payments_acc = payments_acc // The sticker gets the scanner's registered account.
+ new_barcode.percent_cut = percent_cut // Also the registered percent cut.
user.put_in_hands(new_barcode)
/obj/item/sales_tagger/CtrlClick(mob/user)
diff --git a/code/modules/research/anomaly/explosive_compressor.dm b/code/modules/research/anomaly/explosive_compressor.dm
index 2fa12abdf3f..179272a848d 100644
--- a/code/modules/research/anomaly/explosive_compressor.dm
+++ b/code/modules/research/anomaly/explosive_compressor.dm
@@ -1,5 +1,5 @@
-#define MAX_RADIUS_REQUIRED 20 //maxcap
-#define MIN_RADIUS_REQUIRED 4 //1, 2, 4
+#define MAX_RADIUS_REQUIRED 20 //maxcap
+#define MIN_RADIUS_REQUIRED 4 //1, 2, 4
/**
* # Explosive compressor machines
*
@@ -72,7 +72,7 @@
var/already_made = SSresearch.created_anomaly_types[anomaly_type]
var/hard_limit = SSresearch.anomaly_hard_limit_by_type[anomaly_type]
if(already_made >= hard_limit)
- return //return null
+ return //return null
// my crappy autoscale formula
// linear scaling.
var/radius_span = MAX_RADIUS_REQUIRED - MIN_RADIUS_REQUIRED
@@ -129,14 +129,14 @@
inserted_core = null
say("Transfer valve resulted in negligible explosive power. Items ejected.")
return
- mix.react() // build more pressure
+ mix.react() // build more pressure
var/pressure = mix.return_pressure()
var/range = (pressure - TANK_FRAGMENT_PRESSURE) / TANK_FRAGMENT_SCALE
if(range < required_radius)
inserted_bomb.forceMove(src)
say("Resultant detonation failed to produce enough implosive power to compress [inserted_core]. Core ejected.")
return
- QDEL_NULL(inserted_bomb) // bomb goes poof
+ QDEL_NULL(inserted_bomb) // bomb goes poof
inserted_core.create_core(drop_location(), TRUE, TRUE)
inserted_core = null
say("Success. Resultant detonation has theoretical range of [range]. Required radius was [required_radius]. Core production complete.")
diff --git a/code/modules/research/bepis.dm b/code/modules/research/bepis.dm
index 20934c723a6..70f16f59634 100644
--- a/code/modules/research/bepis.dm
+++ b/code/modules/research/bepis.dm
@@ -20,9 +20,9 @@
circuit = /obj/item/circuitboard/machine/bepis
var/banking_amount = 100
- var/banked_cash = 0 //stored player cash
- var/datum/bank_account/account //payer's account.
- var/account_name //name of the payer's account.
+ var/banked_cash = 0 //stored player cash
+ var/datum/bank_account/account //payer's account.
+ var/account_name //name of the payer's account.
var/error_cause = null
//Vars related to probability and chance of success for testing
var/major_threshold = MAJOR_THRESHOLD
@@ -128,7 +128,7 @@
var/gauss_major = 0
var/gauss_minor = 0
var/gauss_real = 0
- var/list/turfs = block(locate(x-1,y-1,z),locate(x+1,y+1,z)) //NO MORE DISCS IN WINDOWS
+ var/list/turfs = block(locate(x-1,y-1,z),locate(x+1,y+1,z)) //NO MORE DISCS IN WINDOWS
while(length(turfs))
var/turf/T = pick_n_take(turfs)
if(T.is_blocked_turf(TRUE))
@@ -138,9 +138,9 @@
break
if (!dropturf)
dropturf = drop_location()
- gauss_major = (gaussian(major_threshold, std) - negative_cash_offset) //This is the randomized profit value that this experiment has to surpass to unlock a tech.
- gauss_minor = (gaussian(minor_threshold, std) - negative_cash_offset) //And this is the threshold to instead get a minor prize.
- gauss_real = (gaussian(banked_cash, std*inaccuracy_percentage) + positive_cash_offset) //this is the randomized profit value that your experiment expects to give.
+ gauss_major = (gaussian(major_threshold, std) - negative_cash_offset) //This is the randomized profit value that this experiment has to surpass to unlock a tech.
+ gauss_minor = (gaussian(minor_threshold, std) - negative_cash_offset) //And this is the threshold to instead get a minor prize.
+ gauss_real = (gaussian(banked_cash, std*inaccuracy_percentage) + positive_cash_offset) //this is the randomized profit value that your experiment expects to give.
say("Real: [gauss_real]. Minor: [gauss_minor]. Major: [gauss_major].")
flick("chamber_flash",src)
update_icon()
@@ -156,7 +156,7 @@
new reward(dropturf)
say("Experiment concluded with partial success. Dispensing compiled research efforts.")
return
- if(gauss_real <= -1) //Critical Failure
+ if(gauss_real <= -1) //Critical Failure
say("ERROR: CRITICAL MACHIME MALFUNCTI- ON. CURRENCY IS NOT CRASH. CANNOT COMPUTE COMMAND: 'make bucks'") //not a typo, for once.
new /mob/living/simple_animal/deer(dropturf, 1)
use_power(MACHINE_OVERLOAD * power_saver) //To prevent gambling at low cost and also prevent spamming for infinite deer.
diff --git a/code/modules/research/designs.dm b/code/modules/research/designs.dm
index a3f128c098f..9e2908b0ebf 100644
--- a/code/modules/research/designs.dm
+++ b/code/modules/research/designs.dm
@@ -1,6 +1,6 @@
/***************************************************************
-** Design Datums **
-** All the data for building stuff. **
+** Design Datums **
+** All the data for building stuff. **
***************************************************************/
/*
For the materials datum, it assumes you need reagents unless specified otherwise. To designate a material that isn't a reagent,
@@ -20,7 +20,7 @@ other types of metals and chemistry for reagents).
//DESIGNS ARE GLOBAL. DO NOT CREATE OR DESTROY THEM AT RUNTIME OUTSIDE OF INIT, JUST REFERENCE THEM TO WHATEVER YOU'RE DOING! //why are you yelling?
//DO NOT REFERENCE OUTSIDE OF SSRESEARCH. USE THE PROCS IN SSRESEARCH TO OBTAIN A REFERENCE.
-/datum/design //Datum for object designs, used in construction
+/datum/design //Datum for object designs, used in construction
/// Name of the created object
var/name = "Name"
/// Description of the created object
diff --git a/code/modules/research/designs/comp_board_designs.dm b/code/modules/research/designs/comp_board_designs.dm
index d606ef07cb0..794f7492252 100644
--- a/code/modules/research/designs/comp_board_designs.dm
+++ b/code/modules/research/designs/comp_board_designs.dm
@@ -102,7 +102,7 @@
id = "comconsole"
build_path = /obj/item/circuitboard/computer/communications
category = list("Computer Boards")
- departmental_flags = DEPARTMENTAL_FLAG_ENGINEERING | DEPARTMENTAL_FLAG_SECURITY //Honestly should have a bridge techfab for this sometime.
+ departmental_flags = DEPARTMENTAL_FLAG_ENGINEERING | DEPARTMENTAL_FLAG_SECURITY //Honestly should have a bridge techfab for this sometime.
/datum/design/board/idcardconsole
name = "Computer Design (ID Console)"
diff --git a/code/modules/research/designs/weapon_designs.dm b/code/modules/research/designs/weapon_designs.dm
index 4ba29a42b09..03e063949e4 100644
--- a/code/modules/research/designs/weapon_designs.dm
+++ b/code/modules/research/designs/weapon_designs.dm
@@ -150,7 +150,7 @@
materials = list(/datum/material/iron = 5000, /datum/material/glass = 1000)
build_path = /obj/item/gun/syringe/rapidsyringe
category = list("Weapons")
- departmental_flags = DEPARTMENTAL_FLAG_MEDICAL //uwu
+ departmental_flags = DEPARTMENTAL_FLAG_MEDICAL //uwu
/datum/design/temp_gun
name = "Temperature Gun Part Kit"
diff --git a/code/modules/research/destructive_analyzer.dm b/code/modules/research/destructive_analyzer.dm
index d922edc685b..f08b6c7c36e 100644
--- a/code/modules/research/destructive_analyzer.dm
+++ b/code/modules/research/destructive_analyzer.dm
@@ -133,7 +133,7 @@ Note: Must be placed within 3 tiles of the R&D Console
popup.set_content(ui_deconstruct())
popup.open()
-/obj/machinery/rnd/destructive_analyzer/proc/ui_deconstruct() //Legacy code
+/obj/machinery/rnd/destructive_analyzer/proc/ui_deconstruct() //Legacy code
var/list/l = list()
if(!loaded_item)
l += "No item loaded. Standing-by...
"
diff --git a/code/modules/research/experimentor.dm b/code/modules/research/experimentor.dm
index c1105ddcb16..1649da5c0b9 100644
--- a/code/modules/research/experimentor.dm
+++ b/code/modules/research/experimentor.dm
@@ -149,7 +149,7 @@
res += str
else if(SSresearch.science_tech.boosted_nodes[N.id])
boosted += str
- if(SSresearch.science_tech.visible_nodes[N.id]) //JOY OF DISCOVERY!
+ if(SSresearch.science_tech.visible_nodes[N.id]) //JOY OF DISCOVERY!
output += str
output += boosted + res
dat += output
@@ -194,7 +194,7 @@
use_power(750)
if(dotype != FAIL)
var/list/nodes = techweb_item_boost_check(process)
- var/picked = pickweight(nodes) //This should work.
+ var/picked = pickweight(nodes) //This should work.
stored_research.boost_with_path(SSresearch.techweb_node_by_id(picked), process.type)
updateUsrDialog()
diff --git a/code/modules/research/machinery/_production.dm b/code/modules/research/machinery/_production.dm
index 469ca211da0..17a8326f67a 100644
--- a/code/modules/research/machinery/_production.dm
+++ b/code/modules/research/machinery/_production.dm
@@ -2,15 +2,15 @@
name = "technology fabricator"
desc = "Makes researched and prototype items with materials and energy."
layer = BELOW_OBJ_LAYER
- var/efficiency_coeff = 1 //Materials needed / coeff = actual.
+ var/efficiency_coeff = 1 //Materials needed / coeff = actual.
var/list/categories = list()
var/datum/component/remote_materials/materials
var/allowed_department_flags = ALL
- var/production_animation //What's flick()'d on print.
+ var/production_animation //What's flick()'d on print.
var/allowed_buildtypes = NONE
var/list/datum/design/cached_designs
var/list/datum/design/matching_designs
- var/department_tag = "Unidentified" //used for material distribution among other things.
+ var/department_tag = "Unidentified" //used for material distribution among other things.
var/screen = RESEARCH_FABRICATOR_SCREEN_MAIN
var/selected_category
@@ -48,7 +48,7 @@
/obj/machinery/rnd/production/proc/calculate_efficiency()
efficiency_coeff = 1
- if(reagents) //If reagents/materials aren't initialized, don't bother, we'll be doing this again after reagents init anyways.
+ if(reagents) //If reagents/materials aren't initialized, don't bother, we'll be doing this again after reagents init anyways.
reagents.maximum_volume = 0
for(var/obj/item/reagent_containers/glass/G in component_parts)
reagents.maximum_volume += G.volume
diff --git a/code/modules/research/machinery/circuit_imprinter.dm b/code/modules/research/machinery/circuit_imprinter.dm
index d147330fb02..34fe0a676d3 100644
--- a/code/modules/research/machinery/circuit_imprinter.dm
+++ b/code/modules/research/machinery/circuit_imprinter.dm
@@ -23,6 +23,6 @@
. = ..()
var/total_rating = 0
for(var/obj/item/stock_parts/manipulator/M in component_parts)
- total_rating += M.rating * 2 //There is only one.
+ total_rating += M.rating * 2 //There is only one.
total_rating = max(1, total_rating)
efficiency_coeff = total_rating
diff --git a/code/modules/research/nanites/nanite_programs.dm b/code/modules/research/nanites/nanite_programs.dm
index a69e4e4f116..e63964d477c 100644
--- a/code/modules/research/nanites/nanite_programs.dm
+++ b/code/modules/research/nanites/nanite_programs.dm
@@ -5,12 +5,12 @@
var/datum/component/nanites/nanites
var/mob/living/host_mob
- var/use_rate = 0 //Amount of nanites used while active
- var/unique = TRUE //If there can be more than one copy in the same nanites
- var/can_trigger = FALSE //If the nanites have a trigger function (used for the programming UI)
- var/trigger_cost = 0 //Amount of nanites required to trigger
- var/trigger_cooldown = 50 //Deciseconds required between each trigger activation
- var/next_trigger = 0 //World time required for the next trigger activation
+ var/use_rate = 0 //Amount of nanites used while active
+ var/unique = TRUE //If there can be more than one copy in the same nanites
+ var/can_trigger = FALSE //If the nanites have a trigger function (used for the programming UI)
+ var/trigger_cost = 0 //Amount of nanites required to trigger
+ var/trigger_cooldown = 50 //Deciseconds required between each trigger activation
+ var/next_trigger = 0 //World time required for the next trigger activation
var/program_flags = NONE
var/passive_enabled = FALSE //If the nanites have an on/off-style effect, it's tracked by this var
@@ -27,12 +27,12 @@
//The following vars are customizable
- var/activated = TRUE //If FALSE, the program won't process, disables passive effects, can't trigger and doesn't consume nanites
+ var/activated = TRUE //If FALSE, the program won't process, disables passive effects, can't trigger and doesn't consume nanites
- var/timer_restart = 0 //When deactivated, the program will wait X deciseconds before self-reactivating. Also works if the program begins deactivated.
- var/timer_shutdown = 0 //When activated, the program will wait X deciseconds before self-deactivating. Also works if the program begins activated.
- var/timer_trigger = 0 //[Trigger only] While active, the program will attempt to trigger once every x deciseconds.
- var/timer_trigger_delay = 0 //[Trigger only] While active, the program will delay trigger signals by X deciseconds.
+ var/timer_restart = 0 //When deactivated, the program will wait X deciseconds before self-reactivating. Also works if the program begins deactivated.
+ var/timer_shutdown = 0 //When activated, the program will wait X deciseconds before self-deactivating. Also works if the program begins activated.
+ var/timer_trigger = 0 //[Trigger only] While active, the program will attempt to trigger once every x deciseconds.
+ var/timer_trigger_delay = 0 //[Trigger only] While active, the program will delay trigger signals by X deciseconds.
//Indicates the next world.time tick where these timers will act
var/timer_restart_next = 0
@@ -41,10 +41,10 @@
var/timer_trigger_delay_next = 0
//Signal codes, these handle remote input to the nanites. If set to 0 they'll ignore signals.
- var/activation_code = 0 //Code that activates the program [1-9999]
- var/deactivation_code = 0 //Code that deactivates the program [1-9999]
- var/kill_code = 0 //Code that permanently removes the program [1-9999]
- var/trigger_code = 0 //Code that triggers the program (if available) [1-9999]
+ var/activation_code = 0 //Code that activates the program [1-9999]
+ var/deactivation_code = 0 //Code that deactivates the program [1-9999]
+ var/kill_code = 0 //Code that permanently removes the program [1-9999]
+ var/trigger_code = 0 //Code that triggers the program (if available) [1-9999]
//Extra settings
///Don't ever override this or I will come to your house and stand menacingly behind a bush
@@ -53,7 +53,7 @@
//Rules
//Rules that automatically manage if the program's active without requiring separate sensor programs
var/list/datum/nanite_rule/rules = list()
- var/all_rules_required = TRUE //Whether all rules are required for positive condition or any of specified
+ var/all_rules_required = TRUE //Whether all rules are required for positive condition or any of specified
/datum/nanite_program/New()
. = ..()
diff --git a/code/modules/research/nanites/nanite_programs/sensor.dm b/code/modules/research/nanites/nanite_programs/sensor.dm
index 724d2db6147..04cd74dcfc4 100644
--- a/code/modules/research/nanites/nanite_programs/sensor.dm
+++ b/code/modules/research/nanites/nanite_programs/sensor.dm
@@ -296,7 +296,7 @@
if(species)
if(is_species(host_mob, species))
species_match = TRUE
- else //this is the check for the "Other" option
+ else //this is the check for the "Other" option
species_match = TRUE
for(var/name in allowed_species)
var/species_other = allowed_species[name]
diff --git a/code/modules/research/rdconsole.dm b/code/modules/research/rdconsole.dm
index 8f89119e49f..163cf949b33 100644
--- a/code/modules/research/rdconsole.dm
+++ b/code/modules/research/rdconsole.dm
@@ -19,12 +19,12 @@ Nothing else in the console has ID requirements.
desc = "A console used to interface with R&D tools."
icon_screen = "rdcomp"
icon_keyboard = "rd_key"
- var/datum/techweb/stored_research //Reference to global science techweb.
- var/obj/item/disk/tech_disk/t_disk //Stores the technology disk.
- var/obj/item/disk/design_disk/d_disk //Stores the design disk.
+ var/datum/techweb/stored_research //Reference to global science techweb.
+ var/obj/item/disk/tech_disk/t_disk //Stores the technology disk.
+ var/obj/item/disk/design_disk/d_disk //Stores the design disk.
circuit = /obj/item/circuitboard/computer/rdconsole
- req_access = list(ACCESS_RND) //lA AND SETTING MANIPULATION REQUIRES SCIENTIST ACCESS.
+ req_access = list(ACCESS_RND) //lA AND SETTING MANIPULATION REQUIRES SCIENTIST ACCESS.
//UI VARS
var/screen = RDSCREEN_MENU
@@ -196,7 +196,7 @@ Nothing else in the console has ID requirements.
l += "Lock Console"
return l
-/obj/machinery/computer/rdconsole/proc/ui_techdisk() //Legacy code
+/obj/machinery/computer/rdconsole/proc/ui_techdisk() //Legacy code
RDSCREEN_UI_TDISK_CHECK
var/list/l = list()
l += "Disk Operations:
Clear Disk"
@@ -210,7 +210,7 @@ Nothing else in the console has ID requirements.
l += "
"
return l
-/obj/machinery/computer/rdconsole/proc/ui_designdisk() //Legacy code
+/obj/machinery/computer/rdconsole/proc/ui_designdisk() //Legacy code
RDSCREEN_UI_DDISK_CHECK
var/list/l = list()
l += "Disk Operations: Clear DiskUpload AllEject Disk"
@@ -225,7 +225,7 @@ Nothing else in the console has ID requirements.
l += ""
return l
-/obj/machinery/computer/rdconsole/proc/ui_designdisk_upload() //Legacy code
+/obj/machinery/computer/rdconsole/proc/ui_designdisk_upload() //Legacy code
RDSCREEN_UI_DDISK_CHECK
var/list/l = list()
l += "Return to Disk Operations"
@@ -257,7 +257,7 @@ Nothing else in the console has ID requirements.
l += "[RDSCREEN_NOBREAK]"
l += "