增加破产时间线

This commit is contained in:
hahwu 2026-03-30 19:54:39 +08:00
parent 97342e2c60
commit 715762e80c

View File

@ -860,6 +860,7 @@ func (p *PlayroomMod) FlipCard(pos int) (int, error) {
func (p *PlayroomMod) GetFlipReward() ([]*item.Item, int, int, error) {
check := make(map[int]int)
var items []*item.Item
target := p.Target
result := FLIP_TYPE_COPPER
for _, v := range p.Flip {
check[v]++
@ -881,10 +882,10 @@ func (p *PlayroomMod) GetFlipReward() ([]*item.Item, int, int, error) {
p.LastFlip = v
p.Flip = make(map[int]int)
p.ResetGame()
return items, p.Target, result, nil
return items, target, result, nil
}
}
return items, p.Target, result, fmt.Errorf("GetFlipReward check is not 3")
return items, target, result, fmt.Errorf("GetFlipReward check is not 3")
}
func (p *PlayroomMod) BuyItem(id int) ([]*item.Item, []*item.Item) {