change triggered talents to a map + make age related talents multi-triggerable

This commit is contained in:
Arnoldosmium
2021-09-06 22:17:07 -04:00
committed by 神戸小鳥
parent e3f93818d6
commit 3b83c7b9e3
3 changed files with 23 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
import { clone } from './functions/util.js';
import { checkCondition } from './functions/condition.js';
import { checkCondition, extractMaxTriggers } from './functions/condition.js';
class Talent {
constructor() {}
@@ -12,6 +12,7 @@ class Talent {
const talent = talents[id];
talent.id= Number(id);
talent.grade = Number(talent.grade);
talent.max_triggers = extractMaxTriggers(talent.condition);
}
}