Files
Erupe/server/channelserver/constants_quest.go
Houmgaor 7c444b023b refactor(channelserver): replace magic numbers with named protocol constants
Extract numeric literals into named constants across quest handling,
save data parsing, rengoku skill layout, diva event timing, guild info,
achievement trophies, RP accrual rates, and semaphore IDs. Adds
constants_quest.go for quest-related constants shared across functions.

Pure rename/extract with zero behavior change.
2026-02-20 19:50:28 +01:00

63 lines
1.3 KiB
Go

package channelserver
// Raviente quest type codes
const (
QuestTypeSpecialTool = uint8(9)
QuestTypeRegularRaviente = uint8(16)
QuestTypeViolentRaviente = uint8(22)
QuestTypeBerserkRaviente = uint8(40)
QuestTypeExtremeRaviente = uint8(50)
QuestTypeSmallBerserkRavi = uint8(51)
)
// Event quest binary frame offsets
const (
questFrameTimeFlagOffset = 25
questFrameVariant3Offset = 175
)
// Quest body lengths per game version
const (
questBodyLenS6 = 160
questBodyLenF5 = 168
questBodyLenG101 = 192
questBodyLenZ1 = 224
questBodyLenZZ = 320
)
// BackportQuest constants
const (
questRewardTableBase = uint32(96)
questStringPointerOff = 40
questStringTablePadding = 32
questStringCount = 8
)
// BackportQuest fill lengths per version
const (
questBackportFillS6 = uint32(44)
questBackportFillF5 = uint32(52)
questBackportFillG101 = uint32(76)
questBackportFillZZ = uint32(108)
)
// Tune value count limits per game version
const (
tuneLimitG1 = 256
tuneLimitG3 = 283
tuneLimitGG = 315
tuneLimitG61 = 332
tuneLimitG7 = 339
tuneLimitG81 = 396
tuneLimitG91 = 694
tuneLimitG101 = 704
tuneLimitZ2 = 750
tuneLimitZZ = 770
)
// Event quest data size bounds
const (
questDataMaxLen = 896
questDataMinLen = 352
)