产物商店价格调整
This commit is contained in:
parent
78221562cf
commit
808e3ebf1b
@ -323,21 +323,16 @@ func (c *ChargeMod) InitChessShop(Emit []int) {
|
||||
ProduceList := mergeDataCfg.GetEmitProduceType(v)
|
||||
for _, p := range ProduceList {
|
||||
ChessList := order.GetChessByDiff(v, 1, order.DIFF_MID, p)
|
||||
ColorType := mergeDataCfg.GetColorType(p)
|
||||
//ColorType := mergeDataCfg.GetColorType(p)
|
||||
for _, c := range ChessList {
|
||||
if c == 0 {
|
||||
continue
|
||||
}
|
||||
ChessLv := mergeDataCfg.GetLvById(c)
|
||||
Diamond := int(math.Pow(2, float64(ChessLv-1)) / 2.5)
|
||||
if ColorType == mergeDataCfg.CHESS_PRODUCT_SUB_TYPE {
|
||||
Diamond = int(math.Pow(2, float64(ChessLv-1))/2.5 + 6.4)
|
||||
}
|
||||
Diamond = max(1, Diamond)
|
||||
if ColorType == mergeDataCfg.CHESS_PRODUCT_SECONDARY_TYPE {
|
||||
Diamond *= 2
|
||||
}
|
||||
RandList = append(RandList, &Rand{ChessId: c, Diamond: Diamond})
|
||||
DynamicLv := mergeDataCfg.GetAdjust(v, p)
|
||||
ChessLv += DynamicLv
|
||||
Diamond := math.Round(math.Pow(2, float64(ChessLv)) / 18)
|
||||
RandList = append(RandList, &Rand{ChessId: c, Diamond: int(Diamond)})
|
||||
}
|
||||
}
|
||||
//ColorList = append(ColorList, ProduceList...)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user