回收日bug修复

This commit is contained in:
hahwu 2026-02-26 11:28:09 +08:00
parent 15679495be
commit 36ab0e0d00
2 changed files with 5 additions and 4 deletions

View File

@ -118,6 +118,7 @@ func init() {
gob.Register(&limitedTimeEvent.LuckyCat{})
gob.Register(&msg.HandbookMsg{})
gob.Register(&limitedTimeEvent.CatTrick{})
gob.Register(&limitedTimeEvent.PaybackDay{})
gob.Register(&VarOpration{})
gob.Register(&VarUserData{})
gob.Register(&ActivityInfo{})

View File

@ -82,7 +82,7 @@ type CatTrickInfo struct {
}
type PaybackDay struct {
count int
Count int
}
func (l *LimitedTimeEventMod) InitData(Lv int) {
@ -475,7 +475,7 @@ func initEventInfo(E *LTEInfo, EventType int) {
}
case EVENT_TYPE_PAYBACK_DAY:
E.D = &PaybackDay{
count: limitedTimeEventCfg.GetPaybackDay(),
Count: limitedTimeEventCfg.GetPaybackDay(),
}
case EVENT_TYPE_CAT_TRICK:
Type := limitedTimeEventCfg.GetCatTrickType(int(E.Remian))
@ -504,7 +504,7 @@ func addEventInfo(E *LTEInfo, EventType, Duration int) {
d.MaxEarings += MaxEarning
case EVENT_TYPE_PAYBACK_DAY:
d := E.D.(*PaybackDay)
d.count += limitedTimeEventCfg.GetPaybackDay()
d.Count += limitedTimeEventCfg.GetPaybackDay()
}
}
@ -538,7 +538,7 @@ func getLimitEventMsg(t int, e *LTEInfo) *msg.LimitEvent {
}
case EVENT_TYPE_PAYBACK_DAY:
d := e.D.(*PaybackDay)
Param[msg.LimitEventParam_PAYBACK_DAY_COUNT.String()] = int32(d.count)
Param[msg.LimitEventParam_PAYBACK_DAY_COUNT.String()] = int32(d.Count)
}
return &msg.LimitEvent{
EndTime: EndTime,