update: play property animation

update: event format field
fix: test
This commit is contained in:
Vick Scarlet
2026-08-12 21:57:49 +08:00
parent f439141ded
commit 2d35eda931
15 changed files with 110 additions and 155 deletions
-13
View File
@@ -188,16 +188,3 @@ function checkProp(property: PropertyContainer, condition: string): boolean {
return false
}
}
export function extractMaxTriggers(condition: string): number {
// Assuming only age related talents can be triggered multiple times.
const RE_AGE_CONDITION = /AGE\?\[([0-9,]+)\]/
const matchObject = RE_AGE_CONDITION.exec(condition)
if (matchObject === null) {
// Not age related, single trigger.
return 1
}
return matchObject[1]?.split(',')?.length ?? 1
}