[Cleanup] Cleanup magic numbers (#2662)

* [Cleanup] Cleanup magic numbers

* renamed RACE_NODE
This commit is contained in:
Aeadoin
2022-12-20 11:31:42 -05:00
committed by GitHub
parent ed6194ad19
commit 900e1aecf6
6 changed files with 43 additions and 27 deletions
+1
View File
@@ -1612,6 +1612,7 @@ namespace PlayerAppearance
#define RACE_LUCLIN_731 731
#define RACE_PEGASUS_732 732
#define RACE_INTERACTIVE_OBJECT_2250 2250
#define RACE_NODE_2254 2254
#endif
+3 -1
View File
@@ -76,6 +76,7 @@
#include "classes.h"
#include "spdat.h"
#include "../common/rulesys.h"
#ifndef WIN32
#include <stdlib.h>
@@ -747,8 +748,9 @@ bool IsCombatSkill(uint16 spell_id)
bool IsResurrectionEffects(uint16 spell_id)
{
// spell id 756 is Resurrection Effects spell
if(IsValidSpell(spell_id) && (spell_id == 756 || spell_id == 757))
if (IsValidSpell(spell_id) && (spell_id == RuleI(Character, ResurrectionSicknessSpellID) || spell_id == RuleI(Character, OldResurrectionSicknessSpellID))) {
return true;
}
return false;
}