时间线优化
This commit is contained in:
parent
aa160e397a
commit
a8945997f7
@ -333,9 +333,7 @@ func (p *Player) handle(m *msg.Msg) error {
|
|||||||
m.Item[0].Num = min(m.Item[0].Num, starNum)
|
m.Item[0].Num = min(m.Item[0].Num, starNum)
|
||||||
if m.Item[0].Num >= starNum && gameId == playroom.GAME_TYPE_FILP {
|
if m.Item[0].Num >= starNum && gameId == playroom.GAME_TYPE_FILP {
|
||||||
bankruptcy = true
|
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")
|
p.HandleLoseItem(m.Item, "HANDLE_TYPE_PLAYROOM_LOSE")
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@ -123,7 +123,7 @@ func TestEndless(t *testing.T) {
|
|||||||
|
|
||||||
func TestAdmin(t *testing.T) {
|
func TestAdmin(t *testing.T) {
|
||||||
player := new(game.Player)
|
player := new(game.Player)
|
||||||
player.M_DwUin = 100100626
|
player.M_DwUin = 100100001
|
||||||
player.InitPlayerOnly()
|
player.InitPlayerOnly()
|
||||||
player.ZeroUpdate(nil)
|
player.ZeroUpdate(nil)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user