mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-24 05:30:05 +01:00
Log trauma gain and loss (#83519)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user