退役清理订单不判断棋子是否解锁
This commit is contained in:
parent
ae558370d5
commit
47de734e17
@ -653,10 +653,9 @@ func (cb *ChessBorad) RetireOrder(emitType string) error {
|
||||
}
|
||||
chess := make([]int, 0, len(cb.ChessMap))
|
||||
emitProduct := mergeDataCfg.GetEmitOrderProduce(emitType)
|
||||
for k, v := range cb.ChessMap {
|
||||
arr := strings.Split(k, "@")
|
||||
for _, v := range cb.ChessMap {
|
||||
color := mergeDataCfg.GetColorById(int(v))
|
||||
if arr[2] == "0" && GoUtil.InStringArray(color, emitProduct) {
|
||||
if GoUtil.InStringArray(color, emitProduct) {
|
||||
chess = append(chess, int(v))
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user