feat: A bunch of stuff#1308
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
2 issues found across 4 files
Confidence score: 3/5
- In
datafiles/data/weapons.json, the available-only filtering can hideTwin Linked Assault Cannon Mountfor Dreadnoughts even though it remains inpush_dreadnought_ranged_weapons_item_names, which can remove a valid player loadout option after merge — align the available-equipment filter logic with the Dreadnought item-name list before merging. - In
scripts/scr_struct_functions/scr_struct_functions.gml,get_custom_stringduplicates the same iteration/string-assembly pattern asget_total_string, increasing the chance of drift and inconsistent output when one path is updated later — extract/shared helper logic (or otherwise deduplicate) to reduce near-term regression risk.
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="scripts/scr_struct_functions/scr_struct_functions.gml">
<violation number="1" location="scripts/scr_struct_functions/scr_struct_functions.gml:104">
P2: Custom agent: **Code Quality Review**
The new `get_custom_string` method duplicates the same iteration and string-building structure from `get_total_string` (declaring a result string, calling `struct_get_names(map)`, looping over keys with `array_length`, concatenating to the result, and returning it). This boilerplate duplication means any change to iteration logic, ordering, or error handling needs to happen in both places. Consider extracting a shared helper that handles the key enumeration and string concatenation, letting each method supply only its formatting logic, to keep maintenance centralized.</violation>
</file>
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
These weapons shouldn't be used on dreads.
- Support custom callback for any string format - Avoid string concatenation performance hit with string_join_ext
Contributor
There was a problem hiding this comment.
1 issue found across 6 files
Confidence score: 5/5
- In
objects/obj_mass_equip/Step_0.gml, when all equipment slots are empty the generated summary can render as "In total they are equipped with: .", which is a minor visible text-quality issue rather than a functional regression; since this appears pre-existing, merge risk is low, but it should be cleaned up by guarding the trailing punctuation when no items are listed before or shortly after merge.
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="objects/obj_mass_equip/Step_0.gml">
<violation number="1" location="objects/obj_mass_equip/Step_0.gml:269">
P3: Edge case: if all equipment entries are empty (e.g., a role with no defined gear), the sentence ends with "In total they are equipped with: ." due to the orphaned period. Pre-existing behavior but visible with this change. Consider wrapping the assignment to skip the sentence entirely when _totals_string is empty, e.g. `if (_totals_string != "") all_equip = ...`</violation>
</file>
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
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.
Summary by cubic
Refines forge completion popups with company assignment and grouped hangar locations. Updates weapons: HK Missile AP set to 4 and removes incorrect "dreadnought" tags.
New Features
CountingMapnow supports custom callbacks and faster joins; used to format equipment totals and forge location summaries.Bug Fixes
player_forge_data.vehicle_hangeron end turn and hide empty "In total..." equipment summary.Written for commit a8d7c3a. Summary will update on new commits.