Maintenance: Second pass: name remaining numeric switch case labels (identifier-only; no code change). ~3,500 more labels across 150
Batch #14936 by ragnarok-clanker: no function's compiled code changes; checked with 158 compiled unit(s), including every includer of Source/Client/Mode/GameModeEnums.h, Source/Client/Mode/ModeMessage.h, Source/Contents/Actors/ActorEnums.h, Source/Contents/Actors/PetEnums.h, Source/Contents/Combat/CombatTypes.h, Source/Contents/Configuration/ServiceEnums.h, Source/Contents/Effects/EffectPrimId.h, Source/Contents/Hotkeys/InterfaceHotkey.h, Source/Contents/Items/ItemId.h, Source/Contents/Items/ItemType.h, Source/Network/Packets/ModeResultEnums.h, Source/Network/Packets/NoticeEnums.h, Source/Network/Packets/PacketId.h, Source/UI/Window/UIEnums.h, Source/UI/Window/WindowId.h.
This commit is contained in:
parent
71559e0fc0
commit
858265cc69
159 changed files with 5409 additions and 3560 deletions
|
|
@ -1,4 +1,5 @@
|
|||
#include "Contents/Actors/Skill.h"
|
||||
#include "Contents/Actors/ActorEnums.h"
|
||||
#include "Contents/Skills/SkillId.h"
|
||||
#include "Contents/Skills/SkillUnitId.h"
|
||||
|
||||
|
|
@ -347,7 +348,7 @@ void CSkill::SendMsg(CGameObject* sender, int message, int a, int b, int c, int
|
|||
CGameMode* mode = static_cast<CGameMode*>(g_modeMgr.GetGameMode());
|
||||
|
||||
switch (static_cast<std::int64_t>(a) << 32 | static_cast<std::uint32_t>(message)) {
|
||||
case 7: {
|
||||
case AM_CHAT: {
|
||||
const char* text = reinterpret_cast<const char*>(b);
|
||||
if (std::strlen(text) == 0) {
|
||||
return;
|
||||
|
|
@ -370,7 +371,7 @@ void CSkill::SendMsg(CGameObject* sender, int message, int a, int b, int c, int
|
|||
balloon->Move(this->render.screenX - this->unknown_0288 / 2, this->render.screenY - g_renderer->viewport.height * 110 / 480);
|
||||
return;
|
||||
}
|
||||
case 0x25: {
|
||||
case AM_SKILL: {
|
||||
const SkillHitMessage* hit = reinterpret_cast<const SkillHitMessage*>(b);
|
||||
const int skillId = hit->skillId;
|
||||
const int unknown_0014 = hit->unknown_0014;
|
||||
|
|
@ -493,7 +494,7 @@ void CSkill::SendMsg(CGameObject* sender, int message, int a, int b, int c, int
|
|||
}
|
||||
return;
|
||||
}
|
||||
case 0x2D: {
|
||||
case AM_SKILLSTANDENTRY: {
|
||||
const SkillUnitMessage* unit = reinterpret_cast<const SkillUnitMessage*>(b);
|
||||
this->range = unit->range;
|
||||
this->skillAid = unit->aid;
|
||||
|
|
@ -900,7 +901,7 @@ void CSkill::SendMsg(CGameObject* sender, int message, int a, int b, int c, int
|
|||
return;
|
||||
}
|
||||
}
|
||||
case 0x2F:
|
||||
case AM_SETJOB:
|
||||
this->SetActorJob(b);
|
||||
switch (this->GetEffectiveJob(-1)) {
|
||||
case UNT_WARP_WAITING: {
|
||||
|
|
@ -927,7 +928,7 @@ void CSkill::SendMsg(CGameObject* sender, int message, int a, int b, int c, int
|
|||
this->m_model->playback = 1;
|
||||
}
|
||||
return;
|
||||
case 0x35:
|
||||
case AM_DISAPPEAR:
|
||||
if (this->GetEffectiveJob(-1) == UNT_CANE_OF_EVIL_EYE) {
|
||||
CEffect* effect = g_effectMgr->Find(this->render.accountId, 0x903);
|
||||
if (effect != nullptr) {
|
||||
|
|
@ -938,7 +939,7 @@ void CSkill::SendMsg(CGameObject* sender, int message, int a, int b, int c, int
|
|||
actions->OnSkillObjectRemove(this->GetEffectiveJob(-1), this);
|
||||
}
|
||||
return;
|
||||
case 0x77:
|
||||
case AM_SKILL_UPDATE:
|
||||
if (this->render.enabled) {
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue