feat(fight_tawor): 优化试炼之塔和勇者之塔战斗逻辑

- 修正函数注释格式,使用正确的缩进格式化参数说明
- 移除硬编码的MapID设置,统一在EnterMap/LeaveMap中处理
- 将进入地图逻辑改为离开地图,优化战斗流程
- 简化退出战斗逻辑,移除重复的MapID设置

refactor(config): 重命名塔配置模型和接口前缀

- 将试炼之塔模型TrialTowerConfig重命名为Tower500Config
- 将勇者之塔模型BraveTowerConfig重命名为Tower600Config
- 移除重复的业务操作方法,统一使用基础配置
- 更新Boss控制器接口前缀从/monster/boss到/config/boss

refactor(boss): 移除不必要的导入和扩展结构

- 移除boss_pet.go中的冗余data包导入
- 移除BossConfigEX扩展结构,简化模型
This commit is contained in:
2025-12-26 05:41:51 +08:00
parent fd4c494530
commit b8d6772256
12 changed files with 146 additions and 213 deletions

View File

@@ -0,0 +1,18 @@
package service
import (
"blazing/cool"
"blazing/modules/config/model"
)
type PetRewardService struct {
*cool.Service
}
func NewPetRewardService() *PetRewardService {
return &PetRewardService{
&cool.Service{
Model: model.NewPetReward(),
},
}
}

View File

@@ -0,0 +1,18 @@
package service
import (
"blazing/cool"
"blazing/modules/config/model"
)
type Tower500Service struct {
*cool.Service
}
func NewTower500Service() *Tower500Service {
return &Tower500Service{
&cool.Service{
Model: model.New500TowerConfig(),
},
}
}

View File

@@ -0,0 +1,18 @@
package service
import (
"blazing/cool"
"blazing/modules/config/model"
)
type Tower600Service struct {
*cool.Service
}
func NewTower600Service() *Tower600Service {
return &Tower600Service{
&cool.Service{
Model: model.New600TowerConfig(),
},
}
}