mirror of
https://github.com/Mezeporta/Erupe.git
synced 2026-05-06 14:24:15 +02:00
Two bugs in handleMsgMhfEnumerateQuest affecting reward multipliers: 1. A Value > 0 filter silently dropped any multiplier set to exactly 0.0 in config, causing the client to fall back to its hardcoded default (100%). So ZennyMultiplier: 0.0 produced *full* zenny instead of none. Removed the filter so zero values are sent verbatim. 2. uint16(float32(0.20) * 100) yields 19, not 20, due to float32 representation of 0.20 being ~0.19999998. Added a multiplierToTuneValue helper using math.Round and applied it to all 18 multiplier call sites (HRP/SRP/GRP/GSRP/Zenny/GZenny/ Material/GMaterial/GCP/GUrgent and NC variants).