```
refactor(fight): 重构战斗状态效果系统 - 重命名BaseStatus.Switch方法为SwitchOut以提高语义清晰度 - 修改ParasiticSeed结构体继承关系,从BaseStatus改为EffectNode - 添加Status字段用于存储状态类型枚举 - 修复战斗循环中血量计算逻辑,使用Min替代Max确保血量不超过上限 - 完善PetSwitch逻辑,确保我方单位下场时状态正确失效 fix(fight): 修复战斗播报和切换逻辑 - 在战斗回合信息中添加技能
This commit is contained in:
22
modules/config/controller/admin/cdk.go
Normal file
22
modules/config/controller/admin/cdk.go
Normal file
@@ -0,0 +1,22 @@
|
||||
package admin
|
||||
|
||||
import (
|
||||
"blazing/cool"
|
||||
"blazing/modules/config/service"
|
||||
)
|
||||
|
||||
type CdkController struct {
|
||||
*cool.Controller
|
||||
}
|
||||
|
||||
func init() {
|
||||
|
||||
// 注册路由
|
||||
cool.RegisterController(&CdkController{
|
||||
&cool.Controller{
|
||||
Prefix: "/admin/game/cdk",
|
||||
Api: []string{"Add", "Delete", "Update", "Info", "List", "Page"},
|
||||
Service: service.NewCdkService(),
|
||||
},
|
||||
})
|
||||
}
|
||||
22
modules/config/controller/admin/item.go
Normal file
22
modules/config/controller/admin/item.go
Normal file
@@ -0,0 +1,22 @@
|
||||
package admin
|
||||
|
||||
import (
|
||||
"blazing/cool"
|
||||
"blazing/modules/config/service"
|
||||
)
|
||||
|
||||
type ItemController struct {
|
||||
*cool.Controller
|
||||
}
|
||||
|
||||
func init() {
|
||||
|
||||
// 注册路由
|
||||
cool.RegisterController(&ItemController{
|
||||
&cool.Controller{
|
||||
Prefix: "/admin/game/item",
|
||||
Api: []string{"Add", "Delete", "Update", "Info", "List", "Page"},
|
||||
Service: service.NewItemService(),
|
||||
},
|
||||
})
|
||||
}
|
||||
22
modules/config/controller/admin/shiny.go
Normal file
22
modules/config/controller/admin/shiny.go
Normal file
@@ -0,0 +1,22 @@
|
||||
package admin
|
||||
|
||||
import (
|
||||
"blazing/cool"
|
||||
"blazing/modules/config/service"
|
||||
)
|
||||
|
||||
type ColorController struct {
|
||||
*cool.Controller
|
||||
}
|
||||
|
||||
func init() {
|
||||
|
||||
// 注册路由
|
||||
cool.RegisterController(&ColorController{
|
||||
&cool.Controller{
|
||||
Prefix: "/admin/game/shiny",
|
||||
Api: []string{"Add", "Delete", "Update", "Info", "List", "Page"},
|
||||
Service: service.NewShinyService(),
|
||||
},
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user