退役清理订单不判断棋子是否解锁

This commit is contained in:
hahwu 2026-03-27 16:54:35 +08:00
parent ae558370d5
commit 47de734e17

View File

@ -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))
}
}