diff --git a/src/brogue/Rogue.h b/src/brogue/Rogue.h index 0be0d08d..8137abdb 100644 --- a/src/brogue/Rogue.h +++ b/src/brogue/Rogue.h @@ -2379,6 +2379,7 @@ typedef struct gameConstants { const int amuletLevel; // level on which the amulet appears (used in signed arithmetic) const int depthAccelerator; // factor for how fast depth-dependent features scale compared to usual 26-level dungeon + const int minimumAltarLevel; // how deep before resurrection and commutation altars can be generated const int minimumLavaLevel; // how deep before lava can be generated const int minimumBrimstoneLevel; // how deep before brimstone can be generated const int mutationsOccurAboveLevel; // how deep before monster mutations can be generated diff --git a/src/brogue/SeedCatalog.c b/src/brogue/SeedCatalog.c index 0aa8cc08..00d2f2ed 100644 --- a/src/brogue/SeedCatalog.c +++ b/src/brogue/SeedCatalog.c @@ -306,7 +306,7 @@ int printSeedCatalog(uint64_t startingSeed, uint64_t numberOfSeedsToScan, unsign printSeedCatalogFloorItems(isCsvFormat); printSeedCatalogMonsterItems(isCsvFormat); printSeedCatalogMonsters(isCsvFormat, false); // captives and allies only - if (rogue.depthLevel >= 13) { // resurrection & commutation altars can spawn starting on 13 + if (rogue.depthLevel >= gameConst->minimumAltarLevel) { printSeedCatalogAltars(isCsvFormat); } } diff --git a/src/variants/GlobalsBrogue.c b/src/variants/GlobalsBrogue.c index f15f1919..937ae8ff 100644 --- a/src/variants/GlobalsBrogue.c +++ b/src/variants/GlobalsBrogue.c @@ -1006,6 +1006,7 @@ const gameConstants brogueGameConst = { .amuletLevel = AMULET_LEVEL, .depthAccelerator = 1, + .minimumAltarLevel = 13, .minimumLavaLevel = 4, .minimumBrimstoneLevel = 17, .mutationsOccurAboveLevel = 10, diff --git a/src/variants/GlobalsRapidBrogue.c b/src/variants/GlobalsRapidBrogue.c index c540b091..1c9f8174 100644 --- a/src/variants/GlobalsRapidBrogue.c +++ b/src/variants/GlobalsRapidBrogue.c @@ -1009,6 +1009,7 @@ const gameConstants rapidBrogueGameConst = { .amuletLevel = AMULET_LEVEL, .depthAccelerator = 4, + .minimumAltarLevel = 4, .minimumLavaLevel = 2, .minimumBrimstoneLevel = 5, .mutationsOccurAboveLevel = 3,