小猫戏法优化
This commit is contained in:
parent
d066b8b979
commit
09879e9a4a
@ -158,7 +158,9 @@ func (l *LimitedTimeEventMod) Trigger(Lv int) (int, []int, []int) {
|
||||
|
||||
// 增加限时事件
|
||||
func (l *LimitedTimeEventMod) AddEvent(EventId, Duration int) int64 {
|
||||
if v, ok := l.EventList[EventId]; ok {
|
||||
v, ok := l.EventList[EventId]
|
||||
if ok && v.StartT+v.Remian > GoUtil.Now() {
|
||||
// 事件未过期
|
||||
v.Remian += int64(Duration)
|
||||
addEventInfo(v, EventId, Duration)
|
||||
} else {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user