fix(@projects/@magic-civilization): 🐛 update player state array sizes to 5 slots
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
parent
2eea0dd859
commit
1c6a7b30d5
1 changed files with 4 additions and 2 deletions
|
|
@ -137,11 +137,11 @@ pub struct AbstractPlayerStateMirror {
|
|||
/// `happiness_pool` — signed; negative under unrest.
|
||||
pub happiness_pool: i16,
|
||||
/// `force_rel[opp]` — relative military force vs each opponent slot.
|
||||
pub force_rel: [u16; 4],
|
||||
pub force_rel: [u16; 5],
|
||||
/// `axes` — strategic axes via `mc_ai::game_state::axes_to_flat`.
|
||||
pub axes: [u8; 8],
|
||||
/// `relations[opp]` — diplomatic relation per opponent (-1/0/+1).
|
||||
pub relations: [i8; 4],
|
||||
pub relations: [i8; 5],
|
||||
/// `formation_strength[T1..T4]` — mean strength per tier bucket, 0–255.
|
||||
pub formation_strength: [u8; 4],
|
||||
/// `rng_state` — per-player SplitMix64 state.
|
||||
|
|
@ -189,8 +189,10 @@ impl AbstractPlayerStateMirror {
|
|||
happiness_pool: self.happiness_pool,
|
||||
_pad0: 0,
|
||||
force_rel: self.force_rel,
|
||||
_pad_fr: 0,
|
||||
axes: self.axes,
|
||||
relations: self.relations,
|
||||
_pad_rel: [0; 3],
|
||||
formation_strength: self.formation_strength,
|
||||
rng_state: self.rng_state,
|
||||
turn: self.turn,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue