refactor(fight): 重构战斗系统

- 移除 Player 结构中的 IsFighting 字段,使用 FightID 替代
- 优化 Move 结构,重新排序字段并添加注释
- 修改 EffectNode 和相关结构,统一使用 Ctx 字段名称
- 重构 Battle 和 BattlePetEntity 结构,简化属性并优化布局
- 更新战斗逻辑,调整效果应用和回合处理机制
This commit is contained in:
2025-09-03 00:37:05 +08:00
parent 39893e4df9
commit c42e392efe
9 changed files with 65 additions and 50 deletions

View File

@@ -15,7 +15,7 @@ import (
)
func (h Controller) OnPlayerFightNpcMonster(data *info.FightNpcMonsterInboundInfo, c *socket.Player) (result *info.NullOutboundInfo, err errorcode.ErrorCode) {
c.IsFighting = true
// c.IsFighting = true
ttt := info.NoteReadyToFightInfo{
OwnerID: data.Head.UserID,