feat: track total berries earned in session and savegames (#61)

This commit is contained in:
demenik
2025-12-09 19:29:14 +01:00
parent 28550c1955
commit a7aa54c570
10 changed files with 45 additions and 9 deletions

View File

@@ -2,6 +2,7 @@ use bevy::ecs::system::RunSystemOnce;
use pomomon_garden::features::config::components::GameConfig;
use pomomon_garden::features::grid::components::{Grid, TileState};
use pomomon_garden::features::inventory::components::{Inventory, ItemStack, ItemType};
use pomomon_garden::features::phase::components::SessionTracker;
use pomomon_garden::features::pom::actions::InteractionAction;
use pomomon_garden::prelude::*;
@@ -57,7 +58,8 @@ fn test_water_crop() {
mut inventory: ResMut<Inventory>,
mut item_stack_query: Query<&mut ItemStack>,
mut commands: Commands,
game_config: Res<GameConfig>| {
game_config: Res<GameConfig>,
mut session_tracker: ResMut<SessionTracker>| {
let action = InteractionAction::Water;
action.execute(
(1, 1),
@@ -67,6 +69,7 @@ fn test_water_crop() {
&mut item_stack_query,
&mut commands,
&game_config,
&mut session_tracker,
);
},
);