add:tienlen调试发牌修改
This commit is contained in:
parent
1ed0d5b4d7
commit
167e1e9c10
|
@ -1298,26 +1298,22 @@ func (this *TienLenSceneData) SendHandCardOdds() {
|
||||||
allcs[i], allcs[j] = allcs[j], allcs[i]
|
allcs[i], allcs[j] = allcs[j], allcs[i]
|
||||||
})
|
})
|
||||||
|
|
||||||
if len(this.testPokers) > 14 {
|
|
||||||
this.testPokers = this.testPokers[:14]
|
|
||||||
}
|
|
||||||
if len(this.testPokers) < 14 {
|
|
||||||
allcs = common.DelSliceIn32s(allcs, this.testPokers[1:])
|
allcs = common.DelSliceIn32s(allcs, this.testPokers[1:])
|
||||||
this.testPokers = append(this.testPokers, allcs[:14-len(this.testPokers)]...)
|
this.testPokers = append(this.testPokers, allcs...)
|
||||||
allcs = allcs[14-len(this.testPokers):]
|
|
||||||
}
|
|
||||||
|
|
||||||
allcs = common.DelSliceIn32s(allcs, this.testPokers[1:])
|
|
||||||
for _, seat := range this.seats {
|
for _, seat := range this.seats {
|
||||||
if seat != nil && seat.IsGameing() {
|
if seat != nil && seat.IsGameing() && seat.SnId == this.testPokers[0] {
|
||||||
if seat.SnId == this.testPokers[0] {
|
f1(seat, this.testPokers[1:14])
|
||||||
f1(seat, this.testPokers[1:])
|
this.testPokers = this.testPokers[14:]
|
||||||
} else {
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
for _, seat := range this.seats {
|
||||||
|
if seat != nil && seat.IsGameing() && seat.SnId != this.testPokers[0] {
|
||||||
f1(seat, allcs[:13])
|
f1(seat, allcs[:13])
|
||||||
allcs = allcs[13:]
|
allcs = allcs[13:]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
this.testPokers = nil
|
this.testPokers = nil
|
||||||
isTestPoker = true
|
isTestPoker = true
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue