refactors most spans

This commit is contained in:
Kashargul
2024-10-02 21:10:31 +02:00
parent 5417c7772c
commit a2c673ab7a
1517 changed files with 12436 additions and 12347 deletions
@@ -18,17 +18,17 @@
if(M.mind)
M.mind.transfer_to(R)
// Description for new larva, so they understand what to expect.
to_chat(M, "<span class='notice'>You are a <b>Xenomorph Larva</b>, freshly slithered out of their egg to serve the hive.</span>")
to_chat(M, "<span class='notice'><b>Be sure to carefully listen to your queen, as xenomorph egg spawns may act different to loner xenomorph spawns.</b></span>")
to_chat(M, "<span class='warning'><b>Remember, you are technically a antagonist. Be sure to learn the context of your existence via IC or ahelp to prevent headaches, and follow the orders of your queen to the letter.</b></span>")
to_chat(M, "<span class='notice'> Your life for the hive!</span>")
to_chat(M, span_notice("You are a <b>Xenomorph Larva</b>, freshly slithered out of their egg to serve the hive."))
to_chat(M, span_notice("<b>Be sure to carefully listen to your queen, as xenomorph egg spawns may act different to loner xenomorph spawns.</b>"))
to_chat(M, span_warning("<b>Remember, you are technically a antagonist. Be sure to learn the context of your existence via IC or ahelp to prevent headaches, and follow the orders of your queen to the letter.</b>"))
to_chat(M, span_notice(" Your life for the hive!"))
R.ckey = M.ckey
visible_message("<span class='warning'>\the [src] peels open, and a fresh larva slithers out!</span>")
visible_message(span_warning("\the [src] peels open, and a fresh larva slithers out!"))
..()
/obj/structure/ghost_pod/automatic/xenomorph_egg/proc/healthcheck()
if(health <=0)
visible_message("<span class='warning'>\the [src] splatters everywhere as it cracks open!</span>")
visible_message(span_warning("\the [src] splatters everywhere as it cracks open!"))
playsound(src, 'sound/effects/slime_squish.ogg', 50, 1)
qdel(src)
return
@@ -79,7 +79,7 @@
var/finalized = "No"
if(jobban_isbanned(M, JOB_GHOSTROLES))
to_chat(M, "<span class='warning'>You cannot inhabit this creature because you are banned from playing ghost roles.</span>")
to_chat(M, span_warning("You cannot inhabit this creature because you are banned from playing ghost roles."))
reset_ghostpod()
return
@@ -90,7 +90,7 @@
while(finalized != "Yes" && M.client)
choice = tgui_input_list(M, "What type of predator do you want to play as?", "Maintpred Choice", possible_mobs)
if(!choice) //We probably pushed the cancel button on the mob selection. Let's just put the ghost pod back in the list.
to_chat(M, "<span class='notice'>No mob selected, cancelling.</span>")
to_chat(M, span_notice("No mob selected, cancelling."))
reset_ghostpod()
return
@@ -111,10 +111,10 @@
to_chat(M, "<span class='notice'>You are <b>[newPred]</b>, somehow having gotten aboard the station in search of food. \
You are wary of environment around you, but you do feel rather peckish. Stick around dark, secluded places to avoid danger or, \
if you are cute enough, try to make friends with this place's inhabitants.</span>")
to_chat(M, "<span class='critical'>Please be advised, this role is NOT AN ANTAGONIST.</span>")
to_chat(M, "<span class='warning'>You may be a spooky space monster, but your role is to facilitate spooky space monster roleplay, not to fight the station and kill people. You can of course eat and/or digest people as you like if OOC prefs align, but this should be done as part of roleplay. If you intend to fight the station and kill people and such, you need permission from the staff team. GENERALLY, this role should avoid well populated areas. Youre a weird spooky space monster, so the bar is probably not where youd want to go if you intend to survive. Of course, youre welcome to try to make friends and roleplay how you will in this regard, but something to keep in mind.</span>")
to_chat(M, span_critical("Please be advised, this role is NOT AN ANTAGONIST."))
to_chat(M, span_warning("You may be a spooky space monster, but your role is to facilitate spooky space monster roleplay, not to fight the station and kill people. You can of course eat and/or digest people as you like if OOC prefs align, but this should be done as part of roleplay. If you intend to fight the station and kill people and such, you need permission from the staff team. GENERALLY, this role should avoid well populated areas. Youre a weird spooky space monster, so the bar is probably not where youd want to go if you intend to survive. Of course, youre welcome to try to make friends and roleplay how you will in this regard, but something to keep in mind."))
newPred.ckey = M.ckey
newPred.visible_message("<span class='warning'>[newPred] emerges from somewhere!</span>")
newPred.visible_message(span_warning("[newPred] emerges from somewhere!"))
log_and_message_admins("successfully entered \a [src] and became a [newPred].")
qdel(src)
@@ -150,11 +150,11 @@
to_chat(M, "<span class='notice'>You can use shift + click on objects to disguise yourself as them, but your strikes are nearly useless when you are disguised. \
You can undisguise yourself by shift + clicking yourself, but disguise being switched, or turned on and off has a short cooldown. You can also ventcrawl, \
by using alt + click on the vent or scrubber.</span>")
to_chat(M, "<span class='critical'>Please be advised, this role is NOT AN ANTAGONIST.</span>")
to_chat(M, "<span class='warning'>You may be a spooky space monster, but your role is to facilitate spooky space monster roleplay, not to fight the station and kill people. You can of course eat and/or digest people as you like if OOC prefs align, but this should be done as part of roleplay. If you intend to fight the station and kill people and such, you need permission from the staff team. GENERALLY, this role should avoid well populated areas. Youre a weird spooky space monster, so the bar is probably not where youd want to go if you intend to survive. Of course, youre welcome to try to make friends and roleplay how you will in this regard, but something to keep in mind.</span>")
to_chat(M, span_critical("Please be advised, this role is NOT AN ANTAGONIST."))
to_chat(M, span_warning("You may be a spooky space monster, but your role is to facilitate spooky space monster roleplay, not to fight the station and kill people. You can of course eat and/or digest people as you like if OOC prefs align, but this should be done as part of roleplay. If you intend to fight the station and kill people and such, you need permission from the staff team. GENERALLY, this role should avoid well populated areas. Youre a weird spooky space monster, so the bar is probably not where youd want to go if you intend to survive. Of course, youre welcome to try to make friends and roleplay how you will in this regard, but something to keep in mind."))
newMorph.ckey = M.ckey
newMorph.visible_message("<span class='warning'>A morph appears to crawl out of somewhere.</span>")
newMorph.visible_message(span_warning("A morph appears to crawl out of somewhere."))
log_and_message_admins("successfully entered \a [src] and became a Morph.")
qdel(src)
@@ -88,7 +88,7 @@
/obj/structure/ghost_pod/ghost_activated/attack_ghost(var/mob/observer/dead/user)
//VOREStation Add Start
if(jobban_isbanned(user, JOB_GHOSTROLES))
to_chat(user, "<span class='warning'>You cannot inhabit this creature because you are banned from playing ghost roles.</span>")
to_chat(user, span_warning("You cannot inhabit this creature because you are banned from playing ghost roles."))
return
//No OOC notes
@@ -97,7 +97,7 @@
//VOREStation Add End
if(used)
to_chat(user, "<span class='warning'>Another spirit appears to have gotten to \the [src] before you. Sorry.</span>")
to_chat(user, span_warning("Another spirit appears to have gotten to \the [src] before you. Sorry."))
return
var/choice = tgui_alert(user, "Are you certain you wish to activate this pod?", "Control Pod", list("Yes", "No"))
@@ -106,7 +106,7 @@
return
else if(used)
to_chat(user, "<span class='warning'>Another spirit appears to have gotten to \the [src] before you. Sorry.</span>")
to_chat(user, span_warning("Another spirit appears to have gotten to \the [src] before you. Sorry."))
return
create_occupant(user)
@@ -12,7 +12,7 @@
/obj/structure/ghost_pod/manual/attack_ghost(var/mob/observer/dead/user)
if(jobban_isbanned(user, JOB_GHOSTROLES))
to_chat(user, "<span class='warning'>You cannot inhabit this creature because you are banned from playing ghost roles.</span>")
to_chat(user, span_warning("You cannot inhabit this creature because you are banned from playing ghost roles."))
return
//No OOC notes
@@ -23,11 +23,11 @@
return
if(!activated)
to_chat(user, "<span class='warning'>\The [src] has not yet been activated. Sorry.</span>")
to_chat(user, span_warning("\The [src] has not yet been activated. Sorry."))
return
if(used)
to_chat(user, "<span class='warning'>Another spirit appears to have gotten to \the [src] before you. Sorry.</span>")
to_chat(user, span_warning("Another spirit appears to have gotten to \the [src] before you. Sorry."))
return
busy = TRUE
@@ -38,7 +38,7 @@
return
else if(used)
to_chat(user, "<span class='warning'>Another spirit appears to have gotten to \the [src] before you. Sorry.</span>")
to_chat(user, span_warning("Another spirit appears to have gotten to \the [src] before you. Sorry."))
busy = FALSE
return
@@ -45,11 +45,11 @@
H.adjustCloneLoss(rand(1,5))
if(M.mind)
M.mind.transfer_to(H)
to_chat(M, "<span class='notice'>You are a [occupant_type]!</span>")
to_chat(M, span_notice("You are a [occupant_type]!"))
if(make_antag)
to_chat(M, "<span class='warning'>Your intent may not be completely beneficial.</span>")
to_chat(M, span_warning("Your intent may not be completely beneficial."))
H.ckey = M.ckey
visible_message("<span class='warning'>As \the [src] opens, the pipes on \the [src] surge, before it grows dark.</span>")
visible_message(span_warning("As \the [src] opens, the pipes on \the [src] surge, before it grows dark."))
log_and_message_admins("successfully opened \a [src] and became a [occupant_type].")
var/list/uniform_options
@@ -124,7 +124,7 @@
if(allow_appearance_change)
H.change_appearance(APPEARANCE_ALL, H, check_species_whitelist = 1)
// visible_message("<span class='aliem'>\The [src] [pick("gurgles", "seizes", "clangs")] before releasing \the [H]!</span>")
// visible_message(span_alien("\The [src] [pick("gurgles", "seizes", "clangs")] before releasing \the [H]!"))
qdel(src)
@@ -173,11 +173,11 @@
H.adjustCloneLoss(rand(1,5))
if(M.mind)
M.mind.transfer_to(H)
to_chat(M, "<span class='notice'>You are a [occupant_type]!</span>")
to_chat(M, span_notice("You are a [occupant_type]!"))
if(make_antag)
to_chat(M, "<span class='warning'>Your intent may not be completely beneficial.</span>")
to_chat(M, span_warning("Your intent may not be completely beneficial."))
H.ckey = M.ckey
visible_message("<span class='warning'>As \the [src] opens, the pipes on \the [src] surge, before it grows dark.</span>")
visible_message(span_warning("As \the [src] opens, the pipes on \the [src] surge, before it grows dark."))
log_and_message_admins("successfully opened \a [src] and got a [occupant_type].")
var/list/uniform_options
@@ -246,4 +246,4 @@
if(allow_appearance_change)
H.change_appearance(APPEARANCE_ALL, H, check_species_whitelist = 1)
visible_message("<span class='aliem'>\The [src] [pick("gurgles", "seizes", "clangs")] before releasing \the [H]!</span>")
visible_message(span_alien("\The [src] [pick("gurgles", "seizes", "clangs")] before releasing \the [H]!"))
@@ -10,7 +10,7 @@
confirm_before_open = TRUE
/obj/structure/ghost_pod/manual/corgi/trigger()
..("<span class='warning'>\The [usr] places their hand on the rune!</span>", "is attempting to summon a corgi.")
..(span_warning("\The [usr] places their hand on the rune!"), "is attempting to summon a corgi.")
/obj/structure/ghost_pod/manual/corgi/create_occupant(var/mob/M)
lightning_strike(get_turf(src), cosmetic = TRUE)
@@ -18,9 +18,9 @@
var/mob/living/simple_mob/animal/passive/dog/corgi/R = new(get_turf(src))
if(M.mind)
M.mind.transfer_to(R)
to_chat(M, "<span class='notice'>You are a <b>Corgi</b>! Woof!</span>")
to_chat(M, span_notice("You are a <b>Corgi</b>! Woof!"))
R.ckey = M.ckey
visible_message("<span class='warning'>With a bright flash of light, \the [src] disappears, and in its place stands a small corgi.</span>")
visible_message(span_warning("With a bright flash of light, \the [src] disappears, and in its place stands a small corgi."))
log_and_message_admins("successfully touched \a [src] and summoned a corgi.")
..()
@@ -35,7 +35,7 @@
confirm_before_open = TRUE
/obj/structure/ghost_pod/manual/cursedblade/trigger()
..("<span class='warning'>\The [usr] attempts to pull out the sword!</span>", "is activating a cursed blade.")
..(span_warning("\The [usr] attempts to pull out the sword!"), "is activating a cursed blade.")
/obj/structure/ghost_pod/manual/cursedblade/create_occupant(var/mob/M)
density = FALSE
@@ -45,6 +45,6 @@
your body was reduced to ashes and your soul was cursed to remain trapped in the blade forever. \
Now it is up to you to decide whether you want to be a faithful companion, or a bitter prisoner of the blade.</span>")
R.ghost_inhabit(M)
visible_message("<span class='warning'>The blade shines brightly for a brief moment as [usr] pulls it out of the stone!</span>")
visible_message(span_warning("The blade shines brightly for a brief moment as [usr] pulls it out of the stone!"))
log_and_message_admins("successfully acquired a cursed sword.")
..()
@@ -13,7 +13,7 @@
needscharger = TRUE
/obj/structure/ghost_pod/manual/lost_drone/trigger()
..("<span class='notice'>\The [src] appears to be attempting to restart the robot contained inside.</span>", "is attempting to open \a [src].")
..(span_notice("\The [src] appears to be attempting to restart the robot contained inside."), "is attempting to open \a [src].")
/obj/structure/ghost_pod/manual/lost_drone/create_occupant(var/mob/M)
density = FALSE
@@ -30,7 +30,7 @@
definiton of 'the station' is where your pod is, and unless your laws say otherwise, the entity that released you \
from the pod is not a crewmember.</span>")
R.ckey = M.ckey
visible_message("<span class='warning'>As \the [src] opens, the eyes of the robot flicker as it is activated.</span>")
visible_message(span_warning("As \the [src] opens, the eyes of the robot flicker as it is activated."))
R.namepick()
log_and_message_admins("successfully opened \a [src] and got a Lost Drone.")
..()
@@ -52,11 +52,11 @@
if(M.mind)
M.mind.transfer_to(R)
// Put this text here before ckey change so that their laws are shown below it, since borg login() shows it.
to_chat(M, "<span class='notice'>You are a <b>Gravekeeper Drone</b>, activated once again to tend to the restful dead.</span>")
to_chat(M, span_notice("You are a <b>Gravekeeper Drone</b>, activated once again to tend to the restful dead."))
to_chat(M, "<span class='notice'><b>Be sure to examine your currently loaded lawset closely.</b> Remember, your \
definiton of 'your gravesite' is where your pod is.</span>")
R.ckey = M.ckey
visible_message("<span class='warning'>As \the [src] opens, the eyes of the robot flicker as it is activated.</span>")
visible_message(span_warning("As \the [src] opens, the eyes of the robot flicker as it is activated."))
R.namepick()
..()
@@ -75,16 +75,16 @@
var/mob/living/silicon/robot/drone/swarm/R = new drone_type(get_turf(src))
if(M.mind)
M.mind.transfer_to(R)
to_chat(M, "<span class='cult'>You are <b>[R]</b>, the remnant of some distant species, mechanical or flesh, living or dead.</span>")
to_chat(M, span_cult("You are <b>[R]</b>, the remnant of some distant species, mechanical or flesh, living or dead."))
R.ckey = M.ckey
visible_message("<span class='cult'>As \the [src] shudders, it glows before lifting itself with three shimmering limbs!</span>")
visible_message(span_cult("As \the [src] shudders, it glows before lifting itself with three shimmering limbs!"))
spawn(3 SECONDS)
to_chat(R,"<span class='notice'>Many of your tools are standard drone devices, however others provide you with particular benefits.</span>")
to_chat(R,"<span class='notice'>Unlike standard drones, you are capable of utilizing 'zero point wells', found in your 'spells' tab.</span>")
to_chat(R,"<span class='notice'>Here you will also find your replication ability(s), depending on the type of drone you are.</span>")
to_chat(R,"<span class='notice'>Gunners have a special anti-personnel gun capable of shocking or punching through armor with low damage.</span>")
to_chat(R,"<span class='notice'>Impalers have an energy-lance.</span>")
to_chat(R,"<span class='notice'>General drones have the unique ability to produce one of each of these two types of shells per generation.</span>")
to_chat(R,span_notice("Many of your tools are standard drone devices, however others provide you with particular benefits."))
to_chat(R,span_notice("Unlike standard drones, you are capable of utilizing 'zero point wells', found in your 'spells' tab."))
to_chat(R,span_notice("Here you will also find your replication ability(s), depending on the type of drone you are."))
to_chat(R,span_notice("Gunners have a special anti-personnel gun capable of shocking or punching through armor with low damage."))
to_chat(R,span_notice("Impalers have an energy-lance."))
to_chat(R,span_notice("General drones have the unique ability to produce one of each of these two types of shells per generation."))
if(!QDELETED(src))
qdel(src)
@@ -20,8 +20,8 @@
definiton of 'the station' is where your pod is, and unless your laws say otherwise, the entity that released you \
from the pod is not a crewmember.</span>")
R.ckey = M.ckey
visible_message("<span class='warning'>As \the [src] opens, the eyes of the robot flicker as it is activated.</span>")
visible_message(span_warning("As \the [src] opens, the eyes of the robot flicker as it is activated."))
R.namepick()
log_and_message_admins("successfully opened \a [src] and got a Lost Drone.")
used = TRUE
return TRUE
return TRUE
@@ -64,9 +64,9 @@
var/mob/living/carbon/human/H = new(src)
if(M.mind)
M.mind.transfer_to(H)
to_chat(M, "<span class='notice'>You are a [occupant_type]!</span>")
to_chat(M, span_notice("You are a [occupant_type]!"))
H.ckey = M.ckey
visible_message("<span class='warning'>As \the [src] opens, the pipes on \the [src] surge, before it grows dark.</span>")
visible_message(span_warning("As \the [src] opens, the pipes on \the [src] surge, before it grows dark."))
log_and_message_admins("successfully opened \a [src] and got a [occupant_type].")
var/list/uniform_options
@@ -144,4 +144,4 @@
if(allow_appearance_change)
H.change_appearance(APPEARANCE_ALL, H, check_species_whitelist = 1)
visible_message("<span class='aliem'>\The [src] [pick("gurgles", "seizes", "clangs")] before releasing \the [H]!</span>")
visible_message(span_alien("\The [src] [pick("gurgles", "seizes", "clangs")] before releasing \the [H]!"))