Skip to content

Commit

Permalink
TGS Test Merge (#7389)
Browse files Browse the repository at this point in the history
  • Loading branch information
cm13-github committed Nov 6, 2024
2 parents 17a7113 + 0eb6de5 commit bc4dca8
Show file tree
Hide file tree
Showing 9 changed files with 10,891 additions and 10,101 deletions.
2 changes: 1 addition & 1 deletion code/controllers/subsystem/objectives_controller.dm
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#define CORPSES_TO_SPAWN 25
#define CORPSES_TO_SPAWN 100

SUBSYSTEM_DEF(objectives)
name = "Objectives"
Expand Down
12 changes: 8 additions & 4 deletions code/modules/objectives/mob_objectives.dm
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
controller = TREE_MARINE
/// List of list of active corpses per tech-faction ownership
var/list/corpses = list()
var/list/scored_corpses = list()
var/list/scored_other_corpses = list()
var/list/scored_humansynth_corpses = list()

/datum/cm_objective/recover_corpses/New()
. = ..()
Expand Down Expand Up @@ -54,7 +55,7 @@
return

// This mob has already been scored before
if(LAZYISIN(scored_corpses, dead_mob))
if(LAZYISIN(scored_other_corpses, dead_mob) || LAZYISIN(scored_humansynth_corpses, dead_mob))
return

LAZYDISTINCTADD(corpses, dead_mob)
Expand Down Expand Up @@ -117,7 +118,7 @@
if(isqueen(X)) //Queen is Tier 0 for some reason...
value = OBJECTIVE_ABSOLUTE_VALUE

else if(ishumansynth_strict(target))
else if(ishumansynth_strict(target) && length(scored_humansynth_corpses) <= 49) // Limit human corpse recovery to 5 total points (.1 each)
return OBJECTIVE_LOW_VALUE

return value
Expand All @@ -141,7 +142,10 @@
award_points(corpse_val)

corpses -= target
scored_corpses += target
if(ishumansynth_strict(target))
scored_humansynth_corpses += target
else
scored_other_corpses += target

if (isxeno(target))
UnregisterSignal(target, COMSIG_XENO_REVIVED)
Expand Down
Loading

0 comments on commit bc4dca8

Please sign in to comment.