mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 12:07:27 +01:00
Convert most spans to defines (#31080)
* spanish? * aaaagain * keep maptext * Update robot_items.dm * Update span_defines.dm * compiles * Update silicon_mob.dm * compile
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
return FALSE
|
||||
var/obj/item/mod/control/mod = target
|
||||
if(mod.malfunctioning && prob(75))
|
||||
to_chat(usr, "<span class='warning'>The module fails to activate!</span>")
|
||||
to_chat(usr, SPAN_WARNING("The module fails to activate!"))
|
||||
return FALSE
|
||||
return TRUE
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
if(!istype(part) || user.incapacitated())
|
||||
return
|
||||
if(active || activating)
|
||||
to_chat(user, "<span class='warning'>Deactivate the suit first!</span>")
|
||||
to_chat(user, SPAN_WARNING("Deactivate the suit first!"))
|
||||
playsound(src, 'sound/machines/scanbuzz.ogg', 25, TRUE, SILENCED_SOUND_EXTRARANGE)
|
||||
return
|
||||
var/parts_to_check = mod_parts - part
|
||||
@@ -42,7 +42,7 @@
|
||||
/// Quickly deploys all parts (or retracts if all are on the wearer)
|
||||
/obj/item/mod/control/proc/quick_deploy(mob/user)
|
||||
if(active || activating)
|
||||
to_chat(user, "<span class='warning'>Deactivate the suit first!</span>")
|
||||
to_chat(user, SPAN_WARNING("Deactivate the suit first!"))
|
||||
playsound(src, 'sound/machines/scanbuzz.ogg', 25, TRUE, SILENCED_SOUND_EXTRARANGE)
|
||||
return FALSE
|
||||
var/deploy = TRUE
|
||||
@@ -56,8 +56,8 @@
|
||||
deploy(null, part, TRUE)
|
||||
else if(!deploy && part.loc != src)
|
||||
retract(null, part, TRUE)
|
||||
wearer.visible_message("<span class='notice'>[wearer]'s [src] [deploy ? "deploys" : "retracts"] its' parts with a mechanical hiss.</span>",
|
||||
"<span class='notice'>[src] [deploy ? "deploys" : "retracts"] its' parts with a mechanical hiss.</span>",
|
||||
wearer.visible_message(SPAN_NOTICE("[wearer]'s [src] [deploy ? "deploys" : "retracts"] its' parts with a mechanical hiss."),
|
||||
SPAN_NOTICE("[src] [deploy ? "deploys" : "retracts"] its' parts with a mechanical hiss."),
|
||||
"You hear a mechanical hiss.")
|
||||
playsound(src, 'sound/mecha/mechmove03.ogg', 25, TRUE, SHORT_RANGE_SOUND_EXTRARANGE)
|
||||
if(deploy)
|
||||
@@ -71,7 +71,7 @@
|
||||
if(part.loc != src)
|
||||
if(!user)
|
||||
return FALSE
|
||||
to_chat(user, "<span class='warning'>[part.name] already deployed!</span>")
|
||||
to_chat(user, SPAN_WARNING("[part.name] already deployed!"))
|
||||
playsound(src, 'sound/machines/scanbuzz.ogg', 25, TRUE, SILENCED_SOUND_EXTRARANGE)
|
||||
if(part in overslotting_parts)
|
||||
var/obj/item/overslot = wearer.get_item_by_slot(part.slot_flags)
|
||||
@@ -84,15 +84,15 @@
|
||||
part.set_nodrop(TRUE)
|
||||
if(mass)
|
||||
return TRUE
|
||||
wearer.visible_message("<span class='notice'>[wearer]'s [part.name] deploy[part.p_s()] with a mechanical hiss.</span>",
|
||||
"<span class='notice'>[part] deploy[part.p_s()] with a mechanical hiss.</span>",
|
||||
wearer.visible_message(SPAN_NOTICE("[wearer]'s [part.name] deploy[part.p_s()] with a mechanical hiss."),
|
||||
SPAN_NOTICE("[part] deploy[part.p_s()] with a mechanical hiss."),
|
||||
"You hear a mechanical hiss.")
|
||||
playsound(src, 'sound/mecha/mechmove03.ogg', 25, TRUE, SHORT_RANGE_SOUND_EXTRARANGE)
|
||||
return TRUE
|
||||
else
|
||||
if(!user)
|
||||
return FALSE
|
||||
to_chat(user, "<span class='warning'>You already have clothing there!</span>")
|
||||
to_chat(user, SPAN_WARNING("You already have clothing there!"))
|
||||
playsound(src, 'sound/machines/scanbuzz.ogg', 25, TRUE, SILENCED_SOUND_EXTRARANGE)
|
||||
return FALSE
|
||||
|
||||
@@ -101,7 +101,7 @@
|
||||
if(part.loc == src)
|
||||
if(!user)
|
||||
return FALSE
|
||||
to_chat(user, "<span class='warning'>You already have retracted there!</span>")
|
||||
to_chat(user, SPAN_WARNING("You already have retracted there!"))
|
||||
playsound(src, 'sound/machines/scanbuzz.ogg', 25, TRUE, SILENCED_SOUND_EXTRARANGE)
|
||||
part.set_nodrop(FALSE)
|
||||
wearer.transfer_item_to(part, src, force = TRUE)
|
||||
@@ -113,8 +113,8 @@
|
||||
overslotting_parts[part] = null
|
||||
if(mass)
|
||||
return TRUE
|
||||
wearer.visible_message("<span class='notice'>[wearer]'s [part.name] retract[part.p_s()] back into [src] with a mechanical hiss.</span>",
|
||||
"<span class='notice'>[part] retract[part.p_s()] back into [src] with a mechanical hiss.</span>",
|
||||
wearer.visible_message(SPAN_NOTICE("[wearer]'s [part.name] retract[part.p_s()] back into [src] with a mechanical hiss."),
|
||||
SPAN_NOTICE("[part] retract[part.p_s()] back into [src] with a mechanical hiss."),
|
||||
"You hear a mechanical hiss.")
|
||||
playsound(src, 'sound/mecha/mechmove03.ogg', 25, TRUE, SHORT_RANGE_SOUND_EXTRARANGE)
|
||||
|
||||
@@ -122,7 +122,7 @@
|
||||
/obj/item/mod/control/proc/toggle_activate(mob/user, force_deactivate = FALSE)
|
||||
if(!wearer)
|
||||
if(!force_deactivate)
|
||||
to_chat(user, "<span class='warning'>Equip your suit first!</span>")
|
||||
to_chat(user, SPAN_WARNING("Equip your suit first!"))
|
||||
playsound(src, 'sound/machines/scanbuzz.ogg', 25, TRUE, SILENCED_SOUND_EXTRARANGE)
|
||||
return FALSE
|
||||
if(!force_deactivate && (SEND_SIGNAL(src, COMSIG_MOD_ACTIVATE, user) & MOD_CANCEL_ACTIVATE))
|
||||
@@ -130,24 +130,24 @@
|
||||
return FALSE
|
||||
for(var/obj/item/part as anything in mod_parts)
|
||||
if(!force_deactivate && part.loc == src)
|
||||
to_chat(user, "<span class='warning'>Deploy all parts first!</span>")
|
||||
to_chat(user, SPAN_WARNING("Deploy all parts first!"))
|
||||
playsound(src, 'sound/machines/scanbuzz.ogg', 25, TRUE, SILENCED_SOUND_EXTRARANGE)
|
||||
return FALSE
|
||||
if(locked && !active && !allowed(user) && !force_deactivate)
|
||||
to_chat(user, "<span class='warning'>Insufficient access!</span>")
|
||||
to_chat(user, SPAN_WARNING("Insufficient access!"))
|
||||
playsound(src, 'sound/machines/scanbuzz.ogg', 25, TRUE, SILENCED_SOUND_EXTRARANGE)
|
||||
return FALSE
|
||||
if(!get_charge() && !force_deactivate)
|
||||
to_chat(user, "<span class='warning'>Suit is not powered!</span>")
|
||||
to_chat(user, SPAN_WARNING("Suit is not powered!"))
|
||||
playsound(src, 'sound/machines/scanbuzz.ogg', 25, TRUE, SILENCED_SOUND_EXTRARANGE)
|
||||
return FALSE
|
||||
if(open && !force_deactivate)
|
||||
to_chat(user, "<span class='warning'>Close the suit panel!</span>")
|
||||
to_chat(user, SPAN_WARNING("Close the suit panel!"))
|
||||
playsound(src, 'sound/machines/scanbuzz.ogg', 25, TRUE, SILENCED_SOUND_EXTRARANGE)
|
||||
return FALSE
|
||||
if(activating)
|
||||
if(!force_deactivate)
|
||||
to_chat(user, "<span class='warning'>Suit is already [active ? "shutting down" : "starting up"]!</span>")
|
||||
to_chat(user, SPAN_WARNING("Suit is already [active ? "shutting down" : "starting up"]!"))
|
||||
playsound(src, 'sound/machines/scanbuzz.ogg', 25, TRUE, SILENCED_SOUND_EXTRARANGE)
|
||||
return FALSE
|
||||
for(var/obj/item/mod/module/module as anything in modules)
|
||||
@@ -156,30 +156,30 @@
|
||||
module.on_deactivation(display_message = FALSE)
|
||||
mod_link.end_call()
|
||||
activating = TRUE
|
||||
to_chat(wearer, "<span class='notice'>MODsuit [active ? "shutting down" : "starting up"].</span>")
|
||||
to_chat(wearer, SPAN_NOTICE("MODsuit [active ? "shutting down" : "starting up"]."))
|
||||
if(do_after(wearer, activation_step_time, FALSE, target = src, allow_moving = TRUE, use_default_checks = FALSE, hidden = TRUE, allow_sleeping_or_dead = TRUE))
|
||||
if(has_wearer())
|
||||
to_chat(wearer, "<span class='notice'>[boots] [active ? "relax their grip on your legs" : "seal around your feet"].</span>")
|
||||
to_chat(wearer, SPAN_NOTICE("[boots] [active ? "relax their grip on your legs" : "seal around your feet"]."))
|
||||
playsound(src, 'sound/mecha/mechmove03.ogg', 25, TRUE, SHORT_RANGE_SOUND_EXTRARANGE)
|
||||
seal_part(boots, seal = !active)
|
||||
if(do_after(wearer, activation_step_time, FALSE, target = src, allow_moving = TRUE, use_default_checks = FALSE, hidden = TRUE, allow_sleeping_or_dead = TRUE))
|
||||
if(has_wearer())
|
||||
to_chat(wearer, "<span class='notice'>[gauntlets] [active ? "become loose around your fingers" : "tighten around your fingers and wrists"].</span>")
|
||||
to_chat(wearer, SPAN_NOTICE("[gauntlets] [active ? "become loose around your fingers" : "tighten around your fingers and wrists"]."))
|
||||
playsound(src, 'sound/mecha/mechmove03.ogg', 25, TRUE, SHORT_RANGE_SOUND_EXTRARANGE)
|
||||
seal_part(gauntlets, seal = !active)
|
||||
if(do_after(wearer, activation_step_time, FALSE, target = src, allow_moving = TRUE, use_default_checks = FALSE, hidden = TRUE, allow_sleeping_or_dead = TRUE))
|
||||
if(has_wearer())
|
||||
to_chat(wearer, "<span class='notice'>[chestplate] [active ? "releases your chest" : "cinches tightly against your chest"].</span>")
|
||||
to_chat(wearer, SPAN_NOTICE("[chestplate] [active ? "releases your chest" : "cinches tightly against your chest"]."))
|
||||
playsound(src, 'sound/mecha/mechmove03.ogg', 25, TRUE, SHORT_RANGE_SOUND_EXTRARANGE)
|
||||
seal_part(chestplate, seal = !active)
|
||||
if(do_after(wearer, activation_step_time, FALSE, target = src, allow_moving = TRUE, use_default_checks = FALSE, hidden = TRUE, allow_sleeping_or_dead = TRUE))
|
||||
if(has_wearer())
|
||||
to_chat(wearer, "<span class='notice'>[helmet] hisses [active ? "open" : "closed"].</span>")
|
||||
to_chat(wearer, SPAN_NOTICE("[helmet] hisses [active ? "open" : "closed"]."))
|
||||
playsound(src, 'sound/mecha/mechmove03.ogg', 25, TRUE, SHORT_RANGE_SOUND_EXTRARANGE)
|
||||
seal_part(helmet, seal = !active)
|
||||
if(do_after(wearer, activation_step_time, FALSE, target = src, allow_moving = TRUE, use_default_checks = FALSE, hidden = TRUE, allow_sleeping_or_dead = TRUE))
|
||||
if(has_wearer())
|
||||
to_chat(wearer, "<span class='notice'>Systems [active ? "shut down. Parts unsealed. Goodbye" : "started up. Parts sealed. Welcome"], [wearer].</span>")
|
||||
to_chat(wearer, SPAN_NOTICE("Systems [active ? "shut down. Parts unsealed. Goodbye" : "started up. Parts sealed. Welcome"], [wearer]."))
|
||||
finish_activation(on = !active)
|
||||
if(active)
|
||||
playsound(src, 'sound/machines/synth_yes.ogg', 50, TRUE, SHORT_RANGE_SOUND_EXTRARANGE, frequency = 6000)
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
|
||||
/obj/item/mod/construction/broken_core/examine(mob/user)
|
||||
. = ..()
|
||||
. += "<span class='notice'>You could repair it with a <b>screwdriver</b>...</span>"
|
||||
. += SPAN_NOTICE("You could repair it with a <b>screwdriver</b>...")
|
||||
|
||||
/obj/item/mod/construction/broken_core/screwdriver_act(mob/living/user, obj/item/tool)
|
||||
. = ..()
|
||||
@@ -124,7 +124,7 @@
|
||||
display_text = "The assembly seems <b>loose</b>..."
|
||||
if(SCREWED_ASSEMBLY_STEP)
|
||||
display_text = "All it's missing is <b>external plating</b>..."
|
||||
. += "<span class='notice'>[display_text]</span>"
|
||||
. += SPAN_NOTICE("[display_text]")
|
||||
|
||||
/obj/item/mod/construction/shell/attackby__legacy__attackchain(obj/item/part, mob/user, params)
|
||||
. = ..()
|
||||
@@ -133,44 +133,44 @@
|
||||
if(!istype(part, /obj/item/mod/core))
|
||||
return
|
||||
if(!user.drop_item())
|
||||
to_chat(user, "<span class='warning'>[part] is stuck to you and cannot be placed into [src].</span>")
|
||||
to_chat(user, SPAN_WARNING("[part] is stuck to you and cannot be placed into [src]."))
|
||||
return
|
||||
playsound(src, 'sound/machines/click.ogg', 30, TRUE)
|
||||
to_chat(user, "<span class='notice'>Core inserted.</span>")
|
||||
to_chat(user, SPAN_NOTICE("Core inserted."))
|
||||
core = part
|
||||
core.forceMove(src)
|
||||
construction_step = CORE_STEP
|
||||
if(CORE_STEP)
|
||||
if(part.tool_behaviour == TOOL_SCREWDRIVER) //Construct
|
||||
if(part.use_tool(src, user, 0, volume = 30))
|
||||
to_chat(user, "<span class='notice'>Core screwed.</span>")
|
||||
to_chat(user, SPAN_NOTICE("Core screwed."))
|
||||
construction_step = SCREWED_CORE_STEP
|
||||
else if(part.tool_behaviour == TOOL_CROWBAR) //Deconstruct
|
||||
if(part.use_tool(src, user, 0, volume = 30))
|
||||
core.forceMove(drop_location())
|
||||
to_chat(user, "<span class='notice'>Core removed.</span>")
|
||||
to_chat(user, SPAN_NOTICE("Core removed."))
|
||||
construction_step = START_STEP
|
||||
if(SCREWED_CORE_STEP)
|
||||
if(istype(part, /obj/item/mod/construction/helmet)) //Construct
|
||||
if(!user.drop_item())
|
||||
to_chat(user, "<span class='warning'>[part] is stuck to you and cannot be placed into [src].</span>")
|
||||
to_chat(user, SPAN_WARNING("[part] is stuck to you and cannot be placed into [src]."))
|
||||
return
|
||||
playsound(src, 'sound/machines/click.ogg', 30, TRUE)
|
||||
to_chat(user, "<span class='notice'>Helmet added.</span>")
|
||||
to_chat(user, SPAN_NOTICE("Helmet added."))
|
||||
helmet = part
|
||||
helmet.forceMove(src)
|
||||
construction_step = HELMET_STEP
|
||||
else if(part.tool_behaviour == TOOL_SCREWDRIVER) //Deconstruct
|
||||
if(part.use_tool(src, user, 0, volume = 30))
|
||||
to_chat(user, "<span class='notice'>Core unscrewed.</span>")
|
||||
to_chat(user, SPAN_NOTICE("Core unscrewed."))
|
||||
construction_step = CORE_STEP
|
||||
if(HELMET_STEP)
|
||||
if(istype(part, /obj/item/mod/construction/chestplate)) //Construct
|
||||
if(!user.drop_item())
|
||||
to_chat(user, "<span class='warning'>[part] is stuck to you and cannot be placed into [src].</span>")
|
||||
to_chat(user, SPAN_WARNING("[part] is stuck to you and cannot be placed into [src]."))
|
||||
return
|
||||
playsound(src, 'sound/machines/click.ogg', 30, TRUE)
|
||||
to_chat(user, "<span class='notice'>Chestplate added.</span>")
|
||||
to_chat(user, SPAN_NOTICE("Chestplate added."))
|
||||
forceMove(src)
|
||||
chestplate = part
|
||||
chestplate.forceMove(src)
|
||||
@@ -178,60 +178,60 @@
|
||||
else if(part.tool_behaviour == TOOL_CROWBAR) //Deconstruct
|
||||
if(part.use_tool(src, user, 0, volume = 30))
|
||||
helmet.forceMove(drop_location())
|
||||
to_chat(user, "<span class='notice'>Helmet removed.</span>")
|
||||
to_chat(user, SPAN_NOTICE("Helmet removed."))
|
||||
helmet = null
|
||||
construction_step = SCREWED_CORE_STEP
|
||||
if(CHESTPLATE_STEP)
|
||||
if(istype(part, /obj/item/mod/construction/gauntlets)) //Construct
|
||||
if(!user.drop_item())
|
||||
to_chat(user, "<span class='warning'>[part] is stuck to you and cannot be placed into [src].</span>")
|
||||
to_chat(user, SPAN_WARNING("[part] is stuck to you and cannot be placed into [src]."))
|
||||
return
|
||||
playsound(src, 'sound/machines/click.ogg', 30, TRUE)
|
||||
to_chat(user, "<span class='notice'>Gauntlets added.</span>")
|
||||
to_chat(user, SPAN_NOTICE("Gauntlets added."))
|
||||
gauntlets = part
|
||||
gauntlets.forceMove(src)
|
||||
construction_step = GAUNTLETS_STEP
|
||||
else if(part.tool_behaviour == TOOL_CROWBAR) //Deconstruct
|
||||
if(part.use_tool(src, user, 0, volume = 30))
|
||||
chestplate.forceMove(drop_location())
|
||||
to_chat(user, "<span class='notice'>Chestplate removed.</span>")
|
||||
to_chat(user, SPAN_NOTICE("Chestplate removed."))
|
||||
chestplate = null
|
||||
construction_step = HELMET_STEP
|
||||
if(GAUNTLETS_STEP)
|
||||
if(istype(part, /obj/item/mod/construction/boots)) //Construct
|
||||
if(!user.drop_item())
|
||||
to_chat(user, "<span class='warning'>[part] is stuck to you and cannot be placed into [src].</span>")
|
||||
to_chat(user, SPAN_WARNING("[part] is stuck to you and cannot be placed into [src]."))
|
||||
return
|
||||
playsound(src, 'sound/machines/click.ogg', 30, TRUE)
|
||||
to_chat(user, "<span class='notice'>Boots added.</span>")
|
||||
to_chat(user, SPAN_NOTICE("Boots added."))
|
||||
boots = part
|
||||
boots.forceMove(src)
|
||||
construction_step = BOOTS_STEP
|
||||
else if(part.tool_behaviour == TOOL_CROWBAR) //Deconstruct
|
||||
if(part.use_tool(src, user, 0, volume = 30))
|
||||
gauntlets.forceMove(drop_location())
|
||||
to_chat(user, "<span class='notice'>Gauntlets removed.</span>")
|
||||
to_chat(user, SPAN_NOTICE("Gauntlets removed."))
|
||||
gauntlets = null
|
||||
construction_step = CHESTPLATE_STEP
|
||||
if(BOOTS_STEP)
|
||||
if(part.tool_behaviour == TOOL_WRENCH) //Construct
|
||||
if(part.use_tool(src, user, 0, volume = 30))
|
||||
to_chat(user, "<span class='notice'>Assembly secured.</span>")
|
||||
to_chat(user, SPAN_NOTICE("Assembly secured."))
|
||||
construction_step = WRENCHED_ASSEMBLY_STEP
|
||||
else if(part.tool_behaviour == TOOL_CROWBAR) //Deconstruct
|
||||
if(part.use_tool(src, user, 0, volume = 30))
|
||||
boots.forceMove(drop_location())
|
||||
to_chat(user, "<span class='notice'>Boots removed.</span>")
|
||||
to_chat(user, SPAN_NOTICE("Boots removed."))
|
||||
boots = null
|
||||
construction_step = GAUNTLETS_STEP
|
||||
if(WRENCHED_ASSEMBLY_STEP)
|
||||
if(part.tool_behaviour == TOOL_SCREWDRIVER) //Construct
|
||||
if(part.use_tool(src, user, 0, volume = 30))
|
||||
to_chat(user, "<span class='notice'>Assembly screwed.</span>")
|
||||
to_chat(user, SPAN_NOTICE("Assembly screwed."))
|
||||
construction_step = SCREWED_ASSEMBLY_STEP
|
||||
else if(part.tool_behaviour == TOOL_WRENCH) //Deconstruct
|
||||
if(part.use_tool(src, user, 0, volume = 30))
|
||||
to_chat(user, "<span class='notice'>Assembly unsecured.</span>")
|
||||
to_chat(user, SPAN_NOTICE("Assembly unsecured."))
|
||||
construction_step = BOOTS_STEP
|
||||
if(SCREWED_ASSEMBLY_STEP)
|
||||
if(istype(part, /obj/item/mod/construction/plating)) //Construct
|
||||
@@ -244,10 +244,10 @@
|
||||
qdel(external_plating)
|
||||
qdel(src)
|
||||
user.put_in_hands(mod)
|
||||
to_chat(user, "<span class='notice'>Suit finished!</span>")
|
||||
to_chat(user, SPAN_NOTICE("Suit finished!"))
|
||||
else if(part.tool_behaviour == TOOL_SCREWDRIVER) //Construct
|
||||
if(part.use_tool(src, user, 0, volume = 30))
|
||||
to_chat(user, "<span class='notice'>Assembly unscrewed.</span>")
|
||||
to_chat(user, SPAN_NOTICE("Assembly unscrewed."))
|
||||
construction_step = SCREWED_ASSEMBLY_STEP
|
||||
update_icon(UPDATE_ICON_STATE)
|
||||
|
||||
|
||||
@@ -315,7 +315,7 @@
|
||||
if(istype(over_object, /atom/movable/screen/inventory/hand))
|
||||
for(var/obj/item/part as anything in mod_parts)
|
||||
if(part.loc != src)
|
||||
to_chat(wearer, "<span class='warning'>Retract parts first!</span>")
|
||||
to_chat(wearer, SPAN_WARNING("Retract parts first!"))
|
||||
playsound(src, 'sound/machines/scanbuzz.ogg', 25, FALSE, SILENCED_SOUND_EXTRARANGE)
|
||||
return
|
||||
if(!M.unequip(src, force = TRUE))
|
||||
@@ -341,7 +341,7 @@
|
||||
return TRUE
|
||||
if(open)
|
||||
if(!core)
|
||||
to_chat(user, "<span class='warning'>There is no core!</span>")
|
||||
to_chat(user, SPAN_WARNING("There is no core!"))
|
||||
return TRUE
|
||||
wrench.play_tool_sound(src, 100)
|
||||
if(!wrench.use_tool(src, user, 3 SECONDS) || !open)
|
||||
@@ -368,7 +368,7 @@
|
||||
var/obj/item/linked_thing = locateUID(M.buffer_uid)
|
||||
|
||||
if(!linked_thing)
|
||||
to_chat(user, "<span class='notice'>You save the frequency of [src] to the buffer.</span>")
|
||||
to_chat(user, SPAN_NOTICE("You save the frequency of [src] to the buffer."))
|
||||
M.buffer_uid = UID()
|
||||
return TRUE
|
||||
if(ismodcontrol(linked_thing))
|
||||
@@ -378,12 +378,12 @@
|
||||
return FALSE
|
||||
switch(response)
|
||||
if("Copy")
|
||||
to_chat(user, "<span class='notice'>You save the frequency of [src] to the buffer.</span>")
|
||||
to_chat(user, SPAN_NOTICE("You save the frequency of [src] to the buffer."))
|
||||
M.buffer_uid = UID()
|
||||
return TRUE
|
||||
if("Imprint")
|
||||
mod_link.frequency = chosen_control.mod_link.frequency
|
||||
to_chat(user, "<span class='notice'>You imprint the frequency to [src].</span>")
|
||||
to_chat(user, SPAN_NOTICE("You imprint the frequency to [src]."))
|
||||
return TRUE
|
||||
else
|
||||
var/obj/item/clothing/neck/link_scryer/chosen_scryer = linked_thing
|
||||
@@ -392,12 +392,12 @@
|
||||
return FALSE
|
||||
switch(response)
|
||||
if("Copy")
|
||||
to_chat(user, "<span class='notice'>You save the frequency of [src] to the buffer.</span>")
|
||||
to_chat(user, SPAN_NOTICE("You save the frequency of [src] to the buffer."))
|
||||
M.buffer_uid = UID()
|
||||
return TRUE
|
||||
if("Imprint")
|
||||
mod_link.frequency = chosen_scryer.mod_link.frequency
|
||||
to_chat(user, "<span class='notice'>You imprint the frequency to [src].</span>")
|
||||
to_chat(user, SPAN_NOTICE("You imprint the frequency to [src]."))
|
||||
return TRUE
|
||||
|
||||
|
||||
@@ -405,26 +405,26 @@
|
||||
if(..())
|
||||
return TRUE
|
||||
if(active || activating || locate(/mob/living/silicon/ai) in src)
|
||||
to_chat(user, "<span class='warning'>Deactivate the suit first!</span>")
|
||||
to_chat(user, SPAN_WARNING("Deactivate the suit first!"))
|
||||
playsound(src, 'sound/machines/scanbuzz.ogg', 25, TRUE, SILENCED_SOUND_EXTRARANGE)
|
||||
return FALSE
|
||||
to_chat(user, "<span class='notice'>[open ? "Closing" : "Opening"] cover...</span>")
|
||||
to_chat(user, SPAN_NOTICE("[open ? "Closing" : "Opening"] cover..."))
|
||||
screwdriver.play_tool_sound(src, 100)
|
||||
if(screwdriver.use_tool(src, user, 1 SECONDS))
|
||||
if(active || activating)
|
||||
to_chat(user, "<span class='warning'>Deactivate the suit first!</span>")
|
||||
to_chat(user, "<span class='notice'>Cover [open ? "closed" : "opened"]</span>")
|
||||
to_chat(user, SPAN_WARNING("Deactivate the suit first!"))
|
||||
to_chat(user, SPAN_NOTICE("Cover [open ? "closed" : "opened"]"))
|
||||
open = !open
|
||||
return TRUE
|
||||
|
||||
/obj/item/mod/control/crowbar_act(mob/living/user, obj/item/crowbar)
|
||||
. = ..()
|
||||
if(!open)
|
||||
to_chat(user, "<span class='warning'>Open the cover first!</span>")
|
||||
to_chat(user, SPAN_WARNING("Open the cover first!"))
|
||||
playsound(src, 'sound/machines/scanbuzz.ogg', 25, TRUE, SILENCED_SOUND_EXTRARANGE)
|
||||
return FALSE
|
||||
if(!allowed(user))
|
||||
to_chat(user, "<span class='warning'>Insufficient access!</span>")
|
||||
to_chat(user, SPAN_WARNING("Insufficient access!"))
|
||||
playsound(src, 'sound/machines/scanbuzz.ogg', 25, TRUE, SILENCED_SOUND_EXTRARANGE)
|
||||
return
|
||||
if(seconds_electrified && get_charge() && shock(user))
|
||||
@@ -446,14 +446,14 @@
|
||||
crowbar.play_tool_sound(src, 100)
|
||||
SEND_SIGNAL(src, COMSIG_MOD_MODULE_REMOVED, user)
|
||||
return TRUE
|
||||
to_chat(user, "<span class='warning'>No modules!</span>")
|
||||
to_chat(user, SPAN_WARNING("No modules!"))
|
||||
playsound(src, 'sound/machines/scanbuzz.ogg', 25, TRUE, SILENCED_SOUND_EXTRARANGE)
|
||||
return FALSE
|
||||
|
||||
/obj/item/mod/control/attackby__legacy__attackchain(obj/item/attacking_item, mob/living/user, params)
|
||||
if(istype(attacking_item, /obj/item/mod/module))
|
||||
if(!open)
|
||||
to_chat(user, "<span class='warning'>Open the cover first!</span>")
|
||||
to_chat(user, SPAN_WARNING("Open the cover first!"))
|
||||
playsound(src, 'sound/machines/scanbuzz.ogg', 25, TRUE, SILENCED_SOUND_EXTRARANGE)
|
||||
return FALSE
|
||||
install(attacking_item, user)
|
||||
@@ -461,11 +461,11 @@
|
||||
return TRUE
|
||||
else if(istype(attacking_item, /obj/item/mod/core))
|
||||
if(!open)
|
||||
to_chat(user, "<span class='warning'>Open the cover first!</span>")
|
||||
to_chat(user, SPAN_WARNING("Open the cover first!"))
|
||||
playsound(src, 'sound/machines/scanbuzz.ogg', 25, TRUE, SILENCED_SOUND_EXTRARANGE)
|
||||
return FALSE
|
||||
if(core)
|
||||
to_chat(user, "<span class='warning'>Core already installed!</span>")
|
||||
to_chat(user, SPAN_WARNING("Core already installed!"))
|
||||
playsound(src, 'sound/machines/scanbuzz.ogg', 25, TRUE, SILENCED_SOUND_EXTRARANGE)
|
||||
return FALSE
|
||||
var/obj/item/mod/core/attacking_core = attacking_item
|
||||
@@ -479,13 +479,13 @@
|
||||
return TRUE
|
||||
else if(istype(attacking_item, /obj/item/stock_parts/cell))
|
||||
if(!core)
|
||||
to_chat(user, "<span class='warning'>There is no core installed!</span>")
|
||||
to_chat(user, SPAN_WARNING("There is no core installed!"))
|
||||
playsound(src, 'sound/machines/scanbuzz.ogg', 25, TRUE, SILENCED_SOUND_EXTRARANGE)
|
||||
return FALSE
|
||||
core.on_attackby(attacking_item, user, params)
|
||||
else if(istype(attacking_item, /obj/item/stack/ore/plasma) || istype(attacking_item, /obj/item/stack/sheet/mineral/plasma))
|
||||
if(!core)
|
||||
to_chat(user, "<span class='warning'>There is no core installed!</span>")
|
||||
to_chat(user, SPAN_WARNING("There is no core installed!"))
|
||||
playsound(src, 'sound/machines/scanbuzz.ogg', 25, TRUE, SILENCED_SOUND_EXTRARANGE)
|
||||
return FALSE
|
||||
core.on_attackby(attacking_item, user, params)
|
||||
@@ -677,7 +677,7 @@
|
||||
return
|
||||
if(user)
|
||||
if(!user.drop_item())
|
||||
to_chat(user, "<span class='warning'>[new_module] is stuck to your hand!</span>")
|
||||
to_chat(user, SPAN_WARNING("[new_module] is stuck to your hand!"))
|
||||
playsound(src, 'sound/machines/scanbuzz.ogg', 25, TRUE, SILENCED_SOUND_EXTRARANGE)
|
||||
return
|
||||
new_module.forceMove(src)
|
||||
|
||||
@@ -193,11 +193,11 @@
|
||||
|
||||
/obj/item/mod/core/standard/proc/mod_uninstall_cell(mob/living/user)
|
||||
if(!cell)
|
||||
to_chat(user, "<span class='warning'>No cell installed!</span>")
|
||||
to_chat(user, SPAN_WARNING("No cell installed!"))
|
||||
return
|
||||
if(!do_after(user, 1.5 SECONDS, target = user))
|
||||
return
|
||||
to_chat(user, "<span class='notice'>You remove the cell.</span>")
|
||||
to_chat(user, SPAN_NOTICE("You remove the cell."))
|
||||
playsound(mod, 'sound/machines/click.ogg', 50, TRUE, SILENCED_SOUND_EXTRARANGE)
|
||||
var/obj/item/cell_to_move = cell
|
||||
cell_to_move.forceMove(drop_location())
|
||||
@@ -207,16 +207,16 @@
|
||||
/obj/item/mod/core/standard/on_attackby(obj/item/attacking_item, mob/user, params)
|
||||
if(istype(attacking_item, /obj/item/stock_parts/cell))
|
||||
if(!mod.open)
|
||||
to_chat(user, "<span class='warning'>Open the cover first!</span>")
|
||||
to_chat(user, SPAN_WARNING("Open the cover first!"))
|
||||
playsound(mod, 'sound/machines/scanbuzz.ogg', 25, TRUE, SILENCED_SOUND_EXTRARANGE)
|
||||
return NONE
|
||||
if(cell)
|
||||
to_chat(user, "<span class='warning'>Cell already installed!</span>")
|
||||
to_chat(user, SPAN_WARNING("Cell already installed!"))
|
||||
playsound(mod, 'sound/machines/scanbuzz.ogg', 25, TRUE, SILENCED_SOUND_EXTRARANGE)
|
||||
return COMPONENT_SKIP_AFTERATTACK
|
||||
user.drop_item()
|
||||
install_cell(attacking_item)
|
||||
to_chat(user, "<span class='notice'>You install the cell.</span>")
|
||||
to_chat(user, SPAN_NOTICE("You install the cell."))
|
||||
playsound(mod, 'sound/machines/click.ogg', 50, TRUE, SILENCED_SOUND_EXTRARANGE)
|
||||
mod.update_charge_alert()
|
||||
return COMPONENT_SKIP_AFTERATTACK
|
||||
@@ -299,12 +299,12 @@
|
||||
if(!charge_given)
|
||||
return FALSE
|
||||
if(charge_amount() == max_charge_amount())
|
||||
to_chat(user, "<span class='notice'>[src] is already fully charged!</span>")
|
||||
to_chat(user, SPAN_NOTICE("[src] is already fully charged!"))
|
||||
// We didn't succeed but we don't want to treat it as an attackby
|
||||
return TRUE
|
||||
var/uses_needed = min(plasma.amount, ((max_charge_amount() - charge_amount()) / 2000))
|
||||
if(!plasma.use(uses_needed))
|
||||
return FALSE
|
||||
add_charge(uses_needed * 2000)
|
||||
to_chat(user, "<span class='notice'>You insert [plasma] in [src], recharging it.</span>")
|
||||
to_chat(user, SPAN_NOTICE("You insert [plasma] in [src], recharging it."))
|
||||
return TRUE
|
||||
|
||||
@@ -169,11 +169,11 @@
|
||||
/obj/item/clothing/neck/link_scryer/examine(mob/user)
|
||||
. = ..()
|
||||
if(cell)
|
||||
. += "<span class='notice'>The battery charge reads [cell.percent()]%. Use a <b>Screwdriver</b> to remove it.</span>"
|
||||
. += SPAN_NOTICE("The battery charge reads [cell.percent()]%. Use a <b>Screwdriver</b> to remove it.")
|
||||
else
|
||||
. += "<span class='notice'>It is missing a battery, one can be installed by clicking with a power cell on it.</span>"
|
||||
. += "<span class='notice'>The MODlink ID is [mod_link.id], frequency is [mod_link.frequency || "unset"]. <b>Use</b> a multitool to copy/imprint frequency.</span>"
|
||||
. += "<span class='notice'>Use in hand to set name.</span>"
|
||||
. += SPAN_NOTICE("It is missing a battery, one can be installed by clicking with a power cell on it.")
|
||||
. += SPAN_NOTICE("The MODlink ID is [mod_link.id], frequency is [mod_link.frequency || "unset"]. <b>Use</b> a multitool to copy/imprint frequency.")
|
||||
. += SPAN_NOTICE("Use in hand to set name.")
|
||||
|
||||
/obj/item/clothing/neck/link_scryer/equipped(mob/living/user, slot)
|
||||
. = ..()
|
||||
@@ -189,10 +189,10 @@
|
||||
if(!user.is_holding(src))
|
||||
return
|
||||
if(!new_label)
|
||||
to_chat(user, "<span class='warning'>That name is invalid!</span>")
|
||||
to_chat(user, SPAN_WARNING("That name is invalid!"))
|
||||
return
|
||||
label = new_label
|
||||
to_chat(user, "<span class='notice'>You set the name as [label].</span>")
|
||||
to_chat(user, SPAN_NOTICE("You set the name as [label]."))
|
||||
update_appearance(UPDATE_NAME)
|
||||
|
||||
|
||||
@@ -206,7 +206,7 @@
|
||||
var/obj/item/linked_thing = locateUID(M.buffer_uid)
|
||||
|
||||
if(!linked_thing)
|
||||
to_chat(user, "<span class='notice'>You save the frequency of [src] to the buffer.</span>")
|
||||
to_chat(user, SPAN_NOTICE("You save the frequency of [src] to the buffer."))
|
||||
M.buffer_uid = UID()
|
||||
return TRUE
|
||||
if(ismodcontrol(linked_thing))
|
||||
@@ -216,12 +216,12 @@
|
||||
return FALSE
|
||||
switch(response)
|
||||
if("Copy")
|
||||
to_chat(user, "<span class='notice'>You save the frequency of [src] to the buffer.</span>")
|
||||
to_chat(user, SPAN_NOTICE("You save the frequency of [src] to the buffer."))
|
||||
M.buffer_uid = UID()
|
||||
return TRUE
|
||||
if("Imprint")
|
||||
mod_link.frequency = chosen_control.mod_link.frequency
|
||||
to_chat(user, "<span class='notice'>You imprint the frequency to [src].</span>")
|
||||
to_chat(user, SPAN_NOTICE("You imprint the frequency to [src]."))
|
||||
return TRUE
|
||||
else
|
||||
var/obj/item/clothing/neck/link_scryer/chosen_scryer = linked_thing
|
||||
@@ -230,12 +230,12 @@
|
||||
return FALSE
|
||||
switch(response)
|
||||
if("Copy")
|
||||
to_chat(user, "<span class='notice'>You save the frequency of [src] to the buffer.</span>")
|
||||
to_chat(user, SPAN_NOTICE("You save the frequency of [src] to the buffer."))
|
||||
M.buffer_uid = UID()
|
||||
return TRUE
|
||||
if("Imprint")
|
||||
mod_link.frequency = chosen_scryer.mod_link.frequency
|
||||
to_chat(user, "<span class='notice'>You imprint the frequency to [src].</span>")
|
||||
to_chat(user, SPAN_NOTICE("You imprint the frequency to [src]."))
|
||||
return TRUE
|
||||
|
||||
/obj/item/clothing/neck/link_scryer/get_cell()
|
||||
@@ -251,11 +251,11 @@
|
||||
if(cell || !istype(O, /obj/item/stock_parts/cell))
|
||||
return
|
||||
if(!user.drop_item())
|
||||
to_chat(user, "<span class='warning'>[O] is stuck to your hand!</span>")
|
||||
to_chat(user, SPAN_WARNING("[O] is stuck to your hand!"))
|
||||
return
|
||||
O.forceMove(src)
|
||||
cell = O
|
||||
to_chat(user, "<span class='notice'>You load [O] into [src].</span>")
|
||||
to_chat(user, SPAN_NOTICE("You load [O] into [src]."))
|
||||
|
||||
/obj/item/clothing/neck/link_scryer/update_name(updates)
|
||||
. = ..()
|
||||
@@ -270,7 +270,7 @@
|
||||
. = ..()
|
||||
if(!cell)
|
||||
return
|
||||
to_chat(user, "<span class='notice'>You remove [cell] from [src].</span>")
|
||||
to_chat(user, SPAN_NOTICE("You remove [cell] from [src]."))
|
||||
user.put_in_hands(cell)
|
||||
return
|
||||
|
||||
@@ -416,23 +416,23 @@
|
||||
if(!frequency)
|
||||
return
|
||||
if(!istype(called))
|
||||
to_chat(user, "<span class='warning'>That target is invalid!</span>")
|
||||
to_chat(user, SPAN_WARNING("That target is invalid!"))
|
||||
return
|
||||
var/mob/living/link_user = get_user_callback.Invoke()
|
||||
if(!link_user)
|
||||
return
|
||||
if(HAS_TRAIT(link_user, TRAIT_IN_CALL))
|
||||
to_chat(user, "<span class='warning'>You are already calling someone!</span>")
|
||||
to_chat(user, SPAN_WARNING("You are already calling someone!"))
|
||||
return
|
||||
var/mob/living/link_target = called.get_user_callback.Invoke()
|
||||
if(!link_target)
|
||||
to_chat(user, "<span class='warning'>That target is invalid!</span>")
|
||||
to_chat(user, SPAN_WARNING("That target is invalid!"))
|
||||
return
|
||||
if(HAS_TRAIT(link_target, TRAIT_IN_CALL))
|
||||
to_chat(user, "<span class='warning'>The person you are calling is already in a call!</span>")
|
||||
to_chat(user, SPAN_WARNING("The person you are calling is already in a call!"))
|
||||
return
|
||||
if(!can_call_callback.Invoke() || !called.can_call_callback.Invoke())
|
||||
to_chat(user, "<span class='warning'>You are unable to call at this time!</span>")
|
||||
to_chat(user, SPAN_WARNING("You are unable to call at this time!"))
|
||||
return
|
||||
link_target.playsound_local(get_turf(called.holder), 'sound/weapons/ring.ogg', 15, TRUE)
|
||||
var/atom/movable/screen/alert/modlink_call/alert = link_target.throw_alert("[UID()]_modlink", /atom/movable/screen/alert/modlink_call)
|
||||
@@ -500,7 +500,7 @@
|
||||
|
||||
/proc/call_link(mob/user, datum/mod_link/calling_link)
|
||||
if(!calling_link.frequency)
|
||||
to_chat(user, "<span class='warning'>The frequency isn't set!</span>")
|
||||
to_chat(user, SPAN_WARNING("The frequency isn't set!"))
|
||||
return
|
||||
var/list/callers = list()
|
||||
for(var/id in GLOB.mod_link_ids)
|
||||
@@ -513,7 +513,7 @@
|
||||
continue
|
||||
callers["[link.holder] ([id])"] = id
|
||||
if(!length(callers))
|
||||
to_chat(user, "<span class='notice'>There are no targets on freq [calling_link.frequency].</span>")
|
||||
to_chat(user, SPAN_NOTICE("There are no targets on freq [calling_link.frequency]."))
|
||||
return
|
||||
var/chosen_link = tgui_input_list(user, "Choose ID to call from [calling_link.frequency] frequency", "MODlink", callers)
|
||||
if(!chosen_link)
|
||||
@@ -557,5 +557,5 @@
|
||||
var/datum/mod_link/link_caller = locateUID(link_caller_uid)
|
||||
if(!user || !link_caller)
|
||||
return ..()
|
||||
to_chat(user, "<span class='notice'>[end_message]</span>")
|
||||
to_chat(user, SPAN_NOTICE("[end_message]"))
|
||||
return ..()
|
||||
|
||||
@@ -15,13 +15,13 @@
|
||||
return ..()
|
||||
var/obj/item/mod/control/mod = target
|
||||
if(mod.active || mod.activating)
|
||||
to_chat(user, "<span class='warning'>Deactivate the suit!</span>")
|
||||
to_chat(user, SPAN_WARNING("Deactivate the suit!"))
|
||||
return FINISH_ATTACK
|
||||
if(!istype(mod.theme, compatible_theme))
|
||||
to_chat(user, "<span class='warning'>Theme is not compatible!</span>")
|
||||
to_chat(user, SPAN_WARNING("Theme is not compatible!"))
|
||||
return FINISH_ATTACK
|
||||
mod.set_mod_skin(skin)
|
||||
to_chat(user, "<span class='notice'>You apply the theme to [mod].</span>")
|
||||
to_chat(user, SPAN_NOTICE("You apply the theme to [mod]."))
|
||||
qdel(src)
|
||||
return FINISH_ATTACK
|
||||
|
||||
|
||||
@@ -61,11 +61,11 @@
|
||||
if(.)
|
||||
return
|
||||
if(locked && !allowed(usr))
|
||||
to_chat(usr, "<span class='warning'>Insufficient access!</span>")
|
||||
to_chat(usr, SPAN_WARNING("Insufficient access!"))
|
||||
playsound(src, 'sound/machines/scanbuzz.ogg', 25, TRUE, SILENCED_SOUND_EXTRARANGE)
|
||||
return
|
||||
if(malfunctioning && prob(75))
|
||||
to_chat(usr, "<span class='warning'>ERROR!</span>")
|
||||
to_chat(usr, SPAN_WARNING("ERROR!"))
|
||||
return
|
||||
switch(action)
|
||||
if("call")
|
||||
@@ -75,7 +75,7 @@
|
||||
mod_link.end_call()
|
||||
if("lock")
|
||||
locked = !locked
|
||||
to_chat(usr, "<span class='notice'>ID [locked ? "locked" : "unlocked"].</span>")
|
||||
to_chat(usr, SPAN_NOTICE("ID [locked ? "locked" : "unlocked"]."))
|
||||
if("activate")
|
||||
toggle_activate(usr)
|
||||
if("select")
|
||||
|
||||
@@ -87,7 +87,7 @@
|
||||
/obj/item/mod/module/proc/on_select()
|
||||
if(((!mod.active || mod.activating) && !(allow_flags & MODULE_ALLOW_INACTIVE)) || module_type == MODULE_PASSIVE)
|
||||
if(mod.wearer)
|
||||
to_chat(mod.wearer, "<span class='warning'>Module is not active!</span>")
|
||||
to_chat(mod.wearer, SPAN_WARNING("Module is not active!"))
|
||||
return
|
||||
if(module_type != MODULE_USABLE)
|
||||
if(active)
|
||||
@@ -101,10 +101,10 @@
|
||||
/// Called when the module is activated
|
||||
/obj/item/mod/module/proc/on_activation()
|
||||
if(!COOLDOWN_FINISHED(src, cooldown_timer))
|
||||
to_chat(mod.wearer, "<span class='warning'>Module is on cooldown!</span>")
|
||||
to_chat(mod.wearer, SPAN_WARNING("Module is on cooldown!"))
|
||||
return FALSE
|
||||
if(!mod.active || mod.activating || !mod.get_charge())
|
||||
to_chat(mod.wearer, "<span class='warning'>Module is unpowered!</span>")
|
||||
to_chat(mod.wearer, SPAN_WARNING("Module is unpowered!"))
|
||||
return FALSE
|
||||
if(SEND_SIGNAL(src, COMSIG_MODULE_TRIGGERED, mod.wearer) & MOD_ABORT_USE)
|
||||
return FALSE
|
||||
@@ -114,11 +114,11 @@
|
||||
mod.selected_module = src
|
||||
if(device)
|
||||
if(mod.wearer.put_in_hands(device))
|
||||
to_chat(mod.wearer, "<span class='notice'>[device] extended.</span>")
|
||||
to_chat(mod.wearer, SPAN_NOTICE("[device] extended."))
|
||||
RegisterSignal(mod.wearer, COMSIG_ATOM_EXITED, PROC_REF(on_exit))
|
||||
RegisterSignal(mod.wearer, COMSIG_MOB_WILLINGLY_DROP, PROC_REF(dropkey))
|
||||
else
|
||||
to_chat(mod.wearer, "<span class='warning'>You cannot extend [device]!</span>")
|
||||
to_chat(mod.wearer, SPAN_WARNING("You cannot extend [device]!"))
|
||||
if(device.loc != src)
|
||||
device.forceMove(src)
|
||||
return FALSE
|
||||
@@ -127,10 +127,10 @@
|
||||
if(!mod.wearer || !(mod.wearer.client.prefs.toggles2 & PREFTOGGLE_2_MOD_ACTIVATION_METHOD))
|
||||
used_button = "Alt Click"
|
||||
update_signal(used_button)
|
||||
to_chat(mod.wearer, "<span class='notice'>[src] activated, [used_button] to use.</span>")
|
||||
to_chat(mod.wearer, SPAN_NOTICE("[src] activated, [used_button] to use."))
|
||||
else
|
||||
COOLDOWN_START(src, cooldown_timer, cooldown_time) //We don't want to put active modules on cooldown when selected
|
||||
to_chat(mod.wearer, "<span class='notice'>[src] activated.</span>")
|
||||
to_chat(mod.wearer, SPAN_NOTICE("[src] activated."))
|
||||
active = TRUE
|
||||
mod.update_mod_overlays()
|
||||
//mod.wearer.update_clothing(mod.slot_flags)
|
||||
@@ -143,9 +143,9 @@
|
||||
if(module_type == MODULE_ACTIVE)
|
||||
mod.selected_module = null
|
||||
if(display_message && device)
|
||||
to_chat(mod.wearer, "<span class='notice'>[device] retracted.</span>")
|
||||
to_chat(mod.wearer, SPAN_NOTICE("[device] retracted."))
|
||||
else if(display_message)
|
||||
to_chat(mod.wearer, "<span class='notice'>[src] deactivated.</span>")
|
||||
to_chat(mod.wearer, SPAN_NOTICE("[src] deactivated."))
|
||||
|
||||
if(device)
|
||||
mod.wearer.transfer_item_to(device, src, force = TRUE)
|
||||
@@ -155,7 +155,7 @@
|
||||
UnregisterSignal(mod.wearer, used_signal)
|
||||
used_signal = null
|
||||
else if(display_message)
|
||||
to_chat(mod.wearer, "<span class='notice'>[src] deactivated.</span>")
|
||||
to_chat(mod.wearer, SPAN_NOTICE("[src] deactivated."))
|
||||
//mod.wearer.update_clothing(mod.slot_flags)
|
||||
SEND_SIGNAL(src, COMSIG_MODULE_DEACTIVATED, mod.wearer)
|
||||
mod.update_mod_overlays()
|
||||
@@ -164,10 +164,10 @@
|
||||
/// Called when the module is used
|
||||
/obj/item/mod/module/proc/on_use()
|
||||
if(!COOLDOWN_FINISHED(src, cooldown_timer))
|
||||
to_chat(mod.wearer, "<span class='warning'>Module is on cooldown!</span>")
|
||||
to_chat(mod.wearer, SPAN_WARNING("Module is on cooldown!"))
|
||||
return FALSE
|
||||
if(!check_power(use_power_cost))
|
||||
to_chat(mod.wearer, "<span class='warning'>Module costs too much power to use!</span>")
|
||||
to_chat(mod.wearer, SPAN_WARNING("Module costs too much power to use!"))
|
||||
return FALSE
|
||||
if(SEND_SIGNAL(src, COMSIG_MODULE_TRIGGERED, mod.wearer) & MOD_ABORT_USE)
|
||||
return FALSE
|
||||
@@ -383,7 +383,7 @@
|
||||
|
||||
/obj/item/mod/module/anomaly_locked/on_select()
|
||||
if(!core)
|
||||
to_chat(mod.wearer, "<span class='warning'>ERROR. NO CORE INSTALLED!</span>")
|
||||
to_chat(mod.wearer, SPAN_WARNING("ERROR. NO CORE INSTALLED!"))
|
||||
return
|
||||
return ..()
|
||||
|
||||
@@ -400,12 +400,12 @@
|
||||
/obj/item/mod/module/anomaly_locked/attackby__legacy__attackchain(obj/item/item, mob/living/user, params)
|
||||
if(item.type in accepted_anomalies)
|
||||
if(core)
|
||||
to_chat(user, "<span class='warning'>A core is already installed!</span>")
|
||||
to_chat(user, SPAN_WARNING("A core is already installed!"))
|
||||
return
|
||||
if(!user.drop_item())
|
||||
return
|
||||
core = item
|
||||
to_chat(user, "<span class='notice'>You install [item].</span>")
|
||||
to_chat(user, SPAN_NOTICE("You install [item]."))
|
||||
playsound(src, 'sound/machines/click.ogg', 30, TRUE)
|
||||
update_icon(UPDATE_ICON_STATE)
|
||||
core.forceMove(src)
|
||||
@@ -415,11 +415,11 @@
|
||||
/obj/item/mod/module/anomaly_locked/screwdriver_act(mob/living/user, obj/item/tool)
|
||||
. = ..()
|
||||
if(!core)
|
||||
to_chat(user, "<span class='warning'>A core is not installed!</span>")
|
||||
to_chat(user, SPAN_WARNING("A core is not installed!"))
|
||||
return
|
||||
if(!do_after(user, 3 SECONDS, target = src))
|
||||
return
|
||||
to_chat(user, "<span class='notice'>You remove [core].</span>")
|
||||
to_chat(user, SPAN_NOTICE("You remove [core]."))
|
||||
core.forceMove(drop_location())
|
||||
if(Adjacent(user) && !issilicon(user))
|
||||
user.put_in_hands(core)
|
||||
|
||||
@@ -66,10 +66,10 @@
|
||||
clear_grab(playsound = FALSE)
|
||||
return
|
||||
if(!range_check(target))
|
||||
to_chat(mod.wearer, "<span class='warning'>[target] is too far away!</span>")
|
||||
to_chat(mod.wearer, SPAN_WARNING("[target] is too far away!"))
|
||||
return
|
||||
if(!can_grab(target))
|
||||
to_chat(mod.wearer, "<span class='warning'>[target] can not be grabbed!</span>")
|
||||
to_chat(mod.wearer, SPAN_WARNING("[target] can not be grabbed!"))
|
||||
return
|
||||
drain_power(use_power_cost)
|
||||
grabbed_atom = target
|
||||
@@ -99,7 +99,7 @@
|
||||
clear_grab()
|
||||
return
|
||||
if(!range_check(grabbed_atom))
|
||||
to_chat(mod.wearer, "<span class='warning'>[grabbed_atom] is too far away!</span>")
|
||||
to_chat(mod.wearer, SPAN_WARNING("[grabbed_atom] is too far away!"))
|
||||
clear_grab()
|
||||
return
|
||||
beam.forceMove(get_turf(mod.wearer))
|
||||
|
||||
@@ -27,9 +27,9 @@
|
||||
/obj/item/mod/module/pathfinder/examine(mob/user)
|
||||
. = ..()
|
||||
if(implant)
|
||||
. += "<span class='notice'>Use it on a human to implant them.</span>"
|
||||
. += SPAN_NOTICE("Use it on a human to implant them.")
|
||||
else
|
||||
. += "<span class='warning'>The implant is missing.</span>"
|
||||
. += SPAN_WARNING("The implant is missing.")
|
||||
|
||||
/obj/item/mod/module/pathfinder/attack__legacy__attackchain(mob/living/target, mob/living/user, params)
|
||||
if(!ishuman(target) || !implant)
|
||||
@@ -37,12 +37,12 @@
|
||||
if(!do_after(user, 1.5 SECONDS, target = target))
|
||||
return
|
||||
if(!implant.implant(target, user))
|
||||
to_chat(user, "<span class='warning'>Unable to implant [target]!</span>")
|
||||
to_chat(user, SPAN_WARNING("Unable to implant [target]!"))
|
||||
return
|
||||
if(target == user)
|
||||
to_chat(user, "<span class='notice'>You implant yourself with [implant].</span>")
|
||||
to_chat(user, SPAN_NOTICE("You implant yourself with [implant]."))
|
||||
else
|
||||
target.visible_message("<span class='notice'>[user] implants [target].</span>", "<span class='notice'>[user] implants you with [implant].</span>")
|
||||
target.visible_message(SPAN_NOTICE("[user] implants [target]."), SPAN_NOTICE("[user] implants you with [implant]."))
|
||||
playsound(src, 'sound/effects/spray.ogg', 30, TRUE, -6)
|
||||
icon_state = "pathfinder_empty"
|
||||
implant = null
|
||||
@@ -94,32 +94,32 @@
|
||||
/obj/item/bio_chip/mod/proc/recall()
|
||||
target = get_turf(imp_in)
|
||||
if(!module?.mod)
|
||||
to_chat(imp_in, "<span class='warning'>Module is not attached to a suit!</span>")
|
||||
to_chat(imp_in, SPAN_WARNING("Module is not attached to a suit!"))
|
||||
return FALSE
|
||||
if(module.mod.open)
|
||||
to_chat(imp_in, "<span class='warning'>Suit is open!</span>")
|
||||
to_chat(imp_in, SPAN_WARNING("Suit is open!"))
|
||||
return FALSE
|
||||
if(length(path))
|
||||
to_chat(imp_in, "<span class='warning'>Suit is already on the way!</span>")
|
||||
to_chat(imp_in, SPAN_WARNING("Suit is already on the way!"))
|
||||
return FALSE
|
||||
if(ismob(get_atom_on_turf(module.mod)))
|
||||
to_chat(imp_in, "<span class='warning'>Suit is being worn!</span>")
|
||||
to_chat(imp_in, SPAN_WARNING("Suit is being worn!"))
|
||||
return FALSE
|
||||
if(module.mod.loc != get_turf(module.mod))
|
||||
to_chat(imp_in, "<span class='warning'>Suit contained inside of something!</span>")
|
||||
to_chat(imp_in, SPAN_WARNING("Suit contained inside of something!"))
|
||||
return FALSE
|
||||
if(module.z != z || get_dist(imp_in, module.mod) > 150)
|
||||
to_chat(imp_in, "<span class='warning'>Suit is too far away!</span>")
|
||||
to_chat(imp_in, SPAN_WARNING("Suit is too far away!"))
|
||||
return FALSE
|
||||
if(!ishuman(imp_in)) //Need to be specific
|
||||
to_chat(imp_in, "<span class='warning'>The implant does not recognize you as a known species!</span>")
|
||||
to_chat(imp_in, SPAN_WARNING("The implant does not recognize you as a known species!"))
|
||||
return FALSE
|
||||
var/mob/living/carbon/human/H = imp_in
|
||||
set_path(get_path_to(module.mod, target, 150, access = H?.wear_id.GetAccess(), simulated_only = FALSE)) //Yes, science proves jetpacks work in space. More at 11.
|
||||
if(!length(path)) //Cannot reach target. Give up and announce the issue.
|
||||
to_chat(H, "<span class='warning'>No viable path found!</span>")
|
||||
to_chat(H, SPAN_WARNING("No viable path found!"))
|
||||
return FALSE
|
||||
to_chat(H, "<span class='notice'>Suit on route!</span>")
|
||||
to_chat(H, SPAN_NOTICE("Suit on route!"))
|
||||
animate(module.mod, 0.2 SECONDS, pixel_x = 0, pixel_y = 0)
|
||||
module.mod.add_overlay(jet_icon)
|
||||
RegisterSignal(module.mod, COMSIG_MOVABLE_MOVED, PROC_REF(on_move))
|
||||
@@ -138,7 +138,7 @@
|
||||
module.mod.transform = matrix()
|
||||
UnregisterSignal(module.mod, COMSIG_MOVABLE_MOVED)
|
||||
if(!successful)
|
||||
to_chat(imp_in, "<span class='warning'>Lost connection to suit!</span>")
|
||||
to_chat(imp_in, SPAN_WARNING("Lost connection to suit!"))
|
||||
path = list() //Stopping endless end_recall with luck.
|
||||
|
||||
/obj/item/bio_chip/mod/proc/on_move(atom/movable/source, atom/old_loc, dir, forced)
|
||||
@@ -231,7 +231,7 @@
|
||||
return
|
||||
var/obj/item/bio_chip/mod/implant = target
|
||||
if(!COOLDOWN_FINISHED(src, recall_cooldown))
|
||||
to_chat(usr, "<span class='warning'>On cooldown!</span>")
|
||||
to_chat(usr, SPAN_WARNING("On cooldown!"))
|
||||
return
|
||||
if(implant.recall())
|
||||
COOLDOWN_START(src, recall_cooldown, 15 SECONDS)
|
||||
|
||||
@@ -53,7 +53,7 @@
|
||||
if(!.)
|
||||
return
|
||||
playsound(src, 'sound/mecha/mechmove03.ogg', 25, TRUE, SHORT_RANGE_SOUND_EXTRARANGE)
|
||||
to_chat(mod.wearer, "<span class='notice'>Armor deployed, EVA disabled, speed increased.</span>")
|
||||
to_chat(mod.wearer, SPAN_NOTICE("Armor deployed, EVA disabled, speed increased."))
|
||||
actual_speed_added = max(0, min(mod.slowdown_active, speed_added / 5))
|
||||
var/list/parts = mod.mod_parts + mod
|
||||
for(var/obj/item/part as anything in parts)
|
||||
@@ -72,7 +72,7 @@
|
||||
return
|
||||
if(!deleting)
|
||||
playsound(src, 'sound/mecha/mechmove03.ogg', 25, TRUE, SHORT_RANGE_SOUND_EXTRARANGE)
|
||||
to_chat(mod.wearer, "<span class='notice'>Armor retracted, EVA enabled, speed decreased.</span>")
|
||||
to_chat(mod.wearer, SPAN_NOTICE("Armor retracted, EVA enabled, speed decreased."))
|
||||
var/list/parts = mod.mod_parts + mod
|
||||
for(var/obj/item/part as anything in parts)
|
||||
part.armor = part.armor.detachArmor(armor_mod_2.armor)
|
||||
@@ -193,7 +193,7 @@
|
||||
return
|
||||
if(mod.wearer.buckled)
|
||||
return
|
||||
mod.wearer.visible_message("<span class='warning'>[mod.wearer] starts charging a kick!</span>")
|
||||
mod.wearer.visible_message(SPAN_WARNING("[mod.wearer] starts charging a kick!"))
|
||||
playsound(src, 'sound/items/modsuit/loader_charge.ogg', 75, TRUE)
|
||||
animate(mod.wearer, 0.3 SECONDS, pixel_z = 16, flags = ANIMATION_RELATIVE, easing = SINE_EASING|EASE_OUT)
|
||||
addtimer(CALLBACK(mod.wearer, TYPE_PROC_REF(/atom, SpinAnimation), 3, 2), 0.3 SECONDS)
|
||||
@@ -227,7 +227,7 @@
|
||||
living_target.apply_damage(damage, BRUTE, mod.wearer.zone_selected)
|
||||
add_attack_logs(mod.wearer, target, "[target] was charged by [mod.wearer]'s [src]", ATKLOG_ALMOSTALL)
|
||||
living_target.KnockDown(knockdown_time)
|
||||
mod.wearer.visible_message("<span class='danger'>[mod.wearer] crashes into [target], knocking them over!</span>", "<span class='userdanger'>You violently crash into [target]!</span>")
|
||||
mod.wearer.visible_message(SPAN_DANGER("[mod.wearer] crashes into [target], knocking them over!"), SPAN_USERDANGER("You violently crash into [target]!"))
|
||||
else
|
||||
return
|
||||
mod.wearer.do_attack_animation(target, ATTACK_EFFECT_SMASH)
|
||||
@@ -305,7 +305,7 @@
|
||||
/obj/item/mod/module/stealth/proc/unstealth(datum/source)
|
||||
SIGNAL_HANDLER
|
||||
|
||||
to_chat(mod.wearer, "<span class='warning'>[src] gets discharged from contact!</span>")
|
||||
to_chat(mod.wearer, SPAN_WARNING("[src] gets discharged from contact!"))
|
||||
do_sparks(2, TRUE, src)
|
||||
drain_power(use_power_cost)
|
||||
COOLDOWN_START(src, cooldown_timer, cooldown_time) //Put it on cooldown.
|
||||
@@ -403,7 +403,7 @@
|
||||
camera = new /obj/machinery/camera/portable(src, FALSE)
|
||||
camera.network = list("ERT")
|
||||
camera.c_tag = wearer.name
|
||||
to_chat(wearer, "<span class='notice'>User scanned as [camera.c_tag]. Camera activated.</span>")
|
||||
to_chat(wearer, SPAN_NOTICE("User scanned as [camera.c_tag]. Camera activated."))
|
||||
|
||||
/obj/item/mod/module/ert_camera/Destroy()
|
||||
QDEL_NULL(camera)
|
||||
@@ -438,7 +438,7 @@
|
||||
|
||||
/obj/item/mod/module/chameleon/on_use()
|
||||
if(mod.active || mod.activating)
|
||||
to_chat(mod.wearer, "<span class='warning'>Your suit is already active!</span>")
|
||||
to_chat(mod.wearer, SPAN_WARNING("Your suit is already active!"))
|
||||
return
|
||||
. = ..()
|
||||
if(!.)
|
||||
|
||||
@@ -107,7 +107,7 @@
|
||||
|
||||
/obj/item/mod/module/tether/on_use()
|
||||
if(has_gravity(get_turf(src)))
|
||||
to_chat(mod.wearer, "<span class='warning'>Too much gravity to use the tether!</span>")
|
||||
to_chat(mod.wearer, SPAN_WARNING("Too much gravity to use the tether!"))
|
||||
playsound(src, 'sound/weapons/gun_interactions/dry_fire.ogg', 25, TRUE)
|
||||
return FALSE
|
||||
return ..()
|
||||
|
||||
@@ -231,7 +231,7 @@
|
||||
|
||||
/obj/item/mod/module/flashlight/on_activation()
|
||||
if(!COOLDOWN_FINISHED(src, activation_cooldown))
|
||||
to_chat(mod.wearer, "<span class='warning'>[src] isn't ready after being shut down!</span>")
|
||||
to_chat(mod.wearer, SPAN_WARNING("[src] isn't ready after being shut down!"))
|
||||
return
|
||||
. = ..()
|
||||
if(!.)
|
||||
@@ -264,7 +264,7 @@
|
||||
if(isnull(value))
|
||||
return
|
||||
if(is_color_dark(value, 50))
|
||||
to_chat(mod.wearer, ("<span class='warning'>That is too dark</span>"))
|
||||
to_chat(mod.wearer, (SPAN_WARNING("That is too dark")))
|
||||
return
|
||||
light_color = value
|
||||
mod.wearer.regenerate_icons()
|
||||
@@ -279,7 +279,7 @@
|
||||
on_deactivation(FALSE)
|
||||
COOLDOWN_START(src, activation_cooldown, 20 SECONDS)
|
||||
|
||||
to_chat(mod.wearer, "<span class='warning'>Your [name] shuts off!</span>")
|
||||
to_chat(mod.wearer, SPAN_WARNING("Your [name] shuts off!"))
|
||||
|
||||
///Dispenser - Dispenses an item after a time passes.
|
||||
/obj/item/mod/module/dispenser
|
||||
|
||||
@@ -42,10 +42,10 @@
|
||||
return
|
||||
. = TRUE
|
||||
if(dont_let_you_come_back)
|
||||
to_chat(user, "<span class='notice'>You disable the retraction blocking systems.</span>")
|
||||
to_chat(user, SPAN_NOTICE("You disable the retraction blocking systems."))
|
||||
dont_let_you_come_back = FALSE
|
||||
return
|
||||
to_chat(user, "<span class='notice'>You enable the retraction blocking systems, which will block people from retracting the modsuit for 10 seconds.</span>")
|
||||
to_chat(user, SPAN_NOTICE("You enable the retraction blocking systems, which will block people from retracting the modsuit for 10 seconds."))
|
||||
dont_let_you_come_back = TRUE
|
||||
|
||||
|
||||
@@ -53,7 +53,7 @@
|
||||
/obj/item/mod/module/springlock/proc/on_wearer_exposed(atom/source, list/reagents, datum/reagents/source_reagents, methods, volume_modifier, show_message)
|
||||
SIGNAL_HANDLER
|
||||
remove_retraction_block() //No double signals
|
||||
to_chat(mod.wearer, "<span class='danger'>[src] makes an ominous click sound...</span>")
|
||||
to_chat(mod.wearer, SPAN_DANGER("[src] makes an ominous click sound..."))
|
||||
incoming_jumpscare = TRUE
|
||||
playsound(src, 'sound/items/modsuit/springlock.ogg', 75, TRUE)
|
||||
addtimer(CALLBACK(src, PROC_REF(snap_shut)), rand(3 SECONDS, 5 SECONDS))
|
||||
@@ -63,7 +63,7 @@
|
||||
/obj/item/mod/module/springlock/proc/on_activate_spring_block(datum/source, user)
|
||||
SIGNAL_HANDLER
|
||||
|
||||
to_chat(mod.wearer, "<span class='userdanger'>The springlocks aren't responding...?</span>")
|
||||
to_chat(mod.wearer, SPAN_USERDANGER("The springlocks aren't responding...?"))
|
||||
return MOD_CANCEL_ACTIVATE
|
||||
|
||||
///Removes the retraction blocker from the springlock so long as they are not about to be killed
|
||||
@@ -76,7 +76,7 @@
|
||||
UnregisterSignal(mod, COMSIG_MOD_ACTIVATE)
|
||||
if(!mod.wearer) //while there is a guaranteed user when on_wearer_exposed() fires, that isn't the same case for this proc
|
||||
return
|
||||
mod.wearer.visible_message("<span class='danger'>[src] inside [mod.wearer]'s [mod.name] snaps shut, mutilating the user inside!</span>", "<span class='biggerdanger'><b>*SNAP*</b></span>")
|
||||
mod.wearer.visible_message(SPAN_DANGER("[src] inside [mod.wearer]'s [mod.name] snaps shut, mutilating the user inside!"), SPAN_BIGGERDANGER("<b>*SNAP*</b>"))
|
||||
mod.wearer.emote("scream")
|
||||
playsound(mod.wearer, 'sound/effects/snap.ogg', 75, TRUE, frequency = 0.5)
|
||||
playsound(mod.wearer, 'sound/effects/splat.ogg', 50, TRUE, frequency = 0.5)
|
||||
|
||||
@@ -79,7 +79,7 @@
|
||||
/obj/item/mod_defib/proc/on_cooldown_expire(obj/item/defib)
|
||||
SIGNAL_HANDLER // COMSIG_DEFIB_READY
|
||||
on_cooldown = FALSE
|
||||
visible_message("<span class='notice'>[src] beeps: Defibrillation unit ready.</span>")
|
||||
visible_message(SPAN_NOTICE("[src] beeps: Defibrillation unit ready."))
|
||||
playsound(get_turf(src), 'sound/machines/defib_ready.ogg', 50, FALSE)
|
||||
update_icon(UPDATE_ICON_STATE)
|
||||
|
||||
|
||||
@@ -57,7 +57,7 @@
|
||||
distance = dy
|
||||
if(distance > explosion_detection_dist)
|
||||
return
|
||||
to_chat(mod.wearer, "<span class='notice'>Explosion detected! Epicenter: [devastation_range], Outer: [heavy_impact_range], Shock: [light_impact_range]</span>")
|
||||
to_chat(mod.wearer, SPAN_NOTICE("Explosion detected! Epicenter: [devastation_range], Outer: [heavy_impact_range], Shock: [light_impact_range]"))
|
||||
|
||||
///Teleporter - Lets the user teleport to a nearby location.
|
||||
/obj/item/mod/module/anomaly_locked/teleporter
|
||||
|
||||
@@ -24,20 +24,20 @@
|
||||
if(!holstered)
|
||||
var/obj/item/gun/holding = mod.wearer.get_active_hand()
|
||||
if(!holding)
|
||||
to_chat(mod.wearer, "<span class='warning'>Nothing to holster!</span>")
|
||||
to_chat(mod.wearer, SPAN_WARNING("Nothing to holster!"))
|
||||
return
|
||||
if(!istype(holding) || holding.w_class > WEIGHT_CLASS_NORMAL) //god no holstering a BSG / combat shotgun
|
||||
to_chat(mod.wearer, "<span class='warning'>It's too big to fit!</span>")
|
||||
to_chat(mod.wearer, SPAN_WARNING("It's too big to fit!"))
|
||||
return
|
||||
holstered = holding
|
||||
mod.wearer.visible_message("<span class='notice'>[mod.wearer] holsters [holstered].</span>", "<span class='notice'>You holster [holstered].</span>")
|
||||
mod.wearer.visible_message(SPAN_NOTICE("[mod.wearer] holsters [holstered]."), SPAN_NOTICE("You holster [holstered]."))
|
||||
mod.wearer.unequip(mod.wearer.get_active_hand())
|
||||
holstered.forceMove(src)
|
||||
else if(mod.wearer.put_in_active_hand(holstered))
|
||||
mod.wearer.visible_message("<span class='warning'>[mod.wearer] draws [msg], ready to shoot!</span>", \
|
||||
"<span class='warning'>You draw [msg], ready to shoot!</span>")
|
||||
mod.wearer.visible_message(SPAN_WARNING("[mod.wearer] draws [msg], ready to shoot!"), \
|
||||
SPAN_WARNING("You draw [msg], ready to shoot!"))
|
||||
else
|
||||
to_chat(mod.wearer, "<span class='warning'>You need an empty hand to draw [holstered]!</span>")
|
||||
to_chat(mod.wearer, SPAN_WARNING("You need an empty hand to draw [holstered]!"))
|
||||
|
||||
/obj/item/mod/module/holster/on_uninstall(deleting = FALSE)
|
||||
if(holstered)
|
||||
@@ -128,7 +128,7 @@
|
||||
new /obj/effect/temp_visual/sonar_ping(mod.wearer.loc, mod.wearer, creature)
|
||||
creatures_detected++
|
||||
playsound(mod.wearer, 'sound/effects/ping_hit.ogg', vol = 75, vary = TRUE, extrarange = 9) // Should be audible for the radius of the sonar
|
||||
to_chat(mod.wearer, ("<span class='notice'>You slam your fist into the ground, sending out a sonic wave that detects [creatures_detected] living beings nearby!</span>"))
|
||||
to_chat(mod.wearer, (SPAN_NOTICE("You slam your fist into the ground, sending out a sonic wave that detects [creatures_detected] living beings nearby!")))
|
||||
|
||||
/obj/effect/temp_visual/sonar_ping
|
||||
duration = 3 SECONDS
|
||||
|
||||
@@ -74,7 +74,7 @@
|
||||
dropped_crate.forceMove(target_turf)
|
||||
drain_power(use_power_cost)
|
||||
else
|
||||
to_chat(mod.wearer, "<span class='warning'>Invalid target!</span>")
|
||||
to_chat(mod.wearer, SPAN_WARNING("Invalid target!"))
|
||||
|
||||
/obj/item/mod/module/clamp/on_suit_deactivation(deleting = FALSE)
|
||||
if(deleting)
|
||||
@@ -85,12 +85,12 @@
|
||||
|
||||
/obj/item/mod/module/clamp/proc/check_crate_pickup(atom/movable/target)
|
||||
if(length(stored_crates) >= max_crates)
|
||||
to_chat(mod.wearer, "<span class='warning'>Too many crates!</span>")
|
||||
to_chat(mod.wearer, SPAN_WARNING("Too many crates!"))
|
||||
return FALSE
|
||||
for(var/mob/living/mob in target.client_mobs_in_contents)
|
||||
if(mob.mob_size < MOB_SIZE_HUMAN)
|
||||
continue
|
||||
to_chat(mod.wearer, "<span class='warning'>Too heavy!</span>")
|
||||
to_chat(mod.wearer, SPAN_WARNING("Too heavy!"))
|
||||
return FALSE
|
||||
return TRUE
|
||||
|
||||
@@ -223,7 +223,7 @@
|
||||
var/atom/movable/plane_master_controller/pm_controller = mod.wearer.hud_used.plane_master_controllers[PLANE_MASTERS_GAME]
|
||||
for(var/key in pm_controller.controlled_planes)
|
||||
animate(pm_controller.controlled_planes[key], launch_time, transform = matrix(1.25, MATRIX_SCALE))
|
||||
mod.wearer.visible_message("<span class='warning'>[mod.wearer] starts whirring!</span>")
|
||||
mod.wearer.visible_message(SPAN_WARNING("[mod.wearer] starts whirring!"))
|
||||
playsound(src, 'sound/items/modsuit/loader_charge.ogg', 75, TRUE)
|
||||
mod.wearer.add_overlay(charge_up_overlay)
|
||||
var/power = launch_time
|
||||
@@ -268,7 +268,7 @@
|
||||
locker.throw_at(target, range = 7, speed = 4, thrower = mod.wearer)
|
||||
return
|
||||
if(!istype(target, /obj/structure/closet) || !(target in view(mod.wearer)))
|
||||
to_chat(mod.wearer, "<span class='warning'>Invalid target!</span>")
|
||||
to_chat(mod.wearer, SPAN_WARNING("Invalid target!"))
|
||||
return
|
||||
var/obj/structure/closet/locker = target
|
||||
if(locker.anchored || locker.move_resist >= MOVE_FORCE_OVERPOWERING)
|
||||
@@ -379,7 +379,7 @@
|
||||
var/list/parts = mod.mod_parts + mod
|
||||
var/speed_up = FALSE
|
||||
if(traveled_tiles >= max_traveled_tiles)
|
||||
to_chat(mod.wearer, "<span class='notice'>You are fully covered in ash!</span>")
|
||||
to_chat(mod.wearer, SPAN_NOTICE("You are fully covered in ash!"))
|
||||
mod.wearer.color = list(1,0,0,0, 0,1,0,0, 0,0,1,0, 0,0,0,3) //make them super light
|
||||
animate(mod.wearer, 1 SECONDS, color = null, flags = ANIMATION_PARALLEL)
|
||||
playsound(src, 'sound/effects/sparks1.ogg', 100, TRUE)
|
||||
@@ -408,7 +408,7 @@
|
||||
if(speed_up)
|
||||
part.slowdown += actual_speed_added
|
||||
if(traveled_tiles <= 0)
|
||||
to_chat(mod.wearer, "<span class='warning'>You have ran out of ash!</span>")
|
||||
to_chat(mod.wearer, SPAN_WARNING("You have ran out of ash!"))
|
||||
mod.wearer.weather_immunities -= "ash"
|
||||
|
||||
/obj/effect/temp_visual/light_ash
|
||||
@@ -434,7 +434,7 @@
|
||||
|
||||
/obj/item/mod/module/sphere_transform/on_activation()
|
||||
if(!has_gravity(get_turf(src)))
|
||||
to_chat(mod.wearer, "<span class='warning'>ERROR, NO GRAVITY!</span>")
|
||||
to_chat(mod.wearer, SPAN_WARNING("ERROR, NO GRAVITY!"))
|
||||
return FALSE
|
||||
. = ..()
|
||||
if(!.)
|
||||
@@ -465,7 +465,7 @@
|
||||
|
||||
/obj/item/mod/module/sphere_transform/on_use()
|
||||
if(!lavaland_equipment_pressure_check(get_turf(src)))
|
||||
to_chat(mod.wearer, "<span class='warning'>ERROR, OVER PRESSURE!</span>")
|
||||
to_chat(mod.wearer, SPAN_WARNING("ERROR, OVER PRESSURE!"))
|
||||
playsound(src, 'sound/weapons/gun_interactions/dry_fire.ogg', 25, TRUE)
|
||||
return FALSE
|
||||
return ..()
|
||||
@@ -550,7 +550,7 @@
|
||||
addtimer(CALLBACK(src, PROC_REF(boom), firer), explosion_time)
|
||||
|
||||
/obj/structure/mining_bomb/proc/boom(atom/movable/firer)
|
||||
visible_message("<span class='danger'>[src] explodes!</span>")
|
||||
visible_message(SPAN_DANGER("[src] explodes!"))
|
||||
playsound(src, 'sound/magic/magic_missile.ogg', 200, vary = TRUE)
|
||||
for(var/turf/T in circleviewturfs(src, drill_power))
|
||||
if(ismineralturf(T))
|
||||
|
||||
Reference in New Issue
Block a user