From 813dc5747b4c76f7616c54974a2492e169abfe18 Mon Sep 17 00:00:00 2001 From: wish Date: Sat, 10 Jun 2023 13:33:10 +1000 Subject: [PATCH] add DisableHunterNavi GameplayOption --- config.json | 1 + config/config.go | 1 + server/channelserver/handlers_quest.go | 4 ++++ 3 files changed, 6 insertions(+) diff --git a/config.json b/config.json index 69fc89689..30164ec4c 100644 --- a/config.json +++ b/config.json @@ -53,6 +53,7 @@ "GZennyMultiplier": 1.00, "MaterialMultiplier": 1.00, "ExtraCarves": 0, + "DisableHunterNavi": false, "EnableHiganjimaEvent": false, "EnableNierEvent": false, "DisableRoad": false diff --git a/config/config.go b/config/config.go index 4b48fc76c..f52cc73c5 100644 --- a/config/config.go +++ b/config/config.go @@ -82,6 +82,7 @@ type GameplayOptions struct { GZennyMultiplier float32 // Adjusts the multiplier of G Zenny rewarded for quest completion MaterialMultiplier float32 // Adjusts the multiplier of Monster Materials rewarded for quest completion ExtraCarves uint16 // Grant n extra chances to carve ALL carcasses + DisableHunterNavi bool // Disables the Hunter Navi EnableHiganjimaEvent bool // Enables the Higanjima event in the Rasta Bar EnableNierEvent bool // Enables the Nier event in the Rasta Bar DisableRoad bool // Disables the Hunting Road diff --git a/server/channelserver/handlers_quest.go b/server/channelserver/handlers_quest.go index 09a44e71f..aea016b8d 100644 --- a/server/channelserver/handlers_quest.go +++ b/server/channelserver/handlers_quest.go @@ -452,6 +452,10 @@ func handleMsgMhfEnumerateQuest(s *Session, p mhfpacket.MHFPacket) { tuneValues = append(tuneValues, tuneValue{1029, s.server.erupeConfig.GameplayOptions.GUrgentRate}) + if s.server.erupeConfig.GameplayOptions.DisableHunterNavi { + tuneValues = append(tuneValues, tuneValue{1037, 1}) + } + if s.server.erupeConfig.GameplayOptions.EnableHiganjimaEvent { tuneValues = append(tuneValues, tuneValue{1144, 1}) } else {