mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-11 08:06:33 +01:00
Fix: Quirk Points & Augments+ (#19063)
* Fix filter_invalid_quirks to check augments, and fixed augments to check quirks * Cleaning up log calls and docs * Remove stray comment * Adding missed Skyrat edit comment
This commit is contained in:
@@ -157,13 +157,18 @@ PROCESSING_SUBSYSTEM_DEF(quirks)
|
||||
/// be valid.
|
||||
/// If no changes need to be made, will return the same list.
|
||||
/// Expects all quirk names to be unique, but makes no other expectations.
|
||||
/datum/controller/subsystem/processing/quirks/proc/filter_invalid_quirks(list/quirks)
|
||||
/datum/controller/subsystem/processing/quirks/proc/filter_invalid_quirks(list/quirks, list/augments) // SKYRAT EDIT - AUGMENTS+
|
||||
var/list/new_quirks = list()
|
||||
var/list/positive_quirks = list()
|
||||
var/balance = 0
|
||||
|
||||
var/list/all_quirks = get_quirks()
|
||||
|
||||
// SKYRAT EDIT BEGIN - AUGMENTS+
|
||||
for(var/key in augments)
|
||||
var/datum/augment_item/aug = GLOB.augment_items[augments[key]]
|
||||
balance += aug.cost
|
||||
// SKYRAT EDIT END
|
||||
for (var/quirk_name in quirks)
|
||||
var/datum/quirk/quirk = all_quirks[quirk_name]
|
||||
if (isnull(quirk))
|
||||
|
||||
Reference in New Issue
Block a user