Skip to content

Commit

Permalink
stat counts mindless mob kills
Browse files Browse the repository at this point in the history
  • Loading branch information
xDanilcusx committed Oct 21, 2023
1 parent 172d36a commit dc6ecb8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions code/datums/statistics/entities/death_stats.dm
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@
log_message += " from [key_name(cause_data.resolve_mob())]"
cause_mob.attack_log += "\[[time_stamp()]\] [key_name(cause_mob)] killed [key_name(src)] with [cause_data.cause_name]."

if(iscarbon(src)) // no mice overkill sadly
cause_mob.life_kills_total += life_value

attack_log += "[log_message]."

if(!mind || statistic_exempt)
Expand Down Expand Up @@ -108,9 +111,6 @@
new_death.cause_role_name = cause_data?.role
new_death.cause_faction_name = cause_data?.faction

if(cause_mob)
cause_mob.life_kills_total += life_value

if(getBruteLoss())
new_death.total_brute = round(getBruteLoss())
if(getFireLoss())
Expand Down

0 comments on commit dc6ecb8

Please sign in to comment.