From 8a0b14a9d128914f3894b364d77288de0e3bc077 Mon Sep 17 00:00:00 2001 From: WinterSolstice8 <60417494+wintersolstice8@users.noreply.github.com> Date: Wed, 15 Apr 2026 11:42:34 -0600 Subject: [PATCH] [core] Adjust IEP code to /check IEP at 56 exactly also adjust stuff for consistency --- src/map/lua/luautils.cpp | 2 +- src/map/utils/charutils.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/map/lua/luautils.cpp b/src/map/lua/luautils.cpp index cf10cf4328f..189213a47d1 100644 --- a/src/map/lua/luautils.cpp +++ b/src/map/lua/luautils.cpp @@ -1024,7 +1024,7 @@ void LoadExpDifficultyCurves(const sol::table& expToDifficultyTable, const uint8 return a.first > b.first; }); - std::pair iep = { incrediblyEasyPreyMinExp, incrediblyEasyPreyLevel }; + std::pair iep = { incrediblyEasyPreyLevel, incrediblyEasyPreyMinExp }; charutils::SetExpDifficultyCurve(expDifficultyTable, iep); } diff --git a/src/map/utils/charutils.cpp b/src/map/utils/charutils.cpp index a8c0e4c9527..562a0f803d1 100644 --- a/src/map/utils/charutils.cpp +++ b/src/map/utils/charutils.cpp @@ -4639,10 +4639,10 @@ EMobDifficulty CheckMob(uint8 charlvl, CBattleEntity* PMob) } } - auto IEPExp = IncrediblyEasyPreyCheck.first; - auto IEPLevel = IncrediblyEasyPreyCheck.second; + auto IEPLevel = IncrediblyEasyPreyCheck.first; + auto IEPExp = IncrediblyEasyPreyCheck.second; - if (baseExp >= IEPExp && moblvl > IEPLevel) + if (baseExp >= IEPExp && moblvl >= IEPLevel) { return EMobDifficulty::IncrediblyEasyPrey; }