Skip to content

Added mineshaft loot and stronghold loot - #28

Open
Colin-Henry wants to merge 43 commits into
xpple:mineshaft-genfrom
Colin-Henry:master
Open

Added mineshaft loot and stronghold loot#28
Colin-Henry wants to merge 43 commits into
xpple:mineshaft-genfrom
Colin-Henry:master

Conversation

@Colin-Henry

Copy link
Copy Markdown

Mineshaft.c:
-Added terrain detection (via bitmasks) for loot. >99% accurate
Stronghold.c:
-Added terrain, mineshaft, and dungeon detection (via bitmasks) for loot. >98% accurate
Dungeon.c:
-Added dungeon detection. No standalone function yet - dungeons require all structures & carvers. Only used in stronghold loot logic for now
Finders.c:
-Added lake logic (and standalone lake search function)
-Put trig fxn lookup table here (sadly required for strongholds, boosted results by 1.8%)

Colin-Henry and others added 30 commits July 7, 2026 18:47
…arver bugs

Generator.c/.h:
-Added isNaturalWater (a more exact surface height detection used for mineshaft logic)
Finders.c/.h:
-Corrected all bugs in previous versions (including neighbor behavior). Carvers should be fully accurate now
-Updated applyAllCarvers to reflect both bugfixes and xpple's initial commit
Mineshaft.c/,.h:
-Fully accurate loot filtering
    -Calls to isNaturalWater are gated by optimized checks and caching to avoid excessive getBiomeAt calls
    -Carver water detection
    -Corrected bug with plank and rail placement (was advancing RNG differently)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant