mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-12 00:27:31 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user