refactor(fight): 重构战斗模块数据结构和逻辑
- 更新 FightPetInfo 和 AttackValue 结构体,优化精灵属性和状态表示 - 删除未使用的 start_test.go 文件 - 调整 FightC 结构体,整合战斗准备和状态管理 - 统一 SkillInfo 中 PP 字段命名
This commit is contained in:
@@ -63,7 +63,7 @@ func GenPetInfo(id, dv, natureId, abilityTypeEnum, shinyid, level uint32) *PetIn
|
||||
tttt = LastFourElements(tttt) //获取最后四个技能,如果不足,那就取全部技能
|
||||
for i := 0; i < len(tttt); i++ {
|
||||
p.SkillList[i].ID = tttt[i]
|
||||
p.SkillList[i].Pp = uint32(xmlres.SkillMap[int(tttt[i])].MaxPP)
|
||||
p.SkillList[i].PP = uint32(xmlres.SkillMap[int(tttt[i])].MaxPP)
|
||||
|
||||
}
|
||||
p.SkillListLen = uint32(len(tttt))
|
||||
@@ -246,7 +246,7 @@ type PetEffectInfo struct {
|
||||
// SkillInfo 精灵技能信息结构(SkillInfo)
|
||||
type SkillInfo struct {
|
||||
ID uint32
|
||||
Pp uint32
|
||||
PP uint32
|
||||
}
|
||||
|
||||
// TableName Pet's table name
|
||||
|
||||
Reference in New Issue
Block a user