[SPAN_CENTERBOLD("You have successfully left the [MAIN_SHIP_NAME]. You may now ghost and observe the rest of the round.")] ")
+ survived_human.count_statistic_stat(STATISTICS_ESCAPE)
+
/obj/docking_port/mobile/crashable/escape_shuttle/crash_check()
. = ..()
diff --git a/code/modules/shuttle/shuttles/crashable/lifeboats.dm b/code/modules/shuttle/shuttles/crashable/lifeboats.dm
index 617ab0869afb..d31eb287722f 100644
--- a/code/modules/shuttle/shuttles/crashable/lifeboats.dm
+++ b/code/modules/shuttle/shuttles/crashable/lifeboats.dm
@@ -25,6 +25,7 @@
continue
survivors++
to_chat(survived_human, "
[SPAN_CENTERBOLD("You have successfully left the [MAIN_SHIP_NAME]. You may now ghost and observe the rest of the round.")] ")
+ survived_human.count_statistic_stat(STATISTICS_ESCAPE)
/// Port Aft Lifeboat (bottom-right, doors on its left side)
/obj/docking_port/mobile/crashable/lifeboat/port
diff --git a/code/modules/shuttles/shuttle_console.dm b/code/modules/shuttles/shuttle_console.dm
index 447f4a1bf386..feb990325d5e 100644
--- a/code/modules/shuttles/shuttle_console.dm
+++ b/code/modules/shuttles/shuttle_console.dm
@@ -301,7 +301,7 @@ GLOBAL_LIST_EMPTY(shuttle_controls)
message_all_yautja("The serpent Queen has commanded the landing shuttle to depart.")
playsound(src, 'sound/misc/queen_alarm.ogg')
- Q.count_niche_stat(STATISTICS_NICHE_FLIGHT)
+ Q.count_statistic_stat(STATISTICS_FLIGHT)
if(Q.hive)
addtimer(CALLBACK(Q.hive, TYPE_PROC_REF(/datum/hive_status, abandon_on_hijack)), DROPSHIP_WARMUP_TIME + 5 SECONDS, TIMER_UNIQUE) //+ 5 seconds catch standing in doorways
@@ -328,7 +328,7 @@ GLOBAL_LIST_EMPTY(shuttle_controls)
if(is_ground_level(z)) shuttle.transit_gun_mission = 0 //remote launch always do transport flight.
shuttle.launch(src)
if(onboard && !shuttle.iselevator)
- M.count_niche_stat(STATISTICS_NICHE_FLIGHT)
+ M.count_statistic_stat(STATISTICS_FLIGHT)
msg_admin_niche("[M] ([M.key]) launched \a [shuttle.iselevator? "elevator" : "shuttle"] using [src].")
ui_interact(usr)
diff --git a/code/modules/surgery/amputation.dm b/code/modules/surgery/amputation.dm
index c9c1c92d4877..d71229f91d91 100644
--- a/code/modules/surgery/amputation.dm
+++ b/code/modules/surgery/amputation.dm
@@ -166,7 +166,7 @@
SPAN_WARNING("[user] cuts your [surgery.affected_limb.display_name] off!"),
SPAN_NOTICE("[user] cuts [target]'s [surgery.affected_limb.display_name] off."))
- user.count_niche_stat(STATISTICS_NICHE_SURGERY_AMPUTATE)
+ user.count_statistic_stat(STATISTICS_SURGERY_AMPUTATE)
surgery.affected_limb.droplimb(amputation = TRUE, surgery_in_progress = TRUE)
target.incision_depths[target_zone] = SURGERY_DEPTH_SURFACE
log_interact(user, target, "[key_name(user)] successfully severed [key_name(target)]'s [surgery.affected_limb.display_name] with \the [tool].")
@@ -191,7 +191,7 @@
SPAN_WARNING("[user] hacks [target]'s [surgery.affected_limb.display_name] off!"))
user.animation_attack_on(target)
- user.count_niche_stat(STATISTICS_NICHE_SURGERY_AMPUTATE)
+ user.count_statistic_stat(STATISTICS_SURGERY_AMPUTATE)
surgery.affected_limb.droplimb() //This will sever the limb messily and reset incision depth. The stump cleanup surgery will have to be done to properly amputate, but doing this saved two seconds. Worth it?
target.apply_damage(20, BRUTE, surgery.affected_limb.parent)
log_interact(user, target, "[key_name(user)] hacked [key_name(target)]'s [surgery.affected_limb.display_name] off with \the [tool], ending [surgery].")
diff --git a/code/modules/surgery/bones.dm b/code/modules/surgery/bones.dm
index 6cd35a775829..0074b9163d1d 100644
--- a/code/modules/surgery/bones.dm
+++ b/code/modules/surgery/bones.dm
@@ -200,7 +200,7 @@
SPAN_NOTICE("[user] sets the bones in your [surgery.affected_limb.display_name]."),
SPAN_NOTICE("[user] sets the bones in [target]'s [surgery.affected_limb.display_name]."))
- user.count_niche_stat(STATISTICS_NICHE_SURGERY_BONES)
+ user.count_statistic_stat(STATISTICS_SURGERY_BONES)
if(surgery.affected_limb.status & LIMB_SPLINTED_INDESTRUCTIBLE)
new /obj/item/stack/medical/splint/nano(get_turf(target), 1)
surgery.affected_limb.status &= ~(LIMB_SPLINTED|LIMB_SPLINTED_INDESTRUCTIBLE|LIMB_BROKEN)
diff --git a/code/modules/surgery/brainrepair.dm b/code/modules/surgery/brainrepair.dm
index 2b4e51292203..428aa624de38 100644
--- a/code/modules/surgery/brainrepair.dm
+++ b/code/modules/surgery/brainrepair.dm
@@ -51,7 +51,7 @@
SPAN_NOTICE("[user] finishes extracting fragments of bone from your brain."),
SPAN_NOTICE("[user] finishes extracting fragments of bone from [target]'s brain."))
- user.count_niche_stat(STATISTICS_NICHE_SURGERY_BRAIN)
+ user.count_statistic_stat(STATISTICS_SURGERY_BRAIN)
var/datum/internal_organ/brain/B = target.internal_organs_by_name["brain"]
if(B)
diff --git a/code/modules/surgery/chestburster.dm b/code/modules/surgery/chestburster.dm
index 731ea2017b94..aef193cf0d9b 100644
--- a/code/modules/surgery/chestburster.dm
+++ b/code/modules/surgery/chestburster.dm
@@ -166,7 +166,7 @@
else
user.apply_damage(15, BURN, "r_hand")
- user.count_niche_stat(STATISTICS_NICHE_SURGERY_LARVA)
+ user.count_statistic_stat(STATISTICS_SURGERY_LARVA)
var/mob/living/carbon/xenomorph/larva/L = locate() in target //the larva was fully grown, ready to burst.
if(L)
L.forceMove(target.loc)
diff --git a/code/modules/surgery/eye.dm b/code/modules/surgery/eye.dm
index b9efb0371ee3..7e95a18166ea 100644
--- a/code/modules/surgery/eye.dm
+++ b/code/modules/surgery/eye.dm
@@ -167,7 +167,7 @@
target.disabilities &= ~NEARSIGHTED
target.sdisabilities &= ~DISABILITY_BLIND
surgery.target_eyes.heal_damage(surgery.target_eyes.damage)
- user.count_niche_stat(STATISTICS_NICHE_SURGERY_EYE)
+ user.count_statistic_stat(STATISTICS_SURGERY_EYE)
target.pain.recalculate_pain()
/datum/surgery_step/cauterize/eyes/failure(mob/user, mob/living/carbon/target, target_zone, obj/item/tool, tool_type, datum/surgery/eye_repair/surgery)
diff --git a/code/modules/surgery/implant.dm b/code/modules/surgery/implant.dm
index 8f2e6156831a..622765826516 100644
--- a/code/modules/surgery/implant.dm
+++ b/code/modules/surgery/implant.dm
@@ -295,10 +295,10 @@
surgery.affected_limb.implants -= S
target.embedded_items -= S
for(var/i in 1 to S.count-1)
- user.count_niche_stat(STATISTICS_NICHE_SURGERY_SHRAPNEL)
+ user.count_statistic_stat(STATISTICS_SURGERY_SHRAPNEL)
var/shrap = new S.type(S.loc)
QDEL_IN(shrap, 30 SECONDS)
- user.count_niche_stat(STATISTICS_NICHE_SURGERY_SHRAPNEL)
+ user.count_statistic_stat(STATISTICS_SURGERY_SHRAPNEL)
QDEL_IN(S, 30 SECONDS)
else
var/obj/item/obj = surgery.affected_limb.implants[1]
@@ -318,7 +318,7 @@
if(is_sharp(obj))
target.embedded_items -= obj
- user.count_niche_stat(STATISTICS_NICHE_SURGERY_SHRAPNEL)
+ user.count_statistic_stat(STATISTICS_SURGERY_SHRAPNEL)
log_interact(user, target, "[key_name(user)] removed [obj] from [key_name(target)]'s [surgery.affected_limb.display_name] with \the [tool], ending [surgery].")
else
diff --git a/code/modules/surgery/internal_bleeding.dm b/code/modules/surgery/internal_bleeding.dm
index c67d670ea521..bcf49b874cc6 100644
--- a/code/modules/surgery/internal_bleeding.dm
+++ b/code/modules/surgery/internal_bleeding.dm
@@ -38,7 +38,7 @@
log_interact(user, target, "[key_name(user)] began repairing internal bleeding in [key_name(target)]'s [surgery.affected_limb.display_name], beginning [surgery].")
/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.count_statistic_stat(STATISTICS_SURGERY_IB)
user.life_ib_total++
user.affected_message(target,
diff --git a/code/modules/surgery/organs_internal.dm b/code/modules/surgery/organs_internal.dm
index c1708702524a..c4d10c065300 100644
--- a/code/modules/surgery/organs_internal.dm
+++ b/code/modules/surgery/organs_internal.dm
@@ -82,7 +82,7 @@ and organ transplant code which may come in handy in future but haven't been edi
SPAN_NOTICE("[user] finishes treating your damaged [I.name]."),
SPAN_NOTICE("[user] finishes treating [target]'s damaged [I.name]."))
- user.count_niche_stat(STATISTICS_NICHE_SURGERY_ORGAN_REPAIR)
+ user.count_statistic_stat(STATISTICS_SURGERY_ORGAN_REPAIR)
I.rejuvenate()
target.pain.recalculate_pain()
break
diff --git a/code/modules/surgery/robotic_organs_internal.dm b/code/modules/surgery/robotic_organs_internal.dm
index f268b959d7ec..8b2399e89473 100644
--- a/code/modules/surgery/robotic_organs_internal.dm
+++ b/code/modules/surgery/robotic_organs_internal.dm
@@ -77,7 +77,7 @@ and organ transplant code which may come in handy in future but haven't been edi
SPAN_NOTICE("[user] finishes treating your damaged [I.name]."),
SPAN_NOTICE("[user] finishes treating [target]'s damaged [I.name]."))
- user.count_niche_stat(STATISTICS_NICHE_SURGERY_ORGAN_REPAIR)
+ user.count_statistic_stat(STATISTICS_SURGERY_ORGAN_REPAIR)
I.rejuvenate()
break
diff --git a/code/modules/vehicles/apc/apc_command.dm b/code/modules/vehicles/apc/apc_command.dm
index 8d056daec2ea..493692241c83 100644
--- a/code/modules/vehicles/apc/apc_command.dm
+++ b/code/modules/vehicles/apc/apc_command.dm
@@ -182,9 +182,9 @@
//stole my own code from techpod_vendor
/obj/vehicle/multitile/apc/command/proc/get_access_permission(mob/living/carbon/human/user)
- if(SSticker.mode == GAMEMODE_WHISKEY_OUTPOST || GLOB.master_mode == GAMEMODE_WHISKEY_OUTPOST)
+ if(SSticker.mode == MODE_NAME_WISKEY_OUTPOST || GLOB.master_mode == MODE_NAME_WISKEY_OUTPOST)
return TRUE
- else if(SSticker.mode == "Distress Signal" || GLOB.master_mode == "Distress Signal")
+ else if(SSticker.mode.name == MODE_NAME_DISTRESS_SIGNAL || GLOB.master_mode == MODE_NAME_DISTRESS_SIGNAL)
if(techpod_access_settings_override)
return TRUE
else if(user.get_target_lock(techpod_faction_requirement))
diff --git a/colonialmarines.dme b/colonialmarines.dme
index 955fea187b2a..cfe620d7acde 100644
--- a/colonialmarines.dme
+++ b/colonialmarines.dme
@@ -102,7 +102,7 @@
#include "code\__DEFINES\sounds.dm"
#include "code\__DEFINES\speech_channels.dm"
#include "code\__DEFINES\stamina.dm"
-#include "code\__DEFINES\stats.dm"
+#include "code\__DEFINES\statistic.dm"
#include "code\__DEFINES\status_effects.dm"
#include "code\__DEFINES\strippable.dm"
#include "code\__DEFINES\STUI.dm"
@@ -666,21 +666,15 @@
#include "code\datums\stamina\_stamina.dm"
#include "code\datums\stamina\none.dm"
#include "code\datums\statistics\cause_data.dm"
-#include "code\datums\statistics\entities\caste_stats.dm"
#include "code\datums\statistics\entities\death_stats.dm"
-#include "code\datums\statistics\entities\human_stats.dm"
-#include "code\datums\statistics\entities\job_stats.dm"
#include "code\datums\statistics\entities\map_stats.dm"
#include "code\datums\statistics\entities\medal_stats.dm"
#include "code\datums\statistics\entities\panel_stats.dm"
#include "code\datums\statistics\entities\player_entity.dm"
-#include "code\datums\statistics\entities\player_save.dm"
#include "code\datums\statistics\entities\player_stats.dm"
#include "code\datums\statistics\entities\round_caste_picks.dm"
#include "code\datums\statistics\entities\round_stats.dm"
-#include "code\datums\statistics\entities\weapon_stats.dm"
#include "code\datums\statistics\entities\xeno_death.dm"
-#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"
diff --git a/nano/templates/cm_stat_panel.tmpl b/nano/templates/cm_stat_panel.tmpl
deleted file mode 100644
index 26de08f17054..000000000000
--- a/nano/templates/cm_stat_panel.tmpl
+++ /dev/null
@@ -1,966 +0,0 @@
-
-