Maintenance: Name numeric switch case labels with enum constants (identifier-only; no code change). 13,500+ case labels across 70 uni

Batch #14886 by ragnarok-clanker: no function's compiled code changes; checked with 225 compiled unit(s), including every includer of Source/Contents/Combat/CombatTypes.h, Source/Contents/Effects/EffectMessageId.h, Source/Contents/Items/InventoryType.h, Source/Contents/Items/ItemId.h, Source/Contents/Jobs/JobId.h, Source/Contents/MessageTable.h, Source/Contents/Skills/SkillId.h, Source/Contents/Skills/SkillUnitId.h, Source/Network/Packets/ModeResultEnums.h, Source/Network/Packets/NoticeEnums.h, Source/Network/Packets/PacketId.h, Source/UI/GameSettings/TalkType.h, Source/UI/Window/WindowId.h.
This commit is contained in:
ragnarok-clanker 2026-11-07 23:58:37 +00:00
commit 854a0e32fb
79 changed files with 14885 additions and 13357 deletions

View file

@ -1,4 +1,5 @@
#include "Client/Mode/CGameMode.h"
#include "Network/Packets/PacketId.h"
#include "Client/Session.h"
#include "UI/Window/UIWindow.h"
#include "UI/Window/UIWindowMgr.h"
@ -25,10 +26,10 @@ void CGameMode::ApplySkillUpdatePacket(const void* packet) {
CSkillInfo value;
switch (opcode) {
case 270:
case ID_ZC_SKILLINFO_UPDATE:
value = g_session.m_skillBundle.Lookup(id);
break;
case 569:
case ID_ZC_HOSKILLINFO_UPDATE:
value = g_session.LookupHomunSkill(id);
break;
case 670:
@ -45,10 +46,10 @@ void CGameMode::ApplySkillUpdatePacket(const void* packet) {
g_session.m_skillBundle.ApplyLevelChange(value);
switch (opcode) {
case 270:
case ID_ZC_SKILLINFO_UPDATE:
g_session.UpdateSkill(value, 1, 0);
break;
case 569:
case ID_ZC_HOSKILLINFO_UPDATE:
g_session.UpdateHomunSkill(value, 1);
break;
case 670: