Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IB fixed fun fact #6863

Merged
merged 8 commits into from
Aug 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions code/datums/statistics/entities/death_stats.dm
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
var/total_time_alive
var/total_damage_taken
var/total_revives_done = 0
var/total_ib_fixed = 0

var/total_brute = 0
var/total_burn = 0
Expand Down Expand Up @@ -53,6 +54,7 @@
"total_time_alive" = DB_FIELDTYPE_BIGINT,
"total_damage_taken" = DB_FIELDTYPE_INT,
"total_revives_done" = DB_FIELDTYPE_INT,
"total_ib_fixed" = DB_FIELDTYPE_INT,

"total_brute" = DB_FIELDTYPE_INT,
"total_burn" = DB_FIELDTYPE_INT,
Expand Down Expand Up @@ -132,6 +134,7 @@
new_death.total_time_alive = life_time_total
new_death.total_damage_taken = life_damage_taken_total
new_death.total_revives_done = life_revives_total
new_death.total_ib_fixed = life_ib_total

if(GLOB.round_statistics)
GLOB.round_statistics.track_death(new_death)
Expand Down
9 changes: 9 additions & 0 deletions code/datums/statistics/random_facts/ib_fact.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/datum/random_fact/ib
statistic_name = "people"
statistic_verb = "fixed internal bleeding for"

/datum/random_fact/ib/life_grab_stat(mob/fact_mob)
return fact_mob.life_ib_total

/datum/random_fact/ib/death_grab_stat(datum/entity/statistic/death/fact_death)
return fact_death.total_ib_fixed
1 change: 1 addition & 0 deletions code/modules/mob/mob_defines.dm
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@
var/life_kills_total = 0
var/life_damage_taken_total = 0
var/life_revives_total = 0
var/life_ib_total = 0
var/festivizer_hits_total = 0

var/life_value = 1 // when killed, the killee gets this much added to its life_kills_total
Expand Down
1 change: 1 addition & 0 deletions code/modules/surgery/internal_bleeding.dm
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@

/datum/surgery_step/fix_vein/success(mob/user, mob/living/carbon/target, target_zone, obj/item/tool, tool_type, datum/surgery/surgery)
user.count_niche_stat(STATISTICS_NICHE_SURGERY_IB)
user.life_ib_total++

user.affected_message(target,
SPAN_NOTICE("You finish repairing [target]'s damaged vein."),
Expand Down
1 change: 1 addition & 0 deletions colonialmarines.dme
Original file line number Diff line number Diff line change
Expand Up @@ -659,6 +659,7 @@
#include "code\datums\statistics\entities\xeno_stats.dm"
#include "code\datums\statistics\random_facts\christmas_fact.dm"
#include "code\datums\statistics\random_facts\damage_fact.dm"
#include "code\datums\statistics\random_facts\ib_fact.dm"
#include "code\datums\statistics\random_facts\kills_fact.dm"
#include "code\datums\statistics\random_facts\random_fact.dm"
#include "code\datums\statistics\random_facts\revives_fact.dm"
Expand Down
Loading