mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
[MIRROR] refactors most spans (#9139)
Co-authored-by: Heroman3003 <31296024+Heroman3003@users.noreply.github.com> Co-authored-by: Kashargul <KashL@t-online.de>
This commit is contained in:
@@ -118,16 +118,16 @@
|
||||
else
|
||||
var/obj/effect/overmap/visitable/V = choices[choice]
|
||||
if(occupant != this_occupant || this_x != x || this_y != y || this_z != z || get_dist(V,our_ship) > 1) //Sanity after user input
|
||||
to_chat(occupant, "<span class='warning'>You or they appear to have moved!</span>")
|
||||
to_chat(occupant, span_warning("You or they appear to have moved!"))
|
||||
return
|
||||
var/list/levels = V.get_space_zlevels()
|
||||
if(!levels.len)
|
||||
to_chat(occupant, "<span class='warning'>You don't appear to be able to get there from here!</span>")
|
||||
to_chat(occupant, span_warning("You don't appear to be able to get there from here!"))
|
||||
return
|
||||
new_z = pick(levels)
|
||||
var/turf/destination = locate(new_x, new_y, new_z)
|
||||
if(!destination || destination.density)
|
||||
to_chat(occupant, "<span class='warning'>You don't appear to be able to get there from here! Is it blocked?</span>")
|
||||
to_chat(occupant, span_warning("You don't appear to be able to get there from here! Is it blocked?"))
|
||||
return
|
||||
else
|
||||
forceMove(destination)
|
||||
@@ -138,7 +138,7 @@
|
||||
if (href_list["toggle_stabilization"])
|
||||
stabilization_enabled = !stabilization_enabled
|
||||
send_byjax(src.occupant,"exosuit.browser","stabilization_command","[stabilization_enabled?"Dis":"En"]able thruster stabilization")
|
||||
src.occupant_message("<span class='notice'>Thruster stabilization [stabilization_enabled? "enabled" : "disabled"].</span>")
|
||||
src.occupant_message(span_notice("Thruster stabilization [stabilization_enabled? "enabled" : "disabled"]."))
|
||||
return
|
||||
|
||||
/obj/mecha/combat/fighter/get_commands()
|
||||
@@ -450,4 +450,4 @@
|
||||
nearby planets to seek cover."
|
||||
value = CATALOGUER_REWARD_MEDIUM
|
||||
|
||||
#undef NOGRAV_FIGHTER_DAMAGE
|
||||
#undef NOGRAV_FIGHTER_DAMAGE
|
||||
|
||||
@@ -117,18 +117,18 @@
|
||||
phasing = FALSE
|
||||
SSradiation.radiate(get_turf(src), 30)
|
||||
log_append_to_last("WARNING: BLUESPACE DRIVE INSTABILITY DETECTED. DISABLING DRIVE.",1)
|
||||
visible_message("<span class='alien'>The [src.name] appears to flicker, before its silhouette stabilizes!</span>")
|
||||
visible_message(span_alien("The [src.name] appears to flicker, before its silhouette stabilizes!"))
|
||||
return
|
||||
|
||||
/obj/mecha/combat/phazon/janus/dynbulletdamage(var/obj/item/projectile/Proj)
|
||||
if((Proj.damage && !Proj.nodamage) && !istype(Proj, /obj/item/projectile/beam) && prob(max(1, 33 - round(Proj.damage / 4))))
|
||||
src.occupant_message("<span class='alien'>The armor absorbs the incoming projectile's force, negating it!</span>")
|
||||
src.visible_message("<span class='alien'>The [src.name] absorbs the incoming projectile's force, negating it!</span>")
|
||||
src.occupant_message(span_alien("The armor absorbs the incoming projectile's force, negating it!"))
|
||||
src.visible_message(span_alien("The [src.name] absorbs the incoming projectile's force, negating it!"))
|
||||
src.log_append_to_last("Armor negated.")
|
||||
return
|
||||
else if((Proj.damage && !Proj.nodamage) && istype(Proj, /obj/item/projectile/beam) && prob(max(1, (50 - round((Proj.damage / 2) * inherent_damage_absorption["laser"])) * (1 - (Proj.armor_penetration / 100))))) // Base 50% chance to deflect a beam,lowered by half the beam's damage scaled to laser absorption, then multiplied by the remaining percent of non-penetrated armor, with a minimum chance of 1%.
|
||||
src.occupant_message("<span class='alien'>The armor reflects the incoming beam, negating it!</span>")
|
||||
src.visible_message("<span class='alien'>The [src.name] reflects the incoming beam, negating it!</span>")
|
||||
src.occupant_message(span_alien("The armor reflects the incoming beam, negating it!"))
|
||||
src.visible_message(span_alien("The [src.name] reflects the incoming beam, negating it!"))
|
||||
src.log_append_to_last("Armor reflected.")
|
||||
return
|
||||
|
||||
@@ -136,8 +136,8 @@
|
||||
|
||||
/obj/mecha/combat/phazon/janus/dynattackby(obj/item/W as obj, mob/user as mob)
|
||||
if(prob(max(1, (50 - round((W.force / 2) * inherent_damage_absorption["brute"])) * (1 - (W.armor_penetration / 100)))))
|
||||
src.occupant_message("<span class='alien'>The armor absorbs the incoming attack's force, negating it!</span>")
|
||||
src.visible_message("<span class='alien'>The [src.name] absorbs the incoming attack's force, negating it!</span>")
|
||||
src.occupant_message(span_alien("The armor absorbs the incoming attack's force, negating it!"))
|
||||
src.visible_message(span_alien("The [src.name] absorbs the incoming attack's force, negating it!"))
|
||||
src.log_append_to_last("Armor absorbed.")
|
||||
return
|
||||
|
||||
|
||||
@@ -34,13 +34,13 @@
|
||||
if(65 to 85)
|
||||
. += "It's slightly damaged."
|
||||
if(45 to 65)
|
||||
. += "<span class='notice'>It's badly damaged.</span>"
|
||||
. += span_notice("It's badly damaged.")
|
||||
if(25 to 45)
|
||||
. += "<span class='warning'>It's heavily damaged.</span>"
|
||||
. += span_warning("It's heavily damaged.")
|
||||
if(2 to 25)
|
||||
. += "<span class='warning'><b>It's falling apart.</b></span>"
|
||||
. += span_warning("<b>It's falling apart.</b>")
|
||||
if(0 to 1)
|
||||
. += "<span class='warning'><b>It is completely destroyed.</b></span>"
|
||||
. += span_warning("<b>It is completely destroyed.</b>")
|
||||
|
||||
/obj/item/mecha_parts/component/Initialize()
|
||||
. = ..()
|
||||
@@ -95,11 +95,11 @@
|
||||
if(target)
|
||||
if(!(component_type in target.internal_components))
|
||||
if(user)
|
||||
to_chat(user, "<span class='notice'>\The [target] doesn't seem to have anywhere to put \the [src].</span>")
|
||||
to_chat(user, span_notice("\The [target] doesn't seem to have anywhere to put \the [src]."))
|
||||
return FALSE
|
||||
if(target.internal_components[component_type])
|
||||
if(user)
|
||||
to_chat(user, "<span class='notice'>\The [target] already has a [component_type] installed!</span>")
|
||||
to_chat(user, span_notice("\The [target] already has a [component_type] installed!"))
|
||||
return FALSE
|
||||
chassis = target
|
||||
if(user)
|
||||
@@ -117,7 +117,7 @@
|
||||
chassis.internal_components[component_type] = src
|
||||
|
||||
if(user)
|
||||
chassis.visible_message("<span class='notice'>[user] installs \the [src] in \the [chassis].</span>")
|
||||
chassis.visible_message(span_notice("[user] installs \the [src] in \the [chassis]."))
|
||||
return TRUE
|
||||
return FALSE
|
||||
|
||||
@@ -138,25 +138,25 @@
|
||||
var/obj/item/stack/nanopaste/NP = W
|
||||
|
||||
if(integrity < max_integrity)
|
||||
to_chat(user, "<span class='notice'>You start to repair damage to \the [src].</span>")
|
||||
to_chat(user, span_notice("You start to repair damage to \the [src]."))
|
||||
while(integrity < max_integrity && NP)
|
||||
if(do_after(user, 1 SECOND, src))
|
||||
NP.use(1)
|
||||
adjust_integrity(NP.mech_repair)
|
||||
|
||||
if(integrity >= max_integrity)
|
||||
to_chat(user, "<span class='notice'>You finish repairing \the [src].</span>")
|
||||
to_chat(user, span_notice("You finish repairing \the [src]."))
|
||||
break
|
||||
|
||||
else if(NP.amount == 0)
|
||||
to_chat(user, "<span class='warning'>Insufficient nanopaste to complete repairs!</span>")
|
||||
to_chat(user, span_warning("Insufficient nanopaste to complete repairs!"))
|
||||
break
|
||||
|
||||
|
||||
return
|
||||
|
||||
else
|
||||
to_chat(user, "<span class='notice'>\The [src] doesn't require repairs.</span>")
|
||||
to_chat(user, span_notice("\The [src] doesn't require repairs."))
|
||||
|
||||
return ..()
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
|
||||
/obj/item/mecha_parts/mecha_equipment/examine(mob/user)
|
||||
. = ..()
|
||||
. += "<span class='notice'>[src] will fill [equip_type?"a [equip_type]":"any"] slot.</span>"
|
||||
. += span_notice("[src] will fill [equip_type?"a [equip_type]":"any"] slot.")
|
||||
|
||||
/obj/item/mecha_parts/mecha_equipment/proc/add_equip_overlay(obj/mecha/M as obj)
|
||||
return
|
||||
|
||||
@@ -22,12 +22,12 @@
|
||||
return inc_damage
|
||||
chassis.log_message("Attacked by [W]. Attacker - [user]")
|
||||
if(prob(chassis.deflect_chance*deflect_coeff))
|
||||
to_chat(user, "<span class='danger'>\The [W] bounces off \the [chassis]'s armor.</span>")
|
||||
to_chat(user, span_danger("\The [W] bounces off \the [chassis]'s armor."))
|
||||
chassis.log_append_to_last("Armor saved.")
|
||||
inc_damage = 0
|
||||
else
|
||||
chassis.occupant_message("<span class='danger'>\The [user] hits [chassis] with [W].</span>")
|
||||
user.visible_message("<span class='danger'>\The [user] hits [chassis] with [W].</span>", "<span class='danger'>You hit [src] with [W].</span>")
|
||||
chassis.occupant_message(span_danger("\The [user] hits [chassis] with [W]."))
|
||||
user.visible_message(span_danger("\The [user] hits [chassis] with [W]."), span_danger("You hit [src] with [W]."))
|
||||
inc_damage *= damage_coeff
|
||||
set_ready_state(FALSE)
|
||||
chassis.use_power(energy_drain)
|
||||
@@ -58,11 +58,11 @@
|
||||
return chassis.dynattackby(W,user)
|
||||
chassis.log_message("Attacked by [W]. Attacker - [user]")
|
||||
if(prob(chassis.deflect_chance*deflect_coeff))
|
||||
to_chat(user, "<span class='danger'>\The [W] bounces off [chassis] armor.</span>")
|
||||
to_chat(user, span_danger("\The [W] bounces off [chassis] armor."))
|
||||
chassis.log_append_to_last("Armor saved.")
|
||||
else
|
||||
chassis.occupant_message("<span class='danger'>\The [user] hits [chassis] with [W].</span>")
|
||||
user.visible_message("<span class='danger'>\The [user] hits [chassis] with [W].</span>", "<span class='danger'>You hit [src] with [W].</span>")
|
||||
chassis.occupant_message(span_danger("\The [user] hits [chassis] with [W]."))
|
||||
user.visible_message(span_danger("\The [user] hits [chassis] with [W]."), span_danger("You hit [src] with [W]."))
|
||||
chassis.take_damage(round(W.force*damage_coeff),W.damtype)
|
||||
chassis.check_for_internal_damage(list(MECHA_INT_TEMP_CONTROL,MECHA_INT_TANK_BREACH,MECHA_INT_CONTROL_LOST))
|
||||
set_ready_state(FALSE)
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
if(!action_checks(src))
|
||||
return inc_damage
|
||||
if(prob(chassis.deflect_chance*deflect_coeff))
|
||||
chassis.occupant_message("<span class='notice'>The armor deflects incoming projectile.</span>")
|
||||
chassis.occupant_message(span_notice("The armor deflects incoming projectile."))
|
||||
chassis.visible_message("The [chassis.name] armor deflects the projectile.")
|
||||
chassis.log_append_to_last("Armor saved.")
|
||||
inc_damage = 0
|
||||
@@ -35,7 +35,7 @@
|
||||
if(!action_checks(A))
|
||||
return inc_damage
|
||||
if(prob(chassis.deflect_chance*deflect_coeff))
|
||||
chassis.occupant_message("<span class='notice'>The [A] bounces off the armor.</span>")
|
||||
chassis.occupant_message(span_notice("The [A] bounces off the armor."))
|
||||
chassis.visible_message("The [A] bounces off \the [chassis]'s armor")
|
||||
chassis.log_append_to_last("Armor saved.")
|
||||
inc_damage = 0
|
||||
@@ -76,7 +76,7 @@
|
||||
if(!action_checks(src))
|
||||
return chassis.dynbulletdamage(Proj)
|
||||
if(prob(chassis.deflect_chance*deflect_coeff))
|
||||
chassis.occupant_message("<span class='notice'>The armor deflects incoming projectile.</span>")
|
||||
chassis.occupant_message(span_notice("The armor deflects incoming projectile."))
|
||||
chassis.visible_message("The [chassis.name] armor deflects the projectile")
|
||||
chassis.log_append_to_last("Armor saved.")
|
||||
else
|
||||
@@ -92,7 +92,7 @@
|
||||
if(!action_checks(A))
|
||||
return chassis.dynhitby(A)
|
||||
if(prob(chassis.deflect_chance*deflect_coeff) || istype(A, /mob/living) || istype(A, /obj/item/mecha_parts/mecha_tracking))
|
||||
chassis.occupant_message("<span class='notice'>The [A] bounces off the armor.</span>")
|
||||
chassis.occupant_message(span_notice("The [A] bounces off the armor."))
|
||||
chassis.visible_message("The [A] bounces off the [chassis] armor")
|
||||
chassis.log_append_to_last("Armor saved.")
|
||||
if(istype(A, /mob/living))
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
last_fired = world.time
|
||||
else
|
||||
if (world.time % 3)
|
||||
occupant_message("<span class='warning'>[src] is not ready to fire again!</span>")
|
||||
occupant_message(span_warning("[src] is not ready to fire again!"))
|
||||
return 0
|
||||
|
||||
switch(mode)
|
||||
@@ -73,4 +73,4 @@
|
||||
if(href_list["mode"])
|
||||
mode = text2num(href_list["mode"])
|
||||
send_byjax(chassis.occupant,"exosuit.browser","\ref[src]",src.get_equip_info())
|
||||
return
|
||||
return
|
||||
|
||||
@@ -24,41 +24,41 @@
|
||||
if(O.has_buckled_mobs())
|
||||
return
|
||||
if(locate(/mob/living) in O)
|
||||
occupant_message("<span class='warning'>You can't load living things into the cargo compartment.</span>")
|
||||
occupant_message(span_warning("You can't load living things into the cargo compartment."))
|
||||
return
|
||||
if(O.anchored)
|
||||
if(enable_special)
|
||||
if(istype(O, /obj/machinery/door/firedoor)) // I love doors.
|
||||
var/obj/machinery/door/firedoor/FD = O
|
||||
if(FD.blocked)
|
||||
FD.visible_message("<span class='danger'>\The [chassis] begins prying on \the [FD]!</span>")
|
||||
FD.visible_message(span_danger("\The [chassis] begins prying on \the [FD]!"))
|
||||
if(do_after(chassis.occupant,10 SECONDS,FD))
|
||||
playsound(FD, 'sound/machines/door/airlock_creaking.ogg', 100, 1)
|
||||
FD.blocked = 0
|
||||
FD.update_icon()
|
||||
FD.open(1)
|
||||
FD.visible_message("<span class='warning'>\The [chassis] tears \the [FD] open!</span>")
|
||||
FD.visible_message(span_warning("\The [chassis] tears \the [FD] open!"))
|
||||
else if(FD.density)
|
||||
FD.visible_message("<span class='warning'>\The [chassis] begins forcing \the [FD] open!</span>")
|
||||
FD.visible_message(span_warning("\The [chassis] begins forcing \the [FD] open!"))
|
||||
if(do_after(chassis.occupant, 5 SECONDS,FD))
|
||||
playsound(FD, 'sound/machines/door/airlock_creaking.ogg', 100, 1)
|
||||
FD.visible_message("<span class='danger'>\The [chassis] forces \the [FD] open!</span>")
|
||||
FD.visible_message(span_danger("\The [chassis] forces \the [FD] open!"))
|
||||
FD.open(1)
|
||||
else
|
||||
FD.visible_message("<span class='danger'>\The [chassis] forces \the [FD] closed!</span>")
|
||||
FD.visible_message(span_danger("\The [chassis] forces \the [FD] closed!"))
|
||||
FD.close(1)
|
||||
else if(istype(O, /obj/machinery/door/airlock)) // D o o r s.
|
||||
var/obj/machinery/door/airlock/AD = O
|
||||
if(AD.locked)
|
||||
occupant_message("<span class='notice'>The airlock's bolts prevent it from being forced.</span>")
|
||||
occupant_message(span_notice("The airlock's bolts prevent it from being forced."))
|
||||
else if(!AD.operating)
|
||||
if(AD.welded)
|
||||
AD.visible_message("<span class='warning'>\The [chassis] begins prying on \the [AD]!</span>")
|
||||
AD.visible_message(span_warning("\The [chassis] begins prying on \the [AD]!"))
|
||||
if(do_after(chassis.occupant, 15 SECONDS,AD) && chassis.Adjacent(AD))
|
||||
AD.welded = FALSE
|
||||
AD.update_icon()
|
||||
playsound(AD, 'sound/machines/door/airlock_creaking.ogg', 100, 1)
|
||||
AD.visible_message("<span class='danger'>\The [chassis] tears \the [AD] open!</span>")
|
||||
AD.visible_message(span_danger("\The [chassis] tears \the [AD] open!"))
|
||||
if(!AD.welded)
|
||||
if(density)
|
||||
spawn(0)
|
||||
@@ -68,10 +68,10 @@
|
||||
AD.close(1)
|
||||
return
|
||||
else
|
||||
occupant_message("<span class='warning'>[target] is firmly secured.</span>")
|
||||
occupant_message(span_warning("[target] is firmly secured."))
|
||||
return
|
||||
if(cargo_holder.cargo.len >= cargo_holder.cargo_capacity)
|
||||
occupant_message("<span class='warning'>Not enough room in cargo compartment.</span>")
|
||||
occupant_message(span_warning("Not enough room in cargo compartment."))
|
||||
return
|
||||
|
||||
occupant_message("You lift [target] and start to load it into cargo compartment.")
|
||||
@@ -85,10 +85,10 @@
|
||||
cargo_holder.cargo += O
|
||||
O.loc = chassis
|
||||
O.anchored = FALSE
|
||||
occupant_message("<span class='notice'>[target] succesfully loaded.</span>")
|
||||
occupant_message(span_notice("[target] succesfully loaded."))
|
||||
log_message("Loaded [O]. Cargo compartment capacity: [cargo_holder.cargo_capacity - cargo_holder.cargo.len]")
|
||||
else
|
||||
occupant_message("<span class='warning'>You must hold still while handling objects.</span>")
|
||||
occupant_message(span_warning("You must hold still while handling objects."))
|
||||
O.anchored = initial(O.anchored)
|
||||
|
||||
//attacking
|
||||
@@ -99,17 +99,17 @@
|
||||
M.take_overall_damage(dam_force)
|
||||
M.adjustOxyLoss(round(dam_force/2))
|
||||
M.updatehealth()
|
||||
occupant_message("<span class='warning'>You squeeze [target] with [src.name]. Something cracks.</span>")
|
||||
occupant_message(span_warning("You squeeze [target] with [src.name]. Something cracks."))
|
||||
playsound(src, "fracture", 5, 1, -2) //CRACK
|
||||
chassis.visible_message("<span class='warning'>[chassis] squeezes [target].</span>")
|
||||
chassis.visible_message(span_warning("[chassis] squeezes [target]."))
|
||||
else if(chassis.occupant.a_intent == I_DISARM && enable_special)
|
||||
playsound(src, 'sound/mecha/hydraulic.ogg', 10, 1, -2)
|
||||
M.take_overall_damage(dam_force/2)
|
||||
M.adjustOxyLoss(round(dam_force/3))
|
||||
M.updatehealth()
|
||||
occupant_message("<span class='warning'>You slam [target] with [src.name]. Something cracks.</span>")
|
||||
occupant_message(span_warning("You slam [target] with [src.name]. Something cracks."))
|
||||
playsound(src, "fracture", 3, 1, -2) //CRACK 2
|
||||
chassis.visible_message("<span class='warning'>[chassis] slams [target].</span>")
|
||||
chassis.visible_message(span_warning("[chassis] slams [target]."))
|
||||
M.throw_at(get_step(M,get_dir(src, M)), 14, 1.5, chassis)
|
||||
else
|
||||
step_away(M,chassis)
|
||||
@@ -146,25 +146,25 @@
|
||||
cargo_holder.cargo += O
|
||||
O.loc = chassis
|
||||
O.anchored = FALSE
|
||||
chassis.occupant_message("<span class='notice'>[target] succesfully loaded.</span>")
|
||||
chassis.occupant_message(span_notice("[target] succesfully loaded."))
|
||||
chassis.log_message("Loaded [O]. Cargo compartment capacity: [cargo_holder.cargo_capacity - cargo_holder.cargo.len]")
|
||||
else
|
||||
chassis.occupant_message("<span class='warning'>You must hold still while handling objects.</span>")
|
||||
chassis.occupant_message(span_warning("You must hold still while handling objects."))
|
||||
O.anchored = initial(O.anchored)
|
||||
else
|
||||
chassis.occupant_message("<span class='warning'>Not enough room in cargo compartment.</span>")
|
||||
chassis.occupant_message(span_warning("Not enough room in cargo compartment."))
|
||||
else
|
||||
chassis.occupant_message("<span class='warning'>[target] is firmly secured.</span>")
|
||||
chassis.occupant_message(span_warning("[target] is firmly secured."))
|
||||
|
||||
else if(istype(target,/mob/living))
|
||||
var/mob/living/M = target
|
||||
if(M.stat>1) return
|
||||
if(chassis.occupant.a_intent == I_HURT)
|
||||
chassis.occupant_message("<span class='danger'>You obliterate [target] with [src.name], leaving blood and guts everywhere.</span>")
|
||||
chassis.visible_message("<span class='danger'>[chassis] destroys [target] in an unholy fury.</span>")
|
||||
chassis.occupant_message(span_danger("You obliterate [target] with [src.name], leaving blood and guts everywhere."))
|
||||
chassis.visible_message(span_danger("[chassis] destroys [target] in an unholy fury."))
|
||||
if(chassis.occupant.a_intent == I_DISARM)
|
||||
chassis.occupant_message("<span class='danger'>You tear [target]'s limbs off with [src.name].</span>")
|
||||
chassis.visible_message("<span class='danger'>[chassis] rips [target]'s arms off.</span>")
|
||||
chassis.occupant_message(span_danger("You tear [target]'s limbs off with [src.name]."))
|
||||
chassis.visible_message(span_danger("[chassis] rips [target]'s arms off."))
|
||||
else
|
||||
step_away(M,chassis)
|
||||
chassis.occupant_message("You smash into [target], sending them flying.")
|
||||
@@ -172,4 +172,4 @@
|
||||
set_ready_state(FALSE)
|
||||
chassis.use_power(energy_drain)
|
||||
do_after_cooldown()
|
||||
return 1
|
||||
return 1
|
||||
|
||||
@@ -15,8 +15,8 @@
|
||||
if(!target_obj.vars.Find("unacidable") || target_obj.unacidable) return
|
||||
set_ready_state(FALSE)
|
||||
chassis.use_power(energy_drain)
|
||||
chassis.visible_message("<span class='danger'>[chassis] starts to drill [target]</span>", "<span class='warning'>You hear the drill.</span>")
|
||||
occupant_message("<span class='danger'>You start to drill [target]</span>")
|
||||
chassis.visible_message(span_danger("[chassis] starts to drill [target]"), span_warning("You hear the drill."))
|
||||
occupant_message(span_danger("You start to drill [target]"))
|
||||
var/T = chassis.loc
|
||||
var/C = target.loc //why are these backwards? we may never know -Pete
|
||||
if(do_after_cooldown(target))
|
||||
@@ -24,7 +24,7 @@
|
||||
if(istype(target, /turf/simulated/wall))
|
||||
var/turf/simulated/wall/W = target
|
||||
if(W.reinf_material && !advanced)//R wall but no good drill
|
||||
occupant_message("<span class='warning'>[target] is too durable to drill through.</span>")
|
||||
occupant_message(span_warning("[target] is too durable to drill through."))
|
||||
return
|
||||
|
||||
else if((W.reinf_material && advanced) || do_after_cooldown(target))//R wall with good drill
|
||||
@@ -103,8 +103,8 @@
|
||||
if(target_obj.unacidable) return
|
||||
set_ready_state(FALSE)
|
||||
chassis.use_power(energy_drain)
|
||||
chassis.visible_message("<span class='danger'>[chassis] starts to bore into \the [target]</span>", "<span class='warning'>You hear the bore.</span>")
|
||||
occupant_message("<span class='danger'>You start to bore into \the [target]</span>")
|
||||
chassis.visible_message(span_danger("[chassis] starts to bore into \the [target]"), span_warning("You hear the bore."))
|
||||
occupant_message(span_danger("You start to bore into \the [target]"))
|
||||
var/T = chassis.loc
|
||||
var/C = target.loc
|
||||
if(do_after_cooldown(target))
|
||||
@@ -112,7 +112,7 @@
|
||||
if(istype(target, /turf/simulated/wall))
|
||||
var/turf/simulated/wall/W = target
|
||||
if(W.reinf_material)
|
||||
occupant_message("<span class='warning'>[target] is too durable to bore through.</span>")
|
||||
occupant_message(span_warning("[target] is too durable to bore through."))
|
||||
else
|
||||
log_message("Bored through [target]")
|
||||
target.ex_act(2)
|
||||
@@ -133,4 +133,4 @@
|
||||
else if(target.loc == C)
|
||||
log_message("Drilled through [target]")
|
||||
target.ex_act(2)
|
||||
return 1
|
||||
return 1
|
||||
|
||||
@@ -25,12 +25,12 @@
|
||||
if( istype(target, /obj/structure/reagent_dispensers) && get_dist(chassis,target) <= 1) //VOREStation Edit
|
||||
var/obj/o = target
|
||||
var/amount = o.reagents.trans_to_obj(src, 200)
|
||||
occupant_message("<span class='notice'>[amount] units transferred into internal tank.</span>")
|
||||
occupant_message(span_notice("[amount] units transferred into internal tank."))
|
||||
playsound(src, 'sound/effects/refill.ogg', 50, 1, -6)
|
||||
return
|
||||
|
||||
if (src.reagents.total_volume < 1)
|
||||
occupant_message("<span class='warning'>\The [src] is empty.</span>")
|
||||
occupant_message(span_warning("\The [src] is empty."))
|
||||
return
|
||||
|
||||
playsound(src, 'sound/effects/extinguish.ogg', 75, 1, -3)
|
||||
@@ -67,4 +67,4 @@
|
||||
return "[..()] \[[src.reagents.total_volume]\]"
|
||||
|
||||
/obj/item/mecha_parts/mecha_equipment/tool/extinguisher/on_reagent_change()
|
||||
return
|
||||
return
|
||||
|
||||
@@ -76,7 +76,7 @@
|
||||
var/result = load_fuel(target)
|
||||
var/message
|
||||
if(isnull(result))
|
||||
message = "<span class='warning'>[fuel] traces in target minimal. [target] cannot be used as fuel.</span>"
|
||||
message = span_warning("[fuel] traces in target minimal. [target] cannot be used as fuel.")
|
||||
else if(!result)
|
||||
message = "Unit is full."
|
||||
else
|
||||
@@ -103,7 +103,7 @@
|
||||
/obj/item/mecha_parts/mecha_equipment/generator/attackby(weapon,mob/user)
|
||||
var/result = load_fuel(weapon)
|
||||
if(isnull(result))
|
||||
user.visible_message("[user] tries to shove [weapon] into [src]. What a dumb-ass.","<span class='warning'>[fuel] traces minimal. [weapon] cannot be used as fuel.</span>")
|
||||
user.visible_message("[user] tries to shove [weapon] into [src]. What a dumb-ass.",span_warning("[fuel] traces minimal. [weapon] cannot be used as fuel."))
|
||||
else if(!result)
|
||||
to_chat(user, "Unit is full.")
|
||||
else
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
var/move_result = 0
|
||||
if(direction == UP || direction == DOWN)
|
||||
if(!chassis.can_ztravel())
|
||||
chassis.occupant_message("<span class='warning'>Your vehicle lacks the capacity to move in that direction!</span>")
|
||||
chassis.occupant_message(span_warning("Your vehicle lacks the capacity to move in that direction!"))
|
||||
return FALSE
|
||||
|
||||
//We're using locs because some mecha are 2x2 turfs. So thicc!
|
||||
@@ -58,16 +58,16 @@
|
||||
|
||||
for(var/turf/T in chassis.locs)
|
||||
if(!T.CanZPass(chassis,direction))
|
||||
chassis.occupant_message("<span class='warning'>You can't move that direction from here!</span>")
|
||||
chassis.occupant_message(span_warning("You can't move that direction from here!"))
|
||||
result = FALSE
|
||||
break
|
||||
var/turf/dest = (direction == UP) ? GetAbove(chassis) : GetBelow(chassis)
|
||||
if(!dest)
|
||||
chassis.occupant_message("<span class='notice'>There is nothing of interest in this direction.</span>")
|
||||
chassis.occupant_message(span_notice("There is nothing of interest in this direction."))
|
||||
result = FALSE
|
||||
break
|
||||
if(!dest.CanZPass(chassis,direction))
|
||||
chassis.occupant_message("<span class='warning'>There's something blocking your movement in that direction!</span>")
|
||||
chassis.occupant_message(span_warning("There's something blocking your movement in that direction!"))
|
||||
result = FALSE
|
||||
break
|
||||
if(result)
|
||||
@@ -80,7 +80,7 @@
|
||||
if(!chassis.check_for_support())
|
||||
chassis.float_direction = direction
|
||||
chassis.start_process(MECHA_PROC_MOVEMENT)
|
||||
chassis.log_message("<span class='warning'>Movement control lost. Inertial movement started.</span>")
|
||||
chassis.log_message(span_warning("Movement control lost. Inertial movement started."))
|
||||
if(chassis.do_after(get_step_delay()))
|
||||
chassis.can_move = 1
|
||||
return 1
|
||||
@@ -127,4 +127,4 @@
|
||||
/obj/item/mecha_parts/mecha_equipment/tool/jetpack/do_after_cooldown()
|
||||
sleep(equip_cooldown)
|
||||
wait = 0
|
||||
return 1
|
||||
return 1
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
/obj/item/mecha_parts/mecha_equipment/tool/passenger/destroy()
|
||||
for(var/atom/movable/AM in src)
|
||||
AM.forceMove(get_turf(src))
|
||||
to_chat(AM, "<span class='danger'>You tumble out of the destroyed [src.name]!</span>")
|
||||
to_chat(AM, span_danger("You tumble out of the destroyed [src.name]!"))
|
||||
return ..()
|
||||
|
||||
/obj/item/mecha_parts/mecha_equipment/tool/passenger/Exit(atom/movable/O)
|
||||
@@ -24,7 +24,7 @@
|
||||
|
||||
/obj/item/mecha_parts/mecha_equipment/tool/passenger/proc/move_inside(var/mob/user)
|
||||
if (chassis)
|
||||
chassis.visible_message("<span class='notice'>[user] starts to climb into [chassis].</span>")
|
||||
chassis.visible_message(span_notice("[user] starts to climb into [chassis]."))
|
||||
|
||||
if(do_after(user, 40, needhand=0))
|
||||
if(!src.occupant)
|
||||
@@ -33,7 +33,7 @@
|
||||
log_message("[user] boarded.")
|
||||
occupant_message("[user] boarded.")
|
||||
else if(src.occupant != user)
|
||||
to_chat(user, "<span class='warning'>[src.occupant] was faster. Try harder next time, loser.</span>")
|
||||
to_chat(user, span_warning("[src.occupant] was faster. Try harder next time, loser."))
|
||||
else
|
||||
to_chat(user, "You stop entering the exosuit.")
|
||||
|
||||
@@ -107,13 +107,13 @@
|
||||
return
|
||||
|
||||
if (!isturf(usr.loc))
|
||||
to_chat(usr, "<span class='danger'>You can't reach the passenger compartment from here.</span>")
|
||||
to_chat(usr, span_danger("You can't reach the passenger compartment from here."))
|
||||
return
|
||||
|
||||
if(iscarbon(usr))
|
||||
var/mob/living/carbon/C = usr
|
||||
if(C.handcuffed)
|
||||
to_chat(usr, "<span class='danger'>Kinda hard to climb in while handcuffed don't you think?</span>")
|
||||
to_chat(usr, span_danger("Kinda hard to climb in while handcuffed don't you think?"))
|
||||
return
|
||||
|
||||
if(isliving(usr))
|
||||
@@ -139,13 +139,13 @@
|
||||
//didn't find anything
|
||||
switch (feedback)
|
||||
if (OCCUPIED)
|
||||
to_chat(usr, "<span class='danger'>The passenger compartment is already occupied!</span>")
|
||||
to_chat(usr, span_danger("The passenger compartment is already occupied!"))
|
||||
if (LOCKED)
|
||||
to_chat(usr, "<span class='warning'>The passenger compartment hatch is locked!</span>")
|
||||
to_chat(usr, span_warning("The passenger compartment hatch is locked!"))
|
||||
if (OCCUPIED|LOCKED)
|
||||
to_chat(usr, "<span class='danger'>All of the passenger compartments are already occupied or locked!</span>")
|
||||
to_chat(usr, span_danger("All of the passenger compartments are already occupied or locked!"))
|
||||
if (0)
|
||||
to_chat(usr, "<span class='warning'>\The [src] doesn't have a passenger compartment.</span>")
|
||||
to_chat(usr, span_warning("\The [src] doesn't have a passenger compartment."))
|
||||
|
||||
#undef LOCKED
|
||||
#undef OCCUPIED
|
||||
|
||||
@@ -204,7 +204,7 @@
|
||||
set popup_menu = 0
|
||||
if(usr!=src.occupant || usr.stat == 2)
|
||||
return
|
||||
to_chat(usr,"<span class='notice'>Release sequence activated. This will take one minute.</span>")
|
||||
to_chat(usr,span_notice("Release sequence activated. This will take one minute."))
|
||||
sleep(600)
|
||||
if(!src || !usr || !occupant || (occupant != usr)) //Check if someone's released/replaced/bombed him already
|
||||
return
|
||||
|
||||
@@ -330,7 +330,7 @@
|
||||
STOP_PROCESSING(SSobj, src)
|
||||
shut_down()
|
||||
if(chassis && chassis.occupant)
|
||||
to_chat(chassis.occupant, "<span class='notice'>\The [chassis] shudders as something jams!</span>")
|
||||
to_chat(chassis.occupant, span_notice("\The [chassis] shudders as something jams!"))
|
||||
log_message("[src.name] has malfunctioned. Maintenance required.")
|
||||
|
||||
/obj/item/mecha_parts/mecha_equipment/crisis_drone/process() // Will continually try to find the nearest person above the threshold that is a valid target, and try to heal them.
|
||||
@@ -421,7 +421,7 @@
|
||||
|
||||
/obj/item/mecha_parts/mecha_equipment/crisis_drone/proc/shut_down()
|
||||
if(enabled)
|
||||
chassis.visible_message("<span class='notice'>\The [chassis]'s [src] buzzes as its drone returns to port.</span>")
|
||||
chassis.visible_message(span_notice("\The [chassis]'s [src] buzzes as its drone returns to port."))
|
||||
toggle_drone()
|
||||
if(!isnull(Target))
|
||||
Target = null
|
||||
|
||||
@@ -19,6 +19,6 @@
|
||||
var/turf/MT = get_turf(chassis)
|
||||
var/turf/TT = get_turf(target)
|
||||
if(!MT.is_outdoors() || !TT.is_outdoors())
|
||||
to_chat(chassis.occupant, "<span class='notice'>\The [src]'s control system prevents you from firing due to a blocked firing arc.</span>")
|
||||
to_chat(chassis.occupant, span_notice("\The [src]'s control system prevents you from firing due to a blocked firing arc."))
|
||||
return 0
|
||||
return ..()
|
||||
return ..()
|
||||
|
||||
@@ -17,14 +17,14 @@
|
||||
return 0
|
||||
|
||||
playsound(src, 'sound/effects/bang.ogg', 30, 1, 30)
|
||||
chassis.occupant_message("<span class='warning'>You emit a high-pitched noise from the mech.</span>")
|
||||
chassis.occupant_message(span_warning("You emit a high-pitched noise from the mech."))
|
||||
for(var/mob/living/carbon/M in ohearers(6, chassis))
|
||||
if(istype(M, /mob/living/carbon/human))
|
||||
var/ear_safety = 0
|
||||
ear_safety = M.get_ear_protection()
|
||||
if(ear_safety > 0)
|
||||
return
|
||||
to_chat(M, "<span class='warning'>Your ears feel like they're bleeding!</span>")
|
||||
to_chat(M, span_warning("Your ears feel like they're bleeding!"))
|
||||
playsound(M, 'sound/effects/bang.ogg', 70, 1, 30)
|
||||
M.SetSleeping(0)
|
||||
M.ear_deaf += 30
|
||||
|
||||
@@ -30,8 +30,8 @@
|
||||
if(!curloc || !targloc)
|
||||
return
|
||||
chassis.use_power(energy_drain)
|
||||
chassis.visible_message("<span class='warning'>[chassis] fires [src]!</span>")
|
||||
occupant_message("<span class='warning'>You fire [src]!</span>")
|
||||
chassis.visible_message(span_warning("[chassis] fires [src]!"))
|
||||
occupant_message(span_warning("You fire [src]!"))
|
||||
log_message("Fired from [src], targeting [target].")
|
||||
var/target_for_log = "unknown"
|
||||
if(ismob(target))
|
||||
|
||||
@@ -625,7 +625,7 @@
|
||||
|
||||
/obj/machinery/mecha_part_fabricator/attackby(var/obj/item/I, var/mob/user)
|
||||
if(being_built)
|
||||
to_chat(user, "<span class='notice'>\The [src] is busy. Please wait for completion of previous operation.</span>")
|
||||
to_chat(user, span_notice("\The [src] is busy. Please wait for completion of previous operation."))
|
||||
return 1
|
||||
if(default_deconstruction_screwdriver(user, I))
|
||||
return
|
||||
@@ -637,7 +637,7 @@
|
||||
if(istype(I,/obj/item/stack/material))
|
||||
var/obj/item/stack/material/S = I
|
||||
if(!(S.material.name in materials))
|
||||
to_chat(user, "<span class='warning'>The [src] doesn't accept [S.material]!</span>")
|
||||
to_chat(user, span_warning("The [src] doesn't accept [S.material]!"))
|
||||
return
|
||||
|
||||
var/sname = "[S.name]"
|
||||
|
||||
@@ -137,24 +137,24 @@
|
||||
if(istype(I,/obj/item/disk/limb))
|
||||
var/obj/item/disk/limb/D = I
|
||||
if(!D.company || !(D.company in all_robolimbs))
|
||||
to_chat(user, "<span class='warning'>This disk seems to be corrupted!</span>")
|
||||
to_chat(user, span_warning("This disk seems to be corrupted!"))
|
||||
else
|
||||
to_chat(user, "<span class='notice'>Installing blueprint files for [D.company]...</span>")
|
||||
to_chat(user, span_notice("Installing blueprint files for [D.company]..."))
|
||||
if(do_after(user,50,src))
|
||||
var/datum/robolimb/R = all_robolimbs[D.company]
|
||||
R.unavailable_to_build = 0
|
||||
to_chat(user, "<span class='notice'>Installed [D.company] blueprints!</span>")
|
||||
to_chat(user, span_notice("Installed [D.company] blueprints!"))
|
||||
qdel(I)
|
||||
return
|
||||
|
||||
if(istype(I,/obj/item/disk/species))
|
||||
var/obj/item/disk/species/D = I
|
||||
if(!D.species || !(D.species in GLOB.all_species))
|
||||
to_chat(user, "<span class='warning'>This disk seems to be corrupted!</span>")
|
||||
to_chat(user, span_warning("This disk seems to be corrupted!"))
|
||||
else
|
||||
to_chat(user, "<span class='notice'>Uploading modification files for [D.species]...</span>")
|
||||
to_chat(user, span_notice("Uploading modification files for [D.species]..."))
|
||||
if(do_after(user,50,src))
|
||||
species_types |= D.species
|
||||
to_chat(user, "<span class='notice'>Uploaded [D.species] files!</span>")
|
||||
to_chat(user, span_notice("Uploaded [D.species] files!"))
|
||||
qdel(I)
|
||||
return
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
return istype(O, /obj/mecha) || istype(O, /obj/vehicle)
|
||||
|
||||
/obj/machinery/mech_sensor/proc/give_feedback(O as obj)
|
||||
var/block_message = "<span class='warning'>Movement control overridden. Area denial active.</span>"
|
||||
var/block_message = span_warning("Movement control overridden. Area denial active.")
|
||||
var/feedback_timer = 0
|
||||
if(feedback_timer)
|
||||
return
|
||||
|
||||
@@ -515,11 +515,11 @@
|
||||
if(65 to 85)
|
||||
. += "It's slightly damaged."
|
||||
if(45 to 65)
|
||||
. += "<span class='notice'>It's badly damaged.</span>"
|
||||
. += span_notice("It's badly damaged.")
|
||||
if(25 to 45)
|
||||
. += "<span class='warning'>It's heavily damaged.</span>"
|
||||
. += span_warning("It's heavily damaged.")
|
||||
else
|
||||
. += "<span class='warning'><b> It's falling apart.</b> </span>"
|
||||
. += span_warning("<b> It's falling apart.</b> ")
|
||||
if(equipment?.len)
|
||||
. += "It's equipped with:"
|
||||
for(var/obj/item/mecha_parts/mecha_equipment/ME in equipment)
|
||||
@@ -637,7 +637,7 @@
|
||||
|
||||
/obj/mecha/proc/interface_action(obj/machinery/target)
|
||||
if(istype(target, /obj/machinery/access_button))
|
||||
src.occupant_message("<span class='notice'>Interfacing with [target].</span>")
|
||||
src.occupant_message(span_notice("Interfacing with [target]."))
|
||||
src.log_message("Interfaced with [target].")
|
||||
target.attack_hand(src.occupant)
|
||||
return 1
|
||||
@@ -653,7 +653,7 @@
|
||||
if(src_object == src || (src_object in src))
|
||||
return STATUS_INTERACTIVE
|
||||
if(src.Adjacent(src_object))
|
||||
src.occupant_message("<span class='notice'>Interfacing with [src_object]...</span>")
|
||||
src.occupant_message(span_notice("Interfacing with [src_object]..."))
|
||||
src.log_message("Interfaced with [src_object].")
|
||||
return STATUS_INTERACTIVE
|
||||
if(src_object in view(2, src))
|
||||
@@ -684,7 +684,7 @@
|
||||
/obj/mecha/relaymove(mob/user,direction)
|
||||
if(user != src.occupant) //While not "realistic", this piece is player friendly.
|
||||
if(istype(user,/mob/living/carbon/brain))
|
||||
to_chat(user, "<span class='warning'>You try to move, but you are not the pilot! The exosuit doesn't respond.</span>")
|
||||
to_chat(user, span_warning("You try to move, but you are not the pilot! The exosuit doesn't respond."))
|
||||
return 0
|
||||
user.forceMove(get_turf(src))
|
||||
to_chat(user, "You climb out from [src]")
|
||||
@@ -692,16 +692,16 @@
|
||||
|
||||
var/obj/item/mecha_parts/component/hull/HC = internal_components[MECH_HULL]
|
||||
if(!HC)
|
||||
occupant_message("<span class='notice'>You can't operate an exosuit that doesn't have a hull!</span>")
|
||||
occupant_message(span_notice("You can't operate an exosuit that doesn't have a hull!"))
|
||||
return
|
||||
|
||||
if(connected_port)
|
||||
if(world.time - last_message > 20)
|
||||
src.occupant_message("<span class='warning'>Unable to move while connected to the air system port</span>")
|
||||
src.occupant_message(span_warning("Unable to move while connected to the air system port"))
|
||||
last_message = world.time
|
||||
return 0
|
||||
if(state)
|
||||
occupant_message("<span class='warning'>Maintenance protocols in effect</span>")
|
||||
occupant_message(span_warning("Maintenance protocols in effect"))
|
||||
return
|
||||
/*
|
||||
if(zoom)
|
||||
@@ -805,7 +805,7 @@
|
||||
//Up/down zmove
|
||||
else if(direction == UP || direction == DOWN)
|
||||
if(!can_ztravel())
|
||||
occupant_message("<span class='warning'>Your vehicle lacks the capacity to move in that direction!</span>")
|
||||
occupant_message(span_warning("Your vehicle lacks the capacity to move in that direction!"))
|
||||
return FALSE
|
||||
|
||||
//We're using locs because some mecha are 2x2 turfs. So thicc!
|
||||
@@ -813,16 +813,16 @@
|
||||
|
||||
for(var/turf/T in locs)
|
||||
if(!T.CanZPass(src,direction))
|
||||
occupant_message("<span class='warning'>You can't move that direction from here!</span>")
|
||||
occupant_message(span_warning("You can't move that direction from here!"))
|
||||
result = FALSE
|
||||
break
|
||||
var/turf/dest = (direction == UP) ? GetAbove(src) : GetBelow(src)
|
||||
if(!dest)
|
||||
occupant_message("<span class='notice'>There is nothing of interest in this direction.</span>")
|
||||
occupant_message(span_notice("There is nothing of interest in this direction."))
|
||||
result = FALSE
|
||||
break
|
||||
if(!dest.CanZPass(src,direction))
|
||||
occupant_message("<span class='warning'>There's something blocking your movement in that direction!</span>")
|
||||
occupant_message(span_warning("There's something blocking your movement in that direction!"))
|
||||
result = FALSE
|
||||
break
|
||||
if(result)
|
||||
@@ -849,7 +849,7 @@
|
||||
if(!src.check_for_support())
|
||||
float_direction = direction
|
||||
start_process(MECHA_PROC_MOVEMENT)
|
||||
src.log_message("<span class='warning'>Movement control lost. Inertial movement started.</span>")
|
||||
src.log_message(span_warning("Movement control lost. Inertial movement started."))
|
||||
if(do_after(get_step_delay()))
|
||||
can_move = 1
|
||||
return 1
|
||||
@@ -1068,16 +1068,16 @@
|
||||
if(prob(25)) //Why would they get free internal damage. At least make it a bit RNG.
|
||||
src.check_for_internal_damage(list(MECHA_INT_TEMP_CONTROL,MECHA_INT_TANK_BREACH,MECHA_INT_CONTROL_LOST))
|
||||
playsound(src, 'sound/weapons/slash.ogg', 50, 1, -1)
|
||||
to_chat(user, "<span class='danger'>You slash at the armored suit!</span>")
|
||||
visible_message("<span class='danger'>\The [user] slashes at [src.name]'s armor!</span>")
|
||||
to_chat(user, span_danger("You slash at the armored suit!"))
|
||||
visible_message(span_danger("\The [user] slashes at [src.name]'s armor!"))
|
||||
else
|
||||
src.log_append_to_last("Armor saved.")
|
||||
playsound(src, 'sound/weapons/slash.ogg', 50, 1, -1)
|
||||
to_chat(user, "<span class='danger'>Your claws had no effect!</span>")
|
||||
src.occupant_message("<span class='notice'>\The [user]'s claws are stopped by the armor.</span>")
|
||||
visible_message("<span class='warning'>\The [user] rebounds off [src.name]'s armor!</span>")
|
||||
to_chat(user, span_danger("Your claws had no effect!"))
|
||||
src.occupant_message(span_notice("\The [user]'s claws are stopped by the armor."))
|
||||
visible_message(span_warning("\The [user] rebounds off [src.name]'s armor!"))
|
||||
else
|
||||
user.visible_message("<span class='danger'>\The [user] hits \the [src]. Nothing happens.</span>","<span class='danger'>You hit \the [src] with no visible effect.</span>")
|
||||
user.visible_message(span_danger("\The [user] hits \the [src]. Nothing happens."),span_danger("You hit \the [src] with no visible effect."))
|
||||
src.log_append_to_last("Armor saved.")
|
||||
return
|
||||
else if ((HULK in user.mutations) && !prob(temp_deflect_chance))
|
||||
@@ -1122,7 +1122,7 @@
|
||||
src.visible_message("The [A] fastens firmly to [src].")
|
||||
return
|
||||
if(prob(temp_deflect_chance) || istype(A, /mob))
|
||||
src.occupant_message("<span class='notice'>\The [A] bounces off the armor.</span>")
|
||||
src.occupant_message(span_notice("\The [A] bounces off the armor."))
|
||||
src.visible_message("\The [A] bounces off \the [src] armor")
|
||||
src.log_append_to_last("Armor saved.")
|
||||
if(istype(A, /mob/living))
|
||||
@@ -1135,16 +1135,16 @@
|
||||
var/pass_damage = O.throwforce
|
||||
var/pass_damage_reduc_mod
|
||||
if(pass_damage <= damage_minimum)//Too little to go through. //CHOMPedit temp_damage_mininum -> damage_minimum
|
||||
src.occupant_message("<span class='notice'>\The [A] bounces off the armor.</span>")
|
||||
src.occupant_message(span_notice("\The [A] bounces off the armor."))
|
||||
src.visible_message("\The [A] bounces off \the [src] armor")
|
||||
return
|
||||
|
||||
else if(O.armor_penetration < minimum_penetration) //If you don't have enough pen, you won't do full damage //CHOMPedit, temp_minimum_penetration -> minimum_penetration
|
||||
src.occupant_message("<span class='notice'>\The [A] struggles to bypass \the [src] armor.</span>")
|
||||
src.occupant_message(span_notice("\The [A] struggles to bypass \the [src] armor."))
|
||||
src.visible_message("\The [A] struggles to bypass \the [src] armor")
|
||||
pass_damage_reduc_mod = temp_fail_penetration_value //This will apply to reduce damage to 2/3 or 66% by default
|
||||
else
|
||||
src.occupant_message("<span class='notice'>\The [A] manages to pierce \the [src] armor.</span>")
|
||||
src.occupant_message(span_notice("\The [A] manages to pierce \the [src] armor."))
|
||||
// src.visible_message("\The [A] manages to pierce \the [src] armor")
|
||||
pass_damage_reduc_mod = 1
|
||||
|
||||
@@ -1192,7 +1192,7 @@
|
||||
temp_fail_penetration_value = round(ArmC.get_efficiency() * ArmC.fail_penetration_value)
|
||||
|
||||
if(prob(temp_deflect_chance))
|
||||
src.occupant_message("<span class='notice'>The armor deflects incoming projectile.</span>")
|
||||
src.occupant_message(span_notice("The armor deflects incoming projectile."))
|
||||
src.visible_message("The [src.name] armor deflects the projectile")
|
||||
src.log_append_to_last("Armor saved.")
|
||||
return
|
||||
@@ -1211,17 +1211,17 @@
|
||||
pass_damage = ME.handle_projectile_contact(Proj, pass_damage)
|
||||
|
||||
if(pass_damage < damage_minimum)//too pathetic to really damage you. //CHOMPedit temp_damage_minimum -> damage_minimum
|
||||
src.occupant_message("<span class='notice'>The armor deflects incoming projectile.</span>")
|
||||
src.occupant_message(span_notice("The armor deflects incoming projectile."))
|
||||
src.visible_message("The [src.name] armor deflects\the [Proj]")
|
||||
return
|
||||
|
||||
else if(Proj.armor_penetration < minimum_penetration) //If you don't have enough pen, you won't do full damage //CHOMPedit temp_minimum_penetration -> damage_minimum
|
||||
src.occupant_message("<span class='notice'>\The [Proj] struggles to pierce \the [src] armor.</span>")
|
||||
src.occupant_message(span_notice("\The [Proj] struggles to pierce \the [src] armor."))
|
||||
src.visible_message("\The [Proj] struggles to pierce \the [src] armor")
|
||||
pass_damage_reduc_mod = temp_fail_penetration_value //This will apply to reduce damage to 2/3 or 66% by default
|
||||
|
||||
else //You go through completely because you use AP. Nice.
|
||||
src.occupant_message("<span class='notice'>\The [Proj] manages to pierce \the [src] armor.</span>")
|
||||
src.occupant_message(span_notice("\The [Proj] manages to pierce \the [src] armor."))
|
||||
// src.visible_message("\The [Proj] manages to pierce \the [src] armor")
|
||||
pass_damage_reduc_mod = 1
|
||||
|
||||
@@ -1294,18 +1294,18 @@
|
||||
src.take_damage(6)
|
||||
src.check_for_internal_damage(list(MECHA_INT_TEMP_CONTROL,MECHA_INT_TANK_BREACH,MECHA_INT_CONTROL_LOST))
|
||||
playsound(src, 'sound/effects/blobattack.ogg', 50, 1, -1)
|
||||
to_chat(user, "<span class='danger'>You smash at the armored suit!</span>")
|
||||
to_chat(user, span_danger("You smash at the armored suit!"))
|
||||
for (var/mob/V in viewers(src))
|
||||
if(V.client && !(V.blinded))
|
||||
V.show_message("<span class='danger'>\The [user] smashes against [src.name]'s armor!</span>", 1)
|
||||
V.show_message(span_danger("\The [user] smashes against [src.name]'s armor!"), 1)
|
||||
else
|
||||
src.log_append_to_last("Armor saved.")
|
||||
playsound(src, 'sound/effects/blobattack.ogg', 50, 1, -1)
|
||||
to_chat(user, "<span class='warning'>Your attack had no effect!</span>")
|
||||
src.occupant_message("<span class='warning'>\The [user]'s attack is stopped by the armor.</span>")
|
||||
to_chat(user, span_warning("Your attack had no effect!"))
|
||||
src.occupant_message(span_warning("\The [user]'s attack is stopped by the armor."))
|
||||
for (var/mob/V in viewers(src))
|
||||
if(V.client && !(V.blinded))
|
||||
V.show_message("<span class='warning'>\The [user] rebounds off the [src.name] armor!</span>", 1)
|
||||
V.show_message(span_warning("\The [user] rebounds off the [src.name] armor!"), 1)
|
||||
return
|
||||
*/
|
||||
|
||||
@@ -1350,17 +1350,17 @@
|
||||
temp_fail_penetration_value = round(ArmC.get_efficiency() * ArmC.fail_penetration_value)
|
||||
|
||||
if(prob(temp_deflect_chance)) //Does your attack get deflected outright.
|
||||
src.occupant_message("<span class='notice'>\The [W] bounces off [src.name].</span>")
|
||||
to_chat(user, "<span class='danger'>\The [W] bounces off [src.name].</span>")
|
||||
src.occupant_message(span_notice("\The [W] bounces off [src.name]."))
|
||||
to_chat(user, span_danger("\The [W] bounces off [src.name]."))
|
||||
src.log_append_to_last("Armor saved.")
|
||||
|
||||
else if(W.force < damage_minimum) //Is your attack too PATHETIC to do anything. 3 damage to a person shouldn't do anything to a mech. //CHOMPedit temp_damage_minimum -> damage_minumum
|
||||
src.occupant_message("<span class='notice'>\The [W] bounces off the armor.</span>")
|
||||
src.occupant_message(span_notice("\The [W] bounces off the armor."))
|
||||
src.visible_message("\The [W] bounces off \the [src] armor")
|
||||
return
|
||||
|
||||
else if(W.armor_penetration < minimum_penetration) //If you don't have enough pen, you won't do full damage ////CHOMPedit temp_minimum_penetration -> minimum_penetration
|
||||
src.occupant_message("<span class='notice'>\The [W] struggles to bypass \the [src] armor.</span>")
|
||||
src.occupant_message(span_notice("\The [W] struggles to bypass \the [src] armor."))
|
||||
src.visible_message("\The [W] struggles to bypass \the [src] armor")
|
||||
pass_damage_reduc_mod = temp_fail_penetration_value //This will apply to reduce damage to 2/3 or 66% by default
|
||||
|
||||
@@ -1432,9 +1432,9 @@
|
||||
output_maintenance_dialog(id_card, user)
|
||||
return
|
||||
else
|
||||
to_chat(user, "<span class='warning'>Invalid ID: Access denied.</span>")
|
||||
to_chat(user, span_warning("Invalid ID: Access denied."))
|
||||
else
|
||||
to_chat(user, "<span class='warning'>Maintenance protocols disabled by operator.</span>")
|
||||
to_chat(user, span_warning("Maintenance protocols disabled by operator."))
|
||||
else if(W.has_tool_quality(TOOL_WRENCH))
|
||||
if(state==MECHA_BOLTS_SECURED)
|
||||
state = MECHA_PANEL_LOOSE
|
||||
@@ -1457,7 +1457,7 @@
|
||||
if(istype(MC))
|
||||
removable_components[MC.name] = MC
|
||||
else
|
||||
to_chat(user, "<span class='notice'>\The [src] appears to be missing \the [slot].</span>")
|
||||
to_chat(user, span_notice("\The [src] appears to be missing \the [slot]."))
|
||||
|
||||
var/remove = tgui_input_list(user, "Which component do you want to pry out?", "Remove Component", removable_components)
|
||||
if(!remove)
|
||||
@@ -1498,8 +1498,8 @@
|
||||
src.go_out()
|
||||
src.log_message("[src.occupant] was ejected using the maintenance controls.")
|
||||
else
|
||||
to_chat(user, "<span class='warning'>Your attempt is rejected.</span>")
|
||||
src.occupant_message("<span class='warning'>An attempt to eject you was made using the maintenance controls.</span>")
|
||||
to_chat(user, span_warning("Your attempt is rejected."))
|
||||
src.occupant_message(span_warning("An attempt to eject you was made using the maintenance controls."))
|
||||
src.log_message("Eject attempt made using maintenance controls - rejected.")
|
||||
return
|
||||
|
||||
@@ -1522,20 +1522,20 @@
|
||||
if (WT.remove_fuel(0,user))
|
||||
if (hasInternalDamage(MECHA_INT_TANK_BREACH))
|
||||
clearInternalDamage(MECHA_INT_TANK_BREACH)
|
||||
to_chat(user, "<span class='notice'>You repair the damaged gas tank.</span>")
|
||||
to_chat(user, span_notice("You repair the damaged gas tank."))
|
||||
else
|
||||
return
|
||||
if((src.health<initial(src.health)) || (HC.integrity<HC.max_integrity) || (AC.integrity<AC.max_integrity))
|
||||
if(src.health<initial(src.health))
|
||||
to_chat(user, "<span class='notice'>You repair some damage to [src.name].</span>")
|
||||
to_chat(user, span_notice("You repair some damage to [src.name]."))
|
||||
src.health += min(10, initial(src.health)-src.health)
|
||||
update_damage_alerts()
|
||||
else if(HC.integrity<HC.max_integrity)
|
||||
to_chat(user, "<span class='notice'>You repair some damage to [HC.name].</span>")
|
||||
to_chat(user, span_notice("You repair some damage to [HC.name]."))
|
||||
HC.integrity += min(10, HC.max_integrity-HC.integrity)
|
||||
update_damage_alerts()
|
||||
else if(AC.integrity<AC.max_integrity)
|
||||
to_chat(user, "<span class='notice'>You repair some damage to [AC.name].</span>")
|
||||
to_chat(user, span_notice("You repair some damage to [AC.name]."))
|
||||
AC.integrity += min(10, AC.max_integrity-AC.integrity)
|
||||
update_damage_alerts()
|
||||
|
||||
@@ -1557,30 +1557,30 @@
|
||||
var/obj/item/mecha_parts/component/C = internal_components[slot]
|
||||
|
||||
if(!C)
|
||||
to_chat(user, "<span class='notice'>There are no components installed!</span>")
|
||||
to_chat(user, span_notice("There are no components installed!"))
|
||||
return
|
||||
|
||||
if(C.integrity >= C.max_integrity)
|
||||
to_chat(user, "<span class='notice'>\The [C] does not require repairs.</span>")
|
||||
to_chat(user, span_notice("\The [C] does not require repairs."))
|
||||
|
||||
else if(C.integrity < C.max_integrity)
|
||||
to_chat(user, "<span class='notice'>You start to repair damage to \the [C].</span>")
|
||||
to_chat(user, span_notice("You start to repair damage to \the [C]."))
|
||||
while(C.integrity < C.max_integrity && NP)
|
||||
if(do_after(user, 1 SECOND, src))
|
||||
NP.use(1)
|
||||
C.adjust_integrity(NP.mech_repair)
|
||||
|
||||
if(C.integrity >= C.max_integrity)
|
||||
to_chat(user, "<span class='notice'>You finish repairing \the [C].</span>")
|
||||
to_chat(user, span_notice("You finish repairing \the [C]."))
|
||||
break
|
||||
|
||||
else if(NP.amount == 0)
|
||||
to_chat(user, "<span class='warning'>Insufficient nanopaste to complete repairs!</span>")
|
||||
to_chat(user, span_warning("Insufficient nanopaste to complete repairs!"))
|
||||
break
|
||||
return
|
||||
|
||||
else
|
||||
to_chat(user, "<span class='notice'>You can't reach \the [src]'s internal components.</span>")
|
||||
to_chat(user, span_notice("You can't reach \the [src]'s internal components."))
|
||||
return
|
||||
|
||||
else
|
||||
@@ -1588,7 +1588,7 @@
|
||||
/*
|
||||
src.log_message("Attacked by [W]. Attacker - [user]")
|
||||
if(prob(src.deflect_chance))
|
||||
to_chat(user, "<span class='warning'>\The [W] bounces off [src.name] armor.</span>")
|
||||
to_chat(user, span_warning("\The [W] bounces off [src.name] armor."))
|
||||
src.log_append_to_last("Armor saved.")
|
||||
/*
|
||||
for (var/mob/V in viewers(src))
|
||||
@@ -1636,7 +1636,7 @@
|
||||
//Added a message here since people assume their first click failed or something./N
|
||||
// to_chat(user, "Installing MMI, please stand by.")
|
||||
|
||||
visible_message("<span class='notice'>[usr] starts to insert a brain into [src.name]</span>")
|
||||
visible_message(span_notice("[usr] starts to insert a brain into [src.name]"))
|
||||
|
||||
if(enter_after(40,user))
|
||||
if(!occupant)
|
||||
@@ -1791,12 +1791,12 @@
|
||||
var/obj/machinery/atmospherics/portables_connector/possible_port = locate(/obj/machinery/atmospherics/portables_connector) in T
|
||||
if(possible_port)
|
||||
if(connect(possible_port))
|
||||
occupant_message("<span class='notice'>\The [name] connects to the port.</span>")
|
||||
occupant_message(span_notice("\The [name] connects to the port."))
|
||||
verbs += /obj/mecha/verb/disconnect_from_port
|
||||
verbs -= /obj/mecha/verb/connect_to_port
|
||||
return
|
||||
else
|
||||
occupant_message("<span class='danger'>\The [name] failed to connect to the port.</span>")
|
||||
occupant_message(span_danger("\The [name] failed to connect to the port."))
|
||||
return
|
||||
else
|
||||
occupant_message("Nothing happens")
|
||||
@@ -1815,11 +1815,11 @@
|
||||
return
|
||||
|
||||
if(disconnect())
|
||||
occupant_message("<span class='notice'>[name] disconnects from the port.</span>")
|
||||
occupant_message(span_notice("[name] disconnects from the port."))
|
||||
verbs -= /obj/mecha/verb/disconnect_from_port
|
||||
verbs += /obj/mecha/verb/connect_to_port
|
||||
else
|
||||
occupant_message("<span class='danger'>[name] is not connected to the port at the moment.</span>")
|
||||
occupant_message(span_danger("[name] is not connected to the port at the moment."))
|
||||
|
||||
/obj/mecha/verb/toggle_lights()
|
||||
set name = "Toggle Lights"
|
||||
@@ -1852,11 +1852,11 @@
|
||||
|
||||
var/obj/item/mecha_parts/component/gas/GC = internal_components[MECH_GAS]
|
||||
if(!GC)
|
||||
to_chat(occupant, "<span class='warning'>The life support systems don't seem to respond.</span>")
|
||||
to_chat(occupant, span_warning("The life support systems don't seem to respond."))
|
||||
return
|
||||
|
||||
if(!prob(GC.get_efficiency() * 100))
|
||||
to_chat(occupant, "<span class='warning'>\The [GC] shudders and barks, before returning to how it was before.</span>")
|
||||
to_chat(occupant, span_warning("\The [GC] shudders and barks, before returning to how it was before."))
|
||||
return
|
||||
|
||||
use_internal_tank = !use_internal_tank
|
||||
@@ -1911,22 +1911,22 @@
|
||||
return
|
||||
|
||||
if (usr.buckled)
|
||||
to_chat(usr, "<span class='warning'>You can't climb into the exosuit while buckled!</span>")
|
||||
to_chat(usr, span_warning("You can't climb into the exosuit while buckled!"))
|
||||
return
|
||||
|
||||
src.log_message("[usr] tries to move in.")
|
||||
if(iscarbon(usr))
|
||||
var/mob/living/carbon/C = usr
|
||||
if(C.handcuffed)
|
||||
to_chat(usr, "<span class='danger'>Kinda hard to climb in while handcuffed don't you think?</span>")
|
||||
to_chat(usr, span_danger("Kinda hard to climb in while handcuffed don't you think?"))
|
||||
return
|
||||
if (src.occupant)
|
||||
to_chat(usr, "<span class='danger'>The [src.name] is already occupied!</span>")
|
||||
to_chat(usr, span_danger("The [src.name] is already occupied!"))
|
||||
src.log_append_to_last("Permission denied.")
|
||||
return
|
||||
/*
|
||||
if (usr.abiotic())
|
||||
to_chat(usr, "<span class='notice'>Subject cannot have abiotic items on.</span>")
|
||||
to_chat(usr, span_notice("Subject cannot have abiotic items on."))
|
||||
return
|
||||
*/
|
||||
var/passed
|
||||
@@ -1936,7 +1936,7 @@
|
||||
else if(src.operation_allowed(usr))
|
||||
passed = 1
|
||||
if(!passed)
|
||||
to_chat(usr, "<span class='warning'>Access denied</span>")
|
||||
to_chat(usr, span_warning("Access denied"))
|
||||
src.log_append_to_last("Permission denied.")
|
||||
return
|
||||
if(isliving(usr))
|
||||
@@ -1947,7 +1947,7 @@
|
||||
|
||||
// to_chat(usr, "You start climbing into [src.name]")
|
||||
if(get_equipment(/obj/item/mecha_parts/mecha_equipment/runningboard))
|
||||
visible_message("<span class='notice'>\The [usr] is instantly lifted into [src.name] by the running board!</span>")
|
||||
visible_message(span_notice("\The [usr] is instantly lifted into [src.name] by the running board!"))
|
||||
moved_inside(usr)
|
||||
if(ishuman(occupant))
|
||||
GrantActions(occupant, 1)
|
||||
@@ -2236,8 +2236,8 @@
|
||||
var/obj/item/mecha_parts/component/armor/AC = internal_components[MECH_ARMOR]
|
||||
|
||||
var/output = {"[report_internal_damage()]
|
||||
<b>Armor Integrity: </b>[AC?"[round(AC.integrity / AC.max_integrity * 100, 0.1)]%":"<span class='warning'>ARMOR MISSING</span>"]<br>
|
||||
<b>Hull Integrity: </b>[HC?"[round(HC.integrity / HC.max_integrity * 100, 0.1)]%":"<span class='warning'>HULL MISSING</span>"]<br>
|
||||
<b>Armor Integrity: </b>[AC?"[round(AC.integrity / AC.max_integrity * 100, 0.1)]%":span_warning("ARMOR MISSING")]<br>
|
||||
<b>Hull Integrity: </b>[HC?"[round(HC.integrity / HC.max_integrity * 100, 0.1)]%":span_warning("HULL MISSING")]<br>
|
||||
[integrity<30?"<font color='red'><b>DAMAGE LEVEL CRITICAL</b></font><br>":null]
|
||||
<b>Chassis Integrity: </b> [integrity]%<br>
|
||||
<b>Powercell charge: </b>[isnull(cell_charge)?"No powercell installed":"[cell.percent()]%"]<br>
|
||||
@@ -2581,7 +2581,7 @@
|
||||
passengers["[P.occupant]"] = P
|
||||
|
||||
if (!passengers)
|
||||
to_chat(user, "<span class='warning'>There are no passengers to remove.</span>")
|
||||
to_chat(user, span_warning("There are no passengers to remove."))
|
||||
return
|
||||
|
||||
var/pname = tgui_input_list(user, "Choose a passenger to forcibly remove.", "Forcibly Remove Passenger", passengers)
|
||||
@@ -2592,11 +2592,11 @@
|
||||
var/obj/item/mecha_parts/mecha_equipment/tool/passenger/P = passengers[pname]
|
||||
var/mob/occupant = P.occupant
|
||||
|
||||
user.visible_message("<b>\The [user]</b> begins opening the hatch on \the [P]...", "<span class='notice'>You begin opening the hatch on \the [P]...</span>")
|
||||
user.visible_message("<b>\The [user]</b> begins opening the hatch on \the [P]...", span_notice("You begin opening the hatch on \the [P]..."))
|
||||
if (!do_after(user, 40))
|
||||
return
|
||||
|
||||
user.visible_message("<b>\The [user]</b> opens the hatch on \the [P] and removes [occupant]!", "<span class='notice'>You open the hatch on \the [P] and remove [occupant]!</span>")
|
||||
user.visible_message("<b>\The [user]</b> opens the hatch on \the [P] and removes [occupant]!", span_notice("You open the hatch on \the [P] and remove [occupant]!"))
|
||||
P.go_out()
|
||||
P.log_message("[occupant] was removed.")
|
||||
return
|
||||
@@ -2644,7 +2644,7 @@
|
||||
if(href_list["drop_from_cargo"])
|
||||
var/obj/O = locate(href_list["drop_from_cargo"])
|
||||
if(O && (O in src.cargo))
|
||||
src.occupant_message("<span class='notice'>You unload [O].</span>")
|
||||
src.occupant_message(span_notice("You unload [O]."))
|
||||
O.forceMove(get_turf(src))
|
||||
src.cargo -= O
|
||||
var/turf/T = get_turf(O)
|
||||
@@ -2782,13 +2782,13 @@
|
||||
|
||||
if(prob(temp_deflect_chance))//Deflected
|
||||
src.log_append_to_last("Armor saved.")
|
||||
src.occupant_message("<span class='notice'>\The [user]'s attack is stopped by the armor.</span>")
|
||||
src.occupant_message(span_notice("\The [user]'s attack is stopped by the armor."))
|
||||
visible_message("<b>\The [user]</b> rebounds off [src.name]'s armor!")
|
||||
user.attack_log += text("\[[time_stamp()]\] [span_red("attacked [src.name]")]")
|
||||
playsound(src, 'sound/weapons/slash.ogg', 50, 1, -1)
|
||||
|
||||
else if(damage < damage_minimum)//Pathetic damage levels just don't harm MECH. //CHOMPedit temp_damage_minimum -> damage_minimum
|
||||
src.occupant_message("<span class='notice'>\The [user]'s doesn't dent \the [src] paint.</span>")
|
||||
src.occupant_message(span_notice("\The [user]'s doesn't dent \the [src] paint."))
|
||||
src.visible_message("\The [user]'s attack doesn't dent \the [src] armor")
|
||||
src.log_append_to_last("Armor saved.")
|
||||
playsound(src, 'sound/effects/Glasshit.ogg', 50, 1)
|
||||
@@ -2798,7 +2798,7 @@
|
||||
src.take_damage(damage) //Apply damage - The take_damage() proc handles armor values
|
||||
if(damage > internal_damage_minimum) //Only decently painful attacks trigger a chance of mech damage.
|
||||
src.check_for_internal_damage(list(MECHA_INT_TEMP_CONTROL,MECHA_INT_TANK_BREACH,MECHA_INT_CONTROL_LOST))
|
||||
visible_message("<span class='danger'>[user] [attack_message] [src]!</span>")
|
||||
visible_message(span_danger("[user] [attack_message] [src]!"))
|
||||
user.attack_log += text("\[[time_stamp()]\] [span_red("attacked [src.name]")]")
|
||||
|
||||
return 1
|
||||
@@ -2896,7 +2896,7 @@
|
||||
|
||||
var/damage = rand(blob.damage_lower, blob.damage_upper)
|
||||
src.take_damage(damage, blob.damage_type)
|
||||
visible_message("<span class='danger'>\The [B] [blob.attack_verb] \the [src]!</span>", "<span class='danger'>[blob.attack_message_synth]!</span>")
|
||||
visible_message(span_danger("\The [B] [blob.attack_verb] \the [src]!"), span_danger("[blob.attack_message_synth]!"))
|
||||
playsound(src, 'sound/effects/attackblob.ogg', 50, 1)
|
||||
|
||||
return ..()
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
else
|
||||
to_chat(user, "You failed to salvage anything valuable from [src].")
|
||||
else
|
||||
to_chat(user, "<span class='notice'>You need more welding fuel to complete this task.</span>")
|
||||
to_chat(user, span_notice("You need more welding fuel to complete this task."))
|
||||
return
|
||||
if(W.has_tool_quality(TOOL_WIRECUTTER))
|
||||
if(salvage_num <= 0)
|
||||
|
||||
@@ -122,7 +122,7 @@
|
||||
/obj/mecha/micro/move_inside()
|
||||
var/mob/living/carbon/C = usr
|
||||
if (C.get_effective_size(TRUE) >= 0.5)
|
||||
to_chat(C, "<span class='warning'>You can't fit in this suit!</span>")
|
||||
to_chat(C, span_warning("You can't fit in this suit!"))
|
||||
return
|
||||
else
|
||||
..()
|
||||
@@ -130,7 +130,7 @@
|
||||
/obj/mecha/micro/move_inside_passenger()
|
||||
var/mob/living/carbon/C = usr
|
||||
if (C.get_effective_size(TRUE) >= 0.5)
|
||||
to_chat(C, "<span class='warning'>You can't fit in this suit!</span>")
|
||||
to_chat(C, span_warning("You can't fit in this suit!"))
|
||||
return
|
||||
else
|
||||
..()
|
||||
|
||||
@@ -120,8 +120,8 @@
|
||||
if(!target_obj.vars.Find("unacidable") || target_obj.unacidable) return
|
||||
set_ready_state(0)
|
||||
chassis.use_power(energy_drain)
|
||||
chassis.visible_message("<span class='danger'>[chassis] starts to drill [target]</span>", "<span class='warning'>You hear the drill.</span>")
|
||||
occupant_message("<span class='danger'>You start to drill [target]</span>")
|
||||
chassis.visible_message(span_danger("[chassis] starts to drill [target]"), span_warning("You hear the drill."))
|
||||
occupant_message(span_danger("You start to drill [target]"))
|
||||
var/T = chassis.loc
|
||||
var/C = target.loc //why are these backwards? we may never know -Pete
|
||||
if(do_after_cooldown(target))
|
||||
@@ -129,7 +129,7 @@
|
||||
if(istype(target, /turf/simulated/wall))
|
||||
var/turf/simulated/wall/W = target
|
||||
if(W.reinf_material)
|
||||
occupant_message("<span class='warning'>[target] is too durable to drill through.</span>")
|
||||
occupant_message(span_warning("[target] is too durable to drill through."))
|
||||
else
|
||||
log_message("Drilled through [target]")
|
||||
target.ex_act(2)
|
||||
@@ -143,7 +143,7 @@
|
||||
for(var/obj/item/ore/ore in range(chassis,1))
|
||||
if(get_dir(chassis,ore)&chassis.dir)
|
||||
if (ore_box.contents.len >= ore_box.orecapacity)
|
||||
occupant_message("<span class='warning'>The ore compartment is full.</span>")
|
||||
occupant_message(span_warning("The ore compartment is full."))
|
||||
return 1
|
||||
else
|
||||
ore.forceMove(ore_box)
|
||||
@@ -169,8 +169,8 @@
|
||||
if(!action_checks(target)) return
|
||||
set_ready_state(0)
|
||||
chassis.use_power(energy_drain)
|
||||
chassis.visible_message("<span class='info'>[chassis] sweeps around with its ore scoop.</span>")
|
||||
occupant_message("<span class='info'>You sweep around the area with the scoop.</span>")
|
||||
chassis.visible_message(span_info("[chassis] sweeps around with its ore scoop."))
|
||||
occupant_message(span_info("You sweep around the area with the scoop."))
|
||||
var/T = chassis.loc
|
||||
//var/C = target.loc //why are these backwards? we may never know -Pete
|
||||
if(do_after_cooldown(target))
|
||||
@@ -178,7 +178,7 @@
|
||||
for(var/obj/item/ore/ore in range(chassis,1))
|
||||
if(get_dir(chassis,ore)&chassis.dir)
|
||||
if (contents.len >= orecapacity)
|
||||
occupant_message("<span class='warning'>The ore compartment is full.</span>")
|
||||
occupant_message(span_warning("The ore compartment is full."))
|
||||
return 1
|
||||
else
|
||||
ore.Move(src)
|
||||
@@ -204,7 +204,7 @@
|
||||
set src in view(1)
|
||||
|
||||
if(!istype(usr, /mob/living/carbon/human)) //Only living, intelligent creatures with hands can empty ore boxes.
|
||||
to_chat(usr, "<span class='warning'>You are physically incapable of emptying the ore box.</span>")
|
||||
to_chat(usr, span_warning("You are physically incapable of emptying the ore box."))
|
||||
return
|
||||
|
||||
if( usr.stat || usr.restrained() )
|
||||
@@ -217,12 +217,12 @@
|
||||
add_fingerprint(usr)
|
||||
|
||||
if(contents.len < 1)
|
||||
to_chat(usr, "<span class='warning'>The ore box is empty</span>")
|
||||
to_chat(usr, span_warning("The ore box is empty"))
|
||||
return
|
||||
|
||||
for (var/obj/item/ore/O in contents)
|
||||
contents -= O
|
||||
O.loc = src.loc
|
||||
to_chat(usr, "<span class='info'>You empty the ore box</span>")
|
||||
to_chat(usr, span_info("You empty the ore box"))
|
||||
|
||||
return */
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
if (href_list["toggle_stabilization"])
|
||||
stabilization_enabled = !stabilization_enabled
|
||||
send_byjax(src.occupant,"exosuit.browser","stabilization_command","[stabilization_enabled?"Dis":"En"]able thruster stabilization")
|
||||
src.occupant_message("<span class='notice'>Thruster stabilization [stabilization_enabled? "enabled" : "disabled"].</span>")
|
||||
src.occupant_message(span_notice("Thruster stabilization [stabilization_enabled? "enabled" : "disabled"]."))
|
||||
return
|
||||
|
||||
/obj/mecha/working/hoverpod/get_commands()
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
if(href_list["drop_from_cargo"])
|
||||
var/obj/O = locate(href_list["drop_from_cargo"])
|
||||
if(O && O in src.cargo)
|
||||
src.occupant_message("<span class='notice'>You unload [O].</span>")
|
||||
src.occupant_message(span_notice("You unload [O]."))
|
||||
O.loc = get_turf(src)
|
||||
src.cargo -= O
|
||||
var/turf/T = get_turf(O)
|
||||
|
||||
Reference in New Issue
Block a user