Handle mixed item origins in multiplayer

This commit is contained in:
Anders Jenbo 2021-03-31 02:43:32 +02:00
commit bba73ea20f
19 changed files with 234 additions and 71 deletions

View file

@ -85,12 +85,8 @@ void TakeGoldCheat()
void MaxSpellsCheat()
{
int i;
int maxSpells = gbIsHellfire ? MAX_SPELLS : 37;
for (i = 1; i < maxSpells; i++) {
if (GetSpellBookLevel(i) != -1) {
for (int i = SPL_FIREBOLT; i < MAX_SPELLS; i++) {
if (GetSpellBookLevel((spell_id)i) != -1) {
plr[myplr]._pMemSpells |= GetSpellBitmask(i);
plr[myplr]._pSplLvl[i] = 10;
}