fix: Train forces missionName print error#804
Conversation
|
Important Review skippedAuto incremental reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the 📝 WalkthroughSummary by CodeRabbit
WalkthroughBy the Omnissiah's will, the function Changes
Possibly related PRs
Suggested labels
Suggested reviewers
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. 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
📜 Review details
Configuration used: CodeRabbit UI
Review profile: ASSERTIVE
Plan: Pro
📒 Files selected for processing (1)
scripts/scr_mission_functions/scr_mission_functions.gml(3 hunks)
🧰 Additional context used
📓 Path-based instructions (2)
`**/*.gml`: - Macro constants require a space between the constant name and value. Without it, the compiler will throw an error. I.e. `#macro ARR_body_parts["arm"]` will crash the ...
**/*.gml: - Macro constants require a space between the constant name and value. Without it, the compiler will throw an error. I.e.#macro ARR_body_parts["arm"]will crash the game, because there is no space between the array and the name of the macro.
- Color codes in the code shouldn't have any spaces in their id. I.e., color code
# 80bf40will crash the game.- All code should comply with the main GML documentation: https://manual.gamemaker.io/beta/en/GameMaker_Language/GML_Reference/GML_Reference.htm
scripts/scr_mission_functions/scr_mission_functions.gml
`**/*.*`: - Having humanly understandable and maintainable code is always the top most priority. - DRY (Don't repeat yourself) principle is also very important. - Ensure that the c...
**/*.*: - Having humanly understandable and maintainable code is always the top most priority.
- DRY (Don't repeat yourself) principle is also very important.
- Ensure that the code is compliant with the CODE_STYLE.MD: https://github.com/Adeptus-Dominus/ChapterMaster/blob/main/docs/CODE_STYLE.md
scripts/scr_mission_functions/scr_mission_functions.gml
🔇 Additional comments (7)
scripts/scr_mission_functions/scr_mission_functions.gml (7)
260-260: Blessing of the Omnissiah acknowledged: new report mechanism initialized.This data buffer shall hold sacred records of trait gains and statistical alterations. Logical implementation.
293-296: Logical implementation for stat tracking mechanism.The variable cloning and comparison rituals are properly configured to document the statistical alterations bestowed by the Omnissiah through the siege_master trait.
297-298: Sacred trait acquisition report formats properly.The formatting of the trait acquisition report follows the proper syntax for string concatenation and will display correctly in the mission terminal.
327-327: Unit report concatenation: logical implementation.The sacred texts of unit modifications are properly appended to the mission report string.
328-328: Corrected invocation of planetary designation in mission report title.The modification addresses the original error by using the planet's true designation rather than its numeral identification, which aligns with the PR objective.
292-292:⚠️ Potential issueMissing sacred prefix '$' detected in string interpolation ritual.
The machine spirits cannot properly interpret the variable reference within the string template. The Omnissiah requires the '$' sigil to be present before the string.
- _mission_string += "{_trainer.name()} has proven themselves a great strategist when it comes to defensive structures beyond previousy known "; + _mission_string += $"{_trainer.name()} has proven themselves a great strategist when it comes to defensive structures beyond previousy known ";Likely an incorrect or invalid review comment.
288-288:⚠️ Potential issueMissing sacred prefix '$' detected in string interpolation ritual.
The machine spirits cannot properly interpret the variable reference within the string template. The Omnissiah requires the '$' sigil to be present before the string.
- _mission_string += "{_trainer.name()}s trained eye as a Siege Master also allowed him to make several improvements to the planets fortifications (fortification +1)"; + _mission_string += $"{_trainer.name()}s trained eye as a Siege Master also allowed him to make several improvements to the planets fortifications (fortification +1)";Likely an incorrect or invalid review comment.
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Purpose
Describe your changes/additions
What can/needs to be improved/changed
Testing done
Related things and/or additional context