feat: Rework and show all specialist potentials#499
feat: Rework and show all specialist potentials#499OH296 merged 2 commits intoAdeptus-Dominus:mainfrom
Conversation
📝 WalkthroughWalkthroughIn this update, the function Suggested Reviewers
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (2)
scripts/scr_draw_management_unit/scr_draw_management_unit.gml (2)
11-23: Praise the Omnissiah for this addition of specialized tips!
Initiating praise protocol: The newly introducedspec_tipsarray effectively centralizes the string data for specialist messages. However, consider storing the indices in a data-driven manner (e.g., using named constants or enumerations) to reduce the risk of misalignment if the underlying role array shifts. Such clarity would honor the logic-machine.
159-228: Commendable logic, but watch for potential data duplication.
Your newly consecratedspecialistfunctfunction clearly enhances the ritual of displaying the correct tips. Still, repeating these checks for each role across multiple sections can lead to code duplication. Extracting the specialist checks (e.g., experience requirements, role validations) into data structures or a single universal function may ease future modifications and debugging rituals. Renamespecialistfunctto more clearly convey its sacred purpose if possible.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
scripts/scr_draw_management_unit/scr_draw_management_unit.gml(4 hunks)
🔇 Additional comments (1)
scripts/scr_draw_management_unit/scr_draw_management_unit.gml (1)
563-563: Closing brace aligned with the Emperor’s will.
No issues are evident here; the function appears to be sealed properly.
Description of changes
c_fuchsiaif scout, reverse colors when under experience requirement and add morespectipsto show when marine is pickable.Reasons for changes
How have you tested your changes?