feat(fight_pvp_king): 新增宠物王者对战模式支持 - 添加战斗类型11的处理逻辑,支持单人模式 - 验证宠物类型与对战类型的匹配性 - 根据战斗结果发放相应奖励物品 - 增加ItemAdd接口用于物品添加功能 - 扩展PetInfo结构体增加战斗类型字段 ```
This commit is contained in:
@@ -118,6 +118,10 @@ type PetInfo struct {
|
||||
ExtSkin []uint32 `struc:"skip"` //可用皮肤
|
||||
}
|
||||
|
||||
func (pet *PetInfo) Type() int {
|
||||
return xmlres.PetMAP[int(pet.ID)].Type
|
||||
|
||||
}
|
||||
func (pet *PetInfo) ModelHP(tt int64) {
|
||||
if pet.Hp <= 0 {
|
||||
if tt > int64(pet.Hp) {
|
||||
|
||||
Reference in New Issue
Block a user