Skip to content

Commit

Permalink
Move Lazarus spawn code
Browse files Browse the repository at this point in the history
  • Loading branch information
kphoenix137 committed Oct 8, 2024
1 parent baaa906 commit 3d398b8
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions Source/monster.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -545,6 +545,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);
}
}

Expand Down Expand Up @@ -3577,15 +3584,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);
}

WorldTileSize size = GetDunSize(dunData);

int layer2Offset = 2 + size.width * size.height;
Expand Down

0 comments on commit 3d398b8

Please sign in to comment.