Skip to content

crash-site: add rate display for outpost crafters - #1649

Open
misterburgers wants to merge 2 commits into
Refactorio:developfrom
misterburgers:crafter-rate-display
Open

misterburgers wants to merge 2 commits into
Refactorio:developfrom
misterburgers:crafter-rate-display

Conversation

@misterburgers

@misterburgers misterburgers commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

Adds a text field to magic crafters that gets displayed when they are moused over. This is only displayed in map mode, same as the market text. Works for all crafters. This change is best shown with some screenshots, so here's some examples. For each of these, I've run my mouse over all the crafters so they will show their text.

Center base
image

Minor base
image

Major base
image

One output refineries
image

Three output refineries
image

This change also includes some updates to the logic for the market upgrade and updates it more consistently.
It also changes text so that it displays even when an outpost is not captured.

- Improves logic for market upgrade to be more consistently accurate
@misterburgers
misterburgers force-pushed the crafter-rate-display branch 2 times, most recently from dfd567f to dcf80b7 Compare October 24, 2026 20:20
local prototype = Retailer.get_items(outpost_id)['upgrade']

local outpost_magic_crafters = outpost_data.magic_crafters
if #outpost_magic_crafters == 0 then

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we also need to consider magic_fluid_crafters here too?

Comment on lines +2056 to +2060
if selected.name == 'assembling-machine-2' or
selected.name == 'assembling-machine-3' or
selected.name == 'chemical-plant' or
selected.name == 'electric-furnace' or
selected.name == 'centrifuge' then

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MAybe we should use types here instead of names, to make this compatible with mods.

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