招财猫优化
This commit is contained in:
parent
d022641ff2
commit
43bbdc6f6c
@ -188,7 +188,7 @@ func (l *LimitedTimeEventMod) GetMoneyCatReward(ChessList []int) []*item.Item {
|
||||
d.EndTime = int64(Cd) + GoUtil.Now()
|
||||
d.Mul = NextMul2
|
||||
d.Id = 2
|
||||
Star = int(float64(Star) * (NextMul1 - 1))
|
||||
Star = int(math.Ceil(float64(Star) * (NextMul1 - 1)))
|
||||
} else {
|
||||
MaxId := limitedTimeEventCfg.GetMoneyCatMax()
|
||||
NextId := min(d.Id+1, MaxId)
|
||||
@ -196,7 +196,7 @@ func (l *LimitedTimeEventMod) GetMoneyCatReward(ChessList []int) []*item.Item {
|
||||
d.Id = NextId
|
||||
d.Mul = NextMul
|
||||
d.EndTime = GoUtil.Now() + int64(Cd)
|
||||
Star = int(float64(Star) * (mul - 1))
|
||||
Star = int(math.Ceil(float64(Star) * (mul - 1)))
|
||||
}
|
||||
|
||||
return []*item.Item{{Id: item.ITEM_STAR_ID, Num: Star}}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user