Skip to content

Add Research Lab functionality and update related components#91

Merged
1brucben merged 1 commit into
v0.2.0from
researchlab
Nov 16, 2025
Merged

Add Research Lab functionality and update related components#91
1brucben merged 1 commit into
v0.2.0from
researchlab

Conversation

@1brucben
Copy link
Copy Markdown
Owner

This pull request adds support for the new Research Lab structure across the game, including UI, translations, hotkeys, and core logic. It also introduces a research boost mechanic based on the number of Research Labs owned, improving research efficiency. Several translation strings are updated for consistency and clarity.

Research Lab integration:

  • Added Research Lab as a buildable structure throughout the codebase, including hotkey assignment, rendering, overlays, and upgrade logic (src/client/graphics/layers/BuildMenu.ts, src/client/graphics/layers/PlayerInfoOverlay.ts, src/client/graphics/layers/StructureLayer.ts, src/client/InputHandler.ts, src/client/utilities/RenderUnitTypeOptions.ts, src/core/configuration/DefaultConfig.ts, src/core/execution/ExecutionManager.ts, src/core/execution/UpgradeStructureExecution.ts, src/core/game/PlayerImpl.ts). [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20]

Research boost mechanic:

  • Research output is now multiplied based on the number of Research Labs owned, using a geometric series for diminishing returns (+40% for first, +20% for second, etc., maxing at +80%) (src/core/execution/PlayerExecution.ts).

UI and translation updates:

  • Added translation keys and descriptions for Research Lab and its hotkey to resources/lang/en.json, and updated related UI labels to use translations for consistency (resources/lang/en.json, src/client/HostLobbyModal.ts, src/client/SinglePlayerModal.ts). [1] [2] [3] [4] [5] [6] [7]

Hotkey assignment and handling:

  • Assigned default hotkey KeyL for building Research Lab and updated input handling logic to support it (src/client/graphics/layers/BuildMenu.ts, src/client/InputHandler.ts). [1] [2] [3]

Consistency improvements:

  • Updated several translation strings to use title case for clarity and consistency (resources/lang/en.json). [1] [2] [3]

Let me know if you have any questions about how the Research Lab works or how the research boost is calculated!

@1brucben 1brucben merged commit c843ee0 into v0.2.0 Nov 16, 2025
6 of 8 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