feat(capture): 重构捕捉系统,实现状态倍率计算和保底机制

This commit is contained in:
1
2025-09-21 14:56:37 +00:00
parent bb9b0510ce
commit 691cfc878b
17 changed files with 563 additions and 539 deletions

View File

@@ -36,6 +36,7 @@ var (
NatureRootMap map[int]NatureItem
EffectMAP map[int]NewSeIdx
PlayerEffectMAP map[int]NewSeIdx
ItemsMAP map[int]Item
)
func initfile() {
@@ -43,6 +44,12 @@ func initfile() {
path = path1 + "/public/config/"
MapConfig = getXml[Maps](path + "210.xml")
ItemsConfig = getXml[Items](path + "43.xml")
ItemsMAP = utils.ToMap[Item, int](ItemsConfig.Items, func(m Item) int {
return m.ID
})
TalkConfig = getXml[TalkCount](path + "talk.xml")
Monster := getXml[MonsterRoot](path + "地图配置野怪.xml")
@@ -52,11 +59,7 @@ func initfile() {
})
Skill := getXml[MovesTbl](path + "227.xml")
// SkillMap = utils.ToMap[Move, int](Skill.Moves, func(m Move) int {
// return m.ID
// })
SkillMap = make(map[int]Move, len(Skill.Moves))
for _, v := range Skill.Moves {
v.SideEffectS = ParseSideEffectArgs(v.SideEffect)