Skip to content

Danger Ores Mosaic: take the inks from the map's ores - #1684

Merged
grilledham merged 2 commits into
Refactorio:developfrom
lex:danger-ore-mosaic-ores
Nov 12, 2026
Merged

grilledham merged 2 commits into
Refactorio:developfrom
lex:danger-ore-mosaic-ores

Conversation

@lex

@lex lex commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

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.

  • The inks default to the map's main_ores, each at its weight (Layout.inks_of).
  • The line ore is set on its own, main_ores_mosaic.line_ink. When it isn't set: coal if the map has it, otherwise the lightest ore.
  • Spawn's medallion (core, faceted star, rays) takes the two heaviest of the other ores; the rays go through all of them.
  • Any of these can still be set in main_ores_mosaic. The vanilla map sets its line ore (coal) and keeps its iron-near, copper-far blend there, in layouts/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:

image

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-mosaic passes headless (180 passed, 0 failed) and luacheck . is clean.

🤖 Generated with Claude Code

lex and others added 2 commits November 12, 2026 18:26
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
grilledham merged commit 0431d3c into Refactorio:develop Nov 12, 2026
6 checks passed
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.

2 participants