Skip to content

Commit

Permalink
Move Lazarus spawn code
Browse files Browse the repository at this point in the history
  • Loading branch information
kphoenix137 authored and AJenbo committed Oct 8, 2024
1 parent 8dc6e05 commit d6c8189
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 @@ -542,6 +542,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 @@ -3574,15 +3581,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 d6c8189

Please sign in to comment.