[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

@@ -2,7 +2,7 @@ var/global/list/prevent_respawns = list()
/hook/death/proc/quit_notify(mob/dead)
if(ishuman(dead))
to_chat(dead,"<span class='notice'>You're dead! If you don't intend to continue playing this round as this character, please use the <b>Quit This Round</b> verb in the OOC tab to free your job slot. Otherwise, you can use the <b>Notify Transcore</b> verb to let medical know you need resleeving, or <b>Find Auto Resleever</b> verb to be taken to an auto resleever, which you can click on to be resleeved automatically after a time.</span>")
to_chat(dead,span_notice("You're dead! If you don't intend to continue playing this round as this character, please use the <b>Quit This Round</b> verb in the OOC tab to free your job slot. Otherwise, you can use the <b>Notify Transcore</b> verb to let medical know you need resleeving, or <b>Find Auto Resleever</b> verb to be taken to an auto resleever, which you can click on to be resleeved automatically after a time."))
return TRUE
@@ -18,7 +18,7 @@ var/global/list/prevent_respawns = list()
//Why are you clicking this button?
if(!mind || !mind.assigned_role)
to_chat(src,"<span class='warning'>Either you haven't played this round, you already used this verb or you left round properly already.</span>")
to_chat(src,span_warning("Either you haven't played this round, you already used this verb or you left round properly already."))
return
//Add them to the nope list
@@ -28,7 +28,7 @@ var/global/list/prevent_respawns = list()
for(var/datum/objective/O in all_objectives)
if(O.target == src.mind)
if(O.owner && O.owner.current)
to_chat(O.owner.current,"<span class='warning'>You get the feeling your target is no longer within your reach...</span>")
to_chat(O.owner.current,span_warning("You get the feeling your target is no longer within your reach..."))
qdel(O)
//Resleeving cleanup
@@ -61,4 +61,4 @@ var/global/list/prevent_respawns = list()
src.mind.assigned_role = null
//Feedback
to_chat(src,"<span class='notice'>Your job has been free'd up, and you can rejoin as another character or quit. Thanks for using this verb, it helps the server!</span>")
to_chat(src,span_notice("Your job has been free'd up, and you can rejoin as another character or quit. Thanks for using this verb, it helps the server!"))

View File

@@ -131,7 +131,7 @@
forceMove(T)
else
moveToNullspace()
to_chat(src, "<span class='danger'>Could not locate an observer spawn point. Use the Teleport verb to jump to the station map.</span>")
to_chat(src, span_danger("Could not locate an observer spawn point. Use the Teleport verb to jump to the station map."))
if(!name) //To prevent nameless ghosts
name = capitalize(pick(first_names_male)) + " " + capitalize(pick(last_names))
@@ -264,14 +264,14 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
set name = "Re-enter Corpse"
if(!client) return
if(!(mind && mind.current && can_reenter_corpse))
to_chat(src, "<span class='warning'>You have no body.</span>")
to_chat(src, span_warning("You have no body."))
return
if(mind.current.key && copytext(mind.current.key,1,2)!="@") //makes sure we don't accidentally kick any clients
to_chat(usr, "<span class='warning'>Another consciousness is in your body... it is resisting you.</span>")
to_chat(usr, span_warning("Another consciousness is in your body... it is resisting you."))
return
//VOREStation Add
if(prevent_respawns.Find(mind.name))
to_chat(usr, "<span class='warning'>You already quit this round as this character, sorry!</span>")
to_chat(usr, span_warning("You already quit this round as this character, sorry!"))
return
//VOREStation Add End
if(mind.current.ajourn && mind.current.stat != DEAD) //check if the corpse is astral-journeying (it's client ghosted using a cultist rune).
@@ -281,7 +281,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
found_rune = 1
break
if(!found_rune)
to_chat(usr, "<span class='warning'>The astral cord that ties your body and your spirit has been severed. You are likely to wander the realm beyond until your body is finally dead and thus reunited with you.</span>")
to_chat(usr, span_warning("The astral cord that ties your body and your spirit has been severed. You are likely to wander the realm beyond until your body is finally dead and thus reunited with you."))
return
mind.current.ajourn=0
mind.current.key = key
@@ -306,7 +306,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
medHUD = !medHUD
plane_holder.set_vis(VIS_CH_HEALTH, medHUD)
plane_holder.set_vis(VIS_CH_STATUS_OOC, medHUD)
to_chat(src, "<span class='notice'><B>Medical HUD [medHUD ? "Enabled" : "Disabled"]</B></span>")
to_chat(src, span_notice("<B>Medical HUD [medHUD ? "Enabled" : "Disabled"]</B>"))
/mob/observer/dead/verb/toggle_secHUD()
set category = "Ghost.Game" //CHOMPEdit
@@ -319,7 +319,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
plane_holder.set_vis(VIS_CH_IMPTRACK, secHUD)
plane_holder.set_vis(VIS_CH_IMPLOYAL, secHUD)
plane_holder.set_vis(VIS_CH_IMPCHEM, secHUD)
to_chat(src, "<span class='notice'><B>Security HUD [secHUD ? "Enabled" : "Disabled"]</B></span>")
to_chat(src, span_notice("<B>Security HUD [secHUD ? "Enabled" : "Disabled"]</B>"))
/mob/observer/dead/verb/toggle_antagHUD()
set category = "Ghost.Game" //CHOMPEdit
@@ -327,10 +327,10 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
set desc = "Toggles AntagHUD allowing you to see who is the antagonist"
if(!CONFIG_GET(flag/antag_hud_allowed) && !client.holder) // CHOMPEdit
to_chat(src, "<span class='filter_notice'>[span_red("Admins have disabled this for this round.")]</span>")
to_chat(src, span_filter_notice("[span_red("Admins have disabled this for this round.")]"))
return
if(jobban_isbanned(src, JOB_ANTAGHUD))
to_chat(src, "<span class='filter_notice'>[span_red("<B>You have been banned from using this feature</B>")]</span>")
to_chat(src, span_filter_notice("[span_red("<B>You have been banned from using this feature</B>")]"))
return
if(CONFIG_GET(flag/antag_hud_restricted) && !has_enabled_antagHUD && !client.holder) // CHOMPEdit
var/response = tgui_alert(src, "If you turn this on, you will not be able to take any part in the round.","Are you sure you want to turn this feature on?",list("Yes","No"))
@@ -342,7 +342,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
antagHUD = !antagHUD
plane_holder.set_vis(VIS_CH_SPECIAL, antagHUD)
to_chat(src, "<span class='notice'><B>AntagHUD [antagHUD ? "Enabled" : "Disabled"]</B></span>")
to_chat(src, span_notice("<B>AntagHUD [antagHUD ? "Enabled" : "Disabled"]</B>"))
/mob/observer/dead/proc/jumpable_areas()
var/list/areas = return_sorted_areas()
@@ -378,7 +378,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
set desc = "Teleport to a location."
if(!istype(usr, /mob/observer/dead))
to_chat(usr, "<span class='filter_notice'>Not when you're not dead!</span>")
to_chat(usr, span_filter_notice("Not when you're not dead!"))
return
var/area/A
@@ -459,10 +459,10 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
var/turf/targetloc = get_turf(target)
if(check_holy(targetloc))
to_chat(usr, "<span class='warning'>You cannot follow a mob standing on holy grounds!</span>")
to_chat(usr, span_warning("You cannot follow a mob standing on holy grounds!"))
return
if(get_z(target) in using_map?.secret_levels)
to_chat(src, "<span class='warning'>Sorry, that target is in an area that ghosts aren't allowed to go.</span>")
to_chat(src, span_warning("Sorry, that target is in an area that ghosts aren't allowed to go."))
return
/*if(target != src) CHOMP Removal holy mother of spaghetti fucking bullshit god please no
if(following && following == target)
@@ -470,11 +470,11 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
if(following)
src.stop_following()
following = target
to_chat(src, "<span class='notice'>Now following [target]</span>")
to_chat(src, span_notice("Now following [target]"))
if(ismob(target))
var/target_turf = get_turf(target)
if(!target_turf)
to_chat(usr, "<span class='warning'>This mob does not seem to exist in the tangible world.</span>")
to_chat(usr, span_warning("This mob does not seem to exist in the tangible world."))
return
forceMove(target_turf)
var/mob/M = target
@@ -609,15 +609,15 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
forceMove(T)
stop_following()
else
to_chat(src, "<span class='filter_notice'>This mob is not located in the game world.</span>")
to_chat(src, span_filter_notice("This mob is not located in the game world."))
/mob/observer/dead/memory()
set hidden = 1
to_chat(src, "<span class='filter_notice'>[span_red("You are dead! You have no mind to store memory!")]</span>")
to_chat(src, span_filter_notice("[span_red("You are dead! You have no mind to store memory!")]"))
/mob/observer/dead/add_memory()
set hidden = 1
to_chat(src, "<span class='filter_notice'>[span_red("You are dead! You have no mind to store memory!")]</span>")
to_chat(src, span_filter_notice("[span_red("You are dead! You have no mind to store memory!")]"))
/mob/observer/dead/Post_Incorpmove()
stop_following()
@@ -647,7 +647,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
gas_analyzing += "[gas_data.name[g]]: [round((environment.gas[g] / total_moles) * 100)]% ([round(environment.gas[g], 0.01)] moles)"
gas_analyzing += "Temperature: [round(environment.temperature-T0C,0.1)]&deg;C ([round(environment.temperature,0.1)]K)"
gas_analyzing += "Heat Capacity: [round(environment.heat_capacity(),0.1)]"
to_chat(src, "<span class='notice'>[jointext(gas_analyzing, "<br>")]</span>")
to_chat(src, span_notice("[jointext(gas_analyzing, "<br>")]"))
/mob/observer/dead/verb/check_radiation()
set name = "Check Radiation"
@@ -656,7 +656,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
var/turf/t = get_turf(src)
if(t)
var/rads = SSradiation.get_rads_at_turf(t)
to_chat(src, "<span class='notice'>Radiation level: [rads ? rads : "0"] Bq.</span>")
to_chat(src, span_notice("Radiation level: [rads ? rads : "0"] Bq."))
/mob/observer/dead/verb/become_mouse()
@@ -664,12 +664,12 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
set category = "Ghost.Join" //CHOMPEdit
if(CONFIG_GET(flag/disable_player_mice)) // CHOMPEdit
to_chat(src, "<span class='warning'>Spawning as a mouse is currently disabled.</span>")
to_chat(src, span_warning("Spawning as a mouse is currently disabled."))
return
//VOREStation Add Start
if(jobban_isbanned(src, JOB_GHOSTROLES))
to_chat(src, "<span class='warning'>You cannot become a mouse because you are banned from playing ghost roles.</span>")
to_chat(src, span_warning("You cannot become a mouse because you are banned from playing ghost roles."))
return
//VOREStation Add End
@@ -678,14 +678,14 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
var/turf/T = get_turf(src)
if(!T || (T.z in using_map.admin_levels))
to_chat(src, "<span class='warning'>You may not spawn as a mouse on this Z-level.</span>")
to_chat(src, span_warning("You may not spawn as a mouse on this Z-level."))
return
var/timedifference = world.time - client.time_died_as_mouse
if(client.time_died_as_mouse && timedifference <= mouse_respawn_time * 600)
var/timedifference_text
timedifference_text = time2text(mouse_respawn_time * 600 - timedifference,"mm:ss")
to_chat(src, "<span class='warning'>You may only spawn again as a mouse more than [mouse_respawn_time] minutes after your death. You have [timedifference_text] left.</span>")
to_chat(src, span_warning("You may only spawn again as a mouse more than [mouse_respawn_time] minutes after your death. You have [timedifference_text] left."))
return
var/response = tgui_alert(src, "Are you -sure- you want to become a mouse? You will have no rights or OOC protections.","Are you sure you want to squeek? You will have no rights or OOC protections.",list("Squeek!","Nope!")) //CHOMP Edit
@@ -703,7 +703,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
vent_found = pick(found_vents)
host = new /mob/living/simple_mob/animal/passive/mouse(vent_found)
else
to_chat(src, "<span class='warning'>Unable to find any unwelded vents to spawn mice at.</span>")
to_chat(src, span_warning("Unable to find any unwelded vents to spawn mice at."))
if(host)
if(CONFIG_GET(flag/uneducated_mice)) // CHOMPEdit
@@ -711,7 +711,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
announce_ghost_joinleave(src, 0, "They are now a mouse.")
host.ckey = src.ckey
host.add_ventcrawl(vent_found)
to_chat(host, "<span class='info'>You are now a mouse. Try to avoid interaction with players, and do not give hints away that you are more than a simple rodent.</span>")
to_chat(host, span_info("You are now a mouse. Try to avoid interaction with players, and do not give hints away that you are more than a simple rodent."))
/mob/observer/dead/verb/view_manfiest()
set name = "Show Crew Manifest"
@@ -740,7 +740,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
set desc = "If the round is sufficiently spooky, write a short message in blood on the floor or a wall. Remember, no IC in OOC or OOC in IC."
if(!CONFIG_GET(flag/cult_ghostwriter)) // CHOMPEdit
to_chat(src, "<span class='filter_notice'>[span_red("That verb is not currently permitted.")]</span>")
to_chat(src, span_filter_notice("[span_red("That verb is not currently permitted.")]"))
return
if (!src.stat)
@@ -755,7 +755,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
ghosts_can_write = 1
if(!ghosts_can_write && !check_rights(R_ADMIN|R_EVENT|R_FUN, 0)) //Let's allow for admins to write in blood for events and the such.
to_chat(src, "<span class='filter_notice'>[span_red("The veil is not thin enough for you to do that.")]</span>")
to_chat(src, span_filter_notice("[span_red("The veil is not thin enough for you to do that.")]"))
return
var/list/choices = list()
@@ -775,7 +775,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
T = get_step(T,text2dir(direction))
if (!istype(T))
to_chat(src, "<span class='warning'>You cannot doodle there.</span>")
to_chat(src, span_warning("You cannot doodle there."))
return
if(!choice || choice.amount == 0 || !(src.Adjacent(choice)))
@@ -787,7 +787,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
for (var/obj/effect/decal/cleanable/blood/writing/W in T)
num_doodles++
if (num_doodles > 4)
to_chat(src, "<span class='warning'>There is no space to write on!</span>")
to_chat(src, span_warning("There is no space to write on!"))
return
var/max_length = 50
@@ -798,21 +798,21 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
if (length(message) > max_length)
message += "-"
to_chat(src, "<span class='warning'>You ran out of blood to write with!</span>")
to_chat(src, span_warning("You ran out of blood to write with!"))
var/obj/effect/decal/cleanable/blood/writing/W = new(T)
W.basecolor = doodle_color
W.update_icon()
W.message = message
W.add_hiddenprint(src)
W.visible_message("<span class='filter_notice'>[span_red("Invisible fingers crudely paint something in blood on [T]...")]</span>")
W.visible_message(span_filter_notice("[span_red("Invisible fingers crudely paint something in blood on [T]...")]"))
// CHOMPEdit Start - Point Refactor
/*
/mob/observer/dead/pointed(atom/A as mob|obj|turf in view())
if(!..())
return 0
usr.visible_message("<span class='deadsay'><b>[src]</b> points to [A].</span>")
usr.visible_message(span_deadsay("<b>[src]</b> points to [A]."))
return 1
*/
@@ -826,18 +826,18 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
is_manifest = TRUE
add_verb(src,/mob/observer/dead/proc/toggle_visibility) //CHOMPEdit TGPanel
add_verb(src,/mob/observer/dead/proc/ghost_whisper) //CHOMPEdit TGPanel
to_chat(src, "<span class='filter_notice'>[span_purple("As you are now in the realm of the living, you can whisper to the living with the <b>Spectral Whisper</b> verb, inside the IC tab.")]</span>")
to_chat(src, span_filter_notice("[span_purple("As you are now in the realm of the living, you can whisper to the living with the <b>Spectral Whisper</b> verb, inside the IC tab.")]"))
if(plane != PLANE_WORLD)
user.visible_message( \
"<span class='warning'>\The [user] drags ghost, [src], to our plane of reality!</span>", \
"<span class='warning'>You drag [src] to our plane of reality!</span>" \
span_warning("\The [user] drags ghost, [src], to our plane of reality!"), \
span_warning("You drag [src] to our plane of reality!") \
)
toggle_visibility(TRUE)
else
var/datum/gender/T = gender_datums[user.get_visible_gender()]
user.visible_message ( \
"<span class='warning'>\The [user] just tried to smash [T.his] book into that ghost! It's not very effective.</span>", \
"<span class='warning'>You get the feeling that the ghost can't become any more visible.</span>" \
span_warning("\The [user] just tried to smash [T.his] book into that ghost! It's not very effective."), \
span_warning("You get the feeling that the ghost can't become any more visible.") \
)
/mob/observer/dead/proc/toggle_icon(var/icon)
@@ -861,14 +861,14 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
var/toggled_invisible
if(!forced && plane == PLANE_GHOSTS && world.time < toggled_invisible + 600)
to_chat(src, "<span class='filter_notice'>You must gather strength before you can turn visible again...</span>")
to_chat(src, span_filter_notice("You must gather strength before you can turn visible again..."))
return
if(plane == PLANE_WORLD)
toggled_invisible = world.time
visible_message("<span class='emote'>It fades from sight...</span>", "<span class='info'>You are now invisible.</span>")
visible_message(span_emote("It fades from sight..."), span_info("You are now invisible."))
else
to_chat(src, "<span class='info'>You are now visible!</span>")
to_chat(src, span_info("You are now visible!"))
plane = (plane == PLANE_GHOSTS) ? PLANE_WORLD : PLANE_GHOSTS
invisibility = (plane == PLANE_WORLD) ? 0 : INVISIBILITY_OBSERVER
@@ -883,9 +883,9 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
src.anonsay = !src.anonsay
if(anonsay)
to_chat(src, "<span class='info'>Your key won't be shown when you speak in dead chat.</span>")
to_chat(src, span_info("Your key won't be shown when you speak in dead chat."))
else
to_chat(src, "<span class='info'>Your key will be publicly visible again.</span>")
to_chat(src, span_info("Your key will be publicly visible again."))
/mob/observer/dead/canface()
return 1
@@ -899,7 +899,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
set category = "Ghost.Settings" //CHOMPEdit
ghostvision = !ghostvision
updateghostsight()
to_chat(src, "<span class='filter_notice'>You [ghostvision ? "now" : "no longer"] have ghost vision.</span>")
to_chat(src, span_filter_notice("You [ghostvision ? "now" : "no longer"] have ghost vision."))
/mob/observer/dead/verb/toggle_darkness()
set name = "Toggle Darkness"
@@ -917,7 +917,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
lighting_alpha = darkness_levels[index]
updateghostsight()
to_chat(src, "<span class='filter_notice'>Your vision now has [darkness_names[index]].</span>")
to_chat(src, span_filter_notice("Your vision now has [darkness_names[index]]."))
/mob/observer/dead/proc/updateghostsight()
plane_holder.set_desired_alpha(VIS_LIGHTING, lighting_alpha)
@@ -929,11 +929,11 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
return 0
if(mind && mind.current && mind.current.stat != DEAD && can_reenter_corpse)
if(feedback)
to_chat(src, "<span class='warning'>Your non-dead body prevent you from respawning.</span>")
to_chat(src, span_warning("Your non-dead body prevent you from respawning."))
return 0
if(CONFIG_GET(flag/antag_hud_restricted) && has_enabled_antagHUD == 1) // CHOMPEdit
if(feedback)
to_chat(src, "<span class='warning'>antagHUD restrictions prevent you from respawning.</span>")
to_chat(src, span_warning("antagHUD restrictions prevent you from respawning."))
return 0
return 1
@@ -969,13 +969,13 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
var/msg = sanitize(tgui_input_text(src, "Message:", "Spectral Whisper"))
if(msg)
log_say("(SPECWHISP to [key_name(M)]): [msg]", src)
to_chat(M, "<span class='warning'> You hear a strange, unidentifiable voice in your head... [span_purple("[msg]")]</span>")
to_chat(src, "<span class='warning'> You said: '[msg]' to [M].</span>")
to_chat(M, span_warning(" You hear a strange, unidentifiable voice in your head... [span_purple("[msg]")]"))
to_chat(src, span_warning(" You said: '[msg]' to [M]."))
else
return
return 1
else
to_chat(src, "<span class='danger'>You have not been pulled past the veil!</span>")
to_chat(src, span_danger("You have not been pulled past the veil!"))
/mob/observer/dead/verb/choose_ghost_sprite()
set category = "Ghost.Settings" //CHOMPEdit
@@ -1018,13 +1018,13 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
var/time_till_respawn = time_till_respawn()
if(time_till_respawn == -1) // Special case, never allowed to respawn
to_chat(usr, "<span class='warning'>Respawning is not allowed!</span>")
to_chat(usr, span_warning("Respawning is not allowed!"))
else if(time_till_respawn) // Nonzero time to respawn
to_chat(usr, "<span class='warning'>You can't do that yet! You died too recently. You need to wait another [round(time_till_respawn/10/60, 0.1)] minutes.</span>")
to_chat(usr, span_warning("You can't do that yet! You died too recently. You need to wait another [round(time_till_respawn/10/60, 0.1)] minutes."))
return
if(jobban_isbanned(usr, "pAI"))
to_chat(usr,"<span class='warning'>You cannot alert pAI cards when you are banned from playing as a pAI.</span>")
to_chat(usr,span_warning("You cannot alert pAI cards when you are banned from playing as a pAI."))
return
if(usr.client.prefs?.be_special & BE_PAI)
@@ -1042,9 +1042,9 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
PP.alertUpdate()
spawn(54)
PP.cut_overlays()
to_chat(usr,"<span class='notice'>Flashing the displays of [count] unoccupied PAIs.</span>")
to_chat(usr,span_notice("Flashing the displays of [count] unoccupied PAIs."))
else
to_chat(usr,"<span class='warning'>You have 'Be pAI' disabled in your character prefs, so we can't help you.</span>")
to_chat(usr,span_warning("You have 'Be pAI' disabled in your character prefs, so we can't help you."))
/mob/observer/dead/speech_bubble_appearance()
return "ghost"
@@ -1059,10 +1059,10 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
if(flashwindow)
window_flash(client)
if(message)
to_chat(src, "<span class='ghostalert'><font size=4>[message]</font></span>")
to_chat(src, span_ghostalert("<font size=4>[message]</font>"))
if(source)
throw_alert("\ref[source]_notify_revive", /obj/screen/alert/notify_cloning, new_master = source)
to_chat(src, "<span class='ghostalert'><a href=?src=[REF(src)];reenter=1>(Click to re-enter)</a></span>")
to_chat(src, span_ghostalert("<a href=?src=[REF(src)];reenter=1>(Click to re-enter)</a>"))
if(sound)
SEND_SOUND(src, sound(sound))

View File

@@ -11,27 +11,27 @@
//Good choice testing and some instance-grabbing
if(!ishuman(picked))
to_chat(src,"<span class='warning'>[picked] isn't in a humanoid mob at the moment.</span>")
to_chat(src,span_warning("[picked] isn't in a humanoid mob at the moment."))
return
var/mob/living/carbon/human/H = picked
if(H.stat || !H.client)
to_chat(src,"<span class='warning'>[H] isn't awake/alive at the moment.</span>")
to_chat(src,span_warning("[H] isn't awake/alive at the moment."))
return
if(!H.nif)
to_chat(src,"<span class='warning'>[H] doesn't have a NIF installed.</span>")
to_chat(src,span_warning("[H] doesn't have a NIF installed."))
return
var/datum/nifsoft/soulcatcher/SC = H.nif.imp_check(NIF_SOULCATCHER)
if(!SC)
to_chat(src,"<span class='warning'>[H] doesn't have the Soulcatcher NIFSoft installed, or their NIF is unpowered.</span>")
to_chat(src,span_warning("[H] doesn't have the Soulcatcher NIFSoft installed, or their NIF is unpowered."))
return
//Fine fine, we can ask.
var/obj/item/nif/nif = H.nif
to_chat(src,"<span class='notice'>Request sent to [H].</span>")
to_chat(src,span_notice("Request sent to [H]."))
var/req_time = world.time
nif.notify("Transient mindstate detected, analyzing...")
@@ -39,11 +39,11 @@
var/response = tgui_alert(H,"[src] ([src.key]) wants to join into your Soulcatcher.","Soulcatcher Request",list("Deny","Allow"))
if(!response || response == "Deny")
to_chat(src,"<span class='warning'>[H] denied your request.</span>")
to_chat(src,span_warning("[H] denied your request."))
return
if((world.time - req_time) > 1 MINUTES)
to_chat(H,"<span class='warning'>The request had already expired. (1 minute waiting max)</span>")
to_chat(H,span_warning("The request had already expired. (1 minute waiting max)"))
return
//Final check since we waited for input a couple times.
@@ -63,7 +63,7 @@
set desc = "If your past-due backup notification was missed or ignored, you can use this to send a new one."
if(!mind)
to_chat(src,"<span class='warning'>Your ghost is missing game values that allow this functionality, sorry.</span>")
to_chat(src,span_warning("Your ghost is missing game values that allow this functionality, sorry."))
return
var/datum/transcore_db/db = SStranscore.db_by_mind_name(mind.name)
if(db)
@@ -73,17 +73,17 @@
record.dead_state = MR_DEAD //Such as if you got scanned but didn't take an implant. It's a little funky, but I mean, you got scanned
db.notify(record) //So you probably will want to let someone know if you die.
record.last_notification = world.time
to_chat(src, "<span class='notice'>New notification has been sent.</span>")
to_chat(src, span_notice("New notification has been sent."))
else
to_chat(src, "<span class='warning'>Your backup is not past-due yet.</span>")
to_chat(src, span_warning("Your backup is not past-due yet."))
else if((world.time - record.last_notification) < 5 MINUTES)
to_chat(src, "<span class='warning'>Too little time has passed since your last notification.</span>")
to_chat(src, span_warning("Too little time has passed since your last notification."))
else
db.notify(record)
record.last_notification = world.time
to_chat(src, "<span class='notice'>New notification has been sent.</span>")
to_chat(src, span_notice("New notification has been sent."))
else
to_chat(src,"<span class='warning'>No backup record could be found, sorry.</span>")
to_chat(src,span_warning("No backup record could be found, sorry."))
// CHOMPEdit: Revert Removal
/mob/observer/dead/verb/backup_delay()
set category = "Ghost.Settings" //CHOMPEdit
@@ -91,18 +91,18 @@
set desc = "You can use this to avoid automatic backup notification happening. Manual notification can still be used."
if(!mind)
to_chat(src,"<span class='warning'>Your ghost is missing game values that allow this functionality, sorry.</span>")
to_chat(src,span_warning("Your ghost is missing game values that allow this functionality, sorry."))
return
var/datum/transcore_db/db = SStranscore.db_by_mind_name(mind.name)
if(db)
var/datum/transhuman/mind_record/record = db.backed_up[src.mind.name]
if(record.dead_state == MR_DEAD || !(record.do_notify))
to_chat(src, "<span class='warning'>The notification has already happened or been delayed.</span>")
to_chat(src, span_warning("The notification has already happened or been delayed."))
else
record.do_notify = FALSE
to_chat(src, "<span class='notice'>Overdue mind backup notification delayed successfully.</span>")
to_chat(src, span_notice("Overdue mind backup notification delayed successfully."))
else
to_chat(src,"<span class='warning'>No backup record could be found, sorry.</span>")
to_chat(src,span_warning("No backup record could be found, sorry."))
/mob/observer/dead/verb/findghostpod() //Moves the ghost instead of just changing the ghosts's eye -Nodrak
set category = "Ghost.Join" //CHOMPEdit
@@ -115,7 +115,7 @@
var/input = tgui_input_list(usr, "Select a ghost pod:", "Ghost Jump", observe_list_format(active_ghost_pods))
if(!input)
to_chat(src, "<span class='filter_notice'>No active ghost pods detected.</span>")
to_chat(src, span_filter_notice("No active ghost pods detected."))
return
var/target = observe_list_format(active_ghost_pods)[input]
@@ -129,7 +129,7 @@
forceMove(T)
stop_following()
else
to_chat(src, "<span class='filter_notice'>This ghost pod is not located in the game world.</span>")
to_chat(src, span_filter_notice("This ghost pod is not located in the game world."))
/mob/observer/dead/verb/findautoresleever()
set category = "Ghost.Join" //CHOMPEdit
@@ -150,11 +150,11 @@
var/obj/machinery/transhuman/autoresleever/thisone = pick(ar)
if(!thisone)
to_chat(src, "<span class='warning'>There appears to be no auto-resleevers available.</span>")
to_chat(src, span_warning("There appears to be no auto-resleevers available."))
return
var/L = get_turf(thisone)
if(!L)
to_chat(src, "<span class='warning'>There appears to be something wrong with this auto-resleever, try again.</span>")
to_chat(src, span_warning("There appears to be something wrong with this auto-resleever, try again."))
return
forceMove(L)

View File

@@ -10,7 +10,7 @@
if(message)
client.handle_spam_prevention(MUTE_DEADCHAT)
if(client.prefs.muted & MUTE_DEADCHAT)
to_chat(src, "<span class='filter_notice'>[span_red("You cannot talk in deadchat (muted).")]</span>")
to_chat(src, span_filter_notice("[span_red("You cannot talk in deadchat (muted).")]"))
return
. = say_dead(message)
@@ -26,7 +26,7 @@
if(message)
client.handle_spam_prevention(MUTE_DEADCHAT)
if(client.prefs.muted & MUTE_DEADCHAT)
to_chat(src, "<span class='filter_notice'>[span_red("You cannot emote in deadchat (muted).")]</span>")
to_chat(src, span_filter_notice("[span_red("You cannot emote in deadchat (muted).")]"))
return
. = emote_dead(message)