mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-27 17:41:50 +00:00
## About The Pull Request Basically, if your long and well-thought-out OOC message gets eaten due to your client not being fully initialized, the server will feed back the message to you so you can copy-paste and try again. In order to facilitate this, I turned `validate_client` into a proc. This didn't have the ubiquitous usage that we were hoping for (where it could be dropped and placed anywhere) and I don't think I liked the "always exit out of proc" stuff anyhow. Also adds some code niceties. There's probably a way cooler way to do this with tgui_say and whatever but I don't use tgui_say (byond command bar my beloved) so we'll cope with this. ## Why It's Good For The Game  Let me know if I should revert the `span_big()` stuff, I just added it because I wanted it to be obvious to the player instead of look like a generic error message. ## Changelog 🆑 qol: If your OOC message gets eaten due to some weird circumstance in how your message is handled, it will feed the applicable message back to you so you can copy-paste and try to send it again. /🆑
7 lines
475 B
Plaintext
7 lines
475 B
Plaintext
/// Checks if the given target is either a client or a mock client
|
|
#define IS_CLIENT_OR_MOCK(target) (istype(target, /client) || istype(target, /datum/client_interface))
|
|
|
|
/// Checks to see if a /client has fully gone through New() as a safeguard against certain operations.
|
|
/// Should return the boolean value of the fully_created var, which should be TRUE if New() has finished running. FALSE otherwise.
|
|
#define VALIDATE_CLIENT_INITIALIZATION(target) (target.fully_created)
|