Repository navigation
Say what the restart message's awards count - #1679
Merged
Merged
Conversation
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
approved these changes
Nov 4, 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.
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 statisticLandfill placed: 48,446→48,446 tilesCrash 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.luagetsformat_unit(unit)andformat_distance(tiles), and tests for both are inrestart_message_tests.lua. Tests pass on danger-ore-citadel and crashsite.🤖 Generated with Claude Code