fix(guild): rename GuildMealDuration to ClanMealDuration to match upstream 9.3

- Renamed config key from GuildMealDuration to ClanMealDuration
- Changed unit from minutes to seconds (matching upstream convention)
- Updated handler to use seconds-based calculation
- Updated documentation and examples

This fixes the bug where clan meals were not being shared between
guild members when using a config.json with the upstream naming.
This commit is contained in:
Houmgaor
2026-01-30 00:32:00 +01:00
parent 6b8e468073
commit 3a1b410ee3
6 changed files with 17 additions and 17 deletions

View File

@@ -69,7 +69,7 @@ type GameplayOptions struct {
DisableLoginBoost bool // Disables the Login Boost system
DisableBoostTime bool // Disables the daily NetCafe Boost Time
BoostTimeDuration int // The number of minutes NetCafe Boost Time lasts for
GuildMealDuration int // The number of minutes a Guild Meal can be activated for after cooking
ClanMealDuration int // Seconds that a Clan Meal can be activated for after cooking
BonusQuestAllowance uint32 // Number of Bonus Point Quests to allow daily
DailyQuestAllowance uint32 // Number of Daily Quests to allow daily
}

View File

@@ -501,7 +501,7 @@ func TestConfigCompleteStructure(t *testing.T) {
MaximumRP: 65535,
DisableLoginBoost: false,
BoostTimeDuration: 60,
GuildMealDuration: 30,
ClanMealDuration: 1800,
BonusQuestAllowance: 10,
DailyQuestAllowance: 5,
},