spell defines and macros (#2162)
This commit is contained in:
parent
7f7ae623df
commit
c4c2e0420c
7 changed files with 52 additions and 48 deletions
|
|
@ -160,7 +160,7 @@ void MaxSpellsCheat()
|
|||
|
||||
for (i = 1; i < MAX_SPELLS; i++) {
|
||||
if (spelldata[i].sBookLvl != -1) {
|
||||
plr[myplr]._pMemSpells |= (__int64)1 << (i - 1);
|
||||
plr[myplr]._pMemSpells |= SPELLBIT(i);
|
||||
plr[myplr]._pSplLvl[i] = 10;
|
||||
}
|
||||
}
|
||||
|
|
@ -168,7 +168,7 @@ void MaxSpellsCheat()
|
|||
|
||||
void SetSpellLevelCheat(char spl, int spllvl)
|
||||
{
|
||||
plr[myplr]._pMemSpells |= (__int64)1 << (spl - 1);
|
||||
plr[myplr]._pMemSpells |= SPELLBIT(spl);
|
||||
plr[myplr]._pSplLvl[spl] = spllvl;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue