Log trauma gain and loss (#83519)

This commit is contained in:
Time-Green
2024-05-29 00:26:48 -06:00
committed by GitHub
parent f7ae6a4da2
commit 93b2f48c49
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -22,6 +22,7 @@
// Handles our references with our brain
brain?.remove_trauma_from_traumas(src)
if(owner)
log_game("[key_name_and_tag(owner)] has lost the following brain trauma: [type]")
on_lose()
owner = null
return ..()
@@ -508,6 +508,7 @@
actual_trauma.owner = owner
SEND_SIGNAL(owner, COMSIG_CARBON_GAIN_TRAUMA, trauma)
actual_trauma.on_gain()
log_game("[key_name_and_tag(owner)] has gained the following brain trauma: [trauma.type]")
if(resilience)
actual_trauma.resilience = resilience
SSblackbox.record_feedback("tally", "traumas", 1, actual_trauma.type)