增加破产时间线
This commit is contained in:
parent
97342e2c60
commit
715762e80c
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user