Add Research Lab functionality and update related components#91
Merged
Conversation
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.
This pull request adds support for the new
Research Labstructure 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:
Research Labas 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:
src/core/execution/PlayerExecution.ts).UI and translation updates:
Research Laband its hotkey toresources/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:
KeyLfor 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:
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!