Logging for bot sapience (#92302)

## About The Pull Request

This PR adds logging for people turning bot sapience on and off
This is currently logged to silicon logs, even though the mob is not a
silicon, just because I figured that's where an admin would look for
information related to robots. If you think that is stupid I can put it
somewhere else.

## Why It's Good For The Game

This is an action that can adds ghosts (and meta knowledge) into the
round which didn't leave any kind of paper trail, so it should probably
have one
Ejecting an existing player from bot control was already logged and I
didn't remove it

## Changelog

🆑
admin: adds logging for turning bot sapience on and off
/🆑
This commit is contained in:
Jacquerel
2025-07-26 03:13:27 +01:00
committed by GitHub
parent 80d3b36884
commit 39b53e390a
2 changed files with 12 additions and 2 deletions
+6 -1
View File
@@ -231,13 +231,18 @@ GLOBAL_LIST_INIT(command_strings, list(
if (can_announce)
COOLDOWN_START(src, offer_ghosts_cooldown, 30 SECONDS)
if (user)
log_silicon("[key_name(user)] enabled sapience for [src] ([initial(src.name)])") // Not technically a silicon but who is counting
/// Disables this bot from being possessed by ghosts
/mob/living/basic/bot/proc/disable_possession(mob/user)
if (user)
log_silicon("[key_name(user)] disabled sapience for [src] ([initial(src.name)])")
can_be_possessed = FALSE
if(isnull(key))
return
if (user)
log_combat(user, src, "ejected from [initial(src.name)] control.")
log_combat(user, src, "ejected [key_name(src)] from control of [src] ([initial(src.name)]).")
to_chat(src, span_warning("You feel yourself fade as your personality matrix is reset!"))
ghostize(can_reenter_corpse = FALSE)
playsound(src, 'sound/machines/ping.ogg', 30, TRUE)