update: character

This commit is contained in:
Vick Scarlet
2026-08-16 20:06:16 +08:00
committed by 神戸小鳥
parent ad4e83fc47
commit f4204601ee
22 changed files with 495 additions and 101 deletions
+6 -1
View File
@@ -1,6 +1,6 @@
import { useCallback } from 'react'
import { atom, useSetAtom, useAtomValue } from 'jotai'
import type { PullOptions, PullCharaOpt } from '@remake/core'
import type { PullOptions, PullCharaOpt, UniqueGenCfg } from '@remake/core'
export interface Config {
/** 游戏锁定天赋数量 */
lock: number
@@ -20,6 +20,11 @@ export interface Config {
pull: PullOptions
/** 名人模式配置 */
chara: PullCharaOpt
/** 唯一角色限制 */
unique: {
limit: number
config: UniqueGenCfg
}
}
export const configAtom = atom<Config | null>(null)