fix: post array removal equipment and role issues - #1430
Conversation
There was a problem hiding this comment.
All reported issues were addressed across 12 files
Tip: cubic used a learning from your PR history. Let your coding agent read cubic learnings directly with the cubic MCP.
Re-trigger cubic
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
There was a problem hiding this comment.
0 issues found across 3 files (changes from recent commits).
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Requires human review: Auto-approval blocked by 7 unresolved issues from previous reviews.
Re-trigger cubic
There was a problem hiding this comment.
All reported issues were addressed across 5 files (changes from recent commits).
Tip: Review your code locally with the cubic CLI to iterate faster.
Re-trigger cubic
There was a problem hiding this comment.
All reported issues were addressed across 1 file (changes from recent commits).
Tip: Review your code locally with the cubic CLI to iterate faster.
Re-trigger cubic
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
Summary by cubic
Replaces legacy role/equipment and livery flows with structured popups in creation. Fixes name blocking and makes equipment selection consistent across creation and re‑equip.
Bug Fixes
TextBarAreawith tooltips, case‑insensitive blocked values, and “allowed” checks so invalid names never overwrite; prevents stuck blocked states.draw_popup_equipwith before/after view off, quality changes off, andfrom_inventoryoff; sets recipient type (Marine vs. Dreadnought) and writes role data via array↔struct conversion.reload_itemsrespectsfrom_inventory;UnitEquipmentignores unknown keys, counts inventory only when needed, enforces Dreadnought/experience rules, and avoids invalid slot checks.player_role_data.Refactors
eEQUIPMENT_SLOTinscripts/enums/enums.gml; removed duplicate enum.setup_UI_elements_equipment_selector(x,y)and madedraw_popup_equip(before_after_styling)reusable for both re‑equip and creation.convert_equipment_struct_into_array; used for role editing and UI.add_unit_to_companynow merges role defaults with overrides beforealter_equipment.instance_create_depthwith typed data; addedePOPUP_TYPE.LIVERYPICK; role selection opens EQUIP popup; advisor/distribution UI split intoscr_distribution_and_advisor_setup.Written for commit f62e5cd. Summary will update on new commits.