mirror of
https://github.com/VickScarlet/lifeRestart.git
synced 2026-08-28 01:06:49 +08:00
add: character
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import type { Talent } from '@remake/data/talent'
|
||||
import { type Talent, talents } from '@remake/data'
|
||||
import TalentComponent from './Talent'
|
||||
import talents from '@remake/data/talent'
|
||||
import './Replaced.css'
|
||||
|
||||
export interface TalentProps {
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import type { Talent } from '@remake/data/talent'
|
||||
import talents from '@remake/data/talent'
|
||||
import { type Talent, talents } from '@remake/data'
|
||||
import './Talent.css'
|
||||
|
||||
export interface TalentProps {
|
||||
|
||||
@@ -27,6 +27,11 @@ export const AllocLimit = dev.allocate ?? 10
|
||||
export const DefaultSpirit = dev.spirit ?? 5
|
||||
// 天赋抽取个数
|
||||
export const PullCount = dev.pull ?? 10
|
||||
// 名人模式抽取个数
|
||||
export const CharacterPullCount = dev.chara ?? 3
|
||||
// 名人模式抽取权重切线
|
||||
export const CharacterWeightKnife = dev.knife ?? 10
|
||||
|
||||
// 天赋抽取基础概率
|
||||
export const PullRateBase: Config['pull']['rate']['base'] = new Map([
|
||||
[0, 889],
|
||||
@@ -113,6 +118,10 @@ export const config: Config = {
|
||||
additions: PullRateAdditions,
|
||||
},
|
||||
},
|
||||
chara: {
|
||||
count: CharacterPullCount,
|
||||
knife: CharacterWeightKnife,
|
||||
},
|
||||
}
|
||||
|
||||
export default config
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
import { useState, useRef } from 'react'
|
||||
import { useLayoutEffect, useEffect } from 'react'
|
||||
import { useNext, useGotoSummary } from '@remake/hooks'
|
||||
import { useNext, useGotoSummary, type Log } from '@remake/hooks'
|
||||
import { useJudge } from '@/hooks/judge'
|
||||
import type { Log } from '@remake/hooks'
|
||||
import { properties } from '@/display'
|
||||
import { achievements, events, talents } from '@remake/data'
|
||||
import { properties } from '@/display'
|
||||
import { AutoInterval } from '@/config'
|
||||
import { format } from '@remake/vitex'
|
||||
import './Play.css'
|
||||
|
||||
@@ -16,16 +16,14 @@ if (localStorage.getItem('version') !== '3.0.0') {
|
||||
localStorage.getItem('extendTalent') || 'null',
|
||||
)
|
||||
if (lockedTalents) profile.locked = [lockedTalents]
|
||||
const unique = JSON.parse(
|
||||
localStorage.getItem('uniqueWaTaShi') || 'null',
|
||||
)
|
||||
if (unique) profile.unique = unique
|
||||
localStorage.setItem('profile', JSON.stringify(profile))
|
||||
localStorage.removeItem('times')
|
||||
localStorage.removeItem('ACHV')
|
||||
localStorage.removeItem('AEVT')
|
||||
localStorage.removeItem('ATLT')
|
||||
localStorage.removeItem('extendTalent')
|
||||
const unique = localStorage.getItem('uniqueWaTaShi')
|
||||
if (unique) localStorage.setItem('unique', unique)
|
||||
localStorage.removeItem('uniqueWaTaShi')
|
||||
}
|
||||
localStorage.setItem('version', '3.0.0')
|
||||
|
||||
Reference in New Issue
Block a user