feat(@projects/@magic-civilization): 😊 p3-26 B1 — surface computed happiness_pool in view_json
project_resources hardcoded happiness_pool: 0 (a stub from before the happiness phase existed). Now that process_happiness_phase computes player.happiness each turn, surface it in the PlayerView so the headless view exposes it end-to-end (compute → projection → view). mc-player-api 135/0. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
0752a51fb6
commit
f8eadc9119
2 changed files with 4 additions and 2 deletions
|
|
@ -159,7 +159,9 @@ fn project_resources(player: &mc_state::game_state::PlayerState) -> ResourceView
|
|||
gold_per_turn: 0,
|
||||
science_per_turn: player.science_yield as i32,
|
||||
culture_per_turn: 0,
|
||||
happiness_pool: 0,
|
||||
// p3-26 B1: surface the happiness pool now computed by the turn's
|
||||
// happiness_phase (was hardcoded 0 before the phase existed).
|
||||
happiness_pool: player.happiness,
|
||||
stockpile,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit 474160ef178b5c526b0f3526fb0a9485046ad624
|
||||
Subproject commit ff0e0025ef5670d7e33a36a85359719f9b4d409d
|
||||
Loading…
Add table
Reference in a new issue