Skip to content

Upgrade Bonuses for units#100

Merged
1brucben merged 8 commits into
v0.2.0from
upgradebonus
Nov 18, 2025
Merged

Upgrade Bonuses for units#100
1brucben merged 8 commits into
v0.2.0from
upgradebonus

Conversation

@1brucben
Copy link
Copy Markdown
Owner

This pull request introduces a new "Research All Techs" game configuration option to both the host lobby and single player modals, and makes several improvements to unit rendering logic, particularly for submarines and interpolated units. The most important changes are grouped below by theme.

New Game Option: "Research All Techs"

  • Added a new researchAllTechs option to both HostLobbyModal and SinglePlayerModal, including UI checkbox, state management, and inclusion in game config serialization and deserialization. This allows hosts and single players to enable instant research of all technologies for the match. [1] [2] [3] [4] [5] [6] [7]
  • Added English translation strings for the new option in resources/lang/en.json. [1] [2]

Unit Rendering Logic Improvements

  • Refactored UnitLayer to better manage rendered units and ghosts, including new maps to track their state, improved update logic, and explicit handling of unit deactivation when units are removed. [1] [2] [3] [4]
  • Changed submarine visibility logic to fully trust the server for filtering, removing client-side checks for attack, detection, or cooldown status, and clarified ghost rendering for enemy submarines. [1] [2] [3]

Interpolated Rendering for Shells and Warheads

  • Added custom rendering methods for Shell and MIRVWarhead unit types, using colored squares and segments to visually indicate their movement and relationship.

UI and Graphics Consistency

  • Suppressed double-drawing of interpolated unit types by skipping their sprites in the base canvas pass, ensuring smooth visuals and preventing overlay artifacts. [1] [2]
  • Ensured that level badges are only drawn for Warships, Fighter Jets, and Submarines, improving clarity of unit tier indicators.

Miscellaneous

  • Reset build and unit upgrade settings modals and their persisted levels when starting a new game, ensuring default state for each session.
  • Updated health calculation logic for Fighter Jets, Warships, and Submarines to use per-level max health from game config.

Let me know if you have questions about any of these changes or want to dive deeper into the new rendering logic!

@1brucben 1brucben merged commit d6fe059 into v0.2.0 Nov 18, 2025
4 of 7 checks passed
@El-Magico777 El-Magico777 added this to the v0.1.11 milestone Feb 22, 2026
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