mirror of
https://github.com/VickScarlet/lifeRestart.git
synced 2026-08-29 10:04:43 +08:00
update: play property animation
update: event format field fix: test
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user