```
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful

feat(fight_boss): 重构Boss战斗逻辑并修复捕捉功能

- 移除未使用的taskID和canCapture变量
- 简化Boss数据获取逻辑,移除注释掉的旧代码
- 更新捕捉机制使用bosinfo[0].IsCapture
This commit is contained in:
昔念
2026-02-25 19:46:31 +08:00
parent dc4835f14c
commit 6af88365c2
3 changed files with 12 additions and 62 deletions

View File

@@ -15,8 +15,8 @@ type BossConfig struct {
MapID int32 `gorm:"not null;index;comment:'所属地图ID'" json:"map_id" description:"地图ID"`
Ordernum int32 `gorm:"not null;comment:'排序'" json:"ordernum" description:"排序"`
ParentID int32 `gorm:"column:parentId;type:int" json:"parentId"` // 父ID
Ordernum int32 `gorm:"not null;default:0;comment:'排序'" json:"ordernum" description:"排序"`
ParentID int32 `gorm:"not null;default:0;column:parentId;type:int" json:"parentId"` // 父ID
Remark string `gorm:"comment:'BOSS备注'" json:"remark"`
//是否可捕捉MapPit
IsCapture int `gorm:"type:int;default:0;comment:'是否可捕捉'" json:"is_capture"`