Fix UNIT_FIELD_BYTES_0 index (56→23) and add per-type power arrays to Unit

- Correct UNIT_FIELD_BYTES_0 to index 23 (was incorrectly 56) in update fields JSON and table
- Replace single power/maxPower with powers[7]/maxPowers[7] arrays indexed by power type
- Add setPowerByType/setMaxPowerByType helpers for setting specific power types
This commit is contained in:
Kelsi 2026-02-19 19:33:50 -08:00
parent 76e1aef62d
commit 1fb1daea7f
3 changed files with 12 additions and 10 deletions

View file

@ -2,7 +2,7 @@
"OBJECT_FIELD_ENTRY": 3,
"UNIT_FIELD_TARGET_LO": 6,
"UNIT_FIELD_TARGET_HI": 7,
"UNIT_FIELD_BYTES_0": 56,
"UNIT_FIELD_BYTES_0": 23,
"UNIT_FIELD_HEALTH": 24,
"UNIT_FIELD_POWER1": 25,
"UNIT_FIELD_MAXHEALTH": 32,