Skip to content

Commit

Permalink
squad name too
Browse files Browse the repository at this point in the history
  • Loading branch information
Zonespace27 committed Jan 31, 2025
1 parent 45aa4c6 commit 1b40968
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions code/datums/statistics/entities/marine_death.dm
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
var/armor
/// How many kills this marine got
var/kill_count
/// What squad this player belongs to, if any
var/squad

/datum/entity/marine_death/proc/load_data(mob/living/carbon/human/dead_marine, datum/cause_data/death_cause)
map_name = SSmapping.configs[GROUND_MAP]?.map_name || "Unknown Map"
Expand All @@ -52,6 +54,9 @@
if(istype(dead_marine.wear_suit, /obj/item/clothing/suit))
armor = strip_improper(dead_marine.wear_suit::name)

if(dead_marine.assigned_squad)
squad = dead_marine.assigned_squad.name

SSticker?.mode?.round_stats?.marine_deaths += src
save()

Expand All @@ -72,4 +77,5 @@
"primary_weapon" = DB_FIELDTYPE_STRING_MEDIUM,
"armor" = DB_FIELDTYPE_STRING_MEDIUM,
"kill_count" = DB_FIELDTYPE_INT,
"squad" = DB_FIELDTYPE_STRING_SMALL,
)

0 comments on commit 1b40968

Please sign in to comment.