```
feat(pet): 添加精灵进化功能并优化融合系统 - 新增PetELV方法实现精灵进化功能,支持分支进化选择 - 添加进化相关的数据结构定义 - 实现进化材料检查和扣除逻辑 - 优化宠物融合失败处理机制 fix(fight): 修复战斗系统和效果计算问题 - 修复NewSeIdx_11和effect_60中的伤害计算逻辑 - 修复战斗状态判断条件,避免非PVP模式下的错误处理 - 优化战斗回合处理流程,修复效果缓存清空时机 - 修复effect_69
This commit is contained in:
@@ -35,3 +35,12 @@ type S2C_50001 struct {
|
||||
type S2C_9756 struct {
|
||||
UseEV uint32 //用掉的学习力
|
||||
}
|
||||
|
||||
// C2S_PET_EVOLVTION 精灵进化相关的客户端到服务端的消息结构
|
||||
type C2S_PET_EVOLVTION struct {
|
||||
Head common.TomeeHeader `cmd:"2314" struc:"skip"`
|
||||
CacthTime uint32 // 精灵的捕捉时间
|
||||
Index uint32 // 进化的分支索引。0代表没选择进化,1就是第一种进化形态,2就是其他分支进化形态
|
||||
// 如果没有分支进化,只有一种进化形态,Index只能为1
|
||||
// 后端直接判断进化条件的材料,执行进化并扣除材料
|
||||
}
|
||||
|
||||
@@ -35,8 +35,8 @@ type C2S_PetFusion struct {
|
||||
Auxcatchtime uint32 `json:"auxcatchtime" msgpack:"auxcatchtime"` // 副精灵的时间戳
|
||||
Item1 [4]uint32 `json:"item1" msgpack:"item1"` // 物品序号1
|
||||
|
||||
GoldItem1 uint32 `json:"gold_item1" msgpack:"gold_item1"` // 0代表未放置 金豆物品1(C#:gold_item1)
|
||||
GoldItem2 uint32 `json:"gold_item2" msgpack:"gold_item2"` // 0代表未放置 金豆物品2(C#:gold_item2)
|
||||
GoldItem1 [2]uint32 `json:"gold_item1" msgpack:"gold_item1"` // 0代表未放置 金豆物品1(C#:gold_item1)
|
||||
|
||||
}
|
||||
|
||||
// PetFusionInfo 精灵融合结果详情(后端回包嵌套结构体)
|
||||
|
||||
Reference in New Issue
Block a user