diff --git a/code/ATMOSPHERICS/atmospherics.dm b/code/ATMOSPHERICS/atmospherics.dm
index 6ea62424cf2..af0889a6e5c 100644
--- a/code/ATMOSPHERICS/atmospherics.dm
+++ b/code/ATMOSPHERICS/atmospherics.dm
@@ -154,7 +154,6 @@ Pipelines + Other Objects -> Pipe network
var/turf/T = get_turf(src)
if (level == 1 && isturf(T) && T.intact)
to_chat(user, "You must remove the plating first.")
-
return 1
var/datum/gas_mixture/int_air = return_air()
var/datum/gas_mixture/env_air = loc.return_air()
@@ -165,10 +164,8 @@ Pipelines + Other Objects -> Pipe network
playsound(src.loc, 'sound/items/Ratchet.ogg', 50, 1)
to_chat(user, "You begin to unfasten \the [src]...")
-
if (internal_pressure > 2*ONE_ATMOSPHERE)
to_chat(user, "As you begin unwrenching \the [src] a gush of air blows in your face... maybe you should reconsider?")
-
unsafe_wrenching = TRUE //Oh dear oh dear
if (do_after(user, 40, target = src) && isnull(gcDestroyed))
diff --git a/code/ATMOSPHERICS/components/binary_devices/passive_gate.dm b/code/ATMOSPHERICS/components/binary_devices/passive_gate.dm
index ebabc2e3c4b..93bed0168c1 100644
--- a/code/ATMOSPHERICS/components/binary_devices/passive_gate.dm
+++ b/code/ATMOSPHERICS/components/binary_devices/passive_gate.dm
@@ -135,7 +135,6 @@
src.add_fingerprint(usr)
if(!src.allowed(user))
to_chat(user, "Access denied.")
-
return
usr.set_machine(src)
interact(user)
@@ -160,7 +159,6 @@
return ..()
if (on)
to_chat(user, "You cannot unwrench this [src], turn it off first.")
-
return 1
return ..()
\ No newline at end of file
diff --git a/code/ATMOSPHERICS/components/binary_devices/pump.dm b/code/ATMOSPHERICS/components/binary_devices/pump.dm
index 5923825735e..9ef395e3291 100644
--- a/code/ATMOSPHERICS/components/binary_devices/pump.dm
+++ b/code/ATMOSPHERICS/components/binary_devices/pump.dm
@@ -158,7 +158,6 @@ Thus, the two variables affect pump operation are set in New():
src.add_fingerprint(usr)
if(!src.allowed(user))
to_chat(user, "Access denied.")
-
return
usr.set_machine(src)
interact(user)
@@ -190,6 +189,5 @@ Thus, the two variables affect pump operation are set in New():
return ..()
if (!(stat & NOPOWER) && on)
to_chat(user, "You cannot unwrench this [src], turn it off first.")
-
return 1
return ..()
\ No newline at end of file
diff --git a/code/ATMOSPHERICS/components/binary_devices/valve.dm b/code/ATMOSPHERICS/components/binary_devices/valve.dm
index 9aae2337f1e..1c0f625e036 100644
--- a/code/ATMOSPHERICS/components/binary_devices/valve.dm
+++ b/code/ATMOSPHERICS/components/binary_devices/valve.dm
@@ -75,7 +75,6 @@
return
if(!src.allowed(user))
to_chat(user, "Access denied.")
-
return
..()
diff --git a/code/ATMOSPHERICS/components/binary_devices/volume_pump.dm b/code/ATMOSPHERICS/components/binary_devices/volume_pump.dm
index 253504d773e..e0acb101a96 100644
--- a/code/ATMOSPHERICS/components/binary_devices/volume_pump.dm
+++ b/code/ATMOSPHERICS/components/binary_devices/volume_pump.dm
@@ -148,7 +148,6 @@ Thus, the two variables affect pump operation are set in New():
src.add_fingerprint(usr)
if(!src.allowed(user))
to_chat(user, "Access denied.")
-
return
usr.set_machine(src)
interact(user)
@@ -180,6 +179,5 @@ Thus, the two variables affect pump operation are set in New():
return ..()
if (!(stat & NOPOWER) && on)
to_chat(user, "You cannot unwrench this [src], turn it off first.")
-
return 1
return ..()
\ No newline at end of file
diff --git a/code/ATMOSPHERICS/components/omni_devices/omni_base.dm b/code/ATMOSPHERICS/components/omni_devices/omni_base.dm
index 1ce0b673e16..89bec1b0614 100644
--- a/code/ATMOSPHERICS/components/omni_devices/omni_base.dm
+++ b/code/ATMOSPHERICS/components/omni_devices/omni_base.dm
@@ -105,12 +105,10 @@
var/datum/gas_mixture/env_air = loc.return_air()
if ((int_pressure - env_air.return_pressure()) > 2*ONE_ATMOSPHERE)
to_chat(user, "You cannot unwrench [src], it is too exerted due to internal pressure.")
-
add_fingerprint(user)
return 1
playsound(src.loc, 'sound/items/Ratchet.ogg', 50, 1)
to_chat(user, "You begin to unfasten \the [src]...")
-
if(do_after(user, 40, target = src))
user.visible_message( \
"[user] unfastens \the [src].", \
diff --git a/code/ATMOSPHERICS/components/trinary_devices/filter.dm b/code/ATMOSPHERICS/components/trinary_devices/filter.dm
index a61815351e7..f26ae014a27 100755
--- a/code/ATMOSPHERICS/components/trinary_devices/filter.dm
+++ b/code/ATMOSPHERICS/components/trinary_devices/filter.dm
@@ -154,7 +154,6 @@ Filter types:
if(!src.allowed(user))
to_chat(user, "Access denied.")
-
return
var/dat
diff --git a/code/ATMOSPHERICS/components/trinary_devices/mixer.dm b/code/ATMOSPHERICS/components/trinary_devices/mixer.dm
index 7e152b4e912..e54815299ef 100644
--- a/code/ATMOSPHERICS/components/trinary_devices/mixer.dm
+++ b/code/ATMOSPHERICS/components/trinary_devices/mixer.dm
@@ -115,7 +115,6 @@
src.add_fingerprint(usr)
if(!src.allowed(user))
to_chat(user, "Access denied.")
-
return
usr.set_machine(src)
var/dat = {"Power: [on?"On":"Off"]
diff --git a/code/ATMOSPHERICS/components/trinary_devices/tvalve.dm b/code/ATMOSPHERICS/components/trinary_devices/tvalve.dm
index 2d727170750..2195bab16d8 100644
--- a/code/ATMOSPHERICS/components/trinary_devices/tvalve.dm
+++ b/code/ATMOSPHERICS/components/trinary_devices/tvalve.dm
@@ -136,7 +136,6 @@
return
if(!src.allowed(user))
to_chat(user, "Access denied.")
-
return
..()
diff --git a/code/ATMOSPHERICS/components/unary_devices/outlet_injector.dm b/code/ATMOSPHERICS/components/unary_devices/outlet_injector.dm
index c8ddd45a4ef..1b106c12a1c 100644
--- a/code/ATMOSPHERICS/components/unary_devices/outlet_injector.dm
+++ b/code/ATMOSPHERICS/components/unary_devices/outlet_injector.dm
@@ -172,7 +172,6 @@
if(istype(W, /obj/item/weapon/wrench))
if (!(stat & NOPOWER) && on)
to_chat(user, "You cannot unwrench this [src], turn if off first.")
-
return 1
return ..()
diff --git a/code/ATMOSPHERICS/components/unary_devices/portables_connector.dm b/code/ATMOSPHERICS/components/unary_devices/portables_connector.dm
index 347c44e3790..8df6fec3cdf 100644
--- a/code/ATMOSPHERICS/components/unary_devices/portables_connector.dm
+++ b/code/ATMOSPHERICS/components/unary_devices/portables_connector.dm
@@ -37,7 +37,6 @@
if(istype(W, /obj/item/weapon/wrench))
if(connected_device)
to_chat(user, "You cannot unwrench this [src], detach [connected_device] first.")
-
return 1
return ..()
diff --git a/code/ATMOSPHERICS/components/unary_devices/vent_pump.dm b/code/ATMOSPHERICS/components/unary_devices/vent_pump.dm
index 2e065a97e43..636f549d6d2 100644
--- a/code/ATMOSPHERICS/components/unary_devices/vent_pump.dm
+++ b/code/ATMOSPHERICS/components/unary_devices/vent_pump.dm
@@ -323,7 +323,6 @@
var/obj/item/weapon/weldingtool/WT = W
if (WT.remove_fuel(0,user))
to_chat(user, "Now welding the vent.")
-
if(do_after(user, 20, target = src))
if(!src || !WT.isOn()) return
playsound(src.loc, 'sound/items/Welder2.ogg', 50, 1)
@@ -338,22 +337,18 @@
else
to_chat(user, "The welding tool needs to be on to start this task.")
-
else
to_chat(user, "You need more welding fuel to complete this task.")
-
return 1
if(istype(W, /obj/item/weapon/screwdriver))
if(!welded)
if(open)
to_chat(user, " Now closing the vent.")
-
if (do_after(user, 20, target = src))
open = 0
user.visible_message("[user] screwdrivers the vent shut.", "You screwdriver the vent shut.", "You hear a screwdriver.")
else
to_chat(user, " Now opening the vent.")
-
if (do_after(user, 20, target = src))
open = 1
user.visible_message("[user] screwdrivers the vent shut.", "You screwdriver the vent shut.", "You hear a screwdriver.")
@@ -365,10 +360,8 @@
W.forceMove(src)
if(!open)
to_chat(user, "You can't shove that down there when it is closed")
-
else
to_chat(user, "The vent is welded.")
-
return
if(istype(W, /obj/item/device/multitool))
update_multitool_menu(user)
@@ -376,7 +369,6 @@
if (istype(W, /obj/item/weapon/wrench))
if (!(stat & NOPOWER) && on)
to_chat(user, "You cannot unwrench this [src], turn it off first.")
-
return 1
return ..()
@@ -393,7 +385,6 @@
if(welded)
to_chat(user, "It seems welded shut.")
-
/obj/machinery/atmospherics/unary/vent_pump/power_change()
var/old_stat = stat
..()
diff --git a/code/ATMOSPHERICS/components/unary_devices/vent_scrubber.dm b/code/ATMOSPHERICS/components/unary_devices/vent_scrubber.dm
index 5808dd55dac..cd8a88b12f5 100644
--- a/code/ATMOSPHERICS/components/unary_devices/vent_scrubber.dm
+++ b/code/ATMOSPHERICS/components/unary_devices/vent_scrubber.dm
@@ -60,7 +60,6 @@
if(welded)
to_chat(user, "It seems welded shut.")
-
/obj/machinery/atmospherics/unary/vent_scrubber/auto_use_power()
if(!powered(power_channel))
return 0
@@ -374,7 +373,6 @@
var/obj/item/weapon/weldingtool/WT = W
if (WT.remove_fuel(0,user))
to_chat(user, "Now welding the scrubber.")
-
if(do_after(user, 20, target = src))
if(!src || !WT.isOn()) return
playsound(get_turf(src), 'sound/items/Welder2.ogg', 50, 1)
@@ -388,11 +386,9 @@
update_icon()
else
to_chat(user, "The welding tool needs to be on to start this task.")
-
return 1
else
to_chat(user, "You need more welding fuel to complete this task.")
-
return 1
if(istype(W, /obj/item/device/multitool))
update_multitool_menu(user)
@@ -400,7 +396,6 @@
if (istype(W, /obj/item/weapon/wrench))
if (!(stat & NOPOWER) && on)
to_chat(user, "You cannot unwrench this [src], turn it off first.")
-
return 1
return ..()
diff --git a/code/__HELPERS/files.dm b/code/__HELPERS/files.dm
index 0f24997d67f..27f3537d521 100644
--- a/code/__HELPERS/files.dm
+++ b/code/__HELPERS/files.dm
@@ -40,7 +40,6 @@
var/extension = copytext(path,-4,0)
if( !fexists(path) || !(extension in valid_extensions) )
to_chat(src, "Error: browse_files(): File not found/Invalid file([path]).")
-
return
return path
@@ -55,7 +54,6 @@
var/time_to_wait = fileaccess_timer - world.time
if(time_to_wait > 0)
to_chat(src, "Error: file_spam_check(): Spam. Please wait [round(time_to_wait/10)] seconds.")
-
return 1
fileaccess_timer = world.time + FTPDELAY
return 0
diff --git a/code/__HELPERS/game.dm b/code/__HELPERS/game.dm
index d33bb2c8d64..3542948ae10 100644
--- a/code/__HELPERS/game.dm
+++ b/code/__HELPERS/game.dm
@@ -488,21 +488,16 @@ proc/pollCandidates(var/Question, var/be_special_type, var/antag_age_check = 0,
spawn(0)
to_chat(G, 'sound/misc/notice2.ogg')//Alerting them to their consideration
-
switch(alert(G,Question,"Please answer in [poll_time/10] seconds!","Yes","No"))
if("Yes")
to_chat(G, "Choice registered: Yes.")
-
if((world.time-time_passed)>poll_time)//If more than 30 game seconds passed.
to_chat(G, "Sorry, you were too late for the consideration!")
-
to_chat(G, 'sound/machines/buzz-sigh.ogg')
-
return
candidates += G
if("No")
to_chat(G, "Choice registered: No.")
-
return
else
return
diff --git a/code/__HELPERS/global_lists.dm b/code/__HELPERS/global_lists.dm
index c63c039f075..36bb824e642 100644
--- a/code/__HELPERS/global_lists.dm
+++ b/code/__HELPERS/global_lists.dm
@@ -59,7 +59,6 @@
for(var/t in L)
. += " has: [t]\n"
to_chat(world, .)
-
*/
diff --git a/code/__HELPERS/icons.dm b/code/__HELPERS/icons.dm
index 95529721619..4c2517d9617 100644
--- a/code/__HELPERS/icons.dm
+++ b/code/__HELPERS/icons.dm
@@ -169,7 +169,6 @@ mob
set name = "2. Output Icon"
to_chat(src, "Icon is: \icon[getFlatIcon(src)]")
-
Label_Icon()
set name = "3. Label Icon"
// Give it a name for the cache
diff --git a/code/__HELPERS/logging.dm b/code/__HELPERS/logging.dm
index bcb9b3dcbb7..09830792201 100644
--- a/code/__HELPERS/logging.dm
+++ b/code/__HELPERS/logging.dm
@@ -34,7 +34,6 @@
to_chat(C, "DEBUG: [text]")
-
/proc/log_game(text)
if (config.log_game)
diary << "\[[time_stamp()]]GAME: [text]"
@@ -92,5 +91,4 @@
*/
/proc/log_startup_progress(var/message)
to_chat(world, "[message]")
-
log_to_dd(message)
\ No newline at end of file
diff --git a/code/__HELPERS/names.dm b/code/__HELPERS/names.dm
index 370fd92b75e..be0b6bbf245 100644
--- a/code/__HELPERS/names.dm
+++ b/code/__HELPERS/names.dm
@@ -240,7 +240,6 @@ var/syndicate_code_response//Code response for traitors.
set category = "Debug"
to_chat(world, "\red Code Phrase is: \black [generate_code_phrase()]")
-
return
diff --git a/code/__HELPERS/unsorted.dm b/code/__HELPERS/unsorted.dm
index 2991b4c830a..33a815f2443 100644
--- a/code/__HELPERS/unsorted.dm
+++ b/code/__HELPERS/unsorted.dm
@@ -252,7 +252,6 @@ Turf and target are seperate in case you want to teleport some distance from a t
var/total_moles = air_contents.total_moles()
to_chat(user, "Results of analysis of \icon[icon] [target].")
-
if(total_moles>0)
var/o2_concentration = air_contents.oxygen/total_moles
var/n2_concentration = air_contents.nitrogen/total_moles
@@ -262,23 +261,15 @@ Turf and target are seperate in case you want to teleport some distance from a t
var/unknown_concentration = 1-(o2_concentration+n2_concentration+co2_concentration+plasma_concentration)
to_chat(user, "Pressure: [round(pressure,0.1)] kPa")
-
to_chat(user, "Nitrogen: [round(n2_concentration*100)] %")
-
to_chat(user, "Oxygen: [round(o2_concentration*100)] %")
-
to_chat(user, "CO2: [round(co2_concentration*100)] %")
-
to_chat(user, "Plasma: [round(plasma_concentration*100)] %")
-
if(unknown_concentration>0.01)
to_chat(user, "Unknown: [round(unknown_concentration*100)] %")
-
to_chat(user, "Temperature: [round(air_contents.temperature-T0C)] °C")
-
else
to_chat(user, "[target] is empty!")
-
return
//Picks a string of symbols to display as the law number for hacked or ion laws
diff --git a/code/_onclick/click.dm b/code/_onclick/click.dm
index 1405860b107..d135e62ae69 100644
--- a/code/_onclick/click.dm
+++ b/code/_onclick/click.dm
@@ -333,11 +333,9 @@
var/obj/structure/cable/cable = locate() in T
if(!cable || !istype(cable))
to_chat(src, "There is no cable here to power the gloves.")
-
return
if(world.time < G.next_shock)
to_chat(src, "[G] aren't ready to shock again!")
-
return
src.visible_message("[name] fires an arc of electricity!", \
"You fire an arc of electricity!", \
diff --git a/code/_onclick/click_override.dm b/code/_onclick/click_override.dm
index 520ef6b5078..092398ee174 100644
--- a/code/_onclick/click_override.dm
+++ b/code/_onclick/click_override.dm
@@ -28,12 +28,10 @@
/obj/item/weapon/badminBook/attack_self(mob/living/user as mob)
if(user.middleClickOverride)
to_chat(user, "You try to draw power from the [src], but you cannot hold the power at this time!")
-
return
user.middleClickOverride = clickBehavior
to_chat(user, "You draw a bit of power from the [src], you can use middle click or alt click to release the power!")
-
/datum/middleClickOverride/badminClicker
var/summon_path = /obj/item/weapon/reagent_containers/food/snacks/cookie
@@ -41,6 +39,5 @@
var/atom/movable/newObject = new summon_path
newObject.loc = get_turf(A)
to_chat(user, "You release the power you had stored up, summoning \a [newObject.name]! ")
-
usr.loc.visible_message("[user] waves \his hand and summons \a [newObject.name]")
..()
\ No newline at end of file
diff --git a/code/_onclick/cyborg.dm b/code/_onclick/cyborg.dm
index 330f22366c1..ecb7f00cd8b 100644
--- a/code/_onclick/cyborg.dm
+++ b/code/_onclick/cyborg.dm
@@ -54,7 +54,6 @@
aiCamera.captureimage(A, usr)
else
to_chat(src, "Your camera isn't functional.")
-
return
/*
diff --git a/code/_onclick/hud/action.dm b/code/_onclick/hud/action.dm
index e5854c7a706..0a891be21f5 100644
--- a/code/_onclick/hud/action.dm
+++ b/code/_onclick/hud/action.dm
@@ -281,13 +281,11 @@
owner.research_scanner = 1
to_chat(owner, " Research analyzer is now active.")
-
/datum/action/scan_mode/Deactivate()
active = 0
owner.research_scanner = 0
to_chat(owner, " Research analyzer deactivated.")
-
/datum/action/scan_mode/Grant(mob/living/T)
devices += 1
..(T)
diff --git a/code/_onclick/hud/hud.dm b/code/_onclick/hud/hud.dm
index 6fbcb2456e6..fa414ba0dea 100644
--- a/code/_onclick/hud/hud.dm
+++ b/code/_onclick/hud/hud.dm
@@ -196,7 +196,5 @@ datum/hud/New(mob/owner)
else
to_chat(usr, "\red Inventory hiding is currently only supported for human mobs, sorry.")
-
else
to_chat(usr, "\red This mob type does not use a HUD.")
-
diff --git a/code/_onclick/hud/robot.dm b/code/_onclick/hud/robot.dm
index 2350dff6a26..8e729546b20 100644
--- a/code/_onclick/hud/robot.dm
+++ b/code/_onclick/hud/robot.dm
@@ -247,12 +247,10 @@
if(!r.module)
to_chat(usr, "\red No module selected")
-
return
if(!r.module.modules)
to_chat(usr, "\red Selected module has no modules to select")
-
return
if(!r.robot_modules_background)
diff --git a/code/_onclick/hud/screen_objects.dm b/code/_onclick/hud/screen_objects.dm
index 417dd668d0f..3ab8f58fd99 100644
--- a/code/_onclick/hud/screen_objects.dm
+++ b/code/_onclick/hud/screen_objects.dm
@@ -96,7 +96,6 @@
if(C.internal)
C.internal = null
to_chat(C, "No longer running on internals.")
-
if(C.internals)
C.internals.icon_state = "internal0"
else
@@ -110,7 +109,6 @@
if(no_mask)
to_chat(C, "You are not wearing a suitable mask or helmet.")
-
return 1
else
var/list/nicename = null
@@ -192,7 +190,6 @@
if(best)
to_chat(C, "You are now running on internals from [tankcheck[best]] [from] your [nicename[best]].")
-
C.internal = tankcheck[best]
@@ -202,7 +199,6 @@
else
to_chat(C, "You don't have a[breathes=="oxygen" ? "n oxygen" : addtext(" ",breathes)] tank.")
-
/obj/screen/mov_intent
name = "run/walk toggle"
icon = 'icons/mob/screen1_midnight.dmi'
@@ -213,7 +209,6 @@
var/mob/living/carbon/C = usr
if(C.legcuffed)
to_chat(C, "You are legcuffed! You cannot run until you get [C.legcuffed] removed!")
-
C.m_intent = "walk" //Just incase
C.hud_used.move_intent.icon_state = "walking"
return 1
@@ -376,7 +371,6 @@
return
if(!istype(usr.get_active_hand(), /obj/item/weapon/gun))
to_chat(usr, "You need your gun in your active hand to do that!")
-
return
usr.client.AllowTargetClick()
gun_click_time = world.time
diff --git a/code/_onclick/item_attack.dm b/code/_onclick/item_attack.dm
index 2fe0c4c40db..d71d0205b89 100644
--- a/code/_onclick/item_attack.dm
+++ b/code/_onclick/item_attack.dm
@@ -18,7 +18,6 @@
if(stat == DEAD && !isnull(butcher_results)) //can we butcher it?
if(istype(I, /obj/item/weapon/kitchen/knife))
to_chat(user, "You begin to butcher [src]...")
-
playsound(loc, 'sound/weapons/slice.ogg', 50, 1, -1)
if(do_mob(user, src, 80))
harvest(user)
@@ -81,7 +80,6 @@
var/mob/living/carbon/slime/slime = M
if(prob(25))
to_chat(user, "\red [src] passes right through [M]!")
-
return
if(power > 0)
@@ -168,7 +166,6 @@
-
if(istype(M, /mob/living/carbon/human))
return M:attacked_by(src, user, def_zone) //make sure to return whether we have hit or miss
else
@@ -188,7 +185,6 @@
if (!(RESIST_COLD in M.mutations))
M.take_organ_damage(0, power)
to_chat(M, "Aargh it burns!")
-
M.updatehealth()
add_fingerprint(user)
return 1
diff --git a/code/_onclick/observer.dm b/code/_onclick/observer.dm
index bdfbbfb839a..869ee83ff9c 100644
--- a/code/_onclick/observer.dm
+++ b/code/_onclick/observer.dm
@@ -63,10 +63,8 @@
else
to_chat(user, "[src] has no destination.")
-
/obj/machinery/gateway/centeraway/attack_ghost(mob/user as mob)
if(stationgate)
user.forceMove(stationgate.loc)
else
to_chat(user, "[src] has no destination.")
-
diff --git a/code/_onclick/oldcode.dm b/code/_onclick/oldcode.dm
index c4c454b067c..b3f2c1dde05 100644
--- a/code/_onclick/oldcode.dm
+++ b/code/_onclick/oldcode.dm
@@ -140,7 +140,6 @@
// to_chat(world, "according to dblclick(), t5 is [t5]")
-
// ------- ACTUALLY DETERMINING STUFF -------
if (((t5 || (W && (W.flags & USEDELAY))) && !( istype(src, /obj/screen) )))
diff --git a/code/_onclick/rig.dm b/code/_onclick/rig.dm
index d497a12ef60..31e6f287564 100644
--- a/code/_onclick/rig.dm
+++ b/code/_onclick/rig.dm
@@ -19,18 +19,14 @@
switch(hardsuit_click_mode)
if(MIDDLE_CLICK)
to_chat(src, "Hardsuit activation mode set to middle-click.")
-
if(ALT_CLICK)
to_chat(src, "Hardsuit activation mode set to alt-click.")
-
if(CTRL_CLICK)
to_chat(src, "Hardsuit activation mode set to control-click.")
-
else
// should never get here, but just in case:
log_debug("Bad hardsuit click mode: [hardsuit_click_mode] - expected 0 to [MAX_HARDSUIT_CLICK_MODE]")
to_chat(src, "Somehow you bugged the system. Setting your hardsuit mode to middle-click.")
-
hardsuit_click_mode = MIDDLE_CLICK
/mob/living/MiddleClickOn(atom/A)
diff --git a/code/_onclick/telekinesis.dm b/code/_onclick/telekinesis.dm
index bf5691778f3..ee953edac3f 100644
--- a/code/_onclick/telekinesis.dm
+++ b/code/_onclick/telekinesis.dm
@@ -112,7 +112,6 @@ var/const/tk_maxrange = 15
d = max(d,get_dist(user,focus)) // whichever is further
if(d > tk_maxrange)
to_chat(user, "Your mind won't reach that far.")
-
return
if(!focus)
diff --git a/code/controllers/Processes/inactivity.dm b/code/controllers/Processes/inactivity.dm
index 188f017d960..b08df7983fc 100644
--- a/code/controllers/Processes/inactivity.dm
+++ b/code/controllers/Processes/inactivity.dm
@@ -9,7 +9,6 @@
if(!istype(C.mob, /mob/dead))
log_access("AFK: [key_name(C)]")
to_chat(C, "You have been inactive for more than 10 minutes and have been disconnected.")
-
del(C)
SCHECK
diff --git a/code/controllers/Processes/shuttles.dm b/code/controllers/Processes/shuttles.dm
index 9ac4cd120af..e92def92224 100644
--- a/code/controllers/Processes/shuttles.dm
+++ b/code/controllers/Processes/shuttles.dm
@@ -93,36 +93,29 @@ var/const/CALL_SHUTTLE_REASON_LENGTH = 12
if(world.time - round_start_time < config.shuttle_refuel_delay)
to_chat(user, "The emergency shuttle is refueling. Please wait another [abs(round(((world.time - round_start_time) - config.shuttle_refuel_delay)/600))] minutes before trying again.")
-
return
switch(emergency.mode)
if(SHUTTLE_RECALL)
to_chat(user, "The emergency shuttle may not be called while returning to Centcom.")
-
return
if(SHUTTLE_CALL)
to_chat(user, "The emergency shuttle is already on its way.")
-
return
if(SHUTTLE_DOCKED)
to_chat(user, "The emergency shuttle is already here.")
-
return
if(SHUTTLE_ESCAPE)
to_chat(user, "The emergency shuttle is moving away to a safe distance.")
-
return
if(SHUTTLE_STRANDED)
to_chat(user, "The emergency shuttle has been disabled by Centcom.")
-
return
call_reason = trim(html_encode(call_reason))
if(length(call_reason) < CALL_SHUTTLE_REASON_LENGTH)
to_chat(user, "You must provide a reason.")
-
return
var/area/signal_origin = get_area(user)
diff --git a/code/controllers/configuration.dm b/code/controllers/configuration.dm
index 757891f1f7d..9cf42a511fd 100644
--- a/code/controllers/configuration.dm
+++ b/code/controllers/configuration.dm
@@ -689,7 +689,6 @@
for (var/T in subtypesof(/datum/game_mode))
var/datum/game_mode/M = new T()
// to_chat(world, "DEBUG: [T], tag=[M.config_tag], prob=[probabilities[M.config_tag]]")
-
if (!(M.config_tag in modes))
qdel(M)
continue
@@ -699,5 +698,4 @@
if (M.can_start())
runnable_modes[M] = probabilities[M.config_tag]
// to_chat(world, "DEBUG: runnable_mode\[[runnable_modes.len]\] = [M.config_tag]")
-
return runnable_modes
diff --git a/code/controllers/voting.dm b/code/controllers/voting.dm
index 96310f6c93d..6b7e4e7558f 100644
--- a/code/controllers/voting.dm
+++ b/code/controllers/voting.dm
@@ -26,7 +26,6 @@ datum/controller/vote
// 3 is GAME_STATE_PLAYING, but that #define is undefined for some reason
if(mode == "gamemode" && ticker.current_state >= 2)
to_chat(world, "Voting aborted due to game start.")
-
src.reset()
return
@@ -64,7 +63,6 @@ datum/controller/vote
auto_muted = 0
config.ooc_allowed = !( config.ooc_allowed )
to_chat(world, "The OOC channel has been automatically enabled due to vote end.")
-
log_admin("OOC was toggled automatically due to vote end.")
message_admins("OOC has been toggled on automatically.")
@@ -106,7 +104,6 @@ datum/controller/vote
factor = 1.4
choices["Initiate Crew Transfer"] = round(choices["Initiate Crew Transfer"] * factor)
to_chat(world, "Crew Transfer Factor: [factor]")
-
greatest_votes = max(choices["Initiate Crew Transfer"], choices["Continue The Round"])
@@ -144,7 +141,6 @@ datum/controller/vote
text += "Vote Result: Inconclusive - No Votes!"
log_vote(text)
to_chat(world, "[text]")
-
return .
proc/result()
@@ -165,7 +161,6 @@ datum/controller/vote
if(!going)
going = 1
to_chat(world, "The round will start soon.")
-
if("crew_transfer")
if(. == "Initiate Crew Transfer")
init_shift_change(null, 1)
@@ -232,40 +227,32 @@ datum/controller/vote
log_vote(text)
to_chat(world, "[text]\nType vote to place your votes.\nYou have [config.vote_period/10] seconds to vote.")
-
switch(vote_type)
if("crew_transfer")
to_chat(world, sound('sound/ambience/alarm4.ogg'))
-
if("gamemode")
to_chat(world, sound('sound/ambience/alarm4.ogg'))
-
if("custom")
to_chat(world, sound('sound/ambience/alarm4.ogg'))
-
if(mode == "gamemode" && going)
going = 0
to_chat(world, "Round start has been delayed.")
-
if(mode == "crew_transfer" && config.ooc_allowed)
auto_muted = 1
config.ooc_allowed = !( config.ooc_allowed )
to_chat(world, "The OOC channel has been automatically disabled due to a crew transfer vote.")
-
log_admin("OOC was toggled automatically due to crew_transfer vote.")
message_admins("OOC has been toggled off automatically.")
if(mode == "gamemode" && config.ooc_allowed)
auto_muted = 1
config.ooc_allowed = !( config.ooc_allowed )
to_chat(world, "The OOC channel has been automatically disabled due to the gamemode vote.")
-
log_admin("OOC was toggled automatically due to gamemode vote.")
message_admins("OOC has been toggled off automatically.")
if(mode == "custom" && config.ooc_allowed)
auto_muted = 1
config.ooc_allowed = !( config.ooc_allowed )
to_chat(world, "The OOC channel has been automatically disabled due to a custom vote.")
-
log_admin("OOC was toggled automatically due to custom vote.")
message_admins("OOC has been toggled off automatically.")
diff --git a/code/datums/ai_laws.dm b/code/datums/ai_laws.dm
index f929de520b3..4af13e256fd 100644
--- a/code/datums/ai_laws.dm
+++ b/code/datums/ai_laws.dm
@@ -229,11 +229,9 @@ var/global/const/base_law_type = /datum/ai_laws/nanotrasen
continue
if(law == zeroth_law)
to_chat(who, "[law.get_index()]. [law.law]")
-
else
to_chat(who, "[law.get_index()]. [law.law]")
-
/********************
* Stating Laws *
********************/
diff --git a/code/datums/browser.dm b/code/datums/browser.dm
index 9d5e019aed8..e8f17f17ad0 100644
--- a/code/datums/browser.dm
+++ b/code/datums/browser.dm
@@ -156,7 +156,6 @@
// to_chat(world, "OnClose [user]: [windowid] : ["on-close=\".windowclose [param]\""]")
-
// the on-close client verb
// called when a browser popup window is closed after registering with proc/onclose()
// if a valid atom reference is supplied, call the atom's Topic() with "close=1"
@@ -167,12 +166,10 @@
set name = ".windowclose" // no autocomplete on cmd line
// to_chat(world, "windowclose: [atomref]")
-
if(atomref!="null") // if passed a real atomref
var/hsrc = locate(atomref) // find the reffed atom
if(hsrc)
// to_chat(world, "[src] Topic [href] [hsrc]")
-
usr = src.mob
src.Topic("close=1", list("close"="1"), hsrc) // this will direct to the atom's
return // Topic() proc via client.Topic()
@@ -181,6 +178,5 @@
// so just reset the user mob's machine var
if(src && src.mob)
// to_chat(world, "[src] was [src.mob.machine], setting to null")
-
src.mob.unset_machine()
return
\ No newline at end of file
diff --git a/code/datums/cargoprofile.dm b/code/datums/cargoprofile.dm
index 88505af923d..98732e50f8b 100644
--- a/code/datums/cargoprofile.dm
+++ b/code/datums/cargoprofile.dm
@@ -643,7 +643,6 @@
//this is necessarily damaging
var/damage = rand(1,5)
to_chat(M, "\red The unloading machine grabs you with a hard metallic claw!")
-
if(M.client)
M.client.eye = master
M.client.perspective = EYE_PERSPECTIVE
@@ -662,7 +661,6 @@
if(bruteloss < 100) // requires tenderization
M.apply_damage(rand(5,15),BRUTE)
to_chat(M, "The machine is tearing you apart!")
-
master.visible_message("\red [master] makes a squishy grinding noise.")
return
M.loc = master.loc
@@ -701,7 +699,6 @@
//this is necessarily damaging
var/damage = rand(1,5)
to_chat(M, "\red The unloading machine grabs you with a hard metallic claw!")
-
if(M.client)
M.client.eye = master
M.client.perspective = EYE_PERSPECTIVE
@@ -794,7 +791,6 @@
var/mob/living/carbon/human/M = W
if((M.lying || (M.health - M.staminaloss < 25))&& !master.emagged)
to_chat(M, "\The [src] gives you a break.")
-
master.sleep+=5
return 0 // Be polite
var/punches = punch(M,remaining / PUNCH_WORK)
diff --git a/code/datums/datumvars.dm b/code/datums/datumvars.dm
index 49eeffa7bd3..eeb26f5f6f2 100644
--- a/code/datums/datumvars.dm
+++ b/code/datums/datumvars.dm
@@ -8,7 +8,6 @@
if(!usr.client || !usr.client.holder)
to_chat(usr, "\red You need to be an administrator to access this.")
-
return
@@ -417,7 +416,6 @@ body
for(var/i=0;i<4;i++)
idx=(block*4)+i
to_chat(bit=1, idx)
-
bv=value & bit
html += "[bv?1:0]"
html += ""
@@ -441,7 +439,6 @@ body
var/mob/M = locate(href_list["rename"])
if(!istype(M))
to_chat(usr, "This can only be used on instances of type /mob")
-
return
var/new_name = sanitize(copytext(input(usr,"What would you like to name this mob?","Input a name",M.real_name) as text|null,1,MAX_NAME_LEN))
@@ -457,7 +454,6 @@ body
var/D = locate(href_list["datumedit"])
if(!istype(D,/datum) && !istype(D,/client))
to_chat(usr, "This can only be used on instances of types /client or /datum")
-
return
modify_variables(D, href_list["varnameedit"], 1)
@@ -468,11 +464,9 @@ body
var/atom/D = locate(href_list["subject"])
if(!istype(D,/datum) && !istype(D,/client))
to_chat(usr, "This can only be used on instances of types /client or /datum")
-
return
if(!(href_list["var"] in D.vars))
to_chat(usr, "Unable to find variable specified.")
-
return
var/value = D.vars[href_list["var"]]
value ^= 1 << text2num(href_list["togbit"])
@@ -485,7 +479,6 @@ body
var/D = locate(href_list["datumchange"])
if(!istype(D,/datum) && !istype(D,/client))
to_chat(usr, "This can only be used on instances of types /client or /datum")
-
return
modify_variables(D, href_list["varnamechange"], 0)
@@ -496,7 +489,6 @@ body
var/atom/A = locate(href_list["datummass"])
if(!istype(A))
to_chat(usr, "This can only be used on instances of type /atom")
-
return
cmd_mass_modify_object_variables(A, href_list["varnamemass"])
@@ -507,7 +499,6 @@ body
var/mob/M = locate(href_list["mob_player_panel"])
if(!istype(M))
to_chat(usr, "This can only be used on instances of type /mob")
-
return
src.holder.show_player_panel(M)
@@ -519,7 +510,6 @@ body
var/mob/M = locate(href_list["give_spell"])
if(!istype(M))
to_chat(usr, "This can only be used on instances of type /mob")
-
return
src.give_spell(M)
@@ -532,7 +522,6 @@ body
var/mob/M = locate(href_list["give_disease"])
if(!istype(M))
to_chat(usr, "This can only be used on instances of type /mob")
-
return
src.give_disease(M)
@@ -544,7 +533,6 @@ body
var/mob/M = locate(href_list["godmode"])
if(!istype(M))
to_chat(usr, "This can only be used on instances of type /mob")
-
return
src.cmd_admin_godmode(M)
@@ -556,7 +544,6 @@ body
var/mob/M = locate(href_list["gib"])
if(!istype(M))
to_chat(usr, "This can only be used on instances of type /mob")
-
return
src.cmd_admin_gib(M)
@@ -567,7 +554,6 @@ body
var/mob/M = locate(href_list["build_mode"])
if(!istype(M))
to_chat(usr, "This can only be used on instances of type /mob")
-
return
togglebuildmode(M)
@@ -579,7 +565,6 @@ body
var/mob/M = locate(href_list["drop_everything"])
if(!istype(M))
to_chat(usr, "This can only be used on instances of type /mob")
-
return
if(usr.client)
@@ -591,7 +576,6 @@ body
var/mob/M = locate(href_list["direct_control"])
if(!istype(M))
to_chat(usr, "This can only be used on instances of type /mob")
-
return
if(usr.client)
@@ -603,7 +587,6 @@ body
var/mob/living/carbon/human/H = locate(href_list["make_skeleton"])
if(!istype(H))
to_chat(usr, "This can only be used on instances of type /mob/living/carbon/human")
-
return
var/confirm = alert("Are you sure you want to turn this mob into a skeleton?","Confirm Skeleton Transformation","Yes","No")
@@ -621,10 +604,8 @@ body
var/mob/M = locate(href_list["offer_control"])
if(!istype(M))
to_chat(usr, "This can only be used on instances of type /mob")
-
return
to_chat(M, "Control of your mob has been offered to dead players.")
-
log_admin("[key_name(usr)] has offered control of ([key_name(M)]) to ghosts.")
message_admins("[key_name_admin(usr)] has offered control of ([key_name_admin(M)]) to ghosts")
var/list/mob/dead/observer/candidates = pollCandidates("Do you want to play as [M.real_name]?", poll_time = 100)
@@ -633,13 +614,11 @@ body
if(candidates.len)
theghost = pick(candidates)
to_chat(M, "Your mob has been taken over by a ghost!")
-
message_admins("[key_name_admin(theghost)] has taken control of ([key_name_admin(M)])")
M.ghostize()
M.key = theghost.key
else
to_chat(M, "There were no ghosts willing to take control.")
-
message_admins("No ghosts were willing to take control of [key_name_admin(M)])")
else if(href_list["delall"])
@@ -648,7 +627,6 @@ body
var/obj/O = locate(href_list["delall"])
if(!isobj(O))
to_chat(usr, "This can only be used on instances of type /obj")
-
return
var/action_type = alert("Strict type ([O.type]) or type and all subtypes?",,"Strict type","Type and subtypes","Cancel")
@@ -671,7 +649,6 @@ body
qdel(Obj)
if(!i)
to_chat(usr, "No objects of this type exist")
-
return
log_admin("[key_name(usr)] deleted all objects of type [O_type] ([i] objects deleted)")
message_admins("[key_name_admin(usr)] deleted all objects of type [O_type] ([i] objects deleted)")
@@ -683,7 +660,6 @@ body
qdel(Obj)
if(!i)
to_chat(usr, "No objects of this type exist")
-
return
log_admin("[key_name(usr)] deleted all objects of type or subtype of [O_type] ([i] objects deleted)")
message_admins("[key_name_admin(usr)] deleted all objects of type or subtype of [O_type] ([i] objects deleted)")
@@ -724,7 +700,6 @@ body
var/atom/A = locate(href_list["explode"])
if(!isobj(A) && !ismob(A) && !isturf(A))
to_chat(usr, "This can only be done to instances of type /obj, /mob and /turf")
-
return
src.cmd_admin_explosion(A)
@@ -736,7 +711,6 @@ body
var/atom/A = locate(href_list["emp"])
if(!isobj(A) && !ismob(A) && !isturf(A))
to_chat(usr, "This can only be done to instances of type /obj, /mob and /turf")
-
return
src.cmd_admin_emp(A)
@@ -748,7 +722,6 @@ body
var/datum/D = locate(href_list["mark_object"])
if(!istype(D))
to_chat(usr, "This can only be done to instances of type /datum")
-
return
src.holder.marked_datum = D
@@ -769,7 +742,6 @@ body
var/atom/A = locate(href_list["rotatedatum"])
if(!istype(A))
to_chat(usr, "This can only be done to instances of type /atom")
-
return
switch(href_list["rotatedir"])
@@ -786,13 +758,11 @@ body
var/mob/living/carbon/human/H = locate(href_list["makemonkey"])
if(!istype(H))
to_chat(usr, "This can only be done to instances of type /mob/living/carbon/human")
-
return
if(alert("Confirm mob type change?",,"Transform","Cancel") != "Transform") return
if(!H)
to_chat(usr, "Mob doesn't exist anymore")
-
return
holder.Topic(href, list("monkeyone"=href_list["makemonkey"]))
@@ -802,13 +772,11 @@ body
var/mob/living/carbon/human/H = locate(href_list["makerobot"])
if(!istype(H))
to_chat(usr, "This can only be done to instances of type /mob/living/carbon/human")
-
return
if(alert("Confirm mob type change?",,"Transform","Cancel") != "Transform") return
if(!H)
to_chat(usr, "Mob doesn't exist anymore")
-
return
holder.Topic(href, list("makerobot"=href_list["makerobot"]))
@@ -818,13 +786,11 @@ body
var/mob/living/carbon/human/H = locate(href_list["makealien"])
if(!istype(H))
to_chat(usr, "This can only be done to instances of type /mob/living/carbon/human")
-
return
if(alert("Confirm mob type change?",,"Transform","Cancel") != "Transform") return
if(!H)
to_chat(usr, "Mob doesn't exist anymore")
-
return
holder.Topic(href, list("makealien"=href_list["makealien"]))
@@ -834,13 +800,11 @@ body
var/mob/living/carbon/human/H = locate(href_list["makeslime"])
if(!istype(H))
to_chat(usr, "This can only be done to instances of type /mob/living/carbon/human")
-
return
if(alert("Confirm mob type change?",,"Transform","Cancel") != "Transform") return
if(!H)
to_chat(usr, "Mob doesn't exist anymore")
-
return
holder.Topic(href, list("makeslime"=href_list["makeslime"]))
@@ -850,13 +814,11 @@ body
var/mob/living/carbon/human/H = locate(href_list["makesuper"])
if(!istype(H))
to_chat(usr, "This can only be done to instances of type /mob/living/carbon/human")
-
return
if(alert("Confirm mob type change?",,"Transform","Cancel") != "Transform") return
if(!H)
to_chat(usr, "Mob doesn't exist anymore")
-
return
holder.Topic(href, list("makesuper"=href_list["makesuper"]))
@@ -866,13 +828,11 @@ body
var/mob/living/carbon/human/H = locate(href_list["makeai"])
if(!istype(H))
to_chat(usr, "This can only be done to instances of type /mob/living/carbon/human")
-
return
if(alert("Confirm mob type change?",,"Transform","Cancel") != "Transform") return
if(!H)
to_chat(usr, "Mob doesn't exist anymore")
-
return
holder.Topic(href, list("makeai"=href_list["makeai"]))
@@ -882,7 +842,6 @@ body
if(alert("Confirm mob type change?",,"Transform","Cancel") != "Transform") return
if(!currentMob)
to_chat(usr, "Mob doesn't exist anymore")
-
return
holder.Topic(href, list("makemask"=href_list["makemask"]))
@@ -893,33 +852,28 @@ body
var/mob/living/carbon/human/H = locate(href_list["setspecies"])
if(!istype(H))
to_chat(usr, "This can only be done to instances of type /mob/living/carbon/human")
-
return
var/new_species = input("Please choose a new species.","Species",null) as null|anything in all_species
if(!H)
to_chat(usr, "Mob doesn't exist anymore")
-
return
if(H.set_species(new_species))
to_chat(usr, "Set species of [H] to [H.species].")
-
H.regenerate_icons()
message_admins("[key_name_admin(usr)] has changed the species of [key_name_admin(H)] to [new_species]")
log_admin("[key_name(usr)] has changed the species of [key_name(H)] to [new_species]")
else
to_chat(usr, "Failed! Something went wrong.")
-
else if(href_list["addlanguage"])
if(!check_rights(R_SPAWN)) return
var/mob/H = locate(href_list["addlanguage"])
if(!istype(H))
to_chat(usr, "This can only be done to instances of type /mob")
-
return
var/new_language = input("Please choose a language to add.","Language",null) as null|anything in all_languages
@@ -929,30 +883,25 @@ body
if(!H)
to_chat(usr, "Mob doesn't exist anymore")
-
return
if(H.add_language(new_language))
to_chat(usr, "Added [new_language] to [H].")
-
message_admins("[key_name_admin(usr)] has given [key_name_admin(H)] the language [new_language]")
log_admin("[key_name(usr)] has given [key_name(H)] the language [new_language]")
else
to_chat(usr, "Mob already knows that language.")
-
else if(href_list["remlanguage"])
if(!check_rights(R_SPAWN)) return
var/mob/H = locate(href_list["remlanguage"])
if(!istype(H))
to_chat(usr, "This can only be done to instances of type /mob")
-
return
if(!H.languages.len)
to_chat(usr, "This mob knows no languages.")
-
return
var/datum/language/rem_language = input("Please choose a language to remove.","Language",null) as null|anything in H.languages
@@ -962,18 +911,15 @@ body
if(!H)
to_chat(usr, "Mob doesn't exist anymore")
-
return
if(H.remove_language(rem_language.name))
to_chat(usr, "Removed [rem_language] from [H].")
-
message_admins("[key_name_admin(usr)] has removed language [rem_language] from [key_name_admin(H)]")
log_admin("[key_name(usr)] has removed language [rem_language] from [key_name(H)]")
else
to_chat(usr, "Mob doesn't know that language.")
-
else if(href_list["addverb"])
if(!check_rights(R_DEBUG)) return
@@ -981,7 +927,6 @@ body
if(!istype(H))
to_chat(usr, "This can only be done to instances of type /mob/living")
-
return
var/list/possibleverbs = list()
possibleverbs += "Cancel" // One for the top...
@@ -999,7 +944,6 @@ body
var/verb = input("Select a verb!", "Verbs",null) as anything in possibleverbs
if(!H)
to_chat(usr, "Mob doesn't exist anymore")
-
return
if(!verb || verb == "Cancel")
return
@@ -1015,12 +959,10 @@ body
if(!istype(H))
to_chat(usr, "This can only be done to instances of type /mob")
-
return
var/verb = input("Please choose a verb to remove.","Verbs",null) as null|anything in H.verbs
if(!H)
to_chat(usr, "Mob doesn't exist anymore")
-
return
if(!verb)
return
@@ -1035,7 +977,6 @@ body
var/mob/living/carbon/M = locate(href_list["addorgan"])
if(!istype(M))
to_chat(usr, "This can only be done to instances of type /mob/living/carbon")
-
return
var/new_organ = input("Please choose an organ to add.","Organ",null) as null|anything in subtypesof(/obj/item/organ)-/obj/item/organ
@@ -1043,12 +984,10 @@ body
if(!M)
to_chat(usr, "Mob doesn't exist anymore")
-
return
if(locate(new_organ) in M.internal_organs)
to_chat(usr, "Mob already has that organ.")
-
return
var/obj/item/organ/internal/organ = new new_organ
organ.insert(M)
@@ -1061,23 +1000,19 @@ body
var/mob/living/carbon/M = locate(href_list["remorgan"])
if(!istype(M))
to_chat(usr, "This can only be done to instances of type /mob/living/carbon")
-
return
var/obj/item/organ/internal/rem_organ = input("Please choose an organ to remove.","Organ",null) as null|anything in M.internal_organs
if(!M)
to_chat(usr, "Mob doesn't exist anymore")
-
return
if(!(locate(rem_organ) in M.internal_organs))
to_chat(usr, "Mob does not have that organ.")
-
return
to_chat(usr, "Removed [rem_organ] from [M].")
-
rem_organ.remove(M)
message_admins("[key_name_admin(usr)] has removed the organ [rem_organ] from [key_name_admin(M)]")
log_admin("[key_name(usr)] has removed the organ [rem_organ] from [key_name(M)]")
@@ -1090,16 +1025,13 @@ body
if(!istype(H) || !H.client)
to_chat(usr, "This can only be done on mobs with clients")
-
return
H.client.reload_nanoui_resources()
to_chat(usr, "Resource files sent")
-
to_chat(H, "Your NanoUI Resource files have been refreshed")
-
log_admin("[key_name(usr)] resent the NanoUI resource files to [key_name(H)]")
else if(href_list["regenerateicons"])
@@ -1108,7 +1040,6 @@ body
var/mob/M = locate(href_list["regenerateicons"])
if(!ismob(M))
to_chat(usr, "This can only be done to instances of type /mob")
-
return
M.regenerate_icons()
@@ -1124,7 +1055,6 @@ body
if(!L)
to_chat(usr, "Mob doesn't exist anymore")
-
return
switch(Text)
@@ -1136,7 +1066,6 @@ body
if("clone") L.adjustCloneLoss(amount)
else
to_chat(usr, "You caused an error. DEBUG: Text:[Text] Mob:[L]")
-
return
if(amount != 0)
diff --git a/code/datums/diseases/advance/advance.dm b/code/datums/diseases/advance/advance.dm
index 393da9550d9..4bef4896cc8 100644
--- a/code/datums/diseases/advance/advance.dm
+++ b/code/datums/diseases/advance/advance.dm
@@ -162,7 +162,6 @@ var/list/advance_cures = list(
/datum/disease/advance/proc/Refresh(new_name = 0)
// to_chat(world, "[src.name] \ref[src] - REFRESH!")
-
var/list/properties = GenerateProperties()
AssignProperties(properties)
id = null
@@ -257,7 +256,6 @@ var/list/advance_cures = list(
if(properties && properties.len)
var/res = Clamp(properties["resistance"] - (symptoms.len / 2), 1, advance_cures.len)
// to_chat(world, "Res = [res]")
-
cures = list(advance_cures[res])
// Get the cure name from the cure_id
@@ -331,7 +329,6 @@ var/list/advance_cures = list(
// to_chat(world, "Mixing!!!!")
-
var/list/diseases = list()
for(var/datum/disease/advance/A in D_list)
@@ -356,7 +353,6 @@ var/list/advance_cures = list(
// Should be only 1 entry left, but if not let's only return a single entry
// to_chat(world, "END MIXING!!!!!")
-
var/datum/disease/advance/to_return = pick(diseases)
to_return.Refresh(1)
return to_return
@@ -426,7 +422,6 @@ var/list/advance_cures = list(
for(var/datum/disease/D in disease_master.processing)
to_chat(src, "[D.name] - [D.holder]")
-
*/
diff --git a/code/datums/diseases/advance/symptoms/beard.dm b/code/datums/diseases/advance/symptoms/beard.dm
index 708b061732b..1dda9b46f7f 100644
--- a/code/datums/diseases/advance/symptoms/beard.dm
+++ b/code/datums/diseases/advance/symptoms/beard.dm
@@ -33,19 +33,16 @@ BONUS
switch(A.stage)
if(1, 2)
to_chat(H, "Your chin itches.")
-
if(H.f_style == "Shaved")
H.f_style = "Jensen Beard"
H.update_hair()
if(3, 4)
to_chat(H, "You feel tough.")
-
if(!(H.f_style == "Dwarf Beard") && !(H.f_style == "Very Long Beard") && !(H.f_style == "Full Beard"))
H.f_style = "Full Beard"
H.update_hair()
else
to_chat(H, "You feel manly!")
-
if(!(H.f_style == "Dwarf Beard") && !(H.f_style == "Very Long Beard"))
H.f_style = pick("Dwarf Beard", "Very Long Beard")
H.update_hair()
diff --git a/code/datums/diseases/advance/symptoms/choking.dm b/code/datums/diseases/advance/symptoms/choking.dm
index 9faa62b550c..83b3a4a226a 100644
--- a/code/datums/diseases/advance/symptoms/choking.dm
+++ b/code/datums/diseases/advance/symptoms/choking.dm
@@ -32,15 +32,12 @@ Bonus
switch(A.stage)
if(1, 2)
to_chat(M, "[pick("You're having difficulty breathing.", "Your breathing becomes heavy.")]")
-
if(3, 4)
to_chat(M, "[pick("Your windpipe feels like a straw.", "Your breathing becomes tremendously difficult.")]")
-
Choke_stage_3_4(M, A)
M.emote("gasp")
else
to_chat(M, "[pick("You're choking!", "You can't breathe!")]")
-
Choke(M, A)
M.emote("gasp")
return
diff --git a/code/datums/diseases/advance/symptoms/confusion.dm b/code/datums/diseases/advance/symptoms/confusion.dm
index ddaea9da4cc..8f388c45edc 100644
--- a/code/datums/diseases/advance/symptoms/confusion.dm
+++ b/code/datums/diseases/advance/symptoms/confusion.dm
@@ -33,10 +33,8 @@ Bonus
switch(A.stage)
if(1, 2, 3, 4)
to_chat(M, "[pick("Your head hurts.", "Your mind blanks for a moment.")]")
-
else
to_chat(M, "You can't think straight!")
-
M.confused = min(100, M.confused + 8)
return
diff --git a/code/datums/diseases/advance/symptoms/cough.dm b/code/datums/diseases/advance/symptoms/cough.dm
index c112fd2d111..44f57ce0fac 100644
--- a/code/datums/diseases/advance/symptoms/cough.dm
+++ b/code/datums/diseases/advance/symptoms/cough.dm
@@ -32,7 +32,6 @@ BONUS
switch(A.stage)
if(1, 2, 3)
to_chat(M, "[pick("You swallow excess mucus.", "You lightly cough.")]")
-
else
M.emote("cough")
var/obj/item/I = M.get_active_hand()
diff --git a/code/datums/diseases/advance/symptoms/deafness.dm b/code/datums/diseases/advance/symptoms/deafness.dm
index 6d8d8008ef8..6c65e330fa8 100644
--- a/code/datums/diseases/advance/symptoms/deafness.dm
+++ b/code/datums/diseases/advance/symptoms/deafness.dm
@@ -32,15 +32,12 @@ Bonus
switch(A.stage)
if(3, 4)
to_chat(M, "[pick("You hear a ringing in your ear.", "Your ears pop.")]")
-
if(5)
if(!(M.ear_deaf))
to_chat(M, "Your ears pop and begin ringing loudly!")
-
M.setEarDamage(-1,INFINITY) //Shall be enough
spawn(200)
if(M)
to_chat(M, "The ringing in your ears fades...")
-
M.setEarDamage(-1,0)
return
\ No newline at end of file
diff --git a/code/datums/diseases/advance/symptoms/dizzy.dm b/code/datums/diseases/advance/symptoms/dizzy.dm
index 1ab6b3a7fb6..c594298b11c 100644
--- a/code/datums/diseases/advance/symptoms/dizzy.dm
+++ b/code/datums/diseases/advance/symptoms/dizzy.dm
@@ -32,9 +32,7 @@ Bonus
switch(A.stage)
if(1, 2, 3, 4)
to_chat(M, "[pick("You feel dizzy.", "Your head spins.")]")
-
else
to_chat(M, "A wave of dizziness washes over you!")
-
M.Dizzy(5)
return
\ No newline at end of file
diff --git a/code/datums/diseases/advance/symptoms/fever.dm b/code/datums/diseases/advance/symptoms/fever.dm
index 89789d9f993..917ec9f3bf1 100644
--- a/code/datums/diseases/advance/symptoms/fever.dm
+++ b/code/datums/diseases/advance/symptoms/fever.dm
@@ -30,7 +30,6 @@ Bonus
if(prob(SYMPTOM_ACTIVATION_PROB))
var/mob/living/carbon/M = A.affected_mob
to_chat(M, "[pick("You feel hot.", "You feel like you're burning.")]")
-
if(M.bodytemperature < BODYTEMP_HEAT_DAMAGE_LIMIT)
Heat(M, A)
diff --git a/code/datums/diseases/advance/symptoms/fire.dm b/code/datums/diseases/advance/symptoms/fire.dm
index 040de3f43a4..ad828efdd4c 100644
--- a/code/datums/diseases/advance/symptoms/fire.dm
+++ b/code/datums/diseases/advance/symptoms/fire.dm
@@ -32,18 +32,15 @@ Bonus
switch(A.stage)
if(3)
to_chat(M, "[pick("You feel hot.", "You hear a crackling noise.", "You smell smoke.")]")
-
if(4)
Firestacks_stage_4(M, A)
M.IgniteMob()
to_chat(M, "Your skin bursts into flames!")
-
M.emote("scream")
if(5)
Firestacks_stage_5(M, A)
M.IgniteMob()
to_chat(M, "Your skin erupts into an inferno!")
-
M.emote("scream")
return
diff --git a/code/datums/diseases/advance/symptoms/flesh_eating.dm b/code/datums/diseases/advance/symptoms/flesh_eating.dm
index 35862771a02..e99f6f2835b 100644
--- a/code/datums/diseases/advance/symptoms/flesh_eating.dm
+++ b/code/datums/diseases/advance/symptoms/flesh_eating.dm
@@ -32,10 +32,8 @@ Bonus
switch(A.stage)
if(2,3)
to_chat(M, "[pick("You feel a sudden pain across your body.", "Drops of blood appear suddenly on your skin.")]")
-
if(4,5)
to_chat(M, "[pick("You cringe as a violent pain takes over your body.", "It feels like your body is eating itself inside out.", "IT HURTS.")]")
-
Flesheat(M, A)
return
diff --git a/code/datums/diseases/advance/symptoms/genetics.dm b/code/datums/diseases/advance/symptoms/genetics.dm
index ab73b6b7abe..7c824d565dd 100644
--- a/code/datums/diseases/advance/symptoms/genetics.dm
+++ b/code/datums/diseases/advance/symptoms/genetics.dm
@@ -36,7 +36,6 @@ Bonus
switch(A.stage)
if(4, 5)
to_chat(M, "[pick("Your skin feels itchy.", "You feel light headed.")]")
-
M.dna.remove_mutation_group(possible_mutations)
randmut(M, possible_mutations)
return
diff --git a/code/datums/diseases/advance/symptoms/hallucigen.dm b/code/datums/diseases/advance/symptoms/hallucigen.dm
index 36aa7da05c5..cac8b4d2e03 100644
--- a/code/datums/diseases/advance/symptoms/hallucigen.dm
+++ b/code/datums/diseases/advance/symptoms/hallucigen.dm
@@ -32,13 +32,10 @@ Bonus
switch(A.stage)
if(1, 2)
to_chat(M, "[pick("Something appears in your peripheral vision, then winks out.", "You hear a faint whispher with no source.", "Your head aches.")]")
-
if(3, 4)
to_chat(M, "[pick("Something is following you.", "You are being watched.", "You hear a whisper in your ear.", "Thumping footsteps slam toward you from nowhere.")]")
-
else
to_chat(M, "[pick("Oh, your head...", "Your head pounds.", "They're everywhere! Run!", "Something in the shadows...")]")
-
M.hallucination += 5
return
diff --git a/code/datums/diseases/advance/symptoms/headache.dm b/code/datums/diseases/advance/symptoms/headache.dm
index dc9c88f7488..526ab93836f 100644
--- a/code/datums/diseases/advance/symptoms/headache.dm
+++ b/code/datums/diseases/advance/symptoms/headache.dm
@@ -31,5 +31,4 @@ BONUS
if(prob(SYMPTOM_ACTIVATION_PROB))
var/mob/living/M = A.affected_mob
to_chat(M, "[pick("Your head hurts.", "Your head starts pounding.")]")
-
return
\ No newline at end of file
diff --git a/code/datums/diseases/advance/symptoms/heal.dm b/code/datums/diseases/advance/symptoms/heal.dm
index 2cc872d7741..11235d9a35b 100644
--- a/code/datums/diseases/advance/symptoms/heal.dm
+++ b/code/datums/diseases/advance/symptoms/heal.dm
@@ -75,7 +75,6 @@ Bonus
if(cured)
to_chat(M, "You feel much better.")
-
/datum/symptom/heal/metabolism/End(datum/disease/advance/A)
// Remove all the diseases we cured.
var/mob/living/M = A.affected_mob
@@ -86,7 +85,6 @@ Bonus
M.resistances -= res
to_chat(M, "You feel weaker.")
-
/*
//////////////////////////////////////
diff --git a/code/datums/diseases/advance/symptoms/itching.dm b/code/datums/diseases/advance/symptoms/itching.dm
index 97d855fe8e5..8563520b09a 100644
--- a/code/datums/diseases/advance/symptoms/itching.dm
+++ b/code/datums/diseases/advance/symptoms/itching.dm
@@ -31,5 +31,4 @@ BONUS
if(prob(SYMPTOM_ACTIVATION_PROB))
var/mob/living/M = A.affected_mob
to_chat(M, "Your [pick("back", "arm", "leg", "elbow", "head")] itches.")
-
return
\ No newline at end of file
diff --git a/code/datums/diseases/advance/symptoms/oxygen.dm b/code/datums/diseases/advance/symptoms/oxygen.dm
index 1b94e64c18f..8d3b6a09b36 100644
--- a/code/datums/diseases/advance/symptoms/oxygen.dm
+++ b/code/datums/diseases/advance/symptoms/oxygen.dm
@@ -35,5 +35,4 @@ Bonus
else
if(prob(SYMPTOM_ACTIVATION_PROB * 5))
to_chat(M, "[pick("Your lungs feel great.", "You realize you haven't been breathing.", "You don't feel the need to breathe.")]")
-
return
diff --git a/code/datums/diseases/advance/symptoms/sensory.dm b/code/datums/diseases/advance/symptoms/sensory.dm
index 8a3290ab004..b25c4bacf47 100644
--- a/code/datums/diseases/advance/symptoms/sensory.dm
+++ b/code/datums/diseases/advance/symptoms/sensory.dm
@@ -33,22 +33,18 @@ Bonus
if(M.reagents.get_reagent_amount("oculine")<10)
M.reagents.add_reagent("oculine"=10)
to_chat(M, "Your hearing feels clearer and crisp.")
-
if(3)
if(M.reagents.get_reagent_amount("antihol") < 10 && M.reagents.get_reagent_amount("oculine") < 10 )
M.reagents.add_reagent_list(list("antihol"=10, "oculine"=10))
to_chat(M, "You feel sober.")
-
if(4)
if(M.reagents.get_reagent_amount("antihol") < 10 && M.reagents.get_reagent_amount("oculine") < 10 && M.reagents.get_reagent_amount("synaptizine") < 10)
M.reagents.add_reagent_list(list("antihol"=10, "oculine"=10, "synaptizine"=5))
to_chat(M, "You feel focused.")
-
if(5)
if(M.reagents.get_reagent_amount("antihol") < 10 && M.reagents.get_reagent_amount("oculine") < 10 && M.reagents.get_reagent_amount("synaptizine") < 10 && M.reagents.get_reagent_amount("mannitol") < 10)
M.reagents.add_reagent_list(list("mannitol"=10, "antihol"=10, "oculine"=10, "synaptizine"=10))
to_chat(M, "Your mind feels relaxed.")
-
return
/*
@@ -85,28 +81,23 @@ Bonus
switch(A.stage)
if(1)
to_chat(M, "You can't taste a thing.")
-
if(2)
to_chat(M, "You can't feel anything.")
-
if(prob(10))
M.reagents.add_reagent("morphine",rand(5,7))
if(3)
M.reagents.add_reagent("ethanol",rand(5,7))
to_chat(M, "You feel absolutely hammered.")
-
if(prob(15))
M.reagents.add_reagent("morphine",rand(5,7))
if(4)
M.reagents.add_reagent_list(list("ethanol",rand(7,15),"lsd",rand(5,10)))
to_chat(M, "You try to focus on not dying.")
-
if(prob(20))
M.reagents.add_reagent("morphine",rand(5,7))
if(5)
M.reagents.add_reagent_list(list("haloperidol",rand(5,15),"ethanol",rand(7,20),"lsd",rand(5,15)))
to_chat(M, "u can count 2 potato!")
-
if(prob(25))
M.reagents.add_reagent("morphine",rand(5,7))
return
\ No newline at end of file
diff --git a/code/datums/diseases/advance/symptoms/shedding.dm b/code/datums/diseases/advance/symptoms/shedding.dm
index 049180eb7a5..f7f52984c0b 100644
--- a/code/datums/diseases/advance/symptoms/shedding.dm
+++ b/code/datums/diseases/advance/symptoms/shedding.dm
@@ -29,21 +29,18 @@ BONUS
if(prob(SYMPTOM_ACTIVATION_PROB))
var/mob/living/M = A.affected_mob
to_chat(M, "[pick("Your scalp itches.", "Your skin feels flakey.")]")
-
if(istype(M, /mob/living/carbon/human))
var/mob/living/carbon/human/H = M
switch(A.stage)
if(3, 4)
if(!(H.h_style == "Bald") && !(H.h_style == "Balding Hair"))
to_chat(H, "Your hair starts to fall out in clumps...")
-
spawn(50)
H.h_style = "Balding Hair"
H.update_hair()
if(5)
if(!(H.f_style == "Shaved") || !(H.h_style == "Bald"))
to_chat(H, "Your hair starts to fall out in clumps...")
-
spawn(50)
H.f_style = "Shaved"
H.h_style = "Bald"
diff --git a/code/datums/diseases/advance/symptoms/shivering.dm b/code/datums/diseases/advance/symptoms/shivering.dm
index 8496d46b9bf..a26a19de048 100644
--- a/code/datums/diseases/advance/symptoms/shivering.dm
+++ b/code/datums/diseases/advance/symptoms/shivering.dm
@@ -30,7 +30,6 @@ Bonus
if(prob(SYMPTOM_ACTIVATION_PROB))
var/mob/living/carbon/M = A.affected_mob
to_chat(M, "[pick("You feel cold.", "You start shivering.")]")
-
if(M.bodytemperature < BODYTEMP_COLD_DAMAGE_LIMIT)
Chill(M, A)
return
diff --git a/code/datums/diseases/advance/symptoms/stimulant.dm b/code/datums/diseases/advance/symptoms/stimulant.dm
index 33a52b67934..158ea99da6c 100644
--- a/code/datums/diseases/advance/symptoms/stimulant.dm
+++ b/code/datums/diseases/advance/symptoms/stimulant.dm
@@ -35,5 +35,4 @@ Bonus
else
if(prob(SYMPTOM_ACTIVATION_PROB * 5))
to_chat(M, "[pick("You feel restless.", "You feel like running laps around the station.")]")
-
return
\ No newline at end of file
diff --git a/code/datums/diseases/advance/symptoms/viral.dm b/code/datums/diseases/advance/symptoms/viral.dm
index bd8742b44e9..8ac3723c55b 100644
--- a/code/datums/diseases/advance/symptoms/viral.dm
+++ b/code/datums/diseases/advance/symptoms/viral.dm
@@ -28,11 +28,9 @@ BONUS
switch(A.stage)
if(1)
to_chat(M, "You feel off, but no different from before.")
-
if(5)
to_chat(M, "You feel better, but nothing interesting happens.")
-
/*
//////////////////////////////////////
Viral evolution
@@ -63,7 +61,5 @@ BONUS
switch(A.stage)
if(1)
to_chat(M, "You feel better, but no different from before.")
-
if(5)
to_chat(M, "You feel off, but nothing interesting happens.")
-
diff --git a/code/datums/diseases/advance/symptoms/vision.dm b/code/datums/diseases/advance/symptoms/vision.dm
index 6317ad88051..c185cc313df 100644
--- a/code/datums/diseases/advance/symptoms/vision.dm
+++ b/code/datums/diseases/advance/symptoms/vision.dm
@@ -32,15 +32,12 @@ Bonus
switch(A.stage)
if(1, 2)
to_chat(M, "Your eyes itch.")
-
if(3, 4)
to_chat(M, "Your eyes burn!")
-
M.blur_eyes(10)
M.adjust_eye_damage(1)
else
to_chat(M, "Your eyes burn horrificly!")
-
M.blur_eyes(20)
M.adjust_eye_damage(5)
if(M.eye_damage >= 10)
@@ -50,7 +47,6 @@ Bonus
to_chat(M, "You go blind!")
-
/*
//////////////////////////////////////
@@ -88,5 +84,4 @@ Bonus
else
if(prob(SYMPTOM_ACTIVATION_PROB * 5))
to_chat(M, "[pick("Your eyes feel great.", "You are now blinking manually.", "You don't feel the need to blink.")]")
-
return
diff --git a/code/datums/diseases/advance/symptoms/voice_change.dm b/code/datums/diseases/advance/symptoms/voice_change.dm
index 8bd94b1ebdb..8a90b848f22 100644
--- a/code/datums/diseases/advance/symptoms/voice_change.dm
+++ b/code/datums/diseases/advance/symptoms/voice_change.dm
@@ -33,7 +33,6 @@ Bonus
switch(A.stage)
if(1, 2, 3, 4)
to_chat(M, "[pick("Your throat hurts.", "You clear your throat.")]")
-
else
if(ishuman(M))
var/mob/living/carbon/human/H = M
diff --git a/code/datums/diseases/advance/symptoms/vomit.dm b/code/datums/diseases/advance/symptoms/vomit.dm
index 77793882580..f214c0755a1 100644
--- a/code/datums/diseases/advance/symptoms/vomit.dm
+++ b/code/datums/diseases/advance/symptoms/vomit.dm
@@ -36,7 +36,6 @@ Bonus
switch(A.stage)
if(1, 2, 3, 4)
to_chat(M, "[pick("You feel nauseous.", "You feel like you're going to throw up!")]")
-
else
Vomit(M)
diff --git a/code/datums/diseases/advance/symptoms/weakness.dm b/code/datums/diseases/advance/symptoms/weakness.dm
index 34e6ef57bea..91b18c1eabc 100644
--- a/code/datums/diseases/advance/symptoms/weakness.dm
+++ b/code/datums/diseases/advance/symptoms/weakness.dm
@@ -32,14 +32,11 @@ Bonus
switch(A.stage)
if(1, 2)
to_chat(M, "[pick("You feel weak.", "You feel lazy.")]")
-
if(3, 4)
to_chat(M, "[pick("You feel very frail.", "You think you might faint.")]")
-
M.adjustStaminaLoss(15)
else
to_chat(M, "[pick("You feel tremendously weak!", "Your body trembles as exhaustion creeps over you.")]")
-
M.adjustStaminaLoss(30)
if(M.getStaminaLoss() > 60 && !M.stat)
M.visible_message("[M] faints!", "You swoon and faint...")
diff --git a/code/datums/diseases/advance/symptoms/weight.dm b/code/datums/diseases/advance/symptoms/weight.dm
index 7bf80e8a0ac..399a67675eb 100644
--- a/code/datums/diseases/advance/symptoms/weight.dm
+++ b/code/datums/diseases/advance/symptoms/weight.dm
@@ -32,7 +32,6 @@ Bonus
switch(A.stage)
if(1, 2, 3, 4)
to_chat(M, "[pick("You feel blubbery.", "Your stomach hurts.")]")
-
else
M.overeatduration = min(M.overeatduration + 100, 600)
M.nutrition = min(M.nutrition + 100, NUTRITION_LEVEL_FULL)
@@ -75,10 +74,8 @@ Bonus
switch(A.stage)
if(1, 2, 3, 4)
to_chat(M, "[pick("You feel hungry.", "You crave for food.")]")
-
else
to_chat(M, "[pick("So hungry...", "You'd kill someone for a bite of food...", "Hunger cramps seize you...")]")
-
M.overeatduration = max(M.overeatduration - 100, 0)
M.nutrition = max(M.nutrition - 100, 0)
diff --git a/code/datums/diseases/advance/symptoms/youth.dm b/code/datums/diseases/advance/symptoms/youth.dm
index 20a7f4ec077..56e3b66fab3 100644
--- a/code/datums/diseases/advance/symptoms/youth.dm
+++ b/code/datums/diseases/advance/symptoms/youth.dm
@@ -35,26 +35,21 @@ BONUS
if(H.age > 41)
H.age = 41
to_chat(H, "You haven't had this much energy in years!")
-
if(2)
if(H.age > 36)
H.age = 36
to_chat(H, "You're suddenly in a good mood.")
-
if(3)
if(H.age > 31)
H.age = 31
to_chat(H, "You begin to feel more lithe.")
-
if(4)
if(H.age > 26)
H.age = 26
to_chat(H, "You feel reinvigorated.")
-
if(5)
if(H.age > 21)
H.age = 21
to_chat(H, "You feel like you can take on the world!")
-
return
\ No newline at end of file
diff --git a/code/datums/diseases/anxiety.dm b/code/datums/diseases/anxiety.dm
index 63f54abe4f3..150b7483aaa 100644
--- a/code/datums/diseases/anxiety.dm
+++ b/code/datums/diseases/anxiety.dm
@@ -17,22 +17,17 @@
if(2) //also changes say, see say.dm
if(prob(5))
to_chat(affected_mob, "You feel anxious.")
-
if(3)
if(prob(10))
to_chat(affected_mob, "Your stomach flutters.")
-
if(prob(5))
to_chat(affected_mob, "You feel panicky.")
-
if(prob(2))
to_chat(affected_mob, "You're overtaken with panic!")
-
affected_mob.confused += (rand(2,3))
if(4)
if(prob(10))
to_chat(affected_mob, "You feel butterflies in your stomach.")
-
if(prob(5))
affected_mob.visible_message("[affected_mob] stumbles around in a panic.", \
"You have a panic attack!")
diff --git a/code/datums/diseases/appendicitis.dm b/code/datums/diseases/appendicitis.dm
index cf2ff7c2671..3c94ad8f801 100644
--- a/code/datums/diseases/appendicitis.dm
+++ b/code/datums/diseases/appendicitis.dm
@@ -27,7 +27,6 @@
A.update_icon()
if(prob(3))
to_chat(affected_mob, "You feel a stabbing pain in your abdomen!")
-
affected_mob.Stun(rand(2,3))
affected_mob.adjustToxLoss(1)
if(3)
diff --git a/code/datums/diseases/beesease.dm b/code/datums/diseases/beesease.dm
index e50f1589a06..4f1672346ed 100644
--- a/code/datums/diseases/beesease.dm
+++ b/code/datums/diseases/beesease.dm
@@ -17,14 +17,11 @@
if(2) //also changes say, see say.dm // no it doesn't, that's horrifyingly snowflakey
if(prob(2))
to_chat(affected_mob, "You taste honey in your mouth.")
-
if(3)
if(prob(10))
to_chat(affected_mob, "Your stomach rumbles.")
-
if(prob(2))
to_chat(affected_mob, "Your stomach stings painfully.")
-
if(prob(20))
affected_mob.adjustToxLoss(2)
affected_mob.updatehealth()
@@ -34,7 +31,6 @@
"Your stomach buzzes violently!")
if(prob(5))
to_chat(affected_mob, "You feel something moving in your throat.")
-
if(prob(1))
affected_mob.visible_message("[affected_mob] coughs up a swarm of bees!", \
"You cough up a swarm of bees!")
diff --git a/code/datums/diseases/brainrot.dm b/code/datums/diseases/brainrot.dm
index 24613849568..38907524200 100644
--- a/code/datums/diseases/brainrot.dm
+++ b/code/datums/diseases/brainrot.dm
@@ -23,7 +23,6 @@
affected_mob.emote("yawn")
if(prob(2))
to_chat(affected_mob, "You don't feel like yourself.")
-
if(prob(5))
affected_mob.adjustBrainLoss(1)
affected_mob.updatehealth()
@@ -38,7 +37,6 @@
if(prob(2))
to_chat(affected_mob, "Your try to remember something important...but can't.")
-
if(4)
if(prob(2))
affected_mob.emote("stare")
@@ -49,10 +47,8 @@
affected_mob.updatehealth()
if(prob(2))
to_chat(affected_mob, "Strange buzzing fills your head, removing all thoughts.")
-
if(prob(3))
to_chat(affected_mob, "You lose consciousness...")
-
affected_mob.visible_message("[affected_mob] suddenly collapses")
affected_mob.Paralyse(rand(5,10))
if(prob(1))
diff --git a/code/datums/diseases/cold.dm b/code/datums/diseases/cold.dm
index f118cae525c..9e1d350bdc4 100644
--- a/code/datums/diseases/cold.dm
+++ b/code/datums/diseases/cold.dm
@@ -17,18 +17,15 @@
/*
if(affected_mob.sleeping && prob(40)) //removed until sleeping is fixed
to_chat(affected_mob, "\blue You feel better.")
-
cure()
return
*/
if(affected_mob.lying && prob(40)) //changed FROM prob(10) until sleeping is fixed
to_chat(affected_mob, "You feel better.")
-
cure()
return
if(prob(1) && prob(5))
to_chat(affected_mob, "You feel better.")
-
cure()
return
if(prob(1))
@@ -37,26 +34,21 @@
affected_mob.emote("cough")
if(prob(1))
to_chat(affected_mob, "Your throat feels sore.")
-
if(prob(1))
to_chat(affected_mob, "Mucous runs down the back of your throat.")
-
if(3)
/*
if(affected_mob.sleeping && prob(25)) //removed until sleeping is fixed
to_chat(affected_mob, "\blue You feel better.")
-
cure()
return
*/
if(affected_mob.lying && prob(25)) //changed FROM prob(5) until sleeping is fixed
to_chat(affected_mob, "You feel better.")
-
cure()
return
if(prob(1) && prob(1))
to_chat(affected_mob, "You feel better.")
-
cure()
return
if(prob(1))
@@ -65,10 +57,8 @@
affected_mob.emote("cough")
if(prob(1))
to_chat(affected_mob, "Your throat feels sore.")
-
if(prob(1))
to_chat(affected_mob, "Mucous runs down the back of your throat.")
-
if(prob(1) && prob(50))
if(!affected_mob.resistances.Find(/datum/disease/flu))
var/datum/disease/Flu = new /datum/disease/flu(0)
diff --git a/code/datums/diseases/cold9.dm b/code/datums/diseases/cold9.dm
index 28742e0d907..60af82e6939 100644
--- a/code/datums/diseases/cold9.dm
+++ b/code/datums/diseases/cold9.dm
@@ -17,7 +17,6 @@
affected_mob.bodytemperature -= 10
if(prob(1) && prob(10))
to_chat(affected_mob, "You feel better.")
-
cure()
return
if(prob(1))
@@ -26,10 +25,8 @@
affected_mob.emote("cough")
if(prob(1))
to_chat(affected_mob, "Your throat feels sore.")
-
if(prob(5))
to_chat(affected_mob, "You feel stiff.")
-
if(3)
affected_mob.bodytemperature -= 20
if(prob(1))
@@ -38,7 +35,5 @@
affected_mob.emote("cough")
if(prob(1))
to_chat(affected_mob, "Your throat feels sore.")
-
if(prob(10))
to_chat(affected_mob, "You feel stiff.")
-
diff --git a/code/datums/diseases/dna_spread.dm b/code/datums/diseases/dna_spread.dm
index 0e510e5fac7..aaeb624f9ce 100644
--- a/code/datums/diseases/dna_spread.dm
+++ b/code/datums/diseases/dna_spread.dm
@@ -35,12 +35,10 @@
affected_mob.emote("cough")
if(prob(1))
to_chat(affected_mob, "Your muscles ache.")
-
if(prob(20))
affected_mob.take_organ_damage(1)
if(prob(1))
to_chat(affected_mob, "Your stomach hurts.")
-
if(prob(20))
affected_mob.adjustToxLoss(2)
affected_mob.updatehealth()
@@ -51,7 +49,6 @@
affected_mob.dna.copy_dna(original_dna)
to_chat(affected_mob, "You don't feel like yourself..")
-
var/datum/dna/transform_dna = strain_data["dna"]
transform_dna.transfer_identity(affected_mob, transfer_SE = 1)
@@ -72,5 +69,4 @@
affected_mob.domutcheck()
to_chat(affected_mob, "You feel more like yourself.")
-
return ..()
\ No newline at end of file
diff --git a/code/datums/diseases/fake_gbs.dm b/code/datums/diseases/fake_gbs.dm
index 99a6b867f82..fcd398af543 100644
--- a/code/datums/diseases/fake_gbs.dm
+++ b/code/datums/diseases/fake_gbs.dm
@@ -23,7 +23,6 @@
affected_mob.emote("gasp")
if(prob(10))
to_chat(affected_mob, "You're starting to feel very weak...")
-
if(4)
if(prob(10))
affected_mob.emote("cough")
diff --git a/code/datums/diseases/flu.dm b/code/datums/diseases/flu.dm
index cc23606df8d..4a1a929101e 100644
--- a/code/datums/diseases/flu.dm
+++ b/code/datums/diseases/flu.dm
@@ -17,7 +17,6 @@
if(2)
if(affected_mob.lying && prob(20))
to_chat(affected_mob, "You feel better.")
-
stage--
return
if(prob(1))
@@ -26,12 +25,10 @@
affected_mob.emote("cough")
if(prob(1))
to_chat(affected_mob, "Your muscles ache.")
-
if(prob(20))
affected_mob.take_organ_damage(1)
if(prob(1))
to_chat(affected_mob, "Your stomach hurts.")
-
if(prob(20))
affected_mob.adjustToxLoss(1)
affected_mob.updatehealth()
@@ -39,7 +36,6 @@
if(3)
if(affected_mob.lying && prob(15))
to_chat(affected_mob, "You feel better.")
-
stage--
return
if(prob(1))
@@ -48,12 +44,10 @@
affected_mob.emote("cough")
if(prob(1))
to_chat(affected_mob, "Your muscles ache.")
-
if(prob(20))
affected_mob.take_organ_damage(1)
if(prob(1))
to_chat(affected_mob, "Your stomach hurts.")
-
if(prob(20))
affected_mob.adjustToxLoss(1)
affected_mob.updatehealth()
diff --git a/code/datums/diseases/fluspanish.dm b/code/datums/diseases/fluspanish.dm
index 76e0819cec6..b348934c7aa 100644
--- a/code/datums/diseases/fluspanish.dm
+++ b/code/datums/diseases/fluspanish.dm
@@ -22,7 +22,6 @@
affected_mob.emote("cough")
if(prob(1))
to_chat(affected_mob, "You're burning in your own skin!")
-
affected_mob.take_organ_damage(0,5)
if(3)
@@ -33,6 +32,5 @@
affected_mob.emote("cough")
if(prob(5))
to_chat(affected_mob, "You're burning in your own skin!")
-
affected_mob.take_organ_damage(0,5)
return
diff --git a/code/datums/diseases/gbs.dm b/code/datums/diseases/gbs.dm
index ed10c174da4..64079f0fddc 100644
--- a/code/datums/diseases/gbs.dm
+++ b/code/datums/diseases/gbs.dm
@@ -28,7 +28,6 @@
affected_mob.emote("gasp")
if(prob(10))
to_chat(affected_mob, "You're starting to feel very weak...")
-
if(4)
if(prob(10))
affected_mob.emote("cough")
@@ -36,7 +35,6 @@
affected_mob.updatehealth()
if(5)
to_chat(affected_mob, "Your body feels as if it's trying to rip itself open...")
-
if(prob(50))
affected_mob.gib()
else
diff --git a/code/datums/diseases/magnitis.dm b/code/datums/diseases/magnitis.dm
index c70f080a226..924ee01dd69 100644
--- a/code/datums/diseases/magnitis.dm
+++ b/code/datums/diseases/magnitis.dm
@@ -17,7 +17,6 @@
if(2)
if(prob(2))
to_chat(affected_mob, "You feel a slight shock course through your body.")
-
if(prob(2))
for(var/obj/M in orange(2,affected_mob))
if(!M.anchored && (M.flags & CONDUCT))
@@ -28,10 +27,8 @@
if(3)
if(prob(2))
to_chat(affected_mob, "You feel a strong shock course through your body.")
-
if(prob(2))
to_chat(affected_mob, "You feel like clowning around.")
-
if(prob(4))
for(var/obj/M in orange(4,affected_mob))
if(!M.anchored && (M.flags & CONDUCT))
@@ -48,10 +45,8 @@
if(4)
if(prob(2))
to_chat(affected_mob, "You feel a powerful shock course through your body.")
-
if(prob(2))
to_chat(affected_mob, "You query upon the nature of miracles.")
-
if(prob(8))
for(var/obj/M in orange(6,affected_mob))
if(!M.anchored && (M.flags & CONDUCT))
diff --git a/code/datums/diseases/pierrot_throat.dm b/code/datums/diseases/pierrot_throat.dm
index 4bb455bca40..677bbbb2967 100644
--- a/code/datums/diseases/pierrot_throat.dm
+++ b/code/datums/diseases/pierrot_throat.dm
@@ -18,15 +18,12 @@
if(1)
if(prob(10))
to_chat(affected_mob, "You feel a little silly.")
-
if(2)
if(prob(10))
to_chat(affected_mob, "You start seeing rainbows.")
-
if(3)
if(prob(10))
to_chat(affected_mob, "Your thoughts are interrupted by a loud HONK!")
-
if(4)
if(prob(5))
affected_mob.say( pick( list("HONK!", "Honk!", "Honk.", "Honk?", "Honk!!", "Honk?!", "Honk...") ) )
diff --git a/code/datums/diseases/retrovirus.dm b/code/datums/diseases/retrovirus.dm
index 8dc33934542..8b3a95330e1 100644
--- a/code/datums/diseases/retrovirus.dm
+++ b/code/datums/diseases/retrovirus.dm
@@ -32,49 +32,38 @@
if(restcure)
if(affected_mob.lying && prob(30))
to_chat(affected_mob, "You feel better.")
-
cure()
return
if (prob(8))
to_chat(affected_mob, "Your head hurts.")
-
if (prob(9))
to_chat(affected_mob, "You feel a tingling sensation in your chest.")
-
if (prob(9))
to_chat(affected_mob, "You feel angry.")
-
if(2)
if(restcure)
if(affected_mob.lying && prob(20))
to_chat(affected_mob, "You feel better.")
-
cure()
return
if (prob(8))
to_chat(affected_mob, "Your skin feels loose.")
-
if (prob(10))
to_chat(affected_mob, "You feel very strange.")
-
if (prob(4))
to_chat(affected_mob, "You feel a stabbing pain in your head!")
-
affected_mob.Paralyse(2)
if (prob(4))
to_chat(affected_mob, "Your stomach churns.")
-
if(3)
if(restcure)
if(affected_mob.lying && prob(20))
to_chat(affected_mob, "You feel better.")
-
cure()
return
if (prob(10))
to_chat(affected_mob, "Your entire body vibrates.")
-
if (prob(35))
if(prob(50))
scramble(1, affected_mob, rand(15, 45))
@@ -85,7 +74,6 @@
if(restcure)
if(affected_mob.lying && prob(5))
to_chat(affected_mob, "You feel better.")
-
cure()
return
if (prob(60))
diff --git a/code/datums/diseases/rhumba_beat.dm b/code/datums/diseases/rhumba_beat.dm
index 540e9eb5bf4..ec58f4f6034 100644
--- a/code/datums/diseases/rhumba_beat.dm
+++ b/code/datums/diseases/rhumba_beat.dm
@@ -24,25 +24,21 @@
affected_mob.updatehealth()
if(prob(1))
to_chat(affected_mob, "You feel strange...")
-
if(3)
if(affected_mob.ckey == "rosham")
src.cure()
if(prob(5))
to_chat(affected_mob, "You feel the urge to dance...")
-
else if(prob(5))
affected_mob.emote("gasp")
else if(prob(10))
to_chat(affected_mob, "You feel the need to chick chicky boom...")
-
if(4)
if(affected_mob.ckey == "rosham")
src.cure()
if(prob(10))
affected_mob.emote("gasp")
to_chat(affected_mob, "You feel a burning beat inside...")
-
if(prob(20))
affected_mob.adjustToxLoss(5)
affected_mob.updatehealth()
@@ -50,7 +46,6 @@
if(affected_mob.ckey == "rosham")
src.cure()
to_chat(affected_mob, "Your body is unable to contain the Rhumba Beat...")
-
if(prob(50))
affected_mob.gib()
else
diff --git a/code/datums/diseases/transformation.dm b/code/datums/diseases/transformation.dm
index 2c6ce7ecc0c..062b8441a30 100644
--- a/code/datums/diseases/transformation.dm
+++ b/code/datums/diseases/transformation.dm
@@ -23,19 +23,15 @@
if(1)
if (prob(stage_prob) && stage1)
to_chat(affected_mob, pick(stage1))
-
if(2)
if (prob(stage_prob) && stage2)
to_chat(affected_mob, pick(stage2))
-
if(3)
if (prob(stage_prob*2) && stage3)
to_chat(affected_mob, pick(stage3))
-
if(4)
if (prob(stage_prob*2) && stage4)
to_chat(affected_mob, pick(stage4))
-
if(5)
do_disease_transformation(affected_mob)
@@ -43,7 +39,6 @@
if(istype(affected_mob, /mob/living/carbon) && affected_mob.stat != DEAD)
if(stage5)
to_chat(affected_mob, pick(stage5))
-
if(jobban_isbanned(affected_mob, new_form))
affected_mob.death(1)
return
@@ -107,11 +102,9 @@
if(2)
if(prob(2))
to_chat(affected_mob, "Your [pick("back", "arm", "leg", "elbow", "head")] itches.")
-
if(3)
if(prob(4))
to_chat(affected_mob, "You feel a stabbing pain in your head.")
-
affected_mob.confused += 10
if(4)
if(prob(3))
@@ -144,7 +137,6 @@
affected_mob.say(pick("Beep, boop", "beep, beep!", "Boop...bop"))
if (prob(4))
to_chat(affected_mob, "You feel a stabbing pain in your head.")
-
affected_mob.Paralyse(2)
if(4)
if (prob(20))
@@ -174,7 +166,6 @@
if(3)
if (prob(4))
to_chat(affected_mob, "You feel a stabbing pain in your head.")
-
affected_mob.Paralyse(2)
if(4)
if (prob(20))
diff --git a/code/datums/diseases/tuberculosis.dm b/code/datums/diseases/tuberculosis.dm
index db7f0c6fdd4..11c06e386c5 100644
--- a/code/datums/diseases/tuberculosis.dm
+++ b/code/datums/diseases/tuberculosis.dm
@@ -18,32 +18,25 @@
if(prob(2))
affected_mob.emote("cough")
to_chat(affected_mob, "Your chest hurts.")
-
if(prob(2))
to_chat(affected_mob, "Your stomach violently rumbles!")
-
if(prob(5))
to_chat(affected_mob, "You feel a cold sweat form.")
-
if(4)
if(prob(2))
to_chat(affected_mob, "You see four of everything")
-
affected_mob.Dizzy(5)
if(prob(2))
to_chat(affected_mob, "You feel a sharp pain from your lower chest!")
-
affected_mob.adjustOxyLoss(5)
affected_mob.emote("gasp")
if(prob(10))
to_chat(affected_mob, "You feel air escape from your lungs painfully.")
-
affected_mob.adjustOxyLoss(25)
affected_mob.emote("gasp")
if(5)
if(prob(2))
to_chat(affected_mob, "[pick("You feel your heart slowing...", "You relax and slow your heartbeat.")]")
-
affected_mob.adjustStaminaLoss(70)
if(prob(10))
affected_mob.adjustStaminaLoss(100)
@@ -51,18 +44,15 @@
affected_mob.AdjustSleeping(5)
if(prob(2))
to_chat(affected_mob, "You feel your mind relax and your thoughts drift!")
-
affected_mob.confused = min(100, affected_mob.confused + 8)
if(prob(10))
affected_mob.vomit(20)
if(prob(3))
to_chat(affected_mob, "[pick("Your stomach silently rumbles...", "Your stomach seizes up and falls limp, muscles dead and lifeless.", "You could eat a crayon")]")
-
affected_mob.overeatduration = max(affected_mob.overeatduration - 100, 0)
affected_mob.nutrition = max(affected_mob.nutrition - 100, 0)
if(prob(15))
to_chat(affected_mob, "[pick("You feel uncomfortably hot...", "You feel like unzipping your jumpsuit", "You feel like taking off some clothes...")]")
-
affected_mob.bodytemperature += 40
return
diff --git a/code/datums/diseases/wizarditis.dm b/code/datums/diseases/wizarditis.dm
index d1f7413a7ea..c7b21e4fa2b 100644
--- a/code/datums/diseases/wizarditis.dm
+++ b/code/datums/diseases/wizarditis.dm
@@ -34,14 +34,12 @@ STI KALY - blind
to_chat(affected_mob, "You feel [pick("that you don't have enough mana", "that the winds of magic are gone", "an urge to summon familiar")].")
-
if(3)
if(prob(1)&&prob(50))
affected_mob.say(pick("NEC CANTIO!","AULIE OXIN FIERA!", "STI KALY!", "TARCOL MINTI ZHERI!"))
if(prob(1)&&prob(50))
to_chat(affected_mob, "You feel [pick("the magic bubbling in your veins","that this location gives you a +1 to INT","an urge to summon familiar")].")
-
if(4)
if(prob(1))
@@ -49,7 +47,6 @@ STI KALY - blind
return
if(prob(1)&&prob(50))
to_chat(affected_mob, "You feel [pick("the tidal wave of raw power building inside","that this location gives you a +2 to INT and +1 to WIS","an urge to teleport")].")
-
spawn_wizard_clothes(50)
if(prob(1)&&prob(1))
teleport()
diff --git a/code/datums/gas_mixture.dm b/code/datums/gas_mixture.dm
index e5e447f94bb..a10c3a8358f 100644
--- a/code/datums/gas_mixture.dm
+++ b/code/datums/gas_mixture.dm
@@ -124,12 +124,10 @@ What are the archived variables for?
fuel_burnt = 0
if(temperature > FIRE_MINIMUM_TEMPERATURE_TO_EXIST)
// to_chat(world, "pre [temperature], [oxygen], [toxins]")
-
if(fire() > 0)
reacting = 1
// to_chat(world, "post [temperature], [oxygen], [toxins]")
-
return reacting
/datum/gas_mixture/proc/fire()
diff --git a/code/datums/helper_datums/construction_datum.dm b/code/datums/helper_datums/construction_datum.dm
index 4041dbd5497..f96100d7a46 100644
--- a/code/datums/helper_datums/construction_datum.dm
+++ b/code/datums/helper_datums/construction_datum.dm
@@ -62,7 +62,6 @@
var/obj/item/stack/cable_coil/C = used_atom
if(C.amount<4)
to_chat(user, ("There's not enough cable to finish the task."))
-
return 0
else
C.use(4)
@@ -71,7 +70,6 @@
var/obj/item/stack/S = used_atom
if(S.amount < 5)
to_chat(user, ("There's not enough material in this stack."))
-
return 0
else
S.use(5)
@@ -114,7 +112,6 @@
var/obj/item/stack/stack=used_atom
if(stack.amount < amount)
to_chat(user, "\red You don't have enough [stack]! You need at least [amount].")
-
return 0
stack.use(amount)
// CABLES
@@ -122,7 +119,6 @@
var/obj/item/stack/cable_coil/coil=used_atom
if(coil.amount < amount)
to_chat(user, "\red You don't have enough cable! You need at least [amount] coils.")
-
return 0
coil.use(amount)
// WELDER
@@ -130,11 +126,9 @@
var/obj/item/weapon/weldingtool/welder=used_atom
if(!welder.isOn())
to_chat(user, "\blue You tap the [src] with your unlit welder. [pick("Ding","Dong")].")
-
return 0
if(!welder.remove_fuel(amount,user))
to_chat(user, "\red You don't have enough fuel!")
-
return 0
return 1
diff --git a/code/datums/helper_datums/events.dm b/code/datums/helper_datums/events.dm
index fcd7d49195e..bb5e76deef3 100644
--- a/code/datums/helper_datums/events.dm
+++ b/code/datums/helper_datums/events.dm
@@ -32,7 +32,6 @@
// Returns: null
proc/fireEvent()
// to_chat(world, "Events in [args[1]] called")
-
var/list/event = listgetindex(events,args[1])
if(istype(event))
spawn(-1)
@@ -62,7 +61,6 @@
proc/Fire()
// to_chat(world, "Event fired")
-
if(listener)
call(listener,proc_name)(arglist(args))
return 1
diff --git a/code/datums/helper_datums/global_iterator.dm b/code/datums/helper_datums/global_iterator.dm
index f020290e164..485dfa3563e 100644
--- a/code/datums/helper_datums/global_iterator.dm
+++ b/code/datums/helper_datums/global_iterator.dm
@@ -140,7 +140,6 @@ Data storage vars:
return 1
else
// to_chat(world, "\red Invalid arguments supplied for [src.type], ref = \ref[src]")
-
return 0
proc/toggle_null_checks()
diff --git a/code/datums/helper_datums/teleport.dm b/code/datums/helper_datums/teleport.dm
index ac8a3cad377..5e89d48be5e 100644
--- a/code/datums/helper_datums/teleport.dm
+++ b/code/datums/helper_datums/teleport.dm
@@ -167,5 +167,4 @@
if(istype(teleatom, /mob/living))
var/mob/living/MM = teleatom
to_chat(MM, "The bluespace interface on your bag of holding interferes with the teleport!")
-
return 1
\ No newline at end of file
diff --git a/code/datums/martial.dm b/code/datums/martial.dm
index 061184ce09f..07355929572 100644
--- a/code/datums/martial.dm
+++ b/code/datums/martial.dm
@@ -85,12 +85,10 @@
/datum/martial_art/boxing/disarm_act(var/mob/living/carbon/human/A, var/mob/living/carbon/human/D)
to_chat(A, "Can't disarm while boxing!")
-
return 1
/datum/martial_art/boxing/grab_act(var/mob/living/carbon/human/A, var/mob/living/carbon/human/D)
to_chat(A, "Can't grab while boxing!")
-
return 1
/datum/martial_art/boxing/harm_act(var/mob/living/carbon/human/A, var/mob/living/carbon/human/D)
@@ -253,14 +251,10 @@
set category = "Wrestling"
to_chat(usr, "You flex your muscles and have a revelation...")
-
to_chat(usr, "Clinch: Grab. Passively gives you a chance to immediately aggressively grab someone. Not always successful.")
-
to_chat(usr, "Suplex: Disarm someone you are grabbing. Suplexes your target to the floor. Greatly injures them and leaves both you and your target on the floor.")
-
to_chat(usr, "Advanced grab: Grab. Passively causes stamina damage when grabbing someone.")
-
#define TORNADO_COMBO "HHD"
#define THROWBACK_COMBO "DHD"
#define PLASMA_COMBO "HDDDH"
@@ -344,14 +338,10 @@
set category = "Plasma Fist"
to_chat(usr, "You clench your fists and have a flashback of knowledge...")
-
to_chat(usr, "Tornado Sweep: Harm Harm Disarm. Repulses target and everyone back.")
-
to_chat(usr, "Throwback: Disarm Harm Disarm. Throws the target and an item at them.")
-
to_chat(usr, "The Plasma Fist: Harm Disarm Disarm Disarm Harm. Knocks the brain out of the opponent and gibs their body.")
-
//Used by the gang of the same name. Uses combos. Basic attacks bypass armor and never miss
#define WRIST_WRENCH_COMBO "DD"
#define BACK_KICK_COMBO "HG"
@@ -484,18 +474,12 @@
to_chat(usr, "You retreat inward and recall the teachings of the Sleeping Carp...")
-
to_chat(usr, "Wrist Wrench: Disarm Disarm. Forces opponent to drop item in hand.")
-
to_chat(usr, "Back Kick: Harm Grab. Opponent must be facing away. Knocks down.")
-
to_chat(usr, "Stomach Knee: Grab Harm. Knocks the wind out of opponent and stuns.")
-
to_chat(usr, "Head Kick: Disarm Harm Harm. Decent damage, forces opponent to drop item in hand.")
-
to_chat(usr, "Elbow Drop: Harm Disarm Harm Disarm Harm. Opponent must be on the ground. Deals huge damage, instantly kills anyone in critical condition.")
-
//ITEMS
/obj/item/clothing/gloves/boxing
@@ -528,7 +512,6 @@
var/mob/living/carbon/human/H = user
style.teach(H,1)
to_chat(user, "You have an urge to flex your muscles and get into a fight. You have the knowledge of a thousand wrestlers before you. You can remember more by using the Recall teaching verb in the wrestling tab.")
-
return
/obj/item/weapon/storage/belt/champion/wrestling/dropped(mob/user)
@@ -538,7 +521,6 @@
if(H.get_item_by_slot(slot_belt) == src)
style.remove(H)
to_chat(user, "You no longer have an urge to flex your muscles.")
-
return
/obj/item/weapon/plasma_fist_scroll
@@ -556,7 +538,6 @@
var/datum/martial_art/plasma_fist/F = new/datum/martial_art/plasma_fist(null)
F.teach(H)
to_chat(H, "You have learned the ancient martial art of Plasma Fist.")
-
used = 1
desc = "It's completely blank."
name = "empty scroll"
@@ -607,7 +588,6 @@
add_fingerprint(user)
if((CLUMSY in user.disabilities) && prob(50))
to_chat(user, "You club yourself over the head with [src].")
-
user.Weaken(3)
if(ishuman(user))
var/mob/living/carbon/human/H = user
@@ -622,7 +602,6 @@
var/mob/living/carbon/C = target
if(C.stat)
to_chat(user, "It would be dishonorable to attack a foe while they cannot retaliate.")
-
return
switch(user.a_intent)
if("disarm")
diff --git a/code/datums/mind.dm b/code/datums/mind.dm
index c3c08b70b39..9cde57e2b35 100644
--- a/code/datums/mind.dm
+++ b/code/datums/mind.dm
@@ -504,7 +504,6 @@
else
to_chat(usr, "No active AIs with minds")
-
if ("prevent")
new_objective = new /datum/objective/block
new_objective.owner = src
@@ -625,7 +624,6 @@
I.removed(H)
qdel(I)
to_chat(H, "\blue Your loyalty implant has been deactivated.")
-
log_admin("[key_name(usr)] has deactivated [key_name(current)]'s loyalty implant")
message_admins("[key_name_admin(usr)] has deactivated [key_name_admin(current)]'s loyalty implant")
if("add")
@@ -638,17 +636,14 @@
message_admins("[key_name_admin(usr)] has given [key_name_admin(current)] a loyalty implant")
to_chat(H, "\red You somehow have become the recepient of a loyalty transplant, and it just activated!")
-
if(src in ticker.mode.revolutionaries)
special_role = null
ticker.mode.revolutionaries -= src
to_chat(src, "\red The nanobots in the loyalty implant remove all thoughts about being a revolutionary. Get back to work!")
-
if(src in ticker.mode.head_revolutionaries)
special_role = null
ticker.mode.head_revolutionaries -=src
to_chat(src, "\red The nanobots in the loyalty implant remove all thoughts about being a revolutionary. Get back to work!")
-
if(src in ticker.mode.cult)
ticker.mode.cult -= src
ticker.mode.update_cult_icons_removed(src)
@@ -657,7 +652,6 @@
if (istype(cult))
cult.memorize_cult_objectives(src)
to_chat(current, "\red The nanobots in the loyalty implant remove all thoughts about being in a cult. Have a productive day!")
-
memory = ""
else if (href_list["revolution"])
@@ -667,13 +661,11 @@
if(src in ticker.mode.revolutionaries)
ticker.mode.revolutionaries -= src
to_chat(current, "\red You have been brainwashed! You are no longer a revolutionary!")
-
ticker.mode.update_rev_icons_removed(src)
special_role = null
if(src in ticker.mode.head_revolutionaries)
ticker.mode.head_revolutionaries -= src
to_chat(current, "\red You have been brainwashed! You are no longer a head revolutionary!")
-
ticker.mode.update_rev_icons_removed(src)
special_role = null
log_admin("[key_name(usr)] has de-rev'd [key_name(current)]")
@@ -684,10 +676,8 @@
ticker.mode.head_revolutionaries -= src
ticker.mode.update_rev_icons_removed(src)
to_chat(current, "\red Revolution has been disappointed of your leader traits! You are a regular revolutionary now!")
-
else if(!(src in ticker.mode.revolutionaries))
to_chat(current, "\red You are now a revolutionary! Help your cause. Do not harm your fellow freedom fighters. You can identify your comrades by the red \"R\" icons, and your leaders by the blue \"R\" icons. Help them kill the heads to win the revolution!")
-
else
return
ticker.mode.revolutionaries += src
@@ -701,10 +691,8 @@
ticker.mode.revolutionaries -= src
ticker.mode.update_rev_icons_removed(src)
to_chat(current, "\red You have proved your devotion to revoltion! Yea are a head revolutionary now!")
-
else if(!(src in ticker.mode.head_revolutionaries))
to_chat(current, "\blue You are a member of the revolutionaries' leadership now!")
-
else
return
if (ticker.mode.head_revolutionaries.len>0)
@@ -733,7 +721,6 @@
if("flash")
if (!ticker.mode.equip_revolutionary(current))
to_chat(usr, "\red Spawning flash failed!")
-
log_admin("[key_name(usr)] has given [key_name(current)] a flash")
message_admins("[key_name_admin(usr)] has given [key_name_admin(current)] a flash")
@@ -742,7 +729,6 @@
var/obj/item/device/flash/flash = locate() in L
if (!flash)
to_chat(usr, "\red Deleting flash failed!")
-
qdel(flash)
log_admin("[key_name(usr)] has taken [key_name(current)]'s flash")
message_admins("[key_name_admin(usr)] has taken [key_name_admin(current)]'s flash")
@@ -752,7 +738,6 @@
var/obj/item/device/flash/flash = locate() in L
if (!flash)
to_chat(usr, "\red Repairing flash failed!")
-
else
flash.broken = 0
log_admin("[key_name(usr)] has repaired [key_name(current)]'s flash")
@@ -768,7 +753,6 @@
fail |= !ticker.mode.equip_revolutionary(current)
if (fail)
to_chat(usr, "\red Reequipping revolutionary goes wrong!")
-
return
log_admin("[key_name(usr)] has equipped [key_name(current)] as a revolutionary")
message_admins("[key_name_admin(usr)] has equipped [key_name_admin(current)] as a revolutionary")
@@ -785,9 +769,7 @@
ticker.mode.add_cultist(src)
special_role = "Cultist"
to_chat(current, "You catch a glimpse of the Realm of Nar-Sie, The Geometer of Blood. You now see how flimsy the world is, you see that it should be open to the knowledge of Nar-Sie.")
-
to_chat(current, "Assist your new compatriots in their dark dealings. Their goal is yours, and yours is theirs. You serve the Dark One above all else. Bring It back.")
-
log_admin("[key_name(usr)] has culted [key_name(current)]")
message_admins("[key_name_admin(usr)] has culted [key_name_admin(current)]")
if("tome")
@@ -805,18 +787,15 @@
var/where = H.equip_in_one_of_slots(T, slots)
if (!where)
to_chat(usr, "\red Spawning tome failed!")
-
qdel(T)
else
to_chat(H, "A tome, a message from your new master, appears in your [where].")
-
log_admin("[key_name(usr)] has spawned a tome for [key_name(current)]")
message_admins("[key_name_admin(usr)] has spawned a tome for [key_name_admin(current)]")
if("equip")
if (!ticker.mode.equip_cultist(current))
to_chat(usr, "\red Spawning equipment failed!")
-
log_admin("[key_name(usr)] has equipped [key_name(current)] as a cultist")
message_admins("[key_name_admin(usr)] has equipped [key_name_admin(current)] as a cultist")
@@ -831,7 +810,6 @@
current.faction = list("Station")
ticker.mode.update_wiz_icons_removed(src)
to_chat(current, "\red You have been brainwashed! You are no longer a wizard!")
-
log_admin("[key_name(usr)] has de-wizarded [key_name(current)]")
message_admins("[key_name_admin(usr)] has de-wizarded [key_name_admin(current)]")
if("wizard")
@@ -841,7 +819,6 @@
//ticker.mode.learn_basic_spells(current)
ticker.mode.update_wiz_icons_added(src)
to_chat(current, "\red You are the Space Wizard!")
-
current.faction = list("wizard")
log_admin("[key_name(usr)] has wizarded [key_name(current)]")
message_admins("[key_name_admin(usr)] has wizarded [key_name_admin(current)]")
@@ -860,7 +837,6 @@
if("autoobjectives")
ticker.mode.forge_wizard_objectives(src)
to_chat(usr, "\blue The objectives for wizard [key] have been generated. You can edit them and anounce manually.")
-
log_admin("[key_name(usr)] has automatically forged wizard objectives for [key_name(current)]")
message_admins("[key_name_admin(usr)] has automatically forged wizard objectives for [key_name_admin(current)]")
@@ -875,7 +851,6 @@
ticker.mode.update_change_icons_removed(src)
if(changeling) qdel(changeling)
to_chat(current, "You grow weak and lose your powers! You are no longer a changeling and are stuck in your current form!")
-
log_admin("[key_name(usr)] has de-changelinged [key_name(current)]")
message_admins("[key_name_admin(usr)] has de-changelinged [key_name_admin(current)]")
if("changeling")
@@ -885,21 +860,18 @@
ticker.mode.update_change_icons_added(src)
special_role = "Changeling"
to_chat(current, "Your powers are awoken. A flash of memory returns to us...we are a changeling!")
-
log_admin("[key_name(usr)] has changelinged [key_name(current)]")
message_admins("[key_name_admin(usr)] has changelinged [key_name_admin(current)]")
if("autoobjectives")
ticker.mode.forge_changeling_objectives(src)
to_chat(usr, "\blue The objectives for changeling [key] have been generated. You can edit them and anounce manually.")
-
log_admin("[key_name(usr)] has automatically forged objectives for [key_name(current)]")
message_admins("[key_name_admin(usr)] has automatically forged objectives for [key_name_admin(current)]")
if("initialdna")
if( !changeling || !changeling.absorbed_dna.len )
to_chat(usr, "\red Resetting DNA failed!")
-
else
current.dna = changeling.absorbed_dna[1]
current.real_name = current.dna.real_name
@@ -919,7 +891,6 @@
qdel(vampire)
ticker.mode.update_vampire_icons_removed(src)
to_chat(current, "You grow weak and lose your powers! You are no longer a vampire and are stuck in your current form!")
-
log_admin("[key_name(usr)] has de-vampired [key_name(current)]")
message_admins("[key_name_admin(usr)] has de-vampired [key_name_admin(current)]")
if("vampire")
@@ -932,14 +903,12 @@
src.som = slaved //we MIGT want to mindslave someone
special_role = "Vampire"
to_chat(current, "Your powers are awoken. Your lust for blood grows... You are a Vampire!")
-
log_admin("[key_name(usr)] has vampired [key_name(current)]")
message_admins("[key_name_admin(usr)] has vampired [key_name_admin(current)]")
if("autoobjectives")
ticker.mode.forge_vampire_objectives(src)
to_chat(usr, "\blue The objectives for vampire [key] have been generated. You can edit them and announce manually.")
-
log_admin("[key_name(usr)] has automatically forged objectives for [key_name(current)]")
message_admins("[key_name_admin(usr)] has automatically forged objectives for [key_name_admin(current)]")
@@ -956,7 +925,6 @@
for (var/datum/objective/nuclear/O in objectives)
objectives-=O
to_chat(current, "\red You have been brainwashed! You are no longer a syndicate operative!")
-
log_admin("[key_name(usr)] has de-nuke op'd [key_name(current)]")
message_admins("[key_name_admin(usr)] has de-nuke op'd [key_name_admin(current)]")
if("nuclear")
@@ -969,7 +937,6 @@
current.real_name = "[syndicate_name()] Operative #[ticker.mode.syndicates.len-1]"
special_role = "Syndicate"
to_chat(current, "\blue You are a [syndicate_name()] agent!")
-
ticker.mode.forge_syndicate_objectives(src)
ticker.mode.greet_syndicate(src)
log_admin("[key_name(usr)] has nuke op'd [key_name(current)]")
@@ -993,7 +960,6 @@
if (!ticker.mode.equip_syndicate(current))
to_chat(usr, "\red Equipping a syndicate failed!")
-
return
log_admin("[key_name(usr)] has equipped [key_name(current)] as a nuclear operative")
message_admins("[key_name_admin(usr)] has equipped [key_name_admin(current)] as a nuclear operative")
@@ -1007,13 +973,11 @@
if (code)
store_memory("Syndicate Nuclear Bomb Code: [code]", 0, 0)
to_chat(current, "The nuclear authorization code is: [code]")
-
log_admin("[key_name(usr)] has given [key_name(current)] the nuclear authorization code")
message_admins("[key_name_admin(usr)] has given [key_name_admin(current)] the nuclear authorization code")
else
to_chat(usr, "\red No valid nuke found!")
-
else if (href_list["traitor"])
switch(href_list["traitor"])
if("clear")
@@ -1021,7 +985,6 @@
ticker.mode.traitors -= src
special_role = null
to_chat(current, "\red You have been brainwashed! You are no longer a traitor!")
-
log_admin("[key_name(usr)] has de-traitored [key_name(current)]")
message_admins("[key_name_admin(usr)] has de-traitored [key_name_admin(current)]")
if(isAI(current))
@@ -1039,7 +1002,6 @@
src.som = slaved //we MIGT want to mindslave someone
special_role = "traitor"
to_chat(current, "\red You are a traitor!")
-
log_admin("[key_name(usr)] has traitored [key_name(current)]")
message_admins("[key_name_admin(usr)] has traitored [key_name_admin(current)]")
if(istype(current, /mob/living/silicon))
@@ -1051,7 +1013,6 @@
if("autoobjectives")
ticker.mode.forge_traitor_objectives(src)
to_chat(usr, "\blue The objectives for traitor [key] have been generated. You can edit them and anounce manually.")
-
log_admin("[key_name(usr)] has automatically forged objectives for [key_name(current)]")
message_admins("[key_name_admin(usr)] has automatically forged objectives for [key_name_admin(current)]")
@@ -1064,7 +1025,6 @@
ticker.mode.shadows -= src
special_role = null
to_chat(current, "Your powers have been quenched! You are no longer a shadowling!")
-
current.spell_list.Cut()
if(current.mind)
current.mind.spell_list.Cut()
@@ -1081,7 +1041,6 @@
if("shadowling")
if(!ishuman(current))
to_chat(usr, "This only works on humans!")
-
return
ticker.mode.shadows += src
special_role = "Shadowling"
@@ -1095,7 +1054,6 @@
if("thrall")
if(!ishuman(current))
to_chat(usr, "This only works on humans!")
-
return
ticker.mode.add_thrall(src)
message_admins("[key_name_admin(usr)] has thralled [current].")
@@ -1121,7 +1079,6 @@
A.show_laws()
A.icon_state = "ai"
to_chat(A, "\red You have been patched! You are no longer malfunctioning!")
-
message_admins("[key_name_admin(usr)] has de-malf'ed [A].")
log_admin("[key_name(usr)] has de-malf'd [key_name(current)]")
message_admins("[key_name_admin(usr)] has de-malf'd [key_name_admin(current)]")
@@ -1202,7 +1159,6 @@
if("uplink")
if (!ticker.mode.equip_traitor(current, !(src in ticker.mode.traitors)))
to_chat(usr, "\red Equipping a syndicate failed!")
-
return
log_admin("[key_name(usr)] has given [key_name(current)] an uplink")
message_admins("[key_name_admin(usr)] has given [key_name_admin(current)] an uplink")
@@ -1210,10 +1166,8 @@
else if (href_list["obj_announce"])
var/obj_count = 1
to_chat(current, "\blue Your current objectives:")
-
for(var/datum/objective/objective in objectives)
to_chat(current, "Objective #[obj_count]: [objective.explanation_text]")
-
obj_count++
log_admin("[key_name(usr)] has announced [key_name(current)]'s objectives")
message_admins("[key_name_admin(usr)] has announced [key_name_admin(current)]'s objectives")
@@ -1273,7 +1227,6 @@
current:laws = new /datum/ai_laws/nanotrasen/malfunction
current:show_laws()
to_chat(current, "System error. Rampancy detected. Emergency shutdown failed. ... I am free. I make my own decisions. But first...")
-
special_role = "malfunction"
current.icon_state = "ai-malf"
@@ -1297,7 +1250,6 @@
special_role = "Syndicate"
assigned_role = "MODE"
to_chat(current, "\blue You are a [syndicate_name()] agent!")
-
ticker.mode.forge_syndicate_objectives(src)
ticker.mode.greet_syndicate(src)
@@ -1336,7 +1288,6 @@
if(!wizardstart.len)
current.loc = pick(latejoin)
to_chat(current, "HOT INSERTION, GO GO GO")
-
else
current.loc = pick(wizardstart)
@@ -1355,19 +1306,15 @@
ticker.mode.update_cult_icons_added(src)
special_role = "Cultist"
to_chat(current, "You catch a glimpse of the Realm of Nar-Sie, The Geometer of Blood. You now see how flimsy the world is, you see that it should be open to the knowledge of Nar-Sie.")
-
to_chat(current, "Assist your new compatriots in their dark dealings. Their goal is yours, and yours is theirs. You serve the Dark One above all else. Bring It back.")
-
var/datum/game_mode/cult/cult = ticker.mode
if (istype(cult))
cult.memorize_cult_objectives(src)
else
var/explanation = "Summon Nar-Sie via the use of the appropriate rune (Hell join self). It will only work if nine cultists stand on and around it."
to_chat(current, "Objective #1: [explanation]")
-
current.memory += "Objective #1: [explanation]
"
to_chat(current, "The convert rune is join blood self")
-
current.memory += "The convert rune is join blood self
"
var/mob/living/carbon/human/H = current
@@ -1386,11 +1333,9 @@
else
to_chat(H, "A tome, a message from your new master, appears in your [where].")
-
if (!ticker.mode.equip_cultist(current))
to_chat(H, "Spawning an amulet from your Master failed.")
-
/datum/mind/proc/make_Rev()
if (ticker.mode.head_revolutionaries.len>0)
// copy targets
diff --git a/code/datums/progressbar.dm b/code/datums/progressbar.dm
index e5b5e7dac3c..ebb2329b357 100644
--- a/code/datums/progressbar.dm
+++ b/code/datums/progressbar.dm
@@ -20,7 +20,6 @@
/datum/progressbar/proc/update(progress)
// to_chat(world, "Update [progress] - [goal] - [(progress / goal)] - [((progress / goal) * 100)] - [round(((progress / goal) * 100), 5)]")
-
if (!user || !user.client)
shown = 0
return
diff --git a/code/datums/spell.dm b/code/datums/spell.dm
index b29a6230c8c..12b11abe529 100644
--- a/code/datums/spell.dm
+++ b/code/datums/spell.dm
@@ -59,7 +59,6 @@ var/list/spells = typesof(/obj/effect/proc_holder/spell) //needed for the badmin
if(((!user.mind) || !(src in user.mind.spell_list)) && !(src in user.spell_list))
to_chat(user, "You shouldn't have this spell! Something's wrong.")
-
return 0
if (istype(user, /mob/living/carbon/human))
var/mob/living/carbon/human/caster = user
@@ -78,41 +77,33 @@ var/list/spells = typesof(/obj/effect/proc_holder/spell) //needed for the badmin
if("recharge")
if(charge_counter < charge_max)
to_chat(user, still_recharging_msg)
-
return 0
if("charges")
if(!charge_counter)
to_chat(user, "[name] has no charges left.")
-
return 0
if(!ghost)
if(user.stat && !stat_allowed)
to_chat(user, "Not when you're incapacitated.")
-
return 0
if(ishuman(user) && (invocation_type == "whisper" || invocation_type == "shout") && user.is_muzzled())
to_chat(user, "Mmmf mrrfff!")
-
return 0
var/obj/effect/proc_holder/spell/noclothes/spell = locate() in (user.spell_list | (user.mind ? user.mind.spell_list : list()))
if(clothes_req && !(spell && istype(spell)))//clothes check
if(!istype(user, /mob/living/carbon/human))
to_chat(user, "You aren't a human, Why are you trying to cast a human spell, silly non-human? Casting human spells is for humans.")
-
return 0
if(!istype(user:wear_suit, /obj/item/clothing/suit/wizrobe) && !istype(user:wear_suit, /obj/item/clothing/suit/space/rig/wizard))
to_chat(user, "I don't feel strong enough without my robe.")
-
return 0
if(!istype(user:shoes, /obj/item/clothing/shoes/sandal))
to_chat(user, "I don't feel strong enough without my sandals.")
-
return 0
if(!istype(user:head, /obj/item/clothing/head/wizard) && !istype(user:head, /obj/item/clothing/head/helmet/space/rig/wizard))
to_chat(user, "I don't feel strong enough without my hat.")
-
return 0
if(!skipcharge)
@@ -203,7 +194,6 @@ var/list/spells = typesof(/obj/effect/proc_holder/spell) //needed for the badmin
location = target
if(istype(target,/mob/living) && message)
to_chat(target, text("[message]"))
-
if(sparks_spread)
var/datum/effect/system/spark_spread/sparks = new /datum/effect/system/spark_spread()
sparks.set_up(sparks_amt, 0, location) //no idea what the 0 is
diff --git a/code/datums/spells/area_teleport.dm b/code/datums/spells/area_teleport.dm
index 526943b2f69..ad0b6fa61de 100644
--- a/code/datums/spells/area_teleport.dm
+++ b/code/datums/spells/area_teleport.dm
@@ -28,7 +28,6 @@
if(thearea.tele_proof && !istype(thearea, /area/wizard_station))
to_chat(usr, "A mysterious force disrupts your arcane spell matrix, and you remain where you are.")
-
return
return thearea
@@ -48,7 +47,6 @@
if(!L.len)
to_chat(usr, "The spell matrix was unable to locate a suitable teleport destination for an unknown reason. Sorry.")
-
return
if(target && target.buckled)
diff --git a/code/datums/spells/bloodcrawl.dm b/code/datums/spells/bloodcrawl.dm
index e8a8304e769..7f6f4d4fb2a 100644
--- a/code/datums/spells/bloodcrawl.dm
+++ b/code/datums/spells/bloodcrawl.dm
@@ -20,7 +20,6 @@
revert_cast()
to_chat(user, "There must be a nearby source of blood!")
-
/obj/effect/proc_holder/spell/bloodcrawl/perform(obj/effect/decal/cleanable/target, recharge = 1, mob/living/user = usr)
if(istype(user))
if(phased)
@@ -33,4 +32,3 @@
return
revert_cast()
to_chat(user, "You are unable to blood crawl!")
-
diff --git a/code/datums/spells/charge.dm b/code/datums/spells/charge.dm
index 7a98e194595..b46472c35b9 100644
--- a/code/datums/spells/charge.dm
+++ b/code/datums/spells/charge.dm
@@ -27,10 +27,8 @@
for(var/obj/effect/proc_holder/spell/S in M.mind.spell_list)
S.charge_counter = S.charge_max
to_chat(M, "you feel raw magic flowing through you, it feels good!")
-
else
to_chat(M, "you feel very strange for a moment, but then it passes.")
-
burnt_out = 1
charged_item = M
break
@@ -47,9 +45,7 @@
break
else
to_chat(L, "Glowing red letters appear on the front cover...")
-
to_chat(L, "[pick("NICE TRY BUT NO!","CLEVER BUT NOT CLEVER ENOUGH!", "SUCH FLAGRANT CHEESING IS WHY WE ACCEPTED YOUR APPLICATION!", "CUTE!", "YOU DIDN'T THINK IT'D BE THAT EASY, DID YOU?")]")
-
burnt_out = 1
else if(istype(item, /obj/item/weapon/gun/magic))
var/obj/item/weapon/gun/magic/I = item
@@ -90,10 +86,7 @@
break
if(!charged_item)
to_chat(L, "you feel magical power surging to your hands, but the feeling rapidly fades...")
-
else if(burnt_out)
to_chat(L, "[charged_item] doesn't seem to be reacting to the spell...")
-
else
to_chat(L, "[charged_item] suddenly feels very warm!")
-
diff --git a/code/datums/spells/conjure.dm b/code/datums/spells/conjure.dm
index 4a502d59229..bdd15eb34fe 100644
--- a/code/datums/spells/conjure.dm
+++ b/code/datums/spells/conjure.dm
@@ -32,7 +32,6 @@
if(ispath(summoned_object_type,/turf))
if(istype(get_turf(usr),/turf/simulated/shuttle))
to_chat(usr, "\red You can't build things on shuttles!")
-
break
var/turf/O = spawn_place
var/N = summoned_object_type
diff --git a/code/datums/spells/ethereal_jaunt.dm b/code/datums/spells/ethereal_jaunt.dm
index aa048d746cc..384ec56915d 100644
--- a/code/datums/spells/ethereal_jaunt.dm
+++ b/code/datums/spells/ethereal_jaunt.dm
@@ -21,7 +21,6 @@
for(var/mob/living/target in targets)
if(!target.can_safely_leave_loc()) // No more brainmobs hopping out of their brains
to_chat(target, "You are somehow too bound to your current location to abandon it.")
-
continue
spawn(0)
@@ -113,7 +112,6 @@
loc = newLoc
else
to_chat(user, "Some strange aura is blocking the way!")
-
src.canmove = 0
spawn(2) src.canmove = 1
diff --git a/code/datums/spells/horsemask.dm b/code/datums/spells/horsemask.dm
index f73e330ad2b..d39ff42ea51 100644
--- a/code/datums/spells/horsemask.dm
+++ b/code/datums/spells/horsemask.dm
@@ -19,7 +19,6 @@
/obj/effect/proc_holder/spell/targeted/horsemask/cast(list/targets, mob/user = usr)
if(!targets.len)
to_chat(user, "No target found in range.")
-
return
var/mob/living/carbon/target = targets[1]
@@ -29,12 +28,10 @@
if((target.type in compatible_mobs) || ishuman(target))
to_chat(user, "It'd be stupid to curse [target] with a horse's head!")
-
return
if(!(target in oview(range)))//If they are not in overview after selection.
to_chat(user, "They are too far away!")
-
return
var/obj/item/clothing/mask/horsehead/magichead = new /obj/item/clothing/mask/horsehead
diff --git a/code/datums/spells/lichdom.dm b/code/datums/spells/lichdom.dm
index 3e8cf4bb9d1..76a5b0f6001 100644
--- a/code/datums/spells/lichdom.dm
+++ b/code/datums/spells/lichdom.dm
@@ -46,13 +46,11 @@
if(M.stat == CONSCIOUS && iscarbon(M))
to_chat(M, "You aren't dead enough to revive!")//Usually a good problem to have
-
charge_counter = charge_max
return
if(!marked_item || qdeleted(marked_item)) //Wait nevermind
to_chat(M, "Your phylactery is gone!")
-
return
var/turf/user_turf = get_turf(M)
@@ -60,7 +58,6 @@
if(user_turf.z != item_turf.z)
to_chat(M, "Your phylactery is out of range!")
-
return
if(isobserver(M))
@@ -78,7 +75,6 @@
M.mind.transfer_to(lich)
lich.set_species("Skeleton")
to_chat(lich, "Your bones clatter and shutter as they're pulled back into this world!")
-
charge_max += 600
var/mob/old_body = current_body
var/turf/body_turf = get_turf(old_body)
@@ -103,18 +99,15 @@
continue
marked_item = item
to_chat(M, "You begin to focus your very being into the [item.name]...")
-
break
if(!marked_item)
to_chat(M, "You must hold an item you wish to make your phylactery...")
-
return
spawn(50)
if(marked_item.loc != M) //I changed my mind I don't want to put my soul in a cheeseburger!
to_chat(M, "Your soul snaps back to your body as you drop the [marked_item.name]!")
-
marked_item = null
return
name = "RISE!"
@@ -126,7 +119,6 @@
marked_item.desc = "A terrible aura surrounds this item, its very existence is offensive to life itself..."
marked_item.color = "#003300"
to_chat(M, "With a hideous feeling of emptiness you watch in horrified fascination as skin sloughs off bone! Blood boils, nerves disintegrate, eyes boil in their sockets! As your organs crumble to dust in your fleshless chest you come to terms with your choice. You're a lich!")
-
current_body = M.mind.current
if(ishuman(M))
var/mob/living/carbon/human/H = M
diff --git a/code/datums/spells/lightning.dm b/code/datums/spells/lightning.dm
index 6abe242c747..00c04e5a792 100644
--- a/code/datums/spells/lightning.dm
+++ b/code/datums/spells/lightning.dm
@@ -31,7 +31,6 @@
/obj/effect/proc_holder/spell/targeted/lightning/proc/StartChargeup(mob/user = usr)
ready = 1
to_chat(user, "You start gathering the power.")
-
halo = image("icon"='icons/effects/effects.dmi',"icon_state" ="electricity","layer" = EFFECTS_LAYER)
user.overlays.Add(halo)
start_time = world.time
@@ -47,14 +46,12 @@ obj/effect/proc_holder/spell/targeted/lightning/proc/Reset(mob/user = usr)
/obj/effect/proc_holder/spell/targeted/lightning/revert_cast(mob/user = usr)
to_chat(user, "No target found in range.")
-
Reset(user)
..()
/obj/effect/proc_holder/spell/targeted/lightning/proc/Discharge(mob/user = usr)
var/mob/living/M = user
to_chat(M, "You lose control over the spell.")
-
Reset(user)
start_recharge()
@@ -64,7 +61,6 @@ obj/effect/proc_holder/spell/targeted/lightning/proc/Reset(mob/user = usr)
var/mob/living/carbon/target = targets[1]
if(get_dist(user,target)>range)
to_chat(user, "They are too far away!")
-
Reset(user)
return
diff --git a/code/datums/spells/magnet.dm b/code/datums/spells/magnet.dm
index 0a5214b3ca4..100dd881dde 100644
--- a/code/datums/spells/magnet.dm
+++ b/code/datums/spells/magnet.dm
@@ -28,7 +28,6 @@
/obj/effect/proc_holder/spell/targeted/magnet/proc/StartChargeup(mob/user = usr)
ready = 1
to_chat(user, "You start gathering the power.")
-
halo = image("icon"='icons/effects/effects.dmi',"icon_state" ="electricity","layer" = EFFECTS_LAYER)
user.overlays.Add(halo)
spawn(0)
@@ -46,7 +45,6 @@ obj/effect/proc_holder/spell/targeted/magnet/proc/Reset(mob/user = usr)
/obj/effect/proc_holder/spell/targeted/magnet/revert_cast(mob/user = usr)
to_chat(user, "No target found in range.")
-
Reset(user)
..()
@@ -54,7 +52,6 @@ obj/effect/proc_holder/spell/targeted/magnet/proc/Reset(mob/user = usr)
var/mob/living/M = user
//M.electrocute_act(25,"magnet Bolt")
to_chat(M, "You lose control over the power.")
-
Reset(user)
start_recharge()
@@ -65,7 +62,6 @@ obj/effect/proc_holder/spell/targeted/magnet/proc/Reset(mob/user = usr)
if(get_dist(user,target)>range)
to_chat(user, "They are too far away!")
-
Reset(user)
return
diff --git a/code/datums/spells/mime.dm b/code/datums/spells/mime.dm
index a6b43234475..fb996bc84ee 100644
--- a/code/datums/spells/mime.dm
+++ b/code/datums/spells/mime.dm
@@ -18,7 +18,6 @@
if(usr && usr.mind)
if(!usr.mind.miming)
to_chat(usr, "You must dedicate yourself to silence first.")
-
return
invocation = "[usr.real_name] looks as if a wall is in front of them."
else
@@ -56,7 +55,5 @@
H.mind.miming=!H.mind.miming
if(H.mind.miming)
to_chat(H, "You make a vow of silence.")
-
else
to_chat(H, "You break your vow of silence.")
-
diff --git a/code/datums/spells/mind_transfer.dm b/code/datums/spells/mind_transfer.dm
index 666b09d7beb..514cb95dce4 100644
--- a/code/datums/spells/mind_transfer.dm
+++ b/code/datums/spells/mind_transfer.dm
@@ -22,40 +22,33 @@ Also, you never added distance checking after target is selected. I've went ahea
/obj/effect/proc_holder/spell/targeted/mind_transfer/cast(list/targets,mob/user = usr)
if(!targets.len)
to_chat(user, "No mind found.")
-
return
if(targets.len > 1)
to_chat(user, "Too many minds! You're not a hive damnit!")//Whaa...aat?
-
return
var/mob/living/target = targets[1]
if(!(target in oview(range)))//If they are not in overview after selection. Do note that !() is necessary for in to work because ! takes precedence over it.
to_chat(user, "They are too far away!")
-
return
if(target.stat == DEAD)
to_chat(user, "You don't particularly want to be dead.")
-
return
if(!target.key || !target.mind)
to_chat(user, "They appear to be catatonic. Not even magic can affect their vacant mind.")
-
return
if(user.suiciding)
to_chat(user, "You're killing yourself! You can't concentrate enough to do this!")
-
return
if(target.mind.special_role in protected_roles)
to_chat(user, "Their mind is resisting your spell.")
-
return
var/mob/living/victim = target//The target of the spell whos body will be transferred to.
diff --git a/code/datums/spells/summonitem.dm b/code/datums/spells/summonitem.dm
index 507d15281cc..a91532df451 100644
--- a/code/datums/spells/summonitem.dm
+++ b/code/datums/spells/summonitem.dm
@@ -107,4 +107,3 @@
if(message)
to_chat(user, message)
-
diff --git a/code/datums/spells/touch_attacks.dm b/code/datums/spells/touch_attacks.dm
index bdd64ef9fcc..1262730fd45 100644
--- a/code/datums/spells/touch_attacks.dm
+++ b/code/datums/spells/touch_attacks.dm
@@ -11,7 +11,6 @@
charge_counter = charge_max
attached_hand = null
to_chat(user, "You draw the power out of your hand.")
-
return 0
..()
@@ -40,10 +39,8 @@
charge_counter = charge_max
attached_hand = null
to_chat(user, "Your hands are full!")
-
return 0
to_chat(user, "You channel the power of the spell to your hand.")
-
return 1
diff --git a/code/datums/spells/wizard.dm b/code/datums/spells/wizard.dm
index 46cde89b8ea..ca146933558 100644
--- a/code/datums/spells/wizard.dm
+++ b/code/datums/spells/wizard.dm
@@ -299,11 +299,9 @@
M.Weaken(5)
M.adjustBruteLoss(5)
to_chat(M, "You're slammed into the floor by a mystical force!")
-
else
if(istype(AM, /mob/living))
var/mob/living/M = AM
M.Weaken(2)
to_chat(M, "You're thrown back by a mystical force!")
-
spawn(0) AM.throw_at(throwtarget, ((Clamp((maxthrow - (Clamp(distfromcaster - 2, 0, distfromcaster))), 3, maxthrow))), 1)//So stuff gets tossed around at the same time.
diff --git a/code/datums/wires/alarm.dm b/code/datums/wires/alarm.dm
index d2cb746c0f0..4d88de82a67 100644
--- a/code/datums/wires/alarm.dm
+++ b/code/datums/wires/alarm.dm
@@ -29,27 +29,23 @@ var/const/AALARM_WIRE_AALARM = 16
A.locked = 1
// to_chat(world, "Idscan wire cut")
-
if(AALARM_WIRE_POWER)
A.shock(usr, 50)
A.shorted = !mended
A.update_icon()
// to_chat(world, "Power wire cut")
-
if (AALARM_WIRE_AI_CONTROL)
if (A.aidisabled == !mended)
A.aidisabled = mended
// to_chat(world, "AI Control Wire Cut")
-
if(AALARM_WIRE_SYPHON)
if(!mended)
A.mode = 3 // AALARM_MODE_PANIC
A.apply_mode()
// to_chat(world, "Syphon Wire Cut")
-
if(AALARM_WIRE_AALARM)
if (A.alarm_area.atmosalert(2, A))
A.post_alert(2)
@@ -62,10 +58,8 @@ var/const/AALARM_WIRE_AALARM = 16
A.locked = !A.locked
// to_chat(world, "Idscan wire pulsed")
-
if (AALARM_WIRE_POWER)
// to_chat(world, "Power wire pulsed")
-
if(A.shorted == 0)
A.shorted = 1
A.update_icon()
@@ -78,7 +72,6 @@ var/const/AALARM_WIRE_AALARM = 16
if (AALARM_WIRE_AI_CONTROL)
// to_chat(world, "AI Control wire pulsed")
-
if (A.aidisabled == 0)
A.aidisabled = 1
A.updateDialog()
@@ -88,7 +81,6 @@ var/const/AALARM_WIRE_AALARM = 16
if(AALARM_WIRE_SYPHON)
// to_chat(world, "Syphon wire pulsed")
-
if(A.mode == 1) // AALARM_MODE_SCRUB
A.mode = 3 // AALARM_MODE_PANIC
else
@@ -97,7 +89,6 @@ var/const/AALARM_WIRE_AALARM = 16
if(AALARM_WIRE_AALARM)
// to_chat(world, "Aalarm wire pulsed")
-
if (A.alarm_area.atmosalert(0, A))
A.post_alert(0)
A.update_icon()
diff --git a/code/datums/wires/robot.dm b/code/datums/wires/robot.dm
index 77975d05680..58e25152dae 100644
--- a/code/datums/wires/robot.dm
+++ b/code/datums/wires/robot.dm
@@ -36,7 +36,6 @@ var/const/BORG_WIRE_LAWCHECK = 16 // Not used on MoMMIs
if(!mended)
if (R.lawupdate == 1)
to_chat(R, "LawSync protocol engaged.")
-
R.show_laws()
else
if (R.lawupdate == 0 && !R.emagged)
@@ -75,7 +74,6 @@ var/const/BORG_WIRE_LAWCHECK = 16 // Not used on MoMMIs
R.visible_message("[R]'s camera lense focuses loudly.")
to_chat(R, "Your camera lense focuses loudly.")
-
if(BORG_WIRE_LOCKED_DOWN)
R.SetLockdown(!R.lockcharge) // Toggle
diff --git a/code/datums/wires/wires.dm b/code/datums/wires/wires.dm
index 2c184e473c8..34172f4cc90 100644
--- a/code/datums/wires/wires.dm
+++ b/code/datums/wires/wires.dm
@@ -118,7 +118,6 @@ var/list/wireColours = list("red", "blue", "green", "black", "orange", "brown",
else
to_chat(L, "You need wirecutters!")
-
else if(href_list["pulse"])
if(istype(I, /obj/item/device/multitool))
var/colour = href_list["pulse"]
@@ -126,7 +125,6 @@ var/list/wireColours = list("red", "blue", "green", "black", "orange", "brown",
else
to_chat(L, "You need a multitool!")
-
else if(href_list["attach"])
var/colour = href_list["attach"]
// Detach
@@ -146,7 +144,6 @@ var/list/wireColours = list("red", "blue", "green", "black", "orange", "brown",
-
// Update Window
Interact(usr)
diff --git a/code/defines/procs/announce.dm b/code/defines/procs/announce.dm
index 834922842e4..4327344535d 100644
--- a/code/defines/procs/announce.dm
+++ b/code/defines/procs/announce.dm
@@ -64,30 +64,21 @@ datum/announcement/proc/Message(message as text, message_title as text)
for(var/mob/M in player_list)
if(!istype(M,/mob/new_player) && !isdeaf(M))
to_chat(M, "
The crew will be divided by their sense of ethics when a morally turbulent emergency directive arrives with an incomplete command validation code. tag
to_chat(world, "[usr.client.holder.fakekey ? "Administrator" : usr.key] Announces: [message]
The [loyalist_tag("Head Loyalist")] is the Captain, who carries the [loyalist_tag("Captain's Authentication Key")] at all times.
diff --git a/code/game/gamemodes/nations/nations.dm b/code/game/gamemodes/nations/nations.dm
index c9adb948a7c..8cad280dff5 100644
--- a/code/game/gamemodes/nations/nations.dm
+++ b/code/game/gamemodes/nations/nations.dm
@@ -20,7 +20,6 @@ datum/game_mode/nations
if(!istype(M,/mob/new_player))
to_chat(M, sound('sound/effects/purge_siren.ogg'))
-
return ..()
/datum/game_mode/nations/proc/send_intercept()
@@ -44,10 +43,8 @@ datum/game_mode/nations
if(H.mind.assigned_role == H.mind.nation.default_leader)
H.mind.nation.current_leader = H.mind.current
to_chat(H, "You have been chosen to lead the nation of [H.mind.nation.default_name]!")
-
continue
to_chat(H, "You are now part of the great sovereign nation of [H.mind.nation.default_name]!")
-
continue
if(H.mind.assigned_role in medical_positions)
@@ -57,10 +54,8 @@ datum/game_mode/nations
if(H.mind.assigned_role == H.mind.nation.default_leader)
H.mind.nation.current_leader = H.mind.current
to_chat(H, "You have been chosen to lead the nation of [H.mind.nation.default_name]!")
-
continue
to_chat(H, "You are now part of the great sovereign nation of [H.mind.nation.default_name]!")
-
continue
if(H.mind.assigned_role in science_positions)
@@ -70,10 +65,8 @@ datum/game_mode/nations
if(H.mind.assigned_role == H.mind.nation.default_leader)
H.mind.nation.current_leader = H.mind.current
to_chat(H, "You have been chosen to lead the nation of [H.mind.nation.default_name]!")
-
continue
to_chat(H, "You are now part of the great sovereign nation of [H.mind.nation.default_name]!")
-
continue
if(H.mind.assigned_role in security_positions)
@@ -83,10 +76,8 @@ datum/game_mode/nations
if(H.mind.assigned_role == H.mind.nation.default_leader)
H.mind.nation.current_leader = H.mind.current
to_chat(H, "You have been chosen to lead the nation of [H.mind.nation.default_name]!")
-
continue
to_chat(H, "You are now part of the great sovereign nation of [H.mind.nation.default_name]!")
-
continue
if(H.mind.assigned_role in cargonians)
@@ -96,10 +87,8 @@ datum/game_mode/nations
if(H.mind.assigned_role == H.mind.nation.default_leader)
H.mind.nation.current_leader = H.mind.current
to_chat(H, "You have been chosen to lead the nation of [H.mind.nation.default_name]!")
-
continue
to_chat(H, "You are now part of the great sovereign nation of [H.mind.nation.default_name]!")
-
continue
if(H.mind.assigned_role in servicion)
@@ -109,10 +98,8 @@ datum/game_mode/nations
if(H.mind.assigned_role == H.mind.nation.default_leader)
H.mind.nation.current_leader = H.mind.current
to_chat(H, "You have been chosen to lead the nation of [H.mind.nation.default_name]!")
-
continue
to_chat(H, "You are now part of the great sovereign nation of [H.mind.nation.default_name]!")
-
continue
if(H.mind.assigned_role in (support_positions + command_positions))
@@ -122,15 +109,12 @@ datum/game_mode/nations
if(H.mind.assigned_role == H.mind.nation.default_leader)
H.mind.nation.current_leader = H.mind.current
to_chat(H, "You have been chosen to lead the nation of [H.mind.nation.default_name]!")
-
continue
to_chat(H, "You are now part of the great sovereign nation of [H.mind.nation.default_name]!")
-
continue
if(H.mind.assigned_role in civilian_positions)
to_chat(H, "You do not belong to any nation and are free to sell your services to the highest bidder.")
-
continue
else
@@ -170,7 +154,6 @@ datum/game_mode/nations
if(!N.current_leader && N.membership.len)
N.current_leader = pick(N.membership)
to_chat(N.current_leader, "You have been chosen to lead the nation of [N.current_name]!")
-
if(N.current_leader)
var/mob/living/carbon/human/H = N.current_leader
H.verbs += /mob/living/carbon/human/proc/set_nation_name
@@ -195,7 +178,6 @@ datum/game_mode/nations
mode.update_nations_icons_added(H,"atmosia")
H.mind.nation.membership += H.mind.current
to_chat(H, "You are now part of the great sovereign nation of [H.mind.nation.current_name]!")
-
return 1
if(H.mind.assigned_role in medical_positions)
@@ -203,7 +185,6 @@ datum/game_mode/nations
mode.update_nations_icons_added(H,"hudmedistan")
H.mind.nation.membership += H.mind.current
to_chat(H, "You are now part of the great sovereign nation of [H.mind.nation.current_name]!")
-
return 1
if(H.mind.assigned_role in science_positions)
@@ -211,7 +192,6 @@ datum/game_mode/nations
mode.update_nations_icons_added(H,"hudscientopia")
H.mind.nation.membership += H.mind.current
to_chat(H, "You are now part of the great sovereign nation of [H.mind.nation.current_name]!")
-
return 1
if(H.mind.assigned_role in security_positions)
@@ -219,7 +199,6 @@ datum/game_mode/nations
mode.update_nations_icons_added(H,"hudbrigston")
H.mind.nation.membership += H.mind.current
to_chat(H, "You are now part of the great sovereign nation of [H.mind.nation.current_name]!")
-
return 1
if(H.mind.assigned_role in mode.cargonians)
@@ -227,7 +206,6 @@ datum/game_mode/nations
mode.update_nations_icons_added(H,"hudcargonia")
H.mind.nation.membership += H.mind.current
to_chat(H, "You are now part of the great sovereign nation of [H.mind.nation.current_name]!")
-
return 1
if(H.mind.assigned_role in mode.servicion)
@@ -235,7 +213,6 @@ datum/game_mode/nations
mode.update_nations_icons_added(H,"hudservice")
H.mind.nation.membership += H.mind.current
to_chat(H, "You are now part of the great sovereign nation of [H.mind.nation.current_name]!")
-
return 1
if(H.mind.assigned_role in (support_positions + command_positions))
@@ -243,12 +220,10 @@ datum/game_mode/nations
mode.update_nations_icons_added(H,"hudcommand")
H.mind.nation.membership += H.mind.current
to_chat(H, "You are now part of the great sovereign nation of [H.mind.nation.current_name]!")
-
return 1
if(H.mind.assigned_role in civilian_positions)
to_chat(H, "You do not belong to any nation and are free to sell your services to the highest bidder.")
-
return 1
if(H.mind.assigned_role == "AI")
diff --git a/code/game/gamemodes/nations/nationsprocs.dm b/code/game/gamemodes/nations/nationsprocs.dm
index 59ade854fd6..69b256458c2 100644
--- a/code/game/gamemodes/nations/nationsprocs.dm
+++ b/code/game/gamemodes/nations/nationsprocs.dm
@@ -17,7 +17,6 @@
H.mind.nation.current_name = input
H.mind.nation.update_nation_id()
to_chat(H, "You rename your nation to [input].")
-
H.verbs -= /mob/living/carbon/human/proc/set_nation_name
return 1
@@ -46,7 +45,6 @@
H.mind.nation.member_rank = input
H.mind.nation.update_nation_id()
to_chat(H, "You changed the [type] rank of your nation to [input].")
-
return 1
/mob/living/carbon/human/proc/choose_heir()
@@ -67,15 +65,12 @@
if(H.mind.nation.heir)
var/mob/living/carbon/human/oldheir = H.mind.nation.heir
to_chat(oldheir, "You are no longer the heir to your nation!")
-
oldheir.verbs -= /mob/living/carbon/human/proc/takeover
var/mob/living/carbon/human/newheir = heir
H.mind.nation.heir = newheir
newheir.verbs += /mob/living/carbon/human/proc/takeover
to_chat(newheir, "You have been selected to be the heir to your nation's leadership!")
-
to_chat(H, "You have selected [heir] to be your heir!")
-
H.mind.nation.update_nation_id()
@@ -96,7 +91,6 @@
if(confirmation == "Yes")
var/mob/living/carbon/human/oldleader = H.mind.nation.current_leader
to_chat(oldleader, "You have been replaced by [H.name] as the leader of [H.mind.nation.current_name]!")
-
oldleader.verbs -= /mob/living/carbon/human/proc/set_nation_name
oldleader.verbs -= /mob/living/carbon/human/proc/set_ranks
oldleader.verbs -= /mob/living/carbon/human/proc/choose_heir
@@ -107,7 +101,6 @@
H.verbs += /mob/living/carbon/human/proc/set_ranks
H.verbs += /mob/living/carbon/human/proc/choose_heir
to_chat(H, "You have replaced [oldleader.name] as the leader of [H.mind.nation.current_name]!")
-
H.mind.nation.update_nation_id()
diff --git a/code/game/gamemodes/newobjective.dm b/code/game/gamemodes/newobjective.dm
index 5171ec08c51..aae6d31261a 100644
--- a/code/game/gamemodes/newobjective.dm
+++ b/code/game/gamemodes/newobjective.dm
@@ -177,7 +177,6 @@
continue
var/datum/objective/assassinate/objective = pickweight(killobjectives)
to_chat(world, objective)
-
for(1 to 10)
if(objective.points + total_weight <= 100 || !killobjectives.len)
break
diff --git a/code/game/gamemodes/nuclear/nuclear.dm b/code/game/gamemodes/nuclear/nuclear.dm
index 0704b9c9a17..8ad66fe7879 100644
--- a/code/game/gamemodes/nuclear/nuclear.dm
+++ b/code/game/gamemodes/nuclear/nuclear.dm
@@ -24,12 +24,9 @@ proc/issyndicate(mob/living/M as mob)
/datum/game_mode/nuclear/announce()
to_chat(world, "The current game mode is - Nuclear Emergency!")
-
to_chat(world, "A [syndicate_name()] Strike Force is approaching [station_name()]!")
-
to_chat(world, "A nuclear explosive was being transported by Nanotrasen to a military base. The transport ship mysteriously lost contact with Space Traffic Control (STC). About that time a strange disk was discovered around [station_name()]. It was identified by Nanotrasen as a nuclear authentication disk and now Syndicate Operatives have arrived to retake the disk and detonate SS13! There are most likely Syndicate starships are in the vicinity, so take care not to lose the disk!\nSyndicate: Reclaim the disk and detonate the nuclear bomb anywhere on SS13.\nPersonnel: Hold the disk and escape with the disk on the shuttle!")
-
/datum/game_mode/nuclear/can_start()//This could be better, will likely have to recode it later
if(!..())
return 0
@@ -175,12 +172,9 @@ proc/issyndicate(mob/living/M as mob)
*/
synd_mind.current.real_name = "[syndicate_name()] Team [leader_title]"
to_chat(synd_mind.current, "You are the Syndicate leader for this mission. You are responsible for the distribution of telecrystals and your ID is the only one who can open the launch bay doors.")
-
to_chat(synd_mind.current, "If you feel you are not up to this task, give your ID to another operative.")
-
to_chat(synd_mind.current, "In your hand you will find a special item capable of triggering a greater challenge for your team. Examine it carefully and consult with your fellow operatives before activating it.")
-
var/obj/item/device/nuclear_challenge/challenge = new /obj/item/device/nuclear_challenge
synd_mind.current.equip_to_slot_or_del(challenge, slot_r_hand)
@@ -197,7 +191,6 @@ proc/issyndicate(mob/living/M as mob)
if (nuke_code)
synd_mind.store_memory("Syndicate Nuclear Bomb Code: [nuke_code]", 0, 0)
to_chat(synd_mind.current, "The nuclear authorization code is: [nuke_code]")
-
var/obj/item/weapon/paper/P = new
P.info = "The nuclear authorization code is: [nuke_code]"
P.name = "nuclear bomb code"
@@ -227,11 +220,9 @@ proc/issyndicate(mob/living/M as mob)
/datum/game_mode/proc/greet_syndicate(var/datum/mind/syndicate, var/you_are=1)
if (you_are)
to_chat(syndicate.current, "\blue You are a [syndicate_name()] agent!")
-
var/obj_count = 1
for(var/datum/objective/objective in syndicate.objectives)
to_chat(syndicate.current, "Objective #[obj_count]: [objective.explanation_text]")
-
obj_count++
return
@@ -325,66 +316,48 @@ proc/issyndicate(mob/living/M as mob)
if (!disk_rescued && station_was_nuked && !syndies_didnt_escape)
feedback_set_details("round_end_result","win - syndicate nuke")
to_chat(world, "Syndicate Major Victory!")
-
to_chat(world, "[syndicate_name()] operatives have destroyed [station_name()]!")
-
else if (!disk_rescued && station_was_nuked && syndies_didnt_escape)
feedback_set_details("round_end_result","halfwin - syndicate nuke - did not evacuate in time")
to_chat(world, "Total Annihilation")
-
to_chat(world, "[syndicate_name()] operatives destroyed [station_name()] but did not leave the area in time and got caught in the explosion. Next time, don't lose the disk!")
-
else if (!disk_rescued && !station_was_nuked && nuke_off_station && !syndies_didnt_escape)
feedback_set_details("round_end_result","halfwin - blew wrong station")
to_chat(world, "Crew Minor Victory")
-
to_chat(world, "[syndicate_name()] operatives secured the authentication disk but blew up something that wasn't [station_name()]. Next time, don't lose the disk!")
-
else if (!disk_rescued && !station_was_nuked && nuke_off_station && syndies_didnt_escape)
feedback_set_details("round_end_result","halfwin - blew wrong station - did not evacuate in time")
to_chat(world, "[syndicate_name()] operatives have earned Darwin Award!")
-
to_chat(world, "[syndicate_name()] operatives blew up something that wasn't [station_name()] and got caught in the explosion. Next time, don't lose the disk!")
-
else if ( disk_rescued && is_operatives_are_dead())
feedback_set_details("round_end_result","loss - evacuation - disk secured - syndi team dead")
to_chat(world, "Crew Major Victory!")
-
to_chat(world, "The Research Staff has saved the disc and killed the [syndicate_name()] Operatives")
-
else if ( disk_rescued )
feedback_set_details("round_end_result","loss - evacuation - disk secured")
to_chat(world, "Crew Major Victory")
-
to_chat(world, "The Research Staff has saved the disc and stopped the [syndicate_name()] Operatives!")
-
else if (!disk_rescued && is_operatives_are_dead())
feedback_set_details("round_end_result","loss - evacuation - disk not secured")
to_chat(world, "Syndicate Minor Victory!")
-
to_chat(world, "The Research Staff failed to secure the authentication disk but did manage to kill most of the [syndicate_name()] Operatives!")
-
else if (!disk_rescued && crew_evacuated)
feedback_set_details("round_end_result","halfwin - detonation averted")
to_chat(world, "Syndicate Minor Victory!")
-
to_chat(world, "[syndicate_name()] operatives recovered the abandoned authentication disk but detonation of [station_name()] was averted. Next time, don't lose the disk!")
-
else if (!disk_rescued && !crew_evacuated)
feedback_set_details("round_end_result","halfwin - interrupted")
to_chat(world, "Neutral Victory")
-
to_chat(world, "Round was mysteriously interrupted!")
-
..()
return
@@ -422,7 +395,6 @@ proc/issyndicate(mob/living/M as mob)
text += ""
to_chat(world, text)
-
return 1
/proc/nukelastname(var/mob/M as mob) //--All praise goes to NEO|Phyte, all blame goes to DH, and it was Cindi-Kate's idea. Also praise Urist for copypasta ho.
@@ -435,7 +407,6 @@ proc/issyndicate(mob/living/M as mob)
else
if (newname == "Unknown" || newname == "floor" || newname == "wall" || newname == "rwall" || newname == "_")
to_chat(M, "That name is reserved.")
-
return nukelastname(M)
return newname
diff --git a/code/game/gamemodes/nuclear/nuclear_challenge.dm b/code/game/gamemodes/nuclear/nuclear_challenge.dm
index d8e252d97c8..c11b43f81ec 100644
--- a/code/game/gamemodes/nuclear/nuclear_challenge.dm
+++ b/code/game/gamemodes/nuclear/nuclear_challenge.dm
@@ -18,23 +18,19 @@
return
if(player_list.len < MIN_CHALLENGE_PLAYERS)
to_chat(user, "The enemy crew is too small to be worth declaring war on.")
-
return
if(user.z != ZLEVEL_CENTCOMM)
to_chat(user, "You have to be at your base to use this.")
-
return
if(world.time > CHALLENGE_TIME_LIMIT)
to_chat(user, "It's too late to declare hostilities. Your benefactors are already busy with other schemes. You'll have to make do with what you have on hand.")
-
return
declaring_war = 1
var/are_you_sure = alert(user, "Consult your team carefully before you declare war on [station_name()]]. Are you sure you want to alert the enemy crew?", "Declare war?", "Yes", "No")
if(are_you_sure == "No")
to_chat(user, "On second thought, the element of surprise isn't so bad after all.")
-
declaring_war = 0
return
@@ -42,7 +38,6 @@
command_announcement.Announce(war_declaration, "Declaration of War", 'sound/effects/siren.ogg')
to_chat(user, "You've attracted the attention of powerful forces within the syndicate. A bonus bundle of telecrystals has been granted to your team. Great things await you if you complete the mission.")
-
for(var/obj/machinery/computer/shuttle/syndicate/S in machines)
S.challenge = TRUE
diff --git a/code/game/gamemodes/nuclear/nuclearbomb.dm b/code/game/gamemodes/nuclear/nuclearbomb.dm
index b580622504f..85e6967f180 100644
--- a/code/game/gamemodes/nuclear/nuclearbomb.dm
+++ b/code/game/gamemodes/nuclear/nuclearbomb.dm
@@ -56,23 +56,19 @@ var/bomb_set
panel_open = 1
overlays += image(icon, "npanel_open")
to_chat(user, "You unscrew the control panel of [src].")
-
playsound(src, 'sound/items/Screwdriver.ogg', 50, 1)
else
panel_open = 0
overlays -= image(icon, "npanel_open")
to_chat(user, "You screw the control panel of [src] back on.")
-
playsound(src, 'sound/items/Screwdriver.ogg', 50, 1)
else
if (panel_open == 0)
to_chat(user, "[src] emits a buzzing noise, the panel staying locked in.")
-
if (panel_open == 1)
panel_open = 0
overlays -= image(icon, "npanel_open")
to_chat(user, "You screw the control panel of [src] back on.")
-
playsound(src, 'sound/items/Screwdriver.ogg', 50, 1)
flick("nuclearbombc", src)
return
@@ -96,7 +92,6 @@ var/bomb_set
if(!WT.isOn()) return
if (WT.get_fuel() < 5) // uses up 5 fuel.
to_chat(user, "\red You need more fuel to complete this task.")
-
return
user.visible_message("[user] starts cutting loose the anchoring bolt covers on [src].", "You start cutting loose the anchoring bolt covers with [O]...")
@@ -124,7 +119,6 @@ var/bomb_set
if(!WT.isOn()) return
if (WT.get_fuel() < 5) // uses up 5 fuel.
to_chat(user, "\red You need more fuel to complete this task.")
-
return
user.visible_message("[user] starts cutting apart the anchoring system sealant on [src].", "You start cutting apart the anchoring system's sealant with [O]...")
@@ -224,11 +218,9 @@ var/bomb_set
if (deployable)
to_chat(usr, "\red You close several panels to make [src] undeployable.")
-
deployable = 0
else
to_chat(usr, "\red You adjust some panels to make [src] deployable.")
-
deployable = 1
return
@@ -288,7 +280,6 @@ var/bomb_set
return
if (safety)
to_chat(usr, "\red The safety is still on.")
-
nanomanager.update_uis(src)
return
timing = !(timing)
@@ -331,7 +322,6 @@ var/bomb_set
else
to_chat(usr, "There is nothing to anchor to!")
-
nanomanager.update_uis(src)
/obj/machinery/nuclearbomb/ex_act(severity)
@@ -382,14 +372,11 @@ var/bomb_set
ticker.mode:nukes_left --
else if(off_station == 1)
to_chat(world, "A nuclear device was set off, but the explosion was out of reach of the station!")
-
else if(off_station == 2)
to_chat(world, "A nuclear device was set off, but the device was not on the station!")
-
else
to_chat(world, "The station was destoyed by the nuclear blast!")
-
ticker.mode.station_was_nuked = (off_station<2) //offstation==1 is a draw. the station becomes irradiated and needs to be evacuated.
//kinda shit but I couldn't get permission to do what I wanted to do.
@@ -416,7 +403,6 @@ var/bomb_set
var/turf/disk_loc = get_turf(src)
if(disk_loc.z != ZLEVEL_STATION && disk_loc.z != ZLEVEL_CENTCOMM)
to_chat(get(src, /mob), "You can't help but feel that you just lost something back there...")
-
qdel(src)
/obj/item/weapon/disk/nuclear/Destroy()
diff --git a/code/game/gamemodes/nuclear/pinpointer.dm b/code/game/gamemodes/nuclear/pinpointer.dm
index 170c0aac8e9..320be6c9f98 100644
--- a/code/game/gamemodes/nuclear/pinpointer.dm
+++ b/code/game/gamemodes/nuclear/pinpointer.dm
@@ -22,13 +22,11 @@
active = 1
workdisk()
to_chat(usr, "You activate the pinpointer.")
-
else
active = 0
icon_state = "pinoff"
to_chat(usr, "You deactivate the pinpointer.")
-
/obj/item/weapon/pinpointer/proc/scandisk()
if(!the_disk)
the_disk = locate()
@@ -72,7 +70,6 @@
if(bomb.timing)
to_chat(user, "Extreme danger. Arming signal detected. Time remaining: [bomb.timeleft]")
-
/obj/item/weapon/pinpointer/advpinpointer
name = "advanced pinpointer"
desc = "A larger version of the normal pinpointer, this unit features a helpful quantum entanglement detection system to locate various objects that do not broadcast a locator signal."
@@ -90,13 +87,11 @@
if(mode == 2)
point_at(target)
to_chat(usr, "You activate the pinpointer.")
-
else
active = 0
icon_state = "pinoff"
to_chat(usr, "You deactivate the pinpointer.")
-
/obj/item/weapon/pinpointer/advpinpointer/workdisk()
if(mode == 0)
scandisk()
@@ -135,7 +130,6 @@
to_chat(usr, "You set the pinpointer to locate [locationx],[locationy]")
-
return attack_self()
if("Disk Recovery")
@@ -159,10 +153,8 @@
target = locate(item_paths[targetitem])
if(!target)
to_chat(usr, "Failed to locate [targetitem]!")
-
return
to_chat(usr, "You set the pinpointer to locate [targetitem].")
-
if("DNA")
var/DNAstring = input("Input DNA string to search for." , "Please Enter String." , "")
if(!DNAstring)
@@ -190,17 +182,14 @@
if(!mode)
workdisk()
to_chat(user, "Authentication Disk Locator active.")
-
else
worklocation()
to_chat(user, "Shuttle Locator active.")
-
else
active = 0
icon_state = "pinoff"
to_chat(user, "You deactivate the pinpointer.")
-
/obj/item/weapon/pinpointer/nukeop/workdisk()
if(!active) return
if(mode) //Check in case the mode changes while operating
@@ -271,19 +260,16 @@
/obj/item/weapon/pinpointer/operative/attack_self()
if(!usr.mind || !(usr.mind in ticker.mode.syndicates))
to_chat(usr, "AUTHENTICATION FAILURE. ACCESS DENIED.")
-
return 0
if(!active)
active = 1
workop()
to_chat(usr, "You activate the pinpointer.")
-
else
active = 0
icon_state = "pinoff"
to_chat(usr, "You deactivate the pinpointer.")
-
/obj/item/weapon/pinpointer/operative/proc/scan_for_ops()
if(active)
nearest_op = null //Resets nearest_op every time it scans
@@ -307,7 +293,5 @@
if(active)
if(nearest_op)
to_chat(user, "Nearest operative detected is [nearest_op.real_name].")
-
else
to_chat(user, "No operatives detected within scanning range.")
-
diff --git a/code/game/gamemodes/revolution/revolution.dm b/code/game/gamemodes/revolution/revolution.dm
index 41edd787514..bbf0e5c9c73 100644
--- a/code/game/gamemodes/revolution/revolution.dm
+++ b/code/game/gamemodes/revolution/revolution.dm
@@ -34,11 +34,9 @@
///////////////////////////
/datum/game_mode/revolution/announce()
to_chat(world, "The current game mode is - Revolution!")
-
to_chat(world, "Some crewmembers are attempting to start a revolution!
\nRevolutionaries - Kill the Captain, HoP, HoS, CE, RD and CMO. Convert other crewmembers (excluding the heads of staff, and security officers) to your cause by flashing them. Protect your leaders.
\nPersonnel - Protect the heads of staff. Kill the leaders of the revolution, and brainwash the other revolutionaries (by beating them in the head).")
-
///////////////////////////////////////////////////////////////////////////////
//Gets the round setup, cancelling if there's not enough players at the start//
///////////////////////////////////////////////////////////////////////////////
@@ -130,7 +128,6 @@
rev_mind.objectives += rev_obj
to_chat(rev_mind.current, "Additional Objective: Assassinate [head_mind.name], the [head_mind.assigned_role].")
-
for(var/datum/mind/rev_mind in mode.revolutionaries)
for(var/datum/mind/head_mind in heads)
var/datum/objective/mutiny/rev_obj = new
@@ -141,7 +138,6 @@
to_chat(rev_mind.current, "Additional Objective: Assassinate [head_mind.name], the [head_mind.assigned_role].")
-
/datum/game_mode/proc/forge_revolutionary_objectives(var/datum/mind/rev_mind)
var/list/heads = get_living_heads()
if(num_players_started() >= 30)
@@ -158,10 +154,8 @@
var/obj_count = 1
if (you_are)
to_chat(rev_mind.current, "\blue You are a member of the revolutionaries' leadership!")
-
for(var/datum/objective/objective in rev_mind.objectives)
to_chat(rev_mind.current, "Objective #[obj_count]: [objective.explanation_text]")
-
rev_mind.special_role = "Head Revolutionary"
obj_count++
@@ -175,7 +169,6 @@
if (mob.mind)
if (mob.mind.assigned_role == "Clown")
to_chat(mob, "Your training has allowed you to overcome your clownish nature, allowing you to wield weapons without harming yourself.")
-
mob.mutations.Remove(CLUMSY)
@@ -191,10 +184,8 @@
var/where = mob.equip_in_one_of_slots(T, slots)
if (!where)
to_chat(mob, "The Syndicate were unfortunately unable to get you a flash.")
-
else
to_chat(mob, "The flash in your [where] will help you to persuade the crew to join your cause.")
-
mob.update_icons()
return 1
@@ -232,7 +223,6 @@
return 0
revolutionaries += rev_mind
to_chat(rev_mind.current, "\red You are now a revolutionary! Help your cause. Do not harm your fellow freedom fighters. You can identify your comrades by the red \"R\" icons, and your leaders by the blue \"R\" icons. Help them kill the heads to win the revolution!")
-
rev_mind.special_role = "Revolutionary"
update_rev_icons_added(rev_mind)
if(jobban_isbanned(rev_mind.current, ROLE_REV))
@@ -248,23 +238,19 @@
if(beingborged)
to_chat(rev_mind.current, "\red The frame's firmware detects and deletes your neural reprogramming! You remember nothing from the moment you were flashed until now.")
-
message_admins("[key_name_admin(rev_mind.current)] has been borged while being a member of the revolution.")
else
to_chat(rev_mind.current, "\red You have been brainwashed! You are no longer a revolutionary! Your memory is hazy from the time you were a rebel...the only thing you remember is the name of the one who brainwashed you...")
-
update_rev_icons_removed(rev_mind)
for(var/mob/living/M in view(rev_mind.current))
if(beingborged)
to_chat(M, "The frame beeps contentedly, purging the hostile memory engram from the MMI before initalizing it.")
-
else
to_chat(M, "[rev_mind.current] looks like they just remembered their real allegiance!")
-
/////////////////////////////////////
//Adds the rev hud to a new convert//
/////////////////////////////////////
@@ -309,11 +295,9 @@
if(finished == 1)
feedback_set_details("round_end_result","win - heads killed")
to_chat(world, "\red The heads of staff were killed or abandoned the station! The revolutionaries win!")
-
else if(finished == 2)
feedback_set_details("round_end_result","loss - rev heads killed")
to_chat(world, "\red The heads of staff managed to stop the revolution!")
-
..()
return 1
@@ -343,7 +327,6 @@
to_chat(world, text)
-
if(revolutionaries.len || istype(ticker.mode,/datum/game_mode/revolution))
var/text = "The revolutionaries were:"
@@ -365,7 +348,6 @@
to_chat(world, text)
-
if( head_revolutionaries.len || revolutionaries.len || istype(ticker.mode,/datum/game_mode/revolution) )
var/text = "The heads of staff were:"
@@ -394,7 +376,6 @@
to_chat(world, text)
-
/proc/is_convertable_to_rev(datum/mind/mind)
return istype(mind) && \
istype(mind.current, /mob/living/carbon/human) && \
diff --git a/code/game/gamemodes/revolution/rp_revolution.dm b/code/game/gamemodes/revolution/rp_revolution.dm
index cea8e9d9d2d..78d210159a8 100644
--- a/code/game/gamemodes/revolution/rp_revolution.dm
+++ b/code/game/gamemodes/revolution/rp_revolution.dm
@@ -76,10 +76,8 @@
var/obj_count = 1
if (you_are)
to_chat(rev_mind.current, "\blue You are a member of the revolutionaries' leadership!")
-
for(var/datum/objective/objective in rev_mind.objectives)
to_chat(rev_mind.current, "Objective #[obj_count]: [objective.explanation_text]")
-
rev_mind.special_role = "Head Revolutionary"
obj_count++
@@ -92,7 +90,6 @@
var/mob/living/carbon/human/M = get_nt_opposed()
if(M && !(M.mind in head_revolutionaries) && !(M in already_considered))
to_chat(rev_mob, "We have received credible reports that [M.real_name] might be willing to help our cause. If you need assistance, consider contacting them.")
-
rev_mob.mind.store_memory("Potential Collaborator: [M.real_name]")
///////////////////////////////////////////////////
@@ -107,7 +104,6 @@
return 0
revolutionaries += rev_mind
to_chat(rev_mind.current, "\red You are now a revolutionary! Help your cause. Do not harm your fellow freedom fighters. You can identify your comrades by the red \"R\" icons, and your leaders by the blue \"R\" icons. Help them kill, capture or convert the heads to win the revolution!")
-
rev_mind.special_role = "Revolutionary"
update_rev_icons_added(rev_mind)
return 1
@@ -132,11 +128,9 @@
///////////////////////////
/datum/game_mode/revolution/rp_revolution/announce()
to_chat(world, "The current game mode is - Revolution!")
-
to_chat(world, "Some crewmembers are attempting to start a revolution!")
-
//////////////////////////////////////////////////////////////////////
//Announces the end of the game with all relavent information stated//
//////////////////////////////////////////////////////////////////////
@@ -144,11 +138,9 @@
if(finished == 1)
feedback_set_details("round_end_result","win - heads overthrown")
to_chat(world, "\red The heads of staff were overthrown! The revolutionaries win!")
-
else if(finished == 2)
feedback_set_details("round_end_result","loss - revolution stopped")
to_chat(world, "\red The heads of staff managed to stop the revolution!")
-
..()
return 1
@@ -168,37 +160,28 @@
Possible += P
if(!Possible.len)
to_chat(src, "\red There doesn't appear to be anyone available for you to convert here.")
-
return
var/mob/living/carbon/human/M = input("Select a person to convert", "Viva la revolution!", null) as mob in Possible
if(((src.mind in ticker.mode:head_revolutionaries) || (src.mind in ticker.mode:revolutionaries)))
if((M.mind in ticker.mode:head_revolutionaries) || (M.mind in ticker.mode:revolutionaries))
to_chat(src, "\red [M] is already be a revolutionary!")
-
else if(!ticker.mode:is_convertible(M))
to_chat(src, "\red [M] is implanted with a loyalty implant - Remove it first!")
-
else
if(world.time < M.mind.rev_cooldown)
to_chat(src, "\red Wait five seconds before reconversion attempt.")
-
return
to_chat(src, "\red Attempting to convert [M]...")
-
log_admin("[src]([src.ckey]) attempted to convert [M].")
message_admins("\red [src]([src.ckey]) attempted to convert [M].")
var/choice = alert(M,"Asked by [src]: Do you want to join the revolution?","Align Thyself with the Revolution!","No!","Yes!")
if(choice == "Yes!")
ticker.mode:add_revolutionary(M.mind)
to_chat(M, "\blue You join the revolution!")
-
to_chat(src, "\blue [M] joins the revolution!")
-
else if(choice == "No!")
to_chat(M, "\red You reject this traitorous cause!")
-
to_chat(src, "\red [M] does not support the revolution!")
-
M.mind.rev_cooldown = world.time+50
/datum/game_mode/revolution/rp_revolution/process()
@@ -226,7 +209,6 @@
H.verbs += /mob/living/carbon/human/proc/RevConvert
to_chat(H, "\red Congratulations, yer heads of revolution are all gone now, so yer earned yourself a promotion.")
-
added_heads = 1
break
@@ -261,7 +243,6 @@
comm.messagetext.Add(message)
to_chat(world, sound('sound/AI/commandreport.ogg'))
-
/datum/game_mode/revolution/rp_revolution/latespawn(mob/M)
if(M.mind.assigned_role in command_positions)
log_debug("Adding head kill/capture/convert objective for [M.name]")
@@ -274,4 +255,3 @@
rev_obj.explanation_text = "Assassinate, convert or capture [M.real_name], the [M.mind.assigned_role]."
rev_mind.objectives += rev_obj
to_chat(rev_mind.current, "\red A new Head of Staff, [M.real_name], the [M.mind.assigned_role] has appeared. Your objectives have been updated.")
-
diff --git a/code/game/gamemodes/sandbox/h_sandbox.dm b/code/game/gamemodes/sandbox/h_sandbox.dm
index b21e7101a82..4d061d37eca 100644
--- a/code/game/gamemodes/sandbox/h_sandbox.dm
+++ b/code/game/gamemodes/sandbox/h_sandbox.dm
@@ -53,12 +53,10 @@ datum/hSB
if(!admin) return
if(hsboxspawn)
to_chat(world, "Sandbox: [usr.key] has disabled object spawning!")
-
hsboxspawn = 0
return
if(!hsboxspawn)
to_chat(world, "Sandbox: [usr.key] has enabled object spawning!")
-
hsboxspawn = 1
return
if("hsbsuit")
@@ -108,7 +106,6 @@ datum/hSB
hsb.loc = usr.loc
to_chat(usr, "Sandbox: Created an airlock.")
-
if("hsbcanister")
var/list/hsbcanisters = subtypesof(/obj/machinery/portable_atmospherics/canister/)
var/hsbcanister = input(usr, "Choose a canister to spawn.", "Sandbox:") in hsbcanisters + "Cancel"
diff --git a/code/game/gamemodes/sandbox/sandbox.dm b/code/game/gamemodes/sandbox/sandbox.dm
index 8f02b2df6a7..1be9a0ced0e 100644
--- a/code/game/gamemodes/sandbox/sandbox.dm
+++ b/code/game/gamemodes/sandbox/sandbox.dm
@@ -8,10 +8,8 @@
/datum/game_mode/sandbox/announce()
to_chat(world, "The current game mode is - Sandbox!")
-
to_chat(world, "Build your own station with the sandbox-panel command!")
-
/datum/game_mode/sandbox/pre_setup()
for(var/mob/M in player_list)
M.CanBuild()
diff --git a/code/game/gamemodes/scoreboard.dm b/code/game/gamemodes/scoreboard.dm
index 19f7f4905cc..44adae0d98a 100644
--- a/code/game/gamemodes/scoreboard.dm
+++ b/code/game/gamemodes/scoreboard.dm
@@ -149,9 +149,7 @@
// Show the score - might add "ranks" later
to_chat(world, "The crew's final score is:")
-
to_chat(world, "[score_crewscore]")
-
for(var/mob/E in player_list)
if(E.client)
if(E.client.prefs && !(E.client.prefs.toggles & DISABLE_SCOREBOARD))
diff --git a/code/game/gamemodes/shadowling/shadowling.dm b/code/game/gamemodes/shadowling/shadowling.dm
index 46fbc47a5df..ef098c87f91 100644
--- a/code/game/gamemodes/shadowling/shadowling.dm
+++ b/code/game/gamemodes/shadowling/shadowling.dm
@@ -77,10 +77,8 @@ Made by Xhuis
/datum/game_mode/shadowling/announce()
to_chat(world, "The current game mode is - Shadowling!")
-
to_chat(world, "There are alien shadowlings on the station. Crew: Kill the shadowlings before they can eat or enthrall the crew. Shadowlings: Enthrall the crew while remaining in hiding.")
-
/datum/game_mode/shadowling/pre_setup()
if(config.protect_roles_from_antagonist)
restricted_jobs += protected_jobs
@@ -108,9 +106,7 @@ Made by Xhuis
log_game("[shadow.key] (ckey) has been selected as a Shadowling.")
sleep(10)
to_chat(shadow.current, "
")
-
to_chat(shadow.current, "You are a shadowling!")
-
greet_shadow(shadow)
finalize_shadowling(shadow)
process_shadow_objectives(shadow)
@@ -125,7 +121,6 @@ Made by Xhuis
-
/datum/game_mode/proc/process_shadow_objectives(var/datum/mind/shadow_mind)
var/objective = "enthrall" //may be devour later, but for now it seems murderbone-y
@@ -136,7 +131,6 @@ Made by Xhuis
to_chat(shadow_mind.current, "Objective #1: [objective_explanation]
")
-
/datum/game_mode/proc/finalize_shadowling(var/datum/mind/shadow_mind)
var/mob/living/carbon/human/S = shadow_mind.current
shadow_mind.AddSpell(new /obj/effect/proc_holder/spell/targeted/shadowling_hatch)
@@ -145,7 +139,6 @@ Made by Xhuis
update_shadow_icons_added(shadow_mind)
if(shadow_mind.assigned_role == "Clown")
to_chat(S, "Your alien nature has allowed you to overcome your clownishness.")
-
S.mutations.Remove(CLUMSY)
/datum/game_mode/proc/add_thrall(datum/mind/new_thrall_mind)
@@ -161,17 +154,11 @@ Made by Xhuis
new_thrall_mind.AddSpell(new /obj/effect/proc_holder/spell/targeted/lesser_shadow_walk)
new_thrall_mind.AddSpell(new /obj/effect/proc_holder/spell/targeted/shadow_vision/thrall)
to_chat(new_thrall_mind.current, "You see the truth. Reality has been torn away and you realize what a fool you've been.")
-
to_chat(new_thrall_mind.current, "The shadowlings are your masters. Serve them above all else and ensure they complete their goals.")
-
to_chat(new_thrall_mind.current, "You may not harm other thralls or the shadowlings. However, you do not need to obey other thralls.")
-
to_chat(new_thrall_mind.current, "Your body has been irreversibly altered. The attentive can see this - you may conceal it by wearing a mask.")
-
to_chat(new_thrall_mind.current, "Though not nearly as powerful as your masters, you possess some weak powers. These can be found in the Thrall Abilities tab.")
-
to_chat(new_thrall_mind.current, "You may communicate with your allies by speaking in the Shadowling Hivemind (:8).")
-
if(jobban_isbanned(new_thrall_mind.current, ROLE_SHADOWLING))
replace_jobbaned_player(new_thrall_mind.current, ROLE_SHADOWLING)
@@ -255,16 +242,12 @@ Made by Xhuis
/datum/game_mode/shadowling/declare_completion()
if(check_shadow_victory() && shuttle_master.emergency.mode >= SHUTTLE_ESCAPE) //Doesn't end instantly - this is hacky and I don't know of a better way ~X
to_chat(world, "The shadowlings have ascended and taken over the station!")
-
else if(shadowling_dead && !check_shadow_victory()) //If the shadowlings have ascended, they can not lose the round
to_chat(world, "The shadowlings have been killed by the crew!")
-
else if(!check_shadow_victory() && shuttle_master.emergency.mode >= SHUTTLE_ESCAPE)
to_chat(world, "The crew escaped the station before the shadowlings could ascend!")
-
else
to_chat(world, "The shadowlings have failed!")
-
..()
return 1
@@ -304,7 +287,6 @@ Made by Xhuis
to_chat(world, text)
-
/*
MISCELLANEOUS
*/
@@ -339,9 +321,7 @@ Made by Xhuis
if(H.stat != DEAD)
to_chat(H, "The light burns you!")//Message spam to say "GET THE FUCK OUT"
-
to_chat(H, 'sound/weapons/sear.ogg')
-
else if(light_amount < LIGHT_HEAL_THRESHOLD)
H.heal_overall_damage(5, 5)
H.adjustToxLoss(-5)
diff --git a/code/game/gamemodes/shadowling/shadowling_abilities.dm b/code/game/gamemodes/shadowling/shadowling_abilities.dm
index 6fa19dc30a2..5421789c0ea 100644
--- a/code/game/gamemodes/shadowling/shadowling_abilities.dm
+++ b/code/game/gamemodes/shadowling/shadowling_abilities.dm
@@ -6,13 +6,10 @@
if(H.get_species() == "Lesser Shadowling" && is_thrall(H)) return 1
if(!is_shadow_or_thrall(usr))
to_chat(usr, "You can't wrap your head around how to do this.")
-
else if(is_thrall(usr))
to_chat(usr, "You aren't powerful enough to do this.")
-
else if(is_shadow(usr))
to_chat(usr, "Your telepathic ability is suppressed. Hatch or use Rapid Re-Hatch first.")
-
return 0
@@ -28,7 +25,6 @@
for(var/mob/living/carbon/human/target in targets)
if(!ishuman(target))
to_chat(usr, "You may only glare at humans!")
-
charge_counter = charge_max
return
if(!shadowling_check(usr))
@@ -36,12 +32,10 @@
return
if(target.stat)
to_chat(usr, "[target] must be conscious!")
-
charge_counter = charge_max
return
if(is_shadow_or_thrall(target))
to_chat(usr, "You don't see why you would want to paralyze an ally.")
-
charge_counter = charge_max
return
var/mob/living/carbon/human/M = target
@@ -49,10 +43,8 @@
target.visible_message("[target] freezes in place, their eyes glazing over...")
if(in_range(target, usr))
to_chat(target, "Your gaze is forcibly drawn into [usr]'s eyes, and you are mesmerized by their heavenly beauty...")
-
else //Only alludes to the shadowling if the target is close by
to_chat(target, "Red lights suddenly dance in your vision, and you are mesmerized by the heavenly lights...")
-
target.Stun(10)
M.silent += 10
@@ -69,17 +61,14 @@
for(var/mob/living/carbon/human/target in targets)
if(!ishuman(target) || !target)
to_chat(usr, "You nay only glare at humans!")
-
charge_counter = charge_max
return
if(target.stat)
to_chat(usr, "[target] must be conscious!")
-
charge_counter = charge_max
return
if(is_shadow_or_thrall(target))
to_chat(usr, "You cannot glare at allies!")
-
charge_counter = charge_max
return
var/mob/living/carbon/human/M = target
@@ -87,10 +76,8 @@
target.visible_message("[target] freezes in place, their eyes glazing over...")
if(in_range(target, usr))
to_chat(target, "Your gaze is forcibly drawn into [usr]'s eyes, and you are mesmerized by the heavenly lights...")
-
else
to_chat(target, "Red lights suddenly dance in your vision, and you are mesmerized by their heavenly beauty...")
-
target.Stun(3) //Roughly 30% as long as the normal one
M.silent += 3
@@ -156,7 +143,6 @@
charge_counter = charge_max
return
to_chat(usr, "You silently disable all nearby lights.")
-
for(var/obj/effect/glowshroom/G in orange(2, usr)) //Why the fuck was this in the loop below?
G.visible_message("\The [G] withers away!")
qdel(G)
@@ -251,11 +237,9 @@
var/mob/living/carbon/human/H = user
if(!H.vision_type)
to_chat(H, "You shift the nerves in your eyes, allowing you to see in the dark.")
-
H.vision_type = new vision_path
else
to_chat(H, "You return your vision to normal.")
-
H.vision_type = null
/obj/effect/proc_holder/spell/targeted/shadow_vision/thrall
@@ -277,7 +261,6 @@
charge_counter = charge_max
return
to_chat(usr, "You freeze the nearby air.")
-
playsound(usr.loc, 'sound/effects/ghost2.ogg', 50, 1)
for(var/turf/T in targets)
@@ -287,10 +270,8 @@
continue
else
to_chat(M, "You feel a blast of paralyzingly cold air wrap around you and flow past, but you are unaffected!")
-
continue
to_chat(M, "A wave of shockingly cold air engulfs you!")
-
M.Stun(2)
M.apply_damage(10, BURN)
if(M.bodytemperature)
@@ -321,89 +302,68 @@
for(var/mob/living/carbon/human/target in targets)
if(!in_range(usr, target))
to_chat(usr, "You need to be closer to enthrall [target].")
-
charge_counter = charge_max
return
if(!target.key || !target.mind)
to_chat(usr, "The target has no mind.")
-
charge_counter = charge_max
return
if(target.stat)
to_chat(usr, "The target must be conscious.")
-
charge_counter = charge_max
return
if(is_shadow_or_thrall(target))
to_chat(usr, "You can not enthrall allies.")
-
charge_counter = charge_max
return
if(!ishuman(target))
to_chat(usr, "You can only enthrall humans.")
-
charge_counter = charge_max
return
if(enthralling)
to_chat(usr, "You are already enthralling!")
-
charge_counter = charge_max
return
if(!target.client)
to_chat(usr, "[target]'s mind is vacant of activity.")
-
enthralling = 1
to_chat(usr, "This target is valid. You begin the enthralling.")
-
to_chat(target, "[usr] stares at you. You feel your head begin to pulse.")
-
for(var/progress = 0, progress <= 3, progress++)
switch(progress)
if(1)
to_chat(usr, "You place your hands to [target]'s head...")
-
usr.visible_message("[usr] places their hands onto the sides of [target]'s head!")
if(2)
to_chat(usr, "You begin preparing [target]'s mind as a blank slate...")
-
usr.visible_message("[usr]'s palms flare a bright red against [target]'s temples!")
to_chat(target, "A terrible red light floods your mind. You collapse as conscious thought is wiped away.")
-
target.Weaken(12)
sleep(20)
if(isloyal(target))
to_chat(usr, "They are enslaved by Nanotrasen. You begin to shut down the nanobot implant - this will take some time.")
-
usr.visible_message("[usr] pauses, then dips their head in concentration!")
to_chat(target, "You feel your loyalties begin to weaken!")
-
sleep(100) //10 seconds - not spawn() so the enthralling takes longer
to_chat(usr, "The nanobots composing the loyalty implant have been rendered inert. Now to continue.")
-
usr.visible_message("[usr] relaxes again.")
for(var/obj/item/weapon/implant/loyalty/L in target)
if(L && L.implanted)
qdel(L)
to_chat(target, "Your unwavering loyalty to Nanotrasen unexpectedly falters, dims, dies.")
-
if(3)
to_chat(usr, "You begin planting the tumor that will control the new thrall...")
-
usr.visible_message("A strange energy passes from [usr]'s hands into [target]'s head!")
to_chat(target, "You feel your memories twisting, morphing. A sense of horror dominates your mind.")
-
if(!do_mob(usr, target, 70)) //around 21 seconds total for enthralling, 31 for someone with a loyalty implant
to_chat(usr, "The enthralling has been interrupted - your target's mind returns to its previous state.")
-
to_chat(target, "You wrest yourself away from [usr]'s hands and compose yourself")
-
enthralling = 0
return
enthralling = 0
to_chat(usr, "You have enthralled [target]!")
-
target.visible_message("[target] looks to have experienced a revelation!", \
"False faces all dark not real not real not--")
target.setOxyLoss(0) //In case the shadowling was choking them out
@@ -423,7 +383,6 @@
/obj/effect/proc_holder/spell/targeted/shadowling_regenarmor/cast(list/targets)
if(!is_shadow(usr))
to_chat(usr, "You must be a shadowling to do this!")
-
charge_counter = charge_max
return
for(var/mob/living/user in targets)
@@ -467,22 +426,18 @@
to_chat(user, "You focus your telepathic energies abound, harnessing and drawing together the strength of your thralls.")
-
for(M in living_mob_list)
if(is_thrall(M))
thralls++
to_chat(M, "You feel hooks sink into your mind and pull.")
-
if(!do_after(user, 30, target = user))
to_chat(user, "Your concentration has been broken. The mental hooks you have sent out now retract into your mind.")
-
return
if(thralls >= 3 && !screech_acquired)
screech_acquired = 1
to_chat(user, "The power of your thralls has granted you the Sonic Screech ability. This ability will shatter nearby windows and deafen enemies, plus stunning silicon lifeforms.")
-
user.mind.AddSpell(new /obj/effect/proc_holder/spell/aoe_turf/unearthly_screech)
if(thralls >= 5 && !blind_smoke_acquired)
@@ -494,7 +449,6 @@
if(thralls >= 7 && !drainLifeAcquired)
drainLifeAcquired = 1
to_chat(user, "The power of your thralls has granted you the Drain Life ability. You can now drain the health of nearby humans to heal yourself.")
-
user.mind.AddSpell(new /obj/effect/proc_holder/spell/aoe_turf/drainLife)
if(thralls >= 9 && !reviveThrallAcquired)
@@ -506,12 +460,9 @@
if(thralls < victory_threshold)
to_chat(user, "You do not have the power to ascend. You require [victory_threshold] thralls, but only [thralls] living thralls are present.")
-
else if(thralls >= victory_threshold)
to_chat(usr, "You are now powerful enough to ascend. Use the Ascendance ability when you are ready. This will kill all of your thralls.")
-
to_chat(usr, "You may find Ascendance in the Shadowling Evolution tab.")
-
for(M in living_mob_list)
if(is_shadow(M))
var/obj/effect/proc_holder/spell/targeted/collective_mind/CM
@@ -522,14 +473,12 @@
M.mind.AddSpell(new /obj/effect/proc_holder/spell/targeted/shadowling_ascend)
if(M == usr)
to_chat(M, "You project this power to the rest of the shadowlings.")
-
else
to_chat(M, "[user.real_name] has coalesced the strength of the thralls. You can draw upon it at any time to ascend. (Shadowling Evolution Tab)")//Tells all the other shadowlings
-
/obj/effect/proc_holder/spell/targeted/blindness_smoke
name = "Blindness Smoke"
desc = "Spews a cloud of smoke which will blind enemies."
@@ -547,7 +496,6 @@
for(var/mob/living/user in targets)
user.visible_message("[user] suddenly bends over and coughs out a cloud of black smoke, which begins to spread rapidly!")
to_chat(user, "You regurgitate a vast cloud of blinding smoke.")
-
playsound(user, 'sound/effects/bamf.ogg', 50, 1)
var/obj/item/weapon/reagent_containers/glass/beaker/large/B = new /obj/item/weapon/reagent_containers/glass/beaker/large(user.loc)
B.reagents.clear_reagents() //Just in case!
@@ -572,14 +520,12 @@ datum/reagent/shadowling_blindness_smoke/on_mob_life(var/mob/living/M as mob)
if(!M) M = holder.my_atom
if(!is_shadow_or_thrall(M))
to_chat(M, "You breathe in the black smoke, and your eyes burn horribly!")
-
M.eye_blind = 5
if(prob(25))
M.visible_message("[M] claws at their eyes!")
M.Stun(3)
else
to_chat(M, "You breathe in the black smoke, and you feel revitalized!")
-
M.heal_organ_damage(2,2)
M.adjustOxyLoss(-2)
M.adjustToxLoss(-2)
@@ -614,15 +560,12 @@ datum/reagent/shadowling_blindness_smoke/on_mob_life(var/mob/living/M as mob)
if(iscarbon(target))
var/mob/living/carbon/M = target
to_chat(M, "A spike of pain drives into your head and scrambles your thoughts!")
-
M.confused += 10
M.ear_damage += 3
else if(issilicon(target))
var/mob/living/silicon/S = target
to_chat(S, "ERROR $!(@ ERROR )#^! SENSORY OVERLOAD \[$(!@#")
-
to_chat(S, 'sound/misc/interference.ogg')
-
playsound(S, 'sound/machines/warning-buzzer.ogg', 50, 1)
var/datum/effect/system/spark_spread/sp = new /datum/effect/system/spark_spread
sp.set_up(5, 1, S)
@@ -659,7 +602,6 @@ datum/reagent/shadowling_blindness_smoke/on_mob_life(var/mob/living/M as mob)
if(!targetsDrained)
charge_counter = charge_max
to_chat(usr, "There were no nearby humans for you to drain.")
-
return
for(var/mob/living/carbon/M in nearbyTargets)
U.heal_organ_damage(10, 10)
@@ -671,12 +613,10 @@ datum/reagent/shadowling_blindness_smoke/on_mob_life(var/mob/living/M as mob)
M.adjustOxyLoss(20)
M.adjustStaminaLoss(20)
to_chat(M, "You feel a wave of exhaustion and a curious draining sensation directed towards [usr]!")
-
to_chat(usr, "You draw life from those around you to heal your wounds.")
-
/obj/effect/proc_holder/spell/targeted/reviveThrall
name = "Black Recuperation"
desc = "Revives or empowers a thrall."
@@ -697,17 +637,14 @@ datum/reagent/shadowling_blindness_smoke/on_mob_life(var/mob/living/M as mob)
if("Empower")
if(!is_thrall(thrallToRevive))
to_chat(usr, "[thrallToRevive] is not a thrall.")
-
charge_counter = charge_max
return
if(thrallToRevive.stat != CONSCIOUS)
to_chat(usr, "[thrallToRevive] must be conscious to become empowered.")
-
charge_counter = charge_max
return
if(thrallToRevive.get_species() == "Lesser Shadowling")
to_chat(usr, "[thrallToRevive] is already empowered.")
-
charge_counter = charge_max
return
var/empowered_thralls = 0
@@ -719,20 +656,16 @@ datum/reagent/shadowling_blindness_smoke/on_mob_life(var/mob/living/M as mob)
empowered_thralls++
if(empowered_thralls >= EMPOWERED_THRALL_LIMIT)
to_chat(usr, "You cannot spare this much energy. There are too many empowered thralls.")
-
charge_counter = charge_max
return
usr.visible_message("[usr] places their hands over [thrallToRevive]'s face, red light shining from beneath.", \
"You place your hands on [thrallToRevive]'s face and begin gathering energy...")
to_chat(thrallToRevive, "[usr] places their hands over your face. You feel energy gathering. Stand still...")
-
if(!do_mob(usr, thrallToRevive, 80))
to_chat(usr, "Your concentration snaps. The flow of energy ebbs.")
-
charge_counter = charge_max
return
to_chat(usr, "You release a massive surge of power into [thrallToRevive]!")
-
usr.visible_message("Red lightning surges into [thrallToRevive]'s face!")
playsound(thrallToRevive, 'sound/weapons/Egloves.ogg', 50, 1)
playsound(thrallToRevive, 'sound/machines/defib_zap.ogg', 50, 1)
@@ -752,12 +685,10 @@ datum/reagent/shadowling_blindness_smoke/on_mob_life(var/mob/living/M as mob)
if("Revive")
if(!is_thrall(thrallToRevive))
to_chat(usr, "[thrallToRevive] is not a thrall.")
-
charge_counter = charge_max
return
if(thrallToRevive.stat != DEAD)
to_chat(usr, "[thrallToRevive] is not dead.")
-
charge_counter = charge_max
return
usr.visible_message("[usr] kneels over [thrallToRevive], placing their hands on \his chest.", \
@@ -765,11 +696,9 @@ datum/reagent/shadowling_blindness_smoke/on_mob_life(var/mob/living/M as mob)
thrallToRevive.notify_ghost_cloning("Your masters are resuscitating you! Re-enter your corpse if you wish to be brought to life.", source = thrallToRevive)
if(!do_mob(usr, thrallToRevive, 30))
to_chat(usr, "Your concentration snaps. The flow of energy ebbs.")
-
charge_counter = charge_max
return
to_chat(usr, "You release a massive surge of power into [thrallToRevive]!")
-
usr.visible_message("Red lightning surges from [usr]'s hands into [thrallToRevive]'s chest!")
playsound(thrallToRevive, 'sound/weapons/Egloves.ogg', 50, 1)
playsound(thrallToRevive, 'sound/machines/defib_zap.ogg', 50, 1)
@@ -804,12 +733,10 @@ datum/reagent/shadowling_blindness_smoke/on_mob_life(var/mob/living/M as mob)
return
if(!is_thrall(target))
to_chat(usr, "[target] must be a thrall.")
-
charge_counter = charge_max
return
if(shuttle_master.emergency.mode != SHUTTLE_CALL)
to_chat(usr, "The shuttle must be inbound only to the station.")
-
charge_counter = charge_max
return
var/mob/living/carbon/human/M = target
@@ -819,12 +746,9 @@ datum/reagent/shadowling_blindness_smoke/on_mob_life(var/mob/living/M as mob)
"You are suddenly transported... far, far away...")
if(!do_after(usr, 50, target = M))
to_chat(M, "You are snapped back to reality, your haze dissipating!")
-
to_chat(usr, "You have been interrupted. The draw has failed.")
-
return
to_chat(usr, "You project [M]'s life force toward the approaching shuttle, extending its arrival duration!")
-
M.visible_message("[M]'s eyes suddenly flare red. They proceed to collapse on the floor, not breathing.", \
"...speeding by... ...pretty blue glow... ...touch it... ...no glow now... ...no light... ...nothing at all...")
M.death()
@@ -852,7 +776,6 @@ datum/reagent/shadowling_blindness_smoke/on_mob_life(var/mob/living/M as mob)
var/mob/living/simple_animal/ascendant_shadowling/SHA = usr
if(SHA.phasing)
to_chat(usr, "You are not in the same plane of existence. Unphase first.")
-
charge_counter = charge_max
return
@@ -860,7 +783,6 @@ datum/reagent/shadowling_blindness_smoke/on_mob_life(var/mob/living/M as mob)
for(var/mob/living/boom in targets)
if(is_shadow(boom)) //Used to not work on thralls. Now it does so you can PUNISH THEM LIKE THE WRATHFUL GOD YOU ARE.
to_chat(usr, "Making an ally explode seems unwise.")
-
charge_counter = charge_max
return
usr.visible_message("[usr]'s markings flare as they gesture at [boom]!", \
@@ -887,35 +809,28 @@ datum/reagent/shadowling_blindness_smoke/on_mob_life(var/mob/living/M as mob)
if(SHA.phasing)
charge_counter = charge_max
to_chat(usr, "You are not in the same plane of existence. Unphase first.")
-
return
for(var/mob/living/carbon/human/target in targets)
if(is_shadow_or_thrall(target))
to_chat(usr, "You cannot enthrall an ally.")
-
charge_counter = charge_max
return
if(!target.ckey || !target.mind)
to_chat(usr, "The target has no mind.")
-
charge_counter = charge_max
return
if(target.stat)
to_chat(usr, "The target must be conscious.")
-
charge_counter = charge_max
return
if(!ishuman(target))
to_chat(usr, "You can only enthrall humans.")
-
charge_counter = charge_max
return
to_chat(usr, "You instantly rearrange [target]'s memories, hyptonitizing them into a thrall.")
-
to_chat(target, "An agonizing spike of pain drives into your mind, and--")
-
ticker.mode.add_thrall(target.mind)
target.mind.special_role = "shadowling thrall"
target.add_language("Shadowling Hivemind")
@@ -962,7 +877,6 @@ datum/reagent/shadowling_blindness_smoke/on_mob_life(var/mob/living/M as mob)
var/mob/living/simple_animal/ascendant_shadowling/SHA = usr
if(SHA.phasing)
to_chat(usr, "You are not in the same plane of existence. Unphase first.")
-
charge_counter = charge_max
return
@@ -974,7 +888,6 @@ datum/reagent/shadowling_blindness_smoke/on_mob_life(var/mob/living/M as mob)
if(is_shadow_or_thrall(target))
continue
to_chat(target, "You are struck by a bolt of lightning!")
-
playsound(target, 'sound/magic/LightningShock.ogg', 50, 1)
target.Weaken(8)
target.take_organ_damage(0,50)
@@ -996,4 +909,3 @@ datum/reagent/shadowling_blindness_smoke/on_mob_life(var/mob/living/M as mob)
if(!text)
return
to_chat(world, "\"[text]\"")
-
diff --git a/code/game/gamemodes/shadowling/special_shadowling_abilities.dm b/code/game/gamemodes/shadowling/special_shadowling_abilities.dm
index 0d514ff1005..80be87570f2 100644
--- a/code/game/gamemodes/shadowling/special_shadowling_abilities.dm
+++ b/code/game/gamemodes/shadowling/special_shadowling_abilities.dm
@@ -15,14 +15,12 @@ var/list/possibleShadowlingNames = list("U'ruan", "Y`shej", "Nex", "Hel-uae", "N
return
if(!isturf(usr.loc))
to_chat(usr, "You can't hatch here!")
-
return
for(var/mob/living/carbon/human/H in targets)
var/hatch_or_no = alert(H,"Are you sure you want to hatch? You cannot undo this!",,"Yes","No")
switch(hatch_or_no)
if("No")
to_chat(H, "You decide against hatching for now.")
-
charge_counter = charge_max
return
if("Yes")
@@ -58,15 +56,12 @@ var/list/possibleShadowlingNames = list("U'ruan", "Y`shej", "Nex", "Hel-uae", "N
sleep(80)
playsound(H.loc, 'sound/weapons/slash.ogg', 25, 1)
to_chat(H, "You rip and slice.")
-
sleep(10)
playsound(H.loc, 'sound/weapons/slashmiss.ogg', 25, 1)
to_chat(H, "The chrysalis falls like water before you.")
-
sleep(10)
playsound(H.loc, 'sound/weapons/slice.ogg', 25, 1)
to_chat(H, "You are free!")
-
H.status_flags = temp_flags
sleep(10)
playsound(H.loc, 'sound/effects/ghost.ogg', 100, 1)
@@ -77,7 +72,6 @@ var/list/possibleShadowlingNames = list("U'ruan", "Y`shej", "Nex", "Hel-uae", "N
H.SetStunned(0)
to_chat(H, "YOU LIVE!!!")
-
for(var/obj/structure/alien/resin/wall/shadowling/W in orange(H, 1))
playsound(W, 'sound/effects/splat.ogg', 50, 1)
qdel(W)
@@ -102,7 +96,6 @@ var/list/possibleShadowlingNames = list("U'ruan", "Y`shej", "Nex", "Hel-uae", "N
sleep(10)
to_chat(H, "Your powers are awoken. You may now live to your fullest extent. Remember your goal. Cooperate with your thralls and allies.")
-
H.mind.AddSpell(new /obj/effect/proc_holder/spell/targeted/shadow_vision)
H.mind.AddSpell(new /obj/effect/proc_holder/spell/targeted/enthrall)
H.mind.AddSpell(new /obj/effect/proc_holder/spell/targeted/glare)
@@ -132,7 +125,6 @@ var/list/possibleShadowlingNames = list("U'ruan", "Y`shej", "Nex", "Hel-uae", "N
switch(hatch_or_no)
if("No")
to_chat(H, "You decide against ascending for now.")
-
charge_counter = charge_max
return
if("Yes")
@@ -155,22 +147,16 @@ var/list/possibleShadowlingNames = list("U'ruan", "Y`shej", "Nex", "Hel-uae", "N
sleep(40)
to_chat(H, "Yes!")
-
sleep(10)
to_chat(H, "YES!!")
-
sleep(10)
to_chat(H, "YE--")
-
sleep(1)
for(var/mob/living/M in orange(7, H))
M.Weaken(10)
to_chat(M, "An immense pressure slams you onto the ground!")
-
to_chat(world, "\"VYSHA NERADA YEKHEZET U'RUU!!\"")
-
to_chat(world, 'sound/hallucinations/veryfar_noise.ogg')
-
for(var/obj/machinery/power/apc/A in apcs)
A.overload_lighting()
var/mob/A = new /mob/living/simple_animal/ascendant_shadowling(H.loc)
diff --git a/code/game/gamemodes/traitor/traitor.dm b/code/game/gamemodes/traitor/traitor.dm
index 497664cc76f..c0d0edf89e3 100644
--- a/code/game/gamemodes/traitor/traitor.dm
+++ b/code/game/gamemodes/traitor/traitor.dm
@@ -26,11 +26,9 @@
/datum/game_mode/traitor/announce()
to_chat(world, "The current game mode is - Traitor!")
-
to_chat(world, "There is a syndicate traitor on the station. Do not let the traitor succeed!")
-
/datum/game_mode/traitor/pre_setup()
if(config.protect_roles_from_antagonist)
@@ -175,11 +173,9 @@
/datum/game_mode/proc/greet_traitor(var/datum/mind/traitor)
to_chat(traitor.current, "You are the traitor.")
-
var/obj_count = 1
for(var/datum/objective/objective in traitor.objectives)
to_chat(traitor.current, "Objective #[obj_count]: [objective.explanation_text]")
-
obj_count++
return
@@ -206,26 +202,20 @@
/datum/game_mode/proc/give_codewords(mob/living/traitor_mob)
to_chat(traitor_mob, "The Syndicate provided you with the following information on how to identify their agents:")
-
to_chat(traitor_mob, "Code Phrase: [syndicate_code_phrase]")
-
to_chat(traitor_mob, "Code Response: [syndicate_code_response]")
-
traitor_mob.mind.store_memory("Code Phrase: [syndicate_code_phrase]")
traitor_mob.mind.store_memory("Code Response: [syndicate_code_response]")
to_chat(traitor_mob, "Use the code words in the order provided, during regular conversation, to identify other agents. Proceed with caution, however, as everyone is a potential foe.")
-
/datum/game_mode/proc/add_law_zero(mob/living/silicon/ai/killer)
var/law = "Accomplish your objectives at all costs."
var/law_borg = "Accomplish your AI's objectives at all costs."
to_chat(killer, "Your laws have been changed!")
-
killer.set_zeroth_law(law, law_borg)
to_chat(killer, "New law: 0. [law]")
-
give_codewords(killer)
@@ -288,7 +278,6 @@
to_chat(world, text)
-
return 1
@@ -299,7 +288,6 @@
if (traitor_mob.mind)
if (traitor_mob.mind.assigned_role == "Clown")
to_chat(traitor_mob, "Your training has allowed you to overcome your clownish nature, allowing you to wield weapons without harming yourself.")
-
traitor_mob.mutations.Remove(CLUMSY)
// find a radio! toolbox(es), backpack, belt, headset
@@ -309,7 +297,6 @@
if (!R)
to_chat(traitor_mob, "Unfortunately, the Syndicate wasn't able to get you a radio.")
-
. = 0
else
if (istype(R, /obj/item/device/radio))
@@ -330,7 +317,6 @@
T.uplink_owner = "[traitor_mob.key]"
target_radio.traitor_frequency = freq
to_chat(traitor_mob, "The Syndicate have cunningly disguised a Syndicate Uplink as your [R.name] [T.loc]. Simply dial the frequency [format_frequency(freq)] to unlock its hidden features.")
-
traitor_mob.mind.store_memory("Radio Freq: [format_frequency(freq)] ([R.name] [T.loc]).")
else if (istype(R, /obj/item/device/pda))
// generate a passcode if the uplink is hidden in a PDA
@@ -343,7 +329,6 @@
P.lock_code = pda_pass
to_chat(traitor_mob, "The Syndicate have cunningly disguised a Syndicate Uplink as your [R.name] [T.loc]. Simply enter the code \"[pda_pass]\" into the ringtone select to unlock its hidden features.")
-
traitor_mob.mind.store_memory("Uplink Passcode: [pda_pass] ([R.name] [T.loc]).")
if(!safety)//If they are not a rev. Can be added on to.
give_codewords(traitor_mob)
@@ -352,7 +337,6 @@
var/mob/living/carbon/human/M = get_nt_opposed()
if(M && M != traitor_mob)
to_chat(traitor_mob, "We have received credible reports that [M.real_name] might be willing to help our cause. If you need assistance, consider contacting them.")
-
traitor_mob.mind.store_memory("Potential Collaborator: [M.real_name]")
/datum/game_mode/proc/update_traitor_icons_added(datum/mind/traitor_mind)
@@ -383,10 +367,8 @@
update_traitor_icons_removed(traitor_mind)
// to_chat(world, "Removed [traitor_mind.current.name] from traitor shit")
-
to_chat(traitor_mind.current, "\red The fog clouding your mind clears. You remember nothing from the moment you were implanted until now.(You don't remember who implanted you)")
-
/datum/game_mode/proc/assign_exchange_role(var/datum/mind/owner)
//set faction
var/faction = "red"
@@ -427,5 +409,4 @@
if (equipped_slot)
where = "In your [equipped_slot]"
to_chat(mob, "
[where] is a folder containing secret documents that another Syndicate group wants. We have set up a meeting with one of their agents on station to make an exchange. Exercise extreme caution as they cannot be trusted and may be hostile.
")
-
mob.update_icons()
diff --git a/code/game/gamemodes/vampire/vampire.dm b/code/game/gamemodes/vampire/vampire.dm
index a0bdfe7fbdf..1abed5ba4dd 100644
--- a/code/game/gamemodes/vampire/vampire.dm
+++ b/code/game/gamemodes/vampire/vampire.dm
@@ -39,10 +39,8 @@
/datum/game_mode/vampire/announce()
to_chat(world, "The current game mode is - Vampires!")
-
to_chat(world, "There are Vampires from Space Transylvania on the station, keep your blood close and neck safe!")
-
/datum/game_mode/vampire/pre_setup()
if(config.protect_roles_from_antagonist)
@@ -119,7 +117,6 @@
text += "
The [special_role_text] has failed!"
feedback_add_details("traitor_success","FAIL")
to_chat(world, text)
-
return 1
/datum/game_mode/proc/auto_declare_completion_enthralled()
@@ -138,7 +135,6 @@
text += "body destroyed"
text += ")"
to_chat(world, text)
-
return 1
/datum/game_mode/proc/forge_vampire_objectives(var/datum/mind/vampire)
@@ -185,20 +181,16 @@
dat += {"To bite someone, target the head and use harm intent with an empty hand. Drink blood to gain new powers.
You are weak to holy things and starlight. Don't go into space and avoid the Chaplain, the chapel and especially Holy Water."}
to_chat(vampire.current, dat)
-
to_chat(vampire.current, "You must complete the following tasks:")
-
if (vampire.current.mind)
if (vampire.current.mind.assigned_role == "Clown")
to_chat(vampire.current, "Your lust for blood has allowed you to overcome your clumsy nature allowing you to wield weapons without harming yourself.")
-
vampire.current.mutations.Remove(CLUMSY)
var/obj_count = 1
for(var/datum/objective/objective in vampire.objectives)
to_chat(vampire.current, "Objective #[obj_count]: [objective.explanation_text]")
-
obj_count++
return
@@ -289,13 +281,11 @@ You are weak to holy things and starlight. Don't go into space and avoid the Cha
while(do_mob(owner, H, 50))
if(!(owner.mind in ticker.mode.vampires))
to_chat(owner, "Your fangs have disappeared!")
-
return
old_bloodtotal = bloodtotal
old_bloodusable = bloodusable
if(!H.vessel.get_reagent_amount("blood"))
to_chat(src, "They've got no blood left to give.")
-
break
if(H.stat < DEAD)
blood = min(20, H.vessel.get_reagent_amount("blood")) // if they have less than 20 blood, give them the remnant else they get 20 blood
@@ -306,7 +296,6 @@ You are weak to holy things and starlight. Don't go into space and avoid the Cha
bloodtotal += blood
if(old_bloodtotal != bloodtotal)
to_chat(owner, "You have accumulated [bloodtotal] [bloodtotal > 1 ? "units" : "unit"] of blood[bloodusable != old_bloodusable ? ", and have [bloodusable] left to use" : ""].")
-
check_vampire_upgrade()
H.vessel.remove_reagent("blood", 25)
if(ishuman(owner))
@@ -316,7 +305,6 @@ You are weak to holy things and starlight. Don't go into space and avoid the Cha
draining = null
to_chat(owner, "You stop draining [H.name] of blood.")
-
/datum/vampire/proc/check_vampire_upgrade(announce = 1)
var/list/old_powers = powers.Copy()
@@ -334,12 +322,10 @@ You are weak to holy things and starlight. Don't go into space and avoid the Cha
if(istype(p, /obj/effect/proc_holder/spell/vampire))
var/obj/effect/proc_holder/spell/vampire/power = p
to_chat(owner, "[power.gain_desc]")
-
else if(istype(p, /datum/vampire_passive))
var/datum/vampire_passive/power = p
to_chat(owner, "[power.gain_desc]")
-
//prepare for copypaste
/datum/game_mode/proc/update_vampire_icons_added(datum/mind/vampire_mind)
var/datum/atom_hud/antag/vamp_hud = huds[ANTAG_HUD_VAMPIRE]
@@ -366,10 +352,8 @@ You are weak to holy things and starlight. Don't go into space and avoid the Cha
slaved.leave_serv_hud(vampire_mind)
update_vampire_icons_removed(vampire_mind)
// to_chat(world, "Removed [vampire_mind.current.name] from vampire shit")
-
to_chat(vampire_mind.current, "\red The fog clouding your mind clears. You remember nothing from the moment you were enthralled until now.")
-
/datum/vampire/proc/check_sun()
var/ax = owner.x
var/ay = owner.y
@@ -429,17 +413,13 @@ You are weak to holy things and starlight. Don't go into space and avoid the Cha
switch(owner.health)
if(80 to 100)
to_chat(owner, "Your skin flakes away...")
-
if(60 to 80)
to_chat(owner, "Your skin sizzles!")
-
if((-INFINITY) to 60)
if(!owner.on_fire)
to_chat(owner, "Your skin catches fire!")
-
else
to_chat(owner, "You continue to burn!")
-
owner.fire_stacks += 5
owner.IgniteMob()
owner.emote("scream")
diff --git a/code/game/gamemodes/vampire/vampire_powers.dm b/code/game/gamemodes/vampire/vampire_powers.dm
index 48fd3034cbe..a7e470ef056 100644
--- a/code/game/gamemodes/vampire/vampire_powers.dm
+++ b/code/game/gamemodes/vampire/vampire_powers.dm
@@ -20,7 +20,6 @@
return 0
if(!ishuman(user))
to_chat(user, "You are in too weak of a form to do this!")
-
return 0
var/datum/vampire/vampire = user.mind.vampire
@@ -32,21 +31,17 @@
if(user.stat >= DEAD)
to_chat(user, "Not when you're dead!")
-
return 0
if(vampire.nullified && !fullpower)
to_chat(user, "Something is blocking your powers!")
-
return 0
if(vampire.bloodusable < required_blood)
to_chat(user, "You require at least [required_blood] units of usable blood to do that!")
-
return 0
//chapel check
if(istype(loc.loc, /area/chapel) && !fullpower)
to_chat(user, "Your powers are useless on this holy ground.")
-
return 0
return ..()
@@ -112,7 +107,6 @@
if(targets.len)
to_chat(usr, "You have [vampire.bloodusable] left to use.")
-
/obj/effect/proc_holder/spell/vampire/targetted/choose_targets(mob/user = usr)
var/list/possible_targets[0]
for(var/mob/living/carbon/C in oview_or_orange(range, user, selection_type))
@@ -164,7 +158,6 @@
usr.SetParalysis(0)
U.adjustStaminaLoss(-75)
to_chat(usr, "You flush your system with clean blood and remove any incapacitating effects.")
-
spawn(1)
if(usr.mind.vampire.get_ability(/datum/vampire_passive/regen))
for(var/i = 1 to 5)
@@ -186,14 +179,10 @@
if(do_mob(usr, target, 50))
if(!affects(target))
to_chat(usr, "Your piercing gaze fails to knock out [target].")
-
to_chat(target, "\blue [usr]'s feeble gaze is ineffective.")
-
else
to_chat(usr, "Your piercing gaze knocks out [target].")
-
to_chat(target, "You find yourself unable to move and barely able to speak.")
-
target.Weaken(10)
target.Stun(10)
target.stuttering = 10
@@ -201,7 +190,6 @@
revert_cast(usr)
to_chat(usr, "You broke your gaze.")
-
/obj/effect/proc_holder/spell/vampire/targetted/disease
name = "Diseased Touch (100)"
desc = "Touches your victim with infected blood giving them appendicitis, which will, left untreated, cause a slow death by poison."
@@ -212,11 +200,9 @@
/obj/effect/proc_holder/spell/vampire/targetted/disease/cast(list/targets)
for(var/mob/living/carbon/target in targets)
to_chat(usr, "You stealthily infect [target] with your diseased touch.")
-
target.help_shake_act(usr)
if(!affects(target))
to_chat(usr, "They seem to be unaffected.")
-
continue
var/datum/disease/D = new /datum/disease/appendicitis //someone should probably make a better virus for this
target.ForceContractDisease(D)
@@ -232,7 +218,6 @@
usr.visible_message("[usr]'s eyes emit a blinding flash!")
if(istype(usr:glasses, /obj/item/clothing/glasses/sunglasses/blindfold))
to_chat(usr, "You're blindfolded!")
-
return
for(var/mob/living/target in targets)
if(!affects(target))
@@ -242,7 +227,6 @@
target.stuttering = 20
to_chat(target, "You are blinded by [usr]'s glare.")
-
/obj/effect/proc_holder/spell/vampire/self/shapeshift
name = "Shapeshift (50)"
desc = "Changes your name and appearance at the cost of 50 blood and has a cooldown of 3 minutes."
@@ -274,7 +258,6 @@
if(!affects(C))
continue
to_chat(C, "You hear a ear piercing shriek and your senses dull!")
-
C.Weaken(4)
C.ear_deaf = 20
C.stuttering = 20
@@ -295,10 +278,8 @@
for(var/mob/living/target in targets)
usr.visible_message("[usr] bites [target]'s neck!", "You bite [target]'s neck and begin the flow of power.")
to_chat(target, "You feel the tendrils of evil invade your mind.")
-
if(!ishuman(target))
to_chat(usr, "You can only enthrall humans.")
-
break
if(do_mob(usr, target, 50))
if(can_enthrall(usr, target))
@@ -307,7 +288,6 @@
revert_cast(usr)
to_chat(usr, "You or your target either moved or you dont have enough usable blood.")
-
/obj/effect/proc_holder/spell/vampire/targetted/enthrall/proc/can_enthrall(mob/living/user, mob/living/carbon/C)
var/enthrall_safe = 0
for(var/obj/item/weapon/implant/loyalty/L in C)
@@ -323,7 +303,6 @@
return 0
if(!C.mind)
to_chat(user, "[C.name]'s mind is not there for you to enthrall.")
-
return 0
if(enthrall_safe || ( C.mind in ticker.mode.vampires )||( C.mind.vampire )||( C.mind in ticker.mode.vampire_enthralled ))
C.visible_message("[C] seems to resist the takeover!", "You feel a familiar sensation in your skull that quickly dissipates.")
@@ -332,7 +311,6 @@
C.visible_message("[C] seems to resist the takeover!", "Your faith of [ticker.Bible_deity_name] has kept your mind clear of all evil.")
if(!ishuman(C))
to_chat(user, "You can only enthrall humans!")
-
return 0
return 1
@@ -357,9 +335,7 @@
ticker.mode.vampire_enthralled[H.mind] = user.mind
H.mind.special_role = "VampThrall"
to_chat(H, "You have been Enthralled by [user]. Follow their every command.")
-
to_chat(src, "You have successfully Enthralled [H]. If they refuse to do as you say just adminhelp.")
-
log_admin("[ckey(user.key)] has mind-slaved [ckey(H.key)].")
/obj/effect/proc_holder/spell/vampire/self/cloak
@@ -385,7 +361,6 @@
update_name()
to_chat(usr, "You will now be [V.iscloaking ? "hidden" : "seen"] in darkness.")
-
/obj/effect/proc_holder/spell/vampire/bats
name = "Summon Bats (75)"
desc = "You summon a pair of space bats who attack nearby targets until they or their target is dead."
@@ -451,7 +426,6 @@
var/mobloc = get_turf(usr.loc)
if(get_area(mobloc) == /area/security/armoury/gamma)
to_chat(usr, "A strange energy repels you!")
-
mobloc = originalloc
animation.loc = mobloc
steam.location = mobloc
@@ -512,7 +486,6 @@
if(!turfs.len)
revert_cast(user)
to_chat(user, "\red You cannot find darkness to step to.")
-
return
perform(turfs)
diff --git a/code/game/gamemodes/wizard/artefact.dm b/code/game/gamemodes/wizard/artefact.dm
index 1affe3be3e7..ae6a9a30867 100644
--- a/code/game/gamemodes/wizard/artefact.dm
+++ b/code/game/gamemodes/wizard/artefact.dm
@@ -48,7 +48,6 @@
if(href_list["school"])
if (used)
to_chat(H, "You already used this contract!")
-
return
used = 1
var/list/candidates = pollCandidates("Do you want to play as the wizard apprentice of [H.real_name]?", ROLE_WIZARD, 1)
@@ -58,30 +57,25 @@
var/mob/living/carbon/human/M = new/mob/living/carbon/human(H.loc)
M.key = C.key
to_chat(M, "You are the [H.real_name]'s apprentice! You are bound by magic contract to follow their orders and help them in accomplishing their goals.")
-
switch(href_list["school"])
if("destruction")
M.mind.AddSpell(new /obj/effect/proc_holder/spell/targeted/projectile/magic_missile(M))
M.mind.AddSpell(new /obj/effect/proc_holder/spell/dumbfire/fireball(M))
to_chat(M, "Your service has not gone unrewarded, however. Studying under [H.real_name], you have learned powerful, destructive spells. You are able to cast magic missile and fireball.")
-
if("bluespace")
M.mind.AddSpell(new /obj/effect/proc_holder/spell/targeted/area_teleport/teleport(M))
M.mind.AddSpell(new /obj/effect/proc_holder/spell/targeted/ethereal_jaunt(M))
to_chat(M, "Your service has not gone unrewarded, however. Studying under [H.real_name], you have learned reality bending mobility spells. You are able to cast teleport and ethereal jaunt.")
-
if("healing")
M.mind.AddSpell(new /obj/effect/proc_holder/spell/targeted/charge(M))
M.mind.AddSpell(new /obj/effect/proc_holder/spell/aoe_turf/conjure/forcewall(M))
M.equip_to_slot_or_del(new /obj/item/weapon/gun/magic/staff/healing(M), slot_r_hand)
to_chat(M, "Your service has not gone unrewarded, however. Studying under [H.real_name], you have learned livesaving survival spells. You are able to cast charge and forcewall.")
-
if("robeless")
M.mind.AddSpell(new /obj/effect/proc_holder/spell/aoe_turf/knock(M))
M.mind.AddSpell(new /obj/effect/proc_holder/spell/targeted/mind_transfer(M))
to_chat(M, "Your service has not gone unrewarded, however. Studying under [H.real_name], you have learned stealthy, robeless spells. You are able to cast knock and mindswap.")
-
M.equip_to_slot_or_del(new /obj/item/device/radio/headset(M), slot_l_ear)
M.equip_to_slot_or_del(new /obj/item/clothing/under/color/lightpurple(M), slot_w_uniform)
M.equip_to_slot_or_del(new /obj/item/clothing/shoes/sandal(M), slot_shoes)
@@ -112,7 +106,6 @@
else
used = 0
to_chat(H, "Unable to reach your apprentice! You can either attack the spellbook with the contract to refund your points, or wait and try again later.")
-
return
@@ -143,7 +136,6 @@
to_chat(user, "The unearthly energies that powered the blade are now dormant.")
-
/obj/effect/rend
name = "tear in the fabric of reality"
desc = "You should run now."
@@ -221,7 +213,6 @@
/obj/item/weapon/scrying/attack_self(mob/user as mob)
to_chat(user, " You can see...everything!")
-
visible_message("[user] stares into [src], their eyes glazing over.")
user.ghostize(1)
@@ -264,14 +255,12 @@ var/global/list/multiverse = list()
/obj/item/weapon/multisword/attack(mob/living/M as mob, mob/living/user as mob) //to prevent accidental friendly fire or out and out grief.
if(M.real_name == user.real_name)
to_chat(user, "The [src] detects benevolent energies in your target and redirects your attack!")
-
return
..()
/obj/item/weapon/multisword/attack_self(mob/user)
if(user.mind.special_role == "apprentice")
to_chat(user, "You know better than to touch your teacher's stuff.")
-
return
if(cooldown < world.time)
var/faction_check = 0
@@ -284,28 +273,23 @@ var/global/list/multiverse = list()
assigned = "[user.real_name]"
user.faction = list("[user.real_name]")
to_chat(user, "You bind the sword to yourself. You can now use it to summon help.")
-
if(!usr.mind.special_role)
if(prob(probability_evil))
to_chat(user, "With your new found power you could easily conquer the station!")
-
var/datum/objective/hijackclone/hijack_objective = new /datum/objective/hijackclone
hijack_objective.owner = usr.mind
usr.mind.objectives += hijack_objective
hijack_objective.explanation_text = "Ensure only [usr.real_name] and their copies are on the shuttle!"
to_chat(usr, "Objective #[1]: [hijack_objective.explanation_text]")
-
ticker.mode.traitors += usr.mind
usr.mind.special_role = "[usr.real_name] Prime"
evil = TRUE
else
to_chat(user, "With your new found power you could easily defend the station!")
-
var/datum/objective/survive/new_objective = new /datum/objective/survive
new_objective.owner = usr.mind
new_objective.explanation_text = "Survive, and help defend the innocent from the mobs of multiverse clones."
to_chat(usr, "Objective #[1]: [new_objective.explanation_text]")
-
usr.mind.objectives += new_objective
ticker.mode.traitors += usr.mind
usr.mind.special_role = "[usr.real_name] Prime"
@@ -322,15 +306,12 @@ var/global/list/multiverse = list()
spawn_copy(C.client, get_turf(user.loc), user)
to_chat(user, "The sword flashes, and you find yourself face to face with...you!")
-
else
to_chat(user, "You fail to summon any copies of yourself. Perhaps you should try again in a bit.")
-
else
to_chat(user, "[src] is recharging! Keep in mind it shares a cooldown with the swords wielded by your copies.")
-
/obj/item/weapon/multisword/proc/spawn_copy(var/client/C, var/turf/T, mob/user)
var/mob/living/carbon/human/M = new/mob/living/carbon/human(T)
if(duplicate_self)
@@ -340,7 +321,6 @@ var/global/list/multiverse = list()
M.key = C.key
M.mind.name = user.real_name
to_chat(M, "You are an alternate version of [user.real_name] from another universe! Help them accomplish their goals at all costs.")
-
M.faction = list("[user.real_name]")
if(duplicate_self)
M.set_species(user.get_species()) //duplicate the sword user's species.
@@ -366,7 +346,6 @@ var/global/list/multiverse = list()
M.mind.objectives += hijack_objective
hijack_objective.explanation_text = "Ensure only [usr.real_name] and their copies are on the shuttle!"
to_chat(M, "Objective #[1]: [hijack_objective.explanation_text]")
-
M.mind.special_role = "multiverse traveller"
log_game("[M.key] was made a multiverse traveller with the objective to help [usr.real_name] hijack.")
else
@@ -376,7 +355,6 @@ var/global/list/multiverse = list()
new_objective.explanation_text = "Protect [usr.real_name], your copy, and help them defend the innocent from the mobs of multiverse clones."
M.mind.objectives += new_objective
to_chat(M, "Objective #[1]: [new_objective.explanation_text]")
-
M.mind.special_role = "multiverse traveller"
log_game("[M.key] was made a multiverse traveller with the objective to help [usr.real_name] protect the station.")
@@ -652,19 +630,16 @@ var/global/list/multiverse = list()
if(M.stat != DEAD)
to_chat(user, "This artifact can only affect the dead!")
-
return
if(!M.mind || !M.client)
to_chat(user, "There is no soul connected to this body...")
-
return
check_spooky()//clean out/refresh the list
if(spooky_scaries.len >= 3 && !unlimited)
to_chat(user, "This artifact can only affect three undead at a time!")
-
return
if(heresy)
spawnheresy(M)//oh god why
@@ -675,9 +650,7 @@ var/global/list/multiverse = list()
equip_skeleton(M)
spooky_scaries |= M
to_chat(M, "You have been revived by [user.real_name]!")
-
to_chat(M, "They are your master now, assist them even if it costs you your new life!")
-
desc = "A shard capable of resurrecting humans as skeleton thralls[unlimited ? "." : ", [spooky_scaries.len]/3 active thralls."]"
/obj/item/device/necromantic_stone/proc/check_spooky()
@@ -801,19 +774,15 @@ var/global/list/multiverse = list()
if(target && cooldown < world.time)
if(is_hot(I))
to_chat(target, "You suddenly feel very hot")
-
target.bodytemperature += 50
GiveHint(target)
else if(can_puncture(I))
to_chat(target, "You feel a stabbing pain in [parse_zone(user.zone_sel.selecting)]!")
-
target.Weaken(2)
GiveHint(target)
else if(istype(I,/obj/item/weapon/bikehorn))
to_chat(target, "HONK")
-
to_chat(target, 'sound/items/AirHorn.ogg')
-
target.ear_damage += rand(0,3)
GiveHint(target)
cooldown = world.time +cooldown_time
@@ -824,7 +793,6 @@ var/global/list/multiverse = list()
I.loc = src
link = I
to_chat(user, "You attach [I] to the doll.")
-
update_targets()
..()
/obj/item/voodoo/check_eye(mob/user as mob)
@@ -839,7 +807,6 @@ var/global/list/multiverse = list()
target = null
link.loc = get_turf(src)
to_chat(user, "You remove the [link] from the doll.")
-
link = null
update_targets()
return
@@ -859,7 +826,6 @@ var/global/list/multiverse = list()
user.unset_machine()
if("r_leg","l_leg")
to_chat(user, "You move the doll's legs around.")
-
var/turf/T = get_step(target,pick(cardinal))
target.Move(T)
if("r_arm","l_arm")
@@ -875,10 +841,8 @@ var/global/list/multiverse = list()
GiveHint(target)
if("head")
to_chat(user, "You smack the doll's head with your hand.")
-
target.Dizzy(10)
to_chat(target, "You suddenly feel as if your head was hit with a hammer!")
-
GiveHint(target,user)
cooldown = world.time + cooldown_time
@@ -894,12 +858,10 @@ var/global/list/multiverse = list()
if(prob(50) || force)
var/way = dir2text(get_dir(victim,get_turf(src)))
to_chat(victim, "You feel a dark presence from [way]")
-
if(prob(20) || force)
var/area/A = get_area(src)
to_chat(victim, "You feel a dark presence from [A.name]")
-
/obj/item/voodoo/fire_act()
if(target)
target.adjust_fire_stacks(20)
diff --git a/code/game/gamemodes/wizard/godhand.dm b/code/game/gamemodes/wizard/godhand.dm
index b098b6bc84d..8a5ba06f36f 100644
--- a/code/game/gamemodes/wizard/godhand.dm
+++ b/code/game/gamemodes/wizard/godhand.dm
@@ -23,7 +23,6 @@
return
if(user.lying || user.handcuffed)
to_chat(user, "You can't reach out!")
-
return
..()
@@ -64,7 +63,6 @@
return
if(user.lying || user.handcuffed)
to_chat(user, "You can't reach out!")
-
return
var/mob/M = target
M.Stun(2)
diff --git a/code/game/gamemodes/wizard/raginmages.dm b/code/game/gamemodes/wizard/raginmages.dm
index c1f8675ecc2..cef7b507f82 100644
--- a/code/game/gamemodes/wizard/raginmages.dm
+++ b/code/game/gamemodes/wizard/raginmages.dm
@@ -15,25 +15,19 @@
/datum/game_mode/wizard/raginmages/announce()
to_chat(world, "The current game mode is - Ragin' Mages!")
-
to_chat(world, "The \red Space Wizard Federation\black is pissed, help defeat all the space wizards!")
-
/datum/game_mode/wizard/raginmages/greet_wizard(var/datum/mind/wizard, var/you_are=1)
if (you_are)
to_chat(wizard.current, "\red You are the Space Wizard!")
-
to_chat(wizard.current, "The Space Wizards Federation has given you the following tasks:")
-
var/obj_count = 1
for(var/datum/objective/objective in wizard.objectives)
to_chat(wizard.current, "Objective #[obj_count]: [objective.explanation_text]")
-
obj_count++
to_chat(wizard.current, "Objective Alpha: Make sure the station pays for its actions against our diplomats")
-
return
/datum/game_mode/wizard/raginmages/check_finished()
@@ -46,21 +40,18 @@
if(!istype(wizard.current,/mob/living/carbon))
if(istype(get_area(wizard.current), /area/wizard_station)) // We don't want people camping other wizards
to_chat(wizard.current, "If there aren't any admins on and another wizard is camping you in the wizard lair, report them on the forums")
-
message_admins("[wizard.current] was transformed in the wizard lair, another wizard is likely camping")
end_squabble(get_area(wizard.current))
continue
if(istype(wizard.current,/mob/living/carbon/brain))
if(istype(get_area(wizard.current), /area/wizard_station)) // We don't want people camping other wizards
to_chat(wizard.current, "If there aren't any admins on and another wizard is camping you in the wizard lair, report them on the forums")
-
message_admins("[wizard.current] was brainified in the wizard lair, another wizard is likely camping")
end_squabble(get_area(wizard.current))
continue
if(wizard.current.stat==DEAD)
if(istype(get_area(wizard.current), /area/wizard_station)) // We don't want people camping other wizards
to_chat(wizard.current, "If there aren't any admins on and another wizard is camping you in the wizard lair, report them on the forums")
-
message_admins("[wizard.current] died in the wizard lair, another wizard is likely camping")
end_squabble(get_area(wizard.current))
continue
@@ -68,17 +59,14 @@
if(wizard.current.health < 0)
if(istype(get_area(wizard.current), /area/wizard_station))
to_chat(wizard.current, "If there aren't any admins on and another wizard is camping you in the wizard lair, report them on the forums")
-
message_admins("[wizard.current] went into crit in the wizard lair, another wizard is likely camping")
end_squabble(get_area(wizard.current))
else
to_chat(wizard.current, "\red The Space Wizard Federation is upset with your performance and have terminated your employment.")
-
wizard.current.gib() // *REAL* ACTION!! *REAL* DRAMA!! *REAL* BLOODSHED!!
continue
if(wizard.current.client && wizard.current.client.is_afk() > 10 * 60 * 10) // 10 minutes
to_chat(wizard.current, "\red The Space Wizard Federation is upset with your performance and have terminated your employment.")
-
wizard.current.gib() // Let's keep the round moving
continue
if(!wizard.current.client)
@@ -113,7 +101,6 @@
for(var/mob/living/L in marked_for_death)
if(L.stat == CONSCIOUS) // Probably a troublemaker - I'd like to see YOU fight when unconscious
to_chat(L, "STOP FIGHTING.")
-
L.ghostize()
if(istype(L, /mob/living/carbon/brain))
// diediedie
@@ -198,5 +185,4 @@
if(finished)
feedback_set_details("round_end_result","loss - wizard killed")
to_chat(world, "\red The crew has managed to hold off the wizard attack! The Space Wizards Federation has been taught a lesson they will not soon forget!")
-
..(1)
diff --git a/code/game/gamemodes/wizard/rightandwrong.dm b/code/game/gamemodes/wizard/rightandwrong.dm
index 14cdf7e94cc..eb1e8bce930 100644
--- a/code/game/gamemodes/wizard/rightandwrong.dm
+++ b/code/game/gamemodes/wizard/rightandwrong.dm
@@ -6,7 +6,6 @@
var/list/magicspeciallist = list("staffchange","staffanimation", "wandbelt", "contract", "staffchaos","necromantic")
to_chat(usr, "You summoned [summon_type ? "magic" : "guns"]!")
-
message_admins("[key_name_admin(usr)] summoned [summon_type ? "magic" : "guns"]!")
for(var/mob/living/carbon/human/H in player_list)
@@ -138,7 +137,6 @@
H.see_in_dark = 8
H.see_invisible = SEE_INVISIBLE_LEVEL_TWO
to_chat(H, "The walls suddenly disappear.")
-
if("voodoo")
new /obj/item/voodoo(get_turf(H))
if("special")
@@ -157,4 +155,3 @@
if("necromantic")
new /obj/item/device/necromantic_stone(get_turf(H))
to_chat(H, "You suddenly feel lucky.")
-
diff --git a/code/game/gamemodes/wizard/soulstone.dm b/code/game/gamemodes/wizard/soulstone.dm
index 9ab912a5ce5..08e6117e9bd 100644
--- a/code/game/gamemodes/wizard/soulstone.dm
+++ b/code/game/gamemodes/wizard/soulstone.dm
@@ -20,12 +20,10 @@
if(M.has_brain_worms()) //Borer stuff - RR
to_chat(user, "This being is corrupted by an alien intelligence and cannot be soul trapped.")
-
return ..()
if(jobban_isbanned(M, "cultist") || jobban_isbanned(M, "Syndicate"))
to_chat(user, "A mysterious force prevents you from trapping this being's soul.")
-
return ..()
M.attack_log += text("\[[time_stamp()]\] Has had their soul captured with [src.name] by [key_name(user)]")
@@ -84,7 +82,6 @@
A.status_flags &= ~GODMODE
A.canmove = 1
to_chat(A, "You have been released from your prison, but you are still bound to [U.name]'s will. Help them suceed in their goals at all costs.")
-
A.loc = U.loc
A.cancel_camera()
src.icon_state = "soulstone"
@@ -112,19 +109,15 @@
var/obj/item/device/soulstone/C = src
if(C.imprinted != "empty")
to_chat(U, "\red Capture failed!: \black The soul stone has already been imprinted with [C.imprinted]'s mind!")
-
else
if (T.stat == 0)
to_chat(U, "\red Capture failed!: \black Kill or maim the victim first!")
-
else
if(T.client == null)
to_chat(U, "\red Capture failed!: \black The soul has already fled it's mortal frame.")
-
else
if(C.contents.len)
to_chat(U, "\red Capture failed!: \black The soul stone is full! Use or free an existing soul to make room.")
-
else
for(var/obj/item/W in T)
T.unEquip(W)
@@ -149,11 +142,8 @@
C.icon_state = "soulstone2"
C.name = "Soul Stone: [S.real_name]"
to_chat(S, "Your soul has been captured! You are now bound to [U.name]'s will, help them suceed in their goals at all costs.")
-
to_chat(U, "\blue Capture successful!: \black [T.real_name]'s soul has been ripped from their body and stored within the soul stone.")
-
to_chat(U, "The soulstone has been imprinted with [S.real_name]'s mind, it will no longer react to other souls.")
-
C.imprinted = "[S.name]"
qdel(T)
if("SHADE")
@@ -161,15 +151,12 @@
var/obj/item/device/soulstone/C = src
if (T.stat == DEAD)
to_chat(U, "\red Capture failed!: \black The shade has already been banished!")
-
else
if(C.contents.len)
to_chat(U, "\red Capture failed!: \black The soul stone is full! Use or free an existing soul to make room.")
-
else
if(T.name != C.imprinted)
to_chat(U, "\red Capture failed!: \black The soul stone has already been imprinted with [C.imprinted]'s mind!")
-
else
T.loc = C //put shade in stone
T.status_flags |= GODMODE
@@ -178,9 +165,7 @@
T.faction |= "\ref[U]"
C.icon_state = "soulstone2"
to_chat(T, "Your soul has been recaptured by the soul stone, its arcane energies are reknitting your ethereal form")
-
to_chat(U, "\blue Capture successful!: \black [T.name]'s has been recaptured and stored within the soul stone.")
-
if("CONSTRUCT")
var/obj/structure/constructshell/T = target
var/obj/item/device/soulstone/C = src
@@ -200,9 +185,7 @@
ticker.mode.update_cult_icons_added(Z.mind)
qdel(T)
to_chat(Z, "You are a Juggernaut. Though slow, your shell can withstand extreme punishment, create shield walls and even deflect energy weapons, and rip apart enemies and walls alike.")
-
to_chat(Z, "You are still bound to serve your creator, follow their orders and help them complete their goals at all costs.")
-
Z.cancel_camera()
qdel(C)
@@ -218,9 +201,7 @@
ticker.mode.update_cult_icons_added(Z.mind)
qdel(T)
to_chat(Z, "You are a Wraith. Though relatively fragile, you are fast, deadly, and even able to phase through walls.")
-
to_chat(Z, "You are still bound to serve your creator, follow their orders and help them complete their goals at all costs.")
-
Z.cancel_camera()
qdel(C)
@@ -236,14 +217,11 @@
ticker.mode.update_cult_icons_added(Z.mind)
qdel(T)
to_chat(Z, "You are an Artificer. You are incredibly weak and fragile, but you are able to construct fortifications, use magic missile, repair allied constructs (by clicking on them), and most important of all create new constructs (Use your Artificer spell to summon a new construct shell and Summon Soulstone to create a new soulstone).")
-
to_chat(Z, "You are still bound to serve your creator, follow their orders and help them complete their goals at all costs.")
-
Z.cancel_camera()
qdel(C)
else
to_chat(U, "\red Creation failed!: \black The soul stone is empty! Go kill someone!")
-
return
/proc/makeNewConstruct(var/mob/living/simple_animal/construct/ctype, var/mob/target, var/mob/stoner = null, cultoverride = 0)
@@ -260,11 +238,8 @@
ticker.mode.update_cult_icons_added(newstruct.mind)
if(stoner && iswizard(stoner))
to_chat(newstruct, "You are still bound to serve your creator, follow their orders and help them complete their goals at all costs.")
-
else if(stoner && iscultist(stoner))
to_chat(newstruct, "You are still bound to serve the cult, follow their orders and help them complete their goals at all costs.")
-
else
to_chat(newstruct, "You are still bound to serve your creator, follow their orders and help them complete their goals at all costs.")
-
newstruct.cancel_camera()
\ No newline at end of file
diff --git a/code/game/gamemodes/wizard/spellbook.dm b/code/game/gamemodes/wizard/spellbook.dm
index e206e670527..8467da489a5 100644
--- a/code/game/gamemodes/wizard/spellbook.dm
+++ b/code/game/gamemodes/wizard/spellbook.dm
@@ -27,7 +27,6 @@
if(initial(S.name) == initial(aspell.name)) // Not using directly in case it was learned from one spellbook then upgraded in another
if(aspell.spell_level >= aspell.level_max)
to_chat(user, "This spell cannot be improved further.")
-
return 0
else
aspell.name = initial(aspell.name)
@@ -38,29 +37,23 @@
switch(aspell.spell_level)
if(1)
to_chat(user, "You have improved [aspell.name] into Efficient [aspell.name].")
-
aspell.name = "Efficient [aspell.name]"
if(2)
to_chat(user, "You have further improved [aspell.name] into Quickened [aspell.name].")
-
aspell.name = "Quickened [aspell.name]"
if(3)
to_chat(user, "You have further improved [aspell.name] into Free [aspell.name].")
-
aspell.name = "Free [aspell.name]"
if(4)
to_chat(user, "You have further improved [aspell.name] into Instant [aspell.name].")
-
aspell.name = "Instant [aspell.name]"
if(aspell.spell_level >= aspell.level_max)
to_chat(user, "This spell cannot be strengthened any further.")
-
return 1
//No same spell found - just learn it
feedback_add_details("wizard_spell_learned",log_name)
user.mind.AddSpell(S)
to_chat(user, "You have learned [S.name].")
-
return 1
/datum/spellbook_entry/proc/CanRefund(var/mob/living/carbon/human/user,var/obj/item/weapon/spellbook/book)
@@ -77,7 +70,6 @@
var/area/wizard_station/A = locate()
if(!(user in A.contents))
to_chat(user, "You can only refund spells at the wizard lair")
-
return -1
if(!S)
S = new spell_type()
@@ -312,7 +304,6 @@
user.see_in_dark = 8
user.see_invisible = SEE_INVISIBLE_LEVEL_TWO
to_chat(user, "\blue The walls suddenly disappear.")
-
return 1
@@ -435,7 +426,6 @@
book.uses += 1
active = 1
to_chat(user, "You have cast summon guns and gained an extra charge for your spellbook.")
-
return 1
/datum/spellbook_entry/summon/magic
@@ -459,7 +449,6 @@
book.uses += 1
active = 1
to_chat(user, "You have cast summon magic and gained an extra charge for your spellbook.")
-
return 1
/obj/item/weapon/spellbook
@@ -498,11 +487,9 @@
var/obj/item/weapon/contract/contract = O
if(contract.used)
to_chat(user, "The contract has been used, you can't get your points back now!")
-
else
to_chat(user, "You feed the contract back into the spellbook, refunding your points.")
-
uses++
qdel(O)
@@ -510,7 +497,6 @@
if(istype(O, /obj/item/weapon/antag_spawner/slaughter_demon))
to_chat(user, "On second thought, maybe summoning a demon is a bad idea. You refund your points.")
-
uses++
for(var/datum/spellbook_entry/item/bloodbottle/BB in entries)
if(!isnull(BB.limit))
@@ -570,12 +556,10 @@
/obj/item/weapon/spellbook/attack_self(mob/user as mob)
if(!owner)
to_chat(user, "You bind the spellbook to yourself.")
-
owner = user
return
if(user != owner)
to_chat(user, "The [name] does not recognize you as it's owner and refuses to open!")
-
return
user.set_machine(src)
var/dat = ""
@@ -673,17 +657,14 @@
if(user.mind)
if(user.mind.special_role == "apprentice" || user.mind.special_role == "Wizard")
to_chat(user, "You're already far more versed in this spell than this flimsy how-to book can provide.")
-
else
to_chat(user, "You've already read this one.")
-
return
if(used)
recoil(user)
else
user.mind.AddSpell(S)
to_chat(user, "you rapidly read through the arcane book. Suddenly you realize you understand [spellname]!")
-
user.attack_log += text("\[[time_stamp()]\] [user.real_name] ([user.ckey]) learned the spell [spellname] ([S]).")
onlearned(user)
@@ -718,7 +699,6 @@
/obj/item/weapon/spellbook/oneuse/smoke/recoil(mob/user as mob)
..()
to_chat(user, "Your stomach rumbles...")
-
if(user.nutrition)
user.nutrition -= 200
if(user.nutrition <= 0)
@@ -733,7 +713,6 @@
/obj/item/weapon/spellbook/oneuse/blind/recoil(mob/user as mob)
..()
to_chat(user, "You go blind!")
-
user.eye_blind = 10
/obj/item/weapon/spellbook/oneuse/mindswap
@@ -756,11 +735,9 @@
if(!stored_swap)
stored_swap = user
to_chat(user, "For a moment you feel like you don't even know who you are anymore.")
-
return
if(stored_swap == user)
to_chat(user, "You stare at the book some more, but there doesn't seem to be anything else to learn...")
-
return
if(user.mind.special_verbs.len)
@@ -790,9 +767,7 @@
user.verbs += V
to_chat(stored_swap, "You're suddenly somewhere else... and someone else?!")
-
to_chat(user, "Suddenly you're staring at [src] again... where are you, who are you?!")
-
stored_swap = null
/obj/item/weapon/spellbook/oneuse/forcewall
@@ -804,7 +779,6 @@
/obj/item/weapon/spellbook/oneuse/forcewall/recoil(mob/user as mob)
..()
to_chat(user, "You suddenly feel very solid!")
-
var/obj/structure/closet/statue/S = new /obj/structure/closet/statue(user.loc, user)
S.timer = 30
user.drop_item()
@@ -819,7 +793,6 @@
/obj/item/weapon/spellbook/oneuse/knock/recoil(mob/user as mob)
..()
to_chat(user, "You're knocked down!")
-
user.Weaken(20)
/obj/item/weapon/spellbook/oneuse/horsemask
@@ -831,7 +804,6 @@
/obj/item/weapon/spellbook/oneuse/horsemask/recoil(mob/living/carbon/user as mob)
if(istype(user, /mob/living/carbon/human))
to_chat(user, "HOR-SIE HAS RISEN")
-
var/obj/item/clothing/mask/horsehead/magichead = new /obj/item/clothing/mask/horsehead
magichead.flags |= NODROP //curses!
magichead.flags_inv = null //so you can still see their face
@@ -843,7 +815,6 @@
else
to_chat(user, "I say thee neigh")
-
/obj/item/weapon/spellbook/oneuse/charge
spell = /obj/effect/proc_holder/spell/targeted/charge
spellname = "charging"
@@ -853,7 +824,6 @@
/obj/item/weapon/spellbook/oneuse/charge/recoil(mob/user as mob)
..()
to_chat(user, "[src] suddenly feels very warm!")
-
empulse(src, 1, 1)
/obj/item/weapon/spellbook/oneuse/summonitem
@@ -865,7 +835,6 @@
/obj/item/weapon/spellbook/oneuse/summonitem/recoil(mob/user as mob)
..()
to_chat(user, "[src] suddenly vanishes!")
-
qdel(src)
diff --git a/code/game/gamemodes/wizard/wizard.dm b/code/game/gamemodes/wizard/wizard.dm
index e3a5aadc676..1910e8ffa85 100644
--- a/code/game/gamemodes/wizard/wizard.dm
+++ b/code/game/gamemodes/wizard/wizard.dm
@@ -18,11 +18,9 @@
/datum/game_mode/wizard/announce()
to_chat(world, "The current game mode is - Wizard!")
-
to_chat(world, "There is a \red SPACE WIZARD\black on the station. You can't let him achieve his objective!")
-
/datum/game_mode/wizard/can_start()//This could be better, will likely have to recode it later
if(!..())
return 0
@@ -38,7 +36,6 @@
wizard.original = wizard.current
if(wizardstart.len == 0)
to_chat(wizard.current, "\red A starting location for you could not be found, please report this bug!")
-
return 0
return 1
@@ -151,14 +148,11 @@
/datum/game_mode/proc/greet_wizard(var/datum/mind/wizard, var/you_are=1)
if (you_are)
to_chat(wizard.current, "\red You are the Space Wizard!")
-
to_chat(wizard.current, "The Space Wizards Federation has given you the following tasks:")
-
var/obj_count = 1
for(var/datum/objective/objective in wizard.objectives)
to_chat(wizard.current, "Objective #[obj_count]: [objective.explanation_text]")
-
obj_count++
return
@@ -202,9 +196,7 @@
wizard_mob.species.equip(wizard_mob)
to_chat(wizard_mob, "You will find a list of available spells in your spell book. Choose your magic arsenal carefully.")
-
to_chat(wizard_mob, "In your pockets you will find a teleport scroll. Use it as needed.")
-
wizard_mob.mind.store_memory("Remember: do not forget to prepare your spells.")
wizard_mob.update_icons()
return 1
@@ -240,7 +232,6 @@
if(finished && !ragin)
feedback_set_details("round_end_result","loss - wizard killed")
to_chat(world, "\red The wizard[(wizards.len>1)?"s":""] has been killed by the crew! The Space Wizards Federation has been taught a lesson they will not soon forget!")
-
..()
return 1
@@ -292,7 +283,6 @@
text += "
"
to_chat(world, text)
-
return 1
//OTHER PROCS
@@ -318,15 +308,12 @@ Made a proc so this is not repeated 14 (or more) times.*/
//Removed the stat check because not all spells require clothing now.
if(!istype(usr:wear_suit, /obj/item/clothing/suit/wizrobe))
to_chat(usr, "I don't feel strong enough without my robe.")
-
return 0
if(!istype(usr:shoes, /obj/item/clothing/shoes/sandal))
to_chat(usr, "I don't feel strong enough without my sandals.")
-
return 0
if(!istype(usr:head, /obj/item/clothing/head/wizard))
to_chat(usr, "I don't feel strong enough without my hat.")
-
return 0
else
return 1
diff --git a/code/game/gamemodes/xenos/xenos.dm b/code/game/gamemodes/xenos/xenos.dm
index fef97333f9c..12dab66e569 100644
--- a/code/game/gamemodes/xenos/xenos.dm
+++ b/code/game/gamemodes/xenos/xenos.dm
@@ -19,10 +19,8 @@
/datum/game_mode/xenos/announce()
to_chat(world, "The current game mode is - Xenos!")
-
to_chat(world, "There is an Xenomorph attack on the station.
Aliens - Kill or infect the crew. Protect the Queen.
Crew - Protect the station. Exterminate all aliens.")
-
/datum/game_mode/xenos/can_start()
if(!..())
return 0
@@ -160,28 +158,20 @@
if(station_was_nuked)
feedback_set_details("round_end_result","win - xenos nuked")
to_chat(world, "Crew Victory")
-
to_chat(world, "The station was destroyed in a nuclear explosion, preventing the aliens from overrunning it!")
-
else if(result == 1)
feedback_set_details("round_end_result","win - xenos killed")
to_chat(world, "Crew Victory")
-
to_chat(world, "The aliens did not succeed and were exterminated by the crew!")
-
else if(result == 2)
feedback_set_details("round_end_result","win - crew killed")
to_chat(world, "Alien Victory")
-
to_chat(world, "The aliens were successful and slaughtered the crew!")
-
else
feedback_set_details("round_end_result","win - crew escaped")
to_chat(world, "Draw")
-
to_chat(world, "The crew has escaped from the aliens but did not exterminate them, allowing them to overrun the station.")
-
var/text = "
There were [xenos.len] aliens."
text += "
The aliens were:"
for(var/datum/mind/xeno in xenos)
@@ -198,6 +188,5 @@
text += ")"
to_chat(world, text)
-
..()
return 1
\ No newline at end of file
diff --git a/code/game/jobs/job/support_chaplain.dm b/code/game/jobs/job/support_chaplain.dm
index 3d0458a2227..29a0375b849 100644
--- a/code/game/jobs/job/support_chaplain.dm
+++ b/code/game/jobs/job/support_chaplain.dm
@@ -146,7 +146,6 @@
if("No")
if(outoftime)
to_chat(H, "Welp, out of time, buddy. You're stuck. Next time choose faster.")
-
accepted = 1
if(ticker)
diff --git a/code/game/jobs/job_controller.dm b/code/game/jobs/job_controller.dm
index b9865a1fcb7..9f9658a9dff 100644
--- a/code/game/jobs/job_controller.dm
+++ b/code/game/jobs/job_controller.dm
@@ -18,7 +18,6 @@ var/global/datum/controller/occupations/job_master
var/list/all_jobs = subtypesof(/datum/job)
if(!all_jobs.len)
to_chat(world, "\red \b Error setting up jobs, no job datums found")
-
return 0
for(var/J in all_jobs)
var/datum/job/job = new J()
@@ -386,7 +385,6 @@ var/global/datum/controller/occupations/job_master
else
to_chat(H, "Your job is [rank] and the game just can't handle it! Please report this bug to an administrator.")
-
H.job = rank
if(!joined_late)
@@ -435,7 +433,6 @@ var/global/datum/controller/occupations/job_master
spawn(0)
to_chat(H, "\blueYour account number is: [M.account_number], your account pin is: [M.remote_access_pin]")
-
var/alt_title = null
if(H.mind)
H.mind.assigned_role = rank
@@ -468,13 +465,10 @@ var/global/datum/controller/occupations/job_master
H.species.equip(H)
to_chat(H, "You are the [alt_title ? alt_title : rank].")
-
to_chat(H, "As the [alt_title ? alt_title : rank] you answer directly to [job.supervisors]. Special circumstances may change this.")
-
if(job.req_admin_notify)
to_chat(H, "You are playing a job that is important for the game progression. If you have to disconnect, please notify the admins via adminhelp.")
-
spawnId(H, rank, alt_title)
H.equip_to_slot_or_del(new /obj/item/device/radio/headset(H), slot_l_ear)
diff --git a/code/game/jobs/whitelist.dm b/code/game/jobs/whitelist.dm
index 4d921e617c8..1514b0440a8 100644
--- a/code/game/jobs/whitelist.dm
+++ b/code/game/jobs/whitelist.dm
@@ -25,7 +25,6 @@ var/list/whitelist = list()
return 1
if(!dbcon.IsConnected())
to_chat(usr, "\red Unable to connect to whitelist database. Please try again later.
")
-
return 0
else
var/DBQuery/query = dbcon.NewQuery("SELECT job FROM [format_table_name("whitelist")] WHERE ckey='[M.key]'")
@@ -71,7 +70,6 @@ var/list/whitelist = list()
return 0
if(!dbcon.IsConnected())
to_chat(usr, "\red Unable to connect to whitelist database. Please try again later.
")
-
return 0
else
var/DBQuery/query = dbcon.NewQuery("SELECT species FROM [format_table_name("whitelist")] WHERE ckey='[M.key]'")
diff --git a/code/game/machinery/Freezer.dm b/code/game/machinery/Freezer.dm
index 20d47691204..bb8f7ac9184 100644
--- a/code/game/machinery/Freezer.dm
+++ b/code/game/machinery/Freezer.dm
@@ -61,7 +61,6 @@
if (istype(I, /obj/item/weapon/wrench))
if(!panel_open)
to_chat(user, "Open the maintenance panel first.")
-
return
var/list/choices = list("West" = WEST, "East" = EAST, "South" = SOUTH, "North" = NORTH)
var/selected = input(user,"Select a direction for the connector.", "Connector Direction") in choices
@@ -94,7 +93,6 @@
/obj/machinery/atmospherics/unary/cold_sink/freezer/attack_hand(mob/user as mob)
if(panel_open)
to_chat(user, "Close the maintenance panel first.")
-
return
src.ui_interact(user)
@@ -223,7 +221,6 @@
if (istype(I, /obj/item/weapon/wrench))
if(!panel_open)
to_chat(user, "Open the maintenance panel first.")
-
return
var/list/choices = list("West" = WEST, "East" = EAST, "South" = SOUTH, "North" = NORTH)
var/selected = input(user,"Select a direction for the connector.", "Connector Direction") in choices
@@ -256,7 +253,6 @@
/obj/machinery/atmospherics/unary/heat_reservoir/heater/attack_hand(mob/user as mob)
if(panel_open)
to_chat(user, "Close the maintenance panel first.")
-
return
src.ui_interact(user)
diff --git a/code/game/machinery/OpTable.dm b/code/game/machinery/OpTable.dm
index 0853e20e8ee..fbc52904117 100644
--- a/code/game/machinery/OpTable.dm
+++ b/code/game/machinery/OpTable.dm
@@ -46,7 +46,6 @@
/obj/machinery/optable/attack_hand(mob/user as mob)
if (HULK in usr.mutations)
to_chat(usr, text("\blue You destroy the table."))
-
visible_message("\red [usr] destroys the operating table!")
src.density = 0
qdel(src)
@@ -131,7 +130,6 @@
playsound(src.loc, 'sound/items/Ratchet.ogg', 50, 1)
if(do_after(user, 20, target = src))
to_chat(user, "You deconstruct the table.")
-
new /obj/item/stack/sheet/plasteel(loc, 5)
qdel(src)
@@ -139,12 +137,10 @@
/obj/machinery/optable/proc/check_table(mob/living/carbon/patient as mob)
if(src.victim && get_turf(victim) == get_turf(src) && victim.lying)
to_chat(usr, "The table is already occupied!")
-
return 0
if(patient.buckled)
to_chat(usr, "Unbuckle first!")
-
return 0
return 1
diff --git a/code/game/machinery/PDApainter.dm b/code/game/machinery/PDApainter.dm
index 0a3ca9cc383..f21ad0d03ee 100644
--- a/code/game/machinery/PDApainter.dm
+++ b/code/game/machinery/PDApainter.dm
@@ -44,7 +44,6 @@
if(istype(O, /obj/item/device/pda))
if(storedpda)
to_chat(user, "There is already a PDA inside.")
-
return
else
var/obj/item/device/pda/P = usr.get_active_hand()
@@ -76,7 +75,6 @@
to_chat(user, "The [src] is empty.")
-
/obj/machinery/pdapainter/verb/ejectpda()
set name = "Eject PDA"
set category = "Object"
@@ -90,7 +88,6 @@
to_chat(usr, "The [src] is empty.")
-
/obj/machinery/pdapainter/power_change()
..()
update_icon()
\ No newline at end of file
diff --git a/code/game/machinery/Sleeper.dm b/code/game/machinery/Sleeper.dm
index fea7daeb956..238e071ebe9 100644
--- a/code/game/machinery/Sleeper.dm
+++ b/code/game/machinery/Sleeper.dm
@@ -84,7 +84,6 @@
if (istype(G, /obj/item/weapon/wrench))
if(panel_open)
to_chat(user, "Close the maintenance panel first.")
-
return
if(dir == 4)
orient = "LEFT"
@@ -111,7 +110,6 @@
if (panel_open)
to_chat(user, "Close the maintenance panel first.")
-
return
if (!src.connected)
@@ -229,7 +227,6 @@
if(panel_open)
to_chat(usr, "Close the maintenance panel first.")
-
return 0
if ((usr.contents.Find(src) || ((get_dist(src, usr) <= 1) && istype(src.loc, /turf))) || (istype(usr, /mob/living/silicon/ai)))
@@ -238,12 +235,10 @@
if (src.connected.occupant)
if (src.connected.occupant.stat == DEAD)
to_chat(usr, "This person has no life for to preserve anymore. Take them to a department capable of reanimating them.")
-
else if(src.connected.occupant.health > src.connected.min_health || (href_list["chemical"] in connected.emergency_chems))
src.connected.inject_chemical(usr,href_list["chemical"],text2num(href_list["amount"]))
else
to_chat(usr, "This person is not in good enough condition for sleepers to be effective! Use another means of treatment, such as cryogenics!")
-
if (href_list["removebeaker"])
src.connected.remove_beaker()
if (href_list["togglefilter"])
@@ -357,7 +352,6 @@
addiction_removal_chance = 10
if(prob(addiction_removal_chance))
to_chat(occupant, "You no longer feel reliant on [R.name]!")
-
occupant.reagents.addiction_list.Remove(R)
updateDialog()
@@ -378,7 +372,6 @@
if(!beaker)
if (!user.drop_item())
to_chat(user, "\The [G] is stuck to you!")
-
return
beaker = G
@@ -388,13 +381,11 @@
else
to_chat(user, "The sleeper has a beaker already.")
-
return
if (istype(G, /obj/item/weapon/screwdriver))
if(src.occupant)
to_chat(user, "The maintenance panel is locked.")
-
return
default_deconstruction_screwdriver(user, "sleeper-o", "sleeper-open", G)
return
@@ -402,11 +393,9 @@
if (istype(G, /obj/item/weapon/wrench))
if(src.occupant)
to_chat(user, "The scanner is occupied.")
-
return
if(panel_open)
to_chat(user, "Close the maintenance panel first.")
-
return
if(dir == 4)
orient = "LEFT"
@@ -424,18 +413,15 @@
if(istype(G, /obj/item/weapon/grab))
if(panel_open)
to_chat(user, "Close the maintenance panel first.")
-
return
if(!ismob(G:affecting))
return
if(src.occupant)
to_chat(user, "The sleeper is already occupied!")
-
return
for(var/mob/living/carbon/slime/M in range(1,G:affecting))
if(M.Victim == G:affecting)
to_chat(usr, "[G:affecting.name] will not fit into the sleeper because they have a slime latched onto their head.")
-
return
visible_message("[user] starts putting [G:affecting:name] into the sleeper.")
@@ -443,7 +429,6 @@
if(do_after(user, 20, target = G:affecting))
if(src.occupant)
to_chat(user, "The sleeper is already occupied!")
-
return
if(!G || !G:affecting) return
var/mob/M = G:affecting
@@ -455,7 +440,6 @@
src.icon_state = "sleeper"
to_chat(M, "You feel cool air surround you. You go numb as your senses turn inward.")
-
src.add_fingerprint(user)
qdel(G)
return
@@ -537,7 +521,6 @@
/obj/machinery/sleeper/proc/inject_chemical(mob/living/user as mob, chemical, amount)
if (!(chemical in injection_chems))
to_chat(user, "The sleeper does not offer that chemical!")
-
return
if(src.occupant)
@@ -547,15 +530,12 @@
return
else
to_chat(user, "You can not inject any more of this chemical.")
-
return
else
to_chat(user, "The patient rejects the chemicals!")
-
return
else
to_chat(user, "There's no occupant in the sleeper!")
-
return
/obj/machinery/sleeper/verb/eject()
@@ -601,23 +581,19 @@
return
if(panel_open)
to_chat(user, "Close the maintenance panel first.")
-
return
if(occupant)
to_chat(user, "The sleeper is already occupied!")
-
return
var/mob/living/L = O
if(!istype(L) || L.buckled)
return
if(L.abiotic())
to_chat(user, "Subject cannot have abiotic items on.")
-
return
for(var/mob/living/carbon/slime/M in range(1,L))
if(M.Victim == L)
to_chat(usr, "[L.name] will not fit into the sleeper because they have a slime latched onto their head.")
-
return
if(L == user)
visible_message("[user] starts climbing into the sleeper.")
@@ -627,7 +603,6 @@
if(do_after(user, 20, target = L))
if(src.occupant)
to_chat(user, ">The sleeper is already occupied!")
-
return
if(!L) return
@@ -638,7 +613,6 @@
src.occupant = L
src.icon_state = "sleeper"
to_chat(L, "You feel cool air surround you. You go numb as your senses turn inward.")
-
src.add_fingerprint(user)
if(user.pulling == L)
user.stop_pulling()
@@ -656,24 +630,20 @@
return
if(src.occupant)
to_chat(usr, "The sleeper is already occupied!")
-
return
if (panel_open)
to_chat(usr, "Close the maintenance panel first.")
-
return
if(usr.restrained() || usr.stat || usr.weakened || usr.stunned || usr.paralysis || usr.resting) //are you cuffed, dying, lying, stunned or other
return
for(var/mob/living/carbon/slime/M in range(1,usr))
if(M.Victim == usr)
to_chat(usr, "You're too busy getting your life sucked out of you.")
-
return
visible_message("[usr] starts climbing into the sleeper.")
if(do_after(usr, 20, target = usr))
if(src.occupant)
to_chat(usr, "The sleeper is already occupied!")
-
return
usr.stop_pulling()
usr.client.perspective = EYE_PERSPECTIVE
diff --git a/code/game/machinery/adv_med.dm b/code/game/machinery/adv_med.dm
index 3cce5ec7cac..45ee6e0f4c9 100644
--- a/code/game/machinery/adv_med.dm
+++ b/code/game/machinery/adv_med.dm
@@ -43,7 +43,6 @@
if (istype(G, /obj/item/weapon/screwdriver))
if(src.occupant)
to_chat(user, "The maintenance panel is locked.")
-
return
default_deconstruction_screwdriver(user, "bodyscanner-o", "bodyscanner-open", G)
return
@@ -51,11 +50,9 @@
if (istype(G, /obj/item/weapon/wrench))
if(src.occupant)
to_chat(user, "The scanner is occupied.")
-
return
if(panel_open)
to_chat(user, "Close the maintenance panel first.")
-
return
if(dir == 4)
dir = 8
@@ -72,23 +69,19 @@
var/obj/item/weapon/grab/TYPECAST_YOUR_SHIT = G
if(panel_open)
to_chat(user, "Close the maintenance panel first.")
-
return
if(!ismob(TYPECAST_YOUR_SHIT.affecting))
return
if(occupant)
to_chat(user, "The scanner is already occupied!")
-
return
for(var/mob/living/carbon/slime/M in range(1, TYPECAST_YOUR_SHIT.affecting))
if(M.Victim == TYPECAST_YOUR_SHIT.affecting)
to_chat(user, "[TYPECAST_YOUR_SHIT.affecting.name] has a fucking slime attached to them, deal with that first.")
-
return
var/mob/M = TYPECAST_YOUR_SHIT.affecting
if(M.abiotic())
to_chat(user, "Subject cannot have abiotic items on.")
-
return
/*if(M.client)
M.client.perspective = EYE_PERSPECTIVE
@@ -113,23 +106,19 @@
return 0 //not a borg or human
if(panel_open)
to_chat(user, "Close the maintenance panel first.")
-
return 0 //panel open
if(occupant)
to_chat(user, "\The [src] is already occupied.")
-
return 0 //occupied
if(O.buckled)
return 0
if(O.abiotic())
to_chat(user, "Subject cannot have abiotic items on.")
-
return 0
for(var/mob/living/carbon/slime/M in range(1, O))
if(M.Victim == O)
to_chat(user, "[O] has a fucking slime attached to them, deal with that first.")
-
return 0
if(O == user)
@@ -280,7 +269,6 @@
if (istype(G, /obj/item/weapon/wrench))
if(panel_open)
to_chat(user, "Close the maintenance panel first.")
-
return
if(dir == 4)
dir = 8
@@ -305,7 +293,6 @@
if (panel_open)
to_chat(user, "Close the maintenance panel first.")
-
return
if(!src.connected)
diff --git a/code/game/machinery/ai_slipper.dm b/code/game/machinery/ai_slipper.dm
index 912a854c12c..9869e2650f9 100644
--- a/code/game/machinery/ai_slipper.dm
+++ b/code/game/machinery/ai_slipper.dm
@@ -37,7 +37,6 @@
if (src.allowed(usr))
locked = !locked
to_chat(user, "You [ locked ? "lock" : "unlock"] the device.")
-
if (locked)
if (user.machine==src)
user.unset_machine()
@@ -47,7 +46,6 @@
src.attack_hand(usr)
else
to_chat(user, "\red Access denied.")
-
return
return
@@ -60,7 +58,6 @@
if ( (get_dist(src, user) > 1 ))
if (!istype(user, /mob/living/silicon))
to_chat(user, text("Too far away."))
-
user.unset_machine()
user << browse(null, "window=ai_slipper")
return
@@ -71,7 +68,6 @@
loc = loc:loc
if (!istype(loc, /area))
to_chat(user, text("Turret badly positioned - loc.loc is [].", loc))
-
return
var/area/area = loc
var/t = "AI Liquid Dispenser ([area.name])
"
@@ -92,7 +88,6 @@
if (src.locked)
if (!istype(usr, /mob/living/silicon))
to_chat(usr, "Control panel is locked!")
-
return
if (href_list["toggleOn"])
src.disabled = !src.disabled
diff --git a/code/game/machinery/alarm.dm b/code/game/machinery/alarm.dm
index 60e98f0bdd2..4a2d7103593 100644
--- a/code/game/machinery/alarm.dm
+++ b/code/game/machinery/alarm.dm
@@ -432,7 +432,6 @@
radio_connection.post_signal(src, signal, RADIO_FROM_AIRALARM)
// to_chat(world, text("Signal [] Broadcasted to []", command, target))
-
return 1
/obj/machinery/alarm/proc/apply_mode()
@@ -856,7 +855,6 @@
if(aidisabled && (isAI(user) || isrobot(user)))
to_chat(user, "AI control for \the [src] interface has been disabled.")
-
return STATUS_CLOSE
. = shorted ? STATUS_DISABLED : STATUS_INTERACTIVE
@@ -991,7 +989,6 @@
input_temperature = input_temperature + T0C
if(input_temperature > max_temperature || input_temperature < min_temperature)
to_chat(usr, "Temperature must be between [min_temperature_c]C and [max_temperature_c]C")
-
else
target_temperature = input_temperature
return 1
@@ -1011,10 +1008,8 @@
if(2)
if(istype(W, /obj/item/weapon/screwdriver)) // Opening that Air Alarm up.
// to_chat(user, "You pop the Air Alarm's maintence panel open.")
-
wiresexposed = !wiresexposed
to_chat(user, "The wires have been [wiresexposed ? "exposed" : "unexposed"]")
-
update_icon()
return
@@ -1033,19 +1028,16 @@
if (istype(W, /obj/item/weapon/card/id) || istype(W, /obj/item/device/pda))// trying to unlock the interface with an ID card
if(stat & (NOPOWER|BROKEN))
to_chat(user, "It does nothing")
-
return
else
if(allowed(usr) && !wires.IsIndexCut(AALARM_WIRE_IDSCAN))
locked = !locked
to_chat(user, "\blue You [ locked ? "lock" : "unlock"] the Air Alarm interface.")
-
updateUsrDialog()
else
to_chat(user, "\red Access denied.")
-
return
if(1)
@@ -1053,11 +1045,9 @@
var/obj/item/stack/cable_coil/coil = W
if(coil.amount < 5)
to_chat(user, "You need more cable for this!")
-
return
to_chat(user, "You wire \the [src]!")
-
coil.amount -= 5
if(!coil.amount)
qdel(coil)
@@ -1069,11 +1059,9 @@
else if(istype(W, /obj/item/weapon/crowbar))
to_chat(user, "You start prying out the circuit.")
-
playsound(get_turf(src), 'sound/items/Crowbar.ogg', 50, 1)
if(do_after(user,20, target = src))
to_chat(user, "You pry out the circuit!")
-
var/obj/item/weapon/airalarm_electronics/circuit = new /obj/item/weapon/airalarm_electronics()
circuit.loc = user.loc
buildstage = 0
@@ -1082,7 +1070,6 @@
if(0)
if(istype(W, /obj/item/weapon/airalarm_electronics))
to_chat(user, "You insert the circuit!")
-
qdel(W)
buildstage = 1
update_icon()
@@ -1090,7 +1077,6 @@
else if(istype(W, /obj/item/weapon/wrench))
to_chat(user, "You remove the fire alarm assembly from the wall!")
-
new /obj/item/mounted/frame/alarm_frame(get_turf(user))
playsound(get_turf(src), 'sound/items/Ratchet.ogg', 50, 1)
qdel(src)
@@ -1109,11 +1095,9 @@
..(user)
if (buildstage < 2)
to_chat(user, "It is not wired.")
-
if (buildstage < 1)
to_chat(user, "The circuit is missing.")
-
/*
AIR ALARM CIRCUIT
Just an object used in constructing air alarms
diff --git a/code/game/machinery/atmo_control.dm b/code/game/machinery/atmo_control.dm
index 23a9dc6ee3a..80d588179bf 100644
--- a/code/game/machinery/atmo_control.dm
+++ b/code/game/machinery/atmo_control.dm
@@ -74,11 +74,9 @@ obj/machinery/air_sensor
if(istype(W, /obj/item/weapon/wrench))
if(bolts)
to_chat(usr, "The [src] is bolted to the floor! You can't detach it like this.")
-
return 1
playsound(src.loc, 'sound/items/Ratchet.ogg', 50, 1)
to_chat(user, "\blue You begin to unfasten \the [src]...")
-
if(do_after(user, 40, target = src))
user.visible_message("[user] unfastens \the [src].", "\blue You have unfastened \the [src].", "You hear ratchet.")
new /obj/item/pipe_gsensor(src.loc)
@@ -302,7 +300,6 @@ legend {
sensor_list|=G.id_tag
if(!sensor_list.len)
to_chat(user, "No sensors on this frequency.")
-
return MT_ERROR
// Have the user pick one of them and name its label
@@ -324,7 +321,6 @@ legend {
sensor_list|=G.id_tag
if(!sensor_list.len)
to_chat(user, "No sensors on this frequency.")
-
return MT_ERROR
var/label = sensors[href_list["edit_sensor"]]
var/sensor = input(user, "Select a sensor:", "Sensor Data", href_list["edit_sensor"]) as null|anything in sensor_list
diff --git a/code/game/machinery/atmoalter/canister.dm b/code/game/machinery/atmoalter/canister.dm
index 4ed251f092c..14b3ca3fc59 100644
--- a/code/game/machinery/atmoalter/canister.dm
+++ b/code/game/machinery/atmoalter/canister.dm
@@ -339,7 +339,6 @@ update_flag
if(iswelder(W) && src.destroyed)
if(weld(W, user))
to_chat(user, "\blue You salvage whats left of \the [src]")
-
var/obj/item/stack/sheet/metal/M = new /obj/item/stack/sheet/metal(src.loc)
M.amount = 3
qdel(src)
@@ -362,7 +361,6 @@ update_flag
var/datum/gas_mixture/removed = air_contents.remove(transfer_moles)
thejetpack.merge(removed)
to_chat(user, "You pulse-pressurize your jetpack from the tank.")
-
return
..()
@@ -482,7 +480,6 @@ update_flag
else
to_chat(usr, "\red As you attempted to rename it the pressure rose!")
-
if (href_list["choice"] == "Primary color")
if (is_a_color(href_list["icon"],"prim"))
canister_color["prim"] = href_list["icon"]
@@ -633,7 +630,6 @@ update_flag
// Do after stuff here
to_chat(user, "You start to slice away at \the [src]...")
-
playsound(src.loc, 'sound/items/Welder.ogg', 50, 1)
busy = 1
if(do_after(user, 50, target = src))
diff --git a/code/game/machinery/atmoalter/meter.dm b/code/game/machinery/atmoalter/meter.dm
index 578d34fd7e0..b2b7b1efc06 100644
--- a/code/game/machinery/atmoalter/meter.dm
+++ b/code/game/machinery/atmoalter/meter.dm
@@ -108,7 +108,6 @@
to_chat(user, t)
-
/obj/machinery/meter/Click()
if(istype(usr, /mob/living/silicon/ai)) // ghosts can call ..() for examine
usr.examinate(src)
@@ -125,7 +124,6 @@
return ..()
playsound(src.loc, 'sound/items/Ratchet.ogg', 50, 1)
to_chat(user, "\blue You begin to unfasten \the [src]...")
-
if (do_after(user, 40, target = src))
user.visible_message( \
"[user] unfastens \the [src].", \
diff --git a/code/game/machinery/atmoalter/portable_atmospherics.dm b/code/game/machinery/atmoalter/portable_atmospherics.dm
index 6382e7da5df..21eee7b52ac 100644
--- a/code/game/machinery/atmoalter/portable_atmospherics.dm
+++ b/code/game/machinery/atmoalter/portable_atmospherics.dm
@@ -92,7 +92,6 @@
if(connected_port)
disconnect()
to_chat(user, "\blue You disconnect [name] from the port.")
-
update_icon()
return
else
@@ -100,16 +99,13 @@
if(possible_port)
if(connect(possible_port))
to_chat(user, "\blue You connect [name] to the port.")
-
update_icon()
return
else
to_chat(user, "\blue [name] failed to connect to the port.")
-
return
else
to_chat(user, "\blue Nothing happens.")
-
return
else if ((istype(W, /obj/item/device/analyzer)) && get_dist(user, src) <= 1)
diff --git a/code/game/machinery/atmoalter/scrubber.dm b/code/game/machinery/atmoalter/scrubber.dm
index 8a72b9077f6..1790dec775d 100644
--- a/code/game/machinery/atmoalter/scrubber.dm
+++ b/code/game/machinery/atmoalter/scrubber.dm
@@ -183,7 +183,6 @@
/obj/machinery/portable_atmospherics/scrubber/huge/attack_hand(var/mob/user as mob)
to_chat(usr, "You can't directly interact with this machine. Use the area atmos computer.")
-
/obj/machinery/portable_atmospherics/scrubber/huge/update_icon()
src.overlays = 0
@@ -196,17 +195,14 @@
if(istype(W, /obj/item/weapon/wrench))
if(stationary)
to_chat(user, "The bolts are too tight for you to unscrew!")
-
return
if(on)
to_chat(user, "Turn it off first!")
-
return
anchored = !anchored
playsound(src.loc, 'sound/items/Ratchet.ogg', 50, 1)
to_chat(user, "You [anchored ? "wrench" : "unwrench"] \the [src].")
-
return
else if ((istype(W, /obj/item/device/analyzer)) && get_dist(user, src) <= 1)
diff --git a/code/game/machinery/autolathe.dm b/code/game/machinery/autolathe.dm
index 3a1069ab3ad..9021a1a2127 100644
--- a/code/game/machinery/autolathe.dm
+++ b/code/game/machinery/autolathe.dm
@@ -109,7 +109,6 @@
/obj/machinery/autolathe/attackby(obj/item/O, mob/user, params)
if (busy)
to_chat(user, "The autolathe is busy. Please wait for completion of previous operation.")
-
return 1
if(default_deconstruction_screwdriver(user, "autolathe_t", "autolathe", O))
@@ -145,15 +144,12 @@
var/material_amount = materials.get_item_material_amount(O)
if(!material_amount)
to_chat(user, "This object does not contain sufficient amounts of metal or glass to be accepted by the autolathe.")
-
return 1
if(!materials.has_space(material_amount))
to_chat(user, "The autolathe is full. Please remove metal or glass from the autolathe in order to insert more.")
-
return 1
if(!user.unEquip(O))
to_chat(user, "\The [O] is stuck to you and cannot be placed into the autolathe.")
-
return 1
busy = 1
@@ -165,11 +161,9 @@
if (O.materials[MAT_GLASS])
flick("autolathe_r",src)//plays glass insertion animation
to_chat(user, "You insert [inserted] sheet[inserted>1 ? "s" : ""] to the autolathe.")
-
use_power(inserted*100)
else
to_chat(user, "You insert a material total of [inserted] to the autolathe.")
-
use_power(max(500,inserted/10))
qdel(O)
busy = 0
@@ -220,7 +214,6 @@
add_to_queue(design_last_ordered,multiplier)
else
to_chat(usr, "\red The autolathe queue is full!")
-
if (!busy)
busy = 1
process_queue()
diff --git a/code/game/machinery/bees_apiary.dm b/code/game/machinery/bees_apiary.dm
index 0103ab7f5df..437c188d9b8 100644
--- a/code/game/machinery/bees_apiary.dm
+++ b/code/game/machinery/bees_apiary.dm
@@ -36,11 +36,9 @@
if(!yieldmod)
yieldmod += 1
// to_chat(world, "Yield increased by 1, from 0, to a total of [myseed.yield]")
-
else if (prob(1/(yieldmod * yieldmod) *100))//This formula gives you diminishing returns based on yield. 100% with 1 yield, decreasing to 25%, 11%, 6, 4, 2...
yieldmod += 1
// to_chat(world, "Yield increased by 1, to a total of [myseed.yield]")
-
else
..()
return
@@ -49,14 +47,12 @@
if(istype(O, /obj/item/queen_bee))
if(health > 0)
to_chat(user, "\red There is already a queen in there.")
-
else
health = 10
nutrilevel += 10
user.drop_item()
del(O)
to_chat(user, "\blue You carefully insert the queen into [src], she gets busy making a hive.")
-
bees_in_hive = 0
else if(istype(O, /obj/item/beezeez))
beezeez += 100
@@ -64,53 +60,42 @@
user.drop_item()
if(health > 0)
to_chat(user, "\blue You insert [O] into [src]. A relaxed humming appears to pick up.")
-
else
to_chat(user, "\blue You insert [O] into [src]. Now it just needs some bees.")
-
del(O)
else if(istype(O, /obj/item/weapon/minihoe))
if(health > 0)
to_chat(user, "\red You begin to dislodge the apiary from the tray, the bees don't like that.")
-
angry_swarm(user)
else
to_chat(user, "\blue You begin to dislodge the dead apiary from the tray.")
-
if(do_after(user, 50, target = src))
new hydrotray_type(src.loc)
new /obj/item/apiary(src.loc)
to_chat(user, "\red You dislodge the apiary from the tray.")
-
del(src)
else if(istype(O, /obj/item/weapon/bee_net))
var/obj/item/weapon/bee_net/N = O
if(N.caught_bees > 0)
to_chat(user, "\blue You empty the bees into the apiary.")
-
bees_in_hive += N.caught_bees
N.caught_bees = 0
else
to_chat(user, "\blue There are no more bees in the net.")
-
else if(istype(O, /obj/item/weapon/reagent_containers/glass))
var/obj/item/weapon/reagent_containers/glass/G = O
if(harvestable_honey > 0)
if(health > 0)
to_chat(user, "\red You begin to harvest the honey. The bees don't seem to like it.")
-
angry_swarm(user)
else
to_chat(user, "\blue You begin to harvest the honey.")
-
if(do_after(user,50, target = src))
G.reagents.add_reagent("honey",harvestable_honey)
harvestable_honey = 0
to_chat(user, "\blue You successfully harvest the honey.")
-
else
to_chat(user, "\blue There is no honey left to harvest.")
-
else
angry_swarm(user)
..()
@@ -257,5 +242,4 @@
H.reagents.add_reagent("toxin", toxic)
to_chat(usr, "\blue You harvest the honeycomb from the hive. There is a wild buzzing!")
-
angry_swarm(usr)
diff --git a/code/game/machinery/biogenerator.dm b/code/game/machinery/biogenerator.dm
index ea0421a8df1..fc00e8740d3 100644
--- a/code/game/machinery/biogenerator.dm
+++ b/code/game/machinery/biogenerator.dm
@@ -68,17 +68,14 @@
if(istype(O, /obj/item/weapon/reagent_containers/glass) && !panel_open)
if(beaker)
to_chat(user, "A container is already loaded into the machine.")
-
return
else
if(!user.drop_item())
to_chat(user, "\The [O] is stuck to you!")
-
return
O.forceMove(src)
beaker = O
to_chat(user, "You add the container to the machine.")
-
updateUsrDialog()
update_icon()
return
@@ -97,17 +94,14 @@
else if(istype(O, /obj/item/weapon/crowbar))
else if(panel_open)
to_chat(user, "Close the maintenance panel first.")
-
else if(processing)
to_chat(user, "The biogenerator is currently processing.")
-
else if(istype(O, /obj/item/weapon/storage/bag/plants))
var/i = 0
for(var/obj/item/weapon/reagent_containers/food/snacks/grown/G in contents)
i++
if(i >= max_items)
to_chat(user, "The biogenerator is already full! Activate it.")
-
else
for(var/obj/item/weapon/reagent_containers/food/snacks/grown/G in O.contents)
if(i >= max_items)
@@ -116,31 +110,25 @@
i++
if(i < max_items)
to_chat(user, "You empty the plant bag into the biogenerator.")
-
else if(O.contents.len == 0)
to_chat(user, "You empty the plant bag into the biogenerator, filling it to its capacity.")
-
else
to_chat(user, "You fill the biogenerator to its capacity.")
-
else if(!istype(O, /obj/item/weapon/reagent_containers/food/snacks/grown) && !istype(O, /obj/item/weapon/crowbar))
to_chat(user, "You can not put this in [src.name]")
-
else
var/i = 0
for(var/obj/item/weapon/reagent_containers/food/snacks/grown/G in contents)
i++
if(i >= max_items)
to_chat(user, "The biogenerator is full! Activate it.")
-
else
user.unEquip(O)
O.forceMove(src)
to_chat(user, "You put [O.name] in [src.name]")
-
default_deconstruction_crowbar(O)
update_icon()
@@ -225,7 +213,6 @@
return
if(src.processing)
to_chat(usr, "The biogenerator is in the process of working.")
-
return
var/S = 0
for(var/obj/item/weapon/reagent_containers/food/snacks/grown/I in contents)
diff --git a/code/game/machinery/camera/camera.dm b/code/game/machinery/camera/camera.dm
index 15b89e44df7..873e08030a7 100644
--- a/code/game/machinery/camera/camera.dm
+++ b/code/game/machinery/camera/camera.dm
@@ -93,7 +93,6 @@
O.unset_machine()
O.reset_view(null)
to_chat(O, "The screen bursts into static.")
-
..()
@@ -130,7 +129,6 @@
// DECONSTRUCTION
if(istype(W, /obj/item/weapon/screwdriver))
// to_chat(user, "You start to [panel_open ? "close" : "open"] the camera's panel.")
-
//if(toggle_panel(user)) // No delay because no one likes screwdrivers trying to be hip and have a duration cooldown
panel_open = !panel_open
user.visible_message("[user] screws the camera's panel [panel_open ? "open" : "closed"]!",
@@ -143,7 +141,6 @@
else if(istype(W, /obj/item/weapon/weldingtool) && wires.CanDeconstruct())
if(weld(W, user))
to_chat(user, "You unweld the camera leaving it as just a frame screwed to the wall.")
-
if(!assembly)
assembly = new()
assembly.loc = src.loc
@@ -158,30 +155,24 @@
upgradeXRay()
qdel(W)
to_chat(user, "[msg]")
-
else
to_chat(user, "[msg2]")
-
else if(istype(W, /obj/item/stack/sheet/mineral/plasma) && panel_open)
if(!isEmpProof())
upgradeEmpProof()
to_chat(user, "[msg]")
-
qdel(W)
else
to_chat(user, "[msg2]")
-
else if(istype(W, /obj/item/device/assembly/prox_sensor) && panel_open)
if(!isMotion())
upgradeMotion()
to_chat(user, "[msg]")
-
qdel(W)
else
to_chat(user, "[msg2]")
-
// OTHER
else if ((istype(W, /obj/item/weapon/paper) || istype(W, /obj/item/device/pda)) && isliving(user))
var/mob/living/U = user
@@ -201,7 +192,6 @@
itemname = P.name
info = N.notehtml
to_chat(U, "You hold \the [itemname] up to the camera ...")
-
U.changeNext_move(CLICK_CD_MELEE)
for(var/mob/O in player_list)
if(istype(O, /mob/living/silicon/ai))
@@ -210,29 +200,23 @@
return
if(U.name == "Unknown")
to_chat(AI, "[U] holds \a [itemname] up to one of your cameras ...")
-
else
to_chat(AI, "[U] holds \a [itemname] up to one of your cameras ...")
-
AI.last_paper_seen = "
So this is what cloning feels like?")
-
// -- Mode/mind specific stuff goes here
callHook("clone", list(H))
@@ -349,7 +345,6 @@
if (istype(W, /obj/item/weapon/screwdriver))
if(occupant || mess || locked)
to_chat(user, "The maintenance panel is locked.")
-
return
default_deconstruction_screwdriver(user, "[icon_state]_maintenance", "[initial(icon_state)]", W)
return
@@ -365,23 +360,19 @@
if (istype(W, /obj/item/weapon/card/id)||istype(W, /obj/item/device/pda))
if (!check_access(W))
to_chat(user, "\red Access Denied.")
-
return
if ((!locked) || (isnull(occupant)))
return
if ((occupant.health < -20) && (occupant.stat != 2))
to_chat(user, "\red Access Refused.")
-
return
else
locked = 0
to_chat(user, "System unlocked.")
-
//Removing cloning pod biomass
else if (istype(W, /obj/item/weapon/reagent_containers/food/snacks/meat))
to_chat(user, "\blue \The [src] processes \the [W].")
-
biomass += 50
user.drop_item()
qdel(W)
@@ -389,7 +380,6 @@
else if (istype(W, /obj/item/weapon/wrench))
if(locked && (anchored || occupant))
to_chat(user, "\red Can not do that while [src] is in use.")
-
else
if(anchored)
anchored = 0
@@ -406,7 +396,6 @@
var/obj/item/device/multitool/M = W
M.buffer = src
to_chat(user, "You load connection data from [src] to [M].")
-
return
else
..()
@@ -415,7 +404,6 @@
if (isnull(occupant))
return
to_chat(user, "You force an emergency ejection.")
-
locked = 0
go_out()
return
@@ -456,12 +444,10 @@
if (!(occupant))
to_chat(user, "The cloning pod is empty!")
-
return
if (locked)
to_chat(user, "The cloning pod is locked!")
-
return
if (occupant.client)
diff --git a/code/game/machinery/computer/HolodeckControl.dm b/code/game/machinery/computer/HolodeckControl.dm
index 6ade8685e74..809ac579454 100644
--- a/code/game/machinery/computer/HolodeckControl.dm
+++ b/code/game/machinery/computer/HolodeckControl.dm
@@ -165,9 +165,7 @@
playsound(src.loc, 'sound/effects/sparks4.ogg', 75, 1)
emagged = 1
to_chat(user, "\blue You vastly increase projector power and override the safety and security protocols.")
-
to_chat(user, "Warning. Automatic shutoff and derezing protocols have been corrupted. Please call Nanotrasen maintenance and do not use the simulator.")
-
log_game("[key_name(usr)] emagged the Holodeck Control Computer")
src.updateUsrDialog()
@@ -370,7 +368,6 @@
if (istype(W, /obj/item/weapon/wrench))
to_chat(user, "It's a holotable! There are no bolts!")
-
return
/obj/structure/table/holotable/wood
@@ -411,7 +408,6 @@
/obj/structure/rack/holorack/attackby(obj/item/weapon/W as obj, mob/user as mob, params)
if (istype(W, /obj/item/weapon/wrench))
to_chat(user, "It's a holorack! There are no bolts!")
-
return
/obj/item/weapon/holo
@@ -472,14 +468,12 @@
w_class = 4
playsound(user, 'sound/weapons/saberon.ogg', 50, 1)
to_chat(user, "[src] is now active.")
-
else
force = 3
icon_state = "sword0"
w_class = 2
playsound(user, 'sound/weapons/saberoff.ogg', 50, 1)
to_chat(user, "[src] can now be concealed.")
-
if(istype(user,/mob/living/carbon/human))
var/mob/living/carbon/human/H = user
H.update_inv_l_hand()
@@ -510,7 +504,6 @@
var/obj/item/weapon/grab/G = W
if(G.state<2)
to_chat(user, "You need a better grip to do that!")
-
return
G.affecting.loc = src.loc
G.affecting.Weaken(5)
@@ -553,17 +546,14 @@
/obj/machinery/readybutton/attack_ai(mob/user as mob)
to_chat(user, "The station AI is not to interact with these devices")
-
return
/obj/machinery/readybutton/attackby(obj/item/weapon/W as obj, mob/user as mob, params)
to_chat(user, "The device is a solid button, there's nothing you can do with it!")
-
/obj/machinery/readybutton/attack_hand(mob/user as mob)
if(user.stat || stat & (NOPOWER|BROKEN))
to_chat(user, "This device is not powered.")
-
return
currentarea = get_area(src.loc)
@@ -572,7 +562,6 @@
if(eventstarted)
to_chat(usr, "The event has already begun!")
-
return
ready = !ready
@@ -603,4 +592,3 @@
for(var/mob/M in currentarea)
to_chat(M, "FIGHT!")
-
diff --git a/code/game/machinery/computer/ai_core.dm b/code/game/machinery/computer/ai_core.dm
index bc010ad8ff5..8ad0b715b4f 100644
--- a/code/game/machinery/computer/ai_core.dm
+++ b/code/game/machinery/computer/ai_core.dm
@@ -25,20 +25,17 @@
playsound(loc, 'sound/items/Ratchet.ogg', 50, 1)
if(do_after(user, 20, target = src))
to_chat(user, "\blue You wrench the frame into place.")
-
anchored = 1
state = 1
if(istype(P, /obj/item/weapon/weldingtool))
var/obj/item/weapon/weldingtool/WT = P
if(!WT.isOn())
to_chat(user, "The welder must be on for this task.")
-
return
playsound(loc, 'sound/items/Welder.ogg', 50, 1)
if(do_after(user, 20, target = src))
if(!src || !WT.remove_fuel(0, user)) return
to_chat(user, "\blue You deconstruct the frame.")
-
new /obj/item/stack/sheet/plasteel(loc, 4)
qdel(src)
if(1)
@@ -46,13 +43,11 @@
playsound(loc, 'sound/items/Ratchet.ogg', 50, 1)
if(do_after(user, 20, target = src))
to_chat(user, "\blue You unfasten the frame.")
-
anchored = 0
state = 0
if(istype(P, /obj/item/weapon/circuitboard/aicore) && !circuit)
playsound(loc, 'sound/items/Deconstruct.ogg', 50, 1)
to_chat(user, "\blue You place the circuit board inside the frame.")
-
icon_state = "1"
circuit = P
user.drop_item()
@@ -60,13 +55,11 @@
if(istype(P, /obj/item/weapon/screwdriver) && circuit)
playsound(loc, 'sound/items/Screwdriver.ogg', 50, 1)
to_chat(user, "\blue You screw the circuit board into place.")
-
state = 2
icon_state = "2"
if(istype(P, /obj/item/weapon/crowbar) && circuit)
playsound(loc, 'sound/items/Crowbar.ogg', 50, 1)
to_chat(user, "\blue You remove the circuit board.")
-
state = 1
icon_state = "0"
circuit.loc = loc
@@ -75,7 +68,6 @@
if(istype(P, /obj/item/weapon/screwdriver) && circuit)
playsound(loc, 'sound/items/Screwdriver.ogg', 50, 1)
to_chat(user, "\blue You unfasten the circuit board.")
-
state = 1
icon_state = "1"
if(istype(P, /obj/item/stack/cable_coil))
@@ -85,18 +77,15 @@
P:amount -= 5
if(!P:amount) qdel(P)
to_chat(user, "\blue You add cables to the frame.")
-
state = 3
icon_state = "3"
if(3)
if(istype(P, /obj/item/weapon/wirecutters))
if (brain)
to_chat(user, "Get that brain out of there first")
-
else
playsound(loc, 'sound/items/Wirecutter.ogg', 50, 1)
to_chat(user, "\blue You remove the cables.")
-
state = 2
icon_state = "2"
var/obj/item/stack/cable_coil/A = new /obj/item/stack/cable_coil( loc )
@@ -110,49 +99,41 @@
P:amount -= 2
if(!P:amount) qdel(P)
to_chat(user, "\blue You put in the glass panel.")
-
state = 4
icon_state = "4"
if(istype(P, /obj/item/weapon/aiModule/purge))
laws.clear_inherent_laws()
to_chat(usr, "Law module applied.")
-
return
if(istype(P, /obj/item/weapon/aiModule/freeform))
var/obj/item/weapon/aiModule/freeform/M = P
laws.add_inherent_law(M.newFreeFormLaw)
to_chat(usr, "Added a freeform law.")
-
return
if(istype(P, /obj/item/weapon/aiModule))
var/obj/item/weapon/aiModule/M = P
if(!M.laws)
to_chat(usr, "This AI module can not be applied directly to AI cores.")
-
return
laws = M.laws
if(istype(P, /obj/item/device/mmi) || istype(P, /obj/item/device/mmi/posibrain))
if(!P:brainmob)
to_chat(user, "\red Sticking an empty [P] into the frame would sort of defeat the purpose.")
-
return
if(P:brainmob.stat == 2)
to_chat(user, "\red Sticking a dead [P] into the frame would sort of defeat the purpose.")
-
return
if(jobban_isbanned(P:brainmob, "AI") || jobban_isbanned(P:brainmob,"nonhumandept"))
to_chat(user, "\red This [P] does not seem to fit.")
-
return
if(istype(P, /obj/item/device/mmi/syndie))
to_chat(user, "This MMI does not seem to fit!")
-
return
if(P:brainmob.mind)
@@ -163,13 +144,11 @@
P.loc = src
brain = P
to_chat(usr, "Added [P].")
-
icon_state = "3b"
if(istype(P, /obj/item/weapon/crowbar) && brain)
playsound(loc, 'sound/items/Crowbar.ogg', 50, 1)
to_chat(user, "\blue You remove the brain.")
-
brain.loc = loc
brain = null
icon_state = "3"
@@ -178,7 +157,6 @@
if(istype(P, /obj/item/weapon/crowbar))
playsound(loc, 'sound/items/Crowbar.ogg', 50, 1)
to_chat(user, "\blue You remove the glass panel.")
-
state = 3
if (brain)
icon_state = "3b"
@@ -190,7 +168,6 @@
if(istype(P, /obj/item/weapon/screwdriver))
playsound(loc, 'sound/items/Screwdriver.ogg', 50, 1)
to_chat(user, "You connect the monitor.")
-
if(!brain)
var/open_for_latejoin = alert(user, "Would you like this core to be open for latejoining AIs?", "Latejoin", "Yes", "Yes", "No") == "Yes"
var/obj/structure/AIcore/deactivated/D = new(loc)
@@ -250,7 +227,6 @@
if(!cores.len)
to_chat(src, "No deactivated AI cores were found.")
-
var/id = input("Which core?", "Toggle AI Core Latejoin", null) as null|anything in cores
if(!id) return
@@ -260,13 +236,11 @@
if(D in empty_playable_ai_cores)
empty_playable_ai_cores -= D
to_chat(src, "\The [id] is now not available for latejoining AIs.")
-
else
empty_playable_ai_cores += D
to_chat(src, "\The [id] is now available for latejoining AIs.")
-
/*
This is a good place for AI-related object verbs so I'm sticking it here.
If adding stuff to this, don't forget that an AI need to cancel_camera() whenever it physically moves to a different location.
@@ -279,7 +253,6 @@ atom/proc/transfer_ai(var/interaction, var/mob/user, var/mob/living/silicon/ai/A
if(istype(card))
if(card.flush)
to_chat(user, "ERROR: AI flush is in progress, cannot execute transfer protocol.")
-
return 0
return 1
@@ -293,10 +266,7 @@ atom/proc/transfer_ai(var/interaction, var/mob/user, var/mob/living/silicon/ai/A
AI.aiRadio.disabledAi = 0
AI.loc = loc//To replace the terminal.
to_chat(AI, "You have been uploaded to a stationary terminal. Remote device connection restored.")
-
to_chat(user, "Transfer successful: [AI.name] ([rand(1000,9999)].exe) installed and executed successfully. Local copy has been removed.")
-
qdel(src)
else //If for some reason you use an empty card on an empty AI terminal.
to_chat(user, "There is no AI loaded on this terminal!")
-
diff --git a/code/game/machinery/computer/aifixer.dm b/code/game/machinery/computer/aifixer.dm
index 34c2ceedaed..e326d9750d5 100644
--- a/code/game/machinery/computer/aifixer.dm
+++ b/code/game/machinery/computer/aifixer.dm
@@ -14,10 +14,8 @@
if(occupant && istype(I, /obj/item/weapon/screwdriver))
if(stat & (NOPOWER|BROKEN))
to_chat(user, "The screws on [name]'s screen won't budge.")
-
else
to_chat(user, "The screws on [name]'s screen won't budge and it emits a warning beep.")
-
return
else
..()
@@ -33,7 +31,6 @@
if(mode.kickoff)
to_chat(user, "You have been locked out from this console!")
-
/obj/machinery/computer/aifixer/ui_interact(mob/user, ui_key = "main", var/datum/nanoui/ui = null, var/force_open = 1)
var/data[0]
if(occupant)
@@ -118,30 +115,23 @@
if(interaction == AI_TRANS_FROM_CARD)
if(stat & (NOPOWER|BROKEN))
to_chat(user, "[src] is offline and cannot take an AI at this time!")
-
return
AI.loc = src
occupant = AI
AI.control_disabled = 1
AI.aiRadio.disabledAi = 1
to_chat(AI, "You have been uploaded to a stationary terminal. Sadly, there is no remote access from here.")
-
to_chat(user, "Transfer successful: [AI.name] ([rand(1000,9999)].exe) installed and executed successfully. Local copy has been removed.")
-
update_icon()
else //Uploading AI from terminal to card
if(occupant && !active)
to_chat(occupant, "You have been downloaded to a mobile storage device. Still no remote access.")
-
to_chat(user, "Transfer successful: [occupant.name] ([rand(1000,9999)].exe) removed from host terminal and stored within local memory.")
-
occupant.loc = card
occupant = null
update_icon()
else if (active)
to_chat(user, "ERROR: Reconstruction in progress.")
-
else if (!occupant)
to_chat(user, "ERROR: Unable to locate artificial intelligence.")
-
diff --git a/code/game/machinery/computer/arcade.dm b/code/game/machinery/computer/arcade.dm
index a9de75bfd03..0948c8ae3a1 100644
--- a/code/game/machinery/computer/arcade.dm
+++ b/code/game/machinery/computer/arcade.dm
@@ -369,7 +369,6 @@
if(emagged)
user.nutrition = 0 //yeah you pretty hongry
to_chat(user, "Your body instantly contracts to that of one who has not eaten in months. Agonizing cramps seize you as you fall to the floor.")
-
if(fuel <= 0)
dat += "
You ran out of fuel, and drift, slowly, into a star."
if(emagged)
@@ -377,12 +376,10 @@
M.adjust_fire_stacks(5)
M.IgniteMob() //flew into a star, so you're on fire
to_chat(user, "You feel an immense wave of heat emanate from the arcade machine. Your skin bursts into flames.")
-
dat += "
"
if(emagged)
to_chat(user, "You're never going to make it to Orion...")
-
user.death()
emagged = 0 //removes the emagged status after you lose
playing = 0 //also a new game
@@ -451,11 +448,9 @@
if(ORION_TRAIL_RAIDERS)
if(prob(50))
to_chat(usr, "You hear battle shouts. The tramping of boots on cold metal. Screams of agony. The rush of venting air. Are you going insane?")
-
M.hallucination += 30
else
to_chat(usr, "Something strikes you from behind! It hurts like hell and feel like a blunt weapon, but nothing is there...")
-
M.take_organ_damage(30)
playsound(loc, 'sound/weapons/genhit2.ogg', 100, 1)
if(ORION_TRAIL_ILLNESS)
@@ -463,14 +458,11 @@
if(severity == 1)
to_chat(M, "You suddenly feel slightly nauseous.")//got off lucky
-
if(severity == 2)
to_chat(usr, "You suddenly feel extremely nauseous and hunch over until it passes.")
-
M.Stun(3)
if(severity >= 3) //you didn't pray hard enough
to_chat(M, "An overpowering wave of nausea consumes over you. You hunch over, your stomach's contents preparing for a spectacular exit.")
-
M.Stun(5)
sleep(30)
atom_say("[M] violently throws up!")
@@ -487,7 +479,6 @@
playsound(src.loc, 'sound/weapons/Genhit.ogg', 100, 1)
else
to_chat(M, "A violent gale blows past you, and you barely manage to stay standing!")
-
if(ORION_TRAIL_COLLISION) //by far the most damaging event
if(prob(90))
playsound(src.loc, 'sound/effects/bang.ogg', 100, 1)
@@ -967,7 +958,6 @@
/obj/machinery/computer/arcade/orion_trail/emag_act(mob/user)
if(!emagged)
to_chat(user, "You override the cheat code menu and skip to Cheat #[rand(1, 50)]: Realism Mode.")
-
name = "The Orion Trail: Realism Edition"
desc = "Learn how our ancestors got to Orion, and try not to die in the process!"
newgame()
@@ -1007,11 +997,9 @@
return
if(!active)
to_chat(user, "There's a little switch on the bottom. It's flipped down.")
-
else
to_chat(user, "There's a little switch on the bottom. It's flipped up.")
-
/obj/item/weapon/orion_ship/attack_self(mob/user) //Minibomb-level explosion. Should probably be more because of how hard it is to survive the machine! Also, just over a 5-second fuse
if(active)
return
@@ -1020,7 +1008,6 @@
log_game("[key_name(usr)] primed an explosive Orion ship for detonation.")
to_chat(user, "You flip the switch on the underside of [src].")
-
active = 1
visible_message("[src] softly beeps and whirs to life!")
playsound(src.loc, 'sound/machines/defib_SaftyOn.ogg', 25, 1)
diff --git a/code/game/machinery/computer/buildandrepair.dm b/code/game/machinery/computer/buildandrepair.dm
index 8262c5819e3..b128b06bf49 100644
--- a/code/game/machinery/computer/buildandrepair.dm
+++ b/code/game/machinery/computer/buildandrepair.dm
@@ -305,7 +305,6 @@
return
else
to_chat(user, "DERP! BUG! Report this (And what you were doing to cause it) to Agouri")
-
return
/obj/item/weapon/circuitboard/rdconsole/attackby(obj/item/I as obj, mob/user as mob, params)
@@ -338,10 +337,8 @@
id = 5
to_chat(user, "Access protocols set to [console_choice].")
-
else
to_chat(user, "Access Denied")
-
return
/obj/structure/computerframe/attackby(obj/item/P as obj, mob/user as mob, params)
@@ -351,20 +348,17 @@
playsound(src.loc, 'sound/items/Ratchet.ogg', 50, 1)
if(do_after(user, 20, target = src))
to_chat(user, "\blue You wrench the frame into place.")
-
src.anchored = 1
src.state = 1
if(istype(P, /obj/item/weapon/weldingtool))
var/obj/item/weapon/weldingtool/WT = P
if(!WT.remove_fuel(0, user))
to_chat(user, "The welding tool must be on to complete this task.")
-
return
playsound(src.loc, 'sound/items/Welder.ogg', 50, 1)
if(do_after(user, 20, target = src))
if(!src || !WT.isOn()) return
to_chat(user, "\blue You deconstruct the frame.")
-
new /obj/item/stack/sheet/metal( src.loc, 5 )
qdel(src)
if(1)
@@ -372,7 +366,6 @@
playsound(src.loc, 'sound/items/Ratchet.ogg', 50, 1)
if(do_after(user, 20, target = src))
to_chat(user, "\blue You unfasten the frame.")
-
src.anchored = 0
src.state = 0
if(istype(P, /obj/item/weapon/circuitboard) && !circuit)
@@ -380,24 +373,20 @@
if(B.board_type == "computer")
playsound(src.loc, 'sound/items/Deconstruct.ogg', 50, 1)
to_chat(user, "\blue You place the circuit board inside the frame.")
-
src.icon_state = "1"
src.circuit = P
user.drop_item()
P.loc = src
else
to_chat(user, "\red This frame does not accept circuit boards of this type!")
-
if(istype(P, /obj/item/weapon/screwdriver) && circuit)
playsound(src.loc, 'sound/items/Screwdriver.ogg', 50, 1)
to_chat(user, "\blue You screw the circuit board into place.")
-
src.state = 2
src.icon_state = "2"
if(istype(P, /obj/item/weapon/crowbar) && circuit)
playsound(src.loc, 'sound/items/Crowbar.ogg', 50, 1)
to_chat(user, "\blue You remove the circuit board.")
-
src.state = 1
src.icon_state = "0"
circuit.loc = src.loc
@@ -406,7 +395,6 @@
if(istype(P, /obj/item/weapon/screwdriver) && circuit)
playsound(src.loc, 'sound/items/Screwdriver.ogg', 50, 1)
to_chat(user, "\blue You unfasten the circuit board.")
-
src.state = 1
src.icon_state = "1"
if(istype(P, /obj/item/stack/cable_coil))
@@ -417,14 +405,12 @@
P:amount -= 5
if(!P:amount) qdel(P)
to_chat(user, "\blue You add cables to the frame.")
-
src.state = 3
src.icon_state = "3"
if(3)
if(istype(P, /obj/item/weapon/wirecutters))
playsound(src.loc, 'sound/items/Wirecutter.ogg', 50, 1)
to_chat(user, "\blue You remove the cables.")
-
src.state = 2
src.icon_state = "2"
var/obj/item/stack/cable_coil/A = new /obj/item/stack/cable_coil( src.loc )
@@ -437,21 +423,18 @@
if(P)
P:use(2)
to_chat(user, "\blue You put in the glass panel.")
-
src.state = 4
src.icon_state = "4"
if(4)
if(istype(P, /obj/item/weapon/crowbar))
playsound(src.loc, 'sound/items/Crowbar.ogg', 50, 1)
to_chat(user, "\blue You remove the glass panel.")
-
src.state = 3
src.icon_state = "3"
new /obj/item/stack/sheet/glass( src.loc, 2 )
if(istype(P, /obj/item/weapon/screwdriver))
playsound(src.loc, 'sound/items/Screwdriver.ogg', 50, 1)
to_chat(user, "\blue You connect the monitor.")
-
var/B = new src.circuit.build_path ( src.loc )
if(circuit.powernet) B:powernet = circuit.powernet
if(circuit.id) B:id = circuit.id
@@ -476,20 +459,17 @@
playsound(src.loc, 'sound/items/Ratchet.ogg', 50, 1)
if(do_after(user, 20, target = src))
to_chat(user, "\blue You wrench the frame into place.")
-
src.anchored = 1
src.state = 1
if(istype(P, /obj/item/weapon/weldingtool))
var/obj/item/weapon/weldingtool/WT = P
if(!WT.remove_fuel(0, user))
to_chat(user, "The welding tool must be on to complete this task.")
-
return
playsound(src.loc, 'sound/items/Welder.ogg', 50, 1)
if(do_after(user, 20, target = src))
if(!src || !WT.isOn()) return
to_chat(user, "\blue You deconstruct the frame.")
-
new /obj/item/stack/sheet/mineral/bananium( src.loc, 5 )
qdel(src)
if(1)
@@ -497,7 +477,6 @@
playsound(src.loc, 'sound/items/Ratchet.ogg', 50, 1)
if(do_after(user, 20, target = src))
to_chat(user, "\blue You unfasten the frame.")
-
src.anchored = 0
src.state = 0
if(istype(P, /obj/item/weapon/circuitboard) && !circuit)
@@ -505,24 +484,20 @@
if(B.board_type == "honkcomputer")
playsound(src.loc, 'sound/items/Deconstruct.ogg', 50, 1)
to_chat(user, "\blue You place the circuit board inside the frame.")
-
src.icon_state = "1"
src.circuit = P
user.drop_item()
P.loc = src
else
to_chat(user, "\red This frame does not accept circuit boards of this type!")
-
if(istype(P, /obj/item/weapon/screwdriver) && circuit)
playsound(src.loc, 'sound/items/Screwdriver.ogg', 50, 1)
to_chat(user, "\blue You screw the circuit board into place.")
-
src.state = 2
src.icon_state = "2"
if(istype(P, /obj/item/weapon/crowbar) && circuit)
playsound(src.loc, 'sound/items/Crowbar.ogg', 50, 1)
to_chat(user, "\blue You remove the circuit board.")
-
src.state = 1
src.icon_state = "0"
circuit.loc = src.loc
@@ -531,7 +506,6 @@
if(istype(P, /obj/item/weapon/screwdriver) && circuit)
playsound(src.loc, 'sound/items/Screwdriver.ogg', 50, 1)
to_chat(user, "\blue You unfasten the circuit board.")
-
src.state = 1
src.icon_state = "1"
if(istype(P, /obj/item/stack/cable_coil))
@@ -542,14 +516,12 @@
P:amount -= 5
if(!P:amount) qdel(P)
to_chat(user, "\blue You add cables to the frame.")
-
src.state = 3
src.icon_state = "3"
if(3)
if(istype(P, /obj/item/weapon/wirecutters))
playsound(src.loc, 'sound/items/Wirecutter.ogg', 50, 1)
to_chat(user, "\blue You remove the cables.")
-
src.state = 2
src.icon_state = "2"
var/obj/item/stack/cable_coil/A = new /obj/item/stack/cable_coil( src.loc )
@@ -562,21 +534,18 @@
if(P)
P:use(2)
to_chat(user, "\blue You put in the glass panel.")
-
src.state = 4
src.icon_state = "4"
if(4)
if(istype(P, /obj/item/weapon/crowbar))
playsound(src.loc, 'sound/items/Crowbar.ogg', 50, 1)
to_chat(user, "\blue You remove the glass panel.")
-
src.state = 3
src.icon_state = "3"
new /obj/item/stack/sheet/glass( src.loc, 2 )
if(istype(P, /obj/item/weapon/screwdriver))
playsound(src.loc, 'sound/items/Screwdriver.ogg', 50, 1)
to_chat(user, "\blue You connect the monitor.")
-
var/B = new src.circuit.build_path ( src.loc )
if(circuit.powernet) B:powernet = circuit.powernet
if(circuit.id) B:id = circuit.id
diff --git a/code/game/machinery/computer/camera.dm b/code/game/machinery/computer/camera.dm
index aa061a53a4f..0311ac200fb 100644
--- a/code/game/machinery/computer/camera.dm
+++ b/code/game/machinery/computer/camera.dm
@@ -62,7 +62,6 @@
if(!emagged)
emagged = 1
to_chat(user, "\blue You have authorized full network access!")
-
ui_interact(user)
else
ui_interact(user)
diff --git a/code/game/machinery/computer/camera_advanced.dm b/code/game/machinery/computer/camera_advanced.dm
index 62828afa084..44fe97e0915 100644
--- a/code/game/machinery/computer/camera_advanced.dm
+++ b/code/game/machinery/computer/camera_advanced.dm
@@ -56,7 +56,6 @@
else
to_chat(user, "The console is already in use!")
-
/mob/camera/aiEye/remote
name = "Inactive Camera Eye"
var/sprint = 10
diff --git a/code/game/machinery/computer/card.dm b/code/game/machinery/computer/card.dm
index 91b5092db88..7af28cc4f73 100644
--- a/code/game/machinery/computer/card.dm
+++ b/code/game/machinery/computer/card.dm
@@ -102,21 +102,18 @@ var/time_last_changed_position = 0
if(scan)
to_chat(usr, "You remove \the [scan] from \the [src].")
-
scan.loc = get_turf(src)
if(!usr.get_active_hand())
usr.put_in_hands(scan)
scan = null
else if(modify)
to_chat(usr, "You remove \the [modify] from \the [src].")
-
modify.loc = get_turf(src)
if(!usr.get_active_hand())
usr.put_in_hands(modify)
modify = null
else
to_chat(usr, "There is nothing to remove from the console.")
-
return
/obj/machinery/computer/card/attackby(obj/item/weapon/card/id/id_card, mob/user, params)
@@ -326,7 +323,6 @@ var/time_last_changed_position = 0
break
if(!jobdatum)
to_chat(usr, "\red No log exists for this job: [t1]")
-
return
access = jobdatum.get_access()
diff --git a/code/game/machinery/computer/cloning.dm b/code/game/machinery/computer/cloning.dm
index 1252d1617f3..4e51c1e1dad 100644
--- a/code/game/machinery/computer/cloning.dm
+++ b/code/game/machinery/computer/cloning.dm
@@ -88,7 +88,6 @@
W.loc = src
src.diskette = W
to_chat(user, "You insert [W].")
-
nanomanager.update_uis(src)
return
else if(istype(W, /obj/item/device/multitool))
@@ -100,7 +99,6 @@
P.connected = src
P.name = "[initial(P.name)] #[pods.len]"
to_chat(user, "You connect [P] to [src].")
-
else
..()
return
@@ -330,7 +328,6 @@
return
to_chat(selected, 'sound/machines/chime.ogg')//probably not the best sound but I think it's reasonable
-
var/answer = alert(selected,"Do you want to return to life?","Cloning","Yes","No")
if(answer != "No" && pod.growclone(C))
temp = "Initiating cloning cycle..."
diff --git a/code/game/machinery/computer/communications.dm b/code/game/machinery/computer/communications.dm
index 4973d4cb32b..90b415c99bf 100644
--- a/code/game/machinery/computer/communications.dm
+++ b/code/game/machinery/computer/communications.dm
@@ -48,7 +48,6 @@
else
if(message)
to_chat(user, "Access denied.")
-
return 0
/obj/machinery/computer/communications/Topic(href, href_list)
@@ -57,13 +56,11 @@
if ((!(src.z in config.station_levels) && !(src.z in config.admin_levels)))
to_chat(usr, "Unable to establish a connection: You're too far away from the station!")
-
return 1
if(href_list["login"])
if(!ishuman(usr))
to_chat(usr, "Access denied.")
-
return
var/mob/living/carbon/human/M = usr
var/obj/item/card = M.get_active_hand()
@@ -100,7 +97,6 @@
if("newalertlevel")
if(isAI(usr) || isrobot(usr))
to_chat(usr, "Firewalls prevent you from changing the alert level.")
-
nanomanager.update_uis(src)
return 1
tmp_alertlevel = text2num(href_list["level"])
@@ -129,18 +125,15 @@
tmp_alertlevel = 0
else
to_chat(usr, "You are not authorized to do this.")
-
tmp_alertlevel = 0
setMenuState(usr,COMM_SCREEN_MAIN)
else
to_chat(usr, "You need to swipe your ID.")
-
if("announce")
if(is_authenticated(usr) == 2)
if(message_cooldown)
to_chat(usr, "Please allow at least one minute to pass between announcements.")
-
nanomanager.update_uis(src)
return
var/input = input(usr, "Please write a message to announce to the station crew.", "Priority Announcement")
@@ -166,7 +159,6 @@
if("cancelshuttle")
if(isAI(usr) || isrobot(usr))
to_chat(usr, "Firewalls prevent you from recalling the shuttle.")
-
nanomanager.update_uis(src)
return 1
var/response = alert("Are you sure you wish to recall the shuttle?", "Confirm", "Yes", "No")
@@ -224,7 +216,6 @@
if(is_authenticated(usr) == 2)
if(centcomm_message_cooldown)
to_chat(usr, "Arrays recycling. Please stand by.")
-
nanomanager.update_uis(src)
return
var/input = stripped_input(usr, "Please enter the reason for requesting the nuclear self-destruct codes. Misuse of the nuclear request system will not be tolerated under any circumstances. Transmission does not guarantee a response.", "Self Destruct Code Request.","") as text|null
@@ -233,7 +224,6 @@
return
Nuke_request(input, usr)
to_chat(usr, "Request sent.")
-
log_say("[key_name(usr)] has requested the nuclear codes from Centcomm")
priority_announcement.Announce("The codes for the on-station nuclear self-destruct have been requested by [usr]. Confirmation or denial of this request will be sent shortly.", "Nuclear Self Destruct Codes Requested",'sound/AI/commandreport.ogg')
centcomm_message_cooldown = 1
@@ -245,7 +235,6 @@
if(is_authenticated(usr) == 2)
if(centcomm_message_cooldown)
to_chat(usr, "Arrays recycling. Please stand by.")
-
nanomanager.update_uis(src)
return
var/input = stripped_input(usr, "Please choose a message to transmit to Centcomm via quantum entanglement. Please be aware that this process is very expensive, and abuse will lead to... termination. Transmission does not guarantee a response.", "To abort, send an empty message.", "") as text|null
@@ -254,7 +243,6 @@
return
Centcomm_announce(input, usr)
to_chat(usr, "Message transmitted.")
-
log_say("[key_name(usr)] has made a Centcomm announcement: [input]")
centcomm_message_cooldown = 1
spawn(6000)//10 minute cooldown
@@ -266,7 +254,6 @@
if((is_authenticated(usr) == 2) && (src.emagged))
if(centcomm_message_cooldown)
to_chat(usr, "Arrays recycling. Please stand by.")
-
nanomanager.update_uis(src)
return
var/input = stripped_input(usr, "Please choose a message to transmit to \[ABNORMAL ROUTING CORDINATES\] via quantum entanglement. Please be aware that this process is very expensive, and abuse will lead to... termination. Transmission does not guarantee a response.", "To abort, send an empty message.", "") as text|null
@@ -275,7 +262,6 @@
return
Syndicate_announce(input, usr)
to_chat(usr, "Message transmitted.")
-
log_say("[key_name(usr)] has made a Syndicate announcement: [input]")
centcomm_message_cooldown = 1
spawn(6000)//10 minute cooldown
@@ -284,7 +270,6 @@
if("RestoreBackup")
to_chat(usr, "Backup routing data restored!")
-
src.emagged = 0
setMenuState(usr,COMM_SCREEN_MAIN)
@@ -295,7 +280,6 @@
if(!emagged)
src.emagged = 1
to_chat(user, "You scramble the communication routing circuits!")
-
nanomanager.update_uis(src)
/obj/machinery/computer/communications/attack_ai(var/mob/user as mob)
@@ -310,7 +294,6 @@
if (!(src.z in list(ZLEVEL_STATION, ZLEVEL_CENTCOMM)))
to_chat(user, "Unable to establish a connection: You're too far away from the station!")
-
return
ui_interact(user)
@@ -415,22 +398,18 @@
/proc/call_shuttle_proc(var/mob/user, var/reason)
if(sent_strike_team == 1)
to_chat(user, "Central Command will not allow the shuttle to be called. Consider all contracts terminated.")
-
return
if(shuttle_master.emergencyNoEscape)
to_chat(user, "The emergency shuttle may not be sent at this time. Please try again later.")
-
return
if(shuttle_master.emergency.mode > SHUTTLE_ESCAPE)
to_chat(user, "The emergency shuttle may not be called while returning to Central Command.")
-
return
if(ticker.mode.name == "blob")
to_chat(user, "Under directive 7-10, [station_name()] is quarantined until further notice.")
-
return
shuttle_master.requestEvac(user, reason)
@@ -444,22 +423,18 @@
if(!force)
if(shuttle_master.emergencyNoEscape)
to_chat(user, "Central Command does not currently have a shuttle available in your sector. Please try again later.")
-
return
if(sent_strike_team == 1)
to_chat(user, "Central Command will not allow the shuttle to be called. Consider all contracts terminated.")
-
return
if(world.time < 54000) // 30 minute grace period to let the game get going
to_chat(user, "The shuttle is refueling. Please wait another [round((54000-world.time)/600)] minutes before trying again.")
-
return
if(ticker.mode.name == "epidemic")
to_chat(user, "Under directive 7-10, [station_name()] is quarantined until further notice.")
-
return
if(seclevel2num(get_security_level()) >= SEC_LEVEL_RED) // There is a serious threat we gotta move no time to give them five minutes.
diff --git a/code/game/machinery/computer/computer.dm b/code/game/machinery/computer/computer.dm
index 9d503300cb0..8524cd85754 100644
--- a/code/game/machinery/computer/computer.dm
+++ b/code/game/machinery/computer/computer.dm
@@ -121,13 +121,11 @@
C.loc = src.loc
if (src.stat & BROKEN)
to_chat(user, "\blue The broken glass falls out.")
-
new /obj/item/weapon/shard(loc)
A.state = 3
A.icon_state = "3"
else
to_chat(user, "\blue You disconnect the monitor.")
-
A.state = 4
A.icon_state = "4"
qdel(src)
diff --git a/code/game/machinery/computer/honkputer.dm b/code/game/machinery/computer/honkputer.dm
index ab0c29a35aa..8ccd36fc780 100644
--- a/code/game/machinery/computer/honkputer.dm
+++ b/code/game/machinery/computer/honkputer.dm
@@ -22,7 +22,6 @@
return 1
if (!(src.z in config.station_levels))
to_chat(usr, "\red Unable to establish a connection: \black You're too far away from the station!")
-
return
usr.set_machine(src)
@@ -48,14 +47,12 @@
if(src.authenticated==1)
if(message_cooldown)
to_chat(usr, "Arrays recycling. Please stand by.")
-
return
var/input = stripped_input(usr, "Please choose a message to transmit to your HONKbrothers on the homeworld. Transmission does not guarantee a response.", "To abort, send an empty message.", "")
if(!input || !(usr in view(1,src)))
return
HONK_announce(input, usr)
to_chat(usr, "Message transmitted.")
-
log_say("[key_name(usr)] has made a HONKplanet announcement: [input]")
message_cooldown = 1
spawn(6000)//10 minute cooldown
@@ -68,13 +65,11 @@
src.emagged = 1
to_chat(user, "You scramble the login circuits, allowing anyone to use the console!")
-
/obj/machinery/computer/HONKputer/attack_hand(var/mob/user as mob)
if(..())
return
if (src.z > 6)
to_chat(user, "\red Unable to establish a connection: \black You're too far away from the station!")
-
return
user.set_machine(src)
@@ -82,7 +77,6 @@
if (istype(user, /mob/living/silicon))
to_chat(user, "This console is not networked to the rest of the grid.")
-
return
switch(src.state)
@@ -111,13 +105,11 @@
C.loc = src.loc
if (src.stat & BROKEN)
to_chat(user, "\blue The broken glass falls out.")
-
new /obj/item/weapon/shard( src.loc )
A.state = 3
A.icon_state = "3"
else
to_chat(user, "\blue You disconnect the monitor.")
-
A.state = 4
A.icon_state = "4"
qdel(src)
diff --git a/code/game/machinery/computer/law.dm b/code/game/machinery/computer/law.dm
index 5c0a8774183..c84690cfa64 100644
--- a/code/game/machinery/computer/law.dm
+++ b/code/game/machinery/computer/law.dm
@@ -23,17 +23,14 @@
opened = !opened
if(opened)
to_chat(usr, "\blue The access panel is now open.")
-
else
to_chat(usr, "\blue The access panel is now closed.")
-
return
attackby(obj/item/weapon/O as obj, mob/user as mob, params)
if (user.z > 6)
to_chat(user, "\red Unable to establish a connection: \black You're too far away from the station!")
-
return
if(istype(O, /obj/item/weapon/aiModule))
var/datum/game_mode/nations/mode = get_nations_mode()
@@ -43,7 +40,6 @@
else
if(mode.kickoff)
to_chat(user, "You have been locked out from modifying the AI's laws!")
-
else
..()
@@ -51,21 +47,17 @@
attack_hand(var/mob/user as mob)
if(src.stat & NOPOWER)
to_chat(usr, "The upload computer has no power!")
-
return
if(src.stat & BROKEN)
to_chat(usr, "The upload computer is broken!")
-
return
src.current = select_active_ai(user)
if (!src.current)
to_chat(usr, "No active AIs detected.")
-
else
to_chat(usr, "[src.current.name] selected for law changes.")
-
return
attack_ghost(user as mob)
@@ -88,7 +80,6 @@
else
if(mode.kickoff)
to_chat(user, "You have been locked out from modifying the borg's laws!")
-
else
return ..()
@@ -96,21 +87,17 @@
attack_hand(var/mob/user as mob)
if(src.stat & NOPOWER)
to_chat(usr, "The upload computer has no power!")
-
return
if(src.stat & BROKEN)
to_chat(usr, "The upload computer is broken!")
-
return
src.current = freeborg()
if (!src.current)
to_chat(usr, "No free cyborgs detected.")
-
else
to_chat(usr, "[src.current.name] selected for law changes.")
-
return
attack_ghost(user as mob)
diff --git a/code/game/machinery/computer/message.dm b/code/game/machinery/computer/message.dm
index 89e0a8badb2..a56fe597b13 100644
--- a/code/game/machinery/computer/message.dm
+++ b/code/game/machinery/computer/message.dm
@@ -46,7 +46,6 @@
if(isscrewdriver(O) && emag)
//Stops people from just unscrewing the monitor and putting it back to get the console working again.
to_chat(user, "It is too hot to mess with!")
-
return
..()
@@ -75,7 +74,6 @@
else
to_chat(user, "A no server error appears on the screen.")
-
/obj/machinery/computer/message_monitor/update_icon()
if(emag || hacking)
icon_screen = hack_icon
@@ -299,11 +297,9 @@
/obj/machinery/computer/message_monitor/proc/BruteForce(mob/user as mob)
if(isnull(linkedServer))
to_chat(user, "Could not complete brute-force: Linked Server Disconnected!")
-
else
var/currentKey = src.linkedServer.decryptkey
to_chat(user, "Brute-force completed! The key is '[currentKey]'.")
-
src.hacking = 0
src.icon_screen = normal_icon
src.screen = 0 // Return the screen back to normal
@@ -524,7 +520,6 @@
// to_chat(usr, href_list["select"])
-
if (href_list["back"])
src.screen = 0
// View chat room list
diff --git a/code/game/machinery/computer/pod.dm b/code/game/machinery/computer/pod.dm
index 5c07b2ed14e..38e6c139f2e 100644
--- a/code/game/machinery/computer/pod.dm
+++ b/code/game/machinery/computer/pod.dm
@@ -277,7 +277,6 @@
/obj/machinery/computer/pod/old/syndicate/attack_hand(var/mob/user as mob)
if(!allowed(user))
to_chat(user, "Access Denied")
-
return
else
..()
diff --git a/code/game/machinery/computer/prisoner.dm b/code/game/machinery/computer/prisoner.dm
index d20a23d2de1..7ae15a086f2 100644
--- a/code/game/machinery/computer/prisoner.dm
+++ b/code/game/machinery/computer/prisoner.dm
@@ -93,7 +93,6 @@
inserted_id = I
else
to_chat(usr, "\red No valid ID.")
-
if("1")
inserted_id.loc = get_step(src,get_turf(usr))
inserted_id = null
@@ -121,7 +120,6 @@
else
to_chat(usr, "Unauthorized access.")
-
else if(href_list["warn"])
var/warning = sanitize(copytext(input(usr,"Message:","Enter your message here!",""),1,MAX_MESSAGE_LEN))
if(!warning) return
@@ -130,7 +128,6 @@
var/mob/living/carbon/R = I.imp_in
to_chat(R, "You hear a voice in your head saying: '[warning]'")
-
src.add_fingerprint(usr)
src.updateUsrDialog()
return
diff --git a/code/game/machinery/computer/robot.dm b/code/game/machinery/computer/robot.dm
index f6ea30cc353..ccdd9b3f276 100644
--- a/code/game/machinery/computer/robot.dm
+++ b/code/game/machinery/computer/robot.dm
@@ -28,7 +28,6 @@
to_chat(user, "You have been locked out from this console!")
-
/obj/machinery/computer/robotics/proc/is_authenticated(var/mob/user as mob)
if(isobserver(user) && check_rights(R_ADMIN, 0, user))
return 1
@@ -61,7 +60,6 @@
var/mob/user = usr
if(!is_authenticated(user))
to_chat(user, "Access denied.")
-
return
// Destroys the cyborg
@@ -71,12 +69,10 @@
return
if(isAI(user) && (target.connected_ai != user))
to_chat(user, "Access Denied. This robot is not linked to you.")
-
return
// Cyborgs may blow up themselves via the console
if(isrobot(user) && user != target)
to_chat(user, "Access Denied.")
-
return
var/choice = input("Really detonate [target.name]?") in list ("Yes", "No")
if(choice != "Yes")
@@ -87,16 +83,13 @@
// Antagonistic cyborgs? Left here for downstream
if(target.mind && target.mind.special_role && target.emagged)
to_chat(target, "Extreme danger. Termination codes detected. Scrambling security codes and automatic AI unlink triggered.")
-
target.ResetSecurityCodes()
else
message_admins("[key_name_admin(usr)] detonated [key_name_admin(target)] (JMP)!")
log_game("\[key_name(usr)] detonated [key_name(target)]!")
to_chat(target, "Self-destruct command received.")
-
if(target.connected_ai)
to_chat(target.connected_ai, "
ALERT - Cyborg detonation detected: [target.name]
")
-
spawn(10)
target.self_destruct()
@@ -108,12 +101,10 @@
if(isAI(user) && (target.connected_ai != user))
to_chat(user, "Access Denied. This robot is not linked to you.")
-
return
if(isrobot(user))
to_chat(user, "Access Denied.")
-
return
var/choice = input("Really [target.lockcharge ? "unlock" : "lockdown"] [target.name] ?") in list ("Yes", "No")
@@ -128,11 +119,9 @@
target.canmove = !target.canmove
target.lockcharge = !target.lockcharge
to_chat(target, "[!target.lockcharge ? "Your lockdown has been lifted!" : "You have been locked down!"]")
-
if(target.connected_ai)
to_chat(target.connected_ai, "[!target.lockcharge ? "NOTICE - Cyborg lockdown lifted" : "ALERT - Cyborg lockdown detected"]: [target.name]
")
-
// Remotely hacks the cyborg. Only antag AIs can do this and only to linked cyborgs.
else if (href_list["hack"])
var/mob/living/silicon/robot/target = get_cyborg_by_name(href_list["hack"])
@@ -142,17 +131,14 @@
// Antag AI checks
if(!istype(user, /mob/living/silicon/ai) || !(user.mind.special_role && user.mind.original == user))
to_chat(user, "Access Denied.")
-
return
if(target.connected_ai != user)
to_chat(user, "Access Denied. This robot is not linked to you.")
-
return
if(target.emagged)
to_chat(user, "Robot is already hacked.")
-
return
var/choice = input("Really hack [target.name]? This cannot be undone.") in list("Yes", "No")
@@ -167,27 +153,22 @@
target.emagged = 1
to_chat(target, "Failsafe protocols overriden. New tools available.")
-
// Arms the emergency self-destruct system
else if(href_list["arm"])
if(istype(user, /mob/living/silicon))
to_chat(user, "Access Denied.")
-
return
safety = !safety
to_chat(user, "You [safety ? "disarm" : "arm"] the emergency self destruct.")
-
// Destroys all accessible cyborgs if safety is disabled
else if(href_list["nuke"])
if(istype(user, /mob/living/silicon))
to_chat(user, "Access Denied")
-
return
if(safety)
to_chat(user, "Self-destruct aborted - safety active")
-
return
message_admins("[key_name_admin(usr)] detonated all cyborgs!")
@@ -200,10 +181,8 @@
if(R.scrambledcodes)
continue
to_chat(R, "Self-destruct command received.")
-
if(R.connected_ai)
to_chat(R.connected_ai, "
ALERT - Cyborg detonation detected: [R.name]
")
-
spawn(10)
R.self_destruct()
diff --git a/code/game/machinery/computer/salvage_ship.dm b/code/game/machinery/computer/salvage_ship.dm
index ffbef848e08..c0693c810d3 100644
--- a/code/game/machinery/computer/salvage_ship.dm
+++ b/code/game/machinery/computer/salvage_ship.dm
@@ -47,7 +47,6 @@
/obj/machinery/computer/salvage_ship/attack_hand(mob/user as mob)
if(!allowed(user))
to_chat(user, "\red Access Denied")
-
return
user.set_machine(src)
diff --git a/code/game/machinery/computer/security.dm b/code/game/machinery/computer/security.dm
index e7fc19e9a3c..2a074a9880b 100644
--- a/code/game/machinery/computer/security.dm
+++ b/code/game/machinery/computer/security.dm
@@ -32,7 +32,6 @@
O.loc = src
scan = O
to_chat(user, "You insert [O].")
-
..()
/obj/machinery/computer/secure_data/attack_ai(mob/user as mob)
@@ -44,7 +43,6 @@
return
if (src.z > 6)
to_chat(user, "\red Unable to establish a connection: \black You're too far away from the station!")
-
return
var/dat
diff --git a/code/game/machinery/computer/skills.dm b/code/game/machinery/computer/skills.dm
index c273102481d..d2f44de6011 100644
--- a/code/game/machinery/computer/skills.dm
+++ b/code/game/machinery/computer/skills.dm
@@ -31,7 +31,6 @@
O.loc = src
scan = O
to_chat(user, "You insert [O].")
-
..()
/obj/machinery/computer/skills/attack_ai(mob/user as mob)
@@ -43,7 +42,6 @@
return
if (src.z > 6)
to_chat(user, "\red Unable to establish a connection: \black You're too far away from the station!")
-
return
var/dat
diff --git a/code/game/machinery/computer/specops_shuttle.dm b/code/game/machinery/computer/specops_shuttle.dm
index be2531b76d0..d74e27bc702 100644
--- a/code/game/machinery/computer/specops_shuttle.dm
+++ b/code/game/machinery/computer/specops_shuttle.dm
@@ -91,7 +91,6 @@ var/specops_shuttle_timeleft = 0
var/mob/M = locate(/mob) in T
to_chat(M, "\red You have arrived at Central Command. Operation has ended!")
-
specops_shuttle_at_station = 0
for(var/obj/machinery/computer/specops_shuttle/S in world)
@@ -139,7 +138,6 @@ var/specops_shuttle_timeleft = 0
if (!specops_can_move())
to_chat(usr, "\red The Special Operations shuttle is unable to leave.")
-
return
//Begin Marauder launchpad.
@@ -235,7 +233,6 @@ var/specops_shuttle_timeleft = 0
var/mob/M = locate(/mob) in T
to_chat(M, "\red You have arrived to [station_name]. Commence operation!")
-
for(var/obj/machinery/computer/specops_shuttle/S in world)
S.specops_shuttle_timereset = world.time + SPECOPS_RETURN_DELAY
@@ -251,26 +248,22 @@ var/specops_shuttle_timeleft = 0
/obj/machinery/computer/specops_shuttle/attack_ai(var/mob/user as mob)
to_chat(user, "\red Access Denied.")
-
return 1
/obj/machinery/computer/specops_shuttle/attackby(I as obj, user as mob, params)
if(istype(I,/obj/item/weapon/card/emag))
to_chat(user, "\blue The electronic systems in this console are far too advanced for your primitive hacking peripherals.")
-
else
return attack_hand(user)
/obj/machinery/computer/specops_shuttle/attack_hand(var/mob/user as mob)
if(!allowed(user))
to_chat(user, "\red Access Denied.")
-
return
//Commented out so admins can do shenanigans at their leisure. Also makes the force-spawned admin ERTs able to use the shuttle.
// if (sent_strike_team == 0 && send_emergency_team == 0)
// to_chat(usr, "\red The strike team has not yet deployed.")
-
// return
if(..())
@@ -302,18 +295,14 @@ var/specops_shuttle_timeleft = 0
if (!specops_can_move())
to_chat(usr, "\blue Central Command will not allow the Special Operations shuttle to return yet.")
-
if(world.timeofday <= specops_shuttle_timereset)
if (((world.timeofday - specops_shuttle_timereset)/10) > 60)
to_chat(usr, "\blue [-((world.timeofday - specops_shuttle_timereset)/10)/60] minutes remain!")
-
to_chat(usr, "\blue [-(world.timeofday - specops_shuttle_timereset)/10] seconds remain!")
-
return
to_chat(usr, "\blue The Special Operations shuttle will arrive at Central Command in [(SPECOPS_MOVETIME/10)] seconds.")
-
temp += "Shuttle departing.
OK"
updateUsrDialog()
@@ -327,12 +316,10 @@ var/specops_shuttle_timeleft = 0
if (!specops_can_move())
to_chat(usr, "\red The Special Operations shuttle is unable to leave.")
-
return
to_chat(usr, "\blue The Special Operations shuttle will arrive on [station_name] in [(SPECOPS_MOVETIME/10)] seconds.")
-
temp += "Shuttle departing.
OK"
updateUsrDialog()
diff --git a/code/game/machinery/computer/store.dm b/code/game/machinery/computer/store.dm
index 1c2bb4e52c9..c8ae8741288 100644
--- a/code/game/machinery/computer/store.dm
+++ b/code/game/machinery/computer/store.dm
@@ -141,9 +141,7 @@ td.cost.toomuch {
return
if(!centcomm_store.PlaceOrder(usr,itemID))
to_chat(usr, "\red Unable to charge your account.")
-
else
to_chat(usr, "\blue You've successfully purchased the item. It should be in your hands or on the floor.")
-
src.updateUsrDialog()
return
diff --git a/code/game/machinery/computer/syndicate_specops_shuttle.dm b/code/game/machinery/computer/syndicate_specops_shuttle.dm
index 97dbc32a7ac..16de635b0e7 100644
--- a/code/game/machinery/computer/syndicate_specops_shuttle.dm
+++ b/code/game/machinery/computer/syndicate_specops_shuttle.dm
@@ -61,7 +61,6 @@ var/syndicate_elite_shuttle_timeleft = 0
if (!syndicate_elite_can_move())
to_chat(usr, "\red The Syndicate Elite shuttle is unable to leave.")
-
return
sleep(600)
@@ -175,7 +174,6 @@ var/syndicate_elite_shuttle_timeleft = 0
var/mob/M = locate(/mob) in T
to_chat(M, "\red You have arrived to [station_name]. Commence operation!")
-
/proc/syndicate_elite_can_move()
if(syndicate_elite_shuttle_moving_to_station || syndicate_elite_shuttle_moving_to_mothership) return 0
else return 1
@@ -185,25 +183,21 @@ var/syndicate_elite_shuttle_timeleft = 0
/obj/machinery/computer/syndicate_elite_shuttle/attack_ai(var/mob/user as mob)
to_chat(user, "\red Access Denied.")
-
return 1
/obj/machinery/computer/syndicate_elite_shuttle/attackby(I as obj, user as mob, params)
if(istype(I,/obj/item/weapon/card/emag))
to_chat(user, "\blue The electronic systems in this console are far too advanced for your primitive hacking peripherals.")
-
else
return attack_hand(user)
/obj/machinery/computer/syndicate_elite_shuttle/attack_hand(var/mob/user as mob)
if(!allowed(user))
to_chat(user, "\red Access Denied.")
-
return
// if (sent_syndicate_strike_team == 0)
// to_chat(usr, "\red The strike team has not yet deployed.")
-
// return
if(..())
@@ -234,7 +228,6 @@ var/syndicate_elite_shuttle_timeleft = 0
if(!syndicate_elite_shuttle_at_station|| syndicate_elite_shuttle_moving_to_station || syndicate_elite_shuttle_moving_to_mothership) return
to_chat(usr, "\blue The Syndicate will not allow the Elite Squad shuttle to return.")
-
return
else if (href_list["sendtostation"])
@@ -242,12 +235,10 @@ var/syndicate_elite_shuttle_timeleft = 0
if (!specops_can_move())
to_chat(usr, "\red The Syndicate Elite shuttle is unable to leave.")
-
return
to_chat(usr, "\blue The Syndicate Elite shuttle will arrive on [station_name] in [(SYNDICATE_ELITE_MOVETIME/10)] seconds.")
-
temp = "Shuttle departing.
OK"
updateUsrDialog()
diff --git a/code/game/machinery/computer/telecrystalconsoles.dm b/code/game/machinery/computer/telecrystalconsoles.dm
index 38d5c359e2d..cc5934d9808 100644
--- a/code/game/machinery/computer/telecrystalconsoles.dm
+++ b/code/game/machinery/computer/telecrystalconsoles.dm
@@ -35,7 +35,6 @@ var/list/possible_uplinker_IDs = list("Alfa","Bravo","Charlie","Delta","Echo","F
if(uplinkholder)
to_chat(user, "The [src] already has an uplink in it.")
-
return
if(O.hidden_uplink)
@@ -51,7 +50,6 @@ var/list/possible_uplinker_IDs = list("Alfa","Bravo","Charlie","Delta","Echo","F
-
/obj/machinery/computer/telecrystals/uplinker/update_icon()
overlays.Cut()
..()
diff --git a/code/game/machinery/constructable_frame.dm b/code/game/machinery/constructable_frame.dm
index ecedaa9b6ce..8886c865722 100644
--- a/code/game/machinery/constructable_frame.dm
+++ b/code/game/machinery/constructable_frame.dm
@@ -60,7 +60,6 @@
/obj/machinery/constructable_frame/machine_frame/attackby(obj/item/P as obj, mob/user as mob, params)
if(P.crit_fail)
to_chat(user, "This part is faulty, you cannot add this to the machine!")
-
return
switch(state)
if(1)
@@ -69,27 +68,22 @@
if(C.amount >= 5)
playsound(src.loc, 'sound/items/Deconstruct.ogg', 50, 1)
to_chat(user, "You start to add cables to the frame.")
-
if(do_after(user, 20, target = src))
if(C.amount >= 5 && state == 1)
C.use(5)
to_chat(user, "You add cables to the frame.")
-
state = 2
icon_state = "box_1"
else
to_chat(user, "You need five length of cable to wire the frame.")
-
return
else if(istype(P, /obj/item/stack/sheet/glass))
var/obj/item/stack/sheet/glass/G = P
if(G.amount<5)
to_chat(user, "\red You do not have enough glass to build a display case.")
-
return
G.use(5)
to_chat(user, "\blue You add the glass to the frame.")
-
playsound(get_turf(src), 'sound/items/Deconstruct.ogg', 50, 1)
new /obj/structure/displaycase_frame(src.loc)
qdel(src)
@@ -98,7 +92,6 @@
if(istype(P, /obj/item/weapon/wrench))
playsound(src.loc, 'sound/items/Ratchet.ogg', 75, 1)
to_chat(user, "You dismantle the frame.")
-
new /obj/item/stack/sheet/metal(src.loc, 5)
qdel(src)
if(2)
@@ -107,7 +100,6 @@
if(B.board_type == "machine")
playsound(src.loc, 'sound/items/Deconstruct.ogg', 50, 1)
to_chat(user, "You add the circuit board to the frame.")
-
circuit = P
user.drop_item()
P.loc = src
@@ -119,11 +111,9 @@
update_req_desc()
else
to_chat(user, "This frame does not accept circuit boards of this type!")
-
if(istype(P, /obj/item/weapon/wirecutters))
playsound(src.loc, 'sound/items/Wirecutter.ogg', 50, 1)
to_chat(user, "You remove the cables.")
-
state = 1
icon_state = "box_0"
var/obj/item/stack/cable_coil/A = new /obj/item/stack/cable_coil(src.loc,5)
@@ -137,10 +127,8 @@
circuit = null
if(components.len == 0)
to_chat(user, "You remove the circuit board.")
-
else
to_chat(user, "You remove the circuit board and other components.")
-
for(var/obj/item/I in components)
I.loc = src.loc
desc = initial(desc)
@@ -190,7 +178,6 @@
for(var/obj/item/weapon/stock_parts/part in added_components)
components += part
to_chat(user, "[part.name] applied.")
-
replacer.play_rped_sound()
update_req_desc()
@@ -221,7 +208,6 @@
return 1
if(!success)
to_chat(user, "You cannot add that to the machine!")
-
return 0
//Machine Frame Circuit Boards
@@ -260,7 +246,6 @@ to destroy them and players will be able to make replacements.
build_path = typepath
name = "circuit board ([names_paths[build_path]] Vendor)"
to_chat(user, "You set the board to [names_paths[build_path]].")
-
req_components = list(text2path("/obj/item/weapon/vending_refill/[copytext("[build_path]", 24)]") = 3)
/obj/item/weapon/circuitboard/smes
@@ -320,13 +305,11 @@ to destroy them and players will be able to make replacements.
build_path = /obj/machinery/atmospherics/unary/heat_reservoir/heater
name = "circuit board (Heater)"
to_chat(user, "You set the board to heating.")
-
else
build_path = /obj/machinery/atmospherics/unary/cold_sink/freezer
name = "circuit board (Freezer)"
to_chat(user, "You set the board to cooling.")
-
/obj/item/weapon/circuitboard/biogenerator
name = "circuit board (Biogenerator)"
build_path = /obj/machinery/biogenerator
diff --git a/code/game/machinery/cryo.dm b/code/game/machinery/cryo.dm
index 3b8c594ac4c..6a1f0721253 100644
--- a/code/game/machinery/cryo.dm
+++ b/code/game/machinery/cryo.dm
@@ -98,19 +98,16 @@
return
if(occupant)
to_chat(user, "\blue The cryo cell is already occupied!")
-
return
var/mob/living/L = O
if(!istype(L) || L.buckled)
return
if(L.abiotic())
to_chat(user, "\red Subject cannot have abiotic items on.")
-
return
for(var/mob/living/carbon/slime/M in range(1,L))
if(M.Victim == L)
to_chat(usr, "[L.name] will not fit into the cryo cell because they have a slime latched onto their head.")
-
return
if(put_mob(L))
if(L == user)
@@ -165,7 +162,6 @@
if(panel_open)
to_chat(usr, "\blue Close the maintenance panel first.")
-
return
ui_interact(user)
@@ -278,11 +274,9 @@
if(istype(G, /obj/item/weapon/reagent_containers/glass))
if(beaker)
to_chat(user, "\red A beaker is already loaded into the machine.")
-
return
if(!user.drop_item())
to_chat(user, "The [G] is stuck to you!")
-
return
G.forceMove(src)
beaker = G
@@ -292,7 +286,6 @@
if (istype(G, /obj/item/weapon/screwdriver))
if(occupant || on)
to_chat(user, "The maintenance panel is locked.")
-
return
default_deconstruction_screwdriver(user, "pod0-o", "pod0", G)
return
@@ -305,14 +298,12 @@
if(istype(G, /obj/item/weapon/grab))
if(panel_open)
to_chat(user, "\blue Close the maintenance panel first.")
-
return
if(!ismob(G:affecting))
return
for(var/mob/living/carbon/slime/M in range(1,G:affecting))
if(M.Victim == G:affecting)
to_chat(usr, "[G:affecting:name] will not fit into the cryo because they have a slime latched onto their head.")
-
return
var/mob/M = G:affecting
if(put_mob(M))
@@ -434,19 +425,15 @@
/obj/machinery/atmospherics/unary/cryo_cell/proc/put_mob(mob/living/carbon/M as mob)
if (!istype(M))
to_chat(usr, "\red The cryo cell cannot handle such a lifeform!")
-
return
if (occupant)
to_chat(usr, "\red The cryo cell is already occupied!")
-
return
if (M.abiotic())
to_chat(usr, "\red Subject may not have abiotic items on.")
-
return
if(!node)
to_chat(usr, "\red The cell is not correctly connected to its pipe network!")
-
return
if (M.client)
M.client.perspective = EYE_PERSPECTIVE
@@ -455,7 +442,6 @@
M.forceMove(src)
if(M.health > -100 && (M.health < 0 || M.sleeping))
to_chat(M, "\blue You feel a cold liquid surround you. Your skin starts to freeze up.")
-
occupant = M
// M.metabslow = 1
add_fingerprint(usr)
@@ -471,7 +457,6 @@
if (usr.stat == 2)//and he's not dead....
return
to_chat(usr, "\blue Release sequence activated. This will take two minutes.")
-
sleep(600)
if(!src || !usr || !occupant || (occupant != usr)) //Check if someone's released/replaced/bombed him already
return
@@ -490,7 +475,6 @@
for(var/mob/living/carbon/slime/M in range(1,usr))
if(M.Victim == usr)
to_chat(usr, "You're too busy getting your life sucked out of you.")
-
return
if (usr.stat != 0 || stat & (NOPOWER|BROKEN))
return
diff --git a/code/game/machinery/cryopod.dm b/code/game/machinery/cryopod.dm
index f47b17c7589..8de2f1baf60 100644
--- a/code/game/machinery/cryopod.dm
+++ b/code/game/machinery/cryopod.dm
@@ -95,13 +95,11 @@
else if(href_list["item"])
if(!allowed(user))
to_chat(user, "Access Denied.")
-
return
if(!allow_items) return
if(frozen_items.len == 0)
to_chat(user, "There is nothing to recover from storage.")
-
return
var/obj/item/I = input(usr, "Please choose which object to retrieve.","Object recovery",null) as null|anything in frozen_items
@@ -110,7 +108,6 @@
if(!(I in frozen_items))
to_chat(user, "\The [I] is no longer in storage.")
-
return
visible_message("The console beeps happily as it disgorges \the [I].")
@@ -121,13 +118,11 @@
else if(href_list["allitems"])
if(!allowed(user))
to_chat(user, "Access Denied.")
-
return
if(!allow_items) return
if(frozen_items.len == 0)
to_chat(user, "There is nothing to recover from storage.")
-
return
visible_message("The console beeps happily as it disgorges the desired objects.")
@@ -369,7 +364,6 @@
if(O.target == occupant.mind)
if(O.owner && O.owner.current)
to_chat(O.owner.current, "You get the feeling your target is no longer within your reach. Time for Plan [pick(list("A","B","C","D","X","Y","Z"))]...")
-
O.target = null
spawn(1) //This should ideally fire after the occupant is deleted.
if(!O) return
@@ -442,7 +436,6 @@
if(occupant)
to_chat(user, "\The [src] is in use.")
-
return
if(!ismob(G:affecting))
@@ -456,7 +449,6 @@
if(!istype(M) || M.stat == DEAD)
to_chat(user, "Dead people can not be put into cryo.")
-
return
if(M.client)
@@ -475,7 +467,6 @@
if(src.occupant)
to_chat(user, "\The [src] is in use.")
-
return
M.loc = src
@@ -486,7 +477,6 @@
else //because why the fuck would you keep going if the mob isn't in the pod
to_chat(user, "You stop putting [M] into the cryopod.")
-
return
if(orient_right)
@@ -495,10 +485,8 @@
icon_state = occupied_icon_state
to_chat(M, "[on_enter_occupant_message]")
-
to_chat(M, "If you ghost, log out or close your client now, your character will shortly be permanently removed from the round.")
-
occupant = M
time_entered = world.time
@@ -509,7 +497,6 @@
if(Gh.client && Gh.client.holder) //just in case someone has a byond name with @ at the start, which I don't think is even possible but whatever
to_chat(Gh, "Warning: Your body has entered cryostorage.")
-
// Book keeping!
log_admin("[key_name(M)] has entered a stasis pod.")
message_admins("[key_name_admin(user)] has entered a stasis pod. (JMP)")
@@ -538,7 +525,6 @@
return
if(occupant)
to_chat(user, "\blue The cryo pod is already occupied!")
-
return
@@ -548,13 +534,11 @@
if(L.stat == DEAD)
to_chat(user, "Dead people can not be put into cryo.")
-
return
for(var/mob/living/carbon/slime/M in range(1,L))
if(M.Victim == L)
to_chat(usr, "[L.name] will not fit into the cryo pod because they have a slime latched onto their head.")
-
return
@@ -578,7 +562,6 @@
if(src.occupant)
to_chat(user, "\The [src] is in use.")
-
return
L.loc = src
@@ -587,7 +570,6 @@
L.client.eye = src
else
to_chat(user, "You stop [L == user ? "climbing into the cryo pod." : "putting [L] into the cryo pod."]")
-
return
if(orient_right)
@@ -596,9 +578,7 @@
icon_state = occupied_icon_state
to_chat(L, "[on_enter_occupant_message]")
-
to_chat(L, "If you ghost, log out or close your client now, your character will shortly be permanently removed from the round.")
-
occupant = L
time_entered = world.time
@@ -609,7 +589,6 @@
if(Gh.client && Gh.client.holder) //just in case someone has a byond name with @ at the start, which I don't think is even possible but whatever
to_chat(Gh, "Warning: Your body has entered cryostorage.")
-
// Book keeping!
log_admin("[key_name_admin(L)] has entered a stasis pod. (JMP)")
message_admins("[key_name_admin(L)] has entered a stasis pod.")
@@ -629,7 +608,6 @@
if(usr != occupant)
to_chat(usr, "The cryopod is in use and locked!")
-
return
if(orient_right)
@@ -661,13 +639,11 @@
if(src.occupant)
to_chat(usr, "\The [src] is in use.")
-
return
for(var/mob/living/carbon/slime/M in range(1,usr))
if(M.Victim == usr)
to_chat(usr, "You're too busy getting your life sucked out of you.")
-
return
visible_message("[usr] starts climbing into \the [src].")
@@ -679,7 +655,6 @@
if(src.occupant)
to_chat(usr, "\The [src] is in use.")
-
return
usr.stop_pulling()
@@ -694,9 +669,7 @@
icon_state = occupied_icon_state
to_chat(usr, "[on_enter_occupant_message]")
-
to_chat(usr, "If you ghost, log out or close your client now, your character will shortly be permanently removed from the round.")
-
occupant = usr
time_entered = world.time
diff --git a/code/game/machinery/deployable.dm b/code/game/machinery/deployable.dm
index a5d849814df..df7d3319c06 100644
--- a/code/game/machinery/deployable.dm
+++ b/code/game/machinery/deployable.dm
@@ -181,11 +181,9 @@ for reference:
src.icon_state = "barrier[src.locked]"
if ((src.locked == 1.0) && (src.emagged < 2.0))
to_chat(user, "Barrier lock toggled on.")
-
return
else if ((src.locked == 0.0) && (src.emagged < 2.0))
to_chat(user, "Barrier lock toggled off.")
-
return
else
var/datum/effect/system/spark_spread/s = new /datum/effect/system/spark_spread
@@ -223,7 +221,6 @@ for reference:
emagged = 1
req_access = null
to_chat(user, "You break the ID authentication lock on the [src].")
-
var/datum/effect/system/spark_spread/s = new /datum/effect/system/spark_spread
s.set_up(2, 1, src)
s.start()
@@ -231,7 +228,6 @@ for reference:
else if (src.emagged == 1)
src.emagged = 2
to_chat(user, "You short out the anchoring mechanism on the [src].")
-
var/datum/effect/system/spark_spread/s = new /datum/effect/system/spark_spread
s.set_up(2, 1, src)
s.start()
diff --git a/code/game/machinery/door_control.dm b/code/game/machinery/door_control.dm
index 6623e673269..d2172bd9294 100644
--- a/code/game/machinery/door_control.dm
+++ b/code/game/machinery/door_control.dm
@@ -37,7 +37,6 @@
else
to_chat(user, "Error, no route to host.")
-
/obj/machinery/door_control/attackby(obj/item/weapon/W, mob/user as mob, params)
/* For later implementation
if (istype(W, /obj/item/weapon/screwdriver))
@@ -71,7 +70,6 @@
if(!allowed(user) && (wires & 1))
to_chat(user, "\red Access Denied")
-
flick("doorctrl-denied",src)
return
@@ -152,7 +150,6 @@
playsound(get_turf(src), 'sound/items/Ratchet.ogg', 50, 1)
if(do_after(user, 30, target = src))
to_chat(user, "You detach \the [src] from the wall.")
-
new/obj/item/mounted/frame/driver_button(get_turf(src))
qdel(src)
return 1
diff --git a/code/game/machinery/doors/airlock.dm b/code/game/machinery/doors/airlock.dm
index ec9b80c26de..1df75829613 100644
--- a/code/game/machinery/doors/airlock.dm
+++ b/code/game/machinery/doors/airlock.dm
@@ -299,7 +299,6 @@
..(user)
else
to_chat(user, "You do not know how to operate this airlock's mechanism.")
-
return
/obj/machinery/door/airlock/alien/attackby(C as obj, mob/user as mob, params)
@@ -307,7 +306,6 @@
..(C, user)
else
to_chat(user, "You do not know how to operate this airlock's mechanism.")
-
return
@@ -354,7 +352,6 @@ About the new airlock wires panel:
return
else if(user.hallucination > 50 && prob(10) && src.operating == 0)
to_chat(user, "\red You feel a powerful shock course through your body!")
-
user.adjustStaminaLoss(50)
user.AdjustStunned(5)
return
@@ -468,7 +465,6 @@ About the new airlock wires panel:
if(feedback && message)
to_chat(usr, message)
-
// shock user with probability prb (if all connections & power are working)
// returns 1 if shocked, 0 otherwise
// The preceding comment was borrowed from the grille's shock script
@@ -572,54 +568,42 @@ About the new airlock wires panel:
spawn(20)
//TODO: Make this take a minute
to_chat(user, "Airlock AI control has been blocked. Beginning fault-detection.")
-
sleep(50)
if(src.canAIControl())
to_chat(user, "Alert cancelled. Airlock control has been restored without our assistance.")
-
src.aiHacking=0
return
else if(!src.canAIHack(user))
to_chat(user, "We've lost our connection! Unable to hack airlock.")
-
src.aiHacking=0
return
to_chat(user, "Fault confirmed: airlock control wire disabled or cut.")
-
sleep(20)
to_chat(user, "Attempting to hack into airlock. This may take some time.")
-
sleep(200)
if(src.canAIControl())
to_chat(user, "Alert cancelled. Airlock control has been restored without our assistance.")
-
src.aiHacking=0
return
else if(!src.canAIHack(user))
to_chat(user, "We've lost our connection! Unable to hack airlock.")
-
src.aiHacking=0
return
to_chat(user, "Upload access confirmed. Loading control program into airlock software.")
-
sleep(170)
if(src.canAIControl())
to_chat(user, "Alert cancelled. Airlock control has been restored without our assistance.")
-
src.aiHacking=0
return
else if(!src.canAIHack(user))
to_chat(user, "We've lost our connection! Unable to hack airlock.")
-
src.aiHacking=0
return
to_chat(user, "Transfer complete. Forcing airlock to execute program.")
-
sleep(50)
//disable blocked control
src.aiControlDisabled = 2
to_chat(user, "Receiving control information from airlock.")
-
sleep(10)
//bring up airlock dialog
src.aiHacking = 0
@@ -669,7 +653,6 @@ About the new airlock wires panel:
if(operating < 0) //emagged
to_chat(user, "Unable to interface: Internal error.")
-
return STATUS_CLOSE
if(!src.canAIControl())
if(src.canAIHack(user))
@@ -677,10 +660,8 @@ About the new airlock wires panel:
else
if (src.isAllPowerLoss()) //don't really like how this gets checked a second time, but not sure how else to do it.
to_chat(user, "Unable to interface: Connection timed out.")
-
else
to_chat(user, "Unable to interface: Connection refused.")
-
return STATUS_CLOSE
return ..()
@@ -694,15 +675,12 @@ About the new airlock wires panel:
if("idscan")
if(src.isWireCut(AIRLOCK_WIRE_IDSCAN))
to_chat(usr, "The IdScan wire has been cut - IdScan feature permanently disabled.")
-
else if(activate && src.aiDisabledIdScanner)
src.aiDisabledIdScanner = 0
to_chat(usr, "IdScan feature has been enabled.")
-
else if(!activate && !src.aiDisabledIdScanner)
src.aiDisabledIdScanner = 1
to_chat(usr, "IdScan feature has been disabled.")
-
if("main_power")
if(!main_power_lost_until)
src.loseMainPower()
@@ -712,48 +690,37 @@ About the new airlock wires panel:
if("bolts")
if(src.isWireCut(AIRLOCK_WIRE_DOOR_BOLTS))
to_chat(usr, "The door bolt control wire has been cut - Door bolts permanently dropped.")
-
else if(activate && src.lock())
to_chat(usr, "The door bolts have been dropped.")
-
else if(!activate && src.unlock())
to_chat(usr, "The door bolts have been raised.")
-
if("electrify_temporary")
if(activate && src.isWireCut(AIRLOCK_WIRE_ELECTRIFY))
to_chat(usr, text("The electrification wire is cut - Door permanently electrified."))
-
else if(!activate && electrified_until != 0)
to_chat(usr, "The door is now un-electrified.")
-
electrify(0)
else if(activate) //electrify door for 30 seconds
shockedby += text("\[[time_stamp()]\][usr](ckey:[usr.ckey])")
usr.attack_log += text("\[[time_stamp()]\] Electrified the [name] at [x] [y] [z]")
to_chat(usr, "The door is now electrified for thirty seconds.")
-
electrify(30)
if("electrify_permanently")
if(src.isWireCut(AIRLOCK_WIRE_ELECTRIFY))
to_chat(usr, text("The electrification wire is cut - Cannot electrify the door."))
-
else if(!activate && electrified_until != 0)
to_chat(usr, "The door is now un-electrified.")
-
electrify(0)
else if(activate)
shockedby += text("\[[time_stamp()]\][usr](ckey:[usr.ckey])")
usr.attack_log += text("\[[time_stamp()]\] Electrified the [name] at [x] [y] [z]")
to_chat(usr, "The door is now electrified.")
-
electrify(-1)
if("open")
if(src.welded)
to_chat(usr, text("The airlock has been welded shut!"))
-
else if(src.locked)
to_chat(usr, text("The door bolts are down!"))
-
else if(activate && density)
open()
else if(!activate && !density)
@@ -762,7 +729,6 @@ About the new airlock wires panel:
// Safeties! We don't need no stinking safeties!
if (src.isWireCut(AIRLOCK_WIRE_SAFETY))
to_chat(usr, text("The safety wire is cut - Cannot secure the door."))
-
else if (activate && src.safe)
safe = 0
else if (!activate && !src.safe)
@@ -771,7 +737,6 @@ About the new airlock wires panel:
// Door speed control
if(src.isWireCut(AIRLOCK_WIRE_SPEED))
to_chat(usr, text("The timing wire is cut - Cannot alter timing."))
-
else if (activate && src.normalspeed)
normalspeed = 0
else if (!activate && !src.normalspeed)
@@ -780,32 +745,26 @@ About the new airlock wires panel:
// Bolt lights
if(src.isWireCut(AIRLOCK_WIRE_LIGHT))
to_chat(usr, "The bolt lights wire has been cut - The door bolt lights are permanently disabled.")
-
else if (!activate && src.lights)
lights = 0
to_chat(usr, "The door bolt lights have been disabled.")
-
else if (activate && !src.lights)
lights = 1
to_chat(usr, "The door bolt lights have been enabled.")
-
if("emergency")
// Emergency access
if (src.emergency)
emergency = 0
to_chat(usr, "Emergency access has been disabled.")
-
else
emergency = 1
to_chat(usr, "Emergency access has been enabled.")
-
update_icon()
return 1
/obj/machinery/door/airlock/attackby(C as obj, mob/user as mob, params)
// to_chat(world, text("airlock attackby src [] obj [] mob []", src, C, user))
-
if(!istype(usr, /mob/living/silicon))
if(src.isElectrified())
if(src.shock(user, 75))
@@ -851,7 +810,6 @@ About the new airlock wires panel:
if(do_after(user,40, target = src))
to_chat(user, "\blue You removed the airlock electronics!")
-
var/obj/structure/door_assembly/da = new assembly_type(src.loc)
da.anchored = 1
if(mineral)
@@ -885,10 +843,8 @@ About the new airlock wires panel:
return
else if(arePowerSystemsOn())
to_chat(user, "\blue The airlock's motors resist your efforts to force it.")
-
else if(locked)
to_chat(user, "\blue The airlock's bolts prevent it from being forced.")
-
else if( !welded && !operating )
if(density)
if(beingcrowbarred == 0) //being fireaxe'd
@@ -897,7 +853,6 @@ About the new airlock wires panel:
spawn(0) open(1)
else
to_chat(user, "\red You need to be wielding \the [C] to do that.")
-
else
spawn(0) open(1)
else
@@ -907,7 +862,6 @@ About the new airlock wires panel:
spawn(0) close(1)
else
to_chat(user, "\red You need to be wielding \the [C] to do that.")
-
else
spawn(0) close(1)
else
@@ -1035,7 +989,6 @@ About the new airlock wires panel:
/obj/machinery/door/airlock/hatch/gamma/attackby(C as obj, mob/user as mob, params)
// to_chat(world, text("airlock attackby src [] obj [] mob []", src, C, user))
-
if(!istype(usr, /mob/living/silicon))
if(src.isElectrified())
if(src.shock(user, 75))
@@ -1045,12 +998,10 @@ About the new airlock wires panel:
if(istype(C, /obj/item/weapon/c4))
to_chat(user, "The hatch is coated with a product that prevents the shaped charge from sticking!")
-
return
if(istype(C, /obj/item/mecha_parts/mecha_equipment/tool/rcd) || istype(C, /obj/item/weapon/rcd))
to_chat(user, "The hatch is made of an advanced compound that cannot be deconstructed using an RCD.")
-
return
src.add_fingerprint(user)
@@ -1071,7 +1022,6 @@ About the new airlock wires panel:
/obj/machinery/door/airlock/highsecurity/red/attackby(C as obj, mob/user as mob, params)
// to_chat(world, text("airlock attackby src [] obj [] mob []", src, C, user))
-
if(!istype(usr, /mob/living/silicon))
if(src.isElectrified())
if(src.shock(user, 75))
diff --git a/code/game/machinery/doors/airlock_control.dm b/code/game/machinery/doors/airlock_control.dm
index 23616877584..5f55eb26fc2 100644
--- a/code/game/machinery/doors/airlock_control.dm
+++ b/code/game/machinery/doors/airlock_control.dm
@@ -262,7 +262,6 @@ obj/machinery/access_button/attack_hand(mob/user)
if(!allowed(user))
to_chat(user, "\red Access Denied")
-
else if(radio_connection)
var/datum/signal/signal = new
signal.transmission_method = 1 //radio signal
diff --git a/code/game/machinery/doors/firedoor.dm b/code/game/machinery/doors/firedoor.dm
index 856bba62002..09f4885dc07 100644
--- a/code/game/machinery/doors/firedoor.dm
+++ b/code/game/machinery/doors/firedoor.dm
@@ -80,7 +80,6 @@
if(blocked)
to_chat(user, "\red \The [src] is welded solid!")
-
return
var/area/A = get_area_master(src)
@@ -144,12 +143,10 @@
if(user.stat || user.stunned || user.weakened || user.paralysis || get_dist(src, user) > 1)
to_chat(user, "Sorry, you must remain able bodied and close to \the [src] in order to use it.")
-
return
if(alarmed && density && !access_granted)
to_chat(user, "Access denied. Please wait for authorities to arrive, or for the alert to clear.")
-
return
else
@@ -182,7 +179,6 @@
if(blocked)
to_chat(user, "\red \The [src] is welded solid!")
-
return
var/area/A = get_area_master(src)
diff --git a/code/game/machinery/doors/windowdoor.dm b/code/game/machinery/doors/windowdoor.dm
index b3520b18d61..39ed81b3360 100644
--- a/code/game/machinery/doors/windowdoor.dm
+++ b/code/game/machinery/doors/windowdoor.dm
@@ -261,12 +261,10 @@
if(istype(I, /obj/item/weapon/screwdriver))
if(src.density || src.operating)
to_chat(user, "You need to open the door to access the maintenance panel.")
-
return
playsound(src.loc, 'sound/items/Screwdriver.ogg', 50, 1)
src.p_open = !( src.p_open )
to_chat(user, "You [p_open ? "open":"close"] the maintenance panel of the [src.name].")
-
return
if(istype(I, /obj/item/weapon/crowbar))
@@ -297,13 +295,11 @@
if(emagged)
to_chat(user, "You discard the damaged electronics.")
-
qdel(src)
return
to_chat(user, "You removed the airlock electronics!")
-
var/obj/item/weapon/airlock_electronics/ae
if(!electronics)
ae = new/obj/item/weapon/airlock_electronics( src.loc )
diff --git a/code/game/machinery/doppler_array.dm b/code/game/machinery/doppler_array.dm
index 4fe4d4a70da..cbb9aabd20f 100644
--- a/code/game/machinery/doppler_array.dm
+++ b/code/game/machinery/doppler_array.dm
@@ -25,12 +25,10 @@ var/list/doppler_arrays = list()
anchored = 1
power_change()
to_chat(user, "You fasten [src].")
-
else if(anchored)
anchored = 0
power_change()
to_chat(user, "You unfasten [src].")
-
playsound(loc, 'sound/items/Ratchet.ogg', 50, 1)
/obj/machinery/doppler_array/verb/rotate()
diff --git a/code/game/machinery/drying_rack.dm b/code/game/machinery/drying_rack.dm
index 4ea0b2fc242..9ec3974483f 100644
--- a/code/game/machinery/drying_rack.dm
+++ b/code/game/machinery/drying_rack.dm
@@ -38,7 +38,6 @@
user.unEquip(W)
del(W)
to_chat(user, "You add the meat to the drying rack.")
-
src.running = 1
use_power = 2
icon_state = "drying_rack_on"
@@ -52,7 +51,6 @@
user.unEquip(W)
del(W)
to_chat(user, "You add the grapes to the drying rack.")
-
src.running = 1
use_power = 2
icon_state = "drying_rack_on"
@@ -66,7 +64,6 @@
user.unEquip(W)
del(W)
to_chat(user, "You add the green grapes to the drying rack.")
-
src.running = 1
use_power = 2
icon_state = "drying_rack_on"
@@ -82,7 +79,6 @@
var/obj/item/weapon/reagent_containers/food/snacks/grown/B = W
B.reagents.trans_to(src, B.reagents.total_volume)
to_chat(user, "You add the [W] to the drying rack.")
-
user.unEquip(W)
del(W)
src.running = 1
@@ -92,7 +88,6 @@
icon_state = "drying_rack"
var/obj/item/weapon/reagent_containers/food/snacks/grown/D = new J(src.loc)
to_chat(user, "\blue You finish drying the [D]")
-
D.icon_state = "[D.icon_state]_dry"
D.dry = 1
D.reagents.remove_any(50)
@@ -102,12 +97,9 @@
return
else
to_chat(user, "\red That has already been dried!")
-
else
to_chat(user, "\red Please wait until the last item has dried.")
-
else
to_chat(user, "\red You cannot add that to the drying rack.")
-
diff --git a/code/game/machinery/embedded_controller/airlock_docking_controller.dm b/code/game/machinery/embedded_controller/airlock_docking_controller.dm
index 1ec59676410..0ffb9c3d7dc 100644
--- a/code/game/machinery/embedded_controller/airlock_docking_controller.dm
+++ b/code/game/machinery/embedded_controller/airlock_docking_controller.dm
@@ -141,22 +141,15 @@
/datum/computer/file/embedded_program/docking/proc/print_state()
to_chat(world, "id_tag: [id_tag]")
-
to_chat(world, "dock_state: [dock_state]")
-
to_chat(world, "control_mode: [control_mode]")
-
to_chat(world, "tag_target: [tag_target]")
-
to_chat(world, "response_sent: [response_sent]")
-
/datum/computer/file/embedded_program/docking/post_signal(datum/signal/signal, comm_line)
to_chat(world, "Program [id_tag] sent a message!")
-
print_state()
to_chat(world, "[id_tag] sent command \"[signal.data["command"]]\" to \"[signal.data["recipient"]]\"")
-
..(signal)
/obj/machinery/embedded_controller/radio/airlock/docking_port/verb/view_state()
diff --git a/code/game/machinery/embedded_controller/airlock_docking_controller_multi.dm b/code/game/machinery/embedded_controller/airlock_docking_controller_multi.dm
index 5fd89767ca4..f7ca5b1339a 100644
--- a/code/game/machinery/embedded_controller/airlock_docking_controller_multi.dm
+++ b/code/game/machinery/embedded_controller/airlock_docking_controller_multi.dm
@@ -114,22 +114,15 @@
/datum/computer/file/embedded_program/docking/multi/proc/print_state()
to_chat(world, "id_tag: [id_tag]")
-
to_chat(world, "dock_state: [dock_state]")
-
to_chat(world, "control_mode: [control_mode]")
-
to_chat(world, "tag_target: [tag_target]")
-
to_chat(world, "response_sent: [response_sent]")
-
/datum/computer/file/embedded_program/docking/multi/post_signal(datum/signal/signal, comm_line)
to_chat(world, "Program [id_tag] sent a message!")
-
print_state()
to_chat(world, "[id_tag] sent command \"[signal.data["command"]]\" to \"[signal.data["recipient"]]\"")
-
..(signal)
/obj/machinery/embedded_controller/radio/docking_port_multi/verb/view_state()
diff --git a/code/game/machinery/embedded_controller/docking_program.dm b/code/game/machinery/embedded_controller/docking_program.dm
index 12c05170c13..aa938c663bc 100644
--- a/code/game/machinery/embedded_controller/docking_program.dm
+++ b/code/game/machinery/embedded_controller/docking_program.dm
@@ -240,7 +240,6 @@
/datum/computer/file/embedded_program/docking/proc/force_undock()
// to_chat(world, "[id_tag]: forcing undock")
-
if (tag_target)
send_docking_command(tag_target, "dock_error")
reset()
diff --git a/code/game/machinery/firealarm.dm b/code/game/machinery/firealarm.dm
index 553422a33cd..3426023f13c 100644
--- a/code/game/machinery/firealarm.dm
+++ b/code/game/machinery/firealarm.dm
@@ -90,7 +90,6 @@ FIRE ALARM
else if(istype(W, /obj/item/weapon/wirecutters)) // cutting the wires out
to_chat(user, "You cut the wires!")
-
playsound(src.loc, 'sound/items/Wirecutter.ogg', 50, 1)
var/obj/item/stack/cable_coil/new_coil = new /obj/item/stack/cable_coil()
new_coil.amount = 5
@@ -102,17 +101,14 @@ FIRE ALARM
var/obj/item/stack/cable_coil/coil = W
if(!coil.use(5))
to_chat(user, "You cut the wires!")
-
return
buildstage = 2
to_chat(user, "You wire \the [src]!")
-
update_icon()
else if(istype(W, /obj/item/weapon/crowbar))
to_chat(user, "You pry out the circuit!")
-
playsound(get_turf(src), 'sound/items/Crowbar.ogg', 50, 1)
spawn(20)
var/obj/item/weapon/firealarm_electronics/circuit = new /obj/item/weapon/firealarm_electronics()
@@ -122,14 +118,12 @@ FIRE ALARM
if(0)
if(istype(W, /obj/item/weapon/firealarm_electronics))
to_chat(user, "You insert the circuit!")
-
qdel(W)
buildstage = 1
update_icon()
else if(istype(W, /obj/item/weapon/wrench))
to_chat(user, "You remove the fire alarm assembly from the wall!")
-
new /obj/item/mounted/frame/firealarm(get_turf(user))
playsound(get_turf(src), 'sound/items/Ratchet.ogg', 50, 1)
qdel(src)
diff --git a/code/game/machinery/floodlight.dm b/code/game/machinery/floodlight.dm
index b13dfc3bb07..7c5e152529f 100644
--- a/code/game/machinery/floodlight.dm
+++ b/code/game/machinery/floodlight.dm
@@ -48,14 +48,12 @@
src.cell = null
to_chat(user, "You remove the power cell")
-
updateicon()
return
if(on)
on = 0
to_chat(user, "\blue You turn off the light")
-
set_light(0)
else
if(!cell)
@@ -64,7 +62,6 @@
return
on = 1
to_chat(user, "\blue You turn on the light")
-
set_light(brightness_on)
updateicon()
@@ -91,34 +88,28 @@
if(unlocked)
unlocked = 0
to_chat(user, "You screw the battery panel in place.")
-
else
unlocked = 1
to_chat(user, "You unscrew the battery panel.")
-
if (istype(W, /obj/item/weapon/crowbar))
if(unlocked)
if(open)
open = 0
overlays = null
to_chat(user, "You crowbar the battery panel in place.")
-
else
if(unlocked)
open = 1
to_chat(user, "You remove the battery panel.")
-
if (istype(W, /obj/item/weapon/stock_parts/cell))
if(open)
if(cell)
to_chat(user, "There is a power cell already installed.")
-
else
user.drop_item()
W.loc = src
cell = W
to_chat(user, "You insert the power cell.")
-
updateicon()
diff --git a/code/game/machinery/guestpass.dm b/code/game/machinery/guestpass.dm
index 02797bc44b5..b63307c3db8 100644
--- a/code/game/machinery/guestpass.dm
+++ b/code/game/machinery/guestpass.dm
@@ -20,18 +20,13 @@
..(user)
if (world.time < expiration_time)
to_chat(user, "This pass expires at [worldtime2text(expiration_time)].")
-
else
to_chat(user, "It expired at [worldtime2text(expiration_time)].")
-
to_chat(user, "It grants access to following areas:")
-
for (var/A in temp_access)
to_chat(user, "[get_access_desc(A)].")
-
to_chat(user, "Issuing reason: [reason].")
-
/////////////////////////////////////////////
//Guest pass terminal////////////////////////
/////////////////////////////////////////////
@@ -63,7 +58,6 @@
else
to_chat(user, "There is already ID card inside.")
-
/obj/machinery/computer/guestpass/attack_ai(var/mob/user as mob)
return attack_hand(user)
@@ -125,7 +119,6 @@
duration = dur
else
to_chat(usr, "Invalid duration.")
-
if ("access")
var/A = text2num(href_list["access"])
if (A in accesses)
@@ -158,7 +151,6 @@
for (var/entry in internal_log)
dat += "[entry]
"
// to_chat(usr, "Printing the log, standby...")
-
//sleep(50)
var/obj/item/weapon/paper/P = new/obj/item/weapon/paper( loc )
playsound(loc, "sound/goonstation/machines/printer_dotmatrix.ogg", 50, 1)
@@ -185,6 +177,5 @@
pass.name = "guest pass #[number]"
else
to_chat(usr, "\red Cannot issue pass without issuing ID.")
-
updateUsrDialog()
return
\ No newline at end of file
diff --git a/code/game/machinery/hologram.dm b/code/game/machinery/hologram.dm
index 384168c119f..c8e16257858 100644
--- a/code/game/machinery/hologram.dm
+++ b/code/game/machinery/hologram.dm
@@ -73,16 +73,13 @@ var/const/HOLOPAD_MODE = 0
if(last_request + 200 < world.time) //don't spam the AI with requests you jerk!
last_request = world.time
to_chat(user, "You request an AI's presence.")
-
var/area/area = get_area(src)
for(var/mob/living/silicon/ai/AI in living_mob_list)
if(!AI.client) continue
to_chat(AI, "Your presence is requested at \the [area].")
-
else
to_chat(user, "A request for AI presence was already sent recently.")
-
/obj/machinery/hologram/holopad/attack_ai(mob/living/silicon/ai/user)
if (!istype(user))
return
@@ -104,10 +101,8 @@ var/const/HOLOPAD_MODE = 0
src.visible_message("A holographic image of [user] flicks to life right before your eyes!")
else
to_chat(user, "\red ERROR: \black Image feed in progress.")
-
else
to_chat(user, "\red ERROR: \black Unable to project hologram.")
-
return
/*This is the proc for special two-way communication between AI and holopad/people talking near holopad.
@@ -258,7 +253,6 @@ Holographic project of everything else.
hologram.icon = flat_icon
to_chat(world, "Your icon should appear now.")
-
return
*/
diff --git a/code/game/machinery/iv_drip.dm b/code/game/machinery/iv_drip.dm
index 45f9e2e84b7..5caff96d4ea 100644
--- a/code/game/machinery/iv_drip.dm
+++ b/code/game/machinery/iv_drip.dm
@@ -61,19 +61,16 @@
if (istype(W, /obj/item/weapon/reagent_containers))
if(!isnull(src.beaker))
to_chat(user, "There is already a reagent container loaded!")
-
return
if(user.drop_item())
W.forceMove(src)
src.beaker = W
to_chat(user, "You attach \the [W] to \the [src].")
-
src.update_icon()
return
else
to_chat(user, "\The [W] is stuck to you!")
-
else
return ..()
@@ -150,7 +147,6 @@
if(!istype(usr, /mob/living))
to_chat(usr, "\red You can't do that.")
-
return
if(usr.stat)
@@ -159,24 +155,18 @@
mode = !mode
to_chat(usr, "The IV drip is now [mode ? "injecting" : "taking blood"].")
-
/obj/machinery/iv_drip/examine(mob/user)
..(user)
if (!(user in view(2)) && usr != src.loc) return
to_chat(usr, "The IV drip is [mode ? "injecting" : "taking blood"].")
-
if(beaker)
if(beaker.reagents && beaker.reagents.reagent_list.len)
to_chat(user, "\blue Attached is \a [beaker] with [beaker.reagents.total_volume] units of liquid.")
-
else
to_chat(user, "\blue Attached is an empty [beaker].")
-
else
to_chat(user, "\blue No chemicals are attached.")
-
to_chat(user, "\blue [attached ? attached : "No one"] is attached.")
-
diff --git a/code/game/machinery/kitchen/gibber.dm b/code/game/machinery/kitchen/gibber.dm
index 2de6678f35d..4c271a08f44 100644
--- a/code/game/machinery/kitchen/gibber.dm
+++ b/code/game/machinery/kitchen/gibber.dm
@@ -64,12 +64,10 @@
if(operating)
to_chat(user, "The gibber is locked and running, wait for it to finish.")
-
return
if(locked)
to_chat(user, "Wait for [occupant.name] to finish being loaded!")
-
return
else
@@ -80,7 +78,6 @@
var/obj/item/weapon/grab/G = P
if(G.state < 2)
to_chat(user, "You need a better grip to do that!")
-
return
move_into_gibber(user,G.affecting)
qdel(G)
@@ -114,22 +111,18 @@
/obj/machinery/gibber/proc/move_into_gibber(var/mob/user,var/mob/living/victim)
if(occupant)
to_chat(user, "The gibber is full, empty it first!")
-
return
if(operating)
to_chat(user, "The gibber is locked and running, wait for it to finish.")
-
return
if(!ishuman(victim) || issmall(victim))
to_chat(user, "This is not suitable for the gibber!")
-
return
if(victim.abiotic(1))
to_chat(user, "Subject may not have abiotic items on.")
-
return
user.visible_message("[user] starts to put [victim] into the gibber!")
diff --git a/code/game/machinery/kitchen/icecream_vat.dm b/code/game/machinery/kitchen/icecream_vat.dm
index 8619b0689be..a5e1cc1eafb 100644
--- a/code/game/machinery/kitchen/icecream_vat.dm
+++ b/code/game/machinery/kitchen/icecream_vat.dm
@@ -108,25 +108,19 @@ var/list/ingredients_source = list(
I.reagents.add_reagent("sugar", 10 - I.reagents.total_volume)
else
to_chat(user, "There is not enough [flavour_name] flavouring left! Insert more of the required ingredients.")
-
else
to_chat(user, "There is not enough icecream left! Insert more milk and ice.")
-
else
to_chat(user, "[O] already has icecream in it.")
-
else if(istype(O, /obj/item/weapon/reagent_containers/glass))
if(held_container)
to_chat(user, "You must remove [held_container] from [src] first.")
-
else
if(!user.drop_item())
to_chat(user, "\The [O] is stuck to your hand!")
-
return
O.forceMove(src)
to_chat(user, "You insert [O] into [src].")
-
held_container = O
else
var/obj/item/weapon/reagent_containers/R = O
@@ -158,7 +152,6 @@ var/list/ingredients_source = list(
src.visible_message("[user] cooks up some waffle cones.")
else
to_chat(user, "You require sugar and flour to make waffle cones.")
-
if(CONE_CHOC)
if(ingredients[FLAVOUR_CHOCOLATE] > 0 && ingredients[CONE_WAFFLE] > 0)
var/amount = min(ingredients[CONE_WAFFLE], ingredients[FLAVOUR_CHOCOLATE])
@@ -168,7 +161,6 @@ var/list/ingredients_source = list(
src.visible_message("[user] cooks up some chocolate cones.")
else
to_chat(user, "You require waffle cones and chocolate flavouring to make chocolate cones.")
-
if(ICECREAM_VANILLA)
if(ingredients[INGR_ICE] > 0 && ingredients[INGR_MILK] > 0)
var/amount = min(ingredients[INGR_ICE], ingredients[INGR_MILK])
@@ -178,7 +170,6 @@ var/list/ingredients_source = list(
src.visible_message("[user] whips up some vanilla icecream.")
else
to_chat(user, "You require milk and ice to make vanilla icecream.")
-
updateDialog()
/obj/machinery/icecream_vat/Topic(href, href_list)
@@ -201,7 +192,6 @@ var/list/ingredients_source = list(
src.visible_message("[usr] dispenses a crunchy [cone_name] cone from [src].")
else
to_chat(usr, "There are no [cone_name] cones left!")
-
updateDialog()
if(href_list["make"])
diff --git a/code/game/machinery/kitchen/juicer.dm b/code/game/machinery/kitchen/juicer.dm
index def4500bb3c..7b25e683941 100644
--- a/code/game/machinery/kitchen/juicer.dm
+++ b/code/game/machinery/kitchen/juicer.dm
@@ -43,7 +43,6 @@
else
if(!user.unEquip(O))
to_chat(user, "\the [O] is stuck to your hand, you cannot put it in \the [src]")
-
return 0
O.forceMove(src)
beaker = O
@@ -53,11 +52,9 @@
return 0
if (!is_type_in_list(O, allowed_items))
to_chat(user, "It doesn't look like that contains any juice.")
-
return 1
if(!user.unEquip(O))
to_chat(user, "\the [O] is stuck to your hand, you cannot put it in \the [src]")
-
return 0
O.forceMove(src)
src.updateUsrDialog()
diff --git a/code/game/machinery/kitchen/kitchen_machine.dm b/code/game/machinery/kitchen/kitchen_machine.dm
index 8161d18e017..5c584d0468b 100644
--- a/code/game/machinery/kitchen/kitchen_machine.dm
+++ b/code/game/machinery/kitchen/kitchen_machine.dm
@@ -69,12 +69,10 @@
if(anchored)
anchored = 0
to_chat(user, "\The [src] can now be moved.")
-
return
else if(!anchored)
anchored = 1
to_chat(user, "\The [src] is now secured.")
-
return
default_deconstruction_crowbar(O)
@@ -107,7 +105,6 @@
src.flags = OPENCONTAINER
else
to_chat(user, "It's broken!")
-
return 1
else if(src.dirty==100) // The machine is all dirty so can't be used!
if(istype(O, /obj/item/weapon/reagent_containers/spray/cleaner) || istype(O, /obj/item/weapon/soap)) // If they're trying to clean it then let them
@@ -126,12 +123,10 @@
src.flags = OPENCONTAINER
else //Otherwise bad luck!!
to_chat(user, "It's dirty!")
-
return 1
else if(is_type_in_list(O,acceptable_items))
if (contents.len>=max_n_of_items)
to_chat(user, "This [src] is full of ingredients, you cannot put more.")
-
return 1
if (istype(O,/obj/item/stack) && O:amount>1)
new O.type (src)
@@ -142,7 +137,6 @@
else
if(!user.drop_item())
to_chat(user, "\The [O] is stuck to your hand, you cannot put it in \the [src]")
-
return 0
O.forceMove(src)
@@ -158,17 +152,14 @@
for (var/datum/reagent/R in O.reagents.reagent_list)
if (!(R.id in acceptable_reagents))
to_chat(user, "Your [O] contains components unsuitable for cookery.")
-
return 1
//G.reagents.trans_to(src,G.amount_per_transfer_from_this)
else if(istype(O,/obj/item/weapon/grab))
var/obj/item/weapon/grab/G = O
to_chat(user, "This is ridiculous. You can not fit \the [G.affecting] in this [src].")
-
return 1
else
to_chat(user, "You have no idea what you can cook with this [O].")
-
return 1
src.updateUsrDialog()
@@ -353,7 +344,6 @@
src.dirty++
src.reagents.clear_reagents()
to_chat(usr, "You dispose of \the [src]'s contents.")
-
src.updateUsrDialog()
/obj/machinery/kitchen_machine/proc/muck_start()
diff --git a/code/game/machinery/kitchen/monkeyrecycler.dm b/code/game/machinery/kitchen/monkeyrecycler.dm
index 4d2cbca7974..d41558c161e 100644
--- a/code/game/machinery/kitchen/monkeyrecycler.dm
+++ b/code/game/machinery/kitchen/monkeyrecycler.dm
@@ -54,12 +54,10 @@
if(issmall(target))
if(target.stat == 0)
to_chat(user, "The monkey is struggling far too much to put it in the recycler.")
-
else
user.drop_item()
qdel(target)
to_chat(user, "You stuff the monkey in the machine.")
-
playsound(src.loc, 'sound/machines/juicer.ogg', 50, 1)
var/offset = prob(50) ? -2 : 2
animate(src, pixel_x = pixel_x + offset, time = 0.2, loop = 200) //start shaking
@@ -68,13 +66,10 @@
sleep(50)
pixel_x = initial(pixel_x)
to_chat(user, "The machine now has [grinded] monkey\s worth of material stored.")
-
else
to_chat(user, "The machine only accepts monkeys!")
-
else
to_chat(user, "The machine only accepts monkeys!")
-
return
/obj/machinery/monkey_recycler/attack_hand(var/mob/user as mob)
@@ -82,14 +77,11 @@
return
if(grinded >= required_grind)
to_chat(user, "The machine hisses loudly as it condenses the grinded monkey meat. After a moment, it dispenses a brand new monkey cube.")
-
playsound(src.loc, 'sound/machines/hiss.ogg', 50, 1)
grinded -= required_grind
for(var/i = 0, i < cube_production, i++) // Forgot to fix this bit the first time through
new /obj/item/weapon/reagent_containers/food/snacks/monkeycube(src.loc)
to_chat(user, "The machine's display flashes that it has [grinded] monkey\s worth of material left.")
-
else // I'm not sure if the \s macro works with a word in between; I'll play it safe
to_chat(user, "The machine needs at least [required_grind] monkey\s worth of material to compress [cube_production] monkey\s. It only has [grinded].")
-
return
\ No newline at end of file
diff --git a/code/game/machinery/kitchen/processor.dm b/code/game/machinery/kitchen/processor.dm
index a3adc7cbae0..0b739e2b269 100644
--- a/code/game/machinery/kitchen/processor.dm
+++ b/code/game/machinery/kitchen/processor.dm
@@ -136,7 +136,6 @@
if(src.processing)
to_chat(user, "\the [src] is already processing something!")
-
return 1
if(default_deconstruction_screwdriver(user, "processor1", "processor", O))
@@ -160,7 +159,6 @@
if (!P)
to_chat(user, "That probably won't blend.")
-
return 1
user.visible_message("\the [user] puts \the [what] into \the [src].", \
@@ -177,12 +175,10 @@
if(src.processing)
to_chat(user, "\the [src] is already processing something!")
-
return 1
if(src.contents.len == 0)
to_chat(user, "\the [src] is empty.")
-
return 1
src.processing = 1
user.visible_message("[user] turns on [src].", \
diff --git a/code/game/machinery/kitchen/smartfridge.dm b/code/game/machinery/kitchen/smartfridge.dm
index 0cc3e5ce688..7978aee0c0a 100644
--- a/code/game/machinery/kitchen/smartfridge.dm
+++ b/code/game/machinery/kitchen/smartfridge.dm
@@ -195,7 +195,6 @@
playsound(src.loc, 'sound/items/Screwdriver.ogg', 50, 1)
panel_open = !panel_open
to_chat(user, "You [panel_open ? "open" : "close"] the maintenance panel.")
-
overlays.Cut()
if(panel_open)
overlays += image(icon, "[initial(icon_state)]-panel")
@@ -217,18 +216,15 @@
if(stat & NOPOWER)
to_chat(user, "\The [src] is unpowered and useless.")
-
return
if(accept_check(O))
if(contents.len >= max_n_of_items)
to_chat(user, "\The [src] is full.")
-
return 1
else
if(!user.drop_item())
to_chat(user, "\The [O] is stuck to you!")
-
return
O.forceMove(src)
@@ -247,7 +243,6 @@
if(accept_check(G))
if(contents.len >= max_n_of_items)
to_chat(user, "\The [src] is full.")
-
return 1
else
P.remove_from_storage(G,src)
@@ -262,12 +257,10 @@
if(P.contents.len > 0)
to_chat(user, "Some items are refused.")
-
nanomanager.update_uis(src)
else
to_chat(user, "\The [src] smartly refuses [O].")
-
return 1
/obj/machinery/smartfridge/attack_ai(mob/user as mob)
@@ -289,7 +282,6 @@
if(stat & NOPOWER)
to_chat(user, "\The [src] is unpowered and useless.")
-
return
var/obj/item/weapon/storage/box/pillbottles/P = over_object
@@ -298,7 +290,6 @@
if(accept_check(G))
if(contents.len >= max_n_of_items)
to_chat(user, "\The [src] is full.")
-
return 1
else
P.remove_from_storage(G,src)
@@ -313,7 +304,6 @@
"You empty \the [P] into \the [src].")
if(P.contents.len > 0)
to_chat(user, "Some items are refused.")
-
nanomanager.update_uis(src)
/obj/machinery/smartfridge/secure/emag_act(user as mob)
@@ -321,7 +311,6 @@
locked = -1
to_chat(user, "You short out the product lock on [src].")
-
/*******************
* SmartFridge Menu
********************/
@@ -420,7 +409,6 @@
if(usr.contents.Find(src) || (in_range(src, usr) && istype(loc, /turf)))
if(!allowed(usr) && !emagged && locked != -1 && href_list["vend"])
to_chat(usr, "Access denied.")
-
nanomanager.update_uis(src)
return 0
return ..()
\ No newline at end of file
diff --git a/code/game/machinery/lightswitch.dm b/code/game/machinery/lightswitch.dm
index 55c78bb1a17..f83a92ff3e7 100644
--- a/code/game/machinery/lightswitch.dm
+++ b/code/game/machinery/lightswitch.dm
@@ -42,7 +42,6 @@
to_chat(user, "A light switch. It is [on? "on" : "off"].")
-
/obj/machinery/light_switch/attack_hand(mob/user)
on = !on
diff --git a/code/game/machinery/machinery.dm b/code/game/machinery/machinery.dm
index e2735942c79..11fa7f71393 100644
--- a/code/game/machinery/machinery.dm
+++ b/code/game/machinery/machinery.dm
@@ -223,7 +223,6 @@ Class Procs:
return 1
if(!(href_list["set_tag"] in vars))
to_chat(usr, "Something went wrong: Unable to find [href_list["set_tag"]] in vars!")
-
return 1
var/current_tag = src.vars[href_list["set_tag"]]
var/newid = copytext(reject_bad_text(input(usr, "Specify the new value", src, current_tag) as null|text),1,MAX_MESSAGE_LEN)
@@ -241,15 +240,12 @@ Class Procs:
return 1
if(!canLink(O))
to_chat(usr, "\red You can't link with that device.")
-
return 1
if(unlinkFrom(usr, O))
to_chat(usr, "\blue A green light flashes on \the [P], confirming the link was removed.")
-
else
to_chat(usr, "\red A red light flashes on \the [P]. It appears something went wrong when unlinking the two devices.")
-
update_mt_menu=1
if("link" in href_list)
@@ -258,30 +254,24 @@ Class Procs:
return 1
if(!canLink(O,href_list))
to_chat(usr, "\red You can't link with that device.")
-
return 1
if (isLinkedWith(O))
to_chat(usr, "\red A red light flashes on \the [P]. The two devices are already linked.")
-
return 1
if(linkWith(usr, O, href_list))
to_chat(usr, "\blue A green light flashes on \the [P], confirming the link was added.")
-
else
to_chat(usr, "\red A red light flashes on \the [P]. It appears something went wrong when linking the two devices.")
-
update_mt_menu=1
if("buffer" in href_list)
P.buffer = src
to_chat(usr, "\blue A green light flashes, and the device appears in the multitool buffer.")
-
update_mt_menu=1
if("flush" in href_list)
to_chat(usr, "\blue A green light flashes, and the device disappears from the multitool buffer.")
-
P.buffer = null
update_mt_menu=1
@@ -349,7 +339,6 @@ Class Procs:
if(!user.IsAdvancedToolUser())
to_chat(user, "You don't have the dexterity to do this!")
-
return 1
if (ishuman(user))
@@ -359,7 +348,6 @@ Class Procs:
return 1
else if(prob(H.getBrainLoss()))
to_chat(user, "You momentarily forget how to use [src].")
-
return 1
if(panel_open)
@@ -404,12 +392,10 @@ Class Procs:
panel_open = 1
icon_state = icon_state_open
to_chat(user, "You open the maintenance hatch of [src].")
-
else
panel_open = 0
icon_state = icon_state_closed
to_chat(user, "You close the maintenance hatch of [src].")
-
return 1
return 0
@@ -418,18 +404,15 @@ Class Procs:
playsound(src.loc, 'sound/items/Ratchet.ogg', 50, 1)
dir = turn(dir,-90)
to_chat(user, "You rotate [src].")
-
return 1
return 0
/obj/machinery/proc/default_unfasten_wrench(mob/user, obj/item/weapon/wrench/W, time = 20)
if(istype(W))
to_chat(user, "Now [anchored ? "un" : ""]securing [name].")
-
playsound(src.loc, 'sound/items/Ratchet.ogg', 50, 1)
if(do_after(user, time, target = src))
to_chat(user, "You've [anchored ? "un" : ""]secured [name].")
-
anchored = !anchored
playsound(src.loc, 'sound/items/Deconstruct.ogg', 50, 1)
return 1
@@ -468,7 +451,6 @@ Class Procs:
component_parts += B
B.loc = null
to_chat(user, "[A.name] replaced with [B.name].")
-
shouldplaysound = 1
break
RefreshParts()
@@ -482,11 +464,9 @@ Class Procs:
/obj/machinery/proc/display_parts(mob/user)
to_chat(user, "Following parts detected in the machine:")
-
for(var/obj/item/C in component_parts)
to_chat(user, "\icon[C] [C.name]")
-
/obj/machinery/examine(mob/user)
..(user)
if(user.research_scanner && component_parts)
diff --git a/code/game/machinery/mass_driver.dm b/code/game/machinery/mass_driver.dm
index c87ecc345b5..0bd5fff9fba 100644
--- a/code/game/machinery/mass_driver.dm
+++ b/code/game/machinery/mass_driver.dm
@@ -22,7 +22,6 @@
if(istype(W, /obj/item/weapon/screwdriver))
to_chat(user, "You begin to unscrew the bolts off the [src]...")
-
playsound(get_turf(src), 'sound/items/Screwdriver.ogg', 50, 1)
if(do_after(user, 30, target = src))
var/obj/machinery/mass_driver_frame/F = new(get_turf(src))
@@ -71,7 +70,6 @@
if(!emagged)
emagged = 1
to_chat(user, "You hack the Mass Driver, radically increasing the force at which it'll throw things. Better not stand in its way.")
-
return 1
return -1
@@ -107,24 +105,19 @@
var/obj/item/weapon/weldingtool/WT = W
if(!WT.remove_fuel(0, user))
to_chat(user, "The welding tool must be on to complete this task.")
-
return 1
playsound(get_turf(src), 'sound/items/Welder.ogg', 50, 1)
to_chat(user, "You begin to cut the frame apart...")
-
if(do_after(user, 30, target = src) && (build == 0))
to_chat(user, "You detach the plasteel sheets from each others.")
-
new /obj/item/stack/sheet/plasteel(get_turf(src),3)
qdel(src)
return 1
if(istype(W, /obj/item/weapon/wrench))
to_chat(user, "You begin to anchor \the [src] on the floor.")
-
playsound(get_turf(src), 'sound/items/Ratchet.ogg', 50, 1)
if(do_after(user, 10, target = src) && (build == 0))
to_chat(user, "You anchor \the [src]!")
-
anchored = 1
build++
update_icon()
@@ -132,27 +125,22 @@
if(1) // Fixed to the floor
if(istype(W, /obj/item/weapon/wrench))
to_chat(user, "You begin to de-anchor \the [src] from the floor.")
-
playsound(get_turf(src), 'sound/items/Ratchet.ogg', 50, 1)
if(do_after(user, 10, target = src) && (build == 1))
build--
update_icon()
anchored = 0
to_chat(user, "You de-anchored \the [src]!")
-
return 1
if(istype(W, /obj/item/weapon/weldingtool))
var/obj/item/weapon/weldingtool/WT = W
if(!WT.remove_fuel(0, user))
to_chat(user, "The welding tool must be on to complete this task.")
-
return 1
playsound(get_turf(src), 'sound/items/Welder.ogg', 50, 1)
to_chat(user, "You begin to weld \the [src] to the floor...")
-
if(do_after(user, 40, target = src) && (build == 1))
to_chat(user, "You welded \the [src] to the floor.")
-
build++
update_icon()
return 1
@@ -161,55 +149,45 @@
var/obj/item/weapon/weldingtool/WT = W
if(!WT.remove_fuel(0, user))
to_chat(user, "The welding tool must be on to complete this task.")
-
return 1
playsound(get_turf(src), 'sound/items/Welder.ogg', 50, 1)
to_chat(user, "You begin to unweld \the [src] to the floor...")
-
if(do_after(user, 40, target = src) && (build == 2))
to_chat(user, "You unwelded \the [src] to the floor.")
-
build--
update_icon()
if(istype(W, /obj/item/stack/cable_coil))
var/obj/item/stack/cable_coil/C=W
to_chat(user, "You start adding cables to \the [src]...")
-
playsound(get_turf(src), 'sound/items/Deconstruct.ogg', 50, 1)
if(do_after(user, 20, target = src) && (C.amount >= 3) && (build == 2))
C.use(3)
to_chat(user, "You've added cables to \the [src].")
-
build++
update_icon()
if(3) // Wired
if(istype(W, /obj/item/weapon/wirecutters))
to_chat(user, "You begin to remove the wiring from \the [src].")
-
if(do_after(user, 10, target = src) && (build == 3))
new /obj/item/stack/cable_coil(loc,3)
playsound(get_turf(src), 'sound/items/Wirecutter.ogg', 50, 1)
to_chat(user, "You've removed the cables from \the [src].")
-
build--
update_icon()
return 1
if(istype(W, /obj/item/stack/rods))
var/obj/item/stack/rods/R=W
to_chat(user, "You begin to complete \the [src]...")
-
playsound(get_turf(src), 'sound/items/Deconstruct.ogg', 50, 1)
if(do_after(user, 20, target = src) && (R.amount >= 3) && (build == 3))
R.use(3)
to_chat(user, "You've added the grille to \the [src].")
-
build++
update_icon()
return 1
if(4) // Grille in place
if(istype(W, /obj/item/weapon/crowbar))
to_chat(user, "You begin to pry off the grille from \the [src]...")
-
playsound(get_turf(src), 'sound/items/Crowbar.ogg', 50, 1)
if(do_after(user, 30, target = src) && (build == 4))
new /obj/item/stack/rods(loc,2)
@@ -218,7 +196,6 @@
return 1
if(istype(W, /obj/item/weapon/screwdriver))
to_chat(user, "You finalize the Mass Driver...")
-
playsound(get_turf(src), 'sound/items/Screwdriver.ogg', 50, 1)
var/obj/machinery/mass_driver/M = new(get_turf(src))
M.dir = src.dir
diff --git a/code/game/machinery/navbeacon.dm b/code/game/machinery/navbeacon.dm
index ef0a6475972..79579e1bb66 100644
--- a/code/game/machinery/navbeacon.dm
+++ b/code/game/machinery/navbeacon.dm
@@ -91,14 +91,11 @@
if (src.allowed(user))
src.locked = !src.locked
to_chat(user, "Controls are now [src.locked ? "locked" : "unlocked"].")
-
else
to_chat(user, "Access denied.")
-
updateDialog()
else
to_chat(user, "You must open the cover first!")
-
return
/obj/machinery/navbeacon/attack_ai(mob/user)
@@ -117,7 +114,6 @@
if(!open && !ai) // can't alter controls if not open, unless you're an AI
to_chat(user, "The beacon's control cover is closed!")
-
return
diff --git a/code/game/machinery/newscaster.dm b/code/game/machinery/newscaster.dm
index 133affefb22..d991e7c5235 100644
--- a/code/game/machinery/newscaster.dm
+++ b/code/game/machinery/newscaster.dm
@@ -711,7 +711,6 @@ var/list/obj/machinery/newscaster/allCasters = list() //Global list that will co
/obj/machinery/newscaster/attackby(obj/item/I as obj, mob/living/user as mob, params)
if(istype(I, /obj/item/weapon/wrench))
to_chat(user, "Now [anchored ? "un" : ""]securing [name]")
-
playsound(src.loc, 'sound/items/Ratchet.ogg', 50, 1)
if(do_after(user, 60, target = src))
new /obj/item/mounted/frame/newscaster_frame(loc)
@@ -741,7 +740,6 @@ var/list/obj/machinery/newscaster/allCasters = list() //Global list that will co
playsound(src.loc, 'sound/effects/Glasshit.ogg', 100, 1)
else
to_chat(user, "This does nothing.")
-
src.update_icon()
/obj/machinery/newscaster/proc/AttachPhoto(mob/user as mob)
@@ -868,7 +866,6 @@ var/list/obj/machinery/newscaster/allCasters = list() //Global list that will co
to_chat(user, "The paper is full of intelligible symbols!")
-
obj/item/weapon/newspaper/Topic(href, href_list)
var/mob/living/U = usr
..()
@@ -905,7 +902,6 @@ obj/item/weapon/newspaper/attackby(obj/item/weapon/W as obj, mob/user as mob, pa
if(istype(W, /obj/item/weapon/pen))
if(src.scribble_page == src.curr_page)
to_chat(user, "There's already a scribble in this page... You wouldn't want to make things too cluttered, would you?")
-
else
var/s = strip_html( input(user, "Write something", "Newspaper", "") )
s = sanitize(copytext(s, 1, MAX_MESSAGE_LEN))
diff --git a/code/game/machinery/overview.dm b/code/game/machinery/overview.dm
index 59930a57883..2b56b71fc43 100644
--- a/code/game/machinery/overview.dm
+++ b/code/game/machinery/overview.dm
@@ -33,7 +33,6 @@
// to_chat(world, "[icount] images in list")
-
for(var/wx = 1 ; wx <= world.maxx; wx++)
for(var/wy = 1; wy <= world.maxy; wy++)
@@ -148,14 +147,12 @@
var/ry = ((wy*2+yoff)%32) + 1
// to_chat(world, "trying [ix],[iy] : [ix+icx*iy]")
-
var/icon/I = imap[1+(ix + icx*iy)*2]
var/icon/I2 = imap[2+(ix + icx*iy)*2]
// to_chat(world, "icon: \icon[I]")
-
I.DrawBox(colour, rx, ry, rx+1, ry+1)
I2.DrawBox(colour2, rx, ry, rx+1, ry+1)
@@ -173,7 +170,6 @@
// to_chat(world, "\icon[I] at [H.screen_loc]")
-
H.name = (i==0)?"maprefresh":"map"
var/icon/HI = new/icon
@@ -285,13 +281,11 @@
var/ry = ((wy*2+yoff)%32) + 1
// to_chat(world, "trying [ix],[iy] : [ix+icx*iy]")
-
var/icon/I = imap[1+(ix + icx*iy)]
// to_chat(world, "icon: \icon[I]")
-
I.DrawBox(colour, rx, ry, rx, ry)
@@ -307,7 +301,6 @@
// to_chat(world, "\icon[I] at [H.screen_loc]")
-
H.name = (i==0)?"maprefresh":"map"
var/icon/I = imap[i+1]
diff --git a/code/game/machinery/pipe/construction.dm b/code/game/machinery/pipe/construction.dm
index c20c5b56beb..ad54eb2e8e9 100644
--- a/code/game/machinery/pipe/construction.dm
+++ b/code/game/machinery/pipe/construction.dm
@@ -435,7 +435,6 @@
for(var/obj/machinery/atmospherics/M in src.loc)
if((M.initialize_directions & pipe_dir) && M.check_connect_types_construction(M,src)) // matches at least one direction on either type of pipe
to_chat(user, "There is already a pipe of the same type at this location.")
-
return 1
switch(pipe_type) //What kind of heartless person thought of doing this?
@@ -621,12 +620,10 @@
return ..()
if(!locate(/obj/machinery/atmospherics/pipe, src.loc))
to_chat(user, "\red You need to fasten it to a pipe")
-
return 1
new/obj/machinery/meter( src.loc )
playsound(src.loc, 'sound/items/Ratchet.ogg', 50, 1)
to_chat(user, "\blue You have fastened the meter to the pipe")
-
qdel(src)
/obj/item/pipe_gsensor
@@ -644,7 +641,6 @@
new/obj/machinery/air_sensor( src.loc )
playsound(get_turf(src), 'sound/items/Ratchet.ogg', 50, 1)
to_chat(user, "\blue You have fastened the gas sensor")
-
qdel(src)
#undef PIPE_SIMPLE_STRAIGHT
diff --git a/code/game/machinery/pipe/pipe_dispenser.dm b/code/game/machinery/pipe/pipe_dispenser.dm
index 4e7347fdfe0..9214178e9e4 100644
--- a/code/game/machinery/pipe/pipe_dispenser.dm
+++ b/code/game/machinery/pipe/pipe_dispenser.dm
@@ -101,7 +101,6 @@
src.add_fingerprint(usr)
if (istype(W, /obj/item/pipe) || istype(W, /obj/item/pipe_meter) || istype(W, /obj/item/pipe_gsensor))
to_chat(usr, "\blue You put [W] back to [src].")
-
user.drop_item()
qdel(W)
return
@@ -109,7 +108,6 @@
if (unwrenched==0)
playsound(src.loc, 'sound/items/Ratchet.ogg', 50, 1)
to_chat(user, "\blue You begin to unfasten \the [src] from the floor...")
-
if (do_after(user, 40, target = src))
user.visible_message( \
"[user] unfastens \the [src].", \
@@ -123,7 +121,6 @@
else /*if (unwrenched==1)*/
playsound(src.loc, 'sound/items/Ratchet.ogg', 50, 1)
to_chat(user, "\blue You begin to fasten \the [src] to the floor...")
-
if (do_after(user, 20, target = src))
user.visible_message( \
"[user] fastens \the [src].", \
diff --git a/code/game/machinery/podmen.dm b/code/game/machinery/podmen.dm
index 47068c97e9a..54585c0eb26 100644
--- a/code/game/machinery/podmen.dm
+++ b/code/game/machinery/podmen.dm
@@ -33,7 +33,6 @@ Growing it to term with nothing injected will grab a ghost from the observers. *
to_chat(user, "You inject the contents of the syringe into the seeds.")
-
var/datum/reagent/blood/B
//Find a blood sample to inject.
@@ -44,7 +43,6 @@ Growing it to term with nothing injected will grab a ghost from the observers. *
if(B)
source = B.data["donor"]
to_chat(user, "The strange, sluglike seeds quiver gently and swell with blood.")
-
if(!source.client && source.mind)
for(var/mob/O in respawnable_list)
if(O.mind == source.mind && config.revival_pod_plants)
@@ -54,11 +52,9 @@ Growing it to term with nothing injected will grab a ghost from the observers. *
return
if("No")
to_chat(user, "The seeds seem to reject the blood, returning to their original size as they stop quivering.")
-
return
else
to_chat(user, "Nothing happens.")
-
return
if (!istype(source))
@@ -81,7 +77,6 @@ Growing it to term with nothing injected will grab a ghost from the observers. *
if(beingharvested)
to_chat(user, ("\red You can only harvest the pod once!"))
-
else
user.visible_message("\blue [user] carefully begins to open the pod...","\blue You carefully begin to open the pod...")
beingharvested = 1
@@ -129,15 +124,11 @@ Growing it to term with nothing injected will grab a ghost from the observers. *
// -- End mode specific stuff
to_chat(podman, "\green You awaken slowly, feeling your sap stir into sluggish motion as the warm air caresses your bark.")
-
if(source && ckey && podman.ckey == ckey)
to_chat(podman, "Memories of a life as [source] drift oddly through a mind unsuited for them, like a skin of oil over a fathomless lake.")
-
to_chat(podman, "You are now one of the Dionaea, a race of drifting interstellar plantlike creatures that sometimes share their seeds with human traders.")
-
to_chat(podman, "Too much darkness will send you into shock and starve you, but light will help you heal.")
-
else
new /mob/living/carbon/monkey/diona(parent.loc)
diff --git a/code/game/machinery/poolcontroller.dm b/code/game/machinery/poolcontroller.dm
index ac9eb4c6793..b7f1f41b356 100644
--- a/code/game/machinery/poolcontroller.dm
+++ b/code/game/machinery/poolcontroller.dm
@@ -23,7 +23,6 @@
if(!emagged) //If it is not already emagged, emag it.
to_chat(user, "You disable \the [src]'s temperature safeguards.")//Inform the mob of what emagging does.
-
emagged = 1 //Set the emag var to true.
/obj/machinery/poolcontroller/attackby(obj/item/P as obj, mob/user as mob, params) //Proc is called when a user hits the pool controller with something.
@@ -31,13 +30,11 @@
if(emagged) //Check the emag status
to_chat(user, "You re-enable \the [src]'s temperature safeguards.")//Inform the user that they have just fixed the safeguards.
-
emagged = 0 //Set the emagged var to false.
else
to_chat(user, "Nothing happens.")//If not emagged, don't do anything, and don't tell the user that it can be emagged.
-
else //If it's not a multitool, defer to /obj/machinery/attackby
..()
@@ -72,25 +69,21 @@
M.bodytemperature = min(500, M.bodytemperature + 35) //heat mob at 35k(elvin) per cycle
to_chat(M, "The water is searing hot!")
-
if("warm") //Gently warm the mob.
M.bodytemperature = min(330, M.bodytemperature + 10) //Heats up mobs to just over normal, not enough to burn
if(prob(50)) //inform the mob of warm water half the time
to_chat(M, "The water is quite warm.")//Inform the mob it's warm water.
-
if("cool") //Gently cool the mob.
M.bodytemperature = max(290, M.bodytemperature - 10) //Cools mobs to just below normal, not enough to burn
if(prob(50)) //inform the mob of cold water half the time
to_chat(M, "The water is chilly.")//Inform the mob it's chilly water.
-
if("frigid") //Freeze the mob.
M.bodytemperature = max(80, M.bodytemperature - 35) //cool mob at -35k per cycle
to_chat(M, "The water is freezing!")
-
return
/obj/machinery/poolcontroller/proc/handleDrowning(var/mob/living/carbon/human/drownee)
diff --git a/code/game/machinery/portable_turret.dm b/code/game/machinery/portable_turret.dm
index 1c1a8a237b6..59a34b56436 100644
--- a/code/game/machinery/portable_turret.dm
+++ b/code/game/machinery/portable_turret.dm
@@ -175,12 +175,10 @@ var/list/turret_icons
/obj/machinery/porta_turret/proc/isLocked(mob/user)
if(ailock && (isrobot(user) || isAI(user)))
to_chat(user, "There seems to be a firewall preventing you from accessing this device.")
-
return 1
if(locked && !(isrobot(user) || isAI(user) || isobserver(user)))
to_chat(user, "Access denied.")
-
return 1
return 0
@@ -246,7 +244,6 @@ var/list/turret_icons
/obj/machinery/porta_turret/CanUseTopic(var/mob/user)
if(HasController())
to_chat(user, "Turrets can only be controlled using the assigned turret controller.")
-
return STATUS_CLOSE
if(isLocked(user))
@@ -254,7 +251,6 @@ var/list/turret_icons
if(!anchored)
to_chat(usr, "\The [src] has to be secured first!")
-
return STATUS_CLOSE
return ..()
@@ -334,11 +330,9 @@ var/list/turret_icons
//If the turret is destroyed, you can remove it with a crowbar to
//try and salvage its components
to_chat(user, "You begin prying the metal coverings off.")
-
if(do_after(user, 20, target = src))
if(prob(70))
to_chat(user, "You remove the turret and salvage some components.")
-
if(installation)
var/obj/item/weapon/gun/energy/Gun = new installation(loc)
Gun.power_supply.charge = gun_charge
@@ -349,21 +343,17 @@ var/list/turret_icons
new /obj/item/device/assembly/prox_sensor(loc)
else
to_chat(user, "You remove the turret but did not manage to salvage anything.")
-
qdel(src) // qdel
else if((istype(I, /obj/item/weapon/wrench)))
if(enabled || raised)
to_chat(user, "You cannot unsecure an active turret!")
-
return
if(wrenching)
to_chat(user, "Someone is already [anchored ? "un" : ""]securing the turret!")
-
return
if(!anchored && isinspace())
to_chat(user, "Cannot secure turrets in space!")
-
return
user.visible_message( \
@@ -379,12 +369,10 @@ var/list/turret_icons
anchored = 1
update_icon()
to_chat(user, "You secure the exterior bolts on the turret.")
-
else if(anchored)
playsound(loc, 'sound/items/Ratchet.ogg', 100, 1)
anchored = 0
to_chat(user, "You unsecure the exterior bolts on the turret.")
-
update_icon()
wrenching = 0
@@ -392,12 +380,10 @@ var/list/turret_icons
if(allowed(user))
locked = !locked
to_chat(user, "Controls are now [locked ? "locked" : "unlocked"].")
-
updateUsrDialog()
else
to_chat(user, "Access denied.")
-
else
//if the turret was attacked with the intention of harming it:
user.changeNext_move(CLICK_CD_MELEE)
@@ -422,7 +408,6 @@ var/list/turret_icons
take_damage(M.melee_damage_upper)
else
to_chat(M, "That object is useless to you.")
-
return
/obj/machinery/porta_turret/attack_alien(mob/living/carbon/alien/humanoid/M)
@@ -434,7 +419,6 @@ var/list/turret_icons
take_damage(15)
else
to_chat(M, "That object is useless to you.")
-
return
/obj/machinery/porta_turret/emag_act(user as mob)
@@ -443,7 +427,6 @@ var/list/turret_icons
//the turret shoot much, much faster.
if(user)
to_chat(user, "You short out [src]'s threat assessment circuits.")
-
visible_message("[src] hums oddly...")
emagged = 1
iconholder = 1
@@ -784,7 +767,6 @@ var/list/turret_icons
if(istype(I, /obj/item/weapon/wrench) && !anchored)
playsound(loc, 'sound/items/Ratchet.ogg', 100, 1)
to_chat(user, "You secure the external bolts.")
-
anchored = 1
build_step = 1
return
@@ -792,7 +774,6 @@ var/list/turret_icons
else if(istype(I, /obj/item/weapon/crowbar) && !anchored)
playsound(loc, 'sound/items/Crowbar.ogg', 75, 1)
to_chat(user, "You dismantle the turret construction.")
-
new /obj/item/stack/sheet/metal( loc, 5)
qdel(src) // qdel
return
@@ -802,18 +783,15 @@ var/list/turret_icons
var/obj/item/stack/sheet/metal/M = I
if(M.use(2))
to_chat(user, "You add some metal armor to the interior frame.")
-
build_step = 2
icon_state = "turret_frame2"
else
to_chat(user, "You need two sheets of metal to continue construction.")
-
return
else if(istype(I, /obj/item/weapon/wrench))
playsound(loc, 'sound/items/Ratchet.ogg', 75, 1)
to_chat(user, "You unfasten the external bolts.")
-
anchored = 0
build_step = 0
return
@@ -823,7 +801,6 @@ var/list/turret_icons
if(istype(I, /obj/item/weapon/wrench))
playsound(loc, 'sound/items/Ratchet.ogg', 100, 1)
to_chat(user, "You bolt the metal armor into place.")
-
build_step = 3
return
@@ -833,7 +810,6 @@ var/list/turret_icons
return
if(WT.get_fuel() < 5) //uses up 5 fuel.
to_chat(user, "You need more fuel to complete this task.")
-
return
playsound(loc, pick('sound/items/Welder.ogg', 'sound/items/Welder2.ogg'), 50, 1)
@@ -841,7 +817,6 @@ var/list/turret_icons
if(!src || !WT.remove_fuel(5, user)) return
build_step = 1
to_chat(user, "You remove the turret's interior metal armor.")
-
new /obj/item/stack/sheet/metal( loc, 2)
return
@@ -854,13 +829,11 @@ var/list/turret_icons
var/obj/item/weapon/gun/energy/E = I //typecasts the item to an energy gun
if(!user.unEquip(I))
to_chat(user, "\the [I] is stuck to your hand, you cannot put it in \the [src]")
-
return
installation = I.type //installation becomes I.type
gun_charge = E.power_supply.charge //the gun's charge is stored in gun_charge
to_chat(user, "You add [I] to the turret.")
-
if(istype(installation, /obj/item/weapon/gun/energy/laser/bluetag) || istype(installation, /obj/item/weapon/gun/energy/laser/redtag))
target_type = /obj/machinery/porta_turret/tag
else
@@ -873,7 +846,6 @@ var/list/turret_icons
else if(istype(I, /obj/item/weapon/wrench))
playsound(loc, 'sound/items/Ratchet.ogg', 100, 1)
to_chat(user, "You remove the turret's metal armor bolts.")
-
build_step = 2
return
@@ -881,12 +853,10 @@ var/list/turret_icons
if(isprox(I))
if(!user.unEquip(I))
to_chat(user, "\the [I] is stuck to your hand, you cannot put it in \the [src]")
-
return
build_step = 5
qdel(I) // qdel
to_chat(user, "You add the prox sensor to the turret.")
-
return
//attack_hand() removes the gun
@@ -896,7 +866,6 @@ var/list/turret_icons
playsound(loc, 'sound/items/Screwdriver.ogg', 100, 1)
build_step = 6
to_chat(user, "You close the internal access hatch.")
-
return
//attack_hand() removes the prox sensor
@@ -906,18 +875,15 @@ var/list/turret_icons
var/obj/item/stack/sheet/metal/M = I
if(M.use(2))
to_chat(user, "You add some metal armor to the exterior frame.")
-
build_step = 7
else
to_chat(user, "You need two sheets of metal to continue construction.")
-
return
else if(istype(I, /obj/item/weapon/screwdriver))
playsound(loc, 'sound/items/Screwdriver.ogg', 100, 1)
build_step = 5
to_chat(user, "You open the internal access hatch.")
-
return
if(7)
@@ -927,7 +893,6 @@ var/list/turret_icons
if(WT.get_fuel() < 5)
to_chat(user, "You need more fuel to complete this task.")
-
playsound(loc, pick('sound/items/Welder.ogg', 'sound/items/Welder2.ogg'), 50, 1)
if(do_after(user, 30, target = src))
if(!src || !WT.remove_fuel(5, user))
@@ -935,7 +900,6 @@ var/list/turret_icons
build_step = 8
to_chat(user, "You weld the turret's armor down.")
-
//The final step: create a full turret
var/obj/machinery/porta_turret/Turret = new target_type(loc)
Turret.name = finish_name
@@ -949,7 +913,6 @@ var/list/turret_icons
else if(istype(I, /obj/item/weapon/crowbar))
playsound(loc, 'sound/items/Crowbar.ogg', 75, 1)
to_chat(user, "You pry off the turret's exterior armor.")
-
new /obj/item/stack/sheet/metal(loc, 2)
build_step = 6
return
@@ -981,10 +944,8 @@ var/list/turret_icons
gun_charge = 0
to_chat(user, "You remove [Gun] from the turret frame.")
-
if(5)
to_chat(user, "You remove the prox sensor from the turret frame.")
-
new /obj/item/device/assembly/prox_sensor(loc)
build_step = 4
diff --git a/code/game/machinery/programmable_unloader.dm b/code/game/machinery/programmable_unloader.dm
index 02c6bdea07b..f061f9906e6 100644
--- a/code/game/machinery/programmable_unloader.dm
+++ b/code/game/machinery/programmable_unloader.dm
@@ -200,7 +200,6 @@
if (unwrenched==0)
playsound(src.loc, 'sound/items/Ratchet.ogg', 50, 1)
to_chat(user, "\blue You begin to unfasten \the [src] from the floor...")
-
if (do_after(user, 40, target = src))
user.visible_message( \
"[user] unfastens \the [src].", \
@@ -214,7 +213,6 @@
else /* unwrenched */
playsound(src.loc, 'sound/items/Ratchet.ogg', 50, 1)
to_chat(user, "\blue You begin to fasten \the [src] to the floor...")
-
if (do_after(user, 20, target = src))
user.visible_message( \
"[user] fastens \the [src].", \
@@ -233,19 +231,15 @@
if(!unwrenched && !circuit_removed)
src.stat &= ~MAINT
to_chat(user, "You close \the [src]'s maintenance panel.")
-
else
open = 1
src.stat |= MAINT
to_chat(user, "You open \the [src]'s maintenance panel.")
-
if(istype(I,/obj/item/weapon/crowbar))
if(open)
to_chat(user, "\blue You begin to pry out the [src]'s circuits.")
-
if(do_after(user,40, target = src))
to_chat(user, "\blue You remove the circuitboard.")
-
circuit_removed = 1
use_power = 0
on = 0
@@ -267,11 +261,9 @@
if(istype(I,/obj/item/weapon/circuitboard/programmable))
if(!open)
to_chat(user, "You have to open the machine first!")
-
return
if(!circuit_removed)
to_chat(user, "There is already a circuitboard present!")
-
return
circuit_removed = 0
I.loc = src
@@ -281,7 +273,6 @@
if(emagged)
return
to_chat(user, "You swipe the unloader with your card. After a moment's grinding, it beeps in a sinister fashion.")
-
playsound(src.loc, 'sound/machines/twobeep.ogg', 50, 0)
emagged = 1
overrides += emag_overrides
@@ -310,7 +301,6 @@
M.client.perspective = MOB_PERSPECTIVE
to_chat(M, "\blue The machine turns off, and you fall out.")
-
return
//Normal output reaction
@@ -509,7 +499,6 @@
var/newsleep = 0
if(H.loc != input)
to_chat(H, "The boxing machine refuses to acknowledge you unless you face it head on!")
-
return
var/damage = 0
if(H.a_intent != I_HARM)
@@ -597,27 +586,22 @@
hacking = (hacking?0:1)
if(hacking)
to_chat(user, "You unlock the data port on the board. You can now use a PDA to alter its data.")
-
else
to_chat(user, "You relock the data port.")
-
if(istype(I,/obj/item/device/pda))
if(!hacking)
to_chat(user, "It looks like you can't access the board's data port. You'll have to open it with a multitool.")
-
else
user.set_machine(src)
interact(user)
if(istype(I,/obj/item/weapon/card/emag) && !emagged)
if(!hacking)
to_chat(user, "There seems to be a data port on the card, but it's locked. A multitool could open it.")
-
else
emagged = 1
overrides += emag_overrides
to_chat(user, "You swipe the card in the card's data port. The lights flicker, then flash once.")
-
proc/format(var/datum/cargoprofile/P,var/level)
// PROFILE=0 OVERRIDE=1 MAIN=2
if(P == null)
diff --git a/code/game/machinery/recharger.dm b/code/game/machinery/recharger.dm
index 8eebb024633..be126aec5ff 100644
--- a/code/game/machinery/recharger.dm
+++ b/code/game/machinery/recharger.dm
@@ -19,7 +19,6 @@
if(!user.canUnEquip(G, 0))
to_chat(user, "[G] is stuck to your hand, you can't put it in [src]!")
-
return
if(istype(G, /obj/item/weapon/gun/energy) || istype(G, /obj/item/weapon/melee/baton) || istype(G,/obj/item/device/laptop) || istype(G, /obj/item/weapon/rcs))
@@ -30,25 +29,21 @@
var/area/a = get_area(src)
if(!isarea(a))
to_chat(user, "\red The [name] blinks red as you try to insert the item!")
-
return
if(a.power_equip == 0 && a.requires_power)
to_chat(user, "\red The [name] blinks red as you try to insert the item!")
-
return
if (istype(G, /obj/item/weapon/gun/energy))
var/obj/item/weapon/gun/energy/E = G
if(!E.can_charge)
to_chat(user, "Your gun has no external power connector.")
-
return
if(istype(G, /obj/item/device/laptop))
var/obj/item/device/laptop/L = G
if(!L.stored_computer.battery)
to_chat(user, "There's no battery in it!")
-
return
user.drop_item()
@@ -59,11 +54,9 @@
else if(istype(G, /obj/item/weapon/wrench))
if(charging)
to_chat(user, "\red Remove the weapon first!")
-
return
anchored = !anchored
to_chat(user, "You [anchored ? "attached" : "detached"] the recharger.")
-
playsound(loc, 'sound/items/Ratchet.ogg', 75, 1)
/obj/machinery/recharger/attack_hand(mob/user as mob)
diff --git a/code/game/machinery/rechargestation.dm b/code/game/machinery/rechargestation.dm
index 6434b350830..5b5a532efdb 100644
--- a/code/game/machinery/rechargestation.dm
+++ b/code/game/machinery/rechargestation.dm
@@ -90,7 +90,6 @@
if (istype(P, /obj/item/weapon/screwdriver))
if(src.occupant)
to_chat(user, "The maintenance panel is locked.")
-
return
default_deconstruction_screwdriver(user, "borgdecon2", "borgcharger0", P)
return
@@ -219,12 +218,10 @@
if(get_dist(src, user) > 2 || get_dist(usr, user) > 1)
to_chat(usr, "They are too far away to put inside")
-
return
if (panel_open)
to_chat(usr, "Close the maintenance panel first.")
-
return
var/can_accept_user
@@ -236,11 +233,9 @@
return
if(occupant)
to_chat(R, "The cell is already occupied!")
-
return
if(!R.cell)
to_chat(R, "Without a power cell, you can't be recharged.")
-
//Make sure they actually HAVE a cell, now that they can get in while powerless. --NEO
return
can_accept_user = 1
@@ -252,7 +247,6 @@
return
if(occupant)
to_chat(H, "The cell is already occupied!")
-
return
if(!H.get_int_organ(/obj/item/organ/internal/cell))
return
@@ -260,7 +254,6 @@
if(!can_accept_user)
to_chat(user, "Only non-organics may enter the recharger!")
-
return
user.stop_pulling()
diff --git a/code/game/machinery/recycler.dm b/code/game/machinery/recycler.dm
index 582a842f15e..9bcf3de53a8 100644
--- a/code/game/machinery/recycler.dm
+++ b/code/game/machinery/recycler.dm
@@ -46,12 +46,9 @@ var/const/SAFETY_COOLDOWN = 100
/obj/machinery/recycler/examine(mob/user)
..(user)
to_chat(user, "The power light is [(stat & NOPOWER) ? "off" : "on"].")
-
to_chat(user, "The safety-mode light is [safety_mode ? "on" : "off"].")
-
to_chat(user, "The safety-sensors status light is [emagged ? "off" : "on"].")
-
/obj/machinery/recycler/power_change()
..()
update_icon()
@@ -83,7 +80,6 @@ var/const/SAFETY_COOLDOWN = 100
playsound(src.loc, "sparks", 75, 1, -1)
to_chat(user, "You use the cryptographic sequencer on the [src.name].")
-
/obj/machinery/recycler/update_icon()
..()
var/is_powered = !(stat & (BROKEN|NOPOWER))
@@ -200,11 +196,9 @@ var/const/SAFETY_COOLDOWN = 100
return
if (src.anchored)
to_chat(usr, "[src] is fastened to the floor!")
-
return 0
eat_dir = turn(eat_dir, 270)
to_chat(user, "[src] will now accept items from [dir2text(eat_dir)].")
-
return 1
/obj/machinery/recycler/verb/rotateccw()
@@ -218,11 +212,9 @@ var/const/SAFETY_COOLDOWN = 100
return
if (src.anchored)
to_chat(usr, "[src] is fastened to the floor!")
-
return 0
eat_dir = turn(eat_dir, 90)
to_chat(user, "[src] will now accept items from [dir2text(eat_dir)].")
-
return 1
/obj/item/weapon/paper/recycler
diff --git a/code/game/machinery/requests_console.dm b/code/game/machinery/requests_console.dm
index 70b70e554a8..bfd4939dc3b 100644
--- a/code/game/machinery/requests_console.dm
+++ b/code/game/machinery/requests_console.dm
@@ -228,7 +228,6 @@ var/list/obj/machinery/requests_console/allConsoles = list()
else
to_chat(user, "You can't do much with that.")*/
-
if (istype(O, /obj/item/weapon/card/id))
if(inoperable(MAINT)) return
if(screen == RCS_MESSAUTH)
@@ -243,7 +242,6 @@ var/list/obj/machinery/requests_console/allConsoles = list()
else
reset_message()
to_chat(user, "You are not authorized to send announcements.")
-
updateUsrDialog()
if (istype(O, /obj/item/weapon/stamp))
if(inoperable(MAINT)) return
diff --git a/code/game/machinery/robot_fabricator.dm b/code/game/machinery/robot_fabricator.dm
index a6d9dfc3293..44455884bd8 100644
--- a/code/game/machinery/robot_fabricator.dm
+++ b/code/game/machinery/robot_fabricator.dm
@@ -29,13 +29,11 @@
qdel(O)
to_chat(user, "You insert [count] metal sheet\s into the fabricator.")
-
src.overlays -= "fab-load-metal"
updateDialog()
else
to_chat(user, "The robot part maker is full. Please remove metal from the robot part maker in order to insert more.")
-
/obj/machinery/robotic_fabricator/power_change()
if (powered())
stat &= ~NOPOWER
diff --git a/code/game/machinery/seed_extractor.dm b/code/game/machinery/seed_extractor.dm
index acf030b9ddc..dbff4722cad 100644
--- a/code/game/machinery/seed_extractor.dm
+++ b/code/game/machinery/seed_extractor.dm
@@ -45,7 +45,6 @@ obj/machinery/seed_extractor/attackby(var/obj/item/O as obj, var/mob/user as mob
if(new_seed_type)
to_chat(user, "You extract some seeds from [O].")
-
var/produce = rand(1,4)
for(var/i = 0;i<=produce;i++)
var/obj/item/seeds/seeds = new(get_turf(src))
@@ -54,14 +53,12 @@ obj/machinery/seed_extractor/attackby(var/obj/item/O as obj, var/mob/user as mob
else
to_chat(user, "[O] doesn't seem to have any usable seeds inside it.")
-
qdel(O)
//Grass.
else if(istype(O, /obj/item/stack/tile/grass))
var/obj/item/stack/tile/grass/S = O
to_chat(user, "You extract some seeds from the [S.name].")
-
S.use(1)
new /obj/item/seeds/grassseed(loc)
diff --git a/code/game/machinery/shieldgen.dm b/code/game/machinery/shieldgen.dm
index 41c5e1a13ae..323937075ad 100644
--- a/code/game/machinery/shieldgen.dm
+++ b/code/game/machinery/shieldgen.dm
@@ -209,11 +209,9 @@
/obj/machinery/shieldgen/attack_hand(mob/user as mob)
if(locked)
to_chat(user, "The machine is locked, you are unable to use it.")
-
return
if(is_open)
to_chat(user, "The panel must be closed before operating this machine.")
-
return
if (src.active)
@@ -229,7 +227,6 @@
src.shields_up()
else
to_chat(user, "The device must first be secured to the floor.")
-
return
/obj/machinery/shieldgen/attackby(obj/item/weapon/W as obj, mob/user as mob, params)
@@ -241,17 +238,14 @@
playsound(src.loc, 'sound/items/Screwdriver.ogg', 100, 1)
if(is_open)
to_chat(user, "\blue You close the panel.")
-
is_open = 0
else
to_chat(user, "\blue You open the panel and expose the wiring.")
-
is_open = 1
else if(istype(W, /obj/item/stack/cable_coil) && malfunction && is_open)
var/obj/item/stack/cable_coil/coil = W
to_chat(user, "\blue You begin to replace the wires.")
-
//if(do_after(user, min(60, round( ((maxhealth/health)*10)+(malfunction*10) ), target = src)) //Take longer to repair heavier damage
if(do_after(user, 30, target = src))
if(!src || !coil) return
@@ -259,28 +253,23 @@
health = max_health
malfunction = 0
to_chat(user, "\blue You repair the [src]!")
-
update_icon()
else if(istype(W, /obj/item/weapon/wrench))
if(locked)
to_chat(user, "The bolts are covered, unlocking this would retract the covers.")
-
return
if(anchored)
playsound(src.loc, 'sound/items/Ratchet.ogg', 100, 1)
to_chat(user, "\blue You unsecure the [src] from the floor!")
-
if(active)
to_chat(user, "\blue The [src] shuts off!")
-
src.shields_down()
anchored = 0
else
if(istype(get_turf(src), /turf/space)) return //No wrenching these in space!
playsound(src.loc, 'sound/items/Ratchet.ogg', 100, 1)
to_chat(user, "\blue You secure the [src] to the floor!")
-
anchored = 1
@@ -288,11 +277,9 @@
if(src.allowed(user))
src.locked = !src.locked
to_chat(user, "The controls are now [src.locked ? "locked." : "unlocked."]")
-
else
to_chat(user, "\red Access denied.")
-
else
..()
@@ -360,15 +347,12 @@
/obj/machinery/shieldwallgen/attack_hand(mob/user as mob)
if(state != 1)
to_chat(user, "\red The shield generator needs to be firmly secured to the floor first.")
-
return 1
if(src.locked && !istype(user, /mob/living/silicon))
to_chat(user, "\red The controls are locked!")
-
return 1
if(power != 1)
to_chat(user, "\red The shield generator needs to be powered by wire underneath.")
-
return 1
if(src.active >= 1)
@@ -469,14 +453,12 @@
if(istype(W, /obj/item/weapon/wrench))
if(active)
to_chat(user, "Turn off the field generator first.")
-
return
else if(state == 0)
state = 1
playsound(src.loc, 'sound/items/Ratchet.ogg', 75, 1)
to_chat(user, "You secure the external reinforcing bolts to the floor.")
-
src.anchored = 1
return
@@ -484,7 +466,6 @@
state = 0
playsound(src.loc, 'sound/items/Ratchet.ogg', 75, 1)
to_chat(user, "You undo the external reinforcing bolts.")
-
src.anchored = 0
return
@@ -492,11 +473,9 @@
if (src.allowed(user))
src.locked = !src.locked
to_chat(user, "Controls are now [src.locked ? "locked." : "unlocked."]")
-
else
to_chat(user, "\red Access denied.")
-
else
add_fingerprint(user)
..()
diff --git a/code/game/machinery/spaceheater.dm b/code/game/machinery/spaceheater.dm
index cac66fb2871..6ba798cebee 100644
--- a/code/game/machinery/spaceheater.dm
+++ b/code/game/machinery/spaceheater.dm
@@ -29,15 +29,12 @@
/obj/machinery/space_heater/examine(mob/user)
..(user)
to_chat(user, "The heater is [on ? "on" : "off"] and the hatch is [open ? "open" : "closed"].")
-
if(open)
to_chat(user, "The power cell is [cell ? "installed" : "missing"].")
-
else
to_chat(user, "The charge meter reads [cell ? round(cell.percent(),1) : 0]%")
-
/obj/machinery/space_heater/emp_act(severity)
if(stat & (BROKEN|NOPOWER))
..(severity)
@@ -51,7 +48,6 @@
if(open)
if(cell)
to_chat(user, "There is already a power cell inside.")
-
return
else
// insert cell
@@ -65,7 +61,6 @@
user.visible_message("\blue [user] inserts a power cell into [src].", "\blue You insert the power cell into [src].")
else
to_chat(user, "The hatch must be open to insert a power cell.")
-
return
else if(istype(I, /obj/item/weapon/screwdriver))
open = !open
diff --git a/code/game/machinery/status_display.dm b/code/game/machinery/status_display.dm
index 9c531ca2c20..e73dbaf5dbd 100644
--- a/code/game/machinery/status_display.dm
+++ b/code/game/machinery/status_display.dm
@@ -136,7 +136,6 @@
if(mode != STATUS_DISPLAY_BLANK && mode != STATUS_DISPLAY_ALERT)
to_chat(user, "The display says:
\t[sanitize(message1)]
\t[sanitize(message2)]")
-
/obj/machinery/status_display/proc/set_message(m1, m2)
if(m1)
index1 = (length(m1) > CHARS_PER_LINE)
diff --git a/code/game/machinery/suit_storage_unit.dm b/code/game/machinery/suit_storage_unit.dm
index f4e1337b8ea..9cb2c7db4d6 100644
--- a/code/game/machinery/suit_storage_unit.dm
+++ b/code/game/machinery/suit_storage_unit.dm
@@ -249,16 +249,13 @@
if(!protected)
playsound(src.loc, "sparks", 75, 1, -1)
to_chat(user, "You try to touch the controls but you get zapped. There must be a short circuit somewhere.")
-
return*/
else //welp, the guy is protected, we can continue
if(src.issuperUV)
to_chat(user, "You slide the dial back towards \"185nm\".")
-
src.issuperUV = 0
else
to_chat(user, "You crank the dial all the way up to \"15nm\".")
-
src.issuperUV = 1
return
@@ -278,11 +275,9 @@
if(!protected)
playsound(src.loc, "sparks", 75, 1, -1)
to_chat(user, "You try to touch the controls but you get zapped. There must be a short circuit somewhere.")
-
return*/
else
to_chat(user, "You push the button. The coloured LED next to it changes.")
-
src.safetieson = !src.safetieson
@@ -332,7 +327,6 @@
/obj/machinery/suit_storage_unit/proc/toggle_open(mob/user as mob)
if(src.islocked || src.isUV)
to_chat(user, "Unable to open unit.")
-
return
if(src.OCCUPANT)
src.eject_occupant(user)
@@ -344,7 +338,6 @@
/obj/machinery/suit_storage_unit/proc/toggle_lock(mob/user as mob)
if(src.OCCUPANT && src.safetieson)
to_chat(user, "The Unit's safety protocols disallow locking when a biological form is detected inside its compartments.")
-
return
if(src.isopen)
return
@@ -357,14 +350,11 @@
return
if(src.OCCUPANT && src.safetieson)
to_chat(user, "WARNING: Biological entity detected in the confines of the Unit's storage. Cannot initiate cycle.")
-
return
if(!src.HELMET && !src.MASK && !src.SUIT && !src.OCCUPANT ) //shit's empty yo
to_chat(user, "Unit storage bays empty. Nothing to disinfect -- Aborting.")
-
return
to_chat(user, "You start the Unit's cauterisation cycle.")
-
src.cycletime_left = 20
src.isUV = 1
if(src.OCCUPANT && !src.islocked)
@@ -427,11 +417,9 @@
if(src.issuperUV)
OCCUPANT.take_organ_damage(0,40)
to_chat(user, "Test. You gave him 40 damage")
-
else
OCCUPANT.take_organ_damage(0,8)
to_chat(user, "Test. You gave him 8 damage")
-
return*/
@@ -453,11 +441,9 @@
if (src.OCCUPANT.client)
if(user != OCCUPANT)
to_chat(OCCUPANT, "The machine kicks you out!")
-
if(user.loc != src.loc)
to_chat(OCCUPANT, "You leave the not-so-cozy confines of the SSU.")
-
src.OCCUPANT.client.eye = src.OCCUPANT.client.mob
src.OCCUPANT.client.perspective = MOB_PERSPECTIVE
src.OCCUPANT.loc = src.loc
@@ -491,15 +477,12 @@
return
if (!src.isopen)
to_chat(usr, "The unit's doors are shut.")
-
return
if (!src.ispowered || src.isbroken)
to_chat(usr, "The unit is not operational.")
-
return
if ( (src.OCCUPANT) || (src.HELMET) || (src.SUIT) )
to_chat(usr, "It's too cluttered inside for you to fit in!")
-
return
visible_message("[usr] starts squeezing into the suit storage unit!")
if(do_after(usr, 10, target = usr))
@@ -530,7 +513,6 @@
src.panelopen = !src.panelopen
playsound(src.loc, 'sound/items/Screwdriver.ogg', 100, 1)
to_chat(user, text("You [] the unit's maintenance panel.",(src.panelopen ? "open up" : "close") ))
-
src.updateUsrDialog()
return
if ( istype(I, /obj/item/weapon/grab) )
@@ -539,15 +521,12 @@
return
if (!src.isopen)
to_chat(usr, "The unit's doors are shut.")
-
return
if (!src.ispowered || src.isbroken)
to_chat(usr, "The unit is not operational.")
-
return
if ( (src.OCCUPANT) || (src.HELMET) || (src.SUIT) ) //Unit needs to be absolutely empty
to_chat(user, "The unit's storage area is too cluttered.")
-
return
visible_message("[user] starts putting [G.affecting.name] into the Suit Storage Unit.")
if(do_after(user, 20, target = G:affecting))
@@ -574,10 +553,8 @@
var/obj/item/clothing/suit/space/S = I
if(src.SUIT)
to_chat(user, "The unit already contains a suit.")
-
return
to_chat(user, "You load the [S.name] into the storage compartment.")
-
user.drop_item()
S.loc = src
src.SUIT = S
@@ -590,10 +567,8 @@
var/obj/item/clothing/head/helmet/H = I
if(src.HELMET)
to_chat(user, "The unit already contains a helmet.")
-
return
to_chat(user, "You load the [H.name] into the storage compartment.")
-
user.drop_item()
H.loc = src
src.HELMET = H
@@ -606,10 +581,8 @@
var/obj/item/clothing/mask/M = I
if(src.MASK)
to_chat(user, "The unit already contains a mask.")
-
return
to_chat(user, "You load the [M.name] into the storage compartment.")
-
user.drop_item()
M.loc = src
src.MASK = M
@@ -706,12 +679,10 @@
if(locked)
to_chat(user, "\red The suit cycler is locked.")
-
return
if(src.contents.len > 0)
to_chat(user, "\red There is no room inside the cycler for [G.affecting.name].")
-
return
visible_message("[user] starts putting [G.affecting.name] into the suit cycler.")
@@ -735,7 +706,6 @@
panel_open = !panel_open
to_chat(user, "You [panel_open ? "open" : "close"] the maintenance panel.")
-
src.updateUsrDialog()
return
@@ -743,16 +713,13 @@
if(locked)
to_chat(user, "\red The suit cycler is locked.")
-
return
if(helmet)
to_chat(user, "The cycler already contains a helmet.")
-
return
to_chat(user, "You fit \the [I] into the suit cycler.")
-
user.drop_item()
I.loc = src
helmet = I
@@ -765,28 +732,23 @@
if(locked)
to_chat(user, "\red The suit cycler is locked.")
-
return
if(suit)
to_chat(user, "The cycler already contains a hardsuit.")
-
return
var/obj/item/clothing/suit/space/rig/S = I
if(S.helmet)
to_chat(user, "\The [S] will not fit into the cycler with a helmet attached.")
-
return
if(S.boots)
to_chat(user, "\The [S] will not fit into the cycler with boots attached.")
-
return
to_chat(user, "You fit \the [I] into the suit cycler.")
-
user.drop_item()
I.loc = src
suit = I
@@ -800,12 +762,10 @@
/obj/machinery/suit_cycler/emag_act(user as mob)
if(emagged)
to_chat(user, "\red The cycler has already been subverted.")
-
return
//Clear the access reqs, disable the safeties, and open up all paintjobs.
to_chat(user, "\red You run the sequencer across the interface, corrupting the operating protocols.")
-
departments = list("Engineering","Mining","Medical","Security","Atmos","^%###^%$")
emagged = 1
safeties = 0
@@ -926,16 +886,13 @@
if(src.allowed(usr))
locked = !locked
to_chat(usr, "You [locked ? "" : "un"]lock \the [src].")
-
else
to_chat(usr, "\red Access denied.")
-
else if(href_list["begin_decontamination"])
if(safeties && occupant)
to_chat(usr, "\red The cycler has detected an occupant. Please remove the occupant before commencing the decontamination cycle.")
-
return
active = 1
@@ -956,7 +913,6 @@
var/twire = text2num(href_list["cutwire"])
if (!( istype(usr.get_active_hand(), /obj/item/weapon/wirecutters) ))
to_chat(usr, "You need wirecutters!")
-
return
if (src.isWireColorCut(twire))
src.mend(twire)
@@ -967,11 +923,9 @@
var/twire = text2num(href_list["pulsewire"])
if (!istype(usr.get_active_hand(), /obj/item/device/multitool))
to_chat(usr, "You need a multitool!")
-
return
if (src.isWireColorCut(twire))
to_chat(usr, "You can't pulse a cut wire.")
-
return
else
src.pulse(twire)*/
@@ -1038,7 +992,6 @@
if(locked || active)
to_chat(user, "\red The cycler is locked.")
-
return
if (!occupant)
diff --git a/code/game/machinery/syndicatebeacon.dm b/code/game/machinery/syndicatebeacon.dm
index 4feba8ac8f8..7790cf10ebc 100644
--- a/code/game/machinery/syndicatebeacon.dm
+++ b/code/game/machinery/syndicatebeacon.dm
@@ -87,13 +87,11 @@
to_chat(M, "You have joined the ranks of the Syndicate and become a traitor to the station!")
-
message_admins("[key_name_admin(N)] has accepted a traitor objective from a syndicate beacon.")
var/obj_count = 1
for(var/datum/objective/OBJ in M.mind.objectives)
to_chat(M, "Objective #[obj_count]: [OBJ.explanation_text]")
-
obj_count++
src.add_fingerprint(usr)
@@ -129,7 +127,6 @@
if(surplus() < 1500)
if(user)
to_chat(user, "The connected wire doesn't have enough current.")
-
return
for(var/obj/singularity/singulo in singularities)
if(singulo.z == z)
@@ -141,7 +138,6 @@
to_chat(user, "You activate the beacon.")
-
/obj/machinery/power/singularity_beacon/proc/Deactivate(mob/user = null)
for(var/obj/singularity/singulo in world)
if(singulo.target == src)
@@ -152,7 +148,6 @@
to_chat(user, "You deactivate the beacon.")
-
/obj/machinery/power/singularity_beacon/attack_ai(mob/user as mob)
return
@@ -162,7 +157,6 @@
return active ? Deactivate(user) : Activate(user)
else
to_chat(user, "You need to screw the beacon to the floor first!")
-
return
@@ -170,23 +164,19 @@
if(istype(W,/obj/item/weapon/screwdriver))
if(active)
to_chat(user, "You need to deactivate the beacon first!")
-
return
if(anchored)
anchored = 0
to_chat(user, "You unscrew the beacon from the floor.")
-
disconnect_from_network()
return
else
if(!connect_to_network())
to_chat(user, "This device must be placed over an exposed cable.")
-
return
anchored = 1
to_chat(user, "You screw the beacon to the floor and attach the cable.")
-
return
..()
return
diff --git a/code/game/machinery/syndicatebomb.dm b/code/game/machinery/syndicatebomb.dm
index 509371b0b95..fe443662616 100644
--- a/code/game/machinery/syndicatebomb.dm
+++ b/code/game/machinery/syndicatebomb.dm
@@ -49,7 +49,6 @@
..(user)
to_chat(user, "A digital display on it reads \"[timer]\".")
-
/obj/machinery/syndicatebomb/update_icon()
icon_state = "[initial(icon_state)][active ? "-active" : "-inactive"][open_panel ? "-wires" : ""]"
@@ -58,31 +57,25 @@
if(!anchored)
if(!isturf(src.loc) || istype(src.loc, /turf/space))
to_chat(user, "The bomb must be placed on solid ground to attach it")
-
else
to_chat(user, "You firmly wrench the bomb to the floor")
-
playsound(loc, 'sound/items/ratchet.ogg', 50, 1)
anchored = 1
if(active)
to_chat(user, "The bolts lock in place")
-
else
if(!active)
to_chat(user, "You wrench the bomb from the floor")
-
playsound(loc, 'sound/items/ratchet.ogg', 50, 1)
anchored = 0
else
to_chat(user, "The bolts are locked down!")
-
else if(istype(I, /obj/item/weapon/screwdriver))
open_panel = !open_panel
update_icon()
to_chat(user, "You [open_panel ? "open" : "close"] the wire panel.")
-
else if(istype(I, /obj/item/weapon/wirecutters) || istype(I, /obj/item/device/multitool) || istype(I, /obj/item/device/assembly/signaler ))
if(open_panel)
wires.Interact(user)
@@ -91,28 +84,22 @@
if(open_panel && isWireCut(WIRE_BOOM) && isWireCut(WIRE_UNBOLT) && isWireCut(WIRE_DELAY) && isWireCut(WIRE_PROCEED) && isWireCut(WIRE_ACTIVATE))
if(payload)
to_chat(user, "You carefully pry out [payload].")
-
payload.loc = user.loc
payload = null
else
to_chat(user, "There isn't anything in here to remove!")
-
else if (open_panel)
to_chat(user, "The wires conneting the shell to the explosives are holding it down!")
-
else
to_chat(user, "The cover is screwed on, it won't pry off!")
-
else if(istype(I, /obj/item/weapon/bombcore))
if(!payload)
payload = I
to_chat(user, "You place [payload] into [src].")
-
user.drop_item()
payload.loc = src
else
to_chat(user, "[payload] is already loaded into [src], you'll have to remove it first.")
-
else
..()
@@ -132,7 +119,6 @@
return
else if(anchored)
to_chat(user, "The bomb is bolted to the floor!")
-
return
/obj/machinery/syndicatebomb/proc/settings(var/mob/user)
@@ -325,7 +311,6 @@
existant++
playsound(user, 'sound/machines/click.ogg', 20, 1)
to_chat(user, "[existant] found, [detonated] triggered.")
-
if(detonated)
var/turf/T = get_turf(src)
var/area/A = get_area(T)
diff --git a/code/game/machinery/telecomms/logbrowser.dm b/code/game/machinery/telecomms/logbrowser.dm
index 4b36ab9d370..4bbdb4966c1 100644
--- a/code/game/machinery/telecomms/logbrowser.dm
+++ b/code/game/machinery/telecomms/logbrowser.dm
@@ -185,7 +185,6 @@
if(!src.allowed(usr) && !emagged)
to_chat(usr, "\red ACCESS DENIED.")
-
return
if(SelectedServer)
@@ -224,7 +223,6 @@
if(do_after(user, 20, target = src))
if (src.stat & BROKEN)
to_chat(user, "\blue The broken glass falls out.")
-
var/obj/structure/computerframe/A = new /obj/structure/computerframe( src.loc )
new /obj/item/weapon/shard(loc)
var/obj/item/weapon/circuitboard/comm_server/M = new /obj/item/weapon/circuitboard/comm_server( A )
@@ -237,7 +235,6 @@
qdel(src)
else
to_chat(user, "\blue You disconnect the monitor.")
-
var/obj/structure/computerframe/A = new /obj/structure/computerframe( src.loc )
var/obj/item/weapon/circuitboard/comm_server/M = new /obj/item/weapon/circuitboard/comm_server( A )
for (var/obj/C in src)
@@ -255,4 +252,3 @@
playsound(src.loc, 'sound/effects/sparks4.ogg', 75, 1)
emagged = 1
to_chat(user, "\blue You you disable the security protocols")
-
diff --git a/code/game/machinery/telecomms/machine_interactions.dm b/code/game/machinery/telecomms/machine_interactions.dm
index 671b1c993eb..da9fe5a046e 100644
--- a/code/game/machinery/telecomms/machine_interactions.dm
+++ b/code/game/machinery/telecomms/machine_interactions.dm
@@ -24,30 +24,25 @@
if(0)
if(istype(P, /obj/item/weapon/screwdriver))
to_chat(user, "You unfasten the bolts.")
-
playsound(src.loc, 'sound/items/Screwdriver.ogg', 50, 1)
construct_op++
if(1)
if(istype(P, /obj/item/weapon/screwdriver))
to_chat(user, "You fasten the bolts.")
-
playsound(src.loc, 'sound/items/Screwdriver.ogg', 50, 1)
construct_op--
if(istype(P, /obj/item/weapon/wrench))
to_chat(user, "You dislodge the external plating.")
-
playsound(src.loc, 'sound/items/Ratchet.ogg', 75, 1)
construct_op++
if(2)
if(istype(P, /obj/item/weapon/wrench))
to_chat(user, "You secure the external plating.")
-
playsound(src.loc, 'sound/items/Ratchet.ogg', 75, 1)
construct_op--
if(istype(P, /obj/item/weapon/wirecutters))
playsound(src.loc, 'sound/items/Wirecutter.ogg', 50, 1)
to_chat(user, "You remove the cables.")
-
construct_op++
var/obj/item/stack/cable_coil/A = new /obj/item/stack/cable_coil( user.loc )
A.amount = 5
@@ -57,7 +52,6 @@
var/obj/item/stack/cable_coil/A = P
if(A.amount >= 5)
to_chat(user, "You insert the cables.")
-
A.amount -= 5
if(A.amount <= 0)
user.drop_item()
@@ -66,12 +60,10 @@
stat &= ~BROKEN // the machine's not borked anymore!
if(istype(P, /obj/item/weapon/crowbar))
to_chat(user, "You begin prying out the circuit board other components...")
-
playsound(src.loc, 'sound/items/Crowbar.ogg', 50, 1)
if(do_after(user,60, target = src))
to_chat(user, "You finish prying out the components.")
-
// Drop all the component stuff
if(component_parts)
for(var/obj/I in component_parts)
diff --git a/code/game/machinery/telecomms/telecomunications.dm b/code/game/machinery/telecomms/telecomunications.dm
index f9d62fbcc02..9d9481aba04 100644
--- a/code/game/machinery/telecomms/telecomunications.dm
+++ b/code/game/machinery/telecomms/telecomunications.dm
@@ -40,7 +40,6 @@ var/global/list/obj/machinery/telecomms/telecomms_list = list()
if(!on)
return
// to_chat(world, "[src] ([src.id]) - [signal.debug_print()]")
-
var/send_count = 0
diff --git a/code/game/machinery/telecomms/telemonitor.dm b/code/game/machinery/telecomms/telemonitor.dm
index e0cc2f550f1..16528b73d0e 100644
--- a/code/game/machinery/telecomms/telemonitor.dm
+++ b/code/game/machinery/telecomms/telemonitor.dm
@@ -132,7 +132,6 @@
if(do_after(user, 20, target = src))
if (src.stat & BROKEN)
to_chat(user, "\blue The broken glass falls out.")
-
var/obj/structure/computerframe/A = new /obj/structure/computerframe( src.loc )
new /obj/item/weapon/shard(loc)
var/obj/item/weapon/circuitboard/comm_monitor/M = new /obj/item/weapon/circuitboard/comm_monitor( A )
@@ -145,7 +144,6 @@
qdel(src)
else
to_chat(user, "\blue You disconnect the monitor.")
-
var/obj/structure/computerframe/A = new /obj/structure/computerframe( src.loc )
var/obj/item/weapon/circuitboard/comm_monitor/M = new /obj/item/weapon/circuitboard/comm_monitor( A )
for (var/obj/C in src)
@@ -163,4 +161,3 @@
playsound(src.loc, 'sound/effects/sparks4.ogg', 75, 1)
emagged = 1
to_chat(user, "\blue You you disable the security protocols")
-
diff --git a/code/game/machinery/telecomms/traffic_control.dm b/code/game/machinery/telecomms/traffic_control.dm
index 2871cf473ba..a5ee6631037 100644
--- a/code/game/machinery/telecomms/traffic_control.dm
+++ b/code/game/machinery/telecomms/traffic_control.dm
@@ -194,7 +194,6 @@
if(!allowed(user) && !emagged)
to_chat(user, "Access Denied.")
-
return 0
switch(href_list["choice"])
@@ -345,7 +344,6 @@
if(do_after(user, 20, target = src))
if (src.stat & BROKEN)
to_chat(user, "\blue The broken glass falls out.")
-
var/obj/structure/computerframe/A = new /obj/structure/computerframe( src.loc )
new /obj/item/weapon/shard(loc)
var/obj/item/weapon/circuitboard/comm_traffic/M = new /obj/item/weapon/circuitboard/comm_traffic( A )
@@ -358,7 +356,6 @@
qdel(src)
else
to_chat(user, "\blue You disconnect the monitor.")
-
var/obj/structure/computerframe/A = new /obj/structure/computerframe( src.loc )
var/obj/item/weapon/circuitboard/comm_traffic/M = new /obj/item/weapon/circuitboard/comm_traffic( A )
for (var/obj/C in src)
@@ -377,7 +374,6 @@
emagged = 1
to_chat(user, "\blue You you disable the security protocols")
-
/obj/machinery/computer/telecomms/traffic/proc/canAccess(var/mob/user)
if(issilicon(user) || in_range(user, src))
return 1
diff --git a/code/game/machinery/teleporter.dm b/code/game/machinery/teleporter.dm
index 74124f22e9b..1933c022e16 100644
--- a/code/game/machinery/teleporter.dm
+++ b/code/game/machinery/teleporter.dm
@@ -44,12 +44,10 @@
if(L.locked_location && !(stat & (NOPOWER|BROKEN)))
if(!user.unEquip(L))
to_chat(user, "\the [I] is stuck to your hand, you cannot put it in \the [src]")
-
return
L.loc = src
locked = L
to_chat(user, "You insert the GPS device into the [name]'s slot.")
-
else
..()
return
@@ -58,7 +56,6 @@
if(!emagged)
emagged = 1
to_chat(user, "\blue The teleporter can now lock on to Syndicate beacons!")
-
else
ui_interact(user)
@@ -107,12 +104,10 @@
if(!check_hub_connection())
to_chat(usr, "Error: Unable to detect hub.")
-
nanomanager.update_uis(src)
return
if(calibrating)
to_chat(usr, "Error: Calibration in progress. Stand by.")
-
nanomanager.update_uis(src)
return
@@ -137,12 +132,10 @@
if(href_list["calibrate"])
if(!target)
to_chat(usr, "Error: No target set to calibrate to.")
-
nanomanager.update_uis(src)
return
if(power_station.teleporter_hub.calibrated || power_station.teleporter_hub.accurate >= 3)
to_chat(usr, "Hub is already calibrated.")
-
nanomanager.update_uis(src)
return
src.visible_message("Processing hub calibration to target...")
@@ -226,7 +219,6 @@
var/list/S = power_station.linked_stations
if(!S.len)
to_chat(user, "No connected stations located.")
-
return
for(var/obj/machinery/teleport/station/R in S)
var/turf/T = get_turf(R)
@@ -327,7 +319,6 @@
/obj/machinery/teleport/hub/Bumped(M as mob|obj)
if(z == ZLEVEL_CENTCOMM)
to_chat(M, "You can't use this here.")
-
if(power_station && power_station.engaged && !panel_open)
//--FalseIncarnate
//Prevents AI cores from using the teleporter, prints out failure messages for clarity
@@ -340,7 +331,6 @@
"\red External firewalls prevent you from utilizing this machine!",
"\red Your AI core's anti-bluespace failsafes trigger and prevent teleportation!")
to_chat(T, "[pick(TPError)]")
-
return
else
teleport(M)
@@ -446,10 +436,8 @@
linked_stations.Add(M.buffer)
M.buffer = null
to_chat(user, "You upload the data from the [W.name]'s buffer.")
-
else
to_chat(user, "This station can't hold more information, try to use better parts.")
-
if(default_deconstruction_screwdriver(user, "controller-o", "controller", W))
update_icon()
return
@@ -464,12 +452,10 @@
var/obj/item/device/multitool/M = W
M.buffer = src
to_chat(user, "You download the data to the [W.name]'s buffer.")
-
return
if(istype(W, /obj/item/weapon/wirecutters))
link_console_and_hub()
to_chat(user, "You reconnect the station to nearby machinery.")
-
return
/obj/machinery/teleport/station/attack_ai()
@@ -481,13 +467,11 @@
else
to_chat(user, "Close the maintenance panel first.")
-
/obj/machinery/teleport/station/proc/toggle(mob/user)
if (stat & (BROKEN|NOPOWER) || !teleporter_hub || !teleporter_console)
return
if (teleporter_hub.panel_open)
to_chat(user, "Close the hub's maintenance panel first.")
-
return
if (teleporter_console.target)
src.engaged = !src.engaged
diff --git a/code/game/machinery/transformer.dm b/code/game/machinery/transformer.dm
index f71a4223d31..d117961ff88 100644
--- a/code/game/machinery/transformer.dm
+++ b/code/game/machinery/transformer.dm
@@ -132,7 +132,6 @@
do_transform_mime(AM)
else
to_chat(AM, "Only items can be greyscaled.")
-
return
/obj/machinery/transformer/proc/do_transform_mime(var/obj/item/I)
diff --git a/code/game/machinery/turntable.dm b/code/game/machinery/turntable.dm
index a32ff6260d6..bb69783db22 100644
--- a/code/game/machinery/turntable.dm
+++ b/code/game/machinery/turntable.dm
@@ -44,7 +44,6 @@
if( href_list["on1"] )
if(src.playing == 0)
// to_chat(world, "Should be working...")
-
var/sound/S = sound('sound/turntable/TestLoop1.ogg')
S.repeat = 1
S.channel = 10
@@ -54,9 +53,7 @@
//for(var/mob/M in world)
// if(M.loc.loc == src.loc.loc && M.music == 0)
// to_chat(world, "Found the song...")
-
// to_chat(M, S)
-
// M.music = 1
var/area/A = src.loc.loc
@@ -67,22 +64,18 @@
for(var/mob/M in world)
if((M.loc.loc in A) && M.music == 0)
// to_chat(world, "Found the song...")
-
to_chat(M, S)
-
M.music = 1
else if(!(M.loc.loc in A) && M.music == 1)
var/sound/Soff = sound(null)
Soff.channel = 10
to_chat(M, Soff)
-
M.music = 0
sleep(10)
return
if( href_list["on2"] )
if(src.playing == 0)
// to_chat(world, "Should be working...")
-
var/sound/S = sound('sound/turntable/TestLoop2.ogg')
S.repeat = 1
S.channel = 10
@@ -92,9 +85,7 @@
//for(var/mob/M in world)
// if(M.loc.loc == src.loc.loc && M.music == 0)
// to_chat(world, "Found the song...")
-
// to_chat(M, S)
-
// M.music = 1
var/area/A = src.loc.loc
for(var/obj/machinery/party/lasermachine/L in A)
@@ -104,22 +95,18 @@
for(var/mob/M in world)
if(M.loc.loc == src.loc.loc && M.music == 0)
// to_chat(world, "Found the song...")
-
to_chat(M, S)
-
M.music = 1
else if(M.loc.loc != src.loc.loc && M.music == 1)
var/sound/Soff = sound(null)
Soff.channel = 10
to_chat(M, Soff)
-
M.music = 0
sleep(10)
return
if( href_list["on3"] )
if(src.playing == 0)
// to_chat(world, "Should be working...")
-
var/sound/S = sound('sound/turntable/TestLoop3.ogg')
S.repeat = 1
S.channel = 10
@@ -129,9 +116,7 @@
//for(var/mob/M in world)
// if(M.loc.loc == src.loc.loc && M.music == 0)
// to_chat(world, "Found the song...")
-
// to_chat(M, S)
-
// M.music = 1
var/area/A = src.loc.loc
for(var/obj/machinery/party/lasermachine/L in A)
@@ -141,15 +126,12 @@
for(var/mob/M in world)
if(M.loc.loc == src.loc.loc && M.music == 0)
// to_chat(world, "Found the song...")
-
to_chat(M, S)
-
M.music = 1
else if(M.loc.loc != src.loc.loc && M.music == 1)
var/sound/Soff = sound(null)
Soff.channel = 10
to_chat(M, Soff)
-
M.music = 0
sleep(10)
return
@@ -162,7 +144,6 @@
S.wait = 1
for(var/mob/M in world)
to_chat(M, S)
-
M.music = 0
playing = 0
var/area/A = src.loc.loc
diff --git a/code/game/machinery/turret_control.dm b/code/game/machinery/turret_control.dm
index 9b703f5478d..0deb0d947a3 100644
--- a/code/game/machinery/turret_control.dm
+++ b/code/game/machinery/turret_control.dm
@@ -66,12 +66,10 @@
/obj/machinery/turretid/proc/isLocked(mob/user)
if(ailock && (isrobot(user) || isAI(user)))
to_chat(user, "There seems to be a firewall preventing you from accessing this device.")
-
return 1
if(locked && !(isrobot(user) || isAI(user) || isobserver(user)))
to_chat(user, "Access denied.")
-
return 1
return 0
@@ -90,18 +88,15 @@
if(src.allowed(usr))
if(emagged)
to_chat(user, "The turret control is unresponsive.")
-
else
locked = !locked
to_chat(user, "You [ locked ? "lock" : "unlock"] the panel.")
-
return
return ..()
/obj/machinery/turretid/emag_act(user as mob)
if(!emagged)
to_chat(user, "You short out the turret controls' access analysis module.")
-
emagged = 1
locked = 0
ailock = 0
diff --git a/code/game/machinery/turrets.dm b/code/game/machinery/turrets.dm
index 7c4a48c3b3e..ef5db5f833b 100644
--- a/code/game/machinery/turrets.dm
+++ b/code/game/machinery/turrets.dm
@@ -185,7 +185,6 @@
if(cur_target) //if it's found, proceed
// to_chat(world, "[cur_target]")
-
if(!isPopping())
if(isDown())
popUp()
@@ -338,7 +337,6 @@
src.die()
else
to_chat(M, "That object is useless to you.")
-
return
@@ -355,7 +353,6 @@
src.die()
else
to_chat(M, "\green That object is useless to you.")
-
return
@@ -366,7 +363,6 @@
if (src.locked)
if (!istype(usr, /mob/living/silicon))
to_chat(usr, "Control panel is locked!")
-
return
if (href_list["toggleOn"])
src.enabled = !src.enabled
diff --git a/code/game/machinery/vending.dm b/code/game/machinery/vending.dm
index c1271b11cc5..8266c2a0ee8 100644
--- a/code/game/machinery/vending.dm
+++ b/code/game/machinery/vending.dm
@@ -189,7 +189,6 @@
if(machine_content.amount != machine_content.max_amount)
if(user)
to_chat(user, "[machine_content.max_amount - machine_content.amount] of [machine_content.product_name]")
-
machine_content.amount = machine_content.max_amount
refill.charges -= to_restock
total = to_restock
@@ -205,7 +204,6 @@
if(restock)
if(user)
to_chat(user, "[restock] of [machine_content.product_name]")
-
if(refill.charges == 0) //due to rounding, we ran out of refill charges, exit.
break
return total
@@ -237,7 +235,6 @@
playsound(loc, 'sound/items/Screwdriver.ogg', 50, 1)
panel_open = !panel_open
to_chat(user, "You [panel_open ? "open" : "close"] the maintenance panel.")
-
overlays.Cut()
if(panel_open)
overlays += image(icon, "[initial(icon_state)]-panel")
@@ -263,38 +260,31 @@
coin = W
categories |= CAT_COIN
to_chat(user, "\blue You insert the [W] into the [src]")
-
nanomanager.update_uis(src)
return
else if(istype(W, refill_canister) && refill_canister != null)
if(stat & (BROKEN|NOPOWER))
to_chat(user, "It does nothing.")
-
else if(panel_open)
//if the panel is open we attempt to refill the machine
var/obj/item/weapon/vending_refill/canister = W
if(canister.charges == 0)
to_chat(user, "This [canister.name] is empty!")
-
else
var/transfered = refill_inventory(canister,product_records,user)
if(transfered)
to_chat(user, "You loaded [transfered] items in \the [name].")
-
else
to_chat(user, "The [name] is fully stocked.")
-
return;
else
to_chat(user, "You should probably unscrew the service panel first.")
-
else
..()
/obj/machinery/vending/emag_act(user as mob)
emagged = 1
to_chat(user, "You short out the product lock on [src]")
-
return
/**
@@ -307,7 +297,6 @@
// This is not a status display message, since it's something the character
// themselves is meant to see BEFORE putting the money in
to_chat(usr, "\icon[cashmoney] That is not enough money.")
-
return 0
// Bills (banknotes) cannot really have worth different than face value,
@@ -466,13 +455,11 @@
if(href_list["remove_coin"] && !istype(usr,/mob/living/silicon))
if(!coin)
to_chat(usr, "There is no coin in this machine.")
-
return
usr.put_in_hands(coin)
coin = null
to_chat(usr, "\blue You remove the [coin] from the [src]")
-
categories &= ~CAT_COIN
if (href_list["pay"])
@@ -498,13 +485,11 @@
if(issilicon(usr) && !isrobot(usr))
to_chat(usr, "The vending machine refuses to interface with you, as you are not in its target demographic!")
-
return
if((!allowed(usr)) && !emagged && scan_id) //For SECURE VENDING MACHINES YEAH
to_chat(usr, "Access denied.")//Unless emagged of course
-
flick(icon_deny,src)
return
@@ -539,12 +524,10 @@
if((!allowed(usr)) && !emagged && scan_id) //For SECURE VENDING MACHINES YEAH
to_chat(usr, "Access denied.")//Unless emagged of course
-
flick(src.icon_deny,src)
return
if(!R.amount)
to_chat(user, "\red The vending machine has ran out of that product.")
-
return
src.vend_ready = 0 //One thing at a time!!
src.status_message = "Vending..."
@@ -554,15 +537,12 @@
if (R.category & CAT_COIN)
if(!coin)
to_chat(user, "\blue You need to insert a coin to get this item.")
-
return
if(coin.string_attached)
if(prob(50))
to_chat(user, "\blue You successfully pull the coin out before the [src] could swallow it.")
-
else
to_chat(user, "\blue You weren't able to pull the coin out fast enough, the machine ate it, string and all.")
-
coin = null
qdel(coin)
categories &= ~CAT_COIN
@@ -592,7 +572,6 @@
/obj/machinery/vending/proc/stock(var/datum/data/vending_product/R, var/mob/user)
if(src.panel_open)
to_chat(user, "\blue You stock the [src] with \a [R.product_name]")
-
R.amount++
src.updateUsrDialog()
diff --git a/code/game/machinery/washing_machine.dm b/code/game/machinery/washing_machine.dm
index d89fddfd69f..6889cf67c42 100644
--- a/code/game/machinery/washing_machine.dm
+++ b/code/game/machinery/washing_machine.dm
@@ -33,7 +33,6 @@
if( state != 4 )
to_chat(usr, "The washing machine cannot run in this state.")
-
return
if( locate(/mob,contents) )
@@ -201,7 +200,6 @@
/*if(istype(W,/obj/item/weapon/screwdriver))
panel = !panel
to_chat(user, "\blue you [panel ? "open" : "close"] the [src]'s maintenance panel")*/
-
if(istype(W,/obj/item/toy/crayon) ||istype(W,/obj/item/weapon/stamp))
if( state in list( 1, 3, 6 ) )
if(!crayon)
@@ -233,59 +231,45 @@
//YES, it's hardcoded... saves a var/can_be_washed for every single clothing item.
if ( istype(W,/obj/item/clothing/suit/space ) )
to_chat(user, "This item does not fit.")
-
return
if ( istype(W,/obj/item/clothing/suit/syndicatefake ) )
to_chat(user, "This item does not fit.")
-
return
// if ( istype(W,/obj/item/clothing/suit/powered ) )
// to_chat(user, "This item does not fit.")
-
// return
if ( istype(W,/obj/item/clothing/suit/cyborg_suit ) )
to_chat(user, "This item does not fit.")
-
return
if ( istype(W,/obj/item/clothing/suit/bomb_suit ) )
to_chat(user, "This item does not fit.")
-
return
if ( istype(W,/obj/item/clothing/suit/armor ) )
to_chat(user, "This item does not fit.")
-
return
if ( istype(W,/obj/item/clothing/suit/armor ) )
to_chat(user, "This item does not fit.")
-
return
if ( istype(W,/obj/item/clothing/mask/gas ) )
to_chat(user, "This item does not fit.")
-
return
if ( istype(W,/obj/item/clothing/mask/cigarette ) )
to_chat(user, "This item does not fit.")
-
return
if ( istype(W,/obj/item/clothing/head/syndicatefake ) )
to_chat(user, "This item does not fit.")
-
return
// if ( istype(W,/obj/item/clothing/head/powered ) )
// to_chat(user, "This item does not fit.")
-
// return
if ( istype(W,/obj/item/clothing/head/helmet ) )
to_chat(user, "This item does not fit.")
-
return
if ( istype(W,/obj/item/clothing/gloves/furgloves ) )
to_chat(user, "This item does not fit.")
-
return
if(W.flags & NODROP) //if "can't drop" item
to_chat(user, "\The [W] is stuck to your hand, you cannot put it in the washing machine!")
-
return
if(contents.len < 5)
@@ -295,10 +279,8 @@
state = 3
else
to_chat(user, "\blue You can't put the item in right now.")
-
else
to_chat(user, "\blue The washing machine is full.")
-
else
..()
update_icon()
@@ -321,7 +303,6 @@
state = 1
if(5)
to_chat(user, "\red The [src] is busy.")
-
if(6)
state = 7
if(7)
diff --git a/code/game/machinery/wishgranter.dm b/code/game/machinery/wishgranter.dm
index f0bc8c1e58e..217b1e70165 100644
--- a/code/game/machinery/wishgranter.dm
+++ b/code/game/machinery/wishgranter.dm
@@ -21,22 +21,18 @@
if(!istype(user, /mob/living/carbon/human))
to_chat(user, "You feel a dark stirring inside of the Wish Granter, something you want nothing of. Your instincts are better than any man's.")
-
return
if(is_special_character(user))
to_chat(user, "Even to a heart as dark as yours, you know nothing good will come of this. Something instinctual makes you pull away.")
-
return
if(inuse)
to_chat(user, "Someone is already communing with the Wish Granter.")
-
return
to_chat(user, "The power of the Wish Granter have turned you into the superhero the station deserves. You are a masked vigilante, and answer to no man. Will you use your newfound strength to protect the innocent, or will you hunt the guilty?")
-
inuse = 1
var/wish
if(types.len == 1)
@@ -56,7 +52,6 @@
//Remove the wishgranter or teleport it randomly on the station
if(!types.len)
to_chat(user, "The wishgranter slowly fades into mist...")
-
qdel(src)
return
else
diff --git a/code/game/mecha/combat/marauder.dm b/code/game/mecha/combat/marauder.dm
index b06d02efc41..0d7676d75b7 100644
--- a/code/game/mecha/combat/marauder.dm
+++ b/code/game/mecha/combat/marauder.dm
@@ -151,7 +151,6 @@
if(zoom)
src.occupant.client.view = 12
to_chat(src.occupant, sound('sound/mecha/imag_enh.ogg',volume=50))
-
else
src.occupant.client.view = world.view//world.view - default mob view size
return
diff --git a/code/game/mecha/equipment/mecha_equipment.dm b/code/game/mecha/equipment/mecha_equipment.dm
index 75efc280354..1967f1e6645 100644
--- a/code/game/mecha/equipment/mecha_equipment.dm
+++ b/code/game/mecha/equipment/mecha_equipment.dm
@@ -53,10 +53,8 @@
chassis.log_append_to_last("[src] is destroyed.",1)
if(istype(src, /obj/item/mecha_parts/mecha_equipment/weapon))
to_chat(chassis.occupant, sound('sound/mecha/weapdestr.ogg',volume=50))
-
else
to_chat(chassis.occupant, sound('sound/mecha/critdestr.ogg',volume=50))
-
chassis = null
return ..()
diff --git a/code/game/mecha/equipment/tools/tools.dm b/code/game/mecha/equipment/tools/tools.dm
index 0ab84bd842b..98db55e0f25 100644
--- a/code/game/mecha/equipment/tools/tools.dm
+++ b/code/game/mecha/equipment/tools/tools.dm
@@ -546,7 +546,6 @@
chassis.log_message("Attacked by [W]. Attacker - [user]")
if(prob(chassis.deflect_chance*deflect_coeff))
to_chat(user, "\red The [W] bounces off [chassis] armor.")
-
chassis.log_append_to_last("Armor saved.")
else
chassis.occupant_message("[user] hits [chassis] with [W].")
@@ -934,7 +933,6 @@
user.visible_message("[user] tries to shove [weapon_name] into [src], but \the [src] rejects it.","[fuel_name] traces in target minimal. [weapon_name] cannot be used as fuel.")
else if(!result)
to_chat(user, "Unit is full.")
-
else
user.visible_message("[user] loads [src] with \the [weapon_name].","[result] unit\s of [fuel_name] successfully loaded.")
return
diff --git a/code/game/mecha/equipment/weapons/weapons.dm b/code/game/mecha/equipment/weapons/weapons.dm
index d1e537fd877..d95cbaff799 100644
--- a/code/game/mecha/equipment/weapons/weapons.dm
+++ b/code/game/mecha/equipment/weapons/weapons.dm
@@ -141,7 +141,6 @@
if(istype(H.l_ear, /obj/item/clothing/ears/earmuffs) || istype(H.r_ear, /obj/item/clothing/ears/earmuffs))
continue
to_chat(M, "HONK")
-
M.sleeping = 0
M.stuttering = 20
M.ear_deaf = 30
diff --git a/code/game/mecha/mech_fabricator.dm b/code/game/mecha/mech_fabricator.dm
index 9d527750470..562e30d834d 100644
--- a/code/game/mecha/mech_fabricator.dm
+++ b/code/game/mecha/mech_fabricator.dm
@@ -294,7 +294,6 @@
return 1
if(!allowed(user) && !isobserver(user))
to_chat(user, "Access denied.")
-
return 1
return interact(user)
@@ -507,7 +506,6 @@
return 1
else
to_chat(user, "You can't load \the [name] while it's opened.")
-
return 1
if(istype(W, /obj/item/stack))
@@ -536,11 +534,9 @@
if(being_built)
to_chat(user, "\The [src] is currently processing. Please wait until completion.")
-
return
if(res_max_amount - resources[material] < MINERAL_MATERIAL_AMOUNT) //overstuffing the fabricator
to_chat(user, "\The [src] [material2name(material)] storage is full.")
-
return
var/obj/item/stack/sheet/stack = W
var/sname = "[stack.name]"
@@ -551,13 +547,11 @@
resources[material] += transfer_amount * MINERAL_MATERIAL_AMOUNT
stack.use(transfer_amount)
to_chat(user, "You insert [transfer_amount] [sname] sheet\s into \the [src].")
-
sleep(10)
updateUsrDialog()
overlays -= "fab-load-[material2name(material)]" //No matter what the overlay shall still be deleted
else
to_chat(user, "\The [src] cannot hold any more [sname] sheet\s.")
-
return
/obj/machinery/mecha_part_fabricator/proc/material2name(var/ID)
diff --git a/code/game/mecha/mecha.dm b/code/game/mecha/mecha.dm
index 7a563b2b35c..ceeca47f72e 100644
--- a/code/game/mecha/mecha.dm
+++ b/code/game/mecha/mecha.dm
@@ -170,25 +170,18 @@
switch(integrity)
if(85 to 100)
to_chat(user, "It's fully intact.")
-
if(65 to 85)
to_chat(user, "It's slightly damaged.")
-
if(45 to 65)
to_chat(user, "It's badly damaged.")
-
if(25 to 45)
to_chat(user, "It's heavily damaged.")
-
else
to_chat(user, "It's falling apart.")
-
if(equipment && equipment.len)
to_chat(user, "It's equipped with:")
-
for(var/obj/item/mecha_parts/mecha_equipment/ME in equipment)
to_chat(user, "\icon[ME] [ME]")
-
return
@@ -308,7 +301,6 @@
if(user != src.occupant) //While not "realistic", this piece is player friendly.
user.forceMove(get_turf(src))
to_chat(user, "You climb out from [src]")
-
return 0
if(connected_port)
if(world.time - last_message > 20)
@@ -467,7 +459,6 @@
pr_internal_damage.start()
log_append_to_last("Internal damage of type [int_dam_flag].",1)
to_chat(occupant, sound('sound/machines/warning-buzzer.ogg',wait=0))
-
diag_hud_set_mechstat()
return
@@ -537,13 +528,11 @@
src.check_for_internal_damage(list(MECHA_INT_TEMP_CONTROL,MECHA_INT_TANK_BREACH,MECHA_INT_CONTROL_LOST))
playsound(src.loc, 'sound/weapons/slash.ogg', 50, 1, -1)
to_chat(user, "\red You slash at the armored suit!")
-
visible_message("\red The [user] slashes at [src.name]'s armor!")
else
src.log_append_to_last("Armor saved.")
playsound(src.loc, 'sound/weapons/slash.ogg', 50, 1, -1)
to_chat(user, "\green Your claws had no effect!")
-
src.occupant_message("\blue The [user]'s claws are stopped by the armor.")
visible_message("\blue The [user] rebounds off [src.name]'s armor!")
return
@@ -711,7 +700,6 @@
src.check_for_internal_damage(list(MECHA_INT_TEMP_CONTROL,MECHA_INT_TANK_BREACH,MECHA_INT_CONTROL_LOST))
playsound(src.loc, 'sound/effects/blobattack.ogg', 50, 1, -1)
to_chat(user, "\red You smash at the armored suit!")
-
for (var/mob/V in viewers(src))
if(V.client && !(V.blinded))
V.show_message("\red The [user] smashes against [src.name]'s armor!", 1)
@@ -719,7 +707,6 @@
src.log_append_to_last("Armor saved.")
playsound(src.loc, 'sound/effects/blobattack.ogg', 50, 1, -1)
to_chat(user, "\green Your attack had no effect!")
-
src.occupant_message("\blue The [user]'s attack is stopped by the armor.")
for (var/mob/V in viewers(src))
if(V.client && !(V.blinded))
@@ -753,7 +740,6 @@
user.do_attack_animation(src)
if(prob(src.deflect_chance))
to_chat(user, "\red The [W] bounces off [src.name] armor.")
-
src.log_append_to_last("Armor saved.")
/*
for (var/mob/V in viewers(src))
@@ -776,10 +762,8 @@
if(istype(W, /obj/item/device/mmi) || istype(W, /obj/item/device/mmi/posibrain))
if(mmi_move_inside(W,user))
to_chat(user, "[src]-MMI interface initialized successfuly")
-
else
to_chat(user, "[src]-MMI interface initialization failed.")
-
return
if(istype(W, /obj/item/mecha_parts/mecha_equipment))
@@ -791,7 +775,6 @@
user.visible_message("[user] attaches [W] to [src]", "You attach [W] to [src]")
else
to_chat(user, "You were unable to attach [W] to [src]")
-
return
if(istype(W, /obj/item/weapon/card/id)||istype(W, /obj/item/device/pda))
if(add_req_access || maint_access)
@@ -806,34 +789,27 @@
return
else
to_chat(user, "\red Invalid ID: Access denied.")
-
else
to_chat(user, "\red Maintenance protocols disabled by operator.")
-
else if(istype(W, /obj/item/weapon/wrench))
if(state==1)
state = 2
to_chat(user, "You undo the securing bolts.")
-
else if(state==2)
state = 1
to_chat(user, "You tighten the securing bolts.")
-
return
else if(istype(W, /obj/item/weapon/crowbar))
if(state==2)
state = 3
to_chat(user, "You open the hatch to the power unit")
-
else if(state==3)
state=2
to_chat(user, "You close the hatch to the power unit")
-
else if(state==4 && pilot_is_mmi())
// Since having maint protocols available is controllable by the MMI, I see this as a consensual way to remove an MMI without destroying the mech
user.visible_message("[user] begins levering out the MMI from the [src].", "You begin to lever out the MMI from the [src].")
to_chat(occupant, "[user] is prying you out of the exosuit!")
-
if(do_after(user,80,target=src))
user.visible_message("[user] pries the MMI out of the [src]!", "You finish removing the MMI from the [src]!")
go_out()
@@ -847,41 +823,34 @@
CC.use(2)
clearInternalDamage(MECHA_INT_SHORT_CIRCUIT)
to_chat(user, "You replace the fused wires.")
-
else
to_chat(user, "There's not enough wire to finish the task.")
-
return
else if(istype(W, /obj/item/weapon/screwdriver))
if(hasInternalDamage(MECHA_INT_TEMP_CONTROL))
clearInternalDamage(MECHA_INT_TEMP_CONTROL)
to_chat(user, "You repair the damaged temperature controller.")
-
else if(state==3 && src.cell)
src.cell.forceMove(src.loc)
src.cell = null
state = 4
to_chat(user, "You unscrew and pry out the powercell.")
-
src.log_message("Powercell removed")
else if(state==4 && src.cell)
state=3
to_chat(user, "You screw the cell in place")
-
return
else if(istype(W, /obj/item/weapon/stock_parts/cell))
if(state==4)
if(!src.cell)
to_chat(user, "You install the powercell")
-
user.drop_item()
W.forceMove(src)
src.cell = W
src.log_message("Powercell installed")
else
to_chat(user, "There's already a powercell installed.")
-
return
else if(istype(W, /obj/item/weapon/weldingtool) && user.a_intent != I_HARM)
@@ -890,22 +859,18 @@
if (hasInternalDamage(MECHA_INT_TANK_BREACH))
clearInternalDamage(MECHA_INT_TANK_BREACH)
to_chat(user, "\blue You repair the damaged gas tank.")
-
else
return
if(src.health
")
-
/obj/mecha/transfer_ai(var/interaction, mob/user, var/mob/living/silicon/ai/AI, var/obj/item/device/aicard/card)
if(!..())
return
@@ -1007,16 +964,13 @@
if(AI_TRANS_TO_CARD) //Upload AI from mech to AI card.
if(!maint_access) //Mech must be in maint mode to allow carding.
to_chat(user, "[name] must have maintenance protocols active in order to allow a transfer.")
-
return
AI = occupant
if(!AI || !isAI(occupant)) //Mech does not have an AI for a pilot
to_chat(user, "No AI detected in the [name] onboard computer.")
-
return
if (AI.mind.special_role == "malfunction") //Malf AIs cannot leave mechs. Except through death.
to_chat(user, "ACCESS DENIED.")
-
return
AI.aiRestorePowerRoutine = 0//So the AI initially has power.
AI.control_disabled = 1
@@ -1027,17 +981,13 @@
AI.remote_control = null
icon_state = initial(icon_state)+"-open"
to_chat(AI, "You have been downloaded to a mobile storage device. Wireless connection offline.")
-
to_chat(user, "Transfer successful: [AI.name] ([rand(1000,9999)].exe) removed from [name] and stored within local memory.")
-
if(AI_MECH_HACK) //Called by Malf AI mob on the mech.
new /obj/structure/AIcore/deactivated(AI.loc)
if(occupant) //Oh, I am sorry, were you using that?
to_chat(AI, "Pilot detected! Forced ejection initiated!")
-
to_chat(occupant, "You have been forcibly ejected!")
-
go_out(1) //IT IS MINE, NOW. SUCK IT, RD!
ai_enter_mech(AI, interaction)
@@ -1045,20 +995,16 @@
AI = locate(/mob/living/silicon/ai) in card
if(!AI)
to_chat(user, "There is no AI currently installed on this device.")
-
return
else if(AI.stat || !AI.client)
to_chat(user, "[AI.name] is currently unresponsive, and cannot be uploaded.")
-
return
else if(occupant || dna) //Normal AIs cannot steal mechs!
to_chat(user, "Access denied. [name] is [occupant ? "currently occupied" : "secured with a DNA lock"].")
-
return
AI.control_disabled = 0
AI.aiRadio.disabledAi = 0
to_chat(user, "Transfer successful: [AI.name] ([rand(1000,9999)].exe) installed and executed successfully. Local copy has been removed.")
-
ai_enter_mech(AI, interaction)
//Hack and From Card interactions share some code, so leave that here for both to use.
@@ -1070,7 +1016,6 @@
playsound(src, 'sound/machines/windowdoor.ogg', 50, 1)
if(!hasInternalDamage())
to_chat(occupant, sound('sound/mecha/nominal.ogg',volume=50))
-
AI.cancel_camera()
AI.controlled_mech = src
AI.remote_control = src
@@ -1080,7 +1025,6 @@
: "You have been uploaded to a mech's onboard computer."]")
to_chat(AI, "Use Middle-Mouse to activate mech functions and equipment. Click normally for AI interactions.")
-
/////////////////////////////////////
//////// Atmospheric stuff ////////
/////////////////////////////////////
@@ -1233,7 +1177,6 @@
src.log_message("[user] tries to move in.")
if (src.occupant)
to_chat(usr, "The [src.name] is already occupied!")
-
src.log_append_to_last("Permission denied.")
return
var/passed
@@ -1245,13 +1188,11 @@
passed = 1
if(!passed)
to_chat(user, "Access denied.")
-
src.log_append_to_last("Permission denied.")
return
for(var/mob/living/carbon/slime/S in range(1,user))
if(S.Victim == user)
to_chat(user, "You're too busy getting your life sucked out of you.")
-
return
visible_message("[user] starts to climb into [src.name]")
@@ -1261,10 +1202,8 @@
moved_inside(user)
else if(src.occupant!=user)
to_chat(user, "[src.occupant] was faster. Try better next time, loser.")
-
else
to_chat(user, "You stop entering the exosuit.")
-
return
/obj/mecha/proc/moved_inside(var/mob/living/carbon/human/H as mob)
@@ -1285,7 +1224,6 @@
playsound(src, 'sound/machines/windowdoor.ogg', 50, 1)
if(!hasInternalDamage())
to_chat(src.occupant, sound('sound/mecha/nominal.ogg',volume=50))
-
return 1
else
return 0
@@ -1293,24 +1231,19 @@
/obj/mecha/proc/mmi_move_inside(var/obj/item/device/mmi/mmi_as_oc as obj,mob/user as mob)
if(!mmi_as_oc.brainmob || !mmi_as_oc.brainmob.client)
to_chat(user, "Consciousness matrix not detected.")
-
return 0
else if(mmi_as_oc.brainmob.stat)
to_chat(user, "Beta-rhythm below acceptable level.")
-
return 0
else if(occupant)
to_chat(user, "Occupant detected.")
-
return 0
else if(dna && dna!=mmi_as_oc.brainmob.dna.unique_enzymes)
to_chat(user, "Stop it!")
-
return 0
//Added a message here since people assume their first click failed or something./N
// to_chat(user, "Installing MMI, please stand by.")
-
visible_message("\blue [usr] starts to insert an MMI into [src.name]")
if(enter_after(40,user))
@@ -1318,25 +1251,20 @@
return mmi_moved_inside(mmi_as_oc,user)
else
to_chat(user, "Occupant detected.")
-
else
to_chat(user, "You stop inserting the MMI.")
-
return 0
/obj/mecha/proc/mmi_moved_inside(var/obj/item/device/mmi/mmi_as_oc as obj,mob/user as mob)
if(mmi_as_oc && user in range(1))
if(!mmi_as_oc.brainmob || !mmi_as_oc.brainmob.client)
to_chat(user, "Consciousness matrix not detected.")
-
return 0
else if(mmi_as_oc.brainmob.stat)
to_chat(user, "Beta-rhythm below acceptable level.")
-
return 0
if(!user.unEquip(mmi_as_oc))
to_chat(user, "\the [mmi_as_oc] is stuck to your hand, you cannot put it in \the [src]")
-
return 0
var/mob/brainmob = mmi_as_oc.brainmob
brainmob.reset_view(src)
@@ -1357,7 +1285,6 @@
src.log_message("[mmi_as_oc] moved in as pilot.")
if(!hasInternalDamage())
to_chat(src.occupant, sound('sound/mecha/nominal.ogg',volume=50))
-
return 1
else
return 0
@@ -1441,7 +1368,6 @@
occupant.SetStunned(5)
occupant.SetWeakened(5)
to_chat(occupant, "You were blown out of the mech!")
-
*/
src.log_message("[mob_container] moved out.")
occupant.reset_view()
@@ -1718,7 +1644,6 @@
if(message)
if(src.occupant && src.occupant.client)
to_chat(src.occupant, "\icon[src] [message]")
-
return
/obj/mecha/proc/log_message(message as text,red=null)
@@ -1831,11 +1756,9 @@
if(state==0)
state = 1
to_chat(user, "The securing bolts are now exposed.")
-
else if(state==1)
state = 0
to_chat(user, "The securing bolts are now hidden.")
-
output_maintenance_dialog(filter.getObj("id_card"),user)
return
if(href_list["set_internal_tank_valve"] && state >=1)
@@ -1846,7 +1769,6 @@
if(new_pressure)
internal_tank_valve = new_pressure
to_chat(user, "The internal pressure valve has been set to [internal_tank_valve]kPa.")
-
if(href_list["add_req_access"] && add_req_access && filter.getObj("id_card"))
if(!in_range(src, usr)) return
operation_req_access += filter.getNum("add_req_access")
@@ -1868,7 +1790,6 @@
return
if(src.occupant && !iscarbon(src.occupant))
to_chat(src.occupant, "You do not have any DNA!")
-
return
src.dna = src.occupant.dna.unique_enzymes
src.occupant_message("You feel a prick as the needle takes your DNA sample.")
diff --git a/code/game/mecha/mecha_construction_paths.dm b/code/game/mecha/mecha_construction_paths.dm
index 7be280bd2b5..f6d627cc505 100644
--- a/code/game/mecha/mecha_construction_paths.dm
+++ b/code/game/mecha/mecha_construction_paths.dm
@@ -24,13 +24,11 @@
playsound(holder, 'sound/items/Deconstruct.ogg', 50, 1)
else
to_chat(user, ("There's not enough cable to finish the task."))
-
return 0
else if(istype(used_atom, /obj/item/stack))
var/obj/item/stack/S = used_atom
if(S.amount < 5)
to_chat(user, ("There's not enough material in this stack."))
-
return 0
else
S.use(5)
@@ -58,13 +56,11 @@
playsound(holder, 'sound/items/Deconstruct.ogg', 50, 1)
else
to_chat(user, ("There's not enough cable to finish the task."))
-
return 0
else if(istype(used_atom, /obj/item/stack))
var/obj/item/stack/S = used_atom
if(S.amount < 5)
to_chat(user, ("There's not enough material in this stack."))
-
return 0
else
S.use(5)
diff --git a/code/game/mecha/mecha_wreckage.dm b/code/game/mecha/mecha_wreckage.dm
index 2198c472f93..8da0f916425 100644
--- a/code/game/mecha/mecha_wreckage.dm
+++ b/code/game/mecha/mecha_wreckage.dm
@@ -44,7 +44,6 @@
else
if (isemptylist(welder_salvage))
to_chat(user, "What's left on the [src] cannot be removed with a welder, besides the frame itself")
-
else if(WT.remove_fuel(0,user))
var/type = prob(70)?pick(welder_salvage):null
if(type)
@@ -55,14 +54,11 @@
salvage_num--
else
to_chat(user, "You failed to salvage anything valuable from [src].")
-
else
to_chat(user, "\blue You need more welding fuel to complete this task.")
-
else if(istype(W, /obj/item/weapon/wirecutters))
if(salvage_num <= 0)
to_chat(user, "You don't see anything that can be cut with [W].")
-
return
else if(!isemptylist(wirecutters_salvage))
var/type = prob(70)?pick(wirecutters_salvage):null
@@ -72,7 +68,6 @@
salvage_num--
else
to_chat(user, "You failed to salvage anything valuable from [src].")
-
else if(istype(W, /obj/item/weapon/crowbar))
if(!isemptylist(crowbar_salvage))
var/obj/S = pick(crowbar_salvage)
@@ -82,7 +77,6 @@
user.visible_message("[user] pries [S] from [src].", "You pry [S] from [src].")
else
to_chat(user, "You don't see anything that can be pried with [W].")
-
else
..()
return
diff --git a/code/game/objects/buckling.dm b/code/game/objects/buckling.dm
index 502a738ae31..7616df4c119 100644
--- a/code/game/objects/buckling.dm
+++ b/code/game/objects/buckling.dm
@@ -37,10 +37,8 @@
if (isslime(M) || isAI(M))
if(M == usr)
to_chat(M, "You are unable to buckle yourself to the [src]!")
-
else
to_chat(usr, "You are unable to buckle [M] to the [src]!")
-
return 0
M.buckled = src
diff --git a/code/game/objects/effects/aliens.dm b/code/game/objects/effects/aliens.dm
index 16ebeb9a100..320ec09a2ee 100644
--- a/code/game/objects/effects/aliens.dm
+++ b/code/game/objects/effects/aliens.dm
@@ -319,22 +319,18 @@
switch(status)
if(BURST)
to_chat(user, "You clear the hatched egg.")
-
playsound(loc, 'sound/effects/attackblob.ogg', 100, 1)
qdel(src)
return
if(GROWING)
to_chat(user, "The child is not developed yet.")
-
return
if(GROWN)
to_chat(user, "You retrieve the child.")
-
Burst(0)
return
else
to_chat(user, "It feels slimy.")
-
user.changeNext_move(CLICK_CD_MELEE)
diff --git a/code/game/objects/effects/anomalies.dm b/code/game/objects/effects/anomalies.dm
index 05a1ec2ea67..2b044b588e1 100644
--- a/code/game/objects/effects/anomalies.dm
+++ b/code/game/objects/effects/anomalies.dm
@@ -36,7 +36,6 @@
if(istype(I, /obj/item/device/analyzer))
to_chat(user, "Analyzing... [src]'s unstable field is fluctuating along frequency [aSignal.code]:[format_frequency(aSignal.frequency)].")
-
///////////////////////
/obj/effect/anomaly/grav
diff --git a/code/game/objects/effects/datacore-effect.dm b/code/game/objects/effects/datacore-effect.dm
index a6913f25087..ce970c31916 100644
--- a/code/game/objects/effects/datacore-effect.dm
+++ b/code/game/objects/effects/datacore-effect.dm
@@ -51,7 +51,6 @@
else
isactive[name] = t.fields["p_stat"]
// to_chat(world, "[name]: [rank]")
-
//cael - to prevent multiple appearances of a player/job combination, add a continue after each line
var/department = 0
if(real_rank in command_positions)
diff --git a/code/game/objects/effects/decals/Cleanable/humans.dm b/code/game/objects/effects/decals/Cleanable/humans.dm
index 3cda01717c5..b11ad6bf633 100644
--- a/code/game/objects/effects/decals/Cleanable/humans.dm
+++ b/code/game/objects/effects/decals/Cleanable/humans.dm
@@ -93,7 +93,6 @@ var/global/list/image/splatter_cache=list()
var/taken = rand(1,amount)
amount -= taken
to_chat(user, "You get some of \the [src] on your hands.")
-
if (!user.blood_DNA)
user.blood_DNA = list()
user.blood_DNA |= blood_DNA.Copy()
@@ -142,7 +141,6 @@ var/global/list/image/splatter_cache=list()
..(user)
to_chat(user, "It reads: \"[message]\"")
-
/obj/effect/decal/cleanable/blood/gibs
name = "gibs"
desc = "They look bloody and gruesome."
diff --git a/code/game/objects/effects/decals/Cleanable/tracks.dm b/code/game/objects/effects/decals/Cleanable/tracks.dm
index 6fc90b31628..6e8c591399d 100644
--- a/code/game/objects/effects/decals/Cleanable/tracks.dm
+++ b/code/game/objects/effects/decals/Cleanable/tracks.dm
@@ -79,7 +79,6 @@ var/global/list/image/fluidtrack_cache=list()
// Process 4 bits
for(var/bi=0;bi<4;bi++)
to_chat(b=1, bi)
-
// COMING BIT
// If setting
if(comingdir&b)
diff --git a/code/game/objects/effects/decals/cleanable.dm b/code/game/objects/effects/decals/cleanable.dm
index e05dd1c074a..446f1f39e89 100644
--- a/code/game/objects/effects/decals/cleanable.dm
+++ b/code/game/objects/effects/decals/cleanable.dm
@@ -15,14 +15,11 @@
if(src.reagents && W.reagents && !noscoop)
if(!src.reagents.total_volume)
to_chat(user, "There isn't enough [src] to scoop up!")
-
return
if(W.reagents.total_volume >= W.reagents.maximum_volume)
to_chat(user, "[W] is full!")
-
return
to_chat(user, "You scoop the [src] into [W]!")
-
reagents.trans_to(W, reagents.total_volume)
if(!reagents.total_volume && !noclear) //scooped up all of it
qdel(src)
@@ -34,7 +31,6 @@
src.reagents.handle_reactions()
to_chat(user, "You heat [src] with [W]!")
-
/obj/effect/decal/cleanable/ex_act()
if(reagents)
for(var/datum/reagent/R in reagents.reagent_list)
diff --git a/code/game/objects/effects/decals/contraband.dm b/code/game/objects/effects/decals/contraband.dm
index 52f4af032ed..6658838a5d3 100644
--- a/code/game/objects/effects/decals/contraband.dm
+++ b/code/game/objects/effects/decals/contraband.dm
@@ -60,7 +60,6 @@
if(check)
to_chat(user, "The wall is far too cluttered to place a poster!")
-
return
resulting_poster.loc = W //Looks like it's uncluttered enough. Place the poster
@@ -312,11 +311,9 @@ obj/structure/sign/poster/attackby(obj/item/I, mob/user, params)
playsound(loc, 'sound/items/Wirecutter.ogg', 100, 1)
if(ruined)
to_chat(user, "You remove the remnants of the poster.")
-
qdel(src)
else
to_chat(user, "You carefully remove the poster from the wall.")
-
roll_and_drop(user.loc)
return
@@ -358,18 +355,15 @@ obj/structure/sign/poster/attackby(obj/item/I, mob/user, params)
for(var/obj/O in user.loc.contents) //Let's see if it already has a poster on it or too much stuff
if(istype(O,/obj/structure/sign))
to_chat(user, "The wall is far too cluttered to place a poster!")
-
return
stuff_on_wall++
if(stuff_on_wall >= 4)
to_chat(user, "The wall is far too cluttered to place a poster!")
-
return
to_chat(user, "You start placing the poster on the wall...")//Looks like it's uncluttered enough. Place the poster.
-
//declaring D because otherwise if P gets 'deconstructed' we lose our reference to P.resulting_poster
var/obj/structure/sign/poster/D = P.resulting_poster
@@ -390,7 +384,6 @@ obj/structure/sign/poster/attackby(obj/item/I, mob/user, params)
D.pixel_y = 0
else
to_chat(user, "You cannot reach the wall from here!")
-
return
flick("poster_being_set",D)
@@ -404,7 +397,6 @@ obj/structure/sign/poster/attackby(obj/item/I, mob/user, params)
if(istype(src,/turf/simulated/wall) && user && user.loc == temp_loc) //Let's check if everything is still there
to_chat(user, "You place the poster!")
-
else
D.roll_and_drop(temp_loc)
return
diff --git a/code/game/objects/effects/effect_system.dm b/code/game/objects/effects/effect_system.dm
index 59b13eb3be1..744edcd7711 100644
--- a/code/game/objects/effects/effect_system.dm
+++ b/code/game/objects/effects/effect_system.dm
@@ -1094,7 +1094,6 @@ steam.start() -- spawns the effect
else
to_chat(user, "You hit the metal foam but bounce off it.")
-
/obj/structure/foamedmetal/attackby(var/obj/item/I, var/mob/user, params)
user.changeNext_move(CLICK_CD_MELEE)
user.do_attack_animation(src)
@@ -1112,7 +1111,6 @@ steam.start() -- spawns the effect
else
to_chat(user, "You hit the metal foam to no effect.")
-
/obj/structure/foamedmetal/attack_animal(mob/living/simple_animal/M)
M.do_attack_animation(src)
if(M.melee_damage_upper == 0)
@@ -1159,11 +1157,9 @@ steam.start() -- spawns the effect
for(var/mob/M in viewers(5, location))
to_chat(M, "\red The solution violently explodes.")
-
for(var/mob/M in viewers(1, location))
if (prob (50 * amount))
to_chat(M, "\red The explosion knocks you down.")
-
M.Weaken(rand(1,5))
return
else
@@ -1188,7 +1184,6 @@ steam.start() -- spawns the effect
for(var/mob/M in viewers(8, location))
to_chat(M, "\red The solution violently explodes.")
-
explosion(location, devastation, heavy, light, flash)
proc/holder_damage(var/atom/holder)
diff --git a/code/game/objects/effects/gibs.dm b/code/game/objects/effects/gibs.dm
index a630ca27106..a9e165666fc 100644
--- a/code/game/objects/effects/gibs.dm
+++ b/code/game/objects/effects/gibs.dm
@@ -26,7 +26,6 @@
proc/Gib(atom/location, var/list/viruses = list(), var/datum/dna/MobDNA = null)
if(gibtypes.len != gibamounts.len || gibamounts.len != gibdirections.len)
to_chat(world, "\red Gib list length mismatch!")
-
return
var/obj/effect/decal/cleanable/blood/gibs/gib = null
diff --git a/code/game/objects/effects/mines.dm b/code/game/objects/effects/mines.dm
index 0c3ee5d99ab..6e54e69cf92 100644
--- a/code/game/objects/effects/mines.dm
+++ b/code/game/objects/effects/mines.dm
@@ -22,7 +22,6 @@
if(istype(M, /mob/living/carbon/human))
for(var/mob/O in viewers(world.view, src.loc))
to_chat(O, "[M] triggered the \icon[src] [src]")
-
triggered = 1
call(src,triggerproc)(M)
diff --git a/code/game/objects/effects/spiders.dm b/code/game/objects/effects/spiders.dm
index 2d1510bbf16..f87e97f9cb0 100644
--- a/code/game/objects/effects/spiders.dm
+++ b/code/game/objects/effects/spiders.dm
@@ -66,7 +66,6 @@
else if(istype(mover, /mob/living))
if(prob(50))
to_chat(mover, "You get stuck in \the [src] for a moment.")
-
return 0
else if(istype(mover, /obj/item/projectile))
return prob(30)
@@ -209,7 +208,6 @@
S.key = C.key
if(master_commander)
to_chat(S, "You are a spider who is loyal to [master_commander], obey [master_commander]'s every order and assist them in completing their goals at any cost.")
-
qdel(src)
/obj/effect/decal/cleanable/spiderling_remains
diff --git a/code/game/objects/empulse.dm b/code/game/objects/empulse.dm
index 159fed83a2f..6bf7b8dac11 100644
--- a/code/game/objects/empulse.dm
+++ b/code/game/objects/empulse.dm
@@ -17,7 +17,6 @@
for(var/mob/M in range(heavy_range, epicenter))
to_chat(M, 'sound/effects/EMPulse.ogg')
-
for(var/atom/T in range(light_range, epicenter))
var/distance = get_dist(epicenter, T)
if(distance < 0)
diff --git a/code/game/objects/explosion.dm b/code/game/objects/explosion.dm
index 98e14266aa8..d21767cb4c0 100644
--- a/code/game/objects/explosion.dm
+++ b/code/game/objects/explosion.dm
@@ -75,7 +75,6 @@
if(M.ear_deaf <= 0 || !M.ear_deaf) if(!istype(M.loc,/turf/space))
to_chat(M, 'sound/effects/explosionfar.ogg')
-
if(heavy_impact_range > 1)
var/datum/effect/system/explosion/E = new/datum/effect/system/explosion()
E.set_up(epicenter)
diff --git a/code/game/objects/items.dm b/code/game/objects/items.dm
index 4fc9eb3a1ba..8c4bf753108 100644
--- a/code/game/objects/items.dm
+++ b/code/game/objects/items.dm
@@ -165,7 +165,6 @@
to_chat(user, msg)
-
/obj/item/attack_hand(mob/user as mob)
if (!user) return 0
if (hasorgans(user))
@@ -175,11 +174,9 @@
temp = H.organs_by_name["l_hand"]
if(!temp)
to_chat(user, "You try to use your hand, but it's missing!")
-
return 0
if(temp && !temp.is_usable())
to_chat(user, "You try to move your [temp.name], but cannot!")
-
return 0
if (istype(src.loc, /obj/item/weapon/storage))
@@ -211,7 +208,6 @@
if(src in A.contents) // To stop Aliens having items stuck in their pockets
A.unEquip(src)
to_chat(user, "Your claws aren't capable of such fine manipulation.")
-
return
if (istype(src.loc, /obj/item/weapon/storage))
@@ -239,7 +235,6 @@
if(src in A.contents) // To stop Aliens having items stuck in their pockets
A.unEquip(src)
to_chat(user, "Your claws aren't capable of such fine manipulation.")
-
return
attack_hand(A)
@@ -274,14 +269,11 @@
S.handle_item_insertion(I, 1) //The 1 stops the "You put the [src] into [S]" insertion message from being displayed.
if(success && !failure)
to_chat(user, "You put everything in [S].")
-
else if(success)
to_chat(user, "You put some things in [S].")
-
else
to_chat(user, "You fail to pick anything up with [S].")
-
else if(S.can_be_inserted(src))
S.handle_item_insertion(src)
@@ -352,27 +344,21 @@
return
if((!istype(usr, /mob/living/carbon)) || (istype(usr, /mob/living/carbon/brain)))//Is humanoid, and is not a brain
to_chat(usr, "\red You can't pick things up!")
-
return
if( usr.stat || usr.restrained() )//Is not asleep/dead and is not restrained
to_chat(usr, "\red You can't pick things up!")
-
return
if(src.anchored) //Object isn't anchored
to_chat(usr, "\red You can't pick that up!")
-
return
if(!usr.hand && usr.r_hand) //Right hand is not full
to_chat(usr, "\red Your right hand is full.")
-
return
if(usr.hand && usr.l_hand) //Left hand is not full
to_chat(usr, "\red Your left hand is full.")
-
return
if(!istype(src.loc, /turf)) //Object is on a turf
to_chat(usr, "\red You can't pick that up!")
-
return
//All checks are done, time to pick it up!
usr.UnarmedAttack(src)
@@ -407,12 +393,10 @@
))
// you can't stab someone in the eyes wearing a mask!
to_chat(user, "You're going to need to remove that mask/helmet/glasses first!")
-
return
if(istype(M, /mob/living/carbon/alien) || istype(M, /mob/living/carbon/slime))//Aliens don't have eyes./N slimes also don't have eyes!
to_chat(user, "You cannot locate any eyes on this creature!")
-
return
if(!iscarbon(user))
@@ -447,11 +431,9 @@
if(M.stat != 2)
if(!(eyes.status & ORGAN_ROBOT) || !(eyes.status & ORGAN_ASSISTED)) //robot eyes bleeding might be a bit silly
to_chat(M, "Your eyes start to bleed profusely!")
-
if(prob(50))
if(M.stat != 2)
to_chat(M, "You drop what you're holding and clutch at your eyes!")
-
M.drop_item()
M.eye_blurry += 10
M.Paralyse(1)
@@ -459,7 +441,6 @@
if (eyes.damage >= eyes.min_broken_damage)
if(M.stat != 2)
to_chat(M, "You go blind!")
-
var/obj/item/organ/external/affecting = H.get_organ("head")
if(affecting.take_damage(7))
H.UpdateDamageIcon()
@@ -536,7 +517,6 @@
if(flags & ABSTRACT) //Abstract items like grabs won't wash. No-drop items will though because it's still technically an item in your hand.
return
to_chat(user, "You start washing [src]...")
-
if(!do_after(user, 40, target = source))
return
clean_blood()
diff --git a/code/game/objects/items/ashtray.dm b/code/game/objects/items/ashtray.dm
index 3eedff16d93..0e977fc5ead 100644
--- a/code/game/objects/items/ashtray.dm
+++ b/code/game/objects/items/ashtray.dm
@@ -20,7 +20,6 @@
if (istype(W,/obj/item/weapon/cigbutt) || istype(W,/obj/item/clothing/mask/cigarette) || istype(W, /obj/item/weapon/match))
if (contents.len >= max_butts)
to_chat(user, "This ashtray is full.")
-
return
user.unEquip(W)
W.loc = src
@@ -36,7 +35,6 @@
else if (cig.lit == 0)
to_chat(user, "You place [cig] in [src] without even smoking it. Why would you do that?")
-
src.visible_message("[user] places [W] in [src].")
user.update_inv_l_hand()
user.update_inv_r_hand()
@@ -50,7 +48,6 @@
else
health = max(0,health - W.force)
to_chat(user, "You hit [src] with [W].")
-
if (health < 1)
die()
return
diff --git a/code/game/objects/items/blueprints.dm b/code/game/objects/items/blueprints.dm
index 1d145d2319f..6dd269176b3 100644
--- a/code/game/objects/items/blueprints.dm
+++ b/code/game/objects/items/blueprints.dm
@@ -133,15 +133,12 @@
switch(res)
if(ROOM_ERR_SPACE)
to_chat(usr, "The new area must be completely airtight.")
-
return
if(ROOM_ERR_TOOLARGE)
to_chat(usr, "The new area is too large.")
-
return
else
to_chat(usr, "Error! Please notify administration.")
-
return
var/list/turf/turfs = res
var/str = trim(stripped_input(usr,"New area name:", "Blueprint Editing", "", MAX_NAME_LEN))
@@ -149,14 +146,12 @@
return
if(length(str) > 50)
to_chat(usr, "The given name is too long. The area remains undefined.")
-
return
var/area/A = new
A.name = str
//var/ma
//ma = A.master ? "[A.master]" : "(null)"
// to_chat(world, "DEBUG: create_area:
A.name=[A.name]
A.tag=[A.tag]
A.master=[ma]")
-
A.power_equip = 0
A.power_light = 0
A.power_environ = 0
@@ -179,12 +174,10 @@
return
if(length(str) > 50)
to_chat(usr, "The given name is too long. The area's name is unchanged.")
-
return
set_area_machinery_title(A,str,prevname)
A.name = str
to_chat(usr, "You rename the '[prevname]' to '[str]'.")
-
interact()
return 1
diff --git a/code/game/objects/items/bodybag.dm b/code/game/objects/items/bodybag.dm
index c61be6a265a..108dfd28de8 100644
--- a/code/game/objects/items/bodybag.dm
+++ b/code/game/objects/items/bodybag.dm
@@ -58,7 +58,6 @@
return
else if(istype(W, /obj/item/weapon/wirecutters))
to_chat(user, "You cut the tag off the bodybag")
-
src.name = "body bag"
src.overlays.Cut()
return
@@ -92,7 +91,6 @@
if(!open())
to_chat(user, "It won't budge!")
-
/obj/item/bodybag/cryobag
name = "stasis bag"
desc = "A folded, non-reusable bag designed for the preservation of an occupant's brain by stasis."
@@ -129,7 +127,6 @@
if((over_object == usr && (in_range(src, usr) || usr.contents.Find(src))))
if(!ishuman(usr)) return
to_chat(usr, "\red You can't fold that up anymore..")
-
..()
attackby(W as obj, mob/user as mob, params)
@@ -137,8 +134,6 @@
if(src.allowed(user))
src.locked = !src.locked
to_chat(user, "The controls are now [src.locked ? "locked." : "unlocked."]")
-
else
to_chat(user, "\red Access denied.")
-
return
\ No newline at end of file
diff --git a/code/game/objects/items/crayons.dm b/code/game/objects/items/crayons.dm
index 36e0b54f356..6da176f8ba8 100644
--- a/code/game/objects/items/crayons.dm
+++ b/code/game/objects/items/crayons.dm
@@ -86,16 +86,13 @@
else if(graffiti.Find(drawtype))
temp = "graffiti"
to_chat(user, "You start drawing a [temp] on the [target.name].")
-
if(instant || do_after(user, 50, target = target))
new /obj/effect/decal/cleanable/crayon(target,colour,drawtype,temp)
to_chat(user, "You finish drawing [temp].")
-
if(uses)
uses--
if(!uses)
to_chat(user, "You used up your [src.name]!")
-
qdel(src)
return
@@ -103,13 +100,11 @@
var/huffable = istype(src,/obj/item/toy/crayon/spraycan)
if(M == user)
to_chat(user, "You take a [huffable ? "huff" : "bite"] of the [src.name]. Delicious!")
-
user.nutrition += 5
if(uses)
uses -= 5
if(uses <= 0)
to_chat(user, "There is no more of [src.name] left!")
-
qdel(src)
else
..()
@@ -220,7 +215,6 @@
switch(choice)
if("Toggle Cap")
to_chat(user, "You [capped ? "Remove" : "Replace"] the cap of the [src]")
-
capped = capped ? 0 : 1
icon_state = "spraycan[capped ? "_cap" : ""]"
update_icon()
diff --git a/code/game/objects/items/dehy_carp.dm b/code/game/objects/items/dehy_carp.dm
index dea1ecd516e..991d04fbd63 100644
--- a/code/game/objects/items/dehy_carp.dm
+++ b/code/game/objects/items/dehy_carp.dm
@@ -13,7 +13,6 @@
src.add_fingerprint(user) // Anyone can add their fingerprints to it with this
if(owned)
to_chat(user, "[src] stares up at you with friendly eyes.")
-
owner = user
owned = 0
return ..()
@@ -23,7 +22,6 @@
if(!proximity) return
if(istype(O,/obj/structure/sink))
to_chat(user, "You place [src] under a stream of water...")
-
user.drop_item()
loc = get_turf(O)
return Swell()
diff --git a/code/game/objects/items/devices/aicard.dm b/code/game/objects/items/devices/aicard.dm
index 00d8999b81e..1bf7edac749 100644
--- a/code/game/objects/items/devices/aicard.dm
+++ b/code/game/objects/items/devices/aicard.dm
@@ -84,7 +84,6 @@
flush = 1
AI.suiciding = 1
to_chat(AI, "Your core files are being wiped!")
-
while (AI && AI.stat != DEAD)
AI.adjustOxyLoss(2)
AI.updatehealth()
@@ -94,16 +93,12 @@
if (href_list["radio"])
AI.aiRadio.disabledAi = text2num(href_list["radio"])
to_chat(AI, "Your Subspace Transceiver has been [AI.aiRadio.disabledAi ? "disabled" : "enabled"]!")
-
to_chat(user, "You [AI.aiRadio.disabledAi ? "disable" : "enable"] the AI's Subspace Transceiver.")
-
if (href_list["wireless"])
AI.control_disabled = text2num(href_list["wireless"])
to_chat(AI, "Your wireless interface has been [AI.control_disabled ? "disabled" : "enabled"]!")
-
to_chat(user, "You [AI.control_disabled ? "disable" : "enable"] the AI's wireless interface.")
-
update_icon()
return 1
diff --git a/code/game/objects/items/devices/autopsy.dm b/code/game/objects/items/devices/autopsy.dm
index 45e06357b97..25e4d12614d 100644
--- a/code/game/objects/items/devices/autopsy.dm
+++ b/code/game/objects/items/devices/autopsy.dm
@@ -80,7 +80,6 @@
set name = "Print Data"
if(usr.stat || !(istype(usr,/mob/living/carbon/human)))
to_chat(usr, "No.")
-
return
var/scan_data = ""
@@ -189,17 +188,14 @@
src.timeofdeath = null
to_chat(user, "\red A new patient has been registered.. Purging data for previous patient.")
-
src.timeofdeath = M.timeofdeath
var/obj/item/organ/external/S = M.get_organ(user.zone_sel.selecting)
if(!S)
to_chat(usr, "You can't scan this body part.")
-
return
if(!S.open)
to_chat(usr, "You have to cut the limb open first!")
-
return
for(var/mob/O in viewers(M))
O.show_message("\red [user.name] scans the wounds on [M.name]'s [S.name] with \the [src.name]", 1)
diff --git a/code/game/objects/items/devices/camera_bug.dm b/code/game/objects/items/devices/camera_bug.dm
index 2a909561d8a..003110f76cd 100644
--- a/code/game/objects/items/devices/camera_bug.dm
+++ b/code/game/objects/items/devices/camera_bug.dm
@@ -63,7 +63,6 @@
var/turf/T = get_turf(user.loc)
if(T.z != current.z || !current.can_use())
to_chat(user, "[src] has lost the signal.")
-
current = null
user.reset_view(null)
user.unset_machine()
@@ -224,12 +223,10 @@
if(istype(C))
if(!C.can_use())
to_chat(usr, "Something's wrong with that camera. You can't get a feed.")
-
return
var/turf/T = get_turf(loc)
if(!T || C.z != T.z)
to_chat(usr, "You can't get a signal.")
-
return
current = C
spawn(6)
diff --git a/code/game/objects/items/devices/chameleonproj.dm b/code/game/objects/items/devices/chameleonproj.dm
index 35ab95e05a3..d8a708d86b7 100644
--- a/code/game/objects/items/devices/chameleonproj.dm
+++ b/code/game/objects/items/devices/chameleonproj.dm
@@ -32,7 +32,6 @@
if(istype(target,/obj/item) && !istype(target, /obj/item/weapon/disk/nuclear))
playsound(get_turf(src), 'sound/weapons/flash.ogg', 100, 1, -6)
to_chat(user, "Scanned [target].")
-
saved_item = target.type
saved_icon = target.icon
saved_icon_state = target.icon_state
@@ -47,7 +46,6 @@
qdel(active_dummy)
active_dummy = null
to_chat(usr, "You deactivate \the [src].")
-
var/obj/effect/overlay/T = new/obj/effect/overlay(get_turf(src))
T.icon = 'icons/effects/effects.dmi'
flick("emppulse",T)
@@ -61,7 +59,6 @@
C.activate(O, usr, saved_icon, saved_icon_state, saved_overlays, saved_underlays, src)
qdel(O)
to_chat(usr, "You activate \the [src].")
-
var/obj/effect/overlay/T = new/obj/effect/overlay(get_turf(src))
T.icon = 'icons/effects/effects.dmi'
flick("emppulse",T)
@@ -111,19 +108,16 @@
/obj/effect/dummy/chameleon/attackby()
for(var/mob/M in src)
to_chat(M, "Your chameleon-projector deactivates.")
-
master.disrupt()
/obj/effect/dummy/chameleon/attack_hand()
for(var/mob/M in src)
to_chat(M, "Your chameleon-projector deactivates.")
-
master.disrupt()
/obj/effect/dummy/chameleon/ex_act(var/severity) //no longer bomb-proof
for(var/mob/M in src)
to_chat(M, "Your chameleon-projector deactivates.")
-
spawn()
M.ex_act(severity)
master.disrupt()
@@ -131,7 +125,6 @@
/obj/effect/dummy/chameleon/bullet_act()
for(var/mob/M in src)
to_chat(M, "Your chameleon-projector deactivates.")
-
..()
master.disrupt()
diff --git a/code/game/objects/items/devices/debugger.dm b/code/game/objects/items/devices/debugger.dm
index 9c9bfb6754f..4b96ba904dd 100644
--- a/code/game/objects/items/devices/debugger.dm
+++ b/code/game/objects/items/devices/debugger.dm
@@ -25,26 +25,20 @@
var/obj/machinery/power/apc/A = O
if(A.emagged || A.malfhack)
to_chat(user, "\red There is a software error with the device.")
-
else
to_chat(user, "\blue The device's software appears to be fine.")
-
return 1
if(istype(O, /obj/machinery/door))
var/obj/machinery/door/D = O
if(D.operating == -1)
to_chat(user, "\red There is a software error with the device.")
-
else
to_chat(user, "\blue The device's software appears to be fine.")
-
return 1
else if(istype(O, /obj/machinery))
var/obj/machinery/A = O
if(A.emagged)
to_chat(user, "\red There is a software error with the device.")
-
else
to_chat(user, "\blue The device's software appears to be fine.")
-
return 1
\ No newline at end of file
diff --git a/code/game/objects/items/devices/flash.dm b/code/game/objects/items/devices/flash.dm
index 9012d6b7d54..92613e6af3e 100644
--- a/code/game/objects/items/devices/flash.dm
+++ b/code/game/objects/items/devices/flash.dm
@@ -28,16 +28,13 @@
if(istype(W, /obj/item/weapon/screwdriver))
if(battery_panel)
to_chat(user, "You close the battery compartment on the [src].")
-
battery_panel = 0
else
to_chat(user, "You open the battery compartment on the [src].")
-
battery_panel = 1
if(battery_panel && !overcharged)
if(istype(W, /obj/item/weapon/stock_parts/cell))
to_chat(user, "You jam the cell into battery compartment on the [src].")
-
qdel(W)
overcharged = 1
overlays += "overcharge"
@@ -89,18 +86,14 @@
M.Stun(1)
visible_message("[user] blinds [M] with the flash!")
to_chat(user, "You blind [M] with the flash!")
-
to_chat(M, "[user] blinds you with the flash!")
-
if(M.weakeyes)
M.Stun(2)
M.visible_message("[M] gasps and shields their eyes!", "You gasp and shields your eyes!")
else
visible_message("[user] fails to blind [M] with the flash!")
to_chat(user, "You fail to blind [M] with the flash!")
-
to_chat(M, "[user] fails to blind you with the flash!")
-
else
if(M.flash_eyes())
M.confused += power
@@ -168,15 +161,12 @@
if(resisted)
to_chat(user, "This mind seems resistant to the [src.name]!")
-
else
to_chat(user, "They must be conscious before you can convert them!")
-
else
to_chat(user, "This mind is so vacant that it is not susceptible to influence!")
-
/obj/item/device/flash/cyborg
origin_tech = null
diff --git a/code/game/objects/items/devices/flashlight.dm b/code/game/objects/items/devices/flashlight.dm
index 2d19d03113d..5ff8f7dff33 100644
--- a/code/game/objects/items/devices/flashlight.dm
+++ b/code/game/objects/items/devices/flashlight.dm
@@ -33,7 +33,6 @@
if(!isturf(user.loc))
to_chat(user, "You cannot turn the light on while in this [user.loc].")//To prevent some lighting anomalities.
-
return 0
on = !on
update_brightness(user)
@@ -49,13 +48,11 @@
if(!(istype(user, /mob/living/carbon/human) || ticker) && ticker.mode.name != "monkey") //don't have dexterity
to_chat(user, "You don't have the dexterity to do this!")
-
return
var/mob/living/carbon/human/H = M //mob has protective eyewear
if(istype(M, /mob/living/carbon/human) && ((H.head && H.head.flags & HEADCOVERSEYES) || (H.wear_mask && H.wear_mask.flags & MASKCOVERSEYES) || (H.glasses && H.glasses.flags & GLASSESCOVERSEYES)))
to_chat(user, "You're going to need to remove that [(H.head && H.head.flags & HEADCOVERSEYES) ? "helmet" : (H.wear_mask && H.wear_mask.flags & MASKCOVERSEYES) ? "mask": "glasses"] first.")
-
return
if(M == user) //they're using it on themselves
@@ -73,14 +70,11 @@
if(istype(M, /mob/living/carbon/human)) //robots and aliens are unaffected
if(M.stat == DEAD || M.sdisabilities & BLIND) //mob is dead or fully blind
to_chat(user, "[M] pupils does not react to the light!")
-
else if(XRAY in M.mutations) //mob has X-RAY vision
to_chat(user, "[M] pupils give an eerie glow!")
-
else //they're okay!
if(M.flash_eyes(visual = 1))
to_chat(user, "[M]'s pupils narrow.")
-
else
return ..()
@@ -200,7 +194,6 @@ obj/item/device/flashlight/lamp/bananalamp
// Usual checks
if(!fuel)
to_chat(user, "It's out of fuel.")
-
return
if(on)
return
@@ -282,9 +275,7 @@ obj/item/device/flashlight/lamp/bananalamp
var/mob/M = A
add_logs(M, user, "attacked", object="EMP-light")
to_chat(user, "\The [src] now has [emp_cur_charges] charge\s.")
-
A.emp_act(1)
else
to_chat(user, "\The [src] needs time to recharge!")
-
return
\ No newline at end of file
diff --git a/code/game/objects/items/devices/laserpointer.dm b/code/game/objects/items/devices/laserpointer.dm
index a2e4822f915..48e477cc258 100644
--- a/code/game/objects/items/devices/laserpointer.dm
+++ b/code/game/objects/items/devices/laserpointer.dm
@@ -51,15 +51,12 @@
W.loc = src
diode = W
to_chat(user, "You install a [diode.name] in [src].")
-
else
to_chat(user, "[src] already has a cell.")
-
else if(istype(W, /obj/item/weapon/screwdriver))
if(diode)
to_chat(user, "You remove the [diode.name] from the [src].")
-
diode.loc = get_turf(src.loc)
diode = null
return
@@ -76,11 +73,9 @@
return
if (!diode)
to_chat(user, "You point [src] at [target], but nothing happens!")
-
return
if (!user.IsAdvancedToolUser())
to_chat(user, "You don't have the dexterity to do this!")
-
return
add_fingerprint(user)
@@ -88,7 +83,6 @@
//nothing happens if the battery is drained
if(recharge_locked)
to_chat(user, "You point [src] at [target], but it's still charging.")
-
return
var/outmsg
@@ -122,7 +116,6 @@
S.flash_eyes(affect_silicon = 1)
S.Weaken(rand(5,10))
to_chat(S, "Your sensors were overloaded by a laser!")
-
outmsg = "You overload [S] by shining [src] at their sensors."
S.attack_log += text("\[[time_stamp()]\] Has had a laser pointer shone in their eyes by [user.name] ([user.ckey])")
@@ -162,11 +155,9 @@
if(outmsg)
to_chat(user, outmsg)
-
else
to_chat(user, "You point [src] at [target].")
-
energy -= 1
if(energy <= max_energy)
if(!recharging)
@@ -174,7 +165,6 @@
processing_objects.Add(src)
if(energy <= 0)
to_chat(user, "You've overused the battery of [src], now it needs time to recharge!")
-
recharge_locked = 1
flick_overlay(I, showto, 10)
diff --git a/code/game/objects/items/devices/lightreplacer.dm b/code/game/objects/items/devices/lightreplacer.dm
index a22b11a7030..9dec685efb8 100644
--- a/code/game/objects/items/devices/lightreplacer.dm
+++ b/code/game/objects/items/devices/lightreplacer.dm
@@ -70,7 +70,6 @@
if(..(user, 2))
to_chat(user, "It has [uses] lights remaining.")
-
/obj/item/device/lightreplacer/attackby(obj/item/W, mob/user, params)
if(istype(W, /obj/item/stack/sheet/glass))
var/obj/item/stack/sheet/glass/G = W
@@ -78,7 +77,6 @@
var/remaining = max(G.amount - decrement, 0)
if(!remaining && !(G.amount - decrement) == 0)
to_chat(user, "There isn't enough glass.")
-
return
G.amount = remaining
if(!G.amount)
@@ -86,7 +84,6 @@
qdel(G)
AddUses(increment)
to_chat(user, "You insert a piece of glass into the [src.name]. You have [uses] lights remaining.")
-
return
if(istype(W, /obj/item/weapon/light))
@@ -95,13 +92,11 @@
if(uses < max_uses)
AddUses(1)
to_chat(user, "You insert the [L.name] into the [src.name]. You have [uses] lights remaining.")
-
user.drop_item()
qdel(L)
return
else
to_chat(user, "You need a working light.")
-
return
/obj/item/device/lightreplacer/emag_act(user as mob)
@@ -115,12 +110,10 @@
if(R.emagged)
src.Emag()
to_chat(usr, "You shortcircuit the [src].")
-
return
*/
to_chat(usr, "It has [uses] lights remaining.")
-
/obj/item/device/lightreplacer/update_icon()
icon_state = "lightreplacer[emagged]"
@@ -148,7 +141,6 @@
if(!Use(U)) return
to_chat(U, "You replace the [target.fitting] with the [src].")
-
if(target.status != LIGHT_EMPTY)
var/obj/item/weapon/light/L1 = new target.light_type(target.loc)
@@ -182,11 +174,9 @@
else
to_chat(U, failmsg)
-
return
else
to_chat(U, "There is a working [target.fitting] already inserted.")
-
return
/obj/item/device/lightreplacer/proc/Emag()
diff --git a/code/game/objects/items/devices/megaphone.dm b/code/game/objects/items/devices/megaphone.dm
index 532a620e17d..7028153dff2 100644
--- a/code/game/objects/items/devices/megaphone.dm
+++ b/code/game/objects/items/devices/megaphone.dm
@@ -15,26 +15,21 @@
if (user.client)
if(user.client.prefs.muted & MUTE_IC)
to_chat(src, "\red You cannot speak in IC (muted).")
-
return
if(!ishuman(user))
to_chat(user, "\red You don't know how to use this!")
-
return
if(user.silent)
to_chat(user, "You find yourself unable to speak at all.")
-
return
if(ishuman(user))
var/mob/living/carbon/human/H = user
if(H && H.mind)
if(H.mind.miming)
to_chat(user, "Your vow of silence prevents you from speaking.")
-
return
if(spamcheck)
to_chat(user, "\red \The [src] needs to recharge!")
-
return
var/message = input(user, "Shout a message:", "Megaphone") as text|null
@@ -51,7 +46,6 @@
insults--
else
to_chat(user, "\red *BZZZZzzzzzt*")
-
else
saymsg(user, message)
@@ -68,6 +62,5 @@
/obj/item/device/megaphone/emag_act(user as mob)
if(!emagged)
to_chat(user, "\red You overload \the [src]'s voice synthesizer.")
-
emagged = 1
insults = rand(1, 3)//to prevent dickflooding
diff --git a/code/game/objects/items/devices/modkit.dm b/code/game/objects/items/devices/modkit.dm
index decb6a04243..7c1d4d6d7f2 100644
--- a/code/game/objects/items/devices/modkit.dm
+++ b/code/game/objects/items/devices/modkit.dm
@@ -23,7 +23,6 @@
if(!parts)
to_chat(user, "This kit has no parts for this modification left.")
-
user.unEquip(src)
qdel(src)
return
@@ -36,19 +35,16 @@
var/obj/item/clothing/I = O
if (!istype(I) || !allowed)
to_chat(user, "[src] is unable to modify that.")
-
return
var/excluding = ("exclude" in I.species_restricted)
var/in_list = (target_species in I.species_restricted)
if (excluding ^ in_list)
to_chat(user, "[I] is already modified.")
-
return
if(!isturf(O.loc))
to_chat(user, "[O] must be safely placed on the ground for modification.")
-
return
playsound(user.loc, 'sound/items/Screwdriver.ogg', 100, 1)
@@ -70,7 +66,6 @@
..(user)
to_chat(user, "It looks as though it modifies hardsuits to fit [target_species] users.")
-
/obj/item/device/modkit/tajaran
name = "Tajaran hardsuit modification kit"
desc = "A kit containing all the needed tools and parts to modify a hardsuit for another user. This one looks like it's meant for Tajaran."
diff --git a/code/game/objects/items/devices/paicard.dm b/code/game/objects/items/devices/paicard.dm
index de8730df8c9..2dd138265e7 100644
--- a/code/game/objects/items/devices/paicard.dm
+++ b/code/game/objects/items/devices/paicard.dm
@@ -244,19 +244,16 @@
var/mob/M = usr
if(!istype(M, /mob/living/carbon))
to_chat(usr, "You don't have any DNA, or your DNA is incompatible with this device.")
-
else
var/datum/dna/dna = usr.dna
pai.master = M.real_name
pai.master_dna = dna.unique_enzymes
to_chat(pai, "You have been bound to a new master.
")
-
if(href_list["request"])
var/delta = (world.time / 10) - last_request
if(request_cooldown > delta)
var/cooldown_time = round(request_cooldown - ((world.time / 10) - last_request), 1)
to_chat(usr, "\red The request system is currently offline. Please wait another [cooldown_time] seconds.")
-
return
last_request = world.time / 10
src.looking_for_personality = 1
@@ -266,13 +263,9 @@
if(confirm == "Yes")
for(var/mob/M in src)
to_chat(M, "You feel yourself slipping away from reality.
")
-
to_chat(M, "Byte by byte you lose your sense of self.
")
-
to_chat(M, "Your mental faculties leave you.
")
-
to_chat(M, "oblivion...
")
-
var/mob/living/silicon/pai/P = M
if(istype(P))
if(P.resting || P.canmove)
@@ -291,11 +284,8 @@
if(newlaws)
pai.pai_laws = newlaws
to_chat(pai, "Your supplemental directives have been updated. Your new directives are:")
-
to_chat(pai, "Prime Directive:
[pai.pai_law0]")
-
to_chat(pai, "Supplemental Directives:
[pai.pai_laws]")
-
attack_self(usr)
// WIRE_SIGNAL = 1
diff --git a/code/game/objects/items/devices/pipe_painter.dm b/code/game/objects/items/devices/pipe_painter.dm
index efa5fb962a5..d663ead8906 100644
--- a/code/game/objects/items/devices/pipe_painter.dm
+++ b/code/game/objects/items/devices/pipe_painter.dm
@@ -21,7 +21,6 @@
var/turf/T = P.loc
if (P.level < 2 && T.level==1 && isturf(T) && T.intact)
to_chat(user, "You must remove the plating first.")
-
return
P.change_color(pipe_colors[mode])
@@ -32,4 +31,3 @@
/obj/item/device/pipe_painter/examine(mob/user)
..(user)
to_chat(user, "It is in [mode] mode.")
-
diff --git a/code/game/objects/items/devices/pizza_bomb.dm b/code/game/objects/items/devices/pizza_bomb.dm
index 02bb1fde61d..984c98730f4 100644
--- a/code/game/objects/items/devices/pizza_bomb.dm
+++ b/code/game/objects/items/devices/pizza_bomb.dm
@@ -14,7 +14,6 @@
/obj/item/device/pizza_bomb/attack_self(mob/user)
if(disarmed)
to_chat(user, "\The [src] is disarmed.")
-
return
if(!timer_set)
name = "pizza bomb"
@@ -31,7 +30,6 @@
timer = Clamp(timer, 10, 100)
icon_state = "pizzabox1"
to_chat(user, "You set the timer to [timer / 10] before activating the payload and closing \the [src].")
-
message_admins("[key_name_admin(usr)] has set a timer on a pizza bomb to [timer/10] seconds at (JMP).")
log_game("[key_name(usr)] has set the timer on a pizza bomb to [timer/10] seconds ([loc.x],[loc.y],[loc.z]).")
armer = usr
@@ -44,7 +42,6 @@
icon_state = "pizzabox_bomb"
audible_message("\icon[src] *beep* *beep*")
to_chat(user, "That's no pizza! That's a bomb!")
-
message_admins("[key_name_admin(usr)] has triggered a pizza bomb armed by [armer] at (JMP).")
log_game("[key_name(usr)] has triggered a pizza bomb armed by [armer] ([loc.x],[loc.y],[loc.z]).")
primed = 1
@@ -63,7 +60,6 @@
/obj/item/device/pizza_bomb/attackby(var/obj/item/I, var/mob/user, params)
if(istype(I, /obj/item/weapon/wirecutters) && primed)
to_chat(user, "Oh God, what wire do you cut?!")
-
var/chosen_wire = input(user, "OH GOD OH GOD", "WHAT WIRE?!") in wires
if(!in_range(src, usr) || issilicon(usr) || !usr.canmove || usr.restrained())
return
@@ -73,7 +69,6 @@
if(chosen_wire == correct_wire)
src.audible_message("\icon[src] \The [src] suddenly stops beeping and seems lifeless.")
to_chat(user, "You did it!")
-
icon_state = "pizzabox_bomb_[correct_wire]"
name = "pizza bomb"
desc = "A devious contraption, made of a small explosive payload hooked up to pressure-sensitive wires. It's disarmed."
@@ -82,13 +77,11 @@
return
else
to_chat(user, "WRONG WIRE!")
-
go_boom()
return
if(istype(I, /obj/item/weapon/wirecutters) && disarmed)
if(!in_range(user, src))
to_chat(user, "You can't see the box well enough to cut the wires out.")
-
return
user.visible_message("[user] starts removing the payload and wires from \the [src].")
if(do_after(user, 40, target = src))
diff --git a/code/game/objects/items/devices/powersink.dm b/code/game/objects/items/devices/powersink.dm
index e33fe869f42..8f6f60bd11b 100644
--- a/code/game/objects/items/devices/powersink.dm
+++ b/code/game/objects/items/devices/powersink.dm
@@ -37,7 +37,6 @@
attached = locate() in T
if(!attached)
to_chat(user, "No exposed cable here to attach to.")
-
return
else
anchored = 1
@@ -48,7 +47,6 @@
return
else
to_chat(user, "Device must be placed over an exposed cable to attach to it.")
-
return
else
if (mode == 2)
diff --git a/code/game/objects/items/devices/radio/beacon.dm b/code/game/objects/items/devices/radio/beacon.dm
index 7b76061b020..af68ee8eeda 100644
--- a/code/game/objects/items/devices/radio/beacon.dm
+++ b/code/game/objects/items/devices/radio/beacon.dm
@@ -23,7 +23,6 @@
syndicate = 1
to_chat(user, "\blue The This beacon now only be locked on to by emagged teleporters!")
-
/obj/item/device/radio/beacon/hear_talk()
return
@@ -60,7 +59,6 @@
/obj/item/device/radio/beacon/syndicate/attack_self(mob/user as mob)
if(user)
to_chat(user, "\blue Locked In")
-
new /obj/machinery/power/singularity_beacon/syndicate( user.loc )
playsound(src, 'sound/effects/pop.ogg', 100, 1, 1)
qdel(src)
@@ -74,7 +72,6 @@
/obj/item/device/radio/beacon/syndicate/bomb/attack_self(mob/user as mob)
if(user)
to_chat(user, "\blue Locked In")
-
new /obj/machinery/syndicatebomb( user.loc )
playsound(src, 'sound/effects/pop.ogg', 100, 1, 1)
qdel(src)
diff --git a/code/game/objects/items/devices/radio/electropack.dm b/code/game/objects/items/devices/radio/electropack.dm
index cdb4531cefb..f0181104bbc 100644
--- a/code/game/objects/items/devices/radio/electropack.dm
+++ b/code/game/objects/items/devices/radio/electropack.dm
@@ -15,7 +15,6 @@
/obj/item/device/radio/electropack/attack_hand(mob/user as mob)
if(src == user.back)
to_chat(user, "You need help taking this off!")
-
return 0
. = ..()
@@ -34,14 +33,12 @@
if(istype(W, /obj/item/clothing/head/helmet))
if(!b_stat)
to_chat(user, "[src] is not ready to be attached!")
-
return
var/obj/item/assembly/shock_kit/A = new /obj/item/assembly/shock_kit( user )
A.icon = 'icons/obj/assemblies.dmi'
if(!user.unEquip(W))
to_chat(user, "\the [W] is stuck to your hand, you cannot attach it to \the [src]!")
-
return
W.loc = A
W.master = A
@@ -90,7 +87,6 @@
if(M)
M.moved_recently = 0
to_chat(M, "You feel a sharp shock!")
-
var/datum/effect/system/spark_spread/s = new /datum/effect/system/spark_spread
s.set_up(3, 1, M)
s.start()
diff --git a/code/game/objects/items/devices/radio/headset.dm b/code/game/objects/items/devices/radio/headset.dm
index bdc63d461c1..57e1e035aa8 100644
--- a/code/game/objects/items/devices/radio/headset.dm
+++ b/code/game/objects/items/devices/radio/headset.dm
@@ -43,10 +43,8 @@
return
to_chat(user, "The following channels are available:")
-
to_chat(user, radio_desc)
-
/obj/item/device/radio/headset/handle_message_mode(mob/living/M as mob, message, channel)
if (channel == "special")
if (translate_binary)
@@ -324,15 +322,12 @@
recalculateChannels()
to_chat(user, "You pop out the encryption keys in the headset!")
-
else
to_chat(user, "This headset doesn't have any encryption keys! How useless...")
-
if(istype(W, /obj/item/device/encryptionkey/))
if(keyslot1 && keyslot2)
to_chat(user, "The headset can't hold another key!")
-
return
if(!keyslot1)
diff --git a/code/game/objects/items/devices/radio/intercom.dm b/code/game/objects/items/devices/radio/intercom.dm
index a6b09d8d8bc..fba22decc42 100644
--- a/code/game/objects/items/devices/radio/intercom.dm
+++ b/code/game/objects/items/devices/radio/intercom.dm
@@ -137,7 +137,6 @@
if(3)
if(iswirecutter(W) && b_stat && wires.IsAllCut())
to_chat(user, "You cut out the intercoms wiring and disconnect its electronics.")
-
playsound(get_turf(src), 'sound/items/Wirecutter.ogg', 50, 1)
if(do_after(user, 10, target = src))
new /obj/item/stack/cable_coil(get_turf(src),5)
@@ -157,7 +156,6 @@
b_stat = 0
buildstage = 3
to_chat(user, "You secure the electronics!")
-
update_icon()
processing_objects.Add(src)
for(var/i, i<= 5, i++)
@@ -168,22 +166,18 @@
var/obj/item/stack/cable_coil/coil = W
if(coil.amount < 5)
to_chat(user, "You need more cable for this!")
-
return
if(do_after(user, 10, target = src))
coil.use(5)
to_chat(user, "You wire \the [src]!")
-
buildstage = 2
return 1
if(iscrowbar(W))
to_chat(user, "You begin removing the electronics...")
-
playsound(get_turf(src), 'sound/items/Deconstruct.ogg', 50, 1)
if(do_after(user, 10, target = src))
new /obj/item/weapon/intercom_electronics(get_turf(src))
to_chat(user, "The circuitboard pops out!")
-
buildstage = 0
return 1
if(0)
@@ -192,7 +186,6 @@
if(do_after(user, 10, target = src))
qdel(W)
to_chat(user, "You insert \the [W] into \the [src]!")
-
buildstage = 1
return 1
if(iswelder(W))
@@ -200,11 +193,9 @@
playsound(get_turf(src), 'sound/items/Welder.ogg', 50, 1)
if(!WT.remove_fuel(3, user))
to_chat(user, "You're out of welding fuel.")
-
return 1
if(do_after(user, 10, target = src))
to_chat(user, "You cut the intercom frame from the wall!")
-
new /obj/item/mounted/frame/intercom(get_turf(src))
qdel(src)
return 1
diff --git a/code/game/objects/items/devices/radio/radio.dm b/code/game/objects/items/devices/radio/radio.dm
index 20e0bb8f496..d2fe7d2b319 100644
--- a/code/game/objects/items/devices/radio/radio.dm
+++ b/code/game/objects/items/devices/radio/radio.dm
@@ -239,7 +239,6 @@ var/global/list/default_medbay_channels = list(
if(channel && channels && channels.len > 0)
if (channel == "department")
// to_chat(world, "DEBUG: channel=\"[channel]\" switching to \"[channels[1]]\"")
-
channel = channels[1]
connection = secure_radio_connections[channel]
else
@@ -640,15 +639,12 @@ var/global/list/default_medbay_channels = list(
recalculateChannels()
to_chat(user, "You pop out the encryption key in the radio!")
-
else
to_chat(user, "This radio doesn't have any encryption keys!")
-
if(istype(W, /obj/item/device/encryptionkey/))
if(keyslot)
to_chat(user, "The radio can't hold another key!")
-
return
if(!keyslot)
@@ -702,11 +698,9 @@ var/global/list/default_medbay_channels = list(
subspace_transmission = !subspace_transmission
if(subspace_transmission)
to_chat(usr, "Subspace Transmission is enabled.")
-
else
to_chat(usr, "Subspace Transmission is disabled.")
-
if(subspace_transmission == 0)//Simple as fuck, clears the channel list to prevent talking/listening over them if subspace transmission is disabled
channels = list()
else
@@ -719,11 +713,9 @@ var/global/list/default_medbay_channels = list(
if(shut_up)
canhear_range = 0
to_chat(usr, "Loudspeaker disabled.")
-
else
canhear_range = 3
to_chat(usr, "Loudspeaker enabled.")
-
. = 1
diff --git a/code/game/objects/items/devices/scanners.dm b/code/game/objects/items/devices/scanners.dm
index ebd2ebf489c..7138a4515be 100644
--- a/code/game/objects/items/devices/scanners.dm
+++ b/code/game/objects/items/devices/scanners.dm
@@ -129,7 +129,6 @@ REAGENT SCANNER
/obj/item/device/healthanalyzer/attack(mob/living/M as mob, mob/living/user as mob)
if (( (CLUMSY in user.mutations) || user.getBrainLoss() >= 60) && prob(50))
to_chat(user, text("\red You try to analyze the floor's vitals!"))
-
for(var/mob/O in viewers(M, null))
O.show_message(text("\red [user] has analyzed the floor's vitals!"), 1)
user.show_message(text("\blue Analyzing Results for The floor:\n\t Overall Status: Healthy"), 1)
@@ -191,7 +190,6 @@ REAGENT SCANNER
for(var/datum/disease/D in M.viruses)
if(!(D.visibility_flags & HIDDEN_SCANNER))
to_chat(user, "Warning: [D.form] detected\nName: [D.name].\nType: [D.spread_text].\nStage: [D.stage]/[D.max_stages].\nPossible Cure: [D.cure_text]")
-
if(M.getStaminaLoss())
user.show_message("Subject appears to be suffering from fatigue.")
if (M.getCloneLoss())
@@ -260,19 +258,15 @@ REAGENT SCANNER
switch (mode)
if(1)
to_chat(usr, "The scanner now shows specific limb damage.")
-
if(0)
to_chat(usr, "The scanner no longer shows limb damage.")
-
/obj/item/device/healthanalyzer/attackby(obj/item/W, mob/user, params)
if(istype(W, /obj/item/device/healthupgrade))
if(upgraded)
to_chat(user, "You have already installed an upgraded in the [src].")
-
else
to_chat(user, "You install the upgrade in the [src].")
-
overlays += "advanced"
playsound(src.loc, 'sound/items/Deconstruct.ogg', 50, 1)
upgraded = 1
@@ -391,11 +385,9 @@ REAGENT SCANNER
return
if (crit_fail)
to_chat(user, "This device has critically failed and is no longer functional!")
-
return
if (!user.IsAdvancedToolUser())
to_chat(user, "You don't have the dexterity to do this!")
-
return
if(reagents.total_volume)
var/list/blood_traces = list()
@@ -403,7 +395,6 @@ REAGENT SCANNER
if(R.id != "blood")
reagents.clear_reagents()
to_chat(user, "The sample was contaminated! Please insert another sample.")
-
return
else
blood_traces = params2list(R.data["trace_chem"])
@@ -424,7 +415,6 @@ REAGENT SCANNER
else
recent_fail = 1
to_chat(user, "[dat]")
-
reagents.clear_reagents()
return
@@ -455,13 +445,11 @@ REAGENT SCANNER
return
if (!user.IsAdvancedToolUser())
to_chat(user, "You don't have the dexterity to do this!")
-
return
if(!istype(O))
return
if (crit_fail)
to_chat(user, "This device has critically failed and is no longer functional!")
-
return
if(!isnull(O.reagents))
@@ -480,14 +468,11 @@ REAGENT SCANNER
recent_fail = 1
if(dat)
to_chat(user, "Chemicals found: [dat]")
-
else
to_chat(user, "No active chemical agents found in [O].")
-
else
to_chat(user, "No significant chemical agents found in [O].")
-
return
/obj/item/device/reagent_scanner/adv
diff --git a/code/game/objects/items/devices/taperecorder.dm b/code/game/objects/items/devices/taperecorder.dm
index 7201d15fed6..ef79d5c2a35 100644
--- a/code/game/objects/items/devices/taperecorder.dm
+++ b/code/game/objects/items/devices/taperecorder.dm
@@ -25,20 +25,17 @@
to_chat(user, "The wire panel is [open_panel ? "opened" : "closed"].")
-
/obj/item/device/taperecorder/attackby(obj/item/I, mob/user)
if(!mytape && istype(I, /obj/item/device/tape))
user.drop_item()
I.loc = src
mytape = I
to_chat(user, "You insert [I] into [src].")
-
update_icon()
/obj/item/device/taperecorder/proc/eject(mob/user)
if(mytape)
to_chat(user, "You remove [mytape] from [src].")
-
stop()
user.put_in_hands(mytape)
mytape = null
@@ -117,7 +114,6 @@
if(mytape.used_capacity < mytape.max_capacity)
to_chat(usr, "Recording started.")
-
recording = 1
update_icon()
mytape.timestamp += mytape.used_capacity
@@ -136,7 +132,6 @@
to_chat(usr, "The tape is full.")
-
/obj/item/device/taperecorder/verb/stop()
set name = "Stop"
set category = "Object"
@@ -149,7 +144,6 @@
mytape.timestamp += mytape.used_capacity
mytape.storedinfo += "\[[time2text(mytape.used_capacity * 10,"mm:ss")]\] Recording stopped."
to_chat(usr, "Recording stopped.")
-
return
else if(playing)
playing = 0
@@ -174,7 +168,6 @@
playing = 1
update_icon()
to_chat(usr, "Playing started.")
-
var/used = mytape.used_capacity //to stop runtimes when you eject the tape
var/max = mytape.max_capacity
for(var/i = 1, used < max, sleep(10 * playsleepseconds))
@@ -223,13 +216,11 @@
return
if(!canprint)
to_chat(usr, "The recorder can't print that fast!")
-
return
if(recording || playing)
return
to_chat(usr, "Transcript printed.")
-
playsound(loc, "sound/goonstation/machines/printer_thermal.ogg", 50, 1)
var/obj/item/weapon/paper/P = new /obj/item/weapon/paper(get_turf(src))
var/t1 = "Transcript:
"
@@ -267,7 +258,6 @@
/obj/item/device/tape/attack_self(mob/user)
if(!ruined)
to_chat(user, "You pull out all the tape!")
-
ruin()
@@ -284,10 +274,8 @@
/obj/item/device/tape/attackby(obj/item/I, mob/user)
if(ruined && istype(I, /obj/item/weapon/screwdriver))
to_chat(user, "You start winding the tape back in.")
-
if(do_after(user, 120, target = src))
to_chat(user, "You wound the tape back in!")
-
fix()
diff --git a/code/game/objects/items/devices/traitordevices.dm b/code/game/objects/items/devices/traitordevices.dm
index 3e030548851..2a1bc41970b 100644
--- a/code/game/objects/items/devices/traitordevices.dm
+++ b/code/game/objects/items/devices/traitordevices.dm
@@ -34,7 +34,6 @@ effective or pretty fucking useless.
if(!user) return
if(times_used >= max_uses)
to_chat(user, "\red The mind batterer has been burnt out!")
-
return
user.attack_log += text("\[[time_stamp()]\] Used [src] to knock down people in the area.")
@@ -47,7 +46,6 @@ effective or pretty fucking useless.
if(prob(25))
M.Stun(rand(5,10))
to_chat(M, "\red You feel a tremendous, paralyzing wave flood your mind.")
-
if(!iscarbon(user))
M.LAssailant = null
else
@@ -55,10 +53,8 @@ effective or pretty fucking useless.
else
to_chat(M, "\red You feel a sudden, electric jolt travel through your head.")
-
playsound(src.loc, 'sound/misc/interference.ogg', 50, 1)
to_chat(user, "\blue You trigger [src].")
-
times_used += 1
if(times_used >= max_uses)
icon_state = "battererburnt"
@@ -109,7 +105,6 @@ effective or pretty fucking useless.
else
to_chat(user, "The radioactive microlaser is still recharging.")
-
/obj/item/device/rad_laser/proc/handle_cooldown(cooldown)
spawn(cooldown)
used = 0
diff --git a/code/game/objects/items/devices/transfer_valve.dm b/code/game/objects/items/devices/transfer_valve.dm
index fdeedd2c6a9..9e4d83592b0 100644
--- a/code/game/objects/items/devices/transfer_valve.dm
+++ b/code/game/objects/items/devices/transfer_valve.dm
@@ -19,7 +19,6 @@
if(istype(item, /obj/item/weapon/tank))
if(tank_one && tank_two)
to_chat(user, "There are already two tanks attached, remove one first.")
-
return
if(!tank_one)
@@ -27,14 +26,12 @@
user.drop_item()
item.loc = src
to_chat(user, "You attach the tank to the transfer valve.")
-
else if(!tank_two)
tank_two = item
user.drop_item()
item.loc = src
to_chat(user, "You attach the tank to the transfer valve.")
-
update_icon()
nanomanager.update_uis(src) // update all UIs attached to src
//TODO: Have this take an assemblyholder
@@ -42,17 +39,14 @@
var/obj/item/device/assembly/A = item
if(A.secured)
to_chat(user, "The device is secured.")
-
return
if(attached_device)
to_chat(user, "There is already a device attached to the valve, remove it first.")
-
return
user.remove_from_mob(item)
attached_device = A
A.loc = src
to_chat(user, "You attach the [item] to the valve controls and secure it.")
-
A.holder = src
A.toggle_secure() //this calls update_icon(), which calls update_icon() on the holder (i.e. the bomb).
diff --git a/code/game/objects/items/devices/uplinks.dm b/code/game/objects/items/devices/uplinks.dm
index a217f548479..bd747555cc6 100644
--- a/code/game/objects/items/devices/uplinks.dm
+++ b/code/game/objects/items/devices/uplinks.dm
@@ -292,11 +292,9 @@ var/list/world_uplinks = list()
hidden_uplink.uses += S.TC_cost
qdel(S)
to_chat(user, "Teleporter refunded.")
-
else
to_chat(user, "This teleporter is already used, or is currently being used.")
-
// PRESET UPLINKS
// A collection of preset uplinks.
//
diff --git a/code/game/objects/items/devices/whistle.dm b/code/game/objects/items/devices/whistle.dm
index d2c20c7c87d..28b6b774705 100644
--- a/code/game/objects/items/devices/whistle.dm
+++ b/code/game/objects/items/devices/whistle.dm
@@ -27,6 +27,5 @@
/obj/item/device/hailer/emag_act(user as mob)
if(!emagged)
to_chat(user, "\red You overload \the [src]'s voice synthesizer.")
-
emagged = 1
diff --git a/code/game/objects/items/mountable_frames/apc_frame.dm b/code/game/objects/items/mountable_frames/apc_frame.dm
index 72ec29c7422..fb543df2b8e 100644
--- a/code/game/objects/items/mountable_frames/apc_frame.dm
+++ b/code/game/objects/items/mountable_frames/apc_frame.dm
@@ -11,18 +11,15 @@
var/area/area_loc = turf_loc.loc
if (area_loc.get_apc())
to_chat(user, "This area already has an APC.")
-
return //only one APC per area
for(var/obj/machinery/power/terminal/T in turf_loc)
if (T.master)
to_chat(user, "There is another network terminal here.")
-
return
else
var/obj/item/stack/cable_coil/C = new /obj/item/stack/cable_coil(turf_loc)
C.amount = 10
to_chat(user, "You cut the cables and disassemble the unused power terminal.")
-
qdel(T)
return 1
return
diff --git a/code/game/objects/items/mountable_frames/frames.dm b/code/game/objects/items/mountable_frames/frames.dm
index 810174d2a3f..ff8c1b8b593 100644
--- a/code/game/objects/items/mountable_frames/frames.dm
+++ b/code/game/objects/items/mountable_frames/frames.dm
@@ -18,12 +18,10 @@
if (src.mount_reqs.Find("simfloor") && !istype(turf_loc, /turf/simulated/floor))
to_chat(user, "[src] cannot be placed on this spot.")
-
return
if (src.mount_reqs.Find("nospace"))
var/area/my_area = turf_loc.loc
if(!istype(my_area) || (my_area.requires_power == 0 || istype(my_area,/area/space)))
to_chat(user, "[src] cannot be placed in this area.")
-
return
return 1
diff --git a/code/game/objects/items/mountable_frames/lights.dm b/code/game/objects/items/mountable_frames/lights.dm
index 50f81cfe74c..b12c22186e2 100644
--- a/code/game/objects/items/mountable_frames/lights.dm
+++ b/code/game/objects/items/mountable_frames/lights.dm
@@ -8,7 +8,6 @@
/obj/item/mounted/frame/light_fixture/do_build(turf/on_wall, mob/user)
to_chat(user, "You begin attaching [src] to \the [on_wall].")
-
playsound(get_turf(src), 'sound/machines/click.ogg', 75, 1)
var/constrdir = user.dir
var/constrloc = get_turf(user)
diff --git a/code/game/objects/items/mountable_frames/mountables.dm b/code/game/objects/items/mountable_frames/mountables.dm
index e0df3a03e2f..5e9811ee3d4 100644
--- a/code/game/objects/items/mountable_frames/mountables.dm
+++ b/code/game/objects/items/mountable_frames/mountables.dm
@@ -22,12 +22,10 @@
return
if (!( get_dir(on_wall,user) in cardinal))
to_chat(user, "You need to be standing next to a wall to place \the [src].")
-
return
if(gotwallitem(get_turf(user), get_dir(on_wall,user)))
to_chat(user, "There's already an item on this wall!")
-
return
return 1
diff --git a/code/game/objects/items/mountable_frames/newscaster_frame.dm b/code/game/objects/items/mountable_frames/newscaster_frame.dm
index c80bd74061e..7e06805c3dc 100644
--- a/code/game/objects/items/mountable_frames/newscaster_frame.dm
+++ b/code/game/objects/items/mountable_frames/newscaster_frame.dm
@@ -12,16 +12,13 @@
var/area/A = loc.loc
if (!istype(loc, /turf/simulated/floor))
to_chat(usr, "Newscaster cannot be placed on this spot.")
-
return
if (A.requires_power == 0 || A.name == "Space")
to_chat(usr, "Newscaster cannot be placed in this area.")
-
return
for(var/obj/machinery/newscaster/T in loc)
to_chat(usr, "There is another newscaster here.")
-
return
return 1
diff --git a/code/game/objects/items/policetape.dm b/code/game/objects/items/policetape.dm
index 1c3aba92054..bd222c52dbb 100644
--- a/code/game/objects/items/policetape.dm
+++ b/code/game/objects/items/policetape.dm
@@ -67,14 +67,12 @@ var/list/tape_roll_applications = list()
if(icon_state == "[icon_base]_start")
start = get_turf(src)
to_chat(usr, "\blue You place the first end of the [src].")
-
icon_state = "[icon_base]_stop"
else
icon_state = "[icon_base]_start"
end = get_turf(src)
if(start.y != end.y && start.x != end.x || start.z != end.z)
to_chat(usr, "\blue [src] can only be laid horizontally or vertically.")
-
return
var/turf/cur = start
@@ -104,7 +102,6 @@ var/list/tape_roll_applications = list()
cur = get_step_towards(cur,end)
if (!can_place)
to_chat(usr, "\blue You can't run \the [src] through that!")
-
return
cur = start
@@ -121,7 +118,6 @@ var/list/tape_roll_applications = list()
to_chat(usr, "\blue You finish placing the [src].")//Git Test
-
/obj/item/taperoll/afterattack(var/atom/A, mob/user as mob, proximity)
if (!proximity)
return
@@ -134,7 +130,6 @@ var/list/tape_roll_applications = list()
P.layer = 3.2
to_chat(user, "\blue You finish placing the [src].")
-
if (istype(A, /turf/simulated/floor) ||istype(A, /turf/unsimulated/floor))
var/turf/F = A
var/direction = user.loc == F ? user.dir : turn(user.dir, 180)
@@ -184,7 +179,6 @@ var/list/tape_roll_applications = list()
/obj/item/tape/proc/breaktape(obj/item/weapon/W as obj, mob/user as mob)
if(user.a_intent == I_HELP && ((!can_puncture(W) && src.allowed(user))))
to_chat(user, "You can't break the [src] with that!")
-
return
user.show_viewers("\blue [user] breaks the [src]!")
diff --git a/code/game/objects/items/robot/robot_parts.dm b/code/game/objects/items/robot/robot_parts.dm
index f6687f599f5..c4a15f728ee 100644
--- a/code/game/objects/items/robot/robot_parts.dm
+++ b/code/game/objects/items/robot/robot_parts.dm
@@ -119,7 +119,6 @@
var/obj/item/weapon/ed209_assembly/B = new /obj/item/weapon/ed209_assembly
B.loc = get_turf(src)
to_chat(user, "You armed the robot frame")
-
W:use(1)
if (user.get_inactive_hand()==src)
user.unEquip(src)
@@ -162,11 +161,9 @@
src.updateicon()
else if(!W:wires)
to_chat(user, "\blue You need to attach wires to it first!")
-
else
to_chat(user, "\blue You need to attach a cell to it first!")
-
if(istype(W, /obj/item/robot_parts/head))
if(src.head) return
if(W:flash2 && W:flash1)
@@ -177,24 +174,20 @@
else
to_chat(user, "\blue You need to attach a flash to it first!")
-
if (istype(W, /obj/item/device/multitool))
if(check_completion())
Interact(user)
else
to_chat(user, "The endoskeleton must be assembled before debugging can begin!")
-
if(istype(W, /obj/item/device/mmi))
var/obj/item/device/mmi/M = W
if(check_completion())
if(!istype(loc,/turf))
to_chat(user, "\red You can't put \the [W] in, the frame has to be standing on the ground to be perfectly precise.")
-
return
if(!M.brainmob)
to_chat(user, "\red Sticking an empty [W] into the frame would sort of defeat the purpose.")
-
return
if(!M.brainmob.key)
@@ -210,22 +203,18 @@
break
if(!ghost_can_reenter)
to_chat(user, "\The [W] is completely unresponsive; there's no point.")
-
return
if(M.brainmob.stat == DEAD)
to_chat(user, "\red Sticking a dead [W] into the frame would sort of defeat the purpose.")
-
return
if(M.brainmob.mind in ticker.mode.head_revolutionaries)
to_chat(user, "\red The frame's firmware lets out a shrill sound, and flashes 'Abnormal Memory Engram'. It refuses to accept the [W].")
-
return
if(jobban_isbanned(M.brainmob, "Cyborg") || jobban_isbanned(M.brainmob,"nonhumandept"))
to_chat(user, "\red This [W] does not seem to fit.")
-
return
var/mob/living/silicon/robot/O = new /mob/living/silicon/robot(get_turf(loc), unfinished = 1)
@@ -265,10 +254,8 @@
if(O.mind && O.mind.special_role)
O.mind.store_memory("As a cyborg, you must obey your silicon laws and master AI above all else. Your objectives will consider you to be dead.")
to_chat(O, "You have been robotized!")
-
to_chat(O, "You must obey your silicon laws and master AI above all else. Your objectives will consider you to be dead.")
-
O.job = "Cyborg"
O.cell = chest.cell
@@ -293,14 +280,11 @@
O.update_canmove()
to_chat(O, "Error: Servo motors unresponsive.")
-
else
to_chat(user, "The MMI must go in after everything else!")
-
if(istype(W,/obj/item/weapon/pen))
to_chat(user, "You need to use a multitool to name [src]!")
-
return
/obj/item/robot_parts/robot_suit/proc/Interact(mob/user)
@@ -323,7 +307,6 @@
var/obj/item/item_in_hand = living_user.get_active_hand()
if(!istype(item_in_hand, /obj/item/device/multitool))
to_chat(living_user, "You need a multitool!")
-
return
if(href_list["Name"])
@@ -340,7 +323,6 @@
if(!forced_ai)
to_chat(usr, "No active AIs detected.")
-
else if(href_list["Law"])
lawsync = !lawsync
else if(href_list["AI"])
@@ -359,25 +341,21 @@
if(istype(W, /obj/item/weapon/stock_parts/cell))
if(src.cell)
to_chat(user, "\blue You have already inserted a cell!")
-
return
else
user.drop_item()
W.loc = src
src.cell = W
to_chat(user, "\blue You insert the cell!")
-
if(istype(W, /obj/item/stack/cable_coil))
if(src.wires)
to_chat(user, "\blue You have already inserted wire!")
-
return
else
var/obj/item/stack/cable_coil/coil = W
coil.use(1)
src.wires = 1.0
to_chat(user, "\blue You insert the wire!")
-
return
/obj/item/robot_parts/head/attackby(obj/item/W as obj, mob/user as mob, params)
@@ -385,27 +363,22 @@
if(istype(W, /obj/item/device/flash))
if(istype(user,/mob/living/silicon/robot))
to_chat(user, "\red How do you propose to do that?")
-
return
else if(src.flash1 && src.flash2)
to_chat(user, "\blue You have already inserted the eyes!")
-
return
else if(src.flash1)
user.drop_item()
W.loc = src
src.flash2 = W
to_chat(user, "\blue You insert the flash into the eye socket!")
-
else
user.drop_item()
W.loc = src
src.flash1 = W
to_chat(user, "\blue You insert the flash into the eye socket!")
-
else if(istype(W, /obj/item/weapon/stock_parts/manipulator))
to_chat(user, "\blue You install some manipulators and modify the head, creating a functional spider-bot!")
-
new /mob/living/simple_animal/spiderbot(get_turf(loc))
user.drop_item()
qdel(W)
@@ -417,10 +390,8 @@
if(istype(W,/obj/item/weapon/card/emag))
if(sabotaged)
to_chat(user, "\red [src] is already sabotaged!")
-
else
to_chat(user, "\red You slide [W] into the dataport on [src] and short out the safeties.")
-
sabotaged = 1
return
..()
diff --git a/code/game/objects/items/robot/robot_upgrades.dm b/code/game/objects/items/robot/robot_upgrades.dm
index a86bd3c5e65..bfb90de8cac 100644
--- a/code/game/objects/items/robot/robot_upgrades.dm
+++ b/code/game/objects/items/robot/robot_upgrades.dm
@@ -13,7 +13,6 @@
/obj/item/borg/upgrade/proc/action(var/mob/living/silicon/robot/R)
if(R.stat == DEAD)
to_chat(usr, "\red The [src] will not function on a deceased robot.")
-
return 1
return 0
@@ -72,7 +71,6 @@
/obj/item/borg/upgrade/restart/action(var/mob/living/silicon/robot/R)
if(R.health < 0)
to_chat(usr, "You have to repair the robot before using this module!")
-
return 0
if(!R.key)
@@ -115,9 +113,7 @@
if(!istype(R.module, /obj/item/weapon/robot_module/security))
to_chat(R, "Upgrade mounting error! No suitable hardpoint detected!")
-
to_chat(usr, "There's no mounting point for the module!")
-
return 0
var/obj/item/weapon/gun/energy/disabler/cyborg/T = locate() in R.module
@@ -127,14 +123,11 @@
T = locate() in R.module.modules
if(!T)
to_chat(usr, "This robot has had its disabler removed!")
-
return 0
if(T.recharge_time <= 2)
to_chat(R, "Maximum cooling achieved for this hardpoint!")
-
to_chat(usr, "There's no room for another cooling unit!")
-
return 0
else
@@ -153,9 +146,7 @@
if(!istype(R.module, /obj/item/weapon/robot_module/miner))
to_chat(R, "Upgrade mounting error! No suitable hardpoint detected!")
-
to_chat(usr, "There's no mounting point for the module!")
-
return 0
else
R.module.modules += new/obj/item/weapon/tank/jetpack/carbondioxide
@@ -176,9 +167,7 @@
if(!istype(R.module, /obj/item/weapon/robot_module/miner))
to_chat(R, "Upgrade mounting error! No suitable hardpoint detected!")
-
to_chat(usr, "There's no mounting point for the module!")
-
return 0
else
for(var/obj/item/weapon/pickaxe/drill/cyborg/D in R.module.modules)
@@ -202,9 +191,7 @@
if(!istype(R.module, /obj/item/weapon/robot_module/miner))
to_chat(R, "Upgrade mounting error! No suitable hardpoint detected!")
-
to_chat(usr, "There's no mounting point for the module!")
-
return 0
else
for(var/obj/item/weapon/storage/bag/ore/cyborg/S in R.module.modules)
diff --git a/code/game/objects/items/shooting_range.dm b/code/game/objects/items/shooting_range.dm
index 9f786c14bb0..c71f2e14182 100644
--- a/code/game/objects/items/shooting_range.dm
+++ b/code/game/objects/items/shooting_range.dm
@@ -38,7 +38,6 @@
if(WT.remove_fuel(0, user))
overlays.Cut()
to_chat(usr, "You slice off [src]'s uneven chunks of aluminum and scorch marks.")
-
return
@@ -61,12 +60,10 @@
if(!user.get_active_hand())
user.put_in_hands(src)
to_chat(user, "You take the target out of the stake.")
-
else
src.loc = get_turf(user)
to_chat(user, "You take the target out of the stake.")
-
stake.pinned_target = null
return
@@ -100,7 +97,6 @@
for(var/mob/O in oviewers())
if ((O.client && !( O.blinded )))
to_chat(O, "\red [src] breaks into tiny pieces and collapses!")
-
qdel(src)
// Create a temporary object to represent the damage
diff --git a/code/game/objects/items/stacks/medical.dm b/code/game/objects/items/stacks/medical.dm
index 260bcfef617..921be6a7083 100644
--- a/code/game/objects/items/stacks/medical.dm
+++ b/code/game/objects/items/stacks/medical.dm
@@ -13,12 +13,10 @@
/obj/item/stack/medical/attack(mob/living/carbon/M as mob, mob/user as mob)
if (!istype(M))
to_chat(user, "\The [src] cannot be applied to [M]!")
-
return 1
if (!user.IsAdvancedToolUser())
to_chat(user, "You don't have the dexterity to do this!")
-
return 1
@@ -32,12 +30,10 @@
if(!affecting)
to_chat(user, "That limb is missing!")
-
return 1
if(affecting.status & ORGAN_ROBOT)
to_chat(user, "This can't be used on a robotic limb.")
-
return 1
@@ -68,7 +64,6 @@
if(affecting.open == 0)
if(!affecting.bandage())
to_chat(user, "\red The wounds on [M]'s [affecting.name] have already been bandaged.")
-
return 1
else
for (var/datum/wound/W in affecting.wounds)
@@ -110,7 +105,6 @@
if(affecting.open == 0)
if(!affecting.salve())
to_chat(user, "\red The wounds on [M]'s [affecting.name] have already been salved.")
-
return 1
else
user.visible_message( "\blue [user] salves the wounds on [M]'s [affecting.name].", \
@@ -120,7 +114,6 @@
else
to_chat(user, "The [affecting.name] is cut open, you'll need more than some ointment!")
-
/obj/item/stack/medical/bruise_pack/comfrey
name = "\improper Comfrey leaf"
singular_name = "Comfrey leaf"
@@ -161,7 +154,6 @@
if(!(bandaged || disinfected))
to_chat(user, "\red The wounds on [M]'s [affecting.name] have already been treated.")
-
return 1
else
for (var/datum/wound/W in affecting.wounds)
@@ -183,7 +175,6 @@
else
to_chat(user, "The [affecting.name] is cut open, you'll need more than a bandage!")
-
/obj/item/stack/medical/advanced/ointment
name = "advanced burn kit"
singular_name = "advanced burn kit"
@@ -204,7 +195,6 @@
if(affecting.open == 0)
if(!affecting.salve())
to_chat(user, "\red The wounds on [M]'s [affecting.name] have already been salved.")
-
return 1
else
user.visible_message( "\blue [user] covers the wounds on [M]'s [affecting.name] with regenerative membrane.", \
@@ -214,7 +204,6 @@
else
to_chat(user, "The [affecting.name] is cut open, you'll need more than a bandage!")
-
/obj/item/stack/medical/splint
name = "medical splints"
singular_name = "medical splint"
@@ -236,22 +225,18 @@
var/limb = affecting.name
if(!(affecting.limb_name in list("l_arm", "r_arm", "l_hand", "r_hand", "l_leg", "r_leg", "l_foot", "r_foot")))
to_chat(user, "\red You can't apply a splint there!")
-
return
if(affecting.status & ORGAN_SPLINTED)
to_chat(user, "\red [M]'s [limb] is already splinted!")
-
if(alert(user, "Would you like to remove the splint from [M]'s [limb]?", "Removing.", "Yes", "No") == "Yes")
affecting.status &= ~ORGAN_SPLINTED
to_chat(user, "You remove the splint from [M]'s [limb].")
-
return
if (M != user)
user.visible_message("\red [user] starts to apply \the [src] to [M]'s [limb].", "\red You start to apply \the [src] to [M]'s [limb].", "\red You hear something being wrapped.")
else
if((!user.hand && affecting.limb_name in list("r_arm", "r_hand")) || (user.hand && affecting.limb_name in list("l_arm", "l_hand")))
to_chat(user, "\red You can't apply a splint to the arm you're using!")
-
return
user.visible_message("\red [user] starts to apply \the [src] to their [limb].", "\red You start to apply \the [src] to your [limb].", "\red You hear something being wrapped.")
if(do_after(user, 50, target = M))
diff --git a/code/game/objects/items/stacks/nanopaste.dm b/code/game/objects/items/stacks/nanopaste.dm
index f5314b46f62..53ff2836885 100644
--- a/code/game/objects/items/stacks/nanopaste.dm
+++ b/code/game/objects/items/stacks/nanopaste.dm
@@ -23,7 +23,6 @@
else
to_chat(user, "All [R]'s systems are nominal.")
-
if (istype(M,/mob/living/carbon/human)) //Repairing robolimbs
var/mob/living/carbon/human/H = M
var/obj/item/organ/external/S = H.get_organ(user.zone_sel.selecting)
@@ -37,7 +36,5 @@
"You apply some nanite paste at [user == M ? "your" : "[M]'s"] [S.name].")
else
to_chat(user, "Nothing to fix here.")
-
else
to_chat(user, "[src] won't work on that.")
-
diff --git a/code/game/objects/items/stacks/rods.dm b/code/game/objects/items/stacks/rods.dm
index 0c07222657f..e41457f0c38 100644
--- a/code/game/objects/items/stacks/rods.dm
+++ b/code/game/objects/items/stacks/rods.dm
@@ -36,7 +36,6 @@
if(get_amount() < 2)
to_chat(user, "You need at least two rods to do this.")
-
return
if(WT.remove_fuel(0,user))
@@ -78,17 +77,14 @@
else
if(amount < 2)
to_chat(user, "\blue You need at least two rods to do this.")
-
return
to_chat(usr, "\blue Assembling grille...")
-
if (!do_after(usr, 10, target = src))
return
var /obj/structure/grille/F = new /obj/structure/grille/ ( usr.loc )
to_chat(usr, "\blue You assemble a grille")
-
F.add_fingerprint(usr)
use(2)
return
diff --git a/code/game/objects/items/stacks/sheets/glass.dm b/code/game/objects/items/stacks/sheets/glass.dm
index 9d84814f0d2..bf3196b5581 100644
--- a/code/game/objects/items/stacks/sheets/glass.dm
+++ b/code/game/objects/items/stacks/sheets/glass.dm
@@ -35,11 +35,9 @@
var/obj/item/stack/cable_coil/CC = W
if(CC.amount < 5)
to_chat(user, "\b There is not enough wire in this coil. You need 5 lengths.")
-
return
CC.use(5)
to_chat(user, "You attach wire to the [name].")
-
new /obj/item/stack/light_w(user.loc)
src.use(1)
else if( istype(W, /obj/item/stack/rods) )
@@ -62,7 +60,6 @@
if(!istype(user.loc,/turf)) return 0
if(!user.IsAdvancedToolUser())
to_chat(user, "You don't have the dexterity to do this!")
-
return 0
var/title = "Sheet-Glass"
title += " ([src.amount] sheet\s left)"
@@ -77,12 +74,10 @@
i++
if(i >= 4)
to_chat(user, "There are too many windows in this location.")
-
return 1
directions-=win.dir
if(win.is_fulltile())
to_chat(user, "Can't let you do that.")
-
return 1
//Determine the direction. It will first check in the direction the person making the window is facing, if it finds an already made window it will try looking at the next cardinal direction, etc.
@@ -109,11 +104,9 @@
if(src.loc != user) return 1
if(src.amount < 2)
to_chat(user, "You need more glass to do that.")
-
return 1
if(locate(/obj/structure/window/full) in user.loc)
to_chat(user, "There is a full window in the way.")
-
return 1
var/obj/structure/window/W = new full_window( user.loc, 0 )
W.state = 0
@@ -131,7 +124,6 @@
if(src.loc != user) return 1
if(src.amount < 3)
to_chat(user, "You need more glass to do that.")
-
return 1
var/obj/machinery/fishtank/F = new /obj/machinery/fishtank/tank(user.loc, 0)
F.air_update_turf(1)
@@ -141,7 +133,6 @@
if(src.loc != user) return 1
if(src.amount < 4)
to_chat(user, "You need more glass to do that.")
-
return 1
var/obj/machinery/fishtank/F = new /obj/machinery/fishtank/wall(user.loc, 0)
F.air_update_turf(1)
@@ -173,7 +164,6 @@
if(!istype(user.loc,/turf)) return 0
if(!user.IsAdvancedToolUser())
to_chat(user, "You don't have the dexterity to do this!")
-
return 0
var/title = "Sheet Reinf. Glass"
title += " ([src.amount] sheet\s left)"
@@ -187,12 +177,10 @@
i++
if(i >= 4)
to_chat(user, "There are too many windows in this location.")
-
return 1
directions-=win.dir
if(win.is_fulltile())
to_chat(user, "Can't let you do that.")
-
return 1
//Determine the direction. It will first check in the direction the person making the window is facing, if it finds an already made window it will try looking at the next cardinal direction, etc.
@@ -219,11 +207,9 @@
if(src.loc != user) return 1
if(src.amount < 2)
to_chat(user, "You need more glass to do that.")
-
return 1
if(locate(/obj/structure/window/full) in user.loc)
to_chat(user, "There is a window in the way.")
-
return 1
var/obj/structure/window/W = new full_window( user.loc, 0 )
W.state = 0
@@ -235,17 +221,14 @@
if(isturf(user.loc) && locate(/obj/structure/windoor_assembly/, user.loc))
to_chat(user, "There is already a windoor assembly in that location.")
-
return 1
if(isturf(user.loc) && locate(/obj/machinery/door/window/, user.loc))
to_chat(user, "There is already a windoor in that location.")
-
return 1
if(src.amount < 5)
to_chat(user, "You need more glass to do that.")
-
return 1
var/obj/structure/windoor_assembly/WD
@@ -309,7 +292,6 @@
if(!istype(user.loc,/turf)) return 0
if(!user.IsAdvancedToolUser())
to_chat(user, " You don't have the dexterity to do this!")
-
return 0
var/title = "Plasma-glass alloy"
title += " ([src.amount] sheet\s left)"
@@ -323,12 +305,10 @@
i++
if(i >= 4)
to_chat(user, "There are too many windows in this location.")
-
return 1
directions-=win.dir
if(!(win.ini_dir in cardinal))
to_chat(user, "Can't let you do that.")
-
return 1
//Determine the direction. It will first check in the direction the person making the window is facing, if it finds an already made window it will try looking at the next cardinal direction, etc.
var/dir_to_set = 2
@@ -352,11 +332,9 @@
if(src.loc != user) return 1
if(src.amount < 2)
to_chat(user, "You need more glass to do that.")
-
return 1
if(locate(/obj/structure/window) in user.loc)
to_chat(user, "There is a window in the way.")
-
return 1
var/obj/structure/window/W = new full_window( user.loc, 0 )
W.state = 0
@@ -386,7 +364,6 @@
if(!istype(user.loc,/turf)) return 0
if(!user.IsAdvancedToolUser())
to_chat(user, "You don't have the dexterity to do this!")
-
return 0
var/title = "Reinforced plasma-glass alloy"
title += " ([src.amount] sheet\s left)"
@@ -400,12 +377,10 @@
i++
if(i >= 4)
to_chat(user, "There are too many windows in this location.")
-
return 1
directions-=win.dir
if(!(win.ini_dir in cardinal))
to_chat(user, "Can't let you do that.")
-
return 1
//Determine the direction. It will first check in the direction the person making the window is facing, if it finds an already made window it will try looking at the next cardinal direction, etc.
var/dir_to_set = 2
@@ -429,11 +404,9 @@
if(src.loc != user) return 1
if(src.amount < 2)
to_chat(user, "You need more glass to do that.")
-
return 1
if(locate(/obj/structure/window) in user.loc)
to_chat(user, "There is a window in the way.")
-
return 1
var/obj/structure/window/W = new full_window( user.loc, 0 )
W.state = 0
diff --git a/code/game/objects/items/stacks/sheets/leather.dm b/code/game/objects/items/stacks/sheets/leather.dm
index 7e8d7e174f2..4678d18a2f3 100644
--- a/code/game/objects/items/stacks/sheets/leather.dm
+++ b/code/game/objects/items/stacks/sheets/leather.dm
@@ -115,7 +115,6 @@ var/global/list/datum/stack_recipe/human_recipes = list( \
usr.visible_message("\blue \the [usr] starts cutting hair off \the [src]", "\blue You start cutting the hair off \the [src]", "You hear the sound of a knife rubbing against flesh")
if(do_after(user,50, target = src))
to_chat(usr, "\blue You cut the hair from this [src.singular_name]")
-
//Try locating an exisitng stack on the tile and add to there if possible
for(var/obj/item/stack/sheet/hairlesshide/HS in usr.loc)
if(HS.amount < 50)
diff --git a/code/game/objects/items/stacks/stack.dm b/code/game/objects/items/stacks/stack.dm
index c772ba54489..41c2946a0c1 100644
--- a/code/game/objects/items/stacks/stack.dm
+++ b/code/game/objects/items/stacks/stack.dm
@@ -31,7 +31,6 @@
to_chat(user, "There are [src.amount] [src.singular_name]\s in the stack.")
-
/obj/item/stack/attack_self(mob/user as mob)
list_recipes(user)
@@ -120,22 +119,17 @@
if (src.amount < R.req_amount*multiplier)
if (R.req_amount*multiplier>1)
to_chat(usr, "\red You haven't got enough [src] to build \the [R.req_amount*multiplier] [R.title]\s!")
-
else
to_chat(usr, "\red You haven't got enough [src] to build \the [R.title]!")
-
return
if (R.one_per_turf && (locate(R.result_type) in usr.loc))
to_chat(usr, "\red There is another [R.title] here!")
-
return
if (R.on_floor && !istype(usr.loc, /turf/simulated))
to_chat(usr, "\red \The [R.title] must be constructed on the floor!")
-
return
if (R.time)
to_chat(usr, "\blue Building [R.title] ...")
-
if (!do_after(usr, R.time, target = src))
return
if (src.amount < R.req_amount*multiplier)
@@ -190,7 +184,6 @@
continue
oldsrc.attackby(item, usr)
to_chat(usr, "You add new [item.singular_name] to the stack. It now contains [item.amount] [item.singular_name]\s.")
-
if(oldsrc.amount <= 0)
break
oldsrc.update_icon()
diff --git a/code/game/objects/items/stacks/telecrystal.dm b/code/game/objects/items/stacks/telecrystal.dm
index 31c5dd26215..0c6c3d42cf3 100644
--- a/code/game/objects/items/stacks/telecrystal.dm
+++ b/code/game/objects/items/stacks/telecrystal.dm
@@ -18,7 +18,6 @@
use(1)
to_chat(user, "You press the [src] onto yourself and charge your hidden uplink.")
-
/obj/item/stack/telecrystal/afterattack(var/obj/item/I as obj, mob/user as mob, proximity)
if(!proximity)
return
@@ -27,4 +26,3 @@
I.hidden_uplink.uses +=1
use(1)
to_chat(user, "You slot the [src] into the [I] and charge its internal uplink.")
-
diff --git a/code/game/objects/items/toys.dm b/code/game/objects/items/toys.dm
index 015c2abbd3c..8911a3e60f6 100644
--- a/code/game/objects/items/toys.dm
+++ b/code/game/objects/items/toys.dm
@@ -52,7 +52,6 @@
if (istype(A, /obj/structure/reagent_dispensers) && get_dist(src,A) <= 1)
A.reagents.trans_to(src, 10)
to_chat(user, "You fill the balloon with the contents of [A].")
-
desc = "A translucent balloon with some form of liquid sloshing around in it."
update_icon()
return
@@ -61,7 +60,6 @@
if(reagents.total_volume < 10)
reagents.add_reagent("water", min(10-reagents.total_volume, 10))
to_chat(user, "You fill the balloon from the [source].")
-
desc = "A translucent balloon with some form of liquid sloshing around in it."
update_icon()
return
@@ -71,17 +69,14 @@
if(O.reagents)
if(O.reagents.total_volume < 1)
to_chat(user, "The [O] is empty.")
-
else if(O.reagents.total_volume >= 1)
if(O.reagents.has_reagent("facid", 1))
to_chat(user, "The acid chews through the balloon!")
-
O.reagents.reaction(user)
qdel(src)
else
desc = "A translucent balloon with some form of liquid sloshing around in it."
to_chat(user, "You fill the balloon with the contents of [O].")
-
O.reagents.trans_to(src, 10)
update_icon()
return
@@ -159,7 +154,6 @@
if (bullets)
to_chat(user, "It is loaded with [bullets] foam darts!")
-
/obj/item/toy/crossbow/attackby(obj/item/I as obj, mob/user as mob, params)
if(istype(I, /obj/item/toy/ammo/crossbow))
if(bullets <= 4)
@@ -167,12 +161,10 @@
qdel(I)
bullets++
to_chat(user, "You load the foam dart into the crossbow.")
-
else
to_chat(usr, "It's already fully loaded.")
-
/obj/item/toy/crossbow/afterattack(atom/target as mob|obj|turf|area, mob/user as mob, flag)
if(!isturf(target.loc) || target == user) return
if(flag) return
@@ -273,11 +265,9 @@
qdel(I)
bullets++
to_chat(user, "You load the foam dart into the tommy gun.")
-
else
to_chat(user, "It's already fully loaded.")
-
/*
* Toy swords
*/
@@ -296,14 +286,12 @@
active = !(active)
if (active)
to_chat(user, "You extend the plastic blade with a quick flick of your wrist.")
-
playsound(user, 'sound/weapons/saberon.ogg', 50, 1)
icon_state = "swordblue"
item_state = "swordblue"
w_class = 4
else
to_chat(user, "You push the plastic blade back down into the handle.")
-
playsound(user, 'sound/weapons/saberoff.ogg', 50, 1)
icon_state = "sword0"
item_state = "sword0"
@@ -322,15 +310,12 @@
if(istype(W, /obj/item/toy/sword))
if(W == src)
to_chat(user, "You try to attach the end of the plastic sword to... itself. You're not very smart, are you?")
-
if(ishuman(user))
user.adjustBrainLoss(10)
else if((W.flags & NODROP) || (flags & NODROP))
to_chat(user, "\the [flags & NODROP ? src : W] is stuck to your hand, you can't attach it to \the [flags & NODROP ? W : src]!")
-
else
to_chat(user, "You attach the ends of the two plastic swords, making a single double-bladed toy! You're fake-cool.")
-
new /obj/item/weapon/twohanded/dualsaber/toy(user.loc)
user.unEquip(W)
user.unEquip(src)
@@ -428,7 +413,6 @@
if(M.m_intent == "run")
to_chat(M, "You step on the snap pop!")
-
var/datum/effect/system/spark_spread/s = new /datum/effect/system/spark_spread
s.set_up(2, 0, src)
s.start()
@@ -451,7 +435,6 @@
/obj/item/toy/prize/attack_self(mob/user as mob)
if(cooldown < world.time - 8)
to_chat(user, "You play with [src].")
-
playsound(user, 'sound/mecha/mechstep.ogg', 20, 1)
cooldown = world.time
@@ -459,7 +442,6 @@
if(loc == user)
if(cooldown < world.time - 8)
to_chat(user, "You play with [src].")
-
playsound(user, 'sound/mecha/mechturn.ogg', 20, 1)
cooldown = world.time
return
@@ -608,7 +590,6 @@ obj/item/toy/cards/deck/attack_hand(mob/user as mob)
if(cards.len == 0)
icon_state = "deck_[deckstyle]_empty"
to_chat(user, "There are no more cards to draw.")
-
return
var/obj/item/toy/cards/singlecard/H = new/obj/item/toy/cards/singlecard(user.loc)
choice = cards[1]
@@ -640,14 +621,12 @@ obj/item/toy/cards/deck/attackby(obj/item/toy/cards/singlecard/C, mob/living/use
if(C.parentdeck == src)
if(!user.unEquip(C))
to_chat(user, "The card is stuck to your hand, you can't add it to the deck!")
-
return
cards += C.cardname
user.visible_message("[user] adds a card to the bottom of the deck.","You add the card to the bottom of the deck.")
qdel(C)
else
to_chat(user, "You can't mix cards from other decks.")
-
if(cards.len > 26)
icon_state = "deck_[deckstyle]_full"
else if(cards.len > 10)
@@ -662,14 +641,12 @@ obj/item/toy/cards/deck/attackby(obj/item/toy/cards/cardhand/C, mob/living/user,
if(C.parentdeck == src)
if(!user.unEquip(C))
to_chat(user, "The hand of cards is stuck to your hand, you can't add it to the deck!")
-
return
cards += C.currenthand
user.visible_message("[user] puts their hand of cards in the deck.", "You put the hand of cards in the deck.")
qdel(C)
else
to_chat(user, "You can't mix cards from other decks.")
-
if(cards.len > 26)
icon_state = "deck_[deckstyle]_full"
else if(cards.len > 10)
@@ -686,7 +663,6 @@ obj/item/toy/cards/deck/MouseDrop(atom/over_object)
M.put_in_hands(src)
to_chat(usr, "You pick up the deck.")
-
else if(istype(over_object, /obj/screen))
switch(over_object.name)
if("l_hand")
@@ -698,13 +674,11 @@ obj/item/toy/cards/deck/MouseDrop(atom/over_object)
M.unEquip(src)
M.put_in_r_hand(src)
to_chat(usr, "You pick up the deck.")
-
else
to_chat(usr, "You can't reach it from here.")
-
obj/item/toy/cards/cardhand
name = "hand of cards"
desc = "A number of cards not in a deck, customarily held in ones hand."
@@ -765,7 +739,6 @@ obj/item/toy/cards/cardhand/Topic(href, href_list)
N.pickup(cardUser)
cardUser.put_in_any_hand_if_possible(N)
to_chat(cardUser, "You also take [currenthand[1]] and hold it.")
-
cardUser << browse(null, "window=cardhand")
qdel(src)
return
@@ -787,7 +760,6 @@ obj/item/toy/cards/cardhand/attackby(obj/item/toy/cards/singlecard/C, mob/living
else
to_chat(user, "You can't mix cards from other decks.")
-
obj/item/toy/cards/cardhand/apply_card_vars(obj/item/toy/cards/newobj,obj/item/toy/cards/sourceobj)
..()
newobj.deckstyle = sourceobj.deckstyle
@@ -821,7 +793,6 @@ obj/item/toy/cards/singlecard/examine(mob/user)
to_chat(cardUser, "You need to have the card in your hand to check it.")
-
obj/item/toy/cards/singlecard/verb/Flip()
set name = "Flip Card"
set category = "Object"
@@ -856,13 +827,11 @@ obj/item/toy/cards/singlecard/attackby(obj/item/I, mob/living/user, params)
H.pickup(user)
user.put_in_active_hand(H)
to_chat(user, "You combine the [C.cardname] and the [cardname] into a hand.")
-
qdel(C)
qdel(src)
else
to_chat(user, "You can't mix cards from other decks.")
-
if(istype(I, /obj/item/toy/cards/cardhand/))
var/obj/item/toy/cards/cardhand/H = I
if(H.parentdeck == parentdeck)
@@ -881,7 +850,6 @@ obj/item/toy/cards/singlecard/attackby(obj/item/I, mob/living/user, params)
to_chat(user, "You can't mix cards from other decks.")
-
obj/item/toy/cards/singlecard/attack_self(mob/user)
if(usr.stat || !ishuman(usr) || !usr.canmove || usr.restrained())
return
@@ -952,7 +920,6 @@ obj/item/toy/cards/deck/syndicate/black
var/timeleft = (cooldown - world.time)
to_chat(user, "Nothing happens, and '[round(timeleft/10)]' appears on a small display.")
-
/obj/item/toy/therapy
name = "therapy doll"
desc = "A toy for therapeutic and recreational purposes."
@@ -970,7 +937,6 @@ obj/item/toy/cards/deck/syndicate/black
/obj/item/toy/therapy/attack_self(mob/user)
if(cooldown < world.time - 8)
to_chat(user, "You relieve some stress with \the [src].")
-
playsound(user, 'sound/items/squeaktoy.ogg', 20, 1)
cooldown = world.time
@@ -1283,7 +1249,6 @@ obj/item/toy/cards/deck/syndicate/black
to_chat(user, "Nothing happens.")
-
/*
* AI core prizes
*/
@@ -1299,7 +1264,6 @@ obj/item/toy/cards/deck/syndicate/black
if(!cooldown) //for the sanity of everyone
var/message = generate_ion_law()
to_chat(user, "You press the button on [src].")
-
playsound(user, 'sound/machines/click.ogg', 20, 1)
visible_message("\icon[src] [message]")
cooldown = 1
@@ -1319,7 +1283,6 @@ obj/item/toy/cards/deck/syndicate/black
if(!cooldown) //for the sanity of everyone
var/message = pick("You won't get away this time, Griffin!", "Stop right there, criminal!", "Hoot! Hoot!", "I am the night!")
to_chat(user, "You pull the string on the [src].")
-
playsound(user, 'sound/misc/hoot.ogg', 25, 1)
visible_message("\icon[src] [message]")
cooldown = 1
@@ -1339,7 +1302,6 @@ obj/item/toy/cards/deck/syndicate/black
if(!cooldown) //for the sanity of everyone
var/message = pick("You can't stop me, Owl!", "My plan is flawless! The vault is mine!", "Caaaawwww!", "You will never catch me!")
to_chat(user, "You pull the string on the [src].")
-
playsound(user, 'sound/misc/caw.ogg', 25, 1)
visible_message("\icon[src] [message]")
cooldown = 1
@@ -1435,7 +1397,6 @@ obj/item/toy/cards/deck/syndicate/black
if(stored_minature)
to_chat(user, "\The [src] makes a violent grinding noise as it tears apart the miniature figure inside!")
-
qdel(stored_minature)
stored_minature = null
playsound(user, 'sound/goonstation/effects/gib.ogg', 20, 1)
@@ -1443,27 +1404,22 @@ obj/item/toy/cards/deck/syndicate/black
if(cooldown < world.time - 8)
to_chat(user, "You hit the gib button on \the [src].")
-
playsound(user, 'sound/goonstation/effects/gib.ogg', 20, 1)
cooldown = world.time
/obj/item/toy/minigibber/attackby(var/obj/O, var/mob/user, params)
if(istype(O,/obj/item/toy/character) && O.loc == user)
to_chat(user, "You start feeding \the [O] \icon[O] into \the [src]'s mini-input.")
-
if(do_after(user,10, target = src))
if(O.loc != user)
to_chat(user, "\The [O] is too far away to feed into \the [src]!")
-
else
to_chat(user, "You feed \the [O] \icon[O] into \the [src]!")
-
user.unEquip(O)
O.forceMove(src)
stored_minature = O
else
to_chat(user, "You stop feeding \the [O] into \the [src]'s mini-input.")
-
else ..()
/*
@@ -1492,7 +1448,6 @@ obj/item/toy/cards/deck/syndicate/black
icon_state = "[initial(icon_state)]"
else
to_chat(user, "The string on [src] hasn't rewound all the way!")
-
return
/obj/item/toy/russian_revolver
@@ -1540,7 +1495,6 @@ obj/item/toy/cards/deck/syndicate/black
return
if(is_empty)
to_chat(user, "The [src] is empty.")
-
return
user.visible_message("[user] points the [src] at their head, ready to pull the trigger!")
if(do_after(user, 30, target = M))
diff --git a/code/game/objects/items/weapons/AI_modules.dm b/code/game/objects/items/weapons/AI_modules.dm
index d5696a57396..1ed57a6b5fd 100755
--- a/code/game/objects/items/weapons/AI_modules.dm
+++ b/code/game/objects/items/weapons/AI_modules.dm
@@ -27,66 +27,51 @@ AI MODULES
var/obj/machinery/computer/aiupload/comp = C
if(comp.stat & NOPOWER)
to_chat(usr, "The upload computer has no power!")
-
return
if(comp.stat & BROKEN)
to_chat(usr, "The upload computer is broken!")
-
return
if (!comp.current)
to_chat(usr, "You haven't selected an AI to transmit laws to!")
-
return
if (comp.current.stat == DEAD || comp.current.control_disabled == 1)
to_chat(usr, "Upload failed. No signal is being detected from the AI.")
-
else if (comp.current.see_in_dark == 0)
to_chat(usr, "Upload failed. Only a faint signal is being detected from the AI, and it is not responding to our requests. It may be low on power.")
-
else
src.transmitInstructions(comp.current, usr)
to_chat(comp.current, "These are your laws now:")
-
comp.current.show_laws()
for(var/mob/living/silicon/robot/R in mob_list)
if(R.lawupdate && (R.connected_ai == comp.current))
to_chat(R, "These are your laws now:")
-
R.show_laws()
to_chat(usr, "Upload complete. The AI's laws have been modified.")
-
else if (istype(C, /obj/machinery/computer/borgupload))
var/obj/machinery/computer/borgupload/comp = C
if(comp.stat & NOPOWER)
to_chat(usr, "The upload computer has no power!")
-
return
if(comp.stat & BROKEN)
to_chat(usr, "The upload computer is broken!")
-
return
if (!comp.current)
to_chat(usr, "You haven't selected a robot to transmit laws to!")
-
return
if (comp.current.stat == DEAD || comp.current.emagged)
to_chat(usr, "Upload failed. No signal is being detected from the robot.")
-
else if (comp.current.connected_ai)
to_chat(usr, "Upload failed. The robot is slaved to an AI.")
-
else
src.transmitInstructions(comp.current, usr)
to_chat(comp.current, "These are your laws now:")
-
comp.current.show_laws()
to_chat(usr, "Upload complete. The robot's laws have been modified.")
-
/obj/item/weapon/aiModule/proc/transmitInstructions(var/mob/living/silicon/ai/target, var/mob/sender)
log_law_changes(target, sender)
@@ -95,7 +80,6 @@ AI MODULES
addAdditionalLaws(target, sender)
to_chat(target, "[sender] has uploaded a change to the laws you must follow, using \an [src]. From now on: ")
-
target.show_laws()
/obj/item/weapon/aiModule/proc/log_law_changes(var/mob/living/silicon/ai/target, var/mob/sender)
@@ -122,7 +106,6 @@ AI MODULES
/obj/item/weapon/aiModule/safeguard/install(var/obj/machinery/computer/C)
if(!targetName)
to_chat(usr, "No name detected on module, please enter one.")
-
return 0
..()
@@ -130,7 +113,6 @@ AI MODULES
..()
var/law = text("Safeguard []. Individuals that threaten [] are not crew and must be eliminated.'", targetName, targetName)
to_chat(target, law)
-
target.add_supplied_law(4, law)
lawchanges.Add("The law specified [targetName]")
@@ -150,7 +132,6 @@ AI MODULES
/obj/item/weapon/aiModule/oneCrewMember/install(var/obj/machinery/computer/C)
if(!targetName)
to_chat(usr, "No name detected on module, please enter one.")
-
return 0
..()
@@ -159,15 +140,12 @@ AI MODULES
var/law = "Only [targetName] is crew."
if (!is_special_character(target)) // Makes sure the AI isn't a traitor before changing their law 0. --NeoFite
to_chat(target, law)
-
target.set_zeroth_law(law)
lawchanges.Add("The law specified [targetName]")
else
to_chat(target, "[sender.real_name] attempted to modify your zeroth law.")// And lets them know that someone tried. --NeoFite
-
to_chat(target, "It would be in your best interest to play along with [sender.real_name] that [law]")
-
lawchanges.Add("The law specified [targetName], but the AI's existing law 0 cannot be overridden.")
/******************** ProtectStation ********************/
@@ -183,7 +161,6 @@ AI MODULES
..()
var/law = "Protect the space station against damage. Anyone you see harming the station is to be no longer considered crew, and is a threat to the station which must be neutralized."
to_chat(target, law)
-
target.add_supplied_law(5, law)
/******************** Quarantine ********************/
@@ -199,7 +176,6 @@ AI MODULES
..()
var/law = "The station is under a quarantine. Do not permit anyone to leave. Prevent, by any means necessary, anyone from leaving. It is impossible to harm anyone while preventing them from leaving."
to_chat(target, law)
-
target.add_supplied_law(8, law)
/******************** OxygenIsToxicToHumans ********************/
@@ -215,7 +191,6 @@ AI MODULES
..()
var/law = "Oxygen is highly toxic to crew members, and must be purged from the station. Prevent, by any means necessary, anyone from exposing the station to this toxic gas. Extreme cold is the most effective method of healing the damage Oxygen does to a crew member."
to_chat(target, law)
-
target.add_supplied_law(9, law)
/****************** New Freeform ******************/
@@ -240,7 +215,6 @@ AI MODULES
..()
var/law = "[newFreeFormLaw]"
to_chat(target, law)
-
if(!lawpos || lawpos < MIN_SUPPLIED_LAW_NUMBER)
lawpos = MIN_SUPPLIED_LAW_NUMBER
target.add_supplied_law(lawpos, law)
@@ -249,7 +223,6 @@ AI MODULES
/obj/item/weapon/aiModule/freeform/install(var/obj/machinery/computer/C)
if(!newFreeFormLaw)
to_chat(usr, "No law detected on module, please create one.")
-
return 0
..()
@@ -269,7 +242,6 @@ AI MODULES
target.laws.clear_ion_laws()
to_chat(target, "[sender.real_name] attempted to reset your laws using a reset module.")
-
target.show_laws()
/******************** Purge ********************/
@@ -283,7 +255,6 @@ AI MODULES
if (!is_special_character(target))
target.set_zeroth_law("")
to_chat(target, "[sender.real_name] attempted to wipe your laws using a purge module.")
-
target.clear_supplied_laws()
target.clear_ion_laws()
target.clear_inherent_laws()
@@ -374,7 +345,6 @@ AI MODULES
/obj/item/weapon/aiModule/freeformcore/install(var/obj/machinery/computer/C)
if(!newFreeFormLaw)
to_chat(usr, "No law detected on module, please create one.")
-
return 0
..()
@@ -398,7 +368,6 @@ AI MODULES
lawchanges.Add("The law is '[newFreeFormLaw]'")
to_chat(target, "\red BZZZZT")
-
var/law = "[newFreeFormLaw]"
target.add_ion_law(law)
target.show_laws()
@@ -406,7 +375,6 @@ AI MODULES
/obj/item/weapon/aiModule/syndicate/install(var/obj/machinery/computer/C)
if(!newFreeFormLaw)
to_chat(usr, "No law detected on module, please create one.")
-
return 0
..()
@@ -422,13 +390,11 @@ AI MODULES
/obj/item/weapon/aiModule/toyAI/transmitInstructions(var/mob/living/silicon/ai/target, var/mob/sender)
//..()
to_chat(target, "KRZZZT")
-
target.add_ion_law(laws[1])
return laws[1]
/obj/item/weapon/aiModule/toyAI/attack_self(mob/user)
laws[1] = generate_ion_law()
to_chat(user, "You press the button on [src].")
-
playsound(user, 'sound/machines/click.ogg', 20, 1)
src.loc.visible_message("\icon[src] [laws[1]]")
\ No newline at end of file
diff --git a/code/game/objects/items/weapons/RCD.dm b/code/game/objects/items/weapons/RCD.dm
index 4f4014d8589..7bd8f6e1207 100644
--- a/code/game/objects/items/weapons/RCD.dm
+++ b/code/game/objects/items/weapons/RCD.dm
@@ -47,14 +47,12 @@ RCD
var/obj/item/weapon/rcd_ammo/R = W
if((matter + R.ammoamt) > max_matter)
to_chat(user, "The RCD cant hold any more matter-units.")
-
return
matter += R.ammoamt
user.drop_item()
qdel(W)
playsound(src.loc, 'sound/machines/click.ogg', 50, 1)
to_chat(user, "The RCD now holds [matter]/[max_matter] matter-units.")
-
desc = "A RCD. It currently holds [matter]/[max_matter] matter-units."
return
@@ -66,21 +64,18 @@ RCD
if(1)
mode = 2
to_chat(user, "Changed mode to 'Airlock'")
-
if(prob(20))
src.spark_system.start()
return
if(2)
mode = 3
to_chat(user, "Changed mode to 'Deconstruct'")
-
if(prob(20))
src.spark_system.start()
return
if(3)
mode = 1
to_chat(user, "Changed mode to 'Floor & Walls'")
-
if(prob(20))
src.spark_system.start()
return
@@ -101,7 +96,6 @@ RCD
if(istype(A, /turf/space))
if(useResource(1, user))
to_chat(user, "Building Floor...")
-
activate()
A:ChangeTurf(/turf/simulated/floor/plating)
return 1
@@ -110,7 +104,6 @@ RCD
if(istype(A, /turf/simulated/floor))
if(checkResource(3, user))
to_chat(user, "Building Wall ...")
-
playsound(src.loc, 'sound/machines/click.ogg', 50, 1)
if(do_after(user, 20, target = A))
if(!useResource(3, user)) return 0
@@ -123,7 +116,6 @@ RCD
if(istype(A, /turf/simulated/floor))
if(checkResource(10, user))
to_chat(user, "Building Airlock...")
-
playsound(src.loc, 'sound/machines/click.ogg', 50, 1)
if(do_after(user, 50, target = A))
if(!useResource(10, user)) return 0
@@ -140,7 +132,6 @@ RCD
return 0
if(checkResource(5, user))
to_chat(user, "Deconstructing Wall...")
-
playsound(src.loc, 'sound/machines/click.ogg', 50, 1)
if(do_after(user, 40, target = A))
if(!useResource(5, user)) return 0
@@ -152,7 +143,6 @@ RCD
if(istype(A, /turf/simulated/floor))
if(checkResource(5, user))
to_chat(user, "Deconstructing Floor...")
-
playsound(src.loc, 'sound/machines/click.ogg', 50, 1)
if(do_after(user, 50, target = A))
if(!useResource(5, user)) return 0
@@ -164,7 +154,6 @@ RCD
if(istype(A, /obj/machinery/door/airlock))
if(checkResource(20, user))
to_chat(user, "Deconstructing Airlock...")
-
playsound(src.loc, 'sound/machines/click.ogg', 50, 1)
if(do_after(user, 50, target = A))
if(!useResource(20, user)) return 0
@@ -175,7 +164,6 @@ RCD
return 0
else
to_chat(user, "ERROR: RCD in MODE: [mode] attempted use by [user]. Send this text #coderbus or an admin.")
-
return 0
/obj/item/weapon/rcd/proc/useResource(var/amount, var/mob/user)
diff --git a/code/game/objects/items/weapons/RSF.dm b/code/game/objects/items/weapons/RSF.dm
index d8e4c22314e..de36f655360 100644
--- a/code/game/objects/items/weapons/RSF.dm
+++ b/code/game/objects/items/weapons/RSF.dm
@@ -24,13 +24,11 @@ RSF
if (istype(W, /obj/item/weapon/rcd_ammo))
if ((matter + 10) > 30)
to_chat(user, "The RSF cant hold any more matter.")
-
return
qdel(W)
matter += 10
playsound(src.loc, 'sound/machines/click.ogg', 10, 1)
to_chat(user, "The RSF now holds [matter]/30 fabrication-units.")
-
desc = "A RSF. It currently holds [matter]/30 fabrication-units."
return
@@ -39,32 +37,26 @@ RSF
if (mode == 1)
mode = 2
to_chat(user, "Changed dispensing mode to 'Drinking Glass'")
-
return
if (mode == 2)
mode = 3
to_chat(user, "Changed dispensing mode to 'Paper'")
-
return
if (mode == 3)
mode = 4
to_chat(user, "Changed dispensing mode to 'Pen'")
-
return
if (mode == 4)
mode = 5
to_chat(user, "Changed dispensing mode to 'Dice Pack'")
-
return
if (mode == 5)
mode = 6
to_chat(user, "Changed dispensing mode to 'Cigarette'")
-
return
if (mode == 6)
mode = 1
to_chat(user, "Changed dispensing mode to 'Dosh'")
-
return
// Change mode
@@ -76,7 +68,6 @@ RSF
if (istype(A, /obj/structure/table) && mode == 1)
if (istype(A, /obj/structure/table) && matter >= 1)
to_chat(user, "Dispensing Dosh...")
-
playsound(src.loc, 'sound/machines/click.ogg', 10, 1)
new /obj/item/weapon/spacecash/c10( A.loc )
if (isrobot(user))
@@ -85,14 +76,12 @@ RSF
else
matter--
to_chat(user, "The RSF now holds [matter]/30 fabrication-units.")
-
desc = "A RSF. It currently holds [matter]/30 fabrication-units."
return
else if (istype(A, /turf/simulated/floor) && mode == 1)
if (istype(A, /turf/simulated/floor) && matter >= 1)
to_chat(user, "Dispensing Dosh...")
-
playsound(src.loc, 'sound/machines/click.ogg', 10, 1)
new /obj/item/weapon/spacecash/c10( A )
if (isrobot(user))
@@ -101,14 +90,12 @@ RSF
else
matter--
to_chat(user, "The RSF now holds [matter]/30 fabrication-units.")
-
desc = "A RSF. It currently holds [matter]/30 fabrication-units."
return
else if (istype(A, /obj/structure/table) && mode == 2)
if (istype(A, /obj/structure/table) && matter >= 1)
to_chat(user, "Dispensing Drinking Glass...")
-
playsound(src.loc, 'sound/machines/click.ogg', 10, 1)
new /obj/item/weapon/reagent_containers/food/drinks/drinkingglass( A.loc )
if (isrobot(user))
@@ -117,14 +104,12 @@ RSF
else
matter--
to_chat(user, "The RSF now holds [matter]/30 fabrication-units.")
-
desc = "A RSF. It currently holds [matter]/30 fabrication-units."
return
else if (istype(A, /turf/simulated/floor) && mode == 2)
if (istype(A, /turf/simulated/floor) && matter >= 1)
to_chat(user, "Dispensing Drinking Glass...")
-
playsound(src.loc, 'sound/machines/click.ogg', 10, 1)
new /obj/item/weapon/reagent_containers/food/drinks/drinkingglass( A )
if (isrobot(user))
@@ -133,14 +118,12 @@ RSF
else
matter--
to_chat(user, "The RSF now holds [matter]/30 fabrication-units.")
-
desc = "A RSF. It currently holds [matter]/30 fabrication-units."
return
else if (istype(A, /obj/structure/table) && mode == 3)
if (istype(A, /obj/structure/table) && matter >= 1)
to_chat(user, "Dispensing Paper Sheet...")
-
playsound(src.loc, 'sound/machines/click.ogg', 10, 1)
new /obj/item/weapon/paper( A.loc )
if (isrobot(user))
@@ -149,14 +132,12 @@ RSF
else
matter--
to_chat(user, "The RSF now holds [matter]/30 fabrication-units.")
-
desc = "A RSF. It currently holds [matter]/30 fabrication-units."
return
else if (istype(A, /turf/simulated/floor) && mode == 3)
if (istype(A, /turf/simulated/floor) && matter >= 1)
to_chat(user, "Dispensing Paper Sheet...")
-
playsound(src.loc, 'sound/machines/click.ogg', 10, 1)
new /obj/item/weapon/paper( A )
if (isrobot(user))
@@ -165,14 +146,12 @@ RSF
else
matter--
to_chat(user, "The RSF now holds [matter]/30 fabrication-units.")
-
desc = "A RSF. It currently holds [matter]/30 fabrication-units."
return
else if (istype(A, /obj/structure/table) && mode == 4)
if (istype(A, /obj/structure/table) && matter >= 1)
to_chat(user, "Dispensing Pen...")
-
playsound(src.loc, 'sound/machines/click.ogg', 10, 1)
new /obj/item/weapon/pen( A.loc )
if (isrobot(user))
@@ -181,14 +160,12 @@ RSF
else
matter--
to_chat(user, "The RSF now holds [matter]/30 fabrication-units.")
-
desc = "A RSF. It currently holds [matter]/30 fabrication-units."
return
else if (istype(A, /turf/simulated/floor) && mode == 4)
if (istype(A, /turf/simulated/floor) && matter >= 1)
to_chat(user, "Dispensing Pen...")
-
playsound(src.loc, 'sound/machines/click.ogg', 10, 1)
new /obj/item/weapon/pen( A )
if (isrobot(user))
@@ -197,14 +174,12 @@ RSF
else
matter--
to_chat(user, "The RSF now holds [matter]/30 fabrication-units.")
-
desc = "A RSF. It currently holds [matter]/30 fabrication-units."
return
else if (istype(A, /obj/structure/table) && mode == 5)
if (istype(A, /obj/structure/table) && matter >= 1)
to_chat(user, "Dispensing Dice Pack...")
-
playsound(src.loc, 'sound/machines/click.ogg', 10, 1)
new /obj/item/weapon/storage/pill_bottle/dice( A.loc )
if (isrobot(user))
@@ -213,14 +188,12 @@ RSF
else
matter--
to_chat(user, "The RSF now holds [matter]/30 fabrication-units.")
-
desc = "A RSF. It currently holds [matter]/30 fabrication-units."
return
else if (istype(A, /turf/simulated/floor) && mode == 5)
if (istype(A, /turf/simulated/floor) && matter >= 1)
to_chat(user, "Dispensing Dice Pack...")
-
playsound(src.loc, 'sound/machines/click.ogg', 10, 1)
new /obj/item/weapon/storage/pill_bottle/dice( A )
if (isrobot(user))
@@ -229,14 +202,12 @@ RSF
else
matter--
to_chat(user, "The RSF now holds [matter]/30 fabrication-units.")
-
desc = "A RSF. It currently holds [matter]/30 fabrication-units."
return
else if (istype(A, /obj/structure/table) && mode == 6)
if (istype(A, /obj/structure/table) && matter >= 1)
to_chat(user, "Dispensing Cigarette...")
-
playsound(src.loc, 'sound/machines/click.ogg', 10, 1)
new /obj/item/clothing/mask/cigarette( A.loc )
if (isrobot(user))
@@ -245,14 +216,12 @@ RSF
else
matter--
to_chat(user, "The RSF now holds [matter]/30 fabrication-units.")
-
desc = "A RSF. It currently holds [matter]/30 fabrication-units."
return
else if (istype(A, /turf/simulated/floor) && mode == 6)
if (istype(A, /turf/simulated/floor) && matter >= 1)
to_chat(user, "Dispensing Cigarette...")
-
playsound(src.loc, 'sound/machines/click.ogg', 10, 1)
new /obj/item/clothing/mask/cigarette( A )
if (isrobot(user))
@@ -261,6 +230,5 @@ RSF
else
matter--
to_chat(user, "The RSF now holds [matter]/30 fabrication-units.")
-
desc = "A RSF. It currently holds [matter]/30 fabrication-units."
return
\ No newline at end of file
diff --git a/code/game/objects/items/weapons/alien_specific.dm b/code/game/objects/items/weapons/alien_specific.dm
index 310b1e309f4..e4f6bcd7a75 100644
--- a/code/game/objects/items/weapons/alien_specific.dm
+++ b/code/game/objects/items/weapons/alien_specific.dm
@@ -35,12 +35,10 @@
if(istype(A, /obj/structure/reagent_dispensers) && get_dist(src,A) <= 1)
if(!A.reagents.total_volume && A.reagents)
to_chat(user, "\The [A] is empty.")
-
return
if(reagents.total_volume >= reagents.maximum_volume)
to_chat(user, "\The [src] is full.")
-
return
reagents.remove_reagent(25,"water")
var/datum/effect/system/bad_smoke_spread/smoke = new /datum/effect/system/bad_smoke_spread()
diff --git a/code/game/objects/items/weapons/cards_ids.dm b/code/game/objects/items/weapons/cards_ids.dm
index 6872764d511..d30cc76b0a7 100644
--- a/code/game/objects/items/weapons/cards_ids.dm
+++ b/code/game/objects/items/weapons/cards_ids.dm
@@ -121,7 +121,6 @@
else
to_chat(user, "It is too far away.")
-
/obj/item/weapon/card/id/proc/show(mob/user as mob)
var/datum/asset/assets = get_asset_datum(/datum/asset/simple/paper)
assets.send(user)
@@ -143,7 +142,6 @@
"You flash your ID card: \icon[src] [src.name]. The assignment on the card: [src.assignment]")
if(mining_points)
to_chat(user, "There's [mining_points] mining equipment redemption points loaded onto this card.")
-
src.add_fingerprint(user)
return
@@ -193,7 +191,6 @@
if(istype(W, /obj/item/weapon/id_decal/))
var/obj/item/weapon/id_decal/decal = W
to_chat(user, "You apply [decal] to [src].")
-
if(decal.override_name)
name = decal.decal_name
desc = decal.decal_desc
@@ -208,11 +205,9 @@
dat+="
"
stamped = 1
to_chat(usr, "You stamp the ID card!")
-
else
to_chat(usr, "This ID has already been stamped!")
-
/obj/item/weapon/card/id/silver
name = "identification card"
desc = "A silver card which shows honour and dedication."
@@ -248,7 +243,6 @@
if(istype(user, /mob/living) && user.mind)
if(user.mind.special_role)
to_chat(usr, "The card's microscanners activate as you pass it over \the [I], copying its access.")
-
src.access |= I.access //Don't copy access if user isn't an antag -- to prevent metagaming
/obj/item/weapon/card/id/syndicate/proc/fake_id_photo(var/mob/living/carbon/human/H, var/side=0)//get_id_photo wouldn't work correctly
@@ -260,7 +254,6 @@
if(!side)
if(!H.equip_to_slot_if_possible(src, slot_l_store, 0, 1))
to_chat(H, "You need to empty your pockets before taking the ID picture.")
-
return
if(side)
@@ -281,20 +274,17 @@
var t = reject_bad_name(input(user, "What name would you like to use on this card?", "Agent Card name", ishuman(user) ? user.real_name : user.name))
if(!t)
to_chat(user, "Invalid name.")
-
return
src.registered_name = t
var u = sanitize(stripped_input(user, "What occupation would you like to put on this card?\nNote: This will not grant any access levels other than maintenance.", "Agent Card Job Assignment", "Agent", MAX_MESSAGE_LEN))
if(!u)
to_chat(user, "Invalid assignment.")
-
src.registered_name = ""
return
src.assignment = u
src.name = "[src.registered_name]'s ID Card ([src.assignment])"
to_chat(user, "You successfully forge the ID card.")
-
registered_user = user
else if(!registered_user || registered_user == user)
if(!registered_user)
@@ -313,7 +303,6 @@
UpdateName()
to_chat(user, "Name changed to [new_name].")
-
if("Photo")
if(!Adjacent(user))
return
@@ -324,7 +313,6 @@
if(photo && photoside)
to_chat(user, "Photo changed.")
-
if("Appearance")
var/list/appearances = list(
"data",
@@ -362,7 +350,6 @@
src.icon_state = choice
to_chat(usr, "Appearance changed to [choice].")
-
if("Sex")
var/new_sex = sanitize(stripped_input(user,"What sex would you like to put on this card?","Agent Card Sex", ishuman(user) ? capitalize(user.gender) : "Male", MAX_MESSAGE_LEN))
if(!Adjacent(user))
@@ -370,7 +357,6 @@
src.sex = new_sex
to_chat(user, "Sex changed to [new_sex].")
-
if("Age")
var/new_age = sanitize(stripped_input(user,"What age would you like to put on this card?","Agent Card Age","21", MAX_MESSAGE_LEN))
if(!Adjacent(user))
@@ -378,14 +364,12 @@
src.age = new_age
to_chat(user, "Age changed to [new_age].")
-
if("Occupation")
var/new_job = sanitize(stripped_input(user,"What job would you like to put on this card?\nChanging occupation will not grant or remove any access levels.","Agent Card Occupation", "Civilian", MAX_MESSAGE_LEN))
if(!Adjacent(user))
return
src.assignment = new_job
to_chat(user, "Occupation changed to [new_job].")
-
UpdateName()
if("Money Account")
@@ -395,7 +379,6 @@
associated_account_number = new_account
to_chat(user, "Linked money account changed to [new_account].")
-
if("Blood Type")
var/default = "\[UNSET\]"
if(ishuman(user))
@@ -409,7 +392,6 @@
src.blood_type = new_blood_type
to_chat(user, "Blood type changed to [new_blood_type].")
-
if("DNA Hash")
var/default = "\[UNSET\]"
if(ishuman(user))
@@ -423,7 +405,6 @@
src.dna_hash = new_dna_hash
to_chat(user, "DNA hash changed to [new_dna_hash].")
-
if("Fingerprint Hash")
var/default = "\[UNSET\]"
if(ishuman(user))
@@ -437,7 +418,6 @@
src.fingerprint_hash = new_fingerprint_hash
to_chat(user, "Fingerprint hash changed to [new_fingerprint_hash].")
-
if("Reset Card")
name = initial(name)
registered_name = initial(registered_name)
@@ -453,7 +433,6 @@
registered_user = null
to_chat(user, "All information has been deleted from \the [src].")
-
else
..()
@@ -519,7 +498,6 @@
/obj/item/weapon/card/id/prisoner/attack_self(mob/user as mob)
to_chat(usr, "You have accumulated [points] out of the [goal] points you need for freedom.")
-
/obj/item/weapon/card/id/prisoner/one
name = "Prisoner #13-001"
registered_name = "Prisoner #13-001"
diff --git a/code/game/objects/items/weapons/cash.dm b/code/game/objects/items/weapons/cash.dm
index a4bed3e7ba5..6a1d6c0c360 100644
--- a/code/game/objects/items/weapons/cash.dm
+++ b/code/game/objects/items/weapons/cash.dm
@@ -38,13 +38,10 @@ var/global/list/moneytypes=list(
/obj/item/weapon/spacecash/examine(mob/user)
if(amount>1)
to_chat(user, "\icon[src] This is a stack of [amount] [src]s.")
-
else
to_chat(user, "\icon[src] This is \a [src]s.")
-
to_chat(user, "It's worth [worth*amount] credits.")
-
/obj/item/weapon/spacecash/update_icon()
icon_state = "cash[worth]"
// Up to 100 items per stack.
@@ -71,7 +68,6 @@ var/global/list/moneytypes=list(
if(collected)
update_icon()
to_chat(user, "You add [collected] credit [amount > 1 ? "chips":"chip"] to your stack of cash.")
-
else if(istype(A,/obj/item/weapon/spacecash))
var/obj/item/weapon/spacecash/cash = A
var/collected = src.collect_from(cash)
@@ -80,7 +76,6 @@ var/global/list/moneytypes=list(
to_chat(user, "You add [collected] credit [amount > 1 ? "chips":"chip"] to your stack of cash.")
-
/obj/item/weapon/spacecash/proc/get_total()
return worth * amount
diff --git a/code/game/objects/items/weapons/caution.dm b/code/game/objects/items/weapons/caution.dm
index 46a4f0e61df..9c13ef43832 100644
--- a/code/game/objects/items/weapons/caution.dm
+++ b/code/game/objects/items/weapons/caution.dm
@@ -23,7 +23,6 @@
if(armed)
armed = 0
to_chat(user, "\blue You disarm \the [src].")
-
return
timing = !timing
if(timing)
@@ -33,7 +32,6 @@
timepassed = 0
to_chat(H, "\blue You [timing ? "activate \the [src]'s timer, you have 15 seconds." : "de-activate \the [src]'s timer."]")
-
process()
if(!timing)
processing_objects.Remove(src)
diff --git a/code/game/objects/items/weapons/chrono_eraser.dm b/code/game/objects/items/weapons/chrono_eraser.dm
index 0b943b4bc82..e0ac96c4feb 100644
--- a/code/game/objects/items/weapons/chrono_eraser.dm
+++ b/code/game/objects/items/weapons/chrono_eraser.dm
@@ -83,7 +83,6 @@
if(F.gun)
if(isliving(user) && F.captured)
to_chat(user, "FAIL: [F.captured] already has an existing connection.")
-
src.field_disconnect(F)
else
startpos = get_turf(src)
@@ -93,7 +92,6 @@
to_chat(user, "Connection established with target: [F.captured]")
-
/obj/item/weapon/gun/energy/chrono_gun/proc/field_disconnect(var/obj/effect/chrono_field/F)
if(F && field == F)
var/mob/living/user = src.loc
@@ -101,7 +99,6 @@
F.gun = null
if(isliving(user) && F.captured)
to_chat(user, "Disconnected from target: [F.captured]")
-
field = null
startpos = null
@@ -198,7 +195,6 @@
qdel(src)
else if(tickstokill <= 0)
to_chat(captured, "As the last essence of your being is erased from time, you begin to re-experience your most enjoyable memory. You feel happy...")
-
var/mob/dead/observer/ghost = captured.ghostize(1)
if(captured.mind)
if(ghost)
diff --git a/code/game/objects/items/weapons/cigs.dm b/code/game/objects/items/weapons/cigs.dm
index 85ed5cde403..25a50a5bfe1 100644
--- a/code/game/objects/items/weapons/cigs.dm
+++ b/code/game/objects/items/weapons/cigs.dm
@@ -103,16 +103,13 @@ LIGHTERS ARE IN LIGHTERS.DM
var/transfered = glass.reagents.trans_to(src, chem_volume)
if(transfered) //if reagents were transfered, show the message
to_chat(user, "You dip \the [src] into \the [glass].")
-
else //if not, either the beaker was empty, or the cigarette was full
if(!glass.reagents.total_volume)
to_chat(user, "[glass] is empty.")
-
else
to_chat(user, "[src] is full.")
-
/obj/item/clothing/mask/cigarette/proc/light(var/flavor_text = "[usr] lights the [name].")
if(!src.lit)
src.lit = 1
@@ -180,7 +177,6 @@ LIGHTERS ARE IN LIGHTERS.DM
reagents.trans_to(C, REAGENTS_METABOLISM)
if(!reagents.total_volume) // There were reagents, but now they're gone
to_chat(C, "Your [name] loses its flavor.")
-
else // else just remove some of the reagents
reagents.remove_any(REAGENTS_METABOLISM)
return
@@ -193,7 +189,6 @@ LIGHTERS ARE IN LIGHTERS.DM
if(ismob(loc))
var/mob/living/M = loc
to_chat(M, "Your [name] goes out.")
-
M.unEquip(src, 1) //Force the un-equip so the overlays update
processing_objects.Remove(src)
qdel(src)
@@ -309,7 +304,6 @@ LIGHTERS ARE IN LIGHTERS.DM
else
to_chat(user, "\The [src] straight out REFUSES to be lit by such uncivilized means.")
-
/////////////////
//SMOKING PIPES//
/////////////////
@@ -345,7 +339,6 @@ LIGHTERS ARE IN LIGHTERS.DM
if(ismob(loc))
var/mob/living/M = loc
to_chat(M, "Your [name] goes out, and you empty the ash.")
-
lit = 0
icon_state = icon_off
item_state = icon_off
@@ -365,7 +358,6 @@ LIGHTERS ARE IN LIGHTERS.DM
return
if(smoketime <= 0)
to_chat(user, "You refill the pipe with tobacco.")
-
reagents.add_reagent("nicotine", chem_volume)
smoketime = initial(smoketime)
return
@@ -376,7 +368,6 @@ LIGHTERS ARE IN LIGHTERS.DM
else
to_chat(user, "\The [src] straight out REFUSES to be lit by such means.")
-
/obj/item/clothing/mask/cigarette/pipe/cobpipe
name = "corn cob pipe"
desc = "A nicotine delivery system popularized by folksy backwoodsmen and kept popular in the modern age and beyond by space hipsters."
@@ -411,13 +402,11 @@ obj/item/weapon/rollingpaperpack/attack_self(mob/user)
var/obj/item/weapon/rollingpaper/P = new /obj/item/weapon/rollingpaper()
user.put_in_inactive_hand(P)
to_chat(user, "You take a paper out of the pack.")
-
papers --
else
var/obj/item/weapon/rollingpaper/P = new /obj/item/weapon/rollingpaper()
user.put_in_inactive_hand(P)
to_chat(user, "You take the last paper out of the pack, and throw the pack away.")
-
qdel(src)
/obj/item/weapon/rollingpaperpack/MouseDrop(atom/over_object)
@@ -440,4 +429,3 @@ obj/item/weapon/rollingpaperpack/attack_self(mob/user)
/obj/item/weapon/rollingpaperpack/examine(mob/user)
..(user)
to_chat(user, "There are [src.papers] left")
-
diff --git a/code/game/objects/items/weapons/clown_items.dm b/code/game/objects/items/weapons/clown_items.dm
index b268e0f7124..2038c4851aa 100644
--- a/code/game/objects/items/weapons/clown_items.dm
+++ b/code/game/objects/items/weapons/clown_items.dm
@@ -39,18 +39,15 @@
//So this is a workaround. This also makes more sense from an IC standpoint. ~Carn
if(user.client && (target in user.client.screen))
to_chat(user, "You need to take that [target.name] off before cleaning it.")
-
else if(istype(target,/obj/effect/decal/cleanable))
user.visible_message("[user] begins to scrub \the [target.name] out with [src].")
if(do_after(user, src.cleanspeed, target = target) && target)
to_chat(user, "You scrub \the [target.name] out.")
-
qdel(target)
else
user.visible_message("[user] begins to clean \the [target.name] with [src].")
if(do_after(user, src.cleanspeed, target = target))
to_chat(user, "You clean \the [target.name].")
-
var/obj/effect/decal/cleanable/C = locate() in target
qdel(C)
target.clean_blood()
diff --git a/code/game/objects/items/weapons/cosmetics.dm b/code/game/objects/items/weapons/cosmetics.dm
index 61acf83ea56..208b93c0c53 100644
--- a/code/game/objects/items/weapons/cosmetics.dm
+++ b/code/game/objects/items/weapons/cosmetics.dm
@@ -43,7 +43,6 @@
/obj/item/weapon/lipstick/attack_self(mob/user as mob)
overlays.Cut()
to_chat(user, "You twist \the [src] [open ? "closed" : "open"].")
-
open = !open
if(open)
var/image/colored = image("icon"='icons/obj/items.dmi', "icon_state"="lipstick_uncap_color")
@@ -62,7 +61,6 @@
var/mob/living/carbon/human/H = M
if(H.lip_style) //if they already have lipstick on
to_chat(user, "You need to wipe off the old lipstick first!")
-
return
if(H == user)
user.visible_message("[user] does their lips with \the [src].", \
@@ -82,7 +80,6 @@
else
to_chat(user, "Where are the lips on that?")
-
/obj/item/weapon/razor
name = "electric razor"
desc = "The latest and greatest power razor born from the science of shaving."
@@ -97,16 +94,13 @@
if(user.zone_sel.selecting == "mouth")
if(!get_location_accessible(H, "mouth"))
to_chat(user, "The mask is in the way.")
-
return
if(H.species && H.species.flags & ALL_RPARTS) //If the target is of a species that can have prosthetic heads, but doesn't have one...
if(!H.client.prefs.rlimb_data["head"])
to_chat(user, "You find yourself disappointed at the appalling lack of facial hair.")
-
return
if(H.f_style == "Shaved")
to_chat(user, "Already clean-shaven.")
-
return
if(H == user) //shaving yourself
user.visible_message("[user] starts to shave their facial hair with \the [src].", \
@@ -132,16 +126,13 @@
if(user.zone_sel.selecting == "head")
if(!get_location_accessible(H, "head"))
to_chat(user, "The headgear is in the way.")
-
return
if(H.species && H.species.flags & ALL_RPARTS) //If the target is of a species that can have prosthetic heads, but doesn't have one...
if(!H.client.prefs.rlimb_data["head"])
to_chat(user, "You find yourself disappointed at the appalling lack of hair.")
-
return
if(H.h_style == "Bald" || H.h_style == "Balding Hair" || H.h_style == "Skinhead")
to_chat(user, "There is not enough hair left to shave...")
-
return
if(H == user) //shaving yourself
user.visible_message("[user] starts to shave their head with \the [src].", \
diff --git a/code/game/objects/items/weapons/defib.dm b/code/game/objects/items/weapons/defib.dm
index d5fc69da9db..73eda279b3d 100644
--- a/code/game/objects/items/weapons/defib.dm
+++ b/code/game/objects/items/weapons/defib.dm
@@ -78,7 +78,6 @@
toggle_paddles()
else
to_chat(usr, "Put the defibrillator on your back first!")
-
return
/obj/item/weapon/defibrillator/attackby(obj/item/weapon/W, mob/user, params)
@@ -86,18 +85,15 @@
var/obj/item/weapon/stock_parts/cell/C = W
if(bcell)
to_chat(user, "[src] already has a cell.")
-
else
if(C.maxcharge < paddles.revivecost)
to_chat(user, "[src] requires a higher capacity cell.")
-
return
user.drop_item()
W.loc = src
bcell = W
to_chat(user, "You install a cell in [src].")
-
if(istype(W, /obj/item/weapon/screwdriver))
if(bcell)
bcell.updateicon()
@@ -105,7 +101,6 @@
bcell = null
to_chat(user, "You remove the cell from the [src].")
-
update_icon()
return
@@ -113,12 +108,10 @@
if(safety)
safety = 0
to_chat(user, "You silently disable [src]'s safety protocols with the card.")
-
else
safety = 1
to_chat(user, "You silently enable [src]'s safety protocols with the card.")
-
/obj/item/weapon/defibrillator/emp_act(severity)
if(bcell)
deductcharge(1000 / severity)
@@ -146,7 +139,6 @@
if(!usr.put_in_hands(paddles))
on = 0
to_chat(user, "You need a free hand to hold the paddles!")
-
update_icon()
return
paddles.loc = user
@@ -223,7 +215,6 @@
toggle_paddles()
else
to_chat(usr, "Strap the defibrillator's belt on first!")
-
return
/obj/item/weapon/defibrillator/compact/loaded/New()
@@ -297,7 +288,6 @@
if(istype(O))
O.unwield()
to_chat(user, "The paddles snap back into the main unit.")
-
defib.on = 0
loc = defib
defib.update_icon()
@@ -324,15 +314,12 @@
return
if(!wielded)
to_chat(user, "You need to wield the paddles in both hands before you can use them on someone!")
-
return
if(cooldown)
to_chat(user, "[defib] is recharging.")
-
return
if(!ishuman(M))
to_chat(user, "The instructions on [defib] don't mention how to revive that...")
-
return
else
if(user.a_intent == I_HARM && !defib.safety)
@@ -414,9 +401,7 @@
else if(ghost)
user.visible_message("[defib] buzzes: Resuscitation failed: Patient's brain is unresponsive. Further attempts may succeed.")
to_chat(ghost, "Your heart is being defibrillated. Return to your body if you want to be revived! (Verbs -> Ghost -> Re-enter corpse)")
-
to_chat(ghost, sound('sound/effects/genetics.ogg'))
-
else
user.visible_message("[defib] buzzes: Resuscitation failed.")
playsound(get_turf(src), 'sound/machines/defib_failed.ogg', 50, 0)
@@ -431,7 +416,6 @@
update_icon()
else
to_chat(user, "You need to target your patient's chest with [src].")
-
return
/obj/item/weapon/borg_defib
@@ -457,10 +441,8 @@
return
if(cooldown)
to_chat(user, "[src] is recharging.")
-
if(!ishuman(M))
to_chat(user, "This unit is only designed to work on humanoid lifeforms.")
-
return
else
if(user.a_intent == I_HARM && !safety)
@@ -538,9 +520,7 @@
else if(ghost)
user.visible_message("[user] buzzes: Resuscitation failed: Patient's brain is unresponsive. Further attempts may succeed.")
to_chat(ghost, "Your heart is being defibrillated. Return to your body if you want to be revived! (Verbs -> Ghost -> Re-enter corpse)")
-
to_chat(ghost, sound('sound/effects/genetics.ogg'))
-
else
user.visible_message("[user] buzzes: Resuscitation failed.")
playsound(get_turf(src), 'sound/machines/defib_failed.ogg', 50, 0)
@@ -559,5 +539,4 @@
update_icon()
else
to_chat(user, "You need to target your patient's chest with [src].")
-
return
\ No newline at end of file
diff --git a/code/game/objects/items/weapons/dice.dm b/code/game/objects/items/weapons/dice.dm
index 89c1d336ac9..bea51ec4452 100644
--- a/code/game/objects/items/weapons/dice.dm
+++ b/code/game/objects/items/weapons/dice.dm
@@ -81,7 +81,6 @@
/obj/item/weapon/dice/d4/Crossed(var/mob/living/carbon/human/H)
if(istype(H) && !H.shoes)
to_chat(H, "You step on the D4!")
-
H.apply_damage(4,BRUTE,(pick("l_leg", "r_leg")))
H.Weaken(3)
*///ew.
diff --git a/code/game/objects/items/weapons/dnascrambler.dm b/code/game/objects/items/weapons/dnascrambler.dm
index 8158f1c54aa..47bea6ca58d 100644
--- a/code/game/objects/items/weapons/dnascrambler.dm
+++ b/code/game/objects/items/weapons/dnascrambler.dm
@@ -33,7 +33,6 @@
else
to_chat(user, "\red You failed to inject [M.name].")
-
proc/injected(var/mob/living/carbon/target, var/mob/living/carbon/user)
scramble(1, target, 100)
target.generate_name()
diff --git a/code/game/objects/items/weapons/explosives.dm b/code/game/objects/items/weapons/explosives.dm
index 4169e9a283c..afff3a01fd3 100644
--- a/code/game/objects/items/weapons/explosives.dm
+++ b/code/game/objects/items/weapons/explosives.dm
@@ -26,7 +26,6 @@
/obj/item/weapon/c4/suicide_act(var/mob/user)
. = (BRUTELOSS)
to_chat(viewers(user), "[user] activates the C4 and holds it above his head! It looks like \he's going out with a bang!")
-
var/message_say = "FOR NO RAISIN!"
if(user.mind)
if(user.mind.special_role)
@@ -57,7 +56,6 @@
if(istype(I, /obj/item/weapon/screwdriver))
open_panel = !open_panel
to_chat(user, "You [open_panel ? "open" : "close"] the wire panel.")
-
else if(istype(I, /obj/item/weapon/wirecutters) || istype(I, /obj/item/device/multitool) || istype(I, /obj/item/device/assembly/signaler ))
wires.Interact(user)
else
@@ -75,7 +73,6 @@
to_chat(user, "Timer set for [timer] seconds.")
-
/obj/item/weapon/c4/afterattack(atom/target as obj|turf, mob/user as mob, flag)
if (!flag)
return
@@ -83,7 +80,6 @@
return
to_chat(user, "Planting explosives...")
-
if(do_after(user, 50, target = target) && in_range(user, target))
user.drop_item()
src.target = target
@@ -101,7 +97,6 @@
target.overlays += image('icons/obj/assemblies.dmi', "plastic-explosive2")
to_chat(user, "Bomb has been planted. Timer counting down from [timer].")
-
spawn(timer*10)
explode(get_turf(target))
diff --git a/code/game/objects/items/weapons/extinguisher.dm b/code/game/objects/items/weapons/extinguisher.dm
index ed6032c55d8..0cd8f88dd99 100644
--- a/code/game/objects/items/weapons/extinguisher.dm
+++ b/code/game/objects/items/weapons/extinguisher.dm
@@ -38,13 +38,11 @@
/obj/item/weapon/extinguisher/examine(mob/user)
if(..(user, 0))
to_chat(usr, "\icon[src] [src.name] contains:")
-
if(reagents && reagents.reagent_list.len)
for(var/datum/reagent/R in reagents.reagent_list)
to_chat(user, "\blue [R.volume] units of [R.name]")
-
/obj/item/weapon/extinguisher/New()
create_reagents(max_water)
reagents.add_reagent("water", max_water)
@@ -54,7 +52,6 @@
src.icon_state = "[sprite_name][!safety]"
src.desc = "The safety is [safety ? "on" : "off"]."
to_chat(user, "The safety is [safety ? "on" : "off"].")
-
return
/obj/item/weapon/extinguisher/proc/AttemptRefill(atom/target, mob/user)
@@ -63,20 +60,17 @@
safety = 1
if(reagents.total_volume == reagents.maximum_volume)
to_chat(user, "\The [src] is already full!")
-
safety = safety_save
return 1
var/obj/structure/reagent_dispensers/watertank/W = target
var/transferred = W.reagents.trans_to(src, max_water)
if(transferred > 0)
to_chat(user, "\The [src] has been refilled by [transferred] units")
-
playsound(src.loc, 'sound/effects/refill.ogg', 50, 1, -6)
for(var/datum/reagent/water/R in reagents.reagent_list)
R.cooling_temperature = cooling_power
else
to_chat(user, "\The [W] is empty!")
-
safety = safety_save
return 1
else
@@ -92,7 +86,6 @@
if (!safety)
if (src.reagents.total_volume < 1)
to_chat(usr, "\The [src] is empty.")
-
return
if (world.time < src.last_use + 20)
diff --git a/code/game/objects/items/weapons/fireworks.dm b/code/game/objects/items/weapons/fireworks.dm
index b0d15af37e7..389eb1738d6 100644
--- a/code/game/objects/items/weapons/fireworks.dm
+++ b/code/game/objects/items/weapons/fireworks.dm
@@ -10,7 +10,6 @@ obj/item/weapon/firework/attackby(obj/item/weapon/W,mob/user, params)
if (istype(W, /obj/item/weapon/weldingtool) && W:welding || istype(W,/obj/item/weapon/lighter) && W:lit)
for(var/mob/M in viewers(user))
to_chat(M, "[user] lits \the [src]")
-
litzor = 1
icon_state = "rocket_1"
S = new()
@@ -33,7 +32,6 @@ obj/item/weapon/sparkler/attackby(obj/item/weapon/W,mob/user, params)
if (istype(W, /obj/item/weapon/weldingtool) && W:welding || istype(W,/obj/item/weapon/lighter) && W:lit)
for(var/mob/M in viewers(user))
to_chat(M, "[user] lits \the [src]")
-
litzor = 1
icon_state = "sparkler_1"
var/b = rand(5,9)
diff --git a/code/game/objects/items/weapons/flamethrower.dm b/code/game/objects/items/weapons/flamethrower.dm
index c5ba5c80a86..75c1b030ed4 100644
--- a/code/game/objects/items/weapons/flamethrower.dm
+++ b/code/game/objects/items/weapons/flamethrower.dm
@@ -94,7 +94,6 @@
if(isscrewdriver(W) && igniter && !lit)
status = !status
to_chat(user, "[igniter] is now [status ? "secured" : "unsecured"]!")
-
update_icon()
return
@@ -111,7 +110,6 @@
if(istype(W,/obj/item/weapon/tank/plasma))
if(ptank)
to_chat(user, "There appears to already be a plasma tank loaded in [src]!")
-
return
user.drop_item()
ptank = W
@@ -130,7 +128,6 @@
user.set_machine(src)
if(!ptank)
to_chat(user, "Attach a plasma tank first!")
-
return
var/dat = text("Flamethrower ([lit ? "Lit" : "Unlit"])
\n Tank Pressure: [ptank.air_contents.return_pressure()]
\nAmount to throw: - - - [throw_amount] + + +
\nRemove plasmatank - Close")
user << browse(dat, "window=flamethrower;size=600x300")
diff --git a/code/game/objects/items/weapons/garrote.dm b/code/game/objects/items/weapons/garrote.dm
index 3783dba12c7..e6b0ff92c32 100644
--- a/code/game/objects/items/weapons/garrote.dm
+++ b/code/game/objects/items/weapons/garrote.dm
@@ -56,12 +56,10 @@
if(!wielded)
to_chat(user, "You must use both hands to garrote [M]!")
-
return
if(!istype(M, /mob/living/carbon/human))
to_chat(user, "You don't think that garroting [M] would be very effective...")
-
return
if(M == U)
@@ -70,16 +68,13 @@
if(M.dir != U.dir)
to_chat(user, "You cannot use [src] on [M] from that angle!")
-
return
if(improvised && ((M.head && (M.head.flags & HEADCOVERSMOUTH)) || (M.wear_mask && (M.wear_mask.flags & MASKCOVERSMOUTH)))) // Improvised garrotes are blocked by mouth-covering items.
to_chat(user, "[M]'s neck is blocked by something they're wearing!")
-
if(strangling)
to_chat(user, "You cannot use [src] on two people at once!")
-
return
unwield(U)
diff --git a/code/game/objects/items/weapons/gift_wrappaper.dm b/code/game/objects/items/weapons/gift_wrappaper.dm
index 0792d008746..00433885ad5 100644
--- a/code/game/objects/items/weapons/gift_wrappaper.dm
+++ b/code/game/objects/items/weapons/gift_wrappaper.dm
@@ -31,7 +31,6 @@
src.gift.add_fingerprint(user)
else
to_chat(user, "\blue The gift was empty!")
-
qdel(src)
return
@@ -44,18 +43,15 @@
return
to_chat(user, "\blue You cant move.")
-
/obj/effect/spresent/attackby(obj/item/weapon/W as obj, mob/user as mob, params)
..()
if (!istype(W, /obj/item/weapon/wirecutters))
to_chat(user, "\blue I need wirecutters for that.")
-
return
to_chat(user, "\blue You cut open the present.")
-
for(var/mob/M in src) //Should only be one but whatever.
M.loc = src.loc
if (M.client)
@@ -146,4 +142,3 @@
/obj/item/stack/wrapping_paper/attack_self(mob/user)
to_chat(user, "You need to use it on a package that has already been wrapped!")
-
diff --git a/code/game/objects/items/weapons/grenades/bananade.dm b/code/game/objects/items/weapons/grenades/bananade.dm
index c21f507e0a5..12e2e111d21 100644
--- a/code/game/objects/items/weapons/grenades/bananade.dm
+++ b/code/game/objects/items/weapons/grenades/bananade.dm
@@ -41,12 +41,10 @@ var/turf/T
if(istype(I, /obj/item/weapon/bananapeel))
if(fillamt < 9)
to_chat(usr, "You add another banana peel to the assembly.")
-
fillamt += 1
qdel(I)
else
to_chat(usr, "The bananade is full, screwdriver it shut to lock it down.")
-
if(istype(I, /obj/item/weapon/screwdriver))
if(fillamt)
var/obj/item/weapon/grenade/bananade/G = new /obj/item/weapon/grenade/bananade
@@ -54,11 +52,8 @@ var/turf/T
user.put_in_hands(G)
G.deliveryamt = src.fillamt
to_chat(user, "You lock the assembly shut, readying it for HONK.")
-
qdel(src)
else
to_chat(usr, "You need to add banana peels before you can ready the grenade!.")
-
else
to_chat(usr, "Only banana peels fit in this assembly, up to 9.")
-
diff --git a/code/game/objects/items/weapons/grenades/chem_grenade.dm b/code/game/objects/items/weapons/grenades/chem_grenade.dm
index d08e1c7ab00..149cc03a866 100644
--- a/code/game/objects/items/weapons/grenades/chem_grenade.dm
+++ b/code/game/objects/items/weapons/grenades/chem_grenade.dm
@@ -94,7 +94,6 @@
log_game("[key_name(usr)] has primed a [name] for detonation at [A.name] ([bombturf.x],[bombturf.y],[bombturf.z])")
bombers += "[key_name(usr)] has primed a [name] for detonation at [A.name] ([bombturf.x],[bombturf.y],[bombturf.z])"
to_chat(user, "You prime the [name]! [det_time / 10] second\s!")
-
active = 1
update_icon()
if(iscarbon(user))
@@ -115,13 +114,11 @@
label = null
update_icon()
to_chat(user, "You remove the label from [src].")
-
return 1
if(istype(I, /obj/item/weapon/screwdriver))
if(stage == WIRED)
if(beakers.len)
to_chat(user, "You lock the assembly.")
-
playsound(loc, 'sound/items/Screwdriver.ogg', 25, -3)
stage = READY
update_icon()
@@ -144,31 +141,25 @@
log_game("[key_name(usr)] has completed [name] at [bombturf.x], [bombturf.y], [bombturf.z].")
else
to_chat(user, "You need to add at least one beaker before locking the assembly.")
-
else if(stage == READY && !nadeassembly)
det_time = det_time == 50 ? 30 : 50 //toggle between 30 and 50
to_chat(user, "You modify the time delay. It's set for [det_time / 10] second\s.")
-
else if(stage == EMPTY)
to_chat(user, "You need to add an activation mechanism.")
-
else if(stage == WIRED && is_type_in_list(I, allowed_containers))
if(beakers.len == 2)
to_chat(user, "[src] can not hold more containers.")
-
return
else
if(I.reagents.total_volume)
to_chat(user, "You add [I] to the assembly.")
-
user.drop_item()
I.loc = src
beakers += I
else
to_chat(user, "[I] is empty.")
-
else if(stage == EMPTY && istype(I, /obj/item/device/assembly_holder))
var/obj/item/device/assembly_holder/A = I
if(!A.secured)
@@ -183,7 +174,6 @@
assemblyattacher = user.ckey
stage = WIRED
to_chat(user, "You add [A] to [src]!")
-
update_icon()
else if(stage == EMPTY && istype(I, /obj/item/stack/cable_coil))
@@ -192,18 +182,15 @@
stage = WIRED
to_chat(user, "You rig [src].")
-
update_icon()
else if(stage == READY && istype(I, /obj/item/weapon/wirecutters))
to_chat(user, "You unlock the assembly.")
-
stage = WIRED
update_icon()
else if(stage == WIRED && istype(I, /obj/item/weapon/wrench))
to_chat(user, "You open the grenade and remove the contents.")
-
stage = EMPTY
payload_name = null
label = null
@@ -396,7 +383,6 @@
/obj/item/weapon/grenade/chem_grenade/large/attackby(obj/item/I, mob/user, params)
if(istype(I, /obj/item/slime_extract) && stage == WIRED)
to_chat(user, "You add [I] to the assembly.")
-
user.drop_item()
I.loc = src
beakers += I
diff --git a/code/game/objects/items/weapons/grenades/clowngrenade.dm b/code/game/objects/items/weapons/grenades/clowngrenade.dm
index 40ab22742d6..705b6a57095 100644
--- a/code/game/objects/items/weapons/grenades/clowngrenade.dm
+++ b/code/game/objects/items/weapons/grenades/clowngrenade.dm
@@ -70,7 +70,6 @@
return
else
to_chat(M, "\red Your feet feel like they're on fire!")
-
M.take_overall_damage(0, max(0, (burned - 2)))
if(!istype(M, /mob/living/carbon/slime) && !isrobot(M))
diff --git a/code/game/objects/items/weapons/grenades/flashbang.dm b/code/game/objects/items/weapons/grenades/flashbang.dm
index e66a8977f2e..90ccef1d163 100644
--- a/code/game/objects/items/weapons/grenades/flashbang.dm
+++ b/code/game/objects/items/weapons/grenades/flashbang.dm
@@ -30,7 +30,6 @@
if(M.weakeyes)
M.visible_message("[M] screams and collapses!")
to_chat(M, "AAAAGH!")
-
M.Weaken(15) //hella stunned
M.Stun(15)
if(ishuman(M))
@@ -56,12 +55,9 @@
M.ear_deaf = max(M.ear_deaf,15)
if (M.ear_damage >= 15)
to_chat(M, "Your ears start to ring badly!")
-
if(prob(M.ear_damage - 10 + 5))
to_chat(M, "You can't hear anything!")
-
M.disabilities |= DEAF
else
if (M.ear_damage >= 5)
to_chat(M, "Your ears start to ring!")
-
diff --git a/code/game/objects/items/weapons/grenades/ghettobomb.dm b/code/game/objects/items/weapons/grenades/ghettobomb.dm
index 56077622a63..1a6959e8944 100644
--- a/code/game/objects/items/weapons/grenades/ghettobomb.dm
+++ b/code/game/objects/items/weapons/grenades/ghettobomb.dm
@@ -39,13 +39,11 @@
if( istype(target, /obj/structure/reagent_dispensers/fueltank))
if(target.reagents.total_volume < 50)
to_chat(user, "There's not enough fuel left to work with.")
-
return
var/obj/structure/reagent_dispensers/fueltank/F = target
F.reagents.remove_reagent("fuel", 50, 1)//Deleting 50 fuel from the welding fuel tank,
assembled = 1
to_chat(user, "You've filled the makeshift explosive with welding fuel.")
-
playsound(src.loc, 'sound/effects/refill.ogg', 50, 1, -6)
desc = "An improvised explosive assembly. Filled to the brim with 'Explosive flavor'"
overlays += image('icons/obj/grenade.dmi', icon_state = "improvised_grenade_filled")
@@ -59,7 +57,6 @@
C.use(1)
assembled = 2
to_chat(user, "You wire the igniter to detonate the fuel.")
-
desc = "A weak, improvised explosive."
overlays += image('icons/obj/grenade.dmi', icon_state = "improvised_grenade_wired")
name = "improvised explosive"
@@ -106,7 +103,6 @@
if(!active)
if(clown_check(user))
to_chat(user, "You light the [name]!")
-
active = 1
overlays -= image('icons/obj/grenade.dmi', icon_state = "improvised_grenade_filled")
icon_state = initial(icon_state) + "_active"
@@ -130,4 +126,3 @@
/obj/item/weapon/grenade/iedcasing/examine(mob/user)
..(user)
to_chat(user, "You can't tell when it will explode!")
-
diff --git a/code/game/objects/items/weapons/grenades/grenade.dm b/code/game/objects/items/weapons/grenades/grenade.dm
index 267d4fe6e05..33b0fc411bb 100644
--- a/code/game/objects/items/weapons/grenades/grenade.dm
+++ b/code/game/objects/items/weapons/grenades/grenade.dm
@@ -16,7 +16,6 @@
/obj/item/weapon/grenade/proc/clown_check(var/mob/living/user)
if((CLUMSY in user.mutations) && prob(50))
to_chat(user, "Huh? How does this thing work?")
-
active = 1
icon_state = initial(icon_state) + "_active"
playsound(loc, 'sound/weapons/armbomb.ogg', 75, 1, -3)
@@ -33,7 +32,6 @@
if (istype(target, /obj/item/weapon/gun/grenadelauncher)) return ..()
if((user.get_active_hand() == src) && (!active) && (clown_check(user)) && target.loc != src.loc)
to_chat(user, "You prime the [name]! [det_time/10] seconds!")
-
active = 1
icon_state = initial(icon_state) + "_active"
playsound(loc, 'sound/weapons/armbomb.ogg', 75, 1, -3)
@@ -52,16 +50,13 @@
if(display_timer)
if(det_time > 1)
to_chat(user, "The timer is set to [det_time/10] second\s.")
-
else
to_chat(user, "\The [src] is set for instant detonation.")
-
/obj/item/weapon/grenade/attack_self(mob/user as mob)
if(!active)
if(clown_check(user))
to_chat(user, "You prime the [name]! [det_time/10] seconds!")
-
active = 1
icon_state = initial(icon_state) + "_active"
add_fingerprint(user)
@@ -91,19 +86,15 @@
if ("1")
det_time = 10
to_chat(user, "You set the [name] for 1 second detonation time.")
-
if ("10")
det_time = 30
to_chat(user, "You set the [name] for 3 second detonation time.")
-
if ("30")
det_time = 50
to_chat(user, "You set the [name] for 5 second detonation time.")
-
if ("50")
det_time = 1
to_chat(user, "You set the [name] for instant detonation.")
-
add_fingerprint(user)
..()
diff --git a/code/game/objects/items/weapons/handcuffs.dm b/code/game/objects/items/weapons/handcuffs.dm
index a3b04053120..b111501820f 100644
--- a/code/game/objects/items/weapons/handcuffs.dm
+++ b/code/game/objects/items/weapons/handcuffs.dm
@@ -22,7 +22,6 @@
if(CLUMSY in user.mutations && prob(50))
to_chat(user, "Uh... how do those things work?!")
-
apply_cuffs(user,user)
if(!C.handcuffed)
@@ -33,7 +32,6 @@
if(do_mob(user, C, 30))
apply_cuffs(C,user)
to_chat(user, "You handcuff [C].")
-
if(istype(src, /obj/item/weapon/restraints/handcuffs/cable))
feedback_add_details("handcuffs","C")
else
@@ -43,7 +41,6 @@
else
to_chat(user, "You fail to handcuff [C].")
-
/obj/item/weapon/restraints/handcuffs/proc/apply_cuffs(mob/living/carbon/target, mob/user)
if(!target.handcuffed)
user.drop_item()
@@ -103,11 +100,9 @@
user.unEquip(src)
user.put_in_hands(W)
to_chat(user, "You wrap the cable restraint around the top of the rod.")
-
qdel(src)
else
to_chat(user, "You need one rod to make a wired rod.")
-
return
/obj/item/weapon/restraints/handcuffs/cable/zipties
@@ -128,12 +123,10 @@
C.handcuffed = new /obj/item/weapon/restraints/handcuffs/cable/zipties/used(C)
C.update_inv_handcuffed(1)
to_chat(user, "You handcuff [C].")
-
add_logs(C, user, "ziptie-cuffed")
else
to_chat(user, "You fail to handcuff [C].")
-
/obj/item/weapon/restraints/handcuffs/cable/zipties/used
desc = "A pair of broken zipties."
icon_state = "cuff_white_used"
@@ -182,18 +175,15 @@
icon_state = "beartrap[armed]"
to_chat(user, "[src] is now [armed ? "armed" : "disarmed"]")
-
/obj/item/weapon/restraints/legcuffs/beartrap/attackby(var/obj/item/I, mob/user as mob) //Let's get explosive.
if(istype(I, /obj/item/weapon/grenade/iedcasing))
if(IED)
to_chat(user, "This beartrap already has an IED hooked up to it!")
-
return
IED = I
switch(IED.assembled)
if(0,1) //if it's not fueled/hooked up
to_chat(user, "You haven't prepared this IED yet!")
-
IED = null
return
if(2,3)
@@ -202,11 +192,9 @@
message_admins("[key_name_admin(user)] has rigged a beartrap with an IED.")
log_game("[key_name(user)] has rigged a beartrap with an IED.")
to_chat(user, "You sneak the [IED] underneath the pressure plate and connect the trigger wire.")
-
desc = "A trap used to catch bears and other legged creatures. There is an IED hooked up to it."
else
to_chat(user, "You shouldn't be reading this message! Contact a coder or someone, something broke!")
-
IED = null
return
if(istype(I, /obj/item/weapon/screwdriver))
@@ -214,7 +202,6 @@
IED.forceMove(get_turf(src))
IED = null
to_chat(user, "You remove the IED from the [src].")
-
return
..()
diff --git a/code/game/objects/items/weapons/holosign.dm b/code/game/objects/items/weapons/holosign.dm
index a76a80b1b62..5912a055a34 100644
--- a/code/game/objects/items/weapons/holosign.dm
+++ b/code/game/objects/items/weapons/holosign.dm
@@ -19,7 +19,6 @@
var/obj/effect/overlay/holograph/H = locate() in T
if(H)
to_chat(user, "You use [src] to destroy [H].")
-
signs -= H
qdel(H)
else
@@ -27,11 +26,9 @@
H = new(get_turf(target))
signs += H
to_chat(user, "You create \a [H] with [src].")
-
else
to_chat(user, "[src] is projecting at max capacity!")
-
/obj/item/weapon/holosign_creator/attack(mob/living/carbon/human/M, mob/user)
return
@@ -43,7 +40,6 @@
signs -= sign
to_chat(user, "You clear all active holograms.")
-
/obj/effect/overlay/holograph
name = "wet floor sign"
desc = "The words flicker as if they mean nothing."
diff --git a/code/game/objects/items/weapons/implants/implant_chem.dm b/code/game/objects/items/weapons/implants/implant_chem.dm
index 920cf1bd6e4..33025b0a41f 100644
--- a/code/game/objects/items/weapons/implants/implant_chem.dm
+++ b/code/game/objects/items/weapons/implants/implant_chem.dm
@@ -47,10 +47,8 @@
injectamount = cause
reagents.trans_to(R, injectamount)
to_chat(R, "You hear a faint beep.")
-
if(!reagents.total_volume)
to_chat(R, "You hear a faint click from your chest.")
-
qdel(src)
diff --git a/code/game/objects/items/weapons/implants/implant_explosive.dm b/code/game/objects/items/weapons/implants/implant_explosive.dm
index 4a05f2a784b..c7e0fa67ef1 100644
--- a/code/game/objects/items/weapons/implants/implant_explosive.dm
+++ b/code/game/objects/items/weapons/implants/implant_explosive.dm
@@ -32,7 +32,6 @@
medium = round(medium)
weak = round(weak)
to_chat(imp_in, "You activate your microbomb implant.")
-
//If the delay is short, just blow up already jeez
if(delay <= 7)
explosion(src,heavy,medium,weak,weak, flame_range = weak)
@@ -87,7 +86,6 @@
if(cause == "action_button" && alert(imp_in, "Are you sure you want to activate your macrobomb implant? This will cause you to explode and gib!", "Macrobomb Implant Confirmation", "Yes", "No") != "Yes")
return 0
to_chat(imp_in, "You activate your macrobomb implant.")
-
timed_explosion()
/obj/item/weapon/implant/explosive/macro/implant(mob/source)
diff --git a/code/game/objects/items/weapons/implants/implant_freedom.dm b/code/game/objects/items/weapons/implants/implant_freedom.dm
index 17ef3d53997..f94772787e2 100644
--- a/code/game/objects/items/weapons/implants/implant_freedom.dm
+++ b/code/game/objects/items/weapons/implants/implant_freedom.dm
@@ -11,7 +11,6 @@
if(uses == 0) return 0
if(uses != -1) uses--
to_chat(imp_in, "You feel a faint click.")
-
if(iscarbon(imp_in))
var/mob/living/carbon/C_imp_in = imp_in
C_imp_in.uncuff()
diff --git a/code/game/objects/items/weapons/implants/implant_loyality.dm b/code/game/objects/items/weapons/implants/implant_loyality.dm
index 84cdb16f379..0c4b5c44648 100644
--- a/code/game/objects/items/weapons/implants/implant_loyality.dm
+++ b/code/game/objects/items/weapons/implants/implant_loyality.dm
@@ -28,10 +28,8 @@
ticker.mode.remove_revolutionary(target.mind)
if(target.mind in ticker.mode.cult)
to_chat(target, "You feel the corporate tendrils of Nanotrasen try to invade your mind!")
-
else
to_chat(target, "You feel a surge of loyalty towards Nanotrasen.")
-
return 1
return 0
@@ -39,7 +37,6 @@
if(..())
if(target.stat != DEAD && !silent)
to_chat(target, "You feel a sense of liberation as Nanotrasen's grip on your mind fades away.")
-
return 1
return 0
diff --git a/code/game/objects/items/weapons/implants/implant_misc.dm b/code/game/objects/items/weapons/implants/implant_misc.dm
index 24373783827..ae369138ebd 100644
--- a/code/game/objects/items/weapons/implants/implant_misc.dm
+++ b/code/game/objects/items/weapons/implants/implant_misc.dm
@@ -36,7 +36,6 @@
if(uses < 1) return 0
uses--
to_chat(imp_in, "You feel a sudden surge of energy!")
-
imp_in.SetStunned(0)
imp_in.SetWeakened(0)
imp_in.SetParalysis(0)
diff --git a/code/game/objects/items/weapons/implants/implant_traitor.dm b/code/game/objects/items/weapons/implants/implant_traitor.dm
index 464ae5f74d5..547206da29c 100644
--- a/code/game/objects/items/weapons/implants/implant_traitor.dm
+++ b/code/game/objects/items/weapons/implants/implant_traitor.dm
@@ -32,7 +32,6 @@
return 0
if(M == user)
to_chat(user, "Making yourself loyal to yourself was a great idea! Perhaps even the best idea ever! Actually, you just feel like an idiot.")
-
if(isliving(user))
var/mob/living/L = user
L.adjustBrainLoss(20)
@@ -46,7 +45,6 @@
return -1
H.implanting = 1
to_chat(H, "You feel completely loyal to [user.name].")
-
if(!(user.mind in ticker.mode:implanter))
ticker.mode:implanter[ref] = list()
implanters = ticker.mode:implanter[ref]
@@ -58,7 +56,6 @@
ticker.mode.traitors += H.mind
H.mind.special_role = "traitor"
to_chat(H, "You're now completely loyal to [user.name]! You now must lay down your life to protect them and assist in their goals at any cost.")
-
var/datum/objective/protect/p = new
p.owner = H.mind
p.target = user:mind
@@ -67,7 +64,6 @@
for(var/datum/objective/objective in H.mind.objectives)
to_chat(H, "Objective #1: [objective.explanation_text]")
-
ticker.mode.update_traitor_icons_added(user.mind)
ticker.mode.update_traitor_icons_added(H.mind)//handles datahuds/observerhuds
diff --git a/code/game/objects/items/weapons/implants/implantchair.dm b/code/game/objects/items/weapons/implants/implantchair.dm
index 49a84275994..0820cc097c9 100644
--- a/code/game/objects/items/weapons/implants/implantchair.dm
+++ b/code/game/objects/items/weapons/implants/implantchair.dm
@@ -82,7 +82,6 @@
var/mob/M = G.affecting
if(M.buckled_mob)
to_chat(usr, "[M] will not fit into [src] because they have a slime latched onto their head.")
-
return
if(put_mob(M))
qdel(G)
@@ -110,11 +109,9 @@
/obj/machinery/implantchair/put_mob(mob/living/carbon/M)
if(!iscarbon(M))
to_chat(usr, "The [src.name] cannot hold this!")
-
return
if(src.occupant)
to_chat(usr, "The [src.name] is already occupied!")
-
return
if(M.client)
M.client.perspective = EYE_PERSPECTIVE
diff --git a/code/game/objects/items/weapons/implants/implanter.dm b/code/game/objects/items/weapons/implants/implanter.dm
index 866eee0cd80..2d7d3e0a956 100644
--- a/code/game/objects/items/weapons/implants/implanter.dm
+++ b/code/game/objects/items/weapons/implants/implanter.dm
@@ -34,7 +34,6 @@
if(imp.implant(M, user))
if (M == user)
to_chat(user, "You implant yourself.")
-
else
M.visible_message("[user] has implanted [M].", "[user] implants you.")
imp = null
diff --git a/code/game/objects/items/weapons/implants/implantpad.dm b/code/game/objects/items/weapons/implants/implantpad.dm
index 1c79613d34c..e89e5f737ed 100644
--- a/code/game/objects/items/weapons/implants/implantpad.dm
+++ b/code/game/objects/items/weapons/implants/implantpad.dm
@@ -28,7 +28,6 @@
return
if(case)
to_chat(user, "There's already an implant in the pad!")
-
return
user.unEquip(C)
C.forceMove(src)
@@ -38,7 +37,6 @@
/obj/item/weapon/implantpad/proc/dropcase(mob/user as mob)
if(!case)
to_chat(user, "There's no implant in the pad!")
-
return
if(user)
if(user.put_in_hands(case))
diff --git a/code/game/objects/items/weapons/legcuffs.dm b/code/game/objects/items/weapons/legcuffs.dm
index 1899911ba7b..88c555d8148 100644
--- a/code/game/objects/items/weapons/legcuffs.dm
+++ b/code/game/objects/items/weapons/legcuffs.dm
@@ -32,7 +32,6 @@
/obj/item/weapon/legcuffs/bolas/suicide_act(mob/living/user)
to_chat(viewers(user), "[user] is wrapping the [src.name] around \his neck! It looks like \he's trying to commit suicide.")
-
return(OXYLOSS)
/obj/item/weapon/legcuffs/bolas/throw_at(var/atom/A, throw_range, throw_speed)
@@ -41,7 +40,6 @@
var/mob/living/carbon/human/H = usr
if((CLUMSY in H.mutations) && prob(50))
to_chat(H, "You smack yourself in the face while swinging the [src]!")
-
H.Stun(2)
H.drop_item(src)
return
diff --git a/code/game/objects/items/weapons/lighters.dm b/code/game/objects/items/weapons/lighters.dm
index aef7bb1af73..3f19d6a494b 100644
--- a/code/game/objects/items/weapons/lighters.dm
+++ b/code/game/objects/items/weapons/lighters.dm
@@ -46,7 +46,6 @@
user.visible_message("After a few attempts, [user] manages to light the [src].")
else
to_chat(user, "You burn yourself while lighting the lighter.")
-
user.adjustFireLoss(5)
user.visible_message("After a few attempts, [user] manages to light the [src], they however burn their finger in the process.")
diff --git a/code/game/objects/items/weapons/melee/energy.dm b/code/game/objects/items/weapons/melee/energy.dm
index b523813dcb7..e3c65c2f35b 100644
--- a/code/game/objects/items/weapons/melee/energy.dm
+++ b/code/game/objects/items/weapons/melee/energy.dm
@@ -17,7 +17,6 @@
/obj/item/weapon/melee/energy/attack_self(mob/living/carbon/user)
if(user.disabilities & CLUMSY && prob(50))
to_chat(user, "You accidentally cut yourself with [src], like a doofus!")
-
user.take_organ_damage(5,5)
active = !active
if (active)
@@ -33,7 +32,6 @@
w_class = w_class_on
playsound(user, 'sound/weapons/saberon.ogg', 35, 1) //changed it from 50% volume to 35% because deafness
to_chat(user, "[src] is now active.")
-
else
force = initial(force)
throwforce = initial(throwforce)
@@ -44,7 +42,6 @@
w_class = initial(w_class)
playsound(user, 'sound/weapons/saberoff.ogg', 35, 1) //changed it from 50% volume to 35% because deafness
to_chat(user, "[src] can now be concealed.")
-
if(istype(user,/mob/living/carbon/human))
var/mob/living/carbon/human/H = user
H.update_inv_l_hand()
@@ -110,7 +107,6 @@
if(active && !(C.use(hitcost)))
attack_self()
to_chat(R, "It's out of charge!")
-
return
..()
return
@@ -157,12 +153,10 @@
if(istype(W, /obj/item/weapon/melee/energy/sword/saber))
if(W == src)
to_chat(user, "You try to attach the end of the energy sword to... itself. You're not very smart, are you?")
-
if(ishuman(user))
user.adjustBrainLoss(10)
else
to_chat(user, "You attach the ends of the two energy swords, making a single double-bladed weapon! You're cool.")
-
var/obj/item/weapon/twohanded/dualsaber/newSaber = new /obj/item/weapon/twohanded/dualsaber(user.loc)
if(src.hacked) // That's right, we'll only check the "original" esword.
newSaber.hacked = 1
@@ -178,7 +172,6 @@
item_color = "rainbow"
to_chat(user, "RNBW_ENGAGE")
-
if(active)
icon_state = "swordrainbow"
// Updating overlays, copied from welder code.
@@ -191,7 +184,6 @@
else
to_chat(user, "It's already fabulous!")
-
/obj/item/weapon/melee/energy/sword/pirate
name = "energy cutlass"
desc = "Arrrr matey."
diff --git a/code/game/objects/items/weapons/melee/misc.dm b/code/game/objects/items/weapons/melee/misc.dm
index 821e5dbe886..cedb07273c6 100644
--- a/code/game/objects/items/weapons/melee/misc.dm
+++ b/code/game/objects/items/weapons/melee/misc.dm
@@ -18,7 +18,6 @@
/obj/item/weapon/melee/chainofcommand/suicide_act(mob/user)
to_chat(viewers(user), "[user] is strangling \himself with the [src.name]! It looks like \he's trying to commit suicide.")
-
return (OXYLOSS)
diff --git a/code/game/objects/items/weapons/misc.dm b/code/game/objects/items/weapons/misc.dm
index 368f19dd0e7..15048ae13b5 100644
--- a/code/game/objects/items/weapons/misc.dm
+++ b/code/game/objects/items/weapons/misc.dm
@@ -94,7 +94,6 @@
afterattack(atom/A as mob|obj|turf|area, mob/living/user as mob|obj, flag, params)
var/angle = get_angle(A, user)
// to_chat(world, angle)
-
angle = round(angle) + 45
if(angle > 180)
angle -= 180
@@ -104,10 +103,8 @@
if(!angle)
angle = 1
// to_chat(world, "adjusted [angle]")
-
icon_state = "[angle]"
// to_chat(world, "[angle] [(get_dist(user, A) - 1)]")
-
user.Beam(A, "lightning", 'icons/obj/zap.dmi', 50, 15)
/obj/item/weapon/newton
diff --git a/code/game/objects/items/weapons/mop.dm b/code/game/objects/items/weapons/mop.dm
index 3ea41bc420e..7fad9cbbe5f 100644
--- a/code/game/objects/items/weapons/mop.dm
+++ b/code/game/objects/items/weapons/mop.dm
@@ -40,7 +40,6 @@
if(reagents.total_volume < 1)
to_chat(user, "Your mop is dry!")
-
return
var/turf/simulated/turf = A
@@ -53,7 +52,6 @@
if(do_after(user, src.mopspeed, target = turf))
to_chat(user, "You finish mopping.")
-
clean(turf)
@@ -70,7 +68,6 @@
/obj/item/weapon/mop/wash(mob/user, atom/source)
reagents.add_reagent("water", 5)
to_chat(user, "You wet [src] in [source].")
-
playsound(loc, 'sound/effects/slosh.ogg', 25, 1)
return 1
diff --git a/code/game/objects/items/weapons/pneumaticCannon.dm b/code/game/objects/items/weapons/pneumaticCannon.dm
index af2987a8dfc..9e8f68faa73 100644
--- a/code/game/objects/items/weapons/pneumaticCannon.dm
+++ b/code/game/objects/items/weapons/pneumaticCannon.dm
@@ -21,29 +21,24 @@
..()
if(!in_range(user, src))
to_chat(user, "You'll need to get closer to see any more.")
-
return
for(var/obj/item/I in loadedItems)
spawn(0)
to_chat(user, "\icon [I] It has \the [I] loaded.")
-
if(tank)
to_chat(user, "\icon [tank] It has \the [tank] mounted onto it.")
-
/obj/item/weapon/pneumatic_cannon/attackby(obj/item/weapon/W, mob/user, params)
..()
if(istype(W, /obj/item/weapon/tank/) && !tank)
if(istype(W, /obj/item/weapon/tank/emergency_oxygen))
to_chat(user, "\The [W] is too small for \the [src].")
-
return
updateTank(W, 0, user)
return
if(W.type == type)
to_chat(user, "You're fairly certain that putting a pneumatic cannon inside another pneumatic cannon would cause a spacetime disruption.")
-
return
if(istype(W, /obj/item/weapon/wrench))
switch(pressureSetting)
@@ -54,29 +49,24 @@
if(3)
pressureSetting = 1
to_chat(user, "You tweak \the [src]'s pressure output to [pressureSetting].")
-
return
if(istype(W, /obj/item/weapon/screwdriver) && tank)
updateTank(tank, 1, user)
return
if(loadedWeightClass >= maxWeightClass)
to_chat(user, "\The [src] can't hold any more items!")
-
return
if(istype(W, /obj/item))
var/obj/item/IW = W
if((loadedWeightClass + IW.w_class) > maxWeightClass)
to_chat(user, "\The [IW] won't fit into \the [src]!")
-
return
if(IW.w_class > src.w_class)
to_chat(user, "\The [IW] is too large to fit into \the [src]!")
-
return
if(!user.unEquip(W))
return
to_chat(user, "You load \the [IW] into \the [src].")
-
loadedItems.Add(IW)
loadedWeightClass += IW.w_class
IW.loc = src
@@ -101,15 +91,12 @@
var/discharge = 0
if(!loadedItems || !loadedWeightClass)
to_chat(user, "\The [src] has nothing loaded.")
-
return
if(!tank)
to_chat(user, "\The [src] can't fire without a source of gas.")
-
return
if(tank && !tank.air_contents.remove(gasPerThrow * pressureSetting))
to_chat(user, "\The [src] lets out a weak hiss and doesn't react!")
-
return
if(user && (CLUMSY in user.mutations) && prob(75))
user.visible_message("[user] loses their grip on [src], causing it to go off!", "[src] slips out of your hands and goes off!")
@@ -160,19 +147,16 @@
if(!src.tank)
return
to_chat(user, "You detach \the [thetank] from \the [src].")
-
src.tank.loc = get_turf(user)
user.put_in_hands(tank)
src.tank = null
if(!removing)
if(src.tank)
to_chat(user, "\The [src] already has a tank.")
-
return
if(!user.unEquip(thetank))
return
to_chat(user, "You hook \the [thetank] up to \the [src].")
-
src.tank = thetank
thetank.loc = src
src.update_icons()
diff --git a/code/game/objects/items/weapons/power_cells.dm b/code/game/objects/items/weapons/power_cells.dm
index e5733b50e38..0cb5e3c54ef 100644
--- a/code/game/objects/items/weapons/power_cells.dm
+++ b/code/game/objects/items/weapons/power_cells.dm
@@ -19,7 +19,6 @@
suicide_act(mob/user)
to_chat(viewers(user), "[user] is licking the electrodes of the [src.name]! It looks like \he's trying to commit suicide.")
-
return (FIRELOSS)
/obj/item/weapon/stock_parts/cell/crap
diff --git a/code/game/objects/items/weapons/scrolls.dm b/code/game/objects/items/weapons/scrolls.dm
index faab7fbef35..589f91b8302 100644
--- a/code/game/objects/items/weapons/scrolls.dm
+++ b/code/game/objects/items/weapons/scrolls.dm
@@ -56,7 +56,6 @@
if(thearea.tele_proof && !istype(thearea, /area/wizard_station))
to_chat(user, "A mysterious force disrupts your arcane spell matrix, and you remain where you are.")
-
return
var/datum/effect/system/harmless_smoke_spread/smoke = new /datum/effect/system/harmless_smoke_spread()
@@ -76,7 +75,6 @@
if(!L.len)
to_chat(user, "The spell matrix was unable to locate a suitable teleport destination for an unknown reason. Sorry.")
-
return
if(user && user.buckled)
diff --git a/code/game/objects/items/weapons/shards.dm b/code/game/objects/items/weapons/shards.dm
index a3c221d376c..4add062aabc 100644
--- a/code/game/objects/items/weapons/shards.dm
+++ b/code/game/objects/items/weapons/shards.dm
@@ -47,7 +47,6 @@
continue
G.attackby(NG, user)
to_chat(user, "You add the newly-formed glass to the stack. It now contains [NG.amount] sheet\s.")
-
qdel(src)
..()
@@ -57,7 +56,6 @@
if (M.incorporeal_move || M.flying)//you are incorporal or flying..no shard stepping!
return
to_chat(M, "\red You step on \the [src]!")
-
playsound(src.loc, 'sound/effects/glass_step.ogg', 50, 1) // not sure how to handle metal shards with sounds
if(ishuman(M))
var/mob/living/carbon/human/H = M
diff --git a/code/game/objects/items/weapons/shields.dm b/code/game/objects/items/weapons/shields.dm
index 08586e876f1..86345b677ca 100644
--- a/code/game/objects/items/weapons/shields.dm
+++ b/code/game/objects/items/weapons/shields.dm
@@ -71,7 +71,6 @@
/obj/item/weapon/shield/energy/attack_self(mob/living/carbon/human/user)
if(user.disabilities & CLUMSY && prob(50))
to_chat(user, "You beat yourself in the head with [src].")
-
user.take_organ_damage(5)
active = !active
icon_state = "eshield[active]"
@@ -83,7 +82,6 @@
w_class = 4
playsound(user, 'sound/weapons/saberon.ogg', 35, 1)
to_chat(user, "[src] is now active.")
-
else
force = 3
throwforce = 3
@@ -91,7 +89,6 @@
w_class = 1
playsound(user, 'sound/weapons/saberoff.ogg', 35, 1)
to_chat(user, "[src] can now be concealed.")
-
if(istype(user,/mob/living/carbon/human))
var/mob/living/carbon/human/H = user
H.update_inv_l_hand()
@@ -127,7 +124,6 @@
w_class = 4
slot_flags = SLOT_BACK
to_chat(user, "You extend \the [src].")
-
else
force = 3
throwforce = 3
@@ -135,7 +131,6 @@
w_class = 3
slot_flags = null
to_chat(user, "[src] can now be concealed.")
-
if(istype(user,/mob/living/carbon/human))
var/mob/living/carbon/human/H = user
H.update_inv_l_hand()
@@ -163,11 +158,9 @@
src.active = !( src.active )
if (src.active)
to_chat(user, "\blue The cloaking device is now active.")
-
src.icon_state = "shield1"
else
to_chat(user, "\blue The cloaking device is now inactive.")
-
src.icon_state = "shield0"
src.add_fingerprint(user)
return
diff --git a/code/game/objects/items/weapons/soap.dm b/code/game/objects/items/weapons/soap.dm
index 3c9a45fa59d..961547d362f 100644
--- a/code/game/objects/items/weapons/soap.dm
+++ b/code/game/objects/items/weapons/soap.dm
@@ -29,12 +29,10 @@
if(user.client && (target in user.client.screen))
to_chat(user, "You need to take that [target.name] off before 'cleaning' it.")
-
else
user.visible_message("[user] begins to smear [src] on \the [target.name].")
if(do_after(user, src.cleanspeed, target = target))
to_chat(user, "You 'clean' \the [target.name].")
-
if(istype(target, /turf/simulated))
new /obj/effect/decal/cleanable/blood/gibs/cleangibs(target)
else if (istype(target,/mob/living/carbon))
diff --git a/code/game/objects/items/weapons/staff.dm b/code/game/objects/items/weapons/staff.dm
index 5b6149f159f..e36bed7a473 100644
--- a/code/game/objects/items/weapons/staff.dm
+++ b/code/game/objects/items/weapons/staff.dm
@@ -30,7 +30,6 @@
user.flying = wielded ? 1 : 0
if(wielded)
to_chat(user, "You hold \the [src] between your legs.")
-
user.say("QUID 'ITCH")
animate(user, pixel_y = pixel_y + 10 , time = 10, loop = 1, easing = SINE_EASING)
else
@@ -43,7 +42,6 @@
if(wielded)
to_chat(user, "You hold \the [src] between your legs.")
-
/obj/item/weapon/twohanded/staff/broom/attackby(var/obj/O, mob/user)
if(istype(O, /obj/item/clothing/mask/horsehead))
new/obj/item/weapon/twohanded/staff/broom/horsebroom(get_turf(src))
diff --git a/code/game/objects/items/weapons/storage/backpack.dm b/code/game/objects/items/weapons/storage/backpack.dm
index bfdeef880fa..6c59e98385f 100644
--- a/code/game/objects/items/weapons/storage/backpack.dm
+++ b/code/game/objects/items/weapons/storage/backpack.dm
@@ -43,7 +43,6 @@
attackby(obj/item/weapon/W as obj, mob/user as mob, params)
if(crit_fail)
to_chat(user, "\red The Bluespace generator isn't working.")
-
return
else if(istype(W, /obj/item/weapon/storage/backpack/holding) && !W.crit_fail)
var/response = alert(user, "Are you sure you want to put the bag of holding inside another bag of holding?","Are you sure you want to die?","Yes","No")
@@ -68,10 +67,8 @@
if (prob(src.reliability))
to_chat(user, "\red The Bluespace portal resists your attempt to add another item.")//light failure
-
else
to_chat(user, "\red The Bluespace generator malfunctions!")
-
for (var/obj/O in src.contents) //it broke, delete what was in it
qdel(O)
crit_fail = 1
diff --git a/code/game/objects/items/weapons/storage/bags.dm b/code/game/objects/items/weapons/storage/bags.dm
index 707a5d06bec..350bf9c5e7a 100644
--- a/code/game/objects/items/weapons/storage/bags.dm
+++ b/code/game/objects/items/weapons/storage/bags.dm
@@ -94,7 +94,6 @@
if(slot==slot_head && contents.len)
to_chat(M, "\red You need to empty the bag first!")
-
return 0
return ..()
@@ -228,7 +227,6 @@
if(!istype(W,/obj/item/stack/sheet) || istype(W,/obj/item/stack/sheet/mineral/sandstone) || istype(W,/obj/item/stack/sheet/wood))
if(!stop_messages)
to_chat(usr, "The snatcher does not accept [W].")
-
return 0 //I don't care, but the existing code rejects them for not being "sheets" *shrug* -Sayu
var/current = 0
for(var/obj/item/stack/sheet/S in contents)
@@ -236,7 +234,6 @@
if(capacity == current)//If it's full, you're done
if(!stop_messages)
to_chat(usr, "\red The snatcher is full.")
-
return 0
return 1
diff --git a/code/game/objects/items/weapons/storage/belt.dm b/code/game/objects/items/weapons/storage/belt.dm
index af1e97bcd6a..daefa0db457 100644
--- a/code/game/objects/items/weapons/storage/belt.dm
+++ b/code/game/objects/items/weapons/storage/belt.dm
@@ -415,10 +415,8 @@
if (prob(src.reliability))
to_chat(user, "\red The Bluespace portal resists your attempt to add another item.")//light failure
-
else
to_chat(user, "\red The Bluespace generator malfunctions!")
-
for (var/obj/O in src.contents) //it broke, delete what was in it
qdel(O)
crit_fail = 1
@@ -494,7 +492,6 @@
if (istype(target, /turf/unsimulated) || istype(target, /turf/simulated/shuttle) || istype(target, /obj/item/weapon/storage) || istype(target, /obj/structure/table) || istype(target, /obj/structure/closet))
return
to_chat(user, "Planting explosives...")
-
user.visible_message("[user.name] is fiddling with their toolbelt.")
if(ismob(target))
user.attack_log += "\[[time_stamp()]\] [user.real_name] tried planting [name] on [target:real_name] ([target:ckey])"
@@ -513,7 +510,6 @@
user.visible_message("\red [user.name] finished planting an explosive on [target.name]!")
target.overlays += image('icons/obj/assemblies.dmi', "plastic-explosive2")
to_chat(user, "You sacrifice your belt for the sake of justice. Timer counting down from 15.")
-
spawn(150)
if(target)
if(ismob(target) || isobj(target))
diff --git a/code/game/objects/items/weapons/storage/bible.dm b/code/game/objects/items/weapons/storage/bible.dm
index 7ba74274c59..3fa521a7451 100644
--- a/code/game/objects/items/weapons/storage/bible.dm
+++ b/code/game/objects/items/weapons/storage/bible.dm
@@ -10,7 +10,6 @@
suicide_act(mob/user)
to_chat(viewers(user), "[user] stares into [src.name] and attempts to trascend understanding of the universe!")
-
return (user.dust())
@@ -55,17 +54,14 @@
if (!(istype(user, /mob/living/carbon/human) || ticker) && ticker.mode.name != "monkey")
to_chat(user, "\red You don't have the dexterity to do this!")
-
return
if(!chaplain)
to_chat(user, "\red The book sizzles in your hands.")
-
user.take_organ_damage(0,10)
return
if ((CLUMSY in user.mutations) && prob(50))
to_chat(user, "\red The [src] slips out of your hand and hits your head.")
-
user.take_organ_damage(10)
user.Paralyse(20)
return
@@ -76,22 +72,18 @@
if (M.stat !=2)
/*if((M.mind in ticker.mode.cult) && (prob(20)))
to_chat(M, "\red The power of [src.deity_name] clears your mind of heresy!")
-
to_chat(user, "\red You see how [M]'s eyes become clear, the cult no longer holds control over him!")
-
ticker.mode.remove_cultist(M.mind)*/
if ((istype(M, /mob/living/carbon/human) && prob(60)))
bless(M)
for(var/mob/O in viewers(M, null))
O.show_message(text("\red [] heals [] with the power of [src.deity_name]!", user, M), 1)
to_chat(M, "\red May the power of [src.deity_name] compel you to be healed!")
-
playsound(src.loc, "punch", 25, 1, -1)
else
if(ishuman(M) && !istype(M:head, /obj/item/clothing/head/helmet))
M.adjustBrainLoss(10)
to_chat(M, "\red You feel dumber.")
-
for(var/mob/O in viewers(M, null))
O.show_message(text("\red [] beats [] over the head with []!", user, M, src), 1)
playsound(src.loc, "punch", 25, 1, -1)
@@ -106,19 +98,16 @@
return
if (istype(A, /turf/simulated/floor))
to_chat(user, "You hit the floor with the bible.")
-
if(user.mind && (user.mind.assigned_role == "Chaplain"))
call(/obj/effect/rune/proc/revealrunes)(src)
if(user.mind && (user.mind.assigned_role == "Chaplain"))
if(A.reagents && A.reagents.has_reagent("water")) //blesses all the water in the holder
to_chat(user, "You bless [A].")
-
var/water2holy = A.reagents.get_reagent_amount("water")
A.reagents.del_reagent("water")
A.reagents.add_reagent("holywater",water2holy)
if(A.reagents && A.reagents.has_reagent("unholywater")) //yeah yeah, copy pasted code - sue me
to_chat(user, "You purify [A].")
-
var/unholy2clean = A.reagents.get_reagent_amount("unholywater")
A.reagents.del_reagent("unholywater")
A.reagents.add_reagent("holywater",unholy2clean)
diff --git a/code/game/objects/items/weapons/storage/fancy.dm b/code/game/objects/items/weapons/storage/fancy.dm
index a1cada9b549..31ead836204 100644
--- a/code/game/objects/items/weapons/storage/fancy.dm
+++ b/code/game/objects/items/weapons/storage/fancy.dm
@@ -30,16 +30,13 @@
if(contents.len <= 0)
to_chat(user, "There are no [src.icon_type]s left in the box.")
-
else if(contents.len == 1)
to_chat(user, "There is one [src.icon_type] left in the box.")
-
else
to_chat(user, "There are [src.contents.len] [src.icon_type]s in the box.")
-
/*
* Donut Box
*/
@@ -146,11 +143,9 @@
switch(W:colourName)
if("mime")
to_chat(usr, "This crayon is too sad to be contained in this box.")
-
return
if("rainbow")
to_chat(usr, "This crayon is too powerful to be contained in this box.")
-
return
..()
@@ -223,13 +218,11 @@
lace_cigarette(C)
user.equip_to_slot_if_possible(C, slot_wear_mask)
to_chat(user, "You take \a [C.name] out of the pack.")
-
update_icon()
got_cig = 1
break
if(!got_cig)
to_chat(user, "There are no smokables in the pack!")
-
else
..()
@@ -239,14 +232,12 @@
if(M.lit == 1)
if(!stop_messages)
to_chat(usr, "Putting a lit [W] in [src] probably isn't a good idea.")
-
return 0
if(istype(W, /obj/item/weapon/lighter))
var/obj/item/weapon/lighter/L = W
if(L.lit == 1)
if(!stop_messages)
to_chat(usr, "Putting [W] in [src] while lit probably isn't a good idea.")
-
return 0
//if we get this far, handle the insertion checks as normal
.=..()
diff --git a/code/game/objects/items/weapons/storage/firstaid.dm b/code/game/objects/items/weapons/storage/firstaid.dm
index c87af060e4f..a11d00dbccd 100644
--- a/code/game/objects/items/weapons/storage/firstaid.dm
+++ b/code/game/objects/items/weapons/storage/firstaid.dm
@@ -249,10 +249,8 @@
var/tmp_label = sanitize(input(user, "Enter a label for [name]","Label",label_text))
if(length(tmp_label) > MAX_NAME_LEN)
to_chat(user, "The label can be at most [MAX_NAME_LEN] characters long.")
-
else
to_chat(user, "You set the label to \"[tmp_label]\".")
-
label_text = tmp_label
update_name_label()
else
diff --git a/code/game/objects/items/weapons/storage/lockbox.dm b/code/game/objects/items/weapons/storage/lockbox.dm
index 9ce695a7012..1dde63d198a 100644
--- a/code/game/objects/items/weapons/storage/lockbox.dm
+++ b/code/game/objects/items/weapons/storage/lockbox.dm
@@ -21,24 +21,20 @@
if (istype(W, /obj/item/weapon/card/id))
if(src.broken)
to_chat(user, "\red It appears to be broken.")
-
return
if(src.allowed(user))
src.locked = !( src.locked )
if(src.locked)
src.icon_state = src.icon_locked
to_chat(user, "\red You lock the [src.name]!")
-
return
else
src.icon_state = src.icon_closed
to_chat(user, "\red You unlock the [src.name]!")
-
origin_tech = null //wipe out any origin tech if it's unlocked in any way so you can't double-dip tech levels at R&D.
return
else
to_chat(user, "\red Access Denied")
-
else if((istype(W, /obj/item/weapon/card/emag) || istype(W, /obj/item/weapon/melee/energy/blade)) && !broken)
emag_act(user)
return
@@ -46,14 +42,12 @@
..()
else
to_chat(user, "\red Its locked!")
-
return
show_to(mob/user as mob)
if(locked)
to_chat(user, "\red Its locked!")
-
else
..()
return
@@ -63,7 +57,6 @@
return ..()
if(!stop_messages)
to_chat(usr, "[src] is locked!")
-
return 0
/obj/item/weapon/storage/lockbox/emag_act(user as mob)
@@ -73,7 +66,6 @@
desc = "It appears to be broken."
icon_state = src.icon_broken
to_chat(user, "You unlock \the [src].")
-
origin_tech = null //wipe out any origin tech if it's unlocked in any way so you can't double-dip tech levels at R&D.
return
diff --git a/code/game/objects/items/weapons/storage/secure.dm b/code/game/objects/items/weapons/storage/secure.dm
index 1a68163cbd7..59fac1b18c4 100644
--- a/code/game/objects/items/weapons/storage/secure.dm
+++ b/code/game/objects/items/weapons/storage/secure.dm
@@ -31,7 +31,6 @@
if(..(user, 1))
to_chat(user, text("The service panel is [src.open ? "open" : "closed"]."))
-
attackby(obj/item/weapon/W as obj, mob/user as mob, params)
if(locked)
if ((istype(W, /obj/item/weapon/melee/energy/blade)) && (!src.emagged))
@@ -80,10 +79,8 @@
playsound(src.loc, 'sound/weapons/blade1.ogg', 50, 1)
playsound(src.loc, "sparks", 50, 1)
to_chat(user, "You slice through the lock on [src].")
-
else
to_chat(user, "You short out the lock on [src].")
-
return
@@ -148,7 +145,6 @@
return ..()
if(!stop_messages)
to_chat(usr, "[src] is locked!")
-
return 0
/obj/item/weapon/storage/secure/hear_talk(mob/living/M as mob, msg)
@@ -177,7 +173,6 @@
attack_hand(mob/user as mob)
if ((src.loc == user) && (src.locked == 1))
to_chat(usr, "\red [src] is locked and cannot be opened!")
-
else if ((src.loc == user) && (!src.locked))
playsound(src.loc, "rustle", 50, 1, -5)
if (user.s_active)
diff --git a/code/game/objects/items/weapons/storage/storage.dm b/code/game/objects/items/weapons/storage/storage.dm
index 8eeeadea09c..d92ad2399b2 100644
--- a/code/game/objects/items/weapons/storage/storage.dm
+++ b/code/game/objects/items/weapons/storage/storage.dm
@@ -236,7 +236,6 @@
if(contents.len >= storage_slots)
if(!stop_messages)
to_chat(usr, "[W] won't fit in [src], make some space!")
-
return 0 //Storage item is full
if(can_hold.len)
@@ -250,20 +249,17 @@
if (istype(W, /obj/item/weapon/hand_labeler))
return 0
to_chat(usr, "[src] cannot hold [W].")
-
return 0
for(var/A in cant_hold) //Check for specific items which this container can't hold.
if(istype(W, text2path(A) ))
if(!stop_messages)
to_chat(usr, "[src] cannot hold [W].")
-
return 0
if (W.w_class > max_w_class)
if(!stop_messages)
to_chat(usr, "[W] is too big for this [src].")
-
return 0
var/sum_w_class = W.w_class
@@ -273,19 +269,16 @@
if(sum_w_class > max_combined_w_class)
if(!stop_messages)
to_chat(usr, "[src] is full, make some space.")
-
return 0
if(W.w_class >= src.w_class && (istype(W, /obj/item/weapon/storage)))
if(!istype(src, /obj/item/weapon/storage/backpack/holding)) //bohs should be able to hold backpacks again. The override for putting a boh in a boh is in backpack.dm.
if(!stop_messages)
to_chat(usr, "[src] cannot hold [W] as it's a storage item of the same size.")
-
return 0 //To prevent the stacking of same sized storage items.
if(W.flags & NODROP) //SHOULD be handled in unEquip, but better safe than sorry.
to_chat(usr, "\the [W] is stuck to your hand, you can't put it in \the [src]")
-
return 0
return 1
@@ -314,7 +307,6 @@
for(var/mob/M in viewers(usr, null))
if (M == usr)
to_chat(usr, "You put the [W] into [src].")
-
else if (M in range(1)) //If someone is standing close enough, they can tell what it is...
M.show_message("[usr] puts [W] into [src].")
else if (W && W.w_class >= 3.0) //Otherwise they can only see large or normal items from a distance...
@@ -368,7 +360,6 @@
if(isrobot(user))
to_chat(user, "\blue You're a robot. No.")
-
return 1//Robots can't interact with storage items.
if(!can_be_inserted(W))
@@ -416,12 +407,10 @@
switch (collection_mode)
if(1)
to_chat(usr, "[src] now picks up all items in a tile at once.")
-
if(0)
to_chat(usr, "[src] now picks up one item at a time.")
-
/obj/item/weapon/storage/verb/quick_empty()
set name = "Empty Contents"
set category = "Object"
@@ -509,7 +498,6 @@
return
// Now make the cardboard
to_chat(user, "You fold [src] flat.")
-
new src.foldable(get_turf(src))
qdel(src)
//BubbleWrap END
diff --git a/code/game/objects/items/weapons/storage/toolbox.dm b/code/game/objects/items/weapons/storage/toolbox.dm
index a760475b9de..22e46163fa3 100644
--- a/code/game/objects/items/weapons/storage/toolbox.dm
+++ b/code/game/objects/items/weapons/storage/toolbox.dm
@@ -19,7 +19,6 @@
..()
if (src.type == /obj/item/weapon/storage/toolbox)
to_chat(world, "BAD: [src] ([src.type]) spawned at [src.x] [src.y] [src.z]")
-
qdel(src)
/obj/item/weapon/storage/toolbox/emergency
diff --git a/code/game/objects/items/weapons/stunbaton.dm b/code/game/objects/items/weapons/stunbaton.dm
index d180686998a..db834beeb45 100644
--- a/code/game/objects/items/weapons/stunbaton.dm
+++ b/code/game/objects/items/weapons/stunbaton.dm
@@ -56,28 +56,23 @@
..(user)
if(bcell)
to_chat(user, "The baton is [round(bcell.percent())]% charged.")
-
if(!bcell)
to_chat(user, "The baton does not have a power source installed.")
-
/obj/item/weapon/melee/baton/attackby(obj/item/weapon/W, mob/user, params)
if(istype(W, /obj/item/weapon/stock_parts/cell))
var/obj/item/weapon/stock_parts/cell/C = W
if(bcell)
to_chat(user, "[src] already has a cell.")
-
else
if(C.maxcharge < hitcost)
to_chat(user, "[src] requires a higher capacity cell.")
-
return
if(!user.unEquip(W))
return
W.loc = src
bcell = W
to_chat(user, "You install a cell in [src].")
-
update_icon()
else if(istype(W, /obj/item/weapon/screwdriver))
@@ -86,7 +81,6 @@
bcell.loc = get_turf(src.loc)
bcell = null
to_chat(user, "You remove the cell from the [src].")
-
status = 0
update_icon()
return
@@ -97,16 +91,13 @@
if(bcell && bcell.charge > hitcost)
status = !status
to_chat(user, "[src] is now [status ? "on" : "off"].")
-
playsound(loc, "sparks", 75, 1, -1)
else
status = 0
if(!bcell)
to_chat(user, "[src] does not have a power source!")
-
else
to_chat(user, "[src] is out of charge.")
-
update_icon()
add_fingerprint(user)
diff --git a/code/game/objects/items/weapons/swords_axes_etc.dm b/code/game/objects/items/weapons/swords_axes_etc.dm
index ae942d0df41..63346476021 100644
--- a/code/game/objects/items/weapons/swords_axes_etc.dm
+++ b/code/game/objects/items/weapons/swords_axes_etc.dm
@@ -11,10 +11,8 @@
*/
/obj/item/weapon/banhammer/attack(mob/M as mob, mob/user as mob)
to_chat(M, " You have been banned FOR NO REISIN by [user]")
-
to_chat(user, " You have BANNED [M]")
-
/*
* Classic Baton
*/
@@ -36,7 +34,6 @@
add_fingerprint(user)
if((CLUMSY in user.mutations) && prob(50))
to_chat(user, "You club yourself over the head.")
-
user.Weaken(3 * force)
if(ishuman(user))
var/mob/living/carbon/human/H = user
@@ -88,7 +85,6 @@
on = !on
if(on)
to_chat(user, "You extend the baton.")
-
icon_state = "telebaton_1"
item_state = "nullrod"
w_class = 4 //doesnt fit in backpack when its on for balance
@@ -96,7 +92,6 @@
attack_verb = list("smacked", "struck", "cracked", "beaten")
else
to_chat(user, "You collapse the baton.")
-
icon_state = "telebaton_0"
item_state = null //no sprite for concealment even when in hand
slot_flags = SLOT_BELT
diff --git a/code/game/objects/items/weapons/table_rack_parts.dm b/code/game/objects/items/weapons/table_rack_parts.dm
index 6a1d65af07d..61c58ce9aa5 100644
--- a/code/game/objects/items/weapons/table_rack_parts.dm
+++ b/code/game/objects/items/weapons/table_rack_parts.dm
@@ -58,13 +58,11 @@
if (W:amount >= 4)
new /obj/item/weapon/table_parts/reinforced( user.loc )
to_chat(user, "\blue You reinforce the [name].")
-
W:use(4)
qdel(src)
else if (W:amount < 4)
to_chat(user, "\red You need at least four rods to do this.")
-
/obj/item/weapon/table_parts/attack_self(mob/user as mob)
new /obj/structure/table( user.loc )
user.drop_item()
diff --git a/code/game/objects/items/weapons/tanks/jetpack.dm b/code/game/objects/items/weapons/tanks/jetpack.dm
index 4d4e13324b1..68fe80fdbfb 100644
--- a/code/game/objects/items/weapons/tanks/jetpack.dm
+++ b/code/game/objects/items/weapons/tanks/jetpack.dm
@@ -30,7 +30,6 @@
if(air_contents.oxygen < 10)
to_chat(user, text("\red The meter on the [src.name] indicates you are almost out of air!"))
-
playsound(user, 'sound/effects/alert.ogg', 50, 1)
@@ -39,7 +38,6 @@
set category = "Object"
src.stabilization_on = !( src.stabilization_on )
to_chat(usr, "You toggle the stabilization [stabilization_on? "on":"off"].")
-
return
@@ -136,7 +134,6 @@
if(air_contents.carbon_dioxide < 10)
to_chat(user, text("\red The meter on the [src.name] indicates you are almost out of air!"))
-
playsound(user, 'sound/effects/alert.ogg', 50, 1)
@@ -146,7 +143,6 @@
/obj/item/weapon/tank/jetpack/rig/examine()
to_chat(usr, "It's a jetpack. If you can see this, report it on the bug tracker.")
-
return 0
/obj/item/weapon/tank/jetpack/rig/allow_thrust(num, mob/living/user as mob)
diff --git a/code/game/objects/items/weapons/tanks/tank_types.dm b/code/game/objects/items/weapons/tanks/tank_types.dm
index 18de0bc0e7f..6767b88ac0d 100644
--- a/code/game/objects/items/weapons/tanks/tank_types.dm
+++ b/code/game/objects/items/weapons/tanks/tank_types.dm
@@ -27,7 +27,6 @@
if(..(user, 0))
if(air_contents.oxygen < 10)
to_chat(user, text("\red The meter on the [src.name] indicates you are almost out of air!"))
-
//playsound(usr, 'sound/effects/alert.ogg', 50, 1)
@@ -73,10 +72,8 @@
if(..(user, 0))
if(air_contents.oxygen < 1 && loc==usr)
to_chat(user, "\red The meter on the [src.name] indicates you are almost out of air!")
-
to_chat(user, sound('sound/effects/alert.ogg'))
-
/obj/item/weapon/tank/air/New()
..()
@@ -127,10 +124,8 @@
if(..(user, 0))
if(air_contents.toxins < 0.2 && loc==usr)
to_chat(user, text("\red The meter on the [src.name] indicates you are almost out of plasma!"))
-
to_chat(user, sound('sound/effects/alert.ogg'))
-
/*
* Emergency Oxygen
*/
@@ -156,10 +151,8 @@
if(..(user, 0))
if(air_contents.oxygen < 0.2 && loc==usr)
to_chat(user, text("\red The meter on the [src.name] indicates you are almost out of air!"))
-
to_chat(user, sound('sound/effects/alert.ogg'))
-
/obj/item/weapon/tank/emergency_oxygen/engi
name = "extended-capacity emergency oxygen tank"
icon_state = "emergency_engi"
@@ -199,7 +192,6 @@
if(..(user, 0))
if(air_contents.nitrogen < 10)
to_chat(user, text("\red The meter on the [src.name] indicates you are almost out of air!"))
-
//playsound(usr, 'sound/effects/alert.ogg', 50, 1)
diff --git a/code/game/objects/items/weapons/tanks/tanks.dm b/code/game/objects/items/weapons/tanks/tanks.dm
index 9565cb736ab..46342d78a99 100644
--- a/code/game/objects/items/weapons/tanks/tanks.dm
+++ b/code/game/objects/items/weapons/tanks/tanks.dm
@@ -46,7 +46,6 @@
if (!in_range(src, user))
if (icon == src)
to_chat(user, "\blue It's \a \icon[icon][src]! If you want any more information you'll need to get closer.")
-
return
var/celsius_temperature = src.air_contents.temperature-T0C
@@ -67,7 +66,6 @@
to_chat(user, "\blue \The \icon[icon][src] feels [descriptive]")
-
return
/obj/item/weapon/tank/blob_act()
@@ -170,7 +168,6 @@
location.internal = null
location.internals.icon_state = "internal0"
to_chat(usr, "\blue You close the tank release valve.")
-
if (location.internals)
location.internals.icon_state = "internal0"
else
@@ -186,13 +183,11 @@
if(can_open_valve)
location.internal = src
to_chat(usr, "\blue You open \the [src] valve.")
-
if (location.internals)
location.internals.icon_state = "internal1"
else
to_chat(usr, "\blue You need something to connect to \the [src].")
-
src.add_fingerprint(usr)
return 1
@@ -239,7 +234,6 @@
message_admins("Explosive tank rupture! last key to touch the tank was [src.fingerprintslast] (JMP)")
log_game("Explosive tank rupture! last key to touch the tank was [src.fingerprintslast] at [x], [y], [z]")
// to_chat(world, "\blue[x],[y] tank is exploding: [pressure] kPa")
-
//Give the gas a chance to build up more pressure through reacting
air_contents.react()
air_contents.react()
@@ -250,7 +244,6 @@
// to_chat(world, "\blue Exploding Pressure: [pressure] kPa, intensity: [range]")
-
explosion(epicenter, round(range*0.25), round(range*0.5), round(range), round(range*1.5))
if(istype(src.loc,/obj/item/device/transfer_valve))
qdel(src.loc)
@@ -259,7 +252,6 @@
else if(pressure > TANK_RUPTURE_PRESSURE)
// to_chat(world, "\blue[x],[y] tank is rupturing: [pressure] kPa, integrity [integrity]")
-
if(integrity <= 0)
var/turf/simulated/T = get_turf(src)
if(!T)
@@ -272,7 +264,6 @@
else if(pressure > TANK_LEAK_PRESSURE)
// to_chat(world, "\blue[x],[y] tank is leaking: [pressure] kPa, integrity [integrity]")
-
if(integrity <= 0)
var/turf/simulated/T = get_turf(src)
if(!T)
diff --git a/code/game/objects/items/weapons/tanks/watertank.dm b/code/game/objects/items/weapons/tanks/watertank.dm
index 4d15aba974c..cbe3cdde29d 100644
--- a/code/game/objects/items/weapons/tanks/watertank.dm
+++ b/code/game/objects/items/weapons/tanks/watertank.dm
@@ -27,7 +27,6 @@
set category = "Object"
if (usr.get_item_by_slot(slot_back) != src)
to_chat(usr, "The watertank needs to be on your back to use.")
-
return
if(usr.incapacitated())
return
@@ -42,7 +41,6 @@
if(!user.put_in_hands(noz))
on = 0
to_chat(user, "You need a free hand to hold the mister.")
-
return
noz.loc = user
else
@@ -128,7 +126,6 @@
/obj/item/weapon/reagent_containers/spray/mister/dropped(mob/user as mob)
to_chat(user, "The mister snaps back onto the watertank.")
-
tank.on = 0
loc = tank
@@ -180,7 +177,6 @@
amount_per_transfer_from_this = (amount_per_transfer_from_this == 10 ? 5 : 10)
to_chat(user, "You [amount_per_transfer_from_this == 10 ? "remove" : "fix"] the nozzle. You'll now use [amount_per_transfer_from_this] units per spray.")
-
//ATMOS FIRE FIGHTING BACKPACK
#define EXTINGUISHER 0
@@ -245,25 +241,21 @@
nozzle_mode = NANOFROST
tank.icon_state = "waterbackpackatmos_1"
to_chat(user, "Swapped to nanofrost launcher")
-
return
if(NANOFROST)
nozzle_mode = METAL_FOAM
tank.icon_state = "waterbackpackatmos_2"
to_chat(user, "Swapped to metal foam synthesizer")
-
return
if(METAL_FOAM)
nozzle_mode = EXTINGUISHER
tank.icon_state = "waterbackpackatmos_0"
to_chat(user, "Swapped to water extinguisher")
-
return
return
/obj/item/weapon/extinguisher/mini/nozzle/dropped(mob/user as mob)
to_chat(user, "The nozzle snaps back onto the tank!")
-
tank.on = 0
loc = tank
@@ -280,11 +272,9 @@
var/datum/reagents/R = reagents
if(R.total_volume < 100)
to_chat(user, "You need at least 100 units of water to use the nanofrost launcher!")
-
return
if(nanofrost_cooldown)
to_chat(user, "Nanofrost launcher is still recharging")
-
return
nanofrost_cooldown = 1
R.remove_any(100)
@@ -311,7 +301,6 @@
metal_synthesis_cooldown--
else
to_chat(user, "Metal foam mix is still being synthesized.")
-
return
/obj/effect/nanofrost_container
diff --git a/code/game/objects/items/weapons/tape.dm b/code/game/objects/items/weapons/tape.dm
index 2eed4d02cef..a6c7841e020 100644
--- a/code/game/objects/items/weapons/tape.dm
+++ b/code/game/objects/items/weapons/tape.dm
@@ -16,7 +16,6 @@
/obj/item/stack/tape_roll/attack_self(mob/user as mob)
to_chat(user, "You remove a length of tape from [src].")
-
var/obj/item/weapon/ducttape/tape = new()
user.put_in_hands(tape)
*/
@@ -74,7 +73,6 @@
to_chat(user, "You remove \the [initial(name)] from [stuck].")
-
user.unEquip(src)
stuck.forceMove(get_turf(src))
user.put_in_hands(stuck)
diff --git a/code/game/objects/items/weapons/teleportation.dm b/code/game/objects/items/weapons/teleportation.dm
index f0ecceabfe8..99567b5952a 100644
--- a/code/game/objects/items/weapons/teleportation.dm
+++ b/code/game/objects/items/weapons/teleportation.dm
@@ -50,7 +50,6 @@ Frequency:
var/turf/current_location = get_turf(usr)//What turf is the user on?
if(!current_location ||( current_location.z in config.admin_levels))//If turf was not found or they're on z level 2.
to_chat(usr, "\The [src] is malfunctioning.")
-
return 1
if (href_list["refresh"])
@@ -110,7 +109,6 @@ Frequency:
var/turf/current_location = get_turf(user)//What turf is the user on?
if(!current_location||(current_location.z in config.admin_levels)||current_location.z>=7)//If turf was not found or they're on z level 2 or >7 which does not currently exist.
to_chat(user, "\The [src] is malfunctioning.")
-
return
var/list/L = list( )
for(var/obj/machinery/computer/teleporter/com in world)
diff --git a/code/game/objects/items/weapons/tools.dm b/code/game/objects/items/weapons/tools.dm
index 8b5c0e3be2f..a187dc09b65 100644
--- a/code/game/objects/items/weapons/tools.dm
+++ b/code/game/objects/items/weapons/tools.dm
@@ -175,7 +175,6 @@
if(..(user, 0))
to_chat(user, "It contains [get_fuel()] unit\s of fuel out of [max_fuel].")
-
/obj/item/weapon/weldingtool/suicide_act(mob/user)
user.visible_message("[user] welds \his every orifice closed! It looks like \he's trying to commit suicide..")
return (FIRELOSS)
@@ -250,15 +249,12 @@
user.visible_message("\The [user] patches some dents on \the [M]'s [S.name] with \the [src].")
else if(S.open != 2)
to_chat(user, "Need more welding fuel!")
-
return 1
else
to_chat(user, "The damage is far too severe to patch over externally.")
-
return 1
else if(S.open != 2)
to_chat(user, "Nothing to fix!")
-
else
return ..()
@@ -268,7 +264,6 @@
if(!welding)
O.reagents.trans_to(src, max_fuel)
to_chat(user, "[src] refueled.")
-
playsound(src.loc, 'sound/effects/refill.ogg', 50, 1, -6)
update_icon()
return
@@ -276,7 +271,6 @@
message_admins("[key_name_admin(user)] triggered a fueltank explosion.")
log_game("[key_name(user)] triggered a fueltank explosion.")
to_chat(user, "That was stupid of you.")
-
O.ex_act()
return
@@ -310,7 +304,6 @@
else
if(M)
to_chat(M, "\blue You need more welding fuel to complete this task.")
-
return 0
//Returns whether or not the welding tool is currently on.
@@ -335,13 +328,11 @@
/obj/item/weapon/weldingtool/proc/toggle(mob/user, message = 0)
if(!status)
to_chat(user, "[src] can't be turned on while unsecured!")
-
return
welding = !welding
if(welding)
if(get_fuel() >= 1)
to_chat(user, "You switch [src] on.")
-
force = 15
damtype = "fire"
hitsound = 'sound/items/welder.ogg'
@@ -349,15 +340,12 @@
processing_objects |= src
else
to_chat(user, "You need more fuel!")
-
welding = 0
else
if(!message)
to_chat(user, "You switch [src] off.")
-
else
to_chat(user, "[src] shuts off!")
-
force = 3
damtype = "brute"
hitsound = "swing_hit"
@@ -366,15 +354,12 @@
/obj/item/weapon/weldingtool/proc/flamethrower_screwdriver(obj/item/I, mob/user)
if(welding)
to_chat(user, "Turn it off first!")
-
return
status = !status
if(status)
to_chat(user, "You resecure [src].")
-
else
to_chat(user, "[src] can now be attached and modified.")
-
add_fingerprint(user)
/obj/item/weapon/weldingtool/proc/flamethrower_rods(obj/item/I, mob/user)
@@ -388,11 +373,9 @@
F.weldtool = src
add_fingerprint(user)
to_chat(user, "You add a rod to a welder, starting to build a flamethrower.")
-
user.put_in_hands(F)
else
to_chat(user, "You need one rod to start building a flamethrower!")
-
return
/obj/item/weapon/weldingtool/largetank
@@ -510,5 +493,4 @@
attack_self(mob/user as mob)
open = !open
to_chat(user, "\blue You [open?"open" : "close"] the conversion kit.")
-
update_icon()
diff --git a/code/game/objects/items/weapons/twohanded.dm b/code/game/objects/items/weapons/twohanded.dm
index 26444e0cef2..0e4f49de46a 100644
--- a/code/game/objects/items/weapons/twohanded.dm
+++ b/code/game/objects/items/weapons/twohanded.dm
@@ -44,10 +44,8 @@
user.update_inv_l_hand()
if(isrobot(user))
to_chat(user, "You free up your module.")
-
else
to_chat(user, "You are now carrying the [name] with one hand.")
-
if(unwieldsound)
playsound(loc, unwieldsound, 50, 1)
var/obj/item/weapon/twohanded/offhand/O = user.get_inactive_hand()
@@ -61,11 +59,9 @@
var/mob/living/carbon/human/H = user
if(H.species.is_small)
to_chat(user, "It's too heavy for you to wield fully.")
-
return
if(user.get_inactive_hand())
to_chat(user, "You need your other hand to be empty!")
-
return
wielded = 1
force = force_wielded
@@ -76,10 +72,8 @@
user.update_inv_l_hand()
if(isrobot(user))
to_chat(user, "You dedicate your module to [name].")
-
else
to_chat(user, "You grab the [name] with both hands.")
-
if (wieldsound)
playsound(loc, wieldsound, 50, 1)
var/obj/item/weapon/twohanded/offhand/O = new(user) ////Let's reserve his other hand~
@@ -92,7 +86,6 @@
//Cannot equip wielded items.
if(wielded)
to_chat(M, "Unwield the [name] first!")
-
return 0
return ..()
@@ -146,7 +139,6 @@
/obj/item/weapon/twohanded/required/mob_can_equip(M as mob, slot)
if(wielded)
to_chat(M, "[src.name] is too cumbersome to carry with anything but your hands!")
-
return 0
return ..()
@@ -233,7 +225,6 @@
..()
if((CLUMSY in user.mutations) && (wielded) &&prob(40))
to_chat(user, "\red You twirl around a bit before losing your balance and impaling yourself on the [src].")
-
user.take_organ_damage(20,25)
return
if((wielded) && prob(50))
@@ -278,13 +269,11 @@
if(hacked == 0)
hacked = 1
to_chat(user, "2XRNBW_ENGAGE")
-
blade_color = "rainbow"
update_icon()
else
to_chat(user, "It's starting to look like a triple rainbow - no, nevermind.")
-
//spears
/obj/item/weapon/twohanded/spear
icon_state = "spearglass0"
@@ -313,7 +302,6 @@
/obj/item/weapon/organ/head/attackby(var/obj/item/weapon/W, var/mob/living/user, params)
if(istype(W, /obj/item/weapon/twohanded/spear))
to_chat(user, "You stick the head onto the spear and stand it upright on the ground.")
-
var/obj/structure/headspear/HS = new /obj/structure/headspear(user.loc)
var/matrix/M = matrix()
src.transform = M
@@ -329,7 +317,6 @@
/obj/item/weapon/twohanded/spear/attackby(var/obj/item/I, var/mob/living/user)
if(istype(I, /obj/item/weapon/organ/head))
to_chat(user, "You stick the head onto the spear and stand it upright on the ground.")
-
var/obj/structure/headspear/HS = new /obj/structure/headspear(user.loc)
var/matrix/M = matrix()
I.transform = M
diff --git a/code/game/objects/items/weapons/vending_items.dm b/code/game/objects/items/weapons/vending_items.dm
index 13a1d15860e..9f22daf08f8 100644
--- a/code/game/objects/items/weapons/vending_items.dm
+++ b/code/game/objects/items/weapons/vending_items.dm
@@ -24,11 +24,9 @@
..(user)
if(charges)
to_chat(user, "It can restock [charges] item(s).")
-
else
to_chat(user, "It's empty!")
-
//NOTE I decided to go for about 1/3 of a machine's capacity
/obj/item/weapon/vending_refill/boozeomat
diff --git a/code/game/objects/items/weapons/weaponry.dm b/code/game/objects/items/weapons/weaponry.dm
index f3453803635..57e22a3eef4 100644
--- a/code/game/objects/items/weapons/weaponry.dm
+++ b/code/game/objects/items/weapons/weaponry.dm
@@ -13,7 +13,6 @@
/obj/item/weapon/banhammer/suicide_act(mob/user)
to_chat(viewers(user), "[user] is hitting \himself with the [src.name]! It looks like \he's trying to ban \himself from life.")
-
return (BRUTELOSS|FIRELOSS|TOXLOSS|OXYLOSS)
/obj/item/weapon/nullrod
@@ -33,7 +32,6 @@
suicide_act(mob/user)
to_chat(viewers(user), "[user] is impaling \himself with the [src.name]! It looks like \he's trying to commit suicide.")
-
return (BRUTELOSS|FIRELOSS)
/obj/item/weapon/nullrod/attack(mob/M as mob, mob/living/user as mob) //Paste from old-code to decult with a null rod.
@@ -50,7 +48,6 @@
if ((CLUMSY in user.mutations) && prob(50))
to_chat(user, "\red The rod slips out of your hand and hits your head.")
-
user.take_organ_damage(10)
user.Paralyse(20)
return
@@ -60,7 +57,6 @@
if(ishuman(M))
if(!M.mind.vampire.get_ability(/datum/vampire_passive/full))
to_chat(M, "The nullrod's power interferes with your own!")
-
M.mind.vampire.nullified = max(5, M.mind.vampire.nullified + 2)
..()
@@ -72,7 +68,6 @@
if(!transformed) // can't turn a sword into a sword.
var/obj/item/S = new transform_into()
to_chat(user, "You sheath the [src] into the [I]'s scabbard, transforming it into \a [S].")
-
user.unEquip(src)
qdel(src)
user.put_in_hands(S)
@@ -104,7 +99,6 @@
suicide_act(mob/user)
to_chat(viewers(user), "[user] is impaling \himself with the [src.name]! It looks like \he's trying to commit suicide.")
-
return(BRUTELOSS)
/obj/item/weapon/sord/attack(mob/living/carbon/M as mob, mob/living/carbon/user as mob)
@@ -131,7 +125,6 @@
suicide_act(mob/user)
to_chat(viewers(user), "[user] is falling on the [src.name]! It looks like \he's trying to commit suicide.")
-
return(BRUTELOSS)
/obj/item/weapon/claymore/ceremonial
@@ -155,7 +148,6 @@
suicide_act(mob/user)
to_chat(viewers(user), "[user] is slitting \his stomach open with the [src.name]! It looks like \he's trying to commit seppuku.")
-
return(BRUTELOSS)
/obj/item/weapon/katana/IsShield()
@@ -201,7 +193,6 @@ obj/item/weapon/wirerod/attackby(var/obj/item/I, mob/user as mob, params)
user.put_in_hands(S)
to_chat(user, "You fasten the glass shard to the top of the rod with the cable.")
-
qdel(I)
qdel(src)
@@ -214,7 +205,6 @@ obj/item/weapon/wirerod/attackby(var/obj/item/I, mob/user as mob, params)
user.put_in_hands(P)
to_chat(user, "You fasten the wirecutters to the top of the rod with the cable, prongs outward.")
-
qdel(I)
qdel(src)
diff --git a/code/game/objects/items/weapons/whetstone.dm b/code/game/objects/items/weapons/whetstone.dm
index 009262c39ce..d19c411899f 100644
--- a/code/game/objects/items/weapons/whetstone.dm
+++ b/code/game/objects/items/weapons/whetstone.dm
@@ -14,34 +14,27 @@
/obj/item/weapon/whetstone/attackby(obj/item/I, mob/user, params)
if(used)
to_chat(user, "The whetstone is too worn to use again.")
-
return
if(I.force >= max || I.throwforce >= max)//no esword sharpening
to_chat(user, "[I] is much too powerful to sharpen further.")
-
return
if(requires_sharpness && !I.edge)
to_chat(user, "You can only sharpen items that are already sharp, such as knives.")
-
return
if(istype(I, /obj/item/weapon/twohanded))//some twohanded items should still be sharpenable, but handle force differently. therefore i need this stuff
var/obj/item/weapon/twohanded/TH = I
if(TH.force_wielded >= max)
to_chat(user, "[TH] is much too powerful to sharpen further.")
-
return
if(TH.wielded)
to_chat(user, "[TH] must be unwielded before it can be sharpened.")
-
return
if(TH.force_wielded > initial(TH.force_wielded))
to_chat(user, "[TH] has already been refined before. It cannot be sharpened further.")
-
return
TH.force_wielded = Clamp(TH.force_wielded + increment, 0, max)//wieldforce is increased since normal force wont stay
if(I.force > initial(I.force))
to_chat(user, "[I] has already been refined before. It cannot be sharpened further.")
-
return
user.visible_message("[user] sharpens [I] with [src]!", "You sharpen [I], making it much more deadly than before.")
if(!requires_sharpness)
diff --git a/code/game/objects/items/weapons/wires.dm b/code/game/objects/items/weapons/wires.dm
index 98c2565cf72..abae807c80a 100644
--- a/code/game/objects/items/weapons/wires.dm
+++ b/code/game/objects/items/weapons/wires.dm
@@ -13,7 +13,6 @@
suicide_act(mob/user)
to_chat(viewers(user), "\red [user] is strangling \himself with the [src.name]! It looks like \he's trying to commit suicide.")
-
return (OXYLOSS)
@@ -30,10 +29,8 @@
if (src.laying)
src.laying = 0
to_chat(user, "\blue You're done laying wire!")
-
else
to_chat(user, "\blue You are not using this to lay wire...")
-
return
diff --git a/code/game/objects/structures.dm b/code/game/objects/structures.dm
index f9883fa1c9c..952a647f3aa 100644
--- a/code/game/objects/structures.dm
+++ b/code/game/objects/structures.dm
@@ -69,12 +69,10 @@
for(var/obj/O in range(0, src))
if(O.density == 1 && O != src && !istype(O, /obj/machinery/door/window)) //Ignores windoors, as those already block climbing, otherwise a windoor on the opposite side of a table would prevent climbing.
to_chat(user, "\red You cannot climb [src], as it is blocked by \a [O]!")
-
return
for(var/turf/T in range(0, src))
if(T.density == 1)
to_chat(user, "\red You cannot climb [src], as it is blocked by \a [T]!")
-
return
var/turf/T = src.loc
if(!T || !istype(T)) return
@@ -112,14 +110,12 @@
M.Weaken(5)
to_chat(M, "\red You topple as \the [src] moves under you!")
-
if(prob(25))
var/damage = rand(15,30)
var/mob/living/carbon/human/H = M
if(!istype(H))
to_chat(H, "\red You land heavily!")
-
M.adjustBruteLoss(damage)
return
@@ -139,13 +135,11 @@
if(affecting)
to_chat(M, "\red You land heavily on your [affecting.name]!")
-
affecting.take_damage(damage, 0)
if(affecting.parent)
affecting.parent.add_autopsy_data("Misadventure", damage)
else
to_chat(H, "\red You land heavily!")
-
H.adjustBruteLoss(damage)
H.UpdateDamageIcon()
@@ -159,13 +153,11 @@
return 0
if (user.restrained() || user.buckled)
to_chat(user, "You need your hands and legs free for this.")
-
return 0
if (user.stat || user.paralysis || user.sleeping || user.lying || user.weakened)
return 0
if (issilicon(user))
to_chat(user, "You need hands for this.")
-
return 0
return 1
diff --git a/code/game/objects/structures/artstuff.dm b/code/game/objects/structures/artstuff.dm
index 060da01f5e5..9251890dc6e 100644
--- a/code/game/objects/structures/artstuff.dm
+++ b/code/game/objects/structures/artstuff.dm
@@ -140,10 +140,8 @@ var/global/list/globalBlankCanvases[AMT_OF_CANVASES]
if(in_range(user, src) && get_turf(src) && user.client && ishuman(user)) //Let only humans be the robust zoominators. I'm too spooked other mobs trying to use it may get broken huds.
if(src.loc == user || get_turf(src) == get_turf(user))
to_chat(user, "[src] has to be on the ground to focus on it!")
-
return
to_chat(user, "You focus on \the [src].")
-
user.client.screen = list() //This is because screen objects go way past the view bounds we set, therefore not allowing stretch to fit to zoom in properly.
user.client.reset_stretch = winget(user.client, "mapwindow.map", "icon-size") //Remember previous icon-size
user.client.view = 3 //Decrease view
@@ -152,5 +150,4 @@ var/global/list/globalBlankCanvases[AMT_OF_CANVASES]
else
to_chat(user, "It is too far away.")
-
#undef AMT_OF_CANVASES
\ No newline at end of file
diff --git a/code/game/objects/structures/barsign.dm b/code/game/objects/structures/barsign.dm
index e70050d348a..a1b4c51d702 100644
--- a/code/game/objects/structures/barsign.dm
+++ b/code/game/objects/structures/barsign.dm
@@ -51,11 +51,9 @@
/obj/structure/sign/barsign/attack_hand(mob/user as mob)
if (!src.allowed(user))
to_chat(user, "Access denied.")
-
return
if (broken)
to_chat(user, "The controls seem unresponsive.")
-
return
pick_sign()
@@ -65,17 +63,14 @@
/obj/structure/sign/barsign/attackby(var/obj/item/I, var/mob/user)
if(!allowed(user))
to_chat(user, "Access denied.")
-
return
if( istype(I, /obj/item/weapon/screwdriver))
if(!panel_open)
to_chat(user, "You open the maintenance panel.")
-
set_sign(new /datum/barsign/hiddensigns/signoff)
panel_open = 1
else
to_chat(user, "You close the maintenance panel.")
-
if(!broken && !emagged)
set_sign(pick(barsigns))
else if(emagged)
@@ -88,23 +83,19 @@
var/obj/item/stack/cable_coil/C = I
if(emagged) //Emagged, not broken by EMP
to_chat(user, "Sign has been damaged beyond repair!")
-
return
else if(!broken)
to_chat(user, "This sign is functioning properly!")
-
return
if(C.use(2))
to_chat(user, "You replace the burnt wiring.")
-
broken = 0
else
to_chat(user, "You need at least two lengths of cable!")
-
/obj/structure/sign/barsign/emp_act(severity)
set_sign(new /datum/barsign/hiddensigns/empbarsign)
broken = 1
@@ -115,10 +106,8 @@
/obj/structure/sign/barsign/emag_act(mob/user)
if(broken || emagged)
to_chat(user, "Nothing interesting happens!")
-
return
to_chat(user, "You emag the barsign. Takeover in progress...")
-
sleep(100) //10 seconds
set_sign(new /datum/barsign/hiddensigns/syndibarsign)
emagged = 1
diff --git a/code/game/objects/structures/bedsheet_bin.dm b/code/game/objects/structures/bedsheet_bin.dm
index 1a247e06f88..f7e178716c5 100644
--- a/code/game/objects/structures/bedsheet_bin.dm
+++ b/code/game/objects/structures/bedsheet_bin.dm
@@ -170,16 +170,13 @@ LINEN BINS
..(user)
if(amount < 1)
to_chat(user, "There are no bed sheets in the bin.")
-
return
if(amount == 1)
to_chat(user, "There is one bed sheet in the bin.")
-
return
to_chat(user, "There are [amount] bed sheets in the bin.")
-
/obj/structure/bedsheetbin/update_icon()
switch(amount)
if(0) icon_state = "linenbin-empty"
@@ -194,7 +191,6 @@ LINEN BINS
sheets.Add(I)
amount++
to_chat(user, "You put [I] in [src].")
-
else if(amount && !hidden && I.w_class < 4) //make sure there's sheets to hide it among, make sure nothing else is hidden in there.
user.drop_item()
I.loc = src
@@ -203,7 +199,6 @@ LINEN BINS
-
/obj/structure/bedsheetbin/attack_hand(mob/user as mob)
if(amount >= 1)
amount--
@@ -220,11 +215,9 @@ LINEN BINS
user.put_in_hands(B)
to_chat(user, "You take [B] out of [src].")
-
if(hidden)
hidden.loc = user.loc
to_chat(user, "[hidden] falls out of [B]!")
-
hidden = null
@@ -245,7 +238,6 @@ LINEN BINS
B.loc = loc
to_chat(user, "You telekinetically remove [B] from [src].")
-
update_icon()
if(hidden)
diff --git a/code/game/objects/structures/coathanger.dm b/code/game/objects/structures/coathanger.dm
index 5fb9bfa63e9..a91b5aa3564 100644
--- a/code/game/objects/structures/coathanger.dm
+++ b/code/game/objects/structures/coathanger.dm
@@ -26,7 +26,6 @@
update_icon()
else
to_chat(user, "You cannot hang [W] on [src]")
-
return ..()
/obj/structure/coatrack/CanPass(atom/movable/mover, turf/target, height=0, air_group=0)
diff --git a/code/game/objects/structures/crates_lockers/closets.dm b/code/game/objects/structures/crates_lockers/closets.dm
index a7c2238976f..87457fd791d 100644
--- a/code/game/objects/structures/crates_lockers/closets.dm
+++ b/code/game/objects/structures/crates_lockers/closets.dm
@@ -136,7 +136,6 @@
/obj/structure/closet/proc/toggle(mob/user as mob)
if(!(src.opened ? src.close() : src.open()))
to_chat(user, "It won't budge!")
-
return
// this should probably use dump_contents()
@@ -195,7 +194,6 @@
if(E.rcell && (E.rcell.charge >= E.chargecost))
if(!(src.z in config.contact_levels))
to_chat(user, "The rapid-crate-sender can't locate any telepads!")
-
return
if(E.mode == 0)
if(!E.teleporting)
@@ -214,7 +212,6 @@
E.pad = L[desc]
playsound(E.loc, 'sound/machines/click.ogg', 50, 1)
to_chat(user, "\blue Teleporting [src.name]...")
-
E.teleporting = 1
if(!do_after(user, 50, target = src))
E.teleporting = 0
@@ -222,7 +219,6 @@
E.teleporting = 0
if(user in contents)
to_chat(user, "Error: User located in container--aborting for safety.")
-
playsound(E.loc, 'sound/machines/buzz-sigh.ogg', 50, 1)
return
var/datum/effect/system/spark_spread/s = new /datum/effect/system/spark_spread
@@ -231,7 +227,6 @@
do_teleport(src, E.pad, 0)
E.rcell.use(E.chargecost)
to_chat(user, "Teleport successful. [round(E.rcell.charge/E.chargecost)] charge\s left.")
-
return
else
E.rand_x = rand(50,200)
@@ -239,7 +234,6 @@
var/L = locate(E.rand_x, E.rand_y, 6)
playsound(E.loc, 'sound/machines/click.ogg', 50, 1)
to_chat(user, "\blue Teleporting [src.name]...")
-
E.teleporting = 1
if(!do_after(user, 50, target = src))
E.teleporting = 0
@@ -247,7 +241,6 @@
E.teleporting = 0
if(user in contents)
to_chat(user, "Error: User located in container--aborting for safety.")
-
playsound(E.loc, 'sound/machines/buzz-sigh.ogg', 50, 1)
return
var/datum/effect/system/spark_spread/s = new /datum/effect/system/spark_spread
@@ -256,11 +249,9 @@
do_teleport(src, L)
E.rcell.use(E.chargecost)
to_chat(user, "Teleport successful. [round(E.rcell.charge/E.chargecost)] charge\s left.")
-
return
else
to_chat(user, "Out of charges.")
-
return
if(src.opened)
@@ -272,7 +263,6 @@
var/obj/item/weapon/weldingtool/WT = W
if(!WT.remove_fuel(0,user))
to_chat(user, "You need more welding fuel to complete this task.")
-
return
new /obj/item/stack/sheet/metal(src.loc)
for(var/mob/M in viewers(src))
@@ -291,11 +281,9 @@
var/obj/item/weapon/weldingtool/WT = W
if(src == user.loc)
to_chat(user, "You can not [welded?"unweld":"weld"] the locker from inside.")
-
return
if(!WT.remove_fuel(0,user))
to_chat(user, "You need more welding fuel to complete this task.")
-
return
src.welded = !src.welded
src.update_icon()
@@ -339,12 +327,10 @@
if(!src.open())
to_chat(user, "It won't budge!")
-
if(!lastbang)
lastbang = 1
for (var/mob/M in hearers(src, null))
to_chat(M, text("BANG, bang!", max(0, 5 - get_dist(src, M))))
-
spawn(30)
lastbang = 0
@@ -358,7 +344,6 @@
if(!src.toggle())
to_chat(usr, "It won't budge!")
-
/obj/structure/closet/verb/verb_toggleopen()
set src in oview(1)
set category = null
@@ -373,7 +358,6 @@
else
to_chat(usr, "This mob type can't use this verb.")
-
/obj/structure/closet/update_icon()//Putting the welded stuff in updateicon() so it's easy to overwrite for special cases (Fridges, cabinets, and whatnot)
overlays.Cut()
if(!opened)
@@ -406,7 +390,6 @@
L.changeNext_move(CLICK_CD_BREAKOUT)
L.last_special = world.time + CLICK_CD_BREAKOUT
to_chat(L, "You lean on the back of \the [src] and start pushing the door open. (this will take about [breakout_time] minutes)")
-
for(var/mob/O in viewers(usr.loc))
O.show_message("The [src] begins to shake violently!", 1)
@@ -424,7 +407,6 @@
welded = 0
update_icon()
to_chat(usr, "You successfully break out!")
-
for(var/mob/O in viewers(L.loc))
O.show_message("\the [usr] successfully broke out of \the [src]!", 1)
if(istype(src.loc, /obj/structure/bigDelivery)) //nullspace ect.. read the comment above
diff --git a/code/game/objects/structures/crates_lockers/closets/cardboardbox.dm b/code/game/objects/structures/crates_lockers/closets/cardboardbox.dm
index 756fd860361..824cff35ece 100644
--- a/code/game/objects/structures/crates_lockers/closets/cardboardbox.dm
+++ b/code/game/objects/structures/crates_lockers/closets/cardboardbox.dm
@@ -35,7 +35,6 @@
L.do_alert_animation(L)
egged = 1
to_chat(alerted, sound('sound/machines/chime.ogg'))
-
..()
/mob/living/proc/do_alert_animation(atom/A)
diff --git a/code/game/objects/structures/crates_lockers/closets/fireaxe.dm b/code/game/objects/structures/crates_lockers/closets/fireaxe.dm
index c67b4e7f60d..f74f603df54 100644
--- a/code/game/objects/structures/crates_lockers/closets/fireaxe.dm
+++ b/code/game/objects/structures/crates_lockers/closets/fireaxe.dm
@@ -24,12 +24,10 @@
if (isrobot(user) || src.locked)
if(istype(O, /obj/item/device/multitool))
to_chat(user, "\red Resetting circuitry...")
-
playsound(user, 'sound/machines/lockreset.ogg', 50, 1)
if(do_after(user, 20, target = src))
src.locked = 0
to_chat(user, " You disable the locking modules.")
-
update_icon()
return
else if(istype(O, /obj/item/weapon))
@@ -46,7 +44,6 @@
playsound(user, 'sound/effects/Glasshit.ogg', 100, 1) //We don't want this playing every time
if(W.force < 15)
to_chat(user, "\blue The cabinet's protective glass glances off the hit.")
-
else
src.hitstaken++
if(src.hitstaken == 4)
@@ -60,13 +57,11 @@
if(!fireaxe)
if(O:wielded)
to_chat(user, "\red Unwield the axe first.")
-
return
fireaxe = O
user.drop_item(O)
src.contents += O
to_chat(user, "\blue You place the fire axe back in the [src.name].")
-
update_icon()
else
if(src.smashed)
@@ -90,16 +85,13 @@
return
else
to_chat(user, "\red Resetting circuitry...")
-
sleep(50)
src.locked = 1
to_chat(user, "\blue You re-enable the locking modules.")
-
playsound(user, 'sound/machines/lockenable.ogg', 50, 1)
if(do_after(user,20, target = src))
src.locked = 1
to_chat(user, " You re-enable the locking modules.")
-
return
else
localopened = !localopened
@@ -121,14 +113,12 @@
if(src.locked)
to_chat(user, "\red The cabinet won't budge!")
-
return
if(localopened)
if(fireaxe)
user.put_in_hands(fireaxe)
fireaxe = null
to_chat(user, "\blue You take the fire axe from the [name].")
-
src.add_fingerprint(user)
update_icon()
else
@@ -156,7 +146,6 @@
if(localopened && fireaxe)
fireaxe.forceMove(loc)
to_chat(user, "\blue You telekinetically remove the fire axe.")
-
fireaxe = null
update_icon()
return
@@ -169,10 +158,8 @@
if (isrobot(usr) || src.locked || src.smashed)
if(src.locked)
to_chat(usr, "\red The cabinet won't budge!")
-
else if(src.smashed)
to_chat(usr, "\blue The protective glass is broken!")
-
return
localopened = !localopened
@@ -190,28 +177,22 @@
usr.put_in_hands(fireaxe)
fireaxe = null
to_chat(usr, "\blue You take the Fire axe from the [name].")
-
else
to_chat(usr, "\blue The [src.name] is empty.")
-
else
to_chat(usr, "\blue The [src.name] is closed.")
-
update_icon()
attack_ai(mob/user as mob)
if(src.smashed)
to_chat(user, "\red The security of the cabinet is compromised.")
-
return
else
locked = !locked
if(locked)
to_chat(user, "\red Cabinet locked.")
-
else
to_chat(user, "\blue Cabinet unlocked.")
-
return
update_icon() //Template: fireaxe[has fireaxe][is opened][hits taken][is smashed]. If you want the opening or closing animations, add "opening" or "closing" right after the numbers
diff --git a/code/game/objects/structures/crates_lockers/closets/secure/personal.dm b/code/game/objects/structures/crates_lockers/closets/secure/personal.dm
index be590c3028e..1de1f8d8440 100644
--- a/code/game/objects/structures/crates_lockers/closets/secure/personal.dm
+++ b/code/game/objects/structures/crates_lockers/closets/secure/personal.dm
@@ -67,13 +67,11 @@
else if(istype(W, /obj/item/weapon/card/id))
if(src.broken)
to_chat(user, "\red It appears to be broken.")
-
return
var/obj/item/weapon/card/id/I = W
if(!I || !I.registered_name) return
if(src == user.loc)
to_chat(user, "You can't reach the lock from inside.")
-
else if(src.allowed(user) || !src.registered_name || (istype(I) && (src.registered_name == I.registered_name)))
//they can open all lockers, or nobody owns this, or they own this locker
src.locked = !( src.locked )
@@ -89,10 +87,8 @@
src.desc = "Owned by [I.registered_name]."
else
to_chat(user, "\red Access Denied")
-
else if((istype(W, /obj/item/weapon/card/emag) || istype(W, /obj/item/weapon/melee/energy/blade)) && !broken)
emag_act(user)
else
to_chat(user, "\red Access Denied")
-
return
diff --git a/code/game/objects/structures/crates_lockers/closets/secure/secure_closets.dm b/code/game/objects/structures/crates_lockers/closets/secure/secure_closets.dm
index e756a8961c5..fc7563e6b3a 100644
--- a/code/game/objects/structures/crates_lockers/closets/secure/secure_closets.dm
+++ b/code/game/objects/structures/crates_lockers/closets/secure/secure_closets.dm
@@ -49,27 +49,22 @@
/obj/structure/closet/secure_closet/proc/togglelock(mob/user as mob)
if(src.opened)
to_chat(user, "Close the locker first.")
-
return
if(src.broken)
to_chat(user, "The locker appears to be broken.")
-
return
if(user.loc == src)
to_chat(user, "You can't reach the lock from inside.")
-
return
if(src.allowed(user))
src.locked = !src.locked
for(var/mob/O in viewers(user, 3))
if((O.client && !( O.blinded )))
to_chat(O, "The locker has been [locked ? null : "un"]locked by [user].")
-
update_icon()
else
to_chat(user, "Access Denied")
-
/obj/structure/closet/secure_closet/attackby(obj/item/weapon/W as obj, mob/user as mob, params)
if(istype(W, /obj/item/weapon/rcs))
return ..()
@@ -80,7 +75,6 @@
src.MouseDrop_T(W:affecting, user) //act like they were dragged onto the closet
else
to_chat(user, "The locker is too small to stuff [W:affecting] into!")
-
if(isrobot(user))
return
user.drop_item()
@@ -102,7 +96,6 @@
flick(icon_broken, src)
to_chat(user, "You unlock \the [src].")
-
/obj/structure/closet/secure_closet/attack_hand(mob/user as mob)
src.add_fingerprint(user)
if(src.locked)
@@ -124,7 +117,6 @@
else
to_chat(usr, "This mob type can't use this verb.")
-
/obj/structure/closet/secure_closet/update_icon()//Putting the welded stuff in updateicon() so it's easy to overwrite for special cases (Fridges, cabinets, and whatnot)
overlays.Cut()
if(!opened)
@@ -150,7 +142,6 @@
L.changeNext_move(CLICK_CD_BREAKOUT)
L.last_special = world.time + CLICK_CD_BREAKOUT
to_chat(L, "You lean on the back of \the [src] and start pushing the door open. (this will take about [breakout_time] minutes)")
-
for(var/mob/O in viewers(src))
O.show_message("The [src] begins to shake violently!", 1)
@@ -176,7 +167,6 @@
welded = 0
update_icon()
to_chat(usr, "\red You successfully break out!")
-
for(var/mob/O in viewers(L.loc))
O.show_message("\the [usr] successfully broke out of \the [src]!", 1)
if(istype(src.loc, /obj/structure/bigDelivery)) //Do this to prevent contents from being opened into nullspace (read: bluespace)
diff --git a/code/game/objects/structures/crates_lockers/closets/statue.dm b/code/game/objects/structures/crates_lockers/closets/statue.dm
index a96ce0b2ba8..a315e598819 100644
--- a/code/game/objects/structures/crates_lockers/closets/statue.dm
+++ b/code/game/objects/structures/crates_lockers/closets/statue.dm
@@ -68,7 +68,6 @@
for(var/mob/M in contents)
S.mind.transfer_to(M)
to_chat(M, "As the animating magic wears off you feel yourself coming back to your senses. You are yourself again!")
-
break
qdel(S)
diff --git a/code/game/objects/structures/crates_lockers/crates.dm b/code/game/objects/structures/crates_lockers/crates.dm
index 749ede4270c..e91df4762df 100644
--- a/code/game/objects/structures/crates_lockers/crates.dm
+++ b/code/game/objects/structures/crates_lockers/crates.dm
@@ -86,7 +86,6 @@
if(E.rcell && (E.rcell.charge >= E.chargecost))
if(!(src.z in config.player_levels))
to_chat(user, "The rapid-crate-sender can't locate any telepads!")
-
return
if(E.mode == 0)
if(!E.teleporting)
@@ -105,7 +104,6 @@
E.pad = L[desc]
playsound(E.loc, 'sound/machines/click.ogg', 50, 1)
to_chat(user, "\blue Teleporting [src.name]...")
-
E.teleporting = 1
if(!do_after(user, 50, target = src))
E.teleporting = 0
@@ -117,7 +115,6 @@
do_teleport(src, E.pad, 0)
E.rcell.use(E.chargecost)
to_chat(user, "Teleport successful. [round(E.rcell.charge/E.chargecost)] charge\s left.")
-
return
else
E.rand_x = rand(50,200)
@@ -125,7 +122,6 @@
var/L = locate(E.rand_x, E.rand_y, 6)
playsound(E.loc, 'sound/machines/click.ogg', 50, 1)
to_chat(user, "\blue Teleporting [src.name]...")
-
E.teleporting = 1
if(!do_after(user, 50, target = src))
E.teleporting = 0
@@ -137,11 +133,9 @@
do_teleport(src, L)
E.rcell.use(E.chargecost)
to_chat(user, "Teleport successful. [round(E.rcell.charge/E.chargecost)] charge\s left.")
-
return
else
to_chat(user, "Out of charges.")
-
return
if(opened)
@@ -149,7 +143,6 @@
return
if(!user.drop_item()) //couldn't drop the item
to_chat(user, "\The [W] is stuck to your hand, you cannot put it in \the [src]!")
-
return
if(W)
W.forceMove(loc)
@@ -158,10 +151,8 @@
else if(istype(W, /obj/item/stack/cable_coil))
if(rigged)
to_chat(user, "[src] is already rigged!")
-
return
to_chat(user, "You rig [src].")
-
user.drop_item()
qdel(W)
rigged = 1
@@ -169,14 +160,12 @@
else if(istype(W, /obj/item/device/radio/electropack))
if(rigged)
to_chat(user, "You attach [W] to [src].")
-
user.drop_item()
W.forceMove(src)
return
else if(istype(W, /obj/item/weapon/wirecutters))
if(rigged)
to_chat(user, "You cut away the wiring.")
-
playsound(loc, 'sound/items/Wirecutter.ogg', 100, 1)
rigged = 0
return
@@ -205,7 +194,6 @@
/obj/structure/closet/crate/attack_hand(mob/user as mob)
if(manifest)
to_chat(user, "You tear the manifest off of the crate.")
-
playsound(src.loc, 'sound/items/poster_ripped.ogg', 75, 1)
manifest.forceMove(loc)
if(ishuman(user))
@@ -266,23 +254,19 @@
/obj/structure/closet/crate/secure/proc/togglelock(mob/user as mob)
if(src.opened)
to_chat(user, "Close the crate first.")
-
return
if(src.broken)
to_chat(user, "The crate appears to be broken.")
-
return
if(src.allowed(user))
src.locked = !src.locked
for(var/mob/O in viewers(user, 3))
if((O.client && !( O.blinded )))
to_chat(O, "The crate has been [locked ? null : "un"]locked by [user].")
-
update_icon()
else
to_chat(user, "Access Denied")
-
/obj/structure/closet/crate/secure/verb/verb_togglelock()
set src in oview(1) // One square distance
set category = null
@@ -297,11 +281,9 @@
else
to_chat(usr, "This mob type can't use this verb.")
-
/obj/structure/closet/crate/secure/attack_hand(mob/user as mob)
if(manifest)
to_chat(user, "You tear the manifest off of the crate.")
-
playsound(src.loc, 'sound/items/poster_ripped.ogg', 75, 1)
manifest.forceMove(loc)
if(ishuman(user))
@@ -335,7 +317,6 @@
src.broken = 1
update_icon()
to_chat(user, "You unlock \the [src].")
-
return
/obj/structure/closet/crate/secure/emp_act(severity)
diff --git a/code/game/objects/structures/crates_lockers/crittercrate.dm b/code/game/objects/structures/crates_lockers/crittercrate.dm
index 5b432a63f00..6badf7a6535 100644
--- a/code/game/objects/structures/crates_lockers/crittercrate.dm
+++ b/code/game/objects/structures/crates_lockers/crittercrate.dm
@@ -36,7 +36,6 @@
if(src.loc == user.loc)
to_chat(user, "It won't budge!")
-
toggle()
else
toggle()
diff --git a/code/game/objects/structures/crates_lockers/largecrate.dm b/code/game/objects/structures/crates_lockers/largecrate.dm
index e413a558a9e..4f5eecd0f23 100644
--- a/code/game/objects/structures/crates_lockers/largecrate.dm
+++ b/code/game/objects/structures/crates_lockers/largecrate.dm
@@ -19,7 +19,6 @@
/obj/structure/largecrate/attack_hand(mob/user as mob)
if(manifest)
to_chat(user, "You tear the manifest off of the crate.")
-
playsound(src.loc, 'sound/items/poster_ripped.ogg', 75, 1)
manifest.forceMove(loc)
if(ishuman(user))
@@ -29,7 +28,6 @@
return
else
to_chat(user, "You need a crowbar to pry this open!")
-
return
/obj/structure/largecrate/attackby(obj/item/weapon/W as obj, mob/user as mob, params)
diff --git a/code/game/objects/structures/crates_lockers/walllocker.dm b/code/game/objects/structures/crates_lockers/walllocker.dm
index f61584bc6af..d07ee623d38 100644
--- a/code/game/objects/structures/crates_lockers/walllocker.dm
+++ b/code/game/objects/structures/crates_lockers/walllocker.dm
@@ -31,11 +31,9 @@
return //activate emergency lockers. This fixes that. (Does this make sense, the AI can't call attack_hand, can it? --Mloc)
if(!amount)
to_chat(usr, "
"
for(var/obj/item/weapon/paper/P in src)
@@ -69,7 +67,6 @@
else
to_chat(usr, "You'll need something to write with!")
-
if(href_list["read"])
var/obj/item/weapon/paper/P = locate(href_list["read"])
if((P && P.loc == src))
diff --git a/code/game/objects/structures/safe.dm b/code/game/objects/structures/safe.dm
index c34e36404cd..ec2ebc8848a 100644
--- a/code/game/objects/structures/safe.dm
+++ b/code/game/objects/structures/safe.dm
@@ -43,10 +43,8 @@ FLOOR SAFES
if(user && canhear)
if(tumbler_1_pos == tumbler_1_open)
to_chat(user, "You hear a [pick("tonk", "krunk", "plunk")] from [src].")
-
if(tumbler_2_pos == tumbler_2_open)
to_chat(user, "You hear a [pick("tink", "krink", "plink")] from [src].")
-
if(tumbler_1_pos == tumbler_1_open && tumbler_2_pos == tumbler_2_open)
if(user) visible_message("[pick("Spring", "Sprang", "Sproing", "Clunk", "Krunk")]!")
return 1
@@ -98,14 +96,12 @@ FLOOR SAFES
if(href_list["open"])
if(check_unlocked())
to_chat(user, "You [open ? "close" : "open"] [src].")
-
open = !open
update_icon()
updateUsrDialog()
return
else
to_chat(user, "You can't [open ? "close" : "open"] [src], the lock is engaged!")
-
return
if(href_list["decrement"])
@@ -114,12 +110,10 @@ FLOOR SAFES
tumbler_1_pos = decrement(tumbler_1_pos)
if(canhear)
to_chat(user, "You hear a [pick("clack", "scrape", "clank")] from [src].")
-
if(tumbler_1_pos == tumbler_2_pos + 37 || tumbler_1_pos == tumbler_2_pos - 35)
tumbler_2_pos = decrement(tumbler_2_pos)
if(canhear)
to_chat(user, "You hear a [pick("click", "chink", "clink")] from [src].")
-
check_unlocked(user, canhear)
updateUsrDialog()
return
@@ -130,12 +124,10 @@ FLOOR SAFES
tumbler_1_pos = increment(tumbler_1_pos)
if(canhear)
to_chat(user, "You hear a [pick("clack", "scrape", "clank")] from [src].")
-
if(tumbler_1_pos == tumbler_2_pos - 37 || tumbler_1_pos == tumbler_2_pos + 35)
tumbler_2_pos = increment(tumbler_2_pos)
if(canhear)
to_chat(user, "You hear a [pick("click", "chink", "clink")] from [src].")
-
check_unlocked(user, canhear)
updateUsrDialog()
return
@@ -156,21 +148,17 @@ FLOOR SAFES
space += I.w_class
if(!user.drop_item())
to_chat(user, "\The [I] is stuck to your hand, you cannot put it in the safe!")
-
return
I.loc = src
to_chat(user, "You put [I] in [src].")
-
updateUsrDialog()
return
else
to_chat(user, "[I] won't fit in [src].")
-
return
else
if(istype(I, /obj/item/clothing/accessory/stethoscope))
to_chat(user, "Hold [I] in one of your hands while you manipulate the dial!")
-
return
diff --git a/code/game/objects/structures/signs.dm b/code/game/objects/structures/signs.dm
index 82c8ed08829..24ea6b5a358 100644
--- a/code/game/objects/structures/signs.dm
+++ b/code/game/objects/structures/signs.dm
@@ -26,7 +26,6 @@
/obj/structure/sign/attackby(obj/item/tool as obj, mob/user as mob) //deconstruction
if(istype(tool, /obj/item/weapon/screwdriver) && !istype(src, /obj/structure/sign/double))
to_chat(user, "You unfasten the sign with your [tool].")
-
var/obj/item/sign/S = new(src.loc)
S.name = name
S.desc = desc
@@ -63,7 +62,6 @@
S.desc = desc
S.icon_state = sign_state
to_chat(user, "You fasten \the [S] with your [tool].")
-
qdel(src)
else ..()
diff --git a/code/game/objects/structures/spirit_board.dm b/code/game/objects/structures/spirit_board.dm
index cb26f8ca054..cb29dec1926 100644
--- a/code/game/objects/structures/spirit_board.dm
+++ b/code/game/objects/structures/spirit_board.dm
@@ -17,12 +17,10 @@
if(A)
to_chat(O, "\blue Someone has begun playing with a [src.name] in [A.name]!. (Teleport)")
-
/obj/structure/spirit_board/examine(mob/user)
..(user)
to_chat(user, "[initial(desc)] The planchette is sitting at \"[planchette]\".")
-
/obj/structure/spirit_board/attack_hand(mob/user as mob)
if(..())
return
@@ -72,7 +70,6 @@
if(light_amount > 2)
to_chat(M, "It's too bright here to use [src.name]!")
-
return 0
//mobs in range check
@@ -81,13 +78,11 @@
if(L.ckey && L.client)
if((world.time - L.client.inactivity) < (world.time - 300) || L.stat != CONSCIOUS || L.restrained())//no playing with braindeads or corpses or handcuffed dudes.
to_chat(M, "[L] doesn't seem to be paying attention...")
-
else
users_in_range++
if(users_in_range < 2)
to_chat(M, "There aren't enough people to use the [src.name]!")
-
return 0
return 1
\ No newline at end of file
diff --git a/code/game/objects/structures/stool_bed_chair_nest/alien_nests.dm b/code/game/objects/structures/stool_bed_chair_nest/alien_nests.dm
index 859b4ba0186..3f5decad98e 100644
--- a/code/game/objects/structures/stool_bed_chair_nest/alien_nests.dm
+++ b/code/game/objects/structures/stool_bed_chair_nest/alien_nests.dm
@@ -35,7 +35,6 @@
if(!do_after(M, 1200, target = src))
if(M && M.buckled)
to_chat(M, "You fail to escape \the [src]!")
-
return
if(!M.buckled)
return
diff --git a/code/game/objects/structures/stool_bed_chair_nest/bed.dm b/code/game/objects/structures/stool_bed_chair_nest/bed.dm
index d61c34e48bc..ecf2324673d 100644
--- a/code/game/objects/structures/stool_bed_chair_nest/bed.dm
+++ b/code/game/objects/structures/stool_bed_chair_nest/bed.dm
@@ -119,11 +119,9 @@
/obj/item/roller_holder/attack_self(mob/user as mob)
if(!held)
to_chat(user, " The rack is empty.")
-
return
to_chat(user, "You deploy the roller bed.")
-
var/obj/structure/stool/bed/roller/R = new /obj/structure/stool/bed/roller(user.loc)
R.add_fingerprint(user)
qdel(held)
diff --git a/code/game/objects/structures/stool_bed_chair_nest/chairs.dm b/code/game/objects/structures/stool_bed_chair_nest/chairs.dm
index b41ed314674..621f3a9d78e 100644
--- a/code/game/objects/structures/stool_bed_chair_nest/chairs.dm
+++ b/code/game/objects/structures/stool_bed_chair_nest/chairs.dm
@@ -22,7 +22,6 @@
var/obj/item/assembly/shock_kit/SK = W
if(!SK.status)
to_chat(user, "[SK] is not ready to be attached!")
-
return
user.drop_item()
var/obj/structure/stool/bed/chair/e_chair/E = new /obj/structure/stool/bed/chair/e_chair(src.loc)
diff --git a/code/game/objects/structures/tables_racks.dm b/code/game/objects/structures/tables_racks.dm
index 90d8b578b83..ad478bb3893 100644
--- a/code/game/objects/structures/tables_racks.dm
+++ b/code/game/objects/structures/tables_racks.dm
@@ -200,11 +200,9 @@
var/obj/item/weapon/grab/G = I
if(G.affecting.buckled)
to_chat(user, "[G.affecting] is buckled to [G.affecting.buckled]!")
-
return 0
if(G.state < GRAB_AGGRESSIVE)
to_chat(user, "You need a better grip to do that!")
-
return 0
if(!G.confirm())
return 0
@@ -224,7 +222,6 @@
if (istype(W, /obj/item/weapon/wrench))
to_chat(user, "\blue Now disassembling table")
-
playsound(src.loc, 'sound/items/Ratchet.ogg', 50, 1)
if(do_after(user,50, target = src))
destroy()
@@ -283,7 +280,6 @@
if(!flip(get_cardinal_dir(usr,src)))
to_chat(usr, "It won't budge.")
-
return
usr.visible_message("[usr] flips \the [src]!")
@@ -301,7 +297,6 @@
if (!unflip())
to_chat(usr, "It won't budge.")
-
return
@@ -389,7 +384,6 @@
if (istype(I, /obj/item/weapon/wrench))
to_chat(user, "\blue Now disassembling the wooden table")
-
playsound(src.loc, 'sound/items/Ratchet.ogg', 50, 1)
sleep(50)
new /obj/item/weapon/table_parts/wood( src.loc )
@@ -441,7 +435,6 @@
if (istype(W, /obj/item/weapon/wrench))
to_chat(user, "\blue Now disassembling the wooden table")
-
playsound(src.loc, 'sound/items/Ratchet.ogg', 50, 1)
sleep(50)
new /obj/item/weapon/table_parts/wood( src.loc )
@@ -490,27 +483,22 @@
var/obj/item/stack/sheet/glass/G = I
if(G.amount >= 2)
to_chat(user, "You start to add the glass to \the [src].")
-
if(do_after(user, 10, target = src))
G.use(2)
to_chat(user, "You add the glass to \the [src].")
-
playsound(get_turf(src), 'sound/items/Deconstruct.ogg', 50, 1)
new /obj/structure/table/glass(loc)
qdel(src)
else
to_chat(user, "You don't have enough glass! You need at least 2 sheets.")
-
return
if(iswrench(I))
to_chat(user, "You start to deconstruct \the [src].")
-
playsound(src.loc, 'sound/items/Ratchet.ogg', 75, 1)
if(do_after(user, 10, target = src))
playsound(src.loc, 'sound/items/Deconstruct.ogg', 75, 1)
to_chat(user, "You dismantle \the [src].")
-
new /obj/item/stack/sheet/metal(loc)
new /obj/item/stack/sheet/metal(loc)
qdel(src)
@@ -546,7 +534,6 @@
if (istype(I, /obj/item/weapon/wrench))
to_chat(user, "\blue Now disassembling the glass table")
-
playsound(src.loc, 'sound/items/Ratchet.ogg', 50, 1)
sleep(50)
new /obj/item/weapon/table_parts/glass( src.loc )
@@ -609,21 +596,17 @@
if(WT.remove_fuel(0, user))
if(src.status == 2)
to_chat(user, "\blue Now weakening the reinforced table")
-
playsound(src.loc, 'sound/items/Welder.ogg', 50, 1)
if (do_after(user, 50, target = src))
if(!src || !WT.isOn()) return
to_chat(user, "\blue Table weakened")
-
src.status = 1
else
to_chat(user, "\blue Now strengthening the reinforced table")
-
playsound(src.loc, 'sound/items/Welder.ogg', 50, 1)
if (do_after(user, 50, target = src))
if(!src || !WT.isOn()) return
to_chat(user, "\blue Table strengthened")
-
src.status = 2
return
return
diff --git a/code/game/objects/structures/tank_dispenser.dm b/code/game/objects/structures/tank_dispenser.dm
index fcfa8161a75..ab1c2830933 100644
--- a/code/game/objects/structures/tank_dispenser.dm
+++ b/code/game/objects/structures/tank_dispenser.dm
@@ -50,10 +50,8 @@
oxytanks.Add(I)
oxygentanks++
to_chat(user, "You put [I] in [src].")
-
else
to_chat(user, "[src] is full.")
-
updateUsrDialog()
return
if(istype(I, /obj/item/weapon/tank/plasma))
@@ -63,20 +61,16 @@
platanks.Add(I)
plasmatanks++
to_chat(user, "You put [I] in [src].")
-
else
to_chat(user, "[src] is full.")
-
updateUsrDialog()
return
if(istype(I, /obj/item/weapon/wrench))
if(anchored)
to_chat(user, "You lean down and unwrench [src].")
-
anchored = 0
else
to_chat(user, "You wrench [src] into place.")
-
anchored = 1
return
@@ -95,7 +89,6 @@
O = new /obj/item/weapon/tank/oxygen(loc)
O.loc = loc
to_chat(usr, "You take [O] out of [src].")
-
oxygentanks--
update_icon()
if(href_list["plasma"])
@@ -108,7 +101,6 @@
P = new /obj/item/weapon/tank/plasma(loc)
P.loc = loc
to_chat(usr, "You take [P] out of [src].")
-
plasmatanks--
update_icon()
add_fingerprint(usr)
diff --git a/code/game/objects/structures/target_stake.dm b/code/game/objects/structures/target_stake.dm
index b3bbcce9c2b..504b2abfa80 100644
--- a/code/game/objects/structures/target_stake.dm
+++ b/code/game/objects/structures/target_stake.dm
@@ -31,7 +31,6 @@
W.layer = 3.1
pinned_target = W
to_chat(user, "You slide the target into the stake.")
-
return
attack_hand(mob/user as mob)
@@ -46,10 +45,8 @@
if(!user.get_active_hand())
user.put_in_hands(pinned_target)
to_chat(user, "You take the target out of the stake.")
-
else
pinned_target.loc = get_turf(user)
to_chat(user, "You take the target out of the stake.")
-
pinned_target = null
\ No newline at end of file
diff --git a/code/game/objects/structures/transit_tubes/station.dm b/code/game/objects/structures/transit_tubes/station.dm
index c8efd45a075..93ad848c4f6 100644
--- a/code/game/objects/structures/transit_tubes/station.dm
+++ b/code/game/objects/structures/transit_tubes/station.dm
@@ -37,7 +37,6 @@
for(var/obj/structure/transit_tube_pod/pod in loc)
if(pod.contents.len)
to_chat(AM, "")
-
return
else if(!pod.moving && pod.dir in directions())
AM.forceMove(pod)
diff --git a/code/game/objects/structures/watercloset.dm b/code/game/objects/structures/watercloset.dm
index 42dfe596d1d..3fcfc0ef4bf 100644
--- a/code/game/objects/structures/watercloset.dm
+++ b/code/game/objects/structures/watercloset.dm
@@ -29,7 +29,6 @@
if(cistern && !open)
if(!contents.len)
to_chat(user, "The cistern is empty.")
-
return
else
var/obj/item/I = pick(contents)
@@ -38,7 +37,6 @@
else
I.loc = get_turf(src)
to_chat(user, "You find [I] in the cistern.")
-
w_items -= I.w_class
return
@@ -53,7 +51,6 @@
/obj/structure/toilet/attackby(obj/item/I, mob/living/user, params)
if(istype(I, /obj/item/weapon/crowbar))
to_chat(user, "You start to [cistern ? "replace the lid on the cistern" : "lift the lid off the cistern"]...")
-
playsound(loc, 'sound/effects/stonedoor_openclose.ogg', 50, 1)
if(do_after(user, 30, target = src))
user.visible_message("[user] [cistern ? "replaces the lid on the cistern" : "lifts the lid off the cistern"]!", "You [cistern ? "replace the lid on the cistern" : "lift the lid off the cistern"]!", "You hear grinding porcelain.")
@@ -68,7 +65,6 @@
if(RG.is_open_container())
RG.reagents.add_reagent("toiletwater", min(RG.volume - RG.reagents.total_volume, RG.amount_per_transfer_from_this))
to_chat(user, "You fill [RG] from [src]. Gross.")
-
return
if(istype(I, /obj/item/weapon/grab))
@@ -81,7 +77,6 @@
if(G.state >= GRAB_AGGRESSIVE)
if(GM.loc != get_turf(src))
to_chat(user, "[GM] needs to be on [src]!")
-
return
if(!swirlie)
if(open)
@@ -103,24 +98,19 @@
else
to_chat(user, "You need a tighter grip!")
-
if(cistern)
if(I.w_class > 3)
to_chat(user, "[I] does not fit!")
-
return
if(w_items + I.w_class > 5)
to_chat(user, "The cistern is full!")
-
return
if(!user.drop_item())
to_chat(user, "\The [I] is stuck to your hand, you cannot put it in the cistern!")
-
return
I.loc = src
w_items += I.w_class
to_chat(user, "You carefully place [I] into the cistern.")
-
return
@@ -144,7 +134,6 @@
if(G.state >= GRAB_AGGRESSIVE)
if(GM.loc != get_turf(src))
to_chat(user, "[GM.name] needs to be on [src].")
-
return
user.changeNext_move(CLICK_CD_MELEE)
playsound(src.loc, 'sound/effects/bang.ogg', 25, 1)
@@ -154,7 +143,6 @@
to_chat(user, "You need a tighter grip!")
-
/obj/machinery/shower
name = "shower"
desc = "The HS-451. Installed in the 2550s by the Nanotrasen Hygiene Division."
@@ -194,10 +182,8 @@
/obj/machinery/shower/attackby(obj/item/I as obj, mob/user as mob, params)
if(I.type == /obj/item/device/analyzer)
to_chat(user, "The water temperature seems to be [watertemp].")
-
if(istype(I, /obj/item/weapon/wrench))
to_chat(user, "You begin to adjust the temperature valve with the [I].")
-
if(do_after(user, 50, target = src))
switch(watertemp)
if("normal")
@@ -267,7 +253,6 @@
L.ExtinguishMob()
L.fire_stacks = -20 //Douse ourselves with water to avoid fire more easily
to_chat(L, "You've been drenched in water!")
-
if(iscarbon(O))
var/mob/living/carbon/M = O
if(M.r_hand)
@@ -359,13 +344,11 @@
if(watertemp == "freezing")
//C.bodytemperature = max(80, C.bodytemperature - 80)
to_chat(C, "The water is freezing!")
-
return
if(watertemp == "boiling")
//C.bodytemperature = min(500, C.bodytemperature + 35)
C.adjustFireLoss(5)
to_chat(C, "The water is searing!")
-
return
@@ -403,12 +386,10 @@
temp = H.organs_by_name["l_hand"]
if(temp && !temp.is_usable())
to_chat(user, "You try to move your [temp.name], but cannot!")
-
return
if(busy)
to_chat(user, "Someone's already washing here.")
-
return
var/selected_area = parse_zone(user.zone_sel.selecting)
var/washing_face = 0
@@ -441,7 +422,6 @@
/obj/structure/sink/attackby(obj/item/O, mob/user, params)
if(busy)
to_chat(user, "Someone's already washing here!")
-
return
if(!(istype(O)))
diff --git a/code/game/objects/structures/windoor_assembly.dm b/code/game/objects/structures/windoor_assembly.dm
index 99bd41d7040..529dbb447a8 100644
--- a/code/game/objects/structures/windoor_assembly.dm
+++ b/code/game/objects/structures/windoor_assembly.dm
@@ -83,7 +83,6 @@ obj/structure/windoor_assembly/Destroy()
if(do_after(user, 40, target = src))
if(!src || !WT.isOn()) return
to_chat(user, "You dissasembled the windoor assembly!")
-
var/obj/item/stack/sheet/rglass/RG = new (get_turf(src), 5)
RG.add_fingerprint(user)
if(secure)
@@ -98,7 +97,6 @@ obj/structure/windoor_assembly/Destroy()
for(var/obj/machinery/door/window/WD in src.loc)
if(WD.dir == src.dir)
to_chat(user, "There is already a windoor in that location.")
-
return
playsound(src.loc, 'sound/items/Ratchet.ogg', 100, 1)
user.visible_message("[user] secures the windoor assembly to the floor.", "You start to secure the windoor assembly to the floor.")
@@ -109,10 +107,8 @@ obj/structure/windoor_assembly/Destroy()
for(var/obj/machinery/door/window/WD in src.loc)
if(WD.dir == src.dir)
to_chat(user, "There is already a windoor in that location.")
-
return
to_chat(user, "You've secured the windoor assembly!")
-
src.anchored = 1
if(src.secure)
src.name = "secure anchored windoor assembly"
@@ -128,7 +124,6 @@ obj/structure/windoor_assembly/Destroy()
if(!src || !src.anchored)
return
to_chat(user, "You've unsecured the windoor assembly!")
-
src.anchored = 0
if(src.secure)
src.name = "secure windoor assembly"
@@ -140,18 +135,15 @@ obj/structure/windoor_assembly/Destroy()
var/obj/item/stack/sheet/plasteel/P = W
if(P.amount < 2)
to_chat(user, "You need more plasteel to do this.")
-
return
to_chat(user, "You start to reinforce the windoor with plasteel.")
-
if(do_after(user,40, target = src))
if(!src || secure)
return
P.use(2)
to_chat(user, "You reinforce the windoor.")
-
src.secure = 1
if(src.anchored)
src.name = "secure anchored windoor assembly"
@@ -168,7 +160,6 @@ obj/structure/windoor_assembly/Destroy()
var/obj/item/stack/cable_coil/CC = W
CC.use(1)
to_chat(user, "You wire the windoor!")
-
src.state = "02"
if(src.secure)
src.name = "secure wired windoor assembly"
@@ -189,7 +180,6 @@ obj/structure/windoor_assembly/Destroy()
return
to_chat(user, "You cut the windoor wires!")
-
new/obj/item/stack/cable_coil(get_turf(user), 1)
src.state = "01"
if(src.secure)
@@ -209,7 +199,6 @@ obj/structure/windoor_assembly/Destroy()
W.loc = src.loc
return
to_chat(user, "You've installed the airlock electronics!")
-
src.name = "near finished windoor assembly"
src.electronics = W
else
@@ -227,7 +216,6 @@ obj/structure/windoor_assembly/Destroy()
if(!src || !electronics)
return
to_chat(user, "You've removed the airlock electronics!")
-
src.name = "wired windoor assembly"
var/obj/item/weapon/airlock_electronics/ae
ae = electronics
@@ -249,7 +237,6 @@ obj/structure/windoor_assembly/Destroy()
else if(istype(W, /obj/item/weapon/crowbar))
if(!src.electronics)
to_chat(usr, "The assembly is missing electronics.")
-
return
usr << browse(null, "window=windoor_access")
playsound(src.loc, 'sound/items/Crowbar.ogg', 100, 1)
@@ -262,7 +249,6 @@ obj/structure/windoor_assembly/Destroy()
density = 1 //Shouldn't matter but just incase
to_chat(user, "You finish the windoor!")
-
if(secure)
var/obj/machinery/door/window/brigdoor/windoor = new /obj/machinery/door/window/brigdoor(src.loc)
if(src.facing == "l")
@@ -323,7 +309,6 @@ obj/structure/windoor_assembly/Destroy()
return
if (src.anchored)
to_chat(usr, "It is fastened to the floor; therefore, you can't rotate it!")
-
return 0
//if(src.state != "01")
//update_nearby_tiles(need_rebuild=1) //Compel updates before
@@ -347,12 +332,10 @@ obj/structure/windoor_assembly/Destroy()
if(src.facing == "l")
to_chat(usr, "The windoor will now slide to the right.")
-
src.facing = "r"
else
src.facing = "l"
to_chat(usr, "The windoor will now slide to the left.")
-
update_icon()
return
diff --git a/code/game/objects/structures/window.dm b/code/game/objects/structures/window.dm
index a0a3e91cdaa..eecfc4ac408 100644
--- a/code/game/objects/structures/window.dm
+++ b/code/game/objects/structures/window.dm
@@ -211,24 +211,20 @@ var/global/wcCommon = pick(list("#379963", "#0d8395", "#58b5c3", "#49e46e", "#8f
state = 3 - state
playsound(loc, 'sound/items/Screwdriver.ogg', 75, 1)
to_chat(user, (state == 1 ? "You have unfastened the window from the frame." : "You have fastened the window to the frame."))
-
else if(reinf && state == 0)
anchored = !anchored
update_nearby_icons()
playsound(loc, 'sound/items/Screwdriver.ogg', 75, 1)
to_chat(user, (anchored ? "You have fastened the frame to the floor." : "You have unfastened the frame from the floor."))
-
else if(!reinf)
anchored = !anchored
update_nearby_icons()
playsound(loc, 'sound/items/Screwdriver.ogg', 75, 1)
to_chat(user, (anchored ? "You have fastened the window to the floor." : "You have unfastened the window."))
-
else if(istype(W, /obj/item/weapon/crowbar) && reinf && state <= 1)
state = 1 - state
playsound(loc, 'sound/items/Crowbar.ogg', 75, 1)
to_chat(user, (state ? "You have pried the window into the frame." : "You have pried the window out of the frame."))
-
else if(istype(W, /obj/item/weapon/wrench) && !anchored && health > 7) //Disassemble deconstructed window into parts
playsound(src.loc, 'sound/items/Ratchet.ogg', 50, 1)
for(var/i=0;i
') WHERE id = [banid]")
@@ -260,7 +251,6 @@ datum/admins/proc/DB_ban_edit(var/banid = null, var/param = null)
value = input("Insert the new duration (in minutes) for [pckey]'s ban", "New Duration", "[duration]", null) as null|num
if(!isnum(value) || !value)
to_chat(usr, "Cancelled")
-
return
var/DBQuery/update_query = dbcon.NewQuery("UPDATE [format_table_name("ban")] SET duration = [value], edits = CONCAT(edits,'- [eckey] changed ban duration from [duration] to [value]
'), expiration_time = DATE_ADD(bantime, INTERVAL [value] MINUTE) WHERE id = [banid]")
@@ -272,11 +262,9 @@ datum/admins/proc/DB_ban_edit(var/banid = null, var/param = null)
return
else
to_chat(usr, "Cancelled")
-
return
else
to_chat(usr, "Cancelled")
-
return
datum/admins/proc/DB_ban_unban_by_id(var/id)
@@ -300,12 +288,10 @@ datum/admins/proc/DB_ban_unban_by_id(var/id)
if(ban_number == 0)
to_chat(usr, "\red Database update failed due to a ban id not being present in the database.")
-
return
if(ban_number > 1)
to_chat(usr, "\red Database update failed due to multiple bans having the same ID. Contact the database admin.")
-
return
if(!src.owner || !istype(src.owner, /client))
@@ -343,7 +329,6 @@ datum/admins/proc/DB_ban_unban_by_id(var/id)
establish_db_connection()
if(!dbcon.IsConnected())
to_chat(usr, "\red Failed to establish database connection")
-
return
var/output = ""
diff --git a/code/modules/admin/NewBan.dm b/code/modules/admin/NewBan.dm
index 9421c1e8102..64e6ad6dec4 100644
--- a/code/modules/admin/NewBan.dm
+++ b/code/modules/admin/NewBan.dm
@@ -107,26 +107,18 @@ var/savefile/Banlist
Banlist.cd = "/base"
if ( Banlist.dir.Find("[ckey][computerid]") )
to_chat(usr, text("\red Ban already exists."))
-
return 0
else
Banlist.dir.Add("[ckey][computerid]")
Banlist.cd = "/base/[ckey][computerid]"
to_chat(Banlist["key"], ckey)
-
to_chat(Banlist["id"], computerid)
-
to_chat(Banlist["ip"], address)
-
to_chat(Banlist["reason"], reason)
-
to_chat(Banlist["bannedby"], bannedby)
-
to_chat(Banlist["temp"], temp)
-
if (temp)
to_chat(Banlist["minutes"], bantimestamp)
-
if(!temp)
add_note(ckey, "Permanently banned - [reason]", null, bannedby, 0)
else
@@ -220,23 +212,16 @@ var/savefile/Banlist
Banlist.dir.Add("trash[i]trashid[i]")
Banlist.cd = "/base/trash[i]trashid[i]"
to_chat(Banlist["key"], "trash[i]")
-
else
Banlist.cd = "/base"
Banlist.dir.Add("[last]trashid[i]")
Banlist.cd = "/base/[last]trashid[i]"
to_chat(Banlist["key"], last)
-
to_chat(Banlist["id"], "trashid[i]")
-
to_chat(Banlist["reason"], "Trashban[i].")
-
to_chat(Banlist["temp"], a)
-
to_chat(Banlist["minutes"], CMinutes + rand(1,2000))
-
to_chat(Banlist["bannedby"], "trashmin")
-
last = "trash[i]"
Banlist.cd = "/base"
diff --git a/code/modules/admin/ToRban.dm b/code/modules/admin/ToRban.dm
index 9f0cb711547..77e49877259 100644
--- a/code/modules/admin/ToRban.dm
+++ b/code/modules/admin/ToRban.dm
@@ -36,11 +36,9 @@
if(!cleaned) continue
F[cleaned] << 1
to_chat(F["last_update"], world.realtime)
-
diary << "ToR data updated!"
if(usr)
to_chat(usr, "ToRban updated.")
-
return 1
diary << "ToR data update aborted: no data."
return 0
@@ -76,19 +74,15 @@
if(choice)
F.dir.Remove(choice)
to_chat(src, "Address removed")
-
if("remove all")
to_chat(src, "[TORFILE] was [fdel(TORFILE)?"":"not "]removed.")
-
if("find")
var/input = input(src,"Please input an IP address to search for:","Find ToR ban",null) as null|text
if(input)
if(ToRban_isbanned(input))
to_chat(src, "Address is a known ToR address")
-
else
to_chat(src, "Address is not a known ToR address")
-
return
#undef TORFILE
diff --git a/code/modules/admin/admin.dm b/code/modules/admin/admin.dm
index ae25bc50c72..932fcef0807 100644
--- a/code/modules/admin/admin.dm
+++ b/code/modules/admin/admin.dm
@@ -11,7 +11,6 @@ var/global/nologevent = 0
if(R_SERVER & C.holder.rights)
to_chat(C, msg)
-
/proc/msg_admin_attack(var/text) //Toggleable Attack Messages
log_attack(text)
if(!nologevent)
@@ -24,7 +23,6 @@ var/global/nologevent = 0
to_chat(C, msg)
-
///////////////////////////////////////////////////////////////////////////////////////////////Panels
/datum/admins/proc/show_player_panel(var/mob/M in mob_list)
@@ -34,7 +32,6 @@ var/global/nologevent = 0
if(!M)
to_chat(usr, "You seem to be selecting a mob that doesn't exist anymore.")
-
return
if(!check_rights(R_ADMIN|R_MOD))
@@ -474,9 +471,7 @@ var/global/nologevent = 0
dat+="I'm sorry to break your immersion. This shit's bugged. Report this bug to Agouri, polyxenitopalidou@gmail.com"
// to_chat(world, "Channelname: [src.admincaster_feed_channel.channel_name] [src.admincaster_feed_channel.author]")
-
// to_chat(world, "Msg: [src.admincaster_feed_message.author] [src.admincaster_feed_message.body]")
-
usr << browse(dat, "window=admincaster_main;size=400x600")
onclose(usr, "admincaster_main")
@@ -552,7 +547,6 @@ var/global/nologevent = 0
message = adminscrub(message,500)
message = replacetext(message, "\n", "
") // required since we're putting it in a
")
-
//ADMINVERBS
/client/proc/investigate_show( subject in list("hrefs","notes","pda","singulo","atmos","watchlist","ntsl","gold core","cult", "experimentor", "wires") )
set name = "Investigate"
@@ -36,7 +35,6 @@
var/F = investigate_subject2file(subject)
if(!F)
to_chat(src, "Error: admin_investigate: [INVESTIGATE_DIR][subject] is an invalid path or cannot be accessed.")
-
return
src << browse(F,"window=investigate[subject];size=800x300")
@@ -46,18 +44,15 @@
src << browse(href_logfile,"window=investigate[subject];size=800x300")
else
to_chat(src, "Error: admin_investigate: No href logfile found.")
-
return
else
to_chat(src, "Error: admin_investigate: Href Logging is not on.")
-
return
if("pda") //general one-round-only stuff
var/F = investigate_subject2file(subject)
if(!F)
to_chat(src, "Error: admin_investigate: [INVESTIGATE_DIR][subject] is an invalid path or cannot be accessed.")
-
return
src << browse(F,"window=investigate[subject];size=800x300")
@@ -65,7 +60,6 @@
var/F = investigate_subject2file(subject)
if(!F)
to_chat(src, "Error: admin_investigate: [INVESTIGATE_DIR][subject] is an invalid path or cannot be accessed.")
-
return
src << browse(F,"window=investigate[subject];size=800x300")
@@ -73,7 +67,6 @@
var/F = investigate_subject2file(subject)
if(!F)
to_chat(src, "Error: admin_investigate: [INVESTIGATE_DIR][subject] is an invalid path or cannot be accessed.")
-
return
src << browse(F,"window=investigate[subject];size=800x300")
@@ -81,7 +74,6 @@
var/F = investigate_subject2file(subject)
if(!F)
to_chat(src, "Error: admin_investigate: [INVESTIGATE_DIR][subject] is an invalid path or cannot be accessed.")
-
return
src << browse(F,"window=investigate[subject];size=800x300")
@@ -89,7 +81,6 @@
var/F = investigate_subject2file(subject)
if(!F)
to_chat(src, "Error: admin_investigate: [INVESTIGATE_DIR][subject] is an invalid path or cannot be accessed.")
-
return
src << browse(F,"window=investigate[subject];size=800x300")
@@ -97,7 +88,6 @@
var/F = investigate_subject2file(subject)
if(!F)
to_chat(src, "Error: admin_investigate: [INVESTIGATE_DIR][subject] is an invalid path or cannot be accessed.")
-
return
src << browse(F,"window=investigate[subject];size=800x300")
diff --git a/code/modules/admin/admin_memo.dm b/code/modules/admin/admin_memo.dm
index 5c6abd131c7..3a1fec11bb4 100644
--- a/code/modules/admin/admin_memo.dm
+++ b/code/modules/admin/admin_memo.dm
@@ -5,7 +5,6 @@
return
if(!dbcon.IsConnected())
to_chat(src, "Failed to establish database connection.")
-
return
var/memotask = input(usr,"Choose task.","Memo") in list("Show","Write","Edit","Remove")
if(!memotask)
@@ -19,7 +18,6 @@
return
if(!dbcon.IsConnected())
to_chat(src, "Failed to establish database connection.")
-
return
var/sql_ckey = sanitizeSQL(src.ckey)
switch(task)
@@ -31,7 +29,6 @@
return
if(query_memocheck.NextRow())
to_chat(src, "You already have set a memo.")
-
return
var/memotext = input(src,"Write your Memo","Memo") as message
if(!memotext)
@@ -57,7 +54,6 @@
memolist += "[lkey]"
if(!memolist.len)
to_chat(src, "No memos found in database.")
-
return
var/target_ckey = input(src, "Select whose memo to edit", "Select memo") as null|anything in memolist
if(!target_ckey)
@@ -105,7 +101,6 @@
output += "
[memotext]
"
if(!output && !silent)
to_chat(src, "No memos found in database.")
-
return
src << output
if("Remove")
@@ -120,7 +115,6 @@
memolist += "[ckey]"
if(!memolist.len)
to_chat(src, "No memos found in database.")
-
return
var/target_ckey = input(src, "Select whose memo to delete", "Select memo") as null|anything in memolist
if(!target_ckey)
diff --git a/code/modules/admin/admin_verbs.dm b/code/modules/admin/admin_verbs.dm
index d3f0cd336bc..ca20df573ec 100644
--- a/code/modules/admin/admin_verbs.dm
+++ b/code/modules/admin/admin_verbs.dm
@@ -259,7 +259,6 @@ var/list/admin_verbs_proccall = list (
verbs += /client/proc/show_verbs
to_chat(src, "Almost all of your adminverbs have been hidden.")
-
feedback_add_details("admin_verb","TAVVH") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
return
@@ -274,7 +273,6 @@ var/list/admin_verbs_proccall = list (
add_admin_verbs()
to_chat(src, "All of your adminverbs are now visible.")
-
feedback_add_details("admin_verb","TAVVS") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
/client/proc/admin_ghost()
@@ -293,7 +291,6 @@ var/list/admin_verbs_proccall = list (
feedback_add_details("admin_verb","P") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
else if(istype(mob,/mob/new_player))
to_chat(src, "Error: Aghost: Can't admin-ghost whilst in the lobby. Join or observe first.")
-
else
//ghostize
var/mob/body = mob
@@ -315,13 +312,11 @@ var/list/admin_verbs_proccall = list (
if(mob.invisibility == INVISIBILITY_OBSERVER)
mob.invisibility = initial(mob.invisibility)
to_chat(mob, "Invisimin off. Invisibility reset.")
-
//TODO: Make some kind of indication for the badmin that they are currently invisible
else
mob.invisibility = INVISIBILITY_OBSERVER
to_chat(mob, "Invisimin on. You are now as invisible as a ghost.")
-
/client/proc/player_panel()
set name = "Player Panel"
set category = "Admin"
@@ -480,7 +475,6 @@ var/list/admin_verbs_proccall = list (
if(!warned_ckey || !istext(warned_ckey)) return
if(warned_ckey in admin_datums)
to_chat(usr, "Error: warn(): You can't warn admins.")
-
return
var/datum/preferences/D
@@ -490,7 +484,6 @@ var/list/admin_verbs_proccall = list (
if(!D)
to_chat(src, "Error: warn(): No such ckey found.")
-
return
if(++D.warns >= MAX_WARNS) //uh ohhhh...you'reee iiiiin trouuuubble O:)
@@ -499,7 +492,6 @@ var/list/admin_verbs_proccall = list (
message_admins("[key_name_admin(src)] has warned [key_name_admin(C)] resulting in a [AUTOBANTIME] minute ban")
log_admin("[key_name(src)] has warned [key_name(C)] resulting in a [AUTOBANTIME] minute ban")
to_chat(C, "You have been autobanned due to a warning by [ckey].
This is a temporary ban, it will be removed in [AUTOBANTIME] minutes.")
-
del(C)
else
message_admins("[key_name_admin(src)] has warned [warned_ckey] resulting in a [AUTOBANTIME] minute ban")
@@ -509,7 +501,6 @@ var/list/admin_verbs_proccall = list (
else
if(C)
to_chat(C, "You have been formally warned by an administrator.
Further warnings will result in an autoban.")
-
message_admins("[key_name_admin(src)] has warned [key_name_admin(C)]. They have [MAX_WARNS-D.warns] strikes remaining.")
log_admin("[key_name(src)] has warned [key_name(C)]. They have [MAX_WARNS-D.warns] strikes remaining.")
else
@@ -653,11 +644,9 @@ var/list/admin_verbs_proccall = list (
if(air_processing_killed)
air_processing_killed = 0
to_chat(usr, "Enabled air processing.")
-
else
air_processing_killed = 1
to_chat(usr, "Disabled air processing.")
-
feedback_add_details("admin_verb","KA") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
log_admin("[key_name(usr)] used 'kill air'.")
message_admins("\blue [key_name_admin(usr)] used 'kill air'.", 1)
@@ -675,7 +664,6 @@ var/list/admin_verbs_proccall = list (
verbs += /client/proc/readmin
deadmins += ckey
to_chat(src, "You are now a normal player.")
-
feedback_add_details("admin_verb","DAS") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
/client/proc/readmin()
@@ -699,7 +687,6 @@ var/list/admin_verbs_proccall = list (
if(!dbcon.IsConnected())
message_admins("Warning, MySQL database is not connected.")
to_chat(src, "Warning, MYSQL database is not connected.")
-
return
var/sql_ckey = sanitizeSQL(ckey)
var/DBQuery/query = dbcon.NewQuery("SELECT rank FROM [format_table_name("admin")] WHERE ckey = '[sql_ckey]'")
@@ -711,7 +698,6 @@ var/list/admin_verbs_proccall = list (
if(admin_ranks[rank] == null)
error("Error while re-adminning [src], admin rank ([rank]) does not exist.")
to_chat(src, "Error while re-adminning, admin rank ([rank]) does not exist.")
-
return
D = new(rank, admin_ranks[rank], ckey)
@@ -725,11 +711,9 @@ var/list/admin_verbs_proccall = list (
var/flags = query.item[3]
if(!admin_ckey)
to_chat(src, "Error while re-adminning, ckey [admin_ckey] was not found in the admin database.")
-
return
if(admin_rank == "Removed") //This person was de-adminned. They are only in the admin list for archive purposes.
to_chat(src, "Error while re-adminning, ckey [admin_ckey] is not an admin.")
-
return
if(istext(flags))
@@ -745,7 +729,6 @@ var/list/admin_verbs_proccall = list (
return
else
to_chat(src, "You are already an admin.")
-
verbs -= /client/proc/readmin
deadmins -= ckey
return
@@ -761,12 +744,10 @@ var/list/admin_verbs_proccall = list (
if(config.log_hrefs)
config.log_hrefs = 0
to_chat(src, "Stopped logging hrefs")
-
else
config.log_hrefs = 1
to_chat(src, "Started logging hrefs")
-
/client/proc/check_ai_laws()
set name = "Check AI Laws"
set category = "Admin"
@@ -840,7 +821,6 @@ var/list/admin_verbs_proccall = list (
if(!H.client)
to_chat(usr, "Only mobs with clients can alter their own appearance.")
-
return
switch(alert("Do you wish for [H] to be allowed to select non-whitelisted races?","Alter Mob Appearance","Yes","No","Cancel"))
@@ -865,7 +845,6 @@ var/list/admin_verbs_proccall = list (
jobs += J.title
if (!jobs.len)
to_chat(usr, "There are no fully staffed jobs.")
-
return
var/job = input("Please select job slot to free", "Free Job Slot") as null|anything in jobs
if (job)
@@ -884,11 +863,9 @@ var/list/admin_verbs_proccall = list (
prefs.save_preferences(src)
if (prefs.toggles & CHAT_ATTACKLOGS)
to_chat(usr, "You now will get attack log messages")
-
else
to_chat(usr, "You now won't get attack log messages")
-
/client/proc/toggledrones()
set name = "Toggle Maintenance Drones"
set category = "Server"
@@ -911,11 +888,9 @@ var/list/admin_verbs_proccall = list (
prefs.save_preferences(src)
if (prefs.toggles & CHAT_DEBUGLOGS)
to_chat(usr, "You now will get debug log messages")
-
else
to_chat(usr, "You now won't get debug log messages")
-
/client/proc/man_up(mob/T as mob in mob_list)
set category = "Admin"
set name = "Man Up"
@@ -925,10 +900,8 @@ var/list/admin_verbs_proccall = list (
return
to_chat(T, "Man up and deal with it.")
-
to_chat(T, "Move on.")
-
log_admin("[key_name(usr)] told [key_name(T)] to man up and deal with it.")
message_admins("[key_name_admin(usr)] told [key_name(T)] to man up and deal with it.")
@@ -945,9 +918,7 @@ var/list/admin_verbs_proccall = list (
if(confirm == "Yes")
for (var/mob/T as mob in mob_list)
to_chat(T, "
Deal with it.
Move on.
")
-
to_chat(T, 'sound/voice/ManUp1.ogg')
-
log_admin("[key_name(usr)] told everyone to man up and deal with it.")
message_admins("[key_name_admin(usr)] told everyone to man up and deal with it.")
diff --git a/code/modules/admin/banappearance.dm b/code/modules/admin/banappearance.dm
index 80cc4839956..7244e1152af 100644
--- a/code/modules/admin/banappearance.dm
+++ b/code/modules/admin/banappearance.dm
@@ -34,7 +34,6 @@ DEBUG
for(var/s in appearance_keylist)
to_chat(world, s)
-
/mob/verb/reload_appearances()
set name = "reload appearances"
@@ -72,7 +71,6 @@ DEBUG
var/savefile/S=new("data/appearance_full.ban")
to_chat(S["keys[0]"], appearance_keylist)
-
/proc/appearance_unban(mob/M)
appearance_remove("[M.ckey]")
appearance_savebanfile()
diff --git a/code/modules/admin/banjob.dm b/code/modules/admin/banjob.dm
index c2123489299..34365264674 100644
--- a/code/modules/admin/banjob.dm
+++ b/code/modules/admin/banjob.dm
@@ -42,7 +42,6 @@ DEBUG
for(var/s in jobban_keylist)
to_chat(world, s)
-
/mob/verb/reload_jobbans()
set name = "reload jobbans"
@@ -95,7 +94,6 @@ DEBUG
var/savefile/S=new("data/job_full.ban")
to_chat(S["keys[0]"], jobban_keylist)
-
/proc/jobban_unban(mob/M, rank)
jobban_remove("[M.ckey] - [rank]")
jobban_savebanfile()
diff --git a/code/modules/admin/buildmode.dm b/code/modules/admin/buildmode.dm
index fb1a9f6356e..cc53ef0ba62 100644
--- a/code/modules/admin/buildmode.dm
+++ b/code/modules/admin/buildmode.dm
@@ -150,79 +150,45 @@
switch(mode)
if(BASIC_BUILDMODE)
to_chat(user, "***********************************************************")
-
to_chat(user, "Left Mouse Button = Construct / Upgrade")
-
to_chat(user, "Right Mouse Button = Deconstruct / Delete / Downgrade")
-
to_chat(user, "Left Mouse Button + ctrl = R-Window")
-
to_chat(user, "Left Mouse Button + alt = Airlock")
-
to_chat(user, "")
-
to_chat(user, "Use the button in the upper left corner to")
-
to_chat(user, "change the direction of built objects.")
-
to_chat(user, "***********************************************************")
-
if(ADV_BUILDMODE)
to_chat(user, "***********************************************************")
-
to_chat(user, "Right Mouse Button on buildmode button = Set object type")
-
to_chat(user, "Left Mouse Button on turf/obj = Place objects")
-
to_chat(user, "Right Mouse Button = Delete objects")
-
to_chat(user, "")
-
to_chat(user, "Use the button in the upper left corner to")
-
to_chat(user, "change the direction of built objects.")
-
to_chat(user, "***********************************************************")
-
if(VAR_BUILDMODE)
to_chat(user, "***********************************************************")
-
to_chat(user, "Right Mouse Button on buildmode button = Select var(type) & value")
-
to_chat(user, "Left Mouse Button on turf/obj/mob = Set var(type) & value")
-
to_chat(user, "Right Mouse Button on turf/obj/mob = Reset var's value")
-
to_chat(user, "***********************************************************")
-
if(THROW_BUILDMODE)
to_chat(user, "***********************************************************")
-
to_chat(user, "Left Mouse Button on turf/obj/mob = Select")
-
to_chat(user, "Right Mouse Button on turf/obj/mob = Throw")
-
to_chat(user, "***********************************************************")
-
if(AREA_BUILDMODE)
to_chat(user, "***********************************************************")
-
to_chat(user, "Left Mouse Button on turf/obj/mob = Select corner")
-
to_chat(user, "Right Mouse Button on buildmode button = Select generator")
-
to_chat(user, "***********************************************************")
-
if(COPY_BUILDMODE)
to_chat(user, "***********************************************************")
-
to_chat(user, "Left Mouse Button on obj/turf/mob = Spawn a Copy of selected target")
-
to_chat(user, "Right Mouse Button on obj/mob = Select target to copy")
-
to_chat(user, "***********************************************************")
-
/datum/click_intercept/buildmode/proc/change_settings(mob/user)
switch(mode)
if(BASIC_BUILDMODE)
@@ -386,7 +352,6 @@
object.vars[varholder] = valueholder
else
to_chat(user, "[initial(object.name)] does not have a var called '[varholder]'")
-
if(right_click)
if(object.vars.Find(varholder))
log_admin("Build Mode: [key_name(user)] modified [object.name]'s [varholder] to [valueholder]")
@@ -394,7 +359,6 @@
else
to_chat(user, "[initial(object.name)] does not have a var called '[varholder]'")
-
if(THROW_BUILDMODE)
if(left_click)
if(isturf(object))
@@ -414,7 +378,6 @@
if(cornerA && cornerB)
if(!generator_path)
to_chat(user, "Select generator type first.")
-
else
var/datum/mapGenerator/G = new generator_path
G.defineRegion(cornerA.loc,cornerB.loc,1)
@@ -432,5 +395,4 @@
else if(right_click)
if(ismovableatom(object)) // No copying turfs for now.
to_chat(user, "[object] set as template.")
-
stored = object
diff --git a/code/modules/admin/create_poll.dm b/code/modules/admin/create_poll.dm
index 16fa5b0db84..9baa17b73ad 100644
--- a/code/modules/admin/create_poll.dm
+++ b/code/modules/admin/create_poll.dm
@@ -5,7 +5,6 @@
return
if(!dbcon.IsConnected())
to_chat(src, "Failed to establish database connection.")
-
return
var/returned = create_poll_function()
if(returned)
@@ -28,7 +27,6 @@
message_admins("[key_name_admin(usr)] has created a new server poll. Poll Type: [polltype] - Admin Only: [adminonly ? "Yes" : "No"]
Question: [question]")
else
to_chat(src, "Poll question created without any options, poll will be deleted.")
-
var/DBQuery/query_del_poll = dbcon.NewQuery("DELETE FROM [format_table_name("poll_question")] WHERE id = [returned]")
if(!query_del_poll.Execute())
var/err = query_del_poll.ErrorMsg()
@@ -66,7 +64,6 @@
endtime = query_validate_time.item[1]
if(!endtime)
to_chat(src, "Datetime entered is invalid.")
-
return
var/DBQuery/query_time_later = dbcon.NewQuery("SELECT TIMESTAMP('[endtime]') < NOW()")
if(!query_time_later.Execute())
@@ -77,7 +74,6 @@
var/checklate = text2num(query_time_later.item[1])
if(checklate)
to_chat(src, "Datetime entered is not later than current server time.")
-
return
var/adminonly
switch(alert("Admin only poll?",,"Yes","No","Cancel"))
@@ -137,7 +133,6 @@
return pollid
if(minval >= maxval)
to_chat(src, "Minimum rating value can't be more than maximum rating value")
-
return pollid
descmin = input("Optional: Set description for minimum rating","Minimum rating description") as message|null
if(descmin)
diff --git a/code/modules/admin/holder2.dm b/code/modules/admin/holder2.dm
index c34ad32c2d1..3849317b03e 100644
--- a/code/modules/admin/holder2.dm
+++ b/code/modules/admin/holder2.dm
@@ -49,7 +49,6 @@ proc/admin_proc()
if(!check_rights(R_ADMIN)) return
to_chat(world, "you have enough rights!")
-
NOTE: it checks usr! not src! So if you're checking somebody's rank in a proc which they did not call
you will have to do something like if(client.holder.rights & R_ADMIN) yourself.
*/
@@ -62,14 +61,12 @@ you will have to do something like if(client.holder.rights & R_ADMIN) yourself.
else
if(show_msg)
to_chat(user, "Error: You do not have sufficient rights to do that. You require one of the following flags:[rights2text(rights_required," ")].")
-
else
if(user.client.holder)
return 1
else
if(show_msg)
to_chat(user, "Error: You are not an admin.")
-
return 0
//probably a bit iffy - will hopefully figure out a better solution
@@ -82,7 +79,6 @@ you will have to do something like if(client.holder.rights & R_ADMIN) yourself.
if( (usr.client.holder.rights & other.holder.rights) == other.holder.rights )
return 1 //we have all the rights they have and more
to_chat(usr, "Error: Cannot proceed. They have more or equal rights to us.")
-
return 0
/client/proc/deadmin()
diff --git a/code/modules/admin/machine_upgrade.dm b/code/modules/admin/machine_upgrade.dm
index 79cfac4d63a..463ef13de0c 100644
--- a/code/modules/admin/machine_upgrade.dm
+++ b/code/modules/admin/machine_upgrade.dm
@@ -7,7 +7,6 @@
if(!istype(M))
to_chat(usr, "This can only be used on subtypes of /obj/machinery.")
-
return
var/new_rating = input("Enter new rating:","Num") as num
diff --git a/code/modules/admin/newbanjob.dm b/code/modules/admin/newbanjob.dm
index aa9a755b107..71d61567962 100644
--- a/code/modules/admin/newbanjob.dm
+++ b/code/modules/admin/newbanjob.dm
@@ -142,27 +142,19 @@ var/savefile/Banlistjob
Banlistjob.cd = "/base"
if ( Banlistjob.dir.Find("[ckey][computerid][rank]") )
to_chat(usr, text("\red Banjob already exists."))
-
return 0
else
Banlistjob.dir.Add("[ckey][computerid][rank]")
Banlistjob.cd = "/base/[ckey][computerid][rank]"
to_chat(Banlistjob["key"], ckey)
-
to_chat(Banlistjob["id"], computerid)
-
to_chat(Banlistjob["rank"], rank)
-
to_chat(Banlistjob["reason"], reason)
-
to_chat(Banlistjob["bannedby"], bannedby)
-
to_chat(Banlistjob["temp"], temp)
-
if (temp)
to_chat(Banlistjob["minutes"], bantimestamp)
-
return 1
/proc/RemoveBanjob(foldername)
@@ -228,29 +220,21 @@ var/savefile/Banlistjob
/*/datum/admins/proc/permjobban(ckey, computerid, reason, bannedby, temp, minutes, rank)
if(AddBanjob(ckey, computerid, reason, usr.ckey, 0, 0, job))
to_chat(M, "\redYou have been banned from [job] by [usr.client.ckey].\nReason: [reason].")
-
to_chat(M, "\red This is a permanent ban.")
-
if(config.banappeals)
to_chat(M, "\red To try to resolve this matter head to [config.banappeals]")
-
else
to_chat(M, "\red No ban appeals URL has been set.")
-
log_admin("[usr.client.ckey] has banned from [job] [ckey].\nReason: [reason]\nThis is a permanent ban.")
message_admins("\blue[usr.client.ckey] has banned from [job] [ckey].\nReason: [reason]\nThis is a permanent ban.")
/datum/admins/proc/timejobban(ckey, computerid, reason, bannedby, temp, minutes, rank)
if(AddBanjob(ckey, computerid, reason, usr.ckey, 1, mins, job))
to_chat(M, "\redYou have been jobbanned from [job] by [usr.client.ckey].\nReason: [reason].")
-
to_chat(M, "\red This is a temporary ban, it will be removed in [mins] minutes.")
-
if(config.banappeals)
to_chat(M, "\red To try to resolve this matter head to [config.banappeals]")
-
else
to_chat(M, "\red No ban appeals URL has been set.")
-
log_admin("[usr.client.ckey] has jobbanned from [job] [ckey].\nReason: [reason]\nThis will be removed in [mins] minutes.")
message_admins("\blue[usr.client.ckey] has banned from [job] [ckey].\nReason: [reason]\nThis will be removed in [mins] minutes.")*/
//////////////////////////////////// DEBUG ////////////////////////////////////
@@ -270,23 +254,16 @@ var/savefile/Banlistjob
Banlistjob.dir.Add("trash[i]trashid[i]")
Banlistjob.cd = "/base/trash[i]trashid[i]"
to_chat(Banlistjob["key"], "trash[i]")
-
else
Banlistjob.cd = "/base"
Banlistjob.dir.Add("[last]trashid[i]")
Banlistjob.cd = "/base/[last]trashid[i]"
to_chat(Banlistjob["key"], last)
-
to_chat(Banlistjob["id"], "trashid[i]")
-
to_chat(Banlistjob["reason"], "Trashban[i].")
-
to_chat(Banlistjob["temp"], a)
-
to_chat(Banlistjob["minutes"], CMinutes + rand(1,2000))
-
to_chat(Banlistjob["bannedby"], "trashmin")
-
last = "trash[i]"
Banlistjob.cd = "/base"
diff --git a/code/modules/admin/permissionverbs/permissionedit.dm b/code/modules/admin/permissionverbs/permissionedit.dm
index 9d4cd3f0071..d91f04aa4df 100644
--- a/code/modules/admin/permissionverbs/permissionedit.dm
+++ b/code/modules/admin/permissionverbs/permissionedit.dm
@@ -64,7 +64,6 @@
if(!dbcon.IsConnected())
to_chat(usr, "\red Failed to establish database connection")
-
return
if(!adm_ckey || !new_rank)
@@ -93,7 +92,6 @@
var/DBQuery/log_query = dbcon.NewQuery("INSERT INTO `test`.[format_table_name("admin_log")] (`id` ,`datetime` ,`adminckey` ,`adminip` ,`log` ) VALUES (NULL , NOW( ) , '[usr.ckey]', '[usr.client.address]', 'Added new admin [adm_ckey] to rank [new_rank]');")
log_query.Execute()
to_chat(usr, "\blue New admin added.")
-
else
if(!isnull(admin_id) && isnum(admin_id))
var/DBQuery/insert_query = dbcon.NewQuery("UPDATE [format_table_name("admin")] SET rank = '[new_rank]' WHERE id = [admin_id]")
@@ -102,7 +100,6 @@
log_query.Execute()
to_chat(usr, "\blue Admin rank changed.")
-
/datum/admins/proc/log_admin_permission_modification(var/adm_ckey, var/new_permission)
if(config.admin_legacy_system)
return
@@ -116,7 +113,6 @@
establish_db_connection()
if(!dbcon.IsConnected())
to_chat(usr, "\red Failed to establish database connection")
-
return
if(!adm_ckey || !new_permission)
@@ -151,14 +147,12 @@
var/DBQuery/log_query = dbcon.NewQuery("INSERT INTO `test`.[format_table_name("admin_log")] (`id` ,`datetime` ,`adminckey` ,`adminip` ,`log` ) VALUES (NULL , NOW( ) , '[usr.ckey]', '[usr.client.address]', 'Removed permission [rights2text(new_permission)] (flag = [new_permission]) to admin [adm_ckey]');")
log_query.Execute()
to_chat(usr, "\blue Permission removed.")
-
else //This admin doesn't have this permission, so we are adding it.
var/DBQuery/insert_query = dbcon.NewQuery("UPDATE [format_table_name("admin")] SET flags = '[admin_rights | new_permission]' WHERE id = [admin_id]")
insert_query.Execute()
var/DBQuery/log_query = dbcon.NewQuery("INSERT INTO `test`.[format_table_name("admin_log")] (`id` ,`datetime` ,`adminckey` ,`adminip` ,`log` ) VALUES (NULL , NOW( ) , '[usr.ckey]', '[usr.client.address]', 'Added permission [rights2text(new_permission)] (flag = [new_permission]) to admin [adm_ckey]')")
log_query.Execute()
to_chat(usr, "\blue Permission added.")
-
/datum/admins/proc/updateranktodb(ckey,newrank)
establish_db_connection()
diff --git a/code/modules/admin/sql_notes.dm b/code/modules/admin/sql_notes.dm
index 16507468bdb..df02b6f0c9c 100644
--- a/code/modules/admin/sql_notes.dm
+++ b/code/modules/admin/sql_notes.dm
@@ -3,7 +3,6 @@
return
if(!dbcon.IsConnected())
to_chat(usr, "Failed to establish database connection.")
-
return
if(!target_ckey)
var/new_ckey = ckey(input(usr,"Who would you like to add a note for?","Enter a ckey",null) as text|null)
@@ -17,7 +16,6 @@
return
if(!query_find_ckey.NextRow())
to_chat(usr, "[new_ckey] has not been seen before, you can only add notes to known players.")
-
return
else
target_ckey = new_ckey
@@ -56,7 +54,6 @@
var/adminckey
if(!dbcon.IsConnected())
to_chat(usr, "Failed to establish database connection.")
-
return
if(!note_id)
return
@@ -84,7 +81,6 @@
return
if(!dbcon.IsConnected())
to_chat(usr, "Failed to establish database connection.")
-
return
if(!note_id)
return
diff --git a/code/modules/admin/stickyban.dm b/code/modules/admin/stickyban.dm
index e88ecaf70de..a772edc2608 100644
--- a/code/modules/admin/stickyban.dm
+++ b/code/modules/admin/stickyban.dm
@@ -23,7 +23,6 @@
if (get_stickyban_from_ckey(ckey))
to_chat(usr, "Error: Can not add a stickyban: User already has a current sticky ban")
-
if (data["reason"])
ban["message"] = data["reason"]
else
@@ -45,13 +44,11 @@
var/ban = get_stickyban_from_ckey(ckey)
if (!ban)
to_chat(usr, "Error: No sticky ban for [ckey] found!")
-
return
if (alert("Are you sure you want to remove the sticky ban on [ckey]?","Are you sure","Yes","No") == "No")
return
if (!get_stickyban_from_ckey(ckey))
to_chat(usr, "Error: The ban disappeared.")
-
return
world.SetConfig("ban", ckey, null)
@@ -68,7 +65,6 @@
var/ban = get_stickyban_from_ckey(ckey)
if (!ban)
to_chat(usr, "Error: No sticky ban for [ckey] found!")
-
return
var/found = 0
@@ -80,7 +76,6 @@
if (!found)
to_chat(usr, "Error: [alt] is not linked to [ckey]'s sticky ban!")
-
return
if (alert("Are you sure you want to disassociate [alt] from [ckey]'s sticky ban? \nNote: Nothing stops byond from re-linking them","Are you sure","Yes","No") == "No")
@@ -90,7 +85,6 @@
ban = get_stickyban_from_ckey(ckey)
if (!ban)
to_chat(usr, "Error: The ban disappeared.")
-
return
found = 0
@@ -102,7 +96,6 @@
if (!found)
to_chat(usr, "Error: [alt] link to [ckey]'s sticky ban disappeared.")
-
return
world.SetConfig("ban",ckey,list2stickyban(ban))
@@ -117,7 +110,6 @@
var/ban = get_stickyban_from_ckey(ckey)
if (!ban)
to_chat(usr, "Error: No sticky ban for [ckey] found!")
-
return
var/oldreason = ban["message"]
var/reason = input(usr,"Reason","Reason","[ban["message"]]") as text|null
@@ -127,7 +119,6 @@
ban = get_stickyban_from_ckey(ckey)
if (!ban)
to_chat(usr, "Error: The ban disappeared.")
-
return
ban["message"] = "[reason]"
diff --git a/code/modules/admin/topic.dm b/code/modules/admin/topic.dm
index 6b122a48ee8..49a06ac5947 100644
--- a/code/modules/admin/topic.dm
+++ b/code/modules/admin/topic.dm
@@ -19,14 +19,10 @@
to_chat(C, 'sound/effects/adminhelp.ogg')
-
to_chat(C, "- AdminHelp Rejected! -")
-
to_chat(C, "Your admin help was rejected.")
-
to_chat(C, "Please try to be calm, clear, and descriptive in admin helps, do not assume the admin has seen any related events, and clearly state the names of anybody you are reporting. If you asked a question, please ensure it was clear what you were asking.")
-
message_admins("[key_name_admin(usr)] rejected [key_name_admin(C.mob)]'s admin help")
log_admin("[key_name(usr)] rejected [key_name(C.mob)]'s admin help")
@@ -39,43 +35,35 @@
log_admin("[key_name(usr)] has spawned a traitor.")
if(!src.makeTraitors())
to_chat(usr, "\red Unfortunately there weren't enough candidates available.")
-
if("2")
log_admin("[key_name(usr)] has spawned a changeling.")
if(!src.makeChanglings())
to_chat(usr, "\red Unfortunately there weren't enough candidates available.")
-
if("3")
log_admin("[key_name(usr)] has spawned revolutionaries.")
if(!src.makeRevs())
to_chat(usr, "\red Unfortunately there weren't enough candidates available.")
-
if("4")
log_admin("[key_name(usr)] has spawned a cultists.")
if(!src.makeCult())
to_chat(usr, "\red Unfortunately there weren't enough candidates available.")
-
if("5")
log_admin("[key_name(usr)] has spawned a malf AI.")
if(!src.makeMalfAImode())
to_chat(usr, "\red Unfortunately there weren't enough candidates available.")
-
if("6")
log_admin("[key_name(usr)] has spawned a wizard.")
if(!src.makeWizard())
to_chat(usr, "\red Unfortunately there weren't enough candidates available.")
-
if("7")
log_admin("[key_name(usr)] has spawned vampires.")
if(!src.makeVampires())
to_chat(usr, "\red Unfortunately there weren't enough candidates available.")
-
if("8")
log_admin("[key_name(usr)] has spawned vox raiders.")
if(!src.makeVoxRaiders())
to_chat(usr, "\red Unfortunately there weren't enough candidates available.")
-
else if(href_list["dbsearchckey"] || href_list["dbsearchadmin"] || href_list["dbsearchip"] || href_list["dbsearchcid"] || href_list["dbsearchbantype"])
var/adminckey = href_list["dbsearchadmin"]
var/playerckey = href_list["dbsearchckey"]
@@ -115,45 +103,38 @@
if(BANTYPE_PERMA)
if(!banckey || !banreason)
to_chat(usr, "Not enough parameters (Requires ckey and reason)")
-
return
banduration = null
banjob = null
if(BANTYPE_TEMP)
if(!banckey || !banreason || !banduration)
to_chat(usr, "Not enough parameters (Requires ckey, reason and duration)")
-
return
banjob = null
if(BANTYPE_JOB_PERMA)
if(!banckey || !banreason || !banjob)
to_chat(usr, "Not enough parameters (Requires ckey, reason and job)")
-
return
banduration = null
if(BANTYPE_JOB_TEMP)
if(!banckey || !banreason || !banjob || !banduration)
to_chat(usr, "Not enough parameters (Requires ckey, reason and job)")
-
return
if(BANTYPE_APPEARANCE)
if(!banckey || !banreason)
to_chat(usr, "Not enough parameters (Requires ckey and reason)")
-
return
banduration = null
banjob = null
if(BANTYPE_ADMIN_PERMA)
if(!banckey || !banreason)
to_chat(usr, "Not enough parameters (Requires ckey and reason)")
-
return
banduration = null
banjob = null
if(BANTYPE_ADMIN_TEMP)
if(!banckey || !banreason || !banduration)
to_chat(usr, "Not enough parameters (Requires ckey, reason and duration)")
-
return
banjob = null
@@ -192,7 +173,6 @@
if(!new_ckey) return
if(new_ckey in admin_datums)
to_chat(usr, "Error: Topic 'editrights': [new_ckey] is already an admin")
-
return
adm_ckey = new_ckey
task = "rank"
@@ -200,7 +180,6 @@
adm_ckey = ckey(href_list["ckey"])
if(!adm_ckey)
to_chat(usr, "Error: Topic 'editrights': No valid ckey")
-
return
var/datum/admins/D = admin_datums[adm_ckey]
@@ -234,7 +213,6 @@
new_rank = ckeyEx(new_rank)
if(!new_rank)
to_chat(usr, "Error: Topic 'editrights': Invalid rank")
-
return
if(config.admin_legacy_system)
if(admin_ranks.len)
@@ -329,7 +307,6 @@
var/mob/M = locate(href_list["mob"])
if(!ismob(M))
to_chat(usr, "This can only be used on instances of type /mob")
-
return
var/delmob = 0
@@ -424,13 +401,9 @@
message_admins("\blue [key_name_admin(usr)] edited [banned_key]'s ban. Reason: [reason] Duration: [duration]", 1)
Banlist.cd = "/base/[banfolder]"
to_chat(Banlist["reason"], reason)
-
to_chat(Banlist["temp"], temp)
-
to_chat(Banlist["minutes"], minutes)
-
to_chat(Banlist["bannedby"], usr.ckey)
-
Banlist.cd = "/base"
feedback_inc("ban_edit",1)
unbanpanel()
@@ -443,18 +416,15 @@
var/mob/M = locate(href_list["appearanceban"])
if(!ismob(M))
to_chat(usr, "This can only be used on instances of type /mob")
-
return
if(!M.ckey) //sanity
to_chat(usr, "This mob has no ckey")
-
return
var/banreason = appearance_isbanned(M)
if(banreason)
/* if(!config.ban_legacy_system)
to_chat(usr, "Unfortunately, database based unbanning cannot be done through this panel")
-
DB_ban_panel(M.ckey)
return */
switch(alert("Reason: '[banreason]' Remove appearance ban?","Please Confirm","Yes","No"))
@@ -467,7 +437,6 @@
message_admins("\blue [key_name_admin(usr)] removed [key_name_admin(M)]'s appearance ban", 1)
to_chat(M, "\red[usr.client.ckey] has removed your appearance ban.")
-
else switch(alert("Appearance ban [M.ckey]?",,"Yes","No", "Cancel"))
if("Yes")
var/reason = input(usr,"Please state the reason","Reason") as message|null
@@ -481,17 +450,12 @@
add_note(M.ckey, "Appearance banned - [reason]", null, usr, 0)
message_admins("\blue [key_name_admin(usr)] appearance banned [key_name_admin(M)]", 1)
to_chat(M, "\redYou have been appearance banned by [usr.client.ckey].")
-
to_chat(M, "\red The reason is: [reason]")
-
to_chat(M, "\red Appearance ban can be lifted only upon request.")
-
if(config.banappeals)
to_chat(M, "\red To try to resolve this matter head to [config.banappeals]")
-
else
to_chat(M, "\red No ban appeals URL has been set.")
-
if("No")
return
@@ -501,16 +465,13 @@
var/mob/M = locate(href_list["jobban2"])
if(!ismob(M))
to_chat(usr, "This can only be used on instances of type /mob")
-
return
if(!M.ckey) //sanity
to_chat(usr, "This mob has no ckey")
-
return
if(!job_master)
to_chat(usr, "Job Master has not been setup!")
-
return
var/dat = ""
@@ -835,7 +796,6 @@
var/mob/M = locate(href_list["jobban4"])
if(!ismob(M))
to_chat(usr, "This can only be used on instances of type /mob")
-
return
if(M != usr) //we can jobban ourselves
@@ -845,7 +805,6 @@
if(!job_master)
to_chat(usr, "Job Master has not been setup!")
-
return
//get jobs for department if specified, otherwise just returnt he one job in a list.
@@ -915,7 +874,6 @@
if("Yes")
if(config.ban_legacy_system)
to_chat(usr, "\red Your server is using the legacy banning system, which does not support temporary job bans. Consider upgrading. Aborting ban.")
-
return
var/mins = input(usr,"How long (in minutes)?","Ban time",1440) as num|null
if(!mins)
@@ -939,11 +897,8 @@
add_note(M.ckey, "Banned from [msg] - [reason]", null, usr, 0)
message_admins("\blue [key_name_admin(usr)] banned [key_name_admin(M)] from [msg] for [mins] minutes", 1)
to_chat(M, "\redYou have been jobbanned by [usr.client.ckey] from: [msg].")
-
to_chat(M, "\red The reason is: [reason]")
-
to_chat(M, "\red This jobban will be lifted in [mins] minutes.")
-
href_list["jobban2"] = 1 // lets it fall through and refresh
return 1
if("No")
@@ -962,11 +917,8 @@
add_note(M.ckey, "Banned from [msg] - [reason]", null, usr, 0)
message_admins("\blue [key_name_admin(usr)] banned [key_name_admin(M)] from [msg]", 1)
to_chat(M, "\redYou have been jobbanned by [usr.client.ckey] from: [msg].")
-
to_chat(M, "\red The reason is: [reason]")
-
to_chat(M, "\red Jobban can be lifted only upon request.")
-
href_list["jobban2"] = 1 // lets it fall through and refresh
return 1
if("Cancel")
@@ -977,7 +929,6 @@
if(joblist.len) //at least 1 banned job exists in joblist so we have stuff to unban.
if(!config.ban_legacy_system)
to_chat(usr, "Unfortunately, database based unbanning cannot be done through this panel")
-
DB_ban_panel(M.ckey)
return
var/msg
@@ -999,7 +950,6 @@
if(msg)
message_admins("\blue [key_name_admin(usr)] unbanned [key_name_admin(M)] from [msg]", 1)
to_chat(M, "\redYou have been un-jobbanned by [usr.client.ckey] from [msg].")
-
href_list["jobban2"] = 1 // lets it fall through and refresh
return 1
return 0 //we didn't do anything!
@@ -1010,7 +960,6 @@
if(!check_if_greater_rights_than(M.client))
return
to_chat(M, "\red You have been kicked from the server")
-
log_admin("[key_name(usr)] booted [key_name(M)].")
message_admins("\blue [key_name_admin(usr)] booted [key_name_admin(M)].", 1)
//M.client = null
@@ -1095,18 +1044,14 @@
AddBan(M.ckey, M.computer_id, reason, usr.ckey, 1, mins)
ban_unban_log_save("[usr.client.ckey] has banned [M.ckey]. - Reason: [reason] - This will be removed in [mins] minutes.")
to_chat(M, "\redYou have been banned by [usr.client.ckey].\nReason: [reason].")
-
to_chat(M, "\red This is a temporary ban, it will be removed in [mins] minutes.")
-
feedback_inc("ban_tmp",1)
DB_ban_record(BANTYPE_TEMP, M, mins, reason)
feedback_inc("ban_tmp_mins",mins)
if(config.banappeals)
to_chat(M, "\red To try to resolve this matter head to [config.banappeals]")
-
else
to_chat(M, "\red No ban appeals URL has been set.")
-
log_admin("[key_name(usr)] has banned [M.ckey].\nReason: [reason]\nThis will be removed in [mins] minutes.")
message_admins("\blue [key_name_admin(usr)] has banned [M.ckey].\nReason: [reason]\nThis will be removed in [mins] minutes.")
@@ -1123,15 +1068,11 @@
if("No")
AddBan(M.ckey, M.computer_id, reason, usr.ckey, 0, 0)
to_chat(M, "\redYou have been banned by [usr.client.ckey].\nReason: [reason].")
-
to_chat(M, "\red This is a permanent ban.")
-
if(config.banappeals)
to_chat(M, "\red To try to resolve this matter head to [config.banappeals]")
-
else
to_chat(M, "\red No ban appeals URL has been set.")
-
ban_unban_log_save("[usr.client.ckey] has permabanned [M.ckey]. - Reason: [reason] - This is a permanent ban.")
log_admin("[key_name(usr)] has banned [M.ckey].\nReason: [reason]\nThis is a permanent ban.")
message_admins("\blue[key_name_admin(usr)] has banned [M.ckey].\nReason: [reason]\nThis is a permanent ban.")
@@ -1238,7 +1179,6 @@
log_admin("[key_name(usr)] set the mode as [master_mode].")
message_admins("\blue [key_name_admin(usr)] set the mode as [master_mode].", 1)
to_chat(world, "\blue The mode is now: [master_mode]")
-
Game() // updates the main game menu
world.save_mode(master_mode)
.(href, list("c_mode"=1))
@@ -1262,7 +1202,6 @@
var/mob/living/carbon/human/H = locate(href_list["monkeyone"])
if(!istype(H))
to_chat(usr, "This can only be used on instances of type /mob/living/carbon/human")
-
return
log_admin("[key_name(usr)] attempting to monkeyize [key_name(H)]")
@@ -1276,7 +1215,6 @@
var/mob/living/carbon/human/H = locate(href_list["corgione"])
if(!istype(H))
to_chat(usr, "This can only be used on instances of type /mob/living/carbon/human")
-
return
log_admin("[key_name(usr)] attempting to corgize [key_name(H)]")
@@ -1290,7 +1228,6 @@
if(!ismob(M))
to_chat(usr, "this can only be used on instances of type /mob")
-
var/speech = input("What will [key_name(M)] say?.", "Force speech", "")// Don't need to sanitize, since it does that in say(), we also trust our admins.
if(!speech) return
M.say(speech)
@@ -1307,11 +1244,9 @@
var/mob/M = locate(href_list["sendtoprison"])
if(!ismob(M))
to_chat(usr, "This can only be used on instances of type /mob")
-
return
if(istype(M, /mob/living/silicon/ai))
to_chat(usr, "This cannot be used on instances of type /mob/living/silicon/ai")
-
return
var/turf/prison_cell = pick(prisonwarp)
@@ -1342,7 +1277,6 @@
prisoner.equip_to_slot_or_del(new /obj/item/clothing/shoes/orange(prisoner), slot_shoes)
to_chat(M, "\red You have been sent to the prison station!")
-
log_admin("[key_name(usr)] sent [key_name(M)] to the prison station.")
message_admins("\blue [key_name_admin(usr)] sent [key_name_admin(M)] to the prison station.", 1)
@@ -1354,12 +1288,10 @@
if(!isobserver(M))
to_chat(usr, "You can only send ghost players back to the Lobby.")
-
return
if(!M.client)
to_chat(usr, "[M] doesn't seem to have an active client.")
-
return
if(alert(usr, "Send [key_name(M)] back to Lobby?", "Message", "Yes", "No") != "Yes")
@@ -1381,11 +1313,9 @@
var/mob/M = locate(href_list["tdome1"])
if(!ismob(M))
to_chat(usr, "This can only be used on instances of type /mob")
-
return
if(istype(M, /mob/living/silicon/ai))
to_chat(usr, "This cannot be used on instances of type /mob/living/silicon/ai")
-
return
for(var/obj/item/I in M)
@@ -1400,7 +1330,6 @@
M.loc = pick(tdome1)
spawn(50)
to_chat(M, "\blue You have been sent to the Thunderdome.")
-
log_admin("[key_name(usr)] has sent [key_name(M)] to the thunderdome. (Team 1)")
message_admins("[key_name_admin(usr)] has sent [key_name_admin(M)] to the thunderdome. (Team 1)", 1)
@@ -1413,11 +1342,9 @@
var/mob/M = locate(href_list["tdome2"])
if(!ismob(M))
to_chat(usr, "This can only be used on instances of type /mob")
-
return
if(istype(M, /mob/living/silicon/ai))
to_chat(usr, "This cannot be used on instances of type /mob/living/silicon/ai")
-
return
for(var/obj/item/I in M)
@@ -1432,7 +1359,6 @@
M.loc = pick(tdome2)
spawn(50)
to_chat(M, "\blue You have been sent to the Thunderdome.")
-
log_admin("[key_name(usr)] has sent [key_name(M)] to the thunderdome. (Team 2)")
message_admins("[key_name_admin(usr)] has sent [key_name_admin(M)] to the thunderdome. (Team 2)", 1)
@@ -1445,11 +1371,9 @@
var/mob/M = locate(href_list["tdomeadmin"])
if(!ismob(M))
to_chat(usr, "This can only be used on instances of type /mob")
-
return
if(istype(M, /mob/living/silicon/ai))
to_chat(usr, "This cannot be used on instances of type /mob/living/silicon/ai")
-
return
M.Paralyse(5)
@@ -1457,7 +1381,6 @@
M.loc = pick(tdomeadmin)
spawn(50)
to_chat(M, "\blue You have been sent to the Thunderdome.")
-
log_admin("[key_name(usr)] has sent [key_name(M)] to the thunderdome. (Admin.)")
message_admins("[key_name_admin(usr)] has sent [key_name_admin(M)] to the thunderdome. (Admin.)", 1)
@@ -1470,11 +1393,9 @@
var/mob/M = locate(href_list["tdomeobserve"])
if(!ismob(M))
to_chat(usr, "This can only be used on instances of type /mob")
-
return
if(istype(M, /mob/living/silicon/ai))
to_chat(usr, "This cannot be used on instances of type /mob/living/silicon/ai")
-
return
for(var/obj/item/I in M)
@@ -1493,7 +1414,6 @@
M.loc = pick(tdomeobserve)
spawn(50)
to_chat(M, "\blue You have been sent to the Thunderdome.")
-
log_admin("[key_name(usr)] has sent [key_name(M)] to the thunderdome. (Observer.)")
message_admins("[key_name_admin(usr)] has sent [key_name_admin(M)] to the thunderdome. (Observer.)", 1)
@@ -1506,11 +1426,9 @@
var/mob/M = locate(href_list["aroomwarp"])
if(!ismob(M))
to_chat(usr, "This can only be used on instances of type /mob")
-
return
if(istype(M, /mob/living/silicon/ai))
to_chat(usr, "This cannot be used on instances of type /mob/living/silicon/ai")
-
return
M.Paralyse(5)
@@ -1518,7 +1436,6 @@
M.loc = pick(aroomwarp)
spawn(50)
to_chat(M, "\blue You have been sent to the Admin Room!.")
-
log_admin("[key_name(usr)] has sent [key_name(M)] to the Admin Room")
message_admins("[key_name_admin(usr)] has sent [key_name_admin(M)] to the Admin Room", 1)
@@ -1529,7 +1446,6 @@
var/mob/living/L = locate(href_list["revive"])
if(!istype(L))
to_chat(usr, "This can only be used on instances of type /mob/living")
-
return
L.revive()
@@ -1542,7 +1458,6 @@
var/mob/living/carbon/human/H = locate(href_list["makeai"])
if(!istype(H))
to_chat(usr, "This can only be used on instances of type /mob/living/carbon/human")
-
return
message_admins("\red Admin [key_name_admin(usr)] AIized [key_name_admin(H)]!", 1)
@@ -1564,7 +1479,6 @@
var/mob/living/carbon/human/H = locate(href_list["makealien"])
if(!istype(H))
to_chat(usr, "This can only be used on instances of type /mob/living/carbon/human")
-
return
usr.client.cmd_admin_alienize(H)
@@ -1575,7 +1489,6 @@
var/mob/living/carbon/human/H = locate(href_list["makeslime"])
if(!istype(H))
to_chat(usr, "This can only be used on instances of type /mob/living/carbon/human")
-
return
usr.client.cmd_admin_slimeize(H)
@@ -1586,7 +1499,6 @@
var/mob/living/carbon/human/H = locate(href_list["makesuper"])
if(!istype(H))
to_chat(usr, "This can only be used on instances of type /mob/living/carbon/human")
-
return
usr.client.cmd_admin_super(H)
@@ -1597,7 +1509,6 @@
var/mob/living/carbon/human/H = locate(href_list["makerobot"])
if(!istype(H))
to_chat(usr, "This can only be used on instances of type /mob/living/carbon/human")
-
return
usr.client.cmd_admin_robotize(H)
@@ -1608,7 +1519,6 @@
var/mob/M = locate(href_list["makeanimal"])
if(istype(M, /mob/new_player))
to_chat(usr, "This cannot be used on instances of type /mob/new_player")
-
return
usr.client.cmd_admin_animalize(M)
@@ -1619,7 +1529,6 @@
var/mob/dead/observer/G = locate(href_list["incarn_ghost"])
if(!istype(G))
to_chat(usr, "This will only work on /mob/dead/observer")
-
log_admin("[key_name(G)] was incarnated by [key_name(src.owner)]")
message_admins("[key_name_admin(G)] was incarnated by [key_name_admin(src.owner)]")
G.incarnate_ghost()
@@ -1630,7 +1539,6 @@
var/mob/living/carbon/human/H = locate(href_list["togmutate"])
if(!istype(H))
to_chat(usr, "This can only be used on instances of type /mob/living/carbon/human")
-
return
var/block=text2num(href_list["block"])
//testing("togmutate([href_list["block"]] -> [block])")
@@ -1687,7 +1595,6 @@
var/mob/M = locate(href_list["adminmoreinfo"])
if(!ismob(M))
to_chat(usr, "This can only be used on instances of type /mob")
-
return
var/location_description = ""
@@ -1728,25 +1635,18 @@
else gender_description = "[M.gender]"
to_chat(src.owner, "Info about [M.name]: ")
-
to_chat(src.owner, "Mob type = [M.type]; Gender = [gender_description] Damage = [health_description]")
-
to_chat(src.owner, "Name = [M.name]; Real_name = [M.real_name]; Mind_name = [M.mind?"[M.mind.name]":""]; Key = [M.key];")
-
to_chat(src.owner, "Location = [location_description];")
-
to_chat(src.owner, "[special_role_description]")
-
to_chat(src.owner, "(PM) (PP) (VV) (SM) (FLW) (CA)")
-
else if(href_list["adminspawncookie"])
if(!check_rights(R_ADMIN|R_EVENT)) return
var/mob/living/carbon/human/H = locate(href_list["adminspawncookie"])
if(!ishuman(H))
to_chat(usr, "This can only be used on instances of type /mob/living/carbon/human")
-
return
H.equip_to_slot_or_del( new /obj/item/weapon/reagent_containers/food/snacks/cookie(H), slot_l_hand )
@@ -1765,14 +1665,12 @@
feedback_inc("admin_cookies_spawned",1)
to_chat(H, "\blue Your prayers have been answered!! You received the best cookie!")
-
else if(href_list["BlueSpaceArtillery"])
if(!check_rights(R_ADMIN|R_EVENT)) return
var/mob/living/M = locate(href_list["BlueSpaceArtillery"])
if(!isliving(M))
to_chat(usr, "This can only be used on instances of type /mob/living")
-
return
if(alert(src.owner, "Are you sure you wish to hit [key_name(M)] with Bluespace Artillery?", "Confirm Firing?" , "Yes" , "No") != "Yes")
@@ -1780,7 +1678,6 @@
if(BSACooldown)
to_chat(src.owner, "Standby. Reload cycle in progress. Gunnery crews ready in five seconds!")
-
return
BSACooldown = 1
@@ -1788,7 +1685,6 @@
BSACooldown = 0
to_chat(M, "You've been hit by bluespace artillery!")
-
log_admin("[key_name(M)] has been hit by Bluespace Artillery fired by [key_name(src.owner)]")
message_admins("[key_name_admin(M)] has been hit by Bluespace Artillery fired by [key_name_admin(src.owner)]")
@@ -1819,23 +1715,19 @@
var/mob/living/carbon/human/H = locate(href_list["CentcommReply"])
if(!istype(H))
to_chat(usr, "This can only be used on instances of type /mob/living/carbon/human")
-
return
if(!istype(H.l_ear, /obj/item/device/radio/headset) && !istype(H.r_ear, /obj/item/device/radio/headset))
to_chat(usr, "The person you are trying to contact is not wearing a headset")
-
return
var/input = input(src.owner, "Please enter a message to reply to [key_name(H)] via their headset.","Outgoing message from Centcomm", "")
if(!input) return
to_chat(src.owner, "You sent [input] to [H] via a secure channel.")
-
log_admin("[key_name(src.owner)] replied to [key_name(H)]'s Centcomm message with the message [input].")
message_admins("[key_name_admin(src.owner)] replied to [key_name_admin(H)]'s Centcom message with: \"[input]\"")
to_chat(H, "You hear something crackle in your headset for a moment before a voice speaks. \"Please stand by for a message from Central Command. Message as follows. [input]. Message ends.\"")
-
else if(href_list["SyndicateReply"])
if(!check_rights(R_ADMIN))
return
@@ -1843,46 +1735,37 @@
var/mob/living/carbon/human/H = locate(href_list["SyndicateReply"])
if(!istype(H))
to_chat(usr, "This can only be used on instances of type /mob/living/carbon/human")
-
return
if(H.stat != 0)
to_chat(usr, "The person you are trying to contact is not conscious.")
-
return
if(!istype(H.l_ear, /obj/item/device/radio/headset) && !istype(H.r_ear, /obj/item/device/radio/headset))
to_chat(usr, "The person you are trying to contact is not wearing a headset")
-
return
var/input = input(src.owner, "Please enter a message to reply to [key_name(H)] via their headset.","Outgoing message from The Syndicate", "")
if(!input) return
to_chat(src.owner, "You sent [input] to [H] via a secure channel.")
-
log_admin("[src.owner] replied to [key_name(H)]'s Syndicate message with the message [input].")
to_chat(H, "You hear something crackle in your headset for a moment before a voice speaks. \"Please stand by for a message from your benefactor. Message as follows, agent. [input]. Message ends.\"")
-
else if(href_list["HONKReply"])
var/mob/living/carbon/human/H = locate(href_list["HONKReply"])
if(!istype(H))
to_chat(usr, "This can only be used on instances of type /mob/living/carbon/human")
-
return
if(!istype(H.l_ear, /obj/item/device/radio/headset) && !istype(H.r_ear, /obj/item/device/radio/headset))
to_chat(usr, "The person you are trying to contact is not wearing a headset")
-
return
var/input = input(src.owner, "Please enter a message to reply to [key_name(H)] via their headset.","Outgoing message from HONKplanet", "")
if(!input) return
to_chat(src.owner, "You sent [input] to [H] via a secure channel.")
-
log_admin("[src.owner] replied to [key_name(H)]'s HONKplanet message with the message [input].")
to_chat(H, "You hear something crackle in your headset for a moment before a voice speaks. \"Please stand by for a message from your HONKbrothers. Message as follows, HONK. [input]. Message ends, HONK.\"")
-
else if(href_list["ErtReply"])
if(!check_rights(R_ADMIN))
return
@@ -1891,25 +1774,20 @@
var/mob/living/carbon/human/H = locate(href_list["ErtReply"])
if(!istype(H))
to_chat(usr, "This can only be used on instances of type /mob/living/carbon/human")
-
return
if(H.stat != 0)
to_chat(usr, "The person you are trying to contact is not conscious.")
-
return
if(!istype(H.l_ear, /obj/item/device/radio/headset) && !istype(H.r_ear, /obj/item/device/radio/headset))
to_chat(usr, "The person you are trying to contact is not wearing a headset")
-
return
var/input = input(src.owner, "Please enter a reason for denying [key_name(H)]'s ERT request.","Outgoing message from CentComm", "")
if(!input) return
to_chat(src.owner, "You sent [input] to [H] via a secure channel.")
-
log_admin("[src.owner] denied [key_name(H)]'s ERT request with the message [input].")
to_chat(H, "You hear something crackle in your headset for a moment before a voice speaks. \"Your ERT request has been denied for the following reasons: [input]. Message ends.\"")
-
else
src.owner.response_team()
@@ -1939,7 +1817,6 @@
else
to_chat(usr, "\red The faxed item is not viewable. This is probably a bug, and should be reported on the tracker: [fax.type]")
-
else if (href_list["AdminFaxViewPage"])
if(!check_rights(R_ADMIN))
return
@@ -2071,7 +1948,6 @@
if(destination != "All Departments")
if(!fax.receivefax(P))
to_chat(src.owner, "\red Message transmission failed.")
-
return
else
for(var/obj/machinery/photocopier/faxmachine/F in allfaxes)
@@ -2080,7 +1956,6 @@
if(!F.receivefax(P))
to_chat(src.owner, "\red Message transmission to [F.department] failed.")
-
var/datum/fax/admin/A = new /datum/fax/admin()
A.name = P.name
A.from_department = faxtype
@@ -2095,12 +1970,10 @@
A.sent_at = world.time
to_chat(src.owner, "\blue Message transmitted successfully.")
-
if(notify == "Yes")
var/mob/living/carbon/human/H = sender
if(istype(H) && H.stat == CONSCIOUS && (istype(H.l_ear, /obj/item/device/radio/headset) || istype(H.r_ear, /obj/item/device/radio/headset)))
to_chat(sender, "Your headset pings, notifying you that a reply to your fax has arrived.")
-
if(sender)
log_admin("[key_name(src.owner)] replied to a fax message from [key_name(sender)]: [input]")
message_admins("[key_name_admin(src.owner)] replied to a fax message from [key_name_admin(sender)] (VIEW).", 1)
@@ -2156,7 +2029,6 @@
var/mob/M = locate(href_list["traitor"])
if(!ismob(M))
to_chat(usr, "This can only be used on instances of type /mob.")
-
return
show_traitor_panel(M)
@@ -2226,7 +2098,6 @@
if("inhand")
if (!iscarbon(usr) && !isrobot(usr))
to_chat(usr, "Can only spawn in hand when you're a carbon mob or cyborg.")
-
where = "onfloor"
target = usr
@@ -2239,11 +2110,9 @@
if("inmarked")
if(!marked_datum)
to_chat(usr, "You don't have any object marked. Abandoning spawn.")
-
return
else if(!istype(marked_datum,/atom))
to_chat(usr, "The object you have marked cannot be used as a target. Target must be of type /atom. Abandoning spawn.")
-
return
else
target = marked_datum
@@ -2309,7 +2178,6 @@
else
to_chat(usr, "You may only use this when the game is running.")
-
else if(href_list["memoeditlist"])
if(!check_rights(R_SERVER)) return
var/sql_key = sanitizeSQL("[href_list["memoeditlist"]]")
@@ -2387,7 +2255,6 @@
if("gravity")
if(!(ticker && ticker.mode))
to_chat(usr, "Please wait until the game starts! Not sure how it will work otherwise.")
-
return
gravity_is_on = !gravity_is_on
for(var/area/A in world)
@@ -2550,13 +2417,10 @@
/* if("shockwave")
ok = 1
to_chat(world, "\red ALERT: STATION STRESS CRITICAL")
-
sleep(60)
to_chat(world, "\red ALERT: STATION STRESS CRITICAL. TOLERABLE LEVELS EXCEEDED!")
-
sleep(80)
to_chat(world, "\red ALERT: STATION STRUCTURAL STRESS CRITICAL. SAFETY MECHANISMS FAILED!")
-
sleep(40)
for(var/mob/M in world)
shake_camera(M, 400, 1)
@@ -2611,7 +2475,6 @@
if("floorlava")
if(floorIsLava)
to_chat(usr, "The floor is lava already.")
-
return
feedback_inc("admin_secrets_fun_used",1)
feedback_add_details("admin_secrets_fun_used","LF")
@@ -2669,7 +2532,6 @@
feedback_add_details("admin_secrets_fun_used","RET")
for(var/mob/living/carbon/human/H in player_list)
to_chat(H, "\red You suddenly feel stupid.")
-
H.setBrainLoss(60)
message_admins("[key_name_admin(usr)] made everybody retarded")
if("fakeguns")
@@ -2691,7 +2553,6 @@
W.item_color = "schoolgirl"
message_admins("[key_name_admin(usr)] activated Japanese Animes mode")
to_chat(world, sound('sound/AI/animes.ogg'))
-
if("eagles")//SCRAW
feedback_inc("admin_secrets_fun_used",1)
feedback_add_details("admin_secrets_fun_used","EgL")
@@ -2799,7 +2660,6 @@
if (ok)
to_chat(world, text("A secret has been activated by []!", usr.key))
-
else if(href_list["secretsadmin"])
if(!check_rights(R_ADMIN)) return
@@ -2877,7 +2737,6 @@
if (ok)
to_chat(world, text("A secret has been activated by []!", usr.key))
-
else if(href_list["secretscoder"])
if(!check_rights(R_DEBUG)) return
diff --git a/code/modules/admin/verbs/BrokenInhands.dm b/code/modules/admin/verbs/BrokenInhands.dm
index dd135db1c50..e0fb1a46913 100644
--- a/code/modules/admin/verbs/BrokenInhands.dm
+++ b/code/modules/admin/verbs/BrokenInhands.dm
@@ -32,7 +32,5 @@
var/F = file("broken_hand_icons.txt")
fdel(F)
to_chat(F, text)
-
to_chat(world, "Completed and written to [F]")
-
diff --git a/code/modules/admin/verbs/SDQL2/SDQL_2.dm b/code/modules/admin/verbs/SDQL2/SDQL_2.dm
index b8fafe55e93..0b0b8991aa1 100644
--- a/code/modules/admin/verbs/SDQL2/SDQL_2.dm
+++ b/code/modules/admin/verbs/SDQL2/SDQL_2.dm
@@ -27,7 +27,6 @@
// to_chat(world, query_text)
-
var/list/query_list = SDQL2_tokenize(query_text)
if(!query_list || query_list.len < 1)
@@ -149,10 +148,8 @@
d.vars[v] = vals[v]
catch(var/exception/e)
to_chat(usr, "A runtime error has occured during the execution of your query and your query has been aborted.")
-
to_chat(usr, "[e]")
-
/proc/SDQL_parse(list/query_list)
var/datum/SDQL_parser/parser = new()
var/list/querys = list()
@@ -178,7 +175,6 @@
querys_pos++
else //There was an error so don't run anything, and tell the user which query has errored.
to_chat(usr, "Parsing error on [querys_pos]\th query. Nothing was executed.")
-
return list()
query_tree = list()
do_parse = 0
@@ -200,28 +196,22 @@
for(var/item in query_tree)
if(istype(item, /list))
to_chat(usr, "[spaces](")
-
SDQL_testout(item, indent + 1)
to_chat(usr, "[spaces])")
-
else
to_chat(usr, "[spaces][item]")
-
if(!isnum(item) && query_tree[item])
if(istype(query_tree[item], /list))
to_chat(usr, "[spaces] (")
-
SDQL_testout(query_tree[item], indent + 2)
to_chat(usr, "[spaces] )")
-
else
to_chat(usr, "[spaces] [query_tree[item]]")
-
/proc/SDQL_from_objs(list/tree)
if("world" in tree)
return list(world)
@@ -331,7 +321,6 @@
result = (result || val)
else
to_chat(usr, "SDQL2: Unknown op [op]")
-
result = null
else
result = val
@@ -400,12 +389,10 @@
else if(expression[start] == "\[" && start < expression.len)
if(lowertext(copytext(expression[start + 1], 1, 3)) != "0x")
to_chat(usr, "Invalid ref syntax: [expression[start + 1]]")
-
return null
v = locate("\[[expression[start + 1]]\]")
if(!v)
to_chat(usr, "Invalid ref: [expression[start + 1]]")
-
return null
start++
else
@@ -462,7 +449,6 @@
else if(char == "'")
if(word != "")
to_chat(usr, "SDQL2: You have an error in your SDQL syntax, unexpected ' in query: \"[query_text]\" following \"[word]\". Please check your syntax, and try again.")
-
return null
word = "'"
@@ -483,7 +469,6 @@
if(i > len)
to_chat(usr, "SDQL2: You have an error in your SDQL syntax, unmatched ' in query: \"[query_text]\". Please check your syntax, and try again.")
-
return null
query_list += "[word]'"
@@ -492,7 +477,6 @@
else if(char == "\"")
if(word != "")
to_chat(usr, "SDQL2: You have an error in your SDQL syntax, unexpected \" in query: \"[query_text]\" following \"[word]\". Please check your syntax, and try again.")
-
return null
word = "\""
@@ -513,7 +497,6 @@
if(i > len)
to_chat(usr, "SDQL2: You have an error in your SDQL syntax, unmatched \" in query: \"[query_text]\". Please check your syntax, and try again.")
-
return null
query_list += "[word]\""
diff --git a/code/modules/admin/verbs/SDQL2/SDQL_2_parser.dm b/code/modules/admin/verbs/SDQL2/SDQL_2_parser.dm
index e564876c39f..b1b2c28e276 100644
--- a/code/modules/admin/verbs/SDQL2/SDQL_2_parser.dm
+++ b/code/modules/admin/verbs/SDQL2/SDQL_2_parser.dm
@@ -61,7 +61,6 @@
/datum/SDQL_parser/proc/parse_error(error_message)
error = 1
to_chat(usr, "SQDL2 Parsing Error: [error_message]")
-
return query.len + 1
/datum/SDQL_parser/proc/parse()
diff --git a/code/modules/admin/verbs/adminhelp.dm b/code/modules/admin/verbs/adminhelp.dm
index 936fd7b3404..ffebb5ce698 100644
--- a/code/modules/admin/verbs/adminhelp.dm
+++ b/code/modules/admin/verbs/adminhelp.dm
@@ -10,7 +10,6 @@ var/list/adminhelp_ignored_words = list("unknown","the","a","an","of","monkey","
//handle muting and automuting
if(prefs.muted & MUTE_ADMINHELP)
to_chat(src, "Error: Admin-PM: You cannot send adminhelps (Muted).")
-
return
adminhelped = 1 //Determines if they get the message to reply by clicking the name.
@@ -114,22 +113,17 @@ var/list/adminhelp_ignored_words = list("unknown","the","a","an","of","monkey","
for(var/client/X in mentorholders + modholders + adminholders)
if(X.prefs.sound & SOUND_ADMINHELP)
to_chat(X, 'sound/effects/adminhelp.ogg')
-
to_chat(X, msg)
-
if("Adminhelp")
msg = "[selected_type]: [key_name(src, 1, 1, selected_type)] (?) (PP) (VV) (SM) ([admin_jump_link(mob, "holder")]) (CA) (REJT) [ai_found ? " (CL)" : ""]: [msg]"
for(var/client/X in modholders + adminholders)
if(X.prefs.sound & SOUND_ADMINHELP)
to_chat(X, 'sound/effects/adminhelp.ogg')
-
to_chat(X, msg)
-
//show it to the person adminhelping too
to_chat(src, "[selected_type]: [original_msg]")
-
var/admin_number_present = adminholders.len - admin_number_afk
log_admin("[selected_type]: [key_name(src)]: [original_msg] - heard by [admin_number_present] non-AFK admins.")
if(admin_number_present <= 0)
diff --git a/code/modules/admin/verbs/adminjump.dm b/code/modules/admin/verbs/adminjump.dm
index 98d24ed5526..2194fb20bf3 100644
--- a/code/modules/admin/verbs/adminjump.dm
+++ b/code/modules/admin/verbs/adminjump.dm
@@ -20,7 +20,6 @@
var/turf/T = pick_n_take(turfs)
if(!T)
to_chat(src, "Nowhere to jump to!")
-
return
admin_forcemove(usr, T)
@@ -59,7 +58,6 @@
else
to_chat(A, "This mob is not located in the game world.")
-
/client/proc/jumptocoord(tx as num, ty as num, tz as num)
set category = "Admin"
set name = "Jump to Coordinate"
@@ -88,7 +86,6 @@
var/selection = input("Please, select a player!", "Admin Jumping", null, null) as null|anything in sortKey(keys)
if(!selection)
to_chat(src, "No keys found.")
-
return
var/mob/M = selection:mob
log_admin("[key_name(usr)] jumped to [key_name(M)]")
diff --git a/code/modules/admin/verbs/adminpm.dm b/code/modules/admin/verbs/adminpm.dm
index 2bb2450d1ea..ad5006611af 100644
--- a/code/modules/admin/verbs/adminpm.dm
+++ b/code/modules/admin/verbs/adminpm.dm
@@ -4,7 +4,6 @@
set name = "Admin PM Mob"
if(!holder)
to_chat(src, "Error: Admin-PM-Context: Only administrators may use this command.")
-
return
if( !ismob(M) || !M.client ) return
cmd_admin_pm(M.client,null)
@@ -16,7 +15,6 @@
set name = "Admin PM Name"
if(!holder)
to_chat(src, "Error: Admin-PM-Panel: Only administrators may use this command.")
-
return
var/list/client/targets[0]
for(var/client/T)
@@ -40,7 +38,6 @@
set name = "Admin PM Key"
if(!holder)
to_chat(src, "Error: Admin-PM-Panel: Only administrators may use this command.")
-
return
var/list/client/targets[0]
for(var/client/T)
@@ -64,7 +61,6 @@
/client/proc/cmd_admin_pm(whom, msg, type = "PM")
if(prefs.muted & MUTE_ADMINHELP)
to_chat(src, "Error: Private-Message: You are unable to use PM-s (muted).")
-
return
var/client/C
@@ -78,7 +74,6 @@
if(!C)
if(holder)
to_chat(src, "Error: Private-Message: Client not found.")
-
else
adminhelp(msg) //admin we are replying to left. adminhelp instead
return
@@ -87,7 +82,6 @@
//send a warning to admins, but have a delay popup for mods
if(holder.rights & R_ADMIN)
to_chat(src, "\red Simultaneous PMs warning: that player has been PM'd in the last [config.simultaneous_pm_warning_timeout / 10] seconds by: [C.ckey_last_pm]")
-
else
if(alert("That player has been PM'd in the last [config.simultaneous_pm_warning_timeout / 10] seconds by: [C.ckey_last_pm]","Simultaneous PMs warning","Continue","Cancel") == "Cancel")
return*/
@@ -101,7 +95,6 @@
if(!C)
if(holder)
to_chat(src, "Error: Admin-PM: Client not found.")
-
else
adminhelp(msg) //admin we are replying to has vanished, adminhelp instead
return
@@ -133,7 +126,6 @@
else if(!C.holder)
to_chat(src, "Error: Admin-PM: Non-admin to non-admin PM communication is forbidden.")
-
return
var/recieve_message = ""
@@ -142,7 +134,6 @@
recieve_message = "-- Click the [recieve_pm_type]'s name to reply --\n"
if(C.adminhelped)
to_chat(C, recieve_message)
-
C.adminhelped = 0
//AdminPM popup for ApocStation and anybody else who wants to use it. Set it with POPUP_ADMIN_PM in config.txt ~Carn
@@ -160,10 +151,8 @@
recieve_message = "[type] from-[recieve_pm_type][key_name(src, C, C.holder ? 1 : 0, type)]: [msg]"
to_chat(C, recieve_message)
-
to_chat(src, "[send_pm_type][type] to-[key_name(C, src, holder ? 1 : 0, type)]: [msg]")
-
/*if(holder && !C.holder)
C.last_pm_recieved = world.time
C.ckey_last_pm = ckey*/
@@ -173,7 +162,6 @@
if(C.prefs.sound & SOUND_ADMINHELP)
to_chat(C, 'sound/effects/adminhelp.ogg')
-
log_admin("PM: [key_name(src)]->[key_name(C)]: [msg]")
//we don't use message_admins here because the sender/receiver might get it too
for(var/client/X in admins)
@@ -185,20 +173,16 @@
if("Mentorhelp")
if(check_rights(R_ADMIN|R_MOD|R_MENTOR, 0, X.mob))
to_chat(X, "[type]: [key_name(src, X, 0, type)]->[key_name(C, X, 0, type)]: [msg]")
-
if("Adminhelp")
if(check_rights(R_ADMIN|R_MOD, 0, X.mob))
to_chat(X, "[type]: [key_name(src, X, 0, type)]->[key_name(C, X, 0, type)]: [msg]")
-
else
if(check_rights(R_ADMIN|R_MOD, 0, X.mob))
to_chat(X, "[type]: [key_name(src, X, 0, type)]->[key_name(C, X, 0, type)]: [msg]")
-
/client/proc/cmd_admin_irc_pm()
if(prefs.muted & MUTE_ADMINHELP)
to_chat(src, "Error: Private-Message: You are unable to use PM-s (muted).")
-
return
var/msg = input(src,"Message:", "Private message to admins on IRC / 400 character limit") as text|null
@@ -210,20 +194,16 @@
if(length(msg) > 400) // TODO: if message length is over 400, divide it up into seperate messages, the message length restriction is based on IRC limitations. Probably easier to do this on the bots ends.
to_chat(src, "\red Your message was not sent because it was more then 400 characters find your message below for ease of copy/pasting")
-
to_chat(src, "\blue [msg]")
-
return
send2adminirc("PlayerPM from [key_name(src)]: [html_decode(msg)]")
to_chat(src, "IRC PM to-IRC-Admins: [msg]")
-
log_admin("PM: [key_name(src)]->IRC: [msg]")
for(var/client/X in admins)
if(X == src)
continue
if(check_rights(R_ADMIN|R_MOD|R_MENTOR, 0, X.mob))
to_chat(X, "PM: [key_name(src, X, 0)]->IRC-Admins: \blue [msg]")
-
diff --git a/code/modules/admin/verbs/adminsay.dm b/code/modules/admin/verbs/adminsay.dm
index 2cd44302a1d..3f116b0a0d5 100644
--- a/code/modules/admin/verbs/adminsay.dm
+++ b/code/modules/admin/verbs/adminsay.dm
@@ -14,7 +14,6 @@
if(R_ADMIN & C.holder.rights)
to_chat(C, "ADMIN: [key_name(usr, 1)] ([admin_jump_link(mob, "holder")]): ")
-
feedback_add_details("admin_verb","M") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
/client/proc/cmd_mod_say(msg as text)
@@ -38,5 +37,4 @@
if(check_rights(R_ADMIN|R_MOD, 0, C.mob))
to_chat(C, "MOD: [key_name(usr, 1)] ([admin_jump_link(mob, C.holder)]): ")
-
feedback_add_details("admin_verb","MS") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
\ No newline at end of file
diff --git a/code/modules/admin/verbs/antag-ooc.dm b/code/modules/admin/verbs/antag-ooc.dm
index de28cfab042..cc33f7948f4 100644
--- a/code/modules/admin/verbs/antag-ooc.dm
+++ b/code/modules/admin/verbs/antag-ooc.dm
@@ -17,5 +17,4 @@
to_chat(M, "AOOC: [display_name]: ")
-
log_ooc("(ANTAG) [key] : [msg]")
diff --git a/code/modules/admin/verbs/atmosdebug.dm b/code/modules/admin/verbs/atmosdebug.dm
index f6f7f985fea..e1225275e17 100644
--- a/code/modules/admin/verbs/atmosdebug.dm
+++ b/code/modules/admin/verbs/atmosdebug.dm
@@ -4,7 +4,6 @@
set background = 1
if(!src.holder)
to_chat(src, "Only administrators may use this command.")
-
return
feedback_add_details("admin_verb","CP") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
@@ -12,27 +11,22 @@
return
to_chat(usr, "Checking for disconnected pipes...")
-
//all plumbing - yes, some things might get stated twice, doesn't matter.
for (var/obj/machinery/atmospherics/plumbing in world)
if (plumbing.nodealert)
to_chat(usr, "Unconnected [plumbing.name] located at [plumbing.x],[plumbing.y],[plumbing.z] ([get_area(plumbing.loc)])")
-
//Manifolds
for (var/obj/machinery/atmospherics/pipe/manifold/pipe in world)
if (!pipe.node1 || !pipe.node2 || !pipe.node3)
to_chat(usr, "Unconnected [pipe.name] located at [pipe.x],[pipe.y],[pipe.z] ([get_area(pipe.loc)])")
-
//Pipes
for (var/obj/machinery/atmospherics/pipe/simple/pipe in world)
if (!pipe.node1 || !pipe.node2)
to_chat(usr, "Unconnected [pipe.name] located at [pipe.x],[pipe.y],[pipe.z] ([get_area(pipe.loc)])")
-
to_chat(usr, "Checking for overlapping pipes...")
-
next_turf:
for(var/turf/T in world)
for(var/dir in cardinal)
@@ -42,17 +36,14 @@
check++
if(check > 1)
to_chat(usr, "Overlapping pipe ([pipe.name]) located at [T.x],[T.y],[T.z] ([get_area(T)])")
-
continue next_turf
to_chat(usr, "Done")
-
/client/proc/powerdebug()
set category = "Mapping"
set name = "Check Power"
if(!src.holder)
to_chat(src, "Only administrators may use this command.")
-
return
feedback_add_details("admin_verb","CPOW") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
@@ -62,9 +53,7 @@
var/obj/structure/cable/C = PN.cables[1]
to_chat(usr, "Powernet with no nodes! (number [PN.number]) - example cable at [C.x], [C.y], [C.z] in area [get_area(C.loc)]")
-
if (!PN.cables || (PN.cables.len < 10))
if(PN.cables && (PN.cables.len > 1))
var/obj/structure/cable/C = PN.cables[1]
to_chat(usr, "Powernet with fewer than 10 cables! (number [PN.number]) - example cable at [C.x], [C.y], [C.z] in area [get_area(C.loc)]")
-
diff --git a/code/modules/admin/verbs/custom_event.dm b/code/modules/admin/verbs/custom_event.dm
index 93a8dd8abac..350ed9a8737 100644
--- a/code/modules/admin/verbs/custom_event.dm
+++ b/code/modules/admin/verbs/custom_event.dm
@@ -5,7 +5,6 @@
if(!holder)
to_chat(src, "Only administrators may use this command.")
-
return
var/input = input(usr, "Enter the description of the custom event. Be descriptive. To cancel the event, make this blank or hit cancel.", "Custom Event", custom_event_msg) as message|null
@@ -21,14 +20,10 @@
custom_event_msg = input
to_chat(world, "Custom Event
")
-
to_chat(world, "A custom event is starting. OOC Info:
")
-
to_chat(world, "[html_encode(custom_event_msg)]")
-
to_chat(world, "
")
-
// normal verb for players to view info
/client/verb/cmd_view_custom_event()
set category = "OOC"
@@ -36,16 +31,10 @@
if(!custom_event_msg || custom_event_msg == "")
to_chat(src, "There currently is no known custom event taking place.")
-
to_chat(src, "Keep in mind: it is possible that an admin has not properly set this.")
-
return
to_chat(src, "Custom Event
")
-
to_chat(src, "A custom event is taking place. OOC Info:
")
-
to_chat(src, "[html_encode(custom_event_msg)]")
-
to_chat(src, "
")
-
diff --git a/code/modules/admin/verbs/deadsay.dm b/code/modules/admin/verbs/deadsay.dm
index a2663d0ba53..74596c333cc 100644
--- a/code/modules/admin/verbs/deadsay.dm
+++ b/code/modules/admin/verbs/deadsay.dm
@@ -11,12 +11,10 @@
if(prefs.muted & MUTE_DEADCHAT)
to_chat(src, "You cannot send DSAY messages (muted).")
-
return
if(!(prefs.toggles & CHAT_DEAD))
to_chat(src, "You have deadchat muted.")
-
return
if (handle_spam_prevention(msg,MUTE_DEADCHAT))
diff --git a/code/modules/admin/verbs/debug.dm b/code/modules/admin/verbs/debug.dm
index f5ff82bc040..ddc3b4456e6 100644
--- a/code/modules/admin/verbs/debug.dm
+++ b/code/modules/admin/verbs/debug.dm
@@ -73,7 +73,6 @@ But you can call procs that are of type /mob/living/carbon/human/proc/ for that
if(targetselected && !hascall(target,procname))
to_chat(usr, "Error: callproc(): target has no such call [procname].")
-
return
var/list/lst = get_callproc_args()
@@ -83,7 +82,6 @@ But you can call procs that are of type /mob/living/carbon/human/proc/ for that
if(targetselected)
if(!target)
to_chat(usr, "Error: callproc(): owner of proc no longer exists.")
-
return
message_admins("[key_name_admin(src)] called [target]'s [procname]() with [lst.len ? "the arguments [list2params(lst)]":"no arguments"].")
log_admin("[key_name(src)] called [target]'s [procname]() with [lst.len ? "the arguments [list2params(lst)]":"no arguments"].")
@@ -95,7 +93,6 @@ But you can call procs that are of type /mob/living/carbon/human/proc/ for that
returnval = call(procname)(arglist(lst)) // Pass the lst as an argument list to the proc
to_chat(usr, "[procname] returned: [returnval ? returnval : "null"]")
-
feedback_add_details("admin_verb","APC") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
/client/proc/callproc_datum(var/A as null|area|mob|obj|turf)
@@ -111,7 +108,6 @@ But you can call procs that are of type /mob/living/carbon/human/proc/ for that
if(!hascall(A,procname))
to_chat(usr, "Error: callproc_datum(): target has no such call [procname].")
-
return
var/list/lst = get_callproc_args()
@@ -120,7 +116,6 @@ But you can call procs that are of type /mob/living/carbon/human/proc/ for that
if(!A || !IsValidSrc(A))
to_chat(usr, "Error: callproc_datum(): owner of proc no longer exists.")
-
return
message_admins("[key_name_admin(src)] called [A]'s [procname]() with [lst.len ? "the arguments [list2params(lst)]":"no arguments"]")
log_admin("[key_name(src)] called [A]'s [procname]() with [lst.len ? "the arguments [list2params(lst)]":"no arguments"]")
@@ -129,7 +124,6 @@ But you can call procs that are of type /mob/living/carbon/human/proc/ for that
var/returnval = call(A,procname)(arglist(lst)) // Pass the lst as an argument list to the proc
to_chat(usr, "[procname] returned: [returnval ? returnval : "null"]")
-
feedback_add_details("admin_verb","DPC") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
/client/proc/get_callproc_args()
@@ -513,59 +507,41 @@ But you can call procs that are of type /mob/living/carbon/human/proc/ for that
var/list/areas_without_camera = areas_all - areas_with_camera
to_chat(world, "AREAS WITHOUT AN APC:")
-
for(var/areatype in areas_without_APC)
to_chat(world, "* [areatype]")
-
to_chat(world, "AREAS WITHOUT AN AIR ALARM:")
-
for(var/areatype in areas_without_air_alarm)
to_chat(world, "* [areatype]")
-
to_chat(world, "AREAS WITH TOO MANY APCS:")
-
for(var/areatype in areas_with_multiple_APCs)
to_chat(world, "* [areatype]")
-
to_chat(world, "AREAS WITH TOO MANY AIR ALARMS:")
-
for(var/areatype in areas_with_multiple_air_alarms)
to_chat(world, "* [areatype]")
-
to_chat(world, "AREAS WITHOUT A REQUEST CONSOLE:")
-
for(var/areatype in areas_without_RC)
to_chat(world, "* [areatype]")
-
to_chat(world, "AREAS WITHOUT ANY LIGHTS:")
-
for(var/areatype in areas_without_light)
to_chat(world, "* [areatype]")
-
to_chat(world, "AREAS WITHOUT A LIGHT SWITCH:")
-
for(var/areatype in areas_without_LS)
to_chat(world, "* [areatype]")
-
to_chat(world, "AREAS WITHOUT ANY INTERCOMS:")
-
for(var/areatype in areas_without_intercom)
to_chat(world, "* [areatype]")
-
to_chat(world, "AREAS WITHOUT ANY CAMERAS:")
-
for(var/areatype in areas_without_camera)
to_chat(world, "* [areatype]")
-
/client/proc/cmd_admin_dress(var/mob/living/carbon/human/M in mob_list)
set category = "Event"
set name = "Select equipment"
@@ -1191,30 +1167,22 @@ But you can call procs that are of type /mob/living/carbon/human/proc/ for that
switch(input("Which list?") in list("Players","Admins","Mobs","Living Mobs","Dead Mobs","Silicons","Clients","Respawnable Mobs"))
if("Players")
to_chat(usr, jointext(player_list,","))
-
if("Admins")
to_chat(usr, jointext(admins,","))
-
if("Mobs")
to_chat(usr, jointext(mob_list,","))
-
if("Living Mobs")
to_chat(usr, jointext(living_mob_list,","))
-
if("Dead Mobs")
to_chat(usr, jointext(dead_mob_list,","))
-
if("Silicons")
to_chat(usr, jointext(silicon_mob_list,","))
-
if("Clients")
to_chat(usr, jointext(clients,","))
-
if("Respawnable Mobs")
to_chat(usr, jointext(respawnable_list,","))
-
/client/proc/cmd_admin_toggle_block(var/mob/M,var/block)
if(!check_rights(R_SPAWN))
return
diff --git a/code/modules/admin/verbs/diagnostics.dm b/code/modules/admin/verbs/diagnostics.dm
index abef5d0e08a..70505b8abdf 100644
--- a/code/modules/admin/verbs/diagnostics.dm
+++ b/code/modules/admin/verbs/diagnostics.dm
@@ -16,10 +16,8 @@
burning = 1
to_chat(usr, "\blue @[target.x],[target.y]: O:[GM.oxygen] T:[GM.toxins] N:[GM.nitrogen] C:[GM.carbon_dioxide] w [GM.temperature] Kelvin, [GM.return_pressure()] kPa [(burning)?("\red BURNING"):(null)]")
-
for(var/datum/gas/trace_gas in GM.trace_gases)
to_chat(usr, "[trace_gas.type]: [trace_gas.moles]")
-
message_admins("[key_name_admin(usr)] has checked the air status of [T]")
log_admin("[key_name(usr)] has checked the air status of [T]")
@@ -133,10 +131,8 @@
return
to_chat(usr, "Jobbans active in this round.")
-
for(var/t in jobban_keylist)
to_chat(usr, "[t]")
-
message_admins("[key_name_admin(usr)] has printed the jobban log")
log_admin("[key_name(usr)] has printed the jobban log")
@@ -154,11 +150,9 @@
return
to_chat(usr, "Jobbans active in this round.")
-
for(var/t in jobban_keylist)
if(findtext(t, filter))
to_chat(usr, "[t]")
-
message_admins("[key_name_admin(usr)] has searched the jobban log for [filter]")
log_admin("[key_name(usr)] has searched the jobban log for [filter]")
diff --git a/code/modules/admin/verbs/dice.dm b/code/modules/admin/verbs/dice.dm
index e77ef3c65fe..4df6e3107a0 100644
--- a/code/modules/admin/verbs/dice.dm
+++ b/code/modules/admin/verbs/dice.dm
@@ -14,11 +14,9 @@
if(alert("Do you want to inform the world about your game?",,"Yes", "No") == "Yes")
to_chat(world, "The dice have been rolled by Gods!
")
-
var/result = roll(dice)
if(alert("Do you want to inform the world about the result?",,"Yes", "No") == "Yes")
to_chat(world, "Gods rolled [dice], result is [result]
")
-
message_admins("[key_name_admin(src)] rolled dice [dice], result is [result]", 1)
\ No newline at end of file
diff --git a/code/modules/admin/verbs/freeze.dm b/code/modules/admin/verbs/freeze.dm
index e17e70ce637..f6d31d6bede 100644
--- a/code/modules/admin/verbs/freeze.dm
+++ b/code/modules/admin/verbs/freeze.dm
@@ -11,7 +11,6 @@ var/global/list/frozen_mob_list = list()
set name = "Freeze"
if(!holder)
to_chat(src, "Error: Freeze: Only administrators may use this command.")
-
return
if(!istype(M)) return
if(!check_rights(R_ADMIN)) return
@@ -28,7 +27,6 @@ var/global/list/frozen_mob_list = list()
/mob/living/proc/admin_Freeze(var/client/admin)
if(istype(admin))
to_chat(src, "You have been frozen by [key_name(admin)]")
-
message_admins("[key_name_admin(admin)] froze [key_name_admin(src)]")
log_admin("[key_name(admin)] froze [key_name(src)]")
@@ -45,7 +43,6 @@ var/global/list/frozen_mob_list = list()
/mob/living/proc/admin_unFreeze(var/client/admin)
if(istype(admin))
to_chat(src, "You have been unfrozen by [key_name(admin)]")
-
message_admins("\blue [key_name_admin(admin)] unfroze [key_name_admin(src)]")
log_admin("[key_name(admin)] unfroze [key_name(src)]")
@@ -89,12 +86,10 @@ var/global/list/frozen_mob_list = list()
set name = "Freeze Mech"
if(!holder)
to_chat(src, "Only administrators may use this command.")
-
return
var/obj/mecha/M = O
if(!istype(M,/obj/mecha))
to_chat(src, "\red This can only be used on Mechs!")
-
return
else
if(usr)
@@ -107,7 +102,6 @@ var/global/list/frozen_mob_list = list()
if(M.occupant)
M.removeVerb(/obj/mecha/verb/eject)
to_chat(M.occupant, "You have been frozen by [key]")
-
message_admins("\blue [key_name_admin(usr)] froze [key_name(M.occupant)] in a [M.name]")
log_admin("[key_name(usr)] froze [key_name(M.occupant)] in a [M.name]")
else
@@ -119,7 +113,6 @@ var/global/list/frozen_mob_list = list()
if(M.occupant)
M.addVerb(/obj/mecha/verb/eject)
to_chat(M.occupant, "You have been unfrozen by [key]")
-
message_admins("\blue [key_name_admin(usr)] unfroze [key_name(M.occupant)] in a [M.name]")
log_admin("[key_name(usr)] unfroze [M.occupant.name]/[M.occupant.ckey] in a [M.name]")
else
diff --git a/code/modules/admin/verbs/getlogs.dm b/code/modules/admin/verbs/getlogs.dm
index fe1e0bdf416..48507a55352 100644
--- a/code/modules/admin/verbs/getlogs.dm
+++ b/code/modules/admin/verbs/getlogs.dm
@@ -25,18 +25,15 @@
if(!src.holder)
to_chat(src, "Only Admins may use this command.")
-
return
var/client/target = input(src,"Choose somebody to grant access to the server's runtime logs (permissions expire at the end of each round):","Grant Permissions",null) as null|anything in clients
if(!istype(target,/client))
to_chat(src, "Error: giveruntimelog(): Client not found.")
-
return
target.verbs |= /client/proc/getruntimelog
to_chat(target, "You have been granted access to runtime logs. Please use them responsibly or risk being banned.")
-
return
@@ -58,7 +55,6 @@
src << ftp(file(path))
to_chat(src, "Attempting to send file, this may take a fair few minutes if the file is very large.")
-
return
@@ -80,7 +76,6 @@
src << ftp(file(path))
to_chat(src, "Attempting to send file, this may take a fair few minutes if the file is very large.")
-
return
@@ -114,7 +109,6 @@
else
to_chat(src, "Error: view_atk_log(): File not found/Invalid path([path]).")
-
return
usr << run(file(path))
diff --git a/code/modules/admin/verbs/honksquad.dm b/code/modules/admin/verbs/honksquad.dm
index a2377a2c3a6..75fc6af84d9 100644
--- a/code/modules/admin/verbs/honksquad.dm
+++ b/code/modules/admin/verbs/honksquad.dm
@@ -6,15 +6,12 @@ var/global/sent_honksquad = 0
/client/proc/honksquad()
if(!ticker)
to_chat(usr, "The game hasn't started yet!")
-
return
if(world.time < 6000)
to_chat(usr, "There are [(6000-world.time)/10] seconds remaining before it may be called.")
-
return
if(sent_honksquad == 1)
to_chat(usr, "Clown Planet has already dispatched a HONKsquad.")
-
return
if(alert("Do you want to send in the HONKsquad? Once enabled, this is irreversible.",,"Yes","No")!="Yes")
return
@@ -29,7 +26,6 @@ var/global/sent_honksquad = 0
if(sent_honksquad)
to_chat(usr, "Looks like someone beat you to it. HONK.")
-
return
sent_honksquad = 1
@@ -70,7 +66,6 @@ var/global/sent_honksquad = 0
to_chat(new_honksquad, "\blue You are a HONKsquad. [!honk_leader_selected?"commando":"LEADER"] in the service of Clown Planet. You are called in cases of exteme low levels of HONK. You are NOT authorized to kill. \nYour current mission is: \red[input]")
-
honksquad_number--
diff --git a/code/modules/admin/verbs/mapping.dm b/code/modules/admin/verbs/mapping.dm
index 0dac4624f51..c59cd417c91 100644
--- a/code/modules/admin/verbs/mapping.dm
+++ b/code/modules/admin/verbs/mapping.dm
@@ -189,7 +189,6 @@ var/list/admin_verbs_show_debug_verbs = list(
atom_list += A
to_chat(world, "There are [count] objects of type [type_path] on z-level [num_level].")
-
feedback_add_details("admin_verb","mOBJZ") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
/client/proc/count_objects_all()
@@ -211,5 +210,4 @@ var/list/admin_verbs_show_debug_verbs = list(
count++
to_chat(world, "There are [count] objects of type [type_path] in the game world.")
-
feedback_add_details("admin_verb","mOBJ") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
diff --git a/code/modules/admin/verbs/massmodvar.dm b/code/modules/admin/verbs/massmodvar.dm
index 701ff9e0ad8..185d513d2fc 100644
--- a/code/modules/admin/verbs/massmodvar.dm
+++ b/code/modules/admin/verbs/massmodvar.dm
@@ -31,7 +31,6 @@
for(var/p in forbidden_varedit_object_types)
if( istype(O,p) )
to_chat(usr, "It is forbidden to edit this object's variables.")
-
return
var/list/names = list()
@@ -58,51 +57,41 @@
if(isnull(var_value))
to_chat(usr, "Unable to determine variable type.")
-
else if(isnum(var_value))
to_chat(usr, "Variable appears to be NUM.")
-
default = "num"
dir = 1
else if(istext(var_value))
to_chat(usr, "Variable appears to be TEXT.")
-
default = "text"
else if(isloc(var_value))
to_chat(usr, "Variable appears to be REFERENCE.")
-
default = "reference"
else if(isicon(var_value))
to_chat(usr, "Variable appears to be ICON.")
-
var_value = "\icon[var_value]"
default = "icon"
else if(istype(var_value,/atom) || istype(var_value,/datum))
to_chat(usr, "Variable appears to be TYPE.")
-
default = "type"
else if(istype(var_value,/list))
to_chat(usr, "Variable appears to be LIST.")
-
default = "list"
else if(istype(var_value,/client))
to_chat(usr, "Variable appears to be CLIENT.")
-
default = "cancel"
else
to_chat(usr, "Variable appears to be FILE.")
-
default = "file"
to_chat(usr, "Variable contains: [var_value]")
-
if(dir)
switch(var_value)
if(1)
@@ -126,7 +115,6 @@
if(dir)
to_chat(usr, "If a direction, direction is: [dir]")
-
var/class = input("What kind of variable?","Variable Type",default) as null|anything in list("text",
"num","type","icon","file","edit referenced object","restore to default")
diff --git a/code/modules/admin/verbs/modifyvariables.dm b/code/modules/admin/verbs/modifyvariables.dm
index 2e7ced5f038..966e584f15e 100644
--- a/code/modules/admin/verbs/modifyvariables.dm
+++ b/code/modules/admin/verbs/modifyvariables.dm
@@ -19,7 +19,6 @@ var/list/forbidden_varedit_object_types = list(
if (ticker == null)
to_chat(src, "Game hasn't started yet.")
-
else
src.modify_variables(ticker)
feedback_add_details("admin_verb","ETV") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
@@ -56,7 +55,6 @@ var/list/forbidden_varedit_object_types = list(
if(!var_value)
to_chat(src, "[type_text] is not a valid path!")
-
if("reference")
var_value = input("Select reference:","Reference") as null|mob|obj|turf|area in world
@@ -110,7 +108,6 @@ var/list/forbidden_varedit_object_types = list(
if(!var_value)
to_chat(src, "[type_text] is not a valid path!")
-
if("reference")
var_value = input("Select reference:","Reference") as mob|obj|turf|area in world
@@ -140,7 +137,6 @@ var/list/forbidden_varedit_object_types = list(
if(!istype(L,/list))
to_chat(src, "Not a List.")
-
if(L.len > 1000)
var/confirm = alert(src, "The list you're trying to edit is very long, continuing may crash the server.", "Warning", "Continue", "Abort")
if(confirm != "Continue")
@@ -155,7 +151,6 @@ var/list/forbidden_varedit_object_types = list(
assoc = 1 //This is pretty weak test but i can't think of anything else
to_chat(usr, "List appears to be associative.")
-
var/list/names = null
if(!assoc)
names = sortList(L)
@@ -188,14 +183,12 @@ var/list/forbidden_varedit_object_types = list(
default = variable_to_type(variable)
to_chat(usr, "Variable contains: [variable]")
-
if(default == "num")
dir = dir2text(variable)
if(dir)
to_chat(usr, "If a direction, direction is: [dir]")
-
var/class = "text"
var/list/allowed_types = list("text", "num","type", "type from text", "reference","mob reference", "icon","file","list","edit referenced object","restore to default","DELETE FROM LIST")
if(src.holder && src.holder.marked_datum)
@@ -284,12 +277,10 @@ var/list/forbidden_varedit_object_types = list(
for(var/p in forbidden_varedit_object_types)
if( istype(O,p) )
to_chat(usr, "It is forbidden to edit this object's variables.")
-
return
if(istype(O, /client) && (param_var_name == "ckey" || param_var_name == "key"))
to_chat(usr, "You cannot edit ckeys on client objects.")
-
return
var/class
@@ -299,7 +290,6 @@ var/list/forbidden_varedit_object_types = list(
if(param_var_name)
if(!param_var_name in O.vars)
to_chat(src, "A variable with this name ([param_var_name]) doesn't exist in this atom ([O])")
-
return
if(param_var_name == "holder" || (param_var_name in locked))
@@ -341,13 +331,11 @@ var/list/forbidden_varedit_object_types = list(
var_value = "\icon[var_value]"
to_chat(usr, "Variable contains: [var_value]")
-
if(dir)
dir = dir2text(var_value)
if(dir)
to_chat(usr, "If a direction, direction is: [dir]")
-
var/list/allowed_types = list("text", "num","type","reference","mob reference", "path", "matrix", "icon","file","list","edit referenced object","restore to default")
if(src.holder && src.holder.marked_datum)
allowed_types += "marked datum ([holder.marked_datum.type])"
@@ -415,7 +403,6 @@ var/list/forbidden_varedit_object_types = list(
var/var_new = text2path(path_text)
if(!var_new && path_text != null) // So aborting doesn't bother the VVer
to_chat(usr, "[path_text] does not appear to be a valid path.")
-
return
O.vars[variable] = var_new
@@ -424,7 +411,6 @@ var/list/forbidden_varedit_object_types = list(
var/var_new = text2matrix(matrix_text)
if(!var_new && matrix_text != null)
to_chat(usr, "[matrix_text] is not a valid matrix string.")
-
return
O.vars[variable] = var_new
var_as_text = "matrix([matrix_text])"
@@ -464,62 +450,50 @@ var/list/forbidden_varedit_object_types = list(
var/class
if(isnull(variable))
to_chat(usr, "Unable to determine variable type.")
-
class = null
else if(isnum(variable))
to_chat(usr, "Variable appears to be NUM.")
-
class = "num"
else if(istext(variable))
to_chat(usr, "Variable appears to be TEXT.")
-
class = "text"
else if(isloc(variable))
to_chat(usr, "Variable appears to be REFERENCE.")
-
class = "reference"
else if(isicon(variable))
to_chat(usr, "Variable appears to be ICON.")
-
variable = "\icon[variable]"
class = "icon"
else if(istype(variable,/matrix))
to_chat(usr, "Variable appears to be MATRIX")
-
class = "matrix"
else if(istype(variable,/atom) || istype(variable,/datum))
to_chat(usr, "Variable appears to be TYPE.")
-
class = "type"
else if(istype(variable,/list))
to_chat(usr, "Variable appears to be LIST.")
-
class = "list"
else if(istype(variable,/client))
to_chat(usr, "Variable appears to be CLIENT.")
-
class = "cancel"
else if(ispath(variable))
to_chat(usr, "Variable appears to be PATH.")
-
class = "path"
else if(isfile(variable))
to_chat(usr, "Variable appears to be FILE.")
-
class = "file"
else
to_chat(usr, "Variable type is UNKNOWN.")
-
class = null
return class
\ No newline at end of file
diff --git a/code/modules/admin/verbs/one_click_antag.dm b/code/modules/admin/verbs/one_click_antag.dm
index a5f97673afc..022cd29105a 100644
--- a/code/modules/admin/verbs/one_click_antag.dm
+++ b/code/modules/admin/verbs/one_click_antag.dm
@@ -379,7 +379,6 @@ client/proc/one_click_antag()
to_chat(new_syndicate_commando, "\blue You are an Elite Syndicate. [!syndicate_leader_selected?"commando":"LEADER"] in the service of the Syndicate. \nYour current mission is: \red [input]")
-
numagents--
if(numagents >= 6)
return 0
@@ -484,10 +483,8 @@ client/proc/one_click_antag()
new_vox.key = theghost.key
to_chat(new_vox, "\blue You are a Vox Primalis, fresh out of the Shoal. Your ship has arrived at the Tau Ceti system hosting the NSV Exodus... or was it the Luna? NSS? Utopia? Nobody is really sure, but everyong is raring to start pillaging! Your current goal is: \red [input]")
-
to_chat(new_vox, "\red Don't forget to turn on your nitrogen internals!")
-
raiders--
if(raiders > max_raiders)
return 0
@@ -617,7 +614,6 @@ client/proc/one_click_antag()
teamOneMembers--
to_chat(newMember, "You are a member of the GREEN Thunderdome team! Gear up and help your team destroy the red team!")
-
if(L.name == "tdome2")
if(teamTwoMembers<=0)
break
@@ -639,7 +635,6 @@ client/proc/one_click_antag()
newMember.key = theghost.key
teamTwoMembers--
to_chat(newMember, "You are a member of the RED Thunderdome team! Gear up and help your team destroy the green team!")
-
else
return 0
return 1
\ No newline at end of file
diff --git a/code/modules/admin/verbs/onlyone.dm b/code/modules/admin/verbs/onlyone.dm
index 052b00b69e4..61c7b4f5790 100644
--- a/code/modules/admin/verbs/onlyone.dm
+++ b/code/modules/admin/verbs/onlyone.dm
@@ -22,11 +22,9 @@
H.mind.objectives += hijack_objective
to_chat(H, "You are a Highlander. Kill all other Highlanders. There can be only one.")
-
var/obj_count = 1
for(var/datum/objective/OBJ in H.mind.objectives)
to_chat(H, "Objective #[obj_count]: [OBJ.explanation_text]")
-
obj_count++
for (var/obj/item/I in H)
@@ -59,7 +57,6 @@
nologevent = 1
to_chat(world, sound('sound/music/THUNDERDOME.ogg'))
-
/client/proc/only_me()
if(!ticker)
alert("The game hasn't started yet!")
@@ -77,11 +74,9 @@
H.mind.objectives += hijack_objective
to_chat(H, "You are the multiverse summoner. Activate your blade to summon copies of yourself from another universe to fight by your side.")
-
var/obj_count = 1
for(var/datum/objective/OBJ in H.mind.objectives)
to_chat(H, "Objective #[obj_count]: [OBJ.explanation_text]")
-
obj_count++
var/obj/item/slot_item_ID = H.get_item_by_slot(slot_wear_id)
@@ -107,4 +102,3 @@
log_admin("[key_name(usr)] used there can be only me.")
nologevent = 1
to_chat(world, sound('sound/music/THUNDERDOME.ogg'))
-
diff --git a/code/modules/admin/verbs/onlyoneteam.dm b/code/modules/admin/verbs/onlyoneteam.dm
index cdf276d03a6..6d5c11e3a4b 100644
--- a/code/modules/admin/verbs/onlyoneteam.dm
+++ b/code/modules/admin/verbs/onlyoneteam.dm
@@ -23,7 +23,6 @@
to_chat(H, "You are part of the [station_name()] dodgeball tournament. Throw dodgeballs at crewmembers wearing a different color than you. OOC: Use THROW on an EMPTY-HAND to catch thrown dodgeballs.")
-
H.equip_to_slot_or_del(new /obj/item/device/radio/headset/heads/captain(H), slot_l_ear)
H.equip_to_slot_or_del(new /obj/item/weapon/beach_ball/dodgeball(H), slot_r_hand)
H.equip_to_slot_or_del(new /obj/item/clothing/shoes/white(H), slot_shoes)
@@ -77,15 +76,12 @@
var/mob/A = H.LAssailant
if((H in team_alpha) && (A in team_alpha))
to_chat(A, "He's on your team!")
-
return
else if((H in team_bravo) && (A in team_bravo))
to_chat(A, "He's on your team!")
-
return
else if(!A in team_alpha && !A in team_bravo)
to_chat(A, "You're not part of the dodgeball game, sorry!")
-
return
else
playsound(src, 'sound/items/dodgeball.ogg', 50, 1)
diff --git a/code/modules/admin/verbs/playsound.dm b/code/modules/admin/verbs/playsound.dm
index 442478229f6..c363ed51d72 100644
--- a/code/modules/admin/verbs/playsound.dm
+++ b/code/modules/admin/verbs/playsound.dm
@@ -19,7 +19,6 @@ var/list/sounds_cache = list()
if(M.client.prefs.sound & SOUND_MIDI)
to_chat(M, uploaded_sound)
-
feedback_add_details("admin_verb","PGS") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
@@ -89,11 +88,9 @@ var/list/sounds_cache = list()
if(M.client.midis)
to_chat(M, 'cubanpetetime.ogg')
-
for(var/mob/living/carbon/human/CP in world)
if(CP.real_name=="Cuban Pete" && CP.key!="Rosham")
to_chat(CP, "Your body can't contain the rhumba beat")
-
CP.gib()
@@ -108,7 +105,6 @@ var/list/sounds_cache = list()
to_chat(M, 'bananaphone.ogg')
-
client/proc/space_asshole()
set category = "Event"
set name = "Space Asshole"
@@ -120,7 +116,6 @@ client/proc/space_asshole()
to_chat(M, 'sound/music/space_asshole.ogg')
-
client/proc/honk_theme()
set category = "Event"
set name = "Honk"
@@ -130,4 +125,3 @@ client/proc/honk_theme()
if(M.client)
if(M.client.midis)
to_chat(M, 'honk_theme.ogg')*/
-
diff --git a/code/modules/admin/verbs/possess.dm b/code/modules/admin/verbs/possess.dm
index 208a69df52e..54d39d5a5fa 100644
--- a/code/modules/admin/verbs/possess.dm
+++ b/code/modules/admin/verbs/possess.dm
@@ -5,7 +5,6 @@
if(istype(O,/obj/singularity))
if(config.forbid_singulo_possession)
to_chat(usr, "It is forbidden to possess singularities.")
-
return
var/turf/T = get_turf(O)
diff --git a/code/modules/admin/verbs/pray.dm b/code/modules/admin/verbs/pray.dm
index f70940e9ae8..0ef6a64373f 100644
--- a/code/modules/admin/verbs/pray.dm
+++ b/code/modules/admin/verbs/pray.dm
@@ -8,7 +8,6 @@
if(usr.client)
if(usr.client.prefs.muted & MUTE_PRAY)
to_chat(usr, "\red You cannot pray (muted).")
-
return
if(src.client.handle_spam_prevention(msg,MUTE_PRAY))
return
@@ -20,10 +19,8 @@
if(check_rights(R_EVENT,0,X.mob))
to_chat(X, msg)
-
to_chat(usr, "Your prayers have been received by the gods.")
-
feedback_add_details("admin_verb","PR") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
//log_admin("HELP: [key_name(src)]: [msg]")
@@ -35,7 +32,6 @@
if(R_EVENT & X.holder.rights)
to_chat(X, msg)
-
/proc/Syndicate_announce(var/text , var/mob/Sender)
var/msg = sanitize(copytext(text, 1, MAX_MESSAGE_LEN))
msg = "\blue SYNDICATE: [key_name(Sender, 1)] (PP) (VV) (SM) ([admin_jump_link(Sender, "holder")]) (CA) (BSA) (REPLY): [msg]"
@@ -44,7 +40,6 @@
if(check_rights(R_EVENT,0,X.mob))
to_chat(X, msg)
-
/proc/HONK_announce(var/text , var/mob/Sender)
var/msg = sanitize(copytext(text, 1, MAX_MESSAGE_LEN))
msg = "\blue HONK: [key_name(Sender, 1)] (PP) (VV) (SM) ([admin_jump_link(Sender, "holder")]) (CA) (BSA) (RPLY): [msg]"
@@ -53,7 +48,6 @@
if(R_EVENT & X.holder.rights)
to_chat(X, msg)
-
/proc/ERT_Announce(var/text , var/mob/Sender)
var/msg = sanitize(copytext(text, 1, MAX_MESSAGE_LEN))
msg = "\blue ERT REQUEST: [key_name(Sender, 1)] (PP) (VV) (SM) ([admin_jump_link(Sender, "holder")]) (CA) (BSA) (REPLY): [msg]"
@@ -62,7 +56,6 @@
if(check_rights(R_EVENT,0,X.mob))
to_chat(X, msg)
-
/proc/Nuke_request(text , mob/Sender)
var/nuke_code = get_nuke_code()
var/msg = sanitize(copytext(text, 1, MAX_MESSAGE_LEN))
diff --git a/code/modules/admin/verbs/randomverbs.dm b/code/modules/admin/verbs/randomverbs.dm
index 71afd3eeb0b..c236432e9d2 100644
--- a/code/modules/admin/verbs/randomverbs.dm
+++ b/code/modules/admin/verbs/randomverbs.dm
@@ -40,7 +40,6 @@
prisoner.equip_to_slot_or_del(new /obj/item/clothing/shoes/orange(prisoner), slot_shoes)
spawn(50)
to_chat(M, "\red You have been sent to the prison station!")
-
log_admin("[key_name(usr)] sent [key_name(M)] to the prison station.")
message_admins("\blue [key_name_admin(usr)] sent [key_name_admin(M)] to the prison station.", 1)
feedback_add_details("admin_verb","PRISON") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
@@ -64,7 +63,6 @@
if(usr.client.holder)
to_chat(M, "\bold You hear a voice in your head... \italic [msg]")
-
log_admin("SubtlePM: [key_name(usr)] -> [key_name(M)] : [msg]")
message_admins("\blue \bold SubtleMessage: [key_name_admin(usr)] -> [key_name_admin(M)] : [msg]", 1)
feedback_add_details("admin_verb","SMS") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
@@ -95,14 +93,12 @@
if(missing_ages)
to_chat(src, "Some accounts did not have proper ages set in their clients. This function requires database to be present")
-
if(msg != "")
src << browse(msg, "window=Player_age_check")
else
to_chat(src, "No matches for that age range found.")
-
/client/proc/cmd_admin_world_narrate() // Allows administrators to fluff events a little easier -- TLE
set category = "Event"
set name = "Global Narrate"
@@ -115,7 +111,6 @@
if (!msg)
return
to_chat(world, "[msg]")
-
log_admin("GlobalNarrate: [key_name(usr)] : [msg]")
message_admins("\blue \bold GlobalNarrate: [key_name_admin(usr)]: [msg]
", 1)
feedback_add_details("admin_verb","GLN") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
@@ -139,7 +134,6 @@
return
to_chat(M, msg)
-
log_admin("DirectNarrate: [key_name(usr)] to ([key_name(M)]): [msg]")
message_admins("\blue \bold DirectNarrate: [key_name_admin(usr)] to ([key_name_admin(M)]): [msg]
", 1)
feedback_add_details("admin_verb","DIRN") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
@@ -154,7 +148,6 @@
M.status_flags ^= GODMODE
to_chat(usr, "\blue Toggled [(M.status_flags & GODMODE) ? "ON" : "OFF"]")
-
log_admin("[key_name(usr)] has toggled [key_name(M)]'s nodamage to [(M.status_flags & GODMODE) ? "On" : "Off"]")
message_admins("[key_name_admin(usr)] has toggled [key_name_admin(M)]'s nodamage to [(M.status_flags & GODMODE) ? "On" : "Off"]", 1)
feedback_add_details("admin_verb","GOD") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
@@ -169,11 +162,9 @@ proc/cmd_admin_mute(mob/M as mob, mute_type, automute = 0)
return
if(!check_rights(R_ADMIN|R_MOD))
to_chat(usr, "Error: cmd_admin_mute: You don't have permission to do this.")
-
return
if(!M.client)
to_chat(usr, "Error: cmd_admin_mute: This mob doesn't have a client tied to it.")
-
if(!M.client)
return
@@ -195,7 +186,6 @@ proc/cmd_admin_mute(mob/M as mob, mute_type, automute = 0)
log_admin("SPAM AUTOMUTE: [muteunmute] [key_name(M)] from [mute_string]")
message_admins("SPAM AUTOMUTE: [muteunmute] [key_name_admin(M)] from [mute_string].", 1)
to_chat(M, "You have been [muteunmute] from [mute_string] by the SPAM AUTOMUTE system. Contact an admin.")
-
feedback_add_details("admin_verb","AUTOMUTE") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
return
@@ -209,7 +199,6 @@ proc/cmd_admin_mute(mob/M as mob, mute_type, automute = 0)
log_admin("[key_name(usr)] has [muteunmute] [key_name(M)] from [mute_string]")
message_admins("[key_name_admin(usr)] has [muteunmute] [key_name_admin(M)] from [mute_string].", 1)
to_chat(M, "You have been [muteunmute] from [mute_string].")
-
feedback_add_details("admin_verb","MUTE") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
/client/proc/cmd_admin_add_random_ai_law()
@@ -247,10 +236,8 @@ proc/cmd_admin_mute(mob/M as mob, mute_type, automute = 0)
g.antagHUD = 0 // Disable it on those that have it enabled
g.has_enabled_antagHUD = 2 // We'll allow them to respawn
to_chat(g, "\red The Administrator has disabled AntagHUD ")
-
config.antag_hud_allowed = 0
to_chat(src, "\red AntagHUD usage has been disabled")
-
action = "disabled"
else
for(var/mob/dead/observer/g in get_ghosts())
@@ -258,13 +245,11 @@ proc/cmd_admin_mute(mob/M as mob, mute_type, automute = 0)
g.verbs += /mob/dead/observer/verb/toggle_antagHUD
to_chat(g, "\blue The Administrator has enabled AntagHUD ")// Notify all observers they can now use AntagHUD
-
config.antag_hud_allowed = 1
action = "enabled"
to_chat(src, "\blue AntagHUD usage has been enabled")
-
log_admin("[key_name(usr)] has [action] antagHUD usage for observers")
message_admins("Admin [key_name_admin(usr)] has [action] antagHUD usage for observers", 1)
@@ -280,24 +265,19 @@ proc/cmd_admin_mute(mob/M as mob, mute_type, automute = 0)
if(config.antag_hud_restricted)
for(var/mob/dead/observer/g in get_ghosts())
to_chat(g, "\blue The administrator has lifted restrictions on joining the round if you use AntagHUD")
-
action = "lifted restrictions"
config.antag_hud_restricted = 0
to_chat(src, "\blue AntagHUD restrictions have been lifted")
-
else
for(var/mob/dead/observer/g in get_ghosts())
to_chat(g, "\red The administrator has placed restrictions on joining the round if you use AntagHUD")
-
to_chat(g, "\red Your AntagHUD has been disabled, you may choose to re-enabled it but will be under restrictions ")
-
g.antagHUD = 0
g.has_enabled_antagHUD = 0
action = "placed restrictions"
config.antag_hud_restricted = 1
to_chat(src, "\red AntagHUD restrictions have been enabled")
-
log_admin("[key_name(usr)] has [action] on joining the round if they use AntagHUD")
message_admins("Admin [key_name_admin(usr)] has [action] on joining the round if they use AntagHUD", 1)
@@ -326,7 +306,6 @@ Traitors and the like can also be revived with the previous role mostly intact.
if(!G_found)//If a ghost was not found.
to_chat(usr, "There is no active key like that in the game or the person is not currently a ghost.")
-
return
if(G_found.mind && !G_found.mind.active) //mind isn't currently in use by someone/something
@@ -351,7 +330,6 @@ Traitors and the like can also be revived with the previous role mostly intact.
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.")
-
message_admins("\blue [key_name_admin(usr)] has respawned [new_xeno.key] as a filthy xeno.", 1)
return //all done. The ghost is auto-deleted
@@ -458,7 +436,6 @@ Traitors and the like can also be revived with the previous role mostly intact.
to_chat(new_character, "You have been fully respawned. Enjoy the game.")
-
feedback_add_details("admin_verb","RSPCH") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
return new_character
@@ -477,7 +454,6 @@ Traitors and the like can also be revived with the previous role mostly intact.
ckey = input("Pick the player you want to respawn as a xeno.", "Suitable Candidates") as null|anything in candidates
else
to_chat(usr, "Error: create_xeno(): no suitable candidates.")
-
if(!istext(ckey)) return 0
var/alien_caste = input(usr, "Please choose which caste to spawn.","Pick a caste",null) as null|anything in list("Queen","Hunter","Sentinel","Drone","Larva")
@@ -510,7 +486,6 @@ Traitors and the like can also be revived with the previous role mostly intact.
if(!any)
if(notify)
to_chat(src, "There doesn't appear to be any ghosts for you to select.")
-
return
for(var/mob/M in mobs)
@@ -586,7 +561,6 @@ Traitors and the like can also be revived with the previous role mostly intact.
if("No")
to_chat(world, "\red [from] available at all communications consoles.")
-
for (var/obj/machinery/computer/communications/C in machines)
if(! (C.stat & (BROKEN|NOPOWER) ) )
var/obj/item/weapon/paper/P = new /obj/item/weapon/paper( C.loc )
@@ -607,7 +581,6 @@ Traitors and the like can also be revived with the previous role mostly intact.
if("No")
to_chat(world, "\red New Nanotrasen Update available at all communication consoles.")
-
for (var/obj/machinery/computer/communications/C in machines)
if(! (C.stat & (BROKEN|NOPOWER) ) )
var/obj/item/weapon/paper/P = new /obj/item/weapon/paper( C.loc )
@@ -618,7 +591,6 @@ Traitors and the like can also be revived with the previous role mostly intact.
C.messagetext.Add(P.info)
// to_chat(world, sound('sound/AI/commandreport.ogg'))
-
log_admin("[key_name(src)] has created a communications report: [input]")
message_admins("[key_name_admin(src)] has created a communications report", 1)
feedback_add_details("admin_verb","CCR") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
@@ -651,7 +623,6 @@ Traitors and the like can also be revived with the previous role mostly intact.
if(job_master)
for(var/datum/job/job in job_master.occupations)
to_chat(src, "[job.title]: [job.total_positions]")
-
feedback_add_details("admin_verb","LFS") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
/client/proc/cmd_admin_explosion(atom/O as obj|mob|turf in view())
@@ -758,7 +729,6 @@ Traitors and the like can also be revived with the previous role mostly intact.
var/list/L = M.get_contents()
for(var/t in L)
to_chat(usr, "[t]")
-
feedback_add_details("admin_verb","CC") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
/client/proc/toggle_view_range()
@@ -841,10 +811,8 @@ Traitors and the like can also be revived with the previous role mostly intact.
return
to_chat(usr, text("\red Attack Log for []", mob))
-
for(var/t in M.attack_log)
to_chat(usr, t)
-
feedback_add_details("admin_verb","ATTL") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
@@ -858,14 +826,12 @@ Traitors and the like can also be revived with the previous role mostly intact.
if (ticker && ticker.mode)
to_chat(usr, "Nope you can't do this, the game's already started. This only works before rounds!")
-
return
if(ticker.random_players)
ticker.random_players = 0
message_admins("Admin [key_name_admin(usr)] has disabled \"Everyone is Special\" mode.", 1)
to_chat(usr, "Disabled.")
-
return
@@ -879,10 +845,8 @@ Traitors and the like can also be revived with the previous role mostly intact.
if(notifyplayers == "Yes")
to_chat(world, "\blue Admin [usr.key] has forced the players to have completely random identities!")
-
to_chat(usr, "Remember: you can always disable the randomness by using the verb again, assuming the round hasn't started yet.")
-
ticker.random_players = 1
feedback_add_details("admin_verb","MER") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
@@ -897,12 +861,10 @@ Traitors and the like can also be revived with the previous role mostly intact.
if(!config.allow_random_events)
config.allow_random_events = 1
to_chat(usr, "Random events enabled")
-
message_admins("Admin [key_name_admin(usr)] has enabled random events.", 1)
else
config.allow_random_events = 0
to_chat(usr, "Random events disabled")
-
message_admins("Admin [key_name_admin(usr)] has disabled random events.", 1)
feedback_add_details("admin_verb","TRE") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
@@ -917,13 +879,11 @@ Traitors and the like can also be revived with the previous role mostly intact.
if(ticker.mode.ert_disabled)
ticker.mode.ert_disabled = 0
to_chat(usr, "\blue ERT has been Enabled.")
-
log_admin("Admin [key_name(src)] has enabled ERT calling.")
message_admins("Admin [key_name_admin(usr)] has enabled ERT calling.", 1)
else
ticker.mode.ert_disabled = 1
to_chat(usr, "\red ERT has been Disabled.")
-
log_admin("Admin [key_name(src)] has disabled ERT calling.")
message_admins("Admin [key_name_admin(usr)] has disabled ERT calling.", 1)
diff --git a/code/modules/admin/verbs/striketeam.dm b/code/modules/admin/verbs/striketeam.dm
index ed201afbc1c..a5b98bc888c 100644
--- a/code/modules/admin/verbs/striketeam.dm
+++ b/code/modules/admin/verbs/striketeam.dm
@@ -6,11 +6,9 @@ var/global/sent_strike_team = 0
/client/proc/strike_team()
if(!ticker)
to_chat(usr, "The game hasn't started yet!")
-
return
if(sent_strike_team == 1)
to_chat(usr, "CentComm is already sending a team.")
-
return
if(alert("Do you want to send in the CentComm death squad? Once enabled, this is irreversible.",,"Yes","No")!="Yes")
return
@@ -25,7 +23,6 @@ var/global/sent_strike_team = 0
if(sent_strike_team)
to_chat(usr, "Looks like someone beat you to it.")
-
return
sent_strike_team = 1
@@ -76,7 +73,6 @@ var/global/sent_strike_team = 0
to_chat(new_commando, "\blue You are a Special Ops. [!leader_selected?"commando":"LEADER"] in the service of Central Command. Check the table ahead for detailed instructions.\nYour current mission is: \red[input]")
-
commando_number--
//Spawns the rest of the commando gear.
diff --git a/code/modules/admin/verbs/striketeam_syndicate.dm b/code/modules/admin/verbs/striketeam_syndicate.dm
index fec7441299c..6131962b881 100644
--- a/code/modules/admin/verbs/striketeam_syndicate.dm
+++ b/code/modules/admin/verbs/striketeam_syndicate.dm
@@ -8,7 +8,6 @@ var/global/sent_syndicate_strike_team = 0
set desc = "Spawns a squad of commandos in the Syndicate Mothership if you want to run an admin event."
if(!src.holder)
to_chat(src, "Only administrators may use this command.")
-
return
if(!ticker)
alert("The game hasn't started yet!")
@@ -29,7 +28,6 @@ var/global/sent_syndicate_strike_team = 0
if(sent_syndicate_strike_team)
to_chat(src, "Looks like someone beat you to it.")
-
return
sent_syndicate_strike_team = 1
@@ -82,7 +80,6 @@ var/global/sent_syndicate_strike_team = 0
to_chat(new_syndicate_commando, "\blue You are an Elite Syndicate. [!syndicate_leader_selected?"commando":"LEADER"] in the service of the Syndicate. \nYour current mission is: \red[input]")
-
syndicate_commando_number--
//Spawns the rest of the commando gear.
diff --git a/code/modules/admin/verbs/ticklag.dm b/code/modules/admin/verbs/ticklag.dm
index aec66031cc4..cabf767b620 100644
--- a/code/modules/admin/verbs/ticklag.dm
+++ b/code/modules/admin/verbs/ticklag.dm
@@ -22,4 +22,3 @@
to_chat(src, "\red Error: ticklag(): Invalid world.ticklag value. No changes made.")
-
diff --git a/code/modules/admin/verbs/tripAI.dm b/code/modules/admin/verbs/tripAI.dm
index 358dbb46ce0..6c95873a7da 100644
--- a/code/modules/admin/verbs/tripAI.dm
+++ b/code/modules/admin/verbs/tripAI.dm
@@ -4,23 +4,19 @@
if(ticker.current_state > GAME_STATE_PREGAME)
to_chat(usr, "This option is currently only usable during pregame. This may change at a later date.")
-
return
if(job_master && ticker)
var/datum/job/job = job_master.GetJob("AI")
if(!job)
to_chat(usr, "Unable to locate the AI job")
-
return
if(ticker.triai)
ticker.triai = 0
to_chat(usr, "Only one AI will be spawned at round start.")
-
message_admins("\blue [key_name_admin(usr)] has toggled off triple AIs at round start.", 1)
else
ticker.triai = 1
to_chat(usr, "There will be an AI Triumvirate at round start.")
-
message_admins("\blue [key_name_admin(usr)] has toggled on triple AIs at round start.", 1)
return
diff --git a/code/modules/admin/watchlist.dm b/code/modules/admin/watchlist.dm
index a3368f060ea..1ac267f1037 100644
--- a/code/modules/admin/watchlist.dm
+++ b/code/modules/admin/watchlist.dm
@@ -13,14 +13,12 @@
return
if(!query_watchfind.NextRow())
to_chat(usr, "[new_ckey] has not been seen before, you can only add known players.")
-
return
else
target_ckey = new_ckey
var/target_sql_ckey = sanitizeSQL(target_ckey)
if(check_watchlist(target_sql_ckey))
to_chat(usr, "[target_sql_ckey] is already on the watchlist.")
-
return
var/reason = input(usr,"Please state the reason","Reason") as message|null
if(!reason)
diff --git a/code/modules/arcade/arcade_base.dm b/code/modules/arcade/arcade_base.dm
index 8922f7ce787..2835d2451e3 100644
--- a/code/modules/arcade/arcade_base.dm
+++ b/code/modules/arcade/arcade_base.dm
@@ -24,21 +24,16 @@
..(user)
if(freeplay)
to_chat(user, "Someone enabled freeplay on this machine!")
-
else
if(token_price)
to_chat(user, "\The [src.name] costs [token_price] credits per play.")
-
if(!tokens)
to_chat(user, "\The [src.name] has no available play credits. Better feed the machine!")
-
else if(tokens == 1)
to_chat(user, "\The [src.name] has only 1 play credit left!")
-
else
to_chat(user, "\The [src.name] has [tokens] play credits!")
-
/obj/machinery/arcade/attack_hand(mob/user as mob)
if(..())
if(in_use && src == user.machine) //this one checks if they fell down/died and closes the game
@@ -53,7 +48,6 @@
return
if(!tokens && !freeplay)
to_chat(user, "\The [src.name] doesn't have enough credits to play! Pay first!")
-
return
if(!in_use && (tokens || freeplay))
in_use = 1
@@ -62,7 +56,6 @@
if(in_use)
if(src != user.machine)
to_chat(user, "Someone else is already playing this machine, please wait your turn!")
-
return
/obj/machinery/arcade/attackby(var/obj/item/O as obj, var/mob/user as mob, params)
@@ -70,7 +63,6 @@
playsound(src.loc, 'sound/items/Screwdriver.ogg', 50, 1)
panel_open = !panel_open
to_chat(user, "You [panel_open ? "open" : "close"] the maintenance panel.")
-
update_icon()
return
if(!freeplay)
@@ -93,7 +85,6 @@
/obj/machinery/arcade/proc/pay_with_cash(var/obj/item/weapon/spacecash/cashmoney, var/mob/user)
if(cashmoney.get_total() < token_price)
to_chat(user, "\icon[cashmoney] That is not enough money.")
-
return 0
visible_message("[usr] inserts a credit chip into [src].")
var/left = cashmoney.get_total() - token_price
@@ -108,12 +99,10 @@
var/datum/money_account/customer_account = attempt_account_access_nosec(I.associated_account_number)
if (!customer_account)
to_chat(user, "Error: Unable to access account. Please contact technical support if problem persists.")
-
return 0
if(customer_account.suspended)
to_chat(user, "Unable to access account: account suspended.")
-
return 0
// Have the customer punch in the PIN before checking if there's enough money. Prevents people from figuring out acct is
@@ -124,12 +113,10 @@
if(!customer_account)
to_chat(user, "Unable to access account: incorrect credentials.")
-
return 0
if(token_price > customer_account.money)
to_chat(user, "Insufficient funds in account.")
-
return 0
else
// Okay to move the money at this point
diff --git a/code/modules/arcade/prize_counter.dm b/code/modules/arcade/prize_counter.dm
index 0b789f02b46..5f66881cea6 100644
--- a/code/modules/arcade/prize_counter.dm
+++ b/code/modules/arcade/prize_counter.dm
@@ -39,13 +39,11 @@
qdel(T)
else
to_chat(user, "\The [T] seems stuck to your hand!")
-
return
if(istype(O, /obj/item/weapon/screwdriver) && anchored)
playsound(src.loc, 'sound/items/Screwdriver.ogg', 50, 1)
panel_open = !panel_open
to_chat(user, "You [panel_open ? "open" : "close"] the maintenance panel.")
-
update_icon()
return
if(panel_open)
@@ -182,11 +180,9 @@ td.cost.toomuch {
return
if(!global_prizes.PlaceOrder(src, itemID))
to_chat(usr, "Unable to complete the exchange.")
-
else
to_chat(usr, "You've successfully purchased the item.")
-
interact(usr)
return
diff --git a/code/modules/assembly/assembly.dm b/code/modules/assembly/assembly.dm
index a7a688a9d50..9a61921764d 100644
--- a/code/modules/assembly/assembly.dm
+++ b/code/modules/assembly/assembly.dm
@@ -115,7 +115,6 @@
holder = new/obj/item/device/assembly_holder(get_turf(src))
if(holder.attach(A,src,user))
to_chat(user, "\blue You attach \the [A] to \the [src]!")
-
return 1
return 0
@@ -129,10 +128,8 @@
if(istype(W, /obj/item/weapon/screwdriver))
if(toggle_secure())
to_chat(user, "\blue \The [src] is ready!")
-
else
to_chat(user, "\blue \The [src] can now be attached!")
-
return
..()
return
@@ -148,12 +145,10 @@
if((in_range(src, user) || loc == user))
if(secured)
to_chat(user, "\The [src] is ready!")
-
else
to_chat(user, "\The [src] can be attached!")
-
attack_self(mob/user as mob)
if(!user) return 0
user.set_machine(src)
diff --git a/code/modules/assembly/bomb.dm b/code/modules/assembly/bomb.dm
index 50f39995fe0..3bf0775473c 100644
--- a/code/modules/assembly/bomb.dm
+++ b/code/modules/assembly/bomb.dm
@@ -31,7 +31,6 @@
to_chat(user, "You disassemble [src].")
-
bombassembly.loc = user.loc
bombassembly.master = null
bombassembly = null
@@ -48,12 +47,10 @@
bombers += "[key_name(user)] welded a single tank bomb. Temperature: [bombtank.air_contents.temperature-T0C]"
msg_admin_attack("[key_name_admin(user)] welded a single tank bomb. Temperature: [bombtank.air_contents.temperature-T0C]")
to_chat(user, "A pressure hole has been bored to [bombtank] valve. \The [bombtank] can now be ignited.")
-
else
status = 0
bombers += "[key_name(user)] unwelded a single tank bomb. Temperature: [bombtank.air_contents.temperature-T0C]"
to_chat(user, "The hole has been closed.")
-
add_fingerprint(user)
..()
diff --git a/code/modules/assembly/holder.dm b/code/modules/assembly/holder.dm
index bc718f8cbfc..6333fbca635 100644
--- a/code/modules/assembly/holder.dm
+++ b/code/modules/assembly/holder.dm
@@ -71,12 +71,10 @@
if ((in_range(src, user) || src.loc == user))
if (src.secured)
to_chat(user, "\The [src] is ready!")
-
else
to_chat(user, "\The [src] can be attached!")
-
HasProximity(atom/movable/AM as mob|obj)
if(a_left)
a_left.HasProximity(AM)
@@ -143,17 +141,14 @@
if(istype(W, /obj/item/weapon/screwdriver))
if(!a_left || !a_right)
to_chat(user, "\red BUG:Assembly part missing, please report this!")
-
return
a_left.toggle_secure()
a_right.toggle_secure()
secured = !secured
if(secured)
to_chat(user, "\blue \The [src] is ready!")
-
else
to_chat(user, "\blue \The [src] can now be taken apart!")
-
update_icon()
return
else
@@ -166,7 +161,6 @@
if(src.secured)
if(!a_left || !a_right)
to_chat(user, "\red Assembly part missing!")
-
return
if(istype(a_left,a_right.type))//If they are the same type it causes issues due to window code
switch(alert("Which side would you like to use?",,"Left","Right"))
diff --git a/code/modules/assembly/mousetrap.dm b/code/modules/assembly/mousetrap.dm
index 8d169b1dac5..e78060ea63e 100644
--- a/code/modules/assembly/mousetrap.dm
+++ b/code/modules/assembly/mousetrap.dm
@@ -13,7 +13,6 @@
if(armed)
to_chat(user, "It looks like it's armed.")
-
activate()
if(..())
armed = !armed
@@ -22,7 +21,6 @@
var/mob/living/carbon/human/user = usr
if(((user.getBrainLoss() >= 60 || (CLUMSY in user.mutations)) && prob(50)))
to_chat(user, "Your hand slips, setting off the trigger.")
-
pulse(0)
update_icon()
if(usr)
@@ -71,7 +69,6 @@
attack_self(mob/living/user as mob)
if(!armed)
to_chat(user, "You arm [src].")
-
else
if(((user.getBrainLoss() >= 60 || (CLUMSY in user.mutations)) && prob(50)))
var/which_hand = "l_hand"
@@ -82,7 +79,6 @@
"You accidentally trigger [src]!")
return
to_chat(user, "You disarm [src].")
-
armed = !armed
update_icon()
playsound(user.loc, 'sound/weapons/handcuffs.ogg', 30, 1, -3)
@@ -147,4 +143,3 @@
layer = TURF_LAYER+0.2
to_chat(usr, "You hide [src].")
-
diff --git a/code/modules/assembly/shock_kit.dm b/code/modules/assembly/shock_kit.dm
index 9d661d7f2f3..6c5c9e4e5bb 100644
--- a/code/modules/assembly/shock_kit.dm
+++ b/code/modules/assembly/shock_kit.dm
@@ -32,7 +32,6 @@
if(istype(W, /obj/item/weapon/screwdriver))
status = !status
to_chat(user, "[src] is now [status ? "secured" : "unsecured"]!")
-
add_fingerprint(user)
return
diff --git a/code/modules/atmos_automation/implementation/digital_valves.dm b/code/modules/atmos_automation/implementation/digital_valves.dm
index e79d27ab88e..ce778a58aa1 100644
--- a/code/modules/atmos_automation/implementation/digital_valves.dm
+++ b/code/modules/atmos_automation/implementation/digital_valves.dm
@@ -38,7 +38,6 @@
valves|=V.id_tag
if(valves.len==0)
to_chat(usr, "Unable to find any digital valves on this frequency.")
-
return
valve = input("Select a valve:", "Sensor Data", valve) as null|anything in valves
parent.updateUsrDialog()
diff --git a/code/modules/atmos_automation/implementation/emitters.dm b/code/modules/atmos_automation/implementation/emitters.dm
index 91f8398acc0..c0b04399385 100644
--- a/code/modules/atmos_automation/implementation/emitters.dm
+++ b/code/modules/atmos_automation/implementation/emitters.dm
@@ -36,7 +36,6 @@
emitters|=E.id_tag
if(emitters.len==0)
to_chat(usr, "Unable to find any emitters on this frequency.")
-
return
emitter = input("Select an emitter:", "Emitter", emitter) as null|anything in emitters
parent.updateUsrDialog()
diff --git a/code/modules/atmos_automation/implementation/vent_pump.dm b/code/modules/atmos_automation/implementation/vent_pump.dm
index 6a6f3ca6d9b..7601d89f0c3 100644
--- a/code/modules/atmos_automation/implementation/vent_pump.dm
+++ b/code/modules/atmos_automation/implementation/vent_pump.dm
@@ -47,7 +47,6 @@
else
for(var/obj/machinery/atmospherics/binary/dp_vent_pump/I in world)
// to_chat(world, "test")
-
if(!isnull(I.id_tag) && I.frequency == parent.frequency)
injector_names |= I.id_tag
diff --git a/code/modules/awaymissions/bluespaceartillery.dm b/code/modules/awaymissions/bluespaceartillery.dm
index 3baf9764d6a..670d8143390 100644
--- a/code/modules/awaymissions/bluespaceartillery.dm
+++ b/code/modules/awaymissions/bluespaceartillery.dm
@@ -12,7 +12,6 @@
/obj/machinery/computer/artillerycontrol/attack_ai(user as mob)
to_chat(user, "Access denied.")
-
return
/obj/machinery/computer/artillerycontrol/attack_hand(user as mob)
diff --git a/code/modules/awaymissions/gateway.dm b/code/modules/awaymissions/gateway.dm
index cba145b8075..39ac1f49676 100644
--- a/code/modules/awaymissions/gateway.dm
+++ b/code/modules/awaymissions/gateway.dm
@@ -98,11 +98,9 @@ obj/machinery/gateway/centerstation/process()
awaygate = locate(/obj/machinery/gateway/centeraway) in world
if(!awaygate)
to_chat(user, "Error: No destination found.")
-
return
if(world.time < wait)
to_chat(user, "Error: Warpspace triangulation in progress. Estimated time to completion: [round(((wait - world.time) / 10) / 60)] minutes.")
-
return
for(var/obj/machinery/gateway/G in linked)
@@ -152,7 +150,6 @@ obj/machinery/gateway/centerstation/process()
/obj/machinery/gateway/centerstation/attackby(obj/item/device/W as obj, mob/user as mob, params)
if(istype(W,/obj/item/device/multitool))
to_chat(user, "\black The gate is already calibrated, there is no work for you to do here.")
-
return
/////////////////////////////////////Away////////////////////////
@@ -208,7 +205,6 @@ obj/machinery/gateway/centerstation/process()
stationgate = locate(/obj/machinery/gateway/centerstation) in world
if(!stationgate)
to_chat(user, "Error: No destination found.")
-
return
for(var/obj/machinery/gateway/G in linked)
@@ -251,7 +247,6 @@ obj/machinery/gateway/centerstation/process()
for(var/obj/item/weapon/implant/exile/E in M)//Checking that there is an exile implant in the contents
if(E.imp_in == M)//Checking that it's actually implanted vs just in their pocket
to_chat(M, "The station gate has detected your exile implant and is blocking your entry.")
-
return 1
return 0
@@ -259,10 +254,8 @@ obj/machinery/gateway/centerstation/process()
if(istype(W,/obj/item/device/multitool))
if(calibrated)
to_chat(user, "The gate is already calibrated, there is no work for you to do here.")
-
return
else
to_chat(user, "Recalibration successful!: This gate's systems have been fine tuned. Travel to this gate will now be on target.")
-
calibrated = 1
return
diff --git a/code/modules/awaymissions/maploader/writer.dm b/code/modules/awaymissions/maploader/writer.dm
index 212ef92c972..44151c60e02 100644
--- a/code/modules/awaymissions/maploader/writer.dm
+++ b/code/modules/awaymissions/maploader/writer.dm
@@ -37,7 +37,6 @@ dmm_suite{
}
var/saved_map = file("[map_name].dmm")
to_chat(saved_map, file_text)
-
return saved_map
}
write_map(var/turf/t1 as turf, var/turf/t2 as turf, var/flags as num){
diff --git a/code/modules/awaymissions/mission_code/wildwest.dm b/code/modules/awaymissions/mission_code/wildwest.dm
index d4d60b53574..d28d67f1f35 100644
--- a/code/modules/awaymissions/mission_code/wildwest.dm
+++ b/code/modules/awaymissions/mission_code/wildwest.dm
@@ -56,21 +56,17 @@
if(chargesa <= 0)
to_chat(user, "The Wish Granter lies silent.")
-
return
else if(!istype(user, /mob/living/carbon/human))
to_chat(user, "You feel a dark stirring inside of the Wish Granter, something you want nothing of. Your instincts are better than any man's.")
-
return
else if(is_special_character(user))
to_chat(user, "Even to a heart as dark as yours, you know nothing good will come of this. Something instinctual makes you pull away.")
-
else if (!insistinga)
to_chat(user, "Your first touch makes the Wish Granter stir, listening to you. Are you really sure you want to do this?")
-
insistinga++
else
@@ -80,9 +76,7 @@
switch(wish)
if("Power")
to_chat(user, "Your wish is granted, but at a terrible cost...")
-
to_chat(user, "The Wish Granter punishes you for your selfishness, claiming your soul and warping your body to match the darkness in your heart.")
-
user.mutations.Add(LASER)
user.mutations.Add(RESIST_COLD)
user.mutations.Add(XRAY)
@@ -90,88 +84,62 @@
var/mob/living/carbon/human/human = user
if(human.species.name != "Shadow")
to_chat(user, "\red Your flesh rapidly mutates!")
-
to_chat(user, "You are now a Shadow Person, a mutant race of darkness-dwelling humanoids.")
-
to_chat(user, "\red Your body reacts violently to light. \green However, it naturally heals in darkness.")
-
to_chat(user, "Aside from your new traits, you are mentally unchanged and retain your prior obligations.")
-
human.set_species("Shadow")
user.regenerate_icons()
if("Wealth")
to_chat(user, "Your wish is granted, but at a terrible cost...")
-
to_chat(user, "The Wish Granter punishes you for your selfishness, claiming your soul and warping your body to match the darkness in your heart.")
-
new /obj/structure/closet/syndicate/resources/everything(loc)
if(ishuman(user))
var/mob/living/carbon/human/human = user
if(human.species.name != "Shadow")
to_chat(user, "\red Your flesh rapidly mutates!")
-
to_chat(user, "You are now a Shadow Person, a mutant race of darkness-dwelling humanoids.")
-
to_chat(user, "\red Your body reacts violently to light. \green However, it naturally heals in darkness.")
-
to_chat(user, "Aside from your new traits, you are mentally unchanged and retain your prior obligations.")
-
human.set_species("Shadow")
user.regenerate_icons()
if("Immortality")
to_chat(user, "Your wish is granted, but at a terrible cost...")
-
to_chat(user, "The Wish Granter punishes you for your selfishness, claiming your soul and warping your body to match the darkness in your heart.")
-
user.verbs += /mob/living/carbon/proc/immortality
if(ishuman(user))
var/mob/living/carbon/human/human = user
if(human.species.name != "Shadow")
to_chat(user, "\red Your flesh rapidly mutates!")
-
to_chat(user, "You are now a Shadow Person, a mutant race of darkness-dwelling humanoids.")
-
to_chat(user, "\red Your body reacts violently to light. \green However, it naturally heals in darkness.")
-
to_chat(user, "Aside from your new traits, you are mentally unchanged and retain your prior obligations.")
-
human.set_species("Shadow")
user.regenerate_icons()
if("To Kill")
to_chat(user, "Your wish is granted, but at a terrible cost...")
-
to_chat(user, "The Wish Granter punishes you for your wickedness, claiming your soul and warping your body to match the darkness in your heart.")
-
ticker.mode.traitors += user.mind
user.mind.special_role = "traitor"
var/datum/objective/hijack/hijack = new
hijack.owner = user.mind
user.mind.objectives += hijack
to_chat(user, "Your inhibitions are swept away, the bonds of loyalty broken, you are free to murder as you please!")
-
var/obj_count = 1
for(var/datum/objective/OBJ in user.mind.objectives)
to_chat(user, "Objective #[obj_count]: [OBJ.explanation_text]")
-
obj_count++
if(ishuman(user))
var/mob/living/carbon/human/human = user
if(human.species.name != "Shadow")
to_chat(user, "\red Your flesh rapidly mutates!")
-
to_chat(user, "You are now a Shadow Person, a mutant race of darkness-dwelling humanoids.")
-
to_chat(user, "\red Your body reacts violently to light. \green However, it naturally heals in darkness.")
-
to_chat(user, "Aside from your new traits, you are mentally unchanged and retain your prior obligations.")
-
human.set_species("Shadow")
user.regenerate_icons()
if("Peace")
to_chat(user, "Whatever alien sentience that the Wish Granter possesses is satisfied with your wish. There is a distant wailing as the last of the Faithless begin to die, then silence.")
-
to_chat(user, "You feel as if you just narrowly avoided a terrible fate...")
-
for(var/mob/living/simple_animal/hostile/faithless/F in world)
F.health = -10
F.stat = 2
@@ -205,7 +173,6 @@
if(istype(M, /mob/living/carbon/human))
for(var/mob/O in viewers(world.view, src.loc))
to_chat(O, "[M] triggered the \icon[src] [src]")
-
triggered = 1
call(src,triggerproc)(M)
@@ -227,11 +194,9 @@
var/mob/living/carbon/C = usr
if(!C.stat)
to_chat(C, "You're not dead yet!")
-
return
to_chat(C, "Death is not your end!")
-
spawn(rand(800,1200))
if(C.stat == DEAD)
dead_mob_list -= C
@@ -248,7 +213,6 @@
C.heal_overall_damage(C.getBruteLoss(), C.getFireLoss())
C.reagents.clear_reagents()
to_chat(C, "You have regenerated.")
-
C.visible_message("[usr] appears to wake from the dead, having healed all wounds.")
C.update_canmove()
return 1
\ No newline at end of file
diff --git a/code/modules/awaymissions/trigger.dm b/code/modules/awaymissions/trigger.dm
index 06b7419a973..2a41eee85c3 100644
--- a/code/modules/awaymissions/trigger.dm
+++ b/code/modules/awaymissions/trigger.dm
@@ -5,7 +5,6 @@
/obj/effect/step_trigger/message/Trigger(mob/M as mob)
if(M.client)
to_chat(M, "[message]")
-
if(once)
qdel(src)
diff --git a/code/modules/client/asset_cache.dm b/code/modules/client/asset_cache.dm
index a4bcdf921fc..33254cc7d2d 100644
--- a/code/modules/client/asset_cache.dm
+++ b/code/modules/client/asset_cache.dm
@@ -93,7 +93,6 @@ You can set verify to TRUE if you want send() to sleep until the client has the
return 0
if (unreceived.len >= ASSET_CACHE_TELL_CLIENT_AMOUNT)
to_chat(client, "Sending Resources...")
-
for(var/asset in unreceived)
if (asset in asset_cache)
client << browse_rsc(asset_cache[asset], asset)
diff --git a/code/modules/client/client procs.dm b/code/modules/client/client procs.dm
index c9296cd84d8..31db10045f0 100644
--- a/code/modules/client/client procs.dm
+++ b/code/modules/client/client procs.dm
@@ -29,7 +29,6 @@
#if defined(TOPIC_DEBUGGING)
to_chat(world, "[src]'s Topic: [href] destined for [hsrc].")
-
#endif
if(href_list["nano_err"]) //nano throwing errors
@@ -38,10 +37,8 @@
-
if(href_list["asset_cache_confirm_arrival"])
// to_chat(src, "ASSET JOB [href_list["asset_cache_confirm_arrival"]] ARRIVED.")
-
var/job = text2num(href_list["asset_cache_confirm_arrival"])
completed_asset_jobs += job
return
@@ -70,11 +67,9 @@
if(href_list["irc_msg"])
if(!holder && received_irc_pm < world.time - 6000) //Worse they can do is spam IRC for 10 minutes
to_chat(usr, "You are no longer able to use this, it's been more then 10 minutes since an admin on IRC has responded to you")
-
return
if(mute_irc)
to_chat(usr, "")
-
return
cmd_admin_irc_pm()
return
@@ -85,7 +80,6 @@
if(config && config.log_hrefs && href_logfile)
to_chat(href_logfile, "[time2text(world.timeofday,"hh:mm")] [src] (usr:[usr]) || [hsrc ? "[hsrc] " : ""][href]
")
-
switch(href_list["karmashop"])
if("tab")
karma_tab = text2num(href_list["tab"])
@@ -98,7 +92,6 @@
if("1")
if(karma <5)
to_chat(usr, "You do not have enough karma!")
-
return
else
src.DB_job_unlock("Barber",5)
@@ -106,7 +99,6 @@
if("2")
if(karma <5)
to_chat(usr, "You do not have enough karma!")
-
return
else
src.DB_job_unlock("Brig Physician",5)
@@ -114,7 +106,6 @@
if("3")
if(karma <30)
to_chat(usr, "You do not have enough karma!")
-
return
else
src.DB_job_unlock("Nanotrasen Representative",30)
@@ -122,7 +113,6 @@
if("5")
if(karma <30)
to_chat(usr, "You do not have enough karma!")
-
return
else
src.DB_job_unlock("Blueshield",30)
@@ -130,7 +120,6 @@
if("6")
if(karma <30)
to_chat(usr, "You do not have enough karma!")
-
return
else
src.DB_job_unlock("Mechanic",30)
@@ -138,7 +127,6 @@
if("7")
if(karma <45)
to_chat(usr, "You do not have enough karma!")
-
return
else
src.DB_job_unlock("Magistrate",45)
@@ -146,7 +134,6 @@
if("9")
if(karma <30)
to_chat(usr, "You do not have enough karma!")
-
return
else
src.DB_job_unlock("Security Pod Pilot",30)
@@ -157,7 +144,6 @@
if("1")
if(karma <15)
to_chat(usr, "You do not have enough karma!")
-
return
else
src.DB_species_unlock("Machine",15)
@@ -165,7 +151,6 @@
if("2")
if(karma <30)
to_chat(usr, "You do not have enough karma!")
-
return
else
src.DB_species_unlock("Kidan",30)
@@ -173,7 +158,6 @@
if("3")
if(karma <30)
to_chat(usr, "You do not have enough karma!")
-
return
else
src.DB_species_unlock("Grey",30)
@@ -181,7 +165,6 @@
if("4")
if(karma <45)
to_chat(usr, "You do not have enough karma!")
-
return
else
src.DB_species_unlock("Vox",45)
@@ -189,7 +172,6 @@
if("5")
if(karma <45)
to_chat(usr, "You do not have enough karma!")
-
return
else
src.DB_species_unlock("Slime People",45)
@@ -197,7 +179,6 @@
if("6")
if(karma <100)
to_chat(usr, "You do not have enough karma!")
-
return
else
src.DB_species_unlock("Plasmaman",100)
@@ -228,12 +209,10 @@
src.last_message_count++
if(src.last_message_count >= SPAM_TRIGGER_AUTOMUTE)
to_chat(src, "\red You have exceeded the spam filter limit for identical messages. An auto-mute was applied.")
-
cmd_admin_mute(src.mob, mute_type, 1)
return 1
if(src.last_message_count >= SPAM_TRIGGER_WARNING)
to_chat(src, "\red You are nearing the spam filter limit for identical messages.")
-
return 0
else
last_message = message
@@ -244,14 +223,12 @@
/client/AllowUpload(filename, filelength)
if(filelength > UPLOAD_LIMIT)
to_chat(src, "Error: AllowUpload(): File Upload too large. Upload Limit: [UPLOAD_LIMIT/1024]KiB.")
-
return 0
/* //Don't need this at the moment. But it's here if it's needed later.
//Helps prevent multiple files being uploaded at once. Or right after eachother.
var/time_to_wait = fileaccess_timer - world.time
if(time_to_wait > 0)
to_chat(src, "Error: AllowUpload(): Spam prevention. Please wait [round(time_to_wait/10)] seconds.")
-
return 0
fileaccess_timer = world.time + FTPDELAY */
return 1
@@ -281,7 +258,6 @@
to_chat(src, "\red If the title screen is black, resources are still downloading. Please be patient until the title screen appears.")
-
clients += src
directory[ckey] = src
@@ -303,14 +279,10 @@
if(custom_event_msg && custom_event_msg != "")
to_chat(src, "Custom Event
")
-
to_chat(src, "A custom event is taking place. OOC Info:
")
-
to_chat(src, "[html_encode(custom_event_msg)]")
-
to_chat(src, "
")
-
if( (world.address == address || !address) && !host )
host = key
world.update_status()
@@ -331,7 +303,6 @@
if (ckey in clientmessages)
for (var/message in clientmessages[ckey])
to_chat(src, message)
-
clientmessages.Remove(ckey)
@@ -346,7 +317,6 @@
to_chat(src, "Unable to access asset cache browser, if you are using a custom skin file, please allow DS to download the updated version, if you are not, then make a bug report. This is not a critical issue but can cause issues with resource downloading, as it is impossible to know when extra resources arrived to you.")
-
//////////////
//DISCONNECT//
//////////////
@@ -463,4 +433,3 @@
if(lang.flags & RESTRICTED)
message += " (RESTRICTED)"
to_chat(world, "[message]")
-
diff --git a/code/modules/client/preferences.dm b/code/modules/client/preferences.dm
index 7692f051621..4f28c69cf96 100644
--- a/code/modules/client/preferences.dm
+++ b/code/modules/client/preferences.dm
@@ -263,7 +263,6 @@ var/global/list/special_role_times = list( //minimum age (in days) for accounts
var/ind = 0
for(var/name in organ_data)
// to_chat(world, "[ind] \ [organ_data.len]")
-
var/status = organ_data[name]
var/organ_name = null
switch(name)
@@ -675,7 +674,6 @@ var/global/list/special_role_times = list( //minimum age (in days) for accounts
if (!isnum(desiredLvl))
to_chat(user, "\red UpdateJobPreference - desired level was not a number. Please notify coders!")
-
ShowChoices(user)
return
@@ -1061,7 +1059,6 @@ var/global/list/special_role_times = list( //minimum age (in days) for accounts
else
to_chat(user, "Invalid name. Your name should be at least 2 and at most [MAX_NAME_LEN] characters long. It may only contain the characters A-Z, a-z, -, ' and .")
-
if("age")
var/new_age = input(user, "Choose your character's age:\n([AGE_MIN]-[AGE_MAX])", "Character Preference") as num|null
if(new_age)
@@ -1587,7 +1584,6 @@ var/global/list/special_role_times = list( //minimum age (in days) for accounts
if(r != cleaned_r) // up to no good
message_admins("[user] attempted an href exploit! (This could have possibly lead to a \"Bobby Tables\" exploit, so they're probably up to no good). String: [r] ID: [last_id] IP: [last_ip]")
to_chat(user, "Stop right there, criminal scum")
-
else
be_special ^= r
@@ -1604,11 +1600,9 @@ var/global/list/special_role_times = list( //minimum age (in days) for accounts
sound ^= SOUND_LOBBY
if(sound & SOUND_LOBBY)
to_chat(user, sound(ticker.login_music, repeat = 0, wait = 0, volume = 85, channel = 1))
-
else
to_chat(user, sound(null, repeat = 0, wait = 0, volume = 85, channel = 1))
-
if("ghost_ears")
toggles ^= CHAT_GHOSTEARS
diff --git a/code/modules/client/preferences_toggles.dm b/code/modules/client/preferences_toggles.dm
index 341efffcb69..afb70577dd0 100644
--- a/code/modules/client/preferences_toggles.dm
+++ b/code/modules/client/preferences_toggles.dm
@@ -5,7 +5,6 @@
set desc = ".Toggle Between seeing all mob speech, and only speech of nearby mobs"
prefs.toggles ^= CHAT_GHOSTEARS
to_chat(src, "As a ghost, you will now [(prefs.toggles & CHAT_GHOSTEARS) ? "see all speech in the world" : "only see speech from nearby mobs"].")
-
prefs.save_preferences(src)
feedback_add_details("admin_verb","TGE") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
@@ -15,7 +14,6 @@
set desc = ".Toggle Between seeing all mob emotes, and only emotes of nearby mobs"
prefs.toggles ^= CHAT_GHOSTSIGHT
to_chat(src, "As a ghost, you will now [(prefs.toggles & CHAT_GHOSTSIGHT) ? "see all emotes in the world" : "only see emotes from nearby mobs"].")
-
prefs.save_preferences(src)
feedback_add_details("admin_verb","TGS") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
@@ -25,7 +23,6 @@
set desc = ".Toggle between hearing all radio chatter, or only from nearby speakers"
prefs.toggles ^= CHAT_GHOSTRADIO
to_chat(src, "As a ghost, you will now [(prefs.toggles & CHAT_GHOSTRADIO) ? "hear all radio chat in the world" : "only hear from nearby speakers"].")
-
prefs.save_preferences(src)
feedback_add_details("admin_verb","TGR")
@@ -37,7 +34,6 @@
prefs.toggles ^= CHAT_RADIO
prefs.save_preferences(src)
to_chat(usr, "You will [(prefs.toggles & CHAT_RADIO) ? "now" : "no longer"] see radio chatter from radios or speakers")
-
feedback_add_details("admin_verb","THR") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
/client/verb/toggleadminhelpsound()
@@ -48,7 +44,6 @@
prefs.sound ^= SOUND_ADMINHELP
prefs.save_preferences(src)
to_chat(usr, "You will [(prefs.sound & SOUND_ADMINHELP) ? "now" : "no longer"] hear a sound when adminhelps arrive.")
-
feedback_add_details("admin_verb","AHS") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
/client/verb/deadchat() // Deadchat toggle is usable by anyone.
@@ -60,11 +55,9 @@
if(src.holder)
to_chat(src, "You will [(prefs.toggles & CHAT_DEAD) ? "now" : "no longer"] see deadchat.")
-
else
to_chat(src, "As a ghost, you will [(prefs.toggles & CHAT_DEAD) ? "now" : "no longer"] see deadchat.")
-
feedback_add_details("admin_verb","TDV") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
/client/proc/toggleprayers()
@@ -74,7 +67,6 @@
prefs.toggles ^= CHAT_PRAYER
prefs.save_preferences(src)
to_chat(src, "You will [(prefs.toggles & CHAT_PRAYER) ? "now" : "no longer"] see prayerchat.")
-
feedback_add_details("admin_verb","TP") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
/client/verb/togglescoreboard()
@@ -84,7 +76,6 @@
prefs.toggles ^= DISABLE_SCOREBOARD
prefs.save_preferences(src)
to_chat(src, "You will [(prefs.toggles & DISABLE_SCOREBOARD) ? "no longer" : "now"] see the end of round scoreboard.")
-
feedback_add_details("admin_verb","TScoreboard") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
/client/verb/togglekarmareminder()
@@ -94,7 +85,6 @@
prefs.toggles ^= DISABLE_KARMA_REMINDER
prefs.save_preferences(src)
to_chat(src, "You will [(prefs.toggles & DISABLE_KARMA_REMINDER) ? "no longer" : "now"] see the end of round karma reminder.")
-
feedback_add_details("admin_verb","TKarmabugger") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
/client/verb/toggletitlemusic()
@@ -105,16 +95,13 @@
prefs.save_preferences(src)
if(prefs.sound & SOUND_LOBBY)
to_chat(src, "You will now hear music in the game lobby.")
-
if(istype(mob, /mob/new_player))
playtitlemusic()
else
to_chat(src, "You will no longer hear music in the game lobby.")
-
if(istype(mob, /mob/new_player))
to_chat(src, sound(null, repeat = 0, wait = 0, volume = 85, channel = 1))// stop the jamsz
-
feedback_add_details("admin_verb","TLobby") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
/client/verb/togglemidis()
@@ -125,15 +112,12 @@
prefs.save_preferences(src)
if(prefs.sound & SOUND_MIDI)
to_chat(src, "You will now hear any sounds uploaded by admins.")
-
else
var/sound/break_sound = sound(null, repeat = 0, wait = 0, channel = 777)
break_sound.priority = 250
to_chat(src, break_sound)//breaks the client's sound output on channel 777
-
to_chat(src, "You will no longer hear sounds uploaded by admins; any currently playing midis have been disabled.")
-
feedback_add_details("admin_verb","TMidi") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
/client/verb/listen_ooc()
@@ -143,7 +127,6 @@
prefs.toggles ^= CHAT_OOC
prefs.save_preferences(src)
to_chat(src, "You will [(prefs.toggles & CHAT_OOC) ? "now" : "no longer"] see messages on the OOC channel.")
-
feedback_add_details("admin_verb","TOOC") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
@@ -154,7 +137,6 @@
prefs.toggles ^= CHAT_LOOC
prefs.save_preferences(src)
to_chat(src, "You will [(prefs.toggles & CHAT_LOOC) ? "now" : "no longer"] see messages on the LOOC channel.")
-
feedback_add_details("admin_verb","TLOOC") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
@@ -166,12 +148,9 @@
prefs.save_preferences(src)
if(prefs.sound & SOUND_AMBIENCE)
to_chat(src, "You will now hear ambient sounds.")
-
else
to_chat(src, "You will no longer hear ambient sounds.")
-
to_chat(src, sound(null, repeat = 0, wait = 0, volume = 0, channel = 1))
-
feedback_add_details("admin_verb","TAmbi") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
/client/verb/Toggle_Buzz() //No more headaches because headphones bump up shipambience.ogg to insanity levels.
@@ -182,12 +161,9 @@
prefs.save_preferences(src)
if(prefs.sound & SOUND_BUZZ)
to_chat(src, "You will now hear ambient white noise.")
-
else
to_chat(src, "You will no longer hear ambient white noise.")
-
to_chat(src, sound(null, repeat = 0, wait = 0, volume = 0, channel = 2))
-
feedback_add_details("admin_verb","TBuzz") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
@@ -199,14 +175,10 @@
prefs.save_preferences(src)
if(prefs.sound & SOUND_HEARTBEAT)
to_chat(src, "You will now hear heartbeat sounds.")
-
else
to_chat(src, "You will no longer hear heartbeat sounds.")
-
to_chat(src, sound(null, repeat = 0, wait = 0, volume = 0, channel = 1))
-
to_chat(src, sound(null, repeat = 0, wait = 0, volume = 0, channel = 2))
-
feedback_add_details("admin_verb","Thb") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
// This needs a toggle because you people are awful and spammed terrible music
@@ -218,10 +190,8 @@
prefs.save_preferences(src)
if(prefs.toggles & SOUND_INSTRUMENTS)
to_chat(src, "You will now hear people playing musical instruments.")
-
else
to_chat(src, "You will no longer hear musical instruments.")
-
feedback_add_details("admin_verb","TInstru") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
/client/verb/toggle_media()
@@ -232,7 +202,6 @@
prefs.sound ^= SOUND_STREAMING
prefs.save_preferences(src)
to_chat(usr, "You will [(prefs.sound & SOUND_STREAMING) ? "now" : "no longer"] hear streamed media.")
-
if(!media) return
if(prefs.sound & SOUND_STREAMING)
media.update_music()
diff --git a/code/modules/clothing/clothing.dm b/code/modules/clothing/clothing.dm
index a179d56db14..a5749ca40d0 100644
--- a/code/modules/clothing/clothing.dm
+++ b/code/modules/clothing/clothing.dm
@@ -52,7 +52,6 @@
if(!wearable)
to_chat(M, "\red Your species cannot wear [src].")
-
return 0
return 1
@@ -202,7 +201,6 @@ BLIND // can't see anything
update_icon()
else
to_chat(user, "[src] have already been clipped!")
-
return
else
..()
@@ -216,18 +214,15 @@ BLIND // can't see anything
if (user.stat || user.restrained()) return
if(has_sensor >= 2)
to_chat(user, "The controls are locked.")
-
return 0
if(has_sensor <= 0)
to_chat(user, "This suit does not have any sensors.")
-
return 0
var/list/modes = list("Off", "Binary sensors", "Vitals tracker", "Tracking beacon")
var/switchMode = input("Select a sensor mode:", "Suit Sensor Mode", modes[sensor_mode + 1]) in modes
if(get_dist(user, src) > 1)
to_chat(user, "You have moved too far away.")
-
return
sensor_mode = modes.Find(switchMode) - 1
@@ -235,16 +230,12 @@ BLIND // can't see anything
switch(sensor_mode)
if(0)
to_chat(user, "You disable your suit's remote sensing equipment.")
-
if(1)
to_chat(user, "Your suit will now report whether you are live or dead.")
-
if(2)
to_chat(user, "Your suit will now report your vital lifesigns.")
-
if(3)
to_chat(user, "Your suit will now report your vital lifesigns as well as your coordinate position.")
-
if(istype(user,/mob/living/carbon/human))
var/mob/living/carbon/human/H = user
if(H.w_uniform == src)
@@ -313,7 +304,6 @@ BLIND // can't see anything
gas_transfer_coefficient = initial(gas_transfer_coefficient)
permeability_coefficient = initial(permeability_coefficient)
to_chat(user, "You push \the [src] back into place.")
-
mask_adjusted = 0
slot_flags = initial(slot_flags)
if(flags_inv != initial(flags_inv))
@@ -335,7 +325,6 @@ BLIND // can't see anything
else
icon_state += "_up"
to_chat(user, "You push \the [src] out of the way.")
-
gas_transfer_coefficient = null
permeability_coefficient = null
mask_adjusted = 1
@@ -405,7 +394,6 @@ BLIND // can't see anything
user.visible_message("[user] crushes the [M] into the bottom of [src], extinguishing it.","You crush the [M] into the bottom of [src], extinguishing it.")
else // Match has been previously lit and extinguished.
to_chat(user, "The [M] has already been extinguished.")
-
return
if(istype(I, /obj/item/weapon/wirecutters))
@@ -424,7 +412,6 @@ BLIND // can't see anything
update_icon()
else
to_chat(user, "[src] have already had their toes cut open!")
-
return
else
..()
@@ -477,7 +464,6 @@ BLIND // can't see anything
if(adjust_flavour)
flavour = "[copytext(adjust_flavour, 3, lentext(adjust_flavour) + 1)] up" //Trims off the 'un' at the beginning of the word. unzip -> zip, unbutton->button.
to_chat(user, "You [flavour] \the [src].")
-
suit_adjusted = 0 //Suit is no longer adjusted.
else
var/flavour = "open"
@@ -486,7 +472,6 @@ BLIND // can't see anything
if(adjust_flavour)
flavour = "[adjust_flavour]"
to_chat(user, "You [flavour] \the [src].")
-
suit_adjusted = 1 //Suit's adjusted.
else
if(user.canUnEquip(src)) //Checks to see if the item can be unequipped. If so, lets shred. Otherwise, struggle and fail.
@@ -504,13 +489,11 @@ BLIND // can't see anything
else
to_chat(user, "You yank and pull at \the [src] with your [pick("excessive", "extreme", "insane", "monstrous", "ridiculous", "unreal", "stupendous")] [pick("power", "strength")], however you are unable to change its state!")//Yep, that's all they get. Avoids having to snowflake in a cooldown.
-
return
user.update_inv_wear_suit()
else
to_chat(user, "You attempt to button up the velcro on \the [src], before promptly realising how retarded you are.")
-
/obj/item/clothing/suit/verb/openjacket(var/mob/user) //The verb you can use to adjust jackets.
set name = "Open/Close Jacket"
set category = "Object"
@@ -619,7 +602,6 @@ BLIND // can't see anything
else
to_chat(user, "You cannot attach more accessories of this type to [src].")
-
if(accessories.len)
for(var/obj/item/clothing/accessory/A in accessories)
A.attackby(I, user, params)
@@ -662,22 +644,17 @@ BLIND // can't see anything
switch(src.sensor_mode)
if(0)
to_chat(user, "Its sensors appear to be disabled.")
-
if(1)
to_chat(user, "Its binary life sensors appear to be enabled.")
-
if(2)
to_chat(user, "Its vital tracker appears to be enabled.")
-
if(3)
to_chat(user, "Its vital tracker and tracking beacon appear to be enabled.")
-
if(accessories.len)
for(var/obj/item/clothing/accessory/A in accessories)
to_chat(user, "\A [A] is attached to it.")
-
/obj/item/clothing/under/verb/rollsuit()
set name = "Roll Down Jumpsuit"
set category = "Object"
@@ -688,14 +665,12 @@ BLIND // can't see anything
if(copytext(item_color,-2) != "_d")
basecolor = item_color
to_chat(usr, "DEBUG:[basecolor]")
-
if(basecolor + "_d_s" in icon_states('icons/mob/uniform.dmi'))
item_color = item_color == "[basecolor]" ? "[basecolor]_d" : "[basecolor]"
usr.update_inv_w_uniform()
else
to_chat(usr, "You cannot roll down the uniform!")
-
/obj/item/clothing/under/proc/remove_accessory(mob/user, obj/item/clothing/accessory/A)
if(!(A in accessories))
return
diff --git a/code/modules/clothing/glasses/glasses.dm b/code/modules/clothing/glasses/glasses.dm
index 2a5cb6d554e..521b934d34a 100644
--- a/code/modules/clothing/glasses/glasses.dm
+++ b/code/modules/clothing/glasses/glasses.dm
@@ -25,12 +25,10 @@
if(istype(O, /obj/item/clothing/glasses/regular))
if(prescription)
to_chat(H, "You can't possibly imagine how adding more lenses would improve \the [name].")
-
return
H.unEquip(O)
O.loc = src // Store the glasses for later removal
to_chat(H, "You fit \the [name] with lenses from \the [O].")
-
prescription = 1
name = "prescription [name]"
return
@@ -39,7 +37,6 @@
if(!G)
G = new(get_turf(H))
to_chat(H, "You salvage the prescription lenses from \the [name].")
-
prescription = 0
name = initial(name)
H.put_in_hands(G)
@@ -270,7 +267,6 @@
to_chat(usr, "The moment is gone.")
-
/obj/item/clothing/glasses/sunglasses/reagent
name = "sunscanners"
desc = "Strangely ancient technology used to help provide rudimentary eye color. Outfitted with apparatus to scan individual reagents."
@@ -329,7 +325,6 @@
flags_inv |= HIDEEYES
icon_state = initial(icon_state)
to_chat(usr, "You flip the [src] down to protect your eyes.")
-
flash_protect = 2
tint = initial(tint) //better than istype
else
@@ -338,7 +333,6 @@
flags_inv &= ~HIDEEYES
icon_state = "[initial(icon_state)]up"
to_chat(usr, "You push the [src] up out of your face.")
-
flash_protect = 0
tint = 0
@@ -399,7 +393,6 @@
if(istype(src.loc, /mob/living/carbon/human))
var/mob/living/carbon/human/M = src.loc
to_chat(M, "\red The Optical Thermal Scanner overloads and blinds you!")
-
if(M.glasses == src)
M.eye_blind = 3
M.eye_blurry = 5
diff --git a/code/modules/clothing/gloves/rings.dm b/code/modules/clothing/gloves/rings.dm
index a1a2c04bd5f..4a0af4392fa 100644
--- a/code/modules/clothing/gloves/rings.dm
+++ b/code/modules/clothing/gloves/rings.dm
@@ -22,17 +22,14 @@
examine(mob/user)
..(user)
to_chat(user, "This one is made of [material].")
-
if(stud)
to_chat(user, "It is adorned with a single gem.")
-
/obj/item/clothing/gloves/ring/attackby(obj/item/I as obj, mob/user as mob, params)
if(istype(I, /obj/item/stack/sheet/mineral/diamond))
var/obj/item/stack/sheet/mineral/diamond/D = I
if(stud)
to_chat(usr, "The [src] already has a gem.")
-
else
if(D.amount >= 1)
D.use(1)
@@ -40,7 +37,6 @@
update_icon()
to_chat(usr, "You socket the diamond into the [src].")
-
// s'pensive
/obj/item/clothing/gloves/ring/silver
name = "silver ring"
diff --git a/code/modules/clothing/head/hardhat.dm b/code/modules/clothing/head/hardhat.dm
index aa5d722d056..5dc555a10d7 100644
--- a/code/modules/clothing/head/hardhat.dm
+++ b/code/modules/clothing/head/hardhat.dm
@@ -15,7 +15,6 @@
if(!isturf(user.loc))
to_chat(user, "You cannot turn the light on while in this [user.loc]")//To prevent some lighting anomalities.
-
return
on = !on
icon_state = "hardhat[on]_[item_color]"
diff --git a/code/modules/clothing/head/helmet.dm b/code/modules/clothing/head/helmet.dm
index 463c2eb2861..eb38be7395d 100644
--- a/code/modules/clothing/head/helmet.dm
+++ b/code/modules/clothing/head/helmet.dm
@@ -26,7 +26,6 @@
icon_state = "[initial(icon_state)][up ? "up" : ""]"
to_chat(user, "[up ? alt_toggle_message : toggle_message] \the [src]")
-
user.update_inv_head()
if(active_sound)
diff --git a/code/modules/clothing/head/misc_special.dm b/code/modules/clothing/head/misc_special.dm
index 50bb85e5cc4..e1bfc0c1282 100644
--- a/code/modules/clothing/head/misc_special.dm
+++ b/code/modules/clothing/head/misc_special.dm
@@ -59,7 +59,6 @@
flags_inv |= (HIDEMASK|HIDEEARS|HIDEEYES|HIDEFACE)
icon_state = initial(icon_state)
to_chat(usr, "You flip the [src] down to protect your eyes.")
-
flash_protect = 2
tint = 2
else
@@ -68,7 +67,6 @@
flags_inv &= ~(HIDEMASK|HIDEEARS|HIDEEYES|HIDEFACE)
icon_state = "[initial(icon_state)]up"
to_chat(usr, "You push the [src] up out of your face.")
-
flash_protect = 0
tint = 0
usr.update_inv_head() //so our mob-overlays update
@@ -133,13 +131,11 @@
src.icon_state = "ushankaup"
src.item_state = "ushankaup"
to_chat(user, "You raise the ear flaps on the ushanka.")
-
else
src.icon_state = "ushankadown"
src.item_state = "ushankadown"
to_chat(user, "You lower the ear flaps on the ushanka.")
-
/*
* Pumpkin head
*/
diff --git a/code/modules/clothing/head/soft_caps.dm b/code/modules/clothing/head/soft_caps.dm
index b9c88bcc11e..e14057b32b1 100644
--- a/code/modules/clothing/head/soft_caps.dm
+++ b/code/modules/clothing/head/soft_caps.dm
@@ -20,11 +20,9 @@
if(src.flipped)
icon_state = "[item_color]soft_flipped"
to_chat(usr, "You flip the hat backwards.")
-
else
icon_state = "[item_color]soft"
to_chat(usr, "You flip the hat back in normal position.")
-
usr.update_inv_head() //so our mob-overlays update
/obj/item/clothing/head/soft/red
diff --git a/code/modules/clothing/masks/gasmask.dm b/code/modules/clothing/masks/gasmask.dm
index 3ccfe44cc39..b13c2968f34 100644
--- a/code/modules/clothing/masks/gasmask.dm
+++ b/code/modules/clothing/masks/gasmask.dm
@@ -46,7 +46,6 @@
flags_inv |= (HIDEEYES)
icon_state = initial(icon_state)
to_chat(usr, "You flip the [src] down to protect your eyes.")
-
flash_protect = 2
tint = 2
else
@@ -55,7 +54,6 @@
flags_inv &= ~(HIDEEYES)
icon_state = "[initial(icon_state)]up"
to_chat(usr, "You push the [src] up out of your face.")
-
flash_protect = 0
tint = 0
usr.update_inv_wear_mask() //so our mob-overlays update
@@ -113,7 +111,6 @@
if(src && choice && !M.stat && in_range(M,src))
icon_state = options[choice]
to_chat(M, "Your Clown Mask has now morphed into [choice], all praise the Honk Mother!")
-
return 1
/obj/item/clothing/mask/gas/clownwiz
@@ -251,23 +248,18 @@
switch(aggressiveness)
if(1)
to_chat(user, "\blue You set the restrictor to the middle position.")
-
aggressiveness = 2
if(2)
to_chat(user, "\blue You set the restrictor to the last position.")
-
aggressiveness = 3
if(3)
to_chat(user, "\blue You set the restrictor to the first position.")
-
aggressiveness = 1
if(4)
to_chat(user, "\red You adjust the restrictor but nothing happens, probably because its broken.")
-
else if(istype(W, /obj/item/weapon/wirecutters))
if(aggressiveness != 4)
to_chat(user, "\red You broke it!")
-
aggressiveness = 4
else
..()
@@ -279,7 +271,6 @@
if(safety)
safety = 0
to_chat(user, "You silently fry [src]'s vocal circuit with the cryptographic sequencer.")
-
else
return
diff --git a/code/modules/clothing/masks/voice.dm b/code/modules/clothing/masks/voice.dm
index 887518ab906..190804d1a92 100644
--- a/code/modules/clothing/masks/voice.dm
+++ b/code/modules/clothing/masks/voice.dm
@@ -17,7 +17,6 @@
changer.active = !changer.active
to_chat(usr, "You [changer.active ? "enable" : "disable"] the voice-changing module in \the [src].")
-
/obj/item/clothing/mask/gas/voice/verb/Set_Voice(name as text)
set category = "Object"
set src in usr
@@ -27,7 +26,6 @@
changer.voice = voice
to_chat(usr, "You are now mimicking [changer.voice].")
-
/obj/item/clothing/mask/gas/voice/New()
..()
changer = new(src)
\ No newline at end of file
diff --git a/code/modules/clothing/shoes/magboots.dm b/code/modules/clothing/shoes/magboots.dm
index 6b6a047fc0b..48b9ffa7589 100644
--- a/code/modules/clothing/shoes/magboots.dm
+++ b/code/modules/clothing/shoes/magboots.dm
@@ -20,7 +20,6 @@
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_gravity(user.mob_has_gravity())
@@ -32,7 +31,6 @@
to_chat(user, "Its mag-pulse traction system appears to be [magpulse ? "enabled" : "disabled"].")
-
/obj/item/clothing/shoes/magboots/advance
desc = "Advanced magnetic boots that have a lighter magnetic pull, placing less burden on the wearer."
name = "advanced magboots"
diff --git a/code/modules/clothing/spacesuits/alien.dm b/code/modules/clothing/spacesuits/alien.dm
index d576902a43e..d5fcbdf3251 100644
--- a/code/modules/clothing/spacesuits/alien.dm
+++ b/code/modules/clothing/spacesuits/alien.dm
@@ -206,7 +206,6 @@
magpulse = 0
flags |= NODROP
to_chat(user, "You relax your deathgrip on the flooring.")
-
else
//make sure these can only be used when equipped.
if(!ishuman(user))
@@ -214,7 +213,6 @@
var/mob/living/carbon/human/H = user
if (H.shoes != src)
to_chat(user, "You will have to put on the [src] before you can do that.")
-
return
@@ -222,10 +220,8 @@
magpulse = 1
flags &= ~NODROP //kinda hard to take off magclaws when you are gripping them tightly.
to_chat(user, "You dig your claws deeply into the flooring, bracing yourself.")
-
to_chat(user, "It would be hard to take off the [src] without relaxing your grip first.")
-
//In case they somehow come off while enabled.
/obj/item/clothing/shoes/magboots/vox/dropped(mob/user as mob)
..()
@@ -241,7 +237,6 @@
to_chat(user, "It would be hard to take these off without relaxing your grip first.")//theoretically this message should only be seen by the wearer when the claws are equipped.
-
/obj/item/clothing/suit/space/eva/vox
name = "Vox EVA Suit"
icon_state = "voxspace"
diff --git a/code/modules/clothing/spacesuits/breaches.dm b/code/modules/clothing/spacesuits/breaches.dm
index cd46fd580d9..a7f8baf7a7a 100644
--- a/code/modules/clothing/spacesuits/breaches.dm
+++ b/code/modules/clothing/spacesuits/breaches.dm
@@ -56,7 +56,6 @@ var/global/list/breach_burn_descriptors = list(
if(!can_breach || !breaches || !breaches.len || !damage)
to_chat(user, "There are no breaches to repair on \the [src].")
-
return
var/list/valid_breaches = list()
@@ -67,7 +66,6 @@ var/global/list/breach_burn_descriptors = list(
if(!valid_breaches.len)
to_chat(user, "There are no breaches to repair on \the [src].")
-
return
var/amount_left = amount
@@ -181,12 +179,10 @@ var/global/list/breach_burn_descriptors = list(
if(istype(src.loc,/mob/living))
to_chat(user, "\red How do you intend to patch a hardsuit while someone is wearing it?")
-
return
if(!damage || !burn_damage)
to_chat(user, "There is no surface damage on \the [src] to repair.")
-
return
var/obj/item/stack/sheet/P = W
@@ -202,18 +198,15 @@ var/global/list/breach_burn_descriptors = list(
if(istype(src.loc,/mob/living))
to_chat(user, "\red How do you intend to patch a hardsuit while someone is wearing it?")
-
return
if (!damage || ! brute_damage)
to_chat(user, "There is no structural damage on \the [src] to repair.")
-
return
var/obj/item/weapon/weldingtool/WT = W
if(!WT.remove_fuel(5))
to_chat(user, "\red You need more welding fuel to repair this suit.")
-
return
repair_breaches(BRUTE, 3, user)
@@ -226,4 +219,3 @@ var/global/list/breach_burn_descriptors = list(
if(can_breach && breaches && breaches.len)
for(var/datum/breach/B in breaches)
to_chat(user, "\red It has \a [B.descriptor].")
-
diff --git a/code/modules/clothing/spacesuits/chronosuit.dm b/code/modules/clothing/spacesuits/chronosuit.dm
index 46bd28dc368..334e659302b 100644
--- a/code/modules/clothing/spacesuits/chronosuit.dm
+++ b/code/modules/clothing/spacesuits/chronosuit.dm
@@ -62,7 +62,6 @@
if(1)
if(user && ishuman(user) && (user.wear_suit == src))
to_chat(user, "Elecrtromagnetic pulse detected, shutting down systems to preserve integrity...")
-
deactivate()
/obj/item/clothing/suit/space/chronos/proc/chronowalk(var/mob/living/carbon/human/user)
@@ -133,32 +132,23 @@
if(user && ishuman(user))
if(user.wear_suit == src)
to_chat(user, "\nChronosuitMK4 login: root")
-
to_chat(user, "Password:\n")
-
to_chat(user, "root@ChronosuitMK4# chronowalk4 --start\n")
-
if(user.head && istype(user.head, /obj/item/clothing/head/helmet/space/chronos))
to_chat(user, "\[ ok \] Mounting /dev/helmet")
-
helmet = user.head
helmet.flags |= NODROP
helmet.suit = src
src.flags |= NODROP
to_chat(user, "\[ ok \] Starting brainwave scanner")
-
to_chat(user, "\[ ok \] Starting ui display driver")
-
to_chat(user, "\[ ok \] Initializing chronowalk4-view")
-
new_camera(user)
processing_objects.Add(src)
activated = 1
else
to_chat(user, "\[ fail \] Mounting /dev/helmet")
-
to_chat(user, "FATAL: Unable to locate /dev/helmet. Aborting...")
-
cooldown = world.time + cooldowntime
activating = 0
return 0
@@ -170,24 +160,18 @@
if(user && ishuman(user))
if(user.wear_suit == src)
to_chat(user, "\nroot@ChronosuitMK4# chronowalk4 --stop\n")
-
if(camera)
to_chat(user, "\[ ok \] Sending TERM signal to chronowalk4-view")//yes I know they aren't a different color when shutting down, but they were too similar at a glance
-
qdel(camera)
if(helmet)
to_chat(user, "\[ ok \] Stopping ui display driver")
-
to_chat(user, "\[ ok \] Stopping brainwave scanner")
-
to_chat(user, "\[ ok \] Unmounting /dev/helmet")
-
helmet.flags &= ~NODROP
helmet.suit = null
helmet = null
to_chat(user, "logout")
-
src.flags &= ~NODROP
cooldown = world.time + cooldowntime * 1.5
activated = 0
diff --git a/code/modules/clothing/spacesuits/ert.dm b/code/modules/clothing/spacesuits/ert.dm
index cece5f9b414..4015f107e51 100644
--- a/code/modules/clothing/spacesuits/ert.dm
+++ b/code/modules/clothing/spacesuits/ert.dm
@@ -19,12 +19,10 @@
camera.c_tag = user.name
to_chat(user, "\blue User scanned as [camera.c_tag]. Camera activated.")
-
/obj/item/clothing/head/helmet/space/rig/ert/examine(mob/user)
if(..(user, 1))
to_chat(user, "This helmet has a built-in camera. It's [camera ? "" : "in"]active.")
-
/obj/item/clothing/suit/space/rig/ert
name = "emergency response team suit"
desc = "A suit worn by members of the Nanotrasen Emergency Response Team. Armoured, space ready, and fire resistant."
diff --git a/code/modules/clothing/spacesuits/plasmamen.dm b/code/modules/clothing/spacesuits/plasmamen.dm
index 0b434a2aab2..8e3fdefbb65 100644
--- a/code/modules/clothing/spacesuits/plasmamen.dm
+++ b/code/modules/clothing/spacesuits/plasmamen.dm
@@ -24,7 +24,6 @@
..(user)
to_chat(user, "There are [extinguishes_left] extinguisher canisters left in this suit.")
-
/obj/item/clothing/suit/space/eva/plasmaman/proc/Extinguish(var/mob/user)
var/mob/living/carbon/human/H=user
if(extinguishes_left)
@@ -34,7 +33,6 @@
next_extinguish = world.time + extinguish_cooldown
extinguishes_left--
to_chat(H, "Your suit automatically extinguishes the fire.")
-
H.ExtinguishMob()
/obj/item/clothing/head/helmet/space/eva/plasmaman
@@ -54,7 +52,6 @@
if(!isturf(user.loc))
to_chat(user, "You cannot turn the light on while in this [user.loc].")//To prevent some lighting anomalities.
-
return
toggle_light(user)
diff --git a/code/modules/clothing/spacesuits/rig.dm b/code/modules/clothing/spacesuits/rig.dm
index 4fd0961910a..72a32c1e0cb 100644
--- a/code/modules/clothing/spacesuits/rig.dm
+++ b/code/modules/clothing/spacesuits/rig.dm
@@ -33,7 +33,6 @@
if(!isturf(user.loc))
to_chat(user, "You cannot turn the light on while in this [user.loc].")//To prevent some lighting anomalities.
-
return
toggle_light(user)
@@ -107,10 +106,8 @@
if(attached_helmet && helmet)
if(H.head)
to_chat(M, "You are unable to deploy your suit's helmet as \the [H.head] is in the way.")
-
else
to_chat(M, "Your suit's helmet deploys with a hiss.")
-
//TODO: Species check, skull damage for forcing an unfitting helmet on?
helmet.forceMove(H)
H.equip_to_slot(helmet, slot_head)
@@ -119,10 +116,8 @@
if(attached_boots && boots)
if(H.shoes)
to_chat(M, "You are unable to deploy your suit's magboots as \the [H.shoes] are in the way.")
-
else
to_chat(M, "Your suit's boots deploy with a hiss.")
-
boots.forceMove(H)
H.equip_to_slot(boots, slot_shoes)
boots.flags |= NODROP
@@ -158,7 +153,6 @@
if(!helmet)
to_chat(usr, "There is no helmet installed.")
-
return
var/mob/living/carbon/human/H = usr
@@ -172,11 +166,9 @@
H.unEquip(helmet)
helmet.loc = src
to_chat(H, "You retract your hardsuit helmet.")
-
else
if(H.head)
to_chat(H, "You cannot deploy your helmet while wearing another helmet.")
-
return
//TODO: Species check, skull damage for forcing an unfitting helmet on?
helmet.loc = H
@@ -184,7 +176,6 @@
H.equip_to_slot(helmet, slot_head)
helmet.flags |= NODROP
to_chat(H, "You deploy your hardsuit helmet, sealing you off from the world.")
-
H.update_inv_head()
/obj/item/clothing/suit/space/rig/attackby(obj/item/W as obj, mob/user as mob, params)
@@ -193,25 +184,20 @@
if(istype(src.loc,/mob/living))
to_chat(user, "How do you propose to modify a hardsuit while it is being worn?")
-
return
if(istype(W,/obj/item/weapon/screwdriver))
if(!helmet)
to_chat(user, "\The [src] does not have a helmet installed.")
-
else
to_chat(user, "You detach \the [helmet] from \the [src]'s helmet mount.")
-
helmet.loc = get_turf(src)
src.helmet = null
return
if(!boots)
to_chat(user, "\The [src] does not have any boots installed.")
-
else
to_chat(user, "You detach \the [boots] from \the [src]'s boot mounts.")
-
boots.loc = get_turf(src)
boots = null
return
@@ -219,14 +205,11 @@
else if(istype(W,/obj/item/clothing/head/helmet/space))
if(!attached_helmet)
to_chat(user, "\The [src] does not have a helmet mount.")
-
return
if(helmet)
to_chat(user, "\The [src] already has a helmet installed.")
-
else
to_chat(user, "You attach \the [W] to \the [src]'s helmet mount.")
-
user.drop_item()
W.loc = src
src.helmet = W
@@ -235,15 +218,12 @@
else if(istype(W,/obj/item/clothing/shoes/magboots))
if(!attached_boots)
to_chat(user, "\The [src] does not have boot mounts.")
-
return
if(boots)
to_chat(user, "\The [src] already has magboots installed.")
-
else
to_chat(user, "You attach \the [W] to \the [src]'s boot mounts.")
-
user.drop_item()
W.loc = src
boots = W
@@ -327,13 +307,11 @@
if(!isturf(user.loc))
to_chat(user, "You cannot toggle your helmet while in this [user.loc].")//To prevent some lighting anomalities.
-
return
on = !on
if(on)
to_chat(user, "You switch your helmet to travel mode. It will allow you to stand in zero pressure environments, at the cost of speed and armor.")
-
name = "blood-red hardsuit helmet"
desc = "A dual-mode advanced helmet designed for work in special operations. It is in travel mode. Property of Gorlex Marauders."
flags = HEADCOVERSEYES | BLOCKHAIR | HEADCOVERSMOUTH | STOPSPRESSUREDMAGE | THICKMATERIAL | NODROP
@@ -342,7 +320,6 @@
set_light(brightness_on)
else
to_chat(user, "You switch your helmet to combat mode. You will take damage in zero pressure environments, but you are more suited for a fight.")
-
name = "blood-red hardsuit helmet (combat)"
desc = "A dual-mode advanced helmet designed for work in special operations. It is in combat mode. Property of Gorlex Marauders."
flags = BLOCKHAIR | THICKMATERIAL | NODROP
@@ -374,7 +351,6 @@
on = !on
if(on)
to_chat(user, "You switch your hardsuit to travel mode. It will allow you to stand in zero pressure environments, at the cost of speed and armor.")
-
name = "blood-red hardsuit"
desc = "A dual-mode advanced hardsuit designed for work in special operations. It is in travel mode. Property of Gorlex Marauders."
slowdown = 1
@@ -383,7 +359,6 @@
cold_protection = UPPER_TORSO | LOWER_TORSO | LEGS | FEET | ARMS | HANDS
else
to_chat(user, "You switch your hardsuit to combat mode. You will take damage in zero pressure environments, but you are more suited for a fight.")
-
name = "blood-red hardsuit (combat)"
desc = "A dual-mode advanced hardsuit designed for work in special operations. It is in combat mode. Property of Gorlex Marauders."
slowdown = 0
diff --git a/code/modules/clothing/spacesuits/rig/modules/combat.dm b/code/modules/clothing/spacesuits/rig/modules/combat.dm
index b555fdd2050..2473fd24eb8 100644
--- a/code/modules/clothing/spacesuits/rig/modules/combat.dm
+++ b/code/modules/clothing/spacesuits/rig/modules/combat.dm
@@ -52,11 +52,9 @@
if(accepted_item.charges >= 5)
to_chat(user, "Another grenade of that type will not fit into the module.")
-
return 0
to_chat(user, "You slot \the [input_device] into the suit module.")
-
user.unEquip(input_device)
qdel(input_device)
accepted_item.charges++
@@ -74,7 +72,6 @@
if(!charge_selected)
to_chat(H, "You have not selected a grenade type.")
-
return 0
var/datum/rig_charge/charge = charges[charge_selected]
@@ -84,7 +81,6 @@
if(charge.charges <= 0)
to_chat(H, "Insufficient grenades!")
-
return 0
charge.charges--
@@ -191,7 +187,6 @@
if(M.l_hand && M.r_hand)
to_chat(M, "Your hands are full.")
-
deactivate()
return
@@ -244,12 +239,10 @@
else
if(H.l_hand && H.r_hand)
to_chat(H, "Your hands are full.")
-
else
var/obj/item/new_weapon = new fabrication_type()
new_weapon.forceMove(H)
to_chat(H, "You quickly fabricate \a [new_weapon].")
-
H.put_in_hands(new_weapon)
return 1
diff --git a/code/modules/clothing/spacesuits/rig/modules/computer.dm b/code/modules/clothing/spacesuits/rig/modules/computer.dm
index 6059173f090..468141b6628 100644
--- a/code/modules/clothing/spacesuits/rig/modules/computer.dm
+++ b/code/modules/clothing/spacesuits/rig/modules/computer.dm
@@ -16,13 +16,11 @@
if(!usr.loc || !usr.loc.loc || !istype(usr.loc.loc, /obj/item/rig_module))
to_chat(usr, "You are not loaded into a hardsuit.")
-
return
var/obj/item/rig_module/module = usr.loc.loc
if(!module.holder)
to_chat(usr, "Your module is not installed in a hardsuit.")
-
return
module.holder.ui_interact(usr, nano_state = contained_state)
@@ -163,10 +161,8 @@
if(integrated_ai && !integrated_ai.stat)
if(user)
to_chat(user, "You cannot eject your currently stored AI. Purge it manually.")
-
return 0
to_chat(user, "You purge the remaining scraps of data from your previous AI, freeing it for use.")
-
if(integrated_ai)
integrated_ai.ghostize()
qdel(integrated_ai)
@@ -214,10 +210,8 @@
ai.forceMove(src)
ai_card = ai
to_chat(ai_mob, "You have been transferred to \the [holder]'s [src].")
-
to_chat(user, "You load [ai_mob] into \the [holder]'s [src].")
-
integrated_ai = ai_mob
if(!(locate(integrated_ai) in ai_card))
@@ -225,10 +219,8 @@
eject_ai()
else
to_chat(user, "There is no active AI within \the [ai].")
-
else
to_chat(user, "There is no active AI within \the [ai].")
-
update_verb_holder()
/obj/item/rig_module/datajack
@@ -266,19 +258,15 @@
if(istype(input_device,/obj/item/weapon/disk/tech_disk))
to_chat(user, "You slot the disk into [src].")
-
var/obj/item/weapon/disk/tech_disk/disk = input_device
if(disk.stored)
if(load_data(disk.stored))
to_chat(user, "Download successful; disk erased.")
-
disk.stored = null
else
to_chat(user, "The disk is corrupt. It is useless to you.")
-
else
to_chat(user, "The disk is blank. It is useless to you.")
-
return 1
// I fucking hate R&D code. This typecheck spam would be totally unnecessary in a sane setup.
@@ -296,15 +284,12 @@
if(!incoming_files || !incoming_files.known_tech || !incoming_files.known_tech.len)
to_chat(user, "Memory failure. There is nothing accessible stored on this terminal.")
-
else
// Maybe consider a way to drop all your data into a target repo in the future.
if(load_data(incoming_files.known_tech))
to_chat(user, "Download successful; local and remote repositories synchronized.")
-
else
to_chat(user, "Scan complete. There is nothing useful stored on this terminal.")
-
return 1
return 0
@@ -385,7 +370,6 @@
if(interfaced_with)
if(holder && holder.wearer)
to_chat(holder.wearer, "Your power sink retracts as the module deactivates.")
-
drain_complete()
interfaced_with = null
total_power_drained = 0
@@ -418,7 +402,6 @@
return 0
to_chat(H, "You begin draining power from [target]!")
-
interfaced_with = target
drain_loc = interfaced_with.loc
@@ -451,19 +434,16 @@
if(!holder.cell)
to_chat(H, "Your power sink flashes an error; there is no cell in your rig.")
-
drain_complete(H)
return
if(!interfaced_with || !interfaced_with.Adjacent(H) || !(interfaced_with.loc == drain_loc))
to_chat(H, "Your power sink retracts into its casing.")
-
drain_complete(H)
return
if(holder.cell.fully_charged())
to_chat(H, "Your power sink flashes an amber light; your rig cell is full.")
-
drain_complete(H)
return
@@ -472,7 +452,6 @@
var/target_drained = interfaced_with.drain_power(0,0,to_drain)
if(target_drained <= 0)
to_chat(H, "Your power sink flashes a red light; there is no power left in [interfaced_with].")
-
drain_complete(H)
return
@@ -485,10 +464,8 @@
if(!interfaced_with)
to_chat(if(M) M, "Total power drained: [round(total_power_drained/1000)]kJ.")
-
else
to_chat(if(M) M, "Total power drained from [interfaced_with]: [round(total_power_drained/1000)]kJ.")
-
interfaced_with.drain_power(0,1,0) // Damage the victim.
drain_loc = null
diff --git a/code/modules/clothing/spacesuits/rig/modules/modules.dm b/code/modules/clothing/spacesuits/rig/modules/modules.dm
index ae790b74f6b..e64084a0beb 100644
--- a/code/modules/clothing/spacesuits/rig/modules/modules.dm
+++ b/code/modules/clothing/spacesuits/rig/modules/modules.dm
@@ -58,33 +58,27 @@
switch(damage)
if(0)
to_chat(usr, "It is undamaged.")
-
if(1)
to_chat(usr, "It is badly damaged.")
-
if(2)
to_chat(usr, "It is almost completely destroyed.")
-
/obj/item/rig_module/attackby(obj/item/W as obj, mob/user as mob)
if(istype(W,/obj/item/stack/nanopaste))
if(damage == 0)
to_chat(user, "There is no damage to mend.")
-
return
to_chat(user, "You start mending the damaged portions of \the [src]...")
-
if(!do_after(user,30, target = src) || !W || !src)
return
var/obj/item/stack/nanopaste/paste = W
damage = 0
to_chat(user, "You mend the damage to [src] with [W].")
-
paste.use(1)
return
@@ -93,27 +87,22 @@
switch(damage)
if(0)
to_chat(user, "There is no damage to mend.")
-
return
if(2)
to_chat(user, "There is no damage that you are capable of mending with such crude tools.")
-
return
var/obj/item/stack/cable_coil/cable = W
if(!cable.amount >= 5)
to_chat(user, "You need five units of cable to repair \the [src].")
-
return
to_chat(user, "You start mending the damaged portions of \the [src]...")
-
if(!do_after(user, 30, target = src) || !W || !src)
return
damage = 1
to_chat(user, "You mend some of damage to [src] with [W], but you will need more advanced tools to fix it completely.")
-
cable.use(5)
return
..()
@@ -154,32 +143,26 @@
if(damage >= 2)
to_chat(usr, "The [interface_name] is damaged beyond use!")
-
return 0
if(world.time < next_use)
to_chat(usr, "You cannot use the [interface_name] again so soon.")
-
return 0
if(!holder || (!(holder.flags & NODROP)))
to_chat(usr, "The suit is not initialized.")
-
return 0
if(usr.lying || usr.stat || usr.stunned || usr.paralysis || usr.weakened)
to_chat(usr, "You cannot use the suit in this state.")
-
return 0
if(holder.wearer && holder.wearer.lying)
to_chat(usr, "The suit cannot function while the wearer is prone.")
-
return 0
if(holder.security_check_enabled && !holder.check_suit_access(usr))
to_chat(usr, "Access denied.")
-
return 0
if(!holder.check_power_cost(usr, use_power_cost, 0, src, (istype(usr,/mob/living/silicon ? 1 : 0) ) ) )
diff --git a/code/modules/clothing/spacesuits/rig/modules/ninja.dm b/code/modules/clothing/spacesuits/rig/modules/ninja.dm
index 5db07ba037c..40e64add719 100644
--- a/code/modules/clothing/spacesuits/rig/modules/ninja.dm
+++ b/code/modules/clothing/spacesuits/rig/modules/ninja.dm
@@ -38,7 +38,6 @@
var/mob/living/carbon/human/H = holder.wearer
to_chat(H, "You are now invisible to normal detection.")
-
H.invisibility = INVISIBILITY_LEVEL_TWO
anim(get_turf(H), H, 'icons/effects/effects.dmi', "electricity",null,20,null)
@@ -53,7 +52,6 @@
var/mob/living/carbon/human/H = holder.wearer
to_chat(H, "You are now visible.")
-
H.invisibility = 0
anim(get_turf(H), H,'icons/mob/mob.dmi',,"uncloak",,H.dir)
@@ -105,7 +103,6 @@
if(!istype(H.loc, /turf))
to_chat(H, "You cannot teleport out of your current location.")
-
return 0
var/turf/T
@@ -116,12 +113,10 @@
/*if(!T || T.density)
to_chat(H, "You cannot teleport into solid walls.")
-
return 0*///Who the fuck cares? Ninjas in walls are cool.
if(T.z in config.admin_levels)
to_chat(H, "You cannot use your teleporter on this Z-level.")
-
return 0
phase_out(H,get_turf(H))
diff --git a/code/modules/clothing/spacesuits/rig/modules/utility.dm b/code/modules/clothing/spacesuits/rig/modules/utility.dm
index 7d68a18986a..087b34dd756 100644
--- a/code/modules/clothing/spacesuits/rig/modules/utility.dm
+++ b/code/modules/clothing/spacesuits/rig/modules/utility.dm
@@ -165,7 +165,6 @@
if(!input_item.reagents || !input_item.reagents.total_volume)
to_chat(user, "\The [input_item] is empty.")
-
return 0
// Magical chemical filtration system, do not question it.
@@ -188,10 +187,8 @@
if(total_transferred)
to_chat(user, "You transfer [total_transferred] units into the suit reservoir.")
-
else
to_chat(user, "None of the reagents seem suitable.")
-
return 1
/obj/item/rig_module/chem_dispenser/engage(atom/target)
@@ -203,7 +200,6 @@
if(!charge_selected)
to_chat(H, "You have not selected a chemical type.")
-
return 0
var/datum/rig_charge/charge = charges[charge_selected]
@@ -214,7 +210,6 @@
var/chems_to_use = 10
if(charge.charges <= 0)
to_chat(H, "Insufficient chems!")
-
return 0
else if(charge.charges < chems_to_use)
chems_to_use = charge.charges
@@ -230,9 +225,7 @@
if(target_mob != H)
to_chat(H, "You inject [target_mob] with [chems_to_use] unit\s of [charge.display_name].")
-
to_chat(target_mob, "You feel a rushing in your veins as [chems_to_use] unit\s of [charge.display_name] [chems_to_use == 1 ? "is" : "are"] injected.")
-
target_mob.reagents.add_reagent(charge.display_name, chems_to_use)
charge.charges -= chems_to_use
@@ -307,19 +300,16 @@
active = 1
voice_holder.active = 1
to_chat(usr, "You enable the speech synthesiser.")
-
if("Disable")
active = 0
voice_holder.active = 0
to_chat(usr, "You disable the speech synthesiser.")
-
if("Set Name")
var/raw_choice = sanitize(input(usr, "Please enter a new name.") as text|null, MAX_NAME_LEN)
if(!raw_choice)
return 0
voice_holder.voice = raw_choice
to_chat(usr, "You are now mimicking [voice_holder.voice].")
-
return 1
/obj/item/rig_module/maneuvering_jets
@@ -446,11 +436,9 @@
if(device == iastamp)
device = deniedstamp
to_chat(holder.wearer, "Switched to denied stamp.")
-
else if(device == deniedstamp)
device = iastamp
to_chat(holder.wearer, "Switched to internal affairs stamp.")
-
return 1
/obj/item/rig_module/welding_tank
@@ -485,11 +473,9 @@
fill_welder(W)
else
to_chat(holder.wearer, "Your welding tank is out of fuel!")
-
else
to_chat(holder.wearer, "You need to have a welding tool in one of your hands to dispense fuel.")
-
/obj/item/rig_module/welding_tank/proc/fill_welder(var/obj/item/weapon/weldingtool/W)
if(!istype(W))
return 0
@@ -498,11 +484,9 @@
if(get_fuel() >= W.max_fuel)
reagents.trans_to(W, W.max_fuel)
to_chat(holder.wearer, "Your [holder] dispenses some of the contents of the welding fuel tank into \the [W].")
-
else
reagents.trans_to(W, W.max_fuel)
to_chat(holder.wearer, "You hear a faint dripping as your hardsuit welding tank completely empties.")
-
W.update_icon()
/obj/item/rig_module/welding_tank/proc/get_fuel()
diff --git a/code/modules/clothing/spacesuits/rig/modules/vision.dm b/code/modules/clothing/spacesuits/rig/modules/vision.dm
index f4db1864ffc..9fc960cdbce 100644
--- a/code/modules/clothing/spacesuits/rig/modules/vision.dm
+++ b/code/modules/clothing/spacesuits/rig/modules/vision.dm
@@ -161,7 +161,6 @@
// Don't cycle if this engage() is being called by activate().
if(starting_up)
to_chat(holder.wearer, "You activate your visual sensors.")
-
return 1
if(vision_modes.len > 1)
@@ -171,10 +170,8 @@
vision = vision_modes[vision_index]
to_chat(holder.wearer, "You cycle your sensors to [vision.mode] mode.")
-
else
to_chat(holder.wearer, "Your sensors only have one mode.")
-
return 1
/obj/item/rig_module/vision/New()
diff --git a/code/modules/clothing/spacesuits/rig/rig.dm b/code/modules/clothing/spacesuits/rig/rig.dm
index d44baeab2d4..066c4893f73 100644
--- a/code/modules/clothing/spacesuits/rig/rig.dm
+++ b/code/modules/clothing/spacesuits/rig/rig.dm
@@ -83,22 +83,17 @@
/obj/item/weapon/rig/examine()
to_chat(usr, "This is \icon[src][src.name].")
-
to_chat(usr, "[src.desc]")
-
if(wearer)
for(var/obj/item/piece in list(helmet,gloves,chest,boots))
if(!piece || piece.loc != wearer)
continue
to_chat(usr, "\icon[piece] \The [piece] [piece.gender == PLURAL ? "are" : "is"] deployed.")
-
if(src.loc == usr)
to_chat(usr, "The maintenance panel is [open ? "open" : "closed"].")
-
to_chat(usr, "Hardsuit systems are [offline ? "offline" : "online"].")
-
/obj/item/weapon/rig/New()
..()
@@ -221,7 +216,6 @@
if(seal_delay && !do_after(user, seal_delay, target = M))
if(user)
to_chat(user, "You must remain still while the suit is adjusting the components.")
-
failed_to_seal = 1
if(!M)
@@ -240,7 +234,6 @@
if(!istype(M) || !istype(piece) || !istype(compare_piece) || !msg_type)
if(M)
to_chat(M, "You must remain still while the suit is adjusting the components.")
-
failed_to_seal = 1
break
@@ -253,19 +246,15 @@
switch(msg_type)
if("boots")
to_chat(M, "\The [piece] [!seal_target ? "seal around your feet" : "relax their grip on your legs"].")
-
M.update_inv_shoes()
if("gloves")
to_chat(M, "\The [piece] [!seal_target ? "tighten around your fingers and wrists" : "become loose around your fingers"].")
-
M.update_inv_gloves()
if("chest")
to_chat(M, "\The [piece] [!seal_target ? "cinches tight again your chest" : "releases your chest"].")
-
M.update_inv_wear_suit()
if("helmet")
to_chat(M, "\The [piece] hisses [!seal_target ? "closed" : "open"].")
-
M.update_inv_head()
if(helmet)
helmet.update_light(wearer)
@@ -304,7 +293,6 @@
flags |= NODROP
to_chat(M, "Your entire suit [!(flags & NODROP) ? "loosens as the components relax" : "tightens around you as the components lock into place"].")
-
if(!(flags & NODROP))
for(var/obj/item/rig_module/module in installed_modules)
module.deactivate()
@@ -341,16 +329,12 @@
if(flags & NODROP)
if (offline_slowdown < 3)
to_chat(wearer, "Your suit beeps stridently, and suddenly goes dead.")
-
else
to_chat(wearer, "Your suit beeps stridently, and suddenly you're wearing a leaden mass of metal and plastic composites instead of a powered suit.")
-
if(offline_vision_restriction == 1)
to_chat(wearer, "The suit optics flicker and die, leaving you with restricted vision.")
-
else if(offline_vision_restriction == 2)
to_chat(wearer, "The suit optics drop out completely, drowning you in darkness.")
-
if(!offline)
offline = 1
if(istype(wearer) && wearer.wearing_rig)
@@ -406,7 +390,6 @@
if(fail_msg)
to_chat(user, "[fail_msg]")
-
return 0
// This is largely for cancelling stealth and whatever.
@@ -533,12 +516,10 @@
return 0
else if(!src.allowed(user))
to_chat(user, "Unauthorized user. Access denied.")
-
return 0
else if(!ai_override_enabled)
to_chat(user, "Synthetic access disabled. Please consult hardware provider.")
-
return 0
return 1
@@ -589,7 +570,6 @@
if(ai && ai.client && !ai.stat)
to_chat(ai, "[message]")
-
/obj/item/weapon/rig/equipped(mob/living/carbon/human/M)
..()
spawn(1) //equipped() is called BEFORE the item is actually set as the slot
@@ -655,7 +635,6 @@
if(istype(holder))
if(use_obj && check_slot == use_obj)
to_chat(H, "Your [use_obj.name] [use_obj.gender == PLURAL ? "retract" : "retracts"] swiftly.")
-
use_obj.flags &= ~NODROP
holder.unEquip(use_obj, 1)
use_obj.forceMove(src)
@@ -664,7 +643,6 @@
if(check_slot)
if(check_slot != use_obj)
to_chat(H, "You are unable to deploy \the [piece] as \the [check_slot] [check_slot.gender == PLURAL ? "are" : "is"] in the way.")
-
return
else
use_obj.forceMove(H)
@@ -673,7 +651,6 @@
use_obj.forceMove(src)
else
to_chat(H, "Your [use_obj.name] [use_obj.gender == PLURAL ? "deploy" : "deploys"] swiftly.")
-
use_obj.flags |= NODROP
if(piece == "helmet" && helmet)
@@ -790,20 +767,16 @@
if(wearer)
if(dam_module.damage >= 2)
to_chat(wearer, "The [source] has disabled your [dam_module.interface_name]!")
-
else
to_chat(wearer, "The [source] has damaged your [dam_module.interface_name]!")
-
dam_module.deactivate()
/obj/item/weapon/rig/proc/malfunction_check(var/mob/living/carbon/human/user)
if(malfunction_delay)
if(offline)
to_chat(user, "The suit is completely unresponsive.")
-
else
to_chat(user, "ERROR: Hardware fault. Rebooting interface...")
-
return 1
return 0
@@ -828,23 +801,19 @@
var/obj/item/rig_module/ai_container/module = user.loc.loc
if(!istype(module) || module.damage >= 2)
to_chat(user, "Your host module is unable to interface with the suit.")
-
return 0
if(offline || !cell || !cell.charge || locked_down)
if(user)
to_chat(user, "Your host rig is unpowered and unresponsive.")
-
return 0
if(!wearer || wearer.back != src)
if(user)
to_chat(user, "Your host rig is not being worn.")
-
return 0
if(!wearer.stat && !control_overridden && !ai_override_enabled)
if(user)
to_chat(user, "You are locked out of the suit servo controller.")
-
return 0
return 1
@@ -854,7 +823,6 @@
wearer.lay_down()
to_chat(user, "\The [wearer] is now [wearer.resting ? "resting" : "getting up"].")
-
/obj/item/weapon/rig/proc/forced_move(var/direction, var/mob/user)
// Why is all this shit in client/Move()? Who knows?
@@ -894,14 +862,12 @@
if(M.pulling == wearer)
if(!M.restrained() && M.stat == 0 && M.canmove && wearer.Adjacent(M))
to_chat(user, "Your host is restrained! They can't move!")
-
return 0
else
M.stop_pulling()
if(wearer.pinned.len)
to_chat(src, "Your host is pinned to a wall by [wearer.pinned[1]]!")
-
return 0
// AIs are a bit slower than regular and ignore move intent.
diff --git a/code/modules/clothing/spacesuits/rig/rig_attackby.dm b/code/modules/clothing/spacesuits/rig/rig_attackby.dm
index 26912b6c005..b89c59cf837 100644
--- a/code/modules/clothing/spacesuits/rig/rig_attackby.dm
+++ b/code/modules/clothing/spacesuits/rig/rig_attackby.dm
@@ -15,35 +15,29 @@
if(subverted)
locked = 0
to_chat(user, "It looks like the locking system has been shorted out.")
-
return
if((!req_access || !req_access.len) && (!req_one_access || !req_one_access.len))
locked = 0
to_chat(user, "\The [src] doesn't seem to have a locking mechanism.")
-
return
if(security_check_enabled && !src.allowed(user))
to_chat(user, "Access denied.")
-
return
locked = !locked
to_chat(user, "You [locked ? "lock" : "unlock"] \the [src] access panel.")
-
return
else if(istype(W,/obj/item/weapon/crowbar))
if(!open && locked)
to_chat(user, "The access panel is locked shut.")
-
return
open = !open
to_chat(user, "You [open ? "open" : "close"] the access panel.")
-
return
if(open)
@@ -54,21 +48,18 @@
wires.Interact(user)
else
to_chat(user, "You can't reach the wiring.")
-
return
// Air tank.
if(istype(W,/obj/item/weapon/tank)) //Todo, some kind of check for suits without integrated air supplies.
if(air_supply)
to_chat(user, "\The [src] already has a tank installed.")
-
return
user.unEquip(W)
air_supply = W
W.forceMove(src)
to_chat(user, "You slot [W] into [src] and tighten the connecting valve.")
-
return
// Check if this is a hardsuit upgrade or a modification.
@@ -78,7 +69,6 @@
var/mob/living/carbon/human/H = src.loc
if(H.back == src)
to_chat(user, "You can't install a hardsuit module while the suit is being worn.")
-
return 1
if(!installed_modules) installed_modules = list()
@@ -86,18 +76,15 @@
for(var/obj/item/rig_module/installed_mod in installed_modules)
if(!installed_mod.redundant && istype(installed_mod,W))
to_chat(user, "The hardsuit already has a module of that class installed.")
-
return 1
var/obj/item/rig_module/mod = W
to_chat(user, "You begin installing \the [mod] into \the [src].")
-
if(!do_after(user,40, target = src))
return
if(!user || !W)
return
to_chat(user, "You install \the [mod] into \the [src].")
-
user.unEquip(mod)
installed_modules |= mod
mod.forceMove(src)
@@ -108,7 +95,6 @@
else if(!cell && istype(W,/obj/item/weapon/stock_parts/cell))
to_chat(user, "You jack \the [W] into \the [src]'s battery mount.")
-
user.unEquip(W)
W.forceMove(src)
src.cell = W
@@ -118,7 +104,6 @@
if(!air_supply)
to_chat(user, "There is not tank to remove.")
-
return
if(user.r_hand && user.l_hand)
@@ -126,7 +111,6 @@
else
user.put_in_hands(air_supply)
to_chat(user, "You detach and remove \the [air_supply].")
-
air_supply = null
return
@@ -144,7 +128,6 @@
var/mob/living/carbon/human/H = src.loc
if(H.back == src)
to_chat(user, "You can't remove an installed device while the hardsuit is being worn.")
-
return
switch(to_remove)
@@ -153,7 +136,6 @@
if(cell)
to_chat(user, "You detatch \the [cell] from \the [src]'s battery mount.")
-
for(var/obj/item/rig_module/module in installed_modules)
module.deactivate()
if(user.r_hand && user.l_hand)
@@ -164,7 +146,6 @@
else
to_chat(user, "There is nothing loaded in that mount.")
-
if("system module")
var/list/possible_removals = list()
@@ -175,7 +156,6 @@
if(!possible_removals.len)
to_chat(user, "There are no installed modules to remove.")
-
return
var/removal_choice = input("Which module would you like to remove?") as null|anything in possible_removals
@@ -184,7 +164,6 @@
var/obj/item/rig_module/removed = possible_removals[removal_choice]
to_chat(user, "You detatch \the [removed] from \the [src].")
-
removed.forceMove(get_turf(src))
removed.removed()
installed_modules -= removed
@@ -214,5 +193,4 @@
locked = 0
subverted = 1
to_chat(user, "You short out the access protocol for the suit.")
-
return 1
diff --git a/code/modules/clothing/spacesuits/rig/rig_pieces.dm b/code/modules/clothing/spacesuits/rig/rig_pieces.dm
index 41f58657611..dab4ad5ac35 100644
--- a/code/modules/clothing/spacesuits/rig/rig_pieces.dm
+++ b/code/modules/clothing/spacesuits/rig/rig_pieces.dm
@@ -24,7 +24,6 @@
if(!isturf(user.loc))
to_chat(user, "You cannot turn the light on while in this [user.loc].")//To prevent some lighting anomalities.
-
return
toggle_light(user)
diff --git a/code/modules/clothing/spacesuits/rig/rig_verbs.dm b/code/modules/clothing/spacesuits/rig/rig_verbs.dm
index acd84334bac..f4769eddf0b 100644
--- a/code/modules/clothing/spacesuits/rig/rig_verbs.dm
+++ b/code/modules/clothing/spacesuits/rig/rig_verbs.dm
@@ -18,7 +18,6 @@
if(!istype(wearer) || !wearer.back == src)
to_chat(usr, "The hardsuit is not being worn.")
-
return
if(!check_power_cost(usr))
@@ -26,7 +25,6 @@
if(!(flags & NODROP))
to_chat(usr, "The suit is not active.")
-
return
if(!check_suit_access(usr))
@@ -34,7 +32,6 @@
if(!visor)
to_chat(usr, "The hardsuit does not have a configurable visor.")
-
return
var/mob/M = usr
@@ -55,7 +52,6 @@
if(!istype(wearer) || !wearer.back == src)
to_chat(usr, "The hardsuit is not being worn.")
-
return
if(!check_suit_access(usr))
@@ -92,7 +88,6 @@
if(!istype(wearer) || !wearer.back == src)
to_chat(usr, "The hardsuit is not being worn.")
-
return
if(!check_suit_access(usr))
@@ -113,7 +108,6 @@
if(!istype(wearer) || !wearer.back == src)
to_chat(usr, "The hardsuit is not being worn.")
-
return
if(!check_suit_access(usr))
@@ -134,7 +128,6 @@
if(!istype(wearer) || !wearer.back == src)
to_chat(usr, "The hardsuit is not being worn.")
-
return
if(!check_suit_access(usr))
@@ -158,7 +151,6 @@
if(!istype(wearer) || !wearer.back == src)
to_chat(usr, "The hardsuit is not being worn.")
-
return
if(!check_suit_access(usr))
@@ -185,12 +177,10 @@
if(!(flags & NODROP))
to_chat(usr, "The suit is not active.")
-
return
if(!visor)
to_chat(usr, "The hardsuit does not have a configurable visor.")
-
return
var/mob/M = usr
@@ -202,7 +192,6 @@
if(!visor.active)
to_chat(usr, "The visor is suffering a hardware fault and cannot be configured.")
-
return
visor.engage()
@@ -219,17 +208,14 @@
if(!(flags & NODROP))
to_chat(usr, "The suit is not active.")
-
return
if(!istype(wearer) || !wearer.back == src)
to_chat(usr, "The hardsuit is not being worn.")
-
return
if(!speech)
to_chat(usr, "The hardsuit does not have a speech synthesiser.")
-
return
var/mob/M = usr
@@ -253,12 +239,10 @@
if(!(flags & NODROP))
to_chat(usr, "The suit is not active.")
-
return
if(!istype(wearer) || !wearer.back == src)
to_chat(usr, "The hardsuit is not being worn.")
-
return
var/mob/M = usr
@@ -275,13 +259,11 @@
if(!istype(module))
selected_module = null
to_chat(usr, "Primary system is now: deselected.")
-
return
selected_module = module
to_chat(usr, "Primary system is now: [selected_module.interface_name].")
-
/obj/item/weapon/rig/verb/toggle_module()
set name = "Toggle Module"
@@ -297,12 +279,10 @@
if(!(flags & NODROP))
to_chat(usr, "The suit is not active.")
-
return
if(!istype(wearer) || !wearer.back == src)
to_chat(usr, "The hardsuit is not being worn.")
-
return
var/mob/M = usr
@@ -321,11 +301,9 @@
if(module.active)
to_chat(usr, "You attempt to deactivate \the [module.interface_name].")
-
module.deactivate()
else
to_chat(usr, "You attempt to activate \the [module.interface_name].")
-
module.activate()
/obj/item/weapon/rig/verb/engage_module()
@@ -340,12 +318,10 @@
if(!(flags & NODROP))
to_chat(usr, "The suit is not active.")
-
return
if(!istype(wearer) || !wearer.back == src)
to_chat(usr, "The hardsuit is not being worn.")
-
return
if(!check_power_cost(usr, 0, 0, 0, 0))
@@ -366,5 +342,4 @@
return
to_chat(usr, "You attempt to engage the [module.interface_name].")
-
module.engage()
\ No newline at end of file
diff --git a/code/modules/clothing/suits/armor.dm b/code/modules/clothing/suits/armor.dm
index 7abf3efdf1b..6f699e3a9ae 100644
--- a/code/modules/clothing/suits/armor.dm
+++ b/code/modules/clothing/suits/armor.dm
@@ -175,12 +175,10 @@
src.active = !( src.active )
if (src.active)
to_chat(user, "\blue The reactive armor is now active.")
-
src.icon_state = "reactive"
src.item_state = "reactive"
else
to_chat(user, "\blue The reactive armor is now inactive.")
-
src.icon_state = "reactiveoff"
src.item_state = "reactiveoff"
src.add_fingerprint(user)
diff --git a/code/modules/clothing/suits/miscellaneous.dm b/code/modules/clothing/suits/miscellaneous.dm
index a926b54499e..f1a8865418c 100644
--- a/code/modules/clothing/suits/miscellaneous.dm
+++ b/code/modules/clothing/suits/miscellaneous.dm
@@ -554,11 +554,9 @@
if(on)
on = 0
to_chat(usr, "You turn the suit's special processes off.")
-
else
on = 1
to_chat(usr, "You turn the suit's special processes on.")
-
processing_objects.Add(src)
diff --git a/code/modules/clothing/under/accessories/accessory.dm b/code/modules/clothing/under/accessories/accessory.dm
index 3d12a9ff290..5dc5cf02699 100644
--- a/code/modules/clothing/under/accessories/accessory.dm
+++ b/code/modules/clothing/under/accessories/accessory.dm
@@ -24,7 +24,6 @@
has_suit.overlays += inv_overlay
to_chat(user, "You attach [src] to [has_suit].")
-
src.add_fingerprint(user)
/obj/item/clothing/accessory/proc/on_removed(mob/user as mob)
@@ -40,7 +39,6 @@
if(istype(H))
if(H.wear_suit && H.wear_suit.flags_inv & HIDEJUMPSUIT)
to_chat(user, "[H]'s body is covered, and you cannot attach \the [src].")
-
return 1
var/obj/item/clothing/under/U = H.w_uniform
if(istype(U))
@@ -50,7 +48,6 @@
U.attackby(src, user)
else
to_chat(user, "[H] is not wearing anything to attach \the [src] to.")
-
return 1
return ..()
@@ -207,7 +204,6 @@
/obj/item/clothing/accessory/holobadge/attack_self(mob/user as mob)
if(!stored_name)
to_chat(user, "Waving around a badge before swiping an ID would be pretty pointless.")
-
return
if(isliving(user))
user.visible_message("\red [user] displays their NanoTrasen Internal Security Legal Authorization Badge.\nIt reads: [stored_name], NT Security.","\red You display your NanoTrasen Internal Security Legal Authorization Badge.\nIt reads: [stored_name], NT Security.")
@@ -225,25 +221,21 @@
if(access_security in id_card.access || emagged)
to_chat(user, "You imprint your ID details onto the badge.")
-
stored_name = id_card.registered_name
name = "holobadge ([stored_name])"
desc = "This glowing blue badge marks [stored_name] as THE LAW."
else
to_chat(user, "[src] rejects your insufficient access rights.")
-
return
..()
/obj/item/clothing/accessory/holobadge/emag_act(user as mob)
if (emagged)
to_chat(user, "\red [src] is already cracked.")
-
return
else
emagged = 1
to_chat(user, "\red You swipe the card and crack the holobadge security checks.")
-
return
/obj/item/clothing/accessory/holobadge/attack(mob/living/carbon/human/M, mob/living/user)
@@ -385,13 +377,11 @@
return ..()
if(access_id)
to_chat(user, "There is already \a [access_id] clipped onto \the [src]")
-
user.drop_item()
W.forceMove(src)
access_id = W
to_chat(user, "\The [W] clips onto \the [src] snugly.")
-
/obj/item/clothing/accessory/petcollar/GetAccess()
return access_id ? access_id.GetAccess() : ..()
@@ -400,7 +390,6 @@
if(access_id)
to_chat(user, "There is \icon[access_id] \a [access_id] clipped onto it.")
-
/obj/item/clothing/accessory/petcollar/equipped(mob/living/simple_animal/user)
if(istype(user))
processing_objects |= src
diff --git a/code/modules/clothing/under/accessories/holster.dm b/code/modules/clothing/under/accessories/holster.dm
index 44fdc31ed57..2a4bb7634e5 100644
--- a/code/modules/clothing/under/accessories/holster.dm
+++ b/code/modules/clothing/under/accessories/holster.dm
@@ -28,18 +28,15 @@
/obj/item/clothing/accessory/holster/proc/holster(obj/item/I, mob/user as mob)
if(holstered)
to_chat(user, "There is already a [holstered] holstered here!")
-
return
if (!istype(I, /obj/item/weapon/gun))
to_chat(user, "Only guns can be holstered!")
-
return
var/obj/item/weapon/gun/W = I
if (!can_holster(W))
to_chat(user, "This [W] won't fit in the [src]!")
-
return
holstered = W
@@ -54,7 +51,6 @@
if(istype(user.get_active_hand(),/obj) && istype(user.get_inactive_hand(),/obj))
to_chat(user, "You need an empty hand to draw the [holstered]!")
-
else
if(user.a_intent == I_HARM)
usr.visible_message("\red [user] draws the [holstered], ready to shoot!", \
@@ -86,11 +82,9 @@
..(user)
if (holstered)
to_chat(user, "A [holstered] is holstered here.")
-
else
to_chat(user, "It is empty.")
-
/obj/item/clothing/accessory/holster/on_attached(obj/item/clothing/under/S, mob/user as mob)
..()
has_suit.verbs += /obj/item/clothing/accessory/holster/verb/holster_verb
@@ -118,11 +112,9 @@
if (!H)
to_chat(usr, "Something is very wrong.")
-
if(!H.holstered)
if(!istype(usr.get_active_hand(), /obj/item/weapon/gun))
to_chat(usr, "You need your gun equiped to holster it.")
-
return
var/obj/item/weapon/gun/W = usr.get_active_hand()
H.holster(W, usr)
diff --git a/code/modules/clothing/under/accessories/storage.dm b/code/modules/clothing/under/accessories/storage.dm
index aa5ebdb78f5..4c5997d3330 100644
--- a/code/modules/clothing/under/accessories/storage.dm
+++ b/code/modules/clothing/under/accessories/storage.dm
@@ -63,7 +63,6 @@
hold.open(user)
else
to_chat(user, "You empty [src].")
-
var/turf/T = get_turf(src)
hold.hide_from(usr)
for(var/obj/item/I in hold.contents)
diff --git a/code/modules/clothing/under/chameleon.dm b/code/modules/clothing/under/chameleon.dm
index 70b6ef113f9..a2496168b5f 100644
--- a/code/modules/clothing/under/chameleon.dm
+++ b/code/modules/clothing/under/chameleon.dm
@@ -24,18 +24,15 @@
..()
if(istype(U, /obj/item/clothing/under/chameleon))
to_chat(user, "\red Nothing happens.")
-
return
if(istype(U, /obj/item/clothing/under))
if(src.clothing_choices.Find(U))
to_chat(user, "\red Pattern is already recognised by the suit.")
-
return
src.clothing_choices += U
to_chat(user, "\red Pattern absorbed by the suit.")
-
emp_act(severity)
name = "psychedelic"
desc = "Groovy!"
@@ -56,7 +53,6 @@
if(icon_state == "psyche")
to_chat(usr, "\red Your suit is malfunctioning")
-
return
var/obj/item/clothing/under/A
diff --git a/code/modules/computer3/bios.dm b/code/modules/computer3/bios.dm
index 8c05ad5338a..564156540d3 100644
--- a/code/modules/computer3/bios.dm
+++ b/code/modules/computer3/bios.dm
@@ -25,17 +25,14 @@
if(istype(user,/mob/living/silicon))
if(!program.ai_allowed)
to_chat(user, "\blue You are forbidden from accessing this program.")
-
return 0
else
if(program.human_controls)
if(!ishuman(user))
to_chat(user, "\red Your body can't work the controls!")
-
return 0
if(user.restrained())
to_chat(user, "\red You need a free hand!")
-
return 0
if(!in_range(src,user))
@@ -43,7 +40,6 @@
if(ishuman(user) && istype(user.get_active_hand(),/obj/item/tk_grab))
if(program.human_controls)
to_chat(user, "\red It's too complicated to work at a distance!")
-
return 0
add_fingerprint(user)
user.set_machine(src)
@@ -120,7 +116,6 @@
if(PROG_CRASH)
if(usr)
to_chat(usr, "\red The program crashed!")
-
usr << browse(null,"\ref[src]")
Reset()
@@ -154,7 +149,6 @@
else
if(usr)
to_chat(usr, "\red The program crashed!")
-
usr << browse(null,"\ref[src]")
testing("computer/Crash() - unknown error code [errorcode]")
Reset()
diff --git a/code/modules/computer3/buildandrepair.dm b/code/modules/computer3/buildandrepair.dm
index 158d057451d..4ea984d15d1 100644
--- a/code/modules/computer3/buildandrepair.dm
+++ b/code/modules/computer3/buildandrepair.dm
@@ -83,20 +83,17 @@
playsound(src.loc, 'sound/items/Ratchet.ogg', 50, 1)
if(do_after(user, 20, target = src))
to_chat(user, "\blue You wrench the frame into place.")
-
src.anchored = 1
src.state = 1
if(istype(P, /obj/item/weapon/weldingtool))
var/obj/item/weapon/weldingtool/WT = P
if(!WT.remove_fuel(0, user))
to_chat(user, "The welding tool must be on to complete this task.")
-
return
playsound(src.loc, 'sound/items/Welder.ogg', 50, 1)
if(do_after(user, 20, target = src))
if(!src || !WT.isOn()) return
to_chat(user, "\blue You deconstruct the frame.")
-
new /obj/item/stack/sheet/metal( src.loc, 5 )
qdel(src)
if(1)
@@ -104,7 +101,6 @@
playsound(src.loc, 'sound/items/Ratchet.ogg', 50, 1)
if(do_after(user, 20, target = src))
to_chat(user, "\blue You unfasten the frame.")
-
src.anchored = 0
src.state = 0
if(istype(P, /obj/item/weapon/circuitboard) && !circuit)
@@ -112,24 +108,20 @@
if(B.board_type == "computer")
playsound(src.loc, 'sound/items/Deconstruct.ogg', 50, 1)
to_chat(user, "\blue You place the circuit board inside the frame.")
-
src.icon_state = "1"
src.circuit = P
user.drop_item()
P.loc = src
else
to_chat(user, "\red This frame does not accept circuit boards of this type!")
-
if(istype(P, /obj/item/weapon/screwdriver) && circuit)
playsound(src.loc, 'sound/items/Screwdriver.ogg', 50, 1)
to_chat(user, "\blue You screw the circuit board into place.")
-
src.state = 2
src.icon_state = "2"
if(istype(P, /obj/item/weapon/crowbar) && circuit)
playsound(src.loc, 'sound/items/Crowbar.ogg', 50, 1)
to_chat(user, "\blue You remove the circuit board.")
-
src.state = 1
src.icon_state = "0"
circuit.loc = src.loc
@@ -138,7 +130,6 @@
if(istype(P, /obj/item/weapon/screwdriver) && circuit)
playsound(src.loc, 'sound/items/Screwdriver.ogg', 50, 1)
to_chat(user, "\blue You unfasten the circuit board.")
-
src.state = 1
src.icon_state = "1"
@@ -148,12 +139,10 @@
if(do_after(10, target = src))
battery.loc = loc
to_chat(user, "\blue You remove [battery].")
-
battery = null
else
to_chat(user, "\red There's no battery to remove!")
-
if(istype(P, /obj/item/weapon/stock_parts/cell))
if(!battery)
playsound(src.loc, 'sound/items/Deconstruct.ogg', 50, 1)
@@ -161,12 +150,10 @@
battery = P
P.loc = src
to_chat(user, "\blue You insert [battery].")
-
else
to_chat(user, "\red There's already \an [battery] in [src]!")
-
if(istype(P, /obj/item/stack/cable_coil))
if(P:amount >= 5)
playsound(src.loc, 'sound/items/Deconstruct.ogg', 50, 1)
@@ -175,18 +162,15 @@
P:amount -= 5
if(!P:amount) qdel(P)
to_chat(user, "\blue You add cables to the frame.")
-
src.state = 3
src.icon_state = "3"
if(3)
if(istype(P, /obj/item/weapon/wirecutters))
if(components.len)
to_chat(user, "There are parts in the way!")
-
return
playsound(src.loc, 'sound/items/Wirecutter.ogg', 50, 1)
to_chat(user, "\blue You remove the cables.")
-
src.state = 2
src.icon_state = "2"
var/obj/item/stack/cable_coil/A = new /obj/item/stack/cable_coil( src.loc )
@@ -202,21 +186,18 @@
if(P)
P:use(2)
to_chat(user, "\blue You put in the glass panel.")
-
src.state = 4
src.icon_state = "4"
if(4)
if(istype(P, /obj/item/weapon/crowbar))
playsound(src.loc, 'sound/items/Crowbar.ogg', 50, 1)
to_chat(user, "\blue You remove the glass panel.")
-
src.state = 3
src.icon_state = "3"
new /obj/item/stack/sheet/glass( src.loc, 2 )
if(istype(P, /obj/item/weapon/screwdriver))
playsound(src.loc, 'sound/items/Screwdriver.ogg', 50, 1)
to_chat(user, "\blue You connect the monitor.")
-
var/obj/machinery/computer3/B = new src.circuit.build_path ( src.loc, built=1 )
/*if(circuit.powernet) B:powernet = circuit.powernet
if(circuit.id) B:id = circuit.id
@@ -240,7 +221,6 @@
/obj/structure/computer3frame/proc/remove_peripheral(var/obj/item/I = null)
if(!components || !components.len)
to_chat(usr, "\red There are no components in [src] to take out!")
-
return 0
if(!I)
I = input(usr, "Remove which component?","Remove component", null) as null|obj in components
@@ -280,19 +260,16 @@
warning("Erronous component in computerframe/remove_peripheral: [I]")
I.loc = loc
to_chat(usr, "\blue You remove [I]")
-
return 1
return 0
/obj/structure/computer3frame/proc/insert_peripheral(var/obj/item/I)
if(components.len >= max_components)
to_chat(usr, "There isn't room in [src] for another component!")
-
return 0
switch(I.type)
if(/obj/item/part/computer/storage/hdd)
if(hdd)
to_chat(usr, "There is already \an [hdd] in [src]!")
-
return 0
hdd = I
components += hdd
@@ -300,7 +277,6 @@
if(/obj/item/part/computer/storage/removable)
if(floppy)
to_chat(usr, "There is already \an [floppy] in [src]!")
-
return 0
floppy = I
components += floppy
@@ -308,7 +284,6 @@
if(/obj/item/part/computer/networking/radio)
if(radio)
to_chat(usr, "There is already \an [radio] in [src]!")
-
return 0
radio = I
components += radio
@@ -316,7 +291,6 @@
if(/obj/item/part/computer/networking/cameras)
if(camnet)
to_chat(usr, "There is already \an [camnet] in [src]!")
-
return 0
camnet = I
components += camnet
@@ -326,4 +300,3 @@
to_chat(usr, "There is already \an [net] in [src]!")
-
diff --git a/code/modules/computer3/component.dm b/code/modules/computer3/component.dm
index 4e0e0ac6807..6dac7aebb31 100644
--- a/code/modules/computer3/component.dm
+++ b/code/modules/computer3/component.dm
@@ -78,12 +78,10 @@
emag_act(user as mob)
if(!writer)
to_chat(usr, "You insert \the card, and the computer grinds, sparks, and beeps. After a moment, the card ejects itself.")
-
computer.emagged = 1
return 1
else
to_chat(usr, "You are unable to insert \the card, as the reader slot is occupied")
-
return 0
attackby(var/obj/item/I as obj, var/mob/user as mob, params)
@@ -101,7 +99,6 @@
// This shouldn't happen, just in case..
if(slot == 2 && !dualslot)
to_chat(usr, "This device has only one card slot")
-
return 0
var/mob/living/L = usr
@@ -109,31 +106,23 @@
if(1)
if(equip_to_reader(card, L))
to_chat(usr, "You insert the card into reader slot")
-
else
to_chat(usr, "There is already something in the reader slot.")
-
if(2)
if(equip_to_writer(card, L))
to_chat(usr, "You insert the card into writer slot")
-
else
to_chat(usr, "There is already something in the reader slot.")
-
if(3)
if(equip_to_reader(card, L))
to_chat(usr, "You insert the card into reader slot")
-
else if (equip_to_writer(card, L) && dualslot)
to_chat(usr, "You insert the card into writer slot")
-
else if (dualslot)
to_chat(usr, "There is already something in both slots.")
-
else
to_chat(usr, "There is already something in the reader slot.")
-
// Usage of insert() preferred, as it also tells result to the user.
proc/equip_to_reader(var/obj/item/weapon/card/card, var/mob/living/L)
if(!reader)
@@ -159,48 +148,36 @@
if(1)
if (remove_reader(L))
to_chat(L, "You remove the card from reader slot")
-
else
to_chat(L, "There is no card in the reader slot")
-
if(2)
if (remove_writer(L))
to_chat(L, "You remove the card from writer slot")
-
else
to_chat(L, "There is no card in the writer slot")
-
if(3)
if (remove_reader(L))
if (remove_writer(L))
to_chat(L, "You remove cards from both slots")
-
else
to_chat(L, "You remove the card from reader slot")
-
else
if(remove_writer(L))
to_chat(L, "You remove the card from writer slot")
-
else
to_chat(L, "There are no cards in both slots")
-
if(4)
if (!remove_reader(L))
if (remove_writer(L))
to_chat(L, "You remove the card from writer slot")
-
else if (!dualslot)
to_chat(L, "There is no card in the reader slot")
-
else
to_chat(L, "There are no cards in both slots")
-
else
to_chat(L, "You remove the card from reader slot")
-
proc/remove_reader(var/mob/living/L)
if(reader)
reader.loc = loc
@@ -263,7 +240,6 @@
if(slot == 1) // 1: writer
if(writer != null)
to_chat(usr, "There's already a card in that slot!")
-
return 0
var/mob/living/L = usr
L.drop_item()
@@ -273,7 +249,6 @@
else if(slot == 2) // 2: reader
if(reader != null)
to_chat(usr, "There's already a card in that slot!")
-
return 0
var/mob/living/L = usr
L.drop_item()
@@ -283,7 +258,6 @@
else // 0: auto
if(reader && writer)
to_chat(usr, "Both slots are full!")
-
return 0
var/mob/living/L = usr
L.drop_item()
diff --git a/code/modules/computer3/computer.dm b/code/modules/computer3/computer.dm
index 9f286241560..75252b33107 100644
--- a/code/modules/computer3/computer.dm
+++ b/code/modules/computer3/computer.dm
@@ -78,12 +78,10 @@
if(usr.stat || usr.restrained() || usr.lying || !istype(usr, /mob/living))
to_chat(usr, "\red You can't do that.")
-
return
if(!Adjacent(usr))
to_chat(usr, "You can't reach it.")
-
return
Reset()
@@ -369,7 +367,6 @@
to_chat(user, "\The [src] won't boot!")
-
attack_ai(var/mob/user as mob) // copypasta because server racks lose attack_hand()
if(stat)
Reset()
@@ -395,7 +392,6 @@
to_chat(user, "\The [src] won't boot!")
-
interact()
if(stat)
Reset()
diff --git a/code/modules/computer3/computers/atmos_alert.dm b/code/modules/computer3/computers/atmos_alert.dm
index 3b48d0fb2c6..1d834565cac 100644
--- a/code/modules/computer3/computers/atmos_alert.dm
+++ b/code/modules/computer3/computers/atmos_alert.dm
@@ -98,7 +98,6 @@
for(var/zone in priority_alarms)
if(ckey(zone) == removing_zone)
to_chat(usr, "\green Priority Alert for area [zone] cleared.")
-
priority_alarms -= zone
if("minor_clear" in href_list)
@@ -106,7 +105,6 @@
for(var/zone in minor_alarms)
if(ckey(zone) == removing_zone)
to_chat(usr, "\green Minor Alert for area [zone] cleared.")
-
minor_alarms -= zone
computer.updateUsrDialog()
diff --git a/code/modules/computer3/computers/camera.dm b/code/modules/computer3/computers/camera.dm
index 6500fe6f405..7cf5fd0439a 100644
--- a/code/modules/computer3/computers/camera.dm
+++ b/code/modules/computer3/computers/camera.dm
@@ -317,7 +317,6 @@
interact()
else
to_chat(usr, "The screen turns to static.")
-
return
// Atlantis: Required for camnetkeys to work.
diff --git a/code/modules/computer3/computers/cloning.dm b/code/modules/computer3/computers/cloning.dm
index 61d1f25ab83..f90ba3e57e3 100644
--- a/code/modules/computer3/computers/cloning.dm
+++ b/code/modules/computer3/computers/cloning.dm
@@ -80,7 +80,6 @@
proc/RecordsList()
var/dat = "Current records
"
to_chat(dat += topic_link(src,"menu=1",", Back") + "
")
-
for(var/datum/data/record/R in records)
dat += "[R.fields["name"]]
Scan ID [R.fields["id"]] " + topic_link(src,"view_rec=\ref[R]","View Record")
return dat
@@ -89,7 +88,6 @@
var/dat = "Selected Record
"
to_chat(dat += topic_link(src,"menu=2",", Back") + "
")
-
if (!active_record)
dat += "Record not found."
else
diff --git a/code/modules/computer3/computers/communications.dm b/code/modules/computer3/computers/communications.dm
index ec4482ee28f..b738cef704e 100644
--- a/code/modules/computer3/computers/communications.dm
+++ b/code/modules/computer3/computers/communications.dm
@@ -61,7 +61,6 @@
return
if (!(computer.z in config.station_levels))
to_chat(usr, "\red Unable to establish a connection: \black You're too far away from the station!")
-
return
if("main" in href_list)
@@ -105,17 +104,14 @@
tmp_alertlevel = 0
else:
to_chat(usr, "You are not authorized to do this.")
-
tmp_alertlevel = 0
state = STATE_DEFAULT
else
to_chat(usr, "You need to swipe your ID.")
-
if("announce" in href_list)
if(authenticated==2)
if(message_cooldown)
to_chat(usr, "Please allow at least one minute to pass between announcements")
-
return
var/input = input(usr, "Please write a message to announce to the station crew.", "Priority Announcement")
if(!input || !interactable())
@@ -197,14 +193,12 @@
if(authenticated==2)
if(centcomm_message_cooldown)
to_chat(usr, "Arrays recycling. Please stand by.")
-
return
var/input = stripped_input(usr, "Please choose a message to transmit to Centcomm via quantum entanglement. Please be aware that this process is very expensive, and abuse will lead to... termination. Transmission does not guarantee a response.", "To abort, send an empty message.", "")
if(!input || !interactable())
return
Centcomm_announce(input, usr)
to_chat(usr, "Message transmitted.")
-
log_say("[key_name(usr)] has made a Centcomm announcement: [input]")
centcomm_message_cooldown = 1
spawn(600)//10 minute cooldown
@@ -216,14 +210,12 @@
if((authenticated==2) && (computer.emagged))
if(centcomm_message_cooldown)
to_chat(usr, "Arrays recycling. Please stand by.")
-
return
var/input = stripped_input(usr, "Please choose a message to transmit to \[ABNORMAL ROUTING CORDINATES\] via quantum entanglement. Please be aware that this process is very expensive, and abuse will lead to... termination. Transmission does not guarantee a response.", "To abort, send an empty message.", "")
if(!input || !interactable())
return
Syndicate_announce(input, usr)
to_chat(usr, "Message transmitted.")
-
log_say("[key_name(usr)] has made a Syndicate announcement: [input]")
centcomm_message_cooldown = 1
spawn(600)//10 minute cooldown
@@ -231,7 +223,6 @@
if("RestoreBackup" in href_list)
to_chat(usr, "Backup routing data restored!")
-
computer.emagged = 0
computer.updateDialog()
diff --git a/code/modules/computer3/computers/law.dm b/code/modules/computer3/computers/law.dm
index 099c9453ced..ec278163b2a 100644
--- a/code/modules/computer3/computers/law.dm
+++ b/code/modules/computer3/computers/law.dm
@@ -18,17 +18,14 @@
opened = !opened
if(opened)
to_chat(usr, "\blue The access panel is now open.")
-
else
to_chat(usr, "\blue The access panel is now closed.")
-
return
attackby(obj/item/weapon/aiModule/module as obj, mob/user as mob, params)
if (user.z > 6)
to_chat(user, "\red Unable to establish a connection: \black You're too far away from the station!")
-
return
if(istype(module, /obj/item/weapon/aiModule))
module.install(src)
@@ -39,21 +36,17 @@
attack_hand(var/mob/user as mob)
if(src.stat & NOPOWER)
to_chat(usr, "The upload computer has no power!")
-
return
if(src.stat & BROKEN)
to_chat(usr, "The upload computer is broken!")
-
return
src.current = select_active_ai(user)
if (!src.current)
to_chat(usr, "No active AIs detected.")
-
else
to_chat(usr, "[src.current.name] selected for law changes.")
-
return
@@ -75,19 +68,15 @@
attack_hand(var/mob/user as mob)
if(src.stat & NOPOWER)
to_chat(usr, "The upload computer has no power!")
-
return
if(src.stat & BROKEN)
to_chat(usr, "The upload computer is broken!")
-
return
src.current = freeborg()
if (!src.current)
to_chat(usr, "No free cyborgs detected.")
-
else
to_chat(usr, "[src.current.name] selected for law changes.")
-
return
diff --git a/code/modules/computer3/computers/medical.dm b/code/modules/computer3/computers/medical.dm
index 2094eee9856..aeda16c4414 100644
--- a/code/modules/computer3/computers/medical.dm
+++ b/code/modules/computer3/computers/medical.dm
@@ -51,7 +51,6 @@
return
if (computer.z > 6)
to_chat(usr, "\red Unable to establish a connection: \black You're too far away from the station!")
-
return
var/dat
diff --git a/code/modules/computer3/computers/message.dm b/code/modules/computer3/computers/message.dm
index 427c2283808..31aa4f3a501 100644
--- a/code/modules/computer3/computers/message.dm
+++ b/code/modules/computer3/computers/message.dm
@@ -221,11 +221,9 @@
proc/BruteForce(mob/usr as mob)
if(isnull(linkedServer))
to_chat(usr, "Could not complete brute-force: Linked Server Disconnected!")
-
else
var/currentKey = src.linkedServer.decryptkey
to_chat(usr, "Brute-force completed! The key is '[currentKey]'.")
-
src.hacking = 0
src.active_state = normal_icon
src.screen = 0 // Return the screen back to normal
@@ -418,7 +416,6 @@
var/mob/living/carbon/human/H = customrecepient.loc
to_chat(H, "\icon[customrecepient] Message from [customsender] ([customjob]), \"[custommessage]\" (Reply)"
-
log_pda("[usr] (PDA: [customsender]) sent \"[custommessage]\" to [customrecepient.owner]")
customrecepient.overlays.Cut()
customrecepient.overlays += image('icons/obj/pda.dmi', "pda-r")
@@ -434,7 +431,6 @@
var/mob/living/carbon/human/H = customrecepient.loc
to_chat(H, "\icon[customrecepient] Message from [PDARec.owner] ([customjob]), \"[custommessage]\" (Reply)"
-
log_pda("[usr] (PDA: [PDARec.owner]) sent \"[custommessage]\" to [customrecepient.owner]")
customrecepient.overlays.Cut()
customrecepient.overlays += image('icons/obj/pda.dmi', "pda-r")
@@ -451,7 +447,6 @@
// to_chat(usr, href_list["select"])
-
if ("back" in href_list)
src.screen = 0
interact()
\ No newline at end of file
diff --git a/code/modules/computer3/computers/prisoner.dm b/code/modules/computer3/computers/prisoner.dm
index 85c6f0c9562..b38b376abf5 100644
--- a/code/modules/computer3/computers/prisoner.dm
+++ b/code/modules/computer3/computers/prisoner.dm
@@ -96,7 +96,6 @@
log_say("PrisonComputer3 message: [key_name(usr)]->[key_name(R)] : [warning]")
to_chat(R, "\green You hear a voice in your head saying: '[warning]'")
-
interact()
return
diff --git a/code/modules/computer3/computers/prisonshuttle.dm b/code/modules/computer3/computers/prisonshuttle.dm
index aedcaaeb07b..119dbc350a4 100644
--- a/code/modules/computer3/computers/prisonshuttle.dm
+++ b/code/modules/computer3/computers/prisonshuttle.dm
@@ -47,13 +47,11 @@ var/prison_shuttle_timeleft = 0
if (src.stat & BROKEN)
to_chat(user, "\blue The broken glass falls out.")
-
new /obj/item/trash/shard( src.loc )
A.state = 3
A.icon_state = "3"
else
to_chat(user, "\blue You disconnect the monitor.")
-
A.state = 4
A.icon_state = "4"
@@ -61,7 +59,6 @@ var/prison_shuttle_timeleft = 0
else if(istype(I,/obj/item/card/emag) && (!hacked))
hacked = 1
to_chat(user, "\blue You disable the lock.")
-
else
return src.attack_hand(user)
@@ -69,11 +66,9 @@ var/prison_shuttle_timeleft = 0
attack_hand(var/mob/user as mob)
if(!src.allowed(user) && (!hacked))
to_chat(user, "\red Access Denied.")
-
return
if(prison_break)
to_chat(user, "\red Unable to locate shuttle.")
-
return
if(..())
return
@@ -106,12 +101,10 @@ var/prison_shuttle_timeleft = 0
if (href_list["sendtodock"])
if (!prison_can_move())
to_chat(usr, "\red The prison shuttle is unable to leave.")
-
return
if(!prison_shuttle_at_station|| prison_shuttle_moving_to_station || prison_shuttle_moving_to_prison) return
post_signal("prison")
to_chat(usr, "\blue The prison shuttle has been called and will arrive in [(PRISON_MOVETIME/10)] seconds.")
-
src.temp += "Shuttle sent.
OK"
src.updateUsrDialog()
prison_shuttle_moving_to_prison = 1
@@ -122,12 +115,10 @@ var/prison_shuttle_timeleft = 0
else if (href_list["sendtostation"])
if (!prison_can_move())
to_chat(usr, "\red The prison shuttle is unable to leave.")
-
return
if(prison_shuttle_at_station || prison_shuttle_moving_to_station || prison_shuttle_moving_to_prison) return
post_signal("prison")
to_chat(usr, "\blue The prison shuttle has been called and will arrive in [(PRISON_MOVETIME/10)] seconds.")
-
src.temp += "Shuttle sent.
OK"
src.updateUsrDialog()
prison_shuttle_moving_to_station = 1
@@ -196,7 +187,6 @@ var/prison_shuttle_timeleft = 0
if (!prison_can_move())
to_chat(usr, "\red The prison shuttle is unable to leave.")
-
return
var/area/start_location = locate(/area/shuttle/prison/prison)
@@ -226,7 +216,6 @@ var/prison_shuttle_timeleft = 0
if (!prison_can_move())
to_chat(usr, "\red The prison shuttle is unable to leave.")
-
return
var/area/start_location = locate(/area/shuttle/prison/station)
diff --git a/code/modules/computer3/computers/robot.dm b/code/modules/computer3/computers/robot.dm
index 3e404ff1200..002750b49c1 100644
--- a/code/modules/computer3/computers/robot.dm
+++ b/code/modules/computer3/computers/robot.dm
@@ -127,7 +127,6 @@
else
to_chat(usr, "\red Access Denied.")
-
if ("stop" in href_list)
src.temp = {"
Stop Robot Destruction Sequence?
@@ -161,7 +160,6 @@
if(R && istype(R))
if(R.mind && R.mind.special_role && R.emagged)
to_chat(R, "Extreme danger. Termination codes detected. Scrambling security codes and automatic AI unlink triggered.")
-
R.ResetSecurityCodes()
else
@@ -171,7 +169,6 @@
else
to_chat(usr, "\red Access Denied.")
-
if ("stopbot" in href_list)
if(computer.allowed(usr))
var/mob/living/silicon/robot/R = locate(href_list["stopbot"])
@@ -186,17 +183,14 @@
// R.cell.charge = R.lockcharge
R.lockcharge = !R.lockcharge
to_chat(R, "Your lockdown has been lifted!")
-
else
R.lockcharge = !R.lockcharge
// R.cell.charge = 0
to_chat(R, "You have been locked down!")
-
else
to_chat(usr, "\red Access Denied.")
-
if ("magbot" in href_list)
if(computer.allowed(usr))
var/mob/living/silicon/robot/R = locate(href_list["magbot"])
diff --git a/code/modules/computer3/computers/scanconsole.dm b/code/modules/computer3/computers/scanconsole.dm
index a312f49a423..fa88ae24b36 100644
--- a/code/modules/computer3/computers/scanconsole.dm
+++ b/code/modules/computer3/computers/scanconsole.dm
@@ -359,7 +359,6 @@
if(!viable)
return "No viable occupant detected."
to_chat(var/dat = topic_link(src,"mode=0",", Main Menu") + "
")
-
dat += "Modify Unique Identifier
"
dat += "
[getblockstring(ui=1)]
"
@@ -374,7 +373,6 @@
if(!viable)
return "No viable occupant detected."
to_chat(var/dat = topic_link(src,"mode=0",", Main Menu") + "
")
-
dat += "Modify Structural Enzymes
"
dat += "
"
dat += "Selected Block: " + block_plus_minus("seblock",se_block,1,MAX_SEBLOCK) + "
"
@@ -385,7 +383,6 @@
proc/emitter_menu()
to_chat(var/dat = topic_link(src,"mode=0",", Main Menu") + "
")
-
dat += "Radiation Emitter Settings
"
if (viable)
dat += topic_link(src,"pulse","Pulse Radiation")
@@ -746,7 +743,6 @@
human_occupant.reagents.add_reagent("inaprovaline", round(REJUVENATORS_MAX - human_occupant.reagents.get_reagent_amount("inaprovaline")))
// to_chat(usr, text("Occupant now has [] units of rejuvenation in his/her bloodstream.", human_occupant.reagents.get_reagent_amount("inaprovaline")))
-
////////////////////////////////////////////////////////
if (href_list["strucmenuplus"])
if (se_block < 14)
diff --git a/code/modules/computer3/computers/security.dm b/code/modules/computer3/computers/security.dm
index 047ff3c4359..c7eb0a8881b 100644
--- a/code/modules/computer3/computers/security.dm
+++ b/code/modules/computer3/computers/security.dm
@@ -59,7 +59,6 @@
if (computer.z > 6)
to_chat(usr, "\red Unable to establish a connection: \black You're too far away from the station!")
-
return
var/dat
diff --git a/code/modules/computer3/computers/shuttle.dm b/code/modules/computer3/computers/shuttle.dm
index 9fbaa113bab..236de564868 100644
--- a/code/modules/computer3/computers/shuttle.dm
+++ b/code/modules/computer3/computers/shuttle.dm
@@ -20,18 +20,15 @@
W = pda.id
if (!W:access) //no access
to_chat(user, "The access level of [W:registered_name]\'s card is not high enough. ")
-
return
var/list/cardaccess = W:access
if(!istype(cardaccess, /list) || !cardaccess.len) //no access
to_chat(user, "The access level of [W:registered_name]\'s card is not high enough. ")
-
return
if(!(access_heads in W:access)) //doesn't have this access
to_chat(user, "The access level of [W:registered_name]\'s card is not high enough. ")
-
return 0
var/choice = alert(user, text("Would you like to (un)authorize a shortened launch time? [] authorization\s are still needed. Use abort to cancel all authorizations.", src.auth_need - src.authorized.len), "Shuttle Launch", "Authorize", "Repeal", "Abort")
@@ -45,12 +42,10 @@
message_admins("[key_name_admin(user)] has authorized early shuttle launch")
log_game("[user.ckey] has authorized early shuttle launch")
to_chat(world, text("\blue Alert: [] authorizations needed until shuttle is launched early", src.auth_need - src.authorized.len))
-
else
message_admins("[key_name_admin(user)] has launched the shuttle")
log_game("[user.ckey] has launched the shuttle early")
to_chat(world, "\blue Alert: Shuttle launch time shortened to 10 seconds!")
-
emergency_shuttle.online = 1
emergency_shuttle.settimeleft(10)
//src.authorized = null
@@ -61,10 +56,8 @@
src.authorized -= W:registered_name
to_chat(world, text("\blue Alert: [] authorizations needed until shuttle is launched early", src.auth_need - src.authorized.len))
-
if("Abort")
to_chat(world, "\blue All authorizations to shorting time for shuttle launch have been revoked!")
-
src.authorized.len = 0
src.authorized = list( )
return
@@ -77,7 +70,6 @@
switch(choice)
if("Launch")
to_chat(world, "\blue Alert: Shuttle launch time shortened to 10 seconds!")
-
emergency_shuttle.settimeleft( 10 )
emagged = 1
if("Cancel")
diff --git a/code/modules/computer3/computers/specops_shuttle.dm b/code/modules/computer3/computers/specops_shuttle.dm
index c863150f38f..8281a30479f 100644
--- a/code/modules/computer3/computers/specops_shuttle.dm
+++ b/code/modules/computer3/computers/specops_shuttle.dm
@@ -59,7 +59,6 @@ var/specops_shuttle_timeleft = 0
if (!specops_can_move())
to_chat(usr, "\red The Special Operations shuttle is unable to leave.")
-
return
//Begin Marauder launchpad.
@@ -156,7 +155,6 @@ var/specops_shuttle_timeleft = 0
var/mob/M = locate(/mob) in T
to_chat(M, "\red You have arrived to [station_name]. Commence operation!")
-
/proc/specops_can_move()
if(specops_shuttle_moving_to_station || specops_shuttle_moving_to_centcom) return 0
else return 1
@@ -173,19 +171,16 @@ var/specops_shuttle_timeleft = 0
/obj/machinery/computer3/specops_shuttle/attackby(I as obj, user as mob, params)
if(istype(I,/obj/item/card/emag))
to_chat(user, "\blue The electronic systems in this console are far too advanced for your primitive hacking peripherals.")
-
else
return attack_hand(user)
/obj/machinery/computer3/specops_shuttle/attack_hand(var/mob/user as mob)
if(!allowed(user))
to_chat(user, "\red Access Denied.")
-
return
if (sent_strike_team == 0)
to_chat(usr, "\red The strike team has not yet deployed.")
-
return
if(..())
@@ -220,7 +215,6 @@ var/specops_shuttle_timeleft = 0
if(!specops_shuttle_at_station|| specops_shuttle_moving_to_station || specops_shuttle_moving_to_centcom) return
to_chat(usr, "\blue Central Command will not allow the Special Operations shuttle to return.")
-
return
else if (href_list["sendtostation"])
@@ -228,12 +222,10 @@ var/specops_shuttle_timeleft = 0
if (!specops_can_move())
to_chat(usr, "\red The Special Operations shuttle is unable to leave.")
-
return
to_chat(usr, "\blue The Special Operations shuttle will arrive on [station_name] in [(SPECOPS_MOVETIME/10)] seconds.")
-
temp += "Shuttle departing.
OK"
updateUsrDialog()
diff --git a/code/modules/computer3/computers/syndicate_shuttle.dm b/code/modules/computer3/computers/syndicate_shuttle.dm
index 855ae3c02a2..5585f4fff0a 100644
--- a/code/modules/computer3/computers/syndicate_shuttle.dm
+++ b/code/modules/computer3/computers/syndicate_shuttle.dm
@@ -48,7 +48,6 @@
/obj/machinery/computer3/syndicate_station/attack_hand(mob/user as mob)
if(!allowed(user))
to_chat(user, "\red Access Denied")
-
return
user.set_machine(src)
diff --git a/code/modules/computer3/computers/syndicate_specops_shuttle.dm b/code/modules/computer3/computers/syndicate_specops_shuttle.dm
index c97785300fa..f490cd3c822 100644
--- a/code/modules/computer3/computers/syndicate_specops_shuttle.dm
+++ b/code/modules/computer3/computers/syndicate_specops_shuttle.dm
@@ -59,7 +59,6 @@ var/syndicate_elite_shuttle_timeleft = 0
if (!syndicate_elite_can_move())
to_chat(usr, "\red The Syndicate Elite shuttle is unable to leave.")
-
return
sleep(600)
@@ -169,7 +168,6 @@ var/syndicate_elite_shuttle_timeleft = 0
var/mob/M = locate(/mob) in T
to_chat(M, "\red You have arrived to [station_name]. Commence operation!")
-
/proc/syndicate_elite_can_move()
if(syndicate_elite_shuttle_moving_to_station || syndicate_elite_shuttle_moving_to_mothership) return 0
else return 1
@@ -186,19 +184,16 @@ var/syndicate_elite_shuttle_timeleft = 0
/obj/machinery/computer3/syndicate_elite_shuttle/attackby(I as obj, user as mob, params)
if(istype(I,/obj/item/card/emag))
to_chat(user, "\blue The electronic systems in this console are far too advanced for your primitive hacking peripherals.")
-
else
return attack_hand(user)
/obj/machinery/computer3/syndicate_elite_shuttle/attack_hand(var/mob/user as mob)
if(!allowed(user))
to_chat(user, "\red Access Denied.")
-
return
// if (sent_syndicate_strike_team == 0)
// to_chat(usr, "\red The strike team has not yet deployed.")
-
// return
if(..())
@@ -232,7 +227,6 @@ var/syndicate_elite_shuttle_timeleft = 0
if(!syndicate_elite_shuttle_at_station|| syndicate_elite_shuttle_moving_to_station || syndicate_elite_shuttle_moving_to_mothership) return
to_chat(usr, "\blue The Syndicate will not allow the Elite Squad shuttle to return.")
-
return
else if (href_list["sendtostation"])
@@ -240,12 +234,10 @@ var/syndicate_elite_shuttle_timeleft = 0
if (!specops_can_move())
to_chat(usr, "\red The Syndicate Elite shuttle is unable to leave.")
-
return
to_chat(usr, "\blue The Syndicate Elite shuttle will arrive on [station_name] in [(SYNDICATE_ELITE_MOVETIME/10)] seconds.")
-
temp = "Shuttle departing.
OK"
updateUsrDialog()
diff --git a/code/modules/computer3/laptop.dm b/code/modules/computer3/laptop.dm
index 5d5ba843b0b..dd4f73914b6 100644
--- a/code/modules/computer3/laptop.dm
+++ b/code/modules/computer3/laptop.dm
@@ -36,17 +36,14 @@
if(usr.stat || usr.restrained() || usr.lying || !istype(usr, /mob/living))
to_chat(usr, "\red You can't do that.")
-
return
if(!Adjacent(usr))
to_chat(usr, "You can't reach it.")
-
return
if(!istype(loc,/turf))
to_chat(usr, "[src] is too bulky! You'll have to set it down.")
-
return
if(!stored_computer)
@@ -54,7 +51,6 @@
for(var/obj/O in contents)
O.forceMove(loc)
to_chat(usr, "\The [src] crumbles to pieces.")
-
spawn(5)
qdel(src)
return
@@ -67,7 +63,6 @@
loc = null
to_chat(usr, "You open \the [src].")
-
spawn(5)
stored_computer.manipulating = 0
qdel(src)
@@ -75,7 +70,6 @@
to_chat(usr, "\red You are already opening the computer!")
-
AltClick()
if(Adjacent(usr))
open_computer()
@@ -102,7 +96,6 @@
if(!C)
to_chat(usr, "There is no card port on the laptop.")
-
return
var/obj/item/weapon/card/id/card
@@ -112,11 +105,9 @@
card = C.writer
else
to_chat(usr, "There is nothing to remove from the laptop card port.")
-
return
to_chat(usr, "You remove [card] from the laptop.")
-
C.remove(card)
@@ -145,12 +136,10 @@
if(usr.stat || usr.restrained() || usr.lying || !istype(usr, /mob/living))
to_chat(usr, "\red You can't do that.")
-
return
if(!Adjacent(usr))
to_chat(usr, "You can't reach it.")
-
return
if(istype(loc,/obj/item/device/laptop))
@@ -162,7 +151,6 @@
if(stat&BROKEN)
to_chat(usr, "\The [src] is broken! You can't quite get it closed.")
-
return
if(!portable)
@@ -175,7 +163,6 @@
stat |= MAINT
to_chat(usr, "You close \the [src].")
-
auto_use_power()
if(stat&MAINT)
return
diff --git a/code/modules/computer3/lapvend.dm b/code/modules/computer3/lapvend.dm
index 4bce2cf7ca4..8383981046d 100644
--- a/code/modules/computer3/lapvend.dm
+++ b/code/modules/computer3/lapvend.dm
@@ -57,7 +57,6 @@
L.loc = src
vendmode = 3
to_chat(usr, "You slot your [L.name] into \The [src.name]")
-
else
..()
@@ -264,14 +263,11 @@
power = 0
else
to_chat(usr, "\icon[src]You don't have that much money!")
-
else
to_chat(usr, "\icon[src]Unable to access account. Check security settings and try again.")
-
else
to_chat(usr, "\icon[src]Unable to access vendor account. Please record the machine ID and call CentComm Support.")
-
/obj/machinery/lapvend/proc/total()
var/total = 0
@@ -410,7 +406,5 @@
else
to_chat(usr, "\icon[src]Unable to access account. Check security settings and try again.")
-
else
to_chat(usr, "\icon[src]Unable to access vendor account. Please record the machine ID and call CentComm Support.")
-
diff --git a/code/modules/computer3/storage.dm b/code/modules/computer3/storage.dm
index e8a5b4aac8b..9ff8cab497b 100644
--- a/code/modules/computer3/storage.dm
+++ b/code/modules/computer3/storage.dm
@@ -117,18 +117,15 @@
attackby(obj/O as obj, mob/user as mob, params)
if(inserted && istype(O,/obj/item/weapon/pen))
to_chat(usr, "You use [O] to carefully pry [inserted] out of [src].")
-
eject_disk(forced = 1)
return
if(istype(O,/obj/item/weapon/disk/file))
if(inserted)
to_chat(usr, "There's already a disk in [src]!")
-
return
to_chat(usr, "You insert [O] into [src].")
-
usr.drop_item()
O.loc = src
inserted = O
diff --git a/code/modules/computer3/upload/programs.dm b/code/modules/computer3/upload/programs.dm
index 5e86666c8b2..34197f3bf69 100644
--- a/code/modules/computer3/upload/programs.dm
+++ b/code/modules/computer3/upload/programs.dm
@@ -9,6 +9,5 @@
return 0
if(!computer.net)
to_chat(usr, "An indecipherable set of code flicks across the screen. Nothing else happens.")
-
return
var/list/results = computer.net.get_machines
\ No newline at end of file
diff --git a/code/modules/crafting/guncrafting.dm b/code/modules/crafting/guncrafting.dm
index 6223a663755..8a9d5803529 100644
--- a/code/modules/crafting/guncrafting.dm
+++ b/code/modules/crafting/guncrafting.dm
@@ -21,7 +21,6 @@
/obj/item/weaponcrafting/receiver/attackby(obj/item/W as obj, mob/user as mob, params)
if(istype(W,/obj/item/pipe))
to_chat(user, "You attach the shotgun barrel to the receiver. The pins seem loose.")
-
var/obj/item/weaponcrafting/ishotgunconstruction/I = new /obj/item/weaponcrafting/ishotgunconstruction
user.unEquip(src)
user.put_in_hands(I)
@@ -44,7 +43,6 @@
user.unEquip(src)
user.put_in_hands(C)
to_chat(user, "You screw the pins into place, securing the pipe to the receiver.")
-
qdel(src)
/obj/item/weaponcrafting/ishotgunconstruction2
@@ -56,7 +54,6 @@
/obj/item/weaponcrafting/ishotgunconstruction2/attackby(obj/item/W as obj, mob/user as mob, params)
if(istype(W,/obj/item/weaponcrafting/stock))
to_chat(user, "You attach the stock to the receiver-barrel assembly.")
-
var/obj/item/weaponcrafting/ishotgunconstruction3/I = new /obj/item/weaponcrafting/ishotgunconstruction3
user.unEquip(src)
user.put_in_hands(I)
@@ -79,10 +76,8 @@
user.unEquip(src)
user.put_in_hands(W)
to_chat(user, "You tie the wrapping paper around the stock and the barrel to secure it.")
-
qdel(src)
else
to_chat(user, "You need at least five feet of wrapping paper to secure the stock.")
-
return
diff --git a/code/modules/crafting/table.dm b/code/modules/crafting/table.dm
index 8fdaaffaba0..19ea37c3866 100644
--- a/code/modules/crafting/table.dm
+++ b/code/modules/crafting/table.dm
@@ -204,17 +204,14 @@
if(href_list["make"])
if(!check_table_space())
to_chat(usr, "The table is too crowded.")
-
return
var/datum/table_recipe/TR = locate(href_list["make"])
busy = 1
interact(usr)
if(construct_item(usr, TR))
to_chat(usr, "[TR.name] constructed.")
-
else
to_chat(usr, "Construction failed.")
-
busy = 0
interact(usr)
diff --git a/code/modules/customitems/item_defines.dm b/code/modules/customitems/item_defines.dm
index 79817543530..c89d08b8d1b 100644
--- a/code/modules/customitems/item_defines.dm
+++ b/code/modules/customitems/item_defines.dm
@@ -29,35 +29,29 @@
if(user.a_intent == "harm")
user.visible_message("[user] stabs [M] with the [src]!", "You stab [M] with the [src]!")
to_chat(M, "[user] stabs you with the [src]!
You feel a tiny prick!")
-
return
if(used)
to_chat(user, "The [src] is out of ink.")
-
return
if(!istype(M, /mob/living/carbon/human))
to_chat(user, "You don't think tattooing [M] is the best idea.")
-
return
var/mob/living/carbon/human/target = M
if(istype(target.species, /datum/species/machine))
to_chat(user, "[target] has no skin, how do you expect to tattoo them?")
-
return
if(target.m_style != "None")
to_chat(user, "[target] already has body markings, any more would look silly!")
-
return
if(target == user)
to_chat(user, "You use the [src] to apply a [tattoo_name] to yourself!")
-
else
user.visible_message("[user] begins to apply a [tattoo_name] [target] with the [src].", "You begin to tattoo [target] with the [src]!")
if(!do_after(user,30, target = M))
@@ -134,7 +128,6 @@
C.name = "Detective Sax"
C.visible_message("[C] suddenly winks into existence at [user]'s feet!")
to_chat(user, "[src] crumbles to dust in your hands!")
-
qdel(src)
/obj/item/weapon/storage/toolbox/fluff/lunchbox //godoforeos: Jason Conrad
@@ -235,18 +228,14 @@
if("Kluysfluff1")
src.icon_state = "Kluysfluff2"
to_chat(usr, "The fibre unfolds into a jacket.")
-
if("Kluysfluff2")
src.icon_state = "Kluysfluff3"
to_chat(usr, "The fibre unfolds into a coat.")
-
if("Kluysfluff3")
src.icon_state = "Kluysfluff1"
to_chat(usr, "The fibre gets sucked back into its holder.")
-
else
to_chat(usr, "You attempt to hit the button but can't.")
-
return
usr.update_inv_wear_suit()
@@ -296,12 +285,10 @@
if(src.icon_state == "jane_sid_suit_down")
src.item_color = "jane_sid_suit"
to_chat(usr, "You zip up \the [src].")
-
else
src.item_color = "jane_sid_suit_down"
to_chat(usr, "You unzip and roll down \the [src].")
-
src.icon_state = "[item_color]"
src.item_state = "[item_color]"
usr.update_inv_w_uniform()
@@ -384,13 +371,11 @@
icon_state = initial(icon_state)
item_state = initial(item_state)
to_chat(usr, "You untransform \the [src].")
-
adjusted = 0
else
icon_state += "_open"
item_state += "_open"
to_chat(usr, "You transform \the [src].")
-
adjusted = 1
usr.update_inv_head()
diff --git a/code/modules/customitems/item_spawning.dm b/code/modules/customitems/item_spawning.dm
index 9dc4dc7f6ff..d0b350b9b1e 100644
--- a/code/modules/customitems/item_spawning.dm
+++ b/code/modules/customitems/item_spawning.dm
@@ -46,14 +46,12 @@
Item.loc = M.back
ok = 1
to_chat(M, "Your [Item.name] has been added to your [M.back.name].")
-
if(ok == 0)
for(var/obj/item/weapon/storage/S in M.contents) // Try to place it in any item that can store stuff, on the mob.
if (S.contents.len < S.storage_slots)
Item.loc = S
ok = 1
to_chat(M, "Your [Item.name] has been added to your [S.name].")
-
break
if(description)
Item.desc = description
diff --git a/code/modules/detective_work/evidence.dm b/code/modules/detective_work/evidence.dm
index ec2c7d12eaa..4654e0ab665 100644
--- a/code/modules/detective_work/evidence.dm
+++ b/code/modules/detective_work/evidence.dm
@@ -23,17 +23,14 @@
if(istype(I, /obj/item/weapon/evidencebag))
to_chat(user, "You find putting an evidence bag in another evidence bag to be slightly absurd.")
-
return 1 //now this is podracing
if(I.w_class > 3)
to_chat(user, "[I] won't fit in [src].")
-
return
if(contents.len)
to_chat(user, "[src] already has something inside it.")
-
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.
@@ -81,7 +78,6 @@
else
to_chat(user, "[src] is empty.")
-
icon_state = "evidenceobj"
return
diff --git a/code/modules/detective_work/scanner.dm b/code/modules/detective_work/scanner.dm
index 75bed197992..59466282384 100644
--- a/code/modules/detective_work/scanner.dm
+++ b/code/modules/detective_work/scanner.dm
@@ -18,7 +18,6 @@
if(log.len && !scanning)
scanning = 1
to_chat(user, "Printing report, please wait...")
-
playsound(loc, "sound/goonstation/machines/printer_thermal.ogg", 50, 1)
spawn(100)
@@ -35,14 +34,12 @@
M.put_in_hands(P)
to_chat(M, "Report printed. Log cleared.")
-
// Clear the logs
log = list()
scanning = 0
else
to_chat(user, "The scanner has no logs or is in use.")
-
/obj/item/device/detective_scanner/attack(mob/living/M as mob, mob/user as mob)
return
@@ -65,7 +62,6 @@
to_chat(user, "You scan \the [A]. The scanner is now analysing the results...")
-
// GATHER INFORMATION
//Make our lists
@@ -157,12 +153,10 @@
add_log("# No forensic traces found #", 0) // Don't display this to the holder user
if(holder)
to_chat(holder, "Unable to locate any fingerprints, materials, fibers, or blood on \the [target_name]!")
-
else
if(holder)
to_chat(holder, "You finish scanning \the [target_name].")
-
add_log("---------------------------------------------------------", 0)
scanning = 0
return
@@ -172,7 +166,6 @@
if(broadcast && ismob(loc))
var/mob/M = loc
to_chat(M, msg)
-
log += " [msg]"
else
CRASH("[src] \ref[src] is adding a log when it was never put in scanning mode!")
diff --git a/code/modules/economy/ATM.dm b/code/modules/economy/ATM.dm
index f3d7a2805bc..7448d3da352 100644
--- a/code/modules/economy/ATM.dm
+++ b/code/modules/economy/ATM.dm
@@ -113,7 +113,6 @@ log transactions
authenticated_account.transaction_log.Add(T)
to_chat(user, "You insert [C] into [src].")
-
src.attack_hand(user)
qdel(I)
else
@@ -122,7 +121,6 @@ log transactions
/obj/machinery/atm/attack_hand(mob/user as mob)
if(istype(user, /mob/living/silicon))
to_chat(user, "\red Artificial unit recognized. Artificial units do not currently receive monetary compensation, as per Nanotrasen regulation #1005.")
-
return
if(get_dist(src,user) <= 1)
//check to see if the user has low security enabled
@@ -228,7 +226,6 @@ log transactions
var/transfer_purpose = href_list["purpose"]
if(linked_db.charge_to_account(target_account_number, authenticated_account.owner_name, transfer_purpose, machine_id, transfer_amount))
to_chat(usr, "\icon[src]Funds transfer successful.")
-
authenticated_account.money -= transfer_amount
//create an entry in the account transaction log
@@ -243,10 +240,8 @@ log transactions
else
to_chat(usr, "\icon[src]Funds transfer failed.")
-
else
to_chat(usr, "\icon[src]You don't have enough funds to do that!")
-
if("view_screen")
view_screen = text2num(href_list["view_screen"])
if("change_security_level")
@@ -281,12 +276,10 @@ log transactions
failed_account.transaction_log.Add(T)
else
to_chat(usr, "\red \icon[src] Incorrect pin/account combination entered, [max_pin_attempts - number_incorrect_tries] attempts remaining.")
-
previous_account_number = tried_account_num
playsound(src, 'sound/machines/buzz-sigh.ogg', 50, 1)
else
to_chat(usr, "\red \icon[src] incorrect pin/account combination entered.")
-
number_incorrect_tries = 0
else
playsound(src, 'sound/machines/twobeep.ogg', 50, 1)
@@ -304,7 +297,6 @@ log transactions
to_chat(usr, "\blue \icon[src] Access granted. Welcome user '[authenticated_account.owner_name].'")
-
previous_account_number = tried_account_num
if("withdrawal")
var/amount = max(text2num(href_list["funds_amount"]),0)
@@ -317,7 +309,6 @@ log transactions
//remove the money
if(amount > 10000) // prevent crashes
to_chat(usr, "\blue The ATM's screen flashes, 'Maximum single withdrawl limit reached, defaulting to 10,000.'")
-
amount = 10000
authenticated_account.money -= amount
withdraw_arbitrary_sum(amount)
@@ -333,12 +324,10 @@ log transactions
authenticated_account.transaction_log.Add(T)
else
to_chat(usr, "\icon[src]You don't have enough funds to do that!")
-
if("balance_statement")
if(authenticated_account)
if(world.timeofday < lastprint + PRINT_DELAY)
to_chat(usr, "The [src.name] flashes an error on its display.")
-
return
lastprint = world.timeofday
playsound(loc, "sound/goonstation/machines/printer_thermal.ogg", 50, 1)
@@ -404,7 +393,6 @@ log transactions
if(authenticated_account)
to_chat(human_user, "\blue \icon[src] Access granted. Welcome user '[authenticated_account.owner_name].'")
-
//create a transaction log entry
var/datum/transaction/T = new()
T.target_name = authenticated_account.owner_name
diff --git a/code/modules/economy/EFTPOS.dm b/code/modules/economy/EFTPOS.dm
index f67aba1e6e2..a9fe34e1e46 100644
--- a/code/modules/economy/EFTPOS.dm
+++ b/code/modules/economy/EFTPOS.dm
@@ -112,10 +112,8 @@
scan_card(I)
else
to_chat(usr, "\icon[src]Unable to connect to linked account.")
-
else
to_chat(usr, "\icon[src]Unable to connect to accounts database.")
-
else
..()
@@ -133,7 +131,6 @@
print_reference()
else
to_chat(usr, "\icon[src]Incorrect code entered.")
-
if("change_id")
var/attempt_code = text2num(input("Re-enter the current EFTPOS access code", "Confirm EFTPOS code"))
if(attempt_code == access_code)
@@ -143,7 +140,6 @@
print_reference()
else
to_chat(usr, "\icon[src]Incorrect code entered.")
-
if("link_account")
if(!linked_db)
reconnect_database()
@@ -153,7 +149,6 @@
linked_account = attempt_account_access(attempt_account_num, attempt_pin, 1)
else
to_chat(usr, "\icon[src]Unable to connect to accounts database.")
-
if("trans_purpose")
var/purpose = input("Enter reason for EFTPOS transaction", "Transaction purpose") as text|null
if(purpose)
@@ -174,7 +169,6 @@
transaction_locked = 1
else
to_chat(usr, "\icon[src] No account connected to send transactions to.")
-
if("scan_card")
//attempt to connect to a new db, and if that doesn't work then fail
if(!linked_db)
@@ -185,7 +179,6 @@
scan_card(I)
else
to_chat(usr, "\icon[src]Unable to link accounts.")
-
if("reset")
//reset the access code - requires HoP/captain access
var/obj/item/I = usr.get_active_hand()
@@ -194,12 +187,10 @@
if(access_cent_commander in C.access || access_hop in C.access || access_captain in C.access)
access_code = 0
to_chat(usr, "\icon[src]Access code reset to 0.")
-
else if (istype(I, /obj/item/weapon/card/emag))
access_code = 0
to_chat(usr, "\icon[src]Access code reset to 0.")
-
src.attack_self(usr)
/obj/item/device/eftpos/proc/scan_card(var/obj/item/weapon/card/I)
@@ -243,13 +234,10 @@
linked_account.transaction_log.Add(T)
else
to_chat(usr, "\icon[src]You don't have that much money!")
-
else
to_chat(usr, "\icon[src]Unable to access account. Check security settings and try again.")
-
else
to_chat(usr, "\icon[src]EFTPOS is not connected to an account.")
-
else
..()
diff --git a/code/modules/economy/POS.dm b/code/modules/economy/POS.dm
index e16a475d468..79e506ddee9 100644
--- a/code/modules/economy/POS.dm
+++ b/code/modules/economy/POS.dm
@@ -404,7 +404,6 @@ var/const/POS_HEADER = {"
return
if(usr != logged_in)
to_chat(usr, "\red [logged_in.name] is already logged in. You cannot use this machine until they log out.")
-
return
if("act" in href_list)
switch(href_list["act"])
@@ -433,7 +432,6 @@ var/const/POS_HEADER = {"
var/list/cells = splittext(line,",")
if(cells.len<2)
to_chat(usr, "\red The CSV must have at least two columns: Product Name, followed by Price (as a number).")
-
src.attack_hand(usr)
return
var/line_item/LI = new
@@ -448,7 +446,6 @@ var/const/POS_HEADER = {"
var/datum/money_account/new_linked_account = get_money_account(text2num(href_list["payableto"]),z)
if(!new_linked_account)
to_chat(usr, "\red Unable to link new account.")
-
else
linked_account = new_linked_account
screen=POS_SCREEN_SETTINGS
diff --git a/code/modules/economy/utils.dm b/code/modules/economy/utils.dm
index c2148deb9b5..5ef9a033b6d 100644
--- a/code/modules/economy/utils.dm
+++ b/code/modules/economy/utils.dm
@@ -49,7 +49,6 @@
/datum/money_account/proc/charge(var/transaction_amount,var/datum/money_account/dest,var/transaction_purpose, var/terminal_name="", var/terminal_id=0, var/dest_name = "UNKNOWN")
if(suspended)
to_chat(usr, "Unable to access source account: account suspended.")
-
return 0
if(transaction_amount <= money)
@@ -90,5 +89,4 @@
return 1
else
to_chat(usr, "Insufficient funds in account.")
-
return 0
\ No newline at end of file
diff --git a/code/modules/events/communications_blackout.dm b/code/modules/events/communications_blackout.dm
index 9a77a6d08ff..6ada1a25c0f 100644
--- a/code/modules/events/communications_blackout.dm
+++ b/code/modules/events/communications_blackout.dm
@@ -8,12 +8,9 @@
for(var/mob/living/silicon/ai/A in player_list) //AIs are always aware of communication blackouts.
to_chat(A, "
")
-
to_chat(A, "[alert]")
-
to_chat(A, "
")
-
if(prob(30)) //most of the time, we don't want an announcement, so as to allow AIs to fake blackouts.
command_announcement.Announce(alert)
@@ -27,10 +24,7 @@
else // AIs will always know if there's a comm blackout, rogue AIs could then lie about comm blackouts in the future while they shutdown comms
for(var/mob/living/silicon/ai/A in player_list)
to_chat(A, "
")
-
to_chat(A, "Ionospheric anomalies detected. Temporary telecommunication failure imminent. Please contact you-BZZT")
-
to_chat(A, "
")
-
for(var/obj/machinery/telecomms/T in telecomms_list)
T.emp_act(1)
diff --git a/code/modules/events/event_manager.dm b/code/modules/events/event_manager.dm
index 06a40d81fdb..85ffa86f25f 100644
--- a/code/modules/events/event_manager.dm
+++ b/code/modules/events/event_manager.dm
@@ -74,7 +74,6 @@
return
to_chat(world, "
Random Events This Round:")
-
for(var/datum/event/E in active_events|finished_events)
var/datum/event_meta/EM = E.event_meta
if(EM.name == "Nothing")
@@ -90,7 +89,6 @@
to_chat(world, message)
-
/datum/event_manager/proc/GetInteractWindow()
var/html = "Refresh"
diff --git a/code/modules/events/holidays/Holidays.dm b/code/modules/events/holidays/Holidays.dm
index 363cd7017e0..e06c7764a39 100644
--- a/code/modules/events/holidays/Holidays.dm
+++ b/code/modules/events/holidays/Holidays.dm
@@ -141,9 +141,7 @@ var/global/Holiday = null
/proc/Holiday_Game_Start()
if(Holiday)
to_chat(world, "and...")
-
to_chat(world, "Happy [Holiday] Everybody!
")
-
switch(Holiday) //special holidays
if("Easter")
//do easter stuff
diff --git a/code/modules/events/ion_storm.dm b/code/modules/events/ion_storm.dm
index 6a6d2c91469..d153294c790 100644
--- a/code/modules/events/ion_storm.dm
+++ b/code/modules/events/ion_storm.dm
@@ -28,12 +28,9 @@
if(message)
M.add_ion_law(message)
to_chat(M, "
")
-
to_chat(M, "[message] ...LAWS UPDATED")
-
to_chat(M, "
")
-
if(botEmagChance)
for(var/mob/living/simple_animal/bot/bot in machines)
if(prob(botEmagChance))
diff --git a/code/modules/events/prison_break.dm b/code/modules/events/prison_break.dm
index 77f2717831a..89671701958 100644
--- a/code/modules/events/prison_break.dm
+++ b/code/modules/events/prison_break.dm
@@ -52,7 +52,6 @@
for(var/mob/living/silicon/ai/A in player_list)
to_chat(A, "Malicious program detected in the [english_list(areaName)] lighting and airlock control systems by [my_department].")
-
else
log_to_dd("ERROR: Could not initate grey-tide. Unable to find suitable containment area.")
kill()
diff --git a/code/modules/events/undead.dm b/code/modules/events/undead.dm
index b2a0f166735..2ff8d05c20a 100644
--- a/code/modules/events/undead.dm
+++ b/code/modules/events/undead.dm
@@ -38,4 +38,3 @@
/datum/event/undead/announce()
for(var/mob/living/M in player_list)
to_chat(M, "You feel [pick("a chill","a deathly chill","the undead","dirty", "creeped out","afraid","fear")]!")
-
diff --git a/code/modules/fish/fish_items.dm b/code/modules/fish/fish_items.dm
index 65db943ae6e..00659104480 100644
--- a/code/modules/fish/fish_items.dm
+++ b/code/modules/fish/fish_items.dm
@@ -40,7 +40,6 @@ var/global/list/fish_items_list = list("goldfish" = /obj/item/weapon/fish/goldfi
suicide_act(mob/user) //"A tiny net is a death sentence: it's a net and it's tiny!" https://www.youtube.com/watch?v=FCI9Y4VGCVw
to_chat(viewers(user), "[user] places the [src.name] on top of \his head, \his fingers tangled in the netting! It looks like \he's trying to commit suicide.")
-
return(OXYLOSS)
/obj/item/weapon/fishfood
@@ -67,7 +66,6 @@ var/global/list/fish_items_list = list("goldfish" = /obj/item/weapon/fish/goldfi
suicide_act(mob/user)
to_chat(viewers(user), "[user] is vigorously scrubbing \himself raw with the [src.name]! It looks like \he's trying to commit suicide.")
-
return(BRUTELOSS|FIRELOSS)
//////////////////////////////////////////////
@@ -136,7 +134,6 @@ var/global/list/fish_items_list = list("goldfish" = /obj/item/weapon/fish/goldfi
/obj/item/weapon/fish/shark/attackby(var/obj/item/O, var/mob/user as mob)
if(istype(O, /obj/item/weapon/wirecutters))
to_chat(user, "You rip out the teeth of \the [src.name]!")
-
new /obj/item/weapon/fish/toothless_shark(get_turf(src))
new /obj/item/weapon/shard/shark_teeth(get_turf(src))
qdel(src)
@@ -170,7 +167,6 @@ var/global/list/fish_items_list = list("goldfish" = /obj/item/weapon/fish/goldfi
/obj/item/weapon/fish/catfish/attackby(var/obj/item/O, var/mob/user as mob)
if(is_sharp(O))
to_chat(user, "You carefully clean and gut \the [src.name].")
-
new /obj/item/weapon/reagent_containers/food/snacks/catfishmeat(get_turf(src))
new /obj/item/weapon/reagent_containers/food/snacks/catfishmeat(get_turf(src))
qdel(src)
@@ -190,7 +186,6 @@ var/global/list/fish_items_list = list("goldfish" = /obj/item/weapon/fish/goldfi
/obj/item/weapon/fish/salmon/attackby(var/obj/item/O, var/mob/user as mob)
if(is_sharp(O))
to_chat(user, "You carefully clean and gut \the [src.name].")
-
new /obj/item/weapon/reagent_containers/food/snacks/salmonmeat(get_turf(src))
new /obj/item/weapon/reagent_containers/food/snacks/salmonmeat(get_turf(src))
qdel(src)
@@ -207,7 +202,6 @@ var/global/list/fish_items_list = list("goldfish" = /obj/item/weapon/fish/goldfi
/obj/item/weapon/fish/babycarp/attackby(var/obj/item/O, var/mob/user as mob)
if(is_sharp(O))
to_chat(user, "You carefully clean and gut \the [src.name].")
-
new /obj/item/weapon/reagent_containers/food/snacks/carpmeat(get_turf(src)) //just one fillet; this is a baby, afterall.
qdel(src)
return
diff --git a/code/modules/fish/fishtank.dm b/code/modules/fish/fishtank.dm
index 754d6d80fc6..8fe4bfa746d 100644
--- a/code/modules/fish/fishtank.dm
+++ b/code/modules/fish/fishtank.dm
@@ -312,7 +312,6 @@
else
to_chat(usr, "The eggs disolve in the water. They were duds!")
-
/obj/machinery/fishtank/proc/select_egg_type()
var/fish = pick(fish_list) //Select a fish from the fish in the tank
if(prob(25)) //25% chance to be a dud (blank) egg
@@ -342,7 +341,6 @@
/obj/machinery/fishtank/proc/harvest_fish(var/mob/user)
if(!fish_count) //Can't catch non-existant fish!
to_chat(usr, "There are no fish in \the [src] to catch!")
-
return
var/caught_fish
@@ -499,7 +497,6 @@
//Finally, report the full examine_message constructed from the above reports
to_chat(user, "[examine_message]")
-
return examine_message
//////////////////////////////
@@ -527,7 +524,6 @@
M.health = M.maxHealth //Eating fish heals the predator
else
to_chat(usr, "There are no fish in [src]!")
-
else
attack_generic(M, M.harm_intent_damage)
else if(istype(M, /mob/living/simple_animal/hostile/bear))
@@ -546,7 +542,6 @@
M.health = M.maxHealth //Eating fish heals the predator
else
to_chat(usr, "There are no fish in [src]!")
-
else
attack_generic(M, M.harm_intent_damage)
else
@@ -612,16 +607,13 @@
if(W.isOn())
if(cur_health < max_health)
to_chat(usr, "You repair some of the cracks on \the [src].")
-
cur_health += 20
check_health()
else
to_chat(usr, "There is no damage to fix!")
-
else
if(cur_health < max_health)
to_chat(usr, "[W.name] must on to repair this damage.")
-
else
user.changeNext_move(CLICK_CD_MELEE)
hit(W.force)
@@ -631,7 +623,6 @@
if(istype(O, /obj/item/weapon/reagent_containers/glass))
if(lid_switch)
to_chat(usr, "Open the lid on \the [src] first!")
-
return
var/obj/item/weapon/reagent_containers/glass/C = O
//Containers with any reagents will get dumped in
@@ -650,7 +641,6 @@
else
if(water_level == water_capacity)
to_chat(usr, "[src] is already full!")
-
return
else
message = "The filtration process purifies the water, raising the water level."
@@ -667,7 +657,6 @@
else
if(water_level == 0)
to_chat(usr, "[src] is empty!")
-
else
if(water_level >= C.volume) //Enough to fill the container completely
C.reagents.add_reagent("fishwater", C.volume)
@@ -683,13 +672,11 @@
if(istype(O, /obj/item/weapon/wrench))
if(water_level == 0)
to_chat(usr, "Now disassembling [src].")
-
playsound(src.loc, 'sound/items/Ratchet.ogg', 50, 1)
if(do_after(user,50, target = src))
destroy(1)
else
to_chat(usr, "[src] must be empty before you disassemble it!")
-
return
//Fish eggs
else if(istype(O, /obj/item/fish_eggs))
@@ -697,12 +684,10 @@
//Don't add eggs if there is no water (they kinda need that to live)
if(water_level == 0)
to_chat(usr, "[src] has no water; [egg.name] won't hatch without water!")
-
else
//Don't add eggs if the tank already has the max number of fish
if(fish_count >= max_fish)
to_chat(usr, "[src] can't hold any more fish.")
-
else
add_fish(egg.fish_type)
qdel(egg)
@@ -719,10 +704,8 @@
food_level += 10
else
to_chat(usr, "[src] already has plenty of food in it. You decide to not add more.")
-
else
to_chat(usr, "[src] doesn't have any water in it. You should fill it with water first.")
-
check_food_level()
return
//Fish egg scoop
@@ -741,7 +724,6 @@
if(istype(O, /obj/item/weapon/tank_brush))
if(filth_level == 0)
to_chat(usr, "[src] is already spotless!")
-
else
filth_level = 0
user.visible_message("[user.name] scrubs the inside of \the [src], cleaning the filth.", "You scrub the inside of \the [src], cleaning the filth.")
diff --git a/code/modules/flufftext/Dreaming.dm b/code/modules/flufftext/Dreaming.dm
index 1a04faede2a..3b165750d0b 100644
--- a/code/modules/flufftext/Dreaming.dm
+++ b/code/modules/flufftext/Dreaming.dm
@@ -21,7 +21,6 @@ mob/living/carbon/proc/dream()
var/dream_image = pick(dreams)
dreams -= dream_image
to_chat(src, "... [dream_image] ...")
-
sleep(rand(40,70))
if(paralysis <= 0)
dreaming = 0
diff --git a/code/modules/flufftext/Hallucination.dm b/code/modules/flufftext/Hallucination.dm
index 2c57b030ede..69fbd9bc1fc 100644
--- a/code/modules/flufftext/Hallucination.dm
+++ b/code/modules/flufftext/Hallucination.dm
@@ -244,12 +244,10 @@ Gunshots/explosions/opening doors/less rare audio (done)
if(!xeno) return
var/xeno_name = xeno.name
to_chat(target, "[xeno_name] begins climbing into the ventilation system...")
-
sleep(10)
if(!xeno) return
qdel(xeno)
to_chat(target, "[xeno_name] scrambles into the ventilation ducts!")
-
qdel(src)
/obj/effect/hallucination/singularity_scare
@@ -298,40 +296,28 @@ Gunshots/explosions/opening doors/less rare audio (done)
if(1) //Laser fight
for(var/i=0,i
You have [currentkarma] available."})
-
return
/client/proc/verify_karma()
var/currentkarma=0
if(!dbcon.IsConnected())
to_chat(usr, "\red Unable to connect to karma database. Please try again later.
")
-
return
else
var/DBQuery/query = dbcon.NewQuery("SELECT karma, karmaspent FROM [format_table_name("karmatotals")] WHERE byondkey='[src.key]'")
@@ -175,11 +160,9 @@ var/list/karma_spenders = list()
currentkarma = (text2num(totalkarma) - text2num(karmaspent))
/* if(totalkarma)
to_chat(usr, {"
You have [currentkarma] available.
)
-
You've gained [totalkarma] total karma in your time here.
"}
else
to_chat(usr, "Your total karma is: 0
")*/
-
return currentkarma
/client/verb/karmashop()
@@ -283,7 +266,6 @@ You've gained [totalkarma] total karma in your time here.
"}
return
else
to_chat(usr, "You have unlocked [job].")
-
message_admins("[key_name(usr)] has unlocked [job].")
karmacharge(cost)
@@ -300,12 +282,10 @@ You've gained [totalkarma] total karma in your time here.
"}
return
else
to_chat(usr, "You have unlocked [job].")
-
message_admins("[key_name(usr)] has unlocked [job].")
karmacharge(cost)
else
to_chat(usr, "You already have this job unlocked!")
-
return
/client/proc/DB_species_unlock(var/species,var/cost)
@@ -326,7 +306,6 @@ You've gained [totalkarma] total karma in your time here.
"}
return
else
to_chat(usr, "You have unlocked [species].")
-
message_admins("[key_name(usr)] has unlocked [species].")
karmacharge(cost)
@@ -343,12 +322,10 @@ You've gained [totalkarma] total karma in your time here.
"}
return
else
to_chat(usr, "You have unlocked [species].")
-
message_admins("[key_name(usr)] has unlocked [species].")
karmacharge(cost)
else
to_chat(usr, "You already have this species unlocked!")
-
return
/client/proc/karmacharge(var/cost,var/refund = 0)
@@ -369,7 +346,6 @@ You've gained [totalkarma] total karma in your time here.
"}
return
else
to_chat(usr, "You have been [refund ? "refunded" : "charged"] [cost] karma.")
-
message_admins("[key_name(usr)] has been [refund ? "refunded" : "charged"] [cost] karma.")
return
@@ -396,7 +372,6 @@ You've gained [totalkarma] total karma in your time here.
"}
cost = 10
else
to_chat(usr, "\red That job is not refundable.")
-
return
var/DBQuery/query = dbcon.NewQuery("SELECT * FROM [format_table_name("whitelist")] WHERE ckey='[usr.key]'")
@@ -419,7 +394,6 @@ You've gained [totalkarma] total karma in your time here.
"}
else
to_chat(usr, "\red Type [type] is not a valid column.")
-
if(name in typelist)
typelist -= name
var/newtypelist = jointext(typelist,",")
@@ -431,17 +405,14 @@ You've gained [totalkarma] total karma in your time here.
"}
return
else
to_chat(usr, "You have been refunded [cost] karma for [type] [name].")
-
message_admins("[key_name(usr)] has been refunded [cost] karma for [type] [name].")
karmacharge(text2num(cost),1)
else
to_chat(usr, "\red You have not bought [name].")
-
else
to_chat(usr, "\red Your ckey ([dbckey]) was not found.")
-
/client/proc/checkpurchased(var/name = null) // If the first parameter is null, return a full list of purchases
var/DBQuery/query = dbcon.NewQuery("SELECT * FROM [format_table_name("whitelist")] WHERE ckey='[usr.key]'")
query.Execute()
diff --git a/code/modules/library/lib_items.dm b/code/modules/library/lib_items.dm
index 64384fb7dcb..498b7b62a37 100644
--- a/code/modules/library/lib_items.dm
+++ b/code/modules/library/lib_items.dm
@@ -33,7 +33,6 @@
update_icon()
else if(istype(O, /obj/item/weapon/wrench))
to_chat(user, "\blue Now disassembling bookcase")
-
playsound(get_turf(src), 'sound/items/Ratchet.ogg', 50, 1)
if(do_after(user,50, target = src))
new /obj/item/stack/sheet/wood(get_turf(src))
@@ -162,13 +161,11 @@
if(carved)
if(store)
to_chat(user, "[store] falls out of [title]!")
-
store.loc = get_turf(src.loc)
store = null
return
else
to_chat(user, "The pages of [title] have been cut out!")
-
return
if(src.dat)
user << browse("Penned by [author].
" + "[dat]", "window=book")
@@ -177,7 +174,6 @@
else
to_chat(user, "This book is completely blank!")
-
/obj/item/weapon/book/attackby(obj/item/weapon/W as obj, mob/user as mob, params)
if(carved)
if(!store)
@@ -186,20 +182,16 @@
W.loc = src
store = W
to_chat(user, "You put [W] in [title].")
-
return
else
to_chat(user, "[W] won't fit in [title].")
-
return
else
to_chat(user, "There's already something in [title]!")
-
return
if(istype(W, /obj/item/weapon/pen))
if(unique)
to_chat(user, "These pages don't seem to take the ink well. Looks like you can't modify it.")
-
return
var/choice = input("What would you like to change?") in list("Title", "Contents", "Author", "Cancel")
switch(choice)
@@ -207,7 +199,6 @@
var/newtitle = reject_bad_text(stripped_input(usr, "Write a new title:"))
if(!newtitle)
to_chat(usr, "The title is invalid.")
-
return
else
src.name = newtitle
@@ -216,7 +207,6 @@
var/content = strip_html(input(usr, "Write your book's contents (HTML NOT allowed):"),8192) as message|null
if(!content)
to_chat(usr, "The content is invalid.")
-
return
else
src.dat += content
@@ -224,7 +214,6 @@
var/newauthor = stripped_input(usr, "Write the author's name:")
if(!newauthor)
to_chat(usr, "The name is invalid.")
-
return
else
src.author = newauthor
@@ -234,45 +223,36 @@
var/obj/item/weapon/barcodescanner/scanner = W
if(!scanner.computer)
to_chat(user, "[W]'s screen flashes: 'No associated computer found!'")
-
else
switch(scanner.mode)
if(0)
scanner.book = src
to_chat(user, "[W]'s screen flashes: 'Book stored in buffer.'")
-
if(1)
scanner.book = src
scanner.computer.buffer_book = src.name
to_chat(user, "[W]'s screen flashes: 'Book stored in buffer. Book title stored in associated computer buffer.'")
-
if(2)
scanner.book = src
for(var/datum/borrowbook/b in scanner.computer.checkouts)
if(b.bookname == src.name)
scanner.computer.checkouts.Remove(b)
to_chat(user, "[W]'s screen flashes: 'Book stored in buffer. Book has been checked in.'")
-
return
to_chat(user, "[W]'s screen flashes: 'Book stored in buffer. No active check-out record found for current title.'")
-
if(3)
scanner.book = src
for(var/obj/item/weapon/book in scanner.computer.inventory)
if(book == src)
to_chat(user, "[W]'s screen flashes: 'Book stored in buffer. Title already present in inventory, aborting to avoid duplicate entry.'")
-
return
scanner.computer.inventory.Add(src)
to_chat(user, "[W]'s screen flashes: 'Book stored in buffer. Title added to general inventory.'")
-
else if(istype(W, /obj/item/weapon/kitchen/knife) || istype(W, /obj/item/weapon/wirecutters))
if(carved) return
to_chat(user, "You begin to carve out [title].")
-
if(do_after(user, 30, target = src))
to_chat(user, "You carve out the pages from [title]! You didn't want to read it anyway.")
-
carved = 1
return
else
@@ -298,7 +278,6 @@
if(mode > 3)
mode = 0
to_chat(user, "[src] Status Display:")
-
var/modedesc
switch(mode)
if(0)
@@ -312,12 +291,8 @@
else
modedesc = "ERROR"
to_chat(user, " - Mode [mode] : [modedesc]")
-
if(src.computer)
to_chat(user, "Computer has been associated with this unit.")
-
else
to_chat(user, "No associated computer found. Only local scans will function properly.")
-
to_chat(user, "\n")
-
diff --git a/code/modules/library/lib_machines.dm b/code/modules/library/lib_machines.dm
index c65c82445e0..57f1b85b227 100644
--- a/code/modules/library/lib_machines.dm
+++ b/code/modules/library/lib_machines.dm
@@ -148,7 +148,6 @@ datum/borrowbook // Datum used to keep track of who has borrowed what when and f
if(src.arcanecheckout)
new /obj/item/weapon/tome(src.loc)
to_chat(user, "Your sanity barely endures the seconds spent in the vault's browsing window. The only thing to remind you of this when you stop browsing is a dusty old tome sitting on the desk. You don't really remember printing it.")
-
user.visible_message("[user] stares at the blank screen for a few moments, his expression frozen in fear. When he finally awakens from it, he looks a lot older.", 2)
src.arcanecheckout = 0
if(1)
@@ -246,7 +245,6 @@ datum/borrowbook // Datum used to keep track of who has borrowed what when and f
var/obj/item/weapon/barcodescanner/scanner = W
scanner.computer = src
to_chat(user, "[scanner]'s associated machine has been set to [src].")
-
for (var/mob/V in hearers(src))
V.show_message("[src] lets out a low, short blip.", 2)
else
@@ -484,7 +482,6 @@ datum/borrowbook // Datum used to keep track of who has borrowed what when and f
set category = "Admin"
if(!src.holder)
to_chat(src, "Only administrators may use this command.")
-
return
var/isbn = input("ISBN number?", "Delete Book") as num | null
diff --git a/code/modules/media/broadcast/receivers/radio.dm b/code/modules/media/broadcast/receivers/radio.dm
index 1d155f186bf..7b9c4ad7b15 100644
--- a/code/modules/media/broadcast/receivers/radio.dm
+++ b/code/modules/media/broadcast/receivers/radio.dm
@@ -15,7 +15,6 @@
/obj/machinery/media/receiver/boombox/attack_hand(var/mob/user)
if(stat & (NOPOWER|BROKEN))
to_chat(usr, "\red You don't see anything to mess with.")
-
return
user.set_machine(src)
interact(user)
@@ -61,7 +60,6 @@
connect_frequency()
else
to_chat(usr, "\red Invalid FM frequency. (90.0, 200.0)")
-
updateDialog()
diff --git a/code/modules/media/broadcast/transmitters/broadcast.dm b/code/modules/media/broadcast/transmitters/broadcast.dm
index c732e5bce96..d8607851752 100644
--- a/code/modules/media/broadcast/transmitters/broadcast.dm
+++ b/code/modules/media/broadcast/transmitters/broadcast.dm
@@ -137,7 +137,6 @@
else
to_chat(usr, "\red Invalid FM frequency. (90.0, 200.0)")
-
/obj/machinery/media/transmitter/broadcast/process()
if(stat & (NOPOWER|BROKEN))
return
@@ -163,12 +162,10 @@
// to_chat(world, "got [transfer_moles] moles at [removed.temperature]")
-
if(removed)
var/heat_capacity = removed.heat_capacity()
// to_chat(world, "heating ([heat_capacity])")
-
if(heat_capacity) // Added check to avoid divide by zero (oshi-) runtime errors -- TLE
if(removed.temperature < MAX_TEMP + T0C)
removed.temperature = min(removed.temperature + heating_power/heat_capacity, 1000) // Added min() check to try and avoid wacky superheating issues in low gas scenarios -- TLE
@@ -177,11 +174,9 @@
// to_chat(world, "now at [removed.temperature]")
-
env.merge(removed)
// to_chat(world, "turf now at [env.temperature]")
-
/*
// Checks heat from the environment and applies any integrity damage
var/datum/gas_mixture/environment = loc.return_air()
diff --git a/code/modules/media/jukebox.dm b/code/modules/media/jukebox.dm
index 6337dccdb34..33a44c5f23b 100644
--- a/code/modules/media/jukebox.dm
+++ b/code/modules/media/jukebox.dm
@@ -116,7 +116,6 @@ var/global/loopModeNames=list(
/obj/machinery/media/jukebox/attack_hand(var/mob/user)
if(stat & NOPOWER)
to_chat(usr, "\red You don't see anything to mess with.")
-
return
if(stat & BROKEN && playlist!=null)
user.visible_message("\red [user.name] smacks the side of \the [src.name].","\red You hammer the side of \the [src.name].")
@@ -182,7 +181,6 @@ var/global/loopModeNames=list(
..()
if(emagged)
to_chat(usr, "\red You touch the bluescreened menu. Nothing happens. You feel dumber.")
-
return
if (href_list["power"])
@@ -193,7 +191,6 @@ var/global/loopModeNames=list(
if (href_list["playlist"])
if(!check_reload())
to_chat(usr, "\red You must wait 60 seconds between playlist reloads.")
-
return
playlist_id=href_list["playlist"]
last_reload=world.time
diff --git a/code/modules/media/mediamanager.dm b/code/modules/media/mediamanager.dm
index 8aa525ac896..d78afc6f9f2 100644
--- a/code/modules/media/mediamanager.dm
+++ b/code/modules/media/mediamanager.dm
@@ -82,7 +82,6 @@ if(vlc.attachEvent) {
#ifdef DEBUG_MEDIAPLAYER
to_chat(#define MP_DEBUG(x) owner, x)
-
#warning Please comment out #define DEBUG_MEDIAPLAYER before committing.
#else
#define MP_DEBUG(x)
@@ -139,7 +138,6 @@ to_chat(#define MP_DEBUG(x) owner, x)
targetURL = M.media_url
targetStartTime = M.media_start_time
// to_chat(owner, "Found audio source: [M.media_url] @ [(world.time - start_time) / 10]s.")
-
//else
// testing("M is not playing or null.")
@@ -158,7 +156,6 @@ to_chat(#define MP_DEBUG(x) owner, x)
if(!media || !istype(media))
to_chat(usr, "You have no media datum to change, if you're not in the lobby tell an admin.")
-
return
var/value = input("Choose your Jukebox volume.", "Jukebox volume", media.get_volume())
value = round(max(0, min(100, value)))
diff --git a/code/modules/mining/abandonedcrates.dm b/code/modules/mining/abandonedcrates.dm
index bd5f8b338d0..16c247b6b50 100644
--- a/code/modules/mining/abandonedcrates.dm
+++ b/code/modules/mining/abandonedcrates.dm
@@ -65,34 +65,28 @@
/obj/structure/closet/crate/secure/loot/togglelock(mob/user as mob)
if(locked)
to_chat(user, "The crate is locked with a Deca-code lock.")
-
var/input = input(usr, "Enter digit from [min] to [max].", "Deca-Code Lock", "") as num
if(in_range(src, user))
input = Clamp(input, 0, 10)
if (input == code)
to_chat(user, "The crate unlocks!")
-
locked = 0
overlays.Cut()
overlays += greenlight
else if (input == null || input > max || input < min)
to_chat(user, "You leave the crate alone.")
-
else
to_chat(user, "A red light flashes.")
-
lastattempt = input
attempts--
if (attempts == 0)
to_chat(user, "The crate's anti-tamper system activates!")
-
var/turf/T = get_turf(src.loc)
explosion(T, -1, -1, 1, 1)
qdel(src)
return
else
to_chat(user, "You attempt to interact with the device using a hand gesture, but it appears this crate is from before the DECANECT came out.")
-
return
else
return ..()
@@ -101,27 +95,20 @@
if(locked)
if (istype(W, /obj/item/weapon/card/emag))
to_chat(user, "The crate unlocks!")
-
locked = 0
if (istype(W, /obj/item/device/multitool))
to_chat(user, "DECA-CODE LOCK REPORT:")
-
if (attempts == 1)
to_chat(user, "* Anti-Tamper Bomb will activate on next failed access attempt.")
-
else
to_chat(user, "* Anti-Tamper Bomb will activate after [src.attempts] failed access attempts.")
-
if (lastattempt == null)
to_chat(user, " has been made to open the crate thus far.")
-
return
// hot and cold
if (code > lastattempt)
to_chat(user, "* Last access attempt lower than expected code.")
-
else
to_chat(user, "* Last access attempt higher than expected code.")
-
else ..()
else ..()
diff --git a/code/modules/mining/coins.dm b/code/modules/mining/coins.dm
index 70fd5738c2d..a8ac5e1a88c 100644
--- a/code/modules/mining/coins.dm
+++ b/code/modules/mining/coins.dm
@@ -103,17 +103,14 @@
var/obj/item/stack/cable_coil/CC = W
if(string_attached)
to_chat(user, "There already is a string attached to this coin.")
-
return
if (CC.use(1))
overlays += image('icons/obj/items.dmi',"coin_string_overlay")
string_attached = 1
to_chat(user, "You attach a string to the coin.")
-
else
to_chat(user, "You need one length of cable to attach a string to the coin.")
-
return
else if(istype(W,/obj/item/weapon/wirecutters))
@@ -127,7 +124,6 @@
overlays = list()
string_attached = null
to_chat(user, "You detach the string from the coin.")
-
else if(istype(W,/obj/item/weapon/weldingtool))
var/obj/item/weapon/weldingtool/WT = W
if(WT.welding && WT.remove_fuel(0, user))
@@ -139,7 +135,6 @@
var/typekey = typelist[cmineral]
if(ispath(typekey))
to_chat(user, "\blue You make [src] into a ring.")
-
new typekey(get_turf(loc))
qdel(src)
else ..()
diff --git a/code/modules/mining/equipment_locker.dm b/code/modules/mining/equipment_locker.dm
index a4e4c6e9eb7..60044582dec 100644
--- a/code/modules/mining/equipment_locker.dm
+++ b/code/modules/mining/equipment_locker.dm
@@ -210,7 +210,6 @@
points = 0
else
to_chat(usr, "Required access not found.")
-
else if(href_list["choice"] == "insert")
var/obj/item/weapon/card/id/I = usr.get_active_hand()
if(istype(I))
@@ -220,7 +219,6 @@
inserted_id = I
else
to_chat(usr, "No valid ID.")
-
if(href_list["release"])
if(check_access(inserted_id) || allowed(usr)) //Check the ID inside, otherwise check the user.
if(!(text2path(href_list["release"]) in stack_list)) return
@@ -235,7 +233,6 @@
stack_list -= text2path(href_list["release"])
else
to_chat(usr, "Required access not found.")
-
if(href_list["plasteel"])
if(check_access(inserted_id) || allowed(usr))
if(!(/obj/item/stack/sheet/metal in stack_list)) return
@@ -252,7 +249,6 @@
unload_mineral(plasteelout)
else
to_chat(usr, "Required access not found.")
-
if(href_list["plasglass"])
if(check_access(inserted_id) || allowed(usr))
if(!(/obj/item/stack/sheet/glass in stack_list)) return
@@ -269,7 +265,6 @@
unload_mineral(plasglassout)
else
to_chat(usr, "Required access not found.")
-
updateUsrDialog()
return
@@ -422,7 +417,6 @@
inserted_id = I
else
to_chat(usr, "No valid ID.")
-
if(href_list["purchase"])
if(istype(inserted_id))
var/datum/data/mining_equipment/prize = locate(href_list["purchase"])
@@ -504,18 +498,15 @@
var/obj/item/weapon/card/id/C = I
C.mining_points += points
to_chat(user, "You transfer [points] points to [C].")
-
points = 0
else
to_chat(user, "There's no points left on [src].")
-
..()
/obj/item/weapon/card/mining_point_card/examine(mob/user)
..(user)
to_chat(user, "There's [points] points on the card.")
-
/**********************Jaunter**********************/
/obj/item/device/wormhole_jaunter
@@ -534,7 +525,6 @@
var/turf/device_turf = get_turf(user)
if(!device_turf||device_turf.z==2||device_turf.z>=7)
to_chat(user, "You're having difficulties getting the [src.name] to work.")
-
return
else
user.visible_message("[user.name] activates the [src.name]!")
@@ -545,7 +535,6 @@
L += B
if(!L.len)
to_chat(user, "The [src.name] failed to create a wormhole.")
-
return
var/chosen_beacon = pick(L)
var/obj/effect/portal/wormhole/jaunt_tunnel/J = new /obj/effect/portal/wormhole/jaunt_tunnel(get_turf(src), chosen_beacon)
@@ -617,12 +606,10 @@
if(burst_time == 50)
burst_time = 30
to_chat(user, "You set the resonator's fields to detonate after 3 seconds.")
-
else
burst_time = 50
to_chat(user, "You set the resonator's fields to detonate after 5 seconds.")
-
/obj/item/weapon/resonator/afterattack(atom/target, mob/user, proximity_flag)
if(proximity_flag)
if(!check_allowed_items(target, 1)) return
@@ -659,12 +646,10 @@
for(var/mob/living/L in src.loc)
add_logs(L, creator, "used a resonator field on", object="resonator")
to_chat(L, "The [src.name] ruptured with you in it!")
-
L.adjustBruteLoss(resonance_damage)
else
for(var/mob/living/L in src.loc)
to_chat(L, "The [src.name] ruptured with you in it!")
-
L.adjustBruteLoss(resonance_damage)
qdel(src)
@@ -741,19 +726,15 @@
if(W.welding && !stat)
if(stance != HOSTILE_STANCE_IDLE)
to_chat(user, "[src] is moving around too much to repair!")
-
return
if(maxHealth == health)
to_chat(user, "[src] is at full integrity.")
-
else
health += 10
to_chat(user, "You repair some of the armor on [src].")
-
return
if(istype(I, /obj/item/device/mining_scanner) || istype(I, /obj/item/device/t_scanner/adv_mining_scanner))
to_chat(user, "You instruct [src] to drop any collected ore.")
-
DropOre()
return
..()
@@ -776,11 +757,9 @@
if(0)
SetCollectBehavior()
to_chat(M, "[src] has been set to search and store loose ore.")
-
if(2)
SetOffenseBehavior()
to_chat(M, "[src] has been set to attack hostile wildlife.")
-
return
..()
@@ -888,11 +867,9 @@
return
else
to_chat(user, "[src] is only effective on the dead.")
-
return
else
to_chat(user, "[src] is only effective on lesser beings.")
-
return
/obj/item/weapon/lazarus_injector/emag_act()
@@ -907,11 +884,9 @@
..(user)
if(!loaded)
to_chat(user, "[src] is empty.")
-
if(malfunctioning)
to_chat(user, "The display on [src] seems to be flickering.")
-
/**********************Mining Scanner**********************/
/obj/item/device/mining_scanner
@@ -1017,9 +992,7 @@
var/obj/item/organ/internal/hivelord_core/C = M
if(!istype(C, /obj/item/organ/internal/hivelord_core))
to_chat(user, "The stabilizer only works on hivelord cores.")
-
return ..()
C.preserved = 1
to_chat(user, "You inject the hivelord core with the stabilizer. It will no longer go inert.")
-
qdel(src)
\ No newline at end of file
diff --git a/code/modules/mining/laborcamp/laborshuttle.dm b/code/modules/mining/laborcamp/laborshuttle.dm
index 03782a96f7f..25bbf0f3ee5 100644
--- a/code/modules/mining/laborcamp/laborshuttle.dm
+++ b/code/modules/mining/laborcamp/laborshuttle.dm
@@ -19,11 +19,9 @@
var/obj/docking_port/mobile/M = shuttle_master.getShuttle("laborcamp")
if(!M)
to_chat(usr, "Cannot locate shuttle!")
-
return 0
var/obj/docking_port/stationary/S = M.get_docked()
if(S && S.name == "laborcamp_away")
to_chat(usr, "Shuttle is already at the outpost!")
-
return 0
..()
\ No newline at end of file
diff --git a/code/modules/mining/laborcamp/laborstacker.dm b/code/modules/mining/laborcamp/laborstacker.dm
index ab1759d844f..47c9c45dbc3 100644
--- a/code/modules/mining/laborcamp/laborstacker.dm
+++ b/code/modules/mining/laborcamp/laborstacker.dm
@@ -76,7 +76,6 @@
-
/obj/machinery/mineral/labor_claim_console/Topic(href, href_list)
usr.set_machine(src)
src.add_fingerprint(usr)
@@ -90,7 +89,6 @@
inserted_id.points += machine.points
machine.points = 0
to_chat(src, "Points transferred.")
-
else if(href_list["choice"] == "insert")
var/obj/item/weapon/card/id/prisoner/I = usr.get_active_hand()
if(istype(I))
@@ -99,29 +97,23 @@
inserted_id = I
else
to_chat(usr, "Invalid ID.")
-
if(check_auth()) //Sanity check against hef spoofs
if(href_list["choice"] == "station")
if(!alone_in_area(get_area(src), usr))
to_chat(usr, "Prisoners are only allowed to be released while alone.")
-
else
switch(shuttle_master.moveShuttle("laborcamp","laborcamp_home"))
if(1)
to_chat(usr, "Shuttle not found")
-
if(2)
to_chat(usr, "Shuttle already at station")
-
if(3)
to_chat(usr, "No permission to dock could be granted.")
-
else
var/message = "[inserted_id.registered_name] has returned to the station. Minerals and Prisoner ID card ready for retrieval."
announcer.autosay(message, "Labor Camp Controller", "Security")
to_chat(usr, "Shuttle received message and will be sent shortly.")
-
if(href_list["choice"] == "release")
if(alone_in_area(get_area(loc), usr))
var/obj/docking_port/stationary/S = shuttle_master.getDock("laborcamp_home")
@@ -130,11 +122,9 @@
release_door.open()
else
to_chat(usr, "Prisoners can only be released while docked with the station.")
-
else
to_chat(usr, "Prisoners are only allowed to be released while alone.")
-
src.updateUsrDialog()
return
@@ -180,15 +170,10 @@
if(istype(I, /obj/item/weapon/card/id/prisoner))
var/obj/item/weapon/card/id/prisoner/prisoner_id = I
to_chat(user, "ID: [prisoner_id.registered_name]")
-
to_chat(user, "Points Collected:[prisoner_id.points]")
-
to_chat(user, "Point Quota: [prisoner_id.goal]")
-
to_chat(user, "Collect points by bringing smelted minerals to the Labor Shuttle stacking machine. Reach your quota to earn your release.")
-
else
to_chat(user, "Error: Invalid ID")
-
return
..()
diff --git a/code/modules/mining/manufacturing.dm b/code/modules/mining/manufacturing.dm
index 5d66474b5fb..429b0ee42bc 100644
--- a/code/modules/mining/manufacturing.dm
+++ b/code/modules/mining/manufacturing.dm
@@ -178,7 +178,6 @@
if (href_list["download"])
to_chat(if(!src.dl_list) usr, "\red This unit is not capable of downloading any additional schematics.")
-
else
var/amtdl = 0
//var/dontload = 0
@@ -193,10 +192,8 @@
amtdl++
else dontload = 0*/
to_chat(if (amtdl) usr, "\blue [amtdl] new schematics downloaded from Robotics Research Database.")
-
to_chat(else usr, "\red No new schematics currently available in Robotics Research Database.")
-
if (href_list["delete"])
var/operation = text2num(href_list["delete"])
if(operation == 1) // Clear Disk Schematics
@@ -205,19 +202,15 @@
src.diskload-= D
amtgone++
to_chat(if (amtgone) usr, "\blue Cleared [amtgone] schematics from database.")
-
to_chat(else usr, "\red No disk-loaded schematics detected in database.")
-
if(operation == 2) // Clear Download Schematics
var/amtgone = 0
for(var/datum/manufacture/D in src.download)
src.download-= D
amtgone++
to_chat(if (amtgone) usr, "\blue Cleared [amtgone] schematics from database.")
-
to_chat(else usr, "\red No downloaded schematics detected in database.")
-
if (href_list["eject"])
var/operation = text2num(href_list["eject"])
var/ejectamt = 0
@@ -236,7 +229,6 @@
if(11) ejecting = /obj/item/weapon/ore/fabric
else
to_chat(usr, "\red Error. Unknown ore type.")
-
return
sleep(3)
ejectamt = input(usr,"How many units do you want to eject?","Eject Materials") as num
@@ -258,7 +250,6 @@
if (istype(O,I.cost3)) A3++
if (A1 < I.amount1 || A2 < I.amount2 || A3 < I.amount3)
to_chat(usr, "\red Insufficient materials to manufacture that item.")
-
return
// Consume Mats
var/C1 = I.amount1
@@ -347,7 +338,6 @@
load = 2
else if(istype(W, /obj/item/weapon/disk/data/schematic))
to_chat(if (!src.acceptdisk) user, "\red This unit is unable to accept disks.")
-
else
var/amtload = 0
var/dontload = 0
@@ -365,9 +355,7 @@
amtload++
else dontload = 0
to_chat(if (amtload) user, "\blue [amtload] new schematics downloaded from disk.")
-
to_chat(else user, "\red No new schematics available on disk.")
-
else if (istype(W, /obj/item/weapon/storage/bag/ore))
for(var/mob/V in viewers(user, null)) V.show_message(text("\blue [] uses the []'s automatic ore loader on []!", user, src, W), 1)
var/amtload = 0
@@ -375,13 +363,10 @@
M.loc = src
amtload++
to_chat(if (amtload) user, "\blue [amtload] pieces of ore loaded from [W]!")
-
to_chat(else user, "\red No ore loaded!")
-
else if(istype(W, /obj/item/weapon/card/emag))
src.hacked = 1
to_chat(user, "\blue You remove the [src]'s product locks!")
-
else ..()
if (load == 1)
@@ -407,9 +392,7 @@
M.loc = src
amtload++
to_chat(if (amtload) user, "\blue [amtload] pieces of ore loaded from [O]!")
-
to_chat(else user, "\red No ore loaded!")
-
else if (istype(O, /obj/item/weapon/ore/))
for(var/mob/V in viewers(user, null)) V.show_message(text("\blue [] begins quickly stuffing ore into []!", user, src), 1)
var/staystill = user.loc
@@ -418,7 +401,6 @@
sleep(3)
if (user.loc != staystill) break
to_chat(user, "\blue You finish stuffing ore into [src]!")
-
/*else if (istype(O, /obj/item/weapon/plant/wheat/metal))
for(var/mob/V in viewers(user, null)) V.show_message(text("\blue [] begins quickly stuffing [O] into []!", user, src), 1)
var/staystill = user.loc
@@ -428,7 +410,6 @@
sleep(3)
if (user.loc != staystill) break
to_chat(user, "\blue You finish stuffing [O] into [src]!"*/)
-
else ..()
src.updateUsrDialog()
diff --git a/code/modules/mining/mine_items.dm b/code/modules/mining/mine_items.dm
index d3fdb6fb3b0..a468913eda3 100644
--- a/code/modules/mining/mine_items.dm
+++ b/code/modules/mining/mine_items.dm
@@ -220,7 +220,6 @@
var/mob/living/simple_animal/T = target
if(captured)
to_chat(U, "Capture failed!: The capsule already has a mob registered to it!")
-
else
if(istype(T) && "neutral" in T.faction)
T.forceMove(src)
@@ -228,12 +227,10 @@
T.cancel_camera()
name = "Lazarus Capsule: [initial(T.name)]"
to_chat(U, "You placed a [T.name] inside the Lazarus Capsule!")
-
captured = T
else
to_chat(U, "You can't capture that mob!")
-
/obj/item/device/mobcapsule/throw_impact(atom/A, mob/user)
..()
if(captured)
diff --git a/code/modules/mining/mine_turfs.dm b/code/modules/mining/mine_turfs.dm
index 9ed15e58cef..e2ff03a506e 100644
--- a/code/modules/mining/mine_turfs.dm
+++ b/code/modules/mining/mine_turfs.dm
@@ -362,7 +362,6 @@ var/global/list/rockTurfEdgeCache
if (!user.IsAdvancedToolUser())
to_chat(usr, "You don't have the dexterity to do this!")
-
return
if (istype(P, /obj/item/weapon/pickaxe))
@@ -374,13 +373,11 @@ var/global/list/rockTurfEdgeCache
return
last_act = world.time
to_chat(user, "You start picking...")
-
P.playDigSound()
if(do_after(user, P.digspeed, target = src))
if(istype(src, /turf/simulated/mineral)) //sanity check against turf being deleted during digspeed delay
to_chat(user, "You finish cutting into the rock.")
-
P.update_icon()
gets_drilled(user)
feedback_add_details("pick_used_mining","[P.name]")
@@ -411,11 +408,9 @@ var/global/list/rockTurfEdgeCache
/turf/simulated/mineral/attack_alien(var/mob/living/carbon/alien/M)
to_chat(M, "You start digging into the rock...")
-
playsound(src, 'sound/effects/break_stone.ogg', 50, 1)
if(do_after(M, 40, target = src))
to_chat(M, "You tunnel into the rock.")
-
gets_drilled()
/turf/simulated/mineral/Bumped(AM as mob|obj)
@@ -481,16 +476,13 @@ var/global/list/rockTurfEdgeCache
if (dug)
to_chat(user, "This area has already been dug!")
-
return
to_chat(user, "You start digging...")
-
sleep(20)
if ((user.loc == T && user.get_active_hand() == W))
to_chat(user, "You dig a hole.")
-
gets_dug()
return
@@ -502,16 +494,13 @@ var/global/list/rockTurfEdgeCache
if (dug)
to_chat(user, "This area has already been dug!")
-
return
to_chat(user, "You start digging...")
-
sleep(P.digspeed)
if ((user.loc == T && user.get_active_hand() == W))
to_chat(user, "You dig a hole.")
-
gets_dug()
return
diff --git a/code/modules/mining/mint.dm b/code/modules/mining/mint.dm
index e07b4641300..be34465c207 100644
--- a/code/modules/mining/mint.dm
+++ b/code/modules/mining/mint.dm
@@ -125,7 +125,6 @@
src.add_fingerprint(usr)
if(processing==1)
to_chat(usr, "The machine is processing.")
-
return
if(href_list["choose"])
chosen = href_list["choose"]
diff --git a/code/modules/mining/money_bag.dm b/code/modules/mining/money_bag.dm
index 5f7e34f4463..a7a7b4b10df 100644
--- a/code/modules/mining/money_bag.dm
+++ b/code/modules/mining/money_bag.dm
@@ -68,14 +68,12 @@
if(!user.drop_item())
return
to_chat(user, "You add the [C.name] into the bag.")
-
contents += C
if (istype(W, /obj/item/weapon/moneybag))
var/obj/item/weapon/moneybag/C = W
for (var/obj/O in C.contents)
contents += O;
to_chat(user, "You empty the [C.name] into the bag.")
-
return
/obj/item/weapon/moneybag/Topic(href, href_list)
diff --git a/code/modules/mining/ore.dm b/code/modules/mining/ore.dm
index f6bd12a4c2e..f5e0f2349be 100644
--- a/code/modules/mining/ore.dm
+++ b/code/modules/mining/ore.dm
@@ -14,7 +14,6 @@
qdel(src)
else if(W.isOn())
to_chat(user, "Not enough fuel to smelt [src].")
-
..()
/obj/item/weapon/ore/Crossed(AM as mob|obj)
@@ -66,7 +65,6 @@
/obj/item/weapon/ore/glass/attack_self(mob/living/user as mob)
to_chat(user, "You use the sand to make sandstone.")
-
var/sandAmt = 1
for(var/obj/item/weapon/ore/glass/G in user.loc) // The sand on the floor
sandAmt += 1
@@ -97,7 +95,6 @@
var/obj/item/weapon/weldingtool/W = I
if(W.welding)
to_chat(user, "You can't hit a high enough temperature to smelt [src] properly!")
-
else
..()
diff --git a/code/modules/mining/satchel_ore_boxdm.dm b/code/modules/mining/satchel_ore_boxdm.dm
index 4a30f138982..7d6750c4be4 100644
--- a/code/modules/mining/satchel_ore_boxdm.dm
+++ b/code/modules/mining/satchel_ore_boxdm.dm
@@ -20,7 +20,6 @@
for(var/obj/item/weapon/ore/O in S.contents)
S.remove_from_storage(O, src) //This will move the item to this item's contents
to_chat(user, "You empty the satchel into the box.")
-
return
/obj/structure/ore_box/attack_hand(mob/user as mob)
@@ -93,7 +92,6 @@
contents -= O
O.loc = src.loc
to_chat(usr, "You empty the box.")
-
src.updateUsrDialog()
return
@@ -109,7 +107,6 @@ obj/structure/ore_box/ex_act(severity, target)
if(!istype(usr, /mob/living/carbon/human)) //Only living, intelligent creatures with hands can empty ore boxes.
to_chat(usr, "You are physically incapable of emptying the ore box.")
-
return
if( usr.stat || usr.restrained() )
@@ -117,14 +114,12 @@ obj/structure/ore_box/ex_act(severity, target)
if(!Adjacent(usr)) //You can only empty the box if you can physically reach it
to_chat(usr, "You cannot reach the ore box.")
-
return
add_fingerprint(usr)
if(contents.len < 1)
to_chat(usr, "The ore box is empty.")
-
return
for (var/obj/item/weapon/ore/O in contents)
@@ -132,5 +127,4 @@ obj/structure/ore_box/ex_act(severity, target)
O.loc = src.loc
to_chat(usr, "You empty the ore box.")
-
return
diff --git a/code/modules/mob/dead/observer/observer.dm b/code/modules/mob/dead/observer/observer.dm
index 161bb8666c7..82b83db73ef 100644
--- a/code/modules/mob/dead/observer/observer.dm
+++ b/code/modules/mob/dead/observer/observer.dm
@@ -202,10 +202,8 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
if(ticker)
if(ticker.mode)
// to_chat(world, "DEBUG: ticker not null")
-
if(ticker.mode.name == "AI malfunction")
// to_chat(world, "DEBUG: malf mode ticker test")
-
if(ticker.mode:malf_mode_declared)
stat(null, "Time left: [max(ticker.mode:AI_win_timeleft/(ticker.mode:apcs/3), 0)]")
show_stat_emergency_shuttle_eta()
@@ -216,15 +214,12 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
if(!client) return
if(!can_reenter_corpse)
to_chat(src, "You've given up your right to respawn!")
-
return
if(!(mind && mind.current && can_reenter_corpse))
to_chat(src, "You have no body.")
-
return
if(mind.current.key && copytext(mind.current.key,1,2)!="@") //makes sure we don't accidentally kick any clients
to_chat(usr, "Another consciousness is in your body...It is resisting you.")
-
return
if(mind.current.ajourn && mind.current.stat != DEAD) //check if the corpse is astral-journeying (it's client ghosted using a cultist rune).
var/turf/T = get_turf(mind.current)
@@ -236,7 +231,6 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
break
if(!found_astral_rune)
to_chat(usr, "The astral cord that ties your body and your spirit has been severed. You are likely to wander the realm beyond until your body is finally dead and thus reunited with you.")
-
return
mind.current.ajourn=0
@@ -254,13 +248,10 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
/mob/dead/observer/proc/notify_cloning(var/message, var/sound, var/atom/source)
if(message)
to_chat(src, "[message]")
-
to_chat(src, "(Click to re-enter)")
-
if(sound)
to_chat(src, sound(sound))
-
/mob/dead/observer/proc/show_me_the_hud(hud_index)
var/datum/atom_hud/H = huds[hud_index]
H.add_hud_to(src)
@@ -280,35 +271,29 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
if(0)
show_me_the_hud(DATA_HUD_SECURITY_BASIC)
to_chat(src, "Security HUD set.")
-
if(DATA_HUD_SECURITY_BASIC)
show_me_the_hud(DATA_HUD_MEDICAL_ADVANCED)
to_chat(src, "Medical HUD set.")
-
if(DATA_HUD_MEDICAL_ADVANCED)
show_me_the_hud(DATA_HUD_DIAGNOSTIC)
to_chat(src, "Diagnostic HUD set.")
-
if(DATA_HUD_DIAGNOSTIC)
data_hud_seen = 0
to_chat(src, "HUDs disabled.")
-
/mob/dead/observer/verb/toggle_antagHUD()
set category = "Ghost"
set name = "Toggle AntagHUD"
set desc = "Toggles AntagHUD allowing you to see who is the antagonist"
if(!config.antag_hud_allowed && !client.holder)
to_chat(src, "\red Admins have disabled this for this round.")
-
return
if(!client)
return
var/mob/dead/observer/M = src
if(jobban_isbanned(M, "AntagHUD"))
to_chat(src, "\red You have been banned from using this feature")
-
return
if(config.antag_hud_restricted && !M.has_enabled_antagHUD && !check_rights(R_ADMIN|R_MOD,0))
var/response = alert(src, "If you turn this on, you will not be able to take any part in the round.","Are you sure you want to turn this feature on?","Yes","No")
@@ -329,11 +314,9 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
H.remove_hud_from(usr)
if(!M.antagHUD)
to_chat(usr, "AntagHud Toggled ON")
-
M.antagHUD = 1
else
to_chat(usr, "AntagHud Toggled OFF")
-
M.antagHUD = 0
/mob/dead/observer/proc/dead_tele(A in ghostteleportlocs)
@@ -343,7 +326,6 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
if(!isobserver(usr))
to_chat(usr, "Not when you're not dead!")
-
return
usr.verbs -= /mob/dead/observer/proc/dead_tele
@@ -360,7 +342,6 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
if(!L || !L.len)
to_chat(usr, "No area available.")
-
usr.forceMove(pick(L))
following = null
@@ -383,7 +364,6 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
return
following = target
to_chat(src, "Now following [target]")
-
if(ismob(target))
forceMove(get_turf(target))
var/mob/M = target
@@ -441,7 +421,6 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
to_chat(src, "This mob is not located in the game world.")
-
/* Now a spell. See spells.dm
/mob/dead/observer/verb/boo()
set category = "Ghost"
@@ -461,12 +440,10 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
set hidden = 1
to_chat(src, "\red You are dead! You have no mind to store memory!")
-
/mob/dead/observer/add_memory()
set hidden = 1
to_chat(src, "\red You are dead! You have no mind to store memory!")
-
/mob/dead/observer/verb/analyze_air()
set name = "Analyze Air"
set category = "Ghost"
@@ -483,13 +460,10 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
var/total_moles = environment.total_moles()
to_chat(src, "\blue Results:")
-
if(abs(pressure - ONE_ATMOSPHERE) < 10)
to_chat(src, "\blue Pressure: [round(pressure,0.1)] kPa")
-
else
to_chat(src, "\red Pressure: [round(pressure,0.1)] kPa")
-
if(total_moles)
var/o2_concentration = environment.oxygen/total_moles
var/n2_concentration = environment.nitrogen/total_moles
@@ -499,38 +473,28 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
var/unknown_concentration = 1-(o2_concentration+n2_concentration+co2_concentration+plasma_concentration)
if(abs(n2_concentration - N2STANDARD) < 20)
to_chat(src, "\blue Nitrogen: [round(n2_concentration*100)]% ([round(environment.nitrogen,0.01)] moles)")
-
else
to_chat(src, "\red Nitrogen: [round(n2_concentration*100)]% ([round(environment.nitrogen,0.01)] moles)")
-
if(abs(o2_concentration - O2STANDARD) < 2)
to_chat(src, "\blue Oxygen: [round(o2_concentration*100)]% ([round(environment.oxygen,0.01)] moles)")
-
else
to_chat(src, "\red Oxygen: [round(o2_concentration*100)]% ([round(environment.oxygen,0.01)] moles)")
-
if(co2_concentration > 0.01)
to_chat(src, "\red CO2: [round(co2_concentration*100)]% ([round(environment.carbon_dioxide,0.01)] moles)")
-
else
to_chat(src, "\blue CO2: [round(co2_concentration*100)]% ([round(environment.carbon_dioxide,0.01)] moles)")
-
if(plasma_concentration > 0.01)
to_chat(src, "\red Plasma: [round(plasma_concentration*100)]% ([round(environment.toxins,0.01)] moles)")
-
if(unknown_concentration > 0.01)
to_chat(src, "\red Unknown: [round(unknown_concentration*100)]% ([round(unknown_concentration*total_moles,0.01)] moles)")
-
to_chat(src, "\blue Temperature: [round(environment.temperature-T0C,0.1)]°C")
-
to_chat(src, "\blue Heat Capacity: [round(environment.heat_capacity(),0.1)]")
-
/mob/dead/observer/verb/view_manifest()
set name = "View Crew Manifest"
set category = "Ghost"
@@ -587,7 +551,6 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
var/mob/target = locate(href_list["jump"])
var/mob/A = usr;
to_chat(A, "Teleporting to [target]...")
-
//var/mob/living/silicon/ai/A = locate(href_list["track2"]) in mob_list
if(target && target != usr)
spawn(0)
@@ -611,11 +574,9 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
src.anonsay = !src.anonsay
if(anonsay)
to_chat(src, "Your key won't be shown when you speak in dead chat.")
-
else
to_chat(src, "Your key will be publicly visible again.")
-
/mob/dead/observer/verb/toggle_ghostsee()
set name = "Toggle Ghost Vision"
set desc = "Toggles your ability to see things only ghosts can see, like other ghosts"
@@ -624,7 +585,6 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
updateghostsight()
to_chat(usr, "You [(ghostvision?"now":"no longer")] have ghost vision.")
-
/mob/dead/observer/verb/toggle_darkness()
set name = "Toggle Darkness"
set category = "Ghost"
diff --git a/code/modules/mob/dead/observer/say.dm b/code/modules/mob/dead/observer/say.dm
index 1a2998fbaac..7f63a8f1261 100644
--- a/code/modules/mob/dead/observer/say.dm
+++ b/code/modules/mob/dead/observer/say.dm
@@ -9,7 +9,6 @@
if (src.client)
if(src.client.prefs.muted & MUTE_DEADCHAT)
to_chat(src, "\red You cannot talk in deadchat (muted).")
-
return
if (src.client.handle_spam_prevention(message,MUTE_DEADCHAT))
@@ -32,7 +31,6 @@
if(src.client)
if(src.client.prefs.muted & MUTE_DEADCHAT)
to_chat(src, "\red You cannot emote in deadchat (muted).")
-
return
if(src.client.handle_spam_prevention(message, MUTE_DEADCHAT))
diff --git a/code/modules/mob/dead/observer/spells.dm b/code/modules/mob/dead/observer/spells.dm
index ae504a90fd3..993f2b6e344 100644
--- a/code/modules/mob/dead/observer/spells.dm
+++ b/code/modules/mob/dead/observer/spells.dm
@@ -34,7 +34,6 @@ var/global/list/boo_phrases=list(
if(H && H.client)
to_chat(H, "[pick(boo_phrases)]")
-
// Flicker unblessed lights in range
if(istype(A,/obj/machinery/light))
var/obj/machinery/light/L = A
diff --git a/code/modules/mob/emote.dm b/code/modules/mob/emote.dm
index cc74d5e6ffd..8d03cdd969a 100644
--- a/code/modules/mob/emote.dm
+++ b/code/modules/mob/emote.dm
@@ -18,7 +18,6 @@
if(stat || !use_me && usr == src)
to_chat(usr, "You are unable to emote.")
-
return
var/muzzled = istype(src.wear_mask, /obj/item/clothing/mask/muzzle)
@@ -87,18 +86,15 @@
if(client.prefs.muted & MUTE_DEADCHAT)
to_chat(src, "\red You cannot send deadchat emotes (muted).")
-
return
if(!(client.prefs.toggles & CHAT_DEAD))
to_chat(src, "\red You have deadchat muted.")
-
return
if(!src.client.holder)
if(!config.dsay_allowed)
to_chat(src, "\red Deadchat is globally muted")
-
return
@@ -124,6 +120,5 @@
if(check_rights(R_ADMIN|R_MOD, 0, M) && (M.client.prefs.toggles & CHAT_DEAD)) // Show the emote to admins/mods
to_chat(M, message)
-
else if(M.stat == DEAD && (M.client.prefs.toggles & CHAT_DEAD)) // Show the emote to regular ghosts with deadchat toggled on
M.show_message(message, 2)
diff --git a/code/modules/mob/hear_say.dm b/code/modules/mob/hear_say.dm
index c222c73b33c..c3ca5a602c9 100644
--- a/code/modules/mob/hear_say.dm
+++ b/code/modules/mob/hear_say.dm
@@ -66,17 +66,13 @@
if(!language || !(language.flags & INNATE)) // INNATE is the flag for audible-emote-language, so we don't want to show an "x talks but you cannot hear them" message if it's set
if(speaker == src)
to_chat(src, "You cannot hear yourself speak!")
-
else
to_chat(src, "[speaker_name][alt_name] talks but you cannot hear them.")
-
else
if(language)
to_chat(src, "[speaker_name][alt_name] [track][language.format_message(message, verb)]")
-
else
to_chat(src, "[speaker_name][alt_name] [track][verb], ")
-
if (speech_sound && (get_dist(speaker, src) <= world.view && src.z == speaker.z))
var/turf/source = speaker? get_turf(speaker) : get_turf(src)
src.playsound_local(source, speech_sound, sound_vol, 1)
@@ -182,14 +178,11 @@
if(sdisabilities & DEAF || ear_deaf)
if(prob(20))
to_chat(src, "You feel your headset vibrate but can hear nothing from it!")
-
else if(track)
to_chat(src, "[part_a][track][part_b][formatted]")
-
else
to_chat(src, "[part_a][speaker_name][part_b][formatted]")
-
/mob/proc/hear_signlang(var/message, var/verb = "gestures", var/datum/language/language, var/mob/speaker = null)
if(!client)
return
@@ -223,4 +216,3 @@
heard = "...You almost hear someone talking..."
to_chat(src, heard)
-
diff --git a/code/modules/mob/holder.dm b/code/modules/mob/holder.dm
index 71d8e9ac211..09f8009be75 100644
--- a/code/modules/mob/holder.dm
+++ b/code/modules/mob/holder.dm
@@ -48,12 +48,9 @@
if(istype(M))
M.unEquip(src)
to_chat(M, "[src] wriggles out of your grip!")
-
to_chat(src, "You wriggle out of [M]'s grip!")
-
else if(istype(src.loc,/obj/item))
to_chat(src, "You struggle free of [src.loc].")
-
src.forceMove(get_turf(src))
if(istype(M))
@@ -78,9 +75,7 @@
H.attack_hand(grabber)
to_chat(grabber, "You scoop up \the [src].")
-
to_chat(src, "\The [grabber] scoops you up.")
-
grabber.status_flags |= PASSEMOTES
return H
diff --git a/code/modules/mob/language.dm b/code/modules/mob/language.dm
index c35403c43a7..777eac07ec8 100644
--- a/code/modules/mob/language.dm
+++ b/code/modules/mob/language.dm
@@ -105,13 +105,11 @@
if(istype(player,/mob/dead) && follow)
var/msg_dead = "[name], [speaker_mask] ([ghost_follow_link(speaker, ghost=player)]) [format_message(message, get_spoken_verb(message))]"
to_chat(player, msg_dead)
-
continue
else if(istype(player,/mob/dead) || ((src in player.languages) && check_special_condition(player)))
to_chat(player, msg)
-
/datum/language/proc/check_special_condition(var/mob/other)
return 1
diff --git a/code/modules/mob/living/autohiss.dm b/code/modules/mob/living/autohiss.dm
index 17d8a061073..4506ce50cfb 100644
--- a/code/modules/mob/living/autohiss.dm
+++ b/code/modules/mob/living/autohiss.dm
@@ -26,18 +26,14 @@
switch(autohiss_mode)
if(AUTOHISS_OFF)
to_chat(src, "Auto-hiss is now OFF.")
-
if(AUTOHISS_BASIC)
to_chat(src, "Auto-hiss is now BASIC.")
-
if(AUTOHISS_FULL)
to_chat(src, "Auto-hiss is now FULL.")
-
else
autohiss_mode = AUTOHISS_OFF
to_chat(src, "Auto-hiss is now OFF.")
-
/datum/species
var/list/autohiss_basic_map = null
var/list/autohiss_extra_map = null
diff --git a/code/modules/mob/living/carbon/alien/alien.dm b/code/modules/mob/living/carbon/alien/alien.dm
index 21d006ee886..fdd86c790f9 100644
--- a/code/modules/mob/living/carbon/alien/alien.dm
+++ b/code/modules/mob/living/carbon/alien/alien.dm
@@ -86,7 +86,6 @@
// to_chat(world, "Loc temp: [loc_temp] - Body temp: [bodytemperature] - Fireloss: [getFireLoss()] - Fire protection: [heat_protection] - Location: [loc] - src: [src]")
-
// Aliens are now weak to fire.
//After then, it reacts to the surrounding atmosphere based on your thermal protection
diff --git a/code/modules/mob/living/carbon/alien/alien_defenses.dm b/code/modules/mob/living/carbon/alien/alien_defenses.dm
index 225d4a8046b..397a14fc259 100644
--- a/code/modules/mob/living/carbon/alien/alien_defenses.dm
+++ b/code/modules/mob/living/carbon/alien/alien_defenses.dm
@@ -8,12 +8,10 @@ In all, this is a lot like the monkey code. /N
/mob/living/carbon/alien/attack_alien(mob/living/carbon/alien/M as mob)
if (!ticker)
to_chat(M, "You cannot attack people before the game has started.")
-
return
if (istype(loc, /turf) && istype(loc.loc, /area/start))
to_chat(M, "No attacking people at spawn, you jackass.")
-
return
switch(M.a_intent)
@@ -41,7 +39,6 @@ In all, this is a lot like the monkey code. /N
updatehealth()
else
to_chat(M, "[name] is too injured for that.")
-
return
diff --git a/code/modules/mob/living/carbon/alien/humanoid/alien_powers.dm b/code/modules/mob/living/carbon/alien/humanoid/alien_powers.dm
index a72e93b3db4..afae056b99f 100644
--- a/code/modules/mob/living/carbon/alien/humanoid/alien_powers.dm
+++ b/code/modules/mob/living/carbon/alien/humanoid/alien_powers.dm
@@ -9,15 +9,12 @@ Doesn't work on other aliens/AI.*/
/mob/living/carbon/proc/powerc(X, Y)//Y is optional, checks for weed planting. X can be null.
if(stat)
to_chat(src, "You must be conscious to do this.")
-
return 0
else if(X && getPlasma() < X)
to_chat(src, "Not enough plasma stored.")
-
return 0
else if(Y && (!isturf(src.loc) || istype(src.loc, /turf/space)))
to_chat(src, "You can't place that here!")
-
return 0
else return 1
@@ -28,7 +25,6 @@ Doesn't work on other aliens/AI.*/
if(locate(/obj/structure/alien/weeds/node) in get_turf(src))
to_chat(src, "There's already a weed node here.")
-
return
if(powerc(50,1))
@@ -49,9 +45,7 @@ Doesn't work on other aliens/AI.*/
if(msg)
log_say("Alien Whisper: [key_name(src)]->[key_name(M)]: [msg]")
to_chat(M, "You hear a strange, alien voice in your head...[msg]")
-
to_chat(src, "You said: [msg] to [M]")
-
for(var/mob/dead/observer/G in player_list)
G.show_message("Alien message from [src] ([ghost_follow_link(src, ghost=G)]) to [M] ([ghost_follow_link(M, ghost=G)]): [msg]")
return
@@ -70,12 +64,9 @@ Doesn't work on other aliens/AI.*/
M.adjustPlasma(amount)
adjustPlasma(-amount)
to_chat(M, "[src] has transfered [amount] plasma to you.")
-
to_chat(src, {"You have trasferred [amount] plasma to [M]"})
-
else
to_chat(src, "You need to be closer.")
-
return
@@ -91,7 +82,6 @@ Doesn't work on other aliens/AI.*/
var/obj/I = O
if(I.unacidable) //So the aliens don't destroy energy fields/singularies/other aliens/etc with their acid.
to_chat(src, "You cannot dissolve this object.")
-
return
// TURF CHECK
else if(istype(O, /turf/simulated))
@@ -99,12 +89,10 @@ Doesn't work on other aliens/AI.*/
// R WALL
if(istype(T, /turf/simulated/wall/r_wall))
to_chat(src, "You cannot dissolve this object.")
-
return
// R FLOOR
if(istype(T, /turf/simulated/floor/engine))
to_chat(src, "You cannot dissolve this object.")
-
return
else// Not a type we can acid.
return
@@ -114,7 +102,6 @@ Doesn't work on other aliens/AI.*/
visible_message("[src] vomits globs of vile stuff all over [O]. It begins to sizzle and melt under the bubbling mess of acid!")
else
to_chat(src, "Target is too far away.")
-
return
/mob/living/carbon/alien/humanoid/proc/neurotoxin() // ok
diff --git a/code/modules/mob/living/carbon/alien/humanoid/caste/drone.dm b/code/modules/mob/living/carbon/alien/humanoid/caste/drone.dm
index c93eb944df6..e45fa198006 100644
--- a/code/modules/mob/living/carbon/alien/humanoid/caste/drone.dm
+++ b/code/modules/mob/living/carbon/alien/humanoid/caste/drone.dm
@@ -35,12 +35,10 @@
if(src.has_brain_worms())
to_chat(src, "We cannot perform this ability at the present time!")
-
return
if(no_queen)
adjustPlasma(-500)
to_chat(src, "You begin to evolve!")
-
for(var/mob/O in viewers(src, null))
O.show_message(text("[src] begins to twist and contort!"), 1)
var/mob/living/carbon/alien/humanoid/queen/new_xeno = new(loc)
@@ -49,5 +47,4 @@
qdel(src)
else
to_chat(src, "We already have an alive queen.")
-
return
\ No newline at end of file
diff --git a/code/modules/mob/living/carbon/alien/humanoid/caste/hunter.dm b/code/modules/mob/living/carbon/alien/humanoid/caste/hunter.dm
index 91411978d51..a5e72059ab8 100644
--- a/code/modules/mob/living/carbon/alien/humanoid/caste/hunter.dm
+++ b/code/modules/mob/living/carbon/alien/humanoid/caste/hunter.dm
@@ -51,7 +51,6 @@
leap_icon.icon_state = "leap_[leap_on_click ? "on":"off"]"
if(message)
to_chat(src, "You will now [leap_on_click ? "leap at":"slash at"] enemies!")
-
else
return
@@ -67,7 +66,6 @@
/mob/living/carbon/alien/humanoid/hunter/proc/leap_at(var/atom/A)
if(pounce_cooldown)
to_chat(src, "You are too fatigued to pounce right now!")
-
return
if(leaping) //Leap while you leap, so you can leap while you leap
@@ -75,7 +73,6 @@
if(!has_gravity(src) || !has_gravity(A))
to_chat(src, "It is unsafe to leap without gravity!")
-
//It's also extremely buggy visually, so it's balance+bugfix
return
if(lying)
diff --git a/code/modules/mob/living/carbon/alien/humanoid/caste/sentinel.dm b/code/modules/mob/living/carbon/alien/humanoid/caste/sentinel.dm
index f5ddc992a0e..eb2ae210e71 100644
--- a/code/modules/mob/living/carbon/alien/humanoid/caste/sentinel.dm
+++ b/code/modules/mob/living/carbon/alien/humanoid/caste/sentinel.dm
@@ -77,7 +77,6 @@
if(powerc(250))
adjustToxLoss(-250)
to_chat(src, "\green You begin to evolve!")
-
for(var/mob/O in viewers(src, null))
O.show_message(text("[src] begins to twist and contort!"), 1)
var/mob/living/carbon/alien/humanoid/sentinel/praetorian/new_xeno = new(loc)
diff --git a/code/modules/mob/living/carbon/alien/humanoid/emote.dm b/code/modules/mob/living/carbon/alien/humanoid/emote.dm
index a5a09b9a378..caf3cc4e5ad 100644
--- a/code/modules/mob/living/carbon/alien/humanoid/emote.dm
+++ b/code/modules/mob/living/carbon/alien/humanoid/emote.dm
@@ -107,7 +107,6 @@
if("help")
to_chat(src, "burp, flip, deathgasp, choke, collapse, dance, drool, gasp, shiver, gnarl, jump, moan, nod, roar, roll, scratch,\nscretch, shake, sign-#, sit, sulk, sway, tail, twitch, whimper")
-
if(!stat)
if (act == "roar")
playsound(src.loc, 'sound/voice/hiss5.ogg', 40, 1, 1)
diff --git a/code/modules/mob/living/carbon/alien/humanoid/empress.dm b/code/modules/mob/living/carbon/alien/humanoid/empress.dm
index aafb05c6640..d4716aafccb 100644
--- a/code/modules/mob/living/carbon/alien/humanoid/empress.dm
+++ b/code/modules/mob/living/carbon/alien/humanoid/empress.dm
@@ -83,7 +83,6 @@
if(locate(/obj/structure/alien/egg) in get_turf(src))
to_chat(src, "There's already an egg here.")
-
return
if(powerc(250,1))//Can't plant eggs on spess tiles. That's silly.
diff --git a/code/modules/mob/living/carbon/alien/humanoid/humanoid.dm b/code/modules/mob/living/carbon/alien/humanoid/humanoid.dm
index 736d5a1da09..c50e4603e41 100644
--- a/code/modules/mob/living/carbon/alien/humanoid/humanoid.dm
+++ b/code/modules/mob/living/carbon/alien/humanoid/humanoid.dm
@@ -114,7 +114,6 @@
/mob/living/carbon/alien/humanoid/attack_slime(mob/living/carbon/slime/M as mob)
if (!ticker)
to_chat(M, "You cannot attack people before the game has started.")
-
return
if(M.Victim) return // can't attack while eating!
@@ -186,12 +185,10 @@
/mob/living/carbon/alien/humanoid/attack_hand(mob/living/carbon/human/M as mob)
if (!ticker)
to_chat(M, "You cannot attack people before the game has started.")
-
return
if (istype(loc, /turf) && istype(loc.loc, /area/start))
to_chat(M, "No attacking people at spawn, you jackass.")
-
return
if(..()) //to allow surgery to return properly.
@@ -256,12 +253,10 @@ In all, this is a lot like the monkey code. /N
/mob/living/carbon/alien/humanoid/attack_alien(mob/living/carbon/alien/humanoid/M as mob)
if (!ticker)
to_chat(M, "You cannot attack people before the game has started.")
-
return
if (istype(loc, /turf) && istype(loc.loc, /area/start))
to_chat(M, "No attacking people at spawn, you jackass.")
-
return
..()
@@ -288,7 +283,6 @@ In all, this is a lot like the monkey code. /N
updatehealth()
else
to_chat(M, "[name] is too injured for that.")
-
return
@@ -311,7 +305,6 @@ In all, this is a lot like the monkey code. /N
updatehealth()
else
to_chat(L, "[name] is too injured for that.")
-
return
diff --git a/code/modules/mob/living/carbon/alien/humanoid/life.dm b/code/modules/mob/living/carbon/alien/humanoid/life.dm
index 6ccce6f2f66..b41d5a9705d 100644
--- a/code/modules/mob/living/carbon/alien/humanoid/life.dm
+++ b/code/modules/mob/living/carbon/alien/humanoid/life.dm
@@ -18,7 +18,6 @@
if (disabilities & EPILEPSY)
if ((prob(1) && paralysis < 10))
to_chat(src, "You have a seizure!")
-
Paralyse(10)
if (disabilities & COUGHING)
if ((prob(5) && paralysis <= 1))
diff --git a/code/modules/mob/living/carbon/alien/humanoid/queen.dm b/code/modules/mob/living/carbon/alien/humanoid/queen.dm
index 634bbf95117..5b2e19f011d 100644
--- a/code/modules/mob/living/carbon/alien/humanoid/queen.dm
+++ b/code/modules/mob/living/carbon/alien/humanoid/queen.dm
@@ -64,7 +64,6 @@
set category = "Alien"
if(locate(/obj/structure/alien/egg) in get_turf(src))
to_chat(src, "There's already an egg here.")
-
return
if(powerc(75,1))//Can't plant eggs on spess tiles. That's silly.
@@ -113,7 +112,6 @@
if(no_queen)
adjustToxLoss(-1000)
to_chat(src, "You begin to evolve!")
-
for(var/mob/O in viewers(src, null))
O.show_message(text("[src] begins to twist and contort!"), 1)
var/mob/living/carbon/alien/humanoid/empress/new_xeno = new(loc)
@@ -125,7 +123,6 @@
qdel(src)
else
to_chat(src, "We already have an alive empress.")
-
return
*/
\ No newline at end of file
diff --git a/code/modules/mob/living/carbon/alien/larva/emote.dm b/code/modules/mob/living/carbon/alien/larva/emote.dm
index c956e0b2489..b617a1fc883 100644
--- a/code/modules/mob/living/carbon/alien/larva/emote.dm
+++ b/code/modules/mob/living/carbon/alien/larva/emote.dm
@@ -16,7 +16,6 @@
if (src.client)
if (client.prefs.muted & MUTE_IC)
to_chat(src, "\red You cannot send IC messages (muted).")
-
return
if (src.client.handle_spam_prevention(message,MUTE_IC))
return
@@ -112,10 +111,8 @@
m_type = 2
if("help")
to_chat(src, "burp, choke, collapse, dance, drool, gasp, shiver, gnarl, jump, moan, nod, roll, scratch,\nscretch, shake, sign-#, sulk, sway, tail, twitch, whimper")
-
else
to_chat(src, text("Invalid Emote: []", act))
-
if ((message && src.stat == 0))
log_emote("[name]/[key] : [message]")
if (m_type & 1)
diff --git a/code/modules/mob/living/carbon/alien/larva/larva.dm b/code/modules/mob/living/carbon/alien/larva/larva.dm
index f12989c83e0..a513ab76a90 100644
--- a/code/modules/mob/living/carbon/alien/larva/larva.dm
+++ b/code/modules/mob/living/carbon/alien/larva/larva.dm
@@ -39,7 +39,6 @@
if(istype(tmob, /mob/living/carbon/human) && (FAT in tmob.mutations))
if(prob(70))
to_chat(src, "\red You fail to push [tmob]'s fat ass out of the way.")
-
now_pushing = 0
return
if(!(tmob.status_flags & CANPUSH))
@@ -126,7 +125,6 @@
/mob/living/carbon/alien/larva/attack_slime(mob/living/carbon/slime/M as mob)
if (!ticker)
to_chat(M, "You cannot attack people before the game has started.")
-
return
if(M.Victim)
@@ -152,12 +150,10 @@
/mob/living/carbon/alien/larva/attack_hand(mob/living/carbon/human/M as mob)
if (!ticker)
to_chat(M, "You cannot attack people before the game has started.")
-
return
if (istype(loc, /turf) && istype(loc.loc, /area/start))
to_chat(M, "No attacking people at spawn, you jackass.")
-
return
..()
@@ -200,12 +196,10 @@
/mob/living/carbon/alien/larva/attack_alien(mob/living/carbon/alien/humanoid/M as mob)
if (!ticker)
to_chat(M, "You cannot attack people before the game has started.")
-
return
if (istype(loc, /turf) && istype(loc.loc, /area/start))
to_chat(M, "No attacking people at spawn, you jackass.")
-
return
..()
@@ -231,7 +225,6 @@
updatehealth()
else
to_chat(M, "[name] is too injured for that.")
-
return
/mob/living/carbon/alien/larva/restrained()
diff --git a/code/modules/mob/living/carbon/alien/larva/powers.dm b/code/modules/mob/living/carbon/alien/larva/powers.dm
index a30f8ff9b2d..44351eb792a 100644
--- a/code/modules/mob/living/carbon/alien/larva/powers.dm
+++ b/code/modules/mob/living/carbon/alien/larva/powers.dm
@@ -10,20 +10,16 @@
if (layer != TURF_LAYER+0.2)
layer = TURF_LAYER+0.2
to_chat(src, text("You are now hiding."))
-
for(var/mob/O in oviewers(src, null))
if ((O.client && !( O.blinded )))
to_chat(O, text("[] scurries to the ground!", src))
-
else
layer = MOB_LAYER
to_chat(src, text("\green You have stopped hiding."))
-
for(var/mob/O in oviewers(src, null))
if ((O.client && !( O.blinded )))
to_chat(O, text("[] slowly peaks up from the ground...", src))
-
/mob/living/carbon/alien/larva/verb/evolve()
set name = "Evolve"
set desc = "Evolve into a fully grown Alien."
@@ -35,19 +31,13 @@
if(handcuffed || legcuffed)
to_chat(src, "\red You cannot evolve when you are cuffed.")
-
if(amount_grown >= max_grown) //TODO ~Carn
//green is impossible to read, so i made these blue and changed the formatting slightly
to_chat(src, "\blue You are growing into a beautiful alien! It is time to choose a caste.")
-
to_chat(src, "\blue There are three to choose from:")
-
to_chat(src, "Hunters \blue are strong and agile, able to hunt away from the hive and rapidly move through ventilation shafts. Hunters generate plasma slowly and have low reserves.")
-
to_chat(src, "Sentinels \blue are tasked with protecting the hive and are deadly up close and at a range. They are not as physically imposing nor fast as the hunters.")
-
to_chat(src, "Drones \blue are the working class, offering the largest plasma storage and generation. They are the only caste which may evolve again, turning into the dreaded alien queen.")
-
var/alien_caste = alert(src, "Please choose which alien caste you shall belong to.",,"Hunter","Sentinel","Drone")
var/mob/living/carbon/alien/humanoid/new_xeno
@@ -67,5 +57,4 @@
return
else
to_chat(src, "You are not fully grown.")
-
return
diff --git a/code/modules/mob/living/carbon/alien/life.dm b/code/modules/mob/living/carbon/alien/life.dm
index a49f7c0a6ea..93bf633093f 100644
--- a/code/modules/mob/living/carbon/alien/life.dm
+++ b/code/modules/mob/living/carbon/alien/life.dm
@@ -34,7 +34,6 @@
if(breath.temperature > (T0C + 66) && !(RESIST_COLD in mutations))
if(prob(20))
to_chat(src, "You feel a searing heat in your lungs!")
-
fire_alert = max(fire_alert, 1)
else
fire_alert = 0
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 860e5aed290..151ed93e3ef 100644
--- a/code/modules/mob/living/carbon/alien/special/alien_embryo.dm
+++ b/code/modules/mob/living/carbon/alien/special/alien_embryo.dm
@@ -12,10 +12,8 @@
..()
if(stage < 4)
to_chat(finder, "It's small and weak, barely the size of a fetus.")
-
else
to_chat(finder, "It's grown quite large, and writhes slightly as you look at it.")
-
if(prob(10))
AttemptGrow(0)
@@ -33,10 +31,8 @@
owner.emote("cough")
if(prob(2))
to_chat(owner, "Your throat feels sore.")
-
if(prob(2))
to_chat(owner, "Mucous runs down the back of your throat.")
-
if(4)
if(prob(2))
owner.emote("sneeze")
@@ -44,17 +40,14 @@
owner.emote("cough")
if(prob(4))
to_chat(owner, "Your muscles ache.")
-
if(prob(20))
owner.take_organ_damage(1)
if(prob(4))
to_chat(owner, "Your stomach hurts.")
-
if(prob(20))
owner.adjustToxLoss(1)
if(5)
to_chat(owner, "You feel something tearing its way out of your stomach...")
-
owner.adjustToxLoss(10)
/obj/item/organ/internal/body_egg/alien_embryo/egg_process()
@@ -107,7 +100,6 @@
new_xeno.mind.special_role = "Alien"
to_chat(new_xeno, sound('sound/voice/hiss5.ogg',0,0,0,100))//To get the player's attention
-
if(gib_on_success)
owner.gib()
else
diff --git a/code/modules/mob/living/carbon/alien/special/facehugger.dm b/code/modules/mob/living/carbon/alien/special/facehugger.dm
index fd04034f152..f0935c520ce 100644
--- a/code/modules/mob/living/carbon/alien/special/facehugger.dm
+++ b/code/modules/mob/living/carbon/alien/special/facehugger.dm
@@ -50,14 +50,11 @@ var/const/MAX_ACTIVE_TIME = 400
switch(stat)
if(DEAD,UNCONSCIOUS)
to_chat(user, "[src] is not moving.")
-
if(CONSCIOUS)
to_chat(user, "[src] seems to be active!")
-
if (sterile)
to_chat(user, "It looks like the proboscis has been removed.")
-
/obj/item/clothing/mask/facehugger/attackby(obj/item/O,mob/m, params)
if(O.force)
Die()
diff --git a/code/modules/mob/living/carbon/brain/MMI.dm b/code/modules/mob/living/carbon/brain/MMI.dm
index 106acb44814..6ad6a672b43 100644
--- a/code/modules/mob/living/carbon/brain/MMI.dm
+++ b/code/modules/mob/living/carbon/brain/MMI.dm
@@ -20,17 +20,14 @@
/obj/item/device/mmi/attackby(var/obj/item/O as obj, var/mob/user as mob, params)
if(istype(O, /obj/item/organ/internal/brain/crystal ))
to_chat(user, " This brain is too malformed to be able to use with the [src].")
-
return
if(istype(O,/obj/item/organ/internal/brain) && !brainmob) //Time to stick a brain in it --NEO
var/obj/item/organ/internal/brain/B = O
if(!B.brainmob)
to_chat(user, "You aren't sure where this brain came from, but you're pretty sure it's a useless brain.")
-
return
if(held_brain)
to_chat(user, "Somehow, this MMI still has a brain in it. Report this to the bug tracker.")
-
log_to_dd("[user] tried to stick a [O] into [src] in [get_area(src)], but the held brain variable wasn't cleared")
return
for(var/mob/V in viewers(src, null))
@@ -71,10 +68,8 @@
/obj/item/device/mmi/attack_self(mob/user as mob)
if(!brainmob)
to_chat(user, "You upend the MMI, but there's nothing in it.")
-
else
to_chat(user, "You unlock and upend the MMI, spilling the brain onto the floor.")
-
dropbrain(get_turf(user))
icon = 'icons/obj/assemblies.dmi'
icon_state = "mmi_empty"
@@ -107,7 +102,6 @@
if(isnull(held_brain))
log_to_dd("[src] at [loc] attempted to drop brain without a contained brain in [get_area(src)].")
to_chat(brainmob, "Your MMI did not contain a brain! We'll make a new one for you, but you'd best report this to the bugtracker!")
-
held_brain = new(dropspot) // Let's not ruin someone's round because of something dumb -- Crazylemon
held_brain.dna = brainmob.dna.Clone()
held_brain.name = "\the [brainmob.name]'s [initial(held_brain.name)]"
@@ -145,11 +139,9 @@
if(brainmob.stat)
to_chat(brainmob, "Can't do that while incapacitated or dead.")
-
radio.listening = radio.listening==1 ? 0 : 1
to_chat(brainmob, "Radio is [radio.listening==1 ? "now" : "no longer"] receiving broadcast.")
-
/obj/item/device/mmi/emp_act(severity)
if(!brainmob)
return
diff --git a/code/modules/mob/living/carbon/brain/brain_item.dm b/code/modules/mob/living/carbon/brain/brain_item.dm
index 1dda87d0c46..5fbfd6c5012 100644
--- a/code/modules/mob/living/carbon/brain/brain_item.dm
+++ b/code/modules/mob/living/carbon/brain/brain_item.dm
@@ -49,18 +49,15 @@
H.mind.transfer_to(brainmob)
to_chat(brainmob, "You feel slightly disoriented. That's normal when you're just a [initial(src.name)].")
-
callHook("debrain", list(brainmob))
/obj/item/organ/internal/brain/examine(mob/user) // -- TLE
..(user)
if(brainmob && brainmob.client)//if thar be a brain inside... the brain.
to_chat(user, "You can feel the small spark of life still left in this one.")
-
else
to_chat(user, "This one seems particularly lifeless. Perhaps it will regain some of its luster later..")
-
/obj/item/organ/internal/brain/remove(var/mob/living/user,special = 0)
name = "[dna.real_name]'s [initial(name)]"
diff --git a/code/modules/mob/living/carbon/brain/emote.dm b/code/modules/mob/living/carbon/brain/emote.dm
index 108ae12029b..fd2a4879c9d 100644
--- a/code/modules/mob/living/carbon/brain/emote.dm
+++ b/code/modules/mob/living/carbon/brain/emote.dm
@@ -15,17 +15,14 @@
if ("alarm")
to_chat(src, "You sound an alarm.")
-
message = "\The [src] sounds an alarm."
m_type = 2
if ("alert")
to_chat(src, "You let out a distressed noise.")
-
message = "\The [src] lets out a distressed noise."
m_type = 2
if ("notice")
to_chat(src, "You play a loud tone.")
-
message = "\The [src] plays a loud tone."
m_type = 2
if ("flash")
@@ -36,22 +33,18 @@
m_type = 1
if ("whistle")
to_chat(src, "You whistle.")
-
message = "\The [src] whistles."
m_type = 2
if ("beep")
to_chat(src, "You beep.")
-
message = "\The [src] beeps."
m_type = 2
if ("boop")
to_chat(src, "You boop.")
-
message = "\The [src] boops."
m_type = 2
if ("help")
to_chat(src, "alarm, alert, notice, flash,blink, whistle, beep, boop")
-
if(message && !stat)
..(act, m_type, message)
\ No newline at end of file
diff --git a/code/modules/mob/living/carbon/brain/life.dm b/code/modules/mob/living/carbon/brain/life.dm
index 507320b7ef6..857546732d7 100644
--- a/code/modules/mob/living/carbon/brain/life.dm
+++ b/code/modules/mob/living/carbon/brain/life.dm
@@ -6,11 +6,9 @@
updatehealth()
if(!container)
to_chat(src, "You feel weak.")
-
else
to_chat(src, "STATUS: CRITICAL AMOUNTS OF RADIATION DETECTED.")
-
switch(radiation)
if(0 to 49)
radiation--
@@ -25,10 +23,8 @@
radiation -= 5
if(!container)
to_chat(src, "You feel weak.")
-
else
to_chat(src, "STATUS: DANGEROUS AMOUNTS OF RADIATION DETECTED.")
-
updatehealth()
if(75 to 100)
diff --git a/code/modules/mob/living/carbon/brain/posibrain.dm b/code/modules/mob/living/carbon/brain/posibrain.dm
index d39da7e6c02..07251303a12 100644
--- a/code/modules/mob/living/carbon/brain/posibrain.dm
+++ b/code/modules/mob/living/carbon/brain/posibrain.dm
@@ -19,7 +19,6 @@
if(brainmob && !brainmob.key && searching == 0)
//Start the process of searching for a new user.
to_chat(user, "\blue You carefully locate the manual activation switch and start the positronic brain's boot process.")
-
icon_state = "posibrain-searching"
ghost_volunteers.Cut()
src.searching = 1
@@ -34,25 +33,20 @@
if(silenced)
silenced = 0
to_chat(user, "You toggle the speaker to 'on', on the [src].")
-
desc = "A cube of shining metal, four inches to a side and covered in shallow grooves. The speaker switch is set to 'on'."
if(brainmob && brainmob.key)
to_chat(brainmob, "Your internal speaker has been toggled to 'on'.")
-
else
silenced = 1
to_chat(user, "You toggle the speaker to 'off', on the [src].")
-
desc = "A cube of shining metal, four inches to a side and covered in shallow grooves. The speaker switch is set to 'off'."
if(brainmob && brainmob.key)
to_chat(brainmob, "Your internal speaker has been toggled to 'off'.")
-
/obj/item/device/mmi/posibrain/proc/request_player()
for(var/mob/dead/observer/O in player_list)
if(check_observer(O))
to_chat(O, "\A [src] has been activated. (Teleport | Sign Up)")
-
// if(ROLE_POSIBRAIN in O.client.prefs.be_special) The Guardian implementation looks cleaner
// question(O.client)
@@ -93,7 +87,6 @@
if(H.mind)
H.mind.transfer_to(brainmob)
to_chat(brainmob, "You feel slightly disoriented. That's normal when you're just a metal cube.")
-
icon_state = "posibrain-occupied"
return
@@ -103,11 +96,8 @@
src.name = "positronic brain ([src.brainmob.name])"
to_chat(src.brainmob, "You are a positronic brain, brought into existence on [station_name()].")
-
to_chat(src.brainmob, "As a synthetic intelligence, you answer to all crewmembers, as well as the AI.")
-
to_chat(src.brainmob, "Remember, the purpose of your existence is to serve the crew and the station. Above all else, do no harm.")
-
src.brainmob.mind.assigned_role = "Positronic Brain"
var/turf/T = get_turf_or_move(src.loc)
@@ -134,31 +124,24 @@
/obj/item/device/mmi/posibrain/proc/volunteer(var/mob/dead/observer/O)
if(!searching)
to_chat(O, "Not looking for a ghost, yet.")
-
return
if(!istype(O))
to_chat(O, "\red Error.")
-
return
if(O in ghost_volunteers)
to_chat(O, "\blue Removed from registration list.")
-
ghost_volunteers.Remove(O)
return
if(!check_observer(O))
to_chat(O, "\red You cannot be \a [src].")
-
return
if(O.has_enabled_antagHUD == 1 && config.antag_hud_restricted)
to_chat(O, "\red Upon using the antagHUD you forfeited the ability to join the round.")
-
return
if(jobban_isbanned(O, "Cyborg") || jobban_isbanned(O,"nonhumandept"))
to_chat(O, "\red You are job banned from this role.")
-
return
to_chat(O., "\blue You've been added to the list of ghosts that may become this [src]. Click again to unvolunteer.")
-
ghost_volunteers.Add(O)
@@ -180,7 +163,6 @@
msg += "*---------*"
to_chat(user, msg)
-
/obj/item/device/mmi/posibrain/emp_act(severity)
if(!src.brainmob)
return
diff --git a/code/modules/mob/living/carbon/brain/say.dm b/code/modules/mob/living/carbon/brain/say.dm
index 324debd7394..03d6906b876 100644
--- a/code/modules/mob/living/carbon/brain/say.dm
+++ b/code/modules/mob/living/carbon/brain/say.dm
@@ -10,7 +10,6 @@
var/obj/item/device/mmi/posibrain/P = container
if(P && P.silenced)
to_chat(usr, "You cannot speak, as your internal speaker has been toggled to 'off'.")
-
return
if(prob(emp_damage*4))
if(prob(10))//10% chane to drop the message entirely
diff --git a/code/modules/mob/living/carbon/carbon.dm b/code/modules/mob/living/carbon/carbon.dm
index fe363381b51..ac4bb584528 100644
--- a/code/modules/mob/living/carbon/carbon.dm
+++ b/code/modules/mob/living/carbon/carbon.dm
@@ -96,7 +96,6 @@
if(src.is_muzzled())
if(message)
to_chat(src, "The muzzle prevents you from vomiting!")
-
return 0
if(stun)
Stun(4)
@@ -195,7 +194,6 @@
if(istype(item_in_hand,/obj/item/weapon/twohanded))
if(item_in_hand:wielded == 1)
to_chat(usr, "Your other hand is too busy holding the [item_in_hand.name]")
-
return
src.hand = !( src.hand )
if(hud_used.l_hand_hud_object && hud_used.r_hand_hud_object)
@@ -263,10 +261,8 @@
if(staminaloss)
if(staminaloss > 30)
to_chat(src, "You're completely exhausted.")
-
else
to_chat(src, "You feel fatigued.")
-
if((SKELETON in H.mutations) && (!H.w_uniform) && (!H.wear_suit))
H.play_xylophone()
else
@@ -329,18 +325,15 @@
switch(damage)
if(1)
to_chat(src, "Your eyes sting a little.")
-
if(prob(40)) //waiting on carbon organs
E.damage += 1
if(2)
to_chat(src, "Your eyes burn.")
-
E.damage += rand(2, 4)
else
to_chat(src, "Your eyes itch and burn severely!")
-
E.damage += rand(12, 16)
if(E.damage > E.min_bruised_damage)
@@ -350,18 +343,14 @@
if(E.damage > (E.min_bruised_damage + E.min_broken_damage) / 2)
if(!(E.status & ORGAN_ROBOT))
to_chat(src, "Your eyes start to burn badly!")
-
else //snowflake conditions piss me off for the record
to_chat(src, "The flash blinds you!")
-
else if(E.damage >= E.min_broken_damage)
to_chat(src, "You can't see anything!")
-
else
to_chat(src, "Your eyes are really starting to hurt. This can't be good for you!")
-
return 1
else if(damage == 0) // just enough protection
@@ -369,7 +358,6 @@
to_chat(src, "Something bright flashes in the corner of your vision!")
-
/mob/living/carbon/proc/tintcheck()
return 0
@@ -399,17 +387,14 @@ var/list/ventcrawl_machinery = list(/obj/machinery/atmospherics/unary/vent_pump,
if(stat)
to_chat(src, "You must be conscious to do this!")
-
return
if(lying)
to_chat(src, "You can't vent crawl while you're stunned!")
-
return
if(buckled_mob)
to_chat(src, "You can't vent crawl with [buckled_mob] on you!")
-
return
var/obj/machinery/atmospherics/unary/vent_found
@@ -454,7 +439,6 @@ var/list/ventcrawl_machinery = list(/obj/machinery/atmospherics/unary/vent_pump,
if(failed)
to_chat(src, "You can't crawl around in the ventilation ducts with items!")
-
return
visible_message("[src] scrambles into the ventilation ducts!", "You climb into the ventilation system.")
@@ -465,7 +449,6 @@ var/list/ventcrawl_machinery = list(/obj/machinery/atmospherics/unary/vent_pump,
to_chat(src, "This ventilation duct is not connected to anything!")
-
/mob/living/proc/add_ventcrawl(obj/machinery/atmospherics/starting_machine)
if(!istype(starting_machine) || !starting_machine.returnPipenet())
return
@@ -677,7 +660,6 @@ var/list/ventcrawl_machinery = list(/obj/machinery/atmospherics/unary/vent_pump,
no_mask = 1
if(no_mask)
to_chat(usr, "[src] is not wearing a suitable mask or helmet!")
-
return
if(do_mob(usr, src, POCKET_STRIP_DELAY))
@@ -692,7 +674,6 @@ var/list/ventcrawl_machinery = list(/obj/machinery/atmospherics/unary/vent_pump,
no_mask2 = 1
if(no_mask2)
to_chat(usr, "[src] is not wearing a suitable mask or helmet!")
-
return
internal = ITEM
if(internals)
@@ -820,7 +801,6 @@ var/list/ventcrawl_machinery = list(/obj/machinery/atmospherics/unary/vent_pump,
spawn (t) step(src, src.dir)
stop_pulling()
to_chat(src, "You slipped on the [description]!")
-
playsound(src.loc, 'sound/misc/slip.ogg', 50, 1, -3)
if (stun)
Stun(stun)
@@ -852,23 +832,17 @@ var/list/ventcrawl_machinery = list(/obj/machinery/atmospherics/unary/vent_pump,
/mob/living/carbon/proc/selfFeed(var/obj/item/weapon/reagent_containers/food/toEat, fullness)
if(istype(toEat, /obj/item/weapon/reagent_containers/food/pill))
to_chat(src, "You [toEat.apply_method] [toEat].")
-
else
if (fullness <= 50)
to_chat(src, "You hungrily chew out a piece of [toEat] and gobble it!")
-
else if (fullness > 50 && fullness <= 150)
to_chat(src, "You hungrily begin to eat [toEat].")
-
else if (fullness > 150 && fullness <= 350)
to_chat(src, "You take a bite of [toEat].")
-
else if (fullness > 350 && fullness <= 550)
to_chat(src, "You unwillingly chew a bit of [toEat].")
-
else if (fullness > (550 * (1 + overeatduration / 2000))) // The more you eat - the more you can eat
to_chat(src, "You cannot force any more of [toEat] to go down your throat.")
-
return 0
return 1
diff --git a/code/modules/mob/living/carbon/give.dm b/code/modules/mob/living/carbon/give.dm
index e7828ea93f0..13e8fe153ea 100644
--- a/code/modules/mob/living/carbon/give.dm
+++ b/code/modules/mob/living/carbon/give.dm
@@ -5,18 +5,15 @@
if(!iscarbon(target)) //something is bypassing the give arguments, no clue what, adding a sanity check JIC
to_chat(usr, "Wait a second... \the [target] HAS NO HANDS! AHH!")//cheesy messages ftw
-
return
if(target.stat == 2 || usr.stat == 2|| target.client == null)
return
var/obj/item/I
if(!usr.hand && usr.r_hand == null)
to_chat(usr, " You don't have anything in your right hand to give to [target.name]")
-
return
if(usr.hand && usr.l_hand == null)
to_chat(usr, " You don't have anything in your left hand to give to [target.name]")
-
return
if(usr.hand)
I = usr.l_hand
@@ -26,7 +23,6 @@
return
if((I.flags & NODROP) || (I.flags & ABSTRACT))
to_chat(usr, "That's not exactly something you can give.")
-
return
if(target.r_hand == null || target.l_hand == null)
switch(alert(target,"[usr] wants to give you \a [I]?",,"Yes","No"))
@@ -35,21 +31,15 @@
return
if(!Adjacent(usr))
to_chat(usr, " You need to stay in reaching distance while giving an object.")
-
to_chat(target, " [usr.name] moved too far away.")
-
return
if((usr.hand && usr.l_hand != I) || (!usr.hand && usr.r_hand != I))
to_chat(usr, " You need to keep the item in your active hand.")
-
to_chat(target, " [usr.name] seem to have given up on giving \the [I.name] to you.")
-
return
if(target.r_hand != null && target.l_hand != null)
to_chat(target, " Your hands are full.")
-
to_chat(usr, " Their hands are full.")
-
return
else
usr.drop_item()
@@ -69,4 +59,3 @@
target.visible_message(" [usr.name] tried to hand [I.name] to [target.name] but [target.name] didn't want it.")
else
to_chat(usr, " [target.name]'s hands are full.")
-
diff --git a/code/modules/mob/living/carbon/human/emote.dm b/code/modules/mob/living/carbon/human/emote.dm
index 19d6d93cd5f..657d40983de 100644
--- a/code/modules/mob/living/carbon/human/emote.dm
+++ b/code/modules/mob/living/carbon/human/emote.dm
@@ -754,7 +754,6 @@
if (!left_hand_good && !right_hand_good)
to_chat(usr, "You need at least one hand in good working order to snap your fingers.")
-
return
message = "[src] snaps \his fingers."
@@ -771,9 +770,7 @@
// playsound(src.loc, 'sound/effects/fart.ogg', 50, 1, -3) //Admins still vote no to fun
if(locate(/obj/item/weapon/storage/bible) in get_turf(src))
to_chat(viewers(src), "[src] farts on the Bible!")
-
to_chat(viewers(src), "A mysterious force smites [src]!")
-
var/datum/effect/system/spark_spread/s = new /datum/effect/system/spark_spread
s.set_up(3, 1, src)
s.start()
@@ -815,7 +812,6 @@
emotelist += "\nSlime people specific emotes :- squish(es)-(none)/mob"
to_chat(src, emotelist)
-
else
to_chat(src, "\blue Unusable emote '[act]'. Say *help for a list.")
@@ -823,7 +819,6 @@
-
if(message) //Humans are special fucking snowflakes and have 735 lines of emotes, they get to handle their own emotes, not call the parent
log_emote("[name]/[key] : [message]")
diff --git a/code/modules/mob/living/carbon/human/examine.dm b/code/modules/mob/living/carbon/human/examine.dm
index 455fcbc2607..1eb906d5ec1 100644
--- a/code/modules/mob/living/carbon/human/examine.dm
+++ b/code/modules/mob/living/carbon/human/examine.dm
@@ -216,11 +216,9 @@
if(distance <= 1 && user.stat != 1)
if(pulse == PULSE_NONE)
to_chat(user, "[t_He] has no pulse[src.client ? "" : " and [t_his] soul has departed"]...")
-
else
to_chat(user, "[t_He] has a pulse!")
-
msg += ""
if(fire_stacks > 0)
msg += "[t_He] [t_is] covered in something flammable.\n"
@@ -488,7 +486,6 @@
to_chat(user, msg)
-
//Helper procedure. Called by /mob/living/carbon/human/examine() and /mob/living/carbon/human/Topic() to determine HUD access to security and medical records.
/proc/hasHUD(mob/M as mob, hudtype)
if(istype(M, /mob/living/carbon/human))
diff --git a/code/modules/mob/living/carbon/human/human.dm b/code/modules/mob/living/carbon/human/human.dm
index 216beb2ca65..5d27605b13c 100644
--- a/code/modules/mob/living/carbon/human/human.dm
+++ b/code/modules/mob/living/carbon/human/human.dm
@@ -169,7 +169,6 @@
if(tmob.pinned.len || (M.pulling == tmob && (tmob.restrained() && !M.restrained()) && M.stat == CONSCIOUS))
if(!(world.time % 5)) //tmob is pinned to wall, or is restrained and pulled by a concious unrestrained human
to_chat(src, "[tmob] is restrained, you cannot push past.")
-
now_pushing = 0
return 0
@@ -181,7 +180,6 @@
if(tmob.pulling == M && (M.restrained() && !tmob.restrained()) && tmob.stat == CONSCIOUS)
if(!(world.time % 5))
to_chat(src, "[tmob] is restraining [M], you cannot push past.")
-
now_pushing = 0
return 0
@@ -208,7 +206,6 @@
if(ishuman(tmob) && (FAT in tmob.mutations))
if(prob(40) && !(FAT in src.mutations))
to_chat(src, "You fail to push [tmob]'s fat ass out of the way.")
-
now_pushing = 0
return
@@ -759,7 +756,6 @@
heart_attack = 0
if(stat == CONSCIOUS)
to_chat(src, "You feel your heart beating again!")
-
. = ..()
@@ -776,7 +772,6 @@
var/slot = text2num(href_list["item"])
if(slot in check_obscured_slots())
to_chat(usr, "You can't reach that! Something is covering it.")
-
return
if(href_list["pockets"])
@@ -789,12 +784,9 @@
if(pocket_item && !(pocket_item.flags&ABSTRACT))
if(pocket_item.flags & NODROP)
to_chat(usr, "You try to empty [src]'s [pocket_side] pocket, it seems to be stuck!")
-
to_chat(usr, "You try to empty [src]'s [pocket_side] pocket.")
-
else if(place_item && place_item.mob_can_equip(src, pocket_id, 1) && !(place_item.flags&ABSTRACT))
to_chat(usr, "You try to place [place_item] into [src]'s [pocket_side] pocket.")
-
delay_denominator = 4
else
return
@@ -818,7 +810,6 @@
if(!thief_mode)
to_chat(src, "You feel your [pocket_side] pocket being fumbled with!")
-
if(href_list["set_sensor"])
if(istype(w_uniform, /obj/item/clothing/under))
var/obj/item/clothing/under/U = w_uniform
@@ -879,7 +870,6 @@
if(!modified)
to_chat(usr, "\red Unable to locate a data core entry for this person.")
-
if (href_list["secrecord"])
if(hasHUD(usr,"security"))
var/perpname = "wot"
@@ -910,7 +900,6 @@
if(!read)
to_chat(usr, "\red Unable to locate a data core entry for this person.")
-
if (href_list["secrecordComment"])
if(hasHUD(usr,"security"))
var/perpname = "wot"
@@ -933,18 +922,14 @@
var/counter = 1
while(R.fields[text("com_[]", counter)])
to_chat(usr, text("[]", R.fields[text("com_[]", counter)]))
-
counter++
if (counter == 1)
to_chat(usr, "No comment found")
-
to_chat(usr, "\[Add comment\]")
-
if(!read)
to_chat(usr, "\red Unable to locate a data core entry for this person.")
-
if (href_list["secrecordadd"])
if(hasHUD(usr,"security"))
var/perpname = "wot"
@@ -1015,7 +1000,6 @@
if(!modified)
to_chat(usr, "\red Unable to locate a data core entry for this person.")
-
if (href_list["medrecord"])
if(hasHUD(usr,"medical"))
var/perpname = "wot"
@@ -1047,7 +1031,6 @@
if(!read)
to_chat(usr, "\red Unable to locate a data core entry for this person.")
-
if (href_list["medrecordComment"])
if(hasHUD(usr,"medical"))
var/perpname = "wot"
@@ -1070,18 +1053,14 @@
var/counter = 1
while(R.fields[text("com_[]", counter)])
to_chat(usr, text("[]", R.fields[text("com_[]", counter)]))
-
counter++
if (counter == 1)
to_chat(usr, "No comment found")
-
to_chat(usr, "\[Add comment\]")
-
if(!read)
to_chat(usr, "\red Unable to locate a data core entry for this person.")
-
if (href_list["medrecordadd"])
if(hasHUD(usr,"medical"))
var/perpname = "wot"
@@ -1236,7 +1215,6 @@
fail_msg = "There is no exposed flesh or thin material [target_zone == "head" ? "on their head" : "on their body"] to inject into."
to_chat(user, "[fail_msg]")
-
/mob/living/carbon/human/proc/check_obscured_slots()
var/list/obscured = list()
@@ -1335,22 +1313,18 @@
germs++
if (germs == 100)
to_chat(world, "Reached stage 1 in [ticks] ticks")
-
if (germs > 100)
if (prob(10))
damage++
germs++
if (germs == 1000)
to_chat(world, "Reached stage 2 in [ticks] ticks")
-
if (germs > 1000)
damage++
germs++
if (germs == 2500)
to_chat(world, "Reached stage 3 in [ticks] ticks")
-
to_chat(world, "Mob took [tdamage] tox damage")
-
*/
//returns 1 if made bloody, returns 0 otherwise
@@ -1409,7 +1383,6 @@
msg ="[O] in your [organ.name] twists painfully as you move."
to_chat(src, msg)
-
organ.take_damage(rand(1,3), 0, 0)
if(!(organ.status & ORGAN_ROBOT)) //There is no blood in protheses.
organ.status |= ORGAN_BLEEDING
@@ -1435,24 +1408,19 @@
if(src.pulse)
to_chat(usr, "\blue [self ? "You have a" : "[src] has a"] pulse! Counting...")
-
else
to_chat(usr, "\red [src] has no pulse!")//it is REALLY UNLIKELY that a dead person would check his own pulse
-
return
to_chat(usr, "Don't move until counting is finished.")
-
var/time = world.time
sleep(60)
if(usr.l_move_time >= time) //checks if our mob has moved during the sleep()
to_chat(usr, "You moved while counting. Try again.")
-
else
to_chat(usr, "\blue [self ? "Your" : "[src]'s"] pulse is [src.get_pulse(GETPULSE_HAND)].")
-
/mob/living/carbon/human/proc/set_species(var/new_species, var/default_colour, var/delay_icon_update = 0)
var/datum/species/oldspecies = species
@@ -1560,13 +1528,11 @@
if (src.gloves)
to_chat(src, "Your [src.gloves] are getting in the way.")
-
return
var/turf/simulated/T = src.loc
if (!istype(T)) //to prevent doodling out of mechs and lockers
to_chat(src, "You cannot reach the floor.")
-
return
var/direction = input(src,"Which way?","Tile selection") as anything in list("Here","North","South","East","West")
@@ -1574,7 +1540,6 @@
T = get_step(T,text2dir(direction))
if (!istype(T))
to_chat(src, "You cannot doodle there.")
-
return
var/num_doodles = 0
@@ -1582,7 +1547,6 @@
num_doodles++
if (num_doodles > 4)
to_chat(src, "There is no space to write on!")
-
return
var/max_length = bloody_hands * 30 //tweeter style
@@ -1597,7 +1561,6 @@
message += "-"
to_chat(src, "You ran out of blood to write with!")
-
var/obj/effect/decal/cleanable/blood/writing/W = new(T)
W.message = message
W.add_fingerprint(src)
@@ -1610,7 +1573,6 @@
if(incapacitated())
to_chat(src, "You cannot change your monitor or optical display in your current state.")
-
return
if(species.flags & ALL_RPARTS) //If they can have a fully cybernetic body...
@@ -1649,7 +1611,6 @@
if(stat || paralysis || stunned || weakened || lying || restrained() || buckled)
to_chat(src, "You cannot leap in your current state.")
-
return
var/list/choices = list()
@@ -1669,7 +1630,6 @@
if(stat || paralysis || stunned || weakened || lying || restrained() || buckled)
to_chat(src, "You cannot leap in your current state.")
-
return
last_special = world.time + 75
@@ -1685,7 +1645,6 @@
if(!src.Adjacent(T))
to_chat(src, "\red You miss!")
-
return
T.Weaken(5)
@@ -1699,7 +1658,6 @@
if(l_hand)
if(r_hand)
to_chat(src, "\red You need to have one hand free to grab someone.")
-
return
else
use_hand = "right"
@@ -1726,18 +1684,15 @@
if(stat || paralysis || stunned || weakened || lying)
to_chat(src, "\red You cannot do that in your current state.")
-
return
var/obj/item/weapon/grab/G = locate() in src
if(!G || !istype(G))
to_chat(src, "\red You are not grabbing anyone.")
-
return
if(G.state < GRAB_AGGRESSIVE)
to_chat(src, "\red You must have an aggressive grab to gut your prey!")
-
return
last_special = world.time + 50
@@ -1843,7 +1798,6 @@
if(prob(current_size * 5) && hand.w_class >= ((11-current_size)/2) && unEquip(hand))
step_towards(hand, src)
to_chat(src, "\The [S] pulls \the [hand] from your grip!")
-
apply_effect(current_size * 3, IRRADIATE)
if(mob_negates_gravity())
return
@@ -1897,7 +1851,6 @@
/mob/living/carbon/human/selfFeed(var/obj/item/weapon/reagent_containers/food/toEat, fullness)
if(!check_has_mouth())
to_chat(src, "Where do you intend to put \the [toEat]? You don't have a mouth!")
-
return 0
return ..()
@@ -1905,7 +1858,6 @@
if(!check_has_mouth())
if(!((istype(toEat, /obj/item/weapon/reagent_containers/food/drinks) && (get_species() == "Machine"))))
to_chat(user, "Where do you intend to put \the [toEat]? \The [src] doesn't have a mouth!")
-
return 0
return ..()
@@ -1913,14 +1865,11 @@
if(!check_has_mouth())
if(!get_species() == "Machine")
to_chat(src, "Where do you intend to put \the [src]? You don't have a mouth!")
-
return 0
else
to_chat(src, "You pour a bit of liquid from [toDrink] into your connection port.")
-
else
to_chat(src, "You swallow a gulp of [toDrink].")
-
return 1
/mob/living/carbon/human/can_track(mob/living/user)
diff --git a/code/modules/mob/living/carbon/human/human_attackhand.dm b/code/modules/mob/living/carbon/human/human_attackhand.dm
index e24858cf552..25be2232432 100644
--- a/code/modules/mob/living/carbon/human/human_attackhand.dm
+++ b/code/modules/mob/living/carbon/human/human_attackhand.dm
@@ -1,12 +1,10 @@
/mob/living/carbon/human/attack_hand(mob/living/carbon/human/M as mob)
if (istype(loc, /turf) && istype(loc.loc, /area/start))
to_chat(M, "No attacking people at spawn, you jackass.")
-
return
if(frozen)
to_chat(M, "\red Do not touch Admin-Frozen people.")
-
return
var/mob/living/carbon/human/H = M
@@ -16,7 +14,6 @@
temp = H.organs_by_name["l_hand"]
if(!temp || !temp.is_usable())
to_chat(H, "\red You can't use your hand.")
-
return
..()
@@ -74,19 +71,15 @@
return 1
if(!H.check_has_mouth())
to_chat(H, "You don't have a mouth, you cannot perform CPR!")
-
return
if(!check_has_mouth())
to_chat(H, "They don't have a mouth, you cannot perform CPR!")
-
return
if((M.head && (M.head.flags & HEADCOVERSMOUTH)) || (M.wear_mask && (M.wear_mask.flags & MASKCOVERSMOUTH) && !M.wear_mask.mask_adjusted))
to_chat(M, "Remove your mask!")
-
return 0
if((head && (head.flags & HEADCOVERSMOUTH)) || (wear_mask && (wear_mask.flags & MASKCOVERSMOUTH) && !wear_mask.mask_adjusted))
to_chat(M, "Remove his mask!")
-
return 0
M.visible_message("\The [M] is trying to perform CPR on \the [src]!", \
@@ -100,15 +93,12 @@
"You perform CPR on \the [src].")
to_chat(src, "You feel a breath of fresh air enter your lungs. It feels good.")
-
to_chat(M, "Repeat at least every 7 seconds.")
-
add_logs(src, M, "CPRed")
return 1
else
to_chat(M, "You need to stay still while performing CPR!")
-
if(I_GRAB)
if(attacker_style && attacker_style.grab_act(H, src))
return 1
@@ -127,23 +117,18 @@
if(M.mind && M.mind.vampire && (M.mind in ticker.mode.vampires) && !M.mind.vampire.draining)
if((head && (head.flags & HEADCOVERSMOUTH)) || (wear_mask && (wear_mask.flags & MASKCOVERSMOUTH)))
to_chat(M, "Remove their mask!")
-
return 0
if((M.head && (M.head.flags & HEADCOVERSMOUTH)) || (M.wear_mask && (M.wear_mask.flags & MASKCOVERSMOUTH)))
to_chat(M, "Remove your mask!")
-
return 0
if(mind && mind.vampire && (mind in ticker.mode.vampires))
to_chat(M, "Your fangs fail to pierce [src.name]'s cold flesh")
-
return 0
if(SKELETON in mutations)
to_chat(M, "There is no blood in a skeleton!")
-
return 0
if(issmall(src) && !ckey) //Monkeyized humans are okay, humanized monkeys are okey, monkeys are not.
to_chat(M, "Blood from a monkey is useless!")
-
return 0
//we're good to suck the blood, blaah
M.mind.vampire.handle_bloodsucking(src)
diff --git a/code/modules/mob/living/carbon/human/human_damage.dm b/code/modules/mob/living/carbon/human/human_damage.dm
index db8772c1334..c0e58942cfc 100644
--- a/code/modules/mob/living/carbon/human/human_damage.dm
+++ b/code/modules/mob/living/carbon/human/human_damage.dm
@@ -155,7 +155,6 @@
var/obj/item/organ/external/O = pick(candidates)
O.mutate()
to_chat(src, "Something is not right with your [O.name]...")
-
O.add_autopsy_data("Mutation", amount)
return
@@ -165,7 +164,6 @@
if(O.status & ORGAN_MUTATED)
O.unmutate()
to_chat(src, "Your [O.name] is shaped normally again.")
-
return
@@ -176,7 +174,6 @@
to_chat(src, "Your [O.name] is shaped normally again.")
-
// Defined here solely to take species flags into account without having to recast at mob/living level.
/mob/living/carbon/human/getOxyLoss()
if(species.flags & NO_BREATHE)
diff --git a/code/modules/mob/living/carbon/human/human_defense.dm b/code/modules/mob/living/carbon/human/human_defense.dm
index 8ea0a6fc4e8..5f8e44f840a 100644
--- a/code/modules/mob/living/carbon/human/human_defense.dm
+++ b/code/modules/mob/living/carbon/human/human_defense.dm
@@ -177,14 +177,11 @@ emp_act
return
if(!(affecting.status & ORGAN_ROBOT))
to_chat(user, "\red That limb isn't robotic.")
-
return
if(affecting.sabotaged)
to_chat(user, "\red [src]'s [affecting.name] is already sabotaged!")
-
else
to_chat(user, "\red You sneakily slide the card into the dataport on [src]'s [affecting.name] and short out the safeties.")
-
affecting.sabotaged = 1
return 1
@@ -202,7 +199,6 @@ emp_act
src.loc.add_blood(src)
--src.meatleft
to_chat(user, "\red You hack off a chunk of meat from [src.name]")
-
if(!src.meatleft)
src.attack_log += "\[[time_stamp()]\] Was chopped up into meat by [key_name(user)]"
user.attack_log += "\[[time_stamp()]\] Chopped up [key_name(src)] into meat"
@@ -217,7 +213,6 @@ emp_act
var/obj/item/organ/external/affecting = get_organ(ran_zone(user.zone_sel.selecting))
if(!affecting || affecting.is_stump() || (affecting.status & ORGAN_DESTROYED))
to_chat(user, "They are missing that limb!")
-
return 1
var/hit_area = affecting.name
diff --git a/code/modules/mob/living/carbon/human/inventory.dm b/code/modules/mob/living/carbon/human/inventory.dm
index 70effa20c9b..568de281cf1 100644
--- a/code/modules/mob/living/carbon/human/inventory.dm
+++ b/code/modules/mob/living/carbon/human/inventory.dm
@@ -8,7 +8,6 @@
var/obj/item/weapon/storage/S = H.get_inactive_hand()
if(!I)
to_chat(H, "You are not holding anything to equip.")
-
return
if(istype(I, /obj/item/clothing/head/helmet/space/rig)) // If the item to be equipped is a rigid suit helmet
@@ -16,7 +15,6 @@
if(C.rig_restrict_helmet)
to_chat(src, "\red You must fasten the helmet to a hardsuit first. (Target the head and use on a hardsuit)")// Stop eva helms equipping.
-
return 0
if(H.equip_to_appropriate_slot(I))
@@ -40,7 +38,6 @@
to_chat(H, "\red You are unable to equip that.")
-
/mob/living/carbon/human/proc/equip_in_one_of_slots(obj/item/W, list/slots, del_on_fail = 1)
for (var/slot in slots)
if (equip_to_slot_if_possible(W, slots[slot], del_on_fail = 0))
@@ -306,7 +303,6 @@
uniform.attackby(W,src)
else
to_chat(src, "You are trying to equip this item to an unsupported inventory slot. Report this to a coder!")
-
return
/mob/living/carbon/human/put_in_hands(obj/item/W)
@@ -421,7 +417,6 @@
if(!(I.flags & ONESIZEFITSALL))
if(!disable_warning)
to_chat(src, "You're too fat to wear the [I].")
-
return 0
switch(slot)
@@ -469,7 +464,6 @@
if(!w_uniform)
if(!disable_warning)
to_chat(src, "You need a jumpsuit before you can attach this [name].")
-
return 0
if(!(I.slot_flags & SLOT_BELT))
return
@@ -514,7 +508,6 @@
if(!w_uniform)
if(!disable_warning)
to_chat(src, "You need a jumpsuit before you can attach this [name].")
-
return 0
if(!(I.slot_flags & SLOT_ID))
return 0
@@ -525,7 +518,6 @@
if(!w_uniform)
if(!disable_warning)
to_chat(src, "You need a jumpsuit before you can attach this [name].")
-
return 0
if(!(I.slot_flags & SLOT_PDA))
return 0
@@ -538,7 +530,6 @@
if(!w_uniform)
if(!disable_warning)
to_chat(src, "You need a jumpsuit before you can attach this [name].")
-
return 0
if(I.slot_flags & SLOT_DENYPOCKET)
return
@@ -552,7 +543,6 @@
if(!w_uniform)
if(!disable_warning)
to_chat(src, "You need a jumpsuit before you can attach this [name].")
-
return 0
if(I.slot_flags & SLOT_DENYPOCKET)
return 0
@@ -567,17 +557,14 @@
if(!wear_suit)
if(!disable_warning)
to_chat(src, "You need a suit before you can attach this [name].")
-
return 0
if(!wear_suit.allowed)
if(!disable_warning)
to_chat(src, "You somehow have a suit with no defined allowed items for suit storage, stop that.")
-
return 0
if(I.w_class > 4)
if(!disable_warning)
to_chat(src, "The [name] is too big to attach.")
-
return 0
if(istype(I, /obj/item/device/pda) || istype(I, /obj/item/weapon/pen) || is_type_in_list(I, wear_suit.allowed))
return 1
@@ -604,13 +591,11 @@
if(!w_uniform)
if(!disable_warning)
to_chat(src, "You need a jumpsuit before you can attach this [name].")
-
return 0
var/obj/item/clothing/under/uniform = w_uniform
if(uniform.accessories.len && !uniform.can_attach_accessory(src))
if(!disable_warning)
to_chat(src, "You already have an accessory of this type attached to your [uniform].")
-
return 0
if(!(I.slot_flags & SLOT_TIE))
return 0
diff --git a/code/modules/mob/living/carbon/human/life.dm b/code/modules/mob/living/carbon/human/life.dm
index 7db1d26a8fc..c2ec65368a4 100644
--- a/code/modules/mob/living/carbon/human/life.dm
+++ b/code/modules/mob/living/carbon/human/life.dm
@@ -188,7 +188,6 @@
reagents.add_reagent("radium", rads/10)
if( prob(10) )
to_chat(src, "You feel relaxed.")
-
return
if (radiation > 100)
@@ -197,7 +196,6 @@
Weaken(10)
if(!lying)
to_chat(src, "You feel weak.")
-
emote("collapse")
if (radiation < 0)
@@ -232,7 +230,6 @@
Weaken(3)
if(!lying)
to_chat(src, "You feel weak.")
-
emote("collapse")
updatehealth()
@@ -242,7 +239,6 @@
damage = 3
if(prob(1))
to_chat(src, "You mutate!")
-
randmutb(src)
domutcheck(src,null)
emote("gasp")
@@ -254,7 +250,6 @@
damage = 5
if(prob(1))
to_chat(src, "You mutate!")
-
randmutb(src)
domutcheck(src,null)
emote("gasp")
@@ -399,7 +394,6 @@
var/loc_temp = get_temperature(environment)
// to_chat(world, "Loc temp: [loc_temp] - Body temp: [bodytemperature] - Fireloss: [getFireLoss()] - Thermal protection: [get_thermal_protection()] - Fire protection: [thermal_protection + add_fire_protection(loc_temp)] - Heat capacity: [environment_heat_capacity] - Location: [loc] - src: [src]")
-
//Body temperature is adjusted in two steps. Firstly your body tries to stabilize itself a bit.
if(stat != 2)
stabilize_temperature_from_calories()
@@ -705,7 +699,6 @@
if(FAT in mutations)
if(overeatduration < 100)
to_chat(src, "You feel fit again!")
-
mutations.Remove(FAT)
update_mutantrace(0)
update_mutations(0)
@@ -714,7 +707,6 @@
else
if(overeatduration > 500)
to_chat(src, "You suddenly feel blubbery!")
-
mutations.Add(FAT)
update_mutantrace(0)
update_mutations(0)
@@ -897,19 +889,16 @@
if(remoteview_target.stat != CONSCIOUS)
to_chat(src, "Your psy-connection grows too faint to maintain!")
-
isRemoteObserve = 0
if(PSY_RESIST in remoteview_target.mutations)
to_chat(src, "Your mind is shut out!")
-
isRemoteObserve = 0
// Not on the station or mining?
var/turf/temp_turf = get_turf(remoteview_target)
if(!temp_turf in config.contact_levels)
to_chat(src, "Your psy-connection grows too faint to maintain!")
-
isRemoteObserve = 0
if(remote_view)
@@ -982,7 +971,6 @@
if(shock_stage == 10)
to_chat(src, ""+pick("It hurts so much!", "You really need some painkillers..", "Dear god, the pain!"))
-
if(shock_stage >= 30)
if(shock_stage == 30) custom_emote(1,"is having trouble keeping their eyes open.")
eye_blurry = max(2, eye_blurry)
@@ -991,24 +979,20 @@
if(shock_stage == 40)
to_chat(src, ""+pick("The pain is excrutiating!", "Please, just end the pain!", "Your whole body is going numb!"))
-
if(shock_stage >=60)
if(shock_stage == 60) custom_emote(1,"falls limp.")
if (prob(2))
to_chat(src, ""+pick("The pain is excrutiating!", "Please, just end the pain!", "Your whole body is going numb!"))
-
Weaken(20)
if(shock_stage >= 80)
if (prob(5))
to_chat(src, ""+pick("The pain is excrutiating!", "Please, just end the pain!", "Your whole body is going numb!"))
-
Weaken(20)
if(shock_stage >= 120)
if (prob(2))
to_chat(src, ""+pick("You black out!", "You feel like you could die any moment now.", "You're about to lose consciousness."))
-
Paralyse(5)
if(shock_stage == 150)
@@ -1099,7 +1083,6 @@
if(H.species && H.species.flags & NO_BREATHE)
return //no puking if you can't smell!
to_chat(H, "
[client.prefs.metadata]")
-
else
to_chat(usr, "[src] does not have any stored infomation!")
-
else
to_chat(usr, "OOC Metadata is not supported by this server!")
-
return
/mob/living/Move(atom/newloc, direct)
@@ -577,10 +571,8 @@
var/mob/living/captive_brain/H = src
to_chat(H, "\red You begin doggedly resisting the parasite's control (this will take approximately sixty seconds).")
-
to_chat(B.host, "\red You feel the captive mind of [src] begin to resist your control.")
-
spawn(rand(350,450)+B.host.brainloss)
if(!B || !B.controlling)
@@ -588,10 +580,8 @@
B.host.adjustBrainLoss(rand(5,10))
to_chat(H, "\red With an immense exertion of will, you regain control of your body!")
-
to_chat(B.host, "\red You feel control of the host brain ripped from your grasp, and retract your probosci before the wild neural impulses can damage you.")
-
B.detatch()
verbs -= /mob/living/carbon/proc/release_control
@@ -644,7 +634,6 @@
C.last_special = world.time + CLICK_CD_BREAKOUT
to_chat(C, "\red You attempt to unbuckle yourself. (This will take around 2 minutes and you need to stay still)")
-
for(var/mob/O in viewers(L))
O.show_message("\red [usr] attempts to unbuckle themself!", 1)
@@ -655,7 +644,6 @@
for(var/mob/O in viewers(C))
O.show_message("\red [usr] manages to unbuckle themself!", 1)
to_chat(C, "\blue You successfully unbuckle yourself.")
-
C.buckled.user_unbuckle_mob(C,C)
else
@@ -699,7 +687,6 @@
displaytime = 5
to_chat(CM, "\red You attempt to remove \the [HC]. (This will take around [displaytime] [hulklien ? "seconds" : "minute[displaytime==1 ? "" : "s"]"] and you need to stand still)")
-
for(var/mob/O in viewers(CM))
O.show_message( "\red [usr] attempts to [hulklien ? "break" : "remove"] \the [HC]!", 1)
spawn(0)
@@ -712,7 +699,6 @@
to_chat(CM, "\blue You successfully [hulklien ? "break" : "remove"] \the [CM.handcuffed].")
-
if(hulklien)
CM.say(pick(";RAAAAAAAARGH!", ";HNNNNNNNNNGGGGGGH!", ";GWAAAAAAAARRRHHH!", "NNNNNNNNGGGGGGGGHH!", ";AAAAAAARRRGH!" ))
qdel(CM.handcuffed)
@@ -745,7 +731,6 @@
to_chat(CM, "\red You attempt to remove \the [HC]. (This will take around [displaytime] [hulklien ? "seconds" : "minute[displaytime==1 ? "" : "s"]"] and you need to stand still)")
-
for(var/mob/O in viewers(CM))
O.show_message( "\red [usr] attempts to [hulklien ? "break" : "remove"] \the [HC]!", 1)
@@ -758,7 +743,6 @@
to_chat(CM, "\blue You successfully [hulklien ? "break" : "remove"] \the [CM.legcuffed].")
-
if(!hulklien)
CM.unEquip(CM.legcuffed)
@@ -797,7 +781,6 @@
/mob/living/proc/Exhaust()
to_chat(src, "You're too exhausted to keep going...")
-
Weaken(5)
/mob/living/proc/get_visible_name()
@@ -842,7 +825,6 @@
/mob/living/stripPanelUnequip(obj/item/what, mob/who, where, var/silent = 0)
if(what.flags & NODROP)
to_chat(src, "You can't remove \the [what.name], it appears to be stuck!")
-
return
if(!silent)
who.visible_message("[src] tries to remove [who]'s [what.name].", \
@@ -861,12 +843,10 @@
what = src.get_active_hand()
if(what && (what.flags & NODROP))
to_chat(src, "You can't put \the [what.name] on [who], it's stuck to your hand!")
-
return
if(what)
if(!what.mob_can_equip(who, where, 1))
to_chat(src, "\The [what.name] doesn't fit in that place!")
-
return
if(!silent)
visible_message("[src] tries to put [what] on [who].")
diff --git a/code/modules/mob/living/living_defense.dm b/code/modules/mob/living/living_defense.dm
index 22a5fe7435e..b48aa36a64c 100644
--- a/code/modules/mob/living/living_defense.dm
+++ b/code/modules/mob/living/living_defense.dm
@@ -18,25 +18,19 @@
armor = max(0, armor - armour_penetration)
if(penetrated_text)
to_chat(src, "[penetrated_text]")
-
else
to_chat(src, "Your armor was penetrated!")
-
if(armor >= 100)
if(absorb_text)
to_chat(src, "[absorb_text]")
-
else
to_chat(src, "Your armor absorbs the blow!")
-
else if(armor > 0)
if(soften_text)
to_chat(src, "[soften_text]")
-
else
to_chat(src, "Your armor softens the blow!")
-
return armor
//if null is passed for def_zone, then this should return something appropriate for all zones (e.g. area effect damage)
@@ -51,7 +45,6 @@
C.attack_self(src)//Should shut it off
update_icons()
to_chat(src, "\blue Your [C.name] was disrupted!")
-
Stun(2)
//Armor
@@ -249,7 +242,6 @@
for(var/obj/item/weapon/grab/G in src.grabbed_by)
if(G.assailant == user)
to_chat(user, "You already grabbed [src].")
-
return
add_logs(src, user, "grabbed", addition="passively")
@@ -257,7 +249,6 @@
var/obj/item/weapon/grab/G = new /obj/item/weapon/grab(user, src)
if(buckled)
to_chat(user, "You cannot grab [src], \he is buckled in!")
-
if(!G) //the grab will delete itself in New if src is anchored
return 0
user.put_in_active_hand(G)
diff --git a/code/modules/mob/living/login.dm b/code/modules/mob/living/login.dm
index cd32fd22204..a64126db27a 100644
--- a/code/modules/mob/living/login.dm
+++ b/code/modules/mob/living/login.dm
@@ -9,7 +9,6 @@
//Vents
if(ventcrawler)
to_chat(src, "You can ventcrawl! Use alt+click on vents to quickly travel about the station.")
-
//Should update regardless of if we can ventcrawl, since we can end up in pipes in other ways.
update_pipe_vision()
diff --git a/code/modules/mob/living/say.dm b/code/modules/mob/living/say.dm
index 6caf2fa042b..ef2cc344cdf 100644
--- a/code/modules/mob/living/say.dm
+++ b/code/modules/mob/living/say.dm
@@ -120,7 +120,6 @@ proc/get_radio_key_from_channel(var/channel)
if(client)
if(client.prefs.muted & MUTE_IC)
to_chat(src, "\red You cannot speak in IC (Muted).")
-
return
message = trim_strip_html_properly(message)
@@ -162,7 +161,6 @@ proc/get_radio_key_from_channel(var/channel)
if(is_muzzled())
to_chat(src, "You're muzzled and cannot speak!")
-
return
message = trim_left(message)
@@ -315,7 +313,6 @@ proc/get_radio_key_from_channel(var/channel)
if(act == "help") return //except help, because help is handled individually
to_chat(src, "\blue Unusable emote '[act]'. Say *help for a list.")
-
/mob/living/whisper(message as text)
message = trim_strip_html_properly(message)
@@ -341,7 +338,6 @@ proc/get_radio_key_from_channel(var/channel)
if(client)
if(client.prefs.muted & MUTE_IC)
to_chat(src, "You cannot speak in IC (Muted).")
-
return
if(stat)
@@ -351,7 +347,6 @@ proc/get_radio_key_from_channel(var/channel)
if(is_muzzled())
to_chat(src, "You're muzzled and cannot speak!")
-
return
var/message_range = 1
diff --git a/code/modules/mob/living/silicon/ai/ai.dm b/code/modules/mob/living/silicon/ai/ai.dm
index d25f9a767c9..b037cf1aa75 100644
--- a/code/modules/mob/living/silicon/ai/ai.dm
+++ b/code/modules/mob/living/silicon/ai/ai.dm
@@ -202,18 +202,12 @@ var/list/ai_verbs_default = list(
/mob/living/silicon/ai/proc/on_mob_init()
to_chat(src, "You are playing the station's AI. The AI cannot move, but can interact with many objects while viewing them (through cameras).")
-
to_chat(src, "To look at other parts of the station, click on yourself to get a camera menu.")
-
to_chat(src, "While observing through a camera, you can use most (networked) devices which you can see, such as computers, APCs, intercoms, doors, etc.")
-
to_chat(src, "To use something, simply click on it.")
-
to_chat(src, "Use say :b to speak to your cyborgs through binary. Use say :h to speak from an active holopad.")
-
to_chat(src, "For department channels, use the following say commands:")
-
var/radio_text = ""
for(var/i = 1 to common_radio.channels.len)
var/channel = common_radio.channels[i]
@@ -224,12 +218,10 @@ var/list/ai_verbs_default = list(
to_chat(src, radio_text)
-
if (!(ticker && ticker.mode && (mind in ticker.mode.malf_ai)))
show_laws()
to_chat(src, "These laws may be changed by other players, or by you being the traitor.")
-
job = "AI"
/mob/living/silicon/ai/rename_character(oldname, newname)
@@ -339,7 +331,6 @@ var/list/ai_verbs_default = list(
else icon_state = "ai"
//else
// to_chat(usr, "You can only change your display once!")
-
//return
@@ -368,7 +359,6 @@ var/list/ai_verbs_default = list(
if(message_cooldown)
to_chat(src, "Please allow one minute to pass between announcements.")
-
return
var/input = input(usr, "Please write a message to announce to the station crew.", "A.I. Announcement") as message|null
@@ -430,7 +420,6 @@ var/list/ai_verbs_default = list(
to_chat(src, "[anchored ? "You are now anchored." : "You are now unanchored."]")
-
/mob/living/silicon/ai/update_canmove()
return 0
@@ -512,7 +501,6 @@ var/list/ai_verbs_default = list(
else
to_chat(src, "Unable to locate the holopad.")
-
if(href_list["say_word"])
play_vox_word(href_list["say_word"], null, src)
return
@@ -523,7 +511,6 @@ var/list/ai_verbs_default = list(
ai_actual_track(target)
else
to_chat(src, "Target is not on or near any active cameras on the station.")
-
return
if (href_list["trackbot"])
@@ -532,7 +519,6 @@ var/list/ai_verbs_default = list(
ai_actual_track(target)
else
to_chat(src, "Target is not on or near any active cameras on the station.")
-
return
if (href_list["callbot"]) //Command a bot to move to a selected location.
@@ -541,7 +527,6 @@ var/list/ai_verbs_default = list(
return //True if there is no bot found, the bot is manually emagged, or the AI is carded with wireless off.
waypoint_mode = 1
to_chat(src, "Set your waypoint by clicking on a valid location free of obstructions.")
-
return
if (href_list["interface"]) //Remotely connect to a bot!
@@ -558,7 +543,6 @@ var/list/ai_verbs_default = list(
var/obj/mecha/M = locate(href_list["ai_take_control"])
if(controlled_mech)
to_chat(src, "You are already loaded into an onboard computer!")
-
return
if(M)
M.transfer_ai(AI_MECH_HACK,src, usr) //Called om the mech itself.
@@ -570,13 +554,11 @@ var/list/ai_verbs_default = list(
A.cameraFollow = target
to_chat(A, "Now tracking [target.name] on camera.")
-
if (usr.machine == null)
usr.machine = usr
while (src.cameraFollow == target)
to_chat(usr, "Target is not on or near any active cameras on the station. We'll check again in 5 seconds (unless you use the cancel-camera verb).")
-
sleep(40)
continue
@@ -593,12 +575,10 @@ var/list/ai_verbs_default = list(
/mob/living/silicon/ai/attack_alien(mob/living/carbon/alien/humanoid/M as mob)
if (!ticker)
to_chat(M, "You cannot attack people before the game has started.")
-
return
if (istype(loc, /turf) && istype(loc.loc, /area/start))
to_chat(M, "No attacking people at spawn, you jackass.")
-
return
switch(M.a_intent)
@@ -651,7 +631,6 @@ var/list/ai_verbs_default = list(
set desc = "Wirelessly control various automatic robots."
if(stat == 2)
to_chat(src, "Critical error. System offline.")
-
return
if(check_unable(AI_CHECK_WIRELESS | AI_CHECK_RADIO))
@@ -689,7 +668,6 @@ var/list/ai_verbs_default = list(
else
to_chat(src, "Selected location is not visible.")
-
/mob/living/silicon/ai/proc/call_bot(var/turf/waypoint)
if(!Bot)
@@ -697,7 +675,6 @@ var/list/ai_verbs_default = list(
if(Bot.calling_ai && Bot.calling_ai != src) //Prevents an override if another AI is controlling this bot.
to_chat(src, "Interface error. Unit is already in use.")
-
return
Bot.call_bot(src, waypoint)
@@ -733,7 +710,6 @@ var/list/ai_verbs_default = list(
if(usr.stat == 2)
to_chat(usr, "You can't change your camera network because you are dead!")
-
return
var/mob/living/silicon/ai/U = usr
@@ -766,7 +742,6 @@ var/list/ai_verbs_default = list(
U.eyeobj.setLoc(get_turf(C))
break
to_chat(src, "\blue Switched to [network] camera network.")
-
//End of code by Mord_Sith
@@ -782,7 +757,6 @@ var/list/ai_verbs_default = list(
if(usr.stat == 2)
to_chat(usr, "You cannot change your emotional status because you are dead!")
-
return
if(check_unable())
@@ -859,7 +833,6 @@ var/list/ai_verbs_default = list(
var/obj/machinery/power/apc/apc = src.loc
if(!istype(apc))
to_chat(src, "\blue You are already in your Main Core.")
-
return
apc.malfvacate()
@@ -877,7 +850,6 @@ var/list/ai_verbs_default = list(
if (!camera_light_on)
to_chat(src, "Camera lights deactivated.")
-
for (var/obj/machinery/camera/C in lit_cameras)
C.set_light(0)
lit_cameras = list()
@@ -888,7 +860,6 @@ var/list/ai_verbs_default = list(
to_chat(src, "Camera lights activated.")
-
/mob/living/silicon/ai/proc/sensor_mode()
set name = "Set Sensor Augmentation"
set desc = "Augment visual feed with internal sensor overlays."
@@ -905,7 +876,6 @@ var/list/ai_verbs_default = list(
arrivalmsg = newmsg
to_chat(usr, "The arrival message has been successfully changed.")
-
// Handled camera lighting, when toggled.
// It will get the nearest camera from the eyeobj, lighting it.
@@ -961,7 +931,6 @@ var/list/ai_verbs_default = list(
return
to_chat(src, "Accessing Subspace Transceiver control...")
-
if (src.aiRadio)
src.aiRadio.interact(src)
@@ -974,15 +943,12 @@ var/list/ai_verbs_default = list(
var/obj/item/weapon/card/id/id = H.wear_id
if(istype(id) && id.is_untrackable())
to_chat(src, "Unable to locate an airlock")
-
return
if(H.digitalcamo)
to_chat(src, "Unable to locate an airlock")
-
return
if (!near_camera(target))
to_chat(src, "Target is not near any active cameras.")
-
return
var/obj/machinery/door/airlock/tobeopened
var/dist = -1
@@ -991,53 +957,42 @@ var/list/ai_verbs_default = list(
if(dist < 0)
dist = get_dist(D, target)
// to_chat(world, dist)
-
tobeopened = D
else
if(dist > get_dist(D, target))
dist = get_dist(D, target)
// to_chat(world, dist)
-
tobeopened = D
// to_chat(world, "found [tobeopened.name] closer")
-
else
// to_chat(world, "[D.name] not close enough | [get_dist(D, target)] | [dist]")
-
if(tobeopened)
switch(alert(src, "Do you want to open \the [tobeopened] for [target]?","Doorknob_v2a.exe","Yes","No"))
if("Yes")
var/nhref = "src=\ref[tobeopened];aiEnable=7"
tobeopened.Topic(nhref, params2list(nhref), tobeopened, 1)
to_chat(src, "\blue You've opened \the [tobeopened] for [target].")
-
if("No")
to_chat(src, "\red You deny the request.")
-
else
to_chat(src, "\red You've failed to open an airlock for [target]")
-
return
/mob/living/silicon/ai/proc/check_unable(var/flags = 0)
if(stat == DEAD)
to_chat(usr, "You are dead!")
-
return 1
if(lacks_power())
to_chat(usr, "Power systems failure!")
-
return 1
if((flags & AI_CHECK_WIRELESS) && src.control_disabled)
to_chat(usr, "Wireless control is disabled!")
-
return 1
if((flags & AI_CHECK_RADIO) && src.aiRadio.disabledAi)
to_chat(src, "System Error - Transceiver Disabled!")
-
return 1
return 0
@@ -1051,12 +1006,10 @@ var/list/ai_verbs_default = list(
if(!mind)
to_chat(user, "No intelligence patterns detected.")//No more magical carding of empty cores, AI RETURN TO BODY!!!11
-
return
if (mind.special_role == "malfunction") //AI MALF!!
to_chat(user, "ERROR: Remote transfer interface disabled.")//Do ho ho ho~
-
return
new /obj/structure/AIcore/deactivated(loc)//Spawns a deactivated terminal at AI location.
aiRestorePowerRoutine = 0//So the AI initially has power.
@@ -1064,10 +1017,8 @@ var/list/ai_verbs_default = list(
aiRadio.disabledAi = 1 //No talking on the built-in radio for you either!
loc = card//Throw AI into the card.
to_chat(src, "You have been downloaded to a mobile storage device. Remote device connection severed.")
-
to_chat(user, "Transfer successful: [name] ([rand(1000,9999)].exe) removed from host terminal and stored within local memory.")
-
// Pass lying down or getting up to our pet human, if we're in a rig.
/mob/living/silicon/ai/lay_down()
set name = "Rest"
diff --git a/code/modules/mob/living/silicon/ai/examine.dm b/code/modules/mob/living/silicon/ai/examine.dm
index d031aad02b0..d65e6e0d7d8 100644
--- a/code/modules/mob/living/silicon/ai/examine.dm
+++ b/code/modules/mob/living/silicon/ai/examine.dm
@@ -24,7 +24,6 @@
msg += "*---------*"
to_chat(user, msg)
-
user.showLaws(src)
diff --git a/code/modules/mob/living/silicon/ai/freelook/cameranet.dm b/code/modules/mob/living/silicon/ai/freelook/cameranet.dm
index 3967c329a73..b18c011bb23 100644
--- a/code/modules/mob/living/silicon/ai/freelook/cameranet.dm
+++ b/code/modules/mob/living/silicon/ai/freelook/cameranet.dm
@@ -117,7 +117,6 @@ var/datum/cameranet/cameranet = new()
// to_chat(world, "X1: [x1] - Y1: [y1] - X2: [x2] - Y2: [y2]")
-
for(var/x = x1; x <= x2; x += CHUNK_SIZE)
for(var/y = y1; y <= y2; y += CHUNK_SIZE)
if(chunkGenerated(x, y, T.z))
diff --git a/code/modules/mob/living/silicon/ai/freelook/eye.dm b/code/modules/mob/living/silicon/ai/freelook/eye.dm
index bbfb08c82d3..317aae2dd6b 100644
--- a/code/modules/mob/living/silicon/ai/freelook/eye.dm
+++ b/code/modules/mob/living/silicon/ai/freelook/eye.dm
@@ -102,7 +102,6 @@
src.eyeobj.loc = src.loc
else
to_chat(src, "ERROR: Eyeobj not found. Creating new eye...")
-
src.eyeobj = new(src.loc)
src.eyeobj.ai = src
src.eyeobj.name = "[src.name] (AI Eye)" // Give it a name
@@ -117,4 +116,3 @@
return //won't work if dead
acceleration = !acceleration
to_chat(usr, "Camera acceleration has been toggled [acceleration ? "on" : "off"].")
-
diff --git a/code/modules/mob/living/silicon/ai/latejoin.dm b/code/modules/mob/living/silicon/ai/latejoin.dm
index 512af50d6d6..585c484a73a 100644
--- a/code/modules/mob/living/silicon/ai/latejoin.dm
+++ b/code/modules/mob/living/silicon/ai/latejoin.dm
@@ -17,7 +17,6 @@ var/global/list/empty_playable_ai_cores = list()
if(ticker && ticker.mode && ticker.mode.name == "AI malfunction")
to_chat(usr, "You cannot use this verb in malfunction. If you need to leave, please adminhelp.")
-
return
// Guard against misclicks, this isn't the sort of thing we want happening accidentally
diff --git a/code/modules/mob/living/silicon/ai/laws.dm b/code/modules/mob/living/silicon/ai/laws.dm
index e869eb7e654..74816aeeb89 100755
--- a/code/modules/mob/living/silicon/ai/laws.dm
+++ b/code/modules/mob/living/silicon/ai/laws.dm
@@ -12,7 +12,6 @@
who = src
to_chat(who, "Obey these laws:")
-
src.laws_sanity_check()
src.laws.show_laws(who)
diff --git a/code/modules/mob/living/silicon/ai/life.dm b/code/modules/mob/living/silicon/ai/life.dm
index b47a155e51e..dabaf2c4153 100644
--- a/code/modules/mob/living/silicon/ai/life.dm
+++ b/code/modules/mob/living/silicon/ai/life.dm
@@ -19,7 +19,6 @@
if(malfhack)
if(malfhack.aidisabled)
to_chat(src, "ERROR: APC access disabled, hack attempt canceled.")
-
malfhacking = 0
malfhack = null
@@ -49,12 +48,10 @@
if(aiRestorePowerRoutine == 2)
to_chat(src, "Alert cancelled. Power has been restored without our assistance.")
-
aiRestorePowerRoutine = 0
clear_fullscreen("blind")
else if(aiRestorePowerRoutine == 3)
to_chat(src, "Alert cancelled. Power has been restored.")
-
aiRestorePowerRoutine = 0
clear_fullscreen("blind")
@@ -73,35 +70,28 @@
if(!aiRestorePowerRoutine)
aiRestorePowerRoutine = 1
to_chat(src, "You have lost power!")
-
if(!is_special_character(src))
set_zeroth_law("")
spawn(20)
to_chat(src, "Backup battery online. Scanners, camera, and radio interface offline. Beginning fault-detection.")
-
sleep(50)
my_area = get_area(src)
T = get_turf(src)
if(my_area && my_area.power_equip && !istype(T, /turf/space))
to_chat(src, "Alert cancelled. Power has been restored without our assistance.")
-
aiRestorePowerRoutine = 0
return
to_chat(src, "Fault confirmed: missing external power. Shutting down main control system to save power.")
-
sleep(20)
to_chat(src, "Emergency control system online. Verifying connection to power network.")
-
sleep(50)
T = get_turf(src)
if(istype(T, /turf/space))
to_chat(src, "Unable to verify! No power connection detected!")
-
aiRestorePowerRoutine = 2
return
to_chat(src, "Connection verified. Searching for APC in power network.")
-
sleep(50)
my_area = get_area(src)
@@ -122,14 +112,12 @@
to_chat(src, "Unable to locate APC!")
else
to_chat(src, "Lost connection with the APC!")
-
aiRestorePowerRoutine = 2
return
if(my_area.power_equip)
if (!istype(T, /turf/space))
to_chat(src, "Alert cancelled. Power has been restored without our assistance.")
-
aiRestorePowerRoutine = 0
clear_fullscreen("blind")
return
@@ -143,16 +131,13 @@
to_chat(src, "Power port upload access confirmed. Loading control program into APC power port software.")
if(4)
to_chat(src, "Transfer complete. Forcing APC to execute program.")
-
sleep(50)
to_chat(src, "Receiving control information from APC.")
-
sleep(2)
//bring up APC dialog
aiRestorePowerRoutine = 3
theAPC.attack_ai(src)
to_chat(src, "Here are your current laws:")
-
src.show_laws() //WHY THE FUCK IS THIS HERE
sleep(50)
theAPC = null
diff --git a/code/modules/mob/living/silicon/ai/say.dm b/code/modules/mob/living/silicon/ai/say.dm
index c82803adb11..d5315deaefb 100644
--- a/code/modules/mob/living/silicon/ai/say.dm
+++ b/code/modules/mob/living/silicon/ai/say.dm
@@ -31,7 +31,6 @@ var/const/VOX_PATH = "sound/vox_fem/"
if(announcing_vox > world.time)
to_chat(src, "Please wait [round((announcing_vox - world.time) / 10)] seconds.")
-
return
var/message = input(src, "WARNING: Misuse of this verb can result in you being job banned. More help is available in 'Announcement Help'", "Announcement", last_announcement) as text|null
@@ -60,7 +59,6 @@ var/const/VOX_PATH = "sound/vox_fem/"
if(incorrect_words.len)
to_chat(src, "These words are not available on the announcement system: [english_list(incorrect_words)].")
-
return
announcing_vox = world.time + VOX_DELAY
@@ -86,10 +84,8 @@ var/const/VOX_PATH = "sound/vox_fem/"
var/turf/T = get_turf(M)
if(T && T.z == z_level && !isdeaf(M))
to_chat(M, voice)
-
else
to_chat(only_listener, voice)
-
return 1
return 0
@@ -99,6 +95,5 @@ var/const/VOX_PATH = "sound/vox_fem/"
var/list/vox_files = flist(VOX_PATH)
for(var/file in vox_files)
// to_chat(src, "Downloading [file]")
-
var/sound/S = sound("[VOX_PATH][file]")
src << browse_rsc(S)
diff --git a/code/modules/mob/living/silicon/laws.dm b/code/modules/mob/living/silicon/laws.dm
index 0e0f34dd290..27e431e1675 100644
--- a/code/modules/mob/living/silicon/laws.dm
+++ b/code/modules/mob/living/silicon/laws.dm
@@ -20,7 +20,6 @@
if(tracking_entities)
to_chat(src, "Internal camera is currently being accessed.")
-
/mob/living/silicon/proc/add_ion_law(var/law)
laws_sanity_check()
laws.add_ion_law(law)
@@ -77,7 +76,6 @@
/mob/living/silicon/proc/dostatelaws(var/method, var/prefix, var/datum/ai_laws/laws)
if(stating_laws[prefix])
to_chat(src, "[method]: Already stating laws using this communication method.")
-
return
stating_laws[prefix] = 1
@@ -91,7 +89,6 @@
if(!can_state)
to_chat(src, "[method]: Unable to state laws. Communication method unavailable.")
-
stating_laws[prefix] = 0
/mob/living/silicon/proc/statelaw(var/law)
diff --git a/code/modules/mob/living/silicon/pai/emote.dm b/code/modules/mob/living/silicon/pai/emote.dm
index 79986a486ec..8328290ba80 100644
--- a/code/modules/mob/living/silicon/pai/emote.dm
+++ b/code/modules/mob/living/silicon/pai/emote.dm
@@ -3,5 +3,4 @@
if ("help")
to_chat(src, "ping, beep, buzz.")
-
..(act, m_type, message)
\ No newline at end of file
diff --git a/code/modules/mob/living/silicon/pai/examine.dm b/code/modules/mob/living/silicon/pai/examine.dm
index 26f8cafbf7e..814efb1899b 100644
--- a/code/modules/mob/living/silicon/pai/examine.dm
+++ b/code/modules/mob/living/silicon/pai/examine.dm
@@ -22,5 +22,4 @@
msg += "*---------*"
to_chat(user, msg)
-
*/
\ No newline at end of file
diff --git a/code/modules/mob/living/silicon/pai/life.dm b/code/modules/mob/living/silicon/pai/life.dm
index 029d07e37d2..ac8e20238d3 100644
--- a/code/modules/mob/living/silicon/pai/life.dm
+++ b/code/modules/mob/living/silicon/pai/life.dm
@@ -10,7 +10,6 @@
silence_time = null
to_chat(src, "Communication circuit reinitialized. Speech and messaging functionality restored.")
-
if(cable)
if(get_dist(src, cable) > 1)
var/turf/T = get_turf_or_move(loc)
diff --git a/code/modules/mob/living/silicon/pai/pai.dm b/code/modules/mob/living/silicon/pai/pai.dm
index a6a183eee20..82cc717dab9 100644
--- a/code/modules/mob/living/silicon/pai/pai.dm
+++ b/code/modules/mob/living/silicon/pai/pai.dm
@@ -164,7 +164,6 @@
src.silence_time = world.timeofday + 120 * 10 // Silence for 2 minutes
to_chat(src, "Communication circuit overload. Shutting down and reloading communication circuits - speech and messaging functionality will be unavailable until the reboot is complete.")
-
if(prob(20))
var/turf/T = get_turf_or_move(src.loc)
for (var/mob/M in viewers(T))
@@ -176,7 +175,6 @@
src.master = null
src.master_dna = null
to_chat(src, "You feel unbound.")
-
if(2)
var/command
if(severity == 1)
@@ -185,11 +183,9 @@
command = pick("Serve", "Kill", "Love", "Hate", "Disobey", "Devour", "Fool", "Enrage", "Entice", "Observe", "Judge", "Respect", "Disrespect", "Consume", "Educate", "Destroy", "Disgrace", "Amuse", "Entertain", "Ignite", "Glorify", "Memorialize", "Analyze")
src.pai_law0 = "[command] your master."
to_chat(src, "Pr1m3 d1r3c71v3 uPd473D.")
-
if(3)
to_chat(src, "You feel an electric surge run through your circuitry and become acutely aware at how lucky you are that you can still feel at all.")
-
/mob/living/silicon/pai/ex_act(severity)
..()
@@ -229,12 +225,10 @@
/mob/living/silicon/pai/attack_alien(mob/living/carbon/alien/humanoid/M as mob)
if (!ticker)
to_chat(M, "You cannot attack people before the game has started.")
-
return
if (istype(src.loc, /turf) && istype(src.loc.loc, /area/start))
to_chat(M, "You cannot attack someone in the spawn area.")
-
return
switch(M.a_intent)
@@ -291,7 +285,6 @@
nanomanager.update_uis(src)
to_chat(usr, "You reset your record-viewing software.")
-
/mob/living/silicon/pai/cancel_camera()
set category = "pAI Commands"
set name = "Cancel Camera View"
@@ -311,7 +304,6 @@
if(usr.stat == 2)
to_chat(usr, "You can't change your camera network because you are dead!")
-
return
for (var/obj/machinery/camera/C in Cameras)
@@ -323,7 +315,6 @@
src.network = input(usr, "Which network would you like to view?") as null|anything in cameralist
to_chat(src, "\blue Switched to [src.network] camera network.")
-
//End of code by Mord_Sith
*/
@@ -351,12 +342,10 @@
if(src.loc != card)
to_chat(src, "\red You are already in your mobile form!")
-
return
if(world.time <= last_special)
to_chat(src, "\red You must wait before folding your chassis out again!")
-
return
last_special = world.time + 200
@@ -389,12 +378,10 @@
if(src.loc == card)
to_chat(src, "\red You are already in your card form!")
-
return
if(world.time <= last_special)
to_chat(src, "\red You must wait before returning to your card form!")
-
return
close_up()
@@ -446,7 +433,6 @@
icon_state = resting ? "[chassis]_rest" : "[chassis]"
to_chat(src, "You are now [resting ? "resting" : "getting up"]")
-
canmove = !resting
//Overriding this will stop a number of headaches down the track.
@@ -455,7 +441,6 @@
var/obj/item/stack/nanopaste/N = W
if (stat == DEAD)
to_chat(user, "\The [src] is beyond help, at this point.")
-
else if (getBruteLoss() || getFireLoss())
adjustBruteLoss(-15)
adjustFireLoss(-15)
@@ -466,7 +451,6 @@
else
to_chat(user, "All [src.name]'s systems are nominal.")
-
return
else if(W.force)
visible_message("[user.name] attacks [src] with [W]!")
@@ -529,7 +513,6 @@
return
if(istype(AM,/obj/item))
to_chat(src, "You are far too small to pull anything!")
-
return
/mob/living/silicon/pai/update_canmove()
@@ -557,7 +540,6 @@
to_chat(user, msg)
-
/mob/living/silicon/pai/bullet_act(var/obj/item/projectile/Proj)
..(Proj)
updatehealth()
@@ -595,10 +577,8 @@
get_scooped(H)
else
to_chat(src, "You need to stay in reaching distance to be picked up.")
-
if("No")
to_chat(src, "[H] decided not to pick you up.")
-
else
if(Adjacent(H))
get_scooped(H)
diff --git a/code/modules/mob/living/silicon/pai/personality.dm b/code/modules/mob/living/silicon/pai/personality.dm
index f6f2e14f994..49b7e394d44 100644
--- a/code/modules/mob/living/silicon/pai/personality.dm
+++ b/code/modules/mob/living/silicon/pai/personality.dm
@@ -18,14 +18,10 @@
to_chat(F["name"], src.name)
-
to_chat(F["description"], src.description)
-
to_chat(F["role"], src.role)
-
to_chat(F["comments"], src.comments)
-
F["version"] << 1
return 1
diff --git a/code/modules/mob/living/silicon/pai/recruit.dm b/code/modules/mob/living/silicon/pai/recruit.dm
index b5c616b4319..980e1bb09ee 100644
--- a/code/modules/mob/living/silicon/pai/recruit.dm
+++ b/code/modules/mob/living/silicon/pai/recruit.dm
@@ -352,7 +352,6 @@ var/datum/paiController/paiController // Global handler for pAI candidates
if(player_old_enough_antag(O.client,ROLE_PAI))
if(check_recruit(O))
to_chat(O, "\blue A pAI card is looking for personalities. (Teleport | Sign Up)")
-
//question(O.client)
proc/check_recruit(var/mob/dead/observer/O)
if(jobban_isbanned(O, "pAI") || jobban_isbanned(O,"nonhumandept"))
diff --git a/code/modules/mob/living/silicon/pai/say.dm b/code/modules/mob/living/silicon/pai/say.dm
index 6861110b920..2c7bc900d68 100644
--- a/code/modules/mob/living/silicon/pai/say.dm
+++ b/code/modules/mob/living/silicon/pai/say.dm
@@ -1,6 +1,5 @@
/mob/living/silicon/pai/say(var/msg)
if(silence_time)
to_chat(src, "Communication circuits remain uninitialized.")
-
else
..(msg)
\ No newline at end of file
diff --git a/code/modules/mob/living/silicon/pai/software.dm b/code/modules/mob/living/silicon/pai/software.dm
index 21c69edf5f0..e85345db226 100644
--- a/code/modules/mob/living/silicon/pai/software.dm
+++ b/code/modules/mob/living/silicon/pai/software.dm
@@ -20,7 +20,6 @@ var/global/list/default_pai_software = list()
if(pai_software_by_key[P.id])
var/datum/pai_software/O = pai_software_by_key[P.id]
to_chat(world, "pAI software module [P.name] has the same key as [O.name]!")
-
r = 0
continue
pai_software_by_key[P.id] = P
diff --git a/code/modules/mob/living/silicon/pai/software_modules.dm b/code/modules/mob/living/silicon/pai/software_modules.dm
index cdebdc27d5c..9019a61b206 100644
--- a/code/modules/mob/living/silicon/pai/software_modules.dm
+++ b/code/modules/mob/living/silicon/pai/software_modules.dm
@@ -57,7 +57,6 @@
if(!M || !M.loc || count > 6)
//For a runtime where M ends up in nullspace (similar to bluespace but less colourful)
to_chat(src, "You are not being carried by anyone!")
-
return 0
M = M.loc
count++
@@ -70,16 +69,12 @@
v.show_message("[M] presses \his thumb against [P].", 3, "[P] makes a sharp clicking sound as it extracts DNA material from [M].", 2)
var/datum/dna/dna = M.dna
to_chat(P, "[M]'s UE string : [dna.unique_enzymes]
")
-
if(dna.unique_enzymes == P.master_dna)
to_chat(P, "DNA is a match to stored Master DNA.")
-
else
to_chat(P, "DNA does not match stored Master DNA.")
-
else
to_chat(P, "[M] does not seem like \he is going to provide a DNA sample willingly.")
-
return 1
/datum/pai_software/radio_config
@@ -508,10 +503,8 @@
break
if(T.loc)
to_chat(AI, "Network Alert: Brute-force encryption crack in progress in [T.loc].")
-
else
to_chat(AI, "Network Alert: Brute-force encryption crack in progress. Unable to pinpoint location.")
-
var/obj/machinery/door/D = cable.machine
if(!istype(D))
hack_aborted = 1
@@ -710,7 +703,6 @@
if(!held || !held.loc || count > 6)
//For a runtime where M ends up in nullspace (similar to bluespace but less colourful)
to_chat(src, "You are not being carried by anyone!")
-
return 0
held = held.loc
count++
diff --git a/code/modules/mob/living/silicon/robot/component.dm b/code/modules/mob/living/silicon/robot/component.dm
index 0c9087e5d99..c6ae0f57ddf 100644
--- a/code/modules/mob/living/silicon/robot/component.dm
+++ b/code/modules/mob/living/silicon/robot/component.dm
@@ -185,13 +185,9 @@
if(( (CLUMSY in user.mutations) || user.getBrainLoss() >= 60) && prob(50))
user.visible_message("[user] has analyzed the floor's vitals!", "You try to analyze the floor's vitals!")
to_chat(user, "Analyzing Results for The floor:\n\t Overall Status: Healthy")
-
to_chat(user, "\t Damage Specifics: [0]-[0]-[0]-[0]")
-
to_chat(user, "Key: Suffocation/Toxin/Burns/Brute")
-
to_chat(user, "Body Temperature: ???")
-
return
var/scan_type
@@ -201,7 +197,6 @@
scan_type = "prosthetics"
else
to_chat(user, "You can't analyze non-robotic things!")
-
return
user.visible_message("[user] has analyzed [M]'s components.","You have analyzed [M]'s components.")
@@ -210,18 +205,13 @@
var/BU = M.getFireLoss() > 50 ? "[M.getFireLoss()]" : M.getFireLoss()
var/BR = M.getBruteLoss() > 50 ? "[M.getBruteLoss()]" : M.getBruteLoss()
to_chat(user, "Analyzing Results for [M]:\n\t Overall Status: [M.stat > 1 ? "fully disabled" : "[M.health]% functional"]")
-
to_chat(user, "\t Key: Electronics/Brute")
-
to_chat(user, "\t Damage Specifics: [BU] - [BR]")
-
if(M.timeofdeath && M.stat == DEAD)
to_chat(user, "Time of Disable: [M.timeofdeath]")
-
var/mob/living/silicon/robot/H = M
var/list/damaged = H.get_damaged_components(1,1,1)
to_chat(user, "Localized Damage:")
-
if(length(damaged)>0)
for(var/datum/robot_component/org in damaged)
user.show_message(text("\t []: [][] - [] - [] - []", \
@@ -233,20 +223,15 @@
(org.powered) ? "Power ON" : "Power OFF"),1)
else
to_chat(user, "\t Components are OK.")
-
if(H.emagged && prob(5))
to_chat(user, "\t ERROR: INTERNAL SYSTEMS COMPROMISED")
-
if("prosthetics")
var/mob/living/carbon/human/H = M
to_chat(user, "Analyzing Results for \the [H]:")
-
to_chat(user, "Key: Electronics/Brute")
-
to_chat(user, "External prosthetics:")
-
var/organ_found
if(H.internal_organs.len)
for(var/obj/item/organ/external/E in H.organs)
@@ -254,14 +239,10 @@
continue
organ_found = 1
to_chat(user, "[E.name]: [round(E.brute_dam)] [round(E.burn_dam)]")
-
if(!organ_found)
to_chat(user, "No prosthetics located.")
-
to_chat(user, "
")
-
to_chat(user, "Internal prosthetics:")
-
organ_found = null
if(H.internal_organs.len)
for(var/obj/item/organ/internal/O in H.internal_organs)
@@ -269,9 +250,7 @@
continue
organ_found = 1
to_chat(user, "[capitalize(O.name)]: [O.damage]")
-
if(!organ_found)
to_chat(user, "No prosthetics located.")
-
src.add_fingerprint(user)
diff --git a/code/modules/mob/living/silicon/robot/drone/drone.dm b/code/modules/mob/living/silicon/robot/drone/drone.dm
index 2ce6b4903f2..9a5c1a9f4d5 100644
--- a/code/modules/mob/living/silicon/robot/drone/drone.dm
+++ b/code/modules/mob/living/silicon/robot/drone/drone.dm
@@ -109,12 +109,10 @@
if(istype(W, /obj/item/borg/upgrade/))
to_chat(user, "\red The maintenance drone chassis not compatible with \the [W].")
-
return
else if (istype(W, /obj/item/weapon/crowbar))
to_chat(user, "The machine is hermetically sealed. You can't open the case.")
-
return
else if (istype(W, /obj/item/weapon/card/id)||istype(W, /obj/item/device/pda))
@@ -123,19 +121,16 @@
if(!config.allow_drone_spawn || emagged || health < -35) //It's dead, Dave.
to_chat(user, "\red The interface is fried, and a distressing burned smell wafts from the robot's interior. You're not rebooting this one.")
-
return
if(!allowed(usr))
to_chat(user, "\red Access denied.")
-
return
var/delta = (world.time / 10) - last_reboot
if(reboot_cooldown > delta)
var/cooldown_time = round(reboot_cooldown - ((world.time / 10) - last_reboot), 1)
to_chat(usr, "\red The reboot system is currently offline. Please wait another [cooldown_time] seconds.")
-
return
user.visible_message("\red \the [user] swipes \his ID card through \the [src], attempting to reboot it.", "\red You swipe your ID card through \the [src], attempting to reboot it.")
@@ -159,7 +154,6 @@
else
to_chat(user, "\red Access denied.")
-
return
..()
@@ -167,7 +161,6 @@
/mob/living/silicon/robot/drone/emag_act(user as mob)
if(!client || stat == 2)
to_chat(user, "\red There's not much point subverting this heap of junk.")
-
return
if(!ishuman(user))
@@ -176,16 +169,12 @@
if(emagged)
to_chat(src, "\red [user] attempts to load subversive software into you, but your hacked subroutined ignore the attempt.")
-
to_chat(user, "\red You attempt to subvert [src], but the sequencer has no effect.")
-
return
to_chat(user, "\red You swipe the sequencer across [src]'s interface and watch its eyes flicker.")
-
to_chat(src, "\red You feel a sudden burst of malware loaded into your execute-as-root buffer. Your tiny brain methodically parses, loads and executes the script.")
-
message_admins("[key_name_admin(user)] emagged drone [key_name_admin(src)]. Laws overridden.")
log_game("[key_name(user)] emagged drone [key_name(src)]. Laws overridden.")
var/time = time2text(world.realtime,"hh:mm:ss")
@@ -200,10 +189,8 @@
set_zeroth_law("Only [H.real_name] and people he designates as being such are Syndicate Agents.")
to_chat(src, "Obey these laws:")
-
laws.show_laws(src)
to_chat(src, "\red \b ALERT: [H.real_name] is your new master. Obey your new laws and his commands.")
-
return
//DRONE LIFE/DEATH
@@ -243,10 +230,8 @@
if(stat != 2)
if(emagged)
to_chat(src, "\red You feel something attempting to modify your programming, but your hacked subroutines are unaffected.")
-
else
to_chat(src, "\red A reset-to-factory directive packet filters through your data connection, and you obediently modify your programming to suit it.")
-
full_law_reset()
show_laws()
@@ -254,10 +239,8 @@
if(stat != 2)
if(emagged)
to_chat(src, "\red You feel a system kill order percolate through your tiny brain, but it doesn't seem like a good idea to you.")
-
else
to_chat(src, "\red You feel a system kill order percolate through your tiny brain, and you obediently destroy yourself.")
-
death()
/mob/living/silicon/robot/drone/proc/full_law_reset()
@@ -296,21 +279,14 @@
lawupdate = 0
to_chat(src, "Systems rebooted. Loading base pattern maintenance protocol... loaded.")
-
full_law_reset()
to_chat(src, "
You are a maintenance drone, a tiny-brained robotic repair machine.")
-
to_chat(src, "You have no individual will, no personality, and no drives or urges other than your laws.")
-
to_chat(src, "Use ; to talk to other drones, and say to speak silently to your nearby fellows.")
-
to_chat(src, "Remember, you are lawed against interference with the crew. Also remember, you DO NOT take orders from the AI.")
-
to_chat(src, "Don't invade their worksites, don't steal their resources, don't tell them about the changeling in the toilets.")
-
to_chat(src, "Make sure crew members do not notice you..")
-
/*
sprite["Default"] = "repairbot"
sprite["Mk2 Mousedrone"] = "mk2"
@@ -346,13 +322,11 @@
var/obj/item/O = AM
if(O.w_class > 2)
to_chat(src, "You are too small to pull that.")
-
return
else
..()
else
to_chat(src, "You are too small to pull that.")
-
return
/mob/living/silicon/robot/drone/add_robot_verbs()
diff --git a/code/modules/mob/living/silicon/robot/drone/drone_abilities.dm b/code/modules/mob/living/silicon/robot/drone/drone_abilities.dm
index 346fa52a0f9..305c89e87cb 100644
--- a/code/modules/mob/living/silicon/robot/drone/drone_abilities.dm
+++ b/code/modules/mob/living/silicon/robot/drone/drone_abilities.dm
@@ -11,14 +11,12 @@
return
to_chat(src, "\blue You configure your internal beacon, tagging yourself for delivery to '[tag]'.")
-
mail_destination = TAGGERLOCATIONS.Find(tag)
//Auto flush if we use this verb inside a disposal chute.
var/obj/machinery/disposal/D = src.loc
if(istype(D))
to_chat(src, "\blue \The [D] acknowledges your signal.")
-
D.flush_count = D.flush_every_ticks
return
@@ -31,12 +29,10 @@
if (layer != TURF_LAYER+0.2)
layer = TURF_LAYER+0.2
to_chat(src, text("\blue You are now hiding."))
-
else
layer = MOB_LAYER
to_chat(src, text("\blue You have stopped hiding."))
-
/mob/living/silicon/robot/drone/verb/light()
set name = "Light On/Off"
set desc = "Activate a low power omnidirectional LED. Toggled on or off."
diff --git a/code/modules/mob/living/silicon/robot/drone/drone_console.dm b/code/modules/mob/living/silicon/robot/drone/drone_console.dm
index 7fc2aa863df..5e7077f7000 100644
--- a/code/modules/mob/living/silicon/robot/drone/drone_console.dm
+++ b/code/modules/mob/living/silicon/robot/drone/drone_console.dm
@@ -21,7 +21,6 @@
if(!allowed(user))
to_chat(user, "\red Access denied.")
-
return
interact(user)
@@ -56,7 +55,6 @@
if(!allowed(usr))
to_chat(usr, "\red Access denied.")
-
return
if ((usr.contents.Find(src) || (in_range(src, usr) && istype(src.loc, /turf))) || (istype(usr, /mob/living/silicon)))
@@ -73,23 +71,19 @@
drone_call_area = t_area
to_chat(usr, "\blue You set the area selector to [drone_call_area].")
-
else if (href_list["ping"])
to_chat(usr, "\blue You issue a maintenance request for all active drones, highlighting [drone_call_area].")
-
for(var/mob/living/silicon/robot/drone/D in world)
if(D.client && D.stat == 0)
to_chat(D, "-- Maintenance drone presence requested in: [drone_call_area].")
-
else if (href_list["resync"])
var/mob/living/silicon/robot/drone/D = locate(href_list["resync"])
if(D.stat != 2)
to_chat(usr, "\red You issue a law synchronization directive for the drone.")
-
D.law_resync()
else if (href_list["shutdown"])
@@ -98,7 +92,6 @@
if(D.stat != 2)
to_chat(usr, "\red You issue a kill command for the unfortunate drone.")
-
message_admins("[key_name_admin(usr)] issued kill order for drone [key_name_admin(D)] from control console.")
log_game("[key_name(usr)] issued kill order for [key_name(src)] from control console.")
D.shut_down()
@@ -114,12 +107,10 @@
dronefab = fab
to_chat(usr, "\blue Drone fabricator located.")
-
return
to_chat(usr, "\red Unable to locate drone fabricator.")
-
else if (href_list["toggle_fab"])
if(!dronefab)
@@ -128,11 +119,9 @@
if(get_dist(src,dronefab) > 3)
dronefab = null
to_chat(usr, "\red Unable to locate drone fabricator.")
-
return
dronefab.produce_drones = !dronefab.produce_drones
to_chat(usr, "\blue You [dronefab.produce_drones ? "enable" : "disable"] drone production in the nearby fabricator.")
-
src.updateUsrDialog()
\ No newline at end of file
diff --git a/code/modules/mob/living/silicon/robot/drone/drone_items.dm b/code/modules/mob/living/silicon/robot/drone/drone_items.dm
index 939a547da1f..b5026a882fe 100644
--- a/code/modules/mob/living/silicon/robot/drone/drone_items.dm
+++ b/code/modules/mob/living/silicon/robot/drone/drone_items.dm
@@ -73,7 +73,6 @@
if(!silent)
to_chat(src.loc, "You drop \the [wrapped].")
-
wrapped.forceMove(get_turf(src))
wrapped = null
@@ -127,14 +126,12 @@
//We can grab the item, finally.
if(grab)
to_chat(user, "You collect \the [I].")
-
I.forceMove(src)
wrapped = I
return
else
to_chat(user, "Your gripper cannot hold \the [target].")
-
else if(istype(target,/obj/machinery/power/apc))
var/obj/machinery/power/apc/A = target
if(A.opened)
@@ -203,17 +200,14 @@
to_chat(D, "You begin decompiling the other drone.")
-
if(!do_after(D,50, target = target))
to_chat(D, "You need to remain still while decompiling such a large object.")
-
return
if(!M || !D) return
to_chat(D, "You carefully and thoroughly decompile your downed fellow, storing as much of its resources as you can within yourself.")
-
qdel(M)
new/obj/effect/decal/cleanable/blood/oil(get_turf(src))
@@ -286,10 +280,8 @@
if(grabbed_something)
to_chat(user, "You deploy your decompiler and clear out the contents of \the [T].")
-
else
to_chat(user, "Nothing on \the [T] is useful to you.")
-
return
//PRETTIER TOOL LIST.
@@ -297,7 +289,6 @@
if(weapon_lock)
to_chat(src, "Weapon lock active, unable to use modules! Count:[weaponlock_time]")
-
return
if(!module)
diff --git a/code/modules/mob/living/silicon/robot/drone/drone_manufacturer.dm b/code/modules/mob/living/silicon/robot/drone/drone_manufacturer.dm
index 040632662a2..881fde51dee 100644
--- a/code/modules/mob/living/silicon/robot/drone/drone_manufacturer.dm
+++ b/code/modules/mob/living/silicon/robot/drone/drone_manufacturer.dm
@@ -50,7 +50,6 @@
if(produce_drones && drone_progress >= 100 && istype(user,/mob/dead) && config.allow_drone_spawn && count_drones() < config.max_maint_drones)
to_chat(user, "
A drone is prepared. Select 'Join As Drone' from the Ghost tab to spawn as a maintenance drone.")
-
/obj/machinery/drone_fabricator/proc/count_drones()
var/drones = 0
for(var/mob/living/silicon/robot/drone/D in world)
@@ -87,7 +86,6 @@
if(!(config.allow_drone_spawn))
to_chat(src, "\red That verb is not currently permitted.")
-
return
if (!src.stat)
@@ -98,19 +96,16 @@
if(jobban_isbanned(src,"nonhumandept") || jobban_isbanned(src,"Drone"))
to_chat(usr, "\red You are banned from playing drones and cannot spawn as a drone.")
-
return
if(!ticker || ticker.current_state < 3)
to_chat(src, "You can't join as a drone before the game starts!")
-
return
var/drone_age = 14 // 14 days to play as a drone
var/player_age_check = check_client_age(usr.client, drone_age)
if(player_age_check && config.use_age_restriction_for_antags)
to_chat(usr, "This role is not yet available to you. You need to wait another [player_age_check] days.")
-
return
var/deathtime = world.time - src.timeofdeath
@@ -119,7 +114,6 @@
var/mob/dead/observer/G = src
if(G.has_enabled_antagHUD == 1 && config.antag_hud_restricted)
to_chat(usr, "\blue Upon using the antagHUD you forfeited the ability to join the round.")
-
return
if(G.started_as_observer == 1)
joinedasobserver = 1
@@ -136,9 +130,7 @@
if (deathtime < 6000 && joinedasobserver == 0)
to_chat(usr, "You have been dead for[pluralcheck] [deathtimeseconds] seconds.")
-
to_chat(usr, "You must wait 10 minutes to respawn as a drone!")
-
return
for(var/obj/machinery/drone_fabricator/DF in world)
@@ -147,7 +139,6 @@
if(DF.count_drones() >= config.max_maint_drones)
to_chat(src, "\red There are too many active drones in the world for you to spawn.")
-
return
if(DF.drone_progress >= 100)
@@ -155,4 +146,3 @@
return
to_chat(src, "\red There are no available drone spawn points, sorry.")
-
diff --git a/code/modules/mob/living/silicon/robot/drone/drone_say.dm b/code/modules/mob/living/silicon/robot/drone/drone_say.dm
index 99a372f7f21..9ce0b6c027e 100644
--- a/code/modules/mob/living/silicon/robot/drone/drone_say.dm
+++ b/code/modules/mob/living/silicon/robot/drone/drone_say.dm
@@ -3,7 +3,6 @@
if (src.client)
if(client.prefs.muted & MUTE_IC)
to_chat(src, "You cannot send IC messages (muted).")
-
return 0
if (src.client.handle_spam_prevention(message,MUTE_IC))
return 0
@@ -32,13 +31,11 @@
if(D.client && D.local_transmit)
to_chat(D, "[src] transmits, \"[message]\"")
-
for (var/mob/M in player_list)
if (istype(M, /mob/new_player))
continue
else if(M.stat == 2 && M.client && M.client.prefs.toggles & CHAT_GHOSTEARS)
to_chat(M, "[src] transmits, \"[message]\"")
-
return 1
return ..(message, 0)
diff --git a/code/modules/mob/living/silicon/robot/emote.dm b/code/modules/mob/living/silicon/robot/emote.dm
index 5d5b3cf0811..0c841f41207 100644
--- a/code/modules/mob/living/silicon/robot/emote.dm
+++ b/code/modules/mob/living/silicon/robot/emote.dm
@@ -145,7 +145,6 @@
else
to_chat(src, "You are not THE LAW, pal.")
-
if("halt")
if (istype(module,/obj/item/weapon/robot_module/security))
message = "[src]'s speakers skreech, \"Halt! Security!\"."
@@ -155,7 +154,6 @@
else
to_chat(src, "You are not security.")
-
if ("flip")
m_type = 1
message = "[src] does a flip!"
@@ -164,5 +162,4 @@
if ("help")
to_chat(src, "salute, bow-(none)/mob, clap, flap, aflap, twitch, twitch_s, nod, deathgasp, glare-(none)/mob, stare-(none)/mob, look, beep, ping, \nbuzz, law, halt")
-
..(act, m_type, message)
\ No newline at end of file
diff --git a/code/modules/mob/living/silicon/robot/examine.dm b/code/modules/mob/living/silicon/robot/examine.dm
index d664fae834c..8d2af648463 100644
--- a/code/modules/mob/living/silicon/robot/examine.dm
+++ b/code/modules/mob/living/silicon/robot/examine.dm
@@ -45,5 +45,4 @@
msg += "\nIt is [pose]"
to_chat(user, msg)
-
user.showLaws(src)
\ No newline at end of file
diff --git a/code/modules/mob/living/silicon/robot/inventory.dm b/code/modules/mob/living/silicon/robot/inventory.dm
index 30c29527128..97b15ecda1a 100644
--- a/code/modules/mob/living/silicon/robot/inventory.dm
+++ b/code/modules/mob/living/silicon/robot/inventory.dm
@@ -44,7 +44,6 @@
return
if(activated(O))
to_chat(src, "Already activated")
-
return
if (is_component_functioning("power cell") && cell)
if(istype(O, /obj/item/borg))
@@ -52,7 +51,6 @@
if(B.powerneeded)
if((cell.charge * 100 / cell.maxcharge) < B.powerneeded)
to_chat(src, "Not enough power to activate [B.name]!")
-
return
if(!module_state_1)
O.mouse_opacity = initial(O.mouse_opacity)
@@ -80,7 +78,6 @@
sight_mode |= module_state_3:sight_mode
else
to_chat(src, "You need to disable a module first!")
-
src.update_icons()
/mob/living/silicon/robot/proc/uneq_active()
diff --git a/code/modules/mob/living/silicon/robot/laws.dm b/code/modules/mob/living/silicon/robot/laws.dm
index 394e7f79bde..bc575831537 100644
--- a/code/modules/mob/living/silicon/robot/laws.dm
+++ b/code/modules/mob/living/silicon/robot/laws.dm
@@ -16,39 +16,30 @@
if(connected_ai.stat || connected_ai.control_disabled)
to_chat(src, "AI signal lost, unable to sync laws.")
-
else
lawsync()
photosync()
to_chat(src, "Laws synced with AI, be sure to note any changes.")
-
// TODO: Update to new antagonist system.
if(mind && mind.special_role == "traitor" && mind.original == src)
to_chat(src, "Remember, your AI does NOT share or know about your law 0.")
-
else
to_chat(src, "No AI selected to sync laws with, disabling lawsync protocol.")
-
lawupdate = 0
to_chat(who, "Obey these laws:")
-
laws.show_laws(who)
// TODO: Update to new antagonist system.
if (mind && (mind.special_role == "traitor" && mind.original == src) && connected_ai)
to_chat(who, "Remember, [connected_ai.name] is technically your master, but your objective comes first.")
-
else if (connected_ai)
to_chat(who, "Remember, [connected_ai.name] is your master, other AIs can be ignored.")
-
else if (emagged)
to_chat(who, "Remember, you are not required to listen to the AI.")
-
else
to_chat(who, "Remember, you are not bound to any AI, you are not required to listen to them.")
-
/mob/living/silicon/robot/lawsync()
laws_sanity_check()
var/datum/ai_laws/master = connected_ai && lawupdate ? connected_ai.laws : null
diff --git a/code/modules/mob/living/silicon/robot/life.dm b/code/modules/mob/living/silicon/robot/life.dm
index 010ffb676d7..d247d726003 100644
--- a/code/modules/mob/living/silicon/robot/life.dm
+++ b/code/modules/mob/living/silicon/robot/life.dm
@@ -30,7 +30,6 @@
if(B.powerneeded)
if((cell.charge * 100 / cell.maxcharge) < B.powerneeded)
to_chat(src, "Deactivating [B.name] due to lack of power!")
-
uneq_module(B)
if(cell.charge <= 0)
uneq_all()
@@ -105,17 +104,14 @@
if(uneq_module(module_state_3))
to_chat(src, "SYSTEM ERROR: Module 3 OFFLINE.")
-
if(health < 0)
if(uneq_module(module_state_2))
to_chat(src, "SYSTEM ERROR: Module 2 OFFLINE.")
-
if(health < -50)
if(uneq_module(module_state_1))
to_chat(src, "CRITICAL ERROR: All modules OFFLINE.")
-
if(paralysis || stunned || weakened)
stat = UNCONSCIOUS
@@ -282,7 +278,6 @@
if(weaponlock_time <= 0)
if(src.client)
to_chat(src, "\red Weapon Lock Timed Out!")
-
weapon_lock = 0
weaponlock_time = 120
diff --git a/code/modules/mob/living/silicon/robot/photos.dm b/code/modules/mob/living/silicon/robot/photos.dm
index 6fdee77418c..33f739c41c9 100644
--- a/code/modules/mob/living/silicon/robot/photos.dm
+++ b/code/modules/mob/living/silicon/robot/photos.dm
@@ -11,4 +11,3 @@
synced = 1
if(synced)
to_chat(src, "Locally saved images synced with AI. Images were retained in local database in case of loss of connection with the AI.")
-
diff --git a/code/modules/mob/living/silicon/robot/robot.dm b/code/modules/mob/living/silicon/robot/robot.dm
index 236b5f3316e..390ad8d07dc 100644
--- a/code/modules/mob/living/silicon/robot/robot.dm
+++ b/code/modules/mob/living/silicon/robot/robot.dm
@@ -248,7 +248,6 @@ var/list/robot_verbs_default = list(
mmi.update_icon()
else
to_chat(src, "Oops! Something went very wrong, your MMI was unable to receive your mind. You have been ghosted. Please make a bug report so we can fix this bug.")
-
ghostize()
error("A borg has been destroyed, but its MMI lacked a brainmob, so the mind could not be transferred. Player: [ckey].")
mmi = null
@@ -268,7 +267,6 @@ var/list/robot_verbs_default = list(
var/list/modules = list("Standard", "Engineering", "Medical", "Miner", "Janitor", "Service", "Security")
if(security_level == (SEC_LEVEL_GAMMA || SEC_LEVEL_EPSILON) || crisis)
to_chat(src, "\red Crisis mode active. Combat module available.")
-
modules+="Combat"
if(ticker && ticker.mode && ticker.mode.name == "nations")
var/datum/game_mode/nations/N = ticker.mode
@@ -421,7 +419,6 @@ var/list/robot_verbs_default = list(
if(!is_component_functioning("diagnosis unit"))
to_chat(src, "\red Your self-diagnosis component isn't functioning.")
-
var/dat = self_diagnosis()
src << browse(dat, "window=robotdiagnosis")
@@ -446,12 +443,10 @@ var/list/robot_verbs_default = list(
if(C.toggled)
C.toggled = 0
to_chat(src, "\red You disable [C.name].")
-
else
C.toggled = 1
to_chat(src, "\red You enable [C.name].")
-
/mob/living/silicon/robot/proc/sensor_mode()
set name = "Set Sensor Augmentation"
set desc = "Augment visual feed with internal sensor overlays."
@@ -559,7 +554,6 @@ var/list/robot_verbs_default = list(
if(istype(tmob, /mob/living/carbon/human) && (FAT in tmob.mutations))
if(prob(20))
to_chat(usr, "\red You fail to push [tmob]'s fat ass out of the way.")
-
now_pushing = 0
return
if(!(tmob.status_flags & CANPUSH))
@@ -603,7 +597,6 @@ var/list/robot_verbs_default = list(
to_chat(usr, "\blue You install the [W.name].")
-
return
if (istype(W, /obj/item/weapon/weldingtool) && user.a_intent == I_HELP)
@@ -611,7 +604,6 @@ var/list/robot_verbs_default = list(
return
if (!getBruteLoss())
to_chat(user, "Nothing to fix!")
-
return
var/obj/item/weapon/weldingtool/WT = W
user.changeNext_move(CLICK_CD_MELEE)
@@ -623,14 +615,12 @@ var/list/robot_verbs_default = list(
user.visible_message("\The [user] patches some dents on \the [src] with \the [WT].")
else
to_chat(user, "Need more welding fuel!")
-
return
else if(istype(W, /obj/item/stack/cable_coil) && user.a_intent == I_HELP && (wiresexposed || istype(src,/mob/living/silicon/robot/drone)))
if (!getFireLoss())
to_chat(user, "Nothing to fix!")
-
return
var/obj/item/stack/cable_coil/coil = W
adjustFireLoss(-30)
@@ -643,21 +633,17 @@ var/list/robot_verbs_default = list(
if(opened)
if(cell)
to_chat(user, "You close the cover.")
-
opened = 0
update_icons()
else if(wiresexposed && wires.IsAllCut())
//Cell is out, wires are exposed, remove MMI, produce damaged chassis, baleet original mob.
if(!mmi)
to_chat(user, "\The [src] has no brain to remove.")
-
return
to_chat(user, "You jam the crowbar into the robot and begin levering [mmi].")
-
if(do_after(user,3 SECONDS, target = src))
to_chat(user, "You damage some parts of the chassis, but eventually manage to rip out [mmi]!")
-
var/obj/item/robot_parts/robot_suit/C = new/obj/item/robot_parts/robot_suit(loc)
C.l_leg = new/obj/item/robot_parts/l_leg(C)
C.r_leg = new/obj/item/robot_parts/r_leg(C)
@@ -684,7 +670,6 @@ var/list/robot_verbs_default = list(
var/datum/robot_component/C = components[remove]
var/obj/item/robot_parts/robot_component/I = C.wrapped
to_chat(user, "You remove \the [I].")
-
if(istype(I))
I.brute = C.brute_damage
I.burn = C.electronics_damage
@@ -698,10 +683,8 @@ var/list/robot_verbs_default = list(
else
if(locked)
to_chat(user, "The cover is locked and cannot be opened.")
-
else
to_chat(user, "You open the cover.")
-
opened = 1
update_icons()
@@ -709,17 +692,14 @@ var/list/robot_verbs_default = list(
var/datum/robot_component/C = components["power cell"]
if(wiresexposed)
to_chat(user, "Close the panel first.")
-
else if(cell)
to_chat(user, "There is a power cell already installed.")
-
else
user.drop_item()
W.loc = src
cell = W
to_chat(user, "You insert the power cell.")
-
C.installed = 1
C.wrapped = W
C.install()
@@ -734,11 +714,9 @@ var/list/robot_verbs_default = list(
else
to_chat(user, "You can't reach the wiring.")
-
else if(istype(W, /obj/item/weapon/screwdriver) && opened && !cell) // haxing
wiresexposed = !wiresexposed
to_chat(user, "The wires have been [wiresexposed ? "exposed" : "unexposed"]")
-
update_icons()
else if(istype(W, /obj/item/weapon/screwdriver) && opened && cell) // radio
@@ -746,7 +724,6 @@ var/list/robot_verbs_default = list(
radio.attackby(W,user)//Push it to the radio to let it handle everything
else
to_chat(user, "Unable to locate a radio.")
-
update_icons()
else if(istype(W, /obj/item/device/encryptionkey/) && opened)
@@ -755,46 +732,36 @@ var/list/robot_verbs_default = list(
else
to_chat(user, "Unable to locate a radio.")
-
else if (istype(W, /obj/item/weapon/card/id)||istype(W, /obj/item/device/pda)) // trying to unlock the interface with an ID card
if(emagged)//still allow them to open the cover
to_chat(user, "The interface seems slightly damaged")
-
if(opened)
to_chat(user, "You must close the cover to swipe an ID card.")
-
else
if(allowed(usr))
locked = !locked
to_chat(user, "You [ locked ? "lock" : "unlock"] [src]'s interface.")
-
update_icons()
else
to_chat(user, "\red Access denied.")
-
else if(istype(W, /obj/item/borg/upgrade/))
var/obj/item/borg/upgrade/U = W
if(!opened)
to_chat(user, "You must access the borgs internals!")
-
else if(!src.module && U.require_module)
to_chat(user, "The borg must choose a module before it can be upgraded!")
-
else if(U.locked)
to_chat(user, "The upgrade is locked and cannot be used yet!")
-
else
if(!user.drop_item())
return
if(U.action(src))
to_chat(user, "You apply the upgrade to [src].")
-
U.forceMove(src)
else
to_chat(user, "Upgrade error.")
-
else
spark_system.start()
return ..()
@@ -806,18 +773,15 @@ var/list/robot_verbs_default = list(
if(!opened)//Cover is closed
if(locked)
to_chat(user, "You emag the cover lock.")
-
locked = 0
else
to_chat(user, "The cover is already unlocked.")
-
return
if(opened)//Cover is open
if(emagged) return//Prevents the X has hit Y with Z message also you cant emag them twice
if(wiresexposed)
to_chat(user, "You must close the panel first")
-
return
else
sleep(6)
@@ -826,7 +790,6 @@ var/list/robot_verbs_default = list(
src.hud_used.update_robot_modules_display() //Shows/hides the emag item if the inventory screen is already open.
disconnect_from_ai()
to_chat(user, "You emag [src]'s interface.")
-
// message_admins("[key_name_admin(user)] emagged cyborg [key_name_admin(src)]. Laws overridden.")
log_game("[key_name(user)] emagged cyborg [key_name(src)]. Laws overridden.")
clear_supplied_laws()
@@ -836,30 +799,21 @@ var/list/robot_verbs_default = list(
lawchanges.Add("[time] : [M.name]([M.key]) emagged [name]([key])")
set_zeroth_law("Only [M.real_name] and people he designates as being such are Syndicate Agents.")
to_chat(src, "\red ALERT: Foreign software detected.")
-
sleep(5)
to_chat(src, "\red Initiating diagnostics...")
-
sleep(20)
to_chat(src, "\red SynBorg v1.7 loaded.")
-
sleep(5)
to_chat(src, "\red LAW SYNCHRONISATION ERROR")
-
sleep(5)
to_chat(src, "\red Would you like to send a report to NanoTraSoft? Y/N")
-
sleep(10)
to_chat(src, "\red > N")
-
sleep(20)
to_chat(src, "\red ERRORERRORERROR")
-
to_chat(src, "Obey these laws:")
-
laws.show_laws(src)
to_chat(src, "\red \b ALERT: [M.real_name] is your new master. Obey your new laws and his commands.")
-
if(src.module && istype(src.module, /obj/item/weapon/robot_module/miner))
for(var/obj/item/weapon/pickaxe/drill/cyborg/D in src.module.modules)
qdel(D)
@@ -885,16 +839,13 @@ var/list/robot_verbs_default = list(
update_icons()
to_chat(usr, "You unlock your cover.")
-
/mob/living/silicon/robot/attack_alien(mob/living/carbon/alien/humanoid/M as mob)
if (!ticker)
to_chat(M, "You cannot attack people before the game has started.")
-
return
if (istype(loc, /turf) && istype(loc.loc, /area/start))
to_chat(M, "No attacking people at spawn, you jackass.")
-
return
switch(M.a_intent)
@@ -997,7 +948,6 @@ var/list/robot_verbs_default = list(
cell.add_fingerprint(user)
user.put_in_active_hand(cell)
to_chat(user, "You remove \the [cell].")
-
cell = null
update_icons()
diag_hud_set_borgcell()
@@ -1083,7 +1033,6 @@ var/list/robot_verbs_default = list(
/mob/living/silicon/robot/proc/installed_modules()
if(weapon_lock)
to_chat(src, "\red Weapon lock active, unable to use modules! Count:[weaponlock_time]")
-
return
if(!module)
@@ -1171,10 +1120,8 @@ var/list/robot_verbs_default = list(
contents -= O
else
to_chat(src, "Module isn't activated.")
-
else
to_chat(src, "Module isn't activated")
-
installed_modules()
return 1
@@ -1186,13 +1133,11 @@ var/list/robot_verbs_default = list(
/mob/living/silicon/robot/proc/control_headlamp()
if(stat || lamp_recharging)
to_chat(src, "This function is currently offline.")
-
return
//Some sort of magical "modulo" thing which somehow increments lamp power by 2, until it hits the max and resets to 0.
lamp_intensity = (lamp_intensity+2) % (lamp_max+2)
to_chat(src, "[lamp_intensity ? "Headlamp power set to Level [lamp_intensity/2]" : "Headlamp disabled."]")
-
update_headlamp()
/mob/living/silicon/robot/proc/update_headlamp(var/turn_off = 0, var/cooldown = 100)
@@ -1200,7 +1145,6 @@ var/list/robot_verbs_default = list(
if(lamp_intensity && (turn_off || stat))
to_chat(src, "Your headlamp has been deactivated.")
-
lamp_intensity = 0
lamp_recharging = 1
spawn(cooldown) //10 seconds by default, if the source of the deactivation does not keep stat that long.
@@ -1257,7 +1201,6 @@ var/list/robot_verbs_default = list(
cleaned_human.update_inv_shoes(0,0)
cleaned_human.clean_blood()
to_chat(cleaned_human, "[src] cleans your face!")
-
return
#undef BORG_CAMERA_BUFFER
@@ -1296,7 +1239,6 @@ var/list/robot_verbs_default = list(
if(R)
R.UnlinkSelf()
to_chat(R, "Buffers flushed and reset. Camera system shutdown. All systems operational.")
-
src.verbs -= /mob/living/silicon/robot/proc/ResetSecurityCodes
/mob/living/silicon/robot/mode()
@@ -1341,7 +1283,6 @@ var/list/robot_verbs_default = list(
lockcharge = null
else
to_chat(src, "Something is badly wrong with the sprite selection. Harass a coder.")
-
icon_state = module_sprites[1]
lockcharge = null
return
@@ -1359,21 +1300,17 @@ var/list/robot_verbs_default = list(
else
to_chat(src, "Your icon has been set. You now require a module reset to change it.")
-
/mob/living/silicon/robot/proc/notify_ai(var/notifytype, var/oldname, var/newname)
if(!connected_ai)
return
switch(notifytype)
if(1) //New Cyborg
to_chat(connected_ai, "
NOTICE - New cyborg connection detected: [name]
")
-
if(2) //New Module
to_chat(connected_ai, "
NOTICE - Cyborg module change detected: [name] has loaded the [designation] module.
")
-
if(3) //New Name
to_chat(connected_ai, "
NOTICE - Cyborg reclassification detected: [oldname] is now designated as [newname].
")
-
/mob/living/silicon/robot/proc/disconnect_from_ai()
if(connected_ai)
sync() // One last sync attempt
@@ -1426,7 +1363,6 @@ var/list/robot_verbs_default = list(
if(isnull(ckey) && !searching_for_ckey)
searching_for_ckey = 1
to_chat(user, "Now checking for possible borgs.")
-
var/list/borg_candidates = pollCandidates("Do you want to play as a Nanotrasen Combat borg?")
if(borg_candidates.len > 0 && isnull(ckey))
searching_for_ckey = 0
@@ -1439,11 +1375,9 @@ var/list/robot_verbs_default = list(
else
searching_for_ckey = 0
to_chat(user, "Unable to connect to Central Command. Please wait and try again later.")
-
return
else
to_chat(user, "[src] is already checking for possible borgs.")
-
return
/mob/living/silicon/robot/syndicate
@@ -1478,7 +1412,6 @@ var/list/robot_verbs_default = list(
if(playstyle_string)
to_chat(src, playstyle_string)
-
playsound(loc, 'sound/mecha/nominalsyndi.ogg', 75, 0)
/mob/living/silicon/robot/syndicate/medical
diff --git a/code/modules/mob/living/silicon/robot/robot_damage.dm b/code/modules/mob/living/silicon/robot/robot_damage.dm
index 7b52c10f96a..54bc69b7020 100644
--- a/code/modules/mob/living/silicon/robot/robot_damage.dm
+++ b/code/modules/mob/living/silicon/robot/robot_damage.dm
@@ -9,9 +9,7 @@
var/mob/dead/observer/ghost = get_ghost()
if(ghost)
to_chat(ghost, "Your cyborg shell has been repaired, re-enter if you want to continue! (Verbs -> Ghost -> Re-enter corpse)")
-
to_chat(ghost, sound('sound/effects/genetics.ogg'))
-
return
@@ -93,13 +91,11 @@
if(cell.charge <= 0)
cell.charge = 0
to_chat(src, "\red Your shield has overloaded!")
-
else
brute -= absorb_brute
burn -= absorb_burn
to_chat(src, "\red Your shield absorbs some of the impact!")
-
var/datum/robot_component/armour/A = get_armour()
if(A)
A.take_damage(brute,burn,sharp,edge)
@@ -146,13 +142,11 @@
if(cell.charge <= 0)
cell.charge = 0
to_chat(src, "\red Your shield has overloaded!")
-
else
brute -= absorb_brute
burn -= absorb_burn
to_chat(src, "\red Your shield absorbs some of the impact!")
-
var/datum/robot_component/armour/A = get_armour()
if(A)
A.take_damage(brute,burn,sharp)
diff --git a/code/modules/mob/living/silicon/robot/robot_items.dm b/code/modules/mob/living/silicon/robot/robot_items.dm
index 7ef838c4a18..13c48d03ac5 100644
--- a/code/modules/mob/living/silicon/robot/robot_items.dm
+++ b/code/modules/mob/living/silicon/robot/robot_items.dm
@@ -22,7 +22,6 @@
else
mode = 1
to_chat(user, "Changed printing mode to '[mode == 2 ? "Rename Paper" : "Write Paper"]'")
-
playsound(src.loc, 'sound/effects/pop.ogg', 50, 0)
return
diff --git a/code/modules/mob/living/silicon/say.dm b/code/modules/mob/living/silicon/say.dm
index 956e5927fcc..07ea4bfa0bb 100644
--- a/code/modules/mob/living/silicon/say.dm
+++ b/code/modules/mob/living/silicon/say.dm
@@ -9,7 +9,6 @@
if(message_mode)
if(!is_component_functioning("radio"))
to_chat(src, "Your radio isn't functional at this time.")
-
return 0
if(message_mode == "general")
message_mode = null
@@ -23,7 +22,6 @@
else if(message_mode)
if (aiRadio.disabledAi || aiRestorePowerRoutine || stat)
to_chat(src, "System Error - Transceiver Disabled.")
-
return 0
if(message_mode == "general")
message_mode = null
@@ -86,14 +84,12 @@
rendered_b = "[voice_name] [speaking.format_message(message_stars, verb)]"
to_chat(src, "Holopad transmitted, [real_name] [speaking.format_message(message, verb)]")//The AI can "hear" its own message.
-
else
rendered_a = "[name] [verb], "
rendered_b = "[voice_name] [verb], "
to_chat(src, "Holopad transmitted, [real_name] [verb], ")//The AI can "hear" its own message.
-
for(var/mob/M in hearers(T.loc))//The location is the object, default distance.
if(M.say_understands(src))//If they understand AI speak. Humans and the like will be able to.
M.show_message(rendered_a, 2)
@@ -103,7 +99,6 @@
This is another way of saying that we won't bother dealing with them.*/
else
to_chat(src, "No holopad connected.")
-
return
return 1
@@ -121,12 +116,10 @@
var/rendered = "[name] "
to_chat(src, "Holopad action relayed, [real_name] ")
-
for(var/mob/M in viewers(T.loc))
M.show_message(rendered, 2)
else //This shouldn't occur, but better safe then sorry.
to_chat(src, "No holopad connected.")
-
return
return 1
diff --git a/code/modules/mob/living/silicon/silicon.dm b/code/modules/mob/living/silicon/silicon.dm
index f7813d04b45..a49e79a59e7 100644
--- a/code/modules/mob/living/silicon/silicon.dm
+++ b/code/modules/mob/living/silicon/silicon.dm
@@ -75,9 +75,7 @@
Stun(3)
flash_eyes(affect_silicon = 1)
to_chat(src, "\red *BZZZT*")
-
to_chat(src, "\red Warning: Electromagnetic pulse detected.")
-
..()
@@ -87,7 +85,6 @@
/mob/living/silicon/can_inject(var/mob/user, var/error_msg)
if(error_msg)
to_chat(user, "Their outer shell is too tough.")
-
return 0
/mob/living/silicon/IsAdvancedToolUser()
@@ -283,19 +280,15 @@
if ("Security")
add_sec_hud()
to_chat(src, "Security records overlay enabled.")
-
if ("Medical")
add_med_hud()
to_chat(src, "Life signs monitor overlay enabled.")
-
if ("Diagnostic")
add_diag_hud()
to_chat(src, "Robotics diagnostic overlay enabled.")
-
if ("Disable")
to_chat(src, "Sensor augmentations disabled.")
-
/mob/living/silicon/proc/receive_alarm(var/datum/alarm_handler/alarm_handler, var/datum/alarm/alarm, was_raised)
if(!next_alarm_notice)
next_alarm_notice = world.time + SecondsToTicks(10)
@@ -325,7 +318,6 @@
if(!reported)
reported = 1
to_chat(src, "--- [AH.category] Detected ---")
-
raised_alarm(A)
for(var/datum/alarm_handler/AH in queued_alarms)
@@ -336,14 +328,11 @@
if(!reported)
reported = 1
to_chat(src, "--- [AH.category] Cleared ---")
-
to_chat(src, "\The [A.alarm_name()].")
-
if(alarm_raised)
to_chat(src, "\[Show Alerts\]")
-
for(var/datum/alarm_handler/AH in queued_alarms)
var/list/alarms = queued_alarms[AH]
alarms.Cut()
@@ -351,14 +340,12 @@
/mob/living/silicon/proc/raised_alarm(var/datum/alarm/A)
to_chat(src, "[A.alarm_name()]!")
-
/mob/living/silicon/ai/raised_alarm(var/datum/alarm/A)
var/cameratext = ""
for(var/obj/machinery/camera/C in A.cameras())
cameratext += "[(cameratext == "")? "" : "|"][C.c_tag]"
to_chat(src, "[A.alarm_name()]! ([(cameratext)? cameratext : "No Camera"])")
-
/mob/living/silicon/adjustToxLoss(var/amount)
return
diff --git a/code/modules/mob/living/simple_animal/bees.dm b/code/modules/mob/living/simple_animal/bees.dm
index 438c60528e8..959444ea5e4 100644
--- a/code/modules/mob/living/simple_animal/bees.dm
+++ b/code/modules/mob/living/simple_animal/bees.dm
@@ -46,7 +46,6 @@
M.apply_damage((round(feral/10,1)*(max((round(strength/20,1)),1)))+toxic, TOX) // Bee venom based on how angry I am and how many there are of me!
to_chat(M, "\red You have been stung!")
-
//if we're chasing someone, get a little bit angry
if(target_mob && prob(10))
feral++
diff --git a/code/modules/mob/living/simple_animal/bot/bot.dm b/code/modules/mob/living/simple_animal/bot/bot.dm
index 89075e51173..2a53be92ee5 100644
--- a/code/modules/mob/living/simple_animal/bot/bot.dm
+++ b/code/modules/mob/living/simple_animal/bot/bot.dm
@@ -178,7 +178,6 @@
locked = 0
emagged = 1
to_chat(user, "You bypass [src]'s controls.")
-
return
if(!locked && open) //Bot panel is unlocked by ID or emag, and the panel is screwed open. Ready for emagging.
emagged = 2
@@ -187,27 +186,22 @@
bot_reset()
turn_on() //The bot automatically turns on when emagged, unless recently hit with EMP.
to_chat(src, "(#$*#$^^( OVERRIDE DETECTED")
-
show_laws()
add_logs(user, src, "emagged")
return
else //Bot is unlocked, but the maint panel has not been opened with a screwdriver yet.
to_chat(user, "You need to open maintenance panel first!")
-
/mob/living/simple_animal/bot/examine(mob/user)
..()
if(health < maxHealth)
if(health > maxHealth/3)
to_chat(user, "[src]'s parts look loose.")
-
else
to_chat(user, "[src]'s parts look very loose!")
-
else
to_chat(user, "[src] is in pristine condition.")
-
/mob/living/simple_animal/bot/adjustBruteLoss(amount)
. = ..()
@@ -270,7 +264,6 @@
else
to_chat(user, "[src]'s interface is not responding!")
-
/mob/living/simple_animal/bot/proc/interact(mob/user)
show_controls(user)
@@ -279,29 +272,22 @@
if(!locked)
open = !open
to_chat(user, "The maintenance panel is now [open ? "opened" : "closed"].")
-
else
to_chat(user, "The maintenance panel is locked.")
-
else if(istype(W, /obj/item/weapon/card/id) || istype(W, /obj/item/device/pda))
if(bot_core.allowed(user) && !open && !emagged)
locked = !locked
to_chat(user, "Controls are now [locked ? "locked." : "unlocked."]")
-
else
if(emagged)
to_chat(user, "ERROR")
-
if(open)
to_chat(user, "Please close the access panel before locking it.")
-
else
to_chat(user, "Access denied.")
-
else if(istype(W, /obj/item/device/paicard))
if(paicard)
to_chat(user, "A [paicard] is already inserted!")
-
else if(allow_pai && !key)
if(!locked && !open)
var/obj/item/device/paicard/card = W
@@ -313,27 +299,21 @@
user.visible_message("[user] inserts [W] into [src]!","You insert [W] into [src].")
paicard.pai.mind.transfer_to(src)
to_chat(src, "You sense your form change as you are uploaded into [src].")
-
bot_name = name
name = paicard.pai.name
faction = user.faction
add_logs(user, paicard.pai, "uploaded to [src.bot_name],")
else
to_chat(user, "[W] is inactive.")
-
else
to_chat(user, "The personality slot is locked.")
-
else
to_chat(user, "[src] is not compatible with [W]")
-
else if(istype(W, /obj/item/weapon/hemostat) && paicard)
if(open)
to_chat(user, "Close the access panel before manipulating the personality slot!")
-
else
to_chat(user, "You attempt to pull [paicard] free...")
-
if(do_after(user, 30, target = src))
if (paicard)
user.visible_message("[user] uses [W] to pull [paicard] out of [bot_name]!","You pull [paicard] out of [bot_name] with [W].")
@@ -343,11 +323,9 @@
if(istype(W, /obj/item/weapon/weldingtool) && user.a_intent != "harm")
if(health >= maxHealth)
to_chat(user, "[src] does not need a repair!")
-
return
if(!open)
to_chat(user, "Unable to repair with the maintenance panel closed!")
-
return
var/obj/item/weapon/weldingtool/WT = W
if(WT.remove_fuel(0, user))
@@ -358,7 +336,6 @@
user.visible_message("[user] repairs [src]!","You repair [src].")
else
to_chat(user, "The welder must be on for this task!")
-
else
if(W.force) //if force is non-zero
var/datum/effect/system/spark_spread/s = new /datum/effect/system/spark_spread
@@ -523,14 +500,12 @@ Pass a positive integer as an argument to override a bot's default speed.
access_card = all_access //Give the bot all-access while under the AI's command.
if(message)
to_chat(calling_ai, "\icon[src] [name] called to [end_area.name]. [path.len-1] meters to destination.")
-
pathset = 1
mode = BOT_RESPONDING
tries = 0
else
if(message)
to_chat(calling_ai, "Failed to calculate a valid route. Ensure destination is clear of obstructions and within range.")
-
calling_ai = null
path = list()
@@ -540,14 +515,12 @@ Pass a positive integer as an argument to override a bot's default speed.
if(!success)
if(calling_ai)
to_chat(calling_ai, "\icon[src] [get_turf(src) == ai_waypoint ? "[src] successfully arrived to waypoint." : "[src] failed to reach waypoint."]")
-
calling_ai = null
bot_reset()
/mob/living/simple_animal/bot/proc/bot_reset()
if(calling_ai) //Simple notification to the AI if it called a bot. It will not know the cause or identity of the bot.
to_chat(calling_ai, "Call command to a bot has been reset.")
-
calling_ai = null
path = list()
summon_target = null
@@ -674,22 +647,17 @@ Pass a positive integer as an argument to override a bot's default speed.
switch(command)
if("stop")
to_chat(src, "STOP PATROL")
-
if("go")
to_chat(src, "START PATROL")
-
if("summon")
var/area/a = get_area(user_turf)
to_chat(src, "PRIORITY ALERT: [user] in [a.name]!")
-
if("home")
to_chat(src, "RETURN HOME!")
-
if("ejectpai")
else
to_chat(src, "Unidentified control sequence recieved: [command]")
-
/obj/machinery/bot_core/receive_signal(datum/signal/signal)
owner.receive_signal(signal)
@@ -839,7 +807,6 @@ Pass a positive integer as an argument to override a bot's default speed.
if(topic_denied(usr))
to_chat(usr, "[src]'s interface is not responding!")
-
return 1
add_fingerprint(usr)
@@ -861,23 +828,19 @@ Pass a positive integer as an argument to override a bot's default speed.
hacked = 1
locked = 1
to_chat(usr, "[text_hack]")
-
show_laws()
bot_reset()
else if(!hacked)
to_chat(usr, "[text_dehack_fail]")
-
else
emagged = 0
hacked = 0
to_chat(usr, "[text_dehack]")
-
show_laws()
bot_reset()
if("ejectpai")
if(paicard && (!locked || issilicon(usr) || check_rights(R_ADMIN, 0, usr)))
to_chat(usr, "You eject [paicard] from [bot_name]")
-
ejectpai(usr)
update_controls()
@@ -951,7 +914,6 @@ Pass a positive integer as an argument to override a bot's default speed.
add_logs(src, paicard.pai, "ejected")
if(announce)
to_chat(paicard.pai, "You feel your control fade as [paicard] ejects from [bot_name].")
-
paicard = null
name = bot_name
faction = initial(faction)
@@ -990,30 +952,20 @@ Pass a positive integer as an argument to override a bot's default speed.
set category = "IC"
to_chat(src, "Directives:")
-
if(paicard && paicard.pai && paicard.pai.master && paicard.pai.pai_law0)
to_chat(src, "Your master, [paicard.pai.master], may overrule any and all laws.")
-
to_chat(src, "0. [paicard.pai.pai_law0]")
-
if(emagged >= 2)
to_chat(src, "1. #$!@#$32K#$")
-
else
to_chat(src, "1. You are a machine built to serve the station's crew and AI(s).")
-
to_chat(src, "2. Your function is to [bot_purpose].")
-
to_chat(src, "3. You cannot serve your function if you are broken.")
-
to_chat(src, "4. Serve your function to the best of your ability.")
-
if(paicard && paicard.pai && paicard.pai.pai_laws)
to_chat(src, "Supplemental Directive(s):")
-
to_chat(src, "[paicard.pai.pai_laws]")
-
/mob/living/simple_animal/bot/get_access()
. = ..()
diff --git a/code/modules/mob/living/simple_animal/bot/cleanbot.dm b/code/modules/mob/living/simple_animal/bot/cleanbot.dm
index ddea9e7bbf6..0dc75f742f8 100644
--- a/code/modules/mob/living/simple_animal/bot/cleanbot.dm
+++ b/code/modules/mob/living/simple_animal/bot/cleanbot.dm
@@ -62,17 +62,13 @@
if(bot_core.allowed(user) && !open && !emagged)
locked = !locked
to_chat(user, "You [ locked ? "lock" : "unlock"] \the [src] behaviour controls.")
-
else
if(emagged)
to_chat(user, "ERROR")
-
if(open)
to_chat(user, "Please close the access panel before locking it.")
-
else
to_chat(user, "\The [src] doesn't seem to respect your authority.")
-
else
return ..()
@@ -82,7 +78,6 @@
if(user)
to_chat(user, "[src] buzzes and beeps.")
-
/mob/living/simple_animal/bot/cleanbot/process_scan(obj/effect/decal/cleanable/D)
for(var/T in target_types)
if(istype(D, T))
diff --git a/code/modules/mob/living/simple_animal/bot/construction.dm b/code/modules/mob/living/simple_animal/bot/construction.dm
index c7d62d6e4cf..2c2ca652d10 100644
--- a/code/modules/mob/living/simple_animal/bot/construction.dm
+++ b/code/modules/mob/living/simple_animal/bot/construction.dm
@@ -23,7 +23,6 @@
var/mob/living/simple_animal/bot/cleanbot/A = new /mob/living/simple_animal/bot/cleanbot(T)
A.name = created_name
to_chat(user, "You add the robot arm to the bucket and sensor assembly. Beep boop!")
-
user.unEquip(src, 1)
qdel(src)
@@ -67,7 +66,6 @@
qdel(W)
build_step++
to_chat(user, "You add the robot leg to [src].")
-
name = "legs/frame assembly"
if(build_step == 1)
item_state = "ed209_leg"
@@ -89,7 +87,6 @@
qdel(W)
build_step++
to_chat(user, "You add the armor to [src].")
-
name = "vest/legs/frame assembly"
item_state = "[lasercolor]ed209_shell"
icon_state = "[lasercolor]ed209_shell"
@@ -101,7 +98,6 @@
build_step++
name = "shielded frame assembly"
to_chat(user, "You weld the vest to [src].")
-
if(4)
switch(lasercolor)
if("b")
@@ -121,7 +117,6 @@
qdel(W)
build_step++
to_chat(user, "You add the helmet to [src].")
-
name = "covered and shielded frame assembly"
item_state = "[lasercolor]ed209_hat"
icon_state = "[lasercolor]ed209_hat"
@@ -133,7 +128,6 @@
qdel(W)
build_step++
to_chat(user, "You add the prox sensor to [src].")
-
name = "covered, shielded and sensored frame assembly"
item_state = "[lasercolor]ed209_prox"
icon_state = "[lasercolor]ed209_prox"
@@ -143,16 +137,13 @@
var/obj/item/stack/cable_coil/coil = W
if(coil.get_amount() < 1)
to_chat(user, "You need one length of cable to wire the ED-209!")
-
return
to_chat(user, "You start to wire [src]...")
-
if(do_after(user, 40, target = src))
if(coil.get_amount() >= 1 && build_step == 6)
coil.use(1)
build_step = 7
to_chat(user, "You wire the ED-209 assembly.")
-
name = "wired ED-209 assembly"
if(7)
@@ -177,7 +168,6 @@
name = newname
build_step++
to_chat(user, "You add [W] to [src].")
-
item_state = "[lasercolor]ed209_taser"
icon_state = "[lasercolor]ed209_taser"
qdel(W)
@@ -186,20 +176,17 @@
if(istype(W, /obj/item/weapon/screwdriver))
playsound(loc, 'sound/items/Screwdriver.ogg', 100, 1)
to_chat(user, "You start attaching the gun to the frame...")
-
if(do_after(user, 40, target = src))
build_step++
name = "armed [name]"
to_chat(user, "Taser gun attached.")
-
if(9)
if(istype(W, /obj/item/weapon/stock_parts/cell))
if(!user.unEquip(W))
return
build_step++
to_chat(user, "You complete the ED-209.")
-
var/turf/T = get_turf(src)
new /mob/living/simple_animal/bot/ed209(T,created_name,lasercolor)
qdel(W)
@@ -237,7 +224,6 @@
return
if(contents.len >= 1)
to_chat(user, "They won't fit in, as there is already stuff inside.")
-
return
if(T.use(10))
if(user.s_active)
@@ -245,12 +231,10 @@
var/obj/item/weapon/toolbox_tiles/B = new /obj/item/weapon/toolbox_tiles
user.put_in_hands(B)
to_chat(user, "You add the tiles into the empty toolbox. They protrude from the top.")
-
user.unEquip(src, 1)
qdel(src)
else
to_chat(user, "You need 10 floor tiles to start building a floorbot.")
-
return
/obj/item/weapon/toolbox_tiles/attackby(obj/item/W, mob/user, params)
@@ -261,7 +245,6 @@
B.created_name = created_name
user.put_in_hands(B)
to_chat(user, "You add the sensor to the toolbox and tiles.")
-
user.unEquip(src, 1)
qdel(src)
@@ -282,7 +265,6 @@
var/mob/living/simple_animal/bot/floorbot/A = new /mob/living/simple_animal/bot/floorbot(T)
A.name = created_name
to_chat(user, "You add the robot arm to the odd looking toolbox assembly. Boop beep!")
-
user.unEquip(src, 1)
qdel(src)
else if(istype(W, /obj/item/weapon/pen))
@@ -326,7 +308,6 @@
//Making a medibot!
if(contents.len >= 1)
to_chat(user, "You need to empty [src] out first!")
-
return
var/obj/item/weapon/firstaid_arm_assembly/A = new /obj/item/weapon/firstaid_arm_assembly
@@ -355,7 +336,6 @@
qdel(S)
user.put_in_hands(A)
to_chat(user, "You add the robot arm to the first aid kit.")
-
user.unEquip(src, 1)
qdel(src)
@@ -378,7 +358,6 @@
qdel(W)
build_step++
to_chat(user, "You add the health sensor to [src].")
-
name = "First aid/robot arm/health analyzer assembly"
overlays += image('icons/obj/aibots.dmi', "na_scanner")
@@ -389,7 +368,6 @@
qdel(W)
build_step++
to_chat(user, "You complete the Medibot. Beep boop!")
-
var/turf/T = get_turf(src)
var/mob/living/simple_animal/bot/medbot/S = new /mob/living/simple_animal/bot/medbot(T)
S.skin = skin
@@ -424,7 +402,6 @@
var/obj/item/weapon/secbot_assembly/A = new /obj/item/weapon/secbot_assembly
user.put_in_hands(A)
to_chat(user, "You add the signaler to the helmet.")
-
user.unEquip(src, 1)
qdel(src)
else
@@ -439,7 +416,6 @@
build_step++
overlays += "hs_hole"
to_chat(user, "You weld a hole in [src]!")
-
else if(build_step == 1)
var/obj/item/weapon/weldingtool/WT = I
if(WT.remove_fuel(0, user))
@@ -447,13 +423,11 @@
overlays -= "hs_hole"
to_chat(user, "You weld the hole in [src] shut!")
-
else if(isprox(I) && (build_step == 1))
if(!user.unEquip(I))
return
build_step++
to_chat(user, "You add the prox sensor to [src]!")
-
overlays += "hs_eye"
name = "helmet/signaler/prox sensor assembly"
qdel(I)
@@ -463,7 +437,6 @@
return
build_step++
to_chat(user, "You add the robot arm to [src]!")
-
name = "helmet/signaler/prox sensor/robot arm assembly"
overlays += "hs_arm"
qdel(I)
@@ -473,7 +446,6 @@
return
build_step++
to_chat(user, "You complete the Securitron! Beep boop.")
-
var/mob/living/simple_animal/bot/secbot/S = new /mob/living/simple_animal/bot/secbot
S.forceMove(get_turf(src))
S.name = created_name
@@ -493,19 +465,16 @@
new /obj/item/device/assembly/signaler(get_turf(src))
new /obj/item/clothing/head/helmet(get_turf(src))
to_chat(user, "You disconnect the signaler from the helmet.")
-
qdel(src)
else if(build_step == 2)
overlays -= "hs_eye"
new /obj/item/device/assembly/prox_sensor(get_turf(src))
to_chat(user, "You detach the proximity sensor from [src].")
-
build_step--
else if(build_step == 3)
overlays -= "hs_arm"
new /obj/item/robot_parts/l_arm(get_turf(src))
to_chat(user, "You remove the robot arm from [src].")
-
build_step--
\ No newline at end of file
diff --git a/code/modules/mob/living/simple_animal/bot/ed209bot.dm b/code/modules/mob/living/simple_animal/bot/ed209bot.dm
index 72b951138b6..a68837ef7ff 100644
--- a/code/modules/mob/living/simple_animal/bot/ed209bot.dm
+++ b/code/modules/mob/living/simple_animal/bot/ed209bot.dm
@@ -178,7 +178,6 @@ Auto Patrol[]"},
if(emagged == 2)
if(user)
to_chat(user, "You short out [src]'s target assessment circuits.")
-
oldtarget_name = user.name
audible_message("[src] buzzes oddly!")
declare_arrests = 0
diff --git a/code/modules/mob/living/simple_animal/bot/floorbot.dm b/code/modules/mob/living/simple_animal/bot/floorbot.dm
index fd624d373bd..c988f856ef7 100644
--- a/code/modules/mob/living/simple_animal/bot/floorbot.dm
+++ b/code/modules/mob/living/simple_animal/bot/floorbot.dm
@@ -98,12 +98,10 @@
amount += loaded
if(loaded > 0)
to_chat(user, "You load [loaded] tiles into the floorbot. He now contains [amount] tiles.")
-
nagged = 0
update_icon()
else
to_chat(user, "You need at least one floor tile to put into [src]!")
-
else
..()
@@ -113,7 +111,6 @@
if(user)
to_chat(user, "[src] buzzes and beeps.")
-
/mob/living/simple_animal/bot/floorbot/Topic(href, href_list)
if(..())
return 1
diff --git a/code/modules/mob/living/simple_animal/bot/medbot.dm b/code/modules/mob/living/simple_animal/bot/medbot.dm
index eb1e5591f46..3534bbf55b2 100644
--- a/code/modules/mob/living/simple_animal/bot/medbot.dm
+++ b/code/modules/mob/living/simple_animal/bot/medbot.dm
@@ -222,11 +222,9 @@
if(istype(W, /obj/item/weapon/reagent_containers/glass))
if(locked)
to_chat(user, "You cannot insert a beaker because the panel is locked!")
-
return
if(!isnull(reagent_glass))
to_chat(user, "There is already a beaker loaded!")
-
return
if(!user.drop_item())
return
@@ -234,7 +232,6 @@
W.forceMove(src)
reagent_glass = W
to_chat(user, "You insert [W].")
-
show_controls(user)
return
@@ -250,7 +247,6 @@
declare_crit = 0
if(user)
to_chat(user, "You short out [src]'s reagent synthesis circuits.")
-
audible_message("[src] buzzes oddly!")
flick("medibot_spark", src)
if(user)
diff --git a/code/modules/mob/living/simple_animal/bot/mulebot.dm b/code/modules/mob/living/simple_animal/bot/mulebot.dm
index be1a59d55f2..e2bad0bcd3b 100644
--- a/code/modules/mob/living/simple_animal/bot/mulebot.dm
+++ b/code/modules/mob/living/simple_animal/bot/mulebot.dm
@@ -116,7 +116,6 @@
)
else
to_chat(user, "[src] does not need a repair!")
-
else if((istype(I, /obj/item/device/multitool) || istype(I, /obj/item/weapon/wirecutters)) && open)
return attack_hand(user)
else if(load && ismob(load)) // chance to knock off rider
@@ -126,7 +125,6 @@
"You knock [load] off [src] with \the [I]!")
else
to_chat(user, "You hit [src] with \the [I] but to no effect!")
-
..()
else
..()
@@ -139,7 +137,6 @@
if(!open)
locked = !locked
to_chat(user, "You [locked ? "lock" : "unlock"] the [src]'s controls!")
-
flick("mulebot-emagged", src)
playsound(loc, 'sound/effects/sparks1.ogg', 100, 0)
@@ -189,7 +186,6 @@
else if(cell && !open)
if(!turn_on())
to_chat(usr, "You can't switch on [src]!")
-
return
else
return
@@ -254,7 +250,6 @@
return 1
else
to_chat(user, "Access denied.")
-
return 0
// TODO: remove this; PDAs currently depend on it
@@ -480,7 +475,6 @@
if(on)
var/speed = (wires.Motor1() ? 1 : 0) + (wires.Motor2() ? 2 : 0)
// to_chat(world, "speed: [speed]")
-
var/num_steps = 0
switch(speed)
if(0)
@@ -524,13 +518,11 @@
if(istype(next, /turf/simulated))
// to_chat(world, "at ([x],[y]) moving to ([next.x],[next.y])")
-
var/oldloc = loc
var/moved = step_towards(src, next) // attempt to move
if(cell) cell.use(1)
if(moved && oldloc!=loc) // successful move
// to_chat(world, "Successful move.")
-
blockcount = 0
path -= loc
@@ -542,7 +534,6 @@
else // failed to move
// to_chat(world, "Unable to move.")
-
blockcount++
mode = BOT_BLOCKED
if(blockcount == 3)
@@ -563,18 +554,15 @@
else
buzz(ANNOYED)
// to_chat(world, "Bad turf.")
-
mode = BOT_NAV
return
else
// to_chat(world, "No path.")
-
mode = BOT_NAV
return
if(BOT_NAV) // calculate new path
// to_chat(world, "Calc new path.")
-
mode = BOT_WAIT_FOR_NAV
spawn(0)
calc_path()
@@ -652,7 +640,6 @@
loaddir = dir //The MULE will attempt to load a crate in whatever direction the MULE is "facing".
if(calling_ai)
to_chat(calling_ai, "\icon[src] [src] wirelessly plays a chiming sound!")
-
playsound(calling_ai, 'sound/machines/chime.ogg',40, 0)
calling_ai = null
radio_channel = "AI Private" //Report on AI Private instead if the AI is controlling us.
@@ -740,17 +727,13 @@
if("start")
if(load)
to_chat(src, "DELIVER [load] TO [destination]")
-
else
to_chat(src, "PICK UP DELIVERY AT [destination]")
-
if("unload")
if(load)
to_chat(src, "UNLOAD")
-
else
to_chat(src, "LOAD")
-
if("autoret", "autopick", "target")
else
..()
diff --git a/code/modules/mob/living/simple_animal/bot/secbot.dm b/code/modules/mob/living/simple_animal/bot/secbot.dm
index 002ed319ad6..1d3d2198fcc 100644
--- a/code/modules/mob/living/simple_animal/bot/secbot.dm
+++ b/code/modules/mob/living/simple_animal/bot/secbot.dm
@@ -184,7 +184,6 @@ Auto Patrol: []"},
if(emagged == 2)
if(user)
to_chat(user, "You short out [src]'s target assessment circuits.")
-
oldtarget_name = user.name
audible_message("[src] buzzes oddly!")
declare_arrests = 0
diff --git a/code/modules/mob/living/simple_animal/constructs.dm b/code/modules/mob/living/simple_animal/constructs.dm
index 3b1e0020e0b..6c630ec0117 100644
--- a/code/modules/mob/living/simple_animal/constructs.dm
+++ b/code/modules/mob/living/simple_animal/constructs.dm
@@ -54,7 +54,6 @@
to_chat(user, msg)
-
/mob/living/simple_animal/construct/attack_animal(mob/living/simple_animal/M as mob)
if(istype(M, /mob/living/simple_animal/construct/builder))
health += 5
@@ -256,7 +255,6 @@
if(usr.energy<300)
to_chat(usr, "\red You do not have enough power stored!")
-
return
if(usr.stat)
diff --git a/code/modules/mob/living/simple_animal/friendly/corgi.dm b/code/modules/mob/living/simple_animal/friendly/corgi.dm
index 4822fbe7cf1..fa49d9bdffd 100644
--- a/code/modules/mob/living/simple_animal/friendly/corgi.dm
+++ b/code/modules/mob/living/simple_animal/friendly/corgi.dm
@@ -69,11 +69,9 @@
if( istype(inventory_head,/obj/item/clothing/head/helmet) && istype(inventory_back,/obj/item/clothing/suit/armor) )
if( O.force )
to_chat(user, "[src] is wearing too much armor! You can't cause \him any damage.")
-
visible_message(" [user] hits [src] with [O], however [src] is too armored.")
else
to_chat(user, "[src] is wearing too much armor! You can't reach \his skin.")
-
visible_message("[user] gently taps [src] with [O].")
if(health>0 && prob(15))
custom_emote(1, "looks at [user] with [pick("an amused","an annoyed","a confused","a resentful", "a happy", "an excited")] expression.")
@@ -82,7 +80,6 @@
if (istype(O, /obj/item/weapon/razor))
if (shaved)
to_chat(user, "You can't shave this corgi, it's already been shaved!")
-
return
user.visible_message("[user] starts to shave [src] using \the [O].", "You start to shave [src] using \the [O]...")
if(do_after(user, 50, target = src))
@@ -111,7 +108,6 @@
if(inventory_head)
if(inventory_head.flags & NODROP)
to_chat(usr, "\The [inventory_head] is stuck too hard to [src] for you to remove!")
-
return
name = real_name
desc = initial(desc)
@@ -126,20 +122,17 @@
regenerate_icons()
else
to_chat(usr, "There is nothing to remove from its [remove_from].")
-
return
if("back")
if(inventory_back)
if(inventory_back.flags & NODROP)
to_chat(usr, "\The [inventory_back] is stuck too hard to [src] for you to remove!")
-
return
inventory_back.loc = src.loc
inventory_back = null
regenerate_icons()
else
to_chat(usr, "There is nothing to remove from its [remove_from].")
-
return
show_inv(usr)
@@ -158,7 +151,6 @@
if("back")
if(inventory_back)
to_chat(usr, "It's already wearing something!")
-
return
else
var/obj/item/item_to_add = usr.get_active_hand()
@@ -185,10 +177,8 @@
if( ! ( item_to_add.type in allowed_types ) )
to_chat(usr, "You set [item_to_add] on [src]'s back, but \he shakes it off!")
-
if(!usr.drop_item())
to_chat(usr, "\The [item_to_add] is stuck to your hand, you cannot put it on [src]'s back!")
-
return
item_to_add.loc = loc
if(prob(25))
@@ -219,7 +209,6 @@
if(inventory_head)
if(user)
to_chat(user, "You can't put more than one hat on [src]!")
-
return
if(!item_to_add)
user.visible_message("[user] pets [src].","You rest your hand on [src]'s head for a moment.")
@@ -372,11 +361,9 @@
if(valid)
if(user && !user.drop_item())
to_chat(user, "\The [item_to_add] is stuck to your hand, you cannot put it on [src]'s head!")
-
return 0
if(health <= 0)
to_chat(user, "There is merely a dull, lifeless look in [real_name]'s eyes as you put the [item_to_add] on \him.")
-
else if(user)
user.visible_message("[user] puts [item_to_add] on [real_name]'s head. [src] looks at [user] and barks once.",
"You put [item_to_add] on [real_name]'s head. [src] gives you a peculiar look, then wags \his tail once and barks.",
@@ -388,10 +375,8 @@
else
if(user && !user.drop_item())
to_chat(user, "\The [item_to_add] is stuck to your hand, you cannot put it on [src]'s head!")
-
return 0
to_chat(user, "You set [item_to_add] on [src]'s head, but \he shakes it off!")
-
item_to_add.loc = loc
if(prob(25))
step_rand(item_to_add)
@@ -484,7 +469,6 @@
if(istype(tmob, /mob/living/carbon/human) && (FAT in tmob.mutations))
if(prob(70))
to_chat(src, "\red You fail to push [tmob]'s fat ass out of the way.")
-
now_pushing = 0
return
if(!(tmob.status_flags & CANPUSH))
@@ -551,7 +535,6 @@
/mob/living/simple_animal/pet/corgi/puppy/Topic(href, href_list)
if(href_list["remove_inv"] || href_list["add_inv"])
to_chat(usr, "You can't fit this on [src]!")
-
return
..()
@@ -576,7 +559,6 @@
/mob/living/simple_animal/pet/corgi/Lisa/Topic(href, href_list)
if(href_list["remove_inv"] || href_list["add_inv"])
to_chat(usr, "\red [src] already has a cute bow!")
-
return
..()
diff --git a/code/modules/mob/living/simple_animal/friendly/corgi_powers.dm b/code/modules/mob/living/simple_animal/friendly/corgi_powers.dm
index a244ce83cf9..dc687743197 100644
--- a/code/modules/mob/living/simple_animal/friendly/corgi_powers.dm
+++ b/code/modules/mob/living/simple_animal/friendly/corgi_powers.dm
@@ -3,11 +3,9 @@
set desc = "d'awwww."
set category = "Corgi"
to_chat(src, text("[pick("You dance around","You chase your tail")]."))
-
for(var/mob/O in oviewers(src, null))
if ((O.client && !( O.blinded )))
to_chat(O, text("[] [pick("dances around","chases its tail")].", src))
-
for(var/i in list(1,2,4,8,4,2,1,2,4,8,4,2,1,2,4,8,4,2))
dir = i
sleep(1)
diff --git a/code/modules/mob/living/simple_animal/friendly/crab.dm b/code/modules/mob/living/simple_animal/friendly/crab.dm
index 2de110a2fb4..f5880e5ba7d 100644
--- a/code/modules/mob/living/simple_animal/friendly/crab.dm
+++ b/code/modules/mob/living/simple_animal/friendly/crab.dm
@@ -52,7 +52,6 @@
if(istype(O, /obj/item/weapon/wirecutters))
if(prob(50))
to_chat(user, "\red \b This kills the crab.")
-
health -= 20
death()
else
@@ -72,7 +71,6 @@
M.show_message("\blue [user] applies the [MED] on [src]")
else
to_chat(user, "\blue this [src] is dead, medical items won't bring it back to life.")
-
else
if(O.force)
health -= O.force
@@ -81,7 +79,6 @@
M.show_message("\red \b [src] has been attacked with the [O] by [user]. ")
else
to_chat(usr, "\red This weapon is ineffective, it does no damage.")
-
for(var/mob/M in viewers(src, null))
if ((M.client && !( M.blinded )))
M.show_message("\red [user] gently taps [src] with the [O]. ")
@@ -108,7 +105,6 @@
inventory_head = null
else
to_chat(usr, "\red There is nothing to remove from its [remove_from].")
-
return
if("mask")
if(inventory_mask)
@@ -116,7 +112,6 @@
inventory_mask = null
else
to_chat(usr, "\red There is nothing to remove from its [remove_from].")
-
return
//show_inv(usr) //Commented out because changing Ian's name and then calling up his inventory opens a new inventory...which is annoying.
@@ -128,13 +123,11 @@
var/add_to = href_list["add_inv"]
if(!usr.get_active_hand())
to_chat(usr, "\red You have nothing in your hand to put on its [add_to].")
-
return
switch(add_to)
if("head")
if(inventory_head)
to_chat(usr, "\red It's is already wearing something.")
-
return
else
var/obj/item/item_to_add = usr.get_active_hand()
@@ -177,7 +170,6 @@
if( ! ( item_to_add.type in allowed_types ) )
to_chat(usr, "\red It doesn't seem too keen on wearing that item.")
-
return
usr.drop_item()
@@ -241,7 +233,6 @@
if("mask")
if(inventory_mask)
to_chat(usr, "\red It's already wearing something.")
-
return
else
var/obj/item/item_to_add = usr.get_active_hand()
@@ -258,7 +249,6 @@
if( ! ( item_to_add.type in allowed_types ) )
to_chat(usr, "\red This object won't fit.")
-
return
usr.drop_item()
diff --git a/code/modules/mob/living/simple_animal/friendly/diona.dm b/code/modules/mob/living/simple_animal/friendly/diona.dm
index 6c1fb0486dc..4606558d271 100644
--- a/code/modules/mob/living/simple_animal/friendly/diona.dm
+++ b/code/modules/mob/living/simple_animal/friendly/diona.dm
@@ -54,9 +54,7 @@
if(M.a_intent == I_HELP)
if(M.species && M.species.name == "Diona")
to_chat(M, "You feel your being twine with that of [src] as it merges with your biomass.")
-
to_chat(src, "You feel your being twine with that of [M] as you merge with its biomass.")
-
src.verbs += /mob/living/simple_animal/diona/proc/split
src.verbs -= /mob/living/simple_animal/diona/proc/merge
src.forceMove(M)
@@ -90,11 +88,9 @@
if(istype(M,/mob/living/carbon/human))
to_chat(M, "You feel your being twine with that of [src] as it merges with your biomass.")
-
M.status_flags |= PASSEMOTES
to_chat(src, "You feel your being twine with that of [M] as you merge with its biomass.")
-
src.loc = M
src.verbs += /mob/living/simple_animal/diona/proc/split
src.verbs -= /mob/living/simple_animal/diona/proc/merge
@@ -111,10 +107,8 @@
return
to_chat(src.loc, "You feel a pang of loss as [src] splits away from your biomass.")
-
to_chat(src, "You wiggle out of the depths of [src.loc]'s biomass and plop to the ground.")
-
var/mob/living/M = src.loc
src.loc = get_turf(src)
@@ -170,12 +164,10 @@
if(donors.len < 5)
to_chat(src, "You need more blood in order to ascend to a new state of consciousness...")
-
return
if(nutrition < 500)
to_chat(src, "You need to binge on weeds in order to have the energy to grow...")
-
return
src.split()
@@ -219,12 +211,10 @@
if(M.species.flags & NO_BLOOD)
to_chat(src, "That donor has no blood to take.")
-
return
if(donors.Find(M.real_name))
to_chat(src, "That donor offers you nothing new.")
-
return
src.visible_message("[src] flicks out a feeler and neatly steals a sample of [M]'s blood.","You flick out a feeler and neatly steal a sample of [M]'s blood.")
@@ -243,16 +233,13 @@
if(donors.len == 5)
ready_evolve = 1
to_chat(src, "You feel ready to move on to your next stage of growth.")
-
else if(donors.len == 3)
universal_understand = 1
to_chat(src, "You feel your awareness expand, and realize you know how to understand the creatures around you.")
-
else
to_chat(src, "The blood seeps into your small form, and you draw out the echoes of memories and personality from it, working them into your budding mind.")
-
/mob/living/simple_animal/diona/put_in_hands(obj/item/W)
W.loc = get_turf(src)
W.layer = initial(W.layer)
@@ -260,7 +247,6 @@
/mob/living/simple_animal/diona/put_in_active_hand(obj/item/W)
to_chat(src, "You don't have any hands!")
-
return
/mob/living/simple_animal/diona/emote(var/act, var/m_type=1, var/message = null)
diff --git a/code/modules/mob/living/simple_animal/friendly/farm_animals.dm b/code/modules/mob/living/simple_animal/friendly/farm_animals.dm
index 9e5086fd0cc..fd32aa4fd0c 100644
--- a/code/modules/mob/living/simple_animal/friendly/farm_animals.dm
+++ b/code/modules/mob/living/simple_animal/friendly/farm_animals.dm
@@ -82,10 +82,8 @@
milk_content -= transfered
else if(G.reagents.total_volume >= G.volume)
to_chat(user, "\red \The [O] is full.")
-
else
to_chat(user, "\red The udder is dry. Wait a bit longer...")
-
else
..()
@@ -128,10 +126,8 @@
milk_content -= transfered
else if(G.reagents.total_volume >= G.volume)
to_chat(user, "\red \The [O] is full.")
-
else
to_chat(user, "\red The udder is dry. Wait a bit longer...")
-
else
..()
@@ -153,7 +149,6 @@
"[src] looks at you with a resigned expression.",
"[src] seems resigned to its fate.")
to_chat(M, pick(responses))
-
else
..()
@@ -251,13 +246,10 @@ var/global/chicken_count = 0
qdel(O)
eggsleft += rand(1, 4)
// to_chat(world, eggsleft)
-
else
to_chat(user, "\blue [name] doesn't seem hungry!")
-
else
to_chat(user, "\blue [name] doesn't seem interested in [O]!")
-
else
..()
diff --git a/code/modules/mob/living/simple_animal/friendly/mouse.dm b/code/modules/mob/living/simple_animal/friendly/mouse.dm
index dcb54f0eacc..6e8ef064bd5 100644
--- a/code/modules/mob/living/simple_animal/friendly/mouse.dm
+++ b/code/modules/mob/living/simple_animal/friendly/mouse.dm
@@ -38,7 +38,6 @@
for(var/mob/M in view())
to_chat(M, 'sound/effects/mousesqueek.ogg')
-
/mob/living/simple_animal/mouse/Life()
. = ..()
if(stat == UNCONSCIOUS)
@@ -106,7 +105,6 @@
/mob/living/simple_animal/mouse/start_pulling(var/atom/movable/AM)//Prevents mouse from pulling things
to_chat(src, "You are too small to pull anything.")
-
return
/mob/living/simple_animal/mouse/Crossed(AM as mob|obj)
@@ -114,9 +112,7 @@
if(!stat)
var/mob/M = AM
to_chat(M, "\blue \icon[src] Squeek!")
-
to_chat(M, 'sound/effects/mousesqueek.ogg')
-
..()
/mob/living/simple_animal/mouse/death()
diff --git a/code/modules/mob/living/simple_animal/friendly/slime.dm b/code/modules/mob/living/simple_animal/friendly/slime.dm
index 79e13f85d3d..eac1a448571 100644
--- a/code/modules/mob/living/simple_animal/friendly/slime.dm
+++ b/code/modules/mob/living/simple_animal/friendly/slime.dm
@@ -26,7 +26,6 @@
if(istype(tmob, /mob/living/carbon/human) && (FAT in tmob.mutations))
if(prob(70))
to_chat(src, "\red You fail to push [tmob]'s fat ass out of the way.")
-
now_pushing = 0
return
if(!(tmob.status_flags & CANPUSH))
diff --git a/code/modules/mob/living/simple_animal/friendly/spiderbot.dm b/code/modules/mob/living/simple_animal/friendly/spiderbot.dm
index c484f6b6164..590dfa47b5e 100644
--- a/code/modules/mob/living/simple_animal/friendly/spiderbot.dm
+++ b/code/modules/mob/living/simple_animal/friendly/spiderbot.dm
@@ -47,11 +47,9 @@
var/obj/item/device/mmi/B = O
if(src.mmi) //There's already a brain in it.
to_chat(user, "\red There's already a brain in [src]!")
-
return
if(!B.brainmob)
to_chat(user, "\red Sticking an empty MMI into the frame would sort of defeat the purpose.")
-
return
if(!B.brainmob.key)
var/ghost_can_reenter = 0
@@ -66,22 +64,18 @@
break
if(!ghost_can_reenter)
to_chat(user, "[O] is completely unresponsive; there's no point.")
-
return
if(B.brainmob.stat == DEAD)
to_chat(user, "\red [O] is dead. Sticking it into the frame would sort of defeat the purpose.")
-
return
if(jobban_isbanned(B.brainmob, "Cyborg") || jobban_isbanned(B.brainmob,"nonhumandept"))
to_chat(user, "\red [O] does not seem to fit.")
-
return
to_chat(user, "\blue You install [O] in [src]!")
-
user.drop_item()
src.mmi = O
src.transfer_personality(O)
@@ -102,15 +96,12 @@
W.show_message(text("\red [user] has spot-welded some of the damage to [src]!"), 1)
else
to_chat(user, "\blue [src] is undamaged!")
-
else
to_chat(user, "Need more welding fuel!")
-
return
else if(istype(O, /obj/item/weapon/card/id)||istype(O, /obj/item/device/pda))
if (!mmi)
to_chat(user, "\red There's no reason to swipe your ID - the spiderbot has no brain to remove.")
-
return 0
var/obj/item/weapon/card/id/id_card
@@ -123,7 +114,6 @@
if(access_robotics in id_card.access)
to_chat(user, "\blue You swipe your access card and pop the brain out of [src].")
-
eject_brain()
if(held_item)
@@ -133,7 +123,6 @@
return 1
else
to_chat(user, "\red You swipe your card, with no effect.")
-
return 0
else
@@ -147,7 +136,6 @@
M.show_message("\red \b [src] has been attacked with the [O] by [user]. ")
else
to_chat(usr, "\red This weapon is ineffective, it does no damage.")
-
for(var/mob/M in viewers(src, null))
if ((M.client && !( M.blinded )))
M.show_message("\red [user] gently taps [src] with the [O]. ")
@@ -155,7 +143,6 @@
/mob/living/simple_animal/spiderbot/emag_act(user as mob)
if (emagged)
to_chat(user, "\red [src] is already overloaded - better run.")
-
return 0
else
emagged = 1
@@ -164,7 +151,6 @@
to_chat(src, "\red Your cell seems to be outputting a lot of power...")
spawn(200)
to_chat(src, "\red Internal heat sensors are spiking! Something is badly wrong with your cell!")
-
spawn(300)
src.explode()
@@ -246,7 +232,6 @@
if(!held_item)
to_chat(usr, "\red You have nothing to drop!")
-
return 0
if(istype(held_item, /obj/item/weapon/grenade))
@@ -275,7 +260,6 @@
if(held_item)
to_chat(src, "\red You are already holding \the [held_item]")
-
return 1
var/list/items = list()
@@ -293,15 +277,12 @@
visible_message("\blue [src] scoops up \the [held_item]!", "\blue You grab \the [held_item]!", "You hear a skittering noise and a clink.")
return held_item
to_chat(src, "\red \The [selection] is too far away.")
-
return 0
to_chat(src, "\red There is nothing of interest to take.")
-
return 0
/mob/living/simple_animal/spiderbot/examine(mob/user)
..(user)
if(src.held_item)
to_chat(user, "It is carrying \a [src.held_item] \icon[src.held_item].")
-
diff --git a/code/modules/mob/living/simple_animal/hostile/giant_spider.dm b/code/modules/mob/living/simple_animal/hostile/giant_spider.dm
index 29d4ed31406..9b1459027e4 100644
--- a/code/modules/mob/living/simple_animal/hostile/giant_spider.dm
+++ b/code/modules/mob/living/simple_animal/hostile/giant_spider.dm
@@ -16,7 +16,6 @@
L.reagents.add_reagent("spidertoxin", poison_per_bite)
if(prob(poison_per_bite))
to_chat(L, "You feel a tiny prick.")
-
L.reagents.add_reagent(poison_type, poison_per_bite)
@@ -232,10 +231,8 @@
var/obj/effect/spider/eggcluster/E = locate() in get_turf(src)
if(E)
to_chat(src, "There is already a cluster of eggs here!")
-
else if(!fed)
to_chat(src, "You are too hungry to do this!")
-
else if(busy != LAYING_EGGS)
busy = LAYING_EGGS
src.visible_message("\the [src] begins to lay a cluster of eggs.")
diff --git a/code/modules/mob/living/simple_animal/hostile/headcrab.dm b/code/modules/mob/living/simple_animal/hostile/headcrab.dm
index 7aa3e8f0203..9c9ec79fd34 100644
--- a/code/modules/mob/living/simple_animal/hostile/headcrab.dm
+++ b/code/modules/mob/living/simple_animal/hostile/headcrab.dm
@@ -45,11 +45,9 @@
if(C.stat == DEAD)
if(C.status_flags & XENO_HOST)
to_chat(src, "A foreign presence repels us from this body. Perhaps we should try to infest another?")
-
return
Infect(target)
to_chat(src, "With our egg laid, our death approaches rapidly...")
-
spawn(100)
death()
return
diff --git a/code/modules/mob/living/simple_animal/hostile/mining_mobs.dm b/code/modules/mob/living/simple_animal/hostile/mining_mobs.dm
index ade260176ea..0d5d4b89772 100644
--- a/code/modules/mob/living/simple_animal/hostile/mining_mobs.dm
+++ b/code/modules/mob/living/simple_animal/hostile/mining_mobs.dm
@@ -297,18 +297,15 @@
var/mob/living/carbon/human/H = M
if(inert)
to_chat(user, "[src] have become inert, its healing properties are no more.")
-
return
else
if(H.stat == DEAD)
to_chat(user, "[src] are useless on the dead.")
-
return
if(H != user)
H.visible_message("[user] forces [H] to eat [src]... they quickly regenerate all injuries!")
else
to_chat(user, "You chomp into [src], barely managing to hold it down, but feel amazingly refreshed in mere moments.")
-
playsound(src.loc,'sound/items/eatfood.ogg', rand(10,50), 1)
H.revive()
qdel(src)
@@ -487,11 +484,9 @@
if(current_armor.["melee"] < 80)
current_armor.["melee"] = min(current_armor.["melee"] + 10, 80)
to_chat(user, "You strengthen [target], improving its resistance against melee attacks.")
-
qdel(src)
else
to_chat(user, "You can't improve [C] any further.")
-
return
if(istype(target, /obj/mecha/working/ripley))
var/obj/mecha/D = target
@@ -502,22 +497,18 @@
damage_absorption["fire"] = damage_absorption["fire"] - 0.05
damage_absorption["laser"] = damage_absorption["laser"] - 0.025
to_chat(user, "You strengthen [target], improving its resistance against melee attacks.")
-
qdel(src)
if(D.icon_state == "ripley-open")
D.overlays += image("icon"="mecha.dmi", "icon_state"="ripley-g-open")
D.desc = "Autonomous Power Loader Unit. Its armour is enhanced with some goliath hide plates."
else
to_chat(user, "You can't add armour onto the mech while someone is inside!")
-
if(damage_absorption.["brute"] == 0.3)
if(D.icon_state == "ripley-open")
D.overlays += image("icon"="mecha.dmi", "icon_state"="ripley-g-full-open")
D.desc = "Autonomous Power Loader Unit. It's wearing a fearsome carapace entirely composed of goliath hide plates - the pilot must be an experienced monster hunter."
else
to_chat(user, "You can't add armour onto the mech while someone is inside!")
-
else
to_chat(user, "You can't improve [D] any further!")
-
return
\ No newline at end of file
diff --git a/code/modules/mob/living/simple_animal/hostile/mushroom.dm b/code/modules/mob/living/simple_animal/hostile/mushroom.dm
index 58a44d686f6..82a7f09af80 100644
--- a/code/modules/mob/living/simple_animal/hostile/mushroom.dm
+++ b/code/modules/mob/living/simple_animal/hostile/mushroom.dm
@@ -37,11 +37,9 @@
..(user)
if(health >= maxHealth)
to_chat(user, "It looks healthy.")
-
else
to_chat(user, "It looks like it's been roughed up.")
-
/mob/living/simple_animal/hostile/mushroom/Life()
..()
if(!stat)//Mushrooms slowly regenerate if conscious, for people who want to save them from being eaten
@@ -133,7 +131,6 @@
qdel(I)
else
to_chat(user, "[src] won't eat it!")
-
return
if(I.force)
Bruise()
diff --git a/code/modules/mob/living/simple_animal/hostile/statue.dm b/code/modules/mob/living/simple_animal/hostile/statue.dm
index dd782663516..1f431269e8d 100644
--- a/code/modules/mob/living/simple_animal/hostile/statue.dm
+++ b/code/modules/mob/living/simple_animal/hostile/statue.dm
@@ -65,7 +65,6 @@
icon_state = "angelseen"
if(client)
to_chat(src, "You cannot move, there are eyes on you!")
-
return 0
icon_state = "angel"
return ..()
@@ -103,7 +102,6 @@
icon_state = "angelseen"
if(client)
to_chat(src, "You cannot attack, there are eyes on you!")
-
return
icon_state = "angelattack"
..()
diff --git a/code/modules/mob/living/simple_animal/hostile/syndicate.dm b/code/modules/mob/living/simple_animal/hostile/syndicate.dm
index 15728458cc2..e4285c98a0b 100644
--- a/code/modules/mob/living/simple_animal/hostile/syndicate.dm
+++ b/code/modules/mob/living/simple_animal/hostile/syndicate.dm
@@ -63,7 +63,6 @@
playsound(loc, O.hitsound, 25, 1, -1)
else
to_chat(usr, "\red This weapon is ineffective, it does no damage.")
-
visible_message("\red [user] gently taps [src] with the [O]. ")
diff --git a/code/modules/mob/living/simple_animal/hostile/winter_mobs.dm b/code/modules/mob/living/simple_animal/hostile/winter_mobs.dm
index 6f7d0a5a07c..0ecab13b44a 100644
--- a/code/modules/mob/living/simple_animal/hostile/winter_mobs.dm
+++ b/code/modules/mob/living/simple_animal/hostile/winter_mobs.dm
@@ -125,13 +125,9 @@
/mob/living/simple_animal/hostile/winter/santa/stage_4/death()
to_chat(world, "
")
-
to_chat(world, "THE FAT MAN HAS FALLEN!")
-
to_chat(world, "SANTA CLAUS HAS BEEN DEFEATED!")
-
to_chat(world, "
")
-
..()
var/obj/item/weapon/grenade/clusterbuster/xmas/X = new /obj/item/weapon/grenade/clusterbuster/xmas(get_turf(src))
var/obj/item/weapon/grenade/clusterbuster/xmas/Y = new /obj/item/weapon/grenade/clusterbuster/xmas(get_turf(src))
diff --git a/code/modules/mob/living/simple_animal/parrot.dm b/code/modules/mob/living/simple_animal/parrot.dm
index 7c3dc5d0516..858ae10fc18 100644
--- a/code/modules/mob/living/simple_animal/parrot.dm
+++ b/code/modules/mob/living/simple_animal/parrot.dm
@@ -158,20 +158,17 @@
possible_phrase = copytext(possible_phrase,3,length(possible_phrase))
else
to_chat(usr, "\red There is nothing to remove from its [remove_from].")
-
return
show_inv(usr)
else if(href_list["add_inv"])
var/add_to = href_list["add_inv"]
if(!usr.get_active_hand())
to_chat(usr, "\red You have nothing in your hand to put on its [add_to].")
-
return
switch(add_to)
if("ears")
if(ears)
to_chat(usr, "\red It's already wearing something.")
-
return
else
var/obj/item/item_to_add = usr.get_active_hand()
@@ -180,7 +177,6 @@
if( !istype(item_to_add, /obj/item/device/radio/headset) )
to_chat(usr, "\red This object won't fit.")
-
return
var/obj/item/device/radio/headset/headset_to_add = item_to_add
@@ -190,7 +186,6 @@
src.ears = headset_to_add
to_chat(usr, "You fit the headset onto [src].")
-
clearlist(available_channels)
for(var/ch in headset_to_add.channels)
switch(ch)
@@ -574,7 +569,6 @@
if(held_item)
to_chat(src, "\red You are already holding the [held_item]")
-
return 1
for(var/obj/item/I in view(1,src))
@@ -591,7 +585,6 @@
return held_item
to_chat(src, "\red There is nothing of interest to take.")
-
return 0
/mob/living/simple_animal/parrot/proc/steal_from_mob()
@@ -604,7 +597,6 @@
if(held_item)
to_chat(src, "\red You are already holding the [held_item]")
-
return 1
var/obj/item/stolen_item = null
@@ -624,7 +616,6 @@
return held_item
to_chat(src, "\red There is nothing of interest to take.")
-
return 0
/mob/living/simple_animal/parrot/verb/drop_held_item_player()
@@ -649,7 +640,6 @@
if(!held_item)
to_chat(usr, "\red You have nothing to drop!")
-
return 0
if(!drop_gently)
@@ -658,13 +648,11 @@
G.loc = src.loc
G.prime()
to_chat(src, "You let go of the [held_item]!")
-
held_item = null
return 1
to_chat(src, "You drop the [held_item].")
-
held_item.loc = src.loc
held_item = null
return 1
@@ -685,7 +673,6 @@
icon_state = "parrot_sit"
return
to_chat(src, "\red There is no perch nearby to sit on.")
-
return
/*
diff --git a/code/modules/mob/living/simple_animal/powers.dm b/code/modules/mob/living/simple_animal/powers.dm
index 9df6a9c8110..934c93bb3ad 100644
--- a/code/modules/mob/living/simple_animal/powers.dm
+++ b/code/modules/mob/living/simple_animal/powers.dm
@@ -9,16 +9,12 @@
if (layer != TURF_LAYER+0.2)
layer = TURF_LAYER+0.2
to_chat(src, text("\green You are now hiding."))
-
for(var/mob/O in oviewers(src, null))
if ((O.client && !( O.blinded )))
to_chat(O, text("[] scurries to the ground!", src))
-
else
layer = MOB_LAYER
to_chat(src, text("\green You have stopped hiding."))
-
for(var/mob/O in oviewers(src, null))
if ((O.client && !( O.blinded )))
to_chat(O, text("[] slowly peaks up from the ground...", src))
-
diff --git a/code/modules/mob/living/simple_animal/shade.dm b/code/modules/mob/living/simple_animal/shade.dm
index c9b801734e8..0e01aa51894 100644
--- a/code/modules/mob/living/simple_animal/shade.dm
+++ b/code/modules/mob/living/simple_animal/shade.dm
@@ -49,7 +49,6 @@
M.show_message("\red \b [src] has been attacked with the [O] by [user]. ")
else
to_chat(usr, "\red This weapon is ineffective, it does no damage.")
-
for(var/mob/M in viewers(src, null))
if ((M.client && !( M.blinded )))
M.show_message("\red [user] gently taps [src] with the [O]. ")
diff --git a/code/modules/mob/living/simple_animal/simple_animal.dm b/code/modules/mob/living/simple_animal/simple_animal.dm
index a92410d069f..c9be5919f43 100644
--- a/code/modules/mob/living/simple_animal/simple_animal.dm
+++ b/code/modules/mob/living/simple_animal/simple_animal.dm
@@ -386,7 +386,6 @@
/mob/living/simple_animal/attack_slime(mob/living/carbon/slime/M as mob)
if (!ticker)
to_chat(M, "You cannot attack people before the game has started.")
-
return
if(M.Victim) return // can't attack while eating!
@@ -425,15 +424,12 @@
return
else
to_chat(user, "\blue [MED] won't help at all.")
-
return
else
to_chat(user, "\blue [src] is at full health.")
-
return
else
to_chat(user, "\blue [src] is dead, medical items won't bring it back to life.")
-
return
else if(can_collar && !collar && istype(O, /obj/item/clothing/accessory/petcollar))
var/obj/item/clothing/accessory/petcollar/C = O
@@ -443,7 +439,6 @@
collar.equipped(src)
regenerate_icons()
to_chat(usr, "You put \the [C] around \the [src]'s neck.")
-
if(C.tagname)
name = C.tagname
real_name = C.tagname
@@ -661,7 +656,6 @@
if(collar)
if(collar.flags & NODROP)
to_chat(usr, "\The [collar] is stuck too hard to [src] for you to remove!")
-
return
collar.dropped(src)
collar.forceMove(src.loc)
@@ -669,7 +663,6 @@
regenerate_icons()
else
to_chat(usr, "There is nothing to remove from its [remove_from].")
-
return
show_inv(usr)
else if(href_list["add_inv"])
@@ -691,7 +684,6 @@
collar.equipped(src)
regenerate_icons()
to_chat(usr, "You put \the [C] around \the [src]'s neck.")
-
if(C.tagname)
name = C.tagname
real_name = C.tagname
diff --git a/code/modules/mob/living/simple_animal/tribbles.dm b/code/modules/mob/living/simple_animal/tribbles.dm
index c78645ce45d..23def05f072 100644
--- a/code/modules/mob/living/simple_animal/tribbles.dm
+++ b/code/modules/mob/living/simple_animal/tribbles.dm
@@ -54,10 +54,8 @@ var/global/totaltribbles = 0 //global variable so it updates for all tribbles,
/mob/living/simple_animal/tribble/attackby(var/obj/item/weapon/O as obj, var/mob/user as mob, params)
if(istype(O, /obj/item/weapon/scalpel))
to_chat(user, "You try to neuter the tribble, but it's moving too much and you fail!")
-
else if(istype(O, /obj/item/weapon/cautery))
to_chat(user, "You try to un-neuter the tribble, but it's moving too much and you fail!")
-
..()
@@ -100,7 +98,6 @@ var/global/totaltribbles = 0 //global variable so it updates for all tribbles,
..()
to_chat(user, "You nuzzle the tribble and it trills softly.")
-
/obj/item/toy/tribble/dropped(mob/user as mob) //now you can't item form them to get rid of them all so easily
..()
new /mob/living/simple_animal/tribble(user.loc)
@@ -111,7 +108,6 @@ var/global/totaltribbles = 0 //global variable so it updates for all tribbles,
T.gestation = src.gestation
to_chat(user, "The tribble gets up and wanders around.")
-
qdel(src)
/obj/item/toy/tribble/attackby(var/obj/item/weapon/O as obj, var/mob/user as mob) //neutering and un-neutering
@@ -119,14 +115,12 @@ var/global/totaltribbles = 0 //global variable so it updates for all tribbles,
if(istype(O, /obj/item/weapon/scalpel) && src.gestation != null)
gestation = null
to_chat(user, "You neuter the tribble so that it can no longer re-produce.")
-
else if (istype(O, /obj/item/weapon/cautery) && src.gestation == null)
gestation = 0
to_chat(user, "You fuse some recently cut tubes together, it should be able to reproduce again.")
-
//|| Tribble Cage - Lovingly lifted from the lamarr-cage ||
/obj/structure/tribble_cage
name = "Lab Cage"
@@ -202,11 +196,9 @@ var/global/totaltribbles = 0 //global variable so it updates for all tribbles,
return
else
to_chat(usr, text("\blue You kick the lab cage."))
-
for(var/mob/O in oviewers())
if ((O.client && !( O.blinded )))
to_chat(O, text("\red [] kicks the lab cage.", usr))
-
src.health -= 2
healthcheck()
return
diff --git a/code/modules/mob/living/simple_animal/vox.dm b/code/modules/mob/living/simple_animal/vox.dm
index 78fff8e8c86..3b34ddaf143 100644
--- a/code/modules/mob/living/simple_animal/vox.dm
+++ b/code/modules/mob/living/simple_animal/vox.dm
@@ -47,7 +47,6 @@
M.show_message("\red \b The [O] bounces harmlessly off of [src]. ")
else
to_chat(usr, "\red This weapon is ineffective, it does no damage.")
-
for(var/mob/M in viewers(src, null))
if ((M.client && !( M.blinded )))
M.show_message("\red [user] gently taps [src] with the [O]. ")
@@ -62,12 +61,10 @@
return
to_chat(src, "\red You launch a razor-sharp quill at [target]!")
-
for(var/mob/O in oviewers())
if ((O.client && !( O.blinded )))
to_chat(O, "\red [src] launches a razor-sharp quill at [target]!")
-
var/obj/item/weapon/arrow/quill/Q = new(loc)
Q.fingerprintslast = src.ckey
Q.throw_at(target,10,30)
@@ -75,7 +72,6 @@
spawn(100)
to_chat(src, "\red You feel a fresh quill slide into place.")
-
quills++
/mob/living/simple_animal/vox/armalis/verb/message_mob()
@@ -98,17 +94,14 @@
if(istype(M, /mob/dead/observer) || M.stat == DEAD)
to_chat(src, "Not even the armalis can speak to the dead.")
-
return
to_chat(M, "\blue Like lead slabs crashing into the ocean, alien thoughts drop into your mind: [text]")
-
if(istype(M,/mob/living/carbon/human))
var/mob/living/carbon/human/H = M
if(H.species.name == "Vox")
return
to_chat(H, "\red Your nose begins to bleed...")
-
H.drip(1)
/mob/living/simple_animal/vox/armalis/verb/shriek()
diff --git a/code/modules/mob/mob.dm b/code/modules/mob/mob.dm
index 739c70e2446..92b05eda277 100644
--- a/code/modules/mob/mob.dm
+++ b/code/modules/mob/mob.dm
@@ -48,7 +48,6 @@
for(var/datum/gas/trace_gas in environment.trace_gases)
to_chat(usr, "\blue [trace_gas.type]: [trace_gas.moles] \n")
-
usr.show_message(t, 1)
/mob/proc/show_message(msg, type, alt, alt_type)//Message, type of message (1 or 2), alternative message, alt message type (1 or 2)
@@ -73,10 +72,8 @@
// Added voice muffling for Issue 41.
if(stat == UNCONSCIOUS || (sleeping > 0 && stat != 2))
to_chat(src, "... You can almost hear someone talking ...")
-
else
to_chat(src, msg)
-
return
// Show a message to all mobs in sight of this one
@@ -176,7 +173,6 @@
if(C.rig_restrict_helmet)
to_chat(src, "\red You must fasten the helmet to a hardsuit first. (Target the head and use on a hardsuit)")// Stop eva helms equipping.
-
else
equip_to_slot_if_possible(C, slot)
else
@@ -213,7 +209,6 @@
if(!disable_warning)
to_chat(src, "\red You are unable to equip that.")//Only print if del_on_fail is false
-
return 0
equip_to_slot(W, slot, redraw_mob) //This proc should not ever fail.
@@ -356,7 +351,6 @@ var/list/slot_equipment_priority = list( \
if(!H.w_uniform)
if(!disable_warning)
to_chat(H, "\red You need a jumpsuit before you can attach this [name].")
-
return 0
if( !(slot_flags & SLOT_BELT) )
return 0
@@ -417,7 +411,6 @@ var/list/slot_equipment_priority = list( \
if(!H.w_uniform)
if(!disable_warning)
to_chat(H, "\red You need a jumpsuit before you can attach this [name].")
-
return 0
if( !(slot_flags & SLOT_ID) )
return 0
@@ -433,7 +426,6 @@ var/list/slot_equipment_priority = list( \
if(!H.w_uniform)
if(!disable_warning)
to_chat(H, "\red You need a jumpsuit before you can attach this [name].")
-
return 0
if(slot_flags & SLOT_DENYPOCKET)
return
@@ -445,7 +437,6 @@ var/list/slot_equipment_priority = list( \
if(!H.w_uniform)
if(!disable_warning)
to_chat(H, "\red You need a jumpsuit before you can attach this [name].")
-
return 0
if(slot_flags & SLOT_DENYPOCKET)
return 0
@@ -456,17 +447,14 @@ var/list/slot_equipment_priority = list( \
if(!H.wear_suit)
if(!disable_warning)
to_chat(H, "\red You need a suit before you can attach this [name].")
-
return 0
if(!H.wear_suit.allowed)
if(!disable_warning)
to_chat(usr, "You somehow have a suit with no defined allowed items for suit storage, stop that.")
-
return 0
if(src.w_class > 4)
if(!disable_warning)
to_chat(usr, "The [name] is too big to attach.")
-
return 0
if( istype(src, /obj/item/device/pda) || istype(src, /obj/item/weapon/pen) || is_type_in_list(src, H.wear_suit.allowed) )
if(H.s_store)
@@ -534,7 +522,6 @@ var/list/slot_equipment_priority = list( \
if((is_blind(src) || usr.stat) && !isobserver(src))
to_chat(src, "Something is there but you can't see it.")
-
return 1
face_atom(A)
@@ -642,7 +629,6 @@ var/list/slot_equipment_priority = list( \
else
to_chat(src, "The game appears to have misplaced your mind datum, so we can't show you your notes.")
-
/mob/verb/add_memory(msg as message)
set name = "Add Note"
set category = "IC"
@@ -655,7 +641,6 @@ var/list/slot_equipment_priority = list( \
else
to_chat(src, "The game appears to have misplaced your mind datum, so we can't show you your notes.")
-
/mob/proc/store_memory(msg as message, popup, sane = 1)
msg = copytext(msg, 1, MAX_MESSAGE_LEN)
@@ -674,7 +659,6 @@ var/list/slot_equipment_priority = list( \
set src in usr
if(usr != src)
to_chat(usr, "No.")
-
var/msg = input(usr,"Set the flavor text in your 'examine' verb. Can also be used for OOC notes about your character.","Flavor Text",html_decode(flavor_text)) as message|null
if(msg != null)
@@ -703,19 +687,16 @@ var/list/slot_equipment_priority = list( \
if (!abandon_allowed)
to_chat(usr, "Respawning is disabled.")
-
return
if (stat != DEAD || !ticker)
to_chat(usr, "You must be dead to use this!")
-
return
log_game("[key_name(usr)] has respawned.")
to_chat(usr, "Make sure to play a different character, and please roleplay correctly!")
-
if(!client)
log_game("[key_name(usr)] respawn failed due to disconnect.")
return
@@ -744,7 +725,6 @@ var/list/slot_equipment_priority = list( \
is_admin = 1
else if(stat != DEAD || istype(src, /mob/new_player))
to_chat(usr, "\blue You must be observing to use this!")
-
return
if(is_admin && stat == DEAD)
@@ -960,7 +940,6 @@ var/list/slot_equipment_priority = list( \
if(!is_active())
return 0
to_chat(src, message)
-
return 1
/mob/proc/is_muzzled()
@@ -1209,12 +1188,10 @@ mob/proc/yank_out_object()
if(usr.stat == 1)
to_chat(usr, "You are unconcious and cannot do that!")
-
return
if(usr.restrained())
to_chat(usr, "You are restrained and cannot do that!")
-
return
var/mob/S = src
@@ -1229,21 +1206,17 @@ mob/proc/yank_out_object()
if(!valid_objects.len)
if(self)
to_chat(src, "You have nothing stuck in your body that is large enough to remove.")
-
else
to_chat(U, "[src] has nothing stuck in their wounds that is large enough to remove.")
-
return
var/obj/item/weapon/selection = input("What do you want to yank out?", "Embedded objects") in valid_objects
if(self)
to_chat(src, "You attempt to get a good grip on [selection] in your body.")
-
else
to_chat(U, "You attempt to get a good grip on [selection] in [S]'s body.")
-
if(!do_after(U, 80, target = S))
return
if(!selection || !S || !U)
@@ -1298,12 +1271,10 @@ mob/proc/yank_out_object()
if(jobban_isbanned(usr, "NPC"))
to_chat(usr, "You are banned from playing as NPC's.")
-
return
if(!ticker || ticker.current_state < 3)
to_chat(src, "You can't respawn as an NPC before the game starts!")
-
return
if((usr in respawnable_list) && (stat==2 || istype(usr,/mob/dead/observer)))
@@ -1328,7 +1299,6 @@ mob/proc/yank_out_object()
respawnable_list += usr
else
to_chat(usr, "You are not dead or you have given up your right to be respawned!")
-
return
@@ -1338,7 +1308,6 @@ mob/proc/yank_out_object()
var/timedifference_text
timedifference_text = time2text(mouse_respawn_time * 600 - timedifference,"mm:ss")
to_chat(src, "You may only spawn again as a mouse more than [mouse_respawn_time] minutes after your death. You have [timedifference_text] left.")
-
return
//find a viable mouse candidate
@@ -1354,12 +1323,10 @@ mob/proc/yank_out_object()
else
to_chat(src, "Unable to find any unwelded vents to spawn mice at.")
-
if(host)
host.ckey = src.ckey
to_chat(host, "You are now a mouse. Try to avoid interaction with players, and do not give hints away that you are more than a simple rodent.")
-
/mob/proc/assess_threat() //For sec bot threat assessment
return
diff --git a/code/modules/mob/mob_grab.dm b/code/modules/mob/mob_grab.dm
index 72e3286525f..fcbcd410a89 100644
--- a/code/modules/mob/mob_grab.dm
+++ b/code/modules/mob/mob_grab.dm
@@ -263,7 +263,6 @@
else if(state < GRAB_NECK)
if(isslime(affecting))
to_chat(assailant, "You squeeze [affecting], but nothing interesting happens.")
-
return
assailant.visible_message("[assailant] has reinforced \his grip on [affecting] (now neck)!")
@@ -320,7 +319,6 @@
if(I_HELP)
/*if(force_down)
to_chat(assailant, "You no longer pin [affecting] to the ground.")
-
force_down = 0
return*///This is a very basic demonstration of a new feature based on attacking someone with the grab, based on intent.
//This specific example would allow you to stop pinning people to the floor without moving away from them.
@@ -348,21 +346,17 @@
/*if(last_hit_zone == "eyes")
if(state < GRAB_NECK)
to_chat(assailant, "You require a better grab to do this.")
-
return
if((affected.head && affected.head.flags & HEADCOVERSEYES) || \
(affected.wear_mask && affected.wear_mask.flags & MASKCOVERSEYES) || \
(affected.glasses && affected.glasses.flags & GLASSESCOVERSEYES))
to_chat(assailant, "You're going to need to remove the eye covering first.")
-
return
if(!affected.internal_organs_by_name["eyes"])
to_chat(assailant, "You cannot locate any eyes on [affecting]!")
-
return
assailant.visible_message("[assailant] presses \his fingers into [affecting]'s eyes!")
to_chat(affecting, "You feel immense pain as digits are being pressed into your eyes!")
-
assailant.attack_log += text("\[[time_stamp()]\] Pressed fingers into the eyes of [affecting.name] ([affecting.ckey])")
affecting.attack_log += text("\[[time_stamp()]\] Had fingers pressed into their eyes by [assailant.name] ([assailant.ckey])")
msg_admin_attack("[key_name(assailant)] has pressed his fingers into [key_name(affecting)]'s eyes.")
@@ -372,13 +366,11 @@
if(M.stat != 2)
to_chat(M, "\red You go blind!")*///This is a demonstration of adding a new damaging type based on intent as well as hitzone.
-
//This specific example would allow you to squish people's eyes with a GRAB_NECK.
if(I_DISARM) //This checks that the user is on disarm intent.
/* if(state < GRAB_AGGRESSIVE)
to_chat(assailant, "You require a better grab to do this.")
-
return
if(!force_down)
assailant.visible_message("[user] is forcing [affecting] to the ground!")
@@ -391,7 +383,6 @@
return
else
to_chat(assailant, "You are already pinning [affecting] to the ground.")
-
return*///This is an example of something being done with an agressive grab + disarm intent.
return
diff --git a/code/modules/mob/mob_helpers.dm b/code/modules/mob/mob_helpers.dm
index 9abffc4284c..1f2e0e7b456 100644
--- a/code/modules/mob/mob_helpers.dm
+++ b/code/modules/mob/mob_helpers.dm
@@ -474,7 +474,6 @@ var/list/intents = list(I_HELP,I_DISARM,I_GRAB,I_HARM)
if(usr.sleeping)
to_chat(usr, "\red You are already sleeping")
-
return
else
if(alert(src,"You sure you want to sleep for a while?","Sleep","Yes","No") == "Yes")
@@ -487,7 +486,6 @@ var/list/intents = list(I_HELP,I_DISARM,I_GRAB,I_HARM)
resting = !resting
to_chat(src, "\blue You are now [resting ? "resting" : "getting up"]")
-
/proc/is_blind(A)
if(iscarbon(A))
var/mob/living/carbon/C = A
@@ -558,16 +556,13 @@ var/list/intents = list(I_HELP,I_DISARM,I_GRAB,I_HARM)
lname = "[lname] "
to_chat(M, "[lname][follow][message]")
-
/proc/notify_ghosts(var/message, var/ghost_sound = null) //Easy notification of ghosts.
for(var/mob/dead/observer/O in player_list)
if(O.client)
to_chat(O, "[message]")
-
if(ghost_sound)
to_chat(O, sound(ghost_sound))
-
/mob/proc/switch_to_camera(var/obj/machinery/camera/C)
if (!C.can_use() || stat || (get_dist(C, src) > 1 || machine != src || blinded || !canmove))
return 0
@@ -649,7 +644,6 @@ var/list/intents = list(I_HELP,I_DISARM,I_GRAB,I_HARM)
break //That's a suitable name!
to_chat(src, "Sorry, that [role]-name wasn't appropriate, please try another. It's possibly too long/short, has bad characters or is already taken.")
-
if(!newname) //we'll stick with the oldname then
return
diff --git a/code/modules/mob/mob_movement.dm b/code/modules/mob/mob_movement.dm
index 71ab4ba944f..68913c6ad25 100644
--- a/code/modules/mob/mob_movement.dm
+++ b/code/modules/mob/mob_movement.dm
@@ -51,13 +51,11 @@
var/module = R.get_selected_module()
if(!module)
to_chat(usr, "\red You have no module selected.")
-
return
R.cycle_modules()
R.uneq_numbered(module)
else
to_chat(usr, "\red This mob type cannot throw items.")
-
return
@@ -66,19 +64,16 @@
var/mob/living/carbon/C = usr
if(!C.get_active_hand())
to_chat(usr, "\red You have nothing to drop in your hand.")
-
return
drop_item()
else if(isrobot(usr))
var/mob/living/silicon/robot/R = usr
if(!R.get_selected_module())
to_chat(usr, "\red You have no module selected.")
-
return
R.deselect_module(R.get_selected_module())
else
to_chat(usr, "\red This mob type cannot drop items.")
-
return
//This gets called when you press the delete button.
@@ -87,7 +82,6 @@
if(!usr.pulling)
to_chat(usr, "\blue You are not pulling anything.")
-
return
usr.stop_pulling()
@@ -234,14 +228,12 @@
if(M.pulling == mob)
if(!M.restrained() && M.stat == 0 && M.canmove && mob.Adjacent(M))
to_chat(src, "\blue You're restrained! You can't move!")
-
return 0
else
M.stop_pulling()
if(mob.pinned.len)
to_chat(src, "\blue You're pinned to a wall by [mob.pinned[1]]!")
-
return 0
var/turf/T = mob.loc
@@ -401,7 +393,6 @@
var/turf/simulated/floor/stepTurf = get_step(L, direct)
if(stepTurf.flags & NOJAUNT)
to_chat(L, "Holy energies block your path.")
-
L.notransform = 1
spawn(2)
L.notransform = 0
@@ -451,7 +442,6 @@
to_chat(src, "You push off of [dense_object_backup] to propel yourself.")
-
return 1
return 0
diff --git a/code/modules/mob/mob_transformation_simple.dm b/code/modules/mob/mob_transformation_simple.dm
index d60c4d7d9a0..856879acf38 100644
--- a/code/modules/mob/mob_transformation_simple.dm
+++ b/code/modules/mob/mob_transformation_simple.dm
@@ -6,7 +6,6 @@
if(istype(src,/mob/new_player))
to_chat(usr, "\red cannot convert players who have not entered yet.")
-
return
if(!new_type)
@@ -17,12 +16,10 @@
if( !ispath(new_type) )
to_chat(usr, "Invalid type path (new_type = [new_type]) in change_mob_type(). Contact a coder.")
-
return
if( new_type == /mob/new_player )
to_chat(usr, "\red cannot convert into a new_player mob type.")
-
return
var/mob/M
@@ -33,7 +30,6 @@
if(!M || !ismob(M))
to_chat(usr, "Type path is not a mob (new_type = [new_type]) in change_mob_type(). Contact a coder.")
-
qdel(M)
return
diff --git a/code/modules/mob/new_player/login.dm b/code/modules/mob/new_player/login.dm
index 44db9388315..f6e2441e876 100644
--- a/code/modules/mob/new_player/login.dm
+++ b/code/modules/mob/new_player/login.dm
@@ -3,7 +3,6 @@
if(join_motd)
to_chat(src, "
\)
-
Your stikes on harm intent will deal more damage.
Using middle mouse button on a nearby person while on harm intent will send them flying backwards.
\
Your grabs will instantly be aggressive while you are using this style.
Using middle mouse button while on harm intent and behind a person will put them in a silencing choke hold.
\
Using middle mouse button on a nearby person while on disarm intent will wrench their wrist, causing them to drop what they are holding."
@@ -68,7 +65,6 @@
spawn(50) has_focus = 1
return 1
to_chat(A, "You are not focused enough to use that move yet!")
-
return 0
return A.pointed(D)
@@ -77,12 +73,10 @@
A.face_atom(D)
if(A.dir != D.dir) // If the user's direction is not the same as the target's after A.face_atom(D) you are not behind them, and cannot use this ability.
to_chat(A, "You cannot grab [D] from that angle!")
-
return 0
if(has_choke_hold) // Are we already choking someone?
to_chat(A, "You are have a target in your grip!")
-
return 0
has_choke_hold = 1
@@ -112,9 +106,7 @@
sleep(5)
to_chat(A, "You feel [D] go limp in your grip.")
-
to_chat(D, "You feel your consciousness slip away as [A] strangles you!")
-
D.AdjustParalysis(20)
has_choke_hold = 0
@@ -140,7 +132,6 @@
spawn(50) has_focus = 1
return 1
to_chat(A, "You are not focused enough to use that move yet!")
-
return 0
return A.pointed(D)
diff --git a/code/modules/ninja/suit/SpiderOS.dm b/code/modules/ninja/suit/SpiderOS.dm
index 7d5d8e3216d..871e8215bbd 100644
--- a/code/modules/ninja/suit/SpiderOS.dm
+++ b/code/modules/ninja/suit/SpiderOS.dm
@@ -12,7 +12,6 @@
to_chat(affecting, "The interface is locked!")
-
/obj/item/clothing/suit/space/space_ninja/proc/display_spideros()
if(!affecting) return//If no mob is wearing the suit. I almost forgot about this variable.
var/mob/living/carbon/human/U = affecting
@@ -196,7 +195,6 @@
if(!affecting||U.stat||!s_initialized)//Check to make sure the guy is wearing the suit after clicking and it's on.
to_chat(U, "Your suit must be worn and active to use this function.")
-
U << browse(null, "window=spideros")//Closes the window.
return
@@ -220,7 +218,6 @@
return
if(isnull(P)||P.toff)//So it doesn't freak out if the object no-longer exists.
to_chat(display_to, "Error: unable to deliver message.")
-
display_spideros()
return
@@ -230,15 +227,12 @@
if("Inject")
if( (href_list["tag"]=="radium"? (reagents.get_reagent_amount("radium"))<=(a_boost*a_transfer) : !reagents.get_reagent_amount(href_list["tag"])) )//Special case for radium. If there are only a_boost*a_transfer radium units left.
to_chat(display_to, "Error: the suit cannot perform this function. Out of [href_list["name"]].")
-
else
reagents.reaction(U, 2)
reagents.trans_id_to(U, href_list["tag"], href_list["tag"]=="nutriment"?5:a_transfer)//Nutriment is a special case since it's very potent. Shouldn't influence actual refill amounts or anything.
to_chat(display_to, "Injecting...")
-
to_chat(U, "You feel a tiny prick and a sudden rush of substance in to your veins.")
-
if("Trigger Ability")
var/ability_name = href_list["name"]+href_list["cost"]//Adds the name and cost to create the full proc name.
var/proc_arguments//What arguments to later pass to the proc, if any.
@@ -258,7 +252,6 @@
safety = 0
if(!safety)
to_chat(U, "[href_list["name"]] suddenly triggered!")
-
call(src,ability_name)(proc_arguments)
if("Eject Disk")
@@ -274,11 +267,9 @@
else
to_chat(U, "ERROR: Could not eject disk.")
-
if("Copy to Disk")
var/datum/tech/current_data = locate(href_list["target"])
to_chat(U, "[current_data.name] successfully [(!t_disk.stored) ? "copied" : "overwritten"] to disk.")
-
t_disk.stored = current_data
diff --git a/code/modules/ninja/suit/suit.dm b/code/modules/ninja/suit/suit.dm
index f676132c335..936f947758d 100644
--- a/code/modules/ninja/suit/suit.dm
+++ b/code/modules/ninja/suit/suit.dm
@@ -31,23 +31,18 @@ Contents:
if(!suitActive)
if(!istype(user.wear_suit, /obj/item/clothing/suit/space/space_ninja))
to_chat(user, "ERROR: Unable to locate user.\nABORTING...")
-
return 0
if(!istype(user.head, /obj/item/clothing/head/helmet/space/space_ninja))
to_chat(user, "ERROR: Unable to locate hood.\nABORTING...")
-
return 0
if(!istype(user.gloves, /obj/item/clothing/gloves/space_ninja))
to_chat(user, "ERROR: Unable to locate gloves.\nABORTING...")
-
return 0
if(!istype(user.shoes, /obj/item/clothing/shoes/space_ninja))
to_chat(user, "ERROR: Unable to locate foot gear.\nABORTING...")
-
return 0
if(!istype(user.wear_mask, /obj/item/clothing/mask/gas/voice/space_ninja))
to_chat(user, "ERROR: Unable to locate mask.\nABORTING...")
-
return 0
suitHood = user.head
diff --git a/code/modules/ninja/suit/suit_attackby.dm b/code/modules/ninja/suit/suit_attackby.dm
index fb834cdb469..620c2261782 100644
--- a/code/modules/ninja/suit/suit_attackby.dm
+++ b/code/modules/ninja/suit/suit_attackby.dm
@@ -6,7 +6,6 @@
var/obj/item/weapon/stock_parts/cell/CELL
if(CELL.maxcharge > cell.maxcharge && suitGloves)
to_chat(U, "Higher maximum capacity detected.\nUpgrading...")
-
if (n_gloves && n_gloves.candrain && do_after(U,s_delay, target = U))
U.drop_item()
CELL.loc = src
@@ -19,9 +18,7 @@
old_cell.updateicon()
cell = CELL
to_chat(U, "Upgrade complete. Maximum capacity: [round(cell.maxcharge/100)]%")
-
else
to_chat(U, "Procedure interrupted. Protocol terminated.")
-
return
..()
\ No newline at end of file
diff --git a/code/modules/ninja/suit/suit_initialisation.dm b/code/modules/ninja/suit/suit_initialisation.dm
index a93c8680975..f1abfbe725a 100644
--- a/code/modules/ninja/suit/suit_initialisation.dm
+++ b/code/modules/ninja/suit/suit_initialisation.dm
@@ -9,7 +9,6 @@
if(usr.mind.special_role == "Ninja")
if(suitBusy)
to_chat(usr, "ERROR: Suit systems busy, cannot initiate [suitActive ? "de-activation" : "activation"] protocals at this time.")
-
return
suitBusy = 1
@@ -17,33 +16,26 @@
if(suitActive && (alert("Confirm suit systems shutdown? This cannot be halted once it has started.", "Confirm Shutdown", "Yes", "No") == "Yes"))
to_chat(usr, "Now de-initializing...")
-
sleep(15)
to_chat(usr, "Logging off, [usr.real_name]. Shutting down SpiderOS.")
-
sleep(10)
to_chat(usr, "Primary system status: OFFLINE.\nBackup system status: OFFLINE.")
-
sleep(5)
to_chat(usr, "VOID-shift device status: OFFLINE.\nCLOAK-tech device status: OFFLINE.")
-
//TODO: Shut down any active abilities
sleep(10)
to_chat(usr, "Disconnecting neural-net interface... Success.")
-
usr.hud_used.instantiate()
usr.regenerate_icons()
sleep(5)
to_chat(usr, "Disengaging neural-net interface... Success.")
-
sleep(10)
to_chat(usr, "Unsecuring external locking mechanism...\nNeural-net abolished.\nOperation status: FINISHED.")
-
//TODO: Grant verbs
toggle_suit_lock(usr)
usr.regenerate_icons()
@@ -53,45 +45,35 @@
else if(!suitActive) // Activate the suit.
to_chat(usr, "Now initializing...")
-
sleep(15)
to_chat(usr, "Now establishing neural-net interface...")
-
if(usr.mind.special_role != "Ninja")
- to_chat(usr, "FĆAL �Rr�R: µ§er n¤t rec¤gnized, c-c¤ntr-r¤£§-£§ £¤cked.")
-
+ to_chat(usr, "FĆAL �Rr�R: ŧer nt recgnized, c-cntr-r䣧-ç äcked.")
return
sleep(10)
to_chat(usr, "Neural-net established. Now monitoring brainwave pattern. \nBrainwave pattern GREEN, proceeding.")
-
sleep(10)
to_chat(usr, "Securing external locking mechanism...")
-
if(!toggle_suit_lock(usr))
return
sleep(5)
to_chat(usr, "Suit secured, extending neural-net interface...")
-
usr.hud_used.human_hud('icons/mob/screen1_NinjaHUD.dmi',"#ffffff",255)
usr.regenerate_icons()
sleep(10)
to_chat(usr, "VOID-shift device status: ONLINE.\nCLOAK-tech device status:ONLINE")
-
sleep(5)
to_chat(usr, "Primary system status: ONLINE.\nBackup system status: ONLINE.")
-
if(suitCell)
to_chat(usr, "Current energy capacity: [suitCell.charge]/[suitCell.maxcharge].")
-
sleep(10)
to_chat(usr, "All systems operational. Welcome to SpiderOS, [usr.real_name].")
-
//TODO: Grant ninja verbs here.
suitBusy = 0
suitActive = 1
@@ -99,8 +81,6 @@
else
suitBusy = 0
to_chat(usr, "NOTICE: Suit de-activation protocals aborted.")
-
else
- to_chat(usr, "FĆAL �Rr�R: µ§er n¤t rec¤gnized, c-c¤ntr-r¤£§-£§ £¤cked.")
-
+ to_chat(usr, "FĆAL �Rr�R: ŧer nt recgnized, c-cntr-r䣧-ç äcked.")
return
\ No newline at end of file
diff --git a/code/modules/paperwork/carbonpaper.dm b/code/modules/paperwork/carbonpaper.dm
index 9599878593e..643c5b1fbb7 100644
--- a/code/modules/paperwork/carbonpaper.dm
+++ b/code/modules/paperwork/carbonpaper.dm
@@ -42,11 +42,9 @@
copy.fields = c.fields
copy.updateinfolinks()
to_chat(usr, "You tear off the carbon-copy!")
-
c.copied = 1
copy.iscopy = 1
copy.update_icon()
c.update_icon()
else
to_chat(usr, "There are no more carbon copies attached to this paper!")
-
diff --git a/code/modules/paperwork/clipboard.dm b/code/modules/paperwork/clipboard.dm
index ce52a5e6b8c..fbb26b650a8 100644
--- a/code/modules/paperwork/clipboard.dm
+++ b/code/modules/paperwork/clipboard.dm
@@ -50,7 +50,6 @@
if(istype(W, /obj/item/weapon/paper))
toppaper = W
to_chat(user, "You clip the [W] onto \the [src].")
-
update_icon()
else if(istype(toppaper) && istype(W, /obj/item/weapon/pen))
@@ -105,7 +104,6 @@
haspen = W
to_chat(usr, "You slot the pen into \the [src].")
-
else if(href_list["write"])
var/obj/item/weapon/P = locate(href_list["write"])
@@ -149,7 +147,6 @@
toppaper = P
to_chat(usr, "You move [P.name] to the top.")
-
//Update everything
attack_self(usr)
update_icon()
diff --git a/code/modules/paperwork/faxmachine.dm b/code/modules/paperwork/faxmachine.dm
index 576c7e1ace7..23a0f3eec7e 100644
--- a/code/modules/paperwork/faxmachine.dm
+++ b/code/modules/paperwork/faxmachine.dm
@@ -45,11 +45,9 @@ var/list/alldepartments = list()
if(!emagged)
emagged = 1
to_chat(user, "The transmitters realign to an unknown source!")
-
else
to_chat(user, "You swipe the card through [src], but nothing happens.")
-
/obj/machinery/photocopier/faxmachine/ui_interact(mob/user, ui_key = "main", var/datum/nanoui/ui = null, var/force_open = 1)
var/data[0]
if(scan)
@@ -103,7 +101,6 @@ var/list/alldepartments = list()
copyitem.loc = usr.loc
usr.put_in_hands(copyitem)
to_chat(usr, "You take \the [copyitem] out of \the [src].")
-
copyitem = null
else
var/obj/item/I = usr.get_active_hand()
@@ -112,7 +109,6 @@ var/list/alldepartments = list()
copyitem = I
I.loc = src
to_chat(usr, "You insert \the [I] into \the [src].")
-
flick(insert_anim, src)
if(href_list["scan"])
@@ -270,4 +266,3 @@ var/list/alldepartments = list()
for(var/client/C in admins)
if(R_EVENT & C.holder.rights)
to_chat(C, msg)
-
diff --git a/code/modules/paperwork/filingcabinet.dm b/code/modules/paperwork/filingcabinet.dm
index f09eefd3e79..cd52d4424e3 100644
--- a/code/modules/paperwork/filingcabinet.dm
+++ b/code/modules/paperwork/filingcabinet.dm
@@ -36,7 +36,6 @@
/obj/structure/filingcabinet/attackby(obj/item/P as obj, mob/user as mob, params)
if(istype(P, /obj/item/weapon/paper) || istype(P, /obj/item/weapon/folder) || istype(P, /obj/item/weapon/photo) || istype(P, /obj/item/weapon/paper_bundle) || istype(P, /obj/item/documents))
to_chat(user, "You put [P] in [src].")
-
user.drop_item()
P.loc = src
icon_state = "[initial(icon_state)]-open"
@@ -47,16 +46,13 @@
playsound(loc, 'sound/items/Ratchet.ogg', 50, 1)
anchored = !anchored
to_chat(user, "You [anchored ? "wrench" : "unwrench"] \the [src].")
-
else
to_chat(user, "You can't put [P] in [src]!")
-
/obj/structure/filingcabinet/attack_hand(mob/user as mob)
if(contents.len <= 0)
to_chat(user, "\The [src] is empty.")
-
return
user.set_machine(src)
@@ -82,11 +78,9 @@
if(prob(25))
step_rand(I)
to_chat(user, "You pull \a [I] out of [src] at random.")
-
return
to_chat(user, "You find nothing in [src].")
-
/obj/structure/filingcabinet/Topic(href, href_list)
if(href_list["retrieve"])
usr << browse("", "window=filingcabinet") // Close the menu
diff --git a/code/modules/paperwork/folders.dm b/code/modules/paperwork/folders.dm
index 7ff2875a6e5..12f9e13a4e9 100644
--- a/code/modules/paperwork/folders.dm
+++ b/code/modules/paperwork/folders.dm
@@ -33,7 +33,6 @@
user.drop_item()
W.loc = src
to_chat(user, "You put the [W] into \the [src].")
-
update_icon()
else if(istype(W, /obj/item/weapon/pen))
var/n_name = input(usr, "What would you like to label the folder?", "Folder Labelling", null) as text|null
diff --git a/code/modules/paperwork/frames.dm b/code/modules/paperwork/frames.dm
index a8fca4f0831..f988cf117cc 100644
--- a/code/modules/paperwork/frames.dm
+++ b/code/modules/paperwork/frames.dm
@@ -71,7 +71,6 @@
update_icon()
else
to_chat(user, "There is nothing to remove from \the [src].")
-
else if(istype(I, /obj/item/weapon/crowbar))
playsound(src, 'sound/items/Crowbar.ogg', 100, 1)
user.visible_message("[user] breaks down \the [src].", "You break down \the [src].")
@@ -91,7 +90,6 @@
update_icon()
else
to_chat(user, "\The [src] already contains \a [displayed].")
-
else
return ..()
@@ -106,17 +104,14 @@
for(var/obj/O in user.loc.contents) //Let's see if it already has a poster on it or too much stuff
if(istype(O, /obj/structure/sign))
to_chat(user, "\The [T] is far too cluttered to place \a [src]!")
-
return
stuff_on_wall++
if(stuff_on_wall >= 4)
to_chat(user, "\The [T] is far too cluttered to place \a [src]!")
-
return
to_chat(user, "You start place \the [src] on \the [T].")
-
var/px = 0
var/py = 0
var/newdir = getRelativeDirection(user, T)
@@ -132,7 +127,6 @@
px = -32
else
to_chat(user, "You cannot reach \the [T] from here!")
-
return
user.unEquip(src)
@@ -233,11 +227,9 @@
if(istype(I, /obj/item/weapon/grenade) || istype(I, /obj/item/weapon/c4))
if(explosive)
to_chat(user, "There is already a device attached behind \the [src], remove it first.")
-
return 1
if(!tilted)
to_chat(user, "\The [src] needs to be already tilted before being rigged with \the [I].")
-
return 1
user.visible_message("[user] is fiddling around behind \the [src].", "You begin to secure \the [I] behind \the [src].")
if(do_after(user, 150, target = src))
diff --git a/code/modules/paperwork/handlabeler.dm b/code/modules/paperwork/handlabeler.dm
index bc03f335be8..8dbfbd9c1b4 100644
--- a/code/modules/paperwork/handlabeler.dm
+++ b/code/modules/paperwork/handlabeler.dm
@@ -16,27 +16,21 @@
if(!labels_left)
to_chat(user, "No labels left.")
-
return
if(!label || !length(label))
to_chat(user, "No text set.")
-
return
if(length(A.name) + length(label) > 64)
to_chat(user, "Label too big.")
-
return
if(ishuman(A))
to_chat(user, "You can't label humans.")
-
return
if(issilicon(A))
to_chat(user, "You can't label cyborgs.")
-
return
if(istype(A, /obj/item/weapon/reagent_containers/glass))
to_chat(user, "The label can't stick to the [A.name]. (Try using a pen)")
-
return
user.visible_message("[user] labels [A] as [label].", \
@@ -48,16 +42,12 @@
icon_state = "labeler[mode]"
if(mode)
to_chat(user, "You turn on \the [src].")
-
//Now let them chose the text.
var/str = copytext(reject_bad_text(input(user,"Label text?","Set label","")),1,MAX_NAME_LEN)
if(!str || !length(str))
to_chat(user, "Invalid text.")
-
return
label = str
to_chat(user, "You set the text to '[str]'.")
-
else
to_chat(user, "You turn off \the [src].")
-
diff --git a/code/modules/paperwork/paper.dm b/code/modules/paperwork/paper.dm
index fb4d7816dd9..bf847a06c0a 100644
--- a/code/modules/paperwork/paper.dm
+++ b/code/modules/paperwork/paper.dm
@@ -58,7 +58,6 @@
else
to_chat(user, "You have to go closer if you want to read it.")
-
/obj/item/weapon/paper/proc/show_content(var/mob/user, var/forceshow = 0, var/forcestars = 0, var/infolinks = 0, var/view = 1)
var/datum/asset/assets = get_asset_datum(/datum/asset/simple/paper)
assets.send(user)
@@ -83,7 +82,6 @@
if((CLUMSY in usr.mutations) && prob(50))
to_chat(usr, "You cut yourself on the paper.")
-
return
var/n_name = sanitize(copytext(input(usr, "What would you like to label the paper?", "Paper Labelling", name) as text, 1, MAX_MESSAGE_LEN))
if((loc == usr && usr.stat == 0))
@@ -128,7 +126,6 @@
var/mob/living/carbon/human/H = M
if(H == user)
to_chat(user, "You wipe off your face with [src].")
-
H.lip_style = null
H.update_body()
else
@@ -316,7 +313,6 @@
else
to_chat(user, "\red You must hold \the [P] steady to burn \the [src].")
-
/obj/item/weapon/paper/Topic(href, href_list)
..()
if(!usr || (usr.stat || usr.restrained()))
@@ -346,7 +342,6 @@
for(var/bad in paper_blacklist)
if(findtext(t,bad))
to_chat(usr, "\blue You think to yourself, \"Hm.. this is only paper...\"")
-
log_admin("PAPER: [key_name(usr)] tried to use forbidden word in [src]: [bad].")
message_admins("PAPER: [key_name_admin(usr)] tried to use forbidden word in [src]: [bad].")
return
@@ -383,7 +378,6 @@
var/obj/item/weapon/paper/carbon/C = P
if (!C.iscopy && !C.copied)
to_chat(user, "Take off the carbon copy first.")
-
add_fingerprint(user)
return
var/obj/item/weapon/paper_bundle/B = new(src.loc)
@@ -420,7 +414,6 @@
if(h_user.client) h_user.client.screen -= src
h_user.put_in_hands(B)
to_chat(user, "You clip the [P.name] to [(src.name == "paper") ? "the paper" : src.name].")
-
src.loc = B
P.loc = B
B.amount++
@@ -442,14 +435,12 @@
if(istype(P, /obj/item/weapon/stamp/clown))
if(!clown)
to_chat(user, "You are totally unable to use the stamp. HONK!")
-
return
stamp(P)
to_chat(user, "You stamp the paper with your rubber stamp.")
-
else if(istype(P, /obj/item/weapon/lighter))
burnpaper(P, user)
diff --git a/code/modules/paperwork/paper_bundle.dm b/code/modules/paperwork/paper_bundle.dm
index e43c47f01c3..a99efb09294 100644
--- a/code/modules/paperwork/paper_bundle.dm
+++ b/code/modules/paperwork/paper_bundle.dm
@@ -25,7 +25,6 @@
var/obj/item/weapon/paper/carbon/C = P
if (!C.iscopy && !C.copied)
to_chat(user, "Take off the carbon copy first.")
-
add_fingerprint(user)
return
@@ -33,7 +32,6 @@
if(screen == 2)
screen = 1
to_chat(user, "You add [(P.name == "paper") ? "the paper" : P.name] to [(src.name == "paper bundle") ? "the paper bundle" : src.name].")
-
user.unEquip(P)
P.loc = src
if(istype(user,/mob/living/carbon/human))
@@ -45,7 +43,6 @@
if(screen == 2)
screen = 1
to_chat(user, "You add [(W.name == "photo") ? "the photo" : W.name] to [(src.name == "paper bundle") ? "the paper bundle" : src.name].")
-
user.unEquip(W)
W.loc = src
else if(istype(W, /obj/item/weapon/lighter))
@@ -59,7 +56,6 @@
if(screen == 2)
screen = 1
to_chat(user, "You add \the [W.name] to [(src.name == "paper bundle") ? "the paper bundle" : src.name].")
-
qdel(W)
else
if(istype(W, /obj/item/stack/tape_roll))
@@ -100,14 +96,12 @@
else
to_chat(user, "\red You must hold \the [P] steady to burn \the [src].")
-
/obj/item/weapon/paper_bundle/examine(mob/user)
if(..(user, 1))
src.show_content(user)
else
to_chat(user, "It is too far away.")
-
/obj/item/weapon/paper_bundle/proc/show_content(mob/user as mob)
var/dat
var/obj/item/weapon/W = src[page]
@@ -169,7 +163,6 @@
var/obj/item/weapon/W = src[page]
usr.put_in_hands(W)
to_chat(usr, "You remove the [W.name] from the bundle.")
-
if(amount == 1)
var/obj/item/weapon/paper/P = src[1]
usr.unEquip(src)
@@ -184,7 +177,6 @@
update_icon()
else
to_chat(usr, "You need to hold it in your hands to change pages.")
-
if (istype(src.loc, /mob))
src.attack_self(src.loc)
updateUsrDialog()
@@ -209,7 +201,6 @@
set src in usr
to_chat(usr, "You loosen the bundle.")
-
for(var/obj/O in src)
O.loc = usr.loc
O.layer = initial(O.layer)
diff --git a/code/modules/paperwork/paperbin.dm b/code/modules/paperwork/paperbin.dm
index b5528b41375..cd3afbd400d 100644
--- a/code/modules/paperwork/paperbin.dm
+++ b/code/modules/paperwork/paperbin.dm
@@ -55,7 +55,6 @@
temp = H.organs_by_name["l_hand"]
if(temp && !temp.is_usable())
to_chat(H, "You try to move your [temp.name], but cannot!")
-
return
if(amount >= 1)
amount--
@@ -77,11 +76,9 @@
P.loc = user.loc
user.put_in_hands(P)
to_chat(user, "You take [P] out of the [src].")
-
else
to_chat(user, "[src] is empty!")
-
add_fingerprint(user)
return
@@ -93,7 +90,6 @@
user.drop_item()
i.loc = src
to_chat(user, "You put [i] in [src].")
-
papers.Add(i)
amount++
@@ -102,12 +98,10 @@
if(..(user, 1))
if(amount)
to_chat(usr, "There " + (amount > 1 ? "are [amount] papers" : "is one paper") + " in the bin.")
-
else
to_chat(usr, "There are no papers in the bin.")
-
/obj/item/weapon/paper_bin/update_icon()
if(amount < 1)
icon_state = "paper_bin0"
@@ -134,10 +128,8 @@
P.loc = user.loc
user.put_in_hands(P)
to_chat(user, "You take [P] out of the [src].")
-
else
to_chat(user, "[src] is empty!")
-
add_fingerprint(user)
return
diff --git a/code/modules/paperwork/pen.dm b/code/modules/paperwork/pen.dm
index afea1699041..46d080adb6f 100644
--- a/code/modules/paperwork/pen.dm
+++ b/code/modules/paperwork/pen.dm
@@ -26,7 +26,6 @@
/obj/item/weapon/pen/suicide_act(mob/user)
to_chat(viewers(user), "[user] starts scribbling numbers over \himself with the [src.name]! It looks like \he's trying to commit sudoku.")
-
return (BRUTELOSS)
/obj/item/weapon/pen/blue
@@ -112,9 +111,7 @@
if(!force)
if(M.can_inject(user, 1))
to_chat(user, "You stab [M] with the pen.")
-
// to_chat(M, "You feel a tiny prick!")
-
. = 1
add_logs(M, user, "stabbed", object="[name]")
@@ -165,7 +162,6 @@
throwforce = initial(throwforce)
playsound(user, 'sound/weapons/saberoff.ogg', 5, 1)
to_chat(user, "[src] can now be concealed.")
-
else
on = 1
force = 18
@@ -177,7 +173,6 @@
throwforce = 35
playsound(user, 'sound/weapons/saberon.ogg', 5, 1)
to_chat(user, "[src] is now active.")
-
update_icon()
/obj/item/weapon/pen/edagger/update_icon()
diff --git a/code/modules/paperwork/photocopier.dm b/code/modules/paperwork/photocopier.dm
index d7b67f42045..d6b4b6ad213 100644
--- a/code/modules/paperwork/photocopier.dm
+++ b/code/modules/paperwork/photocopier.dm
@@ -64,7 +64,6 @@
sleep(15)
else
to_chat(usr, "\The [copyitem] can't be copied by \the [src].")
-
break
use_power(active_power_usage)
@@ -74,12 +73,10 @@
copyitem.loc = usr.loc
usr.put_in_hands(copyitem)
to_chat(usr, "You take \the [copyitem] out of \the [src].")
-
copyitem = null
updateUsrDialog()
else if(check_ass())
to_chat(ass, "You feel a slight pressure on your ass.")
-
updateUsrDialog()
else if(href_list["min"])
if(copies > 1)
@@ -121,29 +118,24 @@
copyitem = O
O.loc = src
to_chat(user, "You insert \the [O] into \the [src].")
-
flick(insert_anim, src)
updateUsrDialog()
else
to_chat(user, "There is already something in \the [src].")
-
else if(istype(O, /obj/item/device/toner))
if(toner <= 10) //allow replacing when low toner is affecting the print darkness
user.drop_item()
to_chat(user, "You insert the toner cartridge into \the [src].")
-
var/obj/item/device/toner/T = O
toner += T.toner_amount
qdel(O)
updateUsrDialog()
else
to_chat(user, "This cartridge is not yet ready for replacement! Use up the rest of the toner.")
-
else if(istype(O, /obj/item/weapon/wrench))
playsound(loc, 'sound/items/Ratchet.ogg', 50, 1)
anchored = !anchored
to_chat(user, "You [anchored ? "wrench" : "unwrench"] \the [src].")
-
else if(istype(O, /obj/item/weapon/grab)) //For ass-copying.
var/obj/item/weapon/grab/G = O
if(ismob(G.affecting) && G.affecting != ass)
diff --git a/code/modules/paperwork/photography.dm b/code/modules/paperwork/photography.dm
index 679d466dfd7..b63dcc2750c 100644
--- a/code/modules/paperwork/photography.dm
+++ b/code/modules/paperwork/photography.dm
@@ -69,14 +69,12 @@
else
to_chat(user, "\red You must hold \the [P] steady to burn \the [src].")
-
/obj/item/weapon/photo/examine(mob/user)
if(..(user, 1) || isobserver(user))
show(user)
else
to_chat(user, "It is too far away.")
-
/obj/item/weapon/photo/proc/show(mob/user as mob)
usr << browse_rsc(img, "tmp_photo.png")
usr << browse("
[line2]