update: state, event, condition, data.event.types

This commit is contained in:
Vick Scarlet
2026-08-16 20:06:16 +08:00
committed by 神戸小鳥
parent e035cdfe90
commit e646492e75
18 changed files with 1216 additions and 793 deletions
+21
View File
@@ -0,0 +1,21 @@
import type { TalentEffect } from '@remake/data/talent'
import talents from '@remake/data/talent'
import type { Properties } from './state'
import { pick } from '@remake/vitex'
const TalentEffectPropertiesKeyMapper = {
MNY: () => 'money',
STR: () => 'strength',
INT: () => 'intelligence',
CHR: () => 'charm',
SPR: () => 'spirit',
RND: () => pick(['money', 'strength', 'intelligence', 'charm', 'spirit'])!,
} as Record<keyof TalentEffect, () => keyof Properties>
export const count = talents.size
export function get(talent: number) {
return talents.get(talent)
}
export function random(talent: number) {}