招财猫优化

This commit is contained in:
hahwu 2025-03-24 12:20:39 +08:00
parent 33e4ff1c55
commit defff755a3

View File

@ -165,10 +165,11 @@ func (l *LimitedTimeEventMod) GetMoneyCatReward(ChessList []int) []*item.Item {
mul := d.Mul
// 超时
if d.EndTime > 0 && GoUtil.Now() >= d.EndTime {
NextMul, Cd := limitedTimeEventCfg.GetMoneyCat(1)
d.EndTime = int64(Cd)
d.Mul = NextMul
Star = int(float64(Star) * NextMul)
NextMul1, _ := limitedTimeEventCfg.GetMoneyCat(1)
NextMul2, Cd := limitedTimeEventCfg.GetMoneyCat(2)
d.EndTime = int64(Cd) + GoUtil.Now()
d.Mul = NextMul2
Star = int(float64(Star) * NextMul1)
} else {
MaxId := limitedTimeEventCfg.GetMoneyCatMax()
NextId := min(d.Id+1, MaxId)