From 081768a45e14b7665f4a60ad013f2457e6343954 Mon Sep 17 00:00:00 2001 From: WinterSolstice8 <60417494+wintersolstice8@users.noreply.github.com> Date: Sat, 2 May 2026 13:30:29 -0600 Subject: [PATCH] [core] Remove some NM only mods (no proof exists) --- src/map/utils/mobutils.cpp | 29 +---------------------------- src/map/utils/mobutils.h | 1 - 2 files changed, 1 insertion(+), 29 deletions(-) diff --git a/src/map/utils/mobutils.cpp b/src/map/utils/mobutils.cpp index 56f244d639b..e24b451d4ef 100644 --- a/src/map/utils/mobutils.cpp +++ b/src/map/utils/mobutils.cpp @@ -1029,7 +1029,7 @@ void CalculateMobStats(CMobEntity* PMob, bool recover) if (PMob->m_Type & MOBTYPE_NOTORIOUS) { - SetupNMMob(PMob); + PMob->setMobMod(MOBMOD_NO_DESPAWN, 1); } if (zoneType & ZONE_TYPE::INSTANCED) @@ -1355,33 +1355,6 @@ void SetupEventMob(CMobEntity* PMob) PMob->setMobMod(MOBMOD_NO_DESPAWN, 1); } -void SetupNMMob(CMobEntity* PMob) -{ - JOBTYPE mJob = PMob->GetMJob(); - uint8 mLvl = PMob->GetMLevel(); - - PMob->setMobMod(MOBMOD_NO_DESPAWN, 1); - - // NMs cure earlier - PMob->defaultMobMod(MOBMOD_HP_HEAL_CHANCE, 50); - PMob->defaultMobMod(MOBMOD_HEAL_CHANCE, 40); - - // give a gil bonus if accurate value was not set - if (PMob->getMobMod(MOBMOD_GIL_MAX) == 0) - { - PMob->defaultMobMod(MOBMOD_GIL_BONUS, 100); - } - - if (mLvl >= 25) - { - if (mJob == JOB_WHM) - { - // whm nms have stronger regen effect - PMob->addModifier(Mod::REGEN, mLvl / 4); - } - } -} - void SetupDungeonInstanceMob(CMobEntity* PMob) { PMob->setMobMod(MOBMOD_GIL_MAX, 0); diff --git a/src/map/utils/mobutils.h b/src/map/utils/mobutils.h index e22f0c70798..f84847531e1 100644 --- a/src/map/utils/mobutils.h +++ b/src/map/utils/mobutils.h @@ -58,7 +58,6 @@ void SetupRoaming(CMobEntity* PMob); void SetupDynamisMob(CMobEntity* PMob); void SetupBattlefieldMob(CMobEntity* PMob); void SetupEventMob(CMobEntity* PMob); -void SetupNMMob(CMobEntity* PMob); void SetupDungeonInstanceMob(CMobEntity* PMob); void SetupPetSkills(CMobEntity* PMob);