修复战斗

This commit is contained in:
1
2025-11-15 22:17:43 +00:00
parent 4a4806fd82
commit 88cd1affe4
38 changed files with 708 additions and 847 deletions

View File

@@ -3,7 +3,9 @@ package player
import (
"blazing/common/data/share"
"blazing/cool"
"blazing/logic/service/fight/info"
"blazing/logic/service/space"
"context"
"time"
)
@@ -45,7 +47,8 @@ func (p *Player) Save() {
p.Info.OnlineTime = (newtime - uint32(p.Logintime)) / 60 //每次退出时候保存已经在线的分钟数
p.Service.Save(p.Info)
LeaveMap(p)
space.GetSpace(p.Info.MapID).LeaveMap(p)
p.StopChan.Stop() //停止刷怪
p.IsLogin = false
@@ -67,8 +70,8 @@ func (lw *Player) CompleteLogin() {
lw.Info.MapID = 1
}
if lw.IsNewPlayer() { //重置新手地图
lw.Info.MapID = 515
if lw.IsNewPlayer() { //重置新手地图,放到机械仓
lw.Info.MapID = 8
}
lw.IsLogin = true
}