mirror of
https://github.com/Mezeporta/Erupe.git
synced 2025-12-16 17:05:03 +01:00
structure & change config for MezFes
This commit is contained in:
@@ -25,8 +25,6 @@
|
|||||||
"DivaEvent": 0,
|
"DivaEvent": 0,
|
||||||
"FestaEvent": -1,
|
"FestaEvent": -1,
|
||||||
"TournamentEvent": 0,
|
"TournamentEvent": 0,
|
||||||
"MezFesEvent": true,
|
|
||||||
"MezFesAlt": false,
|
|
||||||
"DisableTokenCheck": false,
|
"DisableTokenCheck": false,
|
||||||
"QuestDebugTools": false,
|
"QuestDebugTools": false,
|
||||||
"EarthStatusOverride": 0,
|
"EarthStatusOverride": 0,
|
||||||
@@ -66,6 +64,7 @@
|
|||||||
"ExtraCarves": 0,
|
"ExtraCarves": 0,
|
||||||
"DisableHunterNavi": false,
|
"DisableHunterNavi": false,
|
||||||
"MezFesDuration": 172800,
|
"MezFesDuration": 172800,
|
||||||
|
"MezFesSwitchMinigame": false,
|
||||||
"EnableKaijiEvent": false,
|
"EnableKaijiEvent": false,
|
||||||
"EnableHiganjimaEvent": false,
|
"EnableHiganjimaEvent": false,
|
||||||
"EnableNierEvent": false,
|
"EnableNierEvent": false,
|
||||||
|
|||||||
@@ -106,8 +106,6 @@ type DevModeOptions struct {
|
|||||||
DivaEvent int // Diva Defense event status
|
DivaEvent int // Diva Defense event status
|
||||||
FestaEvent int // Hunter's Festa event status
|
FestaEvent int // Hunter's Festa event status
|
||||||
TournamentEvent int // VS Tournament event status
|
TournamentEvent int // VS Tournament event status
|
||||||
MezFesEvent bool // MezFes status
|
|
||||||
MezFesAlt bool // Swaps out Volpakkun for Tokotoko
|
|
||||||
DisableTokenCheck bool // Disables checking login token exists in the DB (security risk!)
|
DisableTokenCheck bool // Disables checking login token exists in the DB (security risk!)
|
||||||
QuestDebugTools bool // Enable various quest debug logs
|
QuestDebugTools bool // Enable various quest debug logs
|
||||||
EarthStatusOverride int32
|
EarthStatusOverride int32
|
||||||
@@ -152,6 +150,7 @@ type GameplayOptions struct {
|
|||||||
ExtraCarves uint16 // Grant n extra chances to carve ALL carcasses
|
ExtraCarves uint16 // Grant n extra chances to carve ALL carcasses
|
||||||
DisableHunterNavi bool // Disables the Hunter Navi
|
DisableHunterNavi bool // Disables the Hunter Navi
|
||||||
MezFesDuration int // Seconds that MezFes will last for weekly (from 12AM Mon backwards)
|
MezFesDuration int // Seconds that MezFes will last for weekly (from 12AM Mon backwards)
|
||||||
|
MezFesSwitchMinigame bool // Swaps out Volpakkun Together for Tokotoko Partnya
|
||||||
EnableKaijiEvent bool // Enables the Kaiji event in the Rasta Bar
|
EnableKaijiEvent bool // Enables the Kaiji event in the Rasta Bar
|
||||||
EnableHiganjimaEvent bool // Enables the Higanjima event in the Rasta Bar
|
EnableHiganjimaEvent bool // Enables the Higanjima event in the Rasta Bar
|
||||||
EnableNierEvent bool // Enables the Nier event in the Rasta Bar
|
EnableNierEvent bool // Enables the Nier event in the Rasta Bar
|
||||||
|
|||||||
@@ -155,35 +155,30 @@ func (s *Session) makeSignResponse(uid uint32) []byte {
|
|||||||
bf.WriteUint32(uint32(s.server.getReturnExpiry(uid).Unix()))
|
bf.WriteUint32(uint32(s.server.getReturnExpiry(uid).Unix()))
|
||||||
bf.WriteUint32(0)
|
bf.WriteUint32(0)
|
||||||
|
|
||||||
mezfes := s.server.erupeConfig.DevModeOptions.MezFesEvent
|
tickets := []uint32{
|
||||||
alt := s.server.erupeConfig.DevModeOptions.MezFesAlt
|
s.server.erupeConfig.GameplayOptions.MezfesSoloTickets,
|
||||||
if mezfes {
|
s.server.erupeConfig.GameplayOptions.MezfesGroupTickets,
|
||||||
// We can just use the start timestamp as the event ID
|
}
|
||||||
bf.WriteUint32(uint32(channelserver.TimeWeekStart().Unix()))
|
stalls := []uint8{
|
||||||
// Start time
|
10, 3, 6, 9, 4, 8, 5, 7,
|
||||||
bf.WriteUint32(uint32(channelserver.TimeWeekNext().Add(-time.Duration(s.server.erupeConfig.GameplayOptions.MezFesDuration) * time.Second).Unix()))
|
}
|
||||||
// End time
|
if s.server.erupeConfig.GameplayOptions.MezFesSwitchMinigame {
|
||||||
bf.WriteUint32(uint32(channelserver.TimeWeekNext().Unix()))
|
stalls[4] = 2
|
||||||
bf.WriteUint8(2) // Unk
|
}
|
||||||
bf.WriteUint32(s.server.erupeConfig.GameplayOptions.MezfesSoloTickets)
|
|
||||||
bf.WriteUint32(s.server.erupeConfig.GameplayOptions.MezfesGroupTickets)
|
// We can just use the start timestamp as the event ID
|
||||||
bf.WriteUint8(8) // Stalls open
|
bf.WriteUint32(uint32(channelserver.TimeWeekStart().Unix()))
|
||||||
bf.WriteUint8(10) // Stall Map
|
// Start time
|
||||||
bf.WriteUint8(3) // Pachinko
|
bf.WriteUint32(uint32(channelserver.TimeWeekNext().Add(-time.Duration(s.server.erupeConfig.GameplayOptions.MezFesDuration) * time.Second).Unix()))
|
||||||
bf.WriteUint8(6) // Nyanrendo
|
// End time
|
||||||
bf.WriteUint8(9) // Point stall
|
bf.WriteUint32(uint32(channelserver.TimeWeekNext().Unix()))
|
||||||
if alt {
|
bf.WriteUint8(uint8(len(tickets)))
|
||||||
bf.WriteUint8(2) // Tokotoko Partnya
|
for i := range tickets {
|
||||||
} else {
|
bf.WriteUint32(tickets[i])
|
||||||
bf.WriteUint8(4) // Volpakkun Together
|
}
|
||||||
}
|
bf.WriteUint8(uint8(len(stalls)))
|
||||||
bf.WriteUint8(8) // Dokkan Battle Cats
|
for i := range stalls {
|
||||||
bf.WriteUint8(5) // Goocoo Scoop
|
bf.WriteUint8(stalls[i])
|
||||||
bf.WriteUint8(7) // Honey Panic
|
|
||||||
} else {
|
|
||||||
bf.WriteUint32(0)
|
|
||||||
bf.WriteUint32(0)
|
|
||||||
bf.WriteUint32(0)
|
|
||||||
}
|
}
|
||||||
return bf.Data()
|
return bf.Data()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user