From f8eadc91197a4a469c62603fc505e9ddda8791b3 Mon Sep 17 00:00:00 2001 From: Natalie Date: Fri, 26 Jun 2026 15:50:30 -0400 Subject: [PATCH] =?UTF-8?q?feat(@projects/@magic-civilization):=20?= =?UTF-8?q?=F0=9F=98=8A=20p3-26=20B1=20=E2=80=94=20surface=20computed=20ha?= =?UTF-8?q?ppiness=5Fpool=20in=20view=5Fjson?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) --- src/simulator/crates/mc-player-api/src/projection.rs | 4 +++- tooling/claude/dot-claude/worktrees/agent-a95ff0acf607fee39 | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/simulator/crates/mc-player-api/src/projection.rs b/src/simulator/crates/mc-player-api/src/projection.rs index 344eaeed..e688ae70 100644 --- a/src/simulator/crates/mc-player-api/src/projection.rs +++ b/src/simulator/crates/mc-player-api/src/projection.rs @@ -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, } } diff --git a/tooling/claude/dot-claude/worktrees/agent-a95ff0acf607fee39 b/tooling/claude/dot-claude/worktrees/agent-a95ff0acf607fee39 index 474160ef..ff0e0025 160000 --- a/tooling/claude/dot-claude/worktrees/agent-a95ff0acf607fee39 +++ b/tooling/claude/dot-claude/worktrees/agent-a95ff0acf607fee39 @@ -1 +1 @@ -Subproject commit 474160ef178b5c526b0f3526fb0a9485046ad624 +Subproject commit ff0e0025ef5670d7e33a36a85359719f9b4d409d