mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 03:27:05 +01:00
Add ability to check chatlog for test assertions. (#27727)
This commit is contained in:
@@ -71,6 +71,11 @@ SUBSYSTEM_DEF(chat)
|
||||
/datum/controller/subsystem/chat/proc/send_immediate(send_target, list/message_data)
|
||||
var/list/targets = islist(send_target) ? send_target : list(send_target)
|
||||
for(var/target in targets)
|
||||
#ifdef GAME_TESTS
|
||||
var/mob/M = target
|
||||
if(istype(M) && M?:mind?:key == "interaction_test_[M.UID()]")
|
||||
LAZYADD(GLOB.game_test_chats[M.mind.key], message_to_html(message_data))
|
||||
#endif
|
||||
var/client/client = CLIENT_FROM_VAR(target)
|
||||
if(isnull(client))
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user