diff --git a/code/__HELPERS/icons.dm b/code/__HELPERS/icons.dm
index 04fc2c6f73c..dad2ecd7630 100644
--- a/code/__HELPERS/icons.dm
+++ b/code/__HELPERS/icons.dm
@@ -731,10 +731,16 @@ The _flatIcons list is a cache for generated icon files.
var/icon/add // Icon of overlay being added
- // Current dimensions of flattened icon
- var/{flatX1=1;flatX2=flat.Width();flatY1=1;flatY2=flat.Height()}
- // Dimensions of overlay being added
- var/{addX1;addX2;addY1;addY2}
+ // Current dimensions of flattened icon
+ var/flatX1 = 1
+ var/flatX2 = flat.Width()
+ var/flatY1 = 1
+ var/flatY2 = flat.Height()
+ // Dimensions of overlay being added
+ var/addX1
+ var/addX2
+ var/addY1
+ var/addY2
for(var/I in layers)
diff --git a/code/__HELPERS/unsorted.dm b/code/__HELPERS/unsorted.dm
index 287de3fb424..619d09713d6 100644
--- a/code/__HELPERS/unsorted.dm
+++ b/code/__HELPERS/unsorted.dm
@@ -1314,31 +1314,6 @@ proc/atan2(x, y)
if(!x && !y) return 0
return y >= 0 ? arccos(x / sqrt(x * x + y * y)) : -arccos(x / sqrt(x * x + y * y))
-proc/rotate_icon(file, state, step = 1, aa = FALSE)
- var icon/base = icon(file, state)
-
- var w, h, w2, h2
-
- if(aa)
- aa++
- w = base.Width()
- w2 = w * aa
- h = base.Height()
- h2 = h * aa
-
- var icon{result = icon(base); temp}
-
- for(var/angle in 0 to 360 step step)
- if(angle == 0 ) continue
- if(angle == 360) continue
- temp = icon(base)
- if(aa) temp.Scale(w2, h2)
- temp.Turn(angle)
- if(aa) temp.Scale(w, h)
- result.Insert(temp, "[angle]")
-
- return result
-
/proc/format_text(text)
return replacetext(replacetext(text,"\proper ",""),"\improper ","")
diff --git a/code/controllers/configuration.dm b/code/controllers/configuration.dm
index 71a3bce0fbe..bb27ad7d6fd 100644
--- a/code/controllers/configuration.dm
+++ b/code/controllers/configuration.dm
@@ -355,6 +355,12 @@
if("no_dead_vote")
config.vote_no_dead = 1
+
+ if("vote_autotransfer_initial")
+ config.vote_autotransfer_initial = text2num(value)
+
+ if("vote_autotransfer_interval")
+ config.vote_autotransfer_interval = text2num(value)
if("default_no_vote")
config.vote_no_default = 1
diff --git a/code/game/area/areas.dm b/code/game/area/areas.dm
index a74314a9919..c5683f366ae 100644
--- a/code/game/area/areas.dm
+++ b/code/game/area/areas.dm
@@ -341,7 +341,7 @@
L << sound(sound, repeat = 0, wait = 0, volume = 25, channel = CHANNEL_AMBIENCE)
L.client.played = 1
spawn(600) //ewww - this is very very bad
- if(L.&& L.client)
+ if(L && L.client)
L.client.played = 0
/area/proc/gravitychange(var/gravitystate = 0, var/area/A)
@@ -362,7 +362,7 @@
if(istype(get_turf(M), /turf/space)) // Can't fall onto nothing.
return
- if((istype(M,/mob/living/carbon/human/)) && (M.m_intent == MOVE_INTENT_RUN)).
+ if((istype(M,/mob/living/carbon/human/)) && (M.m_intent == MOVE_INTENT_RUN))
M.Stun(5)
M.Weaken(5)
diff --git a/code/game/machinery/computer/depot.dm b/code/game/machinery/computer/depot.dm
index 4e6afa0c229..149e2b7ff49 100644
--- a/code/game/machinery/computer/depot.dm
+++ b/code/game/machinery/computer/depot.dm
@@ -283,7 +283,7 @@
return
message_sent = TRUE
if(user.mind && user.mind.special_role == SPECIAL_ROLE_TRAITOR)
- var/input = stripped_input(user, "Please choose a message to transmit to Syndicate HQ via quantum entanglement. Transmission does not guarantee a response. This function may only be used ONCE.", "To abort, send an empty message.", "") as text|null
+ var/input = stripped_input(user, "Please choose a message to transmit to Syndicate HQ via quantum entanglement. Transmission does not guarantee a response. This function may only be used ONCE.", "To abort, send an empty message.", "")
if(!input)
message_sent = FALSE
return
diff --git a/code/game/mecha/working/ripley.dm b/code/game/mecha/working/ripley.dm
index ab38ee3a0d0..5667a45ca85 100644
--- a/code/game/mecha/working/ripley.dm
+++ b/code/game/mecha/working/ripley.dm
@@ -20,9 +20,9 @@
update_pressure()
/obj/mecha/working/ripley/Destroy()
- while(damage_absorption.["brute"] < 0.6)
+ while(damage_absorption["brute"] < 0.6)
new /obj/item/asteroid/goliath_hide(loc)
- damage_absorption.["brute"] = damage_absorption.["brute"] + 0.1 //If a goliath-plated ripley gets killed, all the plates drop
+ damage_absorption["brute"] = damage_absorption["brute"] + 0.1 //If a goliath-plated ripley gets killed, all the plates drop
for(var/atom/movable/A in cargo)
A.forceMove(loc)
step_rand(A)
@@ -31,28 +31,28 @@
/obj/mecha/working/ripley/go_out()
..()
- if(damage_absorption.["brute"] < 0.6 && damage_absorption.["brute"] > 0.3)
+ if(damage_absorption["brute"] < 0.6 && damage_absorption["brute"] > 0.3)
overlays = null
overlays += image("icon" = "mecha.dmi", "icon_state" = "ripley-g-open")
- else if(damage_absorption.["brute"] == 0.3)
+ else if(damage_absorption["brute"] == 0.3)
overlays = null
overlays += image("icon" = "mecha.dmi", "icon_state" = "ripley-g-full-open")
/obj/mecha/working/ripley/moved_inside(var/mob/living/carbon/human/H as mob)
..()
- if(damage_absorption.["brute"] < 0.6 && damage_absorption.["brute"] > 0.3)
+ if(damage_absorption["brute"] < 0.6 && damage_absorption["brute"] > 0.3)
overlays = null
overlays += image("icon" = "mecha.dmi", "icon_state" = "ripley-g")
- else if(damage_absorption.["brute"] == 0.3)
+ else if(damage_absorption["brute"] == 0.3)
overlays = null
overlays += image("icon" = "mecha.dmi", "icon_state" = "ripley-g-full")
/obj/mecha/working/ripley/mmi_moved_inside(var/obj/item/mmi/mmi_as_oc as obj,mob/user as mob)
..()
- if(damage_absorption.["brute"] < 0.6 && damage_absorption.["brute"] > 0.3)
+ if(damage_absorption["brute"] < 0.6 && damage_absorption["brute"] > 0.3)
overlays = null
overlays += image("icon" = "mecha.dmi", "icon_state" = "ripley-g")
- else if(damage_absorption.["brute"] == 0.3)
+ else if(damage_absorption["brute"] == 0.3)
overlays = null
overlays += image("icon" = "mecha.dmi", "icon_state" = "ripley-g-full")
diff --git a/code/game/objects/empulse.dm b/code/game/objects/empulse.dm
index 1e026e90e02..cec5b6e1fc8 100644
--- a/code/game/objects/empulse.dm
+++ b/code/game/objects/empulse.dm
@@ -5,8 +5,8 @@
epicenter = get_turf(epicenter.loc)
if(log)
- message_admins("EMP with size ([heavy_range], [light_range]) in area [epicenter.loc.name] [cause ? "(Cause: [cause])": ] [ADMIN_COORDJMP(epicenter)]")
- log_game("EMP with size ([heavy_range], [light_range]) in area [epicenter.loc.name] [cause ? "(Cause: [cause])" : ] [COORD(epicenter)]")
+ message_admins("EMP with size ([heavy_range], [light_range]) in area [epicenter.loc.name] [cause ? "(Cause: [cause])": ""] [ADMIN_COORDJMP(epicenter)]")
+ log_game("EMP with size ([heavy_range], [light_range]) in area [epicenter.loc.name] [cause ? "(Cause: [cause])" : ""] [COORD(epicenter)]")
if(heavy_range > 1)
new/obj/effect/temp_visual/emp/pulse(epicenter)
diff --git a/code/game/objects/explosion.dm b/code/game/objects/explosion.dm
index 9c457e43b6a..f21bbb69c02 100644
--- a/code/game/objects/explosion.dm
+++ b/code/game/objects/explosion.dm
@@ -25,8 +25,8 @@
var/list/cached_exp_block = list()
if(adminlog)
- message_admins("Explosion with size ([devastation_range], [heavy_impact_range], [light_impact_range], [flame_range]) in area [epicenter.loc.name] [cause ? "(Cause: [cause])" : ] [ADMIN_COORDJMP(epicenter)] ")
- log_game("Explosion with size ([devastation_range], [heavy_impact_range], [light_impact_range], [flame_range]) in area [epicenter.loc.name] [cause ? "(Cause: [cause])" : ] [COORD(epicenter)] ")
+ message_admins("Explosion with size ([devastation_range], [heavy_impact_range], [light_impact_range], [flame_range]) in area [epicenter.loc.name] [cause ? "(Cause: [cause])" : ""] [ADMIN_COORDJMP(epicenter)] ")
+ log_game("Explosion with size ([devastation_range], [heavy_impact_range], [light_impact_range], [flame_range]) in area [epicenter.loc.name] [cause ? "(Cause: [cause])" : ""] [COORD(epicenter)] ")
// Play sounds; we want sounds to be different depending on distance so we will manually do it ourselves.
// Stereo users will also hear the direction of the explosion!
diff --git a/code/game/objects/structures/safe.dm b/code/game/objects/structures/safe.dm
index c6e3ab2e5bd..7925036d70f 100644
--- a/code/game/objects/structures/safe.dm
+++ b/code/game/objects/structures/safe.dm
@@ -26,7 +26,6 @@ GLOBAL_LIST_EMPTY(safes)
var/dial = 0 //where is the dial pointing?
var/space = 0 //the combined w_class of everything in the safe
var/maxspace = 24 //the maximum combined w_class of stuff in the safe
- var/combo_to_open //so admins know the code
var/obj/item/thermal_drill/drill = null
var/drill_timer
var/time_to_drill
@@ -39,25 +38,11 @@ GLOBAL_LIST_EMPTY(safes)
/obj/structure/safe/New()
GLOB.safes += src
- tumbler_2_pos = rand(0, 99) // first value in the combination set first
- tumbler_2_open = rand(0, 99)
-
- tumbler_1_pos = rand(0, 99)
- do
- tumbler_1_open = rand(0, 99)
- while(tumbler_1_open > Wrap(tumbler_2_open +48, 0, 100) && tumbler_1_open < Wrap(tumbler_2_open + 53, 0, 100)) // prevents a combination that wont open
- do
- open_pos = rand(0,99)
- while(open_pos > Wrap(tumbler_1_open - 2, 0, 100) && open_pos < Wrap(tumbler_1_open + 2, 0, 100)) // prevents a combination that wont open
- var/num1 = tumbler_2_open + 54
- if(num1 > 99)
- num1 = num1 - 100
- var/num2 = tumbler_1_open + 98
- if(num2 > 99)
- num2 = num2 - 100
-
- combo_to_open = "[num1] - [num2]"
-
+ tumbler_1_pos = rand(0, 71)
+ tumbler_1_open = rand(0, 71)
+
+ tumbler_2_pos = rand(0, 71) // first value in the combination set first
+ tumbler_2_open = rand(0, 71)
/obj/structure/safe/Initialize()
..()
@@ -326,7 +311,7 @@ GLOBAL_LIST_EMPTY(safes)
/obj/structure/safe/examine(mob/user)
..()
if(open)
- to_chat(user, "On the inside of the the door is [combo_to_open]")
+ to_chat(user, "On the inside of the the door is [tumbler_1_open] - [tumbler_2_open]")
//FLOOR SAFES
/obj/structure/safe/floor
@@ -364,6 +349,6 @@ GLOBAL_LIST_EMPTY(safes)
for(var/safe in GLOB.safes)
var/obj/structure/safe/S = safe
if(owner in S.knownby)
- info += "
The combination for the safe located in the [get_area(S).name] is: [S.combo_to_open]
"
+ info += "
The combination for the safe located in the [get_area(S).name] is: [S.tumbler_1_open] - [S.tumbler_2_open]]
"
info_links = info
- update_icon()
\ No newline at end of file
+ update_icon()
diff --git a/code/modules/admin/admin.dm b/code/modules/admin/admin.dm
index ce76dc4e282..188a24b96fc 100644
--- a/code/modules/admin/admin.dm
+++ b/code/modules/admin/admin.dm
@@ -316,7 +316,7 @@ var/global/nologevent = 0
if(CHANNEL.is_admin_channel)
dat+="[CHANNEL.channel_name]
"
else
- dat+="[CHANNEL.channel_name] [(CHANNEL.censored) ? ("***") : ()]
"
+ dat+="[CHANNEL.channel_name] [(CHANNEL.censored) ? ("***") : ""]
"
dat+={"
