From 3c08fc59356818c1168be7b4167f4bf2723bf187 Mon Sep 17 00:00:00 2001 From: Eric Robinson Date: Mon, 7 Oct 2024 23:38:20 -0400 Subject: [PATCH] Move Lazarus spawn code --- Source/monster.cpp | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/Source/monster.cpp b/Source/monster.cpp index 1650e98806e..4080b4dff7d 100644 --- a/Source/monster.cpp +++ b/Source/monster.cpp @@ -544,6 +544,13 @@ void PlaceQuestMonsters() } } else if (setlvlnum == SL_SKELKING) { PlaceUniqueMonst(UniqueMonsterType::SkeletonKing, 0, 0); + } else if (setlvlnum == SL_VILEBETRAYER) { + AddMonsterType(UniqueMonsterType::Lazarus, PLACE_UNIQUE); + AddMonsterType(UniqueMonsterType::RedVex, PLACE_UNIQUE); + AddMonsterType(UniqueMonsterType::BlackJade, PLACE_UNIQUE); + PlaceUniqueMonst(UniqueMonsterType::Lazarus, 0, 0); + PlaceUniqueMonst(UniqueMonsterType::RedVex, 0, 0); + PlaceUniqueMonst(UniqueMonsterType::BlackJade, 0, 0); } } @@ -3541,15 +3548,6 @@ void SetMapMonsters(const uint16_t *dunData, Point startPosition) for (int i = 0; i < MAX_PLRS; i++) AddMonster(GolemHoldingCell, Direction::South, 0, false); - if (setlevel && setlvlnum == SL_VILEBETRAYER) { - AddMonsterType(UniqueMonsterType::Lazarus, PLACE_UNIQUE); - AddMonsterType(UniqueMonsterType::RedVex, PLACE_UNIQUE); - AddMonsterType(UniqueMonsterType::BlackJade, PLACE_UNIQUE); - PlaceUniqueMonst(UniqueMonsterType::Lazarus, 0, 0); - PlaceUniqueMonst(UniqueMonsterType::RedVex, 0, 0); - PlaceUniqueMonst(UniqueMonsterType::BlackJade, 0, 0); - } - int width = SDL_SwapLE16(dunData[0]); int height = SDL_SwapLE16(dunData[1]);