Files
7aa4cc4e1b [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.

![340880630-de5dc932-3e75-4713-8609-d29f13a0adc3](https://github.com/tgstation/tgstation/assets/79808856/a8a2bd81-f81a-4e0b-8d5b-2cd7129a7af6)

Fixes #84130

* Replaces bold HTML tag with ++ in certain secbot/mulebot messages

---------

Co-authored-by: combustor <79808856+combustor@users.noreply.github.com>
2024-06-25 16:21:26 +05:30

50 lines
1.8 KiB
Plaintext

/*!
* Copyright (c) 2020 Aleksej Komarov
* SPDX-License-Identifier: MIT
*/
/// How many chat payloads to keep in history
#define CHAT_RELIABILITY_HISTORY_SIZE 5
/// How many resends to allow before giving up
#define CHAT_RELIABILITY_MAX_RESENDS 3
#define MESSAGE_TYPE_SYSTEM "system"
#define MESSAGE_TYPE_LOCALCHAT "localchat"
#define MESSAGE_TYPE_RADIO "radio"
#define MESSAGE_TYPE_INFO "info"
#define MESSAGE_TYPE_WARNING "warning"
#define MESSAGE_TYPE_DEADCHAT "deadchat"
#define MESSAGE_TYPE_OOC "ooc"
#define MESSAGE_TYPE_ADMINPM "adminpm"
#define MESSAGE_TYPE_COMBAT "combat"
#define MESSAGE_TYPE_ADMINCHAT "adminchat"
#define MESSAGE_TYPE_PRAYER "prayer"
#define MESSAGE_TYPE_MODCHAT "modchat"
#define MESSAGE_TYPE_EVENTCHAT "eventchat"
#define MESSAGE_TYPE_ADMINLOG "adminlog"
#define MESSAGE_TYPE_ATTACKLOG "attacklog"
#define MESSAGE_TYPE_DEBUG "debug"
/// Max length of chat message in characters
#define CHAT_MESSAGE_MAX_LENGTH 110
//debug printing macros (for development and testing)
/// Used for debug messages to the world
#define debug_world(msg) if (GLOB.Debug2) to_chat(world, \
type = MESSAGE_TYPE_DEBUG, \
text = "DEBUG: [msg]")
/// Used for debug messages to the player
#define debug_usr(msg) if (GLOB.Debug2 && usr) to_chat(usr, \
type = MESSAGE_TYPE_DEBUG, \
text = "DEBUG: [msg]")
/// Used for debug messages to the admins
#define debug_admins(msg) if (GLOB.Debug2) to_chat(GLOB.admins, \
type = MESSAGE_TYPE_DEBUG, \
text = "DEBUG: [msg]")
/// Used for debug messages to the server
#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]+"