```
feat(fight): 添加试炼之塔和勇者之塔战斗功能 - 实现FreshChoiceFightLevel方法,支持试炼之塔(2428)和勇者之塔(2414)的关卡选择 - 添加PetTawor方法,支持宠物对战功能,处理CMD 2429和2415命令 - 集成Boss配置服务,动态获取Boss信息并设置战斗属性 - 重构Boss性别检查字段访问路径,修正战斗逻辑错误 - 移除未使用的xmlres依赖
This commit is contained in:
@@ -2,7 +2,6 @@ package fight
|
||||
|
||||
import (
|
||||
"blazing/common/data"
|
||||
"blazing/common/data/xmlres"
|
||||
"blazing/common/socket/errorcode"
|
||||
"blazing/common/utils"
|
||||
"blazing/cool"
|
||||
@@ -132,26 +131,6 @@ func (f *FightC) LoadPercent(c common.PlayerI, percent int32) {
|
||||
|
||||
var meetpet = make(map[int]model.PetInfo)
|
||||
|
||||
func initmeetpet() {
|
||||
meetpet = make(map[int]model.PetInfo)
|
||||
for i, v := range xmlres.PetMAP {
|
||||
|
||||
if v.EvolvesTo != 0 {
|
||||
continue
|
||||
}
|
||||
if v.EvolvFlag != 0 {
|
||||
continue
|
||||
}
|
||||
if v.ID > 2000 {
|
||||
continue
|
||||
}
|
||||
|
||||
r := model.GenPetInfo(int(v.ID), 24, -1, -1, 100, nil)
|
||||
|
||||
meetpet[i] = *r
|
||||
|
||||
}
|
||||
}
|
||||
func (f *FightC) initplayer(c common.PlayerI) (*input.Input, errorcode.ErrorCode) {
|
||||
|
||||
if !c.CanFight() {
|
||||
|
||||
Reference in New Issue
Block a user