fix(logic): 修复登录逻辑和战斗系统的问题

- 修正登录时地图 ID 的处理逻辑
- 优化战斗宠物实体和技能实体的创建及使用
- 改进战斗伤害计算和处理方式
- 修复战斗结束后宠物信息更新问题
This commit is contained in:
2025-09-10 22:59:10 +08:00
parent a0441700e5
commit e0ec9ee1ec
4 changed files with 65 additions and 44 deletions

View File

@@ -57,7 +57,10 @@ func (h *Controller) Login(data *login.InInfo, c *service.Conn) (result *login.O
}
}
if t.MapID() > 10000 {
t.Info.MapID = 1
}
t.CompleteLogin() //通知客户端登录成功
glog.Debug(context.Background(), "登录成功,初始地图 人数:", space.GetSpace(t.Info.MapID).Len())