Skip to content

Say what the restart message's awards count - #1679

Merged
grilledham merged 1 commit into
Refactorio:developfrom
lex:restart-message-units
Nov 4, 2026
Merged

grilledham merged 1 commit into
Refactorio:developfrom
lex:restart-message-units

Conversation

@lex

@lex lex commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Some award values in the end-of-map message on Discord are bare numbers, so you can't tell what they count. This adds the unit to those values.

Danger Ores, with numbers from the Citadel message:

  • Most talkative: player1 (135) → Most talkative: player1 (135 messages)
  • Furthest walked: player2 (84,887) → Furthest walked: player2 (84.9 km). The distance is counted in tiles, and a tile is a metre.
  • Biggest demolisher: player3 (29,116) → Biggest demolisher: player3 (29,116 entities removed). These are the player's own force's entities, mined by hand or marked for deconstruction.
  • Most landfill placed: player4 (1,407) → Most landfill placed: player4 (1,407 tiles), and the statistic Landfill placed: 48,446 → 48,446 tiles

Crash Site gets the same change for Most talkative and Furthest walked. Seafood lover now uses the new formatter too, and its text is the same as before.

utils/restart_message.lua gets format_unit(unit) and format_distance(tiles), and tests for both are in restart_message_tests.lua. Tests pass on danger-ore-citadel and crashsite.

🤖 Generated with Claude Code

Furthest walked is in km, Most talkative in messages, and Danger Ores'
Biggest demolisher and landfill counts say entities removed and tiles.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@grilledham
grilledham merged commit eccbdae into Refactorio:develop Nov 4, 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