playroom bug修复

This commit is contained in:
hahwu 2026-03-30 19:22:15 +08:00
parent d709e81adf
commit 97342e2c60
2 changed files with 2 additions and 3 deletions

View File

@ -341,7 +341,7 @@ func (p *Player) handle(m *msg.Msg) error {
BaseMod := p.PlayMod.getBaseMod()
starNum := BaseMod.GetStar()
m.Item[0].Num = min(m.Item[0].Num, starNum)
if m.Item[0].Num >= starNum {
if m.Item[0].Num >= starNum && gameId == playroom.GAME_TYPE_FILP {
bankruptcy = true
p.AddLog(m.From, friend.LOG_TYPE_PLAYROOM_BANKRUPTCY, fmt.Sprintf("%d", m.Item[0].Id), m.SendT)
}

View File

@ -881,10 +881,9 @@ func (p *PlayroomMod) GetFlipReward() ([]*item.Item, int, int, error) {
p.LastFlip = v
p.Flip = make(map[int]int)
p.ResetGame()
return items, 0, result, nil
return items, p.Target, result, nil
}
}
return items, p.Target, result, fmt.Errorf("GetFlipReward check is not 3")
}