Rename IC announcement CSS class (#19580)

* Rename IC announcement CSS class

* fix ai mech takeover too
This commit is contained in:
warriorstar-orion
2022-11-02 20:54:08 +00:00
committed by GitHub
parent 32146754c1
commit 8ea4da61f3
4 changed files with 18 additions and 18 deletions
+1 -1
View File
@@ -102,7 +102,7 @@ GLOBAL_DATUM_INIT(event_announcement, /datum/announcer, new(config_type = /datum
/datum/announcer/proc/Format(message, title, subtitle = null)
var/formatted_message
var/style = config.style ? "announce [config.style]" : "announce"
var/style = config.style ? "announcement [config.style]" : "announcement"
formatted_message += "<div class='[style]'>"
formatted_message += "<h1>[title]</h1>"
+1 -1
View File
@@ -987,7 +987,7 @@
AI.controlled_mech = src
AI.remote_control = src
AI.can_shunt = FALSE //ONE AI ENTERS. NO AI LEAVES.
to_chat(AI, "[AI.can_dominate_mechs ? "<span class='announce'>Takeover of [name] complete! You are now permanently loaded onto the onboard computer. Do not attempt to leave the station sector!</span>" \
to_chat(AI, "[AI.can_dominate_mechs ? "<span class='boldnotice'>Takeover of [name] complete! You are now permanently loaded onto the onboard computer. Do not attempt to leave the station sector!</span>" \
: "<span class='notice'>You have been uploaded to a mech's onboard computer."]")
to_chat(AI, "<span class='boldnotice'>Use Middle-Mouse to activate mech functions and equipment. Click normally for AI interactions.</span>")
if(interaction == AI_TRANS_FROM_CARD)