[Cleanup] Appearance not appearence (#3819)

# Notes
- These were misspelled.
This commit is contained in:
Alex King 2023-12-30 11:22:02 -05:00 committed by GitHub
parent 53169ae217
commit 836c3d6596
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 15 additions and 15 deletions

View File

@ -4781,7 +4781,7 @@ void EntityList::SendAppearanceEffects(Client *c)
++it; ++it;
continue; continue;
} }
cur->SendSavedAppearenceEffects(c); cur->SendSavedAppearanceEffects(c);
} }
++it; ++it;
} }

View File

@ -86,7 +86,7 @@ void command_appearanceeffects(Client *c, const Seperator *sep)
.texture = t->GetTexture(), .texture = t->GetTexture(),
} }
); );
t->ClearAppearenceEffects(); t->ClearAppearanceEffects();
c->Message( c->Message(
Chat::White, Chat::White,
fmt::format( fmt::format(

View File

@ -3632,7 +3632,7 @@ void Mob::SendIllusionPacket(const AppearanceStruct& a)
SendArmorAppearance(); SendArmorAppearance();
if (a.send_effects) { if (a.send_effects) {
SendSavedAppearenceEffects(nullptr); SendSavedAppearanceEffects(nullptr);
} }
LogSpells( LogSpells(
@ -4092,19 +4092,19 @@ void Mob::SendAppearanceEffect(uint32 parm1, uint32 parm2, uint32 parm3, uint32
} }
if (!value1ground && parm1) { if (!value1ground && parm1) {
SetAppearenceEffects(value1slot, parm1); SetAppearanceEffects(value1slot, parm1);
} }
if (!value2ground && parm2) { if (!value2ground && parm2) {
SetAppearenceEffects(value2slot, parm2); SetAppearanceEffects(value2slot, parm2);
} }
if (!value3ground && parm3) { if (!value3ground && parm3) {
SetAppearenceEffects(value3slot, parm3); SetAppearanceEffects(value3slot, parm3);
} }
if (!value4ground && parm4) { if (!value4ground && parm4) {
SetAppearenceEffects(value4slot, parm4); SetAppearanceEffects(value4slot, parm4);
} }
if (!value5ground && parm5) { if (!value5ground && parm5) {
SetAppearenceEffects(value5slot, parm5); SetAppearanceEffects(value5slot, parm5);
} }
LevelAppearance_Struct* la = (LevelAppearance_Struct*)outapp->pBuffer; LevelAppearance_Struct* la = (LevelAppearance_Struct*)outapp->pBuffer;
@ -4135,7 +4135,7 @@ void Mob::SendAppearanceEffect(uint32 parm1, uint32 parm2, uint32 parm3, uint32
safe_delete(outapp); safe_delete(outapp);
} }
void Mob::SetAppearenceEffects(int32 slot, int32 value) void Mob::SetAppearanceEffects(int32 slot, int32 value)
{ {
for (int i = 0; i < MAX_APPEARANCE_EFFECTS; i++) { for (int i = 0; i < MAX_APPEARANCE_EFFECTS; i++) {
if (!appearance_effects_id[i]) { if (!appearance_effects_id[i]) {
@ -4173,7 +4173,7 @@ void Mob::ListAppearanceEffects(Client* c)
} }
} }
void Mob::ClearAppearenceEffects() void Mob::ClearAppearanceEffects()
{ {
for (int i = 0; i < MAX_APPEARANCE_EFFECTS; i++) { for (int i = 0; i < MAX_APPEARANCE_EFFECTS; i++) {
appearance_effects_id[i] = 0; appearance_effects_id[i] = 0;
@ -4181,7 +4181,7 @@ void Mob::ClearAppearenceEffects()
} }
} }
void Mob::SendSavedAppearenceEffects(Client *receiver = nullptr) void Mob::SendSavedAppearanceEffects(Client *receiver = nullptr)
{ {
if (!appearance_effects_id[0]) { if (!appearance_effects_id[0]) {
return; return;

View File

@ -495,10 +495,10 @@ public:
inline bool HasEndurUpkeep() const { return endur_upkeep; } inline bool HasEndurUpkeep() const { return endur_upkeep; }
inline void SetEndurUpkeep(bool val) { endur_upkeep = val; } inline void SetEndurUpkeep(bool val) { endur_upkeep = val; }
bool HasBuffWithSpellGroup(int spell_group); bool HasBuffWithSpellGroup(int spell_group);
void SetAppearenceEffects(int32 slot, int32 value); void SetAppearanceEffects(int32 slot, int32 value);
void ListAppearanceEffects(Client* c); void ListAppearanceEffects(Client* c);
void ClearAppearenceEffects(); void ClearAppearanceEffects();
void SendSavedAppearenceEffects(Client *receiver); void SendSavedAppearanceEffects(Client *receiver);
void SetBuffDuration(int spell_id, int duration = 0, int level_override = -1); void SetBuffDuration(int spell_id, int duration = 0, int level_override = -1);
void ApplySpellBuff(int spell_id, int duration = 0, int level_override = -1); void ApplySpellBuff(int spell_id, int duration = 0, int level_override = -1);
int GetBuffStatValueBySpell(int32 spell_id, const char* stat_identifier); int GetBuffStatValueBySpell(int32 spell_id, const char* stat_identifier);

View File

@ -1859,7 +1859,7 @@ void Perl_Mob_RemoveAllAppearanceEffects(Mob* self) // @categories Script Utilit
.texture = self->GetTexture(), .texture = self->GetTexture(),
} }
); );
self->ClearAppearenceEffects(); self->ClearAppearanceEffects();
} }
void Perl_Mob_SetFlyMode(Mob* self, int flymode) // @categories Script Utility void Perl_Mob_SetFlyMode(Mob* self, int flymode) // @categories Script Utility