mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 14:39:58 +01:00
[MIRROR] Fixes "absorb another ling" objective [MDB IGNORE] (#16799)
* Fixes "absorb another ling" objective (#70413) Purchased powers was changed to assoc list, and this was not updated * Fixes "absorb another ling" objective Co-authored-by: MrMelbert <51863163+MrMelbert@users.noreply.github.com>
This commit is contained in:
@@ -804,20 +804,19 @@ GLOBAL_LIST_EMPTY(possible_items_special)
|
||||
|
||||
/datum/objective/absorb_changeling/check_completion()
|
||||
var/list/datum/mind/owners = get_owners()
|
||||
for(var/datum/mind/M in owners)
|
||||
if(!M)
|
||||
continue
|
||||
var/datum/antagonist/changeling/changeling = M.has_antag_datum(/datum/antagonist/changeling)
|
||||
for(var/datum/mind/ling_mind as anything in owners)
|
||||
var/datum/antagonist/changeling/changeling = ling_mind.has_antag_datum(/datum/antagonist/changeling)
|
||||
if(!changeling)
|
||||
continue
|
||||
var/total_genetic_points = changeling.genetic_points
|
||||
|
||||
for(var/datum/action/changeling/p in changeling.purchased_powers)
|
||||
total_genetic_points += p.dna_cost
|
||||
var/total_genetic_points = changeling.genetic_points
|
||||
for(var/power_path in changeling.purchased_powers)
|
||||
var/datum/action/changeling/power = changeling.purchased_powers[power_path]
|
||||
total_genetic_points += power.dna_cost
|
||||
|
||||
if(total_genetic_points > initial(changeling.genetic_points))
|
||||
return TRUE
|
||||
return FALSE
|
||||
return completed
|
||||
|
||||
//End Changeling Objectives
|
||||
|
||||
|
||||
Reference in New Issue
Block a user