Repository navigation
Danger Ores Mosaic: take the inks from the map's ores - #1684
Merged
Merged
Conversation
The Mosaic layout no longer names iron, copper and coal. Its inks are the map's main_ores, each at its weight, so any ore list (a mod's, like Angel's) makes a mosaic: coal draws the lines (or else the lightest ore), and the two heaviest of the rest make spawn's medallion. The vanilla map keeps its iron-near, copper-far blend in layouts/mosaic.lua and comes out tile for tile as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…is used Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
grilledham
approved these changes
Nov 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #1682: the Mosaic layout no longer hardcodes iron, copper and coal, so any main ores config makes a mosaic, including a mod's ore list from
compatibility/*/ores.lua.main_ores, each at itsweight(Layout.inks_of).main_ores_mosaic.line_ink. When it isn't set: coal if the map has it, otherwise the lightest ore.main_ores_mosaic. The vanilla map sets its line ore (coal) and keeps its iron-near, copper-far blend there, inlayouts/mosaic.lua, and comes out tile for tile the same as before (checked offline on 3 seeds).No new preset here: this only makes the layout pluggable. Below is an offline render (not in game, approximate colours) of the layout with Angel's ore list and weights, 5000 tiles across:
Tests: three layout tests for the line ore (a line ore that is set draws the lines and is left out of the spawn; when none is set, coal draws them whatever its weight, or with no coal the lightest ore) and a builder test that Angel's ore list makes a mosaic with every ore in it. Mutation-checked: making coal not count as the line ore fails the coal test, and ignoring a set line ore fails the line ore test.
danger-ore-mosaicpasses headless (180 passed, 0 failed) andluacheck .is clean.🤖 Generated with Claude Code