时间线优化

This commit is contained in:
hahwu 2026-03-30 21:37:46 +08:00
parent aa160e397a
commit a8945997f7
2 changed files with 2 additions and 4 deletions

View File

@ -333,9 +333,7 @@ func (p *Player) handle(m *msg.Msg) error {
m.Item[0].Num = min(m.Item[0].Num, starNum)
if m.Item[0].Num >= starNum && gameId == playroom.GAME_TYPE_FILP {
bankruptcy = true
if m.Item[0].Num > 0 {
p.AddLog(m.From, friend.LOG_TYPE_PLAYROOM_BANKRUPTCY, fmt.Sprintf("%d", m.Item[0].Num), m.SendT)
}
p.AddLog(m.From, friend.LOG_TYPE_PLAYROOM_BANKRUPTCY, fmt.Sprintf("%d", m.Item[0].Num), m.SendT)
}
p.HandleLoseItem(m.Item, "HANDLE_TYPE_PLAYROOM_LOSE")
} else {

View File

@ -123,7 +123,7 @@ func TestEndless(t *testing.T) {
func TestAdmin(t *testing.T) {
player := new(game.Player)
player.M_DwUin = 100100626
player.M_DwUin = 100100001
player.InitPlayerOnly()
player.ZeroUpdate(nil)
}