mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-21 19:17:50 +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:
@@ -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