update: toolchan

This commit is contained in:
Vick Scarlet
2025-04-05 17:27:00 +08:00
parent 6b58fa99cf
commit 2eaf7a1ba2
65 changed files with 2119 additions and 189372 deletions
+3 -5
View File
@@ -43,7 +43,7 @@ function parseCondition(condition) {
return conditions;
}
function checkCondition(property, condition) {
export function checkCondition(property, condition) {
const conditions = parseCondition(condition);
return checkParsedConditions(property, conditions);
}
@@ -113,7 +113,7 @@ function checkProp(property, condition) {
}
}
function extractMaxTriggers(condition) {
export function extractMaxTriggers(condition) {
// Assuming only age related talents can be triggered multiple times.
const RE_AGE_CONDITION = /AGE\?\[([0-9\,]+)\]/;
const match_object = RE_AGE_CONDITION.exec(condition);
@@ -124,6 +124,4 @@ function extractMaxTriggers(condition) {
const age_list = match_object[1].split(",");
return age_list.length;
}
export { checkCondition, extractMaxTriggers };
}