diff --git a/Source/items.cpp b/Source/items.cpp index a2af6d10b..474d4a13c 100644 --- a/Source/items.cpp +++ b/Source/items.cpp @@ -402,6 +402,31 @@ int items_get_currlevel() return lvl; } + +void items_42390F() +{ + int x, y, id; + + x = random(12, 80) + 16; + y = random(12, 80) + 16; + while (!ItemPlace(x, y)) { + x = random(12, 80) + 16; + y = random(12, 80) + 16; + } + switch (currlevel) { + case 22: + id = IDI_NOTE2; + break; + case 23: + id = IDI_NOTE3; + break; + default: + id = IDI_NOTE1; + break; + } + SpawnQuestItem(id, x, y, 0, 1); +} + #endif void InitItemGFX() @@ -510,8 +535,18 @@ void InitItems() SpawnRock(); if (QuestStatus(QTYPE_ANVIL)) SpawnQuestItem(IDI_ANVIL, 2 * setpc_x + 27, 2 * setpc_y + 27, 0, 1); +#ifdef HELLFIRE + if (UseCowFarmer && currlevel == 20) + SpawnQuestItem(IDI_BROWNSUIT, 25, 25, 3, 1); + if (UseCowFarmer && currlevel == 19) + SpawnQuestItem(IDI_GREYSUIT, 25, 25, 3, 1); +#endif if (currlevel > 0 && currlevel < 16) AddInitItems(); +#ifdef HELLFIRE + if (currlevel >= 21 && currlevel <= 23) + items_42390F(); +#endif } uitemflag = FALSE; diff --git a/Source/items.h b/Source/items.h index 943564cb5..136828bde 100644 --- a/Source/items.h +++ b/Source/items.h @@ -31,6 +31,7 @@ int items_42342E(int i); int items_4234B2(int i); int items_423518(int i); int items_42357E(int i); +void items_42390F(); int items_get_currlevel(); #endif void InitItemGFX();