mirror of
https://github.com/Skyrat-SS13/Skyrat-tg.git
synced 2026-08-30 08:18:48 +01:00
[MIRROR] Replaces bold HTML tag with ++ in certain secbot/mulebot messages (#28364)
* Replaces bold HTML tag with ++ in certain secbot/mulebot messages (#84133) ## About The Pull Request Adds RUNECHAT_BOLD which just emboldens messages and uses it instead of `<b></b>` in secbots and mulebots ## Why It's Good For The Game Secbots and mulebots actually show the `<b></b>` tag in chat rather than making the text bold, replacing it with ++ emboldens it properly.  Fixes #84130 * Replaces bold HTML tag with ++ in certain secbot/mulebot messages --------- Co-authored-by: combustor <79808856+combustor@users.noreply.github.com>
This commit is contained in:
@@ -45,3 +45,5 @@
|
||||
#define debug_world_log(msg) if (GLOB.Debug2) log_world("DEBUG: [msg]")
|
||||
/// Adds a generic box around whatever message you're sending in chat. Really makes things stand out.
|
||||
#define examine_block(str) ("<div class='examine_block'>" + str + "</div>")
|
||||
/// Emboldens runechat messages
|
||||
#define RUNECHAT_BOLD(str) "+[str]+"
|
||||
|
||||
@@ -638,7 +638,7 @@
|
||||
|
||||
if(load) // if loaded, unload at target
|
||||
if(report_delivery)
|
||||
speak("Destination <b>[destination]</b> reached. Unloading [load].",radio_channel)
|
||||
speak("Destination [RUNECHAT_BOLD("[destination]")] reached. Unloading [load].",radio_channel)
|
||||
unload(loaddir)
|
||||
else
|
||||
// not loaded
|
||||
@@ -654,7 +654,7 @@
|
||||
if(AM?.Adjacent(src))
|
||||
load(AM)
|
||||
if(report_delivery)
|
||||
speak("Now loading [load] at <b>[get_area_name(src)]</b>.", radio_channel)
|
||||
speak("Now loading [load] at [RUNECHAT_BOLD("[get_area_name(src)]")].", radio_channel)
|
||||
// whatever happened, check to see if we return home
|
||||
|
||||
if(auto_return && home_destination && destination != home_destination)
|
||||
|
||||
@@ -262,7 +262,7 @@
|
||||
if(HAS_TRAIT(user, TRAIT_PACIFISM))
|
||||
user.visible_message(span_notice("[user] taunts [src], daring [p_them()] to give chase!"), \
|
||||
span_notice("You taunt [src], daring [p_them()] to chase you!"), span_hear("You hear someone shout a daring taunt!"), DEFAULT_MESSAGE_RANGE, user)
|
||||
speak("Taunted by pacifist scumbag <b>[user]</b> in [get_area(src)].", radio_channel)
|
||||
speak("Taunted by pacifist scumbag [RUNECHAT_BOLD("[user]")] in [get_area(src)].", radio_channel)
|
||||
|
||||
// Interrupt the attack chain. We've already handled this scenario for pacifists.
|
||||
return
|
||||
@@ -374,7 +374,7 @@
|
||||
log_combat(src, current_target, "stunned")
|
||||
if(security_mode_flags & SECBOT_DECLARE_ARRESTS)
|
||||
var/area/location = get_area(src)
|
||||
speak("[security_mode_flags & SECBOT_HANDCUFF_TARGET ? "Arresting" : "Detaining"] level [threat] scumbag <b>[current_target]</b> in [location].", radio_channel)
|
||||
speak("[security_mode_flags & SECBOT_HANDCUFF_TARGET ? "Arresting" : "Detaining"] level [threat] scumbag [RUNECHAT_BOLD("[current_target]")] in [location].", radio_channel)
|
||||
current_target.visible_message(span_danger("[src] stuns [current_target]!"),\
|
||||
span_userdanger("[src] stuns you!"))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user