mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-28 23:58:07 +01:00
Nobody expects the span inquisition: replaces most <span>s with macros (#86798)
## About The Pull Request 123 changed files and multiple crashes after writing broken regex, I replaced most remains of direct spans with macros. This cleans up the code and makes it easier to work with in general, see justification for the original PR. I also fixed a bunch of broken and/or unclosed spans here too. I intentionally avoided replacing spans with multiple classes (in most cases) and spans in the middle of strings as it would impact readability (in my opinion at least) and could be done later if required. ## Why It's Good For The Game Cleaner code, actually using our macros, fixes borked HTML in some places. See original PR. ## Changelog Nothing player-facing
This commit is contained in:
@@ -167,7 +167,7 @@
|
||||
message = "<b>You wished for power. Little good it did you, cast out of the light. You are the [gender == MALE ? "king" : "queen"] of a hell that holds no subjects. You feel only remorse.</b>"
|
||||
if(4)
|
||||
message = "<b>You wished for immortality, even as your friends lay dying behind you. No matter how many times you cast yourself into the lava, you awaken in this room again within a few days. There is no escape.</b>"
|
||||
to_chat(new_spawn, "<span class='infoplain'>[message]</span>")
|
||||
to_chat(new_spawn, span_infoplain("[message]"))
|
||||
|
||||
/obj/effect/mob_spawn/ghost_role/human/nanotrasensoldier
|
||||
name = "sleeper"
|
||||
|
||||
@@ -249,7 +249,7 @@
|
||||
spawned_mind.name = spawned_mob.real_name
|
||||
|
||||
if(show_flavor)
|
||||
var/output_message = "<span class='infoplain'><span class='big bold'>[you_are_text]</span></span>"
|
||||
var/output_message = span_infoplain("<span class='big bold'>[you_are_text]</span>")
|
||||
if(flavour_text != "")
|
||||
output_message += "\n<span class='infoplain'><b>[flavour_text]</b></span>"
|
||||
if(important_text != "")
|
||||
|
||||
Reference in New Issue
Block a user