pre cw with probe and a bunch script to read game behavior
This commit is contained in:
1 parent
5120219ae2
commit
da8a32f60d
310 files changed
+219693
-872
No files matched your search
@@ -471,13 +471,21 @@ func init() {
|
||||
})
|
||||
|
||||
handle("GetActivityScheduleConfig", func(s *Session, req *goproto.GetActivityScheduleConfigCsReq, rsp *goproto.GetActivityScheduleConfigScRsp) error {
|
||||
cfg, err := common.LoadRuntimeConfig()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
cw, err := common.LoadCurrencyWarsCatalog()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
rsp.Retcode = 0
|
||||
add := func(activityID, panelID uint32) {
|
||||
rsp.ScheduleData = append(rsp.ScheduleData, &goproto.ActivityScheduleData{
|
||||
ActivityId: activityID,
|
||||
PanelId: panelID,
|
||||
BeginTime: 0,
|
||||
EndTime: 1924992000,
|
||||
BeginTime: *cfg.ActivitySchedule.BeginTime,
|
||||
EndTime: *cfg.ActivitySchedule.EndTime,
|
||||
})
|
||||
}
|
||||
// Advertise only the supported Endgame schedules. Exposing the full
|
||||
@@ -491,6 +499,9 @@ func init() {
|
||||
for i := uint32(1); i <= 8; i++ {
|
||||
add(2100000+i*100+1, 21001)
|
||||
}
|
||||
for _, schedule := range cw.ActivitySchedules() {
|
||||
add(schedule.ModuleID, schedule.ActivityID)
|
||||
}
|
||||
return nil
|
||||
})
|
||||
}
|
||||
Reference in new issue
Block a user