棋子商店优化
This commit is contained in:
parent
76f14007c2
commit
d69e011de0
@ -311,10 +311,10 @@ func (c *ChargeMod) InitChessShop(Emit []int) {
|
|||||||
if ColorType == mergeDataCfg.CHESS_PRODUCT_SUB_TYPE {
|
if ColorType == mergeDataCfg.CHESS_PRODUCT_SUB_TYPE {
|
||||||
Diamond = int(math.Pow(2, float64(ChessLv-1))/2.5 + 6.4)
|
Diamond = int(math.Pow(2, float64(ChessLv-1))/2.5 + 6.4)
|
||||||
}
|
}
|
||||||
|
Diamond = max(1, Diamond)
|
||||||
if ColorType == mergeDataCfg.CHESS_PRODUCT_SECONDARY_TYPE {
|
if ColorType == mergeDataCfg.CHESS_PRODUCT_SECONDARY_TYPE {
|
||||||
Diamond *= 2
|
Diamond *= 2
|
||||||
}
|
}
|
||||||
Diamond = max(1, Diamond)
|
|
||||||
RandList = append(RandList, &Rand{ChessId: c, Diamond: Diamond})
|
RandList = append(RandList, &Rand{ChessId: c, Diamond: Diamond})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user