Add logging for malf upgrades (#67113)

This commit is contained in:
dragomagol
2022-05-19 17:52:48 -05:00
committed by GitHub
parent c54aa0e057
commit d25bfbeb25
2 changed files with 6 additions and 0 deletions
+5
View File
@@ -8,6 +8,11 @@
if (CONFIG_GET(flag/log_uplink))
WRITE_LOG(GLOB.world_uplink_log, "UPLINK: [text]")
/// Logging for upgrades purchased by a malfunctioning (or combat upgraded) AI
/proc/log_malf_upgrades(text)
if (CONFIG_GET(flag/log_uplink))
WRITE_LOG(GLOB.world_uplink_log, "MALF UPGRADE: [text]")
/// Logging for changeling powers purchased
/proc/log_changeling_power(text)
if (CONFIG_GET(flag/log_uplink))
@@ -122,4 +122,5 @@
action.desc = "[initial(action.desc)] It has [action.uses] use\s remaining."
action.UpdateButtons()
processing_time -= AM.cost
log_malf_upgrades("[key_name(AI)] purchased [AM.name]")
SSblackbox.record_feedback("nested tally", "malfunction_modules_bought", 1, list("[initial(AM.name)]", "[AM.cost]"))