diff --git a/Source/debug.cpp b/Source/debug.cpp index 1ed3720e7..4cedf1bcc 100644 --- a/Source/debug.cpp +++ b/Source/debug.cpp @@ -112,6 +112,7 @@ void GiveGoldCheat() void StoresCheat() { +#ifndef HELLFIRE int i; numpremium = 0; @@ -125,6 +126,7 @@ void StoresCheat() witchitem[i]._itype = -1; SpawnWitch(30); +#endif } void TakeGoldCheat() diff --git a/Source/items.cpp b/Source/items.cpp index 5e274c2a0..5b7bee36f 100644 --- a/Source/items.cpp +++ b/Source/items.cpp @@ -4208,10 +4208,17 @@ void SpawnOnePremium(int i, int plvl) item[0] = holditem; } +#ifdef HELLFIRE +void SpawnPremium(int pnum) +#else void SpawnPremium(int lvl) +#endif { int i; +#ifdef HELLFIRE + int lvl = plr[pnum]._pLevel; +#endif if (numpremium < SMITH_PREMIUM_ITEMS) { for (i = 0; i < SMITH_PREMIUM_ITEMS; i++) { if (premiumitem[i]._itype == ITYPE_NONE) diff --git a/Source/items.h b/Source/items.h index 4c900a06a..f634ecce8 100644 --- a/Source/items.h +++ b/Source/items.h @@ -139,7 +139,11 @@ void SpawnSmith(int lvl); BOOL PremiumItemOk(int i); int RndPremiumItem(int minlvl, int maxlvl); void SpawnOnePremium(int i, int plvl); +#ifdef HELLFIRE +void SpawnPremium(int pnum); +#else void SpawnPremium(int lvl); +#endif BOOL WitchItemOk(int i); int RndWitchItem(int lvl); void SortWitch(); diff --git a/Source/stores.cpp b/Source/stores.cpp index fdecd3d72..2dabfabf4 100644 --- a/Source/stores.cpp +++ b/Source/stores.cpp @@ -122,7 +122,11 @@ void SetupTownStores() SpawnWitch(l); SpawnHealer(l); SpawnBoy(plr[myplr]._pLevel); +#ifdef HELLFIRE + SpawnPremium(myplr); +#else SpawnPremium(plr[myplr]._pLevel); +#endif } void FreeStoreMem() @@ -1956,7 +1960,11 @@ void SmithBuyPItem() premiumitem[xx]._itype = ITYPE_NONE; numpremium--; +#ifdef HELLFIRE + SpawnPremium(myplr); +#else SpawnPremium(plr[myplr]._pLevel); +#endif } void S_SPBuyEnter()