mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-24 05:23:22 +01:00
The Great Spanning (#9320)
This PR get rid of all (most of) the span("thing", spans and replaces them with the SPAN_THING( variant, which has gained more popularity recently.
This commit is contained in:
@@ -182,10 +182,10 @@
|
||||
|
||||
/obj/machinery/mineral/processing_unit_console/proc/print_report(var/mob/living/user)
|
||||
if(!inserted_id)
|
||||
to_chat(user, span("warning", "No ID inserted. Cannot digitally sign."))
|
||||
to_chat(user, SPAN_WARNING("No ID inserted. Cannot digitally sign."))
|
||||
return
|
||||
if(!input_mats.len && !output_mats.len && !alloy_mats)
|
||||
to_chat(user, span("warning", "There is no data to print."))
|
||||
to_chat(user, SPAN_WARNING("There is no data to print."))
|
||||
return
|
||||
if(printing)
|
||||
return
|
||||
|
||||
@@ -779,7 +779,7 @@
|
||||
if(istype(target, /mob/living/simple_animal))
|
||||
var/mob/living/simple_animal/M = target
|
||||
if(!(M.find_type() & revive_type))
|
||||
to_chat(user, span("info", "\The [src] does not work on this sort of creature."))
|
||||
to_chat(user, SPAN_INFO("\The [src] does not work on this sort of creature."))
|
||||
return
|
||||
if(M.stat == DEAD)
|
||||
if(!malfunctioning)
|
||||
@@ -792,10 +792,10 @@
|
||||
playsound(src, 'sound/effects/refill.ogg', 50, TRUE)
|
||||
return
|
||||
else
|
||||
to_chat(user, span("info", "\The [src] is only effective on the dead."))
|
||||
to_chat(user, SPAN_INFO("\The [src] is only effective on the dead."))
|
||||
return
|
||||
else
|
||||
to_chat(user, span("info", "\The [src] is only effective on lesser beings."))
|
||||
to_chat(user, SPAN_INFO("\The [src] is only effective on lesser beings."))
|
||||
return
|
||||
|
||||
/obj/item/lazarus_injector/emp_act()
|
||||
@@ -805,9 +805,9 @@
|
||||
/obj/item/lazarus_injector/examine(mob/user)
|
||||
..()
|
||||
if(!loaded)
|
||||
to_chat(user, span("info", "\The [src] is empty."))
|
||||
to_chat(user, SPAN_INFO("\The [src] is empty."))
|
||||
if(malfunctioning)
|
||||
to_chat(user, span("info", "The display on \the [src] seems to be flickering."))
|
||||
to_chat(user, SPAN_INFO("The display on \the [src] seems to be flickering."))
|
||||
|
||||
/**********************Point Transfer Card**********************/
|
||||
|
||||
@@ -822,10 +822,10 @@
|
||||
if(points)
|
||||
var/obj/item/card/id/C = I
|
||||
C.mining_points += points
|
||||
to_chat(user, span("info", "You transfer [points] points to \the [C]."))
|
||||
to_chat(user, SPAN_INFO("You transfer [points] points to \the [C]."))
|
||||
points = 0
|
||||
else
|
||||
to_chat(user, span("info", "There's no points left on \the [src]."))
|
||||
to_chat(user, SPAN_INFO("There's no points left on \the [src]."))
|
||||
..()
|
||||
|
||||
/obj/item/card/mining_point_card/examine(mob/user)
|
||||
@@ -981,10 +981,10 @@ var/list/total_extraction_beacons = list()
|
||||
/obj/item/resonator/attack_self(mob/user)
|
||||
if(burst_time == 50)
|
||||
burst_time = 30
|
||||
to_chat(user, span("info", "You set the resonator's fields to detonate after 3 seconds."))
|
||||
to_chat(user, SPAN_INFO("You set the resonator's fields to detonate after 3 seconds."))
|
||||
else
|
||||
burst_time = 50
|
||||
to_chat(user, span("info", "You set the resonator's fields to detonate after 5 seconds."))
|
||||
to_chat(user, SPAN_INFO("You set the resonator's fields to detonate after 5 seconds."))
|
||||
|
||||
/obj/item/resonator/afterattack(atom/target, mob/user, proximity_flag)
|
||||
..()
|
||||
|
||||
@@ -105,22 +105,22 @@ var/list/mineral_can_smooth_with = list(
|
||||
if(mineral)
|
||||
switch(mined_ore)
|
||||
if(0)
|
||||
to_chat(user, span("info", "It is ripe with [mineral.display_name]."))
|
||||
to_chat(user, SPAN_INFO("It is ripe with [mineral.display_name]."))
|
||||
if(1)
|
||||
to_chat(user, span("info", "Its [mineral.display_name] looks a little depleted."))
|
||||
to_chat(user, SPAN_INFO("Its [mineral.display_name] looks a little depleted."))
|
||||
if(2)
|
||||
to_chat(user, span("info", "Its [mineral.display_name] looks very depleted!"))
|
||||
to_chat(user, SPAN_INFO("Its [mineral.display_name] looks very depleted!"))
|
||||
else
|
||||
to_chat(user, span("info", "It is devoid of any valuable minerals."))
|
||||
to_chat(user, SPAN_INFO("It is devoid of any valuable minerals."))
|
||||
switch(emitter_blasts_taken)
|
||||
if(0)
|
||||
to_chat(user, span("info", "It is in pristine condition."))
|
||||
to_chat(user, SPAN_INFO("It is in pristine condition."))
|
||||
if(1)
|
||||
to_chat(user, span("info", "It appears a little damaged."))
|
||||
to_chat(user, SPAN_INFO("It appears a little damaged."))
|
||||
if(2)
|
||||
to_chat(user, span("info", "It is crumbling!"))
|
||||
to_chat(user, SPAN_INFO("It is crumbling!"))
|
||||
if(3)
|
||||
to_chat(user, span("info", "It looks ready to collapse at any moment!"))
|
||||
to_chat(user, SPAN_INFO("It looks ready to collapse at any moment!"))
|
||||
|
||||
/turf/simulated/mineral/ex_act(severity)
|
||||
switch(severity)
|
||||
@@ -808,7 +808,7 @@ var/list/asteroid_floor_smooth = list(
|
||||
var/area/below_area = get_area(below) // Let's just assume that the turf is not in nullspace.
|
||||
if(below_area.station_area)
|
||||
if(user)
|
||||
to_chat(user, span("alert", "You strike metal!"))
|
||||
to_chat(user, SPAN_ALERT("You strike metal!"))
|
||||
below.spawn_roof(ROOF_FORCE_SPAWN)
|
||||
else
|
||||
ChangeTurf(/turf/space)
|
||||
|
||||
@@ -76,27 +76,27 @@
|
||||
welcome_drone()
|
||||
|
||||
/mob/living/silicon/robot/drone/mining/welcome_drone()
|
||||
to_chat(src, span("danger", "<b>You are a mining drone, a tiny-brained robotic industrial machine.</b>"))
|
||||
to_chat(src, span("danger", "You have little individual will, some personality, and no drives or urges other than your laws and the art of mining."))
|
||||
to_chat(src, span("danger", "Remember, <b>you DO NOT take orders from the AI.</b>"))
|
||||
to_chat(src, SPAN_DANGER("<b>You are a mining drone, a tiny-brained robotic industrial machine.</b>"))
|
||||
to_chat(src, SPAN_DANGER("You have little individual will, some personality, and no drives or urges other than your laws and the art of mining."))
|
||||
to_chat(src, SPAN_DANGER("Remember, <b>you DO NOT take orders from the AI.</b>"))
|
||||
|
||||
/mob/living/silicon/robot/drone/mining/attackby(obj/item/W, mob/user)
|
||||
if(istype(W, /obj/item/borg/upgrade))
|
||||
to_chat(user, span("warning", "\The [src] is not compatible with \the [W]."))
|
||||
to_chat(user, SPAN_WARNING("\The [src] is not compatible with \the [W]."))
|
||||
return
|
||||
|
||||
else if (istype(W, /obj/item/card/id) || istype(W, /obj/item/device/pda))
|
||||
if(!allowed(user))
|
||||
to_chat(user, span("warning", "Access denied."))
|
||||
to_chat(user, SPAN_WARNING("Access denied."))
|
||||
return
|
||||
if(seeking_player)
|
||||
to_chat(user, SPAN_WARNING("\The [src] is already in the reboot process."))
|
||||
return
|
||||
if(!config.allow_drone_spawn || emagged || health < -maxHealth) //It's dead, Dave.
|
||||
to_chat(user, span("warning", "The interface is fried, and a distressing burned smell wafts from the robot's interior. You're not rebooting this one."))
|
||||
to_chat(user, SPAN_WARNING("The interface is fried, and a distressing burned smell wafts from the robot's interior. You're not rebooting this one."))
|
||||
return
|
||||
|
||||
user.visible_message(span("warning", "\The [user] swipes \his ID card through \the [src], attempting to reboot it."), span("warning", "You swipe your ID card through \the [src], attempting to reboot it."))
|
||||
user.visible_message(SPAN_WARNING("\The [user] swipes \his ID card through \the [src], attempting to reboot it."), SPAN_WARNING("You swipe your ID card through \the [src], attempting to reboot it."))
|
||||
request_player()
|
||||
return
|
||||
..()
|
||||
@@ -109,7 +109,7 @@
|
||||
var/turf/T = get_turf(src)
|
||||
if (!T || isStationLevel(T.z))
|
||||
return
|
||||
to_chat(src, span("danger", "WARNING: Removal from NanoTrasen property detected. Anti-Theft mode activated."))
|
||||
to_chat(src, SPAN_DANGER("WARNING: Removal from NanoTrasen property detected. Anti-Theft mode activated."))
|
||||
gib()
|
||||
|
||||
/**********************Minebot Upgrades**********************/
|
||||
@@ -124,11 +124,11 @@
|
||||
if(!istype(M) || !proximity)
|
||||
return
|
||||
if(upgrade_bot(M, user))
|
||||
to_chat(user, span("notice", "You successfully install \the [src] into \the [M]."))
|
||||
to_chat(user, SPAN_NOTICE("You successfully install \the [src] into \the [M]."))
|
||||
|
||||
/obj/item/device/mine_bot_upgrade/proc/upgrade_bot(var/mob/living/silicon/robot/drone/mining/M, mob/user)
|
||||
if(M.melee_upgrade)
|
||||
to_chat(user, span("warning", "[src] already has a drill upgrade installed!"))
|
||||
to_chat(user, SPAN_WARNING("[src] already has a drill upgrade installed!"))
|
||||
return
|
||||
M.mod_type = initial(M.mod_type)
|
||||
M.uneq_all()
|
||||
@@ -149,7 +149,7 @@
|
||||
|
||||
/obj/item/device/mine_bot_upgrade/health/upgrade_bot(var/mob/living/silicon/robot/drone/mining/M, mob/user)
|
||||
if(M.health_upgrade)
|
||||
to_chat(user, span("warning", "[src] already has a reinforced chassis!"))
|
||||
to_chat(user, SPAN_WARNING("[src] already has a reinforced chassis!"))
|
||||
return
|
||||
M.maxHealth = 100
|
||||
M.health += 55
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
S.remove_from_storage_deferred(O, src, user) //This will move the item to this item's contents
|
||||
CHECK_TICK
|
||||
S.post_remove_from_storage_deferred(loc, user)
|
||||
to_chat(user, span("notice", "You empty the satchel into the box."))
|
||||
to_chat(user, SPAN_NOTICE("You empty the satchel into the box."))
|
||||
if(istype(W, /obj/item/warp_core))
|
||||
if(warp_core)
|
||||
to_chat(user, SPAN_WARNING("\The [src] already has a warp core attached!"))
|
||||
|
||||
Reference in New Issue
Block a user