Browse Source

Use loops to spawn needed golems

pull/2647/head
Anders Jenbo 5 years ago
parent
commit
766774bc53
  1. 13
      Source/monster.cpp

13
Source/monster.cpp

@ -3831,10 +3831,8 @@ void monster_some_crypt()
void InitMonsters()
{
if (!setlevel) {
AddMonster(GolemHoldingCell, DIR_S, 0, false);
AddMonster(GolemHoldingCell, DIR_S, 0, false);
AddMonster(GolemHoldingCell, DIR_S, 0, false);
AddMonster(GolemHoldingCell, DIR_S, 0, false);
for (int i = 0; i < MAX_PLRS; i++)
AddMonster(GolemHoldingCell, DIR_S, 0, false);
}
if (!gbIsSpawn && !setlevel && currlevel == 16)
@ -3897,10 +3895,9 @@ void InitMonsters()
void SetMapMonsters(const uint16_t *dunData, Point startPosition)
{
AddMonsterType(MT_GOLEM, PLACE_SPECIAL);
AddMonster(GolemHoldingCell, DIR_S, 0, false);
AddMonster(GolemHoldingCell, DIR_S, 0, false);
AddMonster(GolemHoldingCell, DIR_S, 0, false);
AddMonster(GolemHoldingCell, DIR_S, 0, false);
for (int i = 0; i < MAX_PLRS; i++)
AddMonster(GolemHoldingCell, DIR_S, 0, false);
if (setlevel && setlvlnum == SL_VILEBETRAYER) {
AddMonsterType(UniqMonst[UMT_LAZARUS].mtype, PLACE_UNIQUE);
AddMonsterType(UniqMonst[UMT_RED_VEX].mtype, PLACE_UNIQUE);

Loading…
Cancel
Save