Light restyling of Boxed Messages and removal of unnecessary CSS styles from chat (#26852)

* Remove a lot of CSS and make boxed message stylish

* Paint themed boxed message and sort light chat styles

* Remove copyright from chat spans

* Uh oh
This commit is contained in:
Aylong
2024-10-10 10:00:40 +00:00
committed by GitHub
parent e657597b1c
commit 7ed4ef4f76
15 changed files with 450 additions and 1688 deletions
@@ -306,10 +306,10 @@
var/list/messages = list()
messages.Add("<b><font size=3 color='red'>You are a morph.</font><br></b>")
messages.Add("<span class='sinister'>You hunger for living beings and desire to procreate. Achieve this goal by ambushing unsuspecting pray using your abilities.</span>")
messages.Add("<span class='specialnotice'>As an abomination created primarily with changeling cells you may take the form of anything nearby by using your <span class='specialnoticebold'>Mimic ability.</span></span>")
messages.Add("<span class='specialnotice'>As an abomination created primarily with changeling cells you may take the form of anything nearby by using your <span class='specialnotice bold'>Mimic ability.</span></span>")
messages.Add("<span class='specialnotice'>The transformation will not go unnoticed for bystanding observers.</span>")
messages.Add("<span class='specialnoticebold'>While morphed</span><span class='specialnotice'>, you move slower and do less damage. In addition, anyone within three tiles will note an uncanny wrongness if examining you.</span>")
messages.Add("<span class='specialnotice'>From this form you can however <span class='specialnoticebold'>Prepare an Ambush</span> using your ability.</span>")
messages.Add("<span class='specialnotice bold'>While morphed</span><span class='specialnotice'>, you move slower and do less damage. In addition, anyone within three tiles will note an uncanny wrongness if examining you.</span>")
messages.Add("<span class='specialnotice'>From this form you can however <span class='specialnotice bold'>Prepare an Ambush</span> using your ability.</span>")
messages.Add("<span class='specialnotice'>This will allow you to deal a lot of damage the first hit. And if they touch you then even more.</span>")
messages.Add("<span class='specialnotice'>Finally, you can attack any item or dead creature to consume it - creatures will restore 1/3 of your max health and will add to your stored food while eating items will reduce your stored food.</span>")
messages.Add("<span class='motd'>For more information, check the wiki page: ([GLOB.configuration.url.wiki_url]/index.php/Morph)</span>")
@@ -84,11 +84,11 @@
revealed = FALSE
incorporeal_move = INCORPOREAL_MOVE_HOLY_BLOCK
invisibility = INVISIBILITY_REVENANT
to_chat(src, "<span class='revenboldnotice'>You are once more concealed.</span>")
to_chat(src, "<span class='revennotice bold'>You are once more concealed.</span>")
if(unstun_time && world.time >= unstun_time)
unstun_time = 0
notransform = FALSE
to_chat(src, "<span class='revenboldnotice'>You can move again!</span>")
to_chat(src, "<span class='revennotice bold'>You can move again!</span>")
update_spooky_icon()
/mob/living/simple_animal/revenant/ex_act(severity)
@@ -73,7 +73,7 @@
if(30 to 70)
to_chat(src, "<span class='revennotice'>[target] will yield an average amount of essence.</span>")
if(70 to 90)
to_chat(src, "<span class='revenboldnotice'>Such a feast! [target] will yield much essence to you.</span>")
to_chat(src, "<span class='revennotice bold'>Such a feast! [target] will yield much essence to you.</span>")
if(90 to INFINITY)
to_chat(src, "<span class='revenbignotice'>Ah, the perfect soul. [target] will yield massive amounts of essence to you.</span>")
if(do_after(src, 20, 0, target = target)) //how about now
@@ -95,7 +95,7 @@
if(essence_drained > 90)
essence_regen_cap += 25
perfectsouls += 1
to_chat(src, "<span class='revenboldnotice'>The perfection of [target]'s soul has increased your maximum essence level. Your new maximum essence is [essence_regen_cap].</span>")
to_chat(src, "<span class='revennotice bold'>The perfection of [target]'s soul has increased your maximum essence level. Your new maximum essence is [essence_regen_cap].</span>")
to_chat(src, "<span class='revennotice'>[target]'s soul has been considerably weakened and will yield no more essence for the time being.</span>")
target.visible_message("<span class='warning'>[target] slumps onto the ground.</span>", \
"<span class='revenwarning'>Violets lights, dancing in your vision, getting clo--</span>")