From 518d583710c50c0174ce06f85ed754b87e41b3c9 Mon Sep 17 00:00:00 2001 From: zzzmike <85382350+zzzmike@users.noreply.github.com> Date: Sat, 3 Aug 2024 02:22:45 -0700 Subject: [PATCH 1/8] Update death_stats.dm --- code/datums/statistics/entities/death_stats.dm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/datums/statistics/entities/death_stats.dm b/code/datums/statistics/entities/death_stats.dm index 18751ba604a1..de2d9cc71526 100644 --- a/code/datums/statistics/entities/death_stats.dm +++ b/code/datums/statistics/entities/death_stats.dm @@ -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 @@ -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, @@ -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) From f506b610e17987949a40d358668c8f734a7ea84a Mon Sep 17 00:00:00 2001 From: zzzmike <85382350+zzzmike@users.noreply.github.com> Date: Sat, 3 Aug 2024 02:29:11 -0700 Subject: [PATCH 2/8] Create ib_fact.dm --- code/datums/statistics/random_facts/ib_fact.dm | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 code/datums/statistics/random_facts/ib_fact.dm diff --git a/code/datums/statistics/random_facts/ib_fact.dm b/code/datums/statistics/random_facts/ib_fact.dm new file mode 100644 index 000000000000..0b88e67d3f55 --- /dev/null +++ b/code/datums/statistics/random_facts/ib_fact.dm @@ -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_done From 77c1a7abbe6c04950e11728b9765dffc0c5bc690 Mon Sep 17 00:00:00 2001 From: zzzmike <85382350+zzzmike@users.noreply.github.com> Date: Sat, 3 Aug 2024 02:33:53 -0700 Subject: [PATCH 3/8] Update internal_bleeding.dm --- code/modules/surgery/internal_bleeding.dm | 1 + 1 file changed, 1 insertion(+) diff --git a/code/modules/surgery/internal_bleeding.dm b/code/modules/surgery/internal_bleeding.dm index e4afcad5ec99..c67d670ea521 100644 --- a/code/modules/surgery/internal_bleeding.dm +++ b/code/modules/surgery/internal_bleeding.dm @@ -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."), From 220e8444807d4f13d6bbee42ac11741b5b46e6cd Mon Sep 17 00:00:00 2001 From: zzzmike <85382350+zzzmike@users.noreply.github.com> Date: Sat, 3 Aug 2024 02:35:12 -0700 Subject: [PATCH 4/8] Update mob_defines.dm --- code/modules/mob/mob_defines.dm | 1 + 1 file changed, 1 insertion(+) diff --git a/code/modules/mob/mob_defines.dm b/code/modules/mob/mob_defines.dm index f1de550df4aa..297ff47c731c 100644 --- a/code/modules/mob/mob_defines.dm +++ b/code/modules/mob/mob_defines.dm @@ -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 From c86274978c3946ec4edef7fac96db89fb081c789 Mon Sep 17 00:00:00 2001 From: zzzmike <85382350+zzzmike@users.noreply.github.com> Date: Sat, 3 Aug 2024 02:36:04 -0700 Subject: [PATCH 5/8] Update colonialmarines.dme --- colonialmarines.dme | 1 + 1 file changed, 1 insertion(+) diff --git a/colonialmarines.dme b/colonialmarines.dme index d1dc35b9fe77..a60b8283380f 100644 --- a/colonialmarines.dme +++ b/colonialmarines.dme @@ -662,6 +662,7 @@ #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" +#include "code\datums\statistics\random_facts\ib_fact.dm" #include "code\datums\status_effects\_status_effect.dm" #include "code\datums\status_effects\_status_effect_helpers.dm" #include "code\datums\status_effects\grouped_effect.dm" From d0d927b5e83a1c5ab72cb6dcc01d55e978501b03 Mon Sep 17 00:00:00 2001 From: zzzmike <85382350+zzzmike@users.noreply.github.com> Date: Sat, 3 Aug 2024 02:47:46 -0700 Subject: [PATCH 6/8] Update ib_fact.dm --- code/datums/statistics/random_facts/ib_fact.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/datums/statistics/random_facts/ib_fact.dm b/code/datums/statistics/random_facts/ib_fact.dm index 0b88e67d3f55..99431e38fd44 100644 --- a/code/datums/statistics/random_facts/ib_fact.dm +++ b/code/datums/statistics/random_facts/ib_fact.dm @@ -3,7 +3,7 @@ statistic_verb = "fixed internal bleeding for" /datum/random_fact/ib/life_grab_stat(mob/fact_mob) - return fact_mob.life_ib_total + return fact_mob.life_ib_fixed /datum/random_fact/ib/death_grab_stat(datum/entity/statistic/death/fact_death) - return fact_death.total_ib_done + return fact_death.total_ib_fixed From b4b3aac5da1944513c3835220d06b832426d88ab Mon Sep 17 00:00:00 2001 From: zzzmike <85382350+zzzmike@users.noreply.github.com> Date: Sat, 3 Aug 2024 02:48:43 -0700 Subject: [PATCH 7/8] Update ib_fact.dm --- code/datums/statistics/random_facts/ib_fact.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/datums/statistics/random_facts/ib_fact.dm b/code/datums/statistics/random_facts/ib_fact.dm index 99431e38fd44..dca8c303b744 100644 --- a/code/datums/statistics/random_facts/ib_fact.dm +++ b/code/datums/statistics/random_facts/ib_fact.dm @@ -3,7 +3,7 @@ statistic_verb = "fixed internal bleeding for" /datum/random_fact/ib/life_grab_stat(mob/fact_mob) - return fact_mob.life_ib_fixed + 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 From eae21e0e76ac154a018d3cfc053989198bf8b122 Mon Sep 17 00:00:00 2001 From: zzzmike <85382350+zzzmike@users.noreply.github.com> Date: Sat, 3 Aug 2024 02:52:15 -0700 Subject: [PATCH 8/8] Update colonialmarines.dme --- colonialmarines.dme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/colonialmarines.dme b/colonialmarines.dme index a60b8283380f..771935be9033 100644 --- a/colonialmarines.dme +++ b/colonialmarines.dme @@ -659,10 +659,10 @@ #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" -#include "code\datums\statistics\random_facts\ib_fact.dm" #include "code\datums\status_effects\_status_effect.dm" #include "code\datums\status_effects\_status_effect_helpers.dm" #include "code\datums\status_effects\grouped_effect.dm"