-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Realign and move potential indicators #504
fix: Realign and move potential indicators #504
Conversation
📝 WalkthroughWalkthroughBehold, the sacred adjustments to the Possibly related PRs
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 (
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
🔭 Outside diff range comments (1)
scripts/scr_draw_management_unit/scr_draw_management_unit.gml (1)
74-74
:⚠️ Potential issueBinary anomaly detected in weapon abbreviation logic!
There appears to be a copy-paste error in the weapon abbreviation checks:
ma_we2=is_string(ma_we1) ? ma_we2 : "";
The condition checks
ma_we1
instead ofma_we2
.Apply this correction to restore logical consistency:
- ma_we2=is_string(ma_we1) ? ma_we2 : ""; + ma_we2=is_string(ma_we2) ? ma_we2 : "";Also applies to: 122-122
🧹 Nitpick comments (2)
scripts/scr_draw_management_unit/scr_draw_management_unit.gml (2)
155-173
: Praise to the Machine God for this logical enhancement!The refactored specialist options drawing logic shows significant improvements:
- Structured iteration through specialist types
- Clear separation of validation and drawing logic
- Consistent coordinate calculations
However, the Machine Spirit whispers of potential optimizations:
- for (var s = 0; s <= 3; s++) { + for (var s = 0; s < array_length(obj_controller.spec_train_data); s++) {This modification would make the code more resilient to changes in the number of specialist types.
26-26
: TODO comments require the Omnissiah's attention!Multiple TODO comments indicate areas needing recursive handling:
- Line 26: "TODO make static to handle"
- Line 53: "TODO handle recursively"
- Line 91: "Need abbreviations here"
- Line 275: "TODO handle recursively"
Would you like me to generate a solution that implements these recursive patterns? This would improve code maintainability and reduce duplication.
Also applies to: 53-53, 91-91, 275-275
📜 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
(1 hunks)
🔇 Additional comments (1)
scripts/scr_draw_management_unit/scr_draw_management_unit.gml (1)
152-154
: By the Omnissiah's grace, these coordinate calculations have been optimized!The extraction of coordinates and radius into named variables improves code clarity and maintainability.
Purpose of the PR
Realign tooltips and move indicators.
And remove tabs in whitespace spaces(brother, stop doing this, git patches hate this and i have to reformat it.)
Describe the solution
Changed values, more vars, delete tabs.
Testing done
Load save, check.
Related links
https://discord.com/channels/714022226810372107/1121959429546455050/1343103391936806975