[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:
CHOMPStation2
2024-10-04 06:00:17 -07:00
committed by GitHub
parent 43ee646816
commit ab154b48b2
1511 changed files with 12497 additions and 12357 deletions

View File

@@ -24,7 +24,7 @@
/datum/malf_hardware/apu_gen/get_examine_desc()
var/msg = "It seems to have some sort of power generator attached to its core."
if(owner.hardware_integrity() < 50)
msg += "<span class='warning'> It seems to be too damaged to function properly.</span>"
msg += span_warning(" It seems to be too damaged to function properly.")
else if(owner.APU_power)
msg += " The generator appears to be active."
return msg
@@ -49,7 +49,7 @@
driver = /datum/game_mode/malfunction/verb/ai_self_destruct
/datum/malf_hardware/core_bomb/get_examine_desc()
return "<span class='warning'>It seems to have grey blocks of unknown substance and some circuitry connected to it's core. [owner.bombing_core ? "A red light is blinking on the circuit." : ""]</span>"
return span_warning("It seems to have grey blocks of unknown substance and some circuitry connected to it's core. [owner.bombing_core ? "A red light is blinking on the circuit." : ""]")
/datum/malf_hardware/strong_turrets
name = "Turrets Focus Enhancer"

View File

@@ -116,8 +116,8 @@
to_chat(target, "Unlock signal received..")
target.SetLockdown(0)
if(target.lockcharge)
to_chat(user, "<span class='notice'>Unlock Failed, lockdown wire cut.</span>")
to_chat(target, "<span class='notice'>Unlock Failed, lockdown wire cut.</span>")
to_chat(user, span_notice("Unlock Failed, lockdown wire cut."))
to_chat(target, span_notice("Unlock Failed, lockdown wire cut."))
else
to_chat(user, "Cyborg unlocked.")
to_chat(target, "You have been unlocked.")
@@ -137,7 +137,7 @@
var/list/L = get_unlinked_cyborgs(user)
if(!L.len)
to_chat(user, "<span class='notice'>ERROR: No unlinked cyborgs detected!</span>")
to_chat(user, span_notice("ERROR: No unlinked cyborgs detected!"))
if(target && !istype(target))
@@ -202,7 +202,7 @@
var/list/L = get_other_ais(user)
if(!L.len)
to_chat(user, "<span class='notice'>ERROR: No other AIs detected!</span>")
to_chat(user, span_notice("ERROR: No other AIs detected!"))
if(target && !istype(target))
to_chat(user, "This is not an AI.")

View File

@@ -146,14 +146,14 @@
// Verify if we can overload the target, if yes, calculate explosion strength. Some things have higher explosion strength than others, depending on charge(APCs, SMESs)
if(N && istype(N)) // /obj/machinery/power first, these create bigger explosions due to direct powernet connection
if(!istype(N, /obj/machinery/power/apc) && !istype(N, /obj/machinery/power/smes/buildable) && (!N.powernet || !N.powernet.avail)) // Directly connected machine which is not an APC or SMES. Either it has no powernet connection or it's powernet does not have enough power to overload
to_chat(user, "<span class='notice'>ERROR: Low network voltage. Unable to overload. Increase network power level and try again.</span>")
to_chat(user, span_notice("ERROR: Low network voltage. Unable to overload. Increase network power level and try again."))
return
else if (istype(N, /obj/machinery/power/apc)) // APC. Explosion is increased by available cell power.
var/obj/machinery/power/apc/A = N
if(A.cell && A.cell.charge)
explosion_intensity = 4 + round(A.cell.charge / 2000) // Explosion is increased by 1 for every 2k charge in cell
else
to_chat(user, "<span class='notice'>ERROR: APC Malfunction - Cell depleted or removed. Unable to overload.</span>")
to_chat(user, span_notice("ERROR: APC Malfunction - Cell depleted or removed. Unable to overload."))
return
else if (istype(N, /obj/machinery/power/smes/buildable)) // SMES. These explode in a very very very big boom. Similar to magnetic containment failure when messing with coils.
var/obj/machinery/power/smes/buildable/S = N
@@ -162,19 +162,19 @@
else
// Different error texts
if(!S.charge)
to_chat(user, "<span class='notice'>ERROR: SMES Depleted. Unable to overload. Please charge SMES unit and try again.</span>")
to_chat(user, span_notice("ERROR: SMES Depleted. Unable to overload. Please charge SMES unit and try again."))
else
to_chat(user, "<span class='notice'>ERROR: SMES RCon error - Unable to reach destination. Please verify wire connection.</span>")
to_chat(user, span_notice("ERROR: SMES RCon error - Unable to reach destination. Please verify wire connection."))
return
else if(M && istype(M)) // Not power machinery, so it's a regular machine instead. These have weak explosions.
if(!M.use_power) // Not using power at all
to_chat(user, "<span class='notice'>ERROR: No power grid connection. Unable to overload.</span>")
to_chat(user, span_notice("ERROR: No power grid connection. Unable to overload."))
return
if(M.inoperable()) // Not functional
to_chat(user, "<span class='notice'>ERROR: Unknown error. Machine is probably damaged or power supply is nonfunctional.</span>")
to_chat(user, span_notice("ERROR: Unknown error. Machine is probably damaged or power supply is nonfunctional."))
return
else // Not a machine at all (what the hell is this doing in Machines list anyway??)
to_chat(user, "<span class='notice'>ERROR: Unable to overload - target is not a machine.</span>")
to_chat(user, span_notice("ERROR: Unable to overload - target is not a machine."))
return
explosion_intensity = min(explosion_intensity, 12) // 3, 6, 12 explosion cap
@@ -199,7 +199,7 @@
if(!ability_pay(user,price))
return
M.visible_message("<span class='notice'>BZZZZZZZT</span>")
M.visible_message(span_notice("BZZZZZZZT"))
spawn(50)
explosion(get_turf(M), round(explosion_intensity/4),round(explosion_intensity/2),round(explosion_intensity),round(explosion_intensity * 2))
if(M)

View File

@@ -57,7 +57,7 @@
to_chat(user, "You already control this APC!")
return
else if(A.aidisabled)
to_chat(user, "<span class='notice'>Unable to connect to APC. Please verify wire connection and try again.</span>")
to_chat(user, span_notice("Unable to connect to APC. Please verify wire connection and try again."))
return
else
return
@@ -77,9 +77,9 @@
if(A.hacker == user)
to_chat(user, "Hack successful. You now have full control over the APC.")
else
to_chat(user, "<span class='notice'>Hack failed. Connection to APC has been lost. Please verify wire connection and try again.</span>")
to_chat(user, span_notice("Hack failed. Connection to APC has been lost. Please verify wire connection and try again."))
else
to_chat(user, "<span class='notice'>Hack failed. Unable to locate APC. Please verify the APC still exists.</span>")
to_chat(user, span_notice("Hack failed. Unable to locate APC. Please verify the APC still exists."))
user.hacking = 0