Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed seed catalog altars for variants #704

Merged
merged 1 commit into from
Aug 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/brogue/Rogue.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/brogue/SeedCatalog.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down
1 change: 1 addition & 0 deletions src/variants/GlobalsBrogue.c
Original file line number Diff line number Diff line change
Expand Up @@ -1006,6 +1006,7 @@ const gameConstants brogueGameConst = {
.amuletLevel = AMULET_LEVEL,

.depthAccelerator = 1,
.minimumAltarLevel = 13,
.minimumLavaLevel = 4,
.minimumBrimstoneLevel = 17,
.mutationsOccurAboveLevel = 10,
Expand Down
1 change: 1 addition & 0 deletions src/variants/GlobalsRapidBrogue.c
Original file line number Diff line number Diff line change
Expand Up @@ -1009,6 +1009,7 @@ const gameConstants rapidBrogueGameConst = {
.amuletLevel = AMULET_LEVEL,

.depthAccelerator = 4,
.minimumAltarLevel = 4,
.minimumLavaLevel = 2,
.minimumBrimstoneLevel = 5,
.mutationsOccurAboveLevel = 3,
Expand Down
Loading