refactor: Remove static company sizes and KILL parallel arrays - #1405
refactor: Remove static company sizes and KILL parallel arrays#1405OH296 wants to merge 13 commits into
Conversation
There was a problem hiding this comment.
All reported issues were addressed
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
There was a problem hiding this comment.
0 issues found across 1 file (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 20 unresolved issues from previous reviews.
Re-trigger cubic
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
There was a problem hiding this comment.
All reported issues were addressed across 4 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 5 files (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>
There was a problem hiding this comment.
0 issues found across 1 file (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 17 unresolved issues from previous reviews.
Re-trigger cubic
|
/oc Check for code quality issues of the newly added/changed code (docs/CODE_STYLE.md) |
|
Here's my review as the project maintainer. OverviewThis PR removes the fixed-size 501-slot arrays and parallel P0 — Will crash at runtime1.
|
Summary by cubic
Replaced static 501-slot arrays and parallel fields with per-unit properties and dynamic per-company rosters. Loops, serialization, and UI now respect actual roster sizes; ascension/gene-seed logic and ship occupant summaries are corrected.
Refactors
obj_ini.age/spe/god; useunit.age,unit.specials,unit.god_statusacross recruiting, moving, exports, Reclusiam, dialogue/events, AI, combat, and helpers.scr_company_orderrebuilds visible mirrors only (race/name/role/wep1/2/armour/gear/mobi).find_company_open_slotgrows per-company arrays and returns the new index; most loops now usearray_length(obj_ini.TTRPG[c])from 0.companiesand each company’sTTRPGlength (no 11×501 scan).TTRPG_stats:age,specials,god_statusare fields;roll_agesetsage;marine_ascensionis turn-based; armour/XP calculations readage.Bug Fixes
unit.god_status; UI toggles work with dynamic rosters.unit.agein after-combat andmarine_ascensionthresholds in kill-and-recover.unit.ageand ascension year.Written for commit 44e9a25. Summary will update on new commits.