From f89032eae393e4689d952e0d5676cd66624365ae Mon Sep 17 00:00:00 2001 From: Gregor Zeitlinger Date: Sat, 30 Aug 2025 09:12:47 +0200 Subject: [PATCH 001/189] map zoom (#334) --- .github/renovate.json5 | 31 ++++++++++++++++++++++++++++ .github/workflows/bench.yml | 15 +++++++------- .github/workflows/check.yml | 15 +++++++------- .github/workflows/release.yml | 7 ++++--- .github/workflows/test-release.yml | 19 +++++++++-------- client/src/client.rs | 4 +++- client/src/client_state.rs | 5 ++++- client/src/map_ui.rs | 8 +++---- client/src/remote_client/bin/main.rs | 28 +++++++++++++++++-------- mise.toml | 2 +- 10 files changed, 92 insertions(+), 42 deletions(-) diff --git a/.github/renovate.json5 b/.github/renovate.json5 index 1adf1f33..e18fdbe7 100644 --- a/.github/renovate.json5 +++ b/.github/renovate.json5 @@ -1,7 +1,38 @@ { $schema: "https://docs.renovatebot.com/renovate-schema.json", extends: [ + "config:best-practices", "config:recommended" ], automerge: true, + labels: [ + "dependencies" + ], + packageRules: [ + { + matchPackageNames: [ + "jdx/mise" + ], + groupName: "mise", + schedule: [ + "before 4am on monday" + ], + } + ], + customManagers: [ + { + customType: "regex", + description: "update mise", + managerFilePatterns: [ + "/(^|/)(workflow-templates|\\.(?:github|gitea|forgejo)/(?:workflows|actions))/.+\\.ya?ml$/", + "/(^|/)action\\.ya?ml$/" + ], + datasourceTemplate: "github-release-attachments", + packageNameTemplate: "jdx/mise", + depNameTemplate: "mise", + matchStrings: [ + "jdx/mise-action.*\\n\\s*with:\\s*\\n\\s*version: [\"']?(?v[.\\d]+)[\"']?\\s*\\n\\s*sha256: [\"']?(?\\w+)[\"']?" + ], + }, + ] } diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index ee1dc5b9..69ca018d 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -1,15 +1,16 @@ name: Performance Benchmark -on: [pull_request] +on: [ pull_request ] jobs: check: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 - - uses: jdx/mise-action@v3 - with: - version: 2025.7.3 - - name: Random actions test - run: mise run random-actions + - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + - uses: jdx/mise-action@5ac50f778e26fac95da98d50503682459e86d566 # v3.2.0 + with: + version: v2025.8.20 + sha256: a9df29caa68f83b5ba5b0c0c70acfeb559e91c3e8b67afb9eda28c6f97a27bfb + - name: Random actions test + run: mise run random-actions diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 51c9a443..738be29a 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -1,15 +1,16 @@ name: Check -on: [pull_request] +on: [ pull_request ] jobs: check: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 - - uses: jdx/mise-action@v3 - with: - version: 2025.7.3 - - name: Check all - run: mise run ci + - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + - uses: jdx/mise-action@5ac50f778e26fac95da98d50503682459e86d566 # v3.2.0 + with: + version: v2025.8.20 + sha256: a9df29caa68f83b5ba5b0c0c70acfeb559e91c3e8b67afb9eda28c6f97a27bfb + - name: Check all + run: mise run ci diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 48303515..3d550219 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,10 +11,11 @@ jobs: release: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 - - uses: jdx/mise-action@v3 + - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + - uses: jdx/mise-action@5ac50f778e26fac95da98d50503682459e86d566 # v3.2.0 with: - version: 2025.7.3 + version: v2025.8.20 + sha256: a9df29caa68f83b5ba5b0c0c70acfeb559e91c3e8b67afb9eda28c6f97a27bfb - name: Use Node.js ${{ env.node_version }} uses: actions/setup-node@v4 with: diff --git a/.github/workflows/test-release.yml b/.github/workflows/test-release.yml index 2fe70616..32636bfa 100644 --- a/.github/workflows/test-release.yml +++ b/.github/workflows/test-release.yml @@ -1,17 +1,18 @@ name: Test Release -on: [pull_request] +on: [ pull_request ] jobs: check: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 - - uses: jdx/mise-action@v3 - with: - version: 2025.7.3 - - name: Test server release - run: mise run build-remote-server - - name: Test client release - run: mise run build-remote-client + - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + - uses: jdx/mise-action@5ac50f778e26fac95da98d50503682459e86d566 # v3.2.0 + with: + version: v2025.8.20 + sha256: a9df29caa68f83b5ba5b0c0c70acfeb559e91c3e8b67afb9eda28c6f97a27bfb + - name: Test server release + run: mise run build-remote-server + - name: Test client release + run: mise run build-remote-client diff --git a/client/src/client.rs b/client/src/client.rs index e1050aca..a1e37f5d 100644 --- a/client/src/client.rs +++ b/client/src/client.rs @@ -52,10 +52,12 @@ fn set_zoom(state: &mut State) { let w = state.raw_screen_size.x; let h = state.raw_screen_size.y; state.world_camera.viewport = Some((0, 0, w as i32, h as i32)); + state.world_camera.zoom.x = state.world_zoom * state.world_zoom_factor; state.world_camera.zoom.y = state.world_camera.zoom.x * w / h; let scale = state.ui_scale; - state.screen_size = vec2(w / scale, h / scale); + let adjust = (1.0 - scale) * 250.0; // not sure why this is needed on mobile + state.screen_size = vec2((w / scale) - adjust, h / scale - adjust); state.ui_camera = Camera2D { zoom: vec2(2.0 / w * scale, 2.0 / h * scale), diff --git a/client/src/client_state.rs b/client/src/client_state.rs index a5319199..804c65d8 100644 --- a/client/src/client_state.rs +++ b/client/src/client_state.rs @@ -348,6 +348,8 @@ pub struct State { pub(crate) active_dialog: ActiveDialog, pub(crate) pending_update: Option, pub world_camera: Camera2D, + pub world_zoom: f32, + pub world_zoom_factor: f32, pub ui_camera: Camera2D, pub ui_scale: f32, pub raw_screen_size: Vec2, @@ -375,12 +377,13 @@ impl State { control_player: None, show_player: 0, world_camera: Camera2D { - zoom: vec2(ZOOM, ZOOM), offset: OFFSET, ..Default::default() }, ui_camera: Camera2D::default(), ui_scale: 1.0, + world_zoom_factor: 1.0, + world_zoom: ZOOM, raw_screen_size: vec2(0., 0.), screen_size: vec2(0., 0.), mouse_positions: vec![], diff --git a/client/src/map_ui.rs b/client/src/map_ui.rs index ca2ee5cb..9b91f992 100644 --- a/client/src/map_ui.rs +++ b/client/src/map_ui.rs @@ -120,12 +120,12 @@ fn get_overlay(rc: &RenderContext) -> HashMap { } pub(crate) fn pan_and_zoom(state: &mut State) { - let new_zoom = state.world_camera.zoom + mouse_wheel_speed() * 0.0006; + let new_zoom = state.world_zoom + mouse_wheel_speed() * 0.0006; let max = 0.005; let min = 0.0005; - let x = new_zoom.x.min(max).max(min); - if x < max && x > min { - state.world_camera.zoom = new_zoom; + let zoom = new_zoom.min(max).max(min); + if zoom < max && zoom > min { + state.world_zoom = new_zoom; } let pan_map = is_mouse_button_down(MouseButton::Left); diff --git a/client/src/remote_client/bin/main.rs b/client/src/remote_client/bin/main.rs index e5dd3ed9..ec411000 100644 --- a/client/src/remote_client/bin/main.rs +++ b/client/src/remote_client/bin/main.rs @@ -75,6 +75,7 @@ struct RemoteClient { #[derive(Serialize, Deserialize, Debug)] struct Preferences { ui_scale: Option, + world_zoom_factor: Option, } #[macroquad::main("Clash")] @@ -120,15 +121,7 @@ impl RemoteClient { let prefs = self.control.receive_preferences(); if !prefs.is_empty() { - log("received preferences: {prefs}"); - let p: Preferences = - serde_json::from_str(&prefs).expect("preferences can't be deserialized"); - - if let Some(scale) = p.ui_scale { - self.state.ui_scale = - f32::from_str(&scale).expect("ui scale should be a float"); - log(&format!("set ui scale to {scale}")); - } + self.apply_preferences(&prefs); } let s = self.control.canvas_size(); @@ -150,6 +143,23 @@ impl RemoteClient { } } + fn apply_preferences(&mut self, prefs: &String) { + log(&format!("received preferences: {prefs}")); + let p: Preferences = + serde_json::from_str(prefs).expect("preferences can't be deserialized"); + + if let Some(scale) = p.ui_scale { + self.state.ui_scale = f32::from_str(&scale).expect("ui scale should be a float"); + log(&format!("set ui scale to {scale}")); + } + + if let Some(zoom) = p.world_zoom_factor { + self.state.world_zoom_factor = + f32::from_str(&zoom).expect("world zoom factor should be a float"); + log(&format!("set world zoom factor to {zoom}")); + } + } + fn update_state(&mut self) -> GameSyncResult { let s = self.control.receive_state(); if !s.is_null() { diff --git a/mise.toml b/mise.toml index 52f8cbb5..01fc2c0d 100644 --- a/mise.toml +++ b/mise.toml @@ -21,7 +21,7 @@ dir = "server" [tasks.update-tests] description = "Run server tests and update JSON files" -run = 'cargo test --jobs 2 {{arg(name="test", default="")}}' +run = 'cargo test {{arg(name="test", default="")}}' env = { UPDATE_EXPECTED = "true", RUSTFLAGS = '' } dir = "server" From 384220888ca522f1935c74ff11595c9f5a9e5635 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 30 Aug 2025 07:21:53 +0000 Subject: [PATCH 002/189] Pin dependencies (#336) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [actions/setup-node](https://redirect.github.com/actions/setup-node) | action | pinDigest | -> `49933ea` | | [webpack](https://redirect.github.com/webpack/webpack) | devDependencies | pin | [`^5.94.0` -> `5.101.3`](https://renovatebot.com/diffs/npm/webpack/5.101.3/5.101.3) | | [webpack-cli](https://redirect.github.com/webpack/webpack-cli/tree/master/packages/webpack-cli) ([source](https://redirect.github.com/webpack/webpack-cli)) | devDependencies | pin | [`^6.0.0` -> `6.0.1`](https://renovatebot.com/diffs/npm/webpack-cli/6.0.1/6.0.1) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://redirect.github.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/release.yml | 2 +- client/js/package.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3d550219..5741a22a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,7 +17,7 @@ jobs: version: v2025.8.20 sha256: a9df29caa68f83b5ba5b0c0c70acfeb559e91c3e8b67afb9eda28c6f97a27bfb - name: Use Node.js ${{ env.node_version }} - uses: actions/setup-node@v4 + uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 with: node-version: ${{ env.node_version }} # setting a registry enables the NODE_AUTH_TOKEN env variable where we can set an npm token. REQUIRED diff --git a/client/js/package.json b/client/js/package.json index d236c9ae..acd7189d 100644 --- a/client/js/package.json +++ b/client/js/package.json @@ -18,8 +18,8 @@ "build": "webpack" }, "devDependencies": { - "webpack": "^5.94.0", - "webpack-cli": "^6.0.0" + "webpack": "5.101.3", + "webpack-cli": "6.0.1" }, "dependencies": { "events": "^3.3.0" From 217d804f65eba7764d61c760a77032a3073b9df9 Mon Sep 17 00:00:00 2001 From: Gregor Zeitlinger Date: Sat, 30 Aug 2025 09:32:59 +0200 Subject: [PATCH 003/189] fix public action cards (#335) Fixes #327 --- client/src/cards_ui.rs | 2 +- server/src/action_card.rs | 13 ++- server/src/card.rs | 20 ++++- server/src/content/action_cards/spy.rs | 21 ++--- server/src/content/advances/science.rs | 21 +++-- .../src/content/incidents/great_builders.rs | 21 +++-- .../src/content/incidents/great_diplomat.rs | 17 ++-- .../src/content/incidents/great_explorer.rs | 7 +- server/src/content/incidents/great_persons.rs | 80 +++++++++++++------ server/src/content/incidents/great_warlord.rs | 7 +- server/src/content/incidents/pandemics.rs | 6 +- server/src/game_api.rs | 7 +- server/src/player.rs | 14 +++- server/tests/advances_tests.rs | 2 + .../advances/collect_free_economy.json | 2 - ...son => collect_free_economy.outcome2.json} | 51 +++++++++--- 16 files changed, 202 insertions(+), 89 deletions(-) rename server/tests/test_games/advances/{collect_free_economy.outcome1.json => collect_free_economy.outcome2.json} (83%) diff --git a/client/src/cards_ui.rs b/client/src/cards_ui.rs index dee550f7..c698d6ee 100644 --- a/client/src/cards_ui.rs +++ b/client/src/cards_ui.rs @@ -58,7 +58,7 @@ impl SelectionInfo { pub(crate) fn show_cards(rc: &RenderContext) -> RenderResult { let p = rc.shown_player; - let cards = hand_cards(p, &HandCardType::get_all()); + let cards = hand_cards(p, &HandCardType::get_all_and_public(), rc.game); let size = vec2(180., 30.); let selection = match &rc.state.active_dialog { diff --git a/server/src/action_card.rs b/server/src/action_card.rs index 25cc1250..3c4b4ce4 100644 --- a/server/src/action_card.rs +++ b/server/src/action_card.rs @@ -47,15 +47,17 @@ pub struct ActionCard { pub id: u8, pub civil_card: CivilCard, pub tactics_card: Option, + pub public: bool, } impl ActionCard { #[must_use] - fn new(id: u8, civil_card: CivilCard, tactics_card: Option) -> Self { + fn new(id: u8, civil_card: CivilCard, tactics_card: Option, public: bool) -> Self { Self { id, civil_card, tactics_card, + public, } } @@ -80,6 +82,7 @@ impl ActionCard { tactics_card: None, action_cost: cost(ActionCostBuilder::new(None)).cost, target: CivilCardTarget::ActivePlayer, + public: false, } } @@ -100,12 +103,19 @@ pub struct ActionCardBuilder { action_cost: ActionCost, can_play: CanPlayCard, combat_requirement: Option, + public: bool, tactics_card: Option, builder: AbilityInitializerBuilder, target: CivilCardTarget, } impl ActionCardBuilder { + #[must_use] + pub fn public(mut self, public: bool) -> Self { + self.public = public; + self + } + #[must_use] pub fn tactics_card(mut self, tactics_card: TacticsCardFactory) -> Self { self.tactics_card = Some(tactics_card(self.id)); @@ -138,6 +148,7 @@ impl ActionCardBuilder { target: self.target, }, self.tactics_card, + self.public, ) } } diff --git a/server/src/card.rs b/server/src/card.rs index 4e60e16c..10e0fa5a 100644 --- a/server/src/card.rs +++ b/server/src/card.rs @@ -14,6 +14,7 @@ use std::fmt::Display; #[derive(Clone, Copy, Eq, PartialEq)] pub enum HandCardType { Action, + Public, // is modeled as an action card with public=true Objective, Wonder, } @@ -21,10 +22,19 @@ pub enum HandCardType { impl HandCardType { #[must_use] pub fn get_all() -> Vec { + vec![ + HandCardType::Action, // Public is not a real type of card + HandCardType::Objective, + HandCardType::Wonder, + ] + } + #[must_use] + pub fn get_all_and_public() -> Vec { vec![ HandCardType::Action, HandCardType::Objective, HandCardType::Wonder, + HandCardType::Public, ] } } @@ -35,6 +45,7 @@ impl Display for HandCardType { HandCardType::Action => write!(f, "an action card"), HandCardType::Objective => write!(f, "an objective card"), HandCardType::Wonder => write!(f, "a wonder card"), + HandCardType::Public => write!(f, "a public action card"), } } } @@ -159,13 +170,20 @@ pub(crate) fn discard_card( } #[must_use] -pub fn hand_cards(player: &Player, types: &[HandCardType]) -> Vec { +pub fn hand_cards(player: &Player, types: &[HandCardType], game: &Game) -> Vec { types .iter() .flat_map(|t| match t { HandCardType::Action => player .action_cards .iter() + .filter(|id| !game.cache.get_action_card(**id).public) + .map(|&id| HandCard::ActionCard(id)) + .collect_vec(), + HandCardType::Public => player + .action_cards + .iter() + .filter(|id| game.cache.get_action_card(**id).public) .map(|&id| HandCard::ActionCard(id)) .collect_vec(), HandCardType::Objective => player diff --git a/server/src/content/action_cards/spy.rs b/server/src/content/action_cards/spy.rs index 4c6979d1..fea31683 100644 --- a/server/src/content/action_cards/spy.rs +++ b/server/src/content/action_cards/spy.rs @@ -52,10 +52,10 @@ pub(crate) fn spy(id: u8, tactics_card: TacticsCardFactory) -> ActionCard { let other = game.player(a.selected_player.expect("player not found")); let all = HandCardType::get_all(); - let mut cards = hand_cards(other, &all); + let mut cards = hand_cards(other, &all, game); for t in all { - if !hand_cards(other, &[t]).is_empty() { - cards.extend(hand_cards(p, &[t])); + if !hand_cards(other, &[t], game).is_empty() { + cards.extend(hand_cards(p, &[t], game)); } } @@ -89,7 +89,7 @@ pub(crate) fn spy(id: u8, tactics_card: TacticsCardFactory) -> ActionCard { fn players_with_cards(game: &Game, player: usize) -> Vec { game.players .iter() - .filter(|p| p.index != player && has_any_card(p)) + .filter(|p| p.index != player && has_any_card(p, game)) .map(|p| p.index) .collect_vec() } @@ -111,8 +111,8 @@ fn swap_spy_cards( let p = player.get(game); let o = game.player(other); - let our_card = get_swap_card(swap, p)?; - let other_card = get_swap_card(swap, o)?; + let our_card = get_swap_card(swap, p, game)?; + let other_card = get_swap_card(swap, o, game)?; let t = match our_card { HandCard::ActionCard(id) => { @@ -222,16 +222,16 @@ fn swap_card( ); } -fn get_swap_card(swap: &[HandCard], p: &Player) -> Result { - hand_cards(p, &HandCardType::get_all()) +fn get_swap_card(swap: &[HandCard], p: &Player, game: &Game) -> Result { + hand_cards(p, &HandCardType::get_all(), game) .iter() .find(|c| swap.contains(c)) .ok_or("card not found".to_string()) .cloned() } -fn has_any_card(p: &Player) -> bool { - !hand_cards(p, &HandCardType::get_all()).is_empty() +fn has_any_card(p: &Player, game: &Game) -> bool { + !hand_cards(p, &HandCardType::get_all(), game).is_empty() } fn get_swap_secrets(other: &Player, game: &Game) -> Vec { @@ -271,6 +271,7 @@ pub(crate) fn validate_spy_cards(cards: &[HandCard], game: &Game) -> Result<(), let our = hand_cards( game.player(game.current_event().player.index), &HandCardType::get_all(), + game, ) .into_iter() .filter(|c| cards.contains(c)) diff --git a/server/src/content/advances/science.rs b/server/src/content/advances/science.rs index 13d09887..d2d50b00 100644 --- a/server/src/content/advances/science.rs +++ b/server/src/content/advances/science.rs @@ -8,6 +8,7 @@ use crate::content::advances::{AdvanceGroup, AdvanceGroupInfo, advance_group_bui use crate::content::persistent_events::ResourceRewardRequest; use crate::game::GameOptions; use crate::resource::ResourceType; +use crate::resource_pile::ResourcePile; pub(crate) fn science(options: &GameOptions) -> AdvanceGroupInfo { advance_group_builder( @@ -104,17 +105,21 @@ fn metallurgy() -> AdvanceBuilder { "Metallurgy", "If you have the Steel Weapons Advance, \ you no longer have to pay 1 ore to activate it against enemies without Steel Weapons. \ - If you collect at least 2 ore, replace 1 ore with 1 gold", + If you collect at least 2 ore, you may replace 1 ore with 1 gold", ) .with_advance_bonus(CultureToken) - .add_transient_event_listener( - |event| &mut event.collect_total, + .add_bool_request( + |event| &mut event.collect, 0, - |i, _, _, p| { - if i.total.ore >= 2 { - i.total.ore -= 1; - i.total.gold += 1; - i.info.add_log(p, "Convert 1 ore to 1 gold"); + |_game, _p, i| { + (i.total.ore >= 2).then_some("Do you want to convert 1 ore to 1 gold?".to_string()) + }, + move |game, s, _| { + if s.choice { + s.player().lose_resources(game, ResourcePile::ore(1)); + s.player().gain_resources(game, ResourcePile::gold(1)); + } else { + s.log(game, "Did not convert ore to gold"); } }, ) diff --git a/server/src/content/incidents/great_builders.rs b/server/src/content/incidents/great_builders.rs index 31d3e2db..b161379a 100644 --- a/server/src/content/incidents/great_builders.rs +++ b/server/src/content/incidents/great_builders.rs @@ -7,9 +7,8 @@ use crate::content::ability::Ability; use crate::content::advances::AdvanceGroup; use crate::content::effects::ConstructEffect; use crate::content::effects::PermanentEffect::Construct; -use crate::content::incidents::great_persons::{ - GREAT_PERSON_DESCRIPTION, great_person_action_card, great_person_description, -}; +use crate::content::incidents::great_persons::GreatPersonType; +use crate::content::incidents::great_persons::{great_person_card, tech_great_person_description}; use crate::content::persistent_events::HandCardsRequest; use crate::game::Game; use crate::player::Player; @@ -21,13 +20,14 @@ use crate::wonder::{Wonder, WonderCardInfo, cities_for_wonder, on_play_wonder_ca pub(crate) fn great_engineer() -> ActionCard { let groups = vec![AdvanceGroup::Construction]; - great_person_action_card( + great_person_card( 26, + GreatPersonType::ActionCard, "Great Engineer", &format!( "{} Then, you may build a building in a city \ without spending an action and without activating it.", - great_person_description(&groups) + tech_great_person_description(&groups) ), |c| c.action().no_resources(), groups, @@ -118,14 +118,13 @@ pub(crate) fn construct_only() -> Ability { } pub(crate) fn great_architect() -> ActionCard { - great_person_action_card::<_>( + great_person_card::<_>( 55, + GreatPersonType::Public, "Great Architect", - &format!( - "{GREAT_PERSON_DESCRIPTION} When constructing a wonder, you may ignore \ - the requirement advances (but not Engineering). \ - In addition, the cost of constructing the wonder is reduced by 3 culture tokens.", - ), + "When constructing a wonder, you may ignore \ + the requirement advances (but not Engineering). \ + In addition, the cost of constructing the wonder is reduced by 3 culture tokens.", |c| c.free_action().no_resources(), vec![], |game, player| !playable_wonders(game, player).is_empty(), diff --git a/server/src/content/incidents/great_diplomat.rs b/server/src/content/incidents/great_diplomat.rs index 08d77229..c8936edf 100644 --- a/server/src/content/incidents/great_diplomat.rs +++ b/server/src/content/incidents/great_diplomat.rs @@ -2,9 +2,7 @@ use crate::ability_initializer::AbilityInitializerSetup; use crate::action_card::ActionCard; use crate::content::ability::Ability; use crate::content::effects::PermanentEffect; -use crate::content::incidents::great_persons::{ - GREAT_PERSON_DESCRIPTION, great_person_action_card, -}; +use crate::content::incidents::great_persons::{GreatPersonType, great_person_card}; use crate::game::Game; use crate::incident::IncidentBuilder; use crate::player_events::IncidentTarget; @@ -14,15 +12,14 @@ use serde::{Deserialize, Serialize}; pub(crate) const DIPLOMAT_ID: u8 = 57; pub(crate) fn great_diplomat() -> ActionCard { - great_person_action_card::<_>( + great_person_card::<_>( DIPLOMAT_ID, + GreatPersonType::Public, "Great Diplomat", - &format!( - "{GREAT_PERSON_DESCRIPTION} Choose another player. \ - You cannot attack each other, unless you pay 2 culture tokens. \ - Discard this card if either player attacks the other. \ - You may discard the card as a regular action.", - ), + "Choose another player. \ + You cannot attack each other, unless you pay 2 culture tokens. \ + Discard this card if either player attacks the other. \ + You may discard the card as a regular action.", // action for ending diplomatic relations |c| c.action().no_resources(), vec![], diff --git a/server/src/content/incidents/great_explorer.rs b/server/src/content/incidents/great_explorer.rs index b2b0ff70..066f33f0 100644 --- a/server/src/content/incidents/great_explorer.rs +++ b/server/src/content/incidents/great_explorer.rs @@ -3,7 +3,7 @@ use crate::action_card::{ActionCard, ActionCardBuilder}; use crate::city::{found_city, is_valid_city_terrain}; use crate::content::advances::AdvanceGroup; use crate::content::incidents::great_persons::{ - great_person_action_card, great_person_description, + GreatPersonType, great_person_card, tech_great_person_description, }; use crate::content::persistent_events::{PaymentRequest, PositionRequest}; use crate::events::{EventOrigin, EventPlayer, check_event_origin}; @@ -18,14 +18,15 @@ use itertools::Itertools; pub(crate) fn great_explorer() -> ActionCard { let groups = vec![AdvanceGroup::Seafaring]; - let mut builder = great_person_action_card( + let mut builder = great_person_card( 18, + GreatPersonType::ActionCard, "Great Explorer", &format!( "{} Then, you may explore a region adjacent to a region \ where you have a city. If you do, you may found a city in the explored region,\ without using a Settler.", - great_person_description(&groups) + tech_great_person_description(&groups) ), |c| c.action().no_resources(), groups, diff --git a/server/src/content/incidents/great_persons.rs b/server/src/content/incidents/great_persons.rs index 48f3d051..b4cf1730 100644 --- a/server/src/content/incidents/great_persons.rs +++ b/server/src/content/incidents/great_persons.rs @@ -33,6 +33,25 @@ pub(crate) const GREAT_PERSON_DESCRIPTION: &str = "You make take the Event Card hand for 1 culture token. If you pass, any other player (in player order) may take it \ for 2 culture tokens: Action card: "; +pub(crate) const PUBLIC_GREAT_PERSON_DESCRIPTION: &str = "You make place the Event Card in front \ + of you 1 culture token. If you pass, any other player (in player order) may do so \ + for 2 culture tokens: "; + +#[derive(Clone, Copy, PartialEq, Eq)] +pub(crate) enum GreatPersonType { + ActionCard, + Public, +} + +impl GreatPersonType { + pub fn description(&self) -> &str { + match self { + GreatPersonType::ActionCard => GREAT_PERSON_DESCRIPTION, + GreatPersonType::Public => PUBLIC_GREAT_PERSON_DESCRIPTION, + } + } +} + pub(crate) fn great_person_incidents() -> Vec { vec![ incident(IncidentBaseEffect::ExhaustedLand, great_explorer(), |b| b), @@ -130,8 +149,9 @@ fn incident( on_gain(b).build() } -pub(crate) fn great_person_action_card( +pub(crate) fn great_person_card( incident_id: u8, + great_person_type: GreatPersonType, name: &str, description: &str, cost: impl Fn(ActionCostBuilder) -> ActionCostOncePerTurn + Send + Sync + 'static, @@ -144,10 +164,11 @@ where ActionCard::builder( incident_id + GREAT_PERSON_OFFSET, name, - description, + &format!("{}{}", great_person_type.description(), description), cost, move |game, player, _| can_play(game, player), ) + .public(great_person_type == GreatPersonType::Public) .add_advance_request( |e| &mut e.play_action_card, 10, @@ -169,12 +190,13 @@ where fn great_artist() -> ActionCard { let groups = vec![AdvanceGroup::Culture]; - great_person_action_card( + great_person_card( 19, + GreatPersonType::ActionCard, "Great Artist", &format!( "{} Then, you make one of your cities Happy.", - great_person_description(&groups) + tech_great_person_description(&groups) ), |c| c.action().no_resources(), groups, @@ -206,12 +228,13 @@ fn great_artist() -> ActionCard { fn great_prophet() -> ActionCard { let groups = vec![AdvanceGroup::Spirituality]; - great_person_action_card( + great_person_card( 20, + GreatPersonType::ActionCard, "Great Prophet", &format!( "{} Then, you build a Temple without activating the city.", - great_person_description(&groups) + tech_great_person_description(&groups) ), |c| c.action().no_resources(), groups, @@ -293,9 +316,9 @@ fn temple_cost(game: &Game, player: &Player) -> PaymentOptions { .cost } -pub(crate) fn great_person_description(free_advance_groups: &[AdvanceGroup]) -> String { +pub(crate) fn tech_great_person_description(free_advance_groups: &[AdvanceGroup]) -> String { format!( - "{GREAT_PERSON_DESCRIPTION} You may advance \ + "You may advance \ in any {} technology for free and without changing the Game Event counter.", format_list( &free_advance_groups @@ -310,10 +333,14 @@ pub(crate) fn great_person_description(free_advance_groups: &[AdvanceGroup]) -> fn great_philosopher() -> ActionCard { let groups = vec![AdvanceGroup::Education]; - great_person_action_card( + great_person_card( 21, + GreatPersonType::ActionCard, "Great Philosopher", - &format!("{} Then, gain 2 ideas.", great_person_description(&groups)), + &format!( + "{} Then, gain 2 ideas.", + tech_great_person_description(&groups) + ), |c| c.action().no_resources(), groups, |_game, _player| true, @@ -330,12 +357,13 @@ fn great_philosopher() -> ActionCard { fn great_scientist() -> ActionCard { let groups = vec![AdvanceGroup::Science]; - great_person_action_card( + great_person_card( 22, + GreatPersonType::ActionCard, "Great Scientist", &format!( "{} Then, gain 1 idea and 1 Action Card.", - great_person_description(&groups) + tech_great_person_description(&groups) ), |c| c.action().no_resources(), groups, @@ -357,12 +385,13 @@ fn elder_statesman() -> ActionCard { .into_iter() .map(|a| a.advance_group) .collect_vec(); - great_person_action_card( + great_person_card( 23, + GreatPersonType::ActionCard, "Elder Statesman", &format!( "{} Then, draw 2 Action Cards.", - great_person_description(&groups) + tech_great_person_description(&groups) ), |c| c.action().no_resources(), groups, @@ -382,12 +411,13 @@ fn elder_statesman() -> ActionCard { fn great_merchant() -> ActionCard { let groups = vec![AdvanceGroup::Economy]; economy::add_trade_routes( - great_person_action_card( + great_person_card( 25, + GreatPersonType::ActionCard, "Great Merchant", &format!( "{} Then, if you have the Trade Routes advance, gain the Trade Routes income.", - great_person_description(&groups) + tech_great_person_description(&groups) ), |c| c.action().no_resources(), groups, @@ -400,12 +430,13 @@ fn great_merchant() -> ActionCard { fn great_athlete() -> ActionCard { let groups = vec![AdvanceGroup::Culture]; - great_person_action_card( + great_person_card( 56, + GreatPersonType::ActionCard, "Great Athlete", &format!( "{} Then, you may convert any amount of culture tokens to mood tokens or vice versa.", - great_person_description(&groups) + tech_great_person_description(&groups) ), |c| c.action().no_resources(), groups, @@ -475,15 +506,14 @@ fn great_athlete() -> ActionCard { } fn great_seer() -> ActionCard { - let mut b = great_person_action_card::<_>( + let mut b = great_person_card::<_>( 58, + GreatPersonType::ActionCard, "Great Seer", - &format!( - "{GREAT_PERSON_DESCRIPTION} Draw 1 objective card per player. \ - Choose one for each player, including yourself. \ - The next time the player draws an objective card from the pile, \ - they draw the designated card instead.", - ), + "Draw 1 objective card per player. \ + Choose one for each player, including yourself. \ + The next time the player draws an objective card from the pile, \ + they draw the designated card instead.", |c| c.action().no_resources(), vec![], |_game, _player| true, diff --git a/server/src/content/incidents/great_warlord.rs b/server/src/content/incidents/great_warlord.rs index a6c1a9a5..c185072b 100644 --- a/server/src/content/incidents/great_warlord.rs +++ b/server/src/content/incidents/great_warlord.rs @@ -4,7 +4,7 @@ use crate::combat::CombatModifier; use crate::content::ability::Ability; use crate::content::advances::AdvanceGroup; use crate::content::incidents::great_persons::{ - great_person_action_card, great_person_description, + GreatPersonType, great_person_card, tech_great_person_description, }; use crate::game::GameState; use crate::game::GameState::Movement; @@ -13,13 +13,14 @@ use std::mem; pub(crate) fn great_warlord() -> ActionCard { let groups = vec![AdvanceGroup::Warfare]; - great_person_action_card( + great_person_card( 24, + GreatPersonType::ActionCard, "Great Warlord", &format!( "{} Then, gain a Move action. On the first battle you fight, \ gain 2 combat value in every round.", - great_person_description(&groups) + tech_great_person_description(&groups) ), |c| c.action().no_resources(), groups, diff --git a/server/src/content/incidents/pandemics.rs b/server/src/content/incidents/pandemics.rs index 76c6735a..9be3aa88 100644 --- a/server/src/content/incidents/pandemics.rs +++ b/server/src/content/incidents/pandemics.rs @@ -63,7 +63,11 @@ fn pandemics() -> Incident { |game, p, i| { let player = p.get(game); Some(HandCardsRequest::new( - hand_cards(player, &[HandCardType::Action, HandCardType::Objective]), + hand_cards( + player, + &[HandCardType::Action, HandCardType::Objective], + game, + ), PandemicsContributions::range(player, i, 1), "Select cards to lose (or select resources instead later)", )) diff --git a/server/src/game_api.rs b/server/src/game_api.rs index 7da0b666..28b9f95e 100644 --- a/server/src/game_api.rs +++ b/server/src/game_api.rs @@ -18,6 +18,7 @@ use crate::{ utils::Rng, }; use std::cmp::Ordering::*; +use std::mem; // Game API methods, see https://docs.boardgamers.space/guide/engine-api.html#required-methods #[must_use] @@ -126,11 +127,13 @@ pub fn strip_secret(mut game: Game, player_index: Option) -> Game { game.objective_cards_left.shuffle(&mut game.rng); game.seed = String::new(); game.rng = Rng::default(); - for (i, player) in game.players.iter_mut().enumerate() { + let mut players = mem::take(&mut game.players); + for (i, player) in players.iter_mut().enumerate() { if player_index != Some(i) { - player.strip_secret(); + player.strip_secret(&game); } } + game.players = players; game.map.strip_secret(); strip_events(&mut game, player_index); strip_log(&mut game, player_index); diff --git a/server/src/player.rs b/server/src/player.rs index dbf477c9..ff5a48c3 100644 --- a/server/src/player.rs +++ b/server/src/player.rs @@ -327,9 +327,19 @@ impl Player { } } - pub fn strip_secret(&mut self) { + pub fn strip_secret(&mut self, game: &Game) { self.wonder_cards = self.wonder_cards.iter().map(|_| Wonder::Hidden).collect(); - self.action_cards = self.action_cards.iter().map(|_| 0).collect(); + self.action_cards = self + .action_cards + .iter() + .map(|id| { + if game.cache.get_action_card(*id).public { + *id + } else { + 0 + } + }) + .collect(); self.objective_cards = self.objective_cards.iter().map(|_| 0).collect(); self.secrets = Vec::new(); } diff --git a/server/tests/advances_tests.rs b/server/tests/advances_tests.rs index bb56f76a..446e1c9a 100644 --- a/server/tests/advances_tests.rs +++ b/server/tests/advances_tests.rs @@ -616,12 +616,14 @@ fn test_collect_free_economy() { ) .skip_json(), TestAction::undoable(0, payment_response(ResourcePile::mood_tokens(1))) + .skip_json() .with_post_assert(|game| { // no production focus let result = PlayingActionType::ActionCard(19).is_available(&game, game.active_player()); assert!(result.is_err()); }), + TestAction::undoable(0, Action::Response(EventResponse::Bool(true))), ], ); } diff --git a/server/tests/test_games/advances/collect_free_economy.json b/server/tests/test_games/advances/collect_free_economy.json index 747c08a1..9b7eab27 100644 --- a/server/tests/test_games/advances/collect_free_economy.json +++ b/server/tests/test_games/advances/collect_free_economy.json @@ -6,9 +6,7 @@ "resources": { "food": 1, "wood": 6, - "ore": 7, "ideas": 5, - "gold": 7, "mood_tokens": 6, "culture_tokens": 7 }, diff --git a/server/tests/test_games/advances/collect_free_economy.outcome1.json b/server/tests/test_games/advances/collect_free_economy.outcome2.json similarity index 83% rename from server/tests/test_games/advances/collect_free_economy.outcome1.json rename to server/tests/test_games/advances/collect_free_economy.outcome2.json index e1ccfb40..7e43a6fe 100644 --- a/server/tests/test_games/advances/collect_free_economy.outcome1.json +++ b/server/tests/test_games/advances/collect_free_economy.outcome2.json @@ -6,9 +6,9 @@ "resources": { "food": 1, "wood": 6, - "ore": 7, + "ore": 1, "ideas": 5, - "gold": 7, + "gold": 1, "mood_tokens": 5, "culture_tokens": 7 }, @@ -259,8 +259,7 @@ "player": 0, "Resources": { "resources": { - "ore": 1, - "gold": 1 + "ore": 2 }, "balance": "Gain" }, @@ -270,9 +269,43 @@ } ], "log": [ - "Player1: Free Economy: Pay 1 mood token, Use city C2, Gain 1 ore and 1 gold", - "Player1: Metallurgy: Convert 1 ore to 1 gold", - "Player1: Waste: Could not store 1 ore and 1 gold" + "Player1: Free Economy: Pay 1 mood token, Use city C2, Gain 2 ore" + ] + }, + { + "action": { + "Response": { + "Bool": true + } + }, + "items": [ + { + "player": 0, + "Resources": { + "resources": { + "ore": 1 + }, + "balance": "Loss" + }, + "origin": { + "Advance": "Metallurgy" + } + }, + { + "player": 0, + "Resources": { + "resources": { + "gold": 1 + }, + "balance": "Gain" + }, + "origin": { + "Advance": "Metallurgy" + } + } + ], + "log": [ + "Player1: Metallurgy: Gain 1 gold" ] } ] @@ -282,7 +315,7 @@ ] } ], - "log_index": 2, + "log_index": 3, "undo_limit": 0, "actions_left": 3, "round": 2, @@ -305,4 +338,4 @@ "wonders_left": [ "Pyramids" ] -} \ No newline at end of file +} From 7f5e9f27497fdfb3267acf60292944439c2866f9 Mon Sep 17 00:00:00 2001 From: Gregor Zeitlinger Date: Sat, 30 Aug 2025 10:29:06 +0200 Subject: [PATCH 004/189] fix navigate (#337) navigate only at start of move - but can reach any adjacent sea, even if the end of the current sea is not reached --- mise.toml | 2 +- server/src/move_routes.rs | 30 +++++++++++++++---- server/src/movement.rs | 2 +- server/tests/movement_tests.rs | 22 ++++++++------ .../movement/ship_navigate_explore_move.json | 12 +------- .../ship_navigate_explore_not_move.json | 12 +------- .../movement/ship_navigation_unit_test.json | 12 +------- 7 files changed, 42 insertions(+), 50 deletions(-) diff --git a/mise.toml b/mise.toml index 01fc2c0d..26df7324 100644 --- a/mise.toml +++ b/mise.toml @@ -21,7 +21,7 @@ dir = "server" [tasks.update-tests] description = "Run server tests and update JSON files" -run = 'cargo test {{arg(name="test", default="")}}' +run = 'cargo test --jobs 5 {{arg(name="test", default="")}}' env = { UPDATE_EXPECTED = "true", RUSTFLAGS = '' } dir = "server" diff --git a/server/src/move_routes.rs b/server/src/move_routes.rs index 53c500b2..9631073e 100644 --- a/server/src/move_routes.rs +++ b/server/src/move_routes.rs @@ -3,9 +3,9 @@ use crate::consts::STACK_LIMIT; use crate::content::action_cards::negotiation::negotiations_partner; use crate::content::incidents::great_diplomat::{DIPLOMAT_ID, diplomatic_relations_partner}; use crate::events::EventOrigin; -use crate::game::Game; +use crate::game::{Game, GameState}; use crate::map::Map; -use crate::movement::move_event_origin; +use crate::movement::{CurrentMove, move_event_origin}; use crate::payment::PaymentOptions; use crate::player::Player; use crate::position::Position; @@ -53,7 +53,7 @@ pub(crate) fn move_routes( .filter(|&n| game.map.is_inside(*n)) .map(|&n| MoveRoute::new(n, player, ResourcePile::empty(), vec![])) .collect(); - if player.can_use_advance(Advance::Navigation) { + if player.can_use_advance(Advance::Navigation) && !has_current_move(game) { base.extend(reachable_with_navigation(player, units, &game.map)); } if player.can_use_advance(Advance::Roads) && embark_carrier_id.is_none() { @@ -64,6 +64,14 @@ pub(crate) fn move_routes( base } +fn has_current_move(game: &Game) -> bool { + if let GameState::Movement(m) = &game.state { + m.current_move != CurrentMove::None + } else { + false + } +} + fn add_diplomatic_relations(player: &Player, game: &Game, base: &mut Vec) { if let Some(partner) = diplomatic_relations_partner(game, player.index) { let partner = game.player(partner); @@ -250,9 +258,19 @@ fn reachable_with_navigation(player: &Player, units: &[u32], map: &Map) -> Vec move_state.current_move = current_move; } if !starting_position.is_neighbor(m.destination) { - // roads move ends the current move + // roads move and navigation end the current move move_state.current_move = CurrentMove::None; } diff --git a/server/tests/movement_tests.rs b/server/tests/movement_tests.rs index 81660fdf..ee90f2db 100644 --- a/server/tests/movement_tests.rs +++ b/server/tests/movement_tests.rs @@ -211,18 +211,22 @@ fn test_ship_navigate_coordinates() { let mut game = JSON.load_game("ship_navigation_unit_test"); let pairs = [ - ("B3", "B5"), - ("B5", "A7"), - ("A7", "F7"), - ("G7", "G3"), - ("G3", "B3"), + ("B3", "B5", true), + ("B5", "A7", true), + ("A7", "F7", true), + ("F7", "G3", false), + ("G7", "A7", false), + ("G7", "G3", true), + ("G3", "B3", true), ]; - for pair in pairs { - let from = Position::from_offset(pair.0); - let to = Position::from_offset(pair.1); + for (from, to, back) in pairs { + let from = Position::from_offset(from); + let to = Position::from_offset(to); assert_navigate(&mut game, from, to); - assert_navigate(&mut game, to, from); + if back { + assert_navigate(&mut game, to, from); + } } } diff --git a/server/tests/test_games/movement/ship_navigate_explore_move.json b/server/tests/test_games/movement/ship_navigate_explore_move.json index 911800d8..5669f5bf 100644 --- a/server/tests/test_games/movement/ship_navigate_explore_move.json +++ b/server/tests/test_games/movement/ship_navigate_explore_move.json @@ -1,17 +1,7 @@ { "state": { "Movement": { - "movement_actions_left": 0, - "moved_units": [ - 1 - ], - "current_move": { - "Fleet": { - "units": [ - 1 - ] - } - } + "movement_actions_left": 1 } }, "players": [ diff --git a/server/tests/test_games/movement/ship_navigate_explore_not_move.json b/server/tests/test_games/movement/ship_navigate_explore_not_move.json index 2c813ea4..5c55fd70 100644 --- a/server/tests/test_games/movement/ship_navigate_explore_not_move.json +++ b/server/tests/test_games/movement/ship_navigate_explore_not_move.json @@ -1,17 +1,7 @@ { "state": { "Movement": { - "movement_actions_left": 2, - "moved_units": [ - 1 - ], - "current_move": { - "Fleet": { - "units": [ - 1 - ] - } - } + "movement_actions_left": 2 } }, "players": [ diff --git a/server/tests/test_games/movement/ship_navigation_unit_test.json b/server/tests/test_games/movement/ship_navigation_unit_test.json index 9c3d4583..f78c8d79 100644 --- a/server/tests/test_games/movement/ship_navigation_unit_test.json +++ b/server/tests/test_games/movement/ship_navigation_unit_test.json @@ -1,17 +1,7 @@ { "state": { "Movement": { - "movement_actions_left": 2, - "moved_units": [ - 1 - ], - "current_move": { - "Fleet": { - "units": [ - 1 - ] - } - } + "movement_actions_left": 2 } }, "players": [ From d4f555342488df3f8d9bbcd84e573f5b8eeea564 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 6 Sep 2025 08:40:51 +0000 Subject: [PATCH 005/189] Update actions/setup-node action to v5 (#340) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [actions/setup-node](https://redirect.github.com/actions/setup-node) | action | major | `v4` -> `v5` | --- ### Release Notes
actions/setup-node (actions/setup-node) ### [`v5`](https://redirect.github.com/actions/setup-node/compare/v4...v5) [Compare Source](https://redirect.github.com/actions/setup-node/compare/v4...v5)
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5741a22a..a62f9df3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,7 +17,7 @@ jobs: version: v2025.8.20 sha256: a9df29caa68f83b5ba5b0c0c70acfeb559e91c3e8b67afb9eda28c6f97a27bfb - name: Use Node.js ${{ env.node_version }} - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 + uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5 with: node-version: ${{ env.node_version }} # setting a registry enables the NODE_AUTH_TOKEN env variable where we can set an npm token. REQUIRED From dcbd743942ff89ecf985fa4009592eb6799f2e1b Mon Sep 17 00:00:00 2001 From: Gregor Zeitlinger Date: Sat, 6 Sep 2025 10:45:15 +0200 Subject: [PATCH 006/189] log ui (#338) --- client/assets/hex-svgrepo-com.png | Bin 0 -> 5489 bytes client/src/action_buttons.rs | 18 +- client/src/assets.rs | 6 + client/src/city_ui.rs | 36 +- client/src/client_state.rs | 10 +- client/src/happiness_ui.rs | 4 +- client/src/hex_ui.rs | 7 +- client/src/lib.rs | 1 + client/src/log_collector.rs | 118 ++++ client/src/log_ui.rs | 525 ++++++++++++++---- client/src/player_ui.rs | 6 +- client/src/render_context.rs | 10 +- client/src/select_ui.rs | 7 +- mise.toml | 2 +- server/src/ability_initializer.rs | 64 +-- server/src/action.rs | 20 +- server/src/action_cost.rs | 20 +- server/src/advance.rs | 38 +- server/src/ai_actions.rs | 14 +- server/src/barbarians.rs | 2 +- server/src/cache.rs | 33 +- server/src/card.rs | 142 +++-- server/src/city.rs | 16 +- server/src/city_pieces.rs | 26 +- server/src/collect.rs | 9 +- server/src/combat.rs | 7 +- server/src/combat_roll.rs | 2 +- server/src/construct.rs | 4 +- .../src/content/action_cards/mercenaries.rs | 9 +- .../src/content/action_cards/negotiation.rs | 4 +- server/src/content/action_cards/spy.rs | 9 +- server/src/content/advances/construction.rs | 4 +- server/src/content/advances/culture.rs | 4 +- server/src/content/advances/democracy.rs | 17 +- server/src/content/advances/economy.rs | 2 +- server/src/content/advances/education.rs | 16 +- server/src/content/advances/science.rs | 4 +- server/src/content/civilizations/greece.rs | 12 +- server/src/content/civilizations/rome.rs | 4 +- server/src/content/civilizations/vikings.rs | 13 +- server/src/content/custom_actions.rs | 137 +++-- server/src/content/incidents/civil_war.rs | 2 +- server/src/content/incidents/earthquake.rs | 8 +- server/src/content/incidents/famine.rs | 3 +- server/src/content/incidents/good_year.rs | 2 +- .../content/objectives/resource_objectives.rs | 3 +- server/src/content/wonders.rs | 3 +- server/src/cultural_influence.rs | 18 +- server/src/events.rs | 49 +- server/src/explore.rs | 11 +- server/src/game.rs | 20 +- server/src/game_data.rs | 6 +- server/src/game_setup.rs | 26 +- server/src/happiness.rs | 12 +- server/src/log.rs | 186 +++++-- server/src/movement.rs | 48 +- server/src/objective_card.rs | 2 +- server/src/pirates.rs | 2 +- server/src/player.rs | 50 +- server/src/playing_actions.rs | 124 ++--- server/src/resource.rs | 44 +- server/src/status_phase.rs | 61 +- server/src/structure.rs | 23 +- server/src/unit.rs | 11 +- server/src/wonder.rs | 6 +- server/tests/advances_tests.rs | 20 +- server/tests/civ_greece_tests.rs | 13 +- server/tests/civ_rome_tests.rs | 6 +- .../objective_card_status_phase_tests.rs | 4 +- server/tests/status_phase_tests.rs | 7 +- .../action_cards/advance.outcome2.json | 25 +- .../action_cards/assassination.outcome3.json | 54 +- .../city_development.outcome2.json | 30 +- .../cultural_takeover.outcome2.json | 32 +- .../action_cards/explorer.outcome4.json | 63 ++- .../action_cards/great_ideas.outcome1.json | 52 +- .../action_cards/hero_general.outcome1.json | 55 +- .../action_cards/hero_general.outcome5.json | 79 ++- .../action_cards/ideas.outcome.json | 8 +- .../action_cards/inspiration.outcome.json | 11 +- .../mass_production.outcome1.json | 14 +- .../action_cards/mercenaries.outcome2.json | 50 +- .../action_cards/militia.outcome1.json | 18 +- .../action_cards/negotiations.outcome4.json | 82 ++- .../action_cards/new_ideas.outcome2.json | 25 +- .../action_cards/new_plans.outcome2.json | 22 +- .../production_focus.outcome1.json | 27 +- .../test_games/action_cards/spy.outcome2.json | 25 +- .../action_cards/synergies.outcome4.json | 39 +- .../action_cards/teach_us.outcome1.json | 57 +- .../action_cards/tech_trade.outcome.json | 14 +- .../advances/absolute_power.outcome1.json | 18 +- .../advances/bartering.outcome1.json | 29 +- .../advances/civil_liberties.outcome.json | 9 +- .../advances/civil_liberties.outcome1.json | 21 +- .../advances/collect_fishing.outcome.json | 22 +- .../collect_free_economy.outcome2.json | 31 +- .../advances/collect_husbandry.outcome.json | 22 +- .../advances/collect_port.outcome.json | 9 +- ..._influence_instant_with_arts.outcome1.json | 30 +- ...al_influence_with_conversion.outcome2.json | 34 +- .../test_games/advances/dogma.outcome3.json | 77 ++- .../advances/forced_labor.outcome2.json | 42 +- .../advances/free_education.outcome.json | 16 +- .../advances/free_education.outcome1.json | 23 +- .../increase_happiness_sports.outcome1.json | 16 +- .../increase_happiness_sports2.outcome1.json | 16 +- .../increase_happiness_voting.outcome.json | 13 +- ...ease_happiness_voting_rituals.outcome.json | 11 +- .../movement_on_roads_from_city.outcome.json | 22 +- .../movement_on_roads_to_city.outcome.json | 22 +- .../advances/priesthood.outcome.json | 17 +- .../advances/priesthood.outcome1.json | 34 +- .../sanitation_and_draft.outcome.json | 12 +- .../test_games/advances/taxes.outcome2.json | 38 +- .../advances/theaters.outcome1.json | 18 +- .../advances/trade_routes.outcome.json | 34 +- .../trade_routes_with_currency.outcome.json | 20 +- .../trade_routes_with_currency.outcome1.json | 26 +- .../test_games/advances/writing.outcome1.json | 31 +- .../test_games/base/collect.outcome.json | 22 +- .../test_games/base/construct.outcome.json | 14 +- .../base/construct_port.outcome.json | 14 +- .../base/cultural_influence.outcome2.json | 31 +- .../cultural_influence_instant.outcome.json | 15 +- .../test_games/base/found_city.outcome1.json | 21 +- .../base/increase_happiness.outcome.json | 11 +- server/tests/test_games/base/new_game.json | 49 +- .../test_games/base/recruit.outcome.json | 18 +- .../base/recruit_leader.outcome.json | 14 +- .../base/replace_leader.outcome.json | 17 +- .../base/same_player_undo.outcome.json | 14 +- .../china/expansion.outcome.json | 12 +- .../civilizations/china/fast_war.outcome.json | 36 +- .../china/fireworks.outcome1.json | 45 +- .../china/great_wall.outcome4.json | 45 +- .../china/imperial_army.outcome1.json | 17 +- .../civilizations/china/rice.outcome.json | 7 +- .../greece/city_states.outcome1.json | 17 +- .../greece/hellenistic_culture.outcome1.json | 30 +- .../civilizations/greece/idol.outcome2.json | 25 +- .../civilizations/greece/master.outcome1.json | 21 +- .../greece/ruler_of_the_world.outcome.json | 33 +- .../greece/sparta_battle.outcome.json | 30 +- .../greece/sparta_draft.outcome.json | 12 +- .../rome/aqueduct_discount.outcome.json | 16 +- .../rome/aqueduct_free_action.outcome1.json | 21 +- .../civilizations/rome/captivi.outcome.json | 12 +- .../civilizations/rome/civilizer.outcome.json | 28 +- .../civilizations/rome/emperor.outcome.json | 33 +- .../civilizations/rome/princeps.outcome1.json | 16 +- .../rome/proconsul.outcome1.json | 43 +- .../rome/provinces.outcome2.json | 61 +- .../rome/roman_roads.outcome.json | 27 +- .../civilizations/rome/statesman.outcome.json | 13 +- .../vikings/danegeld.outcome1.json | 31 +- .../vikings/explorer.outcome1.json | 17 +- .../vikings/longships.outcome1.json | 50 +- .../vikings/new_colonies.outcome2.json | 41 +- .../civilizations/vikings/prey.outcome.json | 48 +- .../civilizations/vikings/raids.outcome2.json | 61 +- .../vikings/ship_construction.outcome3.json | 68 ++- .../combat/capture_and_raze_city.outcome.json | 56 +- .../combat/combat_all_modifiers.outcome5.json | 92 ++- .../combat/combat_fanaticism.outcome.json | 65 ++- .../direct_capture_city_fortress.outcome.json | 54 +- ...irect_capture_city_metallurgy.outcome.json | 48 +- ...ct_capture_city_only_fortress.outcome.json | 51 +- .../combat/recruit_combat.outcome6.json | 104 ++-- .../remove_casualties_attacker.outcome.json | 22 +- .../remove_casualties_attacker.outcome1.json | 55 +- .../remove_casualties_defender.outcome.json | 28 +- .../test_games/combat/retreat.outcome.json | 20 +- .../test_games/combat/retreat.outcome1.json | 24 +- .../test_games/combat/retreat_no.outcome.json | 20 +- .../combat/retreat_no.outcome1.json | 34 +- .../combat/ship_combat.outcome.json | 23 +- .../combat/ship_combat.outcome1.json | 36 +- .../combat/ship_combat_war_ships.outcome.json | 23 +- .../incidents/barbarians_attack.outcome.json | 45 +- .../incidents/barbarians_move.outcome1.json | 24 +- .../barbarians_recapture_city.outcome.json | 52 +- .../incidents/barbarians_spawn.outcome1.json | 42 +- .../civil_war/civil_war.outcome.json | 20 +- .../incidents/civil_war/envoy.outcome.json | 17 +- .../incidents/civil_war/envoy.outcome1.json | 33 +- .../incidents/civil_war/envoy.outcome2.json | 38 +- .../civil_war/migration.outcome.json | 21 +- .../civil_war/revolution.outcome3.json | 56 +- .../incidents/civil_war/uprising.outcome.json | 14 +- .../civil_war/uprising.outcome1.json | 22 +- .../earthquake/earthquake.outcome3.json | 45 +- .../incidents/earthquake/flood.outcome.json | 14 +- .../incidents/earthquake/flood.outcome1.json | 19 +- .../incidents/earthquake/flood.outcome2.json | 24 +- .../incidents/earthquake/volcano.outcome.json | 14 +- .../earthquake/volcano.outcome1.json | 32 +- .../incidents/exhausted_land.outcome.json | 10 +- .../incidents/exhausted_land.outcome1.json | 30 +- .../incidents/famine/epidemics.outcome.json | 14 +- .../incidents/famine/epidemics.outcome1.json | 22 +- .../incidents/famine/famine.outcome.json | 16 +- .../famine/famine_protected.outcome.json | 14 +- .../incidents/famine/pestilence.outcome.json | 14 +- .../incidents/famine/pestilence.outcome1.json | 22 +- .../incidents/famine/pestilence.outcome2.json | 27 +- .../incidents/famine/pestilence.outcome3.json | 35 +- .../good_year/good_year.outcome1.json | 29 +- .../good_year/successful_year.outcome.json | 13 +- .../great_architect.outcome4.json | 41 +- .../great_persons/great_artist.outcome.json | 14 +- .../great_persons/great_artist.outcome1.json | 21 +- .../great_persons/great_artist.outcome2.json | 38 +- .../great_persons/great_artist.outcome3.json | 50 +- .../great_persons/great_athlete.outcome4.json | 45 +- .../great_diplomat.outcome2.json | 54 +- .../great_engineer.outcome5.json | 58 +- .../great_explorer.outcome6.json | 86 ++- .../great_merchant.outcome3.json | 52 +- .../great_persons/great_prophet.outcome4.json | 49 +- .../great_persons/great_seer.outcome4.json | 53 +- .../great_persons/great_warlord.outcome3.json | 57 +- .../pandemics/black_death.outcome.json | 14 +- .../pandemics/black_death.outcome1.json | 23 +- .../incidents/pandemics/drought.outcome.json | 14 +- .../incidents/pandemics/fire.outcome.json | 17 +- .../incidents/pandemics/fire.outcome1.json | 24 +- .../pandemics/pandemics.outcome.json | 14 +- .../pandemics/pandemics.outcome1.json | 22 +- .../pandemics/pandemics.outcome2.json | 27 +- .../pandemics/pandemics.outcome3.json | 35 +- .../incidents/pandemics/vermin.outcome.json | 16 +- .../incidents/pirates_spawn.outcome.json | 10 +- .../incidents/pirates_spawn.outcome1.json | 14 +- .../incidents/pirates_spawn.outcome2.json | 22 +- .../incidents/pirates_spawn.outcome3.json | 30 +- .../incidents/pirates_spawn.outcome4.json | 40 +- .../trade/era_of_stability.outcome.json | 14 +- .../trade/era_of_stability.outcome1.json | 19 +- .../trade/era_of_stability.outcome2.json | 24 +- .../trade/flourishing_trade.outcome.json | 30 +- .../incidents/trade/reformation.outcome.json | 14 +- .../incidents/trade/reformation.outcome1.json | 26 +- .../trade/scientific_trade.outcome.json | 30 +- .../incidents/trojan/anarchy.outcome.json | 16 +- .../incidents/trojan/anarchy.outcome1.json | 45 +- .../incidents/trojan/guillotine.outcome2.json | 32 +- .../trojan/solar_eclipse.outcome2.json | 59 +- .../trojan/trojan_horse.outcome2.json | 74 ++- .../explore_auto_adjacent_water.outcome.json | 46 +- ...explore_auto_no_walk_on_water.outcome.json | 46 +- .../explore_auto_water_outside.outcome.json | 46 +- .../movement/explore_choose.outcome.json | 20 +- .../movement/explore_resolution.outcome.json | 20 +- .../movement/explore_resolution.outcome1.json | 54 +- .../test_games/movement/movement.outcome.json | 20 +- .../movement/ship_disembark.outcome.json | 21 +- ...disembark_capture_empty_city.outcome1.json | 57 +- .../movement/ship_embark.outcome.json | 21 +- .../ship_embark_continue.outcome.json | 21 +- .../movement/ship_explore.outcome.json | 46 +- ...hip_explore_move_not_possible.outcome.json | 34 +- .../ship_explore_teleport.outcome.json | 47 +- .../movement/ship_navigate.outcome.json | 21 +- .../ship_navigate_explore_move.outcome.json | 47 +- ...hip_navigate_explore_not_move.outcome.json | 20 +- .../movement/ship_transport.outcome.json | 20 +- .../ship_transport_same_sea.outcome.json | 20 +- .../instant/conqueror.outcome3.json | 69 ++- .../instant/defiance.outcome3.json | 64 ++- .../instant/draft.outcome2.json | 29 +- .../instant/scavenger.outcome1.json | 35 +- .../instant/warmonger.outcome4.json | 68 ++- .../status_phase/colony.outcome2.json | 31 +- .../status_phase/large_civ.outcome8.json | 80 ++- .../status_phase/standing_army.outcome1.json | 38 +- .../change_government.outcome2.json | 66 ++- .../determine_first_player.outcome.json | 4 +- .../status_phase/end_game.outcome.json | 12 +- .../status_phase/free_advance.outcome.json | 365 ------------ .../status_phase/free_advance.outcome1.json | 407 -------------- .../status_phase/free_advance.outcome2.json | 68 ++- .../keep_government.outcome1.json | 36 +- .../status_phase/raze_city.outcome.json | 8 +- .../raze_city_decline.outcome.json | 4 +- .../raze_city_decline.outcome1.json | 34 +- .../tactics_cards/archers.outcome2.json | 43 +- .../tactics_cards/encircled.outcome.json | 20 +- .../tactics_cards/encircled.outcome1.json | 36 +- .../tactics_cards/flanking.outcome1.json | 36 +- .../heavy_resistance.outcome1.json | 36 +- .../tactics_cards/high_ground.outcome2.json | 41 +- .../tactics_cards/high_morale.outcome1.json | 36 +- .../tactics_cards/martyr.outcome4.json | 55 +- .../test_games/tactics_cards/martyr2.json | 24 +- .../tactics_cards/martyr2.outcome1.json | 51 +- .../tactics_cards/peltasts.outcome.json | 20 +- .../tactics_cards/peltasts.outcome1.json | 36 +- .../tactics_cards/scout.outcome2.json | 43 +- .../tactics_cards/siege.outcome1.json | 36 +- .../tactics_cards/surprise.outcome1.json | 38 +- .../wedge_formation.outcome1.json | 36 +- .../wonders/colosseum.outcome6.json | 98 +++- .../wonders/great_gardens.outcome3.json | 57 +- .../wonders/great_mausoleum.outcome4.json | 41 +- .../wonders/great_statue.outcome2.json | 30 +- .../wonders/great_wall.outcome3.json | 82 ++- .../test_games/wonders/library.outcome2.json | 23 +- .../wonders/lighthouse.outcome3.json | 34 +- .../test_games/wonders/pyramids.outcome2.json | 24 +- 310 files changed, 6867 insertions(+), 3813 deletions(-) create mode 100644 client/assets/hex-svgrepo-com.png create mode 100644 client/src/log_collector.rs delete mode 100644 server/tests/test_games/status_phase/free_advance.outcome.json delete mode 100644 server/tests/test_games/status_phase/free_advance.outcome1.json diff --git a/client/assets/hex-svgrepo-com.png b/client/assets/hex-svgrepo-com.png new file mode 100644 index 0000000000000000000000000000000000000000..dcc4e86659a37fd61903165d5a47d1529e86bf0d GIT binary patch literal 5489 zcmXX~c|278_rLd=!HkJ9BqYYJk}M?>hO8m9hzK>dCt8da%V0)4mPCl`qf}bRAmXu2 zLSz_`y=*CzHDSv3`}BSN{<@#nxo1E3p7Z{kSi9rq+pv;Y2!gg*T9}-GAQ&8Bh@Tfc zTqsYyAP5gxni!o5glBTLRm{99G1JSiXs|%E=t+<~Jszb=NXIPJNfrI*uCEw+zQ;MM zr_Q1JQtHJsJ<6@hS8Bsu*KHAkcp42+_nW%zg51B2xQki1yCYZ@>rLNs31+kwfzU!2 z+%Xa?eqiCheK5ZYWVdjam4_0g8SxYkkwtul_d<6fy)ifoz@k3&pDNvq1p6o)v2rH? zEi|LPuO%3E?HTCX0Y58ubwF~5`_5t57!@c$vO-Z^97ek{X+P%rQ7-}0%UJF?gh$v8 z;>A|HJT{t1L$2C1&J)CAfP;3->(~8|)tWQVoc&@ZidQxd!V!Ev-(%?mrTTkZQ&_~m zP9a5EWRbv$T4W)HT~)jlLYW_$=5Bt;(?7To4?Gj!J1)AJn9>$*{q9QlV%s~TEMMwm z?sO?b7(^y-@|*JDsq@&@wW=+dRi+#XSGl@*&Q*Uqj2=BTR`Ubb#GcuFx=<`*%wKum zJ8(GXf|tS%~coRxIg*kl?l<^Q5@IJ;d$p`du|~w)sUI${$Wy-_K@zRtBTz$ zo|cHacKG_*0of^8&Ck60ly}9{GmxwB^9?<8YayGUPkGeeq*U>b`CxBv0!YEG^Sn1q zKa_tB`zCPMPacU^>?}8MR!^)47Y7OmXmF%M`{HmzJtM}S{k*ro^PQ)S1$P;t=qGD}+f`e80L6>qgG#!S8JHs|2Z$1L0 z>gudNV7N5ae-7ht!AXXjR3 zB58=70$%2=`;!7kmCQt|0-g3KNXB;Tl&5l9f(`6=?D>4CD1V!$;9zLc*X4vO+^IEs zjX1Tm5TZ5+Z$?G9|HCdc>|z7z!l~*jc5o#}as1-mb@tayMoPX^_wMyu+%dgzzS|41 z&jQ6B8ZVZ4ZFpT zg8m)j5pT*vI+eQ=)Z3guxP>)y<=YLk)_znQjx7H8wOuwZ@ma=C`Yzl?*_iRV@0F8K zFCiq%5YyI`>SP%3?ZOl9=8+TJ03j#1lP}a0OApu1Hurp2fiPv*4&00=<2RbV0iDBb zdVek&(<*0r<}<_aXZqz{GF_JnR}F}H&=II?TvJQm(vtEr(67&Vx801^$yHUm8KPR9 zO#eY@P|j{>Xh2K8#PDlgZEeA7u3r=fx8Z8r##q^4Q5??SysYsEDl9N7DMNYodat;R zyfv^@@7DTaF1AUXDCA|fi{l^szLIolM5xBd8Fu6=-X7-Fa57N!t*%e;lKWP*#8DB% zf!DBDRDZaT`1Z)yc`(r|;9LbG>uPUY&iGo$Z9~ zeoJ0AW|xi#G4~Pc8vl!CME^JmSGrj6rp2)F?9Ka+w$6@ek(IVRs2;%1^TlY$k=WIG zQs+l^?aUW|EJKvjN{y=YwZSiBp-%E|DR(NBiM>l-v z{B?sRt08RMXGt(-QH#V^ke3(h_FK@-Q)AN)iukNuQn!U;Vymfv~KFJlyBM zZViT|Pw!hV|M+Kwa}m-|(suf-u>+x$*Z1i;>O??LTBrfv?5%wKK~0j@p#YFbrp>peZd~Tb48-&zHz=GPxwT z^&AVW6_^UnTos9Z!)D=xbHw#;C=)qB%{X9B8Xd31J%IKcXABOh0N5E9F2)4y{V)gFD^ zoaW+V%$m4*m`_IcKpcd37nOc2vxk+4%r94?T11qhTUL2)@)554qhOz?#0GQ!o{kdC zJ*r_R&vXWw_CG80NxGBsDLqitQ9+H^?5;0mSjb8zje=UdNAG^7j!fWJ;s=!Mr;{61?Jv)B=CytC;&^agRs0!vUhBVT_I>H`E zemf2KeefPh7ziejbZ{6CFy%F$`kq8gLC-ct#?+gY?tZOB?wYz*6I4h*5RZx`(p3Sw zSkUaTJP1bTk?>Lt{U}Y42hC|;XQUN4GXeRyA{pRd{bw+ZqzNL`g)(KbNEINZH&Czk z(@lT^IjW5nF^h)W-38BD5tG1y->sW0@)ST+J6UXk5n>4xC@f^AlF)!VN=1hkqX2?Q zX8GRmLrw$O_}rwy--1X7g3!4X!c$`s{FH!sCrd{GcI283C}A?N_t-~A41*G}gCgj@ z$B|SJR_ensM+Lk!3Fha0Syh5Lwd4vv6%&3ZPX_>(MD(+<%##FRoi&k4L?Hmy(wPSj zYSZIDZMNr+rz_w=`uLF|3Ct;lJm^$>966bU2LbZG@@iJH>j^>UUG$K;k3xVQ`0hbj z`g0J(^CW*40zVkeC{k}@KWY!C&8dV0atg^C81!b{*iU~CxZZ#8_ajUJx2ACYbMKVw zJ_B9Bkx~rQVNmV^SFv!OMiu&i*N^X*aYPrtemzZ`oKbLfR(qanqm z-dxi8;)~}H6CK0bOSn}_oPCU|ofk*N>@M+a>NA~UxO1=nxs#oHyxib48aifZz2!k7 z?{C4qA^1y1FhuagG*N?+J2#@Gl-)b; z*Pj1=rUu#h%F&X$zMcK`fe@#!Fzd56=xj#o$IClheh{I*Q(E`^qb7}Nm$D$x3?~AU zkdM}xC%?{ zWHl-zxo$!e_n2Ff!2Kp2PtKwmvi%RhKJJsocgx>p3K;cL$`-{Jap4YRQMa_MiD6lR zdRXr{^lDKa23W4^J2Ac@f&7ZNz`aEAnN;G-JfFX4u zt97FEbIL>8Tzg3JyO@rb$KY)6M3tg?h{Iq~MWUa8gF0C;RWWY@SM@e7`F`llAnA>9 z@YVI>P44YPE2q1(>GYRrrj*=kXND_esXtsepLXyvC8|OBW@$72!s-mtNz|4lKCMyr z>yziOFDi(&+9aC~8bs_%_n2SGm~Kt#-VtUMV~@)FeH*`^d{pqS^&mBrQ`?Y5xZ6Mk z-wXN1#h%*QFy$SNij>Yd&jOeFd<;nddI3e`WL(>~IPjzEGI{6Mcn-HCPQ{9U_YDfo zi7^nqeNF4rk>?OzFM@L-5n#K&ZvN2ZDMfWK8RtdZc2lVwW}?l7<1?*rolsD`DztAj zK(-|loeuT_aS`K{68J+9gqHlf3-BT94M~iAn%oih99cLh&JPbEBSKWq(lY{da_X&? z*`CS4u(Q-yjoESz<7XIpRJ*WFrqZ)?85IH@}6Ckm)&|sGl0rXblv_@ml;onY2NwDM5A4|3TaGQ+->XqS^{ai-BLD5= z|6fZsge+SL_Z}(ej?7&p^A(W>Qo4ux+uO;%Oc{j-g0bv7V=n}lQ5uECVR65MwfACK zb;3CUM&D){bF(utAOESA?&6EGWz4UXF9$iEu&bv|>c+}?SiI~uR`g5UbD66#jPn_?v0c=sd zm5k+#4VjS1{Z~L2A8vR(bv`*me{ZYxiT%M(-`W&02im&pwBH;IBR4TkR9-She(1%! zqswale0t2#y73TdG`+5d$|#cz3Gxa|vCZ|<-q!7<(juUjtCYSpaV;?8dlWejnHpKkr0 zbGr2a`WQ3g!tc{3-m{s{I#gj8GrUC+#;HOQR246z?0K|||_u2XHr^wOM z_9wZUjOoh|^`p5cE#K_&P^EB0MWOd;Qr5$QOJkh$gsxMNS?n)wLt$iPS#@zhu5*(b zJ@PM5j}!LFxyK3xr3qDYO=aOh0J05*DZc#i*NPGK6R(y}BWD0@FEK2YWdROJ4~vQk zl>mCWz>7cnQDy)jiSHZ#vzIObmV3N!pP RenderResult { &MultilineText::of(rc, "Cultural Influence"), ) { - return base_or_custom_action(rc, &influence, "Influence culture", |d| { + return base_or_modified_action(rc, &influence, "Influence culture", |d| { new_cultural_influence_dialog(rc.game, rc.shown_player.index, d) }); } @@ -74,7 +74,7 @@ pub(crate) fn action_buttons(rc: &RenderContext) -> RenderResult { if let Some(action) = generic_custom_action(rc, &c, None) { if bottom_left_texture( rc, - &assets.custom_actions[&c.action], + &assets.custom_actions[&c.custom_action_type()], icon_pos(i as i8, -1), &event_help_tooltip(rc, &c.event_origin), ) { @@ -103,7 +103,7 @@ pub(crate) fn custom_action_buttons<'a>( .filter_map(|c| { generic_custom_action(rc, &c, city).map(|action| { IconAction::new( - &rc.assets().custom_actions[&c.action], + &rc.assets().custom_actions[&c.custom_action_type()], false, event_help_tooltip(rc, &c.event_origin), Box::new(move || action.clone()), @@ -128,10 +128,10 @@ fn global_move(rc: &RenderContext) -> RenderResult { fn generic_custom_action( rc: &RenderContext, - c: &CustomActionInfo, + c: &SpecialActionInfo, city: Option<&City>, ) -> Option { - let custom_action_type = c.action; + let custom_action_type = c.custom_action_type(); if let Some(city) = city { c.is_city_available(rc.game, city) @@ -147,7 +147,7 @@ fn generic_custom_action( } } -pub(crate) fn base_or_custom_action( +pub(crate) fn base_or_modified_action( rc: &RenderContext, action_types: &[PlayingActionType], title: &str, @@ -158,8 +158,8 @@ pub(crate) fn base_or_custom_action( action_types .iter() .map(|action_type| match action_type { - PlayingActionType::Custom(c) => { - let origin = &rc.shown_player.custom_action_info(*c).event_origin; + PlayingActionType::Special(s) => { + let origin = &rc.shown_player.special_action_info(s).event_origin; ( Some(origin.clone()), execute(BaseOrCustomDialog { diff --git a/client/src/assets.rs b/client/src/assets.rs index 7cf80ea4..842d0aed 100644 --- a/client/src/assets.rs +++ b/client/src/assets.rs @@ -60,6 +60,9 @@ pub(crate) struct Assets { pub custom_actions: HashMap, pub civ: HashMap, pub default_civ: CivAssets, + + // Log + pub hex: Texture2D, } impl Assets { @@ -116,6 +119,9 @@ impl Assets { export: load_png(include_bytes!("../assets/export-2-svgrepo-com.png")), play: load_png(include_bytes!("../assets/play-1003-svgrepo-com.png")), pause: load_png(include_bytes!("../assets/pause-1006-svgrepo-com.png")), + + // Log + hex: load_png(include_bytes!("../assets/hex-svgrepo-com.png")), } } diff --git a/client/src/city_ui.rs b/client/src/city_ui.rs index a5842095..796ca0ec 100644 --- a/client/src/city_ui.rs +++ b/client/src/city_ui.rs @@ -1,4 +1,4 @@ -use crate::action_buttons::{base_or_custom_action, custom_action_buttons}; +use crate::action_buttons::{base_or_modified_action, custom_action_buttons}; use crate::client_state::{ActiveDialog, NO_UPDATE, RenderResult, StateUpdate}; use crate::collect_ui::CollectResources; use crate::construct_ui::{ConstructionPayment, ConstructionProject}; @@ -241,7 +241,7 @@ fn collect_resources_button<'a>(rc: &'a RenderContext, city: &'a City) -> Option false, MultilineText::of(rc, "Collect Resources"), Box::new(move || { - base_or_custom_action(rc, &actions, "Collect resources", |custom| { + base_or_modified_action(rc, &actions, "Collect resources", |custom| { let i = possible_resource_collections( rc.game, city.position, @@ -345,27 +345,27 @@ pub(crate) fn draw_city(rc: &RenderContext, city: &City) -> RenderResult { { draw_selected_state(rc, c, 15., h)?; } else { - draw_mood_state(rc, city, c); + let mood = match &rc.state.active_dialog { + ActiveDialog::IncreaseHappiness(increase) => { + let steps = increase + .steps + .iter() + .find(|(p, _)| p == &city.position) + .map_or(&0, |(_, s)| s); + &city.mood_state.clone().add(*steps) + } + _ => &city.mood_state, + }; + + draw_mood_state(rc, c, mood); } let i = draw_wonders(rc, city, c, owner, highlighted)?; draw_buildings(rc, city, c, highlighted, i) } -fn draw_mood_state(rc: &RenderContext, city: &City, c: Vec2) { - let state = &rc.state; - let mood = match &state.active_dialog { - ActiveDialog::IncreaseHappiness(increase) => { - let steps = increase - .steps - .iter() - .find(|(p, _)| p == &city.position) - .map_or(&0, |(_, s)| s); - &city.mood_state.clone().add(*steps) - } - _ => &city.mood_state, - }; - let t = match mood { +pub(crate) fn draw_mood_state(rc: &RenderContext, c: Vec2, mood_state: &MoodState) { + let t = match mood_state { MoodState::Happy => Some(&rc.assets().resources[&ResourceType::MoodTokens]), MoodState::Neutral => None, MoodState::Angry => Some(&rc.assets().angry), @@ -375,7 +375,7 @@ fn draw_mood_state(rc: &RenderContext, city: &City, c: Vec2) { draw_scaled_icon( rc, t, - &format!("Happiness: {}", city.mood_state), + &format!("Happiness: {mood_state}"), c + vec2(-size / 2., -size / 2.), size, ); diff --git a/client/src/client_state.rs b/client/src/client_state.rs index 804c65d8..0f65470c 100644 --- a/client/src/client_state.rs +++ b/client/src/client_state.rs @@ -111,11 +111,11 @@ impl ActiveDialog { ActiveDialog::StructuresRequest(d, r) => { if let Some(b) = d { let v = vec!["Click on a building to influence its culture".to_string()]; - if let PlayingActionType::Custom(c) = &b.action_type { + if let PlayingActionType::Special(c) = &b.action_type { let mut r = v.clone(); r.extend(event_help( rc, - &rc.shown_player.custom_action_info(*c).event_origin, + &rc.shown_player.special_action_info(c).event_origin, )); } v @@ -586,17 +586,17 @@ impl State { } pub(crate) fn draw_text(&self, text: &str, x: f32, y: f32) { - self.draw_text_with_color(text, x, y, BLACK); + self.draw_text_ex(text, x, y, BLACK, FONT_SIZE); } - pub(crate) fn draw_text_with_color(&self, text: &str, x: f32, y: f32, color: Color) { + pub(crate) fn draw_text_ex(&self, text: &str, x: f32, y: f32, color: Color, font_size: u16) { draw_text_ex( text, x, y, TextParams { font: Some(&self.assets.font), - font_size: FONT_SIZE, + font_size, color, ..Default::default() }, diff --git a/client/src/happiness_ui.rs b/client/src/happiness_ui.rs index 6d0179d2..5f2d307e 100644 --- a/client/src/happiness_ui.rs +++ b/client/src/happiness_ui.rs @@ -1,4 +1,4 @@ -use crate::action_buttons::base_or_custom_action; +use crate::action_buttons::base_or_modified_action; use crate::client_state::{ActiveDialog, NO_UPDATE, RenderResult, StateUpdate}; use crate::dialog_ui::BaseOrCustomDialog; use crate::payment_ui::{Payment, payment_dialog}; @@ -66,7 +66,7 @@ pub(crate) fn open_increase_happiness_dialog( actions: &[PlayingActionType], init: impl Fn(IncreaseHappinessConfig) -> IncreaseHappinessConfig, ) -> RenderResult { - base_or_custom_action(rc, actions, "Increase happiness", |custom| { + base_or_modified_action(rc, actions, "Increase happiness", |custom| { ActiveDialog::IncreaseHappiness(init(IncreaseHappinessConfig::new(rc, custom))) }) } diff --git a/client/src/hex_ui.rs b/client/src/hex_ui.rs index 629cd4db..e281af47 100644 --- a/client/src/hex_ui.rs +++ b/client/src/hex_ui.rs @@ -1,6 +1,6 @@ use std::f32::consts::PI; -use crate::layout_ui::draw_scaled_icon; +use crate::layout_ui::{FONT_SIZE, draw_scaled_icon}; use crate::render_context::RenderContext; use hex2d::{Coordinate, Spacing}; use macroquad::color::Color; @@ -58,12 +58,13 @@ pub(crate) fn draw_hex( } draw_hexagon(c.x, c.y, SIZE, 2.0, false, DARKGRAY, overlay); let text_y = c.y - 35.0; - rc.draw_text_with_color(&p.to_string(), c.x - 30.0, text_y, text_color); - rc.draw_text_with_color( + rc.draw_text_ex(&p.to_string(), c.x - 30.0, text_y, text_color, FONT_SIZE); + rc.draw_text_ex( &block_for_position(rc.game, p).0.to_string(), c.x + 10.0, text_y, text_color, + FONT_SIZE, ); } diff --git a/client/src/lib.rs b/client/src/lib.rs index 27935ccb..6ff07621 100644 --- a/client/src/lib.rs +++ b/client/src/lib.rs @@ -26,6 +26,7 @@ mod hex_ui; mod influence_ui; mod info_ui; mod layout_ui; +mod log_collector; mod log_ui; mod map_ui; mod move_ui; diff --git a/client/src/log_collector.rs b/client/src/log_collector.rs new file mode 100644 index 00000000..10114a66 --- /dev/null +++ b/client/src/log_collector.rs @@ -0,0 +1,118 @@ +use crate::log_ui::{LogBody, LogEntry, multiline_label}; +use crate::render_context::RenderContext; +use server::action::Action; +use server::events::EventOrigin; +use server::game_setup::setup_event_origin; +use server::log::{ActionLogAge, TurnType}; +use server::status_phase::StatusPhaseStateType; + +struct LogCollector { + log_entries: Vec, + active_origin: Option, +} + +impl LogCollector { + fn new() -> Self { + Self { + log_entries: Vec::new(), + active_origin: None, + } + } + + fn add_log_entry(&mut self, body: LogBody, indent: usize) { + self.log_entries + .push(LogEntry::new(body, self.active_origin.clone(), indent)); + } + + fn add_message(&mut self, message: &str, indent: usize) { + self.add_log_entry(LogBody::Message(message.to_string()), indent); + } +} + +pub(crate) fn collect_log_entries(rc: &RenderContext) -> Vec { + let mut c = LogCollector::new(); + + for age in &rc.game.log { + if age.age == 0 { + c.add_message("Game Start", 0); + } + for round in &age.rounds { + if round.round > 0 { + c.add_message(&format!("Age {}, Round {}", age.age, round.round), 0); + } + for turn in &round.turns { + c.active_origin = None; + let indent = match turn.turn_type { + TurnType::Player(p) => { + c.add_log_entry( + LogBody::PlayerTurn { + age: age.age, + round: round.round, + player: p, + }, + 1, + ); + 2 + } + TurnType::Setup(p) => { + c.active_origin = Some(setup_event_origin()); + c.add_log_entry( + LogBody::PlayerSetup { + player: p, + civilization: rc.game.player(p).civilization.name.clone(), + }, + 1, + ); + 2 + } + TurnType::StatusPhase(t) => status_phase_title(age, t, &mut c), + }; + + for action in &turn.actions { + let origin = &action.origin; + if origin.is_some() { + c.active_origin.clone_from(origin); + } + let indent = if matches!(action.action, Action::StartTurn) { + indent + } else { + c.add_log_entry(LogBody::Action(action.clone()), indent); + indent + 1 + }; + for item in &action.items { + c.add_log_entry(LogBody::Item(item.clone()), indent); + } + for message in &action.log { + // Simulate multiline labels to get accurate line count + multiline_label(rc.state, message, max_width(rc), |label: &str| { + c.add_message(label, indent); + }); + } + } + } + } + } + c.log_entries +} + +fn status_phase_title(age: &ActionLogAge, t: StatusPhaseStateType, c: &mut LogCollector) -> usize { + if matches!(t, StatusPhaseStateType::CompleteObjectives) { + c.add_message(&format!("Status Phase (Age {})", age.age), 2); + } + c.add_message( + match t { + StatusPhaseStateType::CompleteObjectives => "Complete Objectives", + StatusPhaseStateType::FreeAdvance => "Free Advance", + StatusPhaseStateType::DrawCards => "Draw Cards", + StatusPhaseStateType::RazeSize1City => "Raze Size 1 City", + StatusPhaseStateType::ChangeGovernmentType => "Change Government Type", + StatusPhaseStateType::DetermineFirstPlayer => "Determine First Player", + }, + 3, + ); + 4 +} + +fn max_width(rc: &RenderContext) -> f32 { + rc.state.screen_size.x - 300. +} diff --git a/client/src/log_ui.rs b/client/src/log_ui.rs index 83641823..0ff5bb5e 100644 --- a/client/src/log_ui.rs +++ b/client/src/log_ui.rs @@ -1,24 +1,47 @@ +use crate::city_ui::draw_mood_state; use crate::client_state::{ActiveDialog, NO_UPDATE, RenderResult, State, StateUpdate}; -use crate::layout_ui::bottom_center_texture; +use crate::layout_ui::{FONT_SIZE, bottom_center_texture, draw_scaled_icon}; +use crate::log_collector::collect_log_entries; use crate::render_context::RenderContext; -use macroquad::math::vec2; -use server::log::TurnType; +use macroquad::math::{Vec2, vec2}; +use macroquad::prelude::{BLACK, Color, Texture2D}; +use server::action::Action; +use server::card::hand_card_message; +use server::content::persistent_events::EventResponse; +use server::events::EventOrigin; +use server::log::{ + ActionLogAction, ActionLogBalance, ActionLogEntry, ActionLogEntryMove, ActionLogEntryStructure, + ActionLogIncidentToken, ActionLogItem, +}; +use server::movement::MovementAction; +use server::playing_actions::PlayingAction; +use server::position::Position; +use server::resource_pile::ResourcePile; +use server::structure::Structure; +use server::unit::Units; + +#[derive(Clone, Debug)] +pub(crate) enum LogBody { + Message(String), + Item(ActionLogItem), + PlayerSetup { player: usize, civilization: String }, + PlayerTurn { age: u32, round: u32, player: usize }, + Action(ActionLogAction), +} #[derive(Clone, Debug)] pub(crate) struct LogEntry { - pub age: Option, - pub round: Option, - pub name: String, - pub message: String, + body: LogBody, + active_origin: Option, + indent: usize, } impl LogEntry { - pub(crate) fn new(age: Option, round: Option, name: &str, message: String) -> Self { + pub(crate) fn new(body: LogBody, active_origin: Option, indent: usize) -> Self { LogEntry { - age: age.map(|a| a.to_string()), - round: round.map(|r| r.to_string()), - name: name.to_string(), - message, + body, + active_origin, + indent, } } } @@ -35,47 +58,7 @@ impl LogDialog { pub(crate) fn new(rc: &RenderContext) -> Self { let lines_per_page = (rc.state.screen_size.y - 150.) as usize / 25; - // Build structured log entries with age, round, player, and message - let mut log_entries = Vec::new(); - - for age in &rc.game.log { - for round in &age.rounds { - for turn in &round.turns { - for action in &turn.actions { - for message in &action.log { - // Simulate multiline labels to get accurate line count - multiline_label( - rc.state, - message, - Self::max_width(rc), - |label: &str| { - log_entries.push(match turn.turn_type { - TurnType::Player(p) => LogEntry::new( - Some(age.age), - Some(round.round), - &rc.game.player_name(p), - label.to_string(), - ), - TurnType::Setup => LogEntry::new( - None, - None, - "Game Started", - label.to_string(), - ), - TurnType::StatusPhase => LogEntry::new( - None, - Some(round.round), - "Status Phase", - label.to_string(), - ), - }); - }, - ); - } - } - } - } - } + let log_entries = collect_log_entries(rc); let total_lines = log_entries.len(); let pages = if total_lines == 0 { @@ -91,68 +74,18 @@ impl LogDialog { log_entries, } } - - fn max_width(rc: &RenderContext) -> f32 { - rc.state.screen_size.x - 300. - } } pub(crate) fn show_log(rc: &RenderContext, d: &LogDialog) -> RenderResult { - let state = &rc.state; + let state = rc.state; // Use the pre-calculated log entries let start = d.current_page * d.lines_per_page; let end = usize::min(start + d.lines_per_page, d.log_entries.len()); - let mut y = 0.; - - // Draw column headers - let age_pos = vec2(30., 20.); - let round_pos = vec2(80., 20.); - let player_pos = vec2(140., 20.); - let message_pos = vec2(280., 20.); - - rc.draw_text("Age", age_pos.x, age_pos.y); - rc.draw_text("Round", round_pos.x, round_pos.y); - rc.draw_text("Player", player_pos.x, player_pos.y); - rc.draw_text("Message", message_pos.x, message_pos.y); - - y += 1.5; // Add some space after headers - - // Track previous values to only show when they change - let mut prev_age: Option = None; - let mut prev_round: Option = None; - let mut prev_name: Option = None; + let mut y = 1.5; for entry in &d.log_entries[start..end] { - let message_text = &entry.message; - - // Calculate positions for each column - let age_pos = vec2(30., y * 25. + 20.); - let round_pos = vec2(80., y * 25. + 20.); - let player_pos = vec2(140., y * 25. + 20.); - let message_pos = vec2(280., y * 25. + 20.); - - // Draw each column - if let Some(age) = &entry.age - && entry.age != prev_age - { - rc.draw_text(age, age_pos.x, age_pos.y); - } - if let Some(round) = &entry.round - && entry.round != prev_round - { - rc.draw_text(round, round_pos.x, round_pos.y); - } - if Some(&entry.name) != prev_name.as_ref() { - rc.draw_text(&entry.name, player_pos.x, player_pos.y); - } - rc.draw_text(message_text, message_pos.x, message_pos.y); - - // Update previous values - prev_age.clone_from(&entry.age); - prev_round.clone_from(&entry.round); - prev_name = Some(entry.name.clone()); - + draw_line(rc, y, entry); y += 1.; } // Bottom center navigation @@ -199,6 +132,287 @@ pub(crate) fn show_log(rc: &RenderContext, d: &LogDialog) -> RenderResult { NO_UPDATE } +fn draw_line(rc: &RenderContext, y: f32, entry: &LogEntry) { + let message_pos = vec2(20. + entry.indent as f32 * 20.0, y * 25. + 20.); + + let mut drawer = RichTextDrawer::new(rc, message_pos); + + match &entry.body { + LogBody::Message(m) => rc.draw_text(m, message_pos.x, message_pos.y), + LogBody::Item(item) => { + drawer.player(item.player); + let balance = item.entry.balance(); + if let Some(b) = &balance { + drawer.text(match b { + ActionLogBalance::Gain => "gains", + ActionLogBalance::Loss => "loses", + ActionLogBalance::Pay => "pays", + }); + } + + draw_item(&mut drawer, item); + + if entry + .active_origin + .as_ref() + .is_none_or(|o| o != &item.origin) + { + drawer.modifier(&item.origin.name(drawer.rc.game), balance); + } + item.modifiers.iter().for_each(|m| { + drawer.modifier(&m.name(drawer.rc.game), balance); + }); + } + LogBody::PlayerSetup { + player, + civilization, + } => { + drawer.player(*player); + drawer.text(&format!("plays as {civilization}")); + } + LogBody::PlayerTurn { age, round, player } => { + drawer.player(*player); + drawer.text(&format!("starts their turn (Age {age}, Round {round})")); + } + LogBody::Action(a) => { + drawer.player(a.player); + draw_action_log_entry(&mut drawer, a); + } + } +} + +struct RichTextDrawer<'a> { + rc: &'a RenderContext<'a>, + current_pos: Vec2, + space: f32, +} + +impl RichTextDrawer<'_> { + fn new<'a>(rc: &'a RenderContext<'_>, start_pos: Vec2) -> RichTextDrawer<'a> { + RichTextDrawer { + rc, + current_pos: start_pos, + space: rc.state.measure_text(" ").width, + } + } + + fn text(&mut self, text: &str) { + self.text_ex(text, BLACK, FONT_SIZE); + } + + fn text_ex(&mut self, text: &str, color: Color, font_size: u16) { + self.rc.draw_text_ex( + text, + self.current_pos.x, + self.current_pos.y, + color, + font_size, + ); + self.current_pos.x += self.rc.state.measure_text(text).width + self.space; + } + + fn modifier(&mut self, modifier: &str, balance: Option<&ActionLogBalance>) { + let verb = match balance { + None | Some(ActionLogBalance::Gain) => "using", + Some(ActionLogBalance::Loss) => "to", + Some(ActionLogBalance::Pay) => "for", + }; + self.text(&format!("{verb} {modifier}")); + } + + fn icon(&mut self, texture: &Texture2D) { + self.icon_with_size(texture, 20.0); + } + + fn icon_with_size(&mut self, texture: &Texture2D, size: f32) { + draw_scaled_icon( + &self.rc.no_icon_background(), + texture, + "", + vec2(self.current_pos.x, self.current_pos.y - size / 2.0 - 5.0), + size, + ); + self.current_pos.x += size + self.space; + } + + fn player(&mut self, player: usize) { + self.text_ex( + &self.rc.game.player_name(player), + self.rc.player_color(player), + FONT_SIZE, + ); + self.current_pos.x += self.space; + } + + fn at_location(&mut self, position: Position) { + self.text("at"); + self.location(position); + } + + fn location(&mut self, position: Position) { + self.icon_with_size(&self.rc.assets().hex, 35.0); + self.current_pos.x -= 31.0; + self.text_ex(&format!("{position}"), BLACK, 17); + } + + fn resources(&mut self, resources: &ResourcePile) { + for (resource, amount) in resources.clone() { + if amount > 0 + && let Some(texture) = self.rc.assets().resources.get(&resource) + { + self.icon(texture); + self.text(&amount.to_string()); + } + } + } + + fn units(&mut self, units: &Units) { + for (unit, amount) in units.clone() { + if amount > 0 { + let texture = self.rc.assets().unit(unit, self.rc.shown_player); + self.icon(texture); + let mut u = Units::empty(); + for _ in 0..amount { + u += &unit; + } + self.text(&u.to_string(Some(self.rc.game))); + } + } + } +} + +fn draw_item(drawer: &mut RichTextDrawer, item: &ActionLogItem) { + match &item.entry { + ActionLogEntry::Action { balance: _, amount } => { + if let Some(a) = amount { + drawer.text(&a.to_string()); + } + drawer.icon(&drawer.rc.assets().end_turn); + } + ActionLogEntry::Resources { + resources, + balance: _, + } => { + drawer.resources(resources); + } + ActionLogEntry::Advance { + advance, + balance: _, + incident_token, + } => { + drawer.icon(&drawer.rc.assets().advances); + drawer.text(advance.name(drawer.rc.game)); + if let ActionLogIncidentToken::Take(t) = incident_token { + if *t > 0 { + drawer.text(&format!("and take an event token ({t} left)")); + } else { + drawer.text("and take an event token (triggering an incident)"); + } + } + } + ActionLogEntry::Units { + units, + balance: _, + position, + } => { + drawer.units(units); + drawer.at_location(*position); + } + ActionLogEntry::Structure(s) => { + draw_structure(drawer, item, s); + } + ActionLogEntry::HandCard { card, from, to } => { + let (_, message) = hand_card_message(drawer.rc.game, card, from, to); + drawer.text(&message); + } + ActionLogEntry::MoodChange { city, mood } => { + drawer.text("City"); + drawer.at_location(*city); + drawer.text(&format!("becomes {mood}")); + let c = center(drawer.current_pos); + drawer + .rc + .draw_circle(c, RADIUS, drawer.rc.player_color(item.player)); + draw_mood_state(drawer.rc, c, mood); + drawer.current_pos.x += 35.0; + } + ActionLogEntry::Move(m) => draw_move(drawer, m), + ActionLogEntry::Explore { tiles } => { + drawer.text("explores:"); + for (p, t) in tiles { + drawer.location(*p); + drawer.text(&format!("is {t}")); + } + } + } +} + +fn draw_move(drawer: &mut RichTextDrawer, m: &ActionLogEntryMove) { + let game = drawer.rc.game; + let t = game + .map + .get(m.destination) + .expect("the destination position should be on the map"); + let (verb, suffix) = if game.map.is_sea(m.start) { + if t.is_unexplored() || t.is_water() { + ("sailed", "") + } else { + ("disembarked", "") + } + } else if m.embark_carrier_id.is_some() { + ("embarked", "") + } else if m.start.is_neighbor(m.destination) { + ("marched", "") + } else { + ("marched", " on roads") + }; + drawer.text(verb); + drawer.units(&m.units); + drawer.text("from"); + drawer.location(m.start); + drawer.text("to"); + drawer.location(m.destination); + if !suffix.is_empty() { + drawer.text(suffix); + } +} + +fn draw_structure(drawer: &mut RichTextDrawer, item: &ActionLogItem, s: &ActionLogEntryStructure) { + // Draw structure icon or circle + let c = center(drawer.current_pos); + let r = RADIUS; + match &s.structure { + Structure::CityCenter => { + drawer + .rc + .draw_circle(c, r, drawer.rc.player_color(item.player)); + drawer.current_pos.x += 35.0; + drawer.text("City"); + } + Structure::Building(b) => { + draw_scaled_icon(drawer.rc, &drawer.rc.assets().buildings[b], "", c, r); + drawer.current_pos.x += 35.0; + drawer.text(b.name()); + } + Structure::Wonder(w) => { + draw_scaled_icon(drawer.rc, &drawer.rc.assets().wonders[w], "", c, r); + drawer.current_pos.x += 35.0; + drawer.text(&w.name()); + } + } + drawer.at_location(s.position); + if let Some(port_pos) = s.port_position { + drawer.text(" at the water tile"); + drawer.at_location(port_pos); + } +} + +const RADIUS: f32 = 15.0; + +fn center(message_pos: Vec2) -> Vec2 { + vec2(message_pos.x + 15.0, message_pos.y - RADIUS / 2.0) +} + pub(crate) fn multiline_label(state: &State, label: &str, len: f32, mut print: impl FnMut(&str)) { let mut line = String::new(); label.split(' ').for_each(|s| { @@ -251,3 +465,102 @@ impl MultilineText { }); } } + +fn draw_action_log_entry(drawer: &mut RichTextDrawer, a: &ActionLogAction) { + match &a.action { + Action::Playing(p) => draw_playing_action(drawer, p, a), + Action::Movement(m) => match m { + MovementAction::Move(_) => { + drawer.text("performs a move action"); + } + MovementAction::Stop => { + drawer.text("stops movement"); + } + }, + Action::Response(r) => draw_response_action(drawer, r), + Action::Undo => panic!("Unexpected undo in log"), + Action::Redo => panic!("Unexpected redo in log"), + Action::StartTurn => panic!("Unexpected start turn in log"), + Action::ChooseCivilization(c) => { + drawer.text(&format!("Choose Civilization: {c}")); + } + } +} + +fn draw_response_action(drawer: &mut RichTextDrawer, r: &EventResponse) { + match r { + EventResponse::SelectAdvance(_) => drawer.text("selects advance"), + EventResponse::Payment(_) => drawer.text("selects payment"), + EventResponse::ResourceReward(_) => drawer.text("receives"), + EventResponse::SelectPlayer(p) => drawer.text(&format!( + "selects player: {}", + drawer.rc.game.player_name(*p) + )), + EventResponse::SelectPositions(p) => drawer.text(&format!("selects positions: {p:?}")), + EventResponse::SelectUnitType(u) => { + drawer.text(&format!("select unit type: {}", u.name(drawer.rc.game))); + } + EventResponse::SelectUnits(_u) => drawer.text("selects units"), + EventResponse::SelectHandCards(_h) => drawer.text("selects hand cards"), + EventResponse::SelectStructures(_s) => drawer.text("select structures"), + EventResponse::Bool(b) => { + if *b { + drawer.text("accepts"); + } else { + drawer.text("declines"); + } + } + EventResponse::ChangeGovernmentType(c) => { + drawer.text(&format!("changes government to {}", c.new_government)); + } + EventResponse::ExploreResolution(_) => drawer.text("chooses rotation"), + } +} + +fn draw_playing_action(drawer: &mut RichTextDrawer, p: &PlayingAction, a: &ActionLogAction) { + match p { + PlayingAction::Advance(_) => { + drawer.text("advances"); + } + PlayingAction::FoundCity { .. } => { + drawer.text("founds a city"); + } + PlayingAction::Construct(_) => { + drawer.text("builds"); + } + PlayingAction::Collect(c) => { + drawer.text("collects"); + drawer.at_location(c.city_position); + } + PlayingAction::Recruit(_) => { + drawer.text("recruits"); + } + PlayingAction::IncreaseHappiness(_) => { + drawer.text("increases happiness"); + } + PlayingAction::InfluenceCultureAttempt(_) => { + drawer.text("attempts cultural influence"); + } + PlayingAction::Custom(c) => { + drawer.text(&format!( + "starts {}", + a.items[0].origin.name(drawer.rc.game) + )); + if let Some(pos) = c.city { + drawer.at_location(pos); + } + } + PlayingAction::ActionCard(a) => { + drawer.text(&format!( + "plays Action Card: {}", + drawer.rc.game.cache.get_action_card(*a).name() + )); + } + PlayingAction::WonderCard(w) => { + drawer.text(&format!("plays Wonder Card: {}", w.name())); + } + PlayingAction::EndTurn => { + drawer.text("ends their turn"); + } + } +} diff --git a/client/src/player_ui.rs b/client/src/player_ui.rs index 1a2fb4ab..4391fc23 100644 --- a/client/src/player_ui.rs +++ b/client/src/player_ui.rs @@ -27,7 +27,7 @@ use server::player::Player; use server::playing_actions::PlayingAction; use server::position::Position; use server::resource::ResourceType; -use server::status_phase::get_status_phase; +use server::status_phase::{get_status_phase, status_phase_type}; use server::victory_points::victory_points_parts; pub(crate) fn player_select(rc: &RenderContext) -> RenderResult { @@ -68,7 +68,7 @@ pub(crate) fn player_select(rc: &RenderContext) -> RenderResult { } let tooltip = if rc.state.control_player.is_some_and(|p| p == pl.index) { - format!("{pl} (You)") + format!("{} (You)", pl.get_name()) } else { pl.get_name() }; @@ -185,7 +185,7 @@ pub(crate) fn show_top_left(rc: &RenderContext, painter: &mut ColumnLabelPainter _ => painter.label(&format!("Age {}", game.age)), } if let Some(s) = get_status_phase(game) { - painter.label(&format!("Status Phase: {s}")); + painter.label(&format!("Status Phase: {}", status_phase_type(s))); } else { painter.label(&format!("Round {}", game.round)); } diff --git a/client/src/render_context.rs b/client/src/render_context.rs index f6fe96f6..577cac70 100644 --- a/client/src/render_context.rs +++ b/client/src/render_context.rs @@ -2,10 +2,10 @@ use crate::assets::Assets; use crate::client_state::{CameraMode, RenderResult, State}; use crate::layout_ui::{IconBackground, limit_str}; use crate::payment_ui::Payment; -use macroquad::color::{Color, PINK, YELLOW}; +use macroquad::color::{Color, PINK}; use macroquad::input::mouse_position; use macroquad::math::{Vec2, bool}; -use macroquad::prelude::{BLACK, LIME, Rect, SKYBLUE, WHITE, set_camera}; +use macroquad::prelude::{BLACK, LIME, ORANGE, Rect, SKYBLUE, WHITE, set_camera}; use server::game::Game; use server::payment::PaymentOptions; use server::player::Player; @@ -159,7 +159,7 @@ impl RenderContext<'_> { return BLACK; } match player_index { - 0 => YELLOW, + 0 => ORANGE, 1 => PINK, 2 => SKYBLUE, 3 => LIME, @@ -187,9 +187,9 @@ impl RenderContext<'_> { } } - pub(crate) fn draw_text_with_color(&self, text: &str, x: f32, y: f32, color: Color) { + pub(crate) fn draw_text_ex(&self, text: &str, x: f32, y: f32, color: Color, font_size: u16) { if self.stage.is_main() { - self.state.draw_text_with_color(text, x, y, color); + self.state.draw_text_ex(text, x, y, color, font_size); } } diff --git a/client/src/select_ui.rs b/client/src/select_ui.rs index ee276d1a..174cb8c8 100644 --- a/client/src/select_ui.rs +++ b/client/src/select_ui.rs @@ -1,6 +1,8 @@ use crate::client_state::{NO_UPDATE, RenderResult, StateUpdate}; use crate::dialog_ui::{OkTooltip, cancel_button, ok_button}; -use crate::layout_ui::{ICON_SIZE, UI_BACKGROUND, bottom_center_anchor, bottom_center_texture}; +use crate::layout_ui::{ + FONT_SIZE, ICON_SIZE, UI_BACKGROUND, bottom_center_anchor, bottom_center_texture, +}; use crate::render_context::RenderContext; use macroquad::color::{BLACK, BLUE, Color, WHITE}; use macroquad::math::{Vec2, bool, vec2}; @@ -48,11 +50,12 @@ pub(crate) fn count_dialog( rc.draw_circle(point, SELECT_RADIUS, UI_BACKGROUND); draw(&rc.no_icon_background(), o, point); let current_pos = vec2(x + 13., -40.) + anchor + offset; - rc.draw_text_with_color( + rc.draw_text_ex( &format!("{}", c.current), current_pos.x, current_pos.y, BLACK, + FONT_SIZE, ); let small = &rc.small_background(); if c.current > c.min diff --git a/mise.toml b/mise.toml index 26df7324..1bd96759 100644 --- a/mise.toml +++ b/mise.toml @@ -21,7 +21,7 @@ dir = "server" [tasks.update-tests] description = "Run server tests and update JSON files" -run = 'cargo test --jobs 5 {{arg(name="test", default="")}}' +run = 'cargo nextest run {{arg(name="test", default="")}}' env = { UPDATE_EXPECTED = "true", RUSTFLAGS = '' } dir = "server" diff --git a/server/src/ability_initializer.rs b/server/src/ability_initializer.rs index 5b99bf92..402a7b98 100644 --- a/server/src/ability_initializer.rs +++ b/server/src/ability_initializer.rs @@ -6,7 +6,8 @@ use crate::combat::{Combat, update_combat_strength}; use crate::combat_listeners::CombatStrength; use crate::content::ability::{Ability, AbilityBuilder}; use crate::content::custom_actions::{ - CustomActionActionExecution, CustomActionExecution, CustomActionInfo, + CustomActionActionExecution, PlayingActionModifier, SpecialAction, SpecialActionExecution, + SpecialActionInfo, }; use crate::content::persistent_events::{ AdvanceRequest, EventResponse, HandCardsRequest, MultiRequest, PaymentRequest, @@ -35,7 +36,6 @@ pub(crate) type AbilityInitializerWithPrioDelta = Arc { pub player_index: usize, - pub player_name: String, pub origin: EventOrigin, pub actively_selected: bool, pub choices: A, @@ -46,7 +46,6 @@ impl SelectedChoice { pub fn new(p: &EventPlayer, actively_selected: bool, choices: A, choice: C) -> Self { Self { player_index: p.index, - player_name: p.name.clone(), origin: p.origin.clone(), actively_selected, choices, @@ -55,15 +54,11 @@ impl SelectedChoice { } pub fn player(&self) -> EventPlayer { - EventPlayer::new( - self.player_index, - self.player_name.clone(), - self.origin.clone(), - ) + EventPlayer::new(self.player_index, self.origin.clone()) } - pub fn other_player(&self, player_index: usize, game: &Game) -> EventPlayer { - EventPlayer::from_player(player_index, game, self.origin.clone()) + pub fn other_player(&self, player_index: usize) -> EventPlayer { + EventPlayer::new(player_index, self.origin.clone()) } pub fn log(&self, game: &mut Game, message: &str) { @@ -181,7 +176,7 @@ pub(crate) trait AbilityInitializerSetup: Sized { .add_initializer(move |game, player_index, prio_delta| { initializer( game, - &EventPlayer::from_player(player_index, game, key.clone()), + &EventPlayer::new(player_index, key.clone()), prio_delta, ); }); @@ -194,10 +189,7 @@ pub(crate) trait AbilityInitializerSetup: Sized { { let key = self.get_key().clone(); self.builder().add_deinitializer(move |game, player_index| { - deinitializer( - game, - &EventPlayer::from_player(player_index, game, key.clone()), - ); + deinitializer(game, &EventPlayer::new(player_index, key.clone())); }); self } @@ -209,10 +201,7 @@ pub(crate) trait AbilityInitializerSetup: Sized { let key = self.get_key().clone(); self.builder() .add_once_initializer(move |game, player_index| { - initializer( - game, - &EventPlayer::from_player(player_index, game, key.clone()), - ); + initializer(game, &EventPlayer::new(player_index, key.clone())); }); self } @@ -224,10 +213,7 @@ pub(crate) trait AbilityInitializerSetup: Sized { let key = self.get_key().clone(); self.builder() .add_once_deinitializer(move |game, player_index| { - deinitializer( - game, - &EventPlayer::from_player(player_index, game, key.clone()), - ); + deinitializer(game, &EventPlayer::new(player_index, key.clone())); }); self } @@ -972,10 +958,10 @@ pub(crate) trait AbilityInitializerSetup: Sized { ) -> Self { let name = self.name(); let desc = self.description(); - self.add_custom_action_execution( - action, + self.add_special_action_execution( + SpecialAction::Custom(action), cost, - CustomActionExecution::Action(CustomActionActionExecution::new( + SpecialActionExecution::Action(CustomActionActionExecution::new( ability(Ability::builder(&name, &desc)).build(), Arc::new(can_play), None, @@ -993,10 +979,10 @@ pub(crate) trait AbilityInitializerSetup: Sized { ) -> Self { let name = self.name(); let desc = self.description(); - self.add_custom_action_execution( - action, + self.add_special_action_execution( + SpecialAction::Custom(action), cost, - CustomActionExecution::Action(CustomActionActionExecution::new( + SpecialActionExecution::Action(CustomActionActionExecution::new( ability(Ability::builder(&name, &desc)).build(), Arc::new(can_play), Some(Arc::new(city_checker)), @@ -1006,25 +992,29 @@ pub(crate) trait AbilityInitializerSetup: Sized { fn add_action_modifier( self, - action: CustomActionType, + modifier: PlayingActionModifier, info: impl Fn(ActionCostOncePerTurnBuilder) -> ActionCostOncePerTurn + Send + Sync + 'static, base_action: PlayingActionType, ) -> Self { - self.add_custom_action_execution(action, info, CustomActionExecution::Modifier(base_action)) + self.add_special_action_execution( + SpecialAction::Modifier(modifier), + info, + SpecialActionExecution::Modifier(base_action), + ) } - fn add_custom_action_execution( + fn add_special_action_execution( self, - action: CustomActionType, + action: SpecialAction, cost: impl Fn(ActionCostOncePerTurnBuilder) -> ActionCostOncePerTurn + Send + Sync + 'static, - execution: CustomActionExecution, + execution: SpecialActionExecution, ) -> Self { let deinitializer_action = action; let exec = execution.clone(); self.add_initializer(move |game, player, _prio_delta| { - player.get_mut(game).custom_actions.insert( + player.get_mut(game).special_actions.insert( action, - CustomActionInfo::new( + SpecialActionInfo::new( action, exec.clone(), player.origin.clone(), @@ -1035,7 +1025,7 @@ pub(crate) trait AbilityInitializerSetup: Sized { .add_deinitializer(move |game, player| { player .get_mut(game) - .custom_actions + .special_actions .remove(&deinitializer_action); }) } diff --git a/server/src/action.rs b/server/src/action.rs index fd7310ac..25bf5a2a 100644 --- a/server/src/action.rs +++ b/server/src/action.rs @@ -24,7 +24,7 @@ use crate::playing_actions::{PlayingAction, PlayingActionType}; use crate::position::Position; use crate::recruit::on_recruit; use crate::resource::check_for_waste; -use crate::status_phase::play_status_phase; +use crate::status_phase::status_phase_response; use crate::undo::{clean_patch, redo, to_serde_value, undo}; use crate::unit::units_killed; use crate::victory_points::add_dynamic_victory_points; @@ -38,8 +38,7 @@ pub enum Action { Response(EventResponse), Undo, Redo, - StartTurn, // created for trade routes - Setup, // Game setup + StartTurn, // created for trade routes and status phase ChooseCivilization(String), } @@ -264,7 +263,7 @@ pub(crate) fn execute_custom_phase_action( CombatEnd(s) => { on_end_combat(game, s); } - StatusPhase(s) => play_status_phase(game, s), + StatusPhase(s) => status_phase_response(game, s), TurnStart => game.on_start_turn(), PayAction(a) => { a.on_pay_action(game, player, game.current_event().origin_override.clone())?; @@ -354,24 +353,21 @@ pub(crate) fn gain_action(game: &mut Game, player: &EventPlayer) { add_action_log_item( game, player.index, - ActionLogEntry::action(ActionLogBalance::Gain), + ActionLogEntry::action(ActionLogBalance::Gain, 1), player.origin.clone(), vec![], ); - player.log(game, "Gain 1 action"); } pub(crate) fn lose_action(game: &mut Game, player: &EventPlayer) { - subtract_action(game, player); - player.log(game, "Lose 1 action"); + subtract_action(game, player, ActionLogBalance::Loss); } pub(crate) fn pay_action(game: &mut Game, player: &EventPlayer) { - subtract_action(game, player); - player.log(game, "Pay 1 action"); + subtract_action(game, player, ActionLogBalance::Pay); } -fn subtract_action(game: &mut Game, player: &EventPlayer) { +fn subtract_action(game: &mut Game, player: &EventPlayer, balance: ActionLogBalance) { if game.actions_left == 0 && game.context == GameContext::Replay { return; } @@ -380,7 +376,7 @@ fn subtract_action(game: &mut Game, player: &EventPlayer) { add_action_log_item( game, player.index, - ActionLogEntry::action(ActionLogBalance::Loss), + ActionLogEntry::action(balance, 1), player.origin.clone(), vec![], ); diff --git a/server/src/action_cost.rs b/server/src/action_cost.rs index 984a0429..bc83957f 100644 --- a/server/src/action_cost.rs +++ b/server/src/action_cost.rs @@ -1,5 +1,5 @@ use crate::advance::base_advance_cost; -use crate::content::custom_actions::CustomActionType; +use crate::content::custom_actions::SpecialAction; use crate::events::{EventOrigin, check_event_origin}; use crate::game::{Game, GameContext}; use crate::payment::PaymentOptions; @@ -81,12 +81,12 @@ impl ActionCost { } pub(crate) struct ActionCostOncePerTurnBuilder { - action: CustomActionType, + action: SpecialAction, } impl ActionCostOncePerTurnBuilder { #[must_use] - pub fn new(action: CustomActionType) -> Self { + pub fn new(action: SpecialAction) -> Self { Self { action } } @@ -105,19 +105,19 @@ impl ActionCostOncePerTurnBuilder { #[must_use] pub fn once_per_turn_mutually_exclusive( self, - mutually_exclusive: CustomActionType, + mutually_exclusive: SpecialAction, ) -> ActionCostBuilder { ActionCostBuilder::new(Some(mutually_exclusive)) } } pub(crate) struct ActionCostBuilder { - once_per_turn: Option, + once_per_turn: Option, } impl ActionCostBuilder { #[must_use] - pub(crate) fn new(once_per_turn: Option) -> Self { + pub(crate) fn new(once_per_turn: Option) -> Self { Self { once_per_turn } } @@ -133,13 +133,13 @@ impl ActionCostBuilder { } pub(crate) struct ActionResourceCostBuilder { - once_per_turn: Option, + once_per_turn: Option, free: bool, } impl ActionResourceCostBuilder { #[must_use] - fn new(once_per_turn: Option, free: bool) -> ActionResourceCostBuilder { + fn new(once_per_turn: Option, free: bool) -> ActionResourceCostBuilder { ActionResourceCostBuilder { once_per_turn, free, @@ -187,14 +187,14 @@ impl ActionResourceCostBuilder { #[derive(Clone, Debug, PartialEq)] pub struct ActionCostOncePerTurn { pub cost: ActionCost, - pub once_per_turn: Option, + pub once_per_turn: Option, } impl ActionCostOncePerTurn { #[must_use] pub(crate) fn new( free: bool, - once_per_turn: Option, + once_per_turn: Option, cost: ActionResourceCost, ) -> ActionCostOncePerTurn { ActionCostOncePerTurn { diff --git a/server/src/advance.rs b/server/src/advance.rs index ec2c97fc..0eca3bf9 100644 --- a/server/src/advance.rs +++ b/server/src/advance.rs @@ -6,7 +6,7 @@ use crate::content::persistent_events::PersistentEventType; use crate::events::{EventOrigin, EventPlayer}; use crate::game::Game; use crate::incident::trigger_incident; -use crate::log::{ActionLogBalance, ActionLogEntry, add_action_log_item}; +use crate::log::{ActionLogBalance, ActionLogEntry, ActionLogIncidentToken, add_action_log_item}; use crate::payment::PaymentOptions; use crate::player::Player; use crate::player_events::OnAdvanceInfo; @@ -285,27 +285,18 @@ pub(crate) fn do_advance( p.advances.insert(advance); let t = p.incident_tokens; - player.log( - game, - &format!( - "Gain {} {}", - advance.name(game), - if take_incident_token { - (if t > 1 { - format!("and take an event token ({} left)", t - 1) - } else { - "and take an event token (triggering an incident)".to_string() - }) - .to_string() - } else { - "without taking an event token".to_string() - } - ), - ); add_action_log_item( game, player_index, - ActionLogEntry::advance(advance, ActionLogBalance::Gain, take_incident_token), + ActionLogEntry::advance( + advance, + ActionLogBalance::Gain, + if take_incident_token { + ActionLogIncidentToken::Take(t - 1) + } else { + ActionLogIncidentToken::NoChange + }, + ), player.origin.clone(), vec![], ); @@ -391,7 +382,7 @@ pub(crate) fn execute_advance_action( gain_advance_without_payment( game, advance, - &EventPlayer::from_player(player_index, game, advance_event_origin()), + &EventPlayer::new(player_index, advance_event_origin()), a.payment.clone(), true, ); @@ -456,13 +447,18 @@ pub(crate) fn remove_advance(game: &mut Game, advance: Advance, player: &EventPl advance_bonus.resources(), EventOrigin::Advance(advance), vec![], + ActionLogBalance::Loss, ); } game.player_mut(player_index).advances.remove(advance); add_action_log_item( game, player_index, - ActionLogEntry::advance(advance, ActionLogBalance::Loss, false), + ActionLogEntry::advance( + advance, + ActionLogBalance::Loss, + ActionLogIncidentToken::NoChange, + ), player.origin.clone(), vec![], ); diff --git a/server/src/ai_actions.rs b/server/src/ai_actions.rs index ddf76343..f024587f 100644 --- a/server/src/ai_actions.rs +++ b/server/src/ai_actions.rs @@ -5,7 +5,7 @@ use crate::card::validate_card_selection; use crate::city::{City, MoodState}; use crate::collect::{Collect, available_collect_actions, possible_resource_collections}; use crate::construct::{Construct, available_buildings, new_building_positions}; -use crate::content::custom_actions::{CustomAction, CustomActionType}; +use crate::content::custom_actions::{CustomAction, CustomActionType, SpecialAction}; use crate::content::persistent_events::{ EventResponse, HandCardsRequest, MultiRequest, PersistentEventRequest, PersistentEventState, PositionRequest, SelectedStructure, is_selected_structures_valid, @@ -195,7 +195,8 @@ fn base_actions(ai: &mut AiActions, game: &Game) -> Vec<(ActionType, Vec } for info in game.available_custom_actions(p.index) { - if info.action == CustomActionType::ImperialArmy { + let t = info.custom_action_type(); + if t == CustomActionType::ImperialArmy { // buggy continue; } @@ -212,12 +213,11 @@ fn base_actions(ai: &mut AiActions, game: &Game) -> Vec<(ActionType, Vec vec![None] }; - let a = info.action; for c in cities { actions.push(( - ActionType::Playing(PlayingActionType::Custom(a)), + ActionType::Playing(PlayingActionType::Special(info.action)), vec![Action::Playing(PlayingAction::Custom(CustomAction::new( - a, c, + t, c, )))], )); } @@ -497,11 +497,11 @@ fn calculate_increase_happiness( fn prefer_custom_action(actions: &[PlayingActionType]) -> PlayingActionType { actions .iter() - .find(|a| matches!(a, PlayingActionType::Custom(_))) + .find(|a| matches!(a, PlayingActionType::Special(SpecialAction::Modifier(_)))) .or_else(|| { actions .iter() - .find(|a| !matches!(a, PlayingActionType::Custom(_))) + .find(|a| !matches!(a, PlayingActionType::Special(SpecialAction::Modifier(_)))) }) .cloned() .expect("expected at least one action type, either custom or base") diff --git a/server/src/barbarians.rs b/server/src/barbarians.rs index 3880dffb..ee6b9611 100644 --- a/server/src/barbarians.rs +++ b/server/src/barbarians.rs @@ -584,7 +584,7 @@ fn cities_in_land_range( #[must_use] pub(crate) fn get_barbarians_event_player(game: &Game, origin: &EventOrigin) -> EventPlayer { let player = get_barbarians_player(game); - EventPlayer::new(player.index, player.get_name(), origin.clone()) + EventPlayer::new(player.index, origin.clone()) } /// diff --git a/server/src/cache.rs b/server/src/cache.rs index 87288da3..730d7cc2 100644 --- a/server/src/cache.rs +++ b/server/src/cache.rs @@ -4,7 +4,7 @@ use crate::city_pieces::Building; use crate::civilization::Civilization; use crate::content::ability::Ability; use crate::content::advances::{AdvanceGroup, AdvanceGroupInfo}; -use crate::content::custom_actions::CustomActionExecution; +use crate::content::custom_actions::SpecialActionExecution; use crate::content::{ ability, action_cards, advances, civilizations, incidents, objective_cards, objectives, wonders, }; @@ -13,10 +13,9 @@ use crate::incident::Incident; use crate::leader::{Leader, LeaderInfo}; use crate::objective_card::{Objective, ObjectiveCard}; use crate::special_advance::{SpecialAdvance, SpecialAdvanceInfo}; -use crate::status_phase::StatusPhaseState::{ChangeGovernmentType, DetermineFirstPlayer}; use crate::status_phase::{ - StatusPhaseState, complete_objectives, determine_first_player, draw_cards, free_advance, - get_status_phase, may_change_government, use_raze_city, + StatusPhaseStateType, complete_objectives, determine_first_player, draw_cards, free_advance, + get_status_phase, may_change_government, status_phase_type, use_raze_city, }; use crate::tactics_card::TacticsCard; use crate::wonder::{Wonder, WonderInfo}; @@ -27,7 +26,7 @@ use std::collections::HashMap; pub struct Cache { all_abilities: Vec, abilities_by_name: HashMap, - status_phase_handlers: HashMap, + status_phase_handlers: HashMap, all_advance_groups: Vec, advance_groups_by_name: HashMap, @@ -129,7 +128,7 @@ impl Cache { all_civilizations: civilizations::get_all_uncached() .into_iter() - .filter(super::civilization::Civilization::can_choose) + .filter(Civilization::can_choose) .sorted_by_key(|c| c.name.clone()) .collect_vec(), civilizations_by_name: civilizations::get_all_uncached() @@ -220,8 +219,8 @@ impl Cache { .get(name) .map_or_else( || { - for c in game.player(game.active_player()).custom_actions.values() { - if let CustomActionExecution::Action(e) = &c.execution + for c in game.player(game.active_player()).special_actions.values() { + if let SpecialActionExecution::Action(e) = &c.execution && e.ability.name == name { return Some(t(&e.ability)); @@ -229,7 +228,7 @@ impl Cache { } if let Some(p) = get_status_phase(game) { - return Some(t(self.status_phase_handler(p))); + return Some(t(self.status_phase_handler(&status_phase_type(p)))); } None }, @@ -244,12 +243,8 @@ impl Cache { } #[must_use] - pub fn status_phase_handler(&self, p: &StatusPhaseState) -> &Ability { - match p { - DetermineFirstPlayer(_) => &self.status_phase_handlers[&DetermineFirstPlayer(0)], - ChangeGovernmentType(_) => &self.status_phase_handlers[&ChangeGovernmentType(false)], - _ => &self.status_phase_handlers[p], - } + pub fn status_phase_handler(&self, p: &StatusPhaseStateType) -> &Ability { + &self.status_phase_handlers[p] } #[must_use] @@ -371,15 +366,15 @@ impl Cache { } } -fn status_phase_handlers() -> HashMap { - use StatusPhaseState::*; +fn status_phase_handlers() -> HashMap { + use StatusPhaseStateType::*; HashMap::from([ (CompleteObjectives, complete_objectives()), (FreeAdvance, free_advance()), (DrawCards, draw_cards()), (RazeSize1City, use_raze_city()), - (ChangeGovernmentType(false), may_change_government()), - (DetermineFirstPlayer(0), determine_first_player()), + (ChangeGovernmentType, may_change_government()), + (DetermineFirstPlayer, determine_first_player()), ]) } diff --git a/server/src/card.rs b/server/src/card.rs index 10e0fa5a..6ac012b3 100644 --- a/server/src/card.rs +++ b/server/src/card.rs @@ -70,9 +70,27 @@ impl HandCard { #[must_use] pub fn name(&self, game: &Game) -> String { match self { - HandCard::ActionCard(id) => game.cache.get_action_card(*id).name(), - HandCard::ObjectiveCard(id) => game.cache.get_objective_card(*id).name(), - HandCard::Wonder(wonder) => wonder.name(), + HandCard::ActionCard(id) => { + if *id == 0 { + "an action card".to_string() + } else { + game.cache.get_action_card(*id).name() + } + } + HandCard::ObjectiveCard(id) => { + if *id == 0 { + "an objective card".to_string() + } else { + game.cache.get_objective_card(*id).name() + } + } + HandCard::Wonder(wonder) => { + if wonder == &Wonder::Hidden { + "a wonder card".to_string() + } else { + wonder.name() + } + } } } } @@ -261,58 +279,7 @@ pub(crate) fn log_card_transfer( to: HandCardLocation, origin: &EventOrigin, ) { - let (player_index, message): (usize, &str) = if let HandCardLocation::Hand(p) = to { - let name = card_name(card, &from, game); - ( - p, - match from { - HandCardLocation::DrawPile => &format!("Draw {name}"), - HandCardLocation::Hand(from) | HandCardLocation::RevealedHand(from) => { - &format!("Gain {name} from {}", game.player_name(from)) - } - HandCardLocation::DiscardPile => &format!("Gain {name} from discard pile"), - HandCardLocation::Public => &format!("Gain {name} from the public area"), - HandCardLocation::GreatSeer(_) => &format!("Gain {name} from Great Seer"), - HandCardLocation::Incident => &format!("Gain {name} from the current event"), - _ => { - panic!( - "Cannot transfer card from played to hand: {card:?} from {from:?} to {to:?}" - ) - } - }, - ) - } else if let HandCardLocation::Hand(p) = from { - let name = card_name(card, &to, game); - ( - p, - match to { - HandCardLocation::DiscardPile => &format!("Discard {name}"), - HandCardLocation::DrawPile => &format!("Shuffle {name} back into the draw pile"), - HandCardLocation::PlayToDiscard | HandCardLocation::PlayToKeep => { - &format!("Play {name}") - } - HandCardLocation::CompleteObjective(ref o) => &format!("Complete {o} using {name}"), - HandCardLocation::PlayToDiscardFaceDown => &format!("Play {name} face down"), - HandCardLocation::Public => &format!("Place {name} in public area"), - _ => panic!( - "Cannot transfer card from hand to draw pile: {card:?} from {from:?} to {to:?}" - ), - }, - ) - } else if let HandCardLocation::GreatSeer(p) = to { - assert_eq!(from, HandCardLocation::DrawPile); - (p, "Placed a card from the draw pile in the Great Seer") - } else if let HandCardLocation::DrawPilePeeked(p) = from { - assert_eq!(to, HandCardLocation::DrawPile); - ( - p, - "Reshuffled a card from the draw pile back into the draw pile", - ) - } else { - panic!("Invalid card transfer from {from:?} to {to:?}"); - }; - - game.log(player_index, origin, message); + let (player_index, _message) = hand_card_message(game, card, &from, &to); add_action_log_item( game, player_index, @@ -322,10 +289,65 @@ pub(crate) fn log_card_transfer( ); } -fn card_name(card: &HandCard, l: &HandCardLocation, game: &mut Game) -> String { - if l.is_public() { - card.name(game) +/// +/// # Panics +/// Panics if the transfer is invalid +#[must_use] +pub fn hand_card_message( + game: &Game, + card: &HandCard, + from: &HandCardLocation, + to: &HandCardLocation, +) -> (usize, String) { + let (player_index, message): (usize, &str) = if let HandCardLocation::Hand(p) = to { + let name = card.name(game); + ( + *p, + match from { + HandCardLocation::DrawPile => &format!("draws {name}"), + HandCardLocation::Hand(from) | HandCardLocation::RevealedHand(from) => { + &format!("gains {name} from {}", game.player_name(*from)) + } + HandCardLocation::DiscardPile => &format!("gains {name} from discard pile"), + HandCardLocation::Public => &format!("gains {name} from the public area"), + HandCardLocation::GreatSeer(_) => &format!("gains {name} from Great Seer"), + HandCardLocation::Incident => &format!("gains {name} from the current event"), + _ => { + panic!( + "Cannot transfer card from played to hand: {card:?} from {from:?} to {to:?}" + ) + } + }, + ) + } else if let HandCardLocation::Hand(p) = from { + let name = card.name(game); + ( + *p, + match to { + HandCardLocation::DiscardPile => &format!("Discard {name}"), + HandCardLocation::DrawPile => &format!("Shuffle {name} back into the draw pile"), + HandCardLocation::PlayToDiscard | HandCardLocation::PlayToKeep => { + &format!("Play {name}") + } + HandCardLocation::CompleteObjective(o) => &format!("Complete {o} using {name}"), + HandCardLocation::PlayToDiscardFaceDown => &format!("Play {name} face down"), + HandCardLocation::Public => &format!("Place {name} in public area"), + _ => panic!( + "Cannot transfer card from hand to draw pile: {card:?} from {from:?} to {to:?}" + ), + }, + ) + } else if let HandCardLocation::GreatSeer(p) = to { + assert_eq!(*from, HandCardLocation::DrawPile); + (*p, "Placed a card from the draw pile in the Great Seer") + } else if let HandCardLocation::DrawPilePeeked(p) = from { + assert_eq!(*to, HandCardLocation::DrawPile); + ( + *p, + "Reshuffled a card from the draw pile back into the draw pile", + ) } else { - card.card_type().to_string() - } + panic!("Invalid card transfer from {from:?} to {to:?}"); + }; + (player_index, message.to_string()) } diff --git a/server/src/city.rs b/server/src/city.rs index 747666b0..748b914c 100644 --- a/server/src/city.rs +++ b/server/src/city.rs @@ -4,6 +4,7 @@ use std::ops::{Add, Sub}; use crate::city_pieces::lose_building; use crate::content::custom_actions::CustomActionType::ForcedLabor; +use crate::content::custom_actions::SpecialAction; use crate::content::persistent_events::PersistentEventType; use crate::events::{EventOrigin, EventPlayer}; use crate::log::{ActionLogBalance, ActionLogEntry, add_action_log_item}; @@ -112,7 +113,10 @@ impl City { Happy => self.size() + 1, Neutral => self.size(), Angry => { - if player.played_once_per_turn_actions.contains(&ForcedLabor) { + if player + .played_once_per_turn_actions + .contains(&SpecialAction::Custom(ForcedLabor)) + { self.size() } else { 1 @@ -234,7 +238,7 @@ pub(crate) fn execute_found_city_action( add_action_log_item( game, player_index, - ActionLogEntry::units(u, ActionLogBalance::Loss), + ActionLogEntry::units(u, ActionLogBalance::Pay, settler.position), origin.clone(), vec![], ); @@ -243,7 +247,7 @@ pub(crate) fn execute_found_city_action( } found_city( game, - &EventPlayer::from_player(player_index, game, origin), + &EventPlayer::new(player_index, origin), settler.position, ); Ok(()) @@ -331,12 +335,6 @@ pub(crate) fn set_city_mood( return; } city.mood_state = new_state.clone(); - - game.log( - player, - origin, - &format!("City {position} became {new_state}"), - ); add_action_log_item( game, player, diff --git a/server/src/city_pieces.rs b/server/src/city_pieces.rs index 686048b0..28bc3e60 100644 --- a/server/src/city_pieces.rs +++ b/server/src/city_pieces.rs @@ -345,7 +345,7 @@ pub(crate) fn gain_building( position: Position, ) { if let Some(old) = game.get_any_city(position).pieces.building_owner(building) { - let old = EventPlayer::from_player(old, game, player.origin.clone()); + let old = EventPlayer::new(old, player.origin.clone()); lose_building(game, &old, building, position); } game.get_any_city_mut(position) @@ -360,27 +360,13 @@ pub(crate) fn log_gain_building( building: Building, position: Position, ) { - let port_pos = if building == Port { - format!( - " at the water tile {}", - game.get_any_city(position) - .port_position - .expect("Port must have a port position",) - ) - } else { - String::new() - }; - - player.log( - game, - &format!("Gain {} at {position}{port_pos}", building.name()), - ); log_structure( game, player, Structure::Building(building), ActionLogBalance::Gain, position, + log_port_position(game, building, position), ); } @@ -390,12 +376,18 @@ pub(crate) fn log_lose_building( building: Building, position: Position, ) { - player.log(game, &format!("Lose {} at {}", building.name(), position)); log_structure( game, player, Structure::Building(building), ActionLogBalance::Loss, position, + log_port_position(game, building, position), ); } + +fn log_port_position(game: &Game, building: Building, position: Position) -> Option { + (building == Port) + .then_some(game.get_any_city(position).port_position) + .flatten() +} diff --git a/server/src/collect.rs b/server/src/collect.rs index cc8fc311..84342524 100644 --- a/server/src/collect.rs +++ b/server/src/collect.rs @@ -8,7 +8,7 @@ use crate::map::Terrain; use crate::map::Terrain::{Fertile, Forest, Mountain}; use crate::player::{CostTrigger, Player}; use crate::player_events::ActionInfo; -use crate::playing_actions::{PlayingActionType, base_or_custom_available}; +use crate::playing_actions::{PlayingActionType, base_or_modified_available}; use crate::position::Position; use crate::resource::gain_resources_with_modifiers; use crate::resource_pile::ResourcePile; @@ -164,11 +164,6 @@ pub(crate) fn execute_collect( c: &Collect, ) -> Result<(), String> { let origin = collect_event_origin(&c.action_type, game.player(player_index)); - game.log( - player_index, - &origin, - &format!("Use city {}", c.city_position), - ); let mut i = get_total_collection( game, @@ -368,7 +363,7 @@ pub fn available_collect_actions_for_city( #[must_use] pub fn available_collect_actions(game: &Game, player: usize) -> Vec { - base_or_custom_available(game, player, &PlayingActionType::Collect) + base_or_modified_available(game, player, &PlayingActionType::Collect) } pub(crate) fn collect_event_origin( diff --git a/server/src/combat.rs b/server/src/combat.rs index e5058802..9756f852 100644 --- a/server/src/combat.rs +++ b/server/src/combat.rs @@ -431,7 +431,7 @@ fn take_over_city( } pub(crate) fn capture_position(game: &mut Game, stats: &mut CombatStats) { - let p = &EventPlayer::from_player(stats.attacker.player, game, combat_event_origin()); + let p = &EventPlayer::new(stats.attacker.player, combat_event_origin()); let old_player = stats.defender.player; let position = stats.defender.position; let captured_settlers = game.players[old_player] @@ -451,7 +451,7 @@ pub(crate) fn capture_position(game: &mut Game, stats: &mut CombatStats) { } kill_units_with_stats(stats, game, old_player, &captured_settlers); if game.player(old_player).try_get_city(position).is_some() { - let d = &EventPlayer::from_player(old_player, game, combat_event_origin()); + let d = &EventPlayer::new(old_player, combat_event_origin()); conquer_city(game, position, p, d); } } @@ -545,9 +545,8 @@ fn apply_battle_movement_restriction(game: &mut Game, player_index: usize, unit_ } if used_longships { - EventPlayer::from_player( + EventPlayer::new( player_index, - game, EventOrigin::SpecialAdvance(SpecialAdvance::Longships), ) .log(game, "Ignore battle movement restrictions"); diff --git a/server/src/combat_roll.rs b/server/src/combat_roll.rs index 52dc5b3e..fef0a303 100644 --- a/server/src/combat_roll.rs +++ b/server/src/combat_roll.rs @@ -120,7 +120,7 @@ impl CombatRoundStats { ); let hits = combat_hits.hits(); - let p = EventPlayer::from_player(self.player, game, combat_event_origin()); + let p = EventPlayer::new(self.player, combat_event_origin()); p.log( game, &format!( diff --git a/server/src/construct.rs b/server/src/construct.rs index e493f283..71777b27 100644 --- a/server/src/construct.rs +++ b/server/src/construct.rs @@ -179,7 +179,7 @@ pub(crate) fn construct( } gain_building( game, - &EventPlayer::from_player(player, game, origin.clone()), + &EventPlayer::new(player, origin.clone()), building, city_position, ); @@ -227,7 +227,7 @@ pub(crate) fn on_construct(game: &mut Game, player_index: usize, info: Construct gain_advance_without_payment( game, b.advance, - &EventPlayer::from_player(player_index, game, b.origin), + &EventPlayer::new(player_index, b.origin), ResourcePile::empty(), true, ); diff --git a/server/src/content/action_cards/mercenaries.rs b/server/src/content/action_cards/mercenaries.rs index 130c768c..9fecd667 100644 --- a/server/src/content/action_cards/mercenaries.rs +++ b/server/src/content/action_cards/mercenaries.rs @@ -8,7 +8,8 @@ use crate::content::civilizations::rome::owner_of_sulla_in_range; use crate::content::persistent_events::{PaymentRequest, PositionRequest}; use crate::content::tactics_cards::TacticsCardFactory; use crate::game::Game; -use crate::movement::{MoveUnits, move_action_log}; +use crate::log::ActionLogEntry; +use crate::movement::MoveUnits; use crate::player::Player; use crate::position::Position; use crate::resource::ResourceType; @@ -153,7 +154,8 @@ fn move_army(b: ActionCardBuilder, i: i32) -> ActionCardBuilder { let units = b.get_units(from).iter().map(|u| u.id).collect_vec(); let m = MoveUnits::new(units, to, None, ResourcePile::empty()); - s.log(game, &move_action_log(game, b, &m)); + s.player() + .add_action_log_item(game, ActionLogEntry::move_units(b, &m)); move_with_possible_combat(game, barbarian, &m); }, @@ -192,7 +194,8 @@ fn barbarian_army_positions_in_range2( .is_some_and(|sulla_owner| player.index != sulla_owner) { log.push(format!( - "{player} cannot move Barbarian army at {p} because Sulla is in range", + "{} cannot move Barbarian army at {p} because Sulla is in range", + player.get_name() )); return false; } diff --git a/server/src/content/action_cards/negotiation.rs b/server/src/content/action_cards/negotiation.rs index 852deedd..79bb4ac9 100644 --- a/server/src/content/action_cards/negotiation.rs +++ b/server/src/content/action_cards/negotiation.rs @@ -95,7 +95,7 @@ pub(crate) fn use_negotiations() -> Ability { } } } - add_start_turn_action_if_needed(game); + add_start_turn_action_if_needed(game, p.index); // must be in reverse order to not mess up the indices during deletion for i in delete.iter().rev() { p.log(game, &format!("May attack {partner_name} again.",)); @@ -195,7 +195,7 @@ pub(crate) fn use_assassination() -> Ability { if remove_element_by(&mut game.permanent_effects, |e| is_assassinated(e, p.index)) .is_some() { - add_start_turn_action_if_needed(game); + add_start_turn_action_if_needed(game, p.index); lose_action(game, p); } }, diff --git a/server/src/content/action_cards/spy.rs b/server/src/content/action_cards/spy.rs index fea31683..6d4fb7c2 100644 --- a/server/src/content/action_cards/spy.rs +++ b/server/src/content/action_cards/spy.rs @@ -237,7 +237,8 @@ fn has_any_card(p: &Player, game: &Game) -> bool { fn get_swap_secrets(other: &Player, game: &Game) -> Vec { vec![ format!( - "{other} has the following action cards: {}", + "{} has the following action cards: {}", + other.get_name(), other .action_cards .iter() @@ -245,7 +246,8 @@ fn get_swap_secrets(other: &Player, game: &Game) -> Vec { .join(", ") ), format!( - "{other} has the following objective cards: {}", + "{} has the following objective cards: {}", + other.get_name(), other .objective_cards .iter() @@ -253,7 +255,8 @@ fn get_swap_secrets(other: &Player, game: &Game) -> Vec { .join(", ") ), format!( - "{other} has the following wonder cards: {}", + "{} has the following wonder cards: {}", + other.get_name(), other.wonder_cards.iter().map(Wonder::name).join(", ") ), ] diff --git a/server/src/content/advances/construction.rs b/server/src/content/advances/construction.rs index 527de0cf..5ed88bbb 100644 --- a/server/src/content/advances/construction.rs +++ b/server/src/content/advances/construction.rs @@ -2,7 +2,7 @@ use crate::ability_initializer::AbilityInitializerSetup; use crate::advance::Bonus::{CultureToken, MoodToken}; use crate::advance::{Advance, AdvanceBuilder, AdvanceInfo}; use crate::content::advances::{AdvanceGroup, AdvanceGroupInfo, advance_group_builder}; -use crate::content::custom_actions::CustomActionType; +use crate::content::custom_actions::PlayingActionModifier; use crate::game::GameOptions; use crate::payment::PaymentConversion; use crate::playing_actions::PlayingActionType; @@ -90,5 +90,5 @@ fn city_planning() -> AdvanceBuilder { "Once per turn, as a free action, you may pay 1 idea and 1 wood to get a free Construct action.", ) .replaces(Advance::Sanitation) - .add_action_modifier(CustomActionType::CityPlanning, |cost| cost.once_per_turn().free_action().resources(ResourcePile::ideas(1) + ResourcePile::wood(1)), PlayingActionType::Construct) + .add_action_modifier(PlayingActionModifier::CityPlanning, |cost| cost.once_per_turn().free_action().resources(ResourcePile::ideas(1) + ResourcePile::wood(1)), PlayingActionType::Construct) } diff --git a/server/src/content/advances/culture.rs b/server/src/content/advances/culture.rs index 65122b27..f5ac4bff 100644 --- a/server/src/content/advances/culture.rs +++ b/server/src/content/advances/culture.rs @@ -5,7 +5,7 @@ use crate::city::{City, MoodState}; use crate::city_pieces::Building::Obelisk; use crate::content::ability::AbilityBuilder; use crate::content::advances::{AdvanceGroup, AdvanceGroupInfo, advance_group_builder}; -use crate::content::custom_actions::{CustomActionType, any_non_happy}; +use crate::content::custom_actions::{CustomActionType, PlayingActionModifier, any_non_happy}; use crate::content::persistent_events::PaymentRequest; use crate::events::{EventOrigin, check_event_origin}; use crate::game::GameOptions; @@ -37,7 +37,7 @@ fn arts() -> AdvanceBuilder { .with_advance_bonus(CultureToken) .with_unlocked_building(Obelisk) .add_action_modifier( - CustomActionType::ArtsInfluenceCultureAttempt, + PlayingActionModifier::ArtsInfluenceCultureAttempt, |c| { c.once_per_turn() .free_action() diff --git a/server/src/content/advances/democracy.rs b/server/src/content/advances/democracy.rs index fdcb8450..4b76d38e 100644 --- a/server/src/content/advances/democracy.rs +++ b/server/src/content/advances/democracy.rs @@ -3,9 +3,8 @@ use crate::action::Action; use crate::advance::{Advance, AdvanceBuilder, AdvanceInfo}; use crate::city::{self, MoodState}; use crate::content::advances::{AdvanceGroup, AdvanceGroupInfo, advance_group_builder}; -use crate::content::custom_actions::CustomActionType::{ - self, CivilLiberties, FreeEconomyCollect, VotingIncreaseHappiness, -}; +use crate::content::custom_actions::CustomActionType::{self, CivilLiberties}; +use crate::content::custom_actions::{PlayingActionModifier, SpecialAction}; use crate::content::persistent_events::PositionRequest; use crate::game::GameOptions; use crate::log::current_turn_log_without_redo; @@ -34,7 +33,7 @@ fn voting() -> AdvanceBuilder { "As a free action, you may spend 1 mood token to use 'Increase happiness'", ) .add_action_modifier( - VotingIncreaseHappiness, + PlayingActionModifier::VotingIncreaseHappiness, |c| { c.any_times() .free_action() @@ -94,7 +93,7 @@ fn free_economy() -> AdvanceBuilder { resources in one city. This must be your only collect action this turn", ) .add_action_modifier( - FreeEconomyCollect, + PlayingActionModifier::FreeEconomyCollect, |c| { c.once_per_turn() .free_action() @@ -109,12 +108,14 @@ fn free_economy() -> AdvanceBuilder { PlayingActionType::Collect if p.get(game) .played_once_per_turn_actions - .contains(&FreeEconomyCollect) => + .contains(&SpecialAction::Modifier( + PlayingActionModifier::FreeEconomyCollect, + )) => { *available = Err("Cannot collect when Free Economy Collect was used".to_string()); } - PlayingActionType::Custom(i) - if *i == FreeEconomyCollect + PlayingActionType::Special(SpecialAction::Modifier(m)) + if *m == PlayingActionModifier::FreeEconomyCollect && current_turn_log_without_redo(game) .actions .iter() diff --git a/server/src/content/advances/economy.rs b/server/src/content/advances/economy.rs index ba3b4469..a6dba6b2 100644 --- a/server/src/content/advances/economy.rs +++ b/server/src/content/advances/economy.rs @@ -159,7 +159,7 @@ where if !p.get(game).can_use_advance(Advance::TradeRoutes) { return None; } - add_start_turn_action_if_needed(game); + add_start_turn_action_if_needed(game, p.index); trade_route_reward(game, p).map(|(reward, routes)| { gain_market_bonus(game, &routes); ResourceRewardRequest::new(reward, "Collect trade routes reward".to_string()) diff --git a/server/src/content/advances/education.rs b/server/src/content/advances/education.rs index 99dc2dd9..35653cb6 100644 --- a/server/src/content/advances/education.rs +++ b/server/src/content/advances/education.rs @@ -6,10 +6,10 @@ use crate::card::HandCardLocation; use crate::city_pieces::Building; use crate::content::ability::Ability; use crate::content::advances::{AdvanceGroup, AdvanceGroupInfo, advance_group_builder}; -use crate::content::custom_actions::CustomActionType; +use crate::content::custom_actions::PlayingActionModifier; use crate::content::persistent_events::PaymentRequest; use crate::game::GameOptions; -use crate::log::{self, ActionLogEntry}; +use crate::log::{ActionLogEntry, current_turn_log_mut}; use crate::objective_card::draw_objective_card_from_pile; use crate::playing_actions::PlayingActionType; use crate::resource::gain_resources; @@ -50,8 +50,10 @@ fn writing() -> AdvanceBuilder { |event| &mut event.after_action, 1, |game, (), (), p| { - if game.is_update_patch() { - let count = log::current_action_log_mut(game) + if game.is_update_patch() + && let Some(a) = current_turn_log_mut(game).actions.last() + { + let count = a .items .iter() .filter(|item| { @@ -64,7 +66,9 @@ fn writing() -> AdvanceBuilder { ) }) .count(); - p.gain_resources(game, ResourcePile::ideas(count as u8)); + if count > 0 { + p.gain_resources(game, ResourcePile::ideas(count as u8)); + } } }, ) @@ -190,7 +194,7 @@ fn philosophy_patched() -> AdvanceBuilder { ) .replaces(Advance::Philosophy) .add_action_modifier( - CustomActionType::Philosophy, + PlayingActionModifier::Philosophy, |cost| { cost.any_times() .free_action() diff --git a/server/src/content/advances/science.rs b/server/src/content/advances/science.rs index d2d50b00..7204bd75 100644 --- a/server/src/content/advances/science.rs +++ b/server/src/content/advances/science.rs @@ -7,6 +7,7 @@ use crate::content::ability::Ability; use crate::content::advances::{AdvanceGroup, AdvanceGroupInfo, advance_group_builder}; use crate::content::persistent_events::ResourceRewardRequest; use crate::game::GameOptions; +use crate::log::ActionLogBalance; use crate::resource::ResourceType; use crate::resource_pile::ResourcePile; @@ -116,7 +117,8 @@ fn metallurgy() -> AdvanceBuilder { }, move |game, s, _| { if s.choice { - s.player().lose_resources(game, ResourcePile::ore(1)); + s.player() + .lose_resources(game, ResourcePile::ore(1), ActionLogBalance::Pay); s.player().gain_resources(game, ResourcePile::gold(1)); } else { s.log(game, "Did not convert ore to gold"); diff --git a/server/src/content/civilizations/greece.rs b/server/src/content/civilizations/greece.rs index 40418724..36271287 100644 --- a/server/src/content/civilizations/greece.rs +++ b/server/src/content/civilizations/greece.rs @@ -9,7 +9,7 @@ use crate::combat_listeners::CombatStrength; use crate::content::ability::AbilityBuilder; use crate::content::advances::AdvanceGroup; use crate::content::advances::warfare::draft_cost; -use crate::content::custom_actions::CustomActionType; +use crate::content::custom_actions::{CustomActionType, PlayingActionModifier, SpecialAction}; use crate::content::persistent_events::{HandCardsRequest, PositionRequest}; use crate::events::check_event_origin; use crate::game::Game; @@ -109,11 +109,13 @@ fn hellenistic_culture() -> SpecialAdvanceInfo { You may replace the cost of Arts with 2 mood tokens.", ) .add_action_modifier( - CustomActionType::HellenisticInfluenceCultureAttempt, + PlayingActionModifier::HellenisticInfluenceCultureAttempt, |c| { - c.once_per_turn_mutually_exclusive(CustomActionType::ArtsInfluenceCultureAttempt) - .free_action() - .resources(ResourcePile::mood_tokens(2)) + c.once_per_turn_mutually_exclusive(SpecialAction::Modifier( + PlayingActionModifier::ArtsInfluenceCultureAttempt, + )) + .free_action() + .resources(ResourcePile::mood_tokens(2)) }, PlayingActionType::InfluenceCultureAttempt, ) diff --git a/server/src/content/civilizations/rome.rs b/server/src/content/civilizations/rome.rs index f5d781dc..e1a04fe6 100644 --- a/server/src/content/civilizations/rome.rs +++ b/server/src/content/civilizations/rome.rs @@ -5,7 +5,7 @@ use crate::card::{HandCard, HandCardLocation, all_action_hand_cards, all_objecti use crate::city::{MoodState, set_city_mood}; use crate::civilization::Civilization; use crate::content::ability::AbilityBuilder; -use crate::content::custom_actions::CustomActionType; +use crate::content::custom_actions::{CustomActionType, PlayingActionModifier}; use crate::content::persistent_events::{HandCardsRequest, PaymentRequest, PositionRequest}; use crate::game::Game; use crate::leader::{Leader, LeaderInfo, leader_position}; @@ -268,7 +268,7 @@ fn caesar() -> LeaderInfo { to increase happiness in the leader city.", ) .add_action_modifier( - CustomActionType::StatesmanIncreaseHappiness, + PlayingActionModifier::StatesmanIncreaseHappiness, |c| c.any_times().free_action().no_resources(), PlayingActionType::IncreaseHappiness, ) diff --git a/server/src/content/civilizations/vikings.rs b/server/src/content/civilizations/vikings.rs index 670c0f2a..8384608b 100644 --- a/server/src/content/civilizations/vikings.rs +++ b/server/src/content/civilizations/vikings.rs @@ -8,15 +8,15 @@ use crate::consts::STACK_LIMIT; use crate::content::ability::{Ability, AbilityBuilder}; use crate::content::advances::economy::use_taxes; use crate::content::advances::trade_routes::TradeRoute; -use crate::content::custom_actions::CustomActionType; +use crate::content::custom_actions::{CustomActionType, SpecialAction}; use crate::content::persistent_events::{PaymentRequest, PositionRequest, UnitsRequest}; use crate::events::EventOrigin; use crate::game::Game; use crate::leader::{Leader, LeaderInfo, leader_position}; use crate::leader_ability::{LeaderAbility, activate_leader_city, can_activate_leader_city}; -use crate::log::add_start_turn_action_if_needed; +use crate::log::{ActionLogEntry, add_start_turn_action_if_needed}; use crate::map::{Block, Terrain, block_for_position, capital_city_position}; -use crate::movement::{MoveUnits, move_action_log}; +use crate::movement::MoveUnits; use crate::player::{Data, Player}; use crate::position::Position; use crate::resource::ResourceType; @@ -223,7 +223,7 @@ pub(crate) fn lose_raid_resource() -> Ability { .then_some(vec![PaymentRequest::mandatory(c, "Pay 1 resource")]) }, |game, s, ()| { - add_start_turn_action_if_needed(game); + add_start_turn_action_if_needed(game, s.player_index); s.log(game, &format!("Lose {}", s.choice[0])); }, ) @@ -304,7 +304,7 @@ fn danegeld() -> LeaderAbility { .add_custom_action( CustomActionType::Danegeld, |c| { - c.once_per_turn_mutually_exclusive(CustomActionType::Taxes) + c.once_per_turn_mutually_exclusive(SpecialAction::Custom(CustomActionType::Taxes)) .action() .no_resources() }, @@ -382,7 +382,8 @@ fn new_colonies() -> LeaderAbility { .collect_vec(); let m = MoveUnits::new(units, to, None, ResourcePile::empty()); - s.log(game, &move_action_log(game, p, &m)); + s.player() + .add_action_log_item(game, ActionLogEntry::move_units(p, &m)); move_with_possible_combat(game, s.player_index, &m); }, diff --git a/server/src/content/custom_actions.rs b/server/src/content/custom_actions.rs index e5cb0c06..ff54ed18 100644 --- a/server/src/content/custom_actions.rs +++ b/server/src/content/custom_actions.rs @@ -4,7 +4,7 @@ use crate::content::ability::Ability; use crate::content::persistent_events::{ PersistentEventType, TriggerPersistentEventParams, trigger_persistent_event_with_listener, }; -use crate::events::{EventOrigin, EventPlayer}; +use crate::events::EventOrigin; use crate::player::Player; use crate::playing_actions::PlayingActionType; use crate::position::Position; @@ -45,22 +45,22 @@ impl CustomActionActivation { } #[derive(Clone)] -pub struct CustomActionInfo { - pub action: CustomActionType, - pub execution: CustomActionExecution, +pub struct SpecialActionInfo { + pub action: SpecialAction, + pub execution: SpecialActionExecution, pub event_origin: EventOrigin, pub cost: ActionCostOncePerTurn, } -impl CustomActionInfo { +impl SpecialActionInfo { #[must_use] pub fn new( - action: CustomActionType, - execution: CustomActionExecution, + action: SpecialAction, + execution: SpecialActionExecution, event_origin: EventOrigin, cost: ActionCostOncePerTurn, - ) -> CustomActionInfo { - CustomActionInfo { + ) -> SpecialActionInfo { + SpecialActionInfo { action, execution, event_origin, @@ -75,12 +75,36 @@ impl CustomActionInfo { #[must_use] pub fn city_bound(&self) -> Option<&CustomActionCityChecker> { - if let CustomActionExecution::Action(a) = &self.execution { + if let SpecialActionExecution::Action(a) = &self.execution { a.city_checker.as_ref() } else { None } } + + /// + /// # Panics + /// Panics if not a modifier action + #[must_use] + pub fn custom_action_type(&self) -> CustomActionType { + if let SpecialAction::Custom(c) = self.action { + c + } else { + panic!("Not a custom action") + } + } + + /// + /// # Panics + /// Panics if not a modifier action + #[must_use] + pub fn modifier_action_type(&self) -> PlayingActionType { + if let SpecialAction::Modifier(m) = self.action { + m.playing_action_type() + } else { + panic!("Not a modifier action") + } + } } type CustomActionChecker = Arc bool + Sync + Send>; @@ -109,11 +133,53 @@ impl CustomActionActionExecution { } #[derive(Clone)] -pub enum CustomActionExecution { +pub enum SpecialActionExecution { Modifier(PlayingActionType), Action(CustomActionActionExecution), } +#[derive(Serialize, Deserialize, PartialEq, Eq, Clone, Copy, Hash, Debug)] +pub enum SpecialAction { + Modifier(PlayingActionModifier), + Custom(CustomActionType), +} + +impl SpecialAction { + #[must_use] + pub fn playing_action_type(&self) -> PlayingActionType { + match self { + SpecialAction::Modifier(m) => m.playing_action_type(), + SpecialAction::Custom(c) => c.playing_action_type(), + } + } +} + +#[derive(Serialize, Deserialize, PartialEq, Eq, Clone, Copy, Hash, Debug)] +pub enum PlayingActionModifier { + // Advances + ArtsInfluenceCultureAttempt, + FreeEconomyCollect, + VotingIncreaseHappiness, + + // Update patch Advances + CityPlanning, + Philosophy, + + // Civilizations, + // Rome + StatesmanIncreaseHappiness, + + // Greece + HellenisticInfluenceCultureAttempt, +} + +impl PlayingActionModifier { + #[must_use] + pub fn playing_action_type(&self) -> PlayingActionType { + PlayingActionType::Special(SpecialAction::Modifier(*self)) + } +} + #[derive(Serialize, Deserialize, PartialEq, Eq, Clone, Copy, Hash, Debug)] pub enum CustomActionType { // Advances @@ -121,16 +187,11 @@ pub enum CustomActionType { ForcedLabor, CivilLiberties, Bartering, - ArtsInfluenceCultureAttempt, - VotingIncreaseHappiness, - FreeEconomyCollect, Sports, Taxes, Theaters, // Update patch Advances - CityPlanning, - Philosophy, WelfareState, ForcedMarch, MilitaryState, @@ -145,10 +206,8 @@ pub enum CustomActionType { // Rome Aqueduct, Princeps, - StatesmanIncreaseHappiness, // Greece - HellenisticInfluenceCultureAttempt, Idol, Master, @@ -166,21 +225,7 @@ pub enum CustomActionType { impl CustomActionType { #[must_use] pub fn playing_action_type(&self) -> PlayingActionType { - PlayingActionType::Custom(*self) - } -} - -pub(crate) fn log_start_custom_action(game: &mut Game, player_index: usize, action: &CustomAction) { - let p = game.player(player_index); - let player = EventPlayer::from_player( - player_index, - game, - action.action.playing_action_type().origin(p), - ); - if let Some(city) = action.city { - player.log(game, &format!("Start action in city {city}")); - } else { - player.log(game, "Start action"); + PlayingActionType::Special(SpecialAction::Custom(*self)) } } @@ -207,8 +252,11 @@ pub(crate) fn custom_action_execution( player: &Player, action_type: CustomActionType, ) -> Option { - if let CustomActionExecution::Action(e) = - player.custom_actions.get(&action_type)?.execution.clone() + if let SpecialActionExecution::Action(e) = player + .special_actions + .get(&SpecialAction::Custom(action_type))? + .execution + .clone() { Some(e) } else { @@ -216,23 +264,23 @@ pub(crate) fn custom_action_execution( } } -pub(crate) fn can_play_custom_action( +pub(crate) fn can_play_special_action( game: &Game, p: &Player, - c: CustomActionType, + c: SpecialAction, ) -> Result<(), String> { - if !p.custom_actions.contains_key(&c) { + if !p.special_actions.contains_key(&c) { return Err("Custom action not available".to_string()); } - let info = p.custom_action_info(c); + let info = p.special_action_info(&c); if let Some(key) = info.cost.once_per_turn && p.played_once_per_turn_actions.contains(&key) { return Err("Custom action already played this turn".to_string()); } - if let CustomActionExecution::Action(e) = &info.execution + if let SpecialActionExecution::Action(e) = &info.execution && !(e.checker)(game, p) { return Err("Custom action cannot be played".to_string()); @@ -253,8 +301,11 @@ pub(crate) fn is_base_or_modifier( base_type: &PlayingActionType, ) -> bool { match base_type { - PlayingActionType::Custom(c) => { - if let CustomActionExecution::Modifier(t) = &p.custom_action_info(*c).execution { + PlayingActionType::Special(SpecialAction::Modifier(c)) => { + if let SpecialActionExecution::Modifier(t) = &p + .special_action_info(&SpecialAction::Modifier(*c)) + .execution + { t == action_type } else { false @@ -269,7 +320,7 @@ pub(crate) fn custom_action_modifier_event_origin( action_type: &PlayingActionType, player: &Player, ) -> EventOrigin { - if let PlayingActionType::Custom(c) = action_type { + if let PlayingActionType::Special(SpecialAction::Modifier(c)) = action_type { c.playing_action_type().origin(player) } else { base_action_origin diff --git a/server/src/content/incidents/civil_war.rs b/server/src/content/incidents/civil_war.rs index 58c461f5..cd8143eb 100644 --- a/server/src/content/incidents/civil_war.rs +++ b/server/src/content/incidents/civil_war.rs @@ -275,7 +275,7 @@ fn envoy() -> Incident { |_p, _, _| true, 0, |game, s, _| { - s.other_player(s.choice, game) + s.other_player(s.choice) .gain_resources(game, ResourcePile::culture_tokens(1)); }, ) diff --git a/server/src/content/incidents/earthquake.rs b/server/src/content/incidents/earthquake.rs index 6d202568..1b628d3d 100644 --- a/server/src/content/incidents/earthquake.rs +++ b/server/src/content/incidents/earthquake.rs @@ -204,7 +204,7 @@ fn destroy_building(game: &mut Game, b: Building, position: Position, origin: &E let o = game.player_mut(owner); o.gain_event_victory_points(2.0, origin); o.destroyed_structures.add_building(b); - let player = EventPlayer::from_player(city_owner, game, origin.clone()); + let player = EventPlayer::new(city_owner, origin.clone()); lose_building(game, &player, b, position); game.log( owner, @@ -219,11 +219,7 @@ fn destroy_wonder_for_points( wonder: Wonder, origin: &EventOrigin, ) { - let p = &EventPlayer::from_player( - game.get_any_city(position).player_index, - game, - origin.clone(), - ); + let p = &EventPlayer::new(game.get_any_city(position).player_index, origin.clone()); destroy_wonder(game, p, wonder, position); let a = wonder.info(game).owned_victory_points; diff --git a/server/src/content/incidents/famine.rs b/server/src/content/incidents/famine.rs index 3ff2a982..4175fa2a 100644 --- a/server/src/content/incidents/famine.rs +++ b/server/src/content/incidents/famine.rs @@ -7,6 +7,7 @@ use crate::content::effects::PermanentEffect; use crate::content::persistent_events::UnitsRequest; use crate::game::Game; use crate::incident::{DecreaseMood, Incident, IncidentBaseEffect, MoodModifier}; +use crate::log::ActionLogBalance; use crate::player::Player; use crate::player_events::IncidentTarget; use crate::playing_actions::PlayingActionType; @@ -219,7 +220,7 @@ pub(crate) fn famine( // only avoid anger if full amount is paid i.player.payment = ResourcePile::food(lost); } - player.lose_resources(game, ResourcePile::food(lost)); + player.lose_resources(game, ResourcePile::food(lost), ActionLogBalance::Loss); player.log(game, &format!("Lost {lost} food",)); }) diff --git a/server/src/content/incidents/good_year.rs b/server/src/content/incidents/good_year.rs index c3c404db..7c941dc1 100644 --- a/server/src/content/incidents/good_year.rs +++ b/server/src/content/incidents/good_year.rs @@ -147,7 +147,7 @@ fn good_year(mut builder: IncidentBuilder, amount: u8, good_year_type: &GoodYear |p, _, _| p.resources.food < p.resource_limit.food, i as i32, move |game, s, _| { - s.other_player(s.choice, game) + s.other_player(s.choice) .gain_resources(game, ResourcePile::food(1)); }, ); diff --git a/server/src/content/objectives/resource_objectives.rs b/server/src/content/objectives/resource_objectives.rs index 5c3b022b..ea0a3fd0 100644 --- a/server/src/content/objectives/resource_objectives.rs +++ b/server/src/content/objectives/resource_objectives.rs @@ -1,3 +1,4 @@ +use crate::log::ActionLogBalance; use crate::objective_card::Objective; use crate::resource::ResourceType; use crate::resource_pile::ResourcePile; @@ -50,7 +51,7 @@ pub(crate) fn pay_resources( ) .status_phase_check(move |_game, player| player.resources.has_at_least(&want)) .status_phase_update(move |game, player| { - player.lose_resources(game, pay.clone()); + player.lose_resources(game, pay.clone(), ActionLogBalance::Pay); player.log(game, &format!("Pay {pay} for {objective}",)); }) .build() diff --git a/server/src/content/wonders.rs b/server/src/content/wonders.rs index 2f57a68d..92cf1d2f 100644 --- a/server/src/content/wonders.rs +++ b/server/src/content/wonders.rs @@ -383,7 +383,8 @@ fn colosseum() -> WonderInfo { p.log( game, &format!( - "Combat value is already at maximum, cannot increase combat value for {p}", + "Combat value is already at maximum, cannot increase combat value for {}", + p.name(game) ), ); return None; diff --git a/server/src/cultural_influence.rs b/server/src/cultural_influence.rs index 580786a3..9b02b92c 100644 --- a/server/src/cultural_influence.rs +++ b/server/src/cultural_influence.rs @@ -12,7 +12,7 @@ use crate::log::current_turn_log_without_redo; use crate::payment::PaymentOptions; use crate::player::Player; use crate::player_events::ActionInfo; -use crate::playing_actions::{PlayingAction, PlayingActionType, base_or_custom_available}; +use crate::playing_actions::{PlayingAction, PlayingActionType, base_or_modified_available}; use crate::position::Position; use crate::resource_pile::ResourcePile; use crate::special_advance::SpecialAdvance; @@ -83,8 +83,8 @@ impl InfluenceCultureInfo { } #[must_use] - pub(crate) fn player(&self, player: usize, game: &Game) -> EventPlayer { - EventPlayer::from_player(player, game, self.info.origin.clone()) + pub(crate) fn player(&self, player: usize) -> EventPlayer { + EventPlayer::new(player, self.info.origin.clone()) } } @@ -144,7 +144,7 @@ pub(crate) fn execute_influence_culture_attempt( Structure::Wonder(_) => panic!("Wonder is not allowed here"), }; - info.player(player_index, game).log( + info.player(player_index).log( game, &format!( "Tried to influence the {city_piece} in the city \ @@ -222,7 +222,7 @@ fn roll_boost_paid( ) .clone(); - let player = info.player(player_index, game); + let player = info.player(player_index); if payment.is_empty() { player.log(game, "Declined to pay to increase the dice roll"); attempt_failed(game, player_index, a.selected_structure.position); @@ -274,7 +274,7 @@ fn range_boost_cost( info: &mut InfluenceCultureInfo, player_index: usize, ) -> PaymentOptions { - let p = info.player(player_index, game); + let p = info.player(player_index); let roll = game.next_dice_roll().value + info.roll_boost; info.roll = roll; @@ -457,10 +457,10 @@ fn structures(city: &City) -> Vec { fn influence_culture(game: &mut Game, influencer_index: usize, info: &InfluenceCultureInfo) { let city_position = info.position; let city_owner = game.get_any_city(city_position).player_index; - let new = &info.player(influencer_index, game); + let new = &info.player(influencer_index); match info.structure { Structure::CityCenter => { - let city = lose_city(game, &info.player(city_owner, game), city_position); + let city = lose_city(game, &info.player(city_owner), city_position); gain_city(game, new, city); } Structure::Building(b) => gain_building(game, new, b, city_position), @@ -569,7 +569,7 @@ pub fn affordable_start_city( #[must_use] pub fn available_influence_actions(game: &Game, player: usize) -> Vec { - base_or_custom_available(game, player, &PlayingActionType::InfluenceCultureAttempt) + base_or_modified_available(game, player, &PlayingActionType::InfluenceCultureAttempt) } pub(crate) fn influence_event_origin( diff --git a/server/src/events.rs b/server/src/events.rs index 5e656fcc..216f587f 100644 --- a/server/src/events.rs +++ b/server/src/events.rs @@ -1,5 +1,6 @@ use crate::advance::Advance; use crate::game::Game; +use crate::log::{ActionLogBalance, ActionLogEntry, add_action_log_item}; use crate::payment::{PaymentOptionsBuilder, RewardBuilder}; use crate::player::{CostTrigger, Player}; use crate::resource::{gain_resources, lose_resources}; @@ -7,7 +8,6 @@ use crate::resource_pile::ResourcePile; use crate::special_advance::SpecialAdvance; use crate::wonder::Wonder; use serde::{Deserialize, Serialize}; -use std::fmt::Display; use std::sync::Arc; #[derive(Serialize, Deserialize, Clone, PartialEq, Eq, Debug, Hash)] @@ -66,25 +66,14 @@ pub fn check_event_origin() -> EventOrigin { #[derive(Clone, PartialEq, Eq, Debug)] pub(crate) struct EventPlayer { pub index: usize, - pub name: String, pub origin: EventOrigin, } impl EventPlayer { #[must_use] - pub fn new(player_index: usize, player_name: String, origin: EventOrigin) -> Self { + pub fn new(player_index: usize, origin: EventOrigin) -> Self { Self { index: player_index, - name: player_name, - origin, - } - } - - #[must_use] - pub fn from_player(player: usize, game: &Game, origin: EventOrigin) -> Self { - Self { - index: player, - name: game.player_name(player), origin, } } @@ -103,15 +92,26 @@ impl EventPlayer { gain_resources(game, self.index, resources, self.origin.clone()); } - pub fn lose_resources(&self, game: &mut Game, resources: ResourcePile) { - lose_resources(game, self.index, resources, self.origin.clone(), vec![]); + pub fn lose_resources( + &self, + game: &mut Game, + resources: ResourcePile, + balance: ActionLogBalance, + ) { + lose_resources( + game, + self.index, + resources, + self.origin.clone(), + vec![], + balance, + ); } #[must_use] pub fn with_origin(&self, origin: EventOrigin) -> Self { Self { index: self.index, - name: self.name.clone(), origin, } } @@ -129,11 +129,14 @@ impl EventPlayer { pub fn log(&self, game: &mut Game, message: &str) { game.log(self.index, &self.origin, message); } -} -impl Display for EventPlayer { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "{}", self.name) + #[must_use] + pub fn name(&self, game: &Game) -> String { + self.get(game).get_name() + } + + pub fn add_action_log_item(&self, game: &mut Game, entry: ActionLogEntry) { + add_action_log_item(game, self.index, entry, self.origin.clone(), vec![]); } } @@ -298,13 +301,13 @@ mod tests { event.add_listener_mut( |item, constant, _, (), _| *item += constant, 0, - EventPlayer::new(0, String::new(), EventOrigin::Advance(add_constant)), + EventPlayer::new(0, EventOrigin::Advance(add_constant)), ); let multiply_value = Advance::Sanitation; event.add_listener_mut( |item, _, multiplier, (), _| *item *= multiplier, -1, - EventPlayer::new(0, String::new(), EventOrigin::Advance(multiply_value)), + EventPlayer::new(0, EventOrigin::Advance(multiply_value)), ); let no_change = Advance::Bartering; event.add_listener_mut( @@ -313,7 +316,7 @@ mod tests { *item -= 1; }, 1, - EventPlayer::new(0, String::new(), EventOrigin::Advance(no_change)), + EventPlayer::new(0, EventOrigin::Advance(no_change)), ); let mut item = 0; diff --git a/server/src/explore.rs b/server/src/explore.rs index 7e6420c9..c032e8c9 100644 --- a/server/src/explore.rs +++ b/server/src/explore.rs @@ -6,10 +6,10 @@ use crate::content::persistent_events::{ }; use crate::events::EventPlayer; use crate::game::Game; +use crate::log::ActionLogEntry; use crate::map::{Block, BlockPosition, Map, Rotation, UnexploredBlock}; use crate::movement::{move_units, stop_current_move}; use crate::position::Position; -use itertools::Itertools; use serde::{Deserialize, Serialize}; #[derive(Serialize, Deserialize, Clone, PartialEq, Eq, Debug)] @@ -259,14 +259,7 @@ fn add_block_tiles_with_log( .retain(|b| b.position.top_tile != pos.top_tile); let tiles = block.tiles(pos, rotation); - - let s = tiles - .into_iter() - .map(|(position, tile)| format!("{position}={tile}")) - .sorted() - .join(", "); - - p.log(game, &format!("Explored tiles {s}")); + p.add_action_log_item(game, ActionLogEntry::explore_tiles(tiles)); game.map.add_block_tiles(pos, block, rotation); } diff --git a/server/src/game.rs b/server/src/game.rs index 4c912768..2b7e830f 100644 --- a/server/src/game.rs +++ b/server/src/game.rs @@ -2,7 +2,7 @@ use crate::action::lose_action; use crate::cache::Cache; use crate::combat_roll::{COMBAT_DIE_SIDES, CombatDieRoll}; use crate::consts::ACTIONS; -use crate::content::custom_actions::{CustomActionExecution, CustomActionInfo}; +use crate::content::custom_actions::{SpecialActionExecution, SpecialActionInfo}; use crate::content::effects::PermanentEffect; use crate::content::persistent_events::{ PersistentEventHandler, PersistentEventState, PersistentEventType, @@ -364,14 +364,10 @@ impl Game { .position(|e| matches!(e, PermanentEffect::RevolutionLoseAction(p) if *p == player)) .map(|i| self.permanent_effects.remove(i)); if lost_action.is_some() { - add_start_turn_action_if_needed(self); + add_start_turn_action_if_needed(self, player); lose_action( self, - &EventPlayer::from_player( - player, - self, - EventOrigin::Ability("Revolution".to_string()), - ), + &EventPlayer::new(player, EventOrigin::Ability("Revolution".to_string())), ); } self.successful_cultural_influence = false; @@ -499,7 +495,7 @@ impl Game { let winner_name = self.player_name(winner_player_index); let m = format!("The game has ended. {winner_name} has won"); self.add_message(&m); - add_start_turn_action_if_needed(self); + add_start_turn_action_if_needed(self, 0); self.add_info_log_item(&m); self.state = GameState::Finished; } @@ -538,13 +534,13 @@ impl Game { } #[must_use] - pub fn available_custom_actions(&self, player_index: usize) -> Vec { + pub fn available_custom_actions(&self, player_index: usize) -> Vec { self.player(player_index) - .custom_actions + .special_actions .values() .filter(|&c| { - if matches!(c.execution, CustomActionExecution::Modifier(_)) { - // returned as part of "base_or_custom_available" + if matches!(c.execution, SpecialActionExecution::Modifier(_)) { + // returned as part of "base_or_modified_available" return false; } diff --git a/server/src/game_data.rs b/server/src/game_data.rs index 9947ecd8..5d1ce92b 100644 --- a/server/src/game_data.rs +++ b/server/src/game_data.rs @@ -5,7 +5,7 @@ use crate::city::{City, CityData}; use crate::city_pieces::{DestroyedStructures, DestroyedStructuresData}; use crate::content::ability; use crate::content::ability::Ability; -use crate::content::custom_actions::CustomActionType; +use crate::content::custom_actions::SpecialAction; use crate::content::effects::PermanentEffect; use crate::content::persistent_events::PersistentEventState; use crate::game::{Game, GameContext, GameOptions, GameState, UIElement}; @@ -282,7 +282,7 @@ pub struct PlayerData { next_unit_id: u32, #[serde(default)] #[serde(skip_serializing_if = "Vec::is_empty")] - played_once_per_turn_actions: Vec, + played_once_per_turn_actions: Vec, #[serde(default)] #[serde(skip_serializing_if = "HashMap::is_empty")] #[serde(serialize_with = "sorted_map")] @@ -382,7 +382,7 @@ fn player_from_data(data: PlayerData, game: &Game) -> Player { completed_objectives: data.completed_objectives, captured_leaders: data.captured_leaders, special_victory_points: data.special_victory_points, - custom_actions: HashMap::new(), + special_actions: HashMap::new(), wonder_cards: data.wonder_cards, action_cards: data.action_cards, objective_cards: data.objective_cards, diff --git a/server/src/game_setup.rs b/server/src/game_setup.rs index 039d455c..b24bc01d 100644 --- a/server/src/game_setup.rs +++ b/server/src/game_setup.rs @@ -11,7 +11,9 @@ use crate::content::civilizations::{BARBARIANS, CHOOSE_CIV, PIRATES}; use crate::events::{EventOrigin, EventPlayer}; use crate::game::{CivSetupOption, Game, GameContext, GameOptions, GameState}; use crate::leader::Leader; -use crate::log::{ActionLogAction, ActionLogAge, ActionLogRound, ActionLogTurn, TurnType}; +use crate::log::{ + ActionLogAge, ActionLogRound, TurnType, add_start_turn_action_if_needed, add_turn_log, +}; use crate::map::{Map, MapSetup, get_map_setup}; use crate::objective_card::gain_objective_card_from_pile; use crate::player::{Player, gain_unit}; @@ -191,21 +193,14 @@ pub fn setup_game_with_cache(setup: &GameSetup, cache: Cache) -> Game { fn execute_setup_round(setup: &GameSetup, game: &mut Game, map_setup: Option<&MapSetup>) { let mut age = ActionLogAge::new(0); - let mut round = ActionLogRound::new(0); - let mut turn = ActionLogTurn::new(TurnType::Setup); - turn.actions.push(ActionLogAction::new(Action::Setup)); - round.turns.push(turn); - age.rounds.push(round); + age.rounds.push(ActionLogRound::new(0)); game.log.push(age); for player_index in 0..setup.player_amount { + add_turn_log(game, TurnType::Setup(player_index)); + add_start_turn_action_if_needed(game, player_index); let origin = setup_event_origin(); - let player = &EventPlayer::from_player(player_index, game, origin.clone()); - player.log( - game, - &format!("Play as {}", player.get(game).civilization.name), - ); - + let player = &EventPlayer::new(player_index, origin.clone()); player.gain_resources(game, ResourcePile::food(2)); do_advance(game, Advance::Farming, player, false); do_advance(game, Advance::Mining, player, false); @@ -237,7 +232,8 @@ pub(crate) fn place_home_tiles(game: &mut Game, player: &EventPlayer) { .add_block_tiles(&h.position, &home, h.position.rotation); } -fn setup_event_origin() -> EventOrigin { +#[must_use] +pub fn setup_event_origin() -> EventOrigin { EventOrigin::Ability("Setup".to_string()) } @@ -299,7 +295,7 @@ pub(crate) fn execute_choose_civ( player_index: usize, action: &Action, ) -> Result<(), String> { - let player = EventPlayer::from_player(player_index, game, setup_event_origin()); + let player = EventPlayer::new(player_index, setup_event_origin()); if let Action::ChooseCivilization(civ) = action { game.player_mut(player_index).civilization = game.cache.get_civilization(civ); let p = game.player_mut(player_index); @@ -315,7 +311,7 @@ pub(crate) fn execute_choose_civ( } player.log( game, - &format!("Play as {}", game.player(player_index).civilization.name), + &format!("Choose {}", game.player(player_index).civilization.name), ); Ok(()) } diff --git a/server/src/happiness.rs b/server/src/happiness.rs index aefaccc8..cbd17c62 100644 --- a/server/src/happiness.rs +++ b/server/src/happiness.rs @@ -1,12 +1,14 @@ use crate::city::{MoodState, increase_mood_state}; -use crate::content::custom_actions::{CustomActionType, custom_action_modifier_event_origin}; +use crate::content::custom_actions::{ + PlayingActionModifier, SpecialAction, custom_action_modifier_event_origin, +}; use crate::events::EventOrigin; use crate::game::Game; use crate::leader::leader_position; use crate::payment::PaymentOptions; use crate::player::{CostTrigger, Player}; use crate::player_events::CostInfo; -use crate::playing_actions::{PlayingActionType, base_or_custom_available}; +use crate::playing_actions::{PlayingActionType, base_or_modified_available}; use crate::position::Position; use crate::resource::ResourceType; use crate::resource_pile::ResourcePile; @@ -36,14 +38,14 @@ impl IncreaseHappiness { #[must_use] pub fn available_happiness_actions(game: &Game, player: usize) -> Vec { - base_or_custom_available(game, player, &PlayingActionType::IncreaseHappiness) + base_or_modified_available(game, player, &PlayingActionType::IncreaseHappiness) } #[must_use] pub fn happiness_city_restriction(player: &Player, action: &PlayingActionType) -> Option { match action { - PlayingActionType::Custom(custom) - if custom == &CustomActionType::StatesmanIncreaseHappiness => + PlayingActionType::Special(SpecialAction::Modifier(m)) + if m == &PlayingActionModifier::StatesmanIncreaseHappiness => { Some(leader_position(player)) } diff --git a/server/src/log.rs b/server/src/log.rs index e60c27fa..f9e10f26 100644 --- a/server/src/log.rs +++ b/server/src/log.rs @@ -3,12 +3,17 @@ use crate::card::{HandCard, HandCardLocation}; use crate::city::MoodState; use crate::combat_stats::CombatStats; use crate::events::EventOrigin; +use crate::map::Terrain; +use crate::movement::{MoveUnits, move_event_origin}; +use crate::player::Player; use crate::position::Position; use crate::resource_pile::ResourcePile; +use crate::status_phase::StatusPhaseStateType; use crate::structure::Structure; use crate::unit::Units; use crate::{action::Action, game::Game}; use json_patch::PatchOperation; +use num::Zero; use serde::{Deserialize, Serialize}; #[derive(Serialize, Deserialize, Clone, PartialEq)] @@ -46,8 +51,8 @@ impl ActionLogRound { #[derive(Serialize, Deserialize, Clone, PartialEq)] pub enum TurnType { Player(usize), - Setup, - StatusPhase, + Setup(usize), + StatusPhase(StatusPhaseStateType), } #[derive(Serialize, Deserialize, Clone, PartialEq)] @@ -78,9 +83,13 @@ impl ActionLogTurn { } } -#[derive(Serialize, Deserialize, Clone, PartialEq)] +#[derive(Serialize, Deserialize, Clone, PartialEq, Debug)] pub struct ActionLogAction { pub action: Action, + pub player: usize, + #[serde(default)] + #[serde(skip_serializing_if = "Option::is_none")] + pub origin: Option, #[serde(default)] #[serde(skip_serializing_if = "Vec::is_empty")] pub undo: Vec, @@ -93,31 +102,70 @@ pub struct ActionLogAction { #[serde(default)] #[serde(skip_serializing_if = "Vec::is_empty")] pub log: Vec, + #[serde(default)] + #[serde(skip_serializing_if = "usize::is_zero")] + pub active_events: usize, } impl ActionLogAction { #[must_use] - pub fn new(action: Action) -> Self { + pub fn new( + action: Action, + player: usize, + origin: Option, + active_events: usize, + ) -> Self { Self { action, + player, + origin, undo: Vec::new(), combat_stats: None, items: Vec::new(), log: Vec::new(), + active_events, } } } -#[derive(Serialize, Deserialize, Clone, PartialEq)] +#[derive(Serialize, Deserialize, Clone, PartialEq, Debug)] +pub enum ActionLogIncidentToken { + Take(u8), + NoChange, +} + +#[derive(Serialize, Deserialize, Clone, PartialEq, Debug)] pub enum ActionLogBalance { Gain, Loss, + Pay, // Like loss, but for payment } -#[derive(Serialize, Deserialize, Clone, PartialEq)] +#[derive(Serialize, Deserialize, Clone, PartialEq, Debug)] +pub struct ActionLogEntryStructure { + pub structure: Structure, + pub balance: ActionLogBalance, + pub position: Position, + pub port_position: Option, +} + +#[derive(Serialize, Deserialize, Clone, PartialEq, Debug)] +pub struct ActionLogEntryMove { + pub units: Units, + pub start: Position, + pub destination: Position, + #[serde(default)] + #[serde(skip_serializing_if = "Option::is_none")] + pub embark_carrier_id: Option, +} + +#[derive(Serialize, Deserialize, Clone, PartialEq, Debug)] pub enum ActionLogEntry { Action { balance: ActionLogBalance, + #[serde(default)] + #[serde(skip_serializing_if = "Option::is_none")] + amount: Option, }, Resources { resources: ResourcePile, @@ -125,18 +173,15 @@ pub enum ActionLogEntry { }, Advance { advance: Advance, - take_incident_token: bool, + incident_token: ActionLogIncidentToken, balance: ActionLogBalance, }, Units { units: Units, balance: ActionLogBalance, - }, - Structure { - structure: Structure, - balance: ActionLogBalance, position: Position, }, + Structure(ActionLogEntryStructure), HandCard { card: HandCard, from: HandCardLocation, @@ -146,37 +191,70 @@ pub enum ActionLogEntry { city: Position, mood: MoodState, }, + Move(ActionLogEntryMove), + Explore { + tiles: Vec<(Position, Terrain)>, + }, } impl ActionLogEntry { + #[must_use] + pub fn balance(&self) -> Option<&ActionLogBalance> { + match self { + ActionLogEntry::Action { balance, .. } + | ActionLogEntry::Resources { balance, .. } + | ActionLogEntry::Advance { balance, .. } + | ActionLogEntry::Units { balance, .. } => Some(balance), + ActionLogEntry::Structure(s) => Some(&s.balance), + ActionLogEntry::HandCard { .. } + | ActionLogEntry::MoodChange { .. } + | ActionLogEntry::Move { .. } + | ActionLogEntry::Explore { .. } => None, + } + } + #[must_use] pub fn resources(resources: ResourcePile, balance: ActionLogBalance) -> Self { Self::Resources { resources, balance } } #[must_use] - pub fn units(units: Units, balance: ActionLogBalance) -> Self { - Self::Units { units, balance } - } - - #[must_use] - pub fn advance(advance: Advance, balance: ActionLogBalance, take_incident_token: bool) -> Self { - Self::Advance { - advance, - take_incident_token, - balance, - } - } - - #[must_use] - pub fn structure(structure: Structure, balance: ActionLogBalance, position: Position) -> Self { - Self::Structure { - structure, + pub fn units(units: Units, balance: ActionLogBalance, position: Position) -> Self { + Self::Units { + units, balance, position, } } + #[must_use] + pub fn advance( + advance: Advance, + balance: ActionLogBalance, + incident_token: ActionLogIncidentToken, + ) -> Self { + Self::Advance { + advance, + incident_token, + balance, + } + } + + #[must_use] + pub fn structure( + structure: Structure, + balance: ActionLogBalance, + position: Position, + port_position: Option, + ) -> Self { + Self::Structure(ActionLogEntryStructure { + structure, + balance, + position, + port_position, + }) + } + #[must_use] pub fn hand_card(card: HandCard, from: HandCardLocation, to: HandCardLocation) -> Self { Self::HandCard { card, from, to } @@ -188,20 +266,42 @@ impl ActionLogEntry { } #[must_use] - pub fn action(balance: ActionLogBalance) -> Self { - Self::Action { balance } + pub fn action(balance: ActionLogBalance, amount: u32) -> Self { + Self::Action { + balance, + amount: if amount == 1 { None } else { Some(amount) }, + } + } + + #[must_use] + pub fn move_units(player: &Player, m: &MoveUnits) -> Self { + Self::Move(ActionLogEntryMove { + units: m + .units + .iter() + .map(|unit| player.get_unit(*unit).unit_type) + .collect::(), + start: player.get_unit(m.units[0]).position, + destination: m.destination, + embark_carrier_id: m.embark_carrier_id, + }) + } + + #[must_use] + pub(crate) fn explore_tiles(tiles: Vec<(Position, Terrain)>) -> ActionLogEntry { + Self::Explore { tiles } } } -#[derive(Serialize, Deserialize, Clone, PartialEq)] +#[derive(Serialize, Deserialize, Clone, PartialEq, Debug)] pub struct ActionLogItem { pub player: usize, #[serde(flatten)] pub entry: ActionLogEntry, - origin: EventOrigin, + pub origin: EventOrigin, #[serde(default)] #[serde(skip_serializing_if = "Vec::is_empty")] - modifiers: Vec, + pub modifiers: Vec, } impl ActionLogItem { @@ -243,13 +343,26 @@ pub(crate) fn linear_action_log(game: &Game) -> Vec { } pub(crate) fn add_log_action(game: &mut Game, item: Action) { + let active_events = game.events.len(); + let player = game.active_player(); + let origin = action_origin(&item, game.player(player)).clone(); let i = game.log_index; let l = &mut current_turn_log_mut(game).actions; remove_redo_actions(l, i); - l.push(ActionLogAction::new(item)); + l.push(ActionLogAction::new(item, player, origin, active_events)); game.log_index += 1; } +fn action_origin(a: &Action, player: &Player) -> Option { + match a { + Action::Playing(p) => Some(p.playing_action_type(player).origin(player).clone()), + Action::Movement(_) => Some(move_event_origin()), + Action::Undo => panic!("Unexpected undo in log"), + Action::Redo => panic!("Unexpected redo in log"), + Action::StartTurn | Action::Response(_) | Action::ChooseCivilization(_) => None, + } +} + fn remove_redo_actions(l: &mut Vec, action_log_index: usize) { if action_log_index < l.len() { // remove items from undo @@ -274,10 +387,11 @@ pub(crate) fn add_action_log_item( .push(ActionLogItem::new(player, entry, origin, modifiers)); } -pub(crate) fn add_start_turn_action_if_needed(game: &mut Game) { +pub(crate) fn add_start_turn_action_if_needed(game: &mut Game, player: usize) { let p = current_turn_log_mut(game); if p.actions.is_empty() { - p.actions.push(ActionLogAction::new(Action::StartTurn)); + p.actions + .push(ActionLogAction::new(Action::StartTurn, player, None, 0)); game.log_index += 1; } } diff --git a/server/src/movement.rs b/server/src/movement.rs index b1959cf8..96e66f7b 100644 --- a/server/src/movement.rs +++ b/server/src/movement.rs @@ -13,6 +13,7 @@ use crate::events::{EventOrigin, EventPlayer}; use crate::explore::move_to_unexplored_tile; use crate::game::GameState::Movement; use crate::game::{Game, GameContext, GameState}; +use crate::log::ActionLogEntry; use crate::move_routes::{MoveRoute, move_routes}; use crate::movement::MovementAction::{Move, Stop}; use crate::payment::PaymentOptions; @@ -285,16 +286,18 @@ pub(crate) fn execute_movement_action( action: MovementAction, player_index: usize, ) -> Result<(), String> { - let player = EventPlayer::from_player(player_index, game, move_event_origin()); + let player = EventPlayer::new(player_index, move_event_origin()); match &action { Move(m) if m.units.is_empty() => { player.log(game, "Used a movement actions but moved no units"); } - Move(m) => player.log(game, &move_action_log(game, player.get(game), m)), + Move(m) => { + player.add_action_log_item(game, ActionLogEntry::move_units(player.get(game), m)); + } Stop => player.log(game, "End the movement action"), } - let p = &EventPlayer::from_player(player_index, game, move_event_origin()); + let p = &EventPlayer::new(player_index, move_event_origin()); if let GameState::Playing = game.state { if game.actions_left == 0 && game.context != GameContext::Replay { return Err("No actions left".to_string()); @@ -651,42 +654,7 @@ fn can_embark(game: &Game, player: &Player, unit: &Unit) -> bool { }) } -pub(crate) fn move_action_log(game: &Game, player: &Player, m: &MoveUnits) -> String { - let units_str = m - .units - .iter() - .map(|unit| player.get_unit(*unit).unit_type) - .collect::() - .to_string(Some(game)); - let start = player.get_unit(m.units[0]).position; - let start_is_water = game.map.is_sea(start); - let dest = m.destination; - let t = game - .map - .get(dest) - .expect("the destination position should be on the map"); - let (verb, suffix) = if start_is_water { - if t.is_unexplored() || t.is_water() { - ("sailed", "") - } else { - ("disembarked", "") - } - } else if m.embark_carrier_id.is_some() { - ("embarked", "") - } else if start.is_neighbor(dest) { - ("marched", "") - } else { - ("marched", " on roads") - }; - let payment = &m.payment; - let cost = if payment.is_empty() { - String::new() - } else { - format!(" for {payment}") - }; - format!("{verb} {units_str} from {start} to {dest}{suffix}{cost}",) -} - -pub(crate) fn move_event_origin() -> EventOrigin { +#[must_use] +pub fn move_event_origin() -> EventOrigin { EventOrigin::Ability("Move".to_string()) } diff --git a/server/src/objective_card.rs b/server/src/objective_card.rs index c6615a1c..80948204 100644 --- a/server/src/objective_card.rs +++ b/server/src/objective_card.rs @@ -330,7 +330,7 @@ pub(crate) fn complete_objective_card(game: &mut Game, player: usize, id: u8, ob { s( game, - &EventPlayer::from_player(player, game, EventOrigin::Objective(objective.to_string())), + &EventPlayer::new(player, EventOrigin::Objective(objective.to_string())), ); } diff --git a/server/src/pirates.rs b/server/src/pirates.rs index d914679f..72e4be78 100644 --- a/server/src/pirates.rs +++ b/server/src/pirates.rs @@ -248,7 +248,7 @@ fn cities_with_adjacent_pirates(player: &Player, game: &Game) -> Vec { #[must_use] pub(crate) fn get_pirates_event_player(game: &Game, origin: &EventOrigin) -> EventPlayer { let player = get_pirates_player(game); - EventPlayer::new(player.index, player.get_name(), origin.clone()) + EventPlayer::new(player.index, origin.clone()) } /// diff --git a/server/src/player.rs b/server/src/player.rs index ff5a48c3..b23817a4 100644 --- a/server/src/player.rs +++ b/server/src/player.rs @@ -2,7 +2,9 @@ use crate::advance::{Advance, base_advance_cost, player_government}; use crate::city_pieces::DestroyedStructures; use crate::consts::{STACK_LIMIT, UNIT_LIMIT_BARBARIANS, UNIT_LIMIT_PIRATES}; use crate::content::ability::construct_event_origin; -use crate::content::custom_actions::{CustomActionExecution, CustomActionInfo}; +use crate::content::custom_actions::{ + PlayingActionModifier, SpecialAction, SpecialActionExecution, SpecialActionInfo, +}; use crate::events::{Event, EventOrigin, EventPlayer}; use crate::game_setup::all_leaders; use crate::leader::Leader; @@ -23,7 +25,6 @@ use crate::{ city_pieces::Building::{self}, civilization::Civilization, consts::{BUILDING_COST, CITY_LIMIT, CITY_PIECE_LIMIT, UNIT_LIMIT}, - content::custom_actions::CustomActionType, game::Game, leader::LeaderInfo, player_events::PlayerEvents, @@ -35,7 +36,6 @@ use enumset::EnumSet; use itertools::Itertools; use serde::{Deserialize, Serialize}; use std::collections::HashMap; -use std::fmt::Display; #[derive(Serialize, Deserialize, PartialEq, Eq)] pub enum PlayerType { @@ -66,12 +66,12 @@ pub struct Player { pub completed_objectives: Vec, pub captured_leaders: Vec, pub special_victory_points: Vec, - pub custom_actions: HashMap, // transient + pub special_actions: HashMap, // transient pub wonder_cards: Vec, pub action_cards: Vec, pub objective_cards: Vec, pub next_unit_id: u32, - pub played_once_per_turn_actions: Vec, + pub played_once_per_turn_actions: Vec, pub event_info: HashMap, pub secrets: Vec, pub custom_data: HashMap, @@ -80,12 +80,6 @@ pub struct Player { pub(crate) great_mausoleum_action_cards: u8, // transient } -impl Display for Player { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "{}", self.get_name()) - } -} - #[derive(PartialEq, Eq, Copy, Clone)] pub enum CostTrigger { WithModifiers, @@ -119,7 +113,7 @@ impl Player { completed_objectives: Vec::new(), captured_leaders: Vec::new(), special_victory_points: Vec::new(), - custom_actions: HashMap::new(), + special_actions: HashMap::new(), wonder_cards: Vec::new(), action_cards: Vec::new(), objective_cards: Vec::new(), @@ -506,28 +500,27 @@ impl Player { /// # Panics /// Panics if the custom action type does not exist for this player #[must_use] - pub fn custom_action_info(&self, custom_action_type: CustomActionType) -> CustomActionInfo { - self.custom_actions - .get(&custom_action_type) + pub fn special_action_info(&self, a: &SpecialAction) -> SpecialActionInfo { + self.special_actions + .get(a) .cloned() - .unwrap_or_else(|| { - panic!( - "Custom action {custom_action_type:?} not found for player {}", - self.index - ) - }) + .unwrap_or_else(|| panic!("Custom action {a:?} not found for player {}", self.index)) } #[must_use] pub(crate) fn custom_action_modifiers( &self, base: &PlayingActionType, - ) -> Vec { - self.custom_actions + ) -> Vec { + self.special_actions .iter() .filter_map(move |(t, c)| { - if let CustomActionExecution::Modifier(b) = &c.execution { - (b == base).then_some(*t) + if let SpecialActionExecution::Modifier(b) = &c.execution { + (b == base).then_some(if let SpecialAction::Modifier(m) = t { + *m + } else { + unreachable!() + }) } else { None } @@ -583,15 +576,10 @@ pub fn gain_units( } } - game.log( - player, - origin, - &format!("Gain {} at {}", units.to_string(Some(game)), position), - ); add_action_log_item( game, player, - ActionLogEntry::units(units, ActionLogBalance::Gain), + ActionLogEntry::units(units, ActionLogBalance::Gain, position), origin.clone(), vec![], ); diff --git a/server/src/playing_actions.rs b/server/src/playing_actions.rs index 0d6526a9..61d3a8e2 100644 --- a/server/src/playing_actions.rs +++ b/server/src/playing_actions.rs @@ -14,8 +14,8 @@ use crate::content::ability::{ Ability, advance_event_origin, construct_event_origin, recruit_event_origin, }; use crate::content::custom_actions::{ - CustomAction, CustomActionActivation, CustomActionType, can_play_custom_action, - log_start_custom_action, on_custom_action, + CustomAction, CustomActionActivation, PlayingActionModifier, SpecialAction, + can_play_special_action, on_custom_action, }; use crate::content::persistent_events::{ PaymentRequest, PersistentEventType, TriggerPersistentEventParams, trigger_persistent_event_ext, @@ -29,6 +29,7 @@ use crate::happiness::{ IncreaseHappiness, execute_increase_happiness, happiness_base_event_origin, happiness_event_origin, }; +use crate::log::{ActionLogBalance, ActionLogEntry}; use crate::movement::move_event_origin; use crate::payment::PaymentOptions; use crate::player::Player; @@ -48,7 +49,7 @@ pub enum PlayingActionType { InfluenceCultureAttempt, ActionCard(u8), WonderCard(Wonder), - Custom(CustomActionType), + Special(SpecialAction), EndTurn, } @@ -67,8 +68,8 @@ impl PlayingActionType { let p = game.player(player_index); match self { - PlayingActionType::Custom(c) => { - can_play_custom_action(game, p, *c)?; + PlayingActionType::Special(c) => { + can_play_special_action(game, p, *c)?; } PlayingActionType::ActionCard(id) => { can_play_civil_card(game, p, *id)?; @@ -98,9 +99,9 @@ impl PlayingActionType { #[must_use] pub fn cost(&self, game: &Game, player: usize) -> ActionCost { match self { - PlayingActionType::Custom(custom_action) => game + PlayingActionType::Special(custom_action) => game .player(player) - .custom_action_info(*custom_action) + .special_action_info(custom_action) .cost .cost .clone(), @@ -135,11 +136,9 @@ impl PlayingActionType { PlayingActionType::InfluenceCultureAttempt => influence_base_origin(), PlayingActionType::ActionCard(a) => EventOrigin::CivilCard(*a), PlayingActionType::WonderCard(w) => EventOrigin::Wonder(*w), - PlayingActionType::Custom(c) => player.custom_action_info(*c).event_origin, + PlayingActionType::Special(c) => player.special_action_info(c).event_origin, PlayingActionType::MoveUnits => move_event_origin(), - PlayingActionType::EndTurn => panic!( - "PlayingAction::origin called on an action that does not have an origin: EndTurn", - ), + PlayingActionType::EndTurn => end_turn_origin(), } } } @@ -175,7 +174,7 @@ impl PlayingAction { if !action_cost.free { pay_action( game, - &EventPlayer::from_player(player_index, game, playing_action_type.origin(p)), + &EventPlayer::new(player_index, playing_action_type.origin(p)), ); } @@ -188,51 +187,19 @@ impl PlayingAction { player_index: usize, ) -> Result<(), String> { // log these before the payment for clarity - match &self { - PlayingAction::Custom(a) => { - log_start_custom_action(game, player_index, a); - } - PlayingAction::ActionCard(id) => { - discard_action_card( - game, - player_index, - *id, - &EventOrigin::Ability("Action Card".to_string()), - HandCardLocation::PlayToDiscard, - ); - } - _ => {} - } - - let action_type = self.playing_action_type(game.player(player_index)); - let origin_override = match action_type { - PlayingActionType::Custom(c) => { - if let Some(key) = &game - .player(player_index) - .custom_action_info(c) - .cost - .once_per_turn - { - game.players[player_index] - .played_once_per_turn_actions - .push(*key); - } - Some(game.player(player_index).custom_action_info(c).event_origin) - } - PlayingActionType::ActionCard(c) => Some(EventOrigin::CivilCard(c)), - _ => None, - }; - - let payment_options = action_type.payment_options(game, player_index); - if !payment_options.is_free() { - game.log( + if let PlayingAction::ActionCard(id) = &self { + discard_action_card( + game, player_index, - &payment_options.origin, - &format!("Pay {}", payment_options.default,), + *id, + &EventOrigin::Ability("Action Card".to_string()), + HandCardLocation::PlayToDiscard, ); } - ActionPayment::new(self).on_pay_action(game, player_index, origin_override) + let action_type = self.playing_action_type(game.player(player_index)); + let override_origin = add_override_origin(game, player_index, &action_type); + ActionPayment::new(self).on_pay_action(game, player_index, override_origin) } pub(crate) fn execute_without_cost( @@ -309,7 +276,7 @@ impl PlayingAction { ), PlayingAction::ActionCard(a) => PlayingActionType::ActionCard(*a), PlayingAction::WonderCard(name) => PlayingActionType::WonderCard(*name), - PlayingAction::Custom(c) => PlayingActionType::Custom(c.action), + PlayingAction::Custom(c) => PlayingActionType::Special(SpecialAction::Custom(c.action)), PlayingAction::EndTurn => PlayingActionType::EndTurn, } } @@ -321,7 +288,7 @@ fn assert_allowed_action_type( player: &Player, ) -> PlayingActionType { match playing_action_type { - PlayingActionType::Custom(c) => { + PlayingActionType::Special(SpecialAction::Modifier(c)) => { assert!(player.custom_action_modifiers(base_type).contains(c)); } _ => { @@ -332,7 +299,7 @@ fn assert_allowed_action_type( } #[must_use] -pub(crate) fn base_or_custom_available( +pub(crate) fn base_or_modified_available( game: &Game, player: usize, base: &PlayingActionType, @@ -343,7 +310,7 @@ pub(crate) fn base_or_custom_available( game.player(player) .custom_action_modifiers(base) .iter() - .map(CustomActionType::playing_action_type), + .map(PlayingActionModifier::playing_action_type), ) .filter_map(|a| a.is_available(game, player).map(|()| a).ok()) .collect() @@ -423,10 +390,43 @@ pub(crate) fn pay_for_action() -> Ability { } fn end_turn(game: &mut Game, player: usize) { - game.log( - player, - &EventOrigin::Ability("End Turn".to_string()), - &format!("{} actions left", game.actions_left), - ); + if game.actions_left > 0 { + EventPlayer::new(player, end_turn_origin()).add_action_log_item( + game, + ActionLogEntry::action(ActionLogBalance::Loss, game.actions_left), + ); + } game.next_turn(); } + +pub(crate) fn end_turn_origin() -> EventOrigin { + EventOrigin::Ability("End Turn".to_string()) +} + +fn add_override_origin( + game: &mut Game, + player_index: usize, + action_type: &PlayingActionType, +) -> Option { + match action_type { + PlayingActionType::Special(c) => { + if let Some(key) = &game + .player(player_index) + .special_action_info(c) + .cost + .once_per_turn + { + game.players[player_index] + .played_once_per_turn_actions + .push(*key); + } + Some( + game.player(player_index) + .special_action_info(c) + .event_origin, + ) + } + PlayingActionType::ActionCard(c) => Some(EventOrigin::CivilCard(*c)), + _ => None, + } +} diff --git a/server/src/resource.rs b/server/src/resource.rs index 64ac93f0..eb8185cd 100644 --- a/server/src/resource.rs +++ b/server/src/resource.rs @@ -1,11 +1,10 @@ use crate::content::persistent_events::PaymentRequest; -use crate::events::EventOrigin; +use crate::events::{EventOrigin, EventPlayer}; use crate::game::Game; use crate::log::{ActionLogBalance, ActionLogEntry, add_action_log_item}; use crate::payment::PaymentOptions; use crate::player::Player; use crate::resource_pile::ResourcePile; -use itertools::Itertools; use serde::{Deserialize, Serialize}; use std::{fmt, mem}; @@ -91,22 +90,7 @@ pub(crate) fn gain_resources_with_modifiers( origin: EventOrigin, modifiers: Vec, ) { - if modifiers.is_empty() { - game.log(player, &origin, &format!("Gain {resources}")); - } else { - let modifier_names = modifiers - .iter() - .map(|m| m.name(game)) - .collect_vec() - .join(", "); - game.log( - player, - &origin, - &format!("Gain {resources} with {modifier_names}"), - ); - } let p = game.player_mut(player); - p.resources += resources.clone(); apply_resource_limit(p); add_action_log_item( @@ -129,10 +113,9 @@ pub(crate) fn check_for_waste(game: &mut Game) { let wasted_resources = mem::replace(&mut game.players[p].wasted_resources, ResourcePile::empty()); if !wasted_resources.is_empty() { - game.log( - p, - &EventOrigin::Ability("Waste".to_string()), - &format!("Could not store {wasted_resources}",), + EventPlayer::new(p, EventOrigin::Ability("Waste".to_string())).add_action_log_item( + game, + ActionLogEntry::resources(wasted_resources, ActionLogBalance::Loss), ); } } @@ -144,6 +127,7 @@ pub(crate) fn lose_resources( resources: ResourcePile, origin: EventOrigin, modifiers: Vec, + balance: ActionLogBalance, ) { let p = game.player_mut(player); assert!( @@ -155,7 +139,7 @@ pub(crate) fn lose_resources( add_action_log_item( game, player, - ActionLogEntry::resources(resources, ActionLogBalance::Loss), + ActionLogEntry::resources(resources, balance), origin, modifiers, ); @@ -191,20 +175,6 @@ fn log_payment(game: &mut Game, player: usize, payment: &ResourcePile, cost: &Pa payment.clone(), cost.origin.clone(), cost.modifiers.clone(), + ActionLogBalance::Pay, ); - if cost.modifiers.is_empty() { - game.log(player, &cost.origin, &format!("Pay {payment}")); - } else { - let modifiers = cost - .modifiers - .iter() - .map(|m| m.name(game)) - .collect_vec() - .join(", "); - game.log( - player, - &cost.origin, - &format!("Pay {payment} with {modifiers}"), - ); - } } diff --git a/server/src/status_phase.rs b/server/src/status_phase.rs index 88156167..9f47474c 100644 --- a/server/src/status_phase.rs +++ b/server/src/status_phase.rs @@ -10,7 +10,7 @@ use crate::content::persistent_events::{ trigger_persistent_event_with_listener, }; use crate::events::{EventOrigin, EventPlayer}; -use crate::log::{TurnType, add_turn_log}; +use crate::log::{TurnType, add_start_turn_action_if_needed, add_turn_log}; use crate::objective_card::{ gain_objective_card_from_pile, present_objective_cards, status_phase_completable, }; @@ -22,6 +22,16 @@ use itertools::Itertools; use serde::{Deserialize, Serialize}; use std::fmt::Display; +#[derive(Serialize, Deserialize, Clone, PartialEq, Eq, Debug, Hash, Copy)] +pub enum StatusPhaseStateType { + CompleteObjectives, + FreeAdvance, + DrawCards, + RazeSize1City, + ChangeGovernmentType, + DetermineFirstPlayer, +} + #[derive(Serialize, Deserialize, Clone, PartialEq, Eq, Debug, Hash)] pub enum StatusPhaseState { CompleteObjectives, @@ -32,15 +42,15 @@ pub enum StatusPhaseState { DetermineFirstPlayer(usize), } -impl Display for StatusPhaseState { +impl Display for StatusPhaseStateType { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match self { - StatusPhaseState::CompleteObjectives => write!(f, "Complete Objectives"), - StatusPhaseState::FreeAdvance => write!(f, "Free Advance"), - StatusPhaseState::DrawCards => write!(f, "Draw Cards"), - StatusPhaseState::RazeSize1City => write!(f, "Raze Size 1 City"), - StatusPhaseState::ChangeGovernmentType(_) => write!(f, "Change Government"), - StatusPhaseState::DetermineFirstPlayer(_) => write!(f, "Determine First Player"), + StatusPhaseStateType::CompleteObjectives => write!(f, "Complete Objectives"), + StatusPhaseStateType::FreeAdvance => write!(f, "Free Advance"), + StatusPhaseStateType::DrawCards => write!(f, "Draw Cards"), + StatusPhaseStateType::RazeSize1City => write!(f, "Raze Size 1 City"), + StatusPhaseStateType::ChangeGovernmentType => write!(f, "Change Government"), + StatusPhaseStateType::DetermineFirstPlayer => write!(f, "Determine First Player"), } } } @@ -72,19 +82,31 @@ pub fn get_status_phase(game: &Game) -> Option<&StatusPhaseState> { } pub(crate) fn enter_status_phase(game: &mut Game) { - add_turn_log(game, TurnType::StatusPhase); - play_status_phase(game, StatusPhaseState::CompleteObjectives); + play_status_phase(game, StatusPhaseState::CompleteObjectives, false); } -pub(crate) fn play_status_phase(game: &mut Game, mut phase: StatusPhaseState) { +pub(crate) fn status_phase_response(game: &mut Game, phase: StatusPhaseState) { + play_status_phase(game, phase, true); +} + +fn play_status_phase(game: &mut Game, mut phase: StatusPhaseState, response: bool) { use StatusPhaseState::*; loop { + let t = status_phase_type(&phase); + if game.events.is_empty() { + add_turn_log(game, TurnType::StatusPhase(t)); + // needed for draw cards + if response { + add_start_turn_action_if_needed(game, game.active_player()); + } + game.player_changed(); + } phase = match trigger_persistent_event_with_listener( game, &game.human_players_sorted(game.starting_player_index), |events| &mut events.status_phase, - &game.cache.status_phase_handler(&phase).listeners.clone(), + &game.cache.status_phase_handler(&t).listeners.clone(), phase, PersistentEventType::StatusPhase, TriggerPersistentEventParams::default(), @@ -323,10 +345,11 @@ where p.log( game, &format!( - "{p} changed their government from {} to {}", + "{} changed their government from {} to {}", p.get(game) .government(game) .expect("player should have a government before changing it"), + p.name(game), c.new_government ), ); @@ -497,6 +520,18 @@ fn player_that_chooses_next_first_player(players: &[&Player]) -> usize { .index } +#[must_use] +pub fn status_phase_type(p: &StatusPhaseState) -> StatusPhaseStateType { + match p { + StatusPhaseState::CompleteObjectives => StatusPhaseStateType::CompleteObjectives, + StatusPhaseState::FreeAdvance => StatusPhaseStateType::FreeAdvance, + StatusPhaseState::DrawCards => StatusPhaseStateType::DrawCards, + StatusPhaseState::RazeSize1City => StatusPhaseStateType::RazeSize1City, + StatusPhaseState::ChangeGovernmentType(_) => StatusPhaseStateType::ChangeGovernmentType, + StatusPhaseState::DetermineFirstPlayer(_) => StatusPhaseStateType::DetermineFirstPlayer, + } +} + #[cfg(test)] mod tests { use crate::civilization::Civilization; diff --git a/server/src/structure.rs b/server/src/structure.rs index ee911c1d..26e562b7 100644 --- a/server/src/structure.rs +++ b/server/src/structure.rs @@ -31,8 +31,14 @@ pub(crate) fn log_gain_city( structure: Structure, position: Position, ) { - player.log(game, &format!("Gain city {position}")); - log_structure(game, player, structure, ActionLogBalance::Gain, position); + log_structure( + game, + player, + structure, + ActionLogBalance::Gain, + position, + None, + ); } pub(crate) fn log_lose_city( @@ -41,8 +47,14 @@ pub(crate) fn log_lose_city( structure: Structure, position: Position, ) { - player.log(game, &format!("Lose city {position}")); - log_structure(game, player, structure, ActionLogBalance::Loss, position); + log_structure( + game, + player, + structure, + ActionLogBalance::Loss, + position, + None, + ); } pub(crate) fn log_structure( @@ -51,11 +63,12 @@ pub(crate) fn log_structure( structure: Structure, balance: ActionLogBalance, position: Position, + port_position: Option, ) { add_action_log_item( game, player.index, - ActionLogEntry::structure(structure, balance, position), + ActionLogEntry::structure(structure, balance, position, port_position), player.origin.clone(), vec![], ); diff --git a/server/src/unit.rs b/server/src/unit.rs index b5ecf6c2..16d0aab0 100644 --- a/server/src/unit.rs +++ b/server/src/unit.rs @@ -602,19 +602,10 @@ pub(crate) fn kill_units_without_event( .iter() .map(|id| p.get_unit(*id).unit_type) .collect::(); - game.log( - player, - origin, - &format!( - "Lost {} at {}", - units.to_string(Some(game)), - killed_units.position - ), - ); add_action_log_item( game, player, - ActionLogEntry::units(units, ActionLogBalance::Loss), + ActionLogEntry::units(units, ActionLogBalance::Loss, killed_units.position), origin.clone(), vec![], ); diff --git a/server/src/wonder.rs b/server/src/wonder.rs index ad314394..56f0d1a5 100644 --- a/server/src/wonder.rs +++ b/server/src/wonder.rs @@ -534,13 +534,13 @@ pub(crate) fn gain_wonder( wonder: Wonder, city_position: Position, ) { - player.log(game, &format!("Gain {} at {city_position}", wonder.name())); log_structure( game, player, Structure::Wonder(wonder), ActionLogBalance::Gain, city_position, + None, ); let p = player.get_mut(game); p.get_city_mut(city_position).pieces.wonders.push(wonder); @@ -570,13 +570,13 @@ pub(crate) fn lose_wonder( "Player does not own the wonder to lose it" ); - player.log(game, &format!("Lose {} at {city_position}", wonder.name())); log_structure( game, player, Structure::Wonder(wonder), ActionLogBalance::Loss, city_position, + None, ); let p = game.player_mut(player.index); @@ -655,7 +655,7 @@ pub(crate) fn use_draw_replacement_wonder() -> Ability { |game, p, ()| { let player = p.get_mut(game); if player.event_info.remove(DRAW_REPLACEMENT_WONDER).is_some() { - add_start_turn_action_if_needed(game); + add_start_turn_action_if_needed(game, game.active_player()); p.log(game, "Draw a replacement wonder card"); draw_wonder_card(game, p); } diff --git a/server/tests/advances_tests.rs b/server/tests/advances_tests.rs index 446e1c9a..b145a720 100644 --- a/server/tests/advances_tests.rs +++ b/server/tests/advances_tests.rs @@ -8,7 +8,9 @@ use server::city_pieces::Building::{Academy, Fortress, Temple}; use server::collect::{PositionCollection, possible_resource_collections}; use server::consts::BUILDING_COST; use server::content::advances::trade_routes::find_trade_routes; -use server::content::custom_actions::{CustomAction, CustomActionType}; +use server::content::custom_actions::{ + CustomAction, CustomActionType, PlayingActionModifier, SpecialAction, +}; use server::content::persistent_events::{EventResponse, SelectedStructure}; use server::cultural_influence::InfluenceCultureAttempt; use server::events::{EventOrigin, check_event_origin}; @@ -227,7 +229,9 @@ fn test_increase_happiness_voting() { (Position::from_offset("B3"), 2), ], ResourcePile::mood_tokens(6), - PlayingActionType::Custom(CustomActionType::VotingIncreaseHappiness), + PlayingActionType::Special(SpecialAction::Modifier( + PlayingActionModifier::VotingIncreaseHappiness, + )), ), )), )], @@ -247,7 +251,9 @@ fn test_increase_happiness_voting_rituals() { (Position::from_offset("B3"), 2), ], ResourcePile::new(1, 0, 1, 3, 1, 0, 0), - PlayingActionType::Custom(CustomActionType::VotingIncreaseHappiness), + PlayingActionType::Special(SpecialAction::Modifier( + PlayingActionModifier::VotingIncreaseHappiness, + )), ), )), )], @@ -611,7 +617,9 @@ fn test_collect_free_economy() { PositionCollection::new(Position::from_offset("B1"), ResourcePile::ore(1)), PositionCollection::new(Position::from_offset("B2"), ResourcePile::ore(1)), ], - PlayingActionType::Custom(CustomActionType::FreeEconomyCollect), + PlayingActionType::Special(SpecialAction::Modifier( + PlayingActionModifier::FreeEconomyCollect, + )), ))), ) .skip_json(), @@ -641,7 +649,9 @@ fn test_cultural_influence_instant_with_arts() { Position::from_offset("C2"), Structure::Building(Fortress), ), - PlayingActionType::Custom(CustomActionType::ArtsInfluenceCultureAttempt), + PlayingActionType::Special(SpecialAction::Modifier( + PlayingActionModifier::ArtsInfluenceCultureAttempt, + )), ), )), ) diff --git a/server/tests/civ_greece_tests.rs b/server/tests/civ_greece_tests.rs index 85844baa..746e955c 100644 --- a/server/tests/civ_greece_tests.rs +++ b/server/tests/civ_greece_tests.rs @@ -1,7 +1,7 @@ use crate::common::{JsonTest, TestAction, custom_action, move_action, payment_response}; use server::action::Action; use server::city_pieces::Building; -use server::content::custom_actions::CustomActionType; +use server::content::custom_actions::{CustomActionType, PlayingActionModifier, SpecialAction}; use server::content::persistent_events::{EventResponse, SelectedStructure}; use server::cultural_influence::{InfluenceCultureAttempt, affordable_start_city}; use server::playing_actions::{PlayingAction, PlayingActionType}; @@ -45,8 +45,9 @@ fn sparta_battle() { fn hellenistic_culture_staring_point() { let game = &JSON.load_game("hellenistic_culture"); - let action_type = - &PlayingActionType::Custom(CustomActionType::HellenisticInfluenceCultureAttempt); + let action_type = &PlayingActionType::Special(SpecialAction::Modifier( + PlayingActionModifier::HellenisticInfluenceCultureAttempt, + )); assert_eq!( affordable_start_city( game, @@ -84,9 +85,9 @@ fn hellenistic_culture_cost() { Position::from_offset("C2"), Structure::Building(Building::Port), ), - PlayingActionType::Custom( - CustomActionType::HellenisticInfluenceCultureAttempt, - ), + PlayingActionType::Special(SpecialAction::Modifier( + PlayingActionModifier::HellenisticInfluenceCultureAttempt, + )), ), )), ) diff --git a/server/tests/civ_rome_tests.rs b/server/tests/civ_rome_tests.rs index 561b306a..f46d3881 100644 --- a/server/tests/civ_rome_tests.rs +++ b/server/tests/civ_rome_tests.rs @@ -5,7 +5,7 @@ use server::action::Action; use server::advance::Advance; use server::city_pieces::Building; use server::construct::Construct; -use server::content::custom_actions::CustomActionType; +use server::content::custom_actions::{CustomActionType, PlayingActionModifier, SpecialAction}; use server::happiness::IncreaseHappiness; use server::movement::{MoveUnits, MovementAction}; use server::playing_actions::{PlayingAction, PlayingActionType}; @@ -113,7 +113,9 @@ fn statesman() { Action::Playing(PlayingAction::IncreaseHappiness(IncreaseHappiness::new( vec![(Position::from_offset("A1"), 1)], ResourcePile::mood_tokens(2), - PlayingActionType::Custom(CustomActionType::StatesmanIncreaseHappiness), + PlayingActionType::Special(SpecialAction::Modifier( + PlayingActionModifier::StatesmanIncreaseHappiness, + )), ))), )], ); diff --git a/server/tests/objective_card_status_phase_tests.rs b/server/tests/objective_card_status_phase_tests.rs index b1ebfcd1..b5190d9f 100644 --- a/server/tests/objective_card_status_phase_tests.rs +++ b/server/tests/objective_card_status_phase_tests.rs @@ -63,7 +63,7 @@ fn test_large_civ() { ])), ) .skip_json(), - TestAction::undoable( + TestAction::not_undoable( 0, Action::Response(EventResponse::SelectHandCards(vec![ HandCard::ObjectiveCard(7), @@ -103,7 +103,7 @@ fn test_standing_army() { "standing_army", vec![ TestAction::not_undoable(1, Action::Playing(PlayingAction::EndTurn)).skip_json(), - TestAction::undoable( + TestAction::not_undoable( 0, Action::Response(EventResponse::SelectHandCards(vec![ HandCard::ObjectiveCard(14), diff --git a/server/tests/status_phase_tests.rs b/server/tests/status_phase_tests.rs index 969e7b50..40d46a3a 100644 --- a/server/tests/status_phase_tests.rs +++ b/server/tests/status_phase_tests.rs @@ -28,11 +28,12 @@ fn test_free_advance() { JSON.test( "free_advance", vec![ - TestAction::not_undoable(0, Action::Playing(PlayingAction::EndTurn)), + TestAction::not_undoable(0, Action::Playing(PlayingAction::EndTurn)).skip_json(), TestAction::not_undoable( 1, Action::Response(EventResponse::SelectAdvance(advance::Advance::Storage)), - ), + ) + .skip_json(), TestAction::not_undoable( 0, Action::Response(EventResponse::SelectAdvance(advance::Advance::Philosophy)), @@ -117,7 +118,7 @@ fn test_keep_government() { vec![ TestAction::not_undoable(1, Action::Response(EventResponse::SelectPositions(vec![]))) .skip_json(), - TestAction::undoable(0, payment_response(ResourcePile::empty())), + TestAction::not_undoable(0, payment_response(ResourcePile::empty())), ], ); } diff --git a/server/tests/test_games/action_cards/advance.outcome2.json b/server/tests/test_games/action_cards/advance.outcome2.json index 089a788d..b15a9060 100644 --- a/server/tests/test_games/action_cards/advance.outcome2.json +++ b/server/tests/test_games/action_cards/advance.outcome2.json @@ -198,6 +198,10 @@ "ActionCard": 2 } }, + "player": 0, + "origin": { + "CivilCard": 2 + }, "items": [ { "player": 0, @@ -214,10 +218,6 @@ "Ability": "Action Card" } } - ], - "log": [ - "Player1: Action Card: Play Quick Advance/Encircled", - "Player1: Quick Advance: Pay 1 culture token" ] }, { @@ -230,6 +230,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -237,16 +238,14 @@ "resources": { "culture_tokens": 1 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "CivilCard": 2 } } ], - "log": [ - "Player1: Quick Advance: Pay 1 culture token" - ] + "active_events": 1 }, { "action": { @@ -254,6 +253,7 @@ "SelectAdvance": "Storage" } }, + "player": 0, "items": [ { "player": 0, @@ -271,7 +271,7 @@ "player": 0, "Advance": { "advance": "Storage", - "take_incident_token": false, + "incident_token": "NoChange", "balance": "Gain" }, "origin": { @@ -279,10 +279,7 @@ } } ], - "log": [ - "Player1: Storage: Gain 1 mood token", - "Player1: Quick Advance: Gain Storage without taking an event token" - ] + "active_events": 1 } ] } @@ -316,4 +313,4 @@ "action_cards_discarded": [ 2 ] -} \ No newline at end of file +} diff --git a/server/tests/test_games/action_cards/assassination.outcome3.json b/server/tests/test_games/action_cards/assassination.outcome3.json index 8f3d0aca..8b647d67 100644 --- a/server/tests/test_games/action_cards/assassination.outcome3.json +++ b/server/tests/test_games/action_cards/assassination.outcome3.json @@ -226,6 +226,10 @@ "ActionCard": 27 } }, + "player": 0, + "origin": { + "CivilCard": 27 + }, "items": [ { "player": 0, @@ -242,10 +246,6 @@ "Ability": "Action Card" } } - ], - "log": [ - "Player1: Action Card: Play Assassination/High Ground", - "Player1: Assassination: Pay 1 culture token" ] }, { @@ -258,6 +258,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -265,7 +266,7 @@ "resources": { "culture_tokens": 1 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "CivilCard": 27 @@ -273,15 +274,29 @@ } ], "log": [ - "Player1: Assassination: Pay 1 culture token, Assassinated Player2" - ] + "Player1: Assassination: Assassinated Player2" + ], + "active_events": 1 }, { "action": { "Playing": "EndTurn" }, - "log": [ - "Player1: End Turn: 3 actions left" + "player": 0, + "origin": { + "Ability": "End Turn" + }, + "items": [ + { + "player": 0, + "Action": { + "balance": "Loss", + "amount": 3 + }, + "origin": { + "Ability": "End Turn" + } + } ] } ] @@ -293,6 +308,7 @@ "actions": [ { "action": "StartTurn", + "player": 1, "items": [ { "player": 1, @@ -303,17 +319,27 @@ "Ability": "Assassination" } } - ], - "log": [ - "Player2: Assassination: Lose 1 action" ] }, { "action": { "Playing": "EndTurn" }, - "log": [ - "Player2: End Turn: 2 actions left" + "player": 1, + "origin": { + "Ability": "End Turn" + }, + "items": [ + { + "player": 1, + "Action": { + "balance": "Loss", + "amount": 2 + }, + "origin": { + "Ability": "End Turn" + } + } ] } ] diff --git a/server/tests/test_games/action_cards/city_development.outcome2.json b/server/tests/test_games/action_cards/city_development.outcome2.json index 62f368aa..4699fea4 100644 --- a/server/tests/test_games/action_cards/city_development.outcome2.json +++ b/server/tests/test_games/action_cards/city_development.outcome2.json @@ -217,11 +217,15 @@ "ActionCard": 17 } }, + "player": 0, + "origin": { + "CivilCard": 17 + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "CivilCard": 17 @@ -242,10 +246,6 @@ "Ability": "Action Card" } } - ], - "log": [ - "Player1: City Development: Pay 1 action, Pay 1 culture token", - "Player1: Action Card: Play City Development/Tactical Retreat" ] }, { @@ -258,6 +258,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -265,7 +266,7 @@ "resources": { "culture_tokens": 1 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "CivilCard": 17 @@ -282,8 +283,9 @@ } ], "log": [ - "Player1: City Development: Pay 1 culture token, Gain 1 action, You may build a building in a city without spending an action and without paying resources." - ] + "Player1: City Development: You may build a building in a city without spending an action and without paying resources." + ], + "active_events": 1 }, { "action": { @@ -296,11 +298,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Construct Building" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Construct Building" @@ -310,7 +316,7 @@ "player": 0, "Resources": { "resources": {}, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Construct Building" @@ -331,7 +337,8 @@ "Building": "Fortress" }, "balance": "Gain", - "position": "C2" + "position": "C2", + "port_position": null }, "origin": { "Ability": "Construct Building" @@ -339,7 +346,6 @@ } ], "log": [ - "Player1: Construct Building: Pay 1 action, Pay nothing with Captivi, Construct Only, Gain Fortress at C2", "Player1: Captivi: May replace resources with mood tokens" ] } diff --git a/server/tests/test_games/action_cards/cultural_takeover.outcome2.json b/server/tests/test_games/action_cards/cultural_takeover.outcome2.json index f3119bd4..d8ff1f58 100644 --- a/server/tests/test_games/action_cards/cultural_takeover.outcome2.json +++ b/server/tests/test_games/action_cards/cultural_takeover.outcome2.json @@ -235,6 +235,10 @@ "ActionCard": 15 } }, + "player": 0, + "origin": { + "CivilCard": 15 + }, "items": [ { "player": 0, @@ -253,7 +257,6 @@ } ], "log": [ - "Player1: Action Card: Play Cultural Takeover/Heavy Resistance", "Player1: Cultural Takeover: You may influence Barbarian cities of size 1." ] }, @@ -269,11 +272,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Influence Culture" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Influence Culture" @@ -281,7 +288,7 @@ } ], "log": [ - "Player1: Influence Culture: Pay 1 action, Tried to influence the City Center in the city at B3 by Barbarians with the city A1 and may pay 2 culture tokens to boost the range" + "Player1: Influence Culture: Tried to influence the City Center in the city at B3 by Barbarians with the city A1 and may pay 2 culture tokens to boost the range" ] }, { @@ -294,6 +301,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -301,7 +309,7 @@ "resources": { "culture_tokens": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Influence Culture" @@ -312,7 +320,8 @@ "Structure": { "structure": "CityCenter", "balance": "Loss", - "position": "B3" + "position": "B3", + "port_position": null }, "origin": { "Ability": "Influence Culture" @@ -323,7 +332,8 @@ "Structure": { "structure": "CityCenter", "balance": "Gain", - "position": "B3" + "position": "B3", + "port_position": null }, "origin": { "Ability": "Influence Culture" @@ -335,7 +345,8 @@ "units": { "infantry": 1 }, - "balance": "Gain" + "balance": "Gain", + "position": "B3" }, "origin": { "CivilCard": 15 @@ -343,10 +354,9 @@ } ], "log": [ - "Player1: Influence Culture: Pay 2 culture tokens, Cultural influence succeeded (rolled 6), Gain city B3", - "Barbarians: Influence Culture: Lose city B3", - "Player1: Cultural Takeover: Gain 1 infantry at B3" - ] + "Player1: Influence Culture: Cultural influence succeeded (rolled 6)" + ], + "active_events": 1 } ] } diff --git a/server/tests/test_games/action_cards/explorer.outcome4.json b/server/tests/test_games/action_cards/explorer.outcome4.json index 7e0e202c..c2bb77d5 100644 --- a/server/tests/test_games/action_cards/explorer.outcome4.json +++ b/server/tests/test_games/action_cards/explorer.outcome4.json @@ -358,11 +358,15 @@ "ActionCard": 21 } }, + "player": 1, + "origin": { + "CivilCard": 21 + }, "items": [ { "player": 1, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "CivilCard": 21 @@ -383,10 +387,6 @@ "Ability": "Action Card" } } - ], - "log": [ - "Player2: Explorer: Pay 1 action, Pay 1 culture token", - "Player2: Action Card: Play Explorer/Encircled" ] }, { @@ -399,6 +399,7 @@ ] } }, + "player": 1, "items": [ { "player": 1, @@ -406,16 +407,14 @@ "resources": { "culture_tokens": 1 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "CivilCard": 21 } } ], - "log": [ - "Player2: Explorer: Pay 1 culture token" - ] + "active_events": 1 }, { "action": { @@ -425,9 +424,11 @@ ] } }, + "player": 1, "log": [ "Player2: Explorer: Explored B6" - ] + ], + "active_events": 1 }, { "action": { @@ -435,9 +436,39 @@ "ExploreResolution": 0 } }, + "player": 1, + "items": [ + { + "player": 1, + "Explore": { + "tiles": [ + [ + "B6", + "Fertile" + ], + [ + "A7", + "Fertile" + ], + [ + "C7", + "Fertile" + ], + [ + "B7", + "Barren" + ] + ] + }, + "origin": { + "Ability": "Explore Resolution" + } + } + ], "log": [ - "Player2: Explore Resolution: Chose rotation 0, Explored tiles A7=Fertile, B6=Fertile, B7=Barren, C7=Fertile" - ] + "Player2: Explore Resolution: Chose rotation 0" + ], + "active_events": 2 }, { "action": { @@ -447,6 +478,7 @@ ] } }, + "player": 1, "items": [ { "player": 1, @@ -454,16 +486,15 @@ "units": { "settlers": 1 }, - "balance": "Gain" + "balance": "Gain", + "position": "D8" }, "origin": { "CivilCard": 21 } } ], - "log": [ - "Player2: Explorer: Gain 1 settler at D8" - ] + "active_events": 1 } ] } diff --git a/server/tests/test_games/action_cards/great_ideas.outcome1.json b/server/tests/test_games/action_cards/great_ideas.outcome1.json index 40802b8f..7492b2ea 100644 --- a/server/tests/test_games/action_cards/great_ideas.outcome1.json +++ b/server/tests/test_games/action_cards/great_ideas.outcome1.json @@ -209,6 +209,10 @@ } } }, + "player": 0, + "origin": { + "Ability": "Move" + }, "combat_stats": { "round": 1, "battleground": "City", @@ -233,6 +237,22 @@ "city_mood": "Angry" }, "items": [ + { + "player": 0, + "Move": { + "units": { + "settlers": 2, + "infantry": 2, + "cavalry": 1, + "elephants": 1 + }, + "start": "C2", + "destination": "C1" + }, + "origin": { + "Ability": "Move" + } + }, { "player": 0, "Resources": { @@ -250,7 +270,8 @@ "Structure": { "structure": "CityCenter", "balance": "Loss", - "position": "C1" + "position": "C1", + "port_position": null }, "origin": { "Ability": "Combat" @@ -261,18 +282,25 @@ "Structure": { "structure": "CityCenter", "balance": "Gain", - "position": "C1" + "position": "C1", + "port_position": null }, "origin": { "Ability": "Combat" } + }, + { + "player": 0, + "Resources": { + "resources": { + "gold": 1 + }, + "balance": "Loss" + }, + "origin": { + "Ability": "Waste" + } } - ], - "log": [ - "Player1: Move: marched 2 settlers, 2 infantry, 1 cavalry and 1 elephant from C2 to C1", - "Player1: Combat: Gain 1 gold, Gain city C1", - "Player2: Combat: Lose city C1", - "Player1: Waste: Could not store 1 gold" ] }, { @@ -281,6 +309,10 @@ "ActionCard": 11 } }, + "player": 0, + "origin": { + "CivilCard": 11 + }, "items": [ { "player": 0, @@ -309,10 +341,6 @@ "CivilCard": 11 } } - ], - "log": [ - "Player1: Action Card: Play Great Ideas/Siege", - "Player1: Great Ideas: Gain 2 ideas" ] } ] diff --git a/server/tests/test_games/action_cards/hero_general.outcome1.json b/server/tests/test_games/action_cards/hero_general.outcome1.json index 128b8e7a..5f20d542 100644 --- a/server/tests/test_games/action_cards/hero_general.outcome1.json +++ b/server/tests/test_games/action_cards/hero_general.outcome1.json @@ -209,8 +209,29 @@ } } }, + "player": 0, + "origin": { + "Ability": "Move" + }, + "items": [ + { + "player": 0, + "Move": { + "units": { + "settlers": 2, + "infantry": 2, + "cavalry": 1, + "elephants": 1 + }, + "start": "C2", + "destination": "C1" + }, + "origin": { + "Ability": "Move" + } + } + ], "log": [ - "Player1: Move: marched 2 settlers, 2 infantry, 1 cavalry and 1 elephant from C2 to C1", "Combat round 1", "Player1: Combat: Attacking with 2 settlers, 2 infantry, 1 cavalry and 1 elephant", "Player2: Combat: Defending with 2 infantry" @@ -222,6 +243,7 @@ "SelectHandCards": [] } }, + "player": 0, "combat_stats": { "round": 1, "battleground": "City", @@ -255,7 +277,8 @@ "units": { "infantry": 2 }, - "balance": "Loss" + "balance": "Loss", + "position": "C1" }, "origin": { "Ability": "Combat" @@ -278,7 +301,8 @@ "Structure": { "structure": "CityCenter", "balance": "Loss", - "position": "C1" + "position": "C1", + "port_position": null }, "origin": { "Ability": "Combat" @@ -289,21 +313,34 @@ "Structure": { "structure": "CityCenter", "balance": "Gain", - "position": "C1" + "position": "C1", + "port_position": null }, "origin": { "Ability": "Combat" } + }, + { + "player": 0, + "Resources": { + "resources": { + "gold": 1 + }, + "balance": "Loss" + }, + "origin": { + "Ability": "Waste" + } } ], "log": [ "Player1: Tactics: Did not play a Tactics Card", - "Player1: Combat: Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value), 6 (infantry, no bonus), 6 (infantry, no bonus) for combined combat value of 26 and gets 2 hits against defending units, Gain 1 gold, Gain city C1", - "Player2: Combat: Roll 1 (leader, no bonus), 1 (leader, no bonus) for combined combat value of 2 and gets 0 hits against attacking units, Lost 2 infantry at C1, Lose city C1", + "Player1: Combat: Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value), 6 (infantry, no bonus), 6 (infantry, no bonus) for combined combat value of 26 and gets 2 hits against defending units", + "Player2: Combat: Roll 1 (leader, no bonus), 1 (leader, no bonus) for combined combat value of 2 and gets 0 hits against attacking units", "Player2: Choose Casualties: Remove all defending units", - "Attacker wins", - "Player1: Waste: Could not store 1 gold" - ] + "Attacker wins" + ], + "active_events": 1 } ] } diff --git a/server/tests/test_games/action_cards/hero_general.outcome5.json b/server/tests/test_games/action_cards/hero_general.outcome5.json index e96a3885..d794e9f8 100644 --- a/server/tests/test_games/action_cards/hero_general.outcome5.json +++ b/server/tests/test_games/action_cards/hero_general.outcome5.json @@ -206,8 +206,29 @@ } } }, + "player": 0, + "origin": { + "Ability": "Move" + }, + "items": [ + { + "player": 0, + "Move": { + "units": { + "settlers": 2, + "infantry": 2, + "cavalry": 1, + "elephants": 1 + }, + "start": "C2", + "destination": "C1" + }, + "origin": { + "Ability": "Move" + } + } + ], "log": [ - "Player1: Move: marched 2 settlers, 2 infantry, 1 cavalry and 1 elephant from C2 to C1", "Combat round 1", "Player1: Combat: Attacking with 2 settlers, 2 infantry, 1 cavalry and 1 elephant", "Player2: Combat: Defending with 2 infantry" @@ -219,6 +240,7 @@ "SelectHandCards": [] } }, + "player": 0, "combat_stats": { "round": 1, "battleground": "City", @@ -255,7 +277,8 @@ "units": { "infantry": 2 }, - "balance": "Loss" + "balance": "Loss", + "position": "C1" }, "origin": { "Ability": "Combat" @@ -278,7 +301,8 @@ "Structure": { "structure": "CityCenter", "balance": "Loss", - "position": "C1" + "position": "C1", + "port_position": null }, "origin": { "Ability": "Combat" @@ -289,21 +313,34 @@ "Structure": { "structure": "CityCenter", "balance": "Gain", - "position": "C1" + "position": "C1", + "port_position": null }, "origin": { "Ability": "Combat" } + }, + { + "player": 0, + "Resources": { + "resources": { + "gold": 1 + }, + "balance": "Loss" + }, + "origin": { + "Ability": "Waste" + } } ], "log": [ "Player1: Tactics: Did not play a Tactics Card", - "Player1: Combat: Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value), 6 (infantry, no bonus), 6 (infantry, no bonus) for combined combat value of 26 and gets 2 hits against defending units, Gain 1 gold, Gain city C1", - "Player2: Combat: Roll 1 (leader, no bonus), 1 (leader, no bonus) for combined combat value of 2 and gets 0 hits against attacking units, Lost 2 infantry at C1, Lose city C1", + "Player1: Combat: Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value), 6 (infantry, no bonus), 6 (infantry, no bonus) for combined combat value of 26 and gets 2 hits against defending units", + "Player2: Combat: Roll 1 (leader, no bonus), 1 (leader, no bonus) for combined combat value of 2 and gets 0 hits against attacking units", "Player2: Choose Casualties: Remove all defending units", - "Attacker wins", - "Player1: Waste: Could not store 1 gold" - ] + "Attacker wins" + ], + "active_events": 1 }, { "action": { @@ -311,6 +348,10 @@ "ActionCard": 5 } }, + "player": 0, + "origin": { + "CivilCard": 5 + }, "items": [ { "player": 0, @@ -327,9 +368,6 @@ "Ability": "Action Card" } } - ], - "log": [ - "Player1: Action Card: Play Hero General/Wedge Formation" ] }, { @@ -340,6 +378,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -352,9 +391,7 @@ } } ], - "log": [ - "Player1: Hero General: City C1 became Neutral" - ] + "active_events": 1 }, { "action": { @@ -366,6 +403,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -373,16 +411,14 @@ "resources": { "mood_tokens": 1 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "CivilCard": 5 } } ], - "log": [ - "Player1: Hero General: Pay 1 mood token" - ] + "active_events": 1 }, { "action": { @@ -392,6 +428,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -404,9 +441,7 @@ } } ], - "log": [ - "Player1: Hero General: City C2 became Happy" - ] + "active_events": 1 } ] } diff --git a/server/tests/test_games/action_cards/ideas.outcome.json b/server/tests/test_games/action_cards/ideas.outcome.json index 87cd0b3c..ccf5e004 100644 --- a/server/tests/test_games/action_cards/ideas.outcome.json +++ b/server/tests/test_games/action_cards/ideas.outcome.json @@ -201,6 +201,10 @@ "ActionCard": 9 } }, + "player": 0, + "origin": { + "CivilCard": 9 + }, "items": [ { "player": 0, @@ -229,10 +233,6 @@ "CivilCard": 9 } } - ], - "log": [ - "Player1: Action Card: Play Ideas/High Ground", - "Player1: Ideas: Gain 1 idea" ] } ] diff --git a/server/tests/test_games/action_cards/inspiration.outcome.json b/server/tests/test_games/action_cards/inspiration.outcome.json index ee3a931c..65447e07 100644 --- a/server/tests/test_games/action_cards/inspiration.outcome.json +++ b/server/tests/test_games/action_cards/inspiration.outcome.json @@ -199,6 +199,10 @@ "ActionCard": 3 } }, + "player": 0, + "origin": { + "CivilCard": 3 + }, "items": [ { "player": 0, @@ -231,18 +235,13 @@ "player": 0, "Advance": { "advance": "Storage", - "take_incident_token": false, + "incident_token": "NoChange", "balance": "Gain" }, "origin": { "CivilCard": 3 } } - ], - "log": [ - "Player1: Action Card: Play Inspiration/Encircled", - "Player1: Storage: Gain 1 mood token", - "Player1: Inspiration: Gain Storage without taking an event token" ] } ] diff --git a/server/tests/test_games/action_cards/mass_production.outcome1.json b/server/tests/test_games/action_cards/mass_production.outcome1.json index 8e3d2554..a6537ea9 100644 --- a/server/tests/test_games/action_cards/mass_production.outcome1.json +++ b/server/tests/test_games/action_cards/mass_production.outcome1.json @@ -220,6 +220,10 @@ "ActionCard": 29 } }, + "player": 0, + "origin": { + "CivilCard": 29 + }, "items": [ { "player": 0, @@ -238,7 +242,6 @@ } ], "log": [ - "Player1: Action Card: Play Mass Production/Defensive Formation", "Player1: Mass Production: Can use Mass Production to collect from 2 additional tiles." ] }, @@ -274,11 +277,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Collect" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Collect" @@ -298,9 +305,6 @@ "Ability": "Collect" } } - ], - "log": [ - "Player1: Collect: Pay 1 action, Use city C2, Gain 1 wood, 1 ore and 1 mood token" ] } ] diff --git a/server/tests/test_games/action_cards/mercenaries.outcome2.json b/server/tests/test_games/action_cards/mercenaries.outcome2.json index 94161501..842e33d6 100644 --- a/server/tests/test_games/action_cards/mercenaries.outcome2.json +++ b/server/tests/test_games/action_cards/mercenaries.outcome2.json @@ -242,11 +242,15 @@ "ActionCard": 13 } }, + "player": 0, + "origin": { + "CivilCard": 13 + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "CivilCard": 13 @@ -269,8 +273,7 @@ } ], "log": [ - "Player1: Mercenaries: Pay 1 action, Player1 cannot move Barbarian army at A3 because Sulla is in range", - "Player1: Action Card: Play Mercenaries/For the People" + "Player1: Mercenaries: Player1 cannot move Barbarian army at A3 because Sulla is in range" ] }, { @@ -281,9 +284,11 @@ ] } }, + "player": 0, "log": [ "Player1: Mercenaries: Selected Barbarian armies to move: B3" - ] + ], + "active_events": 1 }, { "action": { @@ -295,6 +300,7 @@ ] } }, + "player": 0, "combat_stats": { "round": 1, "battleground": "Land", @@ -327,7 +333,20 @@ "resources": { "ore": 1 }, - "balance": "Loss" + "balance": "Pay" + }, + "origin": { + "CivilCard": 13 + } + }, + { + "player": 0, + "Move": { + "units": { + "infantry": 2 + }, + "start": "B3", + "destination": "B2" }, "origin": { "CivilCard": 13 @@ -339,7 +358,8 @@ "units": { "infantry": 1 }, - "balance": "Loss" + "balance": "Loss", + "position": "B3" }, "origin": { "Ability": "Combat" @@ -351,7 +371,8 @@ "units": { "infantry": 1 }, - "balance": "Loss" + "balance": "Loss", + "position": "B2" }, "origin": { "Ability": "Combat" @@ -363,7 +384,8 @@ "units": { "infantry": 1 }, - "balance": "Gain" + "balance": "Gain", + "position": "B3" }, "origin": { "CivilCard": 13 @@ -371,15 +393,15 @@ } ], "log": [ - "Player1: Mercenaries: Pay 1 ore, Selected Barbarian army to move: B3, Selected destination for Barbarian army: B2, marched 2 infantry from B3 to B2", + "Player1: Mercenaries: Selected Barbarian army to move: B3, Selected destination for Barbarian army: B2", "Combat round 1", - "Barbarians: Combat: Attacking with 2 infantry, Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value) for combined combat value of 14 and gets 1 hits against defending units, Lost 1 infantry at B3", - "Player1: Combat: Defending with 1 infantry, Roll 6 (infantry, +1 combat value) for combined combat value of 7 and gets 1 hits against attacking units, Lost 1 infantry at B2", + "Barbarians: Combat: Attacking with 2 infantry, Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value) for combined combat value of 14 and gets 1 hits against defending units", + "Player1: Combat: Defending with 1 infantry, Roll 6 (infantry, +1 combat value) for combined combat value of 7 and gets 1 hits against attacking units", "Barbarians: Choose Casualties: Remove 1 of their attacking units", "Player1: Choose Casualties: Remove all defending units", - "Attacker wins", - "Barbarians: Mercenaries: Gain 1 infantry at B3" - ] + "Attacker wins" + ], + "active_events": 1 } ] } diff --git a/server/tests/test_games/action_cards/militia.outcome1.json b/server/tests/test_games/action_cards/militia.outcome1.json index 4380eed9..e7a3dbca 100644 --- a/server/tests/test_games/action_cards/militia.outcome1.json +++ b/server/tests/test_games/action_cards/militia.outcome1.json @@ -199,6 +199,10 @@ "ActionCard": 37 } }, + "player": 0, + "origin": { + "CivilCard": 37 + }, "items": [ { "player": 0, @@ -215,10 +219,6 @@ "Ability": "Action Card" } } - ], - "log": [ - "Player1: Action Card: Play Militia/Wedge Formation", - "Player1: Militia: Pay 1 culture token" ] }, { @@ -231,6 +231,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -238,7 +239,7 @@ "resources": { "culture_tokens": 1 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "CivilCard": 37 @@ -250,16 +251,15 @@ "units": { "infantry": 1 }, - "balance": "Gain" + "balance": "Gain", + "position": "A1" }, "origin": { "CivilCard": 37 } } ], - "log": [ - "Player1: Militia: Pay 1 culture token, Gain 1 infantry at A1" - ] + "active_events": 1 } ] } diff --git a/server/tests/test_games/action_cards/negotiations.outcome4.json b/server/tests/test_games/action_cards/negotiations.outcome4.json index 4a6f43b8..15aa2108 100644 --- a/server/tests/test_games/action_cards/negotiations.outcome4.json +++ b/server/tests/test_games/action_cards/negotiations.outcome4.json @@ -221,6 +221,10 @@ "ActionCard": 23 } }, + "player": 0, + "origin": { + "CivilCard": 23 + }, "items": [ { "player": 0, @@ -237,10 +241,6 @@ "Ability": "Action Card" } } - ], - "log": [ - "Player1: Action Card: Play Negotiations/Scout", - "Player1: Negotiations: Pay 1 culture token" ] }, { @@ -253,6 +253,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -260,7 +261,7 @@ "resources": { "culture_tokens": 1 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "CivilCard": 23 @@ -268,15 +269,29 @@ } ], "log": [ - "Player1: Negotiations: Pay 1 culture token, Started negotiations with Player2" - ] + "Player1: Negotiations: Started negotiations with Player2" + ], + "active_events": 1 }, { "action": { "Playing": "EndTurn" }, - "log": [ - "Player1: End Turn: 3 actions left" + "player": 0, + "origin": { + "Ability": "End Turn" + }, + "items": [ + { + "player": 0, + "Action": { + "balance": "Loss", + "amount": 3 + }, + "origin": { + "Ability": "End Turn" + } + } ] } ] @@ -288,6 +303,7 @@ "actions": [ { "action": "StartTurn", + "player": 1, "log": [ "Player2: Negotiations: May not attack Player1 this turn." ] @@ -296,8 +312,21 @@ "action": { "Playing": "EndTurn" }, - "log": [ - "Player2: End Turn: 3 actions left" + "player": 1, + "origin": { + "Ability": "End Turn" + }, + "items": [ + { + "player": 1, + "Action": { + "balance": "Loss", + "amount": 3 + }, + "origin": { + "Ability": "End Turn" + } + } ] } ] @@ -314,6 +343,7 @@ "actions": [ { "action": "StartTurn", + "player": 0, "log": [ "Player1: Negotiations: May attack Player2 again." ] @@ -329,6 +359,10 @@ } } }, + "player": 0, + "origin": { + "Ability": "Move" + }, "combat_stats": { "round": 1, "battleground": "Land", @@ -355,10 +389,23 @@ "result": "Draw" }, "items": [ + { + "player": 0, + "Move": { + "units": { + "infantry": 1 + }, + "start": "C2", + "destination": "B1" + }, + "origin": { + "Ability": "Move" + } + }, { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Move" @@ -370,7 +417,8 @@ "units": { "infantry": 1 }, - "balance": "Loss" + "balance": "Loss", + "position": "C2" }, "origin": { "Ability": "Combat" @@ -382,7 +430,8 @@ "units": { "infantry": 1 }, - "balance": "Loss" + "balance": "Loss", + "position": "B1" }, "origin": { "Ability": "Combat" @@ -390,10 +439,9 @@ } ], "log": [ - "Player1: Move: marched 1 infantry from C2 to B1, Pay 1 action", "Combat round 1", - "Player1: Combat: Attacking with 1 infantry, Roll 6 (infantry, +1 combat value) for combined combat value of 7 and gets 1 hits against defending units, Lost 1 infantry at C2", - "Player2: Combat: Defending with 1 infantry, Roll 6 (infantry, +1 combat value) for combined combat value of 7 and gets 1 hits against attacking units, Lost 1 infantry at B1", + "Player1: Combat: Attacking with 1 infantry, Roll 6 (infantry, +1 combat value) for combined combat value of 7 and gets 1 hits against defending units", + "Player2: Combat: Defending with 1 infantry, Roll 6 (infantry, +1 combat value) for combined combat value of 7 and gets 1 hits against attacking units", "Player1: Choose Casualties: Remove all attacking units", "Player2: Choose Casualties: Remove all defending units", "Battle ends in a draw" diff --git a/server/tests/test_games/action_cards/new_ideas.outcome2.json b/server/tests/test_games/action_cards/new_ideas.outcome2.json index fbfb9c66..c4e3c164 100644 --- a/server/tests/test_games/action_cards/new_ideas.outcome2.json +++ b/server/tests/test_games/action_cards/new_ideas.outcome2.json @@ -200,11 +200,15 @@ "ActionCard": 41 } }, + "player": 0, + "origin": { + "CivilCard": 41 + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "CivilCard": 41 @@ -225,10 +229,6 @@ "Ability": "Action Card" } } - ], - "log": [ - "Player1: New Ideas: Pay 1 action", - "Player1: Action Card: Play New Ideas/High Morale" ] }, { @@ -237,9 +237,11 @@ "SelectAdvance": "Storage" } }, + "player": 0, "log": [ "Player1: New Ideas: Selected Storage as advance for New Ideas." - ] + ], + "active_events": 1 }, { "action": { @@ -251,6 +253,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -258,7 +261,7 @@ "resources": { "food": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -280,7 +283,7 @@ "player": 0, "Advance": { "advance": "Storage", - "take_incident_token": false, + "incident_token": "NoChange", "balance": "Gain" }, "origin": { @@ -300,11 +303,7 @@ } } ], - "log": [ - "Player1: Advance: Pay 2 food", - "Player1: Storage: Gain 1 mood token", - "Player1: New Ideas: Gain Storage without taking an event token, Gain 2 ideas" - ] + "active_events": 1 } ] } diff --git a/server/tests/test_games/action_cards/new_plans.outcome2.json b/server/tests/test_games/action_cards/new_plans.outcome2.json index dd85eee0..6d631cad 100644 --- a/server/tests/test_games/action_cards/new_plans.outcome2.json +++ b/server/tests/test_games/action_cards/new_plans.outcome2.json @@ -210,11 +210,15 @@ "ActionCard": 31 } }, + "player": 0, + "origin": { + "CivilCard": 31 + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "CivilCard": 31 @@ -235,10 +239,6 @@ "Ability": "Action Card" } } - ], - "log": [ - "Player1: New Plans: Pay 1 action, Pay 1 culture token", - "Player1: Action Card: Play New Plans/Flanking" ] }, { @@ -251,6 +251,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -258,7 +259,7 @@ "resources": { "culture_tokens": 1 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "CivilCard": 31 @@ -295,9 +296,7 @@ } } ], - "log": [ - "Player1: New Plans: Pay 1 culture token, Draw an objective card, Draw an objective card" - ] + "active_events": 1 }, { "action": { @@ -312,6 +311,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -344,9 +344,7 @@ } } ], - "log": [ - "Player1: New Plans: Shuffle an objective card back into the draw pile, Reshuffled a card from the draw pile back into the draw pile" - ] + "active_events": 1 } ] } diff --git a/server/tests/test_games/action_cards/production_focus.outcome1.json b/server/tests/test_games/action_cards/production_focus.outcome1.json index 8e2b00cb..6452d873 100644 --- a/server/tests/test_games/action_cards/production_focus.outcome1.json +++ b/server/tests/test_games/action_cards/production_focus.outcome1.json @@ -221,6 +221,10 @@ "ActionCard": 19 } }, + "player": 0, + "origin": { + "CivilCard": 19 + }, "items": [ { "player": 0, @@ -239,7 +243,6 @@ } ], "log": [ - "Player1: Action Card: Play Production Focus/Tactical Retreat", "Player1: Production Focus: Production Focus: You may collect multiple times from the same tile." ] }, @@ -275,11 +278,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Collect" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Collect" @@ -298,11 +305,19 @@ "origin": { "Ability": "Collect" } + }, + { + "player": 0, + "Resources": { + "resources": { + "gold": 1 + }, + "balance": "Loss" + }, + "origin": { + "Ability": "Waste" + } } - ], - "log": [ - "Player1: Collect: Pay 1 action, Use city C2, Gain 2 ore, 1 gold and 2 mood tokens", - "Player1: Waste: Could not store 1 gold" ] } ] diff --git a/server/tests/test_games/action_cards/spy.outcome2.json b/server/tests/test_games/action_cards/spy.outcome2.json index 717fac5f..637a0a49 100644 --- a/server/tests/test_games/action_cards/spy.outcome2.json +++ b/server/tests/test_games/action_cards/spy.outcome2.json @@ -214,11 +214,15 @@ "ActionCard": 7 } }, + "player": 0, + "origin": { + "CivilCard": 7 + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "CivilCard": 7 @@ -239,10 +243,6 @@ "Ability": "Action Card" } } - ], - "log": [ - "Player1: Spy: Pay 1 action, Pay 1 culture token", - "Player1: Action Card: Play Spy/Heavy Resistance" ] }, { @@ -255,6 +255,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -262,7 +263,7 @@ "resources": { "culture_tokens": 1 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "CivilCard": 7 @@ -270,8 +271,9 @@ } ], "log": [ - "Player1: Spy: Pay 1 culture token, Decided to looked at all Wonder, Action, and Objective cards of Player2" - ] + "Player1: Spy: Decided to looked at all Wonder, Action, and Objective cards of Player2" + ], + "active_events": 1 }, { "action": { @@ -286,6 +288,7 @@ ] } }, + "player": 0, "items": [ { "player": 1, @@ -323,9 +326,9 @@ } ], "log": [ - "Player2: Spy: Gain an action card from Player1", - "Player1: Spy: Gain an action card from Player2, Decided to swap an action card with Player2" - ] + "Player1: Spy: Decided to swap an action card with Player2" + ], + "active_events": 1 } ] } diff --git a/server/tests/test_games/action_cards/synergies.outcome4.json b/server/tests/test_games/action_cards/synergies.outcome4.json index 2e0a9b69..3f02b0ac 100644 --- a/server/tests/test_games/action_cards/synergies.outcome4.json +++ b/server/tests/test_games/action_cards/synergies.outcome4.json @@ -219,11 +219,15 @@ "ActionCard": 34 } }, + "player": 0, + "origin": { + "CivilCard": 34 + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "CivilCard": 34 @@ -244,10 +248,6 @@ "Ability": "Action Card" } } - ], - "log": [ - "Player1: Synergies: Pay 1 action", - "Player1: Action Card: Play Synergies/Archers" ] }, { @@ -256,9 +256,11 @@ "SelectAdvance": "Fishing" } }, + "player": 0, "log": [ "Player1: Synergies: Selected Fishing as first advance" - ] + ], + "active_events": 1 }, { "action": { @@ -270,6 +272,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -277,7 +280,7 @@ "resources": { "ideas": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -299,7 +302,7 @@ "player": 0, "Advance": { "advance": "Fishing", - "take_incident_token": false, + "incident_token": "NoChange", "balance": "Gain" }, "origin": { @@ -307,11 +310,7 @@ } } ], - "log": [ - "Player1: Advance: Pay 2 ideas", - "Player1: Fishing: Gain 1 mood token", - "Player1: Synergies: Gain Fishing without taking an event token" - ] + "active_events": 1 }, { "action": { @@ -319,9 +318,11 @@ "SelectAdvance": "WarShips" } }, + "player": 0, "log": [ "Player1: Synergies: Selected WarShips as second advance" - ] + ], + "active_events": 1 }, { "action": { @@ -333,6 +334,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -340,7 +342,7 @@ "resources": { "ideas": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -350,7 +352,7 @@ "player": 0, "Advance": { "advance": "WarShips", - "take_incident_token": false, + "incident_token": "NoChange", "balance": "Gain" }, "origin": { @@ -358,10 +360,7 @@ } } ], - "log": [ - "Player1: Advance: Pay 2 ideas", - "Player1: Synergies: Gain WarShips without taking an event token" - ] + "active_events": 1 } ] } diff --git a/server/tests/test_games/action_cards/teach_us.outcome1.json b/server/tests/test_games/action_cards/teach_us.outcome1.json index 5ebe587c..e22a2bd1 100644 --- a/server/tests/test_games/action_cards/teach_us.outcome1.json +++ b/server/tests/test_games/action_cards/teach_us.outcome1.json @@ -213,6 +213,10 @@ } } }, + "player": 0, + "origin": { + "Ability": "Move" + }, "combat_stats": { "round": 1, "battleground": "City", @@ -240,13 +244,30 @@ "city_mood": "Angry" }, "items": [ + { + "player": 0, + "Move": { + "units": { + "settlers": 2, + "infantry": 2, + "cavalry": 1, + "elephants": 1 + }, + "start": "C2", + "destination": "C1" + }, + "origin": { + "Ability": "Move" + } + }, { "player": 1, "Units": { "units": { "infantry": 2 }, - "balance": "Loss" + "balance": "Loss", + "position": "C1" }, "origin": { "Ability": "Combat" @@ -269,7 +290,8 @@ "Structure": { "structure": "CityCenter", "balance": "Loss", - "position": "C1" + "position": "C1", + "port_position": null }, "origin": { "Ability": "Combat" @@ -280,21 +302,32 @@ "Structure": { "structure": "CityCenter", "balance": "Gain", - "position": "C1" + "position": "C1", + "port_position": null }, "origin": { "Ability": "Combat" } + }, + { + "player": 0, + "Resources": { + "resources": { + "gold": 1 + }, + "balance": "Loss" + }, + "origin": { + "Ability": "Waste" + } } ], "log": [ - "Player1: Move: marched 2 settlers, 2 infantry, 1 cavalry and 1 elephant from C2 to C1", "Combat round 1", - "Player1: Combat: Attacking with 2 settlers, 2 infantry, 1 cavalry and 1 elephant, Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value), 6 (infantry, no bonus), 6 (infantry, no bonus) for combined combat value of 26 and gets 2 hits against defending units, Gain 1 gold, Gain city C1", - "Player2: Combat: Defending with 2 infantry, Roll 1 (leader, no bonus), 1 (leader, no bonus) for combined combat value of 2 and gets 0 hits against attacking units, Lost 2 infantry at C1, Lose city C1", + "Player1: Combat: Attacking with 2 settlers, 2 infantry, 1 cavalry and 1 elephant, Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value), 6 (infantry, no bonus), 6 (infantry, no bonus) for combined combat value of 26 and gets 2 hits against defending units", + "Player2: Combat: Defending with 2 infantry, Roll 1 (leader, no bonus), 1 (leader, no bonus) for combined combat value of 2 and gets 0 hits against attacking units", "Player2: Choose Casualties: Remove all defending units", - "Attacker wins", - "Player1: Waste: Could not store 1 gold" + "Attacker wins" ] }, { @@ -307,6 +340,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -369,7 +403,7 @@ "player": 0, "Advance": { "advance": "Writing", - "take_incident_token": false, + "incident_token": "NoChange", "balance": "Gain" }, "origin": { @@ -377,10 +411,7 @@ } } ], - "log": [ - "Player1: Teach us: Play Teach Us/Defensive Formation, Gain Writing without taking an event token", - "Player1: Writing: Draw an action card, Draw an objective card, Gain 1 culture token" - ] + "active_events": 1 } ] } diff --git a/server/tests/test_games/action_cards/tech_trade.outcome.json b/server/tests/test_games/action_cards/tech_trade.outcome.json index 7fb2b3f5..5e926151 100644 --- a/server/tests/test_games/action_cards/tech_trade.outcome.json +++ b/server/tests/test_games/action_cards/tech_trade.outcome.json @@ -211,6 +211,10 @@ "ActionCard": 39 } }, + "player": 0, + "origin": { + "CivilCard": 39 + }, "items": [ { "player": 0, @@ -243,7 +247,7 @@ "player": 0, "Advance": { "advance": "Storage", - "take_incident_token": false, + "incident_token": "NoChange", "balance": "Gain" }, "origin": { @@ -266,7 +270,7 @@ "player": 1, "Advance": { "advance": "Fishing", - "take_incident_token": false, + "incident_token": "NoChange", "balance": "Gain" }, "origin": { @@ -275,11 +279,7 @@ } ], "log": [ - "Player1: Action Card: Play Technology Trade/Surprise", - "Player1: Technology Trade: Selected Player2 as trade partner, Gain Storage without taking an event token", - "Player1: Storage: Gain 1 mood token", - "Player2: Fishing: Gain 1 mood token", - "Player2: Technology Trade: Gain Fishing without taking an event token" + "Player1: Technology Trade: Selected Player2 as trade partner" ] } ] diff --git a/server/tests/test_games/advances/absolute_power.outcome1.json b/server/tests/test_games/advances/absolute_power.outcome1.json index 16223758..2fb05902 100644 --- a/server/tests/test_games/advances/absolute_power.outcome1.json +++ b/server/tests/test_games/advances/absolute_power.outcome1.json @@ -102,7 +102,9 @@ ], "next_unit_id": 7, "played_once_per_turn_actions": [ - "AbsolutePower" + { + "Custom": "AbsolutePower" + } ] }, { @@ -240,9 +242,10 @@ } } }, - "log": [ - "Player1: Absolute Power: Start action, Pay 2 mood tokens" - ] + "player": 0, + "origin": { + "Advance": "AbsolutePower" + } }, { "action": { @@ -254,6 +257,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -261,7 +265,7 @@ "resources": { "mood_tokens": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Advance": "AbsolutePower" @@ -277,9 +281,7 @@ } } ], - "log": [ - "Player1: Absolute Power: Pay 2 mood tokens, Gain 1 action" - ] + "active_events": 1 } ] } diff --git a/server/tests/test_games/advances/bartering.outcome1.json b/server/tests/test_games/advances/bartering.outcome1.json index e1ebe0ca..d84e3f5e 100644 --- a/server/tests/test_games/advances/bartering.outcome1.json +++ b/server/tests/test_games/advances/bartering.outcome1.json @@ -88,7 +88,9 @@ "incident_tokens": 2, "next_unit_id": 8, "played_once_per_turn_actions": [ - "Bartering" + { + "Custom": "Bartering" + } ] }, { @@ -206,6 +208,10 @@ } } }, + "player": 0, + "origin": { + "Advance": "Bartering" + }, "items": [ { "player": 0, @@ -222,9 +228,6 @@ "Ability": "Bartering" } } - ], - "log": [ - "Player1: Bartering: Start action, Discard Quick Advance/Peltasts" ] }, { @@ -235,6 +238,7 @@ } } }, + "player": 0, "items": [ { "player": 0, @@ -247,12 +251,21 @@ "origin": { "Ability": "Bartering" } + }, + { + "player": 0, + "Resources": { + "resources": { + "gold": 1 + }, + "balance": "Loss" + }, + "origin": { + "Ability": "Waste" + } } ], - "log": [ - "Player1: Bartering: Gain 1 gold", - "Player1: Waste: Could not store 1 gold" - ] + "active_events": 1 } ] } diff --git a/server/tests/test_games/advances/civil_liberties.outcome.json b/server/tests/test_games/advances/civil_liberties.outcome.json index 36d90420..8b6bb516 100644 --- a/server/tests/test_games/advances/civil_liberties.outcome.json +++ b/server/tests/test_games/advances/civil_liberties.outcome.json @@ -203,11 +203,15 @@ } } }, + "player": 0, + "origin": { + "Advance": "CivilLiberties" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Advance": "CivilLiberties" @@ -225,9 +229,6 @@ "Ability": "Civil Liberties" } } - ], - "log": [ - "Player1: Civil Liberties: Pay 1 action, Start action, Gain 3 mood tokens" ] } ] diff --git a/server/tests/test_games/advances/civil_liberties.outcome1.json b/server/tests/test_games/advances/civil_liberties.outcome1.json index dcde4a7b..196767f8 100644 --- a/server/tests/test_games/advances/civil_liberties.outcome1.json +++ b/server/tests/test_games/advances/civil_liberties.outcome1.json @@ -209,11 +209,15 @@ } } }, + "player": 0, + "origin": { + "Advance": "CivilLiberties" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Advance": "CivilLiberties" @@ -231,9 +235,6 @@ "Ability": "Civil Liberties" } } - ], - "log": [ - "Player1: Civil Liberties: Pay 1 action, Start action, Gain 3 mood tokens" ] }, { @@ -250,11 +251,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Recruit" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Recruit" @@ -266,7 +271,7 @@ "resources": { "mood_tokens": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Recruit" @@ -283,7 +288,8 @@ "units": { "infantry": 1 }, - "balance": "Gain" + "balance": "Gain", + "position": "A1" }, "origin": { "Ability": "Recruit" @@ -291,7 +297,6 @@ } ], "log": [ - "Player1: Recruit: Pay 1 action, Pay 2 mood tokens with Draft, Gain 1 infantry at A1", "Player1: Draft: Reduce the cost of 1 Infantry to 1 mood token" ] } diff --git a/server/tests/test_games/advances/collect_fishing.outcome.json b/server/tests/test_games/advances/collect_fishing.outcome.json index ef0d8628..8b74cfad 100644 --- a/server/tests/test_games/advances/collect_fishing.outcome.json +++ b/server/tests/test_games/advances/collect_fishing.outcome.json @@ -296,11 +296,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Collect" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Collect" @@ -317,11 +321,19 @@ "origin": { "Ability": "Collect" } + }, + { + "player": 0, + "Resources": { + "resources": { + "food": 1 + }, + "balance": "Loss" + }, + "origin": { + "Ability": "Waste" + } } - ], - "log": [ - "Player1: Collect: Pay 1 action, Use city C2, Gain 1 food", - "Player1: Waste: Could not store 1 food" ] } ] diff --git a/server/tests/test_games/advances/collect_free_economy.outcome2.json b/server/tests/test_games/advances/collect_free_economy.outcome2.json index 7e43a6fe..8c71dc55 100644 --- a/server/tests/test_games/advances/collect_free_economy.outcome2.json +++ b/server/tests/test_games/advances/collect_free_economy.outcome2.json @@ -91,7 +91,9 @@ ], "next_unit_id": 8, "played_once_per_turn_actions": [ - "FreeEconomyCollect" + { + "Modifier": "FreeEconomyCollect" + } ] }, { @@ -223,14 +225,17 @@ } ], "action_type": { - "Custom": "FreeEconomyCollect" + "Special": { + "Modifier": "FreeEconomyCollect" + } } } } }, - "log": [ - "Player1: Free Economy: Pay 1 mood token" - ] + "player": 0, + "origin": { + "Advance": "FreeEconomy" + } }, { "action": { @@ -242,6 +247,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -249,7 +255,7 @@ "resources": { "mood_tokens": 1 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Advance": "FreeEconomy" @@ -268,9 +274,7 @@ } } ], - "log": [ - "Player1: Free Economy: Pay 1 mood token, Use city C2, Gain 2 ore" - ] + "active_events": 1 }, { "action": { @@ -278,6 +282,7 @@ "Bool": true } }, + "player": 0, "items": [ { "player": 0, @@ -285,7 +290,7 @@ "resources": { "ore": 1 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Advance": "Metallurgy" @@ -304,9 +309,7 @@ } } ], - "log": [ - "Player1: Metallurgy: Gain 1 gold" - ] + "active_events": 1 } ] } @@ -338,4 +341,4 @@ "wonders_left": [ "Pyramids" ] -} +} \ No newline at end of file diff --git a/server/tests/test_games/advances/collect_husbandry.outcome.json b/server/tests/test_games/advances/collect_husbandry.outcome.json index 9f9bb36d..f6de8b2f 100644 --- a/server/tests/test_games/advances/collect_husbandry.outcome.json +++ b/server/tests/test_games/advances/collect_husbandry.outcome.json @@ -291,11 +291,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Collect" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Collect" @@ -322,12 +326,22 @@ "origin": { "Ability": "Collect" } + }, + { + "player": 0, + "Resources": { + "resources": { + "food": 1 + }, + "balance": "Loss" + }, + "origin": { + "Ability": "Waste" + } } ], "log": [ - "Player1: Collect: Pay 1 action, Use city B3, City B3 became Neutral, Gain 1 food", - "Player1: Husbandry: Can collect 1 resources from 2 land spaces away", - "Player1: Waste: Could not store 1 food" + "Player1: Husbandry: Can collect 1 resources from 2 land spaces away" ] } ] diff --git a/server/tests/test_games/advances/collect_port.outcome.json b/server/tests/test_games/advances/collect_port.outcome.json index 5bc176c3..dd5180fc 100644 --- a/server/tests/test_games/advances/collect_port.outcome.json +++ b/server/tests/test_games/advances/collect_port.outcome.json @@ -295,11 +295,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Collect" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Collect" @@ -317,9 +321,6 @@ "Ability": "Collect" } } - ], - "log": [ - "Player1: Collect: Pay 1 action, Use city C2, Gain 1 mood token" ] } ] diff --git a/server/tests/test_games/advances/cultural_influence_instant_with_arts.outcome1.json b/server/tests/test_games/advances/cultural_influence_instant_with_arts.outcome1.json index c738f37c..a1099ca5 100644 --- a/server/tests/test_games/advances/cultural_influence_instant_with_arts.outcome1.json +++ b/server/tests/test_games/advances/cultural_influence_instant_with_arts.outcome1.json @@ -133,7 +133,9 @@ "incident_tokens": 3, "next_unit_id": 2, "played_once_per_turn_actions": [ - "ArtsInfluenceCultureAttempt" + { + "Modifier": "ArtsInfluenceCultureAttempt" + } ] } ], @@ -206,14 +208,17 @@ } }, "action_type": { - "Custom": "ArtsInfluenceCultureAttempt" + "Special": { + "Modifier": "ArtsInfluenceCultureAttempt" + } } } } }, - "log": [ - "Player2: Arts: Pay 1 culture token" - ] + "player": 1, + "origin": { + "Advance": "Arts" + } }, { "action": { @@ -225,6 +230,7 @@ ] } }, + "player": 1, "items": [ { "player": 1, @@ -232,7 +238,7 @@ "resources": { "culture_tokens": 1 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Advance": "Arts" @@ -245,7 +251,8 @@ "Building": "Fortress" }, "balance": "Loss", - "position": "C2" + "position": "C2", + "port_position": null }, "origin": { "Advance": "Arts" @@ -258,7 +265,8 @@ "Building": "Fortress" }, "balance": "Gain", - "position": "C2" + "position": "C2", + "port_position": null }, "origin": { "Advance": "Arts" @@ -266,9 +274,9 @@ } ], "log": [ - "Player2: Arts: Pay 1 culture token, Tried to influence the Fortress in the city at C2 by Player1 with the city C1, Cultural influence succeeded (rolled 6), Gain Fortress at C2", - "Player1: Arts: Lose Fortress at C2" - ] + "Player2: Arts: Tried to influence the Fortress in the city at C2 by Player1 with the city C1, Cultural influence succeeded (rolled 6)" + ], + "active_events": 1 } ] } diff --git a/server/tests/test_games/advances/cultural_influence_with_conversion.outcome2.json b/server/tests/test_games/advances/cultural_influence_with_conversion.outcome2.json index 5756ef6e..d8e9453d 100644 --- a/server/tests/test_games/advances/cultural_influence_with_conversion.outcome2.json +++ b/server/tests/test_games/advances/cultural_influence_with_conversion.outcome2.json @@ -219,11 +219,15 @@ } } }, + "player": 1, + "origin": { + "Ability": "Influence Culture" + }, "items": [ { "player": 1, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Influence Culture" @@ -231,7 +235,7 @@ } ], "log": [ - "Player2: Influence Culture: Pay 1 action, Tried to influence the Temple in the city at C2 by Player1 with the city B3 and may pay 1 culture token to boost the range" + "Player2: Influence Culture: Tried to influence the Temple in the city at C2 by Player1 with the city B3 and may pay 1 culture token to boost the range" ] }, { @@ -244,6 +248,7 @@ ] } }, + "player": 1, "items": [ { "player": 1, @@ -251,7 +256,7 @@ "resources": { "culture_tokens": 1 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Influence Culture" @@ -259,9 +264,10 @@ } ], "log": [ - "Player2: Influence Culture: Pay 1 culture token, Rolled a 2 and now has the option to pay 3 culture tokens to increase the dice roll and proceed with the cultural influence", - "Player2: Conversion: Gain +1 to Influence Culture roll for Conversion Advance" - ] + "Player2: Conversion: Gain +1 to Influence Culture roll for Conversion Advance", + "Player2: Influence Culture: Rolled a 2 and now has the option to pay 3 culture tokens to increase the dice roll and proceed with the cultural influence" + ], + "active_events": 1 }, { "action": { @@ -273,6 +279,7 @@ ] } }, + "player": 1, "items": [ { "player": 1, @@ -280,7 +287,7 @@ "resources": { "culture_tokens": 3 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Influence Culture" @@ -293,7 +300,8 @@ "Building": "Temple" }, "balance": "Loss", - "position": "C2" + "position": "C2", + "port_position": null }, "origin": { "Ability": "Influence Culture" @@ -306,7 +314,8 @@ "Building": "Temple" }, "balance": "Gain", - "position": "C2" + "position": "C2", + "port_position": null }, "origin": { "Ability": "Influence Culture" @@ -326,10 +335,9 @@ } ], "log": [ - "Player2: Influence Culture: Pay 3 culture tokens, Paying to increase the dice roll, Gain Temple at C2", - "Player1: Influence Culture: Lose Temple at C2", - "Player2: Conversion: Gain 1 culture token" - ] + "Player2: Influence Culture: Paying to increase the dice roll" + ], + "active_events": 1 } ] } diff --git a/server/tests/test_games/advances/dogma.outcome3.json b/server/tests/test_games/advances/dogma.outcome3.json index 9c41ad09..f2676fd4 100644 --- a/server/tests/test_games/advances/dogma.outcome3.json +++ b/server/tests/test_games/advances/dogma.outcome3.json @@ -305,11 +305,40 @@ } } }, + "player": 1, + "origin": { + "Ability": "Advance" + }, "items": [ { "player": 1, "Action": { - "balance": "Loss" + "balance": "Pay" + }, + "origin": { + "Ability": "Advance" + } + }, + { + "player": 1, + "Resources": { + "resources": { + "ideas": 2 + }, + "balance": "Pay" + }, + "origin": { + "Ability": "Advance" + } + }, + { + "player": 1, + "Advance": { + "advance": "Dogma", + "incident_token": { + "Take": 1 + }, + "balance": "Gain" }, "origin": { "Ability": "Advance" @@ -324,25 +353,13 @@ "balance": "Loss" }, "origin": { - "Ability": "Advance" - } - }, - { - "player": 1, - "Advance": { - "advance": "Dogma", - "take_incident_token": true, - "balance": "Gain" - }, - "origin": { - "Ability": "Advance" + "Ability": "Waste" } } ], "log": [ - "Player2: Advance: Pay 1 action, Pay 2 ideas, Unlock Provinces, Gain Dogma and take an event token (1 left)", "Player2: Dogma: Ideas limit reduced to 2", - "Player2: Waste: Could not store 2 ideas" + "Player2: Advance: Unlock Provinces" ] }, { @@ -359,11 +376,15 @@ } } }, + "player": 1, + "origin": { + "Ability": "Construct Building" + }, "items": [ { "player": 1, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Construct Building" @@ -376,7 +397,7 @@ "wood": 1, "ore": 1 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Construct Building" @@ -394,7 +415,8 @@ "Building": "Temple" }, "balance": "Gain", - "position": "C1" + "position": "C1", + "port_position": null }, "origin": { "Ability": "Construct Building" @@ -402,7 +424,6 @@ } ], "log": [ - "Player2: Construct Building: Pay 1 action, Pay 1 wood and 1 ore with State Religion, Gain Temple at C1", "Player2: State Religion: Reduce the food cost to 0" ] }, @@ -414,6 +435,7 @@ } } }, + "player": 1, "items": [ { "player": 1, @@ -428,9 +450,7 @@ } } ], - "log": [ - "Player2: Temple: Gain 1 culture token" - ] + "active_events": 1 }, { "action": { @@ -438,12 +458,15 @@ "SelectAdvance": "Fanaticism" } }, + "player": 1, "items": [ { "player": 1, "Advance": { "advance": "Fanaticism", - "take_incident_token": true, + "incident_token": { + "Take": 0 + }, "balance": "Gain" }, "origin": { @@ -454,7 +477,7 @@ "player": 1, "Advance": { "advance": "Dogma", - "take_incident_token": false, + "incident_token": "NoChange", "balance": "Loss" }, "origin": { @@ -465,7 +488,7 @@ "player": 1, "Advance": { "advance": "Fanaticism", - "take_incident_token": false, + "incident_token": "NoChange", "balance": "Loss" }, "origin": { @@ -474,10 +497,10 @@ } ], "log": [ - "Player2: Dogma: Gain Fanaticism and take an event token (triggering an incident)", "A new game event has been triggered: Anarchy", "Player2: Anarchy: Lose 2 government advances due to Anarchy - adding 2 victory points" - ] + ], + "active_events": 1 } ] } diff --git a/server/tests/test_games/advances/forced_labor.outcome2.json b/server/tests/test_games/advances/forced_labor.outcome2.json index d54f72ff..2dea3041 100644 --- a/server/tests/test_games/advances/forced_labor.outcome2.json +++ b/server/tests/test_games/advances/forced_labor.outcome2.json @@ -104,7 +104,9 @@ ], "next_unit_id": 7, "played_once_per_turn_actions": [ - "ForcedLabor" + { + "Custom": "ForcedLabor" + } ] }, { @@ -242,9 +244,10 @@ } } }, - "log": [ - "Player1: Forced Labor: Start action, Pay 1 mood token" - ] + "player": 0, + "origin": { + "Advance": "ForcedLabor" + } }, { "action": { @@ -256,6 +259,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -263,7 +267,7 @@ "resources": { "mood_tokens": 1 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Advance": "ForcedLabor" @@ -271,8 +275,9 @@ } ], "log": [ - "Player1: Forced Labor: Pay 1 mood token, Treating Angry cities as neutral" - ] + "Player1: Forced Labor: Treating Angry cities as neutral" + ], + "active_events": 1 }, { "action": { @@ -299,11 +304,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Collect" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Collect" @@ -321,11 +330,20 @@ "origin": { "Ability": "Collect" } + }, + { + "player": 0, + "Resources": { + "resources": { + "food": 1, + "wood": 1 + }, + "balance": "Loss" + }, + "origin": { + "Ability": "Waste" + } } - ], - "log": [ - "Player1: Collect: Pay 1 action, Use city A1, Gain 1 food and 1 wood", - "Player1: Waste: Could not store 1 food and 1 wood" ] } ] diff --git a/server/tests/test_games/advances/free_education.outcome.json b/server/tests/test_games/advances/free_education.outcome.json index 51b9a3cd..49e09888 100644 --- a/server/tests/test_games/advances/free_education.outcome.json +++ b/server/tests/test_games/advances/free_education.outcome.json @@ -343,11 +343,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Advance" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -360,7 +364,7 @@ "food": 1, "gold": 1 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -382,17 +386,15 @@ "player": 0, "Advance": { "advance": "Draft", - "take_incident_token": true, + "incident_token": { + "Take": 1 + }, "balance": "Gain" }, "origin": { "Ability": "Advance" } } - ], - "log": [ - "Player1: Advance: Pay 1 action, Pay 1 food and 1 gold, Gain Draft and take an event token (1 left)", - "Player1: Draft: Gain 1 culture token" ] } ] diff --git a/server/tests/test_games/advances/free_education.outcome1.json b/server/tests/test_games/advances/free_education.outcome1.json index 707b344c..485c63f2 100644 --- a/server/tests/test_games/advances/free_education.outcome1.json +++ b/server/tests/test_games/advances/free_education.outcome1.json @@ -282,11 +282,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Advance" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -299,7 +303,7 @@ "food": 1, "gold": 1 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -321,17 +325,15 @@ "player": 0, "Advance": { "advance": "Draft", - "take_incident_token": true, + "incident_token": { + "Take": 1 + }, "balance": "Gain" }, "origin": { "Ability": "Advance" } } - ], - "log": [ - "Player1: Advance: Pay 1 action, Pay 1 food and 1 gold, Gain Draft and take an event token (1 left)", - "Player1: Draft: Gain 1 culture token" ] }, { @@ -344,6 +346,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -351,7 +354,7 @@ "resources": { "ideas": 1 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Advance": "FreeEducation" @@ -370,9 +373,7 @@ } } ], - "log": [ - "Player1: Free Education: Pay 1 idea, Gain 1 mood token" - ] + "active_events": 1 } ] } diff --git a/server/tests/test_games/advances/increase_happiness_sports.outcome1.json b/server/tests/test_games/advances/increase_happiness_sports.outcome1.json index 8d267352..3f8f00fc 100644 --- a/server/tests/test_games/advances/increase_happiness_sports.outcome1.json +++ b/server/tests/test_games/advances/increase_happiness_sports.outcome1.json @@ -263,19 +263,20 @@ } } }, + "player": 0, + "origin": { + "Advance": "Sports" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Advance": "Sports" } } - ], - "log": [ - "Player1: Sports: Pay 1 action, Start action in city C2" ] }, { @@ -288,6 +289,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -295,7 +297,7 @@ "resources": { "culture_tokens": 1 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Sports" @@ -312,9 +314,7 @@ } } ], - "log": [ - "Player1: Sports: Pay 1 culture token, City C2 became Neutral" - ] + "active_events": 1 } ] } diff --git a/server/tests/test_games/advances/increase_happiness_sports2.outcome1.json b/server/tests/test_games/advances/increase_happiness_sports2.outcome1.json index 6d7bab3b..67e053b9 100644 --- a/server/tests/test_games/advances/increase_happiness_sports2.outcome1.json +++ b/server/tests/test_games/advances/increase_happiness_sports2.outcome1.json @@ -263,19 +263,20 @@ } } }, + "player": 0, + "origin": { + "Advance": "Sports" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Advance": "Sports" } } - ], - "log": [ - "Player1: Sports: Pay 1 action, Start action in city C2" ] }, { @@ -288,6 +289,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -295,7 +297,7 @@ "resources": { "culture_tokens": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Sports" @@ -312,9 +314,7 @@ } } ], - "log": [ - "Player1: Sports: Pay 2 culture tokens, City C2 became Happy" - ] + "active_events": 1 } ] } diff --git a/server/tests/test_games/advances/increase_happiness_voting.outcome.json b/server/tests/test_games/advances/increase_happiness_voting.outcome.json index d23a56db..786791f7 100644 --- a/server/tests/test_games/advances/increase_happiness_voting.outcome.json +++ b/server/tests/test_games/advances/increase_happiness_voting.outcome.json @@ -270,11 +270,17 @@ "mood_tokens": 6 }, "action_type": { - "Custom": "VotingIncreaseHappiness" + "Special": { + "Modifier": "VotingIncreaseHappiness" + } } } } }, + "player": 0, + "origin": { + "Advance": "Voting" + }, "items": [ { "player": 0, @@ -302,15 +308,12 @@ "resources": { "mood_tokens": 6 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Advance": "Voting" } } - ], - "log": [ - "Player1: Voting: Pay 1 mood token, City C2 became Neutral, City B3 became Happy, Pay 6 mood tokens" ] } ] diff --git a/server/tests/test_games/advances/increase_happiness_voting_rituals.outcome.json b/server/tests/test_games/advances/increase_happiness_voting_rituals.outcome.json index 2b60a2c5..3eee9096 100644 --- a/server/tests/test_games/advances/increase_happiness_voting_rituals.outcome.json +++ b/server/tests/test_games/advances/increase_happiness_voting_rituals.outcome.json @@ -274,11 +274,17 @@ "gold": 1 }, "action_type": { - "Custom": "VotingIncreaseHappiness" + "Special": { + "Modifier": "VotingIncreaseHappiness" + } } } } }, + "player": 0, + "origin": { + "Advance": "Voting" + }, "items": [ { "player": 0, @@ -309,7 +315,7 @@ "ideas": 3, "gold": 1 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Advance": "Voting" @@ -322,7 +328,6 @@ } ], "log": [ - "Player1: Voting: Pay 1 mood token, City C2 became Neutral, City B3 became Happy, Pay 1 food, 1 ore, 3 ideas and 1 gold with Rituals", "Player1: Rituals: Can pay with any resource" ] } diff --git a/server/tests/test_games/advances/movement_on_roads_from_city.outcome.json b/server/tests/test_games/advances/movement_on_roads_from_city.outcome.json index 2737e4ce..13718ab1 100644 --- a/server/tests/test_games/advances/movement_on_roads_from_city.outcome.json +++ b/server/tests/test_games/advances/movement_on_roads_from_city.outcome.json @@ -359,7 +359,24 @@ } } }, + "player": 1, + "origin": { + "Ability": "Move" + }, "items": [ + { + "player": 1, + "Move": { + "units": { + "settlers": 1 + }, + "start": "D8", + "destination": "F7" + }, + "origin": { + "Ability": "Move" + } + }, { "player": 1, "Resources": { @@ -367,7 +384,7 @@ "food": 1, "ore": 1 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Move" @@ -378,9 +395,6 @@ } ] } - ], - "log": [ - "Player2: Move: marched 1 settler from D8 to F7 on roads for 1 food and 1 ore, Pay 1 food and 1 ore with Roads" ] } ] diff --git a/server/tests/test_games/advances/movement_on_roads_to_city.outcome.json b/server/tests/test_games/advances/movement_on_roads_to_city.outcome.json index 7164f258..0c626316 100644 --- a/server/tests/test_games/advances/movement_on_roads_to_city.outcome.json +++ b/server/tests/test_games/advances/movement_on_roads_to_city.outcome.json @@ -350,7 +350,24 @@ } } }, + "player": 1, + "origin": { + "Ability": "Move" + }, "items": [ + { + "player": 1, + "Move": { + "units": { + "settlers": 1 + }, + "start": "F7", + "destination": "D8" + }, + "origin": { + "Ability": "Move" + } + }, { "player": 1, "Resources": { @@ -358,7 +375,7 @@ "food": 1, "ore": 1 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Move" @@ -369,9 +386,6 @@ } ] } - ], - "log": [ - "Player2: Move: marched 1 settler from F7 to D8 on roads for 1 food and 1 ore, Pay 1 food and 1 ore with Roads" ] } ] diff --git a/server/tests/test_games/advances/priesthood.outcome.json b/server/tests/test_games/advances/priesthood.outcome.json index 774faca8..cb94916b 100644 --- a/server/tests/test_games/advances/priesthood.outcome.json +++ b/server/tests/test_games/advances/priesthood.outcome.json @@ -293,11 +293,15 @@ } } }, + "player": 1, + "origin": { + "Ability": "Advance" + }, "items": [ { "player": 1, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -307,7 +311,7 @@ "player": 1, "Resources": { "resources": {}, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -334,7 +338,9 @@ "player": 1, "Advance": { "advance": "Math", - "take_incident_token": true, + "incident_token": { + "Take": 2 + }, "balance": "Gain" }, "origin": { @@ -355,10 +361,7 @@ } ], "log": [ - "Player2: Advance: Pay 1 action, Pay nothing with Priesthood, Gain Math and take an event token (2 left)", - "Player2: Priesthood: Reduce the cost to 0", - "Player2: Math: Gain 1 culture token", - "Player2: Philosophy: Gain 1 idea" + "Player2: Priesthood: Reduce the cost to 0" ] } ] diff --git a/server/tests/test_games/advances/priesthood.outcome1.json b/server/tests/test_games/advances/priesthood.outcome1.json index 531c612e..bc9dcb23 100644 --- a/server/tests/test_games/advances/priesthood.outcome1.json +++ b/server/tests/test_games/advances/priesthood.outcome1.json @@ -294,11 +294,15 @@ } } }, + "player": 1, + "origin": { + "Ability": "Advance" + }, "items": [ { "player": 1, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -308,7 +312,7 @@ "player": 1, "Resources": { "resources": {}, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -335,7 +339,9 @@ "player": 1, "Advance": { "advance": "Math", - "take_incident_token": true, + "incident_token": { + "Take": 2 + }, "balance": "Gain" }, "origin": { @@ -356,10 +362,7 @@ } ], "log": [ - "Player2: Advance: Pay 1 action, Pay nothing with Priesthood, Gain Math and take an event token (2 left)", - "Player2: Priesthood: Reduce the cost to 0", - "Player2: Math: Gain 1 culture token", - "Player2: Philosophy: Gain 1 idea" + "Player2: Priesthood: Reduce the cost to 0" ] }, { @@ -373,11 +376,15 @@ } } }, + "player": 1, + "origin": { + "Ability": "Advance" + }, "items": [ { "player": 1, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -389,7 +396,7 @@ "resources": { "gold": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -411,7 +418,9 @@ "player": 1, "Advance": { "advance": "Astronomy", - "take_incident_token": true, + "incident_token": { + "Take": 1 + }, "balance": "Gain" }, "origin": { @@ -430,11 +439,6 @@ "Advance": "Philosophy" } } - ], - "log": [ - "Player2: Advance: Pay 1 action, Pay 2 gold, Gain Astronomy and take an event token (1 left)", - "Player2: Astronomy: Gain 1 culture token", - "Player2: Philosophy: Gain 1 idea" ] } ] diff --git a/server/tests/test_games/advances/sanitation_and_draft.outcome.json b/server/tests/test_games/advances/sanitation_and_draft.outcome.json index 4b2dffe7..6e744eb7 100644 --- a/server/tests/test_games/advances/sanitation_and_draft.outcome.json +++ b/server/tests/test_games/advances/sanitation_and_draft.outcome.json @@ -288,11 +288,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Recruit" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Recruit" @@ -305,7 +309,7 @@ "gold": 2, "mood_tokens": 1 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Recruit" @@ -326,7 +330,8 @@ "settlers": 1, "infantry": 1 }, - "balance": "Gain" + "balance": "Gain", + "position": "A1" }, "origin": { "Ability": "Recruit" @@ -334,7 +339,6 @@ } ], "log": [ - "Player1: Recruit: Pay 1 action, Pay 2 gold and 1 mood token with Draft, Sanitation, Gain 1 settler and 1 infantry at A1", "Player1: Draft: Reduce the cost of 1 Infantry to 1 mood token", "Player1: Sanitation: Reduce the cost of 1 Settler to 1 mood token" ] diff --git a/server/tests/test_games/advances/taxes.outcome2.json b/server/tests/test_games/advances/taxes.outcome2.json index dc516fe3..4046023f 100644 --- a/server/tests/test_games/advances/taxes.outcome2.json +++ b/server/tests/test_games/advances/taxes.outcome2.json @@ -127,7 +127,9 @@ ], "next_unit_id": 10, "played_once_per_turn_actions": [ - "Taxes" + { + "Custom": "Taxes" + } ] }, { @@ -284,19 +286,20 @@ } } }, + "player": 0, + "origin": { + "Advance": "Taxes" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Advance": "Taxes" } } - ], - "log": [ - "Player1: Taxes: Pay 1 action, Start action, Pay 1 mood token" ] }, { @@ -309,6 +312,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -316,16 +320,14 @@ "resources": { "mood_tokens": 1 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Advance": "Taxes" } } ], - "log": [ - "Player1: Taxes: Pay 1 mood token" - ] + "active_events": 1 }, { "action": { @@ -338,6 +340,7 @@ } } }, + "player": 0, "items": [ { "player": 0, @@ -353,12 +356,21 @@ "origin": { "Ability": "Taxes" } + }, + { + "player": 0, + "Resources": { + "resources": { + "food": 1 + }, + "balance": "Loss" + }, + "origin": { + "Ability": "Waste" + } } ], - "log": [ - "Player1: Taxes: Gain 1 food, 1 wood, 1 ore and 1 gold", - "Player1: Waste: Could not store 1 food" - ] + "active_events": 1 } ] } diff --git a/server/tests/test_games/advances/theaters.outcome1.json b/server/tests/test_games/advances/theaters.outcome1.json index 9751ecf5..ad6b5ea3 100644 --- a/server/tests/test_games/advances/theaters.outcome1.json +++ b/server/tests/test_games/advances/theaters.outcome1.json @@ -127,7 +127,9 @@ ], "next_unit_id": 10, "played_once_per_turn_actions": [ - "Theaters" + { + "Custom": "Theaters" + } ] }, { @@ -284,9 +286,10 @@ } } }, - "log": [ - "Player1: Theaters: Start action" - ] + "player": 0, + "origin": { + "Advance": "Theaters" + } }, { "action": { @@ -298,6 +301,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -305,7 +309,7 @@ "resources": { "culture_tokens": 1 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Theaters" @@ -324,9 +328,7 @@ } } ], - "log": [ - "Player1: Theaters: Pay 1 culture token, Gain 1 mood token" - ] + "active_events": 1 } ] } diff --git a/server/tests/test_games/advances/trade_routes.outcome.json b/server/tests/test_games/advances/trade_routes.outcome.json index fe642dc7..c669c1ef 100644 --- a/server/tests/test_games/advances/trade_routes.outcome.json +++ b/server/tests/test_games/advances/trade_routes.outcome.json @@ -393,8 +393,21 @@ "action": { "Playing": "EndTurn" }, - "log": [ - "Player1: End Turn: 3 actions left" + "player": 0, + "origin": { + "Ability": "End Turn" + }, + "items": [ + { + "player": 0, + "Action": { + "balance": "Loss", + "amount": 3 + }, + "origin": { + "Ability": "End Turn" + } + } ] } ] @@ -411,6 +424,7 @@ "actions": [ { "action": "StartTurn", + "player": 1, "items": [ { "player": 0, @@ -435,12 +449,22 @@ "origin": { "Advance": "TradeRoutes" } + }, + { + "player": 1, + "Resources": { + "resources": { + "food": 1 + }, + "balance": "Loss" + }, + "origin": { + "Ability": "Waste" + } } ], "log": [ - "Player1: Market: Gain 1 gold", - "Player2: Trade Routes: ship at E7 traded with city D6, settler at E7 traded with city E6, Gain 2 food", - "Player2: Waste: Could not store 1 food" + "Player2: Trade Routes: ship at E7 traded with city D6, settler at E7 traded with city E6" ] } ] diff --git a/server/tests/test_games/advances/trade_routes_with_currency.outcome.json b/server/tests/test_games/advances/trade_routes_with_currency.outcome.json index 80c9aacb..5648ae11 100644 --- a/server/tests/test_games/advances/trade_routes_with_currency.outcome.json +++ b/server/tests/test_games/advances/trade_routes_with_currency.outcome.json @@ -430,8 +430,21 @@ "action": { "Playing": "EndTurn" }, - "log": [ - "Player1: End Turn: 3 actions left" + "player": 0, + "origin": { + "Ability": "End Turn" + }, + "items": [ + { + "player": 0, + "Action": { + "balance": "Loss", + "amount": 3 + }, + "origin": { + "Ability": "End Turn" + } + } ] } ] @@ -447,7 +460,8 @@ }, "actions": [ { - "action": "StartTurn" + "action": "StartTurn", + "player": 1 } ] } diff --git a/server/tests/test_games/advances/trade_routes_with_currency.outcome1.json b/server/tests/test_games/advances/trade_routes_with_currency.outcome1.json index d2ad8c47..9e5cef23 100644 --- a/server/tests/test_games/advances/trade_routes_with_currency.outcome1.json +++ b/server/tests/test_games/advances/trade_routes_with_currency.outcome1.json @@ -392,8 +392,21 @@ "action": { "Playing": "EndTurn" }, - "log": [ - "Player1: End Turn: 3 actions left" + "player": 0, + "origin": { + "Ability": "End Turn" + }, + "items": [ + { + "player": 0, + "Action": { + "balance": "Loss", + "amount": 3 + }, + "origin": { + "Ability": "End Turn" + } + } ] } ] @@ -409,7 +422,8 @@ }, "actions": [ { - "action": "StartTurn" + "action": "StartTurn", + "player": 1 }, { "action": { @@ -420,6 +434,7 @@ } } }, + "player": 1, "items": [ { "player": 1, @@ -436,8 +451,9 @@ } ], "log": [ - "Player2: Trade Routes: Player2 selected trade routes, ship at E7 traded with city C6, settler at E7 traded with city E6, Gain 1 food and 1 gold" - ] + "Player2: Trade Routes: Player2 selected trade routes, ship at E7 traded with city C6, settler at E7 traded with city E6" + ], + "active_events": 1 } ] } diff --git a/server/tests/test_games/advances/writing.outcome1.json b/server/tests/test_games/advances/writing.outcome1.json index 6346ecb0..bdbe82e4 100644 --- a/server/tests/test_games/advances/writing.outcome1.json +++ b/server/tests/test_games/advances/writing.outcome1.json @@ -282,11 +282,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Advance" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -299,7 +303,7 @@ "food": 1, "gold": 1 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -351,17 +355,15 @@ "player": 0, "Advance": { "advance": "Writing", - "take_incident_token": true, + "incident_token": { + "Take": 1 + }, "balance": "Gain" }, "origin": { "Ability": "Advance" } } - ], - "log": [ - "Player1: Advance: Pay 1 action, Pay 1 food and 1 gold, Gain Writing and take an event token (1 left)", - "Player1: Writing: Draw an action card, Draw an objective card, Gain 1 culture token" ] }, { @@ -379,11 +381,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Construct Building" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Construct Building" @@ -397,7 +403,7 @@ "wood": 1, "ore": 1 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Construct Building" @@ -410,7 +416,8 @@ "Building": "Academy" }, "balance": "Gain", - "position": "A1" + "position": "A1", + "port_position": null }, "origin": { "Ability": "Construct Building" @@ -428,10 +435,6 @@ "Ability": "Academy" } } - ], - "log": [ - "Player1: Construct Building: Pay 1 action, Pay 1 food, 1 wood and 1 ore, Gain Academy at A1", - "Player1: Academy: Gain 2 ideas" ] } ] diff --git a/server/tests/test_games/base/collect.outcome.json b/server/tests/test_games/base/collect.outcome.json index 671e6cf2..e0c1b02c 100644 --- a/server/tests/test_games/base/collect.outcome.json +++ b/server/tests/test_games/base/collect.outcome.json @@ -222,11 +222,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Collect" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Collect" @@ -245,12 +249,22 @@ "origin": { "Ability": "Collect" } + }, + { + "player": 0, + "Resources": { + "resources": { + "ore": 1 + }, + "balance": "Loss" + }, + "origin": { + "Ability": "Waste" + } } ], "log": [ - "Player1: Collect: Pay 1 action, Use city C2, Gain 1 wood, 1 ore and 1 idea", - "Player1: Public Education: Gain 1 idea", - "Player1: Waste: Could not store 1 ore" + "Player1: Public Education: Gain 1 idea" ] } ] diff --git a/server/tests/test_games/base/construct.outcome.json b/server/tests/test_games/base/construct.outcome.json index 245d1ab5..173aac0f 100644 --- a/server/tests/test_games/base/construct.outcome.json +++ b/server/tests/test_games/base/construct.outcome.json @@ -212,11 +212,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Construct Building" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Construct Building" @@ -230,7 +234,7 @@ "wood": 1, "ore": 1 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Construct Building" @@ -253,7 +257,8 @@ "Building": "Observatory" }, "balance": "Gain", - "position": "C2" + "position": "C2", + "port_position": null }, "origin": { "Ability": "Construct Building" @@ -276,8 +281,7 @@ } ], "log": [ - "Player1: Construct Building: Pay 1 action, Pay 1 food, 1 wood and 1 ore, City C2 became Neutral, Gain Observatory at C2", - "Player1: Observatory: Draw an action card, Observatory gained 1 action card" + "Player1: Observatory: Observatory gained 1 action card" ] } ] diff --git a/server/tests/test_games/base/construct_port.outcome.json b/server/tests/test_games/base/construct_port.outcome.json index ec0bb7fb..fad48d59 100644 --- a/server/tests/test_games/base/construct_port.outcome.json +++ b/server/tests/test_games/base/construct_port.outcome.json @@ -220,11 +220,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Construct Building" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Construct Building" @@ -238,7 +242,7 @@ "wood": 1, "ore": 1 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Construct Building" @@ -251,15 +255,13 @@ "Building": "Port" }, "balance": "Gain", - "position": "A1" + "position": "A1", + "port_position": "A2" }, "origin": { "Ability": "Construct Building" } } - ], - "log": [ - "Player1: Construct Building: Pay 1 action, Pay 1 food, 1 wood and 1 ore, Gain Port at A1 at the water tile A2" ] } ] diff --git a/server/tests/test_games/base/cultural_influence.outcome2.json b/server/tests/test_games/base/cultural_influence.outcome2.json index 086d56f0..f9390d7c 100644 --- a/server/tests/test_games/base/cultural_influence.outcome2.json +++ b/server/tests/test_games/base/cultural_influence.outcome2.json @@ -219,11 +219,15 @@ } } }, + "player": 1, + "origin": { + "Ability": "Influence Culture" + }, "items": [ { "player": 1, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Influence Culture" @@ -231,7 +235,7 @@ } ], "log": [ - "Player2: Influence Culture: Pay 1 action, Tried to influence the Temple in the city at C2 by Player1 with the city B3 and may pay 1 culture token to boost the range" + "Player2: Influence Culture: Tried to influence the Temple in the city at C2 by Player1 with the city B3 and may pay 1 culture token to boost the range" ] }, { @@ -244,6 +248,7 @@ ] } }, + "player": 1, "items": [ { "player": 1, @@ -251,7 +256,7 @@ "resources": { "culture_tokens": 1 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Influence Culture" @@ -259,8 +264,9 @@ } ], "log": [ - "Player2: Influence Culture: Pay 1 culture token, Rolled a 1 and now has the option to pay 4 culture tokens to increase the dice roll and proceed with the cultural influence" - ] + "Player2: Influence Culture: Rolled a 1 and now has the option to pay 4 culture tokens to increase the dice roll and proceed with the cultural influence" + ], + "active_events": 1 }, { "action": { @@ -272,6 +278,7 @@ ] } }, + "player": 1, "items": [ { "player": 1, @@ -279,7 +286,7 @@ "resources": { "culture_tokens": 4 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Influence Culture" @@ -292,7 +299,8 @@ "Building": "Temple" }, "balance": "Loss", - "position": "C2" + "position": "C2", + "port_position": null }, "origin": { "Ability": "Influence Culture" @@ -305,7 +313,8 @@ "Building": "Temple" }, "balance": "Gain", - "position": "C2" + "position": "C2", + "port_position": null }, "origin": { "Ability": "Influence Culture" @@ -313,9 +322,9 @@ } ], "log": [ - "Player2: Influence Culture: Pay 4 culture tokens, Paying to increase the dice roll, Gain Temple at C2", - "Player1: Influence Culture: Lose Temple at C2" - ] + "Player2: Influence Culture: Paying to increase the dice roll" + ], + "active_events": 1 } ] } diff --git a/server/tests/test_games/base/cultural_influence_instant.outcome.json b/server/tests/test_games/base/cultural_influence_instant.outcome.json index 3ad0e260..2cd01006 100644 --- a/server/tests/test_games/base/cultural_influence_instant.outcome.json +++ b/server/tests/test_games/base/cultural_influence_instant.outcome.json @@ -205,11 +205,15 @@ } } }, + "player": 1, + "origin": { + "Ability": "Influence Culture" + }, "items": [ { "player": 1, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Influence Culture" @@ -222,7 +226,8 @@ "Building": "Fortress" }, "balance": "Loss", - "position": "C2" + "position": "C2", + "port_position": null }, "origin": { "Ability": "Influence Culture" @@ -235,7 +240,8 @@ "Building": "Fortress" }, "balance": "Gain", - "position": "C2" + "position": "C2", + "port_position": null }, "origin": { "Ability": "Influence Culture" @@ -243,8 +249,7 @@ } ], "log": [ - "Player2: Influence Culture: Pay 1 action, Tried to influence the Fortress in the city at C2 by Player1 with the city C1, Cultural influence succeeded (rolled 6), Gain Fortress at C2", - "Player1: Influence Culture: Lose Fortress at C2" + "Player2: Influence Culture: Tried to influence the Fortress in the city at C2 by Player1 with the city C1, Cultural influence succeeded (rolled 6)" ] } ] diff --git a/server/tests/test_games/base/found_city.outcome1.json b/server/tests/test_games/base/found_city.outcome1.json index 0369f7f3..05d316c8 100644 --- a/server/tests/test_games/base/found_city.outcome1.json +++ b/server/tests/test_games/base/found_city.outcome1.json @@ -215,11 +215,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Found City" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Found City" @@ -231,7 +235,8 @@ "units": { "settlers": 1 }, - "balance": "Loss" + "balance": "Pay", + "position": "B6" }, "origin": { "Ability": "Found city" @@ -242,16 +247,13 @@ "Structure": { "structure": "CityCenter", "balance": "Gain", - "position": "B6" + "position": "B6", + "port_position": null }, "origin": { "Ability": "Found city" } } - ], - "log": [ - "Player1: Found City: Pay 1 action", - "Player1: Found city: Gain city B6" ] }, { @@ -264,6 +266,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -283,9 +286,7 @@ } } ], - "log": [ - "Player1: Complete Objectives: Complete City Founder using City Founder/Resistance" - ] + "active_events": 1 } ] } diff --git a/server/tests/test_games/base/increase_happiness.outcome.json b/server/tests/test_games/base/increase_happiness.outcome.json index c27f3d28..ffe89e45 100644 --- a/server/tests/test_games/base/increase_happiness.outcome.json +++ b/server/tests/test_games/base/increase_happiness.outcome.json @@ -273,11 +273,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Increase Happiness" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Increase Happiness" @@ -309,15 +313,12 @@ "resources": { "mood_tokens": 5 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Increase Happiness" } } - ], - "log": [ - "Player1: Increase Happiness: Pay 1 action, City C2 became Neutral, City B3 became Happy, Pay 5 mood tokens" ] } ] diff --git a/server/tests/test_games/base/new_game.json b/server/tests/test_games/base/new_game.json index 95a55fb4..a5b341ff 100644 --- a/server/tests/test_games/base/new_game.json +++ b/server/tests/test_games/base/new_game.json @@ -388,10 +388,13 @@ "round": 0, "turns": [ { - "turn_type": "Setup", + "turn_type": { + "Setup": 0 + }, "actions": [ { - "action": "Setup", + "action": "StartTurn", + "player": 0, "items": [ { "player": 0, @@ -409,7 +412,7 @@ "player": 0, "Advance": { "advance": "Farming", - "take_incident_token": false, + "incident_token": "NoChange", "balance": "Gain" }, "origin": { @@ -420,7 +423,7 @@ "player": 0, "Advance": { "advance": "Mining", - "take_incident_token": false, + "incident_token": "NoChange", "balance": "Gain" }, "origin": { @@ -462,7 +465,8 @@ "Structure": { "structure": "CityCenter", "balance": "Gain", - "position": "D2" + "position": "D2", + "port_position": null }, "origin": { "Ability": "Setup" @@ -484,12 +488,26 @@ "units": { "settlers": 1 }, - "balance": "Gain" + "balance": "Gain", + "position": "D2" }, "origin": { "Ability": "Setup" } - }, + } + ] + } + ] + }, + { + "turn_type": { + "Setup": 1 + }, + "actions": [ + { + "action": "StartTurn", + "player": 1, + "items": [ { "player": 1, "Resources": { @@ -506,7 +524,7 @@ "player": 1, "Advance": { "advance": "Farming", - "take_incident_token": false, + "incident_token": "NoChange", "balance": "Gain" }, "origin": { @@ -517,7 +535,7 @@ "player": 1, "Advance": { "advance": "Mining", - "take_incident_token": false, + "incident_token": "NoChange", "balance": "Gain" }, "origin": { @@ -559,7 +577,8 @@ "Structure": { "structure": "CityCenter", "balance": "Gain", - "position": "D7" + "position": "D7", + "port_position": null }, "origin": { "Ability": "Setup" @@ -581,16 +600,13 @@ "units": { "settlers": 1 }, - "balance": "Gain" + "balance": "Gain", + "position": "D7" }, "origin": { "Ability": "Setup" } } - ], - "log": [ - "Player1: Setup: Play as Choose Civilization, Gain 2 food, Gain Farming without taking an event token, Gain Mining without taking an event token, Draw an action card, Draw an objective card, Gain city D2, City D2 became Happy, Gain 1 settler at D2", - "Player2: Setup: Play as Choose Civilization, Gain 2 food, Gain Farming without taking an event token, Gain Mining without taking an event token, Draw an action card, Draw an objective card, Gain city D7, City D7 became Happy, Gain 1 settler at D7" ] } ] @@ -614,8 +630,9 @@ "action": { "ChooseCivilization": "Vikings" }, + "player": 0, "log": [ - "Player1: Setup: Play as Vikings" + "Player1: Setup: Choose Vikings" ] } ] diff --git a/server/tests/test_games/base/recruit.outcome.json b/server/tests/test_games/base/recruit.outcome.json index ca0fafe4..a48db820 100644 --- a/server/tests/test_games/base/recruit.outcome.json +++ b/server/tests/test_games/base/recruit.outcome.json @@ -248,11 +248,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Recruit" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Recruit" @@ -266,7 +270,7 @@ "ore": 1, "gold": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Recruit" @@ -278,7 +282,8 @@ "units": { "settlers": 1 }, - "balance": "Loss" + "balance": "Loss", + "position": "C2" }, "origin": { "Ability": "Recruit" @@ -301,7 +306,8 @@ "settlers": 1, "infantry": 1 }, - "balance": "Gain" + "balance": "Gain", + "position": "A1" }, "origin": { "Ability": "Recruit" @@ -324,10 +330,6 @@ "Ability": "Complete Objectives" } } - ], - "log": [ - "Player1: Recruit: Pay 1 action, Pay 1 food, 1 ore and 2 gold, Lost 1 settler at C2, City A1 became Angry, Gain 1 settler and 1 infantry at A1", - "Player1: Complete Objectives: Complete Terror Regime using Shipping Routes/Terror Regime" ] } ] diff --git a/server/tests/test_games/base/recruit_leader.outcome.json b/server/tests/test_games/base/recruit_leader.outcome.json index 5a514cfb..fd482844 100644 --- a/server/tests/test_games/base/recruit_leader.outcome.json +++ b/server/tests/test_games/base/recruit_leader.outcome.json @@ -283,11 +283,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Recruit" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Recruit" @@ -300,7 +304,7 @@ "mood_tokens": 1, "culture_tokens": 1 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Recruit" @@ -312,15 +316,13 @@ "units": { "leader": "Augustus" }, - "balance": "Gain" + "balance": "Gain", + "position": "A1" }, "origin": { "Ability": "Recruit" } } - ], - "log": [ - "Player1: Recruit: Pay 1 action, Pay 1 mood token and 1 culture token, Gain Augustus at A1" ] } ] diff --git a/server/tests/test_games/base/replace_leader.outcome.json b/server/tests/test_games/base/replace_leader.outcome.json index 9f95ec6f..6290a96c 100644 --- a/server/tests/test_games/base/replace_leader.outcome.json +++ b/server/tests/test_games/base/replace_leader.outcome.json @@ -283,11 +283,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Recruit" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Recruit" @@ -300,7 +304,7 @@ "mood_tokens": 1, "culture_tokens": 1 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Recruit" @@ -312,7 +316,8 @@ "units": { "leader": "Sulla" }, - "balance": "Loss" + "balance": "Loss", + "position": "A1" }, "origin": { "Ability": "Recruit" @@ -334,15 +339,13 @@ "units": { "leader": "Augustus" }, - "balance": "Gain" + "balance": "Gain", + "position": "A1" }, "origin": { "Ability": "Recruit" } } - ], - "log": [ - "Player1: Recruit: Pay 1 action, Pay 1 mood token and 1 culture token, Lost Sulla at A1, City A1 became Neutral, Gain Augustus at A1" ] } ] diff --git a/server/tests/test_games/base/same_player_undo.outcome.json b/server/tests/test_games/base/same_player_undo.outcome.json index b79719ba..c1f83e89 100644 --- a/server/tests/test_games/base/same_player_undo.outcome.json +++ b/server/tests/test_games/base/same_player_undo.outcome.json @@ -215,11 +215,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Construct Building" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Construct Building" @@ -233,7 +237,7 @@ "wood": 1, "ore": 1 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Construct Building" @@ -256,7 +260,8 @@ "Building": "Observatory" }, "balance": "Gain", - "position": "C2" + "position": "C2", + "port_position": null }, "origin": { "Ability": "Construct Building" @@ -279,8 +284,7 @@ } ], "log": [ - "Player1: Construct Building: Pay 1 action, Pay 1 food, 1 wood and 1 ore, City C2 became Neutral, Gain Observatory at C2", - "Player1: Observatory: Draw an action card, Observatory gained 1 action card" + "Player1: Observatory: Observatory gained 1 action card" ] } ] diff --git a/server/tests/test_games/civilizations/china/expansion.outcome.json b/server/tests/test_games/civilizations/china/expansion.outcome.json index e4644f73..bea0e73b 100644 --- a/server/tests/test_games/civilizations/china/expansion.outcome.json +++ b/server/tests/test_games/civilizations/china/expansion.outcome.json @@ -264,11 +264,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Recruit" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Recruit" @@ -280,7 +284,7 @@ "resources": { "gold": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Recruit" @@ -292,7 +296,8 @@ "units": { "settlers": 1 }, - "balance": "Gain" + "balance": "Gain", + "position": "A1" }, "origin": { "Ability": "Recruit" @@ -300,7 +305,6 @@ } ], "log": [ - "Player1: Recruit: Pay 1 action, Pay 2 gold, Gain 1 settler at A1", "Player1: Expansion: Expansion allows to move the settlers at B3, B3, A1" ] } diff --git a/server/tests/test_games/civilizations/china/fast_war.outcome.json b/server/tests/test_games/civilizations/china/fast_war.outcome.json index 4245bf5a..f9860fb2 100644 --- a/server/tests/test_games/civilizations/china/fast_war.outcome.json +++ b/server/tests/test_games/civilizations/china/fast_war.outcome.json @@ -372,6 +372,10 @@ } } }, + "player": 0, + "origin": { + "Ability": "Move" + }, "combat_stats": { "round": 1, "battleground": "City", @@ -396,10 +400,23 @@ "city_mood": "Happy" }, "items": [ + { + "player": 0, + "Move": { + "units": { + "leader": "SunTzu" + }, + "start": "E8", + "destination": "D8" + }, + "origin": { + "Ability": "Move" + } + }, { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Move" @@ -411,7 +428,8 @@ "units": { "infantry": 1 }, - "balance": "Loss" + "balance": "Loss", + "position": "D8" }, "origin": { "Ability": "Combat" @@ -434,7 +452,8 @@ "Structure": { "structure": "CityCenter", "balance": "Loss", - "position": "D8" + "position": "D8", + "port_position": null }, "origin": { "Ability": "Combat" @@ -445,7 +464,8 @@ "Structure": { "structure": "CityCenter", "balance": "Gain", - "position": "D8" + "position": "D8", + "port_position": null }, "origin": { "Ability": "Combat" @@ -476,13 +496,11 @@ } ], "log": [ - "Player1: Move: marched Sun Tzu from E8 to D8, Pay 1 action", "Combat round 1", - "Player1: Combat: Attacking with Sun Tzu, Roll 5 (cavalry, no bonus) for combined combat value of 5 and gets 1 hits against defending units, Gain 2 gold, Gain city D8, City D8 became Angry", - "Player2: Combat: Defending with 1 infantry, Roll 2 (cavalry, no bonus) for combined combat value of 2 and gets 0 hits against attacking units, Lost 1 infantry at D8, Lose city D8", + "Player1: Combat: Attacking with Sun Tzu, Roll 5 (cavalry, no bonus) for combined combat value of 5 and gets 1 hits against defending units", + "Player2: Combat: Defending with 1 infantry, Roll 2 (cavalry, no bonus) for combined combat value of 2 and gets 0 hits against attacking units", "Player2: Choose Casualties: Remove all defending units", - "Attacker wins", - "Player1: Fast War: Gain 1 mood token and 1 culture token" + "Attacker wins" ] } ] diff --git a/server/tests/test_games/civilizations/china/fireworks.outcome1.json b/server/tests/test_games/civilizations/china/fireworks.outcome1.json index 923358cb..aa171071 100644 --- a/server/tests/test_games/civilizations/china/fireworks.outcome1.json +++ b/server/tests/test_games/civilizations/china/fireworks.outcome1.json @@ -265,11 +265,28 @@ } } }, + "player": 0, + "origin": { + "Ability": "Move" + }, "items": [ + { + "player": 0, + "Move": { + "units": { + "infantry": 1 + }, + "start": "C2", + "destination": "C1" + }, + "origin": { + "Ability": "Move" + } + }, { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Move" @@ -277,7 +294,6 @@ } ], "log": [ - "Player1: Move: marched 1 infantry from C2 to C1, Pay 1 action", "Combat round 1", "Player1: Combat: Attacking with 1 infantry, Roll 6 (infantry, +1 combat value) for combined combat value of 7 and gets 1 hits against defending units", "Player2: Combat: Defending with 1 cavalry, Roll 6 (infantry, no bonus) for combined combat value of 6 and gets 1 hits against attacking units" @@ -293,6 +309,7 @@ ] } }, + "player": 0, "combat_stats": { "round": 1, "battleground": "City", @@ -323,7 +340,7 @@ "resources": { "gold": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "SpecialAdvance": "Fireworks" @@ -335,7 +352,8 @@ "units": { "cavalry": 1 }, - "balance": "Loss" + "balance": "Loss", + "position": "C1" }, "origin": { "Ability": "Combat" @@ -358,7 +376,8 @@ "Structure": { "structure": "CityCenter", "balance": "Loss", - "position": "C1" + "position": "C1", + "port_position": null }, "origin": { "Ability": "Combat" @@ -369,7 +388,8 @@ "Structure": { "structure": "CityCenter", "balance": "Gain", - "position": "C1" + "position": "C1", + "port_position": null }, "origin": { "Ability": "Combat" @@ -381,7 +401,8 @@ "units": { "settlers": 1 }, - "balance": "Gain" + "balance": "Gain", + "position": "B2" }, "origin": { "Ability": "Place Settler" @@ -389,13 +410,11 @@ } ], "log": [ - "Player1: Fireworks: Pay 2 gold, Ignore the first hit", + "Player1: Fireworks: Ignore the first hit", "Player2: Choose Casualties: Remove all defending units", - "Player2: Combat: Lost 1 cavalry at C1, Lose city C1", - "Attacker wins", - "Player1: Combat: Gain 1 gold, Gain city C1", - "Player2: Place Settler: Gain 1 settler at B2" - ] + "Attacker wins" + ], + "active_events": 1 } ] } diff --git a/server/tests/test_games/civilizations/china/great_wall.outcome4.json b/server/tests/test_games/civilizations/china/great_wall.outcome4.json index b5958331..64c0ad90 100644 --- a/server/tests/test_games/civilizations/china/great_wall.outcome4.json +++ b/server/tests/test_games/civilizations/china/great_wall.outcome4.json @@ -389,11 +389,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Advance" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -405,7 +409,7 @@ "resources": { "food": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -432,17 +436,15 @@ "player": 0, "Advance": { "advance": "Engineering", - "take_incident_token": true, + "incident_token": { + "Take": 1 + }, "balance": "Gain" }, "origin": { "Ability": "Advance" } } - ], - "log": [ - "Player1: Advance: Pay 1 action, Pay 2 food, Gain Engineering and take an event token (1 left)", - "Player1: Great Wall: Gain Great Wall from Player2" ] }, { @@ -451,6 +453,10 @@ "WonderCard": "GreatWall" } }, + "player": 0, + "origin": { + "Wonder": "GreatWall" + }, "log": [ "Player1: Build Wonder: Play the wonder card Great Wall, Decided to build Great Wall in city D1" ] @@ -468,6 +474,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -478,7 +485,7 @@ "ore": 7, "culture_tokens": 3 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Wonder": "GreatWall" @@ -511,7 +518,8 @@ "Wonder": "GreatWall" }, "balance": "Gain", - "position": "D1" + "position": "D1", + "port_position": null }, "origin": { "Ability": "Build Wonder" @@ -519,17 +527,18 @@ } ], "log": [ - "Player1: Great Wall: Pay 3 food, 2 wood, 7 ore and 3 culture tokens with Great Wall, Reduce the cost of Great Wall by 2 culture tokens, Great Wall can be built in the leader city as a free action", - "Player1: Build Wonder: Play Great Wall, Gain Great Wall at D1" - ] + "Player1: Great Wall: Reduce the cost of Great Wall by 2 culture tokens, Great Wall can be built in the leader city as a free action" + ], + "active_events": 1 }, { "action": { "Playing": "EndTurn" }, - "log": [ - "Player1: End Turn: 0 actions left" - ] + "player": 0, + "origin": { + "Ability": "End Turn" + } } ] } @@ -545,6 +554,7 @@ "actions": [ { "action": "StartTurn", + "player": 1, "log": [ "Player2: Wonder replacement: Draw a replacement wonder card" ] @@ -555,6 +565,7 @@ "Bool": true } }, + "player": 1, "items": [ { "player": 1, @@ -572,9 +583,7 @@ } } ], - "log": [ - "Player2: Draw Wonder Card: Gain Pyramids from the public area" - ] + "active_events": 2 } ] } diff --git a/server/tests/test_games/civilizations/china/imperial_army.outcome1.json b/server/tests/test_games/civilizations/china/imperial_army.outcome1.json index ae7af5a1..70c9fb8c 100644 --- a/server/tests/test_games/civilizations/china/imperial_army.outcome1.json +++ b/server/tests/test_games/civilizations/china/imperial_army.outcome1.json @@ -89,7 +89,9 @@ ], "next_unit_id": 10, "played_once_per_turn_actions": [ - "ImperialArmy" + { + "Custom": "ImperialArmy" + } ] }, { @@ -247,19 +249,20 @@ } } }, + "player": 0, + "origin": { + "SpecialAdvance": "ImperialArmy" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "SpecialAdvance": "ImperialArmy" } } - ], - "log": [ - "Player1: Imperial Army: Pay 1 action, Start action" ] }, { @@ -271,9 +274,11 @@ ] } }, + "player": 0, "log": [ "Player1: Imperial Army: Convert infantry at C2, settler at B4" - ] + ], + "active_events": 1 } ] } diff --git a/server/tests/test_games/civilizations/china/rice.outcome.json b/server/tests/test_games/civilizations/china/rice.outcome.json index 1ca178ca..d7b74f5d 100644 --- a/server/tests/test_games/civilizations/china/rice.outcome.json +++ b/server/tests/test_games/civilizations/china/rice.outcome.json @@ -257,11 +257,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Collect" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Collect" @@ -286,7 +290,6 @@ } ], "log": [ - "Player1: Collect: Pay 1 action, Use city B3, Gain 2 food with Irrigation", "Player1: Rice Cultivation: Added 1 food" ] } diff --git a/server/tests/test_games/civilizations/greece/city_states.outcome1.json b/server/tests/test_games/civilizations/greece/city_states.outcome1.json index 4f81688a..ef1ec4b5 100644 --- a/server/tests/test_games/civilizations/greece/city_states.outcome1.json +++ b/server/tests/test_games/civilizations/greece/city_states.outcome1.json @@ -263,11 +263,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Recruit" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Recruit" @@ -279,7 +283,7 @@ "resources": { "culture_tokens": 1 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Recruit" @@ -309,7 +313,8 @@ "units": { "infantry": 1 }, - "balance": "Gain" + "balance": "Gain", + "position": "A1" }, "origin": { "Ability": "Recruit" @@ -317,7 +322,6 @@ } ], "log": [ - "Player1: Recruit: Pay 1 action, Pay 1 culture token with Draft, Sparta, City A1 became Neutral, Gain 1 infantry at A1", "Player1: Draft: Reduce the cost of 1 Infantry to 1 mood token", "Player1: Sparta: Can pay the Draft cost as culture tokens" ] @@ -330,6 +334,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -352,9 +357,7 @@ } } ], - "log": [ - "Player1: City States: City B3 became Neutral, City A1 became Happy" - ] + "active_events": 1 } ] } diff --git a/server/tests/test_games/civilizations/greece/hellenistic_culture.outcome1.json b/server/tests/test_games/civilizations/greece/hellenistic_culture.outcome1.json index 69108298..0970b7c6 100644 --- a/server/tests/test_games/civilizations/greece/hellenistic_culture.outcome1.json +++ b/server/tests/test_games/civilizations/greece/hellenistic_culture.outcome1.json @@ -63,7 +63,9 @@ ], "next_unit_id": 10, "played_once_per_turn_actions": [ - "ArtsInfluenceCultureAttempt" + { + "Modifier": "ArtsInfluenceCultureAttempt" + } ] }, { @@ -246,14 +248,17 @@ } }, "action_type": { - "Custom": "HellenisticInfluenceCultureAttempt" + "Special": { + "Modifier": "HellenisticInfluenceCultureAttempt" + } } } } }, - "log": [ - "Player1: Hellenistic Culture: Pay 2 mood tokens" - ] + "player": 0, + "origin": { + "SpecialAdvance": "HellenisticCulture" + } }, { "action": { @@ -265,6 +270,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -272,7 +278,7 @@ "resources": { "mood_tokens": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "SpecialAdvance": "HellenisticCulture" @@ -285,7 +291,8 @@ "Building": "Port" }, "balance": "Loss", - "position": "C2" + "position": "C2", + "port_position": "C3" }, "origin": { "SpecialAdvance": "HellenisticCulture" @@ -298,7 +305,8 @@ "Building": "Port" }, "balance": "Gain", - "position": "C2" + "position": "C2", + "port_position": "C3" }, "origin": { "SpecialAdvance": "HellenisticCulture" @@ -306,9 +314,9 @@ } ], "log": [ - "Player1: Hellenistic Culture: Pay 2 mood tokens, Tried to influence the Port in the city at C2 by Player2, Cultural influence succeeded (rolled 6), Gain Port at C2 at the water tile C3", - "Player2: Hellenistic Culture: Lose Port at C2" - ] + "Player1: Hellenistic Culture: Tried to influence the Port in the city at C2 by Player2, Cultural influence succeeded (rolled 6)" + ], + "active_events": 1 } ] } diff --git a/server/tests/test_games/civilizations/greece/idol.outcome2.json b/server/tests/test_games/civilizations/greece/idol.outcome2.json index 35ef92f7..76eae447 100644 --- a/server/tests/test_games/civilizations/greece/idol.outcome2.json +++ b/server/tests/test_games/civilizations/greece/idol.outcome2.json @@ -431,9 +431,10 @@ } } }, - "log": [ - "Player1: Idol: Start action, Pay 1 culture token" - ] + "player": 0, + "origin": { + "LeaderAbility": "Idol" + } }, { "action": { @@ -445,6 +446,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -452,7 +454,7 @@ "resources": { "culture_tokens": 1 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "LeaderAbility": "Idol" @@ -475,10 +477,9 @@ } ], "log": [ - "Player1: Idol: Pay 1 culture token, Decided to play Spy as a free action", - "Player1: Action Card: Play Spy/Heavy Resistance", - "Player1: Spy: Pay 1 culture token" - ] + "Player1: Idol: Decided to play Spy as a free action" + ], + "active_events": 1 }, { "action": { @@ -490,6 +491,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -497,7 +499,7 @@ "resources": { "culture_tokens": 1 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "CivilCard": 7 @@ -505,8 +507,9 @@ } ], "log": [ - "Player1: Spy: Pay 1 culture token, Decided to looked at all Wonder, Action, and Objective cards of Player2" - ] + "Player1: Spy: Decided to looked at all Wonder, Action, and Objective cards of Player2" + ], + "active_events": 2 } ] } diff --git a/server/tests/test_games/civilizations/greece/master.outcome1.json b/server/tests/test_games/civilizations/greece/master.outcome1.json index 9be3c121..031fa2b4 100644 --- a/server/tests/test_games/civilizations/greece/master.outcome1.json +++ b/server/tests/test_games/civilizations/greece/master.outcome1.json @@ -385,19 +385,20 @@ } } }, + "player": 0, + "origin": { + "LeaderAbility": "Master" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "LeaderAbility": "Master" } } - ], - "log": [ - "Player1: Master: Pay 1 action, Start action, Pay 1 mood token" ] }, { @@ -410,6 +411,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -417,7 +419,7 @@ "resources": { "mood_tokens": 1 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "LeaderAbility": "Master" @@ -469,7 +471,9 @@ "player": 0, "Advance": { "advance": "Writing", - "take_incident_token": true, + "incident_token": { + "Take": 1 + }, "balance": "Gain" }, "origin": { @@ -477,10 +481,7 @@ } } ], - "log": [ - "Player1: Master: Pay 1 mood token, Gain Writing and take an event token (1 left)", - "Player1: Writing: Draw an action card, Draw an objective card, Gain 1 culture token" - ] + "active_events": 1 } ] } diff --git a/server/tests/test_games/civilizations/greece/ruler_of_the_world.outcome.json b/server/tests/test_games/civilizations/greece/ruler_of_the_world.outcome.json index 9429b144..a0d01239 100644 --- a/server/tests/test_games/civilizations/greece/ruler_of_the_world.outcome.json +++ b/server/tests/test_games/civilizations/greece/ruler_of_the_world.outcome.json @@ -374,6 +374,10 @@ } } }, + "player": 0, + "origin": { + "Ability": "Move" + }, "combat_stats": { "round": 1, "battleground": "City", @@ -398,10 +402,23 @@ "city_mood": "Happy" }, "items": [ + { + "player": 0, + "Move": { + "units": { + "leader": "Alexander" + }, + "start": "E8", + "destination": "D8" + }, + "origin": { + "Ability": "Move" + } + }, { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Move" @@ -413,7 +430,8 @@ "units": { "infantry": 1 }, - "balance": "Loss" + "balance": "Loss", + "position": "D8" }, "origin": { "Ability": "Combat" @@ -436,7 +454,8 @@ "Structure": { "structure": "CityCenter", "balance": "Loss", - "position": "D8" + "position": "D8", + "port_position": null }, "origin": { "Ability": "Combat" @@ -447,7 +466,8 @@ "Structure": { "structure": "CityCenter", "balance": "Gain", - "position": "D8" + "position": "D8", + "port_position": null }, "origin": { "Ability": "Combat" @@ -465,10 +485,9 @@ } ], "log": [ - "Player1: Move: marched Alexander the Great from E8 to D8, Pay 1 action", "Combat round 1", - "Player1: Combat: Attacking with Alexander the Great, Roll 5 (cavalry, no bonus) for combined combat value of 6 and gets 1 hits against defending units, Combat modifiers: Ruler of the World adds 1 combat value, Gain 2 gold, Gain city D8, City D8 became Angry", - "Player2: Combat: Defending with 1 infantry, Roll 2 (cavalry, no bonus) for combined combat value of 2 and gets 0 hits against attacking units, Lost 1 infantry at D8, Lose city D8", + "Player1: Combat: Attacking with Alexander the Great, Roll 5 (cavalry, no bonus) for combined combat value of 6 and gets 1 hits against defending units, Combat modifiers: Ruler of the World adds 1 combat value", + "Player2: Combat: Defending with 1 infantry, Roll 2 (cavalry, no bonus) for combined combat value of 2 and gets 0 hits against attacking units", "Player2: Choose Casualties: Remove all defending units", "Attacker wins" ] diff --git a/server/tests/test_games/civilizations/greece/sparta_battle.outcome.json b/server/tests/test_games/civilizations/greece/sparta_battle.outcome.json index 6f8e2691..ec507682 100644 --- a/server/tests/test_games/civilizations/greece/sparta_battle.outcome.json +++ b/server/tests/test_games/civilizations/greece/sparta_battle.outcome.json @@ -236,6 +236,10 @@ } } }, + "player": 0, + "origin": { + "Ability": "Move" + }, "combat_stats": { "round": 1, "battleground": "City", @@ -263,10 +267,23 @@ "city_mood": "Angry" }, "items": [ + { + "player": 0, + "Move": { + "units": { + "infantry": 1 + }, + "start": "C2", + "destination": "C1" + }, + "origin": { + "Ability": "Move" + } + }, { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Move" @@ -278,7 +295,8 @@ "units": { "infantry": 1 }, - "balance": "Loss" + "balance": "Loss", + "position": "C2" }, "origin": { "Ability": "Combat" @@ -290,7 +308,8 @@ "units": { "infantry": 1 }, - "balance": "Loss" + "balance": "Loss", + "position": "C1" }, "origin": { "Ability": "Combat" @@ -298,10 +317,9 @@ } ], "log": [ - "Player1: Move: marched 1 infantry from C2 to C1, Pay 1 action", "Combat round 1", - "Player1: Combat: Attacking with 1 infantry, Roll 6 (infantry, +1 combat value) for combined combat value of 7 and gets 1 hits against defending units, Lost 1 infantry at C2", - "Player2: Combat: Defending with 2 infantry, Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value) for combined combat value of 14 and gets 1 hits against attacking units, Combat modifiers: Sparta denies playing tactics cards, Lost 1 infantry at C1", + "Player1: Combat: Attacking with 1 infantry, Roll 6 (infantry, +1 combat value) for combined combat value of 7 and gets 1 hits against defending units", + "Player2: Combat: Defending with 2 infantry, Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value) for combined combat value of 14 and gets 1 hits against attacking units, Combat modifiers: Sparta denies playing tactics cards", "Player1: Choose Casualties: Remove all attacking units", "Player2: Choose Casualties: Remove 1 of their defending units", "Defender wins" diff --git a/server/tests/test_games/civilizations/greece/sparta_draft.outcome.json b/server/tests/test_games/civilizations/greece/sparta_draft.outcome.json index 14aa8306..daf14f01 100644 --- a/server/tests/test_games/civilizations/greece/sparta_draft.outcome.json +++ b/server/tests/test_games/civilizations/greece/sparta_draft.outcome.json @@ -235,11 +235,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Recruit" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Recruit" @@ -251,7 +255,7 @@ "resources": { "culture_tokens": 1 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Recruit" @@ -271,7 +275,8 @@ "units": { "infantry": 1 }, - "balance": "Gain" + "balance": "Gain", + "position": "A1" }, "origin": { "Ability": "Recruit" @@ -279,7 +284,6 @@ } ], "log": [ - "Player1: Recruit: Pay 1 action, Pay 1 culture token with Draft, Sparta, Gain 1 infantry at A1", "Player1: Draft: Reduce the cost of 1 Infantry to 1 mood token", "Player1: Sparta: Can pay the Draft cost as culture tokens" ] diff --git a/server/tests/test_games/civilizations/rome/aqueduct_discount.outcome.json b/server/tests/test_games/civilizations/rome/aqueduct_discount.outcome.json index efb0984d..d0077e8c 100644 --- a/server/tests/test_games/civilizations/rome/aqueduct_discount.outcome.json +++ b/server/tests/test_games/civilizations/rome/aqueduct_discount.outcome.json @@ -223,11 +223,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Advance" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -237,7 +241,7 @@ "player": 0, "Resources": { "resources": {}, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -264,7 +268,9 @@ "player": 0, "Advance": { "advance": "Sanitation", - "take_incident_token": true, + "incident_token": { + "Take": 2 + }, "balance": "Gain" }, "origin": { @@ -273,9 +279,7 @@ } ], "log": [ - "Player1: Advance: Pay 1 action, Pay nothing with Aqueduct, Gain Sanitation and take an event token (2 left)", - "Player1: Aqueduct: Reduce the cost to 0", - "Player1: Sanitation: Gain 1 mood token" + "Player1: Aqueduct: Reduce the cost to 0" ] } ] diff --git a/server/tests/test_games/civilizations/rome/aqueduct_free_action.outcome1.json b/server/tests/test_games/civilizations/rome/aqueduct_free_action.outcome1.json index 50fcd3b0..7ce8eb57 100644 --- a/server/tests/test_games/civilizations/rome/aqueduct_free_action.outcome1.json +++ b/server/tests/test_games/civilizations/rome/aqueduct_free_action.outcome1.json @@ -221,10 +221,10 @@ } } }, - "log": [ - "Player1: Aqueduct: Start action", - "Player1: Advance: Pay 2 ideas" - ] + "player": 0, + "origin": { + "SpecialAdvance": "Aqueduct" + } }, { "action": { @@ -236,6 +236,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -243,7 +244,7 @@ "resources": { "food": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -265,7 +266,9 @@ "player": 0, "Advance": { "advance": "Sanitation", - "take_incident_token": true, + "incident_token": { + "Take": 2 + }, "balance": "Gain" }, "origin": { @@ -273,11 +276,7 @@ } } ], - "log": [ - "Player1: Advance: Pay 2 food", - "Player1: Sanitation: Gain 1 mood token", - "Player1: Aqueduct: Gain Sanitation and take an event token (2 left)" - ] + "active_events": 1 } ] } diff --git a/server/tests/test_games/civilizations/rome/captivi.outcome.json b/server/tests/test_games/civilizations/rome/captivi.outcome.json index e711f137..950e2c47 100644 --- a/server/tests/test_games/civilizations/rome/captivi.outcome.json +++ b/server/tests/test_games/civilizations/rome/captivi.outcome.json @@ -229,11 +229,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Construct Building" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Construct Building" @@ -247,7 +251,7 @@ "wood": 1, "mood_tokens": 1 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Construct Building" @@ -265,7 +269,8 @@ "Building": "Market" }, "balance": "Gain", - "position": "A1" + "position": "A1", + "port_position": null }, "origin": { "Ability": "Construct Building" @@ -273,7 +278,6 @@ } ], "log": [ - "Player1: Construct Building: Pay 1 action, Pay 1 food, 1 wood and 1 mood token with Captivi, Gain Market at A1", "Player1: Captivi: May replace resources with mood tokens" ] } diff --git a/server/tests/test_games/civilizations/rome/civilizer.outcome.json b/server/tests/test_games/civilizations/rome/civilizer.outcome.json index 632e1678..884d3b73 100644 --- a/server/tests/test_games/civilizations/rome/civilizer.outcome.json +++ b/server/tests/test_games/civilizations/rome/civilizer.outcome.json @@ -371,6 +371,10 @@ } } }, + "player": 0, + "origin": { + "Ability": "Move" + }, "combat_stats": { "round": 1, "battleground": "Land", @@ -394,10 +398,23 @@ "result": "AttackerWins" }, "items": [ + { + "player": 0, + "Move": { + "units": { + "leader": "Sulla" + }, + "start": "E8", + "destination": "D8" + }, + "origin": { + "Ability": "Move" + } + }, { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Move" @@ -409,7 +426,8 @@ "units": { "infantry": 1 }, - "balance": "Loss" + "balance": "Loss", + "position": "D8" }, "origin": { "Ability": "Combat" @@ -429,13 +447,11 @@ } ], "log": [ - "Player1: Move: marched Sulla from E8 to D8, Pay 1 action", "Combat round 1", "Player1: Combat: Attacking with Sulla, Roll 5 (cavalry, no bonus) for combined combat value of 7 and gets 1 hits against defending units, Combat modifiers: Sulla adds 2 combat value", - "Barbarians: Combat: Defending with 1 infantry, Roll 2 (cavalry, no bonus) for combined combat value of 2 and gets 0 hits against attacking units, Lost 1 infantry at D8", + "Barbarians: Combat: Defending with 1 infantry, Roll 2 (cavalry, no bonus) for combined combat value of 2 and gets 0 hits against attacking units", "Barbarians: Choose Casualties: Remove all defending units", - "Attacker wins", - "Player1: Barbarian battle: Gain 1 gold" + "Attacker wins" ] } ] diff --git a/server/tests/test_games/civilizations/rome/emperor.outcome.json b/server/tests/test_games/civilizations/rome/emperor.outcome.json index 1fdd29b3..eb5d3f89 100644 --- a/server/tests/test_games/civilizations/rome/emperor.outcome.json +++ b/server/tests/test_games/civilizations/rome/emperor.outcome.json @@ -370,6 +370,10 @@ } } }, + "player": 0, + "origin": { + "Ability": "Move" + }, "combat_stats": { "round": 1, "battleground": "City", @@ -394,10 +398,23 @@ "city_mood": "Happy" }, "items": [ + { + "player": 0, + "Move": { + "units": { + "leader": "Augustus" + }, + "start": "E8", + "destination": "D8" + }, + "origin": { + "Ability": "Move" + } + }, { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Move" @@ -409,7 +426,8 @@ "units": { "infantry": 1 }, - "balance": "Loss" + "balance": "Loss", + "position": "D8" }, "origin": { "Ability": "Combat" @@ -432,7 +450,8 @@ "Structure": { "structure": "CityCenter", "balance": "Loss", - "position": "D8" + "position": "D8", + "port_position": null }, "origin": { "Ability": "Combat" @@ -443,7 +462,8 @@ "Structure": { "structure": "CityCenter", "balance": "Gain", - "position": "D8" + "position": "D8", + "port_position": null }, "origin": { "Ability": "Combat" @@ -461,10 +481,9 @@ } ], "log": [ - "Player1: Move: marched Augustus from E8 to D8, Pay 1 action", "Combat round 1", - "Player1: Combat: Attacking with Augustus, Roll 5 (cavalry, no bonus) for combined combat value of 7 and gets 1 hits against defending units, Combat modifiers: Emperor adds 2 combat value, Gain 2 gold, Gain city D8, City D8 became Angry", - "Player2: Combat: Defending with 1 infantry, Roll 2 (cavalry, no bonus) for combined combat value of 2 and gets 0 hits against attacking units, Lost 1 infantry at D8, Lose city D8", + "Player1: Combat: Attacking with Augustus, Roll 5 (cavalry, no bonus) for combined combat value of 7 and gets 1 hits against defending units, Combat modifiers: Emperor adds 2 combat value", + "Player2: Combat: Defending with 1 infantry, Roll 2 (cavalry, no bonus) for combined combat value of 2 and gets 0 hits against attacking units", "Player2: Choose Casualties: Remove all defending units", "Attacker wins" ] diff --git a/server/tests/test_games/civilizations/rome/princeps.outcome1.json b/server/tests/test_games/civilizations/rome/princeps.outcome1.json index ee45b9ae..1a785dde 100644 --- a/server/tests/test_games/civilizations/rome/princeps.outcome1.json +++ b/server/tests/test_games/civilizations/rome/princeps.outcome1.json @@ -257,19 +257,20 @@ } } }, + "player": 0, + "origin": { + "LeaderAbility": "Princeps" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "LeaderAbility": "Princeps" } } - ], - "log": [ - "Player1: Princeps: Pay 1 action, Start action, Pay 1 culture token" ] }, { @@ -282,6 +283,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -289,7 +291,7 @@ "resources": { "culture_tokens": 1 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "LeaderAbility": "Princeps" @@ -356,9 +358,7 @@ } } ], - "log": [ - "Player1: Princeps: Pay 1 culture token, Draw an action card, Draw an objective card, Discard Quick Advance/Peltasts, Discard Large Civilization/Draft" - ] + "active_events": 1 } ] } diff --git a/server/tests/test_games/civilizations/rome/proconsul.outcome1.json b/server/tests/test_games/civilizations/rome/proconsul.outcome1.json index da28f607..75a17711 100644 --- a/server/tests/test_games/civilizations/rome/proconsul.outcome1.json +++ b/server/tests/test_games/civilizations/rome/proconsul.outcome1.json @@ -375,6 +375,10 @@ } } }, + "player": 0, + "origin": { + "Ability": "Move" + }, "combat_stats": { "round": 1, "battleground": "City", @@ -399,10 +403,23 @@ "city_mood": "Happy" }, "items": [ + { + "player": 0, + "Move": { + "units": { + "leader": "Caesar" + }, + "start": "E8", + "destination": "D8" + }, + "origin": { + "Ability": "Move" + } + }, { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Move" @@ -414,7 +431,8 @@ "units": { "infantry": 1 }, - "balance": "Loss" + "balance": "Loss", + "position": "D8" }, "origin": { "Ability": "Combat" @@ -437,7 +455,8 @@ "Structure": { "structure": "CityCenter", "balance": "Loss", - "position": "D8" + "position": "D8", + "port_position": null }, "origin": { "Ability": "Combat" @@ -448,7 +467,8 @@ "Structure": { "structure": "CityCenter", "balance": "Gain", - "position": "D8" + "position": "D8", + "port_position": null }, "origin": { "Ability": "Combat" @@ -466,10 +486,9 @@ } ], "log": [ - "Player1: Move: marched Gaius Julius Caesar from E8 to D8, Pay 1 action", "Combat round 1", - "Player1: Combat: Attacking with Gaius Julius Caesar, Roll 5 (cavalry, no bonus) for combined combat value of 5 and gets 1 hits against defending units, Gain 2 gold, Gain city D8, City D8 became Angry", - "Player2: Combat: Defending with 1 infantry, Roll 2 (cavalry, no bonus) for combined combat value of 2 and gets 0 hits against attacking units, Lost 1 infantry at D8, Lose city D8", + "Player1: Combat: Attacking with Gaius Julius Caesar, Roll 5 (cavalry, no bonus) for combined combat value of 5 and gets 1 hits against defending units", + "Player2: Combat: Defending with 1 infantry, Roll 2 (cavalry, no bonus) for combined combat value of 2 and gets 0 hits against attacking units", "Player2: Choose Casualties: Remove all defending units", "Attacker wins" ] @@ -484,6 +503,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -491,7 +511,7 @@ "resources": { "gold": 1 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "LeaderAbility": "Proconsul" @@ -503,16 +523,15 @@ "units": { "infantry": 1 }, - "balance": "Gain" + "balance": "Gain", + "position": "D8" }, "origin": { "LeaderAbility": "Proconsul" } } ], - "log": [ - "Player1: Proconsul: Pay 1 gold, Gain 1 infantry at D8" - ] + "active_events": 1 } ] } diff --git a/server/tests/test_games/civilizations/rome/provinces.outcome2.json b/server/tests/test_games/civilizations/rome/provinces.outcome2.json index e0ecfce7..920296a8 100644 --- a/server/tests/test_games/civilizations/rome/provinces.outcome2.json +++ b/server/tests/test_games/civilizations/rome/provinces.outcome2.json @@ -275,11 +275,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Advance" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -291,7 +295,7 @@ "resources": { "food": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -301,7 +305,9 @@ "player": 0, "Advance": { "advance": "Voting", - "take_incident_token": true, + "incident_token": { + "Take": 2 + }, "balance": "Gain" }, "origin": { @@ -310,7 +316,7 @@ } ], "log": [ - "Player1: Advance: Pay 1 action, Pay 2 food, Unlock Provinces, Gain Voting and take an event token (2 left)" + "Player1: Advance: Unlock Provinces" ] }, { @@ -324,6 +330,10 @@ } } }, + "player": 0, + "origin": { + "Ability": "Move" + }, "combat_stats": { "round": 1, "battleground": "City", @@ -342,10 +352,23 @@ "city_mood": "Neutral" }, "items": [ + { + "player": 0, + "Move": { + "units": { + "infantry": 1 + }, + "start": "C2", + "destination": "B2" + }, + "origin": { + "Ability": "Move" + } + }, { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Move" @@ -368,7 +391,8 @@ "Structure": { "structure": "CityCenter", "balance": "Loss", - "position": "B2" + "position": "B2", + "port_position": null }, "origin": { "Ability": "Combat" @@ -379,7 +403,8 @@ "Structure": { "structure": "CityCenter", "balance": "Gain", - "position": "B2" + "position": "B2", + "port_position": null }, "origin": { "Ability": "Combat" @@ -392,7 +417,8 @@ "Building": "Port" }, "balance": "Loss", - "position": "B2" + "position": "B2", + "port_position": "C3" }, "origin": { "Ability": "Combat" @@ -405,7 +431,8 @@ "Building": "Port" }, "balance": "Gain", - "position": "B2" + "position": "B2", + "port_position": "C3" }, "origin": { "Ability": "Combat" @@ -421,11 +448,6 @@ "Ability": "Combat" } } - ], - "log": [ - "Player1: Move: marched 1 infantry from C2 to B2, Pay 1 action", - "Player1: Combat: Gain 2 gold, Gain city B2, Gain Port at B2 at the water tile C3, City B2 became Angry", - "Player2: Combat: Lose city B2, Lose Port at B2" ] }, { @@ -438,6 +460,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -445,7 +468,7 @@ "resources": { "culture_tokens": 1 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "SpecialAdvance": "Provinces" @@ -467,17 +490,15 @@ "units": { "settlers": 1 }, - "balance": "Gain" + "balance": "Gain", + "position": "C1" }, "origin": { "Ability": "Place Settler" } } ], - "log": [ - "Player1: Provinces: Pay 1 culture token, City B2 became Happy", - "Player2: Place Settler: Gain 1 settler at C1" - ] + "active_events": 1 } ] } diff --git a/server/tests/test_games/civilizations/rome/roman_roads.outcome.json b/server/tests/test_games/civilizations/rome/roman_roads.outcome.json index fe1a0c82..4a54942c 100644 --- a/server/tests/test_games/civilizations/rome/roman_roads.outcome.json +++ b/server/tests/test_games/civilizations/rome/roman_roads.outcome.json @@ -284,11 +284,31 @@ } } }, + "player": 0, + "origin": { + "Ability": "Move" + }, "items": [ + { + "player": 0, + "Move": { + "units": { + "settlers": 3, + "infantry": 1, + "cavalry": 1, + "elephants": 1 + }, + "start": "E2", + "destination": "A1" + }, + "origin": { + "Ability": "Move" + } + }, { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Move" @@ -301,7 +321,7 @@ "food": 1, "ore": 1 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Move" @@ -312,9 +332,6 @@ } ] } - ], - "log": [ - "Player1: Move: marched 3 settlers, 1 infantry, 1 cavalry and 1 elephant from E2 to A1 on roads for 1 food and 1 ore, Pay 1 action, Pay 1 food and 1 ore with Roman Roads" ] } ] diff --git a/server/tests/test_games/civilizations/rome/statesman.outcome.json b/server/tests/test_games/civilizations/rome/statesman.outcome.json index 41c77ff7..0b58128e 100644 --- a/server/tests/test_games/civilizations/rome/statesman.outcome.json +++ b/server/tests/test_games/civilizations/rome/statesman.outcome.json @@ -262,11 +262,17 @@ "mood_tokens": 2 }, "action_type": { - "Custom": "StatesmanIncreaseHappiness" + "Special": { + "Modifier": "StatesmanIncreaseHappiness" + } } } } }, + "player": 0, + "origin": { + "LeaderAbility": "Statesman" + }, "items": [ { "player": 0, @@ -284,15 +290,12 @@ "resources": { "mood_tokens": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "LeaderAbility": "Statesman" } } - ], - "log": [ - "Player1: Statesman: City A1 became Neutral, Pay 2 mood tokens" ] } ] diff --git a/server/tests/test_games/civilizations/vikings/danegeld.outcome1.json b/server/tests/test_games/civilizations/vikings/danegeld.outcome1.json index 3affa713..24e88776 100644 --- a/server/tests/test_games/civilizations/vikings/danegeld.outcome1.json +++ b/server/tests/test_games/civilizations/vikings/danegeld.outcome1.json @@ -99,7 +99,9 @@ ], "next_unit_id": 10, "played_once_per_turn_actions": [ - "Taxes" + { + "Custom": "Taxes" + } ] }, { @@ -270,19 +272,20 @@ } } }, + "player": 0, + "origin": { + "LeaderAbility": "Danegeld" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "LeaderAbility": "Danegeld" } } - ], - "log": [ - "Player1: Danegeld: Pay 1 action, Start action" ] }, { @@ -293,6 +296,7 @@ } } }, + "player": 0, "items": [ { "player": 0, @@ -315,12 +319,21 @@ "origin": { "Ability": "Danegeld" } + }, + { + "player": 0, + "Resources": { + "resources": { + "food": 4 + }, + "balance": "Loss" + }, + "origin": { + "Ability": "Waste" + } } ], - "log": [ - "Player1: Danegeld: Gain 4 food, City E2 became Neutral", - "Player1: Waste: Could not store 4 food" - ] + "active_events": 1 } ] } diff --git a/server/tests/test_games/civilizations/vikings/explorer.outcome1.json b/server/tests/test_games/civilizations/vikings/explorer.outcome1.json index a9fc7095..c247c047 100644 --- a/server/tests/test_games/civilizations/vikings/explorer.outcome1.json +++ b/server/tests/test_games/civilizations/vikings/explorer.outcome1.json @@ -275,19 +275,20 @@ } } }, + "player": 0, + "origin": { + "LeaderAbility": "Legendary Explorer" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "LeaderAbility": "Legendary Explorer" } } - ], - "log": [ - "Player1: Legendary Explorer: Pay 1 action, Start action, Pay 1 culture token" ] }, { @@ -300,6 +301,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -307,7 +309,7 @@ "resources": { "culture_tokens": 1 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "LeaderAbility": "Legendary Explorer" @@ -315,8 +317,9 @@ } ], "log": [ - "Player1: Legendary Explorer: Pay 1 culture token, Place an explorer token at D2" - ] + "Player1: Legendary Explorer: Place an explorer token at D2" + ], + "active_events": 1 } ] } diff --git a/server/tests/test_games/civilizations/vikings/longships.outcome1.json b/server/tests/test_games/civilizations/vikings/longships.outcome1.json index f165904d..cfb0eb45 100644 --- a/server/tests/test_games/civilizations/vikings/longships.outcome1.json +++ b/server/tests/test_games/civilizations/vikings/longships.outcome1.json @@ -268,6 +268,10 @@ } } }, + "player": 0, + "origin": { + "Ability": "Move" + }, "combat_stats": { "round": 1, "battleground": "Sea", @@ -291,10 +295,23 @@ "result": "AttackerWins" }, "items": [ + { + "player": 0, + "Move": { + "units": { + "ships": 3 + }, + "start": "D2", + "destination": "C3" + }, + "origin": { + "Ability": "Move" + } + }, { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Move" @@ -306,7 +323,8 @@ "units": { "ships": 1 }, - "balance": "Loss" + "balance": "Loss", + "position": "C3" }, "origin": { "Ability": "Combat" @@ -314,11 +332,10 @@ } ], "log": [ - "Player1: Move: sailed 3 ships from D2 to C3, Pay 1 action", "Player1: Longships: Ignore battle movement restrictions", "Combat round 1", "Player1: Combat: Attacking with 3 ships, Roll 6 (infantry, no bonus), 6 (infantry, no bonus), 6 (infantry, no bonus) for combined combat value of 18 and gets 1 hits against defending units, Combat modifiers: WarShips ignore the first hit in the first round of combat", - "Player2: Combat: Defending with 1 ship, Roll 6 (infantry, no bonus) for combined combat value of 6 and gets 0 hits against attacking units, Lost 1 ship at C3", + "Player2: Combat: Defending with 1 ship, Roll 6 (infantry, no bonus) for combined combat value of 6 and gets 0 hits against attacking units", "Player2: Choose Casualties: Remove all defending units", "Attacker wins" ] @@ -335,6 +352,10 @@ } } }, + "player": 0, + "origin": { + "Ability": "Move" + }, "combat_stats": { "round": 1, "battleground": "Sea", @@ -358,10 +379,23 @@ "result": "AttackerWins" }, "items": [ + { + "player": 0, + "Move": { + "units": { + "ships": 2 + }, + "start": "C3", + "destination": "C4" + }, + "origin": { + "Ability": "Move" + } + }, { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Move" @@ -373,7 +407,8 @@ "units": { "ships": 1 }, - "balance": "Loss" + "balance": "Loss", + "position": "C4" }, "origin": { "Ability": "Combat" @@ -381,11 +416,10 @@ } ], "log": [ - "Player1: Move: sailed 2 ships from C3 to C4, Pay 1 action", "Player1: Longships: Ignore battle movement restrictions", "Combat round 1", "Player1: Combat: Attacking with 2 ships, Roll 6 (infantry, no bonus), 6 (infantry, no bonus) for combined combat value of 12 and gets 1 hits against defending units, Combat modifiers: WarShips ignore the first hit in the first round of combat", - "Player2: Combat: Defending with 1 ship, Roll 6 (infantry, no bonus) for combined combat value of 6 and gets 0 hits against attacking units, Lost 1 ship at C4", + "Player2: Combat: Defending with 1 ship, Roll 6 (infantry, no bonus) for combined combat value of 6 and gets 0 hits against attacking units", "Player2: Choose Casualties: Remove all defending units", "Attacker wins" ] diff --git a/server/tests/test_games/civilizations/vikings/new_colonies.outcome2.json b/server/tests/test_games/civilizations/vikings/new_colonies.outcome2.json index cac6c5eb..df3ac474 100644 --- a/server/tests/test_games/civilizations/vikings/new_colonies.outcome2.json +++ b/server/tests/test_games/civilizations/vikings/new_colonies.outcome2.json @@ -259,9 +259,10 @@ } } }, - "log": [ - "Player1: New Colonies: Start action" - ] + "player": 0, + "origin": { + "LeaderAbility": "New Colonies" + } }, { "action": { @@ -271,13 +272,31 @@ ] } }, + "player": 0, + "items": [ + { + "player": 0, + "Move": { + "units": { + "settlers": 1, + "infantry": 1, + "leader": "Erik" + }, + "start": "D2", + "destination": "D1" + }, + "origin": { + "Ability": "New Colonies" + } + } + ], "log": [ - "Player1: New Colonies: disembarked 1 settler, 1 infantry and Erik the Red from D2 to D1", "Combat round 1", "Player1: Combat: Attacking with 1 settler, 1 infantry and Erik the Red, Roll 6 (infantry, +1 combat value), 6 (infantry, no bonus) for combined combat value of 13 and gets 1 hits against defending units", "Player2: Combat: Defending with 1 infantry, Roll 6 (infantry, +1 combat value) for combined combat value of 7 and gets 1 hits against attacking units", "Player1: Choose Casualties: Remove 1 of their attacking units" - ] + ], + "active_events": 1 }, { "action": { @@ -287,6 +306,7 @@ ] } }, + "player": 0, "combat_stats": { "round": 1, "battleground": "Land", @@ -322,7 +342,8 @@ "units": { "leader": "Erik" }, - "balance": "Loss" + "balance": "Loss", + "position": "D2" }, "origin": { "Ability": "Combat" @@ -334,7 +355,8 @@ "units": { "infantry": 1 }, - "balance": "Loss" + "balance": "Loss", + "position": "D1" }, "origin": { "Ability": "Combat" @@ -342,11 +364,10 @@ } ], "log": [ - "Player1: Combat: Lost Erik the Red at D2", "Player2: Choose Casualties: Remove all defending units", - "Player2: Combat: Lost 1 infantry at D1", "Attacker wins" - ] + ], + "active_events": 2 } ] } diff --git a/server/tests/test_games/civilizations/vikings/prey.outcome.json b/server/tests/test_games/civilizations/vikings/prey.outcome.json index fb7f55a2..ecad5645 100644 --- a/server/tests/test_games/civilizations/vikings/prey.outcome.json +++ b/server/tests/test_games/civilizations/vikings/prey.outcome.json @@ -286,6 +286,10 @@ } } }, + "player": 0, + "origin": { + "Ability": "Move" + }, "combat_stats": { "round": 1, "battleground": "City", @@ -304,10 +308,23 @@ "city_mood": "Neutral" }, "items": [ + { + "player": 0, + "Move": { + "units": { + "leader": "Ragnar" + }, + "start": "E2", + "destination": "D1" + }, + "origin": { + "Ability": "Move" + } + }, { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Move" @@ -330,7 +347,8 @@ "Structure": { "structure": "CityCenter", "balance": "Loss", - "position": "D1" + "position": "D1", + "port_position": null }, "origin": { "Ability": "Combat" @@ -341,7 +359,8 @@ "Structure": { "structure": "CityCenter", "balance": "Gain", - "position": "D1" + "position": "D1", + "port_position": null }, "origin": { "Ability": "Combat" @@ -375,20 +394,25 @@ "units": { "settlers": 1 }, - "balance": "Gain" + "balance": "Gain", + "position": "B2" }, "origin": { "Ability": "Place Settler" } + }, + { + "player": 0, + "Resources": { + "resources": { + "gold": 1 + }, + "balance": "Loss" + }, + "origin": { + "Ability": "Waste" + } } - ], - "log": [ - "Player1: Move: marched Ragnar Lodbrok from E2 to D1, Pay 1 action", - "Player1: Combat: Gain 1 gold, Gain city D1, City D1 became Angry", - "Player2: Combat: Lose city D1", - "Player1: Prey: Gain 2 gold", - "Player2: Place Settler: Gain 1 settler at B2", - "Player1: Waste: Could not store 1 gold" ] } ] diff --git a/server/tests/test_games/civilizations/vikings/raids.outcome2.json b/server/tests/test_games/civilizations/vikings/raids.outcome2.json index 81b660f7..ef13ee46 100644 --- a/server/tests/test_games/civilizations/vikings/raids.outcome2.json +++ b/server/tests/test_games/civilizations/vikings/raids.outcome2.json @@ -393,8 +393,21 @@ "action": { "Playing": "EndTurn" }, - "log": [ - "Player1: End Turn: 3 actions left" + "player": 0, + "origin": { + "Ability": "End Turn" + }, + "items": [ + { + "player": 0, + "Action": { + "balance": "Loss", + "amount": 3 + }, + "origin": { + "Ability": "End Turn" + } + } ] } ] @@ -411,6 +424,7 @@ "actions": [ { "action": "StartTurn", + "player": 1, "items": [ { "player": 0, @@ -435,21 +449,44 @@ "origin": { "Advance": "TradeRoutes" } + }, + { + "player": 1, + "Resources": { + "resources": { + "food": 1 + }, + "balance": "Loss" + }, + "origin": { + "Ability": "Waste" + } } ], "log": [ - "Player1: Market: Gain 1 gold", - "Player2: Trade Routes: ship at E7 traded with city D6, settler at E7 traded with city E6, Gain 2 food", - "Player2: Raiding: Raided Player1 at D6", - "Player2: Waste: Could not store 1 food" + "Player2: Trade Routes: ship at E7 traded with city D6, settler at E7 traded with city E6", + "Player2: Raiding: Raided Player1 at D6" ] }, { "action": { "Playing": "EndTurn" }, - "log": [ - "Player2: End Turn: 3 actions left" + "player": 1, + "origin": { + "Ability": "End Turn" + }, + "items": [ + { + "player": 1, + "Action": { + "balance": "Loss", + "amount": 3 + }, + "origin": { + "Ability": "End Turn" + } + } ] } ] @@ -469,6 +506,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -476,7 +514,7 @@ "resources": { "food": 1 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Viking Raids" @@ -484,8 +522,9 @@ } ], "log": [ - "Player1: Viking Raids: Pay 1 food, Lose 1 food" - ] + "Player1: Viking Raids: Lose 1 food" + ], + "active_events": 1 } ] } diff --git a/server/tests/test_games/civilizations/vikings/ship_construction.outcome3.json b/server/tests/test_games/civilizations/vikings/ship_construction.outcome3.json index 330b9d6a..097eec94 100644 --- a/server/tests/test_games/civilizations/vikings/ship_construction.outcome3.json +++ b/server/tests/test_games/civilizations/vikings/ship_construction.outcome3.json @@ -264,11 +264,28 @@ } } }, + "player": 0, + "origin": { + "Ability": "Move" + }, "items": [ + { + "player": 0, + "Move": { + "units": { + "settlers": 1 + }, + "start": "E2", + "destination": "D2" + }, + "origin": { + "Ability": "Move" + } + }, { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Move" @@ -276,7 +293,6 @@ } ], "log": [ - "Player1: Move: marched 1 settler from E2 to D2, Pay 1 action", "Player1: Ship Construction: Convert 1 settler to ships" ] }, @@ -293,8 +309,26 @@ } } }, - "log": [ - "Player1: Move: embarked 1 settler and 1 infantry from E2 to D2" + "player": 0, + "origin": { + "Ability": "Move" + }, + "items": [ + { + "player": 0, + "Move": { + "units": { + "settlers": 1, + "infantry": 1 + }, + "start": "E2", + "destination": "D2", + "embark_carrier_id": 3 + }, + "origin": { + "Ability": "Move" + } + } ] }, { @@ -308,19 +342,33 @@ } } }, + "player": 0, + "origin": { + "Ability": "Move" + }, "items": [ + { + "player": 0, + "Move": { + "units": { + "ships": 1 + }, + "start": "D2", + "destination": "C2" + }, + "origin": { + "Ability": "Move" + } + }, { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Move" } } - ], - "log": [ - "Player1: Move: disembarked 1 ship from D2 to C2, Pay 1 action" ] }, { @@ -331,9 +379,11 @@ ] } }, + "player": 0, "log": [ "Player1: Ship Construction: Unloaded 1 settler and 1 infantry from ships, Converted 1 ship to 1 settler" - ] + ], + "active_events": 1 } ] } diff --git a/server/tests/test_games/combat/capture_and_raze_city.outcome.json b/server/tests/test_games/combat/capture_and_raze_city.outcome.json index afa7b4be..443c2b1c 100644 --- a/server/tests/test_games/combat/capture_and_raze_city.outcome.json +++ b/server/tests/test_games/combat/capture_and_raze_city.outcome.json @@ -226,6 +226,10 @@ } } }, + "player": 0, + "origin": { + "Ability": "Move" + }, "combat_stats": { "round": 1, "battleground": "CityWithFortress", @@ -252,13 +256,29 @@ "city_mood": "Angry" }, "items": [ + { + "player": 0, + "Move": { + "units": { + "infantry": 2, + "cavalry": 1, + "elephants": 1 + }, + "start": "C2", + "destination": "C1" + }, + "origin": { + "Ability": "Move" + } + }, { "player": 1, "Units": { "units": { "infantry": 2 }, - "balance": "Loss" + "balance": "Loss", + "position": "C1" }, "origin": { "Ability": "Combat" @@ -295,7 +315,8 @@ "Building": "Fortress" }, "balance": "Loss", - "position": "C1" + "position": "C1", + "port_position": null }, "origin": { "Ability": "Combat" @@ -308,7 +329,8 @@ "Wonder": "GreatWall" }, "balance": "Loss", - "position": "C1" + "position": "C1", + "port_position": null }, "origin": { "Ability": "Combat" @@ -319,7 +341,8 @@ "Structure": { "structure": "CityCenter", "balance": "Loss", - "position": "C1" + "position": "C1", + "port_position": null }, "origin": { "Ability": "Combat" @@ -331,23 +354,32 @@ "units": { "settlers": 1 }, - "balance": "Gain" + "balance": "Gain", + "position": "A2" }, "origin": { "Ability": "Place Settler" } + }, + { + "player": 0, + "Resources": { + "resources": { + "gold": 4 + }, + "balance": "Loss" + }, + "origin": { + "Ability": "Waste" + } } ], "log": [ - "Player1: Move: marched 2 infantry, 1 cavalry and 1 elephant from C2 to C1", "Combat round 1", - "Player1: Combat: Attacking with 2 infantry, 1 cavalry and 1 elephant, Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value), 6 (infantry, no bonus), 6 (infantry, no bonus) for combined combat value of 26 and gets 2 hits against defending units, Gain 1 gold", - "Player2: Combat: Defending with 2 infantry, Roll 1 (leader, no bonus), 1 (leader, no bonus), 1 (leader, no bonus) for combined combat value of 3 and gets 0 hits against attacking units, Combat modifiers: fortress added one extra die, fortress cancelled one hit, Lost 2 infantry at C1, Lose Fortress at C1, Lose Great Wall at C1, Lose city C1", + "Player1: Combat: Attacking with 2 infantry, 1 cavalry and 1 elephant, Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value), 6 (infantry, no bonus), 6 (infantry, no bonus) for combined combat value of 26 and gets 2 hits against defending units", + "Player2: Combat: Defending with 2 infantry, Roll 1 (leader, no bonus), 1 (leader, no bonus), 1 (leader, no bonus) for combined combat value of 3 and gets 0 hits against attacking units, Combat modifiers: fortress added one extra die, fortress cancelled one hit", "Player2: Choose Casualties: Remove all defending units", - "Attacker wins", - "Player1: Raze captured city: Gain 3 gold", - "Player2: Place Settler: Gain 1 settler at A2", - "Player1: Waste: Could not store 4 gold" + "Attacker wins" ] } ] diff --git a/server/tests/test_games/combat/combat_all_modifiers.outcome5.json b/server/tests/test_games/combat/combat_all_modifiers.outcome5.json index c280c9e3..41e6cb0f 100644 --- a/server/tests/test_games/combat/combat_all_modifiers.outcome5.json +++ b/server/tests/test_games/combat/combat_all_modifiers.outcome5.json @@ -223,11 +223,31 @@ } } }, + "player": 0, + "origin": { + "Ability": "Move" + }, "items": [ + { + "player": 0, + "Move": { + "units": { + "settlers": 2, + "infantry": 2, + "cavalry": 1, + "elephants": 1 + }, + "start": "C2", + "destination": "C1" + }, + "origin": { + "Ability": "Move" + } + }, { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Move" @@ -235,7 +255,6 @@ } ], "log": [ - "Player1: Move: marched 2 settlers, 2 infantry, 1 cavalry and 1 elephant from C2 to C1, Pay 1 action", "Combat round 1", "Player1: Combat: Attacking with 2 settlers, 2 infantry, 1 cavalry and 1 elephant", "Player2: Combat: Defending with 2 infantry" @@ -251,6 +270,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -258,16 +278,14 @@ "resources": { "ore": 1 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Advance": "SteelWeapons" } } ], - "log": [ - "Player1: Steel Weapons: Pay 1 ore" - ] + "active_events": 1 }, { "action": { @@ -280,12 +298,13 @@ ] } }, + "player": 0, "items": [ { "player": 0, "Resources": { "resources": {}, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Advance": "Siegecraft" @@ -297,7 +316,7 @@ "resources": { "ore": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Advance": "Siegecraft" @@ -305,8 +324,9 @@ } ], "log": [ - "Player1: Siegecraft: Pay nothing, Pay 2 ore, Cancel Fortress Ignore Hit" - ] + "Player1: Siegecraft: Cancel Fortress Ignore Hit" + ], + "active_events": 1 }, { "action": { @@ -318,6 +338,7 @@ ] } }, + "player": 1, "items": [ { "player": 1, @@ -325,16 +346,14 @@ "resources": { "ore": 1 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Advance": "SteelWeapons" } } ], - "log": [ - "Player2: Steel Weapons: Pay 1 ore" - ] + "active_events": 1 }, { "action": { @@ -346,6 +365,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -363,9 +383,7 @@ } } ], - "log": [ - "Player1: Tactics: Play an action card face down" - ] + "active_events": 1 }, { "action": { @@ -377,6 +395,7 @@ ] } }, + "player": 1, "combat_stats": { "round": 1, "battleground": "CityWithFortress", @@ -425,7 +444,8 @@ "units": { "infantry": 2 }, - "balance": "Loss" + "balance": "Loss", + "position": "C1" }, "origin": { "Ability": "Combat" @@ -448,7 +468,8 @@ "Structure": { "structure": "CityCenter", "balance": "Loss", - "position": "C1" + "position": "C1", + "port_position": null }, "origin": { "Ability": "Combat" @@ -459,7 +480,8 @@ "Structure": { "structure": "CityCenter", "balance": "Gain", - "position": "C1" + "position": "C1", + "port_position": null }, "origin": { "Ability": "Combat" @@ -472,7 +494,8 @@ "Building": "Fortress" }, "balance": "Loss", - "position": "C1" + "position": "C1", + "port_position": null }, "origin": { "Ability": "Combat" @@ -485,23 +508,36 @@ "Building": "Fortress" }, "balance": "Gain", - "position": "C1" + "position": "C1", + "port_position": null }, "origin": { "Ability": "Combat" } + }, + { + "player": 0, + "Resources": { + "resources": { + "gold": 1 + }, + "balance": "Loss" + }, + "origin": { + "Ability": "Waste" + } } ], "log": [ - "Player2: Tactics: Play an action card face down, Reveal Tactics Card Encircled", "Player1: Tactics: Reveal Tactics Card Peltasts", - "Player1: Combat: Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value), 6 (infantry, no bonus), 1 (leader, no bonus) for combined combat value of 22 and gets 2 hits against defending units, Combat modifiers: steel weapons added 1 combat value, Peltasts rolled a 6 and ignored a hit, Gain 1 gold, Gain city C1, Gain Fortress at C1", - "Player2: Combat: Roll 1 (leader, no bonus), 1 (leader, no bonus), 1 (leader, no bonus) for combined combat value of 4 and gets 0 hits against attacking units, Combat modifiers: fortress added one extra die, steel weapons added 1 combat value, Lost 2 infantry at C1, Lose city C1, Lose Fortress at C1", + "Player2: Tactics: Reveal Tactics Card Encircled", + "Player1: Combat: Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value), 6 (infantry, no bonus), 1 (leader, no bonus) for combined combat value of 22 and gets 2 hits against defending units, Combat modifiers: steel weapons added 1 combat value, Peltasts rolled a 6 and ignored a hit", + "Player2: Combat: Roll 1 (leader, no bonus), 1 (leader, no bonus), 1 (leader, no bonus) for combined combat value of 4 and gets 0 hits against attacking units, Combat modifiers: fortress added one extra die, steel weapons added 1 combat value", "Player2: Encircled: Cannot do damage - opponent has fewer losses", "Player2: Choose Casualties: Remove all defending units", - "Attacker wins", - "Player1: Waste: Could not store 1 gold" - ] + "Attacker wins" + ], + "active_events": 1 } ] } diff --git a/server/tests/test_games/combat/combat_fanaticism.outcome.json b/server/tests/test_games/combat/combat_fanaticism.outcome.json index 258d0127..a7596c9a 100644 --- a/server/tests/test_games/combat/combat_fanaticism.outcome.json +++ b/server/tests/test_games/combat/combat_fanaticism.outcome.json @@ -234,6 +234,10 @@ } } }, + "player": 0, + "origin": { + "Ability": "Move" + }, "combat_stats": { "round": 1, "battleground": "City", @@ -261,10 +265,26 @@ "city_mood": "Angry" }, "items": [ + { + "player": 0, + "Move": { + "units": { + "settlers": 2, + "infantry": 2, + "cavalry": 1, + "elephants": 1 + }, + "start": "C2", + "destination": "C1" + }, + "origin": { + "Ability": "Move" + } + }, { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Move" @@ -276,7 +296,8 @@ "units": { "infantry": 2 }, - "balance": "Loss" + "balance": "Loss", + "position": "C1" }, "origin": { "Ability": "Combat" @@ -299,7 +320,8 @@ "Structure": { "structure": "CityCenter", "balance": "Loss", - "position": "C1" + "position": "C1", + "port_position": null }, "origin": { "Ability": "Combat" @@ -310,7 +332,8 @@ "Structure": { "structure": "CityCenter", "balance": "Gain", - "position": "C1" + "position": "C1", + "port_position": null }, "origin": { "Ability": "Combat" @@ -323,7 +346,8 @@ "Building": "Temple" }, "balance": "Loss", - "position": "C1" + "position": "C1", + "port_position": null }, "origin": { "Ability": "Combat" @@ -336,7 +360,8 @@ "Building": "Temple" }, "balance": "Gain", - "position": "C1" + "position": "C1", + "port_position": null }, "origin": { "Ability": "Combat" @@ -348,7 +373,8 @@ "units": { "infantry": 1 }, - "balance": "Gain" + "balance": "Gain", + "position": "C2" }, "origin": { "Advance": "Fanaticism" @@ -360,23 +386,32 @@ "units": { "settlers": 1 }, - "balance": "Gain" + "balance": "Gain", + "position": "C2" }, "origin": { "Ability": "Place Settler" } + }, + { + "player": 0, + "Resources": { + "resources": { + "gold": 1 + }, + "balance": "Loss" + }, + "origin": { + "Ability": "Waste" + } } ], "log": [ - "Player1: Move: marched 2 settlers, 2 infantry, 1 cavalry and 1 elephant from C2 to C1, Pay 1 action", "Combat round 1", - "Player1: Combat: Attacking with 2 settlers, 2 infantry, 1 cavalry and 1 elephant, Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value), 6 (infantry, no bonus), 6 (infantry, no bonus) for combined combat value of 26 and gets 2 hits against defending units, Gain 1 gold, Gain city C1, Gain Temple at C1", - "Player2: Combat: Defending with 2 infantry, Roll 1 (leader, no bonus), 1 (leader, no bonus) for combined combat value of 4 and gets 0 hits against attacking units, Combat modifiers: Player gets +2 combat value for Fanaticism Advance, Lost 2 infantry at C1, Lose city C1, Lose Temple at C1", + "Player1: Combat: Attacking with 2 settlers, 2 infantry, 1 cavalry and 1 elephant, Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value), 6 (infantry, no bonus), 6 (infantry, no bonus) for combined combat value of 26 and gets 2 hits against defending units", + "Player2: Combat: Defending with 2 infantry, Roll 1 (leader, no bonus), 1 (leader, no bonus) for combined combat value of 4 and gets 0 hits against attacking units, Combat modifiers: Player gets +2 combat value for Fanaticism Advance", "Player2: Choose Casualties: Remove all defending units", - "Attacker wins", - "Player2: Fanaticism: Gain 1 infantry at C2", - "Player2: Place Settler: Gain 1 settler at C2", - "Player1: Waste: Could not store 1 gold" + "Attacker wins" ] } ] diff --git a/server/tests/test_games/combat/direct_capture_city_fortress.outcome.json b/server/tests/test_games/combat/direct_capture_city_fortress.outcome.json index 9cefd86f..e1039558 100644 --- a/server/tests/test_games/combat/direct_capture_city_fortress.outcome.json +++ b/server/tests/test_games/combat/direct_capture_city_fortress.outcome.json @@ -217,6 +217,10 @@ } } }, + "player": 0, + "origin": { + "Ability": "Move" + }, "combat_stats": { "round": 1, "battleground": "CityWithFortress", @@ -243,13 +247,29 @@ "city_mood": "Angry" }, "items": [ + { + "player": 0, + "Move": { + "units": { + "infantry": 2, + "cavalry": 1, + "elephants": 1 + }, + "start": "C2", + "destination": "C1" + }, + "origin": { + "Ability": "Move" + } + }, { "player": 1, "Units": { "units": { "infantry": 2 }, - "balance": "Loss" + "balance": "Loss", + "position": "C1" }, "origin": { "Ability": "Combat" @@ -272,7 +292,8 @@ "Structure": { "structure": "CityCenter", "balance": "Loss", - "position": "C1" + "position": "C1", + "port_position": null }, "origin": { "Ability": "Combat" @@ -283,7 +304,8 @@ "Structure": { "structure": "CityCenter", "balance": "Gain", - "position": "C1" + "position": "C1", + "port_position": null }, "origin": { "Ability": "Combat" @@ -296,7 +318,8 @@ "Building": "Fortress" }, "balance": "Loss", - "position": "C1" + "position": "C1", + "port_position": null }, "origin": { "Ability": "Combat" @@ -309,21 +332,32 @@ "Building": "Fortress" }, "balance": "Gain", - "position": "C1" + "position": "C1", + "port_position": null }, "origin": { "Ability": "Combat" } + }, + { + "player": 0, + "Resources": { + "resources": { + "gold": 1 + }, + "balance": "Loss" + }, + "origin": { + "Ability": "Waste" + } } ], "log": [ - "Player1: Move: marched 2 infantry, 1 cavalry and 1 elephant from C2 to C1", "Combat round 1", - "Player1: Combat: Attacking with 2 infantry, 1 cavalry and 1 elephant, Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value), 6 (infantry, no bonus), 6 (infantry, no bonus) for combined combat value of 26 and gets 2 hits against defending units, Gain 1 gold, Gain city C1, Gain Fortress at C1", - "Player2: Combat: Defending with 2 infantry, Roll 1 (leader, no bonus), 1 (leader, no bonus), 1 (leader, no bonus) for combined combat value of 3 and gets 0 hits against attacking units, Combat modifiers: fortress added one extra die, fortress cancelled one hit, Lost 2 infantry at C1, Lose city C1, Lose Fortress at C1", + "Player1: Combat: Attacking with 2 infantry, 1 cavalry and 1 elephant, Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value), 6 (infantry, no bonus), 6 (infantry, no bonus) for combined combat value of 26 and gets 2 hits against defending units", + "Player2: Combat: Defending with 2 infantry, Roll 1 (leader, no bonus), 1 (leader, no bonus), 1 (leader, no bonus) for combined combat value of 3 and gets 0 hits against attacking units, Combat modifiers: fortress added one extra die, fortress cancelled one hit", "Player2: Choose Casualties: Remove all defending units", - "Attacker wins", - "Player1: Waste: Could not store 1 gold" + "Attacker wins" ] } ] diff --git a/server/tests/test_games/combat/direct_capture_city_metallurgy.outcome.json b/server/tests/test_games/combat/direct_capture_city_metallurgy.outcome.json index 572e04fe..8dca4ccd 100644 --- a/server/tests/test_games/combat/direct_capture_city_metallurgy.outcome.json +++ b/server/tests/test_games/combat/direct_capture_city_metallurgy.outcome.json @@ -218,6 +218,10 @@ } } }, + "player": 0, + "origin": { + "Ability": "Move" + }, "combat_stats": { "round": 1, "battleground": "City", @@ -244,13 +248,29 @@ "city_mood": "Angry" }, "items": [ + { + "player": 0, + "Move": { + "units": { + "infantry": 2, + "cavalry": 1, + "elephants": 1 + }, + "start": "C2", + "destination": "C1" + }, + "origin": { + "Ability": "Move" + } + }, { "player": 1, "Units": { "units": { "leader": "Caesar" }, - "balance": "Loss" + "balance": "Loss", + "position": "C1" }, "origin": { "Ability": "Combat" @@ -273,7 +293,8 @@ "Structure": { "structure": "CityCenter", "balance": "Loss", - "position": "C1" + "position": "C1", + "port_position": null }, "origin": { "Ability": "Combat" @@ -284,21 +305,32 @@ "Structure": { "structure": "CityCenter", "balance": "Gain", - "position": "C1" + "position": "C1", + "port_position": null }, "origin": { "Ability": "Combat" } + }, + { + "player": 0, + "Resources": { + "resources": { + "gold": 1 + }, + "balance": "Loss" + }, + "origin": { + "Ability": "Waste" + } } ], "log": [ - "Player1: Move: marched 2 infantry, 1 cavalry and 1 elephant from C2 to C1", "Combat round 1", - "Player1: Combat: Attacking with 2 infantry, 1 cavalry and 1 elephant, Roll 2 (elephant, -1 hits, no combat value), 2 (elephant, no bonus), 2 (elephant, no bonus), 1 (leader, no bonus) for combined combat value of 7 and gets 1 hits against defending units, Combat modifiers: steel weapons added 2 combat value, Gain 1 gold, Gain city C1", - "Player2: Combat: Defending with Gaius Julius Caesar, Roll 1 (leader, re-roll), 6 (infantry, no bonus) for combined combat value of 6 and gets 0 hits against attacking units, Lost Gaius Julius Caesar at C1, Lose city C1", + "Player1: Combat: Attacking with 2 infantry, 1 cavalry and 1 elephant, Roll 2 (elephant, -1 hits, no combat value), 2 (elephant, no bonus), 2 (elephant, no bonus), 1 (leader, no bonus) for combined combat value of 7 and gets 1 hits against defending units, Combat modifiers: steel weapons added 2 combat value", + "Player2: Combat: Defending with Gaius Julius Caesar, Roll 1 (leader, re-roll), 6 (infantry, no bonus) for combined combat value of 6 and gets 0 hits against attacking units", "Player2: Choose Casualties: Remove all defending units", - "Attacker wins", - "Player1: Waste: Could not store 1 gold" + "Attacker wins" ] } ] diff --git a/server/tests/test_games/combat/direct_capture_city_only_fortress.outcome.json b/server/tests/test_games/combat/direct_capture_city_only_fortress.outcome.json index 41858c05..70c47741 100644 --- a/server/tests/test_games/combat/direct_capture_city_only_fortress.outcome.json +++ b/server/tests/test_games/combat/direct_capture_city_only_fortress.outcome.json @@ -217,6 +217,10 @@ } } }, + "player": 0, + "origin": { + "Ability": "Move" + }, "combat_stats": { "round": 1, "battleground": "CityWithFortress", @@ -237,6 +241,21 @@ "city_mood": "Angry" }, "items": [ + { + "player": 0, + "Move": { + "units": { + "infantry": 2, + "cavalry": 1, + "elephants": 1 + }, + "start": "C2", + "destination": "C1" + }, + "origin": { + "Ability": "Move" + } + }, { "player": 0, "Resources": { @@ -254,7 +273,8 @@ "Structure": { "structure": "CityCenter", "balance": "Loss", - "position": "C1" + "position": "C1", + "port_position": null }, "origin": { "Ability": "Combat" @@ -265,7 +285,8 @@ "Structure": { "structure": "CityCenter", "balance": "Gain", - "position": "C1" + "position": "C1", + "port_position": null }, "origin": { "Ability": "Combat" @@ -278,7 +299,8 @@ "Building": "Fortress" }, "balance": "Loss", - "position": "C1" + "position": "C1", + "port_position": null }, "origin": { "Ability": "Combat" @@ -291,20 +313,31 @@ "Building": "Fortress" }, "balance": "Gain", - "position": "C1" + "position": "C1", + "port_position": null }, "origin": { "Ability": "Combat" } + }, + { + "player": 0, + "Resources": { + "resources": { + "gold": 1 + }, + "balance": "Loss" + }, + "origin": { + "Ability": "Waste" + } } ], "log": [ - "Player1: Move: marched 2 infantry, 1 cavalry and 1 elephant from C2 to C1", "Combat round 1", - "Player1: Combat: Attacking with 2 infantry, 1 cavalry and 1 elephant, Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value), 6 (infantry, no bonus), 6 (infantry, no bonus) for combined combat value of 26 and gets 0 hits against defending units, Gain 1 gold, Gain city C1, Gain Fortress at C1", - "Player2: Combat: Defending with no units, Roll 1 (leader, no bonus) for combined combat value of 1 and gets 0 hits against attacking units, Combat modifiers: fortress added one extra die, fortress cancelled one hit, Lose city C1, Lose Fortress at C1", - "Attacker wins", - "Player1: Waste: Could not store 1 gold" + "Player1: Combat: Attacking with 2 infantry, 1 cavalry and 1 elephant, Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value), 6 (infantry, no bonus), 6 (infantry, no bonus) for combined combat value of 26 and gets 0 hits against defending units", + "Player2: Combat: Defending with no units, Roll 1 (leader, no bonus) for combined combat value of 1 and gets 0 hits against attacking units, Combat modifiers: fortress added one extra die, fortress cancelled one hit", + "Attacker wins" ] } ] diff --git a/server/tests/test_games/combat/recruit_combat.outcome6.json b/server/tests/test_games/combat/recruit_combat.outcome6.json index 6c34e0dd..a178f210 100644 --- a/server/tests/test_games/combat/recruit_combat.outcome6.json +++ b/server/tests/test_games/combat/recruit_combat.outcome6.json @@ -271,11 +271,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Recruit" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Recruit" @@ -288,7 +292,7 @@ "wood": 5, "gold": 3 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Recruit" @@ -310,15 +314,13 @@ "units": { "ships": 4 }, - "balance": "Gain" + "balance": "Gain", + "position": "C3" }, "origin": { "Ability": "Recruit" } } - ], - "log": [ - "Player1: Recruit: Pay 1 action, Pay 5 wood and 3 gold, City C2 became Neutral, Gain 4 ships at C3" ] }, { @@ -329,6 +331,7 @@ } } }, + "player": 0, "items": [ { "player": 0, @@ -341,12 +344,21 @@ "origin": { "Advance": "Nationalism" } + }, + { + "player": 0, + "Resources": { + "resources": { + "food": 4 + }, + "balance": "Loss" + }, + "origin": { + "Ability": "Waste" + } } ], - "log": [ - "Player1: Nationalism: Gain 1 mood token", - "Player1: Waste: Could not store 4 food" - ] + "active_events": 1 }, { "action": { @@ -356,6 +368,7 @@ } } }, + "player": 0, "combat_stats": { "round": 1, "battleground": "Sea", @@ -412,7 +425,8 @@ "units": { "ships": 2 }, - "balance": "Loss" + "balance": "Loss", + "position": "C2" }, "origin": { "Ability": "Combat" @@ -424,7 +438,8 @@ "units": { "ships": 2 }, - "balance": "Loss" + "balance": "Loss", + "position": "C3" }, "origin": { "Ability": "Combat" @@ -432,15 +447,14 @@ } ], "log": [ - "Player1: Medicine: Gain 1 gold", "Combat round 1", - "Player1: Combat: Attacking with 4 ships, Roll 6 (infantry, no bonus), 6 (infantry, no bonus), 6 (infantry, no bonus), 6 (infantry, no bonus) for combined combat value of 24 and gets 2 hits against defending units, Lost 2 ships at C2", - "Pirates: Combat: Defending with 2 ships, Roll 6 (infantry, no bonus), 6 (infantry, no bonus) for combined combat value of 12 and gets 2 hits against attacking units, Lost 2 ships at C3", - "Player1: Pirate ship destroyed: Gain 2 gold", + "Player1: Combat: Attacking with 4 ships, Roll 6 (infantry, no bonus), 6 (infantry, no bonus), 6 (infantry, no bonus), 6 (infantry, no bonus) for combined combat value of 24 and gets 2 hits against defending units", + "Pirates: Combat: Defending with 2 ships, Roll 6 (infantry, no bonus), 6 (infantry, no bonus) for combined combat value of 12 and gets 2 hits against attacking units", "Player1: Choose Casualties: Remove 2 of their attacking units", "Pirates: Choose Casualties: Remove all defending units", "Attacker wins" - ] + ], + "active_events": 1 }, { "action": { @@ -450,6 +464,7 @@ } } }, + "player": 0, "items": [ { "player": 0, @@ -464,9 +479,7 @@ } } ], - "log": [ - "Player1: Pirates battle: Gain 1 culture token" - ] + "active_events": 1 }, { "action": { @@ -480,6 +493,10 @@ } } }, + "player": 0, + "origin": { + "Ability": "Move" + }, "combat_stats": { "round": 1, "battleground": "Sea", @@ -503,10 +520,23 @@ "result": "AttackerWins" }, "items": [ + { + "player": 0, + "Move": { + "units": { + "ships": 2 + }, + "start": "C3", + "destination": "C4" + }, + "origin": { + "Ability": "Move" + } + }, { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Move" @@ -530,22 +560,32 @@ "units": { "ships": 1 }, - "balance": "Loss" + "balance": "Loss", + "position": "C4" }, "origin": { "Ability": "Combat" } + }, + { + "player": 0, + "Resources": { + "resources": { + "gold": 1 + }, + "balance": "Loss" + }, + "origin": { + "Ability": "Waste" + } } ], "log": [ - "Player1: Move: sailed 2 ships from C3 to C4, Pay 1 action", "Combat round 1", "Player1: Combat: Attacking with 2 ships, Roll 6 (infantry, no bonus), 6 (infantry, no bonus) for combined combat value of 12 and gets 1 hits against defending units", - "Pirates: Combat: Defending with 1 ship, Roll 1 (leader, no bonus) for combined combat value of 1 and gets 0 hits against attacking units, Lost 1 ship at C4", - "Player1: Pirate ship destroyed: Gain 1 gold", + "Pirates: Combat: Defending with 1 ship, Roll 1 (leader, no bonus) for combined combat value of 1 and gets 0 hits against attacking units", "Pirates: Choose Casualties: Remove all defending units", - "Attacker wins", - "Player1: Waste: Could not store 1 gold" + "Attacker wins" ] }, { @@ -556,6 +596,7 @@ } } }, + "player": 0, "items": [ { "player": 0, @@ -570,9 +611,7 @@ } } ], - "log": [ - "Player1: Pirates battle: Gain 1 culture token" - ] + "active_events": 1 }, { "action": { @@ -584,6 +623,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -603,9 +643,7 @@ } } ], - "log": [ - "Player1: Complete Objectives: Complete Sea Cleansing using High Culture/Sea Cleansing" - ] + "active_events": 1 } ] } diff --git a/server/tests/test_games/combat/remove_casualties_attacker.outcome.json b/server/tests/test_games/combat/remove_casualties_attacker.outcome.json index db3e3688..35ceaf16 100644 --- a/server/tests/test_games/combat/remove_casualties_attacker.outcome.json +++ b/server/tests/test_games/combat/remove_casualties_attacker.outcome.json @@ -298,8 +298,28 @@ } } }, + "player": 0, + "origin": { + "Ability": "Move" + }, + "items": [ + { + "player": 0, + "Move": { + "units": { + "infantry": 2, + "cavalry": 1, + "elephants": 1 + }, + "start": "C2", + "destination": "C1" + }, + "origin": { + "Ability": "Move" + } + } + ], "log": [ - "Player1: Move: marched 2 infantry, 1 cavalry and 1 elephant from C2 to C1", "Combat round 1", "Player1: Combat: Attacking with 2 infantry, 1 cavalry and 1 elephant, Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value), 6 (infantry, no bonus), 6 (infantry, no bonus) for combined combat value of 26 and gets 2 hits against defending units", "Player2: Combat: Defending with 2 infantry, Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value) for combined combat value of 14 and gets 2 hits against attacking units", diff --git a/server/tests/test_games/combat/remove_casualties_attacker.outcome1.json b/server/tests/test_games/combat/remove_casualties_attacker.outcome1.json index a19e5382..6ae638a2 100644 --- a/server/tests/test_games/combat/remove_casualties_attacker.outcome1.json +++ b/server/tests/test_games/combat/remove_casualties_attacker.outcome1.json @@ -197,8 +197,28 @@ } } }, + "player": 0, + "origin": { + "Ability": "Move" + }, + "items": [ + { + "player": 0, + "Move": { + "units": { + "infantry": 2, + "cavalry": 1, + "elephants": 1 + }, + "start": "C2", + "destination": "C1" + }, + "origin": { + "Ability": "Move" + } + } + ], "log": [ - "Player1: Move: marched 2 infantry, 1 cavalry and 1 elephant from C2 to C1", "Combat round 1", "Player1: Combat: Attacking with 2 infantry, 1 cavalry and 1 elephant, Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value), 6 (infantry, no bonus), 6 (infantry, no bonus) for combined combat value of 26 and gets 2 hits against defending units", "Player2: Combat: Defending with 2 infantry, Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value) for combined combat value of 14 and gets 2 hits against attacking units", @@ -214,6 +234,7 @@ ] } }, + "player": 0, "combat_stats": { "round": 1, "battleground": "City", @@ -251,7 +272,8 @@ "infantry": 1, "cavalry": 1 }, - "balance": "Loss" + "balance": "Loss", + "position": "C2" }, "origin": { "Ability": "Combat" @@ -263,7 +285,8 @@ "units": { "infantry": 2 }, - "balance": "Loss" + "balance": "Loss", + "position": "C1" }, "origin": { "Ability": "Combat" @@ -286,7 +309,8 @@ "Structure": { "structure": "CityCenter", "balance": "Loss", - "position": "C1" + "position": "C1", + "port_position": null }, "origin": { "Ability": "Combat" @@ -297,20 +321,31 @@ "Structure": { "structure": "CityCenter", "balance": "Gain", - "position": "C1" + "position": "C1", + "port_position": null }, "origin": { "Ability": "Combat" } + }, + { + "player": 0, + "Resources": { + "resources": { + "gold": 1 + }, + "balance": "Loss" + }, + "origin": { + "Ability": "Waste" + } } ], "log": [ - "Player1: Combat: Lost 1 infantry and 1 cavalry at C2, Gain 1 gold, Gain city C1", "Player2: Choose Casualties: Remove all defending units", - "Player2: Combat: Lost 2 infantry at C1, Lose city C1", - "Attacker wins", - "Player1: Waste: Could not store 1 gold" - ] + "Attacker wins" + ], + "active_events": 1 } ] } diff --git a/server/tests/test_games/combat/remove_casualties_defender.outcome.json b/server/tests/test_games/combat/remove_casualties_defender.outcome.json index 1a8581d3..469d2fd0 100644 --- a/server/tests/test_games/combat/remove_casualties_defender.outcome.json +++ b/server/tests/test_games/combat/remove_casualties_defender.outcome.json @@ -199,6 +199,10 @@ } } }, + "player": 0, + "origin": { + "Ability": "Move" + }, "combat_stats": { "round": 1, "battleground": "City", @@ -226,13 +230,27 @@ "city_mood": "Angry" }, "items": [ + { + "player": 0, + "Move": { + "units": { + "infantry": 1 + }, + "start": "C2", + "destination": "C1" + }, + "origin": { + "Ability": "Move" + } + }, { "player": 0, "Units": { "units": { "infantry": 1 }, - "balance": "Loss" + "balance": "Loss", + "position": "C2" }, "origin": { "Ability": "Combat" @@ -244,7 +262,8 @@ "units": { "infantry": 1 }, - "balance": "Loss" + "balance": "Loss", + "position": "C1" }, "origin": { "Ability": "Combat" @@ -252,10 +271,9 @@ } ], "log": [ - "Player1: Move: marched 1 infantry from C2 to C1", "Combat round 1", - "Player1: Combat: Attacking with 1 infantry, Roll 6 (infantry, +1 combat value) for combined combat value of 7 and gets 1 hits against defending units, Lost 1 infantry at C2", - "Player2: Combat: Defending with 2 infantry, Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value) for combined combat value of 14 and gets 1 hits against attacking units, Lost 1 infantry at C1", + "Player1: Combat: Attacking with 1 infantry, Roll 6 (infantry, +1 combat value) for combined combat value of 7 and gets 1 hits against defending units", + "Player2: Combat: Defending with 2 infantry, Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value) for combined combat value of 14 and gets 1 hits against attacking units", "Player1: Choose Casualties: Remove all attacking units", "Player2: Choose Casualties: Remove 1 of their defending units", "Defender wins" diff --git a/server/tests/test_games/combat/retreat.outcome.json b/server/tests/test_games/combat/retreat.outcome.json index a90efd7e..edc65953 100644 --- a/server/tests/test_games/combat/retreat.outcome.json +++ b/server/tests/test_games/combat/retreat.outcome.json @@ -264,8 +264,26 @@ } } }, + "player": 0, + "origin": { + "Ability": "Move" + }, + "items": [ + { + "player": 0, + "Move": { + "units": { + "infantry": 1 + }, + "start": "C2", + "destination": "C1" + }, + "origin": { + "Ability": "Move" + } + } + ], "log": [ - "Player1: Move: marched 1 infantry from C2 to C1", "Combat round 1", "Player1: Combat: Attacking with 1 infantry, Roll 1 (leader, no bonus) for combined combat value of 1 and gets 0 hits against defending units", "Player2: Combat: Defending with 2 infantry, Roll 1 (leader, no bonus), 1 (leader, no bonus) for combined combat value of 2 and gets 0 hits against attacking units", diff --git a/server/tests/test_games/combat/retreat.outcome1.json b/server/tests/test_games/combat/retreat.outcome1.json index 5c60f11c..cfd14fca 100644 --- a/server/tests/test_games/combat/retreat.outcome1.json +++ b/server/tests/test_games/combat/retreat.outcome1.json @@ -212,8 +212,26 @@ } } }, + "player": 0, + "origin": { + "Ability": "Move" + }, + "items": [ + { + "player": 0, + "Move": { + "units": { + "infantry": 1 + }, + "start": "C2", + "destination": "C1" + }, + "origin": { + "Ability": "Move" + } + } + ], "log": [ - "Player1: Move: marched 1 infantry from C2 to C1", "Combat round 1", "Player1: Combat: Attacking with 1 infantry, Roll 1 (leader, no bonus) for combined combat value of 1 and gets 0 hits against defending units", "Player2: Combat: Defending with 2 infantry, Roll 1 (leader, no bonus), 1 (leader, no bonus) for combined combat value of 2 and gets 0 hits against attacking units", @@ -226,9 +244,11 @@ "Bool": true } }, + "player": 0, "log": [ "Player1: Retreat: Retreat" - ] + ], + "active_events": 1 } ] } diff --git a/server/tests/test_games/combat/retreat_no.outcome.json b/server/tests/test_games/combat/retreat_no.outcome.json index a90efd7e..edc65953 100644 --- a/server/tests/test_games/combat/retreat_no.outcome.json +++ b/server/tests/test_games/combat/retreat_no.outcome.json @@ -264,8 +264,26 @@ } } }, + "player": 0, + "origin": { + "Ability": "Move" + }, + "items": [ + { + "player": 0, + "Move": { + "units": { + "infantry": 1 + }, + "start": "C2", + "destination": "C1" + }, + "origin": { + "Ability": "Move" + } + } + ], "log": [ - "Player1: Move: marched 1 infantry from C2 to C1", "Combat round 1", "Player1: Combat: Attacking with 1 infantry, Roll 1 (leader, no bonus) for combined combat value of 1 and gets 0 hits against defending units", "Player2: Combat: Defending with 2 infantry, Roll 1 (leader, no bonus), 1 (leader, no bonus) for combined combat value of 2 and gets 0 hits against attacking units", diff --git a/server/tests/test_games/combat/retreat_no.outcome1.json b/server/tests/test_games/combat/retreat_no.outcome1.json index c176b747..c713c99e 100644 --- a/server/tests/test_games/combat/retreat_no.outcome1.json +++ b/server/tests/test_games/combat/retreat_no.outcome1.json @@ -199,8 +199,26 @@ } } }, + "player": 0, + "origin": { + "Ability": "Move" + }, + "items": [ + { + "player": 0, + "Move": { + "units": { + "infantry": 1 + }, + "start": "C2", + "destination": "C1" + }, + "origin": { + "Ability": "Move" + } + } + ], "log": [ - "Player1: Move: marched 1 infantry from C2 to C1", "Combat round 1", "Player1: Combat: Attacking with 1 infantry, Roll 1 (leader, no bonus) for combined combat value of 1 and gets 0 hits against defending units", "Player2: Combat: Defending with 2 infantry, Roll 1 (leader, no bonus), 1 (leader, no bonus) for combined combat value of 2 and gets 0 hits against attacking units", @@ -213,6 +231,7 @@ "Bool": false } }, + "player": 0, "combat_stats": { "round": 2, "battleground": "City", @@ -246,7 +265,8 @@ "units": { "infantry": 1 }, - "balance": "Loss" + "balance": "Loss", + "position": "C2" }, "origin": { "Ability": "Combat" @@ -258,7 +278,8 @@ "units": { "infantry": 1 }, - "balance": "Loss" + "balance": "Loss", + "position": "C1" }, "origin": { "Ability": "Combat" @@ -268,12 +289,13 @@ "log": [ "Player1: Retreat: Do not retreat", "Combat round 2", - "Player1: Combat: Attacking with 1 infantry, Roll 6 (infantry, +1 combat value) for combined combat value of 7 and gets 1 hits against defending units, Lost 1 infantry at C2", - "Player2: Combat: Defending with 2 infantry, Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value) for combined combat value of 14 and gets 1 hits against attacking units, Lost 1 infantry at C1", + "Player1: Combat: Attacking with 1 infantry, Roll 6 (infantry, +1 combat value) for combined combat value of 7 and gets 1 hits against defending units", + "Player2: Combat: Defending with 2 infantry, Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value) for combined combat value of 14 and gets 1 hits against attacking units", "Player1: Choose Casualties: Remove all attacking units", "Player2: Choose Casualties: Remove 1 of their defending units", "Defender wins" - ] + ], + "active_events": 1 } ] } diff --git a/server/tests/test_games/combat/ship_combat.outcome.json b/server/tests/test_games/combat/ship_combat.outcome.json index 288aafe4..8ab2fca1 100644 --- a/server/tests/test_games/combat/ship_combat.outcome.json +++ b/server/tests/test_games/combat/ship_combat.outcome.json @@ -348,14 +348,32 @@ } } }, + "player": 0, + "origin": { + "Ability": "Move" + }, "items": [ + { + "player": 0, + "Move": { + "units": { + "ships": 2 + }, + "start": "C3", + "destination": "D2" + }, + "origin": { + "Ability": "Move" + } + }, { "player": 0, "Units": { "units": { "ships": 1 }, - "balance": "Loss" + "balance": "Loss", + "position": "C3" }, "origin": { "Ability": "Combat" @@ -363,9 +381,8 @@ } ], "log": [ - "Player1: Move: sailed 2 ships from C3 to D2", "Combat round 1", - "Player1: Combat: Attacking with 1 settler, 2 ships, 1 cavalry and 1 elephant, Roll 6 (infantry, no bonus), 6 (infantry, no bonus) for combined combat value of 12 and gets 1 hits against defending units, Lost 1 ship at C3", + "Player1: Combat: Attacking with 1 settler, 2 ships, 1 cavalry and 1 elephant, Roll 6 (infantry, no bonus), 6 (infantry, no bonus) for combined combat value of 12 and gets 1 hits against defending units", "Player2: Combat: Defending with 1 ship, Roll 6 (infantry, no bonus) for combined combat value of 6 and gets 1 hits against attacking units", "Player1: Choose Casualties: Remove 1 of their attacking units" ] diff --git a/server/tests/test_games/combat/ship_combat.outcome1.json b/server/tests/test_games/combat/ship_combat.outcome1.json index 8a60df6d..f41b7837 100644 --- a/server/tests/test_games/combat/ship_combat.outcome1.json +++ b/server/tests/test_games/combat/ship_combat.outcome1.json @@ -268,14 +268,32 @@ } } }, + "player": 0, + "origin": { + "Ability": "Move" + }, "items": [ + { + "player": 0, + "Move": { + "units": { + "ships": 2 + }, + "start": "C3", + "destination": "D2" + }, + "origin": { + "Ability": "Move" + } + }, { "player": 0, "Units": { "units": { "ships": 1 }, - "balance": "Loss" + "balance": "Loss", + "position": "C3" }, "origin": { "Ability": "Combat" @@ -283,9 +301,8 @@ } ], "log": [ - "Player1: Move: sailed 2 ships from C3 to D2", "Combat round 1", - "Player1: Combat: Attacking with 1 settler, 2 ships, 1 cavalry and 1 elephant, Roll 6 (infantry, no bonus), 6 (infantry, no bonus) for combined combat value of 12 and gets 1 hits against defending units, Lost 1 ship at C3", + "Player1: Combat: Attacking with 1 settler, 2 ships, 1 cavalry and 1 elephant, Roll 6 (infantry, no bonus), 6 (infantry, no bonus) for combined combat value of 12 and gets 1 hits against defending units", "Player2: Combat: Defending with 1 ship, Roll 6 (infantry, no bonus) for combined combat value of 6 and gets 1 hits against attacking units", "Player1: Choose Casualties: Remove 1 of their attacking units" ] @@ -298,6 +315,7 @@ ] } }, + "player": 0, "combat_stats": { "round": 1, "battleground": "Sea", @@ -331,7 +349,8 @@ "units": { "cavalry": 1 }, - "balance": "Loss" + "balance": "Loss", + "position": "C3" }, "origin": { "Ability": "Choose Casualties (carried units)" @@ -343,7 +362,8 @@ "units": { "ships": 1 }, - "balance": "Loss" + "balance": "Loss", + "position": "D2" }, "origin": { "Ability": "Combat" @@ -351,11 +371,11 @@ } ], "log": [ - "Player1: Choose Casualties (carried units): Killed carried units: 1 cavalry, Lost 1 cavalry at C3", + "Player1: Choose Casualties (carried units): Killed carried units: 1 cavalry", "Player2: Choose Casualties: Remove all defending units", - "Player2: Combat: Lost 1 ship at D2", "Attacker wins" - ] + ], + "active_events": 2 } ] } diff --git a/server/tests/test_games/combat/ship_combat_war_ships.outcome.json b/server/tests/test_games/combat/ship_combat_war_ships.outcome.json index 8068056a..02638801 100644 --- a/server/tests/test_games/combat/ship_combat_war_ships.outcome.json +++ b/server/tests/test_games/combat/ship_combat_war_ships.outcome.json @@ -338,14 +338,32 @@ } } }, + "player": 0, + "origin": { + "Ability": "Move" + }, "items": [ + { + "player": 0, + "Move": { + "units": { + "ships": 2 + }, + "start": "C3", + "destination": "D2" + }, + "origin": { + "Ability": "Move" + } + }, { "player": 0, "Units": { "units": { "ships": 1 }, - "balance": "Loss" + "balance": "Loss", + "position": "C3" }, "origin": { "Ability": "Combat" @@ -353,9 +371,8 @@ } ], "log": [ - "Player1: Move: sailed 2 ships from C3 to D2", "Combat round 1", - "Player1: Combat: Attacking with 2 ships, 1 cavalry and 1 elephant, Roll 6 (infantry, no bonus), 6 (infantry, no bonus) for combined combat value of 12 and gets 1 hits against defending units, Combat modifiers: WarShips ignore the first hit in the first round of combat, Lost 1 ship at C3", + "Player1: Combat: Attacking with 2 ships, 1 cavalry and 1 elephant, Roll 6 (infantry, no bonus), 6 (infantry, no bonus) for combined combat value of 12 and gets 1 hits against defending units, Combat modifiers: WarShips ignore the first hit in the first round of combat", "Player2: Combat: Defending with 2 ships, Roll 6 (infantry, no bonus), 6 (infantry, no bonus) for combined combat value of 12 and gets 1 hits against attacking units, Combat modifiers: WarShips ignore the first hit in the first round of combat", "Player1: Choose Casualties: Remove 1 of their attacking units", "Player1: Retreat: Player1 can retreat" diff --git a/server/tests/test_games/incidents/barbarians_attack.outcome.json b/server/tests/test_games/incidents/barbarians_attack.outcome.json index 0f63d422..55bb9eaa 100644 --- a/server/tests/test_games/incidents/barbarians_attack.outcome.json +++ b/server/tests/test_games/incidents/barbarians_attack.outcome.json @@ -255,6 +255,7 @@ "SelectAdvance": "Storage" } }, + "player": 0, "combat_stats": { "round": 1, "battleground": "CityWithFortress", @@ -299,7 +300,9 @@ "player": 0, "Advance": { "advance": "Storage", - "take_incident_token": true, + "incident_token": { + "Take": 0 + }, "balance": "Gain" }, "origin": { @@ -312,7 +315,8 @@ "units": { "elephants": 1 }, - "balance": "Loss" + "balance": "Loss", + "position": "B2" }, "origin": { "Ability": "Combat" @@ -324,7 +328,8 @@ "units": { "settlers": 4 }, - "balance": "Loss" + "balance": "Loss", + "position": "C2" }, "origin": { "Ability": "Combat" @@ -335,7 +340,8 @@ "Structure": { "structure": "CityCenter", "balance": "Loss", - "position": "C2" + "position": "C2", + "port_position": null }, "origin": { "Ability": "Combat" @@ -346,7 +352,8 @@ "Structure": { "structure": "CityCenter", "balance": "Gain", - "position": "C2" + "position": "C2", + "port_position": null }, "origin": { "Ability": "Combat" @@ -358,7 +365,8 @@ "units": { "settlers": 1 }, - "balance": "Gain" + "balance": "Gain", + "position": "A1" }, "origin": { "Ability": "Place Settler" @@ -370,7 +378,8 @@ "units": { "infantry": 1 }, - "balance": "Gain" + "balance": "Gain", + "position": "C2" }, "origin": { "Incident": 28 @@ -382,7 +391,8 @@ "units": { "settlers": 1 }, - "balance": "Gain" + "balance": "Gain", + "position": "A1" }, "origin": { "Incident": 28 @@ -394,7 +404,8 @@ "units": { "settlers": 1 }, - "balance": "Gain" + "balance": "Gain", + "position": "C1" }, "origin": { "Incident": 28 @@ -402,19 +413,15 @@ } ], "log": [ - "Player1: Storage: Gain 1 mood token", - "Player1: Free Advance: Gain Storage and take an event token (triggering an incident)", "A new game event has been triggered: Population Boom", - "Player1: Population Boom: Base effect: Barbarians move, Barbarians move from B2 to C2: 2 infantry and 1 elephant, Gain 1 settler at A1, Player2 was selected to gain 1 settler.", + "Player1: Population Boom: Base effect: Barbarians move, Barbarians move from B2 to C2: 2 infantry and 1 elephant, Player2 was selected to gain 1 settler.", "Combat round 1", - "Barbarians: Combat: Attacking with 2 infantry and 1 elephant, Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value), 6 (infantry, no bonus) for combined combat value of 20 and gets 0 hits against defending units, Lost 1 elephant at B2, Kill 4 settlers of Player1, Gain city C2", - "Player1: Combat: Defending with 4 settlers, Roll 6 (infantry, no bonus) for combined combat value of 6 and gets 1 hits against attacking units, Combat modifiers: fortress added one extra die, fortress cancelled one hit, Lost 4 settlers at C2, Lose city C2", + "Barbarians: Combat: Attacking with 2 infantry and 1 elephant, Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value), 6 (infantry, no bonus) for combined combat value of 20 and gets 0 hits against defending units, Kill 4 settlers of Player1", + "Player1: Combat: Defending with 4 settlers, Roll 6 (infantry, no bonus) for combined combat value of 6 and gets 1 hits against attacking units, Combat modifiers: fortress added one extra die, fortress cancelled one hit", "Barbarians: Choose Casualties: Remove 1 of their attacking units", - "Attacker wins", - "Player1: Place Settler: Gain 1 settler at A1", - "Barbarians: Population Boom: Gain 1 infantry at C2", - "Player2: Population Boom: Gain 1 settler at C1" - ] + "Attacker wins" + ], + "active_events": 1 } ] } diff --git a/server/tests/test_games/incidents/barbarians_move.outcome1.json b/server/tests/test_games/incidents/barbarians_move.outcome1.json index 779c4737..d819ecdf 100644 --- a/server/tests/test_games/incidents/barbarians_move.outcome1.json +++ b/server/tests/test_games/incidents/barbarians_move.outcome1.json @@ -287,6 +287,7 @@ "SelectAdvance": "Storage" } }, + "player": 0, "items": [ { "player": 0, @@ -304,7 +305,9 @@ "player": 0, "Advance": { "advance": "Storage", - "take_incident_token": true, + "incident_token": { + "Take": 0 + }, "balance": "Gain" }, "origin": { @@ -313,11 +316,10 @@ } ], "log": [ - "Player1: Storage: Gain 1 mood token", - "Player1: Free Advance: Gain Storage and take an event token (triggering an incident)", "A new game event has been triggered: Population Boom", "Player1: Population Boom: Base effect: Barbarians move" - ] + ], + "active_events": 1 }, { "action": { @@ -327,6 +329,7 @@ ] } }, + "player": 1, "items": [ { "player": 2, @@ -334,7 +337,8 @@ "units": { "infantry": 1 }, - "balance": "Gain" + "balance": "Gain", + "position": "B3" }, "origin": { "Incident": 28 @@ -346,7 +350,8 @@ "units": { "settlers": 1 }, - "balance": "Gain" + "balance": "Gain", + "position": "C1" }, "origin": { "Incident": 28 @@ -355,10 +360,9 @@ ], "log": [ "Player2: Dictator: Selected Barbarian Armies that may NOT move: A3", - "Player1: Population Boom: Barbarians move from B3 to B2: 2 infantry, Player2 was selected to gain 1 settler.", - "Barbarians: Population Boom: Gain 1 infantry at B3", - "Player2: Population Boom: Gain 1 settler at C1" - ] + "Player1: Population Boom: Barbarians move from B3 to B2: 2 infantry, Player2 was selected to gain 1 settler." + ], + "active_events": 3 } ] } diff --git a/server/tests/test_games/incidents/barbarians_recapture_city.outcome.json b/server/tests/test_games/incidents/barbarians_recapture_city.outcome.json index ec746498..68ff10ec 100644 --- a/server/tests/test_games/incidents/barbarians_recapture_city.outcome.json +++ b/server/tests/test_games/incidents/barbarians_recapture_city.outcome.json @@ -214,6 +214,10 @@ } } }, + "player": 0, + "origin": { + "Ability": "Move" + }, "combat_stats": { "round": 1, "battleground": "CityWithFortress", @@ -241,10 +245,23 @@ "city_mood": "Angry" }, "items": [ + { + "player": 0, + "Move": { + "units": { + "elephants": 4 + }, + "start": "B1", + "destination": "C2" + }, + "origin": { + "Ability": "Move" + } + }, { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Move" @@ -256,7 +273,8 @@ "units": { "elephants": 2 }, - "balance": "Loss" + "balance": "Loss", + "position": "B1" }, "origin": { "Ability": "Combat" @@ -268,7 +286,8 @@ "units": { "infantry": 3 }, - "balance": "Loss" + "balance": "Loss", + "position": "C2" }, "origin": { "Ability": "Combat" @@ -279,7 +298,8 @@ "Structure": { "structure": "CityCenter", "balance": "Loss", - "position": "C2" + "position": "C2", + "port_position": null }, "origin": { "Ability": "Combat" @@ -290,7 +310,8 @@ "Structure": { "structure": "CityCenter", "balance": "Gain", - "position": "C2" + "position": "C2", + "port_position": null }, "origin": { "Ability": "Combat" @@ -307,18 +328,27 @@ "origin": { "Ability": "Barbarian battle" } + }, + { + "player": 0, + "Resources": { + "resources": { + "gold": 2 + }, + "balance": "Loss" + }, + "origin": { + "Ability": "Waste" + } } ], "log": [ - "Player1: Move: marched 4 elephants from B1 to C2, Pay 1 action", "Combat round 1", - "Player1: Combat: Attacking with 4 elephants, Roll 6 (infantry, no bonus), 6 (infantry, no bonus), 6 (infantry, no bonus), 1 (leader, no bonus) for combined combat value of 19 and gets 3 hits against defending units, Lost 2 elephants at B1, Gain city C2", - "Barbarians: Combat: Defending with 3 infantry, Roll 1 (leader, no bonus), 2 (cavalry, no bonus), 6 (infantry, +1 combat value) for combined combat value of 10 and gets 2 hits against attacking units, Lost 3 infantry at C2, Lose city C2", + "Player1: Combat: Attacking with 4 elephants, Roll 6 (infantry, no bonus), 6 (infantry, no bonus), 6 (infantry, no bonus), 1 (leader, no bonus) for combined combat value of 19 and gets 3 hits against defending units", + "Barbarians: Combat: Defending with 3 infantry, Roll 1 (leader, no bonus), 2 (cavalry, no bonus), 6 (infantry, +1 combat value) for combined combat value of 10 and gets 2 hits against attacking units", "Player1: Choose Casualties: Remove 2 of their attacking units", "Barbarians: Choose Casualties: Remove all defending units", - "Attacker wins", - "Player1: Barbarian battle: Gain 2 gold", - "Player1: Waste: Could not store 2 gold" + "Attacker wins" ] } ] diff --git a/server/tests/test_games/incidents/barbarians_spawn.outcome1.json b/server/tests/test_games/incidents/barbarians_spawn.outcome1.json index 8f804bec..effeef78 100644 --- a/server/tests/test_games/incidents/barbarians_spawn.outcome1.json +++ b/server/tests/test_games/incidents/barbarians_spawn.outcome1.json @@ -265,6 +265,7 @@ "SelectAdvance": "Storage" } }, + "player": 0, "items": [ { "player": 0, @@ -282,7 +283,9 @@ "player": 0, "Advance": { "advance": "Storage", - "take_incident_token": true, + "incident_token": { + "Take": 0 + }, "balance": "Gain" }, "origin": { @@ -294,7 +297,8 @@ "Structure": { "structure": "CityCenter", "balance": "Gain", - "position": "A3" + "position": "A3", + "port_position": null }, "origin": { "Incident": 9 @@ -306,7 +310,8 @@ "units": { "infantry": 1 }, - "balance": "Gain" + "balance": "Gain", + "position": "A3" }, "origin": { "Incident": 9 @@ -314,12 +319,10 @@ } ], "log": [ - "Player1: Storage: Gain 1 mood token", - "Player1: Free Advance: Gain Storage and take an event token (triggering an incident)", "A new game event has been triggered: A good year", - "Player1: A good year: Base effect: Barbarians spawn", - "Barbarians: A good year: Gain city A3, Gain 1 infantry at A3" - ] + "Player1: A good year: Base effect: Barbarians spawn" + ], + "active_events": 1 }, { "action": { @@ -327,6 +330,7 @@ "SelectUnitType": "Elephant" } }, + "player": 0, "items": [ { "player": 2, @@ -334,7 +338,8 @@ "units": { "elephants": 1 }, - "balance": "Gain" + "balance": "Gain", + "position": "A3" }, "origin": { "Incident": 9 @@ -363,14 +368,21 @@ "origin": { "Incident": 9 } + }, + { + "player": 1, + "Resources": { + "resources": { + "food": 1 + }, + "balance": "Loss" + }, + "origin": { + "Ability": "Waste" + } } ], - "log": [ - "Barbarians: A good year: Gain 1 elephant at A3", - "Player1: A good year: Gain 1 food", - "Player2: A good year: Gain 1 food", - "Player2: Waste: Could not store 1 food" - ] + "active_events": 2 } ] } diff --git a/server/tests/test_games/incidents/civil_war/civil_war.outcome.json b/server/tests/test_games/incidents/civil_war/civil_war.outcome.json index 4e6e0ad1..9da56db2 100644 --- a/server/tests/test_games/incidents/civil_war/civil_war.outcome.json +++ b/server/tests/test_games/incidents/civil_war/civil_war.outcome.json @@ -231,11 +231,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Advance" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -247,7 +251,7 @@ "resources": { "gold": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -269,7 +273,9 @@ "player": 0, "Advance": { "advance": "Storage", - "take_incident_token": true, + "incident_token": { + "Take": 0 + }, "balance": "Gain" }, "origin": { @@ -292,7 +298,8 @@ "units": { "infantry": 1 }, - "balance": "Loss" + "balance": "Loss", + "position": "C2" }, "origin": { "Incident": 36 @@ -300,10 +307,7 @@ } ], "log": [ - "Player1: Advance: Pay 1 action, Pay 2 gold, Gain Storage and take an event token (triggering an incident)", - "Player1: Storage: Gain 1 mood token", - "A new game event has been triggered: Civil War", - "Player1: Civil War: City C2 became Angry, Lost 1 infantry at C2" + "A new game event has been triggered: Civil War" ] } ] diff --git a/server/tests/test_games/incidents/civil_war/envoy.outcome.json b/server/tests/test_games/incidents/civil_war/envoy.outcome.json index 97ecf8fa..ac0e4529 100644 --- a/server/tests/test_games/incidents/civil_war/envoy.outcome.json +++ b/server/tests/test_games/incidents/civil_war/envoy.outcome.json @@ -231,11 +231,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Advance" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -247,7 +251,7 @@ "resources": { "gold": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -269,7 +273,9 @@ "player": 0, "Advance": { "advance": "Storage", - "take_incident_token": true, + "incident_token": { + "Take": 0 + }, "balance": "Gain" }, "origin": { @@ -303,11 +309,8 @@ } ], "log": [ - "Player1: Advance: Pay 1 action, Pay 2 gold, Gain Storage and take an event token (triggering an incident)", - "Player1: Storage: Gain 1 mood token", "A new game event has been triggered: Envoy", - "Player1: Envoy: Base effect: Barbarians move, Barbarians cannot move - will try to spawn a new city instead, Barbarians cannot spawn a new city, Gain 1 idea and 1 culture token, Pyramids is now available to be taken by anyone", - "Player2: Envoy: Gain 1 culture token" + "Player1: Envoy: Base effect: Barbarians move, Barbarians cannot move - will try to spawn a new city instead, Barbarians cannot spawn a new city, Pyramids is now available to be taken by anyone" ] } ] diff --git a/server/tests/test_games/incidents/civil_war/envoy.outcome1.json b/server/tests/test_games/incidents/civil_war/envoy.outcome1.json index 298e7323..c7bb4ded 100644 --- a/server/tests/test_games/incidents/civil_war/envoy.outcome1.json +++ b/server/tests/test_games/incidents/civil_war/envoy.outcome1.json @@ -255,11 +255,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Advance" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -271,7 +275,7 @@ "resources": { "gold": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -293,7 +297,9 @@ "player": 0, "Advance": { "advance": "Storage", - "take_incident_token": true, + "incident_token": { + "Take": 0 + }, "balance": "Gain" }, "origin": { @@ -327,11 +333,8 @@ } ], "log": [ - "Player1: Advance: Pay 1 action, Pay 2 gold, Gain Storage and take an event token (triggering an incident)", - "Player1: Storage: Gain 1 mood token", "A new game event has been triggered: Envoy", - "Player1: Envoy: Base effect: Barbarians move, Barbarians cannot move - will try to spawn a new city instead, Barbarians cannot spawn a new city, Gain 1 idea and 1 culture token, Pyramids is now available to be taken by anyone", - "Player2: Envoy: Gain 1 culture token" + "Player1: Envoy: Base effect: Barbarians move, Barbarians cannot move - will try to spawn a new city instead, Barbarians cannot spawn a new city, Pyramids is now available to be taken by anyone" ] }, { @@ -345,11 +348,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Advance" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -361,7 +368,7 @@ "resources": { "gold": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -383,17 +390,15 @@ "player": 0, "Advance": { "advance": "Monuments", - "take_incident_token": true, + "incident_token": { + "Take": 2 + }, "balance": "Gain" }, "origin": { "Ability": "Advance" } } - ], - "log": [ - "Player1: Advance: Pay 1 action, Pay 2 gold, Gain Monuments and take an event token (2 left)", - "Player1: Monuments: Gain 1 culture token" ] } ] diff --git a/server/tests/test_games/incidents/civil_war/envoy.outcome2.json b/server/tests/test_games/incidents/civil_war/envoy.outcome2.json index b261efa3..09961bff 100644 --- a/server/tests/test_games/incidents/civil_war/envoy.outcome2.json +++ b/server/tests/test_games/incidents/civil_war/envoy.outcome2.json @@ -235,11 +235,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Advance" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -251,7 +255,7 @@ "resources": { "gold": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -273,7 +277,9 @@ "player": 0, "Advance": { "advance": "Storage", - "take_incident_token": true, + "incident_token": { + "Take": 0 + }, "balance": "Gain" }, "origin": { @@ -307,11 +313,8 @@ } ], "log": [ - "Player1: Advance: Pay 1 action, Pay 2 gold, Gain Storage and take an event token (triggering an incident)", - "Player1: Storage: Gain 1 mood token", "A new game event has been triggered: Envoy", - "Player1: Envoy: Base effect: Barbarians move, Barbarians cannot move - will try to spawn a new city instead, Barbarians cannot spawn a new city, Gain 1 idea and 1 culture token, Pyramids is now available to be taken by anyone", - "Player2: Envoy: Gain 1 culture token" + "Player1: Envoy: Base effect: Barbarians move, Barbarians cannot move - will try to spawn a new city instead, Barbarians cannot spawn a new city, Pyramids is now available to be taken by anyone" ] }, { @@ -325,11 +328,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Advance" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -341,7 +348,7 @@ "resources": { "gold": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -363,17 +370,15 @@ "player": 0, "Advance": { "advance": "Monuments", - "take_incident_token": true, + "incident_token": { + "Take": 2 + }, "balance": "Gain" }, "origin": { "Ability": "Advance" } } - ], - "log": [ - "Player1: Advance: Pay 1 action, Pay 2 gold, Gain Monuments and take an event token (2 left)", - "Player1: Monuments: Gain 1 culture token" ] }, { @@ -382,6 +387,7 @@ "Bool": true } }, + "player": 0, "items": [ { "player": 0, @@ -399,9 +405,7 @@ } } ], - "log": [ - "Player1: Draw Wonder Card: Gain Pyramids from the public area" - ] + "active_events": 1 } ] } diff --git a/server/tests/test_games/incidents/civil_war/migration.outcome.json b/server/tests/test_games/incidents/civil_war/migration.outcome.json index 7740769a..92d953ac 100644 --- a/server/tests/test_games/incidents/civil_war/migration.outcome.json +++ b/server/tests/test_games/incidents/civil_war/migration.outcome.json @@ -220,11 +220,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Advance" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -236,7 +240,7 @@ "resources": { "gold": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -258,7 +262,9 @@ "player": 0, "Advance": { "advance": "Storage", - "take_incident_token": true, + "incident_token": { + "Take": 0 + }, "balance": "Gain" }, "origin": { @@ -293,7 +299,8 @@ "units": { "settlers": 1 }, - "balance": "Gain" + "balance": "Gain", + "position": "A4" }, "origin": { "Incident": 34 @@ -301,12 +308,8 @@ } ], "log": [ - "Player1: Advance: Pay 1 action, Pay 2 gold, Gain Storage and take an event token (triggering an incident)", - "Player1: Storage: Gain 1 mood token", "A new game event has been triggered: Migration", - "Player1: Gold deposits: Gain 2 gold", - "Player1: Migration: Player2 was selected to gain 1 settler., City C2 became Neutral", - "Player2: Migration: Gain 1 settler at A4" + "Player1: Migration: Player2 was selected to gain 1 settler." ] } ] diff --git a/server/tests/test_games/incidents/civil_war/revolution.outcome3.json b/server/tests/test_games/incidents/civil_war/revolution.outcome3.json index 4e306fba..b891cdd4 100644 --- a/server/tests/test_games/incidents/civil_war/revolution.outcome3.json +++ b/server/tests/test_games/incidents/civil_war/revolution.outcome3.json @@ -231,11 +231,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Advance" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -247,7 +251,7 @@ "resources": { "gold": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -269,7 +273,9 @@ "player": 0, "Advance": { "advance": "Storage", - "take_incident_token": true, + "incident_token": { + "Take": 0 + }, "balance": "Gain" }, "origin": { @@ -290,10 +296,7 @@ } ], "log": [ - "Player1: Advance: Pay 1 action, Pay 2 gold, Gain Storage and take an event token (triggering an incident)", - "Player1: Storage: Gain 1 mood token", - "A new game event has been triggered: Revolution", - "Player1: Gold deposits: Gain 2 gold" + "A new game event has been triggered: Revolution" ] }, { @@ -304,6 +307,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -311,16 +315,15 @@ "units": { "elephants": 1 }, - "balance": "Loss" + "balance": "Loss", + "position": "C2" }, "origin": { "Incident": 38 } } ], - "log": [ - "Player1: Revolution: Lost 1 elephant at C2" - ] + "active_events": 1 }, { "action": { @@ -328,6 +331,7 @@ "SelectUnits": [] } }, + "player": 0, "items": [ { "player": 0, @@ -340,8 +344,9 @@ } ], "log": [ - "Player1: Revolution: Declined to kill units, Lose 1 action" - ] + "Player1: Revolution: Declined to kill units" + ], + "active_events": 1 }, { "action": { @@ -352,12 +357,13 @@ } } }, + "player": 0, "items": [ { "player": 0, "Advance": { "advance": "Voting", - "take_incident_token": false, + "incident_token": "NoChange", "balance": "Loss" }, "origin": { @@ -368,19 +374,31 @@ "player": 0, "Advance": { "advance": "Dogma", - "take_incident_token": false, + "incident_token": "NoChange", "balance": "Gain" }, "origin": { "Incident": 38 } + }, + { + "player": 0, + "Resources": { + "resources": { + "ideas": 3 + }, + "balance": "Loss" + }, + "origin": { + "Ability": "Waste" + } } ], "log": [ - "Player1: Revolution: Player1 changed their government from Democracy to Theocracy, Additional advances: none, Unlock Provinces, Gain Dogma without taking an event token", - "Player1: Dogma: Ideas limit reduced to 2", - "Player1: Waste: Could not store 3 ideas" - ] + "Player1: Revolution: Democracy changed their government from Player1 to Theocracy, Additional advances: none, Unlock Provinces", + "Player1: Dogma: Ideas limit reduced to 2" + ], + "active_events": 1 } ] } diff --git a/server/tests/test_games/incidents/civil_war/uprising.outcome.json b/server/tests/test_games/incidents/civil_war/uprising.outcome.json index bc220bcd..d8c1a7f5 100644 --- a/server/tests/test_games/incidents/civil_war/uprising.outcome.json +++ b/server/tests/test_games/incidents/civil_war/uprising.outcome.json @@ -297,11 +297,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Advance" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -313,7 +317,7 @@ "resources": { "gold": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -335,7 +339,9 @@ "player": 0, "Advance": { "advance": "Storage", - "take_incident_token": true, + "incident_token": { + "Take": 0 + }, "balance": "Gain" }, "origin": { @@ -344,8 +350,6 @@ } ], "log": [ - "Player1: Advance: Pay 1 action, Pay 2 gold, Gain Storage and take an event token (triggering an incident)", - "Player1: Storage: Gain 1 mood token", "A new game event has been triggered: Uprising" ] } diff --git a/server/tests/test_games/incidents/civil_war/uprising.outcome1.json b/server/tests/test_games/incidents/civil_war/uprising.outcome1.json index e76cc9fe..de097189 100644 --- a/server/tests/test_games/incidents/civil_war/uprising.outcome1.json +++ b/server/tests/test_games/incidents/civil_war/uprising.outcome1.json @@ -245,11 +245,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Advance" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -261,7 +265,7 @@ "resources": { "gold": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -283,7 +287,9 @@ "player": 0, "Advance": { "advance": "Storage", - "take_incident_token": true, + "incident_token": { + "Take": 0 + }, "balance": "Gain" }, "origin": { @@ -292,8 +298,6 @@ } ], "log": [ - "Player1: Advance: Pay 1 action, Pay 2 gold, Gain Storage and take an event token (triggering an incident)", - "Player1: Storage: Gain 1 mood token", "A new game event has been triggered: Uprising" ] }, @@ -308,6 +312,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -316,7 +321,7 @@ "mood_tokens": 1, "culture_tokens": 1 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Incident": 39 @@ -324,8 +329,9 @@ } ], "log": [ - "Player1: Uprising: Pay 1 mood token and 1 culture token, Gain 1 victory point" - ] + "Player1: Uprising: Gain 1 victory point" + ], + "active_events": 1 } ] } diff --git a/server/tests/test_games/incidents/earthquake/earthquake.outcome3.json b/server/tests/test_games/incidents/earthquake/earthquake.outcome3.json index ccbbd6ee..1281a1b2 100644 --- a/server/tests/test_games/incidents/earthquake/earthquake.outcome3.json +++ b/server/tests/test_games/incidents/earthquake/earthquake.outcome3.json @@ -244,11 +244,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Advance" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -260,7 +264,7 @@ "resources": { "gold": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -282,7 +286,9 @@ "player": 0, "Advance": { "advance": "Storage", - "take_incident_token": true, + "incident_token": { + "Take": 0 + }, "balance": "Gain" }, "origin": { @@ -291,8 +297,6 @@ } ], "log": [ - "Player1: Advance: Pay 1 action, Pay 2 gold, Gain Storage and take an event token (triggering an incident)", - "Player1: Storage: Gain 1 mood token", "A new game event has been triggered: Heavy Earthquake" ] }, @@ -319,6 +323,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -327,7 +332,8 @@ "Building": "Fortress" }, "balance": "Loss", - "position": "C2" + "position": "C2", + "port_position": null }, "origin": { "Incident": 31 @@ -340,7 +346,8 @@ "Wonder": "GreatGardens" }, "balance": "Loss", - "position": "C2" + "position": "C2", + "port_position": null }, "origin": { "Incident": 31 @@ -348,8 +355,9 @@ } ], "log": [ - "Player1: Heavy Earthquake: Lose Fortress at C2, Gain 2 points for the Fortress at C2, Lose Great Gardens at C2, Gain 2 points for the Great Gardens at C2, Gain 2 points for the city center at B2" - ] + "Player1: Heavy Earthquake: Gain 2 points for the Fortress at C2, Gain 2 points for the Great Gardens at C2, Gain 2 points for the city center at B2" + ], + "active_events": 1 }, { "action": { @@ -361,6 +369,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -368,7 +377,7 @@ "resources": { "mood_tokens": 1 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Advance": "Myths" @@ -376,8 +385,9 @@ } ], "log": [ - "Player1: Myths: Pay 1 mood token, Avoid mood change" - ] + "Player1: Myths: Avoid mood change" + ], + "active_events": 1 }, { "action": { @@ -400,6 +410,7 @@ ] } }, + "player": 1, "items": [ { "player": 1, @@ -408,7 +419,8 @@ "Building": "Fortress" }, "balance": "Loss", - "position": "A1" + "position": "A1", + "port_position": null }, "origin": { "Incident": 31 @@ -416,9 +428,10 @@ } ], "log": [ - "Player2: Heavy Earthquake: Lose Fortress at A1, Gain 2 points for the city center at A1, Gain 2 points for the city center at A3", - "Player1: Heavy Earthquake: Gain 2 points for the Fortress at A1" - ] + "Player1: Heavy Earthquake: Gain 2 points for the Fortress at A1", + "Player2: Heavy Earthquake: Gain 2 points for the city center at A1, Gain 2 points for the city center at A3" + ], + "active_events": 1 } ] } diff --git a/server/tests/test_games/incidents/earthquake/flood.outcome.json b/server/tests/test_games/incidents/earthquake/flood.outcome.json index ef0c6d82..ec4ad6d1 100644 --- a/server/tests/test_games/incidents/earthquake/flood.outcome.json +++ b/server/tests/test_games/incidents/earthquake/flood.outcome.json @@ -268,11 +268,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Advance" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -284,7 +288,7 @@ "resources": { "gold": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -306,7 +310,9 @@ "player": 0, "Advance": { "advance": "Storage", - "take_incident_token": true, + "incident_token": { + "Take": 0 + }, "balance": "Gain" }, "origin": { @@ -315,8 +321,6 @@ } ], "log": [ - "Player1: Advance: Pay 1 action, Pay 2 gold, Gain Storage and take an event token (triggering an incident)", - "Player1: Storage: Gain 1 mood token", "A new game event has been triggered: Heavy Flood" ] } diff --git a/server/tests/test_games/incidents/earthquake/flood.outcome1.json b/server/tests/test_games/incidents/earthquake/flood.outcome1.json index 8378ab93..6be98326 100644 --- a/server/tests/test_games/incidents/earthquake/flood.outcome1.json +++ b/server/tests/test_games/incidents/earthquake/flood.outcome1.json @@ -270,11 +270,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Advance" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -286,7 +290,7 @@ "resources": { "gold": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -308,7 +312,9 @@ "player": 0, "Advance": { "advance": "Storage", - "take_incident_token": true, + "incident_token": { + "Take": 0 + }, "balance": "Gain" }, "origin": { @@ -317,8 +323,6 @@ } ], "log": [ - "Player1: Advance: Pay 1 action, Pay 2 gold, Gain Storage and take an event token (triggering an incident)", - "Player1: Storage: Gain 1 mood token", "A new game event has been triggered: Heavy Flood" ] }, @@ -330,6 +334,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -342,9 +347,7 @@ } } ], - "log": [ - "Player1: Heavy Flood: City C2 became Neutral" - ] + "active_events": 1 } ] } diff --git a/server/tests/test_games/incidents/earthquake/flood.outcome2.json b/server/tests/test_games/incidents/earthquake/flood.outcome2.json index 31c39345..1b042804 100644 --- a/server/tests/test_games/incidents/earthquake/flood.outcome2.json +++ b/server/tests/test_games/incidents/earthquake/flood.outcome2.json @@ -236,11 +236,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Advance" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -252,7 +256,7 @@ "resources": { "gold": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -274,7 +278,9 @@ "player": 0, "Advance": { "advance": "Storage", - "take_incident_token": true, + "incident_token": { + "Take": 0 + }, "balance": "Gain" }, "origin": { @@ -283,8 +289,6 @@ } ], "log": [ - "Player1: Advance: Pay 1 action, Pay 2 gold, Gain Storage and take an event token (triggering an incident)", - "Player1: Storage: Gain 1 mood token", "A new game event has been triggered: Heavy Flood" ] }, @@ -296,6 +300,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -308,9 +313,7 @@ } } ], - "log": [ - "Player1: Heavy Flood: City C2 became Neutral" - ] + "active_events": 1 }, { "action": { @@ -320,6 +323,7 @@ ] } }, + "player": 1, "items": [ { "player": 1, @@ -332,9 +336,7 @@ } } ], - "log": [ - "Player2: Heavy Flood: City A1 became Neutral" - ] + "active_events": 1 } ] } diff --git a/server/tests/test_games/incidents/earthquake/volcano.outcome.json b/server/tests/test_games/incidents/earthquake/volcano.outcome.json index 5e78ca7b..7a8a98c0 100644 --- a/server/tests/test_games/incidents/earthquake/volcano.outcome.json +++ b/server/tests/test_games/incidents/earthquake/volcano.outcome.json @@ -246,11 +246,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Advance" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -262,7 +266,7 @@ "resources": { "gold": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -284,7 +288,9 @@ "player": 0, "Advance": { "advance": "Storage", - "take_incident_token": true, + "incident_token": { + "Take": 0 + }, "balance": "Gain" }, "origin": { @@ -293,8 +299,6 @@ } ], "log": [ - "Player1: Advance: Pay 1 action, Pay 2 gold, Gain Storage and take an event token (triggering an incident)", - "Player1: Storage: Gain 1 mood token", "A new game event has been triggered: Vulcan" ] } diff --git a/server/tests/test_games/incidents/earthquake/volcano.outcome1.json b/server/tests/test_games/incidents/earthquake/volcano.outcome1.json index 7e0d96c2..85b47e09 100644 --- a/server/tests/test_games/incidents/earthquake/volcano.outcome1.json +++ b/server/tests/test_games/incidents/earthquake/volcano.outcome1.json @@ -182,11 +182,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Advance" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -198,7 +202,7 @@ "resources": { "gold": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -220,7 +224,9 @@ "player": 0, "Advance": { "advance": "Storage", - "take_incident_token": true, + "incident_token": { + "Take": 0 + }, "balance": "Gain" }, "origin": { @@ -229,8 +235,6 @@ } ], "log": [ - "Player1: Advance: Pay 1 action, Pay 2 gold, Gain Storage and take an event token (triggering an incident)", - "Player1: Storage: Gain 1 mood token", "A new game event has been triggered: Vulcan" ] }, @@ -242,6 +246,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -250,7 +255,8 @@ "Building": "Fortress" }, "balance": "Loss", - "position": "C2" + "position": "C2", + "port_position": null }, "origin": { "Incident": 29 @@ -263,7 +269,8 @@ "Building": "Temple" }, "balance": "Loss", - "position": "C2" + "position": "C2", + "port_position": null }, "origin": { "Incident": 29 @@ -276,7 +283,8 @@ "Wonder": "Pyramids" }, "balance": "Loss", - "position": "C2" + "position": "C2", + "port_position": null }, "origin": { "Incident": 29 @@ -291,7 +299,8 @@ "cavalry": 1, "elephants": 1 }, - "balance": "Loss" + "balance": "Loss", + "position": "C2" }, "origin": { "Incident": 29 @@ -299,9 +308,10 @@ } ], "log": [ - "Player1: Vulcan: Selected city C2 to be destroyed, Lose Fortress at C2, Gain 2 points for the Fortress at C2, Lose Temple at C2, Lose Pyramids at C2, Gain 0 points for the Pyramids at C2, Gain 2 points for the city center at C2, Lost 4 settlers, 2 infantry, 1 cavalry and 1 elephant at C2", + "Player1: Vulcan: Selected city C2 to be destroyed, Gain 2 points for the Fortress at C2, Gain 0 points for the Pyramids at C2, Gain 2 points for the city center at C2", "Player2: Vulcan: Gain 2 points for the Temple at C2" - ] + ], + "active_events": 1 } ] } diff --git a/server/tests/test_games/incidents/exhausted_land.outcome.json b/server/tests/test_games/incidents/exhausted_land.outcome.json index 8caf9874..c67123a7 100644 --- a/server/tests/test_games/incidents/exhausted_land.outcome.json +++ b/server/tests/test_games/incidents/exhausted_land.outcome.json @@ -248,6 +248,7 @@ "SelectAdvance": "Storage" } }, + "player": 0, "items": [ { "player": 0, @@ -265,7 +266,9 @@ "player": 0, "Advance": { "advance": "Storage", - "take_incident_token": true, + "incident_token": { + "Take": 0 + }, "balance": "Gain" }, "origin": { @@ -274,10 +277,9 @@ } ], "log": [ - "Player1: Storage: Gain 1 mood token", - "Player1: Free Advance: Gain Storage and take an event token (triggering an incident)", "A new game event has been triggered: An awesome year" - ] + ], + "active_events": 1 } ] } diff --git a/server/tests/test_games/incidents/exhausted_land.outcome1.json b/server/tests/test_games/incidents/exhausted_land.outcome1.json index c04c3848..1d9ecf3c 100644 --- a/server/tests/test_games/incidents/exhausted_land.outcome1.json +++ b/server/tests/test_games/incidents/exhausted_land.outcome1.json @@ -249,6 +249,7 @@ "SelectAdvance": "Storage" } }, + "player": 0, "items": [ { "player": 0, @@ -266,7 +267,9 @@ "player": 0, "Advance": { "advance": "Storage", - "take_incident_token": true, + "incident_token": { + "Take": 0 + }, "balance": "Gain" }, "origin": { @@ -275,10 +278,9 @@ } ], "log": [ - "Player1: Storage: Gain 1 mood token", - "Player1: Free Advance: Gain Storage and take an event token (triggering an incident)", "A new game event has been triggered: An awesome year" - ] + ], + "active_events": 1 }, { "action": { @@ -288,6 +290,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -312,13 +315,24 @@ "origin": { "Incident": 13 } + }, + { + "player": 1, + "Resources": { + "resources": { + "food": 1 + }, + "balance": "Loss" + }, + "origin": { + "Ability": "Waste" + } } ], "log": [ - "Player1: An awesome year: Exhausted the land in position B2, Gain 2 food", - "Player2: An awesome year: Gain 2 food", - "Player2: Waste: Could not store 1 food" - ] + "Player1: An awesome year: Exhausted the land in position B2" + ], + "active_events": 2 } ] } diff --git a/server/tests/test_games/incidents/famine/epidemics.outcome.json b/server/tests/test_games/incidents/famine/epidemics.outcome.json index ebcdec7a..f15061b0 100644 --- a/server/tests/test_games/incidents/famine/epidemics.outcome.json +++ b/server/tests/test_games/incidents/famine/epidemics.outcome.json @@ -250,11 +250,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Advance" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -266,7 +270,7 @@ "resources": { "gold": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -288,7 +292,9 @@ "player": 0, "Advance": { "advance": "Storage", - "take_incident_token": true, + "incident_token": { + "Take": 0 + }, "balance": "Gain" }, "origin": { @@ -297,8 +303,6 @@ } ], "log": [ - "Player1: Advance: Pay 1 action, Pay 2 gold, Gain Storage and take an event token (triggering an incident)", - "Player1: Storage: Gain 1 mood token", "A new game event has been triggered: Epidemics" ] } diff --git a/server/tests/test_games/incidents/famine/epidemics.outcome1.json b/server/tests/test_games/incidents/famine/epidemics.outcome1.json index c325d3ea..a04e33ba 100644 --- a/server/tests/test_games/incidents/famine/epidemics.outcome1.json +++ b/server/tests/test_games/incidents/famine/epidemics.outcome1.json @@ -207,11 +207,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Advance" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -223,7 +227,7 @@ "resources": { "gold": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -245,7 +249,9 @@ "player": 0, "Advance": { "advance": "Storage", - "take_incident_token": true, + "incident_token": { + "Take": 0 + }, "balance": "Gain" }, "origin": { @@ -254,8 +260,6 @@ } ], "log": [ - "Player1: Advance: Pay 1 action, Pay 2 gold, Gain Storage and take an event token (triggering an incident)", - "Player1: Storage: Gain 1 mood token", "A new game event has been triggered: Epidemics" ] }, @@ -267,6 +271,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -274,16 +279,15 @@ "units": { "settlers": 1 }, - "balance": "Loss" + "balance": "Loss", + "position": "C2" }, "origin": { "Incident": 2 } } ], - "log": [ - "Player1: Epidemics: Lost 1 settler at C2" - ] + "active_events": 1 } ] } diff --git a/server/tests/test_games/incidents/famine/famine.outcome.json b/server/tests/test_games/incidents/famine/famine.outcome.json index 56bc311d..3fde0919 100644 --- a/server/tests/test_games/incidents/famine/famine.outcome.json +++ b/server/tests/test_games/incidents/famine/famine.outcome.json @@ -216,11 +216,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Advance" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -232,7 +236,7 @@ "resources": { "gold": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -254,7 +258,9 @@ "player": 0, "Advance": { "advance": "Storage", - "take_incident_token": true, + "incident_token": { + "Take": 0 + }, "balance": "Gain" }, "origin": { @@ -285,10 +291,8 @@ } ], "log": [ - "Player1: Advance: Pay 1 action, Pay 2 gold, Gain Storage and take an event token (triggering an incident)", - "Player1: Storage: Gain 1 mood token", "A new game event has been triggered: Severe famine", - "Player1: Severe famine: Base effect: Barbarians move, Barbarians cannot move - will try to spawn a new city instead, Barbarians cannot spawn a new city, Lost 1 food, City A1 became Angry" + "Player1: Severe famine: Base effect: Barbarians move, Barbarians cannot move - will try to spawn a new city instead, Barbarians cannot spawn a new city, Lost 1 food" ] } ] diff --git a/server/tests/test_games/incidents/famine/famine_protected.outcome.json b/server/tests/test_games/incidents/famine/famine_protected.outcome.json index 46f84477..2248f658 100644 --- a/server/tests/test_games/incidents/famine/famine_protected.outcome.json +++ b/server/tests/test_games/incidents/famine/famine_protected.outcome.json @@ -218,11 +218,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Advance" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -234,7 +238,7 @@ "resources": { "gold": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -256,7 +260,9 @@ "player": 0, "Advance": { "advance": "Storage", - "take_incident_token": true, + "incident_token": { + "Take": 0 + }, "balance": "Gain" }, "origin": { @@ -265,8 +271,6 @@ } ], "log": [ - "Player1: Advance: Pay 1 action, Pay 2 gold, Gain Storage and take an event token (triggering an incident)", - "Player1: Storage: Gain 1 mood token", "A new game event has been triggered: Severe famine", "Player1: Severe famine: Base effect: Barbarians move, Barbarians cannot move - will try to spawn a new city instead, Barbarians cannot spawn a new city" ] diff --git a/server/tests/test_games/incidents/famine/pestilence.outcome.json b/server/tests/test_games/incidents/famine/pestilence.outcome.json index d7a00898..395b3713 100644 --- a/server/tests/test_games/incidents/famine/pestilence.outcome.json +++ b/server/tests/test_games/incidents/famine/pestilence.outcome.json @@ -270,11 +270,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Advance" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -286,7 +290,7 @@ "resources": { "gold": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -308,7 +312,9 @@ "player": 0, "Advance": { "advance": "Storage", - "take_incident_token": true, + "incident_token": { + "Take": 0 + }, "balance": "Gain" }, "origin": { @@ -317,8 +323,6 @@ } ], "log": [ - "Player1: Advance: Pay 1 action, Pay 2 gold, Gain Storage and take an event token (triggering an incident)", - "Player1: Storage: Gain 1 mood token", "A new game event has been triggered: Pestilence" ] } diff --git a/server/tests/test_games/incidents/famine/pestilence.outcome1.json b/server/tests/test_games/incidents/famine/pestilence.outcome1.json index 516d53a7..69d4358a 100644 --- a/server/tests/test_games/incidents/famine/pestilence.outcome1.json +++ b/server/tests/test_games/incidents/famine/pestilence.outcome1.json @@ -256,11 +256,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Advance" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -272,7 +276,7 @@ "resources": { "gold": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -294,7 +298,9 @@ "player": 0, "Advance": { "advance": "Storage", - "take_incident_token": true, + "incident_token": { + "Take": 0 + }, "balance": "Gain" }, "origin": { @@ -303,8 +309,6 @@ } ], "log": [ - "Player1: Advance: Pay 1 action, Pay 2 gold, Gain Storage and take an event token (triggering an incident)", - "Player1: Storage: Gain 1 mood token", "A new game event has been triggered: Pestilence" ] }, @@ -318,6 +322,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -325,7 +330,7 @@ "resources": { "mood_tokens": 1 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Advance": "Myths" @@ -333,8 +338,9 @@ } ], "log": [ - "Player1: Myths: Pay 1 mood token, Avoid mood change" - ] + "Player1: Myths: Avoid mood change" + ], + "active_events": 1 } ] } diff --git a/server/tests/test_games/incidents/famine/pestilence.outcome2.json b/server/tests/test_games/incidents/famine/pestilence.outcome2.json index fde21cac..0e9fa088 100644 --- a/server/tests/test_games/incidents/famine/pestilence.outcome2.json +++ b/server/tests/test_games/incidents/famine/pestilence.outcome2.json @@ -273,11 +273,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Advance" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -289,7 +293,7 @@ "resources": { "gold": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -311,7 +315,9 @@ "player": 0, "Advance": { "advance": "Storage", - "take_incident_token": true, + "incident_token": { + "Take": 0 + }, "balance": "Gain" }, "origin": { @@ -320,8 +326,6 @@ } ], "log": [ - "Player1: Advance: Pay 1 action, Pay 2 gold, Gain Storage and take an event token (triggering an incident)", - "Player1: Storage: Gain 1 mood token", "A new game event has been triggered: Pestilence" ] }, @@ -335,6 +339,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -342,7 +347,7 @@ "resources": { "mood_tokens": 1 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Advance": "Myths" @@ -350,8 +355,9 @@ } ], "log": [ - "Player1: Myths: Pay 1 mood token, Avoid mood change" - ] + "Player1: Myths: Avoid mood change" + ], + "active_events": 1 }, { "action": { @@ -361,6 +367,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -373,9 +380,7 @@ } } ], - "log": [ - "Player1: Pestilence: City A1 became Neutral" - ] + "active_events": 1 } ] } diff --git a/server/tests/test_games/incidents/famine/pestilence.outcome3.json b/server/tests/test_games/incidents/famine/pestilence.outcome3.json index f02fe85d..51c36513 100644 --- a/server/tests/test_games/incidents/famine/pestilence.outcome3.json +++ b/server/tests/test_games/incidents/famine/pestilence.outcome3.json @@ -223,11 +223,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Advance" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -239,7 +243,7 @@ "resources": { "gold": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -261,7 +265,9 @@ "player": 0, "Advance": { "advance": "Storage", - "take_incident_token": true, + "incident_token": { + "Take": 0 + }, "balance": "Gain" }, "origin": { @@ -270,8 +276,6 @@ } ], "log": [ - "Player1: Advance: Pay 1 action, Pay 2 gold, Gain Storage and take an event token (triggering an incident)", - "Player1: Storage: Gain 1 mood token", "A new game event has been triggered: Pestilence" ] }, @@ -285,6 +289,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -292,7 +297,7 @@ "resources": { "mood_tokens": 1 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Advance": "Myths" @@ -300,8 +305,9 @@ } ], "log": [ - "Player1: Myths: Pay 1 mood token, Avoid mood change" - ] + "Player1: Myths: Avoid mood change" + ], + "active_events": 1 }, { "action": { @@ -311,6 +317,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -323,9 +330,7 @@ } } ], - "log": [ - "Player1: Pestilence: City A1 became Neutral" - ] + "active_events": 1 }, { "action": { @@ -337,6 +342,7 @@ ] } }, + "player": 1, "items": [ { "player": 1, @@ -344,7 +350,7 @@ "resources": { "mood_tokens": 1 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Advance": "Myths" @@ -352,8 +358,9 @@ } ], "log": [ - "Player2: Myths: Pay 1 mood token, Avoid mood change" - ] + "Player2: Myths: Avoid mood change" + ], + "active_events": 1 } ] } diff --git a/server/tests/test_games/incidents/good_year/good_year.outcome1.json b/server/tests/test_games/incidents/good_year/good_year.outcome1.json index f0b3890c..115c2dea 100644 --- a/server/tests/test_games/incidents/good_year/good_year.outcome1.json +++ b/server/tests/test_games/incidents/good_year/good_year.outcome1.json @@ -265,6 +265,7 @@ "SelectAdvance": "Storage" } }, + "player": 0, "items": [ { "player": 0, @@ -282,7 +283,9 @@ "player": 0, "Advance": { "advance": "Storage", - "take_incident_token": true, + "incident_token": { + "Take": 0 + }, "balance": "Gain" }, "origin": { @@ -294,7 +297,8 @@ "Structure": { "structure": "CityCenter", "balance": "Gain", - "position": "B3" + "position": "B3", + "port_position": null }, "origin": { "Incident": 11 @@ -306,7 +310,8 @@ "units": { "infantry": 1 }, - "balance": "Gain" + "balance": "Gain", + "position": "B3" }, "origin": { "Incident": 11 @@ -314,12 +319,10 @@ } ], "log": [ - "Player1: Storage: Gain 1 mood token", - "Player1: Free Advance: Gain Storage and take an event token (triggering an incident)", "A new game event has been triggered: A good year", - "Player1: A good year: Base effect: Barbarians spawn", - "Barbarians: A good year: Gain city B3, Gain 1 infantry at B3" - ] + "Player1: A good year: Base effect: Barbarians spawn" + ], + "active_events": 1 }, { "action": { @@ -327,6 +330,7 @@ "SelectUnitType": "Elephant" } }, + "player": 0, "items": [ { "player": 2, @@ -334,7 +338,8 @@ "units": { "elephants": 1 }, - "balance": "Gain" + "balance": "Gain", + "position": "B3" }, "origin": { "Incident": 11 @@ -365,11 +370,7 @@ } } ], - "log": [ - "Barbarians: A good year: Gain 1 elephant at B3", - "Player1: A good year: Gain 1 food", - "Player2: A good year: Gain 1 food" - ] + "active_events": 2 } ] } diff --git a/server/tests/test_games/incidents/good_year/successful_year.outcome.json b/server/tests/test_games/incidents/good_year/successful_year.outcome.json index 9c902d39..078cefcc 100644 --- a/server/tests/test_games/incidents/good_year/successful_year.outcome.json +++ b/server/tests/test_games/incidents/good_year/successful_year.outcome.json @@ -252,6 +252,7 @@ "SelectAdvance": "Storage" } }, + "player": 0, "items": [ { "player": 0, @@ -269,7 +270,9 @@ "player": 0, "Advance": { "advance": "Storage", - "take_incident_token": true, + "incident_token": { + "Take": 0 + }, "balance": "Gain" }, "origin": { @@ -290,12 +293,10 @@ } ], "log": [ - "Player1: Storage: Gain 1 mood token", - "Player1: Free Advance: Gain Storage and take an event token (triggering an incident)", "A new game event has been triggered: A successful year", - "Player1: A successful year: Base effect: Pirates spawn, No valid positions for Pirate Ship", - "Player2: A successful year: Gain 1 food" - ] + "Player1: A successful year: Base effect: Pirates spawn, No valid positions for Pirate Ship" + ], + "active_events": 1 } ] } diff --git a/server/tests/test_games/incidents/great_persons/great_architect.outcome4.json b/server/tests/test_games/incidents/great_persons/great_architect.outcome4.json index faa3312d..f4ce23c4 100644 --- a/server/tests/test_games/incidents/great_persons/great_architect.outcome4.json +++ b/server/tests/test_games/incidents/great_persons/great_architect.outcome4.json @@ -220,11 +220,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Advance" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -236,7 +240,7 @@ "resources": { "food": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -258,7 +262,9 @@ "player": 0, "Advance": { "advance": "Storage", - "take_incident_token": true, + "incident_token": { + "Take": 0 + }, "balance": "Gain" }, "origin": { @@ -267,8 +273,6 @@ } ], "log": [ - "Player1: Advance: Pay 1 action, Pay 2 food, Gain Storage and take an event token (triggering an incident)", - "Player1: Storage: Gain 1 mood token", "A new game event has been triggered: Great Architect", "Player1: Great Architect: Base effect: Pirates spawn, No valid positions for Pirate Ship" ] @@ -283,6 +287,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -290,7 +295,7 @@ "resources": { "culture_tokens": 1 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Incident": 55 @@ -312,9 +317,7 @@ } } ], - "log": [ - "Player1: Great Architect: Pay 1 culture token, Gain Great Architect from the current event" - ] + "active_events": 1 }, { "action": { @@ -322,6 +325,10 @@ "ActionCard": 155 } }, + "player": 0, + "origin": { + "CivilCard": 155 + }, "items": [ { "player": 0, @@ -340,7 +347,6 @@ } ], "log": [ - "Player1: Action Card: Play Great Architect", "Player1: Build Wonder: Play the wonder card Pyramids" ] }, @@ -352,9 +358,11 @@ ] } }, + "player": 0, "log": [ "Player1: Build Wonder: Decided to build Pyramids in city A1" - ] + ], + "active_events": 2 }, { "action": { @@ -370,6 +378,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -381,7 +390,7 @@ "gold": 1, "culture_tokens": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Wonder": "Pyramids" @@ -409,17 +418,15 @@ "Wonder": "Pyramids" }, "balance": "Gain", - "position": "A1" + "position": "A1", + "port_position": null }, "origin": { "CivilCard": 155 } } ], - "log": [ - "Player1: Pyramids: Pay 2 food, 3 wood, 6 ore, 1 gold and 2 culture tokens", - "Player1: Great Architect: Play Pyramids, Gain Pyramids at A1" - ] + "active_events": 2 } ] } diff --git a/server/tests/test_games/incidents/great_persons/great_artist.outcome.json b/server/tests/test_games/incidents/great_persons/great_artist.outcome.json index 0e5e27e2..5dee195c 100644 --- a/server/tests/test_games/incidents/great_persons/great_artist.outcome.json +++ b/server/tests/test_games/incidents/great_persons/great_artist.outcome.json @@ -265,11 +265,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Advance" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -281,7 +285,7 @@ "resources": { "food": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -303,7 +307,9 @@ "player": 0, "Advance": { "advance": "Storage", - "take_incident_token": true, + "incident_token": { + "Take": 0 + }, "balance": "Gain" }, "origin": { @@ -312,8 +318,6 @@ } ], "log": [ - "Player1: Advance: Pay 1 action, Pay 2 food, Gain Storage and take an event token (triggering an incident)", - "Player1: Storage: Gain 1 mood token", "A new game event has been triggered: Great Artist", "Player1: Great Artist: Base effect: Barbarians move, Barbarians cannot move - will try to spawn a new city instead, Barbarians cannot spawn a new city, Cannot afford to buy Great Artist" ] diff --git a/server/tests/test_games/incidents/great_persons/great_artist.outcome1.json b/server/tests/test_games/incidents/great_persons/great_artist.outcome1.json index 25187222..02cb99cc 100644 --- a/server/tests/test_games/incidents/great_persons/great_artist.outcome1.json +++ b/server/tests/test_games/incidents/great_persons/great_artist.outcome1.json @@ -230,11 +230,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Advance" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -246,7 +250,7 @@ "resources": { "food": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -268,7 +272,9 @@ "player": 0, "Advance": { "advance": "Storage", - "take_incident_token": true, + "incident_token": { + "Take": 0 + }, "balance": "Gain" }, "origin": { @@ -277,8 +283,6 @@ } ], "log": [ - "Player1: Advance: Pay 1 action, Pay 2 food, Gain Storage and take an event token (triggering an incident)", - "Player1: Storage: Gain 1 mood token", "A new game event has been triggered: Great Artist", "Player1: Great Artist: Base effect: Barbarians move, Barbarians cannot move - will try to spawn a new city instead, Barbarians cannot spawn a new city, Cannot afford to buy Great Artist" ] @@ -293,6 +297,7 @@ ] } }, + "player": 1, "items": [ { "player": 1, @@ -300,7 +305,7 @@ "resources": { "culture_tokens": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Incident": 19 @@ -322,9 +327,7 @@ } } ], - "log": [ - "Player2: Great Artist: Pay 2 culture tokens, Gain Great Artist from the current event" - ] + "active_events": 1 } ] } diff --git a/server/tests/test_games/incidents/great_persons/great_artist.outcome2.json b/server/tests/test_games/incidents/great_persons/great_artist.outcome2.json index 2035bc3d..d2cc7eb5 100644 --- a/server/tests/test_games/incidents/great_persons/great_artist.outcome2.json +++ b/server/tests/test_games/incidents/great_persons/great_artist.outcome2.json @@ -227,11 +227,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Advance" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -243,7 +247,7 @@ "resources": { "food": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -265,7 +269,9 @@ "player": 0, "Advance": { "advance": "Storage", - "take_incident_token": true, + "incident_token": { + "Take": 0 + }, "balance": "Gain" }, "origin": { @@ -274,8 +280,6 @@ } ], "log": [ - "Player1: Advance: Pay 1 action, Pay 2 food, Gain Storage and take an event token (triggering an incident)", - "Player1: Storage: Gain 1 mood token", "A new game event has been triggered: Great Artist", "Player1: Great Artist: Base effect: Barbarians move, Barbarians cannot move - will try to spawn a new city instead, Barbarians cannot spawn a new city, Cannot afford to buy Great Artist" ] @@ -290,6 +294,7 @@ ] } }, + "player": 1, "items": [ { "player": 1, @@ -297,7 +302,7 @@ "resources": { "culture_tokens": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Incident": 19 @@ -319,16 +324,27 @@ } } ], - "log": [ - "Player2: Great Artist: Pay 2 culture tokens, Gain Great Artist from the current event" - ] + "active_events": 1 }, { "action": { "Playing": "EndTurn" }, - "log": [ - "Player1: End Turn: 2 actions left" + "player": 0, + "origin": { + "Ability": "End Turn" + }, + "items": [ + { + "player": 0, + "Action": { + "balance": "Loss", + "amount": 2 + }, + "origin": { + "Ability": "End Turn" + } + } ] } ] diff --git a/server/tests/test_games/incidents/great_persons/great_artist.outcome3.json b/server/tests/test_games/incidents/great_persons/great_artist.outcome3.json index a9e529b6..3491d5bb 100644 --- a/server/tests/test_games/incidents/great_persons/great_artist.outcome3.json +++ b/server/tests/test_games/incidents/great_persons/great_artist.outcome3.json @@ -225,11 +225,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Advance" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -241,7 +245,7 @@ "resources": { "food": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -263,7 +267,9 @@ "player": 0, "Advance": { "advance": "Storage", - "take_incident_token": true, + "incident_token": { + "Take": 0 + }, "balance": "Gain" }, "origin": { @@ -272,8 +278,6 @@ } ], "log": [ - "Player1: Advance: Pay 1 action, Pay 2 food, Gain Storage and take an event token (triggering an incident)", - "Player1: Storage: Gain 1 mood token", "A new game event has been triggered: Great Artist", "Player1: Great Artist: Base effect: Barbarians move, Barbarians cannot move - will try to spawn a new city instead, Barbarians cannot spawn a new city, Cannot afford to buy Great Artist" ] @@ -288,6 +292,7 @@ ] } }, + "player": 1, "items": [ { "player": 1, @@ -295,7 +300,7 @@ "resources": { "culture_tokens": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Incident": 19 @@ -317,16 +322,27 @@ } } ], - "log": [ - "Player2: Great Artist: Pay 2 culture tokens, Gain Great Artist from the current event" - ] + "active_events": 1 }, { "action": { "Playing": "EndTurn" }, - "log": [ - "Player1: End Turn: 2 actions left" + "player": 0, + "origin": { + "Ability": "End Turn" + }, + "items": [ + { + "player": 0, + "Action": { + "balance": "Loss", + "amount": 2 + }, + "origin": { + "Ability": "End Turn" + } + } ] } ] @@ -342,11 +358,15 @@ "ActionCard": 119 } }, + "player": 1, + "origin": { + "CivilCard": 119 + }, "items": [ { "player": 1, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "CivilCard": 119 @@ -383,7 +403,7 @@ "player": 1, "Advance": { "advance": "Arts", - "take_incident_token": false, + "incident_token": "NoChange", "balance": "Gain" }, "origin": { @@ -402,9 +422,7 @@ } ], "log": [ - "Player2: Great Artist: Pay 1 action, Unlock Hellenistic Culture, Gain Arts without taking an event token, City A1 became Happy", - "Player2: Action Card: Play Great Artist", - "Player2: Arts: Gain 1 culture token" + "Player2: Great Artist: Unlock Hellenistic Culture" ] } ] diff --git a/server/tests/test_games/incidents/great_persons/great_athlete.outcome4.json b/server/tests/test_games/incidents/great_persons/great_athlete.outcome4.json index 90a4b012..cccf7b83 100644 --- a/server/tests/test_games/incidents/great_persons/great_athlete.outcome4.json +++ b/server/tests/test_games/incidents/great_persons/great_athlete.outcome4.json @@ -212,11 +212,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Advance" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -228,7 +232,7 @@ "resources": { "food": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -250,7 +254,9 @@ "player": 0, "Advance": { "advance": "Storage", - "take_incident_token": true, + "incident_token": { + "Take": 0 + }, "balance": "Gain" }, "origin": { @@ -259,8 +265,6 @@ } ], "log": [ - "Player1: Advance: Pay 1 action, Pay 2 food, Gain Storage and take an event token (triggering an incident)", - "Player1: Storage: Gain 1 mood token", "A new game event has been triggered: Great Athlete", "Player1: Great Athlete: Base effect: Pirates spawn, No valid positions for Pirate Ship" ] @@ -275,6 +279,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -282,7 +287,7 @@ "resources": { "culture_tokens": 1 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Incident": 56 @@ -304,9 +309,7 @@ } } ], - "log": [ - "Player1: Great Athlete: Pay 1 culture token, Gain Great Athlete from the current event" - ] + "active_events": 1 }, { "action": { @@ -314,11 +317,15 @@ "ActionCard": 156 } }, + "player": 0, + "origin": { + "CivilCard": 156 + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "CivilCard": 156 @@ -355,18 +362,13 @@ "player": 0, "Advance": { "advance": "Arts", - "take_incident_token": false, + "incident_token": "NoChange", "balance": "Gain" }, "origin": { "CivilCard": 156 } } - ], - "log": [ - "Player1: Great Athlete: Pay 1 action, Gain Arts without taking an event token", - "Player1: Action Card: Play Great Athlete", - "Player1: Arts: Gain 1 culture token" ] }, { @@ -375,9 +377,11 @@ "Bool": true } }, + "player": 0, "log": [ "Player1: Great Athlete: Decided to convert culture to mood tokens" - ] + ], + "active_events": 1 }, { "action": { @@ -389,6 +393,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -396,7 +401,7 @@ "resources": { "culture_tokens": 1 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "CivilCard": 156 @@ -415,9 +420,7 @@ } } ], - "log": [ - "Player1: Great Athlete: Pay 1 culture token, Gain 1 mood token" - ] + "active_events": 1 } ] } diff --git a/server/tests/test_games/incidents/great_persons/great_diplomat.outcome2.json b/server/tests/test_games/incidents/great_persons/great_diplomat.outcome2.json index ad6fc03f..568fcd96 100644 --- a/server/tests/test_games/incidents/great_persons/great_diplomat.outcome2.json +++ b/server/tests/test_games/incidents/great_persons/great_diplomat.outcome2.json @@ -234,11 +234,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Advance" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -250,7 +254,7 @@ "resources": { "food": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -272,7 +276,9 @@ "player": 0, "Advance": { "advance": "Storage", - "take_incident_token": true, + "incident_token": { + "Take": 0 + }, "balance": "Gain" }, "origin": { @@ -281,8 +287,6 @@ } ], "log": [ - "Player1: Advance: Pay 1 action, Pay 2 food, Gain Storage and take an event token (triggering an incident)", - "Player1: Storage: Gain 1 mood token", "A new game event has been triggered: Great Diplomat", "Player1: Great Diplomat: Base effect: Barbarians spawn, Barbarians cannot spawn a new city, Barbarians cannot reinforce" ] @@ -297,6 +301,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -304,7 +309,7 @@ "resources": { "culture_tokens": 1 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Incident": 57 @@ -327,8 +332,9 @@ } ], "log": [ - "Player1: Great Diplomat: Pay 1 culture token, Gain Great Diplomat from the current event, Initiated diplomatic relations with Player2" - ] + "Player1: Great Diplomat: Initiated diplomatic relations with Player2" + ], + "active_events": 1 }, { "action": { @@ -344,6 +350,10 @@ } } }, + "player": 0, + "origin": { + "Ability": "Move" + }, "combat_stats": { "round": 1, "battleground": "Land", @@ -370,10 +380,23 @@ "result": "Draw" }, "items": [ + { + "player": 0, + "Move": { + "units": { + "infantry": 1 + }, + "start": "C2", + "destination": "B1" + }, + "origin": { + "Ability": "Move" + } + }, { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Move" @@ -385,7 +408,7 @@ "resources": { "culture_tokens": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Move" @@ -402,7 +425,8 @@ "units": { "infantry": 1 }, - "balance": "Loss" + "balance": "Loss", + "position": "C2" }, "origin": { "Ability": "Combat" @@ -414,7 +438,8 @@ "units": { "infantry": 1 }, - "balance": "Loss" + "balance": "Loss", + "position": "B1" }, "origin": { "Ability": "Combat" @@ -422,10 +447,9 @@ } ], "log": [ - "Player1: Move: marched 1 infantry from C2 to B1 for 2 culture tokens, Pay 1 action, Pay 2 culture tokens with Great Diplomat", "Combat round 1", - "Player1: Combat: Attacking with 1 infantry, Roll 6 (infantry, +1 combat value) for combined combat value of 7 and gets 1 hits against defending units, Lost 1 infantry at C2", - "Player2: Combat: Defending with 1 infantry, Roll 6 (infantry, +1 combat value) for combined combat value of 7 and gets 1 hits against attacking units, Lost 1 infantry at B1", + "Player1: Combat: Attacking with 1 infantry, Roll 6 (infantry, +1 combat value) for combined combat value of 7 and gets 1 hits against defending units", + "Player2: Combat: Defending with 1 infantry, Roll 6 (infantry, +1 combat value) for combined combat value of 7 and gets 1 hits against attacking units", "Player1: Diplomatic Relations: Diplomatic relations with Player2 ended with a surprise attack.", "Player1: Choose Casualties: Remove all attacking units", "Player2: Choose Casualties: Remove all defending units", diff --git a/server/tests/test_games/incidents/great_persons/great_engineer.outcome5.json b/server/tests/test_games/incidents/great_persons/great_engineer.outcome5.json index 09a3abbd..ef132f4f 100644 --- a/server/tests/test_games/incidents/great_persons/great_engineer.outcome5.json +++ b/server/tests/test_games/incidents/great_persons/great_engineer.outcome5.json @@ -234,11 +234,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Advance" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -250,7 +254,7 @@ "resources": { "food": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -272,7 +276,9 @@ "player": 0, "Advance": { "advance": "Storage", - "take_incident_token": true, + "incident_token": { + "Take": 0 + }, "balance": "Gain" }, "origin": { @@ -281,8 +287,6 @@ } ], "log": [ - "Player1: Advance: Pay 1 action, Pay 2 food, Gain Storage and take an event token (triggering an incident)", - "Player1: Storage: Gain 1 mood token", "A new game event has been triggered: Great Engineer", "Player1: Great Engineer: Base effect: Barbarians move, Barbarians cannot move - will try to spawn a new city instead, Barbarians cannot spawn a new city" ] @@ -297,6 +301,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -304,7 +309,7 @@ "resources": { "culture_tokens": 1 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Incident": 26 @@ -326,9 +331,7 @@ } } ], - "log": [ - "Player1: Great Engineer: Pay 1 culture token, Gain Great Engineer from the current event" - ] + "active_events": 1 }, { "action": { @@ -336,11 +339,15 @@ "ActionCard": 126 } }, + "player": 0, + "origin": { + "CivilCard": 126 + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "CivilCard": 126 @@ -361,10 +368,6 @@ "Ability": "Action Card" } } - ], - "log": [ - "Player1: Great Engineer: Pay 1 action", - "Player1: Action Card: Play Great Engineer" ] }, { @@ -373,6 +376,7 @@ "SelectAdvance": "Engineering" } }, + "player": 0, "items": [ { "player": 0, @@ -393,7 +397,7 @@ "player": 0, "Advance": { "advance": "Engineering", - "take_incident_token": false, + "incident_token": "NoChange", "balance": "Gain" }, "origin": { @@ -402,9 +406,9 @@ } ], "log": [ - "Player1: Engineering: Draw a wonder card", - "Player1: Great Engineer: Unlock Aqueduct, Gain Engineering without taking an event token" - ] + "Player1: Great Engineer: Unlock Aqueduct" + ], + "active_events": 1 }, { "action": { @@ -412,6 +416,7 @@ "Bool": true } }, + "player": 0, "items": [ { "player": 0, @@ -424,8 +429,9 @@ } ], "log": [ - "Player1: Great Engineer: Great Engineer: You may build a building in a city without spending an action and without activating it., Gain 1 action" - ] + "Player1: Great Engineer: Great Engineer: You may build a building in a city without spending an action and without activating it." + ], + "active_events": 1 }, { "action": { @@ -442,11 +448,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Construct Building" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Construct Building" @@ -460,7 +470,7 @@ "wood": 1, "ore": 1 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Construct Building" @@ -481,7 +491,8 @@ "Building": "Fortress" }, "balance": "Gain", - "position": "C2" + "position": "C2", + "port_position": null }, "origin": { "Ability": "Construct Building" @@ -489,7 +500,6 @@ } ], "log": [ - "Player1: Construct Building: Pay 1 action, Pay 1 food, 1 wood and 1 ore with Captivi, Construct Only, Gain Fortress at C2", "Player1: Captivi: May replace resources with mood tokens" ] } diff --git a/server/tests/test_games/incidents/great_persons/great_explorer.outcome6.json b/server/tests/test_games/incidents/great_persons/great_explorer.outcome6.json index 529acff5..f2238fe6 100644 --- a/server/tests/test_games/incidents/great_persons/great_explorer.outcome6.json +++ b/server/tests/test_games/incidents/great_persons/great_explorer.outcome6.json @@ -366,11 +366,15 @@ } } }, + "player": 1, + "origin": { + "Ability": "Advance" + }, "items": [ { "player": 1, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -382,7 +386,7 @@ "resources": { "food": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -404,7 +408,9 @@ "player": 1, "Advance": { "advance": "Storage", - "take_incident_token": true, + "incident_token": { + "Take": 0 + }, "balance": "Gain" }, "origin": { @@ -413,8 +419,6 @@ } ], "log": [ - "Player2: Advance: Pay 1 action, Pay 2 food, Gain Storage and take an event token (triggering an incident)", - "Player2: Storage: Gain 1 mood token", "A new game event has been triggered: Great Explorer", "Player2: Great Explorer: Exhausted the land in position E8" ] @@ -429,6 +433,7 @@ ] } }, + "player": 1, "items": [ { "player": 1, @@ -436,7 +441,7 @@ "resources": { "culture_tokens": 1 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Incident": 18 @@ -458,9 +463,7 @@ } } ], - "log": [ - "Player2: Great Explorer: Pay 1 culture token, Gain Great Explorer from the current event" - ] + "active_events": 1 }, { "action": { @@ -468,11 +471,15 @@ "ActionCard": 118 } }, + "player": 1, + "origin": { + "CivilCard": 118 + }, "items": [ { "player": 1, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "CivilCard": 118 @@ -509,18 +516,13 @@ "player": 1, "Advance": { "advance": "Fishing", - "take_incident_token": false, + "incident_token": "NoChange", "balance": "Gain" }, "origin": { "CivilCard": 118 } } - ], - "log": [ - "Player2: Great Explorer: Pay 1 action, Gain Fishing without taking an event token", - "Player2: Action Card: Play Great Explorer", - "Player2: Fishing: Gain 1 mood token" ] }, { @@ -531,9 +533,11 @@ ] } }, + "player": 1, "log": [ "Player2: Great Explorer: Explored B6" - ] + ], + "active_events": 1 }, { "action": { @@ -541,9 +545,39 @@ "ExploreResolution": 0 } }, + "player": 1, + "items": [ + { + "player": 1, + "Explore": { + "tiles": [ + [ + "B6", + "Fertile" + ], + [ + "A7", + "Fertile" + ], + [ + "C7", + "Fertile" + ], + [ + "B7", + "Barren" + ] + ] + }, + "origin": { + "Ability": "Explore Resolution" + } + } + ], "log": [ - "Player2: Explore Resolution: Chose rotation 0, Explored tiles A7=Fertile, B6=Fertile, B7=Barren, C7=Fertile" - ] + "Player2: Explore Resolution: Chose rotation 0" + ], + "active_events": 2 }, { "action": { @@ -553,9 +587,11 @@ ] } }, + "player": 1, "log": [ "Player2: Great Explorer: Decided to build a city A7" - ] + ], + "active_events": 1 }, { "action": { @@ -567,6 +603,7 @@ ] } }, + "player": 1, "items": [ { "player": 1, @@ -574,7 +611,7 @@ "resources": { "food": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "CivilCard": 118 @@ -585,16 +622,15 @@ "Structure": { "structure": "CityCenter", "balance": "Gain", - "position": "A7" + "position": "A7", + "port_position": null }, "origin": { "CivilCard": 118 } } ], - "log": [ - "Player2: Great Explorer: Pay 2 food, Gain city A7" - ] + "active_events": 1 } ] } diff --git a/server/tests/test_games/incidents/great_persons/great_merchant.outcome3.json b/server/tests/test_games/incidents/great_persons/great_merchant.outcome3.json index f68843ce..9ed02163 100644 --- a/server/tests/test_games/incidents/great_persons/great_merchant.outcome3.json +++ b/server/tests/test_games/incidents/great_persons/great_merchant.outcome3.json @@ -230,11 +230,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Advance" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -246,7 +250,7 @@ "resources": { "food": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -268,7 +272,9 @@ "player": 0, "Advance": { "advance": "Storage", - "take_incident_token": true, + "incident_token": { + "Take": 0 + }, "balance": "Gain" }, "origin": { @@ -277,8 +283,6 @@ } ], "log": [ - "Player1: Advance: Pay 1 action, Pay 2 food, Gain Storage and take an event token (triggering an incident)", - "Player1: Storage: Gain 1 mood token", "A new game event has been triggered: Great Merchant", "Player1: Great Merchant: Base effect: Barbarians move, Barbarians cannot move - will try to spawn a new city instead, Barbarians cannot spawn a new city" ] @@ -293,6 +297,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -300,7 +305,7 @@ "resources": { "culture_tokens": 1 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Incident": 25 @@ -322,9 +327,7 @@ } } ], - "log": [ - "Player1: Great Merchant: Pay 1 culture token, Gain Great Merchant from the current event" - ] + "active_events": 1 }, { "action": { @@ -332,11 +335,15 @@ "ActionCard": 125 } }, + "player": 0, + "origin": { + "CivilCard": 125 + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "CivilCard": 125 @@ -361,17 +368,13 @@ "player": 0, "Advance": { "advance": "TradeRoutes", - "take_incident_token": false, + "incident_token": "NoChange", "balance": "Gain" }, "origin": { "CivilCard": 125 } } - ], - "log": [ - "Player1: Great Merchant: Pay 1 action, Gain Trade Routes without taking an event token", - "Player1: Action Card: Play Great Merchant" ] }, { @@ -382,6 +385,7 @@ } } }, + "player": 0, "items": [ { "player": 0, @@ -394,12 +398,24 @@ "origin": { "CivilCard": 125 } + }, + { + "player": 0, + "Resources": { + "resources": { + "gold": 1 + }, + "balance": "Loss" + }, + "origin": { + "Ability": "Waste" + } } ], "log": [ - "Player1: Great Merchant: Player1 selected trade routes, settler at C2 traded with city A3, Gain 1 gold", - "Player1: Waste: Could not store 1 gold" - ] + "Player1: Great Merchant: Player1 selected trade routes, settler at C2 traded with city A3" + ], + "active_events": 1 } ] } diff --git a/server/tests/test_games/incidents/great_persons/great_prophet.outcome4.json b/server/tests/test_games/incidents/great_persons/great_prophet.outcome4.json index 035b33d0..9b621848 100644 --- a/server/tests/test_games/incidents/great_persons/great_prophet.outcome4.json +++ b/server/tests/test_games/incidents/great_persons/great_prophet.outcome4.json @@ -286,11 +286,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Advance" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -302,7 +306,7 @@ "resources": { "food": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -324,7 +328,9 @@ "player": 0, "Advance": { "advance": "Storage", - "take_incident_token": true, + "incident_token": { + "Take": 0 + }, "balance": "Gain" }, "origin": { @@ -333,8 +339,6 @@ } ], "log": [ - "Player1: Advance: Pay 1 action, Pay 2 food, Gain Storage and take an event token (triggering an incident)", - "Player1: Storage: Gain 1 mood token", "A new game event has been triggered: Great Prophet", "Player1: Great Prophet: Base effect: Barbarians move, Barbarians cannot move - will try to spawn a new city instead, Barbarians cannot spawn a new city" ] @@ -349,6 +353,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -356,7 +361,7 @@ "resources": { "culture_tokens": 1 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Incident": 20 @@ -378,9 +383,7 @@ } } ], - "log": [ - "Player1: Great Prophet: Pay 1 culture token, Gain Great Prophet from the current event" - ] + "active_events": 1 }, { "action": { @@ -388,11 +391,15 @@ "ActionCard": 120 } }, + "player": 0, + "origin": { + "CivilCard": 120 + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "CivilCard": 120 @@ -429,18 +436,13 @@ "player": 0, "Advance": { "advance": "Myths", - "take_incident_token": false, + "incident_token": "NoChange", "balance": "Gain" }, "origin": { "CivilCard": 120 } } - ], - "log": [ - "Player1: Great Prophet: Pay 1 action, Gain Myths without taking an event token", - "Player1: Action Card: Play Great Prophet", - "Player1: Myths: Gain 1 mood token" ] }, { @@ -451,9 +453,11 @@ ] } }, + "player": 0, "log": [ "Player1: Great Prophet: Decided to build a Temple at C1" - ] + ], + "active_events": 1 }, { "action": { @@ -465,6 +469,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -472,7 +477,7 @@ "resources": { "gold": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Construct Building" @@ -490,17 +495,15 @@ "Building": "Temple" }, "balance": "Gain", - "position": "C1" + "position": "C1", + "port_position": null }, "origin": { "CivilCard": 120 } } ], - "log": [ - "Player1: Construct Building: Pay 2 gold with State Religion", - "Player1: Great Prophet: Gain Temple at C1" - ] + "active_events": 1 } ] } diff --git a/server/tests/test_games/incidents/great_persons/great_seer.outcome4.json b/server/tests/test_games/incidents/great_persons/great_seer.outcome4.json index ee2afa36..cd802bdc 100644 --- a/server/tests/test_games/incidents/great_persons/great_seer.outcome4.json +++ b/server/tests/test_games/incidents/great_persons/great_seer.outcome4.json @@ -217,11 +217,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Advance" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -233,7 +237,7 @@ "resources": { "food": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -255,7 +259,9 @@ "player": 0, "Advance": { "advance": "Storage", - "take_incident_token": true, + "incident_token": { + "Take": 0 + }, "balance": "Gain" }, "origin": { @@ -264,8 +270,6 @@ } ], "log": [ - "Player1: Advance: Pay 1 action, Pay 2 food, Gain Storage and take an event token (triggering an incident)", - "Player1: Storage: Gain 1 mood token", "A new game event has been triggered: Great Seer", "Player1: Great Seer: Base effect: Pirates spawn, No valid positions for Pirate Ship" ] @@ -280,6 +284,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -287,7 +292,7 @@ "resources": { "culture_tokens": 1 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Incident": 58 @@ -309,9 +314,7 @@ } } ], - "log": [ - "Player1: Great Seer: Pay 1 culture token, Gain Great Seer from the current event" - ] + "active_events": 1 }, { "action": { @@ -319,11 +322,15 @@ "ActionCard": 158 } }, + "player": 0, + "origin": { + "CivilCard": 158 + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "CivilCard": 158 @@ -344,10 +351,6 @@ "Ability": "Action Card" } } - ], - "log": [ - "Player1: Great Seer: Pay 1 action", - "Player1: Action Card: Play Great Seer" ] }, { @@ -360,6 +363,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -392,10 +396,7 @@ } } ], - "log": [ - "Player1: Great Seer: Placed a card from the draw pile in the Great Seer", - "Player2: Great Seer: Placed a card from the draw pile in the Great Seer" - ] + "active_events": 1 }, { "action": { @@ -408,11 +409,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Advance" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -424,7 +429,7 @@ "resources": { "food": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -478,17 +483,15 @@ "player": 0, "Advance": { "advance": "Writing", - "take_incident_token": true, + "incident_token": { + "Take": 2 + }, "balance": "Gain" }, "origin": { "Ability": "Advance" } } - ], - "log": [ - "Player1: Advance: Pay 1 action, Pay 2 food, Gain Writing and take an event token (2 left)", - "Player1: Writing: Draw an action card, Gain an objective card from Great Seer, Gain 1 culture token" ] } ] diff --git a/server/tests/test_games/incidents/great_persons/great_warlord.outcome3.json b/server/tests/test_games/incidents/great_persons/great_warlord.outcome3.json index 2a6e27b5..b49dc327 100644 --- a/server/tests/test_games/incidents/great_persons/great_warlord.outcome3.json +++ b/server/tests/test_games/incidents/great_persons/great_warlord.outcome3.json @@ -373,11 +373,15 @@ } } }, + "player": 1, + "origin": { + "Ability": "Advance" + }, "items": [ { "player": 1, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -389,7 +393,7 @@ "resources": { "food": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -411,7 +415,9 @@ "player": 1, "Advance": { "advance": "Storage", - "take_incident_token": true, + "incident_token": { + "Take": 0 + }, "balance": "Gain" }, "origin": { @@ -420,8 +426,6 @@ } ], "log": [ - "Player2: Advance: Pay 1 action, Pay 2 food, Gain Storage and take an event token (triggering an incident)", - "Player2: Storage: Gain 1 mood token", "A new game event has been triggered: Great Warlord", "Player2: Great Warlord: Exhausted the land in position E8" ] @@ -436,6 +440,7 @@ ] } }, + "player": 1, "items": [ { "player": 1, @@ -443,7 +448,7 @@ "resources": { "culture_tokens": 1 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Incident": 24 @@ -465,9 +470,7 @@ } } ], - "log": [ - "Player2: Great Warlord: Pay 1 culture token, Gain Great Warlord from the current event" - ] + "active_events": 1 }, { "action": { @@ -475,11 +478,15 @@ "ActionCard": 124 } }, + "player": 1, + "origin": { + "CivilCard": 124 + }, "items": [ { "player": 1, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "CivilCard": 124 @@ -516,18 +523,13 @@ "player": 1, "Advance": { "advance": "Tactics", - "take_incident_token": false, + "incident_token": "NoChange", "balance": "Gain" }, "origin": { "CivilCard": 124 } } - ], - "log": [ - "Player2: Great Warlord: Pay 1 action, Gain Tactics without taking an event token", - "Player2: Action Card: Play Great Warlord", - "Player2: Tactics: Gain 1 culture token" ] }, { @@ -541,6 +543,10 @@ } } }, + "player": 1, + "origin": { + "Ability": "Move" + }, "combat_stats": { "round": 1, "battleground": "Land", @@ -564,13 +570,27 @@ "result": "AttackerWins" }, "items": [ + { + "player": 1, + "Move": { + "units": { + "infantry": 1 + }, + "start": "D7", + "destination": "C8" + }, + "origin": { + "Ability": "Move" + } + }, { "player": 0, "Units": { "units": { "infantry": 1 }, - "balance": "Loss" + "balance": "Loss", + "position": "C8" }, "origin": { "Ability": "Combat" @@ -578,10 +598,9 @@ } ], "log": [ - "Player2: Move: marched 1 infantry from D7 to C8", "Combat round 1", "Player2: Combat: Attacking with 1 infantry, Roll 5 (cavalry, no bonus) for combined combat value of 7 and gets 1 hits against defending units, Combat modifiers: Player gets +2 combat value for Great Warlord", - "Player1: Combat: Defending with 1 infantry, Roll 2 (cavalry, no bonus) for combined combat value of 2 and gets 0 hits against attacking units, Lost 1 infantry at C8", + "Player1: Combat: Defending with 1 infantry, Roll 2 (cavalry, no bonus) for combined combat value of 2 and gets 0 hits against attacking units", "Player1: Choose Casualties: Remove all defending units", "Attacker wins" ] diff --git a/server/tests/test_games/incidents/pandemics/black_death.outcome.json b/server/tests/test_games/incidents/pandemics/black_death.outcome.json index d7f6a43d..36ff8f0d 100644 --- a/server/tests/test_games/incidents/pandemics/black_death.outcome.json +++ b/server/tests/test_games/incidents/pandemics/black_death.outcome.json @@ -268,11 +268,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Advance" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -284,7 +288,7 @@ "resources": { "gold": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -306,7 +310,9 @@ "player": 0, "Advance": { "advance": "Storage", - "take_incident_token": true, + "incident_token": { + "Take": 0 + }, "balance": "Gain" }, "origin": { @@ -315,8 +321,6 @@ } ], "log": [ - "Player1: Advance: Pay 1 action, Pay 2 gold, Gain Storage and take an event token (triggering an incident)", - "Player1: Storage: Gain 1 mood token", "A new game event has been triggered: Black Death" ] } diff --git a/server/tests/test_games/incidents/pandemics/black_death.outcome1.json b/server/tests/test_games/incidents/pandemics/black_death.outcome1.json index 9c08f259..febf3a38 100644 --- a/server/tests/test_games/incidents/pandemics/black_death.outcome1.json +++ b/server/tests/test_games/incidents/pandemics/black_death.outcome1.json @@ -235,11 +235,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Advance" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -251,7 +255,7 @@ "resources": { "gold": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -273,7 +277,9 @@ "player": 0, "Advance": { "advance": "Storage", - "take_incident_token": true, + "incident_token": { + "Take": 0 + }, "balance": "Gain" }, "origin": { @@ -282,8 +288,6 @@ } ], "log": [ - "Player1: Advance: Pay 1 action, Pay 2 gold, Gain Storage and take an event token (triggering an incident)", - "Player1: Storage: Gain 1 mood token", "A new game event has been triggered: Black Death" ] }, @@ -295,6 +299,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -302,7 +307,8 @@ "units": { "infantry": 1 }, - "balance": "Loss" + "balance": "Loss", + "position": "C2" }, "origin": { "Incident": 50 @@ -310,8 +316,9 @@ } ], "log": [ - "Player1: Black Death: Lost 1 infantry at C2, Gain 1 victory points" - ] + "Player1: Black Death: Gain 1 victory points" + ], + "active_events": 1 } ] } diff --git a/server/tests/test_games/incidents/pandemics/drought.outcome.json b/server/tests/test_games/incidents/pandemics/drought.outcome.json index dda1e1ba..8f6e3b02 100644 --- a/server/tests/test_games/incidents/pandemics/drought.outcome.json +++ b/server/tests/test_games/incidents/pandemics/drought.outcome.json @@ -220,11 +220,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Advance" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -236,7 +240,7 @@ "resources": { "gold": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -258,7 +262,9 @@ "player": 0, "Advance": { "advance": "Storage", - "take_incident_token": true, + "incident_token": { + "Take": 0 + }, "balance": "Gain" }, "origin": { @@ -279,8 +285,6 @@ } ], "log": [ - "Player1: Advance: Pay 1 action, Pay 2 gold, Gain Storage and take an event token (triggering an incident)", - "Player1: Storage: Gain 1 mood token", "A new game event has been triggered: Famine: Draught", "Player1: Famine: Draught: Lost 2 food" ] diff --git a/server/tests/test_games/incidents/pandemics/fire.outcome.json b/server/tests/test_games/incidents/pandemics/fire.outcome.json index 3837771f..4456883f 100644 --- a/server/tests/test_games/incidents/pandemics/fire.outcome.json +++ b/server/tests/test_games/incidents/pandemics/fire.outcome.json @@ -254,11 +254,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Advance" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -270,7 +274,7 @@ "resources": { "gold": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -292,7 +296,9 @@ "player": 0, "Advance": { "advance": "Storage", - "take_incident_token": true, + "incident_token": { + "Take": 0 + }, "balance": "Gain" }, "origin": { @@ -313,10 +319,7 @@ } ], "log": [ - "Player1: Advance: Pay 1 action, Pay 2 gold, Gain Storage and take an event token (triggering an incident)", - "Player1: Storage: Gain 1 mood token", - "A new game event has been triggered: Fire", - "Player1: Gold deposits: Gain 2 gold" + "A new game event has been triggered: Fire" ] } ] diff --git a/server/tests/test_games/incidents/pandemics/fire.outcome1.json b/server/tests/test_games/incidents/pandemics/fire.outcome1.json index 0c7676f7..78b049d5 100644 --- a/server/tests/test_games/incidents/pandemics/fire.outcome1.json +++ b/server/tests/test_games/incidents/pandemics/fire.outcome1.json @@ -226,11 +226,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Advance" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -242,7 +246,7 @@ "resources": { "gold": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -264,7 +268,9 @@ "player": 0, "Advance": { "advance": "Storage", - "take_incident_token": true, + "incident_token": { + "Take": 0 + }, "balance": "Gain" }, "origin": { @@ -285,10 +291,7 @@ } ], "log": [ - "Player1: Advance: Pay 1 action, Pay 2 gold, Gain Storage and take an event token (triggering an incident)", - "Player1: Storage: Gain 1 mood token", - "A new game event has been triggered: Fire", - "Player1: Gold deposits: Gain 2 gold" + "A new game event has been triggered: Fire" ] }, { @@ -299,6 +302,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -338,11 +342,7 @@ } } ], - "log": [ - "Player1: Fire: City C2 became Angry", - "Player2: Fire: City A1 became Neutral", - "Player1: Complete Objectives: Complete Terror Regime using Shipping Routes/Terror Regime" - ] + "active_events": 1 } ] } diff --git a/server/tests/test_games/incidents/pandemics/pandemics.outcome.json b/server/tests/test_games/incidents/pandemics/pandemics.outcome.json index 444cff7e..1e5a46aa 100644 --- a/server/tests/test_games/incidents/pandemics/pandemics.outcome.json +++ b/server/tests/test_games/incidents/pandemics/pandemics.outcome.json @@ -272,11 +272,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Advance" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -288,7 +292,7 @@ "resources": { "gold": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -310,7 +314,9 @@ "player": 0, "Advance": { "advance": "Storage", - "take_incident_token": true, + "incident_token": { + "Take": 0 + }, "balance": "Gain" }, "origin": { @@ -319,8 +325,6 @@ } ], "log": [ - "Player1: Advance: Pay 1 action, Pay 2 gold, Gain Storage and take an event token (triggering an incident)", - "Player1: Storage: Gain 1 mood token", "A new game event has been triggered: Pandemics", "Player1: Pandemics: Base effect: Barbarians move, Barbarians cannot move - will try to spawn a new city instead, Barbarians cannot spawn a new city, Lose a total of 2 units, cards, and resources" ] diff --git a/server/tests/test_games/incidents/pandemics/pandemics.outcome1.json b/server/tests/test_games/incidents/pandemics/pandemics.outcome1.json index ff317577..eff2f265 100644 --- a/server/tests/test_games/incidents/pandemics/pandemics.outcome1.json +++ b/server/tests/test_games/incidents/pandemics/pandemics.outcome1.json @@ -263,11 +263,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Advance" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -279,7 +283,7 @@ "resources": { "gold": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -301,7 +305,9 @@ "player": 0, "Advance": { "advance": "Storage", - "take_incident_token": true, + "incident_token": { + "Take": 0 + }, "balance": "Gain" }, "origin": { @@ -310,8 +316,6 @@ } ], "log": [ - "Player1: Advance: Pay 1 action, Pay 2 gold, Gain Storage and take an event token (triggering an incident)", - "Player1: Storage: Gain 1 mood token", "A new game event has been triggered: Pandemics", "Player1: Pandemics: Base effect: Barbarians move, Barbarians cannot move - will try to spawn a new city instead, Barbarians cannot spawn a new city, Lose a total of 2 units, cards, and resources" ] @@ -324,6 +328,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -331,16 +336,15 @@ "units": { "infantry": 1 }, - "balance": "Loss" + "balance": "Loss", + "position": "C2" }, "origin": { "Incident": 49 } } ], - "log": [ - "Player1: Pandemics: Lost 1 infantry at C2" - ] + "active_events": 1 } ] } diff --git a/server/tests/test_games/incidents/pandemics/pandemics.outcome2.json b/server/tests/test_games/incidents/pandemics/pandemics.outcome2.json index 1ba483a1..37413374 100644 --- a/server/tests/test_games/incidents/pandemics/pandemics.outcome2.json +++ b/server/tests/test_games/incidents/pandemics/pandemics.outcome2.json @@ -332,11 +332,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Advance" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -348,7 +352,7 @@ "resources": { "gold": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -370,7 +374,9 @@ "player": 0, "Advance": { "advance": "Storage", - "take_incident_token": true, + "incident_token": { + "Take": 0 + }, "balance": "Gain" }, "origin": { @@ -379,8 +385,6 @@ } ], "log": [ - "Player1: Advance: Pay 1 action, Pay 2 gold, Gain Storage and take an event token (triggering an incident)", - "Player1: Storage: Gain 1 mood token", "A new game event has been triggered: Pandemics", "Player1: Pandemics: Base effect: Barbarians move, Barbarians cannot move - will try to spawn a new city instead, Barbarians cannot spawn a new city, Lose a total of 2 units, cards, and resources" ] @@ -393,6 +397,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -400,16 +405,15 @@ "units": { "infantry": 1 }, - "balance": "Loss" + "balance": "Loss", + "position": "C2" }, "origin": { "Incident": 49 } } ], - "log": [ - "Player1: Pandemics: Lost 1 infantry at C2" - ] + "active_events": 1 }, { "action": { @@ -421,6 +425,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -439,9 +444,9 @@ } ], "log": [ - "Player1: Pandemics: Discard Quick Advance/Peltasts", "Player2: Pandemics: Lose a total of 1 units, cards, and resources" - ] + ], + "active_events": 1 } ] } diff --git a/server/tests/test_games/incidents/pandemics/pandemics.outcome3.json b/server/tests/test_games/incidents/pandemics/pandemics.outcome3.json index c548063c..05768e2d 100644 --- a/server/tests/test_games/incidents/pandemics/pandemics.outcome3.json +++ b/server/tests/test_games/incidents/pandemics/pandemics.outcome3.json @@ -226,11 +226,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Advance" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -242,7 +246,7 @@ "resources": { "gold": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -264,7 +268,9 @@ "player": 0, "Advance": { "advance": "Storage", - "take_incident_token": true, + "incident_token": { + "Take": 0 + }, "balance": "Gain" }, "origin": { @@ -273,8 +279,6 @@ } ], "log": [ - "Player1: Advance: Pay 1 action, Pay 2 gold, Gain Storage and take an event token (triggering an incident)", - "Player1: Storage: Gain 1 mood token", "A new game event has been triggered: Pandemics", "Player1: Pandemics: Base effect: Barbarians move, Barbarians cannot move - will try to spawn a new city instead, Barbarians cannot spawn a new city, Lose a total of 2 units, cards, and resources" ] @@ -287,6 +291,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -294,16 +299,15 @@ "units": { "infantry": 1 }, - "balance": "Loss" + "balance": "Loss", + "position": "C2" }, "origin": { "Incident": 49 } } ], - "log": [ - "Player1: Pandemics: Lost 1 infantry at C2" - ] + "active_events": 1 }, { "action": { @@ -315,6 +319,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -333,9 +338,9 @@ } ], "log": [ - "Player1: Pandemics: Discard Quick Advance/Peltasts", "Player2: Pandemics: Lose a total of 1 units, cards, and resources" - ] + ], + "active_events": 1 }, { "action": { @@ -347,6 +352,7 @@ ] } }, + "player": 1, "items": [ { "player": 1, @@ -354,7 +360,7 @@ "resources": { "culture_tokens": 1 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Incident": 49 @@ -362,8 +368,9 @@ } ], "log": [ - "Player2: Pandemics: Pay 1 culture token, Lose 1 culture token" - ] + "Player2: Pandemics: Lose 1 culture token" + ], + "active_events": 1 } ] } diff --git a/server/tests/test_games/incidents/pandemics/vermin.outcome.json b/server/tests/test_games/incidents/pandemics/vermin.outcome.json index cd2c9d25..1e9dcdc2 100644 --- a/server/tests/test_games/incidents/pandemics/vermin.outcome.json +++ b/server/tests/test_games/incidents/pandemics/vermin.outcome.json @@ -219,11 +219,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Advance" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -235,7 +239,7 @@ "resources": { "gold": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -257,7 +261,9 @@ "player": 0, "Advance": { "advance": "Storage", - "take_incident_token": true, + "incident_token": { + "Take": 0 + }, "balance": "Gain" }, "origin": { @@ -298,11 +304,9 @@ } ], "log": [ - "Player1: Advance: Pay 1 action, Pay 2 gold, Gain Storage and take an event token (triggering an incident)", - "Player1: Storage: Gain 1 mood token", "A new game event has been triggered: Famine: Vermin", "Player1: Famine: Vermin: Lost 1 food", - "Player2: Famine: Vermin: Lost 0 food, City A1 became Angry" + "Player2: Famine: Vermin: Lost 0 food" ] } ] diff --git a/server/tests/test_games/incidents/pirates_spawn.outcome.json b/server/tests/test_games/incidents/pirates_spawn.outcome.json index 9eb6834b..d66a7291 100644 --- a/server/tests/test_games/incidents/pirates_spawn.outcome.json +++ b/server/tests/test_games/incidents/pirates_spawn.outcome.json @@ -249,6 +249,7 @@ "SelectAdvance": "Storage" } }, + "player": 0, "items": [ { "player": 0, @@ -266,7 +267,9 @@ "player": 0, "Advance": { "advance": "Storage", - "take_incident_token": true, + "incident_token": { + "Take": 0 + }, "balance": "Gain" }, "origin": { @@ -275,11 +278,10 @@ } ], "log": [ - "Player1: Storage: Gain 1 mood token", - "Player1: Free Advance: Gain Storage and take an event token (triggering an incident)", "A new game event has been triggered: A successful year", "Player1: A successful year: Base effect: Pirates spawn" - ] + ], + "active_events": 1 } ] } diff --git a/server/tests/test_games/incidents/pirates_spawn.outcome1.json b/server/tests/test_games/incidents/pirates_spawn.outcome1.json index a4bec239..7f2b1dbb 100644 --- a/server/tests/test_games/incidents/pirates_spawn.outcome1.json +++ b/server/tests/test_games/incidents/pirates_spawn.outcome1.json @@ -244,6 +244,7 @@ "SelectAdvance": "Storage" } }, + "player": 0, "items": [ { "player": 0, @@ -261,7 +262,9 @@ "player": 0, "Advance": { "advance": "Storage", - "take_incident_token": true, + "incident_token": { + "Take": 0 + }, "balance": "Gain" }, "origin": { @@ -270,11 +273,10 @@ } ], "log": [ - "Player1: Storage: Gain 1 mood token", - "Player1: Free Advance: Gain Storage and take an event token (triggering an incident)", "A new game event has been triggered: A successful year", "Player1: A successful year: Base effect: Pirates spawn" - ] + ], + "active_events": 1 }, { "action": { @@ -284,9 +286,11 @@ ] } }, + "player": 0, "log": [ "Player1: A successful year: Removed a Pirate Ships at D1" - ] + ], + "active_events": 2 } ] } diff --git a/server/tests/test_games/incidents/pirates_spawn.outcome2.json b/server/tests/test_games/incidents/pirates_spawn.outcome2.json index 026d4f9f..4f77c44a 100644 --- a/server/tests/test_games/incidents/pirates_spawn.outcome2.json +++ b/server/tests/test_games/incidents/pirates_spawn.outcome2.json @@ -249,6 +249,7 @@ "SelectAdvance": "Storage" } }, + "player": 0, "items": [ { "player": 0, @@ -266,7 +267,9 @@ "player": 0, "Advance": { "advance": "Storage", - "take_incident_token": true, + "incident_token": { + "Take": 0 + }, "balance": "Gain" }, "origin": { @@ -275,11 +278,10 @@ } ], "log": [ - "Player1: Storage: Gain 1 mood token", - "Player1: Free Advance: Gain Storage and take an event token (triggering an incident)", "A new game event has been triggered: A successful year", "Player1: A successful year: Base effect: Pirates spawn" - ] + ], + "active_events": 1 }, { "action": { @@ -289,9 +291,11 @@ ] } }, + "player": 0, "log": [ "Player1: A successful year: Removed a Pirate Ships at D1" - ] + ], + "active_events": 2 }, { "action": { @@ -301,6 +305,7 @@ ] } }, + "player": 0, "items": [ { "player": 2, @@ -308,16 +313,15 @@ "units": { "ships": 1 }, - "balance": "Gain" + "balance": "Gain", + "position": "A2" }, "origin": { "Incident": 54 } } ], - "log": [ - "Pirates: A successful year: Gain 1 ship at A2" - ] + "active_events": 2 } ] } diff --git a/server/tests/test_games/incidents/pirates_spawn.outcome3.json b/server/tests/test_games/incidents/pirates_spawn.outcome3.json index af5e02f6..5495a4a7 100644 --- a/server/tests/test_games/incidents/pirates_spawn.outcome3.json +++ b/server/tests/test_games/incidents/pirates_spawn.outcome3.json @@ -323,6 +323,7 @@ "SelectAdvance": "Storage" } }, + "player": 0, "items": [ { "player": 0, @@ -340,7 +341,9 @@ "player": 0, "Advance": { "advance": "Storage", - "take_incident_token": true, + "incident_token": { + "Take": 0 + }, "balance": "Gain" }, "origin": { @@ -349,11 +352,10 @@ } ], "log": [ - "Player1: Storage: Gain 1 mood token", - "Player1: Free Advance: Gain Storage and take an event token (triggering an incident)", "A new game event has been triggered: A successful year", "Player1: A successful year: Base effect: Pirates spawn" - ] + ], + "active_events": 1 }, { "action": { @@ -363,9 +365,11 @@ ] } }, + "player": 0, "log": [ "Player1: A successful year: Removed a Pirate Ships at D1" - ] + ], + "active_events": 2 }, { "action": { @@ -375,6 +379,7 @@ ] } }, + "player": 0, "items": [ { "player": 2, @@ -382,16 +387,15 @@ "units": { "ships": 1 }, - "balance": "Gain" + "balance": "Gain", + "position": "A2" }, "origin": { "Incident": 54 } } ], - "log": [ - "Pirates: A successful year: Gain 1 ship at A2" - ] + "active_events": 2 }, { "action": { @@ -401,6 +405,7 @@ ] } }, + "player": 0, "items": [ { "player": 2, @@ -408,7 +413,8 @@ "units": { "ships": 1 }, - "balance": "Gain" + "balance": "Gain", + "position": "D2" }, "origin": { "Incident": 54 @@ -416,9 +422,9 @@ } ], "log": [ - "Pirates: A successful year: Gain 1 ship at D2", "Player1: A successful year: Must pay 1 resource or token to bribe the pirates" - ] + ], + "active_events": 2 } ] } diff --git a/server/tests/test_games/incidents/pirates_spawn.outcome4.json b/server/tests/test_games/incidents/pirates_spawn.outcome4.json index 701b1c22..63419800 100644 --- a/server/tests/test_games/incidents/pirates_spawn.outcome4.json +++ b/server/tests/test_games/incidents/pirates_spawn.outcome4.json @@ -253,6 +253,7 @@ "SelectAdvance": "Storage" } }, + "player": 0, "items": [ { "player": 0, @@ -270,7 +271,9 @@ "player": 0, "Advance": { "advance": "Storage", - "take_incident_token": true, + "incident_token": { + "Take": 0 + }, "balance": "Gain" }, "origin": { @@ -279,11 +282,10 @@ } ], "log": [ - "Player1: Storage: Gain 1 mood token", - "Player1: Free Advance: Gain Storage and take an event token (triggering an incident)", "A new game event has been triggered: A successful year", "Player1: A successful year: Base effect: Pirates spawn" - ] + ], + "active_events": 1 }, { "action": { @@ -293,9 +295,11 @@ ] } }, + "player": 0, "log": [ "Player1: A successful year: Removed a Pirate Ships at D1" - ] + ], + "active_events": 2 }, { "action": { @@ -305,6 +309,7 @@ ] } }, + "player": 0, "items": [ { "player": 2, @@ -312,16 +317,15 @@ "units": { "ships": 1 }, - "balance": "Gain" + "balance": "Gain", + "position": "A2" }, "origin": { "Incident": 54 } } ], - "log": [ - "Pirates: A successful year: Gain 1 ship at A2" - ] + "active_events": 2 }, { "action": { @@ -331,6 +335,7 @@ ] } }, + "player": 0, "items": [ { "player": 2, @@ -338,7 +343,8 @@ "units": { "ships": 1 }, - "balance": "Gain" + "balance": "Gain", + "position": "D2" }, "origin": { "Incident": 54 @@ -346,9 +352,9 @@ } ], "log": [ - "Pirates: A successful year: Gain 1 ship at D2", "Player1: A successful year: Must pay 1 resource or token to bribe the pirates" - ] + ], + "active_events": 2 }, { "action": { @@ -360,6 +366,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -367,7 +374,7 @@ "resources": { "ore": 1 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Incident": 54 @@ -397,9 +404,10 @@ } ], "log": [ - "Player1: A successful year: Pay 1 ore, Pirates took 1 ore", - "Player2: A successful year: Must reduce Mood in a city adjacent to pirates, City C1 became Angry, Gain 1 food" - ] + "Player1: A successful year: Pirates took 1 ore", + "Player2: A successful year: Must reduce Mood in a city adjacent to pirates" + ], + "active_events": 2 } ] } diff --git a/server/tests/test_games/incidents/trade/era_of_stability.outcome.json b/server/tests/test_games/incidents/trade/era_of_stability.outcome.json index 80dccc68..a9e203ce 100644 --- a/server/tests/test_games/incidents/trade/era_of_stability.outcome.json +++ b/server/tests/test_games/incidents/trade/era_of_stability.outcome.json @@ -253,11 +253,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Advance" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -269,7 +273,7 @@ "resources": { "gold": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -291,7 +295,9 @@ "player": 0, "Advance": { "advance": "Storage", - "take_incident_token": true, + "incident_token": { + "Take": 0 + }, "balance": "Gain" }, "origin": { @@ -300,8 +306,6 @@ } ], "log": [ - "Player1: Advance: Pay 1 action, Pay 2 gold, Gain Storage and take an event token (triggering an incident)", - "Player1: Storage: Gain 1 mood token", "A new game event has been triggered: Era of Stability", "Player1: Era of Stability: Exhausted the land in position B1" ] diff --git a/server/tests/test_games/incidents/trade/era_of_stability.outcome1.json b/server/tests/test_games/incidents/trade/era_of_stability.outcome1.json index 99160dab..b0e8a890 100644 --- a/server/tests/test_games/incidents/trade/era_of_stability.outcome1.json +++ b/server/tests/test_games/incidents/trade/era_of_stability.outcome1.json @@ -256,11 +256,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Advance" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -272,7 +276,7 @@ "resources": { "gold": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -294,7 +298,9 @@ "player": 0, "Advance": { "advance": "Storage", - "take_incident_token": true, + "incident_token": { + "Take": 0 + }, "balance": "Gain" }, "origin": { @@ -303,8 +309,6 @@ } ], "log": [ - "Player1: Advance: Pay 1 action, Pay 2 gold, Gain Storage and take an event token (triggering an incident)", - "Player1: Storage: Gain 1 mood token", "A new game event has been triggered: Era of Stability", "Player1: Era of Stability: Exhausted the land in position B1" ] @@ -317,6 +321,7 @@ } } }, + "player": 0, "items": [ { "player": 0, @@ -331,9 +336,7 @@ } } ], - "log": [ - "Player1: Era of Stability: Gain 1 culture token" - ] + "active_events": 1 } ] } diff --git a/server/tests/test_games/incidents/trade/era_of_stability.outcome2.json b/server/tests/test_games/incidents/trade/era_of_stability.outcome2.json index 54f6ad73..e008fab7 100644 --- a/server/tests/test_games/incidents/trade/era_of_stability.outcome2.json +++ b/server/tests/test_games/incidents/trade/era_of_stability.outcome2.json @@ -209,11 +209,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Advance" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -225,7 +229,7 @@ "resources": { "gold": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -247,7 +251,9 @@ "player": 0, "Advance": { "advance": "Storage", - "take_incident_token": true, + "incident_token": { + "Take": 0 + }, "balance": "Gain" }, "origin": { @@ -256,8 +262,6 @@ } ], "log": [ - "Player1: Advance: Pay 1 action, Pay 2 gold, Gain Storage and take an event token (triggering an incident)", - "Player1: Storage: Gain 1 mood token", "A new game event has been triggered: Era of Stability", "Player1: Era of Stability: Exhausted the land in position B1" ] @@ -270,6 +274,7 @@ } } }, + "player": 0, "items": [ { "player": 0, @@ -284,9 +289,7 @@ } } ], - "log": [ - "Player1: Era of Stability: Gain 1 culture token" - ] + "active_events": 1 }, { "action": { @@ -296,6 +299,7 @@ } } }, + "player": 1, "items": [ { "player": 1, @@ -310,9 +314,7 @@ } } ], - "log": [ - "Player2: Era of Stability: Gain 1 culture token" - ] + "active_events": 1 } ] } diff --git a/server/tests/test_games/incidents/trade/flourishing_trade.outcome.json b/server/tests/test_games/incidents/trade/flourishing_trade.outcome.json index 12021178..f01e05de 100644 --- a/server/tests/test_games/incidents/trade/flourishing_trade.outcome.json +++ b/server/tests/test_games/incidents/trade/flourishing_trade.outcome.json @@ -207,11 +207,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Advance" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -223,7 +227,7 @@ "resources": { "gold": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -245,7 +249,9 @@ "player": 0, "Advance": { "advance": "Storage", - "take_incident_token": true, + "incident_token": { + "Take": 0 + }, "balance": "Gain" }, "origin": { @@ -275,15 +281,23 @@ "origin": { "Incident": 46 } + }, + { + "player": 1, + "Resources": { + "resources": { + "gold": 1 + }, + "balance": "Loss" + }, + "origin": { + "Ability": "Waste" + } } ], "log": [ - "Player1: Advance: Pay 1 action, Pay 2 gold, Gain Storage and take an event token (triggering an incident)", - "Player1: Storage: Gain 1 mood token", "A new game event has been triggered: Flourishing Trade", - "Player1: Flourishing Trade: Base effect: Pirates spawn, No valid positions for Pirate Ship, Gain 1 gold", - "Player2: Flourishing Trade: Gain 1 gold", - "Player2: Waste: Could not store 1 gold" + "Player1: Flourishing Trade: Base effect: Pirates spawn, No valid positions for Pirate Ship" ] } ] diff --git a/server/tests/test_games/incidents/trade/reformation.outcome.json b/server/tests/test_games/incidents/trade/reformation.outcome.json index 1d386fc5..6901d2f1 100644 --- a/server/tests/test_games/incidents/trade/reformation.outcome.json +++ b/server/tests/test_games/incidents/trade/reformation.outcome.json @@ -290,11 +290,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Advance" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -306,7 +310,7 @@ "resources": { "gold": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -328,7 +332,9 @@ "player": 0, "Advance": { "advance": "Storage", - "take_incident_token": true, + "incident_token": { + "Take": 0 + }, "balance": "Gain" }, "origin": { @@ -337,8 +343,6 @@ } ], "log": [ - "Player1: Advance: Pay 1 action, Pay 2 gold, Gain Storage and take an event token (triggering an incident)", - "Player1: Storage: Gain 1 mood token", "A new game event has been triggered: Reformation", "Player1: Reformation: Base effect: Barbarians spawn, Barbarians cannot spawn a new city, Barbarians cannot reinforce, Selected Player3 to execute the event, Pass the event to Player3" ] diff --git a/server/tests/test_games/incidents/trade/reformation.outcome1.json b/server/tests/test_games/incidents/trade/reformation.outcome1.json index 8ba32f42..f648830f 100644 --- a/server/tests/test_games/incidents/trade/reformation.outcome1.json +++ b/server/tests/test_games/incidents/trade/reformation.outcome1.json @@ -260,11 +260,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Advance" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -276,7 +280,7 @@ "resources": { "gold": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -298,7 +302,9 @@ "player": 0, "Advance": { "advance": "Storage", - "take_incident_token": true, + "incident_token": { + "Take": 0 + }, "balance": "Gain" }, "origin": { @@ -307,8 +313,6 @@ } ], "log": [ - "Player1: Advance: Pay 1 action, Pay 2 gold, Gain Storage and take an event token (triggering an incident)", - "Player1: Storage: Gain 1 mood token", "A new game event has been triggered: Reformation", "Player1: Reformation: Base effect: Barbarians spawn, Barbarians cannot spawn a new city, Barbarians cannot reinforce, Selected Player3 to execute the event, Pass the event to Player3" ] @@ -319,6 +323,7 @@ "SelectPlayer": 1 } }, + "player": 2, "items": [ { "player": 2, @@ -327,7 +332,8 @@ "Building": "Temple" }, "balance": "Loss", - "position": "A1" + "position": "A1", + "port_position": null }, "origin": { "Incident": 48 @@ -340,17 +346,15 @@ "Building": "Temple" }, "balance": "Gain", - "position": "A1" + "position": "A1", + "port_position": null }, "origin": { "Incident": 48 } } ], - "log": [ - "Player3: Reformation: Lose Temple at A1", - "Player2: Reformation: Gain Temple at A1" - ] + "active_events": 1 } ] } diff --git a/server/tests/test_games/incidents/trade/scientific_trade.outcome.json b/server/tests/test_games/incidents/trade/scientific_trade.outcome.json index 338dbe40..64b0d4ea 100644 --- a/server/tests/test_games/incidents/trade/scientific_trade.outcome.json +++ b/server/tests/test_games/incidents/trade/scientific_trade.outcome.json @@ -207,11 +207,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Advance" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -223,7 +227,7 @@ "resources": { "gold": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -245,7 +249,9 @@ "player": 0, "Advance": { "advance": "Storage", - "take_incident_token": true, + "incident_token": { + "Take": 0 + }, "balance": "Gain" }, "origin": { @@ -275,15 +281,23 @@ "origin": { "Incident": 45 } + }, + { + "player": 1, + "Resources": { + "resources": { + "ideas": 1 + }, + "balance": "Loss" + }, + "origin": { + "Ability": "Waste" + } } ], "log": [ - "Player1: Advance: Pay 1 action, Pay 2 gold, Gain Storage and take an event token (triggering an incident)", - "Player1: Storage: Gain 1 mood token", "A new game event has been triggered: Scientific Trade", - "Player1: Scientific Trade: Base effect: Pirates spawn, No valid positions for Pirate Ship, Gain 2 ideas", - "Player2: Scientific Trade: Gain 1 idea", - "Player2: Waste: Could not store 1 idea" + "Player1: Scientific Trade: Base effect: Pirates spawn, No valid positions for Pirate Ship" ] } ] diff --git a/server/tests/test_games/incidents/trojan/anarchy.outcome.json b/server/tests/test_games/incidents/trojan/anarchy.outcome.json index 5036ebb4..9052dd83 100644 --- a/server/tests/test_games/incidents/trojan/anarchy.outcome.json +++ b/server/tests/test_games/incidents/trojan/anarchy.outcome.json @@ -217,11 +217,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Advance" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -233,7 +237,7 @@ "resources": { "gold": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -255,7 +259,9 @@ "player": 0, "Advance": { "advance": "Storage", - "take_incident_token": true, + "incident_token": { + "Take": 0 + }, "balance": "Gain" }, "origin": { @@ -266,7 +272,7 @@ "player": 0, "Advance": { "advance": "Voting", - "take_incident_token": false, + "incident_token": "NoChange", "balance": "Loss" }, "origin": { @@ -275,8 +281,6 @@ } ], "log": [ - "Player1: Advance: Pay 1 action, Pay 2 gold, Gain Storage and take an event token (triggering an incident)", - "Player1: Storage: Gain 1 mood token", "A new game event has been triggered: Anarchy", "Player1: Anarchy: Lose 1 government advances due to Anarchy - adding 1 victory points" ] diff --git a/server/tests/test_games/incidents/trojan/anarchy.outcome1.json b/server/tests/test_games/incidents/trojan/anarchy.outcome1.json index 95123262..01744ebf 100644 --- a/server/tests/test_games/incidents/trojan/anarchy.outcome1.json +++ b/server/tests/test_games/incidents/trojan/anarchy.outcome1.json @@ -209,11 +209,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Advance" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -225,7 +229,7 @@ "resources": { "gold": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -247,7 +251,9 @@ "player": 0, "Advance": { "advance": "Storage", - "take_incident_token": true, + "incident_token": { + "Take": 0 + }, "balance": "Gain" }, "origin": { @@ -258,7 +264,7 @@ "player": 0, "Advance": { "advance": "Voting", - "take_incident_token": false, + "incident_token": "NoChange", "balance": "Loss" }, "origin": { @@ -267,8 +273,6 @@ } ], "log": [ - "Player1: Advance: Pay 1 action, Pay 2 gold, Gain Storage and take an event token (triggering an incident)", - "Player1: Storage: Gain 1 mood token", "A new game event has been triggered: Anarchy", "Player1: Anarchy: Lose 1 government advances due to Anarchy - adding 1 victory points" ] @@ -284,11 +288,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Advance" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -300,7 +308,7 @@ "resources": { "gold": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -310,19 +318,32 @@ "player": 0, "Advance": { "advance": "Dogma", - "take_incident_token": true, + "incident_token": { + "Take": 2 + }, "balance": "Gain" }, "origin": { "Ability": "Advance" } + }, + { + "player": 0, + "Resources": { + "resources": { + "ideas": 1 + }, + "balance": "Loss" + }, + "origin": { + "Ability": "Waste" + } } ], "log": [ - "Player1: Advance: Pay 1 action, Pay 2 gold, Unlock Provinces, Gain Dogma and take an event token (2 left)", "Player1: Dogma: Ideas limit reduced to 2", - "Player1: Anarchy: Gain a government advance, taking a game event token instead of triggering a game event (and losing 1 victory point)", - "Player1: Waste: Could not store 1 idea" + "Player1: Advance: Unlock Provinces", + "Player1: Anarchy: Gain a government advance, taking a game event token instead of triggering a game event (and losing 1 victory point)" ] } ] diff --git a/server/tests/test_games/incidents/trojan/guillotine.outcome2.json b/server/tests/test_games/incidents/trojan/guillotine.outcome2.json index d461c4fa..87e76648 100644 --- a/server/tests/test_games/incidents/trojan/guillotine.outcome2.json +++ b/server/tests/test_games/incidents/trojan/guillotine.outcome2.json @@ -238,11 +238,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Advance" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -254,7 +258,7 @@ "resources": { "gold": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -276,7 +280,9 @@ "player": 0, "Advance": { "advance": "Storage", - "take_incident_token": true, + "incident_token": { + "Take": 0 + }, "balance": "Gain" }, "origin": { @@ -289,7 +295,8 @@ "units": { "leader": "Caesar" }, - "balance": "Loss" + "balance": "Loss", + "position": "A1" }, "origin": { "Incident": 43 @@ -297,10 +304,8 @@ } ], "log": [ - "Player1: Advance: Pay 1 action, Pay 2 gold, Gain Storage and take an event token (triggering an incident)", - "Player1: Storage: Gain 1 mood token", "A new game event has been triggered: Guillotine", - "Player1: Guillotine: Base effect: Barbarians spawn, Barbarians cannot spawn a new city, Barbarians cannot reinforce, Lost Gaius Julius Caesar at A1" + "Player1: Guillotine: Base effect: Barbarians spawn, Barbarians cannot spawn a new city, Barbarians cannot reinforce" ] }, { @@ -309,9 +314,11 @@ "Bool": true } }, + "player": 0, "log": [ "Player1: Guillotine: Chose to select a new leader, Chose a new leader in A1" - ] + ], + "active_events": 1 }, { "action": { @@ -321,6 +328,7 @@ } } }, + "player": 0, "items": [ { "player": 0, @@ -328,7 +336,8 @@ "units": { "leader": "Augustus" }, - "balance": "Gain" + "balance": "Gain", + "position": "A1" }, "origin": { "Incident": 43 @@ -336,8 +345,9 @@ } ], "log": [ - "Player1: Guillotine: Gain Augustus at A1, Lose leaders due to the Guillotine: Sulla" - ] + "Player1: Guillotine: Lose leaders due to the Guillotine: Sulla" + ], + "active_events": 1 } ] } diff --git a/server/tests/test_games/incidents/trojan/solar_eclipse.outcome2.json b/server/tests/test_games/incidents/trojan/solar_eclipse.outcome2.json index e8f571ed..3ef56f0f 100644 --- a/server/tests/test_games/incidents/trojan/solar_eclipse.outcome2.json +++ b/server/tests/test_games/incidents/trojan/solar_eclipse.outcome2.json @@ -238,11 +238,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Advance" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -254,7 +258,7 @@ "resources": { "gold": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -276,7 +280,9 @@ "player": 0, "Advance": { "advance": "Storage", - "take_incident_token": true, + "incident_token": { + "Take": 0 + }, "balance": "Gain" }, "origin": { @@ -285,8 +291,6 @@ } ], "log": [ - "Player1: Advance: Pay 1 action, Pay 2 gold, Gain Storage and take an event token (triggering an incident)", - "Player1: Storage: Gain 1 mood token", "A new game event has been triggered: Solar Eclipse", "Player1: Solar Eclipse: Base effect: Pirates spawn, No valid positions for Pirate Ship" ] @@ -307,11 +311,31 @@ } } }, + "player": 0, + "origin": { + "Ability": "Move" + }, "items": [ + { + "player": 0, + "Move": { + "units": { + "settlers": 2, + "infantry": 2, + "cavalry": 1, + "elephants": 1 + }, + "start": "C2", + "destination": "C1" + }, + "origin": { + "Ability": "Move" + } + }, { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Move" @@ -319,7 +343,6 @@ } ], "log": [ - "Player1: Move: marched 2 settlers, 2 infantry, 1 cavalry and 1 elephant from C2 to C1, Pay 1 action", "Combat round 1", "Player1: Combat: Attacking with 2 settlers, 2 infantry, 1 cavalry and 1 elephant", "Player2: Combat: Defending with 2 infantry" @@ -335,6 +358,7 @@ ] } }, + "player": 1, "combat_stats": { "round": 1, "battleground": "City", @@ -391,7 +415,8 @@ "Structure": { "structure": "CityCenter", "balance": "Loss", - "position": "C1" + "position": "C1", + "port_position": null }, "origin": { "Ability": "Combat" @@ -402,7 +427,8 @@ "Structure": { "structure": "CityCenter", "balance": "Gain", - "position": "C1" + "position": "C1", + "port_position": null }, "origin": { "Ability": "Combat" @@ -415,7 +441,8 @@ "Building": "Temple" }, "balance": "Loss", - "position": "C1" + "position": "C1", + "port_position": null }, "origin": { "Ability": "Combat" @@ -428,7 +455,8 @@ "Building": "Temple" }, "balance": "Gain", - "position": "C1" + "position": "C1", + "port_position": null }, "origin": { "Ability": "Combat" @@ -436,13 +464,12 @@ } ], "log": [ - "Player2: Tactics: Play an action card face down, Reveal Tactics Card Tactical Retreat", + "Player2: Tactics: Reveal Tactics Card Tactical Retreat", "Player2: Tactical Retreat: Player2 withdraws to B1", "Player1: Solar Eclipse: Gain 1 victory point for the Solar Eclipse", - "Attacker wins", - "Player1: Combat: Gain 1 gold, Gain city C1, Gain Temple at C1", - "Player2: Combat: Lose city C1, Lose Temple at C1" - ] + "Attacker wins" + ], + "active_events": 1 } ] } diff --git a/server/tests/test_games/incidents/trojan/trojan_horse.outcome2.json b/server/tests/test_games/incidents/trojan/trojan_horse.outcome2.json index f57f13d4..a309c52b 100644 --- a/server/tests/test_games/incidents/trojan/trojan_horse.outcome2.json +++ b/server/tests/test_games/incidents/trojan/trojan_horse.outcome2.json @@ -255,11 +255,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Advance" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -271,7 +275,7 @@ "resources": { "gold": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -293,7 +297,9 @@ "player": 0, "Advance": { "advance": "Storage", - "take_incident_token": true, + "incident_token": { + "Take": 0 + }, "balance": "Gain" }, "origin": { @@ -302,8 +308,6 @@ } ], "log": [ - "Player1: Advance: Pay 1 action, Pay 2 gold, Gain Storage and take an event token (triggering an incident)", - "Player1: Storage: Gain 1 mood token", "A new game event has been triggered: Trojan Horse", "Player1: Trojan Horse: Base effect: Barbarians move, Barbarians cannot move - will try to spawn a new city instead, Barbarians cannot spawn a new city" ] @@ -324,11 +328,31 @@ } } }, + "player": 0, + "origin": { + "Ability": "Move" + }, "items": [ + { + "player": 0, + "Move": { + "units": { + "settlers": 2, + "infantry": 2, + "cavalry": 1, + "elephants": 1 + }, + "start": "C2", + "destination": "C1" + }, + "origin": { + "Ability": "Move" + } + }, { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Move" @@ -336,7 +360,6 @@ } ], "log": [ - "Player1: Move: marched 2 settlers, 2 infantry, 1 cavalry and 1 elephant from C2 to C1, Pay 1 action", "Combat round 1", "Player1: Combat: Attacking with 2 settlers, 2 infantry, 1 cavalry and 1 elephant", "Player2: Combat: Defending with 2 infantry" @@ -353,6 +376,7 @@ ] } }, + "player": 0, "combat_stats": { "round": 1, "battleground": "City", @@ -387,7 +411,7 @@ "gold": 1, "culture_tokens": 1 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Trojan Horse" @@ -399,7 +423,8 @@ "units": { "infantry": 2 }, - "balance": "Loss" + "balance": "Loss", + "position": "C1" }, "origin": { "Ability": "Combat" @@ -422,7 +447,8 @@ "Structure": { "structure": "CityCenter", "balance": "Loss", - "position": "C1" + "position": "C1", + "port_position": null }, "origin": { "Ability": "Combat" @@ -433,7 +459,8 @@ "Structure": { "structure": "CityCenter", "balance": "Gain", - "position": "C1" + "position": "C1", + "port_position": null }, "origin": { "Ability": "Combat" @@ -446,7 +473,8 @@ "Building": "Temple" }, "balance": "Loss", - "position": "C1" + "position": "C1", + "port_position": null }, "origin": { "Ability": "Combat" @@ -459,7 +487,8 @@ "Building": "Temple" }, "balance": "Gain", - "position": "C1" + "position": "C1", + "port_position": null }, "origin": { "Ability": "Combat" @@ -471,7 +500,8 @@ "units": { "infantry": 1 }, - "balance": "Gain" + "balance": "Gain", + "position": "C2" }, "origin": { "Advance": "Fanaticism" @@ -483,7 +513,8 @@ "units": { "settlers": 1 }, - "balance": "Gain" + "balance": "Gain", + "position": "C2" }, "origin": { "Ability": "Place Settler" @@ -491,14 +522,13 @@ } ], "log": [ - "Player1: Trojan Horse: Pay 1 gold and 1 culture token, Activated the Trojan Horse and gained 1 victory point", - "Player1: Combat: Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value), 6 (infantry, no bonus), 6 (infantry, no bonus) for combined combat value of 26 and gets 2 hits against defending units, Gain 1 gold, Gain city C1, Gain Temple at C1", - "Player2: Combat: Roll 1 (leader, no bonus), 1 (leader, no bonus) for combined combat value of 4 and gets 0 hits against attacking units, Combat modifiers: Player gets +2 combat value for Fanaticism Advance, Trojan Horse denied playing Tactics Cards, Lost 2 infantry at C1, Lose city C1, Lose Temple at C1", + "Player1: Trojan Horse: Activated the Trojan Horse and gained 1 victory point", + "Player1: Combat: Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value), 6 (infantry, no bonus), 6 (infantry, no bonus) for combined combat value of 26 and gets 2 hits against defending units", + "Player2: Combat: Roll 1 (leader, no bonus), 1 (leader, no bonus) for combined combat value of 4 and gets 0 hits against attacking units, Combat modifiers: Player gets +2 combat value for Fanaticism Advance, Trojan Horse denied playing Tactics Cards", "Player2: Choose Casualties: Remove all defending units", - "Attacker wins", - "Player2: Fanaticism: Gain 1 infantry at C2", - "Player2: Place Settler: Gain 1 settler at C2" - ] + "Attacker wins" + ], + "active_events": 1 } ] } diff --git a/server/tests/test_games/movement/explore_auto_adjacent_water.outcome.json b/server/tests/test_games/movement/explore_auto_adjacent_water.outcome.json index 5b311f5d..cc491fa9 100644 --- a/server/tests/test_games/movement/explore_auto_adjacent_water.outcome.json +++ b/server/tests/test_games/movement/explore_auto_adjacent_water.outcome.json @@ -333,8 +333,50 @@ } } }, - "log": [ - "Player1: Move: marched 1 settler from C6 to C7, Explored tiles A7=Barren, B6=Water, B7=Fertile, C7=Forest" + "player": 0, + "origin": { + "Ability": "Move" + }, + "items": [ + { + "player": 0, + "Move": { + "units": { + "settlers": 1 + }, + "start": "C6", + "destination": "C7" + }, + "origin": { + "Ability": "Move" + } + }, + { + "player": 0, + "Explore": { + "tiles": [ + [ + "B6", + "Water" + ], + [ + "A7", + "Barren" + ], + [ + "C7", + "Forest" + ], + [ + "B7", + "Fertile" + ] + ] + }, + "origin": { + "Ability": "Move" + } + } ] } ] diff --git a/server/tests/test_games/movement/explore_auto_no_walk_on_water.outcome.json b/server/tests/test_games/movement/explore_auto_no_walk_on_water.outcome.json index e19b8a5e..11d360c4 100644 --- a/server/tests/test_games/movement/explore_auto_no_walk_on_water.outcome.json +++ b/server/tests/test_games/movement/explore_auto_no_walk_on_water.outcome.json @@ -360,8 +360,50 @@ } } }, - "log": [ - "Player1: Move: marched 1 settler from C2 to B2, Explored tiles A3=Forest, B2=Mountain, B3=Water, C3=Fertile" + "player": 0, + "origin": { + "Ability": "Move" + }, + "items": [ + { + "player": 0, + "Move": { + "units": { + "settlers": 1 + }, + "start": "C2", + "destination": "B2" + }, + "origin": { + "Ability": "Move" + } + }, + { + "player": 0, + "Explore": { + "tiles": [ + [ + "B3", + "Water" + ], + [ + "C3", + "Fertile" + ], + [ + "A3", + "Forest" + ], + [ + "B2", + "Mountain" + ] + ] + }, + "origin": { + "Ability": "Move" + } + } ] } ] diff --git a/server/tests/test_games/movement/explore_auto_water_outside.outcome.json b/server/tests/test_games/movement/explore_auto_water_outside.outcome.json index 6d4e17f0..96fab5ed 100644 --- a/server/tests/test_games/movement/explore_auto_water_outside.outcome.json +++ b/server/tests/test_games/movement/explore_auto_water_outside.outcome.json @@ -340,8 +340,50 @@ } } }, - "log": [ - "Player2: Move: marched 1 settler from E6 to F5, Explored tiles E5=Mountain, F4=Barren, F5=Mountain, G5=Water" + "player": 1, + "origin": { + "Ability": "Move" + }, + "items": [ + { + "player": 1, + "Move": { + "units": { + "settlers": 1 + }, + "start": "E6", + "destination": "F5" + }, + "origin": { + "Ability": "Move" + } + }, + { + "player": 1, + "Explore": { + "tiles": [ + [ + "F5", + "Mountain" + ], + [ + "G5", + "Water" + ], + [ + "E5", + "Mountain" + ], + [ + "F4", + "Barren" + ] + ] + }, + "origin": { + "Ability": "Move" + } + } ] } ] diff --git a/server/tests/test_games/movement/explore_choose.outcome.json b/server/tests/test_games/movement/explore_choose.outcome.json index f8335d25..fadfd25f 100644 --- a/server/tests/test_games/movement/explore_choose.outcome.json +++ b/server/tests/test_games/movement/explore_choose.outcome.json @@ -408,8 +408,24 @@ } } }, - "log": [ - "Player2: Move: marched 1 settler from D7 to C7" + "player": 1, + "origin": { + "Ability": "Move" + }, + "items": [ + { + "player": 1, + "Move": { + "units": { + "settlers": 1 + }, + "start": "D7", + "destination": "C7" + }, + "origin": { + "Ability": "Move" + } + } ] } ] diff --git a/server/tests/test_games/movement/explore_resolution.outcome.json b/server/tests/test_games/movement/explore_resolution.outcome.json index 9aa865d1..f393b629 100644 --- a/server/tests/test_games/movement/explore_resolution.outcome.json +++ b/server/tests/test_games/movement/explore_resolution.outcome.json @@ -448,8 +448,24 @@ } } }, - "log": [ - "Player2: Move: marched 1 settler from D7 to D6" + "player": 1, + "origin": { + "Ability": "Move" + }, + "items": [ + { + "player": 1, + "Move": { + "units": { + "settlers": 1 + }, + "start": "D7", + "destination": "D6" + }, + "origin": { + "Ability": "Move" + } + } ] } ] diff --git a/server/tests/test_games/movement/explore_resolution.outcome1.json b/server/tests/test_games/movement/explore_resolution.outcome1.json index 5d5bc1d6..e139fd32 100644 --- a/server/tests/test_games/movement/explore_resolution.outcome1.json +++ b/server/tests/test_games/movement/explore_resolution.outcome1.json @@ -400,8 +400,24 @@ } } }, - "log": [ - "Player2: Move: marched 1 settler from D7 to D6" + "player": 1, + "origin": { + "Ability": "Move" + }, + "items": [ + { + "player": 1, + "Move": { + "units": { + "settlers": 1 + }, + "start": "D7", + "destination": "D6" + }, + "origin": { + "Ability": "Move" + } + } ] }, { @@ -410,9 +426,39 @@ "ExploreResolution": 3 } }, + "player": 1, + "items": [ + { + "player": 1, + "Explore": { + "tiles": [ + [ + "D6", + "Fertile" + ], + [ + "E6", + "Fertile" + ], + [ + "C6", + "Fertile" + ], + [ + "D5", + "Forest" + ] + ] + }, + "origin": { + "Ability": "Explore Resolution" + } + } + ], "log": [ - "Player2: Explore Resolution: Chose rotation 3, Explored tiles C6=Fertile, D5=Forest, D6=Fertile, E6=Fertile" - ] + "Player2: Explore Resolution: Chose rotation 3" + ], + "active_events": 1 } ] } diff --git a/server/tests/test_games/movement/movement.outcome.json b/server/tests/test_games/movement/movement.outcome.json index ae448e16..a67e36d9 100644 --- a/server/tests/test_games/movement/movement.outcome.json +++ b/server/tests/test_games/movement/movement.outcome.json @@ -209,8 +209,24 @@ } } }, - "log": [ - "Player1: Move: marched 1 settler from B2 to B3" + "player": 0, + "origin": { + "Ability": "Move" + }, + "items": [ + { + "player": 0, + "Move": { + "units": { + "settlers": 1 + }, + "start": "B2", + "destination": "B3" + }, + "origin": { + "Ability": "Move" + } + } ] } ] diff --git a/server/tests/test_games/movement/ship_disembark.outcome.json b/server/tests/test_games/movement/ship_disembark.outcome.json index de99f62b..f578a134 100644 --- a/server/tests/test_games/movement/ship_disembark.outcome.json +++ b/server/tests/test_games/movement/ship_disembark.outcome.json @@ -270,8 +270,25 @@ } } }, - "log": [ - "Player1: Move: disembarked 1 cavalry and 1 elephant from C3 to B3" + "player": 0, + "origin": { + "Ability": "Move" + }, + "items": [ + { + "player": 0, + "Move": { + "units": { + "cavalry": 1, + "elephants": 1 + }, + "start": "C3", + "destination": "B3" + }, + "origin": { + "Ability": "Move" + } + } ] } ] diff --git a/server/tests/test_games/movement/ship_disembark_capture_empty_city.outcome1.json b/server/tests/test_games/movement/ship_disembark_capture_empty_city.outcome1.json index 4f74862c..2b81a275 100644 --- a/server/tests/test_games/movement/ship_disembark_capture_empty_city.outcome1.json +++ b/server/tests/test_games/movement/ship_disembark_capture_empty_city.outcome1.json @@ -288,6 +288,10 @@ } } }, + "player": 0, + "origin": { + "Ability": "Move" + }, "combat_stats": { "round": 1, "battleground": "City", @@ -308,6 +312,20 @@ "city_mood": "Neutral" }, "items": [ + { + "player": 0, + "Move": { + "units": { + "cavalry": 1, + "elephants": 1 + }, + "start": "C3", + "destination": "B2" + }, + "origin": { + "Ability": "Move" + } + }, { "player": 0, "Resources": { @@ -325,7 +343,8 @@ "Structure": { "structure": "CityCenter", "balance": "Loss", - "position": "B2" + "position": "B2", + "port_position": null }, "origin": { "Ability": "Combat" @@ -336,7 +355,8 @@ "Structure": { "structure": "CityCenter", "balance": "Gain", - "position": "B2" + "position": "B2", + "port_position": null }, "origin": { "Ability": "Combat" @@ -349,7 +369,8 @@ "Building": "Port" }, "balance": "Loss", - "position": "B2" + "position": "B2", + "port_position": "C3" }, "origin": { "Ability": "Combat" @@ -362,7 +383,8 @@ "Building": "Port" }, "balance": "Gain", - "position": "B2" + "position": "B2", + "port_position": "C3" }, "origin": { "Ability": "Combat" @@ -384,19 +406,25 @@ "units": { "settlers": 1 }, - "balance": "Gain" + "balance": "Gain", + "position": "C1" }, "origin": { "Ability": "Place Settler" } + }, + { + "player": 0, + "Resources": { + "resources": { + "gold": 2 + }, + "balance": "Loss" + }, + "origin": { + "Ability": "Waste" + } } - ], - "log": [ - "Player1: Move: disembarked 1 cavalry and 1 elephant from C3 to B2", - "Player1: Combat: Gain 2 gold, Gain city B2, Gain Port at B2 at the water tile C3, City B2 became Angry", - "Player2: Combat: Lose city B2, Lose Port at B2", - "Player2: Place Settler: Gain 1 settler at C1", - "Player1: Waste: Could not store 2 gold" ] }, { @@ -409,6 +437,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -428,9 +457,7 @@ } } ], - "log": [ - "Player1: Complete Objectives: Complete Naval Assault using Optimized Storage/Naval Assault" - ] + "active_events": 1 } ] } diff --git a/server/tests/test_games/movement/ship_embark.outcome.json b/server/tests/test_games/movement/ship_embark.outcome.json index 3dccb100..f490bf64 100644 --- a/server/tests/test_games/movement/ship_embark.outcome.json +++ b/server/tests/test_games/movement/ship_embark.outcome.json @@ -281,8 +281,25 @@ } } }, - "log": [ - "Player1: Move: embarked 2 settlers from B3 to C3" + "player": 0, + "origin": { + "Ability": "Move" + }, + "items": [ + { + "player": 0, + "Move": { + "units": { + "settlers": 2 + }, + "start": "B3", + "destination": "C3", + "embark_carrier_id": 8 + }, + "origin": { + "Ability": "Move" + } + } ] } ] diff --git a/server/tests/test_games/movement/ship_embark_continue.outcome.json b/server/tests/test_games/movement/ship_embark_continue.outcome.json index 6509edb3..439fa420 100644 --- a/server/tests/test_games/movement/ship_embark_continue.outcome.json +++ b/server/tests/test_games/movement/ship_embark_continue.outcome.json @@ -283,8 +283,25 @@ } } }, - "log": [ - "Player1: Move: embarked 2 settlers from B3 to C3" + "player": 0, + "origin": { + "Ability": "Move" + }, + "items": [ + { + "player": 0, + "Move": { + "units": { + "settlers": 2 + }, + "start": "B3", + "destination": "C3", + "embark_carrier_id": 9 + }, + "origin": { + "Ability": "Move" + } + } ] } ] diff --git a/server/tests/test_games/movement/ship_explore.outcome.json b/server/tests/test_games/movement/ship_explore.outcome.json index a587f8e1..9828110a 100644 --- a/server/tests/test_games/movement/ship_explore.outcome.json +++ b/server/tests/test_games/movement/ship_explore.outcome.json @@ -343,8 +343,50 @@ } } }, - "log": [ - "Player2: Move: sailed 1 ship from D5 to C5, Explored tiles A5=Forest, B4=Forest, B5=Water, C5=Water" + "player": 1, + "origin": { + "Ability": "Move" + }, + "items": [ + { + "player": 1, + "Move": { + "units": { + "ships": 1 + }, + "start": "D5", + "destination": "C5" + }, + "origin": { + "Ability": "Move" + } + }, + { + "player": 1, + "Explore": { + "tiles": [ + [ + "B5", + "Water" + ], + [ + "C5", + "Water" + ], + [ + "A5", + "Forest" + ], + [ + "B4", + "Forest" + ] + ] + }, + "origin": { + "Ability": "Move" + } + } ] } ] diff --git a/server/tests/test_games/movement/ship_explore_move_not_possible.outcome.json b/server/tests/test_games/movement/ship_explore_move_not_possible.outcome.json index e4e21051..772892d0 100644 --- a/server/tests/test_games/movement/ship_explore_move_not_possible.outcome.json +++ b/server/tests/test_games/movement/ship_explore_move_not_possible.outcome.json @@ -345,9 +345,39 @@ "ExploreResolution": 3 } }, + "player": 1, + "items": [ + { + "player": 1, + "Explore": { + "tiles": [ + [ + "F5", + "Fertile" + ], + [ + "G5", + "Mountain" + ], + [ + "E5", + "Forest" + ], + [ + "F4", + "Fertile" + ] + ] + }, + "origin": { + "Ability": "Explore Resolution" + } + } + ], "log": [ - "Player2: Explore Resolution: Chose rotation 3, Explored tiles E5=Forest, F4=Fertile, F5=Fertile, G5=Mountain, Ship can't move to the explored tile" - ] + "Player2: Explore Resolution: Chose rotation 3, Ship can't move to the explored tile" + ], + "active_events": 1 } ] } diff --git a/server/tests/test_games/movement/ship_explore_teleport.outcome.json b/server/tests/test_games/movement/ship_explore_teleport.outcome.json index b576d5e8..c1afb935 100644 --- a/server/tests/test_games/movement/ship_explore_teleport.outcome.json +++ b/server/tests/test_games/movement/ship_explore_teleport.outcome.json @@ -329,8 +329,53 @@ } } }, + "player": 1, + "origin": { + "Ability": "Move" + }, + "items": [ + { + "player": 1, + "Move": { + "units": { + "ships": 1 + }, + "start": "C5", + "destination": "C4" + }, + "origin": { + "Ability": "Move" + } + }, + { + "player": 1, + "Explore": { + "tiles": [ + [ + "D4", + "Water" + ], + [ + "E4", + "Barren" + ], + [ + "C4", + "Forest" + ], + [ + "D3", + "Fertile" + ] + ] + }, + "origin": { + "Ability": "Move" + } + } + ], "log": [ - "Player2: Move: sailed 1 ship from C5 to C4, Explored tiles C4=Forest, D3=Fertile, D4=Water, E4=Barren, Teleported ship from C4 to D4" + "Player2: Move: Teleported ship from C4 to D4" ] } ] diff --git a/server/tests/test_games/movement/ship_navigate.outcome.json b/server/tests/test_games/movement/ship_navigate.outcome.json index 2d87c4f7..515f2f08 100644 --- a/server/tests/test_games/movement/ship_navigate.outcome.json +++ b/server/tests/test_games/movement/ship_navigate.outcome.json @@ -323,7 +323,24 @@ } } }, + "player": 1, + "origin": { + "Ability": "Move" + }, "items": [ + { + "player": 1, + "Move": { + "units": { + "ships": 1 + }, + "start": "B5", + "destination": "A7" + }, + "origin": { + "Ability": "Move" + } + }, { "player": 1, "Resources": { @@ -348,10 +365,6 @@ "Advance": "Cartography" } } - ], - "log": [ - "Player2: Move: sailed 1 ship from B5 to A7", - "Player2: Cartography: Gain 1 culture token, Gain 1 idea" ] } ] diff --git a/server/tests/test_games/movement/ship_navigate_explore_move.outcome.json b/server/tests/test_games/movement/ship_navigate_explore_move.outcome.json index 2426577d..ddccfe46 100644 --- a/server/tests/test_games/movement/ship_navigate_explore_move.outcome.json +++ b/server/tests/test_games/movement/ship_navigate_explore_move.outcome.json @@ -302,8 +302,53 @@ } } }, + "player": 1, + "origin": { + "Ability": "Move" + }, + "items": [ + { + "player": 1, + "Move": { + "units": { + "ships": 1 + }, + "start": "B3", + "destination": "F2" + }, + "origin": { + "Ability": "Move" + } + }, + { + "player": 1, + "Explore": { + "tiles": [ + [ + "F3", + "Forest" + ], + [ + "G3", + "Water" + ], + [ + "E3", + "Fertile" + ], + [ + "F2", + "Forest" + ] + ] + }, + "origin": { + "Ability": "Move" + } + } + ], "log": [ - "Player2: Move: sailed 1 ship from B3 to F2, Explored tiles E3=Fertile, F2=Forest, F3=Forest, G3=Water, Teleported ship from F2 to G3" + "Player2: Move: Teleported ship from F2 to G3" ] } ] diff --git a/server/tests/test_games/movement/ship_navigate_explore_not_move.outcome.json b/server/tests/test_games/movement/ship_navigate_explore_not_move.outcome.json index f8e97342..77f4365d 100644 --- a/server/tests/test_games/movement/ship_navigate_explore_not_move.outcome.json +++ b/server/tests/test_games/movement/ship_navigate_explore_not_move.outcome.json @@ -353,8 +353,24 @@ } } }, - "log": [ - "Player2: Move: sailed 1 ship from B3 to F2" + "player": 1, + "origin": { + "Ability": "Move" + }, + "items": [ + { + "player": 1, + "Move": { + "units": { + "ships": 1 + }, + "start": "B3", + "destination": "F2" + }, + "origin": { + "Ability": "Move" + } + } ] } ] diff --git a/server/tests/test_games/movement/ship_transport.outcome.json b/server/tests/test_games/movement/ship_transport.outcome.json index 045c113b..48f06080 100644 --- a/server/tests/test_games/movement/ship_transport.outcome.json +++ b/server/tests/test_games/movement/ship_transport.outcome.json @@ -269,8 +269,24 @@ } } }, - "log": [ - "Player1: Move: sailed 1 ship from C3 to D2" + "player": 0, + "origin": { + "Ability": "Move" + }, + "items": [ + { + "player": 0, + "Move": { + "units": { + "ships": 1 + }, + "start": "C3", + "destination": "D2" + }, + "origin": { + "Ability": "Move" + } + } ] } ] diff --git a/server/tests/test_games/movement/ship_transport_same_sea.outcome.json b/server/tests/test_games/movement/ship_transport_same_sea.outcome.json index 3c4691c9..cd4a5666 100644 --- a/server/tests/test_games/movement/ship_transport_same_sea.outcome.json +++ b/server/tests/test_games/movement/ship_transport_same_sea.outcome.json @@ -269,8 +269,24 @@ } } }, - "log": [ - "Player1: Move: sailed 1 ship from D2 to C3" + "player": 0, + "origin": { + "Ability": "Move" + }, + "items": [ + { + "player": 0, + "Move": { + "units": { + "ships": 1 + }, + "start": "D2", + "destination": "C3" + }, + "origin": { + "Ability": "Move" + } + } ] } ] diff --git a/server/tests/test_games/objective_cards/instant/conqueror.outcome3.json b/server/tests/test_games/objective_cards/instant/conqueror.outcome3.json index 72b8a5cd..3ed836f6 100644 --- a/server/tests/test_games/objective_cards/instant/conqueror.outcome3.json +++ b/server/tests/test_games/objective_cards/instant/conqueror.outcome3.json @@ -231,6 +231,10 @@ } } }, + "player": 0, + "origin": { + "Ability": "Move" + }, "combat_stats": { "round": 1, "battleground": "CityWithFortress", @@ -257,13 +261,29 @@ "city_mood": "Angry" }, "items": [ + { + "player": 0, + "Move": { + "units": { + "infantry": 2, + "cavalry": 1, + "elephants": 1 + }, + "start": "C2", + "destination": "C1" + }, + "origin": { + "Ability": "Move" + } + }, { "player": 1, "Units": { "units": { "infantry": 3 }, - "balance": "Loss" + "balance": "Loss", + "position": "C1" }, "origin": { "Ability": "Combat" @@ -286,7 +306,8 @@ "Structure": { "structure": "CityCenter", "balance": "Loss", - "position": "C1" + "position": "C1", + "port_position": null }, "origin": { "Ability": "Combat" @@ -297,7 +318,8 @@ "Structure": { "structure": "CityCenter", "balance": "Gain", - "position": "C1" + "position": "C1", + "port_position": null }, "origin": { "Ability": "Combat" @@ -310,7 +332,8 @@ "Building": "Fortress" }, "balance": "Loss", - "position": "C1" + "position": "C1", + "port_position": null }, "origin": { "Ability": "Combat" @@ -323,21 +346,32 @@ "Building": "Fortress" }, "balance": "Gain", - "position": "C1" + "position": "C1", + "port_position": null }, "origin": { "Ability": "Combat" } + }, + { + "player": 0, + "Resources": { + "resources": { + "gold": 1 + }, + "balance": "Loss" + }, + "origin": { + "Ability": "Waste" + } } ], "log": [ - "Player1: Move: marched 2 infantry, 1 cavalry and 1 elephant from C2 to C1", "Combat round 1", - "Player1: Combat: Attacking with 2 infantry, 1 cavalry and 1 elephant, Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value), 6 (infantry, no bonus), 6 (infantry, no bonus) for combined combat value of 26 and gets 3 hits against defending units, Gain 1 gold, Gain city C1, Gain Fortress at C1", - "Player2: Combat: Defending with 3 infantry, Roll 1 (leader, no bonus), 1 (leader, no bonus), 1 (leader, no bonus), 1 (leader, no bonus) for combined combat value of 4 and gets 0 hits against attacking units, Combat modifiers: fortress added one extra die, fortress cancelled one hit, Lost 3 infantry at C1, Lose city C1, Lose Fortress at C1", + "Player1: Combat: Attacking with 2 infantry, 1 cavalry and 1 elephant, Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value), 6 (infantry, no bonus), 6 (infantry, no bonus) for combined combat value of 26 and gets 3 hits against defending units", + "Player2: Combat: Defending with 3 infantry, Roll 1 (leader, no bonus), 1 (leader, no bonus), 1 (leader, no bonus), 1 (leader, no bonus) for combined combat value of 4 and gets 0 hits against attacking units, Combat modifiers: fortress added one extra die, fortress cancelled one hit", "Player2: Choose Casualties: Remove all defending units", - "Attacker wins", - "Player1: Waste: Could not store 1 gold" + "Attacker wins" ] }, { @@ -350,6 +384,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -369,9 +404,7 @@ } } ], - "log": [ - "Player1: Complete Objectives: Complete Conqueror using Scientific Lead/Conqueror" - ] + "active_events": 1 }, { "action": { @@ -383,6 +416,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -402,9 +436,7 @@ } } ], - "log": [ - "Player1: Complete Objectives: Complete General using Religious Fervor/General" - ] + "active_events": 1 }, { "action": { @@ -416,6 +448,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -435,9 +468,7 @@ } } ], - "log": [ - "Player1: Complete Objectives: Complete Great Battle using City Planner/Great Battle" - ] + "active_events": 1 } ] } diff --git a/server/tests/test_games/objective_cards/instant/defiance.outcome3.json b/server/tests/test_games/objective_cards/instant/defiance.outcome3.json index 69594906..af00ae11 100644 --- a/server/tests/test_games/objective_cards/instant/defiance.outcome3.json +++ b/server/tests/test_games/objective_cards/instant/defiance.outcome3.json @@ -210,8 +210,26 @@ } } }, + "player": 0, + "origin": { + "Ability": "Move" + }, + "items": [ + { + "player": 0, + "Move": { + "units": { + "infantry": 1 + }, + "start": "C2", + "destination": "C1" + }, + "origin": { + "Ability": "Move" + } + } + ], "log": [ - "Player1: Move: marched 1 infantry from C2 to C1", "Combat round 1", "Player1: Combat: Attacking with 1 infantry, Roll 6 (infantry, +1 combat value) for combined combat value of 7 and gets 1 hits against defending units", "Player2: Combat: Defending with 2 infantry, Roll 1 (leader, no bonus), 1 (leader, no bonus) for combined combat value of 2 and gets 0 hits against attacking units", @@ -224,6 +242,7 @@ "Bool": false } }, + "player": 0, "combat_stats": { "round": 2, "battleground": "City", @@ -254,7 +273,8 @@ "units": { "infantry": 1 }, - "balance": "Loss" + "balance": "Loss", + "position": "C1" }, "origin": { "Ability": "Combat" @@ -266,7 +286,8 @@ "units": { "infantry": 1 }, - "balance": "Loss" + "balance": "Loss", + "position": "C1" }, "origin": { "Ability": "Combat" @@ -289,7 +310,8 @@ "Structure": { "structure": "CityCenter", "balance": "Loss", - "position": "C1" + "position": "C1", + "port_position": null }, "origin": { "Ability": "Combat" @@ -300,22 +322,35 @@ "Structure": { "structure": "CityCenter", "balance": "Gain", - "position": "C1" + "position": "C1", + "port_position": null }, "origin": { "Ability": "Combat" } + }, + { + "player": 0, + "Resources": { + "resources": { + "gold": 1 + }, + "balance": "Loss" + }, + "origin": { + "Ability": "Waste" + } } ], "log": [ "Player1: Retreat: Do not retreat", "Player2: Choose Casualties: Remove 1 of their defending units, Remove all defending units", - "Player2: Combat: Lost 1 infantry at C1, Defending with 1 infantry, Roll 1 (leader, no bonus) for combined combat value of 1 and gets 0 hits against attacking units, Lost 1 infantry at C1, Lose city C1", "Combat round 2", - "Player1: Combat: Attacking with 1 infantry, Roll 6 (infantry, +1 combat value) for combined combat value of 7 and gets 1 hits against defending units, Gain 1 gold, Gain city C1", - "Attacker wins", - "Player1: Waste: Could not store 1 gold" - ] + "Player1: Combat: Attacking with 1 infantry, Roll 6 (infantry, +1 combat value) for combined combat value of 7 and gets 1 hits against defending units", + "Player2: Combat: Defending with 1 infantry, Roll 1 (leader, no bonus) for combined combat value of 1 and gets 0 hits against attacking units", + "Attacker wins" + ], + "active_events": 1 }, { "action": { @@ -323,9 +358,11 @@ "SelectHandCards": [] } }, + "player": 0, "log": [ "Player1: Select Objective Cards to Complete: No card selected" - ] + ], + "active_events": 1 }, { "action": { @@ -337,6 +374,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -356,9 +394,7 @@ } } ], - "log": [ - "Player1: Complete Objectives: Complete Defiance using Eureka!/Defiance" - ] + "active_events": 1 } ] } diff --git a/server/tests/test_games/objective_cards/instant/draft.outcome2.json b/server/tests/test_games/objective_cards/instant/draft.outcome2.json index 197d2a91..06d0b53f 100644 --- a/server/tests/test_games/objective_cards/instant/draft.outcome2.json +++ b/server/tests/test_games/objective_cards/instant/draft.outcome2.json @@ -233,11 +233,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Recruit" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Recruit" @@ -249,7 +253,7 @@ "resources": { "mood_tokens": 1 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Recruit" @@ -266,7 +270,8 @@ "units": { "infantry": 1 }, - "balance": "Gain" + "balance": "Gain", + "position": "A1" }, "origin": { "Ability": "Recruit" @@ -274,7 +279,6 @@ } ], "log": [ - "Player1: Recruit: Pay 1 action, Pay 1 mood token with Draft, Gain 1 infantry at A1", "Player1: Draft: Reduce the cost of 1 Infantry to 1 mood token" ] }, @@ -292,11 +296,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Recruit" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Recruit" @@ -308,7 +316,7 @@ "resources": { "mood_tokens": 1 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Recruit" @@ -335,7 +343,8 @@ "units": { "infantry": 1 }, - "balance": "Gain" + "balance": "Gain", + "position": "A1" }, "origin": { "Ability": "Recruit" @@ -343,7 +352,6 @@ } ], "log": [ - "Player1: Recruit: Pay 1 action, Pay 1 mood token with Draft, City A1 became Neutral, Gain 1 infantry at A1", "Player1: Draft: Reduce the cost of 1 Infantry to 1 mood token" ] }, @@ -357,6 +365,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -376,9 +385,7 @@ } } ], - "log": [ - "Player1: Complete Objectives: Complete Draft using Large Civilization/Draft" - ] + "active_events": 1 } ] } diff --git a/server/tests/test_games/objective_cards/instant/scavenger.outcome1.json b/server/tests/test_games/objective_cards/instant/scavenger.outcome1.json index 4cf5598f..e34d1b31 100644 --- a/server/tests/test_games/objective_cards/instant/scavenger.outcome1.json +++ b/server/tests/test_games/objective_cards/instant/scavenger.outcome1.json @@ -399,6 +399,10 @@ } } }, + "player": 0, + "origin": { + "Ability": "Move" + }, "combat_stats": { "round": 1, "battleground": "Sea", @@ -425,10 +429,23 @@ "result": "AttackerWins" }, "items": [ + { + "player": 0, + "Move": { + "units": { + "ships": 2 + }, + "start": "F6", + "destination": "E7" + }, + "origin": { + "Ability": "Move" + } + }, { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Move" @@ -440,7 +457,8 @@ "units": { "ships": 1 }, - "balance": "Loss" + "balance": "Loss", + "position": "F6" }, "origin": { "Ability": "Combat" @@ -452,7 +470,8 @@ "units": { "ships": 1 }, - "balance": "Loss" + "balance": "Loss", + "position": "E7" }, "origin": { "Ability": "Combat" @@ -460,10 +479,9 @@ } ], "log": [ - "Player1: Move: sailed 2 ships from F6 to E7, Pay 1 action", "Combat round 1", - "Player1: Combat: Attacking with 2 ships, Roll 2 (cavalry, no bonus), 5 (cavalry, no bonus) for combined combat value of 7 and gets 1 hits against defending units, Lost 1 ship at F6", - "Player2: Combat: Defending with 1 ship, Roll 5 (cavalry, no bonus) for combined combat value of 5 and gets 1 hits against attacking units, Lost 1 ship at E7", + "Player1: Combat: Attacking with 2 ships, Roll 2 (cavalry, no bonus), 5 (cavalry, no bonus) for combined combat value of 7 and gets 1 hits against defending units", + "Player2: Combat: Defending with 1 ship, Roll 5 (cavalry, no bonus) for combined combat value of 5 and gets 1 hits against attacking units", "Player1: Choose Casualties: Remove 1 of their attacking units", "Player2: Choose Casualties: Remove all defending units", "Attacker wins" @@ -479,6 +497,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -498,9 +517,7 @@ } } ], - "log": [ - "Player1: Complete Objectives: Complete Scavenger using Trade Focus/Scavenger" - ] + "active_events": 1 } ] } diff --git a/server/tests/test_games/objective_cards/instant/warmonger.outcome4.json b/server/tests/test_games/objective_cards/instant/warmonger.outcome4.json index d417da48..cdcec97e 100644 --- a/server/tests/test_games/objective_cards/instant/warmonger.outcome4.json +++ b/server/tests/test_games/objective_cards/instant/warmonger.outcome4.json @@ -202,6 +202,10 @@ } } }, + "player": 0, + "origin": { + "Ability": "Move" + }, "combat_stats": { "round": 1, "battleground": "CityWithFortress", @@ -231,6 +235,20 @@ "city_mood": "Angry" }, "items": [ + { + "player": 0, + "Move": { + "units": { + "infantry": 1, + "cavalry": 1 + }, + "start": "C2", + "destination": "C1" + }, + "origin": { + "Ability": "Move" + } + }, { "player": 0, "Units": { @@ -238,7 +256,8 @@ "infantry": 1, "cavalry": 1 }, - "balance": "Loss" + "balance": "Loss", + "position": "C2" }, "origin": { "Ability": "Combat" @@ -250,7 +269,8 @@ "units": { "infantry": 1 }, - "balance": "Loss" + "balance": "Loss", + "position": "C1" }, "origin": { "Ability": "Combat" @@ -258,10 +278,9 @@ } ], "log": [ - "Player1: Move: marched 1 infantry and 1 cavalry from C2 to C1", "Combat round 1", - "Player1: Combat: Attacking with 1 infantry and 1 cavalry, Roll 6 (infantry, +1 combat value), 6 (infantry, no bonus) for combined combat value of 13 and gets 1 hits against defending units, Lost 1 infantry and 1 cavalry at C2", - "Player2: Combat: Defending with 1 infantry, Roll 6 (infantry, +1 combat value), 6 (infantry, no bonus) for combined combat value of 13 and gets 2 hits against attacking units, Combat modifiers: fortress added one extra die, fortress cancelled one hit, Lost 1 infantry at C1", + "Player1: Combat: Attacking with 1 infantry and 1 cavalry, Roll 6 (infantry, +1 combat value), 6 (infantry, no bonus) for combined combat value of 13 and gets 1 hits against defending units", + "Player2: Combat: Defending with 1 infantry, Roll 6 (infantry, +1 combat value), 6 (infantry, no bonus) for combined combat value of 13 and gets 2 hits against attacking units, Combat modifiers: fortress added one extra die, fortress cancelled one hit", "Player1: Choose Casualties: Remove all attacking units", "Player2: Choose Casualties: Remove all defending units", "Player2 wins the battle because he has a defending fortress" @@ -279,8 +298,27 @@ } } }, + "player": 0, + "origin": { + "Ability": "Move" + }, + "items": [ + { + "player": 0, + "Move": { + "units": { + "infantry": 1, + "elephants": 1 + }, + "start": "C2", + "destination": "B1" + }, + "origin": { + "Ability": "Move" + } + } + ], "log": [ - "Player1: Move: marched 1 infantry and 1 elephant from C2 to B1", "Combat round 1", "Player1: Combat: Attacking with 1 infantry and 1 elephant, Roll 1 (leader, no bonus), 1 (leader, no bonus) for combined combat value of 2 and gets 0 hits against defending units", "Player2: Combat: Defending with 1 infantry, Roll 1 (leader, no bonus) for combined combat value of 1 and gets 0 hits against attacking units", @@ -293,12 +331,14 @@ "Bool": false } }, + "player": 0, "log": [ "Player1: Retreat: Do not retreat, Player1 can retreat", "Combat round 2", "Player1: Combat: Attacking with 1 infantry and 1 elephant, Roll 1 (leader, no bonus), 1 (leader, no bonus) for combined combat value of 2 and gets 0 hits against defending units", "Player2: Combat: Defending with 1 infantry, Roll 2 (cavalry, no bonus) for combined combat value of 2 and gets 0 hits against attacking units" - ] + ], + "active_events": 1 }, { "action": { @@ -306,6 +346,7 @@ "Bool": false } }, + "player": 0, "combat_stats": { "round": 3, "battleground": "Land", @@ -336,7 +377,8 @@ "units": { "infantry": 1 }, - "balance": "Loss" + "balance": "Loss", + "position": "B1" }, "origin": { "Ability": "Combat" @@ -347,10 +389,11 @@ "Player1: Retreat: Do not retreat", "Combat round 3", "Player1: Combat: Attacking with 1 infantry and 1 elephant, Roll 6 (infantry, +1 combat value), 1 (leader, no bonus) for combined combat value of 8 and gets 1 hits against defending units", - "Player2: Combat: Defending with 1 infantry, Roll 3 (elephant, no bonus) for combined combat value of 3 and gets 0 hits against attacking units, Lost 1 infantry at B1", + "Player2: Combat: Defending with 1 infantry, Roll 3 (elephant, no bonus) for combined combat value of 3 and gets 0 hits against attacking units", "Player2: Choose Casualties: Remove all defending units", "Attacker wins" - ] + ], + "active_events": 1 }, { "action": { @@ -362,6 +405,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -381,9 +425,7 @@ } } ], - "log": [ - "Player1: Complete Objectives: Complete Warmonger using Coastal Culture/Warmonger" - ] + "active_events": 1 } ] } diff --git a/server/tests/test_games/objective_cards/status_phase/colony.outcome2.json b/server/tests/test_games/objective_cards/status_phase/colony.outcome2.json index f3a4566b..ceb349cf 100644 --- a/server/tests/test_games/objective_cards/status_phase/colony.outcome2.json +++ b/server/tests/test_games/objective_cards/status_phase/colony.outcome2.json @@ -412,14 +412,29 @@ "action": { "Playing": "EndTurn" }, - "log": [ - "Player1: End Turn: 3 actions left" + "player": 0, + "origin": { + "Ability": "End Turn" + }, + "items": [ + { + "player": 0, + "Action": { + "balance": "Loss", + "amount": 3 + }, + "origin": { + "Ability": "End Turn" + } + } ] } ] }, { - "turn_type": "StatusPhase", + "turn_type": { + "StatusPhase": "CompleteObjectives" + }, "actions": [ { "action": { @@ -431,6 +446,7 @@ ] } }, + "player": 1, "items": [ { "player": 1, @@ -450,9 +466,7 @@ } } ], - "log": [ - "Player2: Complete Objectives: Complete Colony using Colony/Threat" - ] + "active_events": 2 }, { "action": { @@ -464,6 +478,7 @@ ] } }, + "player": 1, "items": [ { "player": 1, @@ -484,9 +499,9 @@ } ], "log": [ - "Player2: Complete Objectives: Complete Outpost using Magnificent Culture/Outpost", "The game has ended. Player2 has won" - ] + ], + "active_events": 2 } ] } diff --git a/server/tests/test_games/objective_cards/status_phase/large_civ.outcome8.json b/server/tests/test_games/objective_cards/status_phase/large_civ.outcome8.json index 8a7cb85b..632aacb4 100644 --- a/server/tests/test_games/objective_cards/status_phase/large_civ.outcome8.json +++ b/server/tests/test_games/objective_cards/status_phase/large_civ.outcome8.json @@ -320,14 +320,29 @@ "action": { "Playing": "EndTurn" }, - "log": [ - "Player2: End Turn: 2 actions left" + "player": 1, + "origin": { + "Ability": "End Turn" + }, + "items": [ + { + "player": 1, + "Action": { + "balance": "Loss", + "amount": 2 + }, + "origin": { + "Ability": "End Turn" + } + } ] } ] }, { - "turn_type": "StatusPhase", + "turn_type": { + "StatusPhase": "CompleteObjectives" + }, "actions": [ { "action": { @@ -339,6 +354,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -358,9 +374,7 @@ } } ], - "log": [ - "Player1: Complete Objectives: Complete Advanced Culture using Advanced Culture/Warmonger" - ] + "active_events": 2 }, { "action": { @@ -372,6 +386,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -391,9 +406,7 @@ } } ], - "log": [ - "Player1: Complete Objectives: Complete City Planner using City Planner/Great Battle" - ] + "active_events": 2 }, { "action": { @@ -405,6 +418,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -424,9 +438,7 @@ } } ], - "log": [ - "Player1: Complete Objectives: Complete Government using Government/Barbarian Conquest" - ] + "active_events": 2 }, { "action": { @@ -438,6 +450,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -457,9 +470,7 @@ } } ], - "log": [ - "Player1: Complete Objectives: Complete Large Civilization using Large Civilization/Draft" - ] + "active_events": 2 }, { "action": { @@ -471,6 +482,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -490,9 +502,7 @@ } } ], - "log": [ - "Player1: Complete Objectives: Complete Large Fleet using Wealth/Large Fleet" - ] + "active_events": 2 }, { "action": { @@ -504,6 +514,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -523,9 +534,7 @@ } } ], - "log": [ - "Player1: Complete Objectives: Complete Religious Fervor using Religious Fervor/General" - ] + "active_events": 2 }, { "action": { @@ -537,6 +546,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -556,9 +566,7 @@ } } ], - "log": [ - "Player1: Complete Objectives: Complete Sea Blockade using Education Lead/Sea Blockade" - ] + "active_events": 2 }, { "action": { @@ -570,6 +578,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -577,7 +586,7 @@ "resources": { "ideas": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Objective": "Eureka!" @@ -602,9 +611,20 @@ } ], "log": [ - "Player1: Eureka!: Pay 2 ideas for Eureka!", - "Player1: Complete Objectives: Complete Eureka! using Eureka!/Defiance" - ] + "Player1: Eureka!: Pay 2 ideas for Eureka!" + ], + "active_events": 2 + } + ] + }, + { + "turn_type": { + "StatusPhase": "FreeAdvance" + }, + "actions": [ + { + "action": "StartTurn", + "player": 0 } ] } @@ -613,8 +633,8 @@ ] } ], - "log_index": 8, - "undo_limit": 0, + "log_index": 1, + "undo_limit": 1, "actions_left": 2, "round": 4, "age": 1, diff --git a/server/tests/test_games/objective_cards/status_phase/standing_army.outcome1.json b/server/tests/test_games/objective_cards/status_phase/standing_army.outcome1.json index c1c2c3a1..f940f85d 100644 --- a/server/tests/test_games/objective_cards/status_phase/standing_army.outcome1.json +++ b/server/tests/test_games/objective_cards/status_phase/standing_army.outcome1.json @@ -273,14 +273,28 @@ "action": { "Playing": "EndTurn" }, - "log": [ - "Player2: End Turn: 1 actions left" + "player": 1, + "origin": { + "Ability": "End Turn" + }, + "items": [ + { + "player": 1, + "Action": { + "balance": "Loss" + }, + "origin": { + "Ability": "End Turn" + } + } ] } ] }, { - "turn_type": "StatusPhase", + "turn_type": { + "StatusPhase": "CompleteObjectives" + }, "actions": [ { "action": { @@ -292,6 +306,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -311,9 +326,18 @@ } } ], - "log": [ - "Player1: Complete Objectives: Complete Standing Army using Food Supplies/Standing Army" - ] + "active_events": 2 + } + ] + }, + { + "turn_type": { + "StatusPhase": "FreeAdvance" + }, + "actions": [ + { + "action": "StartTurn", + "player": 0 } ] } @@ -323,7 +347,7 @@ } ], "log_index": 1, - "undo_limit": 0, + "undo_limit": 1, "actions_left": 1, "round": 4, "age": 1, diff --git a/server/tests/test_games/status_phase/change_government.outcome2.json b/server/tests/test_games/status_phase/change_government.outcome2.json index e8179d49..949f8742 100644 --- a/server/tests/test_games/status_phase/change_government.outcome2.json +++ b/server/tests/test_games/status_phase/change_government.outcome2.json @@ -241,9 +241,22 @@ "SelectPositions": [] } }, + "player": 1, "log": [ "Player2: Raze city: Did not raze a city" - ] + ], + "active_events": 1 + } + ] + }, + { + "turn_type": { + "StatusPhase": "ChangeGovernmentType" + }, + "actions": [ + { + "action": "StartTurn", + "player": 0 }, { "action": { @@ -256,6 +269,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -264,16 +278,14 @@ "mood_tokens": 1, "culture_tokens": 1 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Change Government" } } ], - "log": [ - "Player1: Change Government: Pay 1 mood token and 1 culture token" - ] + "active_events": 1 }, { "action": { @@ -286,12 +298,13 @@ } } }, + "player": 0, "items": [ { "player": 0, "Advance": { "advance": "Voting", - "take_incident_token": false, + "incident_token": "NoChange", "balance": "Loss" }, "origin": { @@ -302,7 +315,7 @@ "player": 0, "Advance": { "advance": "FreeEconomy", - "take_incident_token": false, + "incident_token": "NoChange", "balance": "Loss" }, "origin": { @@ -313,7 +326,7 @@ "player": 0, "Advance": { "advance": "Dogma", - "take_incident_token": false, + "incident_token": "NoChange", "balance": "Gain" }, "origin": { @@ -324,7 +337,7 @@ "player": 0, "Advance": { "advance": "Devotion", - "take_incident_token": false, + "incident_token": "NoChange", "balance": "Gain" }, "origin": { @@ -333,9 +346,34 @@ } ], "log": [ - "Player1: Change Government: Player1 changed their government from Democracy to Theocracy, Additional advances: Devotion, Unlock Provinces, Gain Dogma without taking an event token, Gain Devotion without taking an event token", - "Player1: Dogma: Ideas limit reduced to 2", - "Player1: Waste: Could not store 1 idea" + "Player1: Change Government: Democracy changed their government from Player1 to Theocracy, Additional advances: Devotion, Unlock Provinces", + "Player1: Dogma: Ideas limit reduced to 2" + ], + "active_events": 1 + } + ] + }, + { + "turn_type": { + "StatusPhase": "DetermineFirstPlayer" + }, + "actions": [ + { + "action": "StartTurn", + "player": 0, + "items": [ + { + "player": 0, + "Resources": { + "resources": { + "ideas": 1 + }, + "balance": "Loss" + }, + "origin": { + "Ability": "Waste" + } + } ] } ] @@ -345,8 +383,8 @@ ] } ], - "log_index": 3, - "undo_limit": 3, + "log_index": 1, + "undo_limit": 1, "actions_left": 3, "round": 1, "age": 1, diff --git a/server/tests/test_games/status_phase/determine_first_player.outcome.json b/server/tests/test_games/status_phase/determine_first_player.outcome.json index b141e79c..9ddf12a6 100644 --- a/server/tests/test_games/status_phase/determine_first_player.outcome.json +++ b/server/tests/test_games/status_phase/determine_first_player.outcome.json @@ -204,9 +204,11 @@ "SelectPlayer": 1 } }, + "player": 0, "log": [ "Player1: Determine First Player: Player1 choose Player2 as the new starting player" - ] + ], + "active_events": 1 } ] } diff --git a/server/tests/test_games/status_phase/end_game.outcome.json b/server/tests/test_games/status_phase/end_game.outcome.json index 9c0498bc..7ececaea 100644 --- a/server/tests/test_games/status_phase/end_game.outcome.json +++ b/server/tests/test_games/status_phase/end_game.outcome.json @@ -282,17 +282,21 @@ "action": { "Playing": "EndTurn" }, - "log": [ - "Player1: End Turn: 0 actions left" - ] + "player": 0, + "origin": { + "Ability": "End Turn" + } } ] }, { - "turn_type": "StatusPhase", + "turn_type": { + "StatusPhase": "CompleteObjectives" + }, "actions": [ { "action": "StartTurn", + "player": 0, "log": [ "The game has ended. Player2 has won" ] diff --git a/server/tests/test_games/status_phase/free_advance.outcome.json b/server/tests/test_games/status_phase/free_advance.outcome.json deleted file mode 100644 index 28fd3e8d..00000000 --- a/server/tests/test_games/status_phase/free_advance.outcome.json +++ /dev/null @@ -1,365 +0,0 @@ -{ - "state": "Playing", - "events": [ - { - "event_type": { - "StatusPhase": "FreeAdvance" - }, - "player": 1, - "last_priority_used": 0, - "handler": { - "priority": 0, - "request": { - "SelectAdvance": { - "choices": [ - "Storage", - "Irrigation", - "Husbandry", - "Engineering", - "Sanitation", - "Roads", - "Navigation", - "WarShips", - "Cartography", - "Writing", - "Tactics", - "Rituals", - "Priesthood", - "Bartering", - "Arts", - "Math", - "Dogma" - ] - } - }, - "origin": { - "Ability": "Free Advance" - } - } - } - ], - "players": [ - { - "id": 0, - "resources": { - "food": 7, - "wood": 5, - "ore": 5, - "ideas": 1, - "gold": 5, - "mood_tokens": 12, - "culture_tokens": 10 - }, - "resource_limit": { - "food": 7, - "wood": 7, - "ore": 7, - "ideas": 7, - "gold": 7 - }, - "cities": [ - { - "city_pieces": { - "market": 1 - }, - "mood_state": "Happy", - "position": "A1" - }, - { - "city_pieces": { - "academy": 1, - "port": 1 - }, - "mood_state": "Angry", - "position": "C2", - "port_position": "C3" - }, - { - "city_pieces": { - "obelisk": 1, - "observatory": 1, - "fortress": 1, - "temple": 1 - }, - "mood_state": "Neutral", - "position": "B1" - }, - { - "mood_state": "Angry", - "position": "B3" - } - ], - "units": [ - { - "position": "C2", - "unit_type": "Infantry", - "id": 0 - }, - { - "position": "B3", - "unit_type": "Settler", - "id": 3 - }, - { - "position": "B3", - "unit_type": "Settler", - "id": 4 - }, - { - "position": "B3", - "unit_type": "Settler", - "id": 5 - }, - { - "position": "B3", - "unit_type": "Settler", - "id": 6 - }, - { - "position": "C3", - "unit_type": "Ship", - "id": 7, - "carried_units": [ - { - "unit_type": "Cavalry", - "id": 1 - }, - { - "unit_type": "Elephant", - "id": 2 - } - ] - }, - { - "position": "C3", - "unit_type": "Ship", - "id": 8 - }, - { - "position": "C3", - "unit_type": "Ship", - "id": 9 - } - ], - "civilization": "China", - "advances": [ - "Farming", - "Fishing", - "FreeEconomy", - "FreeEducation", - "Mining", - "Storage", - "Voting", - "Writing" - ], - "incident_tokens": 3, - "wonder_cards": [ - "GreatGardens" - ], - "next_unit_id": 10 - }, - { - "id": 1, - "resources": { - "food": 2, - "wood": 5, - "ore": 5, - "ideas": 6, - "gold": 5, - "mood_tokens": 9, - "culture_tokens": 9 - }, - "resource_limit": { - "food": 2, - "wood": 7, - "ore": 7, - "ideas": 7, - "gold": 7 - }, - "cities": [ - { - "mood_state": "Happy", - "position": "C1" - }, - { - "city_pieces": { - "port": 1 - }, - "mood_state": "Neutral", - "position": "B2", - "port_position": "C3" - } - ], - "units": [ - { - "position": "C1", - "unit_type": "Infantry", - "id": 0 - }, - { - "position": "C1", - "unit_type": "Infantry", - "id": 1 - } - ], - "civilization": "Rome", - "advances": [ - "Farming", - "Fishing", - "Mining", - "Myths", - "StateReligion" - ], - "incident_tokens": 3, - "next_unit_id": 2 - }, - { - "id": 2, - "civilization": "Barbarians", - "next_unit_id": 0 - }, - { - "id": 3, - "civilization": "Pirates", - "next_unit_id": 0 - } - ], - "map": { - "tiles": [ - [ - "A1", - "Fertile" - ], - [ - "A2", - "Water" - ], - [ - "A3", - { - "Exhausted": "Forest" - } - ], - [ - "A4", - "Mountain" - ], - [ - "B1", - "Mountain" - ], - [ - "B2", - "Forest" - ], - [ - "B3", - "Fertile" - ], - [ - "B4", - "Fertile" - ], - [ - "B5", - "Fertile" - ], - [ - "B6", - "Fertile" - ], - [ - "C1", - "Barren" - ], - [ - "C2", - "Forest" - ], - [ - "C3", - "Water" - ], - [ - "C4", - "Water" - ], - [ - "C5", - "Water" - ], - [ - "D1", - "Fertile" - ], - [ - "D2", - "Water" - ], - [ - "E2", - "Fertile" - ] - ] - }, - "starting_player_index": 1, - "current_player_index": 1, - "log": [ - { - "age": 1, - "rounds": [ - { - "round": 1, - "turns": [ - { - "turn_type": { - "Player": 0 - }, - "actions": [ - { - "action": { - "Playing": "EndTurn" - }, - "log": [ - "Player1: End Turn: 0 actions left" - ] - } - ] - }, - { - "turn_type": "StatusPhase" - } - ] - } - ] - } - ], - "log_index": 0, - "undo_limit": 0, - "actions_left": 0, - "round": 4, - "age": 2, - "messages": [ - "The game has started" - ], - "dice_roll_outcomes": [ - 1, - 1, - 10, - 10, - 10, - 10, - 10, - 10, - 10, - 10 - ], - "rng": "46312381643103681595563341886777350953", - "wonders_left": [ - "Pyramids" - ], - "action_cards_left": [ - 1, - 2 - ] -} \ No newline at end of file diff --git a/server/tests/test_games/status_phase/free_advance.outcome1.json b/server/tests/test_games/status_phase/free_advance.outcome1.json deleted file mode 100644 index 0f546ecb..00000000 --- a/server/tests/test_games/status_phase/free_advance.outcome1.json +++ /dev/null @@ -1,407 +0,0 @@ -{ - "state": "Playing", - "events": [ - { - "event_type": { - "StatusPhase": "FreeAdvance" - }, - "players_used": [ - 1 - ], - "player": 0, - "last_priority_used": 0, - "handler": { - "priority": 0, - "request": { - "SelectAdvance": { - "choices": [ - "Irrigation", - "Husbandry", - "Engineering", - "Sanitation", - "Roads", - "Navigation", - "WarShips", - "Cartography", - "PublicEducation", - "Philosophy", - "Tactics", - "Myths", - "Bartering", - "Arts", - "Math", - "SeparationOfPower", - "CivilLiberties" - ] - } - }, - "origin": { - "Ability": "Free Advance" - } - } - } - ], - "players": [ - { - "id": 0, - "resources": { - "food": 7, - "wood": 5, - "ore": 5, - "ideas": 1, - "gold": 5, - "mood_tokens": 12, - "culture_tokens": 10 - }, - "resource_limit": { - "food": 7, - "wood": 7, - "ore": 7, - "ideas": 7, - "gold": 7 - }, - "cities": [ - { - "city_pieces": { - "market": 1 - }, - "mood_state": "Happy", - "position": "A1" - }, - { - "city_pieces": { - "academy": 1, - "port": 1 - }, - "mood_state": "Angry", - "position": "C2", - "port_position": "C3" - }, - { - "city_pieces": { - "obelisk": 1, - "observatory": 1, - "fortress": 1, - "temple": 1 - }, - "mood_state": "Neutral", - "position": "B1" - }, - { - "mood_state": "Angry", - "position": "B3" - } - ], - "units": [ - { - "position": "C2", - "unit_type": "Infantry", - "id": 0 - }, - { - "position": "B3", - "unit_type": "Settler", - "id": 3 - }, - { - "position": "B3", - "unit_type": "Settler", - "id": 4 - }, - { - "position": "B3", - "unit_type": "Settler", - "id": 5 - }, - { - "position": "B3", - "unit_type": "Settler", - "id": 6 - }, - { - "position": "C3", - "unit_type": "Ship", - "id": 7, - "carried_units": [ - { - "unit_type": "Cavalry", - "id": 1 - }, - { - "unit_type": "Elephant", - "id": 2 - } - ] - }, - { - "position": "C3", - "unit_type": "Ship", - "id": 8 - }, - { - "position": "C3", - "unit_type": "Ship", - "id": 9 - } - ], - "civilization": "China", - "advances": [ - "Farming", - "Fishing", - "FreeEconomy", - "FreeEducation", - "Mining", - "Storage", - "Voting", - "Writing" - ], - "incident_tokens": 3, - "wonder_cards": [ - "GreatGardens" - ], - "next_unit_id": 10 - }, - { - "id": 1, - "resources": { - "food": 2, - "wood": 5, - "ore": 5, - "ideas": 6, - "gold": 5, - "mood_tokens": 10, - "culture_tokens": 9 - }, - "resource_limit": { - "food": 7, - "wood": 7, - "ore": 7, - "ideas": 7, - "gold": 7 - }, - "cities": [ - { - "mood_state": "Happy", - "position": "C1" - }, - { - "city_pieces": { - "port": 1 - }, - "mood_state": "Neutral", - "position": "B2", - "port_position": "C3" - } - ], - "units": [ - { - "position": "C1", - "unit_type": "Infantry", - "id": 0 - }, - { - "position": "C1", - "unit_type": "Infantry", - "id": 1 - } - ], - "civilization": "Rome", - "advances": [ - "Farming", - "Fishing", - "Mining", - "Myths", - "StateReligion", - "Storage" - ], - "incident_tokens": 2, - "next_unit_id": 2 - }, - { - "id": 2, - "civilization": "Barbarians", - "next_unit_id": 0 - }, - { - "id": 3, - "civilization": "Pirates", - "next_unit_id": 0 - } - ], - "map": { - "tiles": [ - [ - "A1", - "Fertile" - ], - [ - "A2", - "Water" - ], - [ - "A3", - { - "Exhausted": "Forest" - } - ], - [ - "A4", - "Mountain" - ], - [ - "B1", - "Mountain" - ], - [ - "B2", - "Forest" - ], - [ - "B3", - "Fertile" - ], - [ - "B4", - "Fertile" - ], - [ - "B5", - "Fertile" - ], - [ - "B6", - "Fertile" - ], - [ - "C1", - "Barren" - ], - [ - "C2", - "Forest" - ], - [ - "C3", - "Water" - ], - [ - "C4", - "Water" - ], - [ - "C5", - "Water" - ], - [ - "D1", - "Fertile" - ], - [ - "D2", - "Water" - ], - [ - "E2", - "Fertile" - ] - ] - }, - "starting_player_index": 1, - "current_player_index": 1, - "log": [ - { - "age": 1, - "rounds": [ - { - "round": 1, - "turns": [ - { - "turn_type": { - "Player": 0 - }, - "actions": [ - { - "action": { - "Playing": "EndTurn" - }, - "log": [ - "Player1: End Turn: 0 actions left" - ] - } - ] - }, - { - "turn_type": "StatusPhase", - "actions": [ - { - "action": { - "Response": { - "SelectAdvance": "Storage" - } - }, - "items": [ - { - "player": 1, - "Resources": { - "resources": { - "mood_tokens": 1 - }, - "balance": "Gain" - }, - "origin": { - "Advance": "Storage" - } - }, - { - "player": 1, - "Advance": { - "advance": "Storage", - "take_incident_token": true, - "balance": "Gain" - }, - "origin": { - "Ability": "Free Advance" - } - } - ], - "log": [ - "Player2: Storage: Gain 1 mood token", - "Player2: Free Advance: Gain Storage and take an event token (2 left)" - ] - } - ] - } - ] - } - ] - } - ], - "log_index": 1, - "undo_limit": 1, - "actions_left": 0, - "round": 4, - "age": 2, - "messages": [ - "The game has started" - ], - "dice_roll_outcomes": [ - 1, - 1, - 10, - 10, - 10, - 10, - 10, - 10, - 10, - 10 - ], - "rng": "46312381643103681595563341886777350953", - "wonders_left": [ - "Pyramids" - ], - "action_cards_left": [ - 1, - 2 - ] -} \ No newline at end of file diff --git a/server/tests/test_games/status_phase/free_advance.outcome2.json b/server/tests/test_games/status_phase/free_advance.outcome2.json index 7eca5804..629ab1f5 100644 --- a/server/tests/test_games/status_phase/free_advance.outcome2.json +++ b/server/tests/test_games/status_phase/free_advance.outcome2.json @@ -323,14 +323,22 @@ "action": { "Playing": "EndTurn" }, - "log": [ - "Player1: End Turn: 0 actions left" - ] + "player": 0, + "origin": { + "Ability": "End Turn" + } } ] }, { - "turn_type": "StatusPhase", + "turn_type": { + "StatusPhase": "CompleteObjectives" + } + }, + { + "turn_type": { + "StatusPhase": "FreeAdvance" + }, "actions": [ { "action": { @@ -338,6 +346,7 @@ "SelectAdvance": "Storage" } }, + "player": 1, "items": [ { "player": 1, @@ -355,7 +364,9 @@ "player": 1, "Advance": { "advance": "Storage", - "take_incident_token": true, + "incident_token": { + "Take": 2 + }, "balance": "Gain" }, "origin": { @@ -363,10 +374,7 @@ } } ], - "log": [ - "Player2: Storage: Gain 1 mood token", - "Player2: Free Advance: Gain Storage and take an event token (2 left)" - ] + "active_events": 1 }, { "action": { @@ -374,6 +382,7 @@ "SelectAdvance": "Philosophy" } }, + "player": 0, "items": [ { "player": 0, @@ -403,13 +412,29 @@ "player": 0, "Advance": { "advance": "Philosophy", - "take_incident_token": true, + "incident_token": { + "Take": 2 + }, "balance": "Gain" }, "origin": { "Ability": "Free Advance" } - }, + } + ], + "active_events": 1 + } + ] + }, + { + "turn_type": { + "StatusPhase": "DrawCards" + }, + "actions": [ + { + "action": "StartTurn", + "player": 1, + "items": [ { "player": 1, "HandCard": { @@ -472,22 +497,29 @@ } ], "log": [ - "Player1: Philosophy: Gain 1 idea, Gain 1 mood token", - "Player1: Free Advance: Gain Philosophy and take an event token (2 left)", - "Player2: Draw Cards: Draw an action card, Draw an objective card", - "Reshuffling Objective Card pile", - "Player1: Draw Cards: Draw an action card, Draw an objective card" + "Reshuffling Objective Card pile" ] } ] + }, + { + "turn_type": { + "StatusPhase": "RazeSize1City" + }, + "actions": [ + { + "action": "StartTurn", + "player": 1 + } + ] } ] } ] } ], - "log_index": 2, - "undo_limit": 2, + "log_index": 1, + "undo_limit": 1, "actions_left": 0, "round": 4, "age": 2, diff --git a/server/tests/test_games/status_phase/keep_government.outcome1.json b/server/tests/test_games/status_phase/keep_government.outcome1.json index d708e49b..fa2ac282 100644 --- a/server/tests/test_games/status_phase/keep_government.outcome1.json +++ b/server/tests/test_games/status_phase/keep_government.outcome1.json @@ -238,9 +238,22 @@ "SelectPositions": [] } }, + "player": 1, "log": [ "Player2: Raze city: Did not raze a city" - ] + ], + "active_events": 1 + } + ] + }, + { + "turn_type": { + "StatusPhase": "ChangeGovernmentType" + }, + "actions": [ + { + "action": "StartTurn", + "player": 0 }, { "action": { @@ -250,12 +263,13 @@ ] } }, + "player": 0, "items": [ { "player": 0, "Resources": { "resources": {}, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Change Government" @@ -263,8 +277,20 @@ } ], "log": [ - "Player1: Change Government: Pay nothing, Keep current government" - ] + "Player1: Change Government: Keep current government" + ], + "active_events": 1 + } + ] + }, + { + "turn_type": { + "StatusPhase": "DetermineFirstPlayer" + }, + "actions": [ + { + "action": "StartTurn", + "player": 0 } ] } @@ -273,7 +299,7 @@ ] } ], - "log_index": 2, + "log_index": 1, "undo_limit": 1, "actions_left": 3, "round": 1, diff --git a/server/tests/test_games/status_phase/raze_city.outcome.json b/server/tests/test_games/status_phase/raze_city.outcome.json index b3c424ae..23727270 100644 --- a/server/tests/test_games/status_phase/raze_city.outcome.json +++ b/server/tests/test_games/status_phase/raze_city.outcome.json @@ -236,13 +236,15 @@ ] } }, + "player": 0, "items": [ { "player": 0, "Structure": { "structure": "CityCenter", "balance": "Loss", - "position": "A1" + "position": "A1", + "port_position": null }, "origin": { "Ability": "Raze city" @@ -261,9 +263,7 @@ } } ], - "log": [ - "Player1: Raze city: Lose city A1, Gain 1 gold" - ] + "active_events": 1 } ] } diff --git a/server/tests/test_games/status_phase/raze_city_decline.outcome.json b/server/tests/test_games/status_phase/raze_city_decline.outcome.json index e0c98242..110618c4 100644 --- a/server/tests/test_games/status_phase/raze_city_decline.outcome.json +++ b/server/tests/test_games/status_phase/raze_city_decline.outcome.json @@ -238,9 +238,11 @@ "SelectPositions": [] } }, + "player": 0, "log": [ "Player1: Raze city: Did not raze a city" - ] + ], + "active_events": 1 } ] } diff --git a/server/tests/test_games/status_phase/raze_city_decline.outcome1.json b/server/tests/test_games/status_phase/raze_city_decline.outcome1.json index 4929b6ea..00c220c0 100644 --- a/server/tests/test_games/status_phase/raze_city_decline.outcome1.json +++ b/server/tests/test_games/status_phase/raze_city_decline.outcome1.json @@ -234,9 +234,11 @@ "SelectPositions": [] } }, + "player": 0, "log": [ "Player1: Raze city: Did not raze a city" - ] + ], + "active_events": 1 }, { "action": { @@ -244,9 +246,33 @@ "SelectPositions": [] } }, + "player": 1, "log": [ "Player2: Raze city: Did not raze a city" - ] + ], + "active_events": 1 + } + ] + }, + { + "turn_type": { + "StatusPhase": "ChangeGovernmentType" + }, + "actions": [ + { + "action": "StartTurn", + "player": 0 + } + ] + }, + { + "turn_type": { + "StatusPhase": "DetermineFirstPlayer" + }, + "actions": [ + { + "action": "StartTurn", + "player": 0 } ] } @@ -255,8 +281,8 @@ ] } ], - "log_index": 2, - "undo_limit": 2, + "log_index": 1, + "undo_limit": 1, "actions_left": 3, "round": 1, "age": 1, diff --git a/server/tests/test_games/tactics_cards/archers.outcome2.json b/server/tests/test_games/tactics_cards/archers.outcome2.json index 9c8b1f32..bed97c7a 100644 --- a/server/tests/test_games/tactics_cards/archers.outcome2.json +++ b/server/tests/test_games/tactics_cards/archers.outcome2.json @@ -192,11 +192,28 @@ } } }, + "player": 0, + "origin": { + "Ability": "Move" + }, "items": [ + { + "player": 0, + "Move": { + "units": { + "infantry": 1 + }, + "start": "C2", + "destination": "C1" + }, + "origin": { + "Ability": "Move" + } + }, { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Move" @@ -204,7 +221,6 @@ } ], "log": [ - "Player1: Move: marched 1 infantry from C2 to C1, Pay 1 action", "Combat round 1", "Player1: Combat: Attacking with 1 infantry", "Player2: Combat: Defending with 2 infantry" @@ -220,6 +236,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -238,9 +255,10 @@ } ], "log": [ - "Player1: Tactics: Play an action card face down, Reveal Tactics Card Archers", + "Player1: Tactics: Reveal Tactics Card Archers", "Player2: Archers: Rolled a 6 and scored a hit" - ] + ], + "active_events": 1 }, { "action": { @@ -250,6 +268,7 @@ ] } }, + "player": 1, "combat_stats": { "round": 1, "battleground": "City", @@ -283,7 +302,8 @@ "units": { "infantry": 1 }, - "balance": "Loss" + "balance": "Loss", + "position": "C1" }, "origin": { "Ability": "Combat" @@ -295,7 +315,8 @@ "units": { "infantry": 1 }, - "balance": "Loss" + "balance": "Loss", + "position": "C2" }, "origin": { "Ability": "Combat" @@ -307,7 +328,8 @@ "units": { "infantry": 1 }, - "balance": "Loss" + "balance": "Loss", + "position": "C1" }, "origin": { "Ability": "Combat" @@ -316,12 +338,13 @@ ], "log": [ "Player2: Archers: Player2 sacrifices an infantry for Archers", - "Player2: Combat: Lost 1 infantry at C1, Roll 6 (infantry, +1 combat value) for combined combat value of 7 and gets 1 hits against attacking units, Lost 1 infantry at C1", - "Player1: Combat: Roll 6 (infantry, +1 combat value) for combined combat value of 7 and gets 1 hits against defending units, Lost 1 infantry at C2", + "Player1: Combat: Roll 6 (infantry, +1 combat value) for combined combat value of 7 and gets 1 hits against defending units", + "Player2: Combat: Roll 6 (infantry, +1 combat value) for combined combat value of 7 and gets 1 hits against attacking units", "Player1: Choose Casualties: Remove all attacking units", "Player2: Choose Casualties: Remove all defending units", "Battle ends in a draw" - ] + ], + "active_events": 1 } ] } diff --git a/server/tests/test_games/tactics_cards/encircled.outcome.json b/server/tests/test_games/tactics_cards/encircled.outcome.json index 4987d405..4b1a3323 100644 --- a/server/tests/test_games/tactics_cards/encircled.outcome.json +++ b/server/tests/test_games/tactics_cards/encircled.outcome.json @@ -272,11 +272,28 @@ } } }, + "player": 0, + "origin": { + "Ability": "Move" + }, "items": [ + { + "player": 0, + "Move": { + "units": { + "infantry": 1 + }, + "start": "C2", + "destination": "C1" + }, + "origin": { + "Ability": "Move" + } + }, { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Move" @@ -284,7 +301,6 @@ } ], "log": [ - "Player1: Move: marched 1 infantry from C2 to C1, Pay 1 action", "Combat round 1", "Player1: Combat: Attacking with 1 infantry", "Player2: Combat: Defending with 2 infantry" diff --git a/server/tests/test_games/tactics_cards/encircled.outcome1.json b/server/tests/test_games/tactics_cards/encircled.outcome1.json index e21e2cb9..4ccd56f2 100644 --- a/server/tests/test_games/tactics_cards/encircled.outcome1.json +++ b/server/tests/test_games/tactics_cards/encircled.outcome1.json @@ -192,11 +192,28 @@ } } }, + "player": 0, + "origin": { + "Ability": "Move" + }, "items": [ + { + "player": 0, + "Move": { + "units": { + "infantry": 1 + }, + "start": "C2", + "destination": "C1" + }, + "origin": { + "Ability": "Move" + } + }, { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Move" @@ -204,7 +221,6 @@ } ], "log": [ - "Player1: Move: marched 1 infantry from C2 to C1, Pay 1 action", "Combat round 1", "Player1: Combat: Attacking with 1 infantry", "Player2: Combat: Defending with 2 infantry" @@ -220,6 +236,7 @@ ] } }, + "player": 0, "combat_stats": { "round": 1, "battleground": "City", @@ -268,7 +285,8 @@ "units": { "infantry": 1 }, - "balance": "Loss" + "balance": "Loss", + "position": "C2" }, "origin": { "Ability": "Combat" @@ -280,7 +298,8 @@ "units": { "infantry": 2 }, - "balance": "Loss" + "balance": "Loss", + "position": "C1" }, "origin": { "Ability": "Combat" @@ -288,14 +307,15 @@ } ], "log": [ - "Player1: Tactics: Play an action card face down, Reveal Tactics Card Encircled", - "Player1: Combat: Roll 6 (infantry, +1 combat value) for combined combat value of 7 and gets 1 hits against defending units, Lost 1 infantry at C2", - "Player2: Combat: Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value) for combined combat value of 14 and gets 1 hits against attacking units, Lost 2 infantry at C1", + "Player1: Tactics: Reveal Tactics Card Encircled", + "Player1: Combat: Roll 6 (infantry, +1 combat value) for combined combat value of 7 and gets 1 hits against defending units", + "Player2: Combat: Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value) for combined combat value of 14 and gets 1 hits against attacking units", "Player1: Encircled: Rolled a 5 or 6 and added a hit that cannot be ignored", "Player1: Choose Casualties: Remove all attacking units", "Player2: Choose Casualties: Remove all defending units", "Battle ends in a draw" - ] + ], + "active_events": 1 } ] } diff --git a/server/tests/test_games/tactics_cards/flanking.outcome1.json b/server/tests/test_games/tactics_cards/flanking.outcome1.json index a62939d9..ade6d90e 100644 --- a/server/tests/test_games/tactics_cards/flanking.outcome1.json +++ b/server/tests/test_games/tactics_cards/flanking.outcome1.json @@ -190,11 +190,28 @@ } } }, + "player": 0, + "origin": { + "Ability": "Move" + }, "items": [ + { + "player": 0, + "Move": { + "units": { + "infantry": 1 + }, + "start": "C2", + "destination": "C1" + }, + "origin": { + "Ability": "Move" + } + }, { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Move" @@ -202,7 +219,6 @@ } ], "log": [ - "Player1: Move: marched 1 infantry from C2 to C1, Pay 1 action", "Combat round 1", "Player1: Combat: Attacking with 1 infantry", "Player2: Combat: Defending with 2 infantry" @@ -218,6 +234,7 @@ ] } }, + "player": 0, "combat_stats": { "round": 1, "battleground": "City", @@ -266,7 +283,8 @@ "units": { "infantry": 1 }, - "balance": "Loss" + "balance": "Loss", + "position": "C2" }, "origin": { "Ability": "Combat" @@ -278,7 +296,8 @@ "units": { "infantry": 2 }, - "balance": "Loss" + "balance": "Loss", + "position": "C1" }, "origin": { "Ability": "Combat" @@ -286,13 +305,14 @@ } ], "log": [ - "Player1: Tactics: Play an action card face down, Reveal Tactics Card Flanking", - "Player1: Combat: Roll 6 (infantry, +1 combat value), 6 (infantry, no bonus) for combined combat value of 13 and gets 2 hits against defending units, Combat modifiers: Flanking added 1 extra die, Lost 1 infantry at C2", - "Player2: Combat: Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value) for combined combat value of 14 and gets 1 hits against attacking units, Lost 2 infantry at C1", + "Player1: Tactics: Reveal Tactics Card Flanking", + "Player1: Combat: Roll 6 (infantry, +1 combat value), 6 (infantry, no bonus) for combined combat value of 13 and gets 2 hits against defending units, Combat modifiers: Flanking added 1 extra die", + "Player2: Combat: Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value) for combined combat value of 14 and gets 1 hits against attacking units", "Player1: Choose Casualties: Remove all attacking units", "Player2: Choose Casualties: Remove all defending units", "Battle ends in a draw" - ] + ], + "active_events": 1 } ] } diff --git a/server/tests/test_games/tactics_cards/heavy_resistance.outcome1.json b/server/tests/test_games/tactics_cards/heavy_resistance.outcome1.json index e4314915..4e9e73db 100644 --- a/server/tests/test_games/tactics_cards/heavy_resistance.outcome1.json +++ b/server/tests/test_games/tactics_cards/heavy_resistance.outcome1.json @@ -199,11 +199,28 @@ } } }, + "player": 0, + "origin": { + "Ability": "Move" + }, "items": [ + { + "player": 0, + "Move": { + "units": { + "infantry": 1 + }, + "start": "C2", + "destination": "C1" + }, + "origin": { + "Ability": "Move" + } + }, { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Move" @@ -211,7 +228,6 @@ } ], "log": [ - "Player1: Move: marched 1 infantry from C2 to C1, Pay 1 action", "Combat round 1", "Player1: Combat: Attacking with 1 infantry", "Player2: Combat: Defending with 2 infantry" @@ -227,6 +243,7 @@ ] } }, + "player": 1, "combat_stats": { "round": 1, "battleground": "City", @@ -275,7 +292,8 @@ "units": { "infantry": 1 }, - "balance": "Loss" + "balance": "Loss", + "position": "C2" }, "origin": { "Ability": "Combat" @@ -287,7 +305,8 @@ "units": { "infantry": 1 }, - "balance": "Loss" + "balance": "Loss", + "position": "C1" }, "origin": { "Ability": "Combat" @@ -295,13 +314,14 @@ } ], "log": [ - "Player2: Tactics: Play an action card face down, Reveal Tactics Card Heavy Resistance", - "Player1: Combat: Roll 6 (infantry, +1 combat value) for combined combat value of 6 and gets 1 hits against defending units, Combat modifiers: Heavy resistance added -1 to combat value for each unit, Lost 1 infantry at C2", - "Player2: Combat: Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value) for combined combat value of 14 and gets 1 hits against attacking units, Lost 1 infantry at C1", + "Player2: Tactics: Reveal Tactics Card Heavy Resistance", + "Player1: Combat: Roll 6 (infantry, +1 combat value) for combined combat value of 6 and gets 1 hits against defending units, Combat modifiers: Heavy resistance added -1 to combat value for each unit", + "Player2: Combat: Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value) for combined combat value of 14 and gets 1 hits against attacking units", "Player1: Choose Casualties: Remove all attacking units", "Player2: Choose Casualties: Remove 1 of their defending units", "Defender wins" - ] + ], + "active_events": 1 } ] } diff --git a/server/tests/test_games/tactics_cards/high_ground.outcome2.json b/server/tests/test_games/tactics_cards/high_ground.outcome2.json index 8006e1f9..d9bcf20d 100644 --- a/server/tests/test_games/tactics_cards/high_ground.outcome2.json +++ b/server/tests/test_games/tactics_cards/high_ground.outcome2.json @@ -199,11 +199,28 @@ } } }, + "player": 0, + "origin": { + "Ability": "Move" + }, "items": [ + { + "player": 0, + "Move": { + "units": { + "infantry": 1 + }, + "start": "C2", + "destination": "C1" + }, + "origin": { + "Ability": "Move" + } + }, { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Move" @@ -211,7 +228,6 @@ } ], "log": [ - "Player1: Move: marched 1 infantry from C2 to C1, Pay 1 action", "Combat round 1", "Player1: Combat: Attacking with 1 infantry", "Player2: Combat: Defending with 2 infantry" @@ -227,6 +243,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -244,9 +261,7 @@ } } ], - "log": [ - "Player1: Tactics: Play an action card face down" - ] + "active_events": 1 }, { "action": { @@ -258,6 +273,7 @@ ] } }, + "player": 1, "combat_stats": { "round": 1, "battleground": "City", @@ -306,7 +322,8 @@ "units": { "infantry": 1 }, - "balance": "Loss" + "balance": "Loss", + "position": "C2" }, "origin": { "Ability": "Combat" @@ -318,7 +335,8 @@ "units": { "infantry": 1 }, - "balance": "Loss" + "balance": "Loss", + "position": "C1" }, "origin": { "Ability": "Combat" @@ -326,14 +344,15 @@ } ], "log": [ - "Player2: Tactics: Play an action card face down, Reveal Tactics Card High Ground", "Player1: Tactics: Reveal Tactics Card Peltasts", - "Player1: Combat: Roll 6 (infantry, no bonus) for combined combat value of 6 and gets 1 hits against defending units, Combat modifiers: Peltasts rolled a 6 and ignored a hit, High Ground prevents opponent from using combat abilities, Lost 1 infantry at C2", - "Player2: Combat: Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value) for combined combat value of 14 and gets 1 hits against attacking units, Lost 1 infantry at C1", + "Player2: Tactics: Reveal Tactics Card High Ground", + "Player1: Combat: Roll 6 (infantry, no bonus) for combined combat value of 6 and gets 1 hits against defending units, Combat modifiers: Peltasts rolled a 6 and ignored a hit, High Ground prevents opponent from using combat abilities", + "Player2: Combat: Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value) for combined combat value of 14 and gets 1 hits against attacking units", "Player1: Choose Casualties: Remove all attacking units", "Player2: Choose Casualties: Remove 1 of their defending units", "Defender wins" - ] + ], + "active_events": 1 } ] } diff --git a/server/tests/test_games/tactics_cards/high_morale.outcome1.json b/server/tests/test_games/tactics_cards/high_morale.outcome1.json index 7cd1fcf6..5b86b11d 100644 --- a/server/tests/test_games/tactics_cards/high_morale.outcome1.json +++ b/server/tests/test_games/tactics_cards/high_morale.outcome1.json @@ -199,11 +199,28 @@ } } }, + "player": 0, + "origin": { + "Ability": "Move" + }, "items": [ + { + "player": 0, + "Move": { + "units": { + "infantry": 1 + }, + "start": "C2", + "destination": "C1" + }, + "origin": { + "Ability": "Move" + } + }, { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Move" @@ -211,7 +228,6 @@ } ], "log": [ - "Player1: Move: marched 1 infantry from C2 to C1, Pay 1 action", "Combat round 1", "Player1: Combat: Attacking with 1 infantry", "Player2: Combat: Defending with 2 infantry" @@ -227,6 +243,7 @@ ] } }, + "player": 0, "combat_stats": { "round": 1, "battleground": "City", @@ -275,7 +292,8 @@ "units": { "infantry": 1 }, - "balance": "Loss" + "balance": "Loss", + "position": "C2" }, "origin": { "Ability": "Combat" @@ -287,7 +305,8 @@ "units": { "infantry": 1 }, - "balance": "Loss" + "balance": "Loss", + "position": "C1" }, "origin": { "Ability": "Combat" @@ -295,13 +314,14 @@ } ], "log": [ - "Player1: Tactics: Play an action card face down, Reveal Tactics Card High Morale", - "Player1: Combat: Roll 6 (infantry, +1 combat value) for combined combat value of 9 and gets 1 hits against defending units, Combat modifiers: High Morale added 2 combat value, Lost 1 infantry at C2", - "Player2: Combat: Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value) for combined combat value of 14 and gets 1 hits against attacking units, Lost 1 infantry at C1", + "Player1: Tactics: Reveal Tactics Card High Morale", + "Player1: Combat: Roll 6 (infantry, +1 combat value) for combined combat value of 9 and gets 1 hits against defending units, Combat modifiers: High Morale added 2 combat value", + "Player2: Combat: Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value) for combined combat value of 14 and gets 1 hits against attacking units", "Player1: Choose Casualties: Remove all attacking units", "Player2: Choose Casualties: Remove 1 of their defending units", "Defender wins" - ] + ], + "active_events": 1 } ] } diff --git a/server/tests/test_games/tactics_cards/martyr.outcome4.json b/server/tests/test_games/tactics_cards/martyr.outcome4.json index fd7e478f..7cfd1214 100644 --- a/server/tests/test_games/tactics_cards/martyr.outcome4.json +++ b/server/tests/test_games/tactics_cards/martyr.outcome4.json @@ -265,8 +265,26 @@ } } }, + "player": 0, + "origin": { + "Ability": "Move" + }, + "items": [ + { + "player": 0, + "Move": { + "units": { + "ships": 2 + }, + "start": "C3", + "destination": "D2" + }, + "origin": { + "Ability": "Move" + } + } + ], "log": [ - "Player1: Move: sailed 2 ships from C3 to D2", "Combat round 1", "Player1: Combat: Attacking with 1 settler, 2 ships, 1 cavalry and 1 elephant", "Player2: Combat: Defending with 1 ship" @@ -282,6 +300,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -299,9 +318,7 @@ } } ], - "log": [ - "Player1: Tactics: Play an action card face down" - ] + "active_events": 1 }, { "action": { @@ -313,6 +330,7 @@ ] } }, + "player": 1, "items": [ { "player": 1, @@ -331,10 +349,11 @@ } ], "log": [ - "Player2: Tactics: Play an action card face down, Reveal Tactics Card Martyr", "Player1: Tactics: Reveal Tactics Card High Morale", + "Player2: Tactics: Reveal Tactics Card Martyr", "Player1: Martyr: Cannot use tactics card (but it is still discarded)" - ] + ], + "active_events": 1 }, { "action": { @@ -344,6 +363,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -351,7 +371,8 @@ "units": { "ships": 1 }, - "balance": "Loss" + "balance": "Loss", + "position": "C3" }, "origin": { "Ability": "Combat" @@ -359,9 +380,9 @@ } ], "log": [ - "Player1: Martyr: Player1 sacrifices a ship", - "Player1: Combat: Lost 1 ship at C3" - ] + "Player1: Martyr: Player1 sacrifices a ship" + ], + "active_events": 1 }, { "action": { @@ -371,6 +392,7 @@ ] } }, + "player": 0, "combat_stats": { "round": 1, "battleground": "Sea", @@ -403,7 +425,8 @@ "units": { "elephants": 1 }, - "balance": "Loss" + "balance": "Loss", + "position": "C3" }, "origin": { "Ability": "Choose Casualties (carried units)" @@ -415,7 +438,8 @@ "units": { "ships": 1 }, - "balance": "Loss" + "balance": "Loss", + "position": "D2" }, "origin": { "Ability": "Combat" @@ -423,12 +447,13 @@ } ], "log": [ - "Player1: Choose Casualties (carried units): Killed carried units: 1 elephant, Lost 1 elephant at C3", + "Player1: Choose Casualties (carried units): Killed carried units: 1 elephant", "Player2: Martyr: Player2 sacrifices a ship", - "Player2: Combat: Lost 1 ship at D2, Roll no dice for combined combat value of 0 and gets 0 hits against attacking units", "Player1: Combat: Roll 6 (infantry, no bonus) for combined combat value of 6 and gets 0 hits against defending units", + "Player2: Combat: Roll no dice for combined combat value of 0 and gets 0 hits against attacking units", "Attacker wins" - ] + ], + "active_events": 2 } ] } diff --git a/server/tests/test_games/tactics_cards/martyr2.json b/server/tests/test_games/tactics_cards/martyr2.json index 3ae13ac7..32bd2d30 100644 --- a/server/tests/test_games/tactics_cards/martyr2.json +++ b/server/tests/test_games/tactics_cards/martyr2.json @@ -612,7 +612,8 @@ } } } - } + }, + "player": 0 }, { "action": { @@ -626,7 +627,8 @@ "embark_carrier_id": 8 } } - } + }, + "player": 0 }, { "action": { @@ -639,7 +641,8 @@ "embark_carrier_id": 9 } } - } + }, + "player": 0 }, { "action": { @@ -652,12 +655,14 @@ "embark_carrier_id": 9 } } - } + }, + "player": 0 }, { "action": { "Movement": "Stop" - } + }, + "player": 0 }, { "action": { @@ -672,7 +677,8 @@ "destination": "D5" } } - } + }, + "player": 0 }, { "action": { @@ -683,7 +689,8 @@ } ] } - } + }, + "player": 0 }, { "action": { @@ -694,7 +701,8 @@ } ] } - } + }, + "player": 0 } ] } diff --git a/server/tests/test_games/tactics_cards/martyr2.outcome1.json b/server/tests/test_games/tactics_cards/martyr2.outcome1.json index d1bf0484..11fc1e9d 100644 --- a/server/tests/test_games/tactics_cards/martyr2.outcome1.json +++ b/server/tests/test_games/tactics_cards/martyr2.outcome1.json @@ -517,7 +517,8 @@ } } } - } + }, + "player": 0 }, { "action": { @@ -531,7 +532,8 @@ "embark_carrier_id": 8 } } - } + }, + "player": 0 }, { "action": { @@ -544,7 +546,8 @@ "embark_carrier_id": 9 } } - } + }, + "player": 0 }, { "action": { @@ -557,12 +560,14 @@ "embark_carrier_id": 9 } } - } + }, + "player": 0 }, { "action": { "Movement": "Stop" - } + }, + "player": 0 }, { "action": { @@ -577,7 +582,8 @@ "destination": "D5" } } - } + }, + "player": 0 }, { "action": { @@ -588,7 +594,8 @@ } ] } - } + }, + "player": 0 }, { "action": { @@ -599,7 +606,8 @@ } ] } - } + }, + "player": 0 }, { "action": { @@ -609,6 +617,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -616,7 +625,8 @@ "units": { "leader": "Alexander" }, - "balance": "Loss" + "balance": "Loss", + "position": "D4" }, "origin": { "Ability": "Combat" @@ -624,9 +634,9 @@ } ], "log": [ - "Spock: Martyr: Spock sacrifices an Alexander the Great", - "Spock: Combat: Lost Alexander the Great at D4" - ] + "Spock: Martyr: Spock sacrifices an Alexander the Great" + ], + "active_events": 1 }, { "action": { @@ -636,6 +646,7 @@ ] } }, + "player": 1, "combat_stats": { "round": 1, "battleground": "City", @@ -674,7 +685,8 @@ "units": { "leader": "Wu" }, - "balance": "Loss" + "balance": "Loss", + "position": "D5" }, "origin": { "Ability": "Combat" @@ -686,7 +698,8 @@ "units": { "infantry": 3 }, - "balance": "Loss" + "balance": "Loss", + "position": "D4" }, "origin": { "Ability": "Combat" @@ -698,7 +711,8 @@ "units": { "infantry": 3 }, - "balance": "Loss" + "balance": "Loss", + "position": "D5" }, "origin": { "Ability": "Combat" @@ -707,13 +721,14 @@ ], "log": [ "AlphaZero: Martyr: AlphaZero sacrifices a Wu Zetian", - "AlphaZero: Combat: Lost Wu Zetian at D5, Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value), 2 (elephant, no bonus) for combined combat value of 18 and gets 3 hits against attacking units, Combat modifiers: Wu Zetian adds +2 combat value, Lost 3 infantry at D5", - "Spock: Combat: Roll 2 (elephant, no bonus), 5 (infantry, +1 combat value), 5 (infantry, +1 combat value) for combined combat value of 16 and gets 3 hits against defending units, Combat modifiers: Ruler of the World adds 2 combat value, Lost 3 infantry at D4", + "Spock: Combat: Roll 2 (elephant, no bonus), 5 (infantry, +1 combat value), 5 (infantry, +1 combat value) for combined combat value of 16 and gets 3 hits against defending units, Combat modifiers: Ruler of the World adds 2 combat value", + "AlphaZero: Combat: Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value), 2 (elephant, no bonus) for combined combat value of 18 and gets 3 hits against attacking units, Combat modifiers: Wu Zetian adds +2 combat value", "Spock: Choose Casualties: Remove all attacking units", "AlphaZero: Fireworks: Not enough resources, no payment made.", "AlphaZero: Choose Casualties: Remove all defending units", "Battle ends in a draw" - ] + ], + "active_events": 1 } ] } diff --git a/server/tests/test_games/tactics_cards/peltasts.outcome.json b/server/tests/test_games/tactics_cards/peltasts.outcome.json index 90d9d7f3..b2dc78a3 100644 --- a/server/tests/test_games/tactics_cards/peltasts.outcome.json +++ b/server/tests/test_games/tactics_cards/peltasts.outcome.json @@ -272,11 +272,28 @@ } } }, + "player": 0, + "origin": { + "Ability": "Move" + }, "items": [ + { + "player": 0, + "Move": { + "units": { + "infantry": 1 + }, + "start": "C2", + "destination": "C1" + }, + "origin": { + "Ability": "Move" + } + }, { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Move" @@ -284,7 +301,6 @@ } ], "log": [ - "Player1: Move: marched 1 infantry from C2 to C1, Pay 1 action", "Combat round 1", "Player1: Combat: Attacking with 1 infantry", "Player2: Combat: Defending with 2 infantry" diff --git a/server/tests/test_games/tactics_cards/peltasts.outcome1.json b/server/tests/test_games/tactics_cards/peltasts.outcome1.json index 0ee28c98..7207fa35 100644 --- a/server/tests/test_games/tactics_cards/peltasts.outcome1.json +++ b/server/tests/test_games/tactics_cards/peltasts.outcome1.json @@ -199,11 +199,28 @@ } } }, + "player": 0, + "origin": { + "Ability": "Move" + }, "items": [ + { + "player": 0, + "Move": { + "units": { + "infantry": 1 + }, + "start": "C2", + "destination": "C1" + }, + "origin": { + "Ability": "Move" + } + }, { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Move" @@ -211,7 +228,6 @@ } ], "log": [ - "Player1: Move: marched 1 infantry from C2 to C1, Pay 1 action", "Combat round 1", "Player1: Combat: Attacking with 1 infantry", "Player2: Combat: Defending with 2 infantry" @@ -227,6 +243,7 @@ ] } }, + "player": 0, "combat_stats": { "round": 1, "battleground": "City", @@ -275,7 +292,8 @@ "units": { "infantry": 1 }, - "balance": "Loss" + "balance": "Loss", + "position": "C2" }, "origin": { "Ability": "Combat" @@ -287,7 +305,8 @@ "units": { "infantry": 1 }, - "balance": "Loss" + "balance": "Loss", + "position": "C1" }, "origin": { "Ability": "Combat" @@ -295,13 +314,14 @@ } ], "log": [ - "Player1: Tactics: Play an action card face down, Reveal Tactics Card Peltasts", - "Player1: Combat: Roll 6 (infantry, +1 combat value) for combined combat value of 7 and gets 1 hits against defending units, Combat modifiers: Peltasts rolled a 6 and ignored a hit, Lost 1 infantry at C2", - "Player2: Combat: Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value) for combined combat value of 14 and gets 1 hits against attacking units, Lost 1 infantry at C1", + "Player1: Tactics: Reveal Tactics Card Peltasts", + "Player1: Combat: Roll 6 (infantry, +1 combat value) for combined combat value of 7 and gets 1 hits against defending units, Combat modifiers: Peltasts rolled a 6 and ignored a hit", + "Player2: Combat: Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value) for combined combat value of 14 and gets 1 hits against attacking units", "Player1: Choose Casualties: Remove all attacking units", "Player2: Choose Casualties: Remove 1 of their defending units", "Defender wins" - ] + ], + "active_events": 1 } ] } diff --git a/server/tests/test_games/tactics_cards/scout.outcome2.json b/server/tests/test_games/tactics_cards/scout.outcome2.json index 9515a1ae..aa8cf0a9 100644 --- a/server/tests/test_games/tactics_cards/scout.outcome2.json +++ b/server/tests/test_games/tactics_cards/scout.outcome2.json @@ -202,11 +202,28 @@ } } }, + "player": 0, + "origin": { + "Ability": "Move" + }, "items": [ + { + "player": 0, + "Move": { + "units": { + "infantry": 1 + }, + "start": "C2", + "destination": "C1" + }, + "origin": { + "Ability": "Move" + } + }, { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Move" @@ -214,7 +231,6 @@ } ], "log": [ - "Player1: Move: marched 1 infantry from C2 to C1, Pay 1 action", "Combat round 1", "Player1: Combat: Attacking with 1 infantry", "Player2: Combat: Defending with 2 infantry" @@ -230,6 +246,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -247,9 +264,7 @@ } } ], - "log": [ - "Player1: Tactics: Play an action card face down" - ] + "active_events": 1 }, { "action": { @@ -261,6 +276,7 @@ ] } }, + "player": 1, "combat_stats": { "round": 1, "battleground": "City", @@ -324,7 +340,8 @@ "units": { "infantry": 1 }, - "balance": "Loss" + "balance": "Loss", + "position": "C2" }, "origin": { "Ability": "Combat" @@ -336,7 +353,8 @@ "units": { "infantry": 1 }, - "balance": "Loss" + "balance": "Loss", + "position": "C1" }, "origin": { "Ability": "Combat" @@ -344,15 +362,16 @@ } ], "log": [ - "Player2: Tactics: Play an action card face down, Reveal Tactics Card Scout", "Player1: Tactics: Reveal Tactics Card Peltasts", - "Player2: Scout: Ignore the enemy tactics, Gain Quick Advance/Peltasts from discard pile", - "Player1: Combat: Roll 6 (infantry, +1 combat value) for combined combat value of 7 and gets 1 hits against defending units, Lost 1 infantry at C2", - "Player2: Combat: Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value) for combined combat value of 14 and gets 1 hits against attacking units, Lost 1 infantry at C1", + "Player2: Tactics: Reveal Tactics Card Scout", + "Player2: Scout: Ignore the enemy tactics", + "Player1: Combat: Roll 6 (infantry, +1 combat value) for combined combat value of 7 and gets 1 hits against defending units", + "Player2: Combat: Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value) for combined combat value of 14 and gets 1 hits against attacking units", "Player1: Choose Casualties: Remove all attacking units", "Player2: Choose Casualties: Remove 1 of their defending units", "Defender wins" - ] + ], + "active_events": 1 } ] } diff --git a/server/tests/test_games/tactics_cards/siege.outcome1.json b/server/tests/test_games/tactics_cards/siege.outcome1.json index d362f785..c31cf078 100644 --- a/server/tests/test_games/tactics_cards/siege.outcome1.json +++ b/server/tests/test_games/tactics_cards/siege.outcome1.json @@ -197,11 +197,28 @@ } } }, + "player": 0, + "origin": { + "Ability": "Move" + }, "items": [ + { + "player": 0, + "Move": { + "units": { + "infantry": 1 + }, + "start": "C2", + "destination": "C1" + }, + "origin": { + "Ability": "Move" + } + }, { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Move" @@ -209,7 +226,6 @@ } ], "log": [ - "Player1: Move: marched 1 infantry from C2 to C1, Pay 1 action", "Combat round 1", "Player1: Combat: Attacking with 1 infantry", "Player2: Combat: Defending with 2 infantry" @@ -225,6 +241,7 @@ ] } }, + "player": 0, "combat_stats": { "round": 1, "battleground": "City", @@ -273,7 +290,8 @@ "units": { "infantry": 1 }, - "balance": "Loss" + "balance": "Loss", + "position": "C2" }, "origin": { "Ability": "Combat" @@ -285,7 +303,8 @@ "units": { "infantry": 1 }, - "balance": "Loss" + "balance": "Loss", + "position": "C1" }, "origin": { "Ability": "Combat" @@ -293,13 +312,14 @@ } ], "log": [ - "Player1: Tactics: Play an action card face down, Reveal Tactics Card Siege", - "Player1: Combat: Roll 6 (infantry, +1 combat value) for combined combat value of 8 and gets 1 hits against defending units, Combat modifiers: Siege added 1 to combat value, Lost 1 infantry at C2", - "Player2: Combat: Roll 6 (infantry, no bonus), 6 (infantry, no bonus) for combined combat value of 12 and gets 1 hits against attacking units, Combat modifiers: Siege prevents opponent from using combat abilities, Lost 1 infantry at C1", + "Player1: Tactics: Reveal Tactics Card Siege", + "Player1: Combat: Roll 6 (infantry, +1 combat value) for combined combat value of 8 and gets 1 hits against defending units, Combat modifiers: Siege added 1 to combat value", + "Player2: Combat: Roll 6 (infantry, no bonus), 6 (infantry, no bonus) for combined combat value of 12 and gets 1 hits against attacking units, Combat modifiers: Siege prevents opponent from using combat abilities", "Player1: Choose Casualties: Remove all attacking units", "Player2: Choose Casualties: Remove 1 of their defending units", "Defender wins" - ] + ], + "active_events": 1 } ] } diff --git a/server/tests/test_games/tactics_cards/surprise.outcome1.json b/server/tests/test_games/tactics_cards/surprise.outcome1.json index 0b581fc7..fba6606c 100644 --- a/server/tests/test_games/tactics_cards/surprise.outcome1.json +++ b/server/tests/test_games/tactics_cards/surprise.outcome1.json @@ -202,11 +202,28 @@ } } }, + "player": 0, + "origin": { + "Ability": "Move" + }, "items": [ + { + "player": 0, + "Move": { + "units": { + "infantry": 1 + }, + "start": "C2", + "destination": "C1" + }, + "origin": { + "Ability": "Move" + } + }, { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Move" @@ -214,7 +231,6 @@ } ], "log": [ - "Player1: Move: marched 1 infantry from C2 to C1, Pay 1 action", "Combat round 1", "Player1: Combat: Attacking with 1 infantry", "Player2: Combat: Defending with 2 infantry" @@ -230,6 +246,7 @@ ] } }, + "player": 1, "combat_stats": { "round": 1, "battleground": "City", @@ -293,7 +310,8 @@ "units": { "infantry": 1 }, - "balance": "Loss" + "balance": "Loss", + "position": "C2" }, "origin": { "Ability": "Combat" @@ -305,7 +323,8 @@ "units": { "infantry": 1 }, - "balance": "Loss" + "balance": "Loss", + "position": "C1" }, "origin": { "Ability": "Combat" @@ -313,14 +332,15 @@ } ], "log": [ - "Player2: Tactics: Play an action card face down, Reveal Tactics Card Surprise", - "Player1: Combat: Roll 6 (infantry, +1 combat value) for combined combat value of 7 and gets 1 hits against defending units, Lost 1 infantry at C2", - "Player2: Combat: Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value) for combined combat value of 15 and gets 1 hits against attacking units, Combat modifiers: Surprise added 1 to combat value, Lost 1 infantry at C1", - "Player2: Surprise: Draw 1 action card for Surprise tactics, Draw an action card", + "Player2: Tactics: Reveal Tactics Card Surprise", + "Player1: Combat: Roll 6 (infantry, +1 combat value) for combined combat value of 7 and gets 1 hits against defending units", + "Player2: Combat: Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value) for combined combat value of 15 and gets 1 hits against attacking units, Combat modifiers: Surprise added 1 to combat value", + "Player2: Surprise: Draw 1 action card for Surprise tactics", "Player1: Choose Casualties: Remove all attacking units", "Player2: Choose Casualties: Remove 1 of their defending units", "Defender wins" - ] + ], + "active_events": 1 } ] } diff --git a/server/tests/test_games/tactics_cards/wedge_formation.outcome1.json b/server/tests/test_games/tactics_cards/wedge_formation.outcome1.json index b53063ab..f51cfe5a 100644 --- a/server/tests/test_games/tactics_cards/wedge_formation.outcome1.json +++ b/server/tests/test_games/tactics_cards/wedge_formation.outcome1.json @@ -199,11 +199,28 @@ } } }, + "player": 0, + "origin": { + "Ability": "Move" + }, "items": [ + { + "player": 0, + "Move": { + "units": { + "infantry": 1 + }, + "start": "C2", + "destination": "C1" + }, + "origin": { + "Ability": "Move" + } + }, { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Move" @@ -211,7 +228,6 @@ } ], "log": [ - "Player1: Move: marched 1 infantry from C2 to C1, Pay 1 action", "Combat round 1", "Player1: Combat: Attacking with 1 infantry", "Player2: Combat: Defending with 2 infantry" @@ -227,6 +243,7 @@ ] } }, + "player": 0, "combat_stats": { "round": 1, "battleground": "City", @@ -275,7 +292,8 @@ "units": { "infantry": 1 }, - "balance": "Loss" + "balance": "Loss", + "position": "C2" }, "origin": { "Ability": "Combat" @@ -287,7 +305,8 @@ "units": { "infantry": 1 }, - "balance": "Loss" + "balance": "Loss", + "position": "C1" }, "origin": { "Ability": "Combat" @@ -295,13 +314,14 @@ } ], "log": [ - "Player1: Tactics: Play an action card face down, Reveal Tactics Card Wedge Formation", - "Player1: Combat: Roll 6 (infantry, +1 combat value) for combined combat value of 9 and gets 1 hits against defending units, Combat modifiers: Wedge Formation added 2 combat value, Lost 1 infantry at C2", - "Player2: Combat: Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value) for combined combat value of 14 and gets 1 hits against attacking units, Lost 1 infantry at C1", + "Player1: Tactics: Reveal Tactics Card Wedge Formation", + "Player1: Combat: Roll 6 (infantry, +1 combat value) for combined combat value of 9 and gets 1 hits against defending units, Combat modifiers: Wedge Formation added 2 combat value", + "Player2: Combat: Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value) for combined combat value of 14 and gets 1 hits against attacking units", "Player1: Choose Casualties: Remove all attacking units", "Player2: Choose Casualties: Remove 1 of their defending units", "Defender wins" - ] + ], + "active_events": 1 } ] } diff --git a/server/tests/test_games/wonders/colosseum.outcome6.json b/server/tests/test_games/wonders/colosseum.outcome6.json index 6df35566..fe2b035a 100644 --- a/server/tests/test_games/wonders/colosseum.outcome6.json +++ b/server/tests/test_games/wonders/colosseum.outcome6.json @@ -208,11 +208,15 @@ "WonderCard": "Colosseum" } }, + "player": 0, + "origin": { + "Wonder": "Colosseum" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Build Wonder" @@ -220,7 +224,7 @@ } ], "log": [ - "Player1: Build Wonder: Play the wonder card Colosseum, Decided to build Colosseum in city A1, Pay 1 action" + "Player1: Build Wonder: Play the wonder card Colosseum, Decided to build Colosseum in city A1" ] }, { @@ -236,6 +240,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -246,7 +251,7 @@ "ore": 5, "culture_tokens": 5 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Wonder": "Colosseum" @@ -274,17 +279,15 @@ "Wonder": "Colosseum" }, "balance": "Gain", - "position": "A1" + "position": "A1", + "port_position": null }, "origin": { "Ability": "Build Wonder" } } ], - "log": [ - "Player1: Colosseum: Pay 3 food, 4 wood, 5 ore and 5 culture tokens", - "Player1: Build Wonder: Play Colosseum, Gain Colosseum at A1" - ] + "active_events": 1 }, { "action": { @@ -295,19 +298,20 @@ } } }, + "player": 0, + "origin": { + "Advance": "Sports" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Advance": "Sports" } } - ], - "log": [ - "Player1: Sports: Pay 1 action, Start action in city C2" ] }, { @@ -320,6 +324,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -327,7 +332,7 @@ "resources": { "mood_tokens": 1 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Sports" @@ -344,9 +349,7 @@ } } ], - "log": [ - "Player1: Sports: Pay 1 mood token, City C2 became Happy" - ] + "active_events": 1 }, { "action": { @@ -362,11 +365,30 @@ } } }, + "player": 0, + "origin": { + "Ability": "Move" + }, "items": [ + { + "player": 0, + "Move": { + "units": { + "infantry": 2, + "cavalry": 1, + "elephants": 1 + }, + "start": "C2", + "destination": "C1" + }, + "origin": { + "Ability": "Move" + } + }, { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Move" @@ -374,7 +396,6 @@ } ], "log": [ - "Player1: Move: marched 2 infantry, 1 cavalry and 1 elephant from C2 to C1, Pay 1 action", "Combat round 1", "Player1: Combat: Attacking with 2 infantry, 1 cavalry and 1 elephant, Roll 4 (elephant, -1 hits, no combat value), 4 (elephant, no bonus), 3 (elephant, no bonus), 2 (elephant, no bonus) for combined combat value of 9 and gets 1 hits against defending units", "Player2: Combat: Defending with 2 infantry, Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value) for combined combat value of 14 and gets 1 hits against attacking units" @@ -390,6 +411,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -397,7 +419,7 @@ "resources": { "culture_tokens": 1 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Wonder": "Colosseum" @@ -405,9 +427,10 @@ } ], "log": [ - "Player1: Colosseum: Pay 1 culture token, Increase combat value by 1, scoring an extra hit", + "Player1: Colosseum: Increase combat value by 1, scoring an extra hit", "Player1: Choose Casualties: Remove 1 of their attacking units" - ] + ], + "active_events": 1 }, { "action": { @@ -417,6 +440,7 @@ ] } }, + "player": 0, "combat_stats": { "round": 1, "battleground": "City", @@ -452,7 +476,8 @@ "units": { "infantry": 1 }, - "balance": "Loss" + "balance": "Loss", + "position": "C2" }, "origin": { "Ability": "Combat" @@ -464,7 +489,8 @@ "units": { "infantry": 2 }, - "balance": "Loss" + "balance": "Loss", + "position": "C1" }, "origin": { "Ability": "Combat" @@ -487,7 +513,8 @@ "Structure": { "structure": "CityCenter", "balance": "Loss", - "position": "C1" + "position": "C1", + "port_position": null }, "origin": { "Ability": "Combat" @@ -498,20 +525,31 @@ "Structure": { "structure": "CityCenter", "balance": "Gain", - "position": "C1" + "position": "C1", + "port_position": null }, "origin": { "Ability": "Combat" } + }, + { + "player": 0, + "Resources": { + "resources": { + "gold": 1 + }, + "balance": "Loss" + }, + "origin": { + "Ability": "Waste" + } } ], "log": [ - "Player1: Combat: Lost 1 infantry at C2, Gain 1 gold, Gain city C1", "Player2: Choose Casualties: Remove all defending units", - "Player2: Combat: Lost 2 infantry at C1, Lose city C1", - "Attacker wins", - "Player1: Waste: Could not store 1 gold" - ] + "Attacker wins" + ], + "active_events": 1 } ] } diff --git a/server/tests/test_games/wonders/great_gardens.outcome3.json b/server/tests/test_games/wonders/great_gardens.outcome3.json index 68bcb956..81c8b505 100644 --- a/server/tests/test_games/wonders/great_gardens.outcome3.json +++ b/server/tests/test_games/wonders/great_gardens.outcome3.json @@ -212,11 +212,15 @@ "WonderCard": "GreatGardens" } }, + "player": 0, + "origin": { + "Wonder": "GreatGardens" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Build Wonder" @@ -224,7 +228,7 @@ } ], "log": [ - "Player1: Build Wonder: Play the wonder card Great Gardens, Decided to build Great Gardens in city A1, Pay 1 action" + "Player1: Build Wonder: Play the wonder card Great Gardens, Decided to build Great Gardens in city A1" ] }, { @@ -240,6 +244,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -250,7 +255,7 @@ "ore": 2, "culture_tokens": 5 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Wonder": "GreatGardens" @@ -278,24 +283,34 @@ "Wonder": "GreatGardens" }, "balance": "Gain", - "position": "A1" + "position": "A1", + "port_position": null }, "origin": { "Ability": "Build Wonder" } } ], - "log": [ - "Player1: Great Gardens: Pay 5 food, 5 wood, 2 ore and 5 culture tokens", - "Player1: Build Wonder: Play Great Gardens, Gain Great Gardens at A1" - ] + "active_events": 1 }, { "action": { "Playing": "EndTurn" }, - "log": [ - "Player1: End Turn: 1 actions left" + "player": 0, + "origin": { + "Ability": "End Turn" + }, + "items": [ + { + "player": 0, + "Action": { + "balance": "Loss" + }, + "origin": { + "Ability": "End Turn" + } + } ] } ] @@ -317,19 +332,33 @@ } } }, + "player": 1, + "origin": { + "Ability": "Move" + }, "items": [ + { + "player": 1, + "Move": { + "units": { + "infantry": 2 + }, + "start": "C1", + "destination": "B1" + }, + "origin": { + "Ability": "Move" + } + }, { "player": 1, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Move" } } - ], - "log": [ - "Player2: Move: marched 2 infantry from C1 to B1, Pay 1 action" ] } ] diff --git a/server/tests/test_games/wonders/great_mausoleum.outcome4.json b/server/tests/test_games/wonders/great_mausoleum.outcome4.json index d422ddc3..d73779cc 100644 --- a/server/tests/test_games/wonders/great_mausoleum.outcome4.json +++ b/server/tests/test_games/wonders/great_mausoleum.outcome4.json @@ -243,11 +243,15 @@ "ActionCard": 123 } }, + "player": 0, + "origin": { + "CivilCard": 123 + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "CivilCard": 123 @@ -268,10 +272,6 @@ "Ability": "Action Card" } } - ], - "log": [ - "Player1: Elder Statesman: Pay 1 action", - "Player1: Action Card: Play Elder Statesman" ] }, { @@ -280,6 +280,7 @@ "Bool": true } }, + "player": 0, "items": [ { "player": 0, @@ -298,8 +299,9 @@ } ], "log": [ - "Player1: Great Mausoleum: Draw Inspiration/Peltasts from the discard pile, Gain Inspiration/Peltasts from discard pile" - ] + "Player1: Great Mausoleum: Draw Inspiration/Peltasts from the discard pile" + ], + "active_events": 1 }, { "action": { @@ -307,6 +309,7 @@ "Bool": false } }, + "player": 0, "items": [ { "player": 0, @@ -324,9 +327,7 @@ } } ], - "log": [ - "Player1: Great Mausoleum: Draw an action card" - ] + "active_events": 1 }, { "action": { @@ -339,11 +340,15 @@ } } }, + "player": 0, + "origin": { + "Ability": "Advance" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -355,7 +360,7 @@ "resources": { "ideas": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -377,17 +382,15 @@ "player": 0, "Advance": { "advance": "Storage", - "take_incident_token": true, + "incident_token": { + "Take": 0 + }, "balance": "Gain" }, "origin": { "Ability": "Advance" } } - ], - "log": [ - "Player1: Advance: Pay 1 action, Pay 2 ideas, Gain Storage and take an event token (triggering an incident)", - "Player1: Storage: Gain 1 mood token" ] }, { @@ -396,10 +399,12 @@ "Bool": true } }, + "player": 0, "log": [ "Player1: Great Mausoleum: Drew Pestilence from the discard pile", "A new game event has been triggered: Pestilence" - ] + ], + "active_events": 1 } ] } diff --git a/server/tests/test_games/wonders/great_statue.outcome2.json b/server/tests/test_games/wonders/great_statue.outcome2.json index daaeaf01..998e280f 100644 --- a/server/tests/test_games/wonders/great_statue.outcome2.json +++ b/server/tests/test_games/wonders/great_statue.outcome2.json @@ -93,7 +93,9 @@ "incident_tokens": 2, "next_unit_id": 8, "played_once_per_turn_actions": [ - "GreatStatue" + { + "Custom": "GreatStatue" + } ] }, { @@ -211,11 +213,15 @@ "WonderCard": "GreatStatue" } }, + "player": 0, + "origin": { + "Wonder": "GreatStatue" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Build Wonder" @@ -223,7 +229,7 @@ } ], "log": [ - "Player1: Build Wonder: Play the wonder card Great Statue, Decided to build Great Statue in city A1, Pay 1 action" + "Player1: Build Wonder: Play the wonder card Great Statue, Decided to build Great Statue in city A1" ] }, { @@ -239,6 +245,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -249,7 +256,7 @@ "ore": 5, "culture_tokens": 5 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Wonder": "GreatStatue" @@ -277,7 +284,8 @@ "Wonder": "GreatStatue" }, "balance": "Gain", - "position": "A1" + "position": "A1", + "port_position": null }, "origin": { "Ability": "Build Wonder" @@ -299,10 +307,7 @@ } } ], - "log": [ - "Player1: Great Statue: Pay 3 food, 4 wood, 5 ore and 5 culture tokens, Draw an objective card", - "Player1: Build Wonder: Play Great Statue, Gain Great Statue at A1" - ] + "active_events": 1 }, { "action": { @@ -312,6 +317,10 @@ } } }, + "player": 0, + "origin": { + "Wonder": "GreatStatue" + }, "items": [ { "player": 0, @@ -337,9 +346,6 @@ "Ability": "Great Statue" } } - ], - "log": [ - "Player1: Great Statue: Start action, Discard Large Civilization/Draft, Gain 1 action" ] } ] diff --git a/server/tests/test_games/wonders/great_wall.outcome3.json b/server/tests/test_games/wonders/great_wall.outcome3.json index 31e3b3a6..c0432c05 100644 --- a/server/tests/test_games/wonders/great_wall.outcome3.json +++ b/server/tests/test_games/wonders/great_wall.outcome3.json @@ -252,6 +252,10 @@ } } }, + "player": 1, + "origin": { + "Ability": "Move" + }, "combat_stats": { "round": 1, "battleground": "City", @@ -281,10 +285,23 @@ "city_mood": "Happy" }, "items": [ + { + "player": 1, + "Move": { + "units": { + "infantry": 2 + }, + "start": "B1", + "destination": "A1" + }, + "origin": { + "Ability": "Move" + } + }, { "player": 1, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Move" @@ -296,7 +313,8 @@ "units": { "infantry": 2 }, - "balance": "Loss" + "balance": "Loss", + "position": "B1" }, "origin": { "Ability": "Combat" @@ -309,7 +327,8 @@ "infantry": 1, "cavalry": 1 }, - "balance": "Loss" + "balance": "Loss", + "position": "A1" }, "origin": { "Ability": "Combat" @@ -317,10 +336,9 @@ } ], "log": [ - "Player2: Move: marched 2 infantry from B1 to A1, Pay 1 action", "Combat round 1", - "Player2: Combat: Attacking with 2 infantry, Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value) for combined combat value of 14 and gets 2 hits against defending units, Lost 2 infantry at B1", - "Player1: Combat: Defending with 1 infantry and 1 cavalry, Roll 6 (infantry, +1 combat value), 6 (infantry, no bonus) for combined combat value of 11 and gets 2 hits against attacking units, Combat modifiers: Great Wall gives -2 combat value in the first round, Lost 1 infantry and 1 cavalry at A1", + "Player2: Combat: Attacking with 2 infantry, Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value) for combined combat value of 14 and gets 2 hits against defending units", + "Player1: Combat: Defending with 1 infantry and 1 cavalry, Roll 6 (infantry, +1 combat value), 6 (infantry, no bonus) for combined combat value of 11 and gets 2 hits against attacking units, Combat modifiers: Great Wall gives -2 combat value in the first round", "Player2: Choose Casualties: Remove all attacking units", "Player1: Choose Casualties: Remove all defending units", "Battle ends in a draw" @@ -330,8 +348,20 @@ "action": { "Playing": "EndTurn" }, - "log": [ - "Player2: End Turn: 1 actions left" + "player": 1, + "origin": { + "Ability": "End Turn" + }, + "items": [ + { + "player": 1, + "Action": { + "balance": "Loss" + }, + "origin": { + "Ability": "End Turn" + } + } ] } ] @@ -357,6 +387,10 @@ } } }, + "player": 0, + "origin": { + "Ability": "Advance" + }, "combat_stats": { "round": 1, "battleground": "City", @@ -386,7 +420,7 @@ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -398,7 +432,7 @@ "resources": { "ideas": 2 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Advance" @@ -420,7 +454,9 @@ "player": 0, "Advance": { "advance": "Storage", - "take_incident_token": true, + "incident_token": { + "Take": 0 + }, "balance": "Gain" }, "origin": { @@ -434,7 +470,8 @@ "infantry": 1, "elephants": 1 }, - "balance": "Loss" + "balance": "Loss", + "position": "A2" }, "origin": { "Ability": "Combat" @@ -458,7 +495,8 @@ "units": { "infantry": 1 }, - "balance": "Gain" + "balance": "Gain", + "position": "B3" }, "origin": { "Incident": 40 @@ -491,16 +529,10 @@ } ], "log": [ - "Player1: Advance: Pay 1 action, Pay 2 ideas, Gain Storage and take an event token (triggering an incident)", - "Player1: Storage: Gain 1 mood token", "A new game event has been triggered: Envoy", - "Player1: Envoy: Base effect: Barbarians move, Barbarians move from A2 to A1: 1 infantry and 1 elephant, Gain 1 idea and 1 culture token, No wonders left to draw as public wonder card", + "Player1: Envoy: Base effect: Barbarians move, Barbarians move from A2 to A1: 1 infantry and 1 elephant, No wonders left to draw as public wonder card", "Player1: Great Wall: Automatic win against Barbarians", - "Barbarians: Combat: Lost 1 infantry and 1 elephant at A2", - "Player1: Barbarian battle: Gain 1 gold", - "Barbarians: Envoy: Gain 1 infantry at B3", - "No Wonders left to draw", - "Player2: Envoy: Gain 1 culture token" + "No Wonders left to draw" ] }, { @@ -509,6 +541,10 @@ "ActionCard": 5 } }, + "player": 0, + "origin": { + "CivilCard": 5 + }, "items": [ { "player": 0, @@ -535,10 +571,6 @@ "CivilCard": 5 } } - ], - "log": [ - "Player1: Action Card: Play Hero General/Wedge Formation", - "Player1: Hero General: City C2 became Neutral" ] } ] diff --git a/server/tests/test_games/wonders/library.outcome2.json b/server/tests/test_games/wonders/library.outcome2.json index c61841a0..e8bb2a3f 100644 --- a/server/tests/test_games/wonders/library.outcome2.json +++ b/server/tests/test_games/wonders/library.outcome2.json @@ -202,7 +202,9 @@ ], "next_unit_id": 8, "played_once_per_turn_actions": [ - "GreatLibrary" + { + "Custom": "GreatLibrary" + } ] }, { @@ -321,9 +323,10 @@ } } }, - "log": [ - "Player1: Great Library: Start action" - ] + "player": 0, + "origin": { + "Wonder": "GreatLibrary" + } }, { "action": { @@ -331,9 +334,11 @@ "SelectAdvance": "Engineering" } }, + "player": 0, "log": [ "Player1: Great Library: Use Engineering for the turn" - ] + ], + "active_events": 1 }, { "action": { @@ -341,11 +346,15 @@ "WonderCard": "Pyramids" } }, + "player": 0, + "origin": { + "Wonder": "Pyramids" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Build Wonder" @@ -353,7 +362,7 @@ } ], "log": [ - "Player1: Build Wonder: Play the wonder card Pyramids, Decided to build Pyramids in city C2, Pay 1 action" + "Player1: Build Wonder: Play the wonder card Pyramids, Decided to build Pyramids in city C2" ] } ] diff --git a/server/tests/test_games/wonders/lighthouse.outcome3.json b/server/tests/test_games/wonders/lighthouse.outcome3.json index 142b7587..9f83f9db 100644 --- a/server/tests/test_games/wonders/lighthouse.outcome3.json +++ b/server/tests/test_games/wonders/lighthouse.outcome3.json @@ -219,11 +219,15 @@ "WonderCard": "GreatLighthouse" } }, + "player": 0, + "origin": { + "Wonder": "GreatLighthouse" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Build Wonder" @@ -231,7 +235,7 @@ } ], "log": [ - "Player1: Build Wonder: Play the wonder card Great Lighthouse, Decided to build Great Lighthouse in city A1, Pay 1 action" + "Player1: Build Wonder: Play the wonder card Great Lighthouse, Decided to build Great Lighthouse in city A1" ] }, { @@ -247,6 +251,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -257,7 +262,7 @@ "ore": 4, "culture_tokens": 5 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Wonder": "GreatLighthouse" @@ -285,17 +290,15 @@ "Wonder": "GreatLighthouse" }, "balance": "Gain", - "position": "A1" + "position": "A1", + "port_position": null }, "origin": { "Ability": "Build Wonder" } } ], - "log": [ - "Player1: Great Lighthouse: Pay 3 food, 5 wood, 4 ore and 5 culture tokens", - "Player1: Build Wonder: Play Great Lighthouse, Gain Great Lighthouse at A1" - ] + "active_events": 1 }, { "action": { @@ -305,9 +308,10 @@ } } }, - "log": [ - "Player1: Great Lighthouse: Start action" - ] + "player": 0, + "origin": { + "Wonder": "GreatLighthouse" + } }, { "action": { @@ -317,6 +321,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -334,16 +339,15 @@ "units": { "ships": 1 }, - "balance": "Gain" + "balance": "Gain", + "position": "C3" }, "origin": { "Ability": "Great Lighthouse" } } ], - "log": [ - "Player1: Great Lighthouse: City A1 became Neutral, Gain 1 ship at C3" - ] + "active_events": 1 } ] } diff --git a/server/tests/test_games/wonders/pyramids.outcome2.json b/server/tests/test_games/wonders/pyramids.outcome2.json index 7753e6f6..d963ba9c 100644 --- a/server/tests/test_games/wonders/pyramids.outcome2.json +++ b/server/tests/test_games/wonders/pyramids.outcome2.json @@ -212,11 +212,15 @@ "WonderCard": "Pyramids" } }, + "player": 0, + "origin": { + "Wonder": "Pyramids" + }, "items": [ { "player": 0, "Action": { - "balance": "Loss" + "balance": "Pay" }, "origin": { "Ability": "Build Wonder" @@ -224,7 +228,7 @@ } ], "log": [ - "Player1: Build Wonder: Play the wonder card Pyramids, Decided to build Pyramids in city A1, Pay 1 action" + "Player1: Build Wonder: Play the wonder card Pyramids, Decided to build Pyramids in city A1" ] }, { @@ -241,6 +245,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -252,7 +257,7 @@ "gold": 1, "culture_tokens": 5 }, - "balance": "Loss" + "balance": "Pay" }, "origin": { "Wonder": "Pyramids" @@ -280,17 +285,15 @@ "Wonder": "Pyramids" }, "balance": "Gain", - "position": "A1" + "position": "A1", + "port_position": null }, "origin": { "Ability": "Build Wonder" } } ], - "log": [ - "Player1: Pyramids: Pay 2 food, 3 wood, 6 ore, 1 gold and 5 culture tokens", - "Player1: Build Wonder: Play Pyramids, Gain Pyramids at A1" - ] + "active_events": 1 }, { "action": { @@ -302,6 +305,7 @@ ] } }, + "player": 0, "items": [ { "player": 0, @@ -321,9 +325,7 @@ } } ], - "log": [ - "Player1: Complete Objectives: Complete Magnificent Culture using Magnificent Culture/Outpost" - ] + "active_events": 1 } ] } From 6da7f1b749e26e99eae4c73c4178f3abdf1d3261 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 8 Sep 2025 01:05:51 +0000 Subject: [PATCH 007/189] Update dependency mise to v2025.9.5 (#341) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Update | Change | |---|---|---| | [mise](https://redirect.github.com/jdx/mise) | minor | `v2025.8.20` -> `v2025.9.5` | --- ### Release Notes
jdx/mise (mise) ### [`v2025.9.5`](https://redirect.github.com/jdx/mise/releases/tag/v2025.9.5) [Compare Source](https://redirect.github.com/jdx/mise/compare/v2025.9.4...v2025.9.5) ##### 🚀 Features - **(task)** add timeout support for task execution by [@​jdx](https://redirect.github.com/jdx) in [#​6216](https://redirect.github.com/jdx/mise/pull/6216) - **(task)** sub-tasks in run lists by [@​jdx](https://redirect.github.com/jdx) in [#​6212](https://redirect.github.com/jdx/mise/pull/6212) ##### 🐛 Bug Fixes - **(task)** remove MISE\_TASK\_UNNEST functionality by [@​jdx](https://redirect.github.com/jdx) in [#​6217](https://redirect.github.com/jdx/mise/pull/6217) ##### Chore - fix npm publish action by [@​jdx](https://redirect.github.com/jdx) in [14f4b09](https://redirect.github.com/jdx/mise/commit/14f4b09982cfa09139f172f302939f46d2cb0872) - fix cloudflare release action by [@​jdx](https://redirect.github.com/jdx) in [00afa25](https://redirect.github.com/jdx/mise/commit/00afa2563d4368963bcacce11ebddbe05f45b4d7) - fix git-cliff for release notes by [@​jdx](https://redirect.github.com/jdx) in [15a9aed](https://redirect.github.com/jdx/mise/commit/15a9aede95c8ad953842c206df3b6c9a3960100f) ### [`v2025.9.4`](https://redirect.github.com/jdx/mise/releases/tag/v2025.9.4) [Compare Source](https://redirect.github.com/jdx/mise/compare/v2025.9.2...v2025.9.4) ##### What's Changed - chore: release 2025.9.4 by [@​jdx](https://redirect.github.com/jdx) in [#​6214](https://redirect.github.com/jdx/mise/pull/6214) **Full Changelog**: ### [`v2025.9.2`](https://redirect.github.com/jdx/mise/releases/tag/v2025.9.2) [Compare Source](https://redirect.github.com/jdx/mise/compare/v2025.9.1...v2025.9.2) chore: release 2025.9.2 ([#​6192](https://redirect.github.com/jdx/mise/issues/6192)) ##### 🐛 Bug Fixes - **(ci)** set required environment variables for npm publishing by [@​jdx](https://redirect.github.com/jdx) in [#​6189](https://redirect.github.com/jdx/mise/pull/6189) - **(release)** clean up extra newlines in release notes formatting by [@​jdx](https://redirect.github.com/jdx) in [#​6190](https://redirect.github.com/jdx/mise/pull/6190) - **(release)** add proper newline after New Contributors section in cliff template by [@​jdx](https://redirect.github.com/jdx) in [#​6194](https://redirect.github.com/jdx/mise/pull/6194) - **(release)** fix changelog formatting to remove extra blank lines by [@​jdx](https://redirect.github.com/jdx) in [#​6195](https://redirect.github.com/jdx/mise/pull/6195) - **(release)** restore proper newline after New Contributors section by [@​jdx](https://redirect.github.com/jdx) in [#​6196](https://redirect.github.com/jdx/mise/pull/6196) ##### 🚜 Refactor - **(ci)** split release workflow into separate specialized workflows by [@​jdx](https://redirect.github.com/jdx) in [#​6193](https://redirect.github.com/jdx/mise/pull/6193) ##### Chore - **(release)** require GitHub Actions environment for release-plz script by [@​jdx](https://redirect.github.com/jdx) in [#​6191](https://redirect.github.com/jdx/mise/pull/6191) ### [`v2025.9.1`](https://redirect.github.com/jdx/mise/releases/tag/v2025.9.1) [Compare Source](https://redirect.github.com/jdx/mise/compare/v2025.9.0...v2025.9.1) chore: release 2025.9.1 ([#​6186](https://redirect.github.com/jdx/mise/issues/6186)) ##### 🐛 Bug Fixes - python nested venv path order by [@​elvismacak](https://redirect.github.com/elvismacak) in [#​6124](https://redirect.github.com/jdx/mise/pull/6124) - resolve immutable release workflow and VERSION file timing issues by [@​jdx](https://redirect.github.com/jdx) in [#​6187](https://redirect.github.com/jdx/mise/pull/6187) ##### New Contributors - [@​elvismacak](https://redirect.github.com/elvismacak) made their first contribution in [#​6124](https://redirect.github.com/jdx/mise/pull/6124) ### [`v2025.9.0`](https://redirect.github.com/jdx/mise/releases/tag/v2025.9.0) [Compare Source](https://redirect.github.com/jdx/mise/compare/v2025.8.21...v2025.9.0) ##### 🚀 Features - allow set/unset backend aliases by [@​roele](https://redirect.github.com/roele) in [#​6172](https://redirect.github.com/jdx/mise/pull/6172) ##### 🐛 Bug Fixes - **(aqua)** respect order of asset\_strs by [@​risu729](https://redirect.github.com/risu729) in [#​6143](https://redirect.github.com/jdx/mise/pull/6143) - **(java)** treat freebsd as linux (assuming linux compatability) by [@​roele](https://redirect.github.com/roele) in [#​6161](https://redirect.github.com/jdx/mise/pull/6161) - **(nushell/windows)** Fix $env.PATH getting converted to a string by [@​zackyancey](https://redirect.github.com/zackyancey) in [#​6157](https://redirect.github.com/jdx/mise/pull/6157) - **(sync)** create uv\_versions\_path dir if it doesn't exist by [@​risu729](https://redirect.github.com/risu729) in [#​6142](https://redirect.github.com/jdx/mise/pull/6142) - **(ubi)** show relevent error messages for v-prefixed tags by [@​risu729](https://redirect.github.com/risu729) in [#​6183](https://redirect.github.com/jdx/mise/pull/6183) - remove nodejs/golang alias migrate code by [@​risu729](https://redirect.github.com/risu729) in [#​6141](https://redirect.github.com/jdx/mise/pull/6141) - mise activate not working on powershell v5 by [@​L0RD-ZER0](https://redirect.github.com/L0RD-ZER0) in [#​6168](https://redirect.github.com/jdx/mise/pull/6168) ##### 📚 Documentation - **(task)** remove word "additional" to avoid confusions by [@​risu729](https://redirect.github.com/risu729) in [#​6159](https://redirect.github.com/jdx/mise/pull/6159) ##### Chore - update Cargo.lock by [@​risu729](https://redirect.github.com/risu729) in [#​6184](https://redirect.github.com/jdx/mise/pull/6184) ##### New Contributors - [@​zackyancey](https://redirect.github.com/zackyancey) made their first contribution in [#​6157](https://redirect.github.com/jdx/mise/pull/6157) ### [`v2025.8.21`](https://redirect.github.com/jdx/mise/releases/tag/v2025.8.21) [Compare Source](https://redirect.github.com/jdx/mise/compare/v2025.8.20...v2025.8.21) ##### 📦 Registry - prefer 1password asdf plugin for ls-remote by [@​risu729](https://redirect.github.com/risu729) in [#​6116](https://redirect.github.com/jdx/mise/pull/6116) ##### 🚀 Features - allow use of templates in task confirmation by [@​roele](https://redirect.github.com/roele) in [#​6129](https://redirect.github.com/jdx/mise/pull/6129) ##### 🐛 Bug Fixes - task confirmation does not handle SIGINT appropriately by [@​roele](https://redirect.github.com/roele) in [#​6126](https://redirect.github.com/jdx/mise/pull/6126) ##### 📚 Documentation - Split run command so that copy button is useful by [@​anujdeshpande](https://redirect.github.com/anujdeshpande) in [#​6099](https://redirect.github.com/jdx/mise/pull/6099) ##### New Contributors - [@​anujdeshpande](https://redirect.github.com/anujdeshpande) made their first contribution in [#​6099](https://redirect.github.com/jdx/mise/pull/6099)
--- ### Configuration 📅 **Schedule**: Branch creation - "before 4am on monday" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/bench.yml | 4 ++-- .github/workflows/check.yml | 4 ++-- .github/workflows/release.yml | 4 ++-- .github/workflows/test-release.yml | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index 69ca018d..a5c87ea3 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -10,7 +10,7 @@ jobs: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - uses: jdx/mise-action@5ac50f778e26fac95da98d50503682459e86d566 # v3.2.0 with: - version: v2025.8.20 - sha256: a9df29caa68f83b5ba5b0c0c70acfeb559e91c3e8b67afb9eda28c6f97a27bfb + version: v2025.9.5 + sha256: 3c3781caaebd53918e8fe671cac1ad1f6d636460bdf9bff3b8a3570ef532e7e1 - name: Random actions test run: mise run random-actions diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 738be29a..67d9d448 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -10,7 +10,7 @@ jobs: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - uses: jdx/mise-action@5ac50f778e26fac95da98d50503682459e86d566 # v3.2.0 with: - version: v2025.8.20 - sha256: a9df29caa68f83b5ba5b0c0c70acfeb559e91c3e8b67afb9eda28c6f97a27bfb + version: v2025.9.5 + sha256: 3c3781caaebd53918e8fe671cac1ad1f6d636460bdf9bff3b8a3570ef532e7e1 - name: Check all run: mise run ci diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a62f9df3..6534ff9c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,8 +14,8 @@ jobs: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - uses: jdx/mise-action@5ac50f778e26fac95da98d50503682459e86d566 # v3.2.0 with: - version: v2025.8.20 - sha256: a9df29caa68f83b5ba5b0c0c70acfeb559e91c3e8b67afb9eda28c6f97a27bfb + version: v2025.9.5 + sha256: 3c3781caaebd53918e8fe671cac1ad1f6d636460bdf9bff3b8a3570ef532e7e1 - name: Use Node.js ${{ env.node_version }} uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5 with: diff --git a/.github/workflows/test-release.yml b/.github/workflows/test-release.yml index 32636bfa..c2baf776 100644 --- a/.github/workflows/test-release.yml +++ b/.github/workflows/test-release.yml @@ -10,8 +10,8 @@ jobs: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - uses: jdx/mise-action@5ac50f778e26fac95da98d50503682459e86d566 # v3.2.0 with: - version: v2025.8.20 - sha256: a9df29caa68f83b5ba5b0c0c70acfeb559e91c3e8b67afb9eda28c6f97a27bfb + version: v2025.9.5 + sha256: 3c3781caaebd53918e8fe671cac1ad1f6d636460bdf9bff3b8a3570ef532e7e1 - name: Test server release run: mise run build-remote-server - name: Test client release From 5f2b894bbd966bc2fe604a6d9c7ffaa8e1e8bab1 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 8 Sep 2025 11:52:54 +0000 Subject: [PATCH 008/189] Update Rust crate chrono to v0.4.42 (#342) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [chrono](https://redirect.github.com/chronotope/chrono) | dependencies | patch | `0.4.41` -> `0.4.42` | --- ### Release Notes
chronotope/chrono (chrono) ### [`v0.4.42`](https://redirect.github.com/chronotope/chrono/releases/tag/v0.4.42): 0.4.42 [Compare Source](https://redirect.github.com/chronotope/chrono/compare/v0.4.41...v0.4.42) #### What's Changed - Add fuzzer for DateTime::parse\_from\_str by [@​tyler92](https://redirect.github.com/tyler92) in [#​1700](https://redirect.github.com/chronotope/chrono/pull/1700) - Fix wrong amount of micro/milliseconds by [@​nmlt](https://redirect.github.com/nmlt) in [#​1703](https://redirect.github.com/chronotope/chrono/pull/1703) - Add warning about MappedLocalTime and wasm by [@​lutzky](https://redirect.github.com/lutzky) in [#​1702](https://redirect.github.com/chronotope/chrono/pull/1702) - Fix incorrect parsing of fixed-length second fractions by [@​chris-leach](https://redirect.github.com/chris-leach) in [#​1705](https://redirect.github.com/chronotope/chrono/pull/1705) - Fix cfgs for `wasm32-linux` support by [@​arjunr2](https://redirect.github.com/arjunr2) in [#​1707](https://redirect.github.com/chronotope/chrono/pull/1707) - Fix OpenHarmony's `tzdata` parsing by [@​ldm0](https://redirect.github.com/ldm0) in [#​1679](https://redirect.github.com/chronotope/chrono/pull/1679) - Convert NaiveDate to/from days since unix epoch by [@​findepi](https://redirect.github.com/findepi) in [#​1715](https://redirect.github.com/chronotope/chrono/pull/1715) - Add `?Sized` bound to related methods of `DelayedFormat::write_to` by [@​Huliiiiii](https://redirect.github.com/Huliiiiii) in [#​1721](https://redirect.github.com/chronotope/chrono/pull/1721) - Add `from_timestamp_secs` method to `DateTime` by [@​jasonaowen](https://redirect.github.com/jasonaowen) in [#​1719](https://redirect.github.com/chronotope/chrono/pull/1719) - Migrate to core::error::Error by [@​benbrittain](https://redirect.github.com/benbrittain) in [#​1704](https://redirect.github.com/chronotope/chrono/pull/1704) - Upgrade to windows-bindgen 0.63 by [@​djc](https://redirect.github.com/djc) in [#​1730](https://redirect.github.com/chronotope/chrono/pull/1730) - strftime: simplify error handling by [@​djc](https://redirect.github.com/djc) in [#​1731](https://redirect.github.com/chronotope/chrono/pull/1731)
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- Cargo.lock | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 93214e5b..ca70303c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -29,12 +29,6 @@ version = "0.2.21" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "683d7910e743518b0e34f1186f92494becacb047c7b6bf616c96772180fef923" -[[package]] -name = "android-tzdata" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e999941b234f3131b00bc13c22d06e8c5ff726d1b6318ac7eb276997bbb4fef0" - [[package]] name = "android_system_properties" version = "0.1.5" @@ -269,16 +263,15 @@ checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724" [[package]] name = "chrono" -version = "0.4.41" +version = "0.4.42" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c469d952047f47f91b68d1cba3f10d63c11d73e4636f24f08daf0278abf01c4d" +checksum = "145052bdd345b87320e369255277e3fb5152762ad123a901ef5c262dd38fe8d2" dependencies = [ - "android-tzdata", "iana-time-zone", "js-sys", "num-traits", "wasm-bindgen", - "windows-link", + "windows-link 0.2.0", ] [[package]] @@ -2431,7 +2424,7 @@ checksum = "c0fdd3ddb90610c7638aa2b3a3ab2904fb9e5cdbecc643ddb3647212781c4ae3" dependencies = [ "windows-implement", "windows-interface", - "windows-link", + "windows-link 0.1.3", "windows-result", "windows-strings", ] @@ -2464,13 +2457,19 @@ version = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5e6ad25900d524eaabdbbb96d20b4311e1e7ae1699af4fb28c17ae66c80d798a" +[[package]] +name = "windows-link" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "45e46c0661abb7180e7b9c281db115305d49ca1709ab8242adf09666d2173c65" + [[package]] name = "windows-result" version = "0.3.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "56f42bd332cc6c8eac5af113fc0c1fd6a8fd2aa08a0119358686e5160d0586c6" dependencies = [ - "windows-link", + "windows-link 0.1.3", ] [[package]] @@ -2479,7 +2478,7 @@ version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "56e6c93f3a0c3b36176cb1327a4958a0353d5d166c2a35cb268ace15e91d3b57" dependencies = [ - "windows-link", + "windows-link 0.1.3", ] [[package]] From 69f3de9420718867643dff7dc4c5f129222e10b7 Mon Sep 17 00:00:00 2001 From: Gregor Zeitlinger Date: Thu, 11 Sep 2025 08:18:33 +0200 Subject: [PATCH 009/189] log improvements (#343) --- client/assets/lightning-svgrepo-com.png | Bin 0 -> 5308 bytes client/src/action_buttons.rs | 2 +- client/src/advance_ui.rs | 2 +- client/src/assets.rs | 2 + client/src/cards_ui.rs | 2 +- client/src/city_ui.rs | 2 +- client/src/client.rs | 3 +- client/src/custom_phase_ui.rs | 2 +- client/src/dialog_ui.rs | 2 +- client/src/event_ui.rs | 2 +- client/src/info_ui.rs | 2 +- client/src/layout_ui.rs | 2 +- client/src/lib.rs | 2 + client/src/local_client/bin/main.rs | 2 +- client/src/log_collector.rs | 383 ++++++++++++-- client/src/log_ui.rs | 474 ++++++++---------- client/src/map_ui.rs | 2 +- client/src/multiline.rs | 36 ++ client/src/payment_ui.rs | 2 +- client/src/player_ui.rs | 5 +- client/src/recruit_unit_ui.rs | 2 +- client/src/richtext.rs | 185 +++++++ client/src/tooltip.rs | 2 +- client/src/unit_ui.rs | 2 +- server/src/action.rs | 18 +- server/src/action_card.rs | 5 +- server/src/advance.rs | 2 +- server/src/card.rs | 7 +- server/src/combat.rs | 69 ++- server/src/combat_listeners.rs | 22 +- server/src/combat_roll.rs | 86 ++-- server/src/content/ability.rs | 3 +- .../content/action_cards/cultural_takeover.rs | 7 +- .../src/content/action_cards/mercenaries.rs | 2 +- server/src/content/advances/autocracy.rs | 4 +- server/src/content/advances/culture.rs | 4 +- server/src/content/advances/theocracy.rs | 11 +- server/src/content/civilizations/rome.rs | 4 +- server/src/content/civilizations/vikings.rs | 2 +- server/src/content/persistent_events.rs | 9 +- server/src/content/tactics_cards.rs | 14 +- server/src/content/wonders.rs | 4 +- server/src/cultural_influence.rs | 174 ++++--- server/src/events.rs | 2 +- server/src/explore.rs | 2 +- server/src/game.rs | 34 +- server/src/game_setup.rs | 36 +- server/src/incident.rs | 34 +- server/src/lib.rs | 2 +- server/src/log.rs | 67 ++- server/src/movement.rs | 2 +- server/src/objective_card.rs | 1 + server/src/player_events.rs | 15 +- server/src/playing_actions.rs | 10 +- server/src/resource.rs | 2 +- server/src/undo.rs | 1 - server/src/wonder.rs | 18 +- .../action_cards/assassination.outcome3.json | 10 +- .../city_development.outcome2.json | 20 +- .../cultural_takeover.outcome2.json | 56 ++- .../action_cards/explorer.outcome4.json | 20 +- .../action_cards/hero_general.outcome1.json | 110 +++- .../action_cards/hero_general.outcome5.json | 110 +++- .../mass_production.outcome1.json | 10 +- .../action_cards/mercenaries.outcome2.json | 119 ++++- .../action_cards/negotiations.outcome4.json | 109 +++- .../action_cards/new_ideas.outcome2.json | 10 +- .../production_focus.outcome1.json | 10 +- .../test_games/action_cards/spy.outcome2.json | 20 +- .../action_cards/synergies.outcome4.json | 20 +- .../action_cards/teach_us.outcome1.json | 98 +++- .../action_cards/tech_trade.outcome.json | 10 +- .../advances/civil_liberties.outcome1.json | 10 +- .../advances/collect_husbandry.outcome.json | 10 +- ..._influence_instant_with_arts.outcome1.json | 43 +- ...al_influence_with_conversion.outcome2.json | 71 ++- .../test_games/advances/dogma.outcome3.json | 46 +- .../advances/forced_labor.outcome2.json | 10 +- ...ease_happiness_voting_rituals.outcome.json | 10 +- .../advances/priesthood.outcome.json | 10 +- .../advances/priesthood.outcome1.json | 10 +- .../sanitation_and_draft.outcome.json | 18 +- .../advances/trade_routes.outcome.json | 17 +- .../trade_routes_with_currency.outcome1.json | 24 +- .../test_games/base/collect.outcome.json | 10 +- .../test_games/base/construct.outcome.json | 10 +- .../base/cultural_influence.outcome2.json | 56 ++- .../cultural_influence_instant.outcome.json | 43 +- server/tests/test_games/base/new_game.json | 44 +- .../base/same_player_undo.outcome.json | 10 +- .../china/expansion.outcome.json | 10 +- .../civilizations/china/fast_war.outcome.json | 71 ++- .../china/fireworks.outcome1.json | 81 ++- .../china/great_wall.outcome4.json | 34 +- .../china/imperial_army.outcome1.json | 10 +- .../civilizations/china/rice.outcome.json | 10 +- .../greece/city_states.outcome1.json | 18 +- .../greece/hellenistic_culture.outcome1.json | 43 +- .../civilizations/greece/idol.outcome2.json | 20 +- .../greece/ruler_of_the_world.outcome.json | 74 ++- .../greece/sparta_battle.outcome.json | 87 +++- .../greece/sparta_draft.outcome.json | 18 +- .../rome/aqueduct_discount.outcome.json | 10 +- .../civilizations/rome/captivi.outcome.json | 10 +- .../civilizations/rome/civilizer.outcome.json | 74 ++- .../civilizations/rome/emperor.outcome.json | 74 ++- .../rome/proconsul.outcome1.json | 71 ++- .../rome/provinces.outcome2.json | 10 +- .../vikings/explorer.outcome1.json | 10 +- .../vikings/longships.outcome1.json | 179 ++++++- .../vikings/new_colonies.outcome2.json | 88 +++- .../civilizations/vikings/raids.outcome2.json | 35 +- .../vikings/ship_construction.outcome3.json | 27 +- .../combat/capture_and_raze_city.outcome.json | 108 +++- .../combat/combat_all_modifiers.outcome5.json | 155 +++++- .../combat/combat_fanaticism.outcome.json | 101 +++- .../direct_capture_city_fortress.outcome.json | 108 +++- ...irect_capture_city_metallurgy.outcome.json | 100 +++- ...ct_capture_city_only_fortress.outcome.json | 84 +++- .../combat/recruit_combat.outcome6.json | 177 ++++++- .../remove_casualties_attacker.outcome.json | 85 +++- .../remove_casualties_attacker.outcome1.json | 103 +++- .../remove_casualties_defender.outcome.json | 84 +++- .../test_games/combat/retreat.outcome.json | 74 ++- .../test_games/combat/retreat.outcome1.json | 84 +++- .../test_games/combat/retreat_no.outcome.json | 74 ++- .../combat/retreat_no.outcome1.json | 166 +++++- .../combat/ship_combat.outcome.json | 71 ++- .../combat/ship_combat.outcome1.json | 97 +++- .../combat/ship_combat_war_ships.outcome.json | 89 +++- .../incidents/barbarians_attack.outcome.json | 123 ++++- .../incidents/barbarians_move.outcome1.json | 43 +- .../barbarians_recapture_city.outcome.json | 108 +++- .../incidents/barbarians_spawn.outcome1.json | 18 +- .../civil_war/civil_war.outcome.json | 10 +- .../incidents/civil_war/envoy.outcome.json | 39 +- .../incidents/civil_war/envoy.outcome1.json | 39 +- .../incidents/civil_war/envoy.outcome2.json | 39 +- .../civil_war/migration.outcome.json | 18 +- .../civil_war/revolution.outcome3.json | 52 +- .../incidents/civil_war/uprising.outcome.json | 13 +- .../civil_war/uprising.outcome1.json | 20 +- .../earthquake/earthquake.outcome3.json | 69 ++- .../incidents/earthquake/flood.outcome.json | 13 +- .../incidents/earthquake/flood.outcome1.json | 13 +- .../incidents/earthquake/flood.outcome2.json | 10 +- .../incidents/earthquake/volcano.outcome.json | 13 +- .../earthquake/volcano.outcome1.json | 49 +- .../incidents/exhausted_land.outcome.json | 13 +- .../incidents/exhausted_land.outcome1.json | 20 +- .../incidents/famine/epidemics.outcome.json | 13 +- .../incidents/famine/epidemics.outcome1.json | 10 +- .../incidents/famine/famine.outcome.json | 39 +- .../famine/famine_protected.outcome.json | 32 +- .../incidents/famine/pestilence.outcome.json | 13 +- .../incidents/famine/pestilence.outcome1.json | 23 +- .../incidents/famine/pestilence.outcome2.json | 23 +- .../incidents/famine/pestilence.outcome3.json | 30 +- .../good_year/good_year.outcome1.json | 18 +- .../good_year/successful_year.outcome.json | 25 +- .../great_architect.outcome4.json | 31 +- .../great_persons/great_artist.outcome.json | 42 +- .../great_persons/great_artist.outcome1.json | 39 +- .../great_persons/great_artist.outcome2.json | 39 +- .../great_persons/great_artist.outcome3.json | 49 +- .../great_persons/great_athlete.outcome4.json | 35 +- .../great_diplomat.outcome2.json | 129 ++++- .../great_engineer.outcome5.json | 62 ++- .../great_explorer.outcome6.json | 48 +- .../great_merchant.outcome3.json | 49 +- .../great_persons/great_prophet.outcome4.json | 42 +- .../great_persons/great_seer.outcome4.json | 25 +- .../great_persons/great_warlord.outcome3.json | 92 +++- .../pandemics/black_death.outcome.json | 13 +- .../pandemics/black_death.outcome1.json | 20 +- .../incidents/pandemics/drought.outcome.json | 18 +- .../incidents/pandemics/fire.outcome.json | 13 +- .../incidents/pandemics/fire.outcome1.json | 10 +- .../pandemics/pandemics.outcome.json | 42 +- .../pandemics/pandemics.outcome1.json | 42 +- .../pandemics/pandemics.outcome2.json | 52 +- .../pandemics/pandemics.outcome3.json | 59 ++- .../incidents/pandemics/vermin.outcome.json | 26 +- .../incidents/pirates_spawn.outcome.json | 23 +- .../incidents/pirates_spawn.outcome1.json | 31 +- .../incidents/pirates_spawn.outcome2.json | 31 +- .../incidents/pirates_spawn.outcome3.json | 41 +- .../incidents/pirates_spawn.outcome4.json | 56 ++- .../trade/era_of_stability.outcome.json | 21 +- .../trade/era_of_stability.outcome1.json | 21 +- .../trade/era_of_stability.outcome2.json | 18 +- .../trade/flourishing_trade.outcome.json | 25 +- .../incidents/trade/reformation.outcome.json | 49 +- .../incidents/trade/reformation.outcome1.json | 46 +- .../trade/scientific_trade.outcome.json | 25 +- .../incidents/trojan/anarchy.outcome.json | 18 +- .../incidents/trojan/anarchy.outcome1.json | 44 +- .../incidents/trojan/guillotine.outcome2.json | 59 ++- .../trojan/solar_eclipse.outcome2.json | 83 ++- .../trojan/trojan_horse.outcome2.json | 146 +++++- .../movement/explore_resolution.outcome1.json | 10 +- ...hip_explore_move_not_possible.outcome.json | 17 +- .../ship_explore_teleport.outcome.json | 10 +- .../ship_navigate_explore_move.outcome.json | 10 +- .../instant/conqueror.outcome3.json | 115 ++++- .../instant/defiance.outcome3.json | 170 ++++++- .../instant/draft.outcome2.json | 20 +- .../instant/scavenger.outcome1.json | 84 +++- .../instant/warmonger.outcome4.json | 336 ++++++++++++- .../status_phase/colony.outcome2.json | 10 +- .../status_phase/large_civ.outcome8.json | 10 +- .../change_government.outcome2.json | 42 +- .../determine_first_player.outcome.json | 10 +- .../status_phase/end_game.outcome.json | 10 +- .../status_phase/free_advance.outcome2.json | 10 +- .../keep_government.outcome1.json | 20 +- .../raze_city_decline.outcome.json | 10 +- .../raze_city_decline.outcome1.json | 20 +- .../tactics_cards/archers.outcome2.json | 111 +++- .../tactics_cards/encircled.outcome.json | 21 +- .../tactics_cards/encircled.outcome1.json | 106 +++- .../tactics_cards/flanking.outcome1.json | 104 +++- .../heavy_resistance.outcome1.json | 99 +++- .../tactics_cards/high_ground.outcome2.json | 110 +++- .../tactics_cards/high_morale.outcome1.json | 99 +++- .../tactics_cards/martyr.outcome4.json | 116 ++++- .../tactics_cards/martyr2.outcome1.json | 114 ++++- .../tactics_cards/peltasts.outcome.json | 21 +- .../tactics_cards/peltasts.outcome1.json | 101 +++- .../tactics_cards/scout.outcome2.json | 112 ++++- .../tactics_cards/siege.outcome1.json | 102 +++- .../tactics_cards/surprise.outcome1.json | 107 +++- .../wedge_formation.outcome1.json | 99 +++- .../wonders/colosseum.outcome6.json | 118 ++++- .../wonders/great_gardens.outcome3.json | 5 +- .../wonders/great_mausoleum.outcome4.json | 31 +- .../wonders/great_statue.outcome2.json | 5 +- .../wonders/great_wall.outcome3.json | 141 +++++- .../test_games/wonders/library.outcome2.json | 15 +- .../wonders/lighthouse.outcome3.json | 5 +- .../test_games/wonders/pyramids.outcome2.json | 5 +- 241 files changed, 9183 insertions(+), 1941 deletions(-) create mode 100644 client/assets/lightning-svgrepo-com.png create mode 100644 client/src/multiline.rs create mode 100644 client/src/richtext.rs diff --git a/client/assets/lightning-svgrepo-com.png b/client/assets/lightning-svgrepo-com.png new file mode 100644 index 0000000000000000000000000000000000000000..4ef850b7f6ec8f53d9861f34cf8b17d7d264002c GIT binary patch literal 5308 zcmXX~c|4T+_y0WO!DC8hlx$%vbCab+gc}B9NrZciE#J6Bl7u!{XDrDUlBFU06_e(E%`41 zAoLLehzR=Qb-v;h061`%Z0>Ren!bDe?r4Mf>zo6UEm{3Jqh5!n?Y_HY-IpA?Oa9c- zJofW|UJ0BDR@v+iDOt8rhmZ`y6H~#ZZ=x{C#}g*d0xUCr5Nfq>z!5_1(*Ud!IvW~& z4jwgu2|HHenD-G9xGAF8Xih>OEMoT|_9^H$0i4jtbFjgTGEH18ouH$P!7&re+x>9; zI2tfeGmK*p| z9LAnSC~lmv+6|*Sb2%$^ zYyR(QVk+U!Zsg3juS4ylN5$Y-ME0SXCFyXDZ%por%?~SBF6?4PpaOc#m{#ajmgVgi z9W)<&&JrUp38mvmG=iGm^AjS{ViWlvmgYWO1#eOx{A=Uc?tOQadpTesgnIpgC|sDF z01EHDY?XwF)s*=o4|64R=hbco6EQdv(dXu6w~{lB?7`?8DNpQ2DFgty(DVb`K7Q8V z?Y=}k+o()?^ds=w-Ph$sR~6ni(U?`rIHqR8e{FQh|BW%Ev6XwD`KoeZG!9~!fBY(W z#dYU8V*TyWW4A&lgK|#&w{wcmj{MWOB?j?X-p%P3xK70&92x4(D*pr$@OQdXm2oO2 zN1**I5qK7FkVWBHxIip8Jb3MwGVdfccA){yV9;E8wL@LZlmkOxE#fOOM4-u*Yz(%$ z=Ep=HamP&K_ZypOieL;=Klk%IgVwHJKVdOLpe2~=89ZHTrs@^VQ!Pt=;4u?O4Cpoa z!pk4Z7RXB~WZ+0Pvwv3oe)5|=oQSF=Ekpl1fhJe~=I2o4*H4;E@M$}YBOnU)r&rre zGlow}aPYd~bW0%qd|OFnUpaduIv16Sae*aJAk9=f9xwN{X&iU{-_#!1Db;<1-+GW| zH>xf;a=^GjnU>Bu==wFXhkh|{oDZk0Zvey~q(t%?plE+nHmJtyDY~#gUz_OHQ z-N+We&8b80kM3p$`ML>B@_Kp@Qmncn?qcJ~&HMcrR_~hVPXxwsGu6f~l-3Pfl2%&K zFoogMj7$g1y^|%!sL6@W>y?9^zOD(>QDaf2d-P`qMz;eh{?ZF5 zm0jTEk~7NoV7Rb*N!L?x=;Aioy|uSf{BDP3V0U2aU>F(2W~J&Gtf6#Lh@@oeaf405 zB0u%2*Tsj)38EMrO|&w|@02??ILV10YzrG%0CP-eSK3+XwB;&wKPw~gYwI>>*s7Mj zqLm**w7{VtG=t6fO54A!pLA<(*JMgw2SEsdgwt?%`)smZk>pp~+F}VtkfDxG^^=X< zLLyV~hWz+WOJ%TS$I!dCO}~S$ZM##6R$Ha=lmTI?nJScqW?F@X#~?e>c9++CajWe6 zxXDI&=fdAU^F`uK(Hb(XO&UJ)^tT{D*dn1$(cTP4Q!a2VAplJ^-e~>C$s#4*u=^F^ z3FJ4W3&*644yFY@o#Zb3%=$8^SSQekxG{aT$Q_OJqwmh1J?DEI->r7E%rjb*Y9zFv zYP^1?C?rFhAXwDZ+EGQj*hwxYa?2POsXfVCLUFbAFs7E=bJP`8arb$O;@DHGV^WD% zclpYw0!T*a4B=sWGn+a6uZoM`p>$lLm1%=sxrDf}bw$@KkN17}*oXis( z7_FfyWxOXX<2dI3V1;%|kj^p1D+GLH+@5siA2FbVs}`(%Fw0cOuHF{)0LmEfemo$A z!yaTDf2j=i`DTo1yeoOQ9xi-kSKU3j1qga6ANrM{OgKL{xNEmLz?_yo{c%G>aP0Kw zbZXG#uYZo!h-=rH+r$FciT15Ot!Z+6;MRDXG3qvc3R)@>F*=`;A7m4|Hg2uXLw#tKM{CLCyc6Qg%uMy^;jb$^ksA(eY zoHOnkv<#{5Y3)LbC&>1|Lga^X8`m@K>@&HP z-t+f=bm}9VZ4n)h>t(h<{r3t2dgzOTskMh}%j)wRAoK{7RD}?o%N-cKqjV)YnfLh2 zN)Yd7li~`Q3@}YfQp8L7EGQUhu&lUDK)_-kxs)K7JwUHBD&F* zeL*tDxUZ%%FRT6x^J-_easeUkCg;gd5op-bc&eGP=-H7sKU^n{zfuxuZUBcs^;~7U zg6b)Lm~^uOA?_TD>bez*dh=uYwj$>P+AtF-<(FxU*Eayrcjb`o7d(B7V*D!G+h zn~~LH1cxZPe_TV;$6G%He~h$%J2Nf8IQSA@@&7{H^Y5k*7fQ=!`WC*nEbibBhRO10 z5YN&rP=TeF1p8?rH*%?eaeb_9z(I`!ztOP-bVvc!6xWkNsv7%voSSnYiGw{OdXhjB za!NT;`fz=VG{b-*T<;YTMTshf@Wa3n?L7BFHhN#`|7;fY|M2UQkDbZ$bGE8gTXU|i zw?EQq!x9QcIQxG_6f3fywDz3*DtIeIWN5_NABp=Yo#bQreH4!|6tUA|ychgvX>iLq zdnY`oY~PVpDQ ztbmhW92gRCXQS@+SleQ$t|FWIza0^d_{zR1^D#k0h+qP8S)F-U5gS)cE_R<90ww(# z1X|2?zV4igZuS6rDT&5jBkA_*WH4zuihADwyDZsn&JyTy5D$SK{3Cmf?GClw$~6w z;ne*&VI7Z8$A`SCBpBnhT4N%nu7U^~jyvP6&#OwHVwfJ*ScM}^3+5fjIwvT&t4Km{ z<7jHJ40={;W^}1G-BoJwk2tMI-p^tPG{4m%>87LSt>99MaBC8Y`ek}YdEW`uMH(2% z1rb2?Rp}Rz8_#VivEPgD?|9yO!gf1LF{g?(2oLGbB`qSxo%K+Ww(A`xI9}Og>Z!S)QBzxFYF00eVE=QDNCkfvsbih^U`l5 z@xN@xLQ#p1YQ+QQ0?z9siR2`b819h;ia0W#5wn+ zsKl#NVza!Zn4t%zA7*X*siln8T+841*j!;1jDmjrbn|^PDSS4?Je90ve$#YvA3eOj zOqINGsGvn-JI3%@K@us4xs?)|D_Xggymg%QwC_lrz(kC0qd9k*ClL|{wvoa^5BnCM z@foe;bfm;4k?Ix(FRrVvwqAOBCCgiVSCleZGDnX~;?umODloIvaQ2EuhvSRrr}-Bv zFil!Mqp>)e!$m6*RaapZh=MUtkIpR_5G+Wo>k(rr2G}F7BPEq-kt@G!QW5JaEE(e| zIUU`4;o+#8aEQ&D+mF-)Te1l>Y4Ej4TUVw`!|BBc?R$?CvF-i5qqM@&`<7C)_=!;T z!o+{H1Mf@6x(KU>YO@}z-LzR&M;%bQ_qW$IfYp&ZU?t*Fg-NBFc)Sa?Qv38mN_VwL zc6dq=W{HO5&6g{ScN%SC4u(GAm03!Wel_h`w*N_{T=cYskY$Z4~SIwio4 z5@^`kf|eA-x(1uQQ3(o^y=?h*3Cc7(rrafI*|fi;)aNLFpQ(@s?(E*$=GI|GM;tWe`G`ZBDjHRh<7sz%unR`+K3J*~WD6 zw~D;22y@Fo16l^hD8&s=E)zYk+iybO+3&WNwc+NZ`Gy39WezB*I9Y1gMdgf1T$TNr zneKT)_b-!l8N{c+{aoS1%yMHx@1sO;VEx!+w3pe{Wghni9?9-b2@Xd6+W%miW<07z*Ym(r< z(azgM+9~SpCGXc7XqFf+LKzS=+^&-a)3KbK47(T#ps#&xb)08gg&b7G^g~%2pH;>5 zr%dCmj48QhQzt_mjgJqUxYurPEnrKUVMJ6F~uVPJN^b)8A73%FUyVaV~luE)S0#;E+;%&Lb7Rhcr{DYV~6+E2^6KST|k)7=UDP@Hc($RNjfFr@pF{@=l0cI zn512IjfW290wT02oIVc<`P9A8HNBxT%UqW8dzbHe>v>6r zjmp5ECZCLw_G^~>%ZA91erL;HCaxY-lT%QpS(E;(nu`*yK09;9TF;DlvuPi2eEPcWA|k9pT}*5;4N>3FX(DR z>b!k${{;l*BtK+K+m8uq%NW#KyaOZ<)8CL;;J5tmV({DnFBSxO0c}>M79H&237H%y z+p{@`v|Ucb(z?xNF9<{Mwob90k{M{L_gYbs^Tb{pX=3*N!SrskD~K|U14aCEe3S^v z1gRXWCUJ@=B~Ose?>jLVwF74DICwx}~WsGA@(Xb^jZR%9NRM}0<29_XPRW?A3G+DH0 z6bH_W?DbrAoGe-}@+8m-Vp9*S|GhRImB_D`!>nviyvQhdhADWw=*X=#dLyD@X+wH z`tYnwennWsrccgAXwT)pHUxCm{RiUXBI2)-|mkv-!XF2bbV6r!jR8vc4PvcGRBP z*ODU8tCV)lK+jEcGkDo00F9=cof;_WHtSn(4$?-Mdh|is-q2rbVd9tM$8aS1f|~mJ zN}$fGQQ7IW4aOZJ{kh=z3vybMW@Zd00PFPM`fPO`{afz&9dM@R*%8!`!0Xe?pg?8X z5YAvbt7HS!!Ol*Z6aq~q)bQl%8Gqxi6PA-yFfx%xpmnK6b(+};E*OgUZNbRwy`Q(M zWRU?MnhP$ptiV+)6b{>!xh|7A8~H+tQT%LLm={!PLt>&KTKoYUSXeaF2+Ag48; zSL{bS6||*p4^P|4es4UM;0>sr4m|f_eKc8nK>IOkhWNM|EEJ;5rXw6@oRKZQ^G8| zx0+3~{K8g&TIF0$Xg;?Rv0MICwZN$E3}~gd1>TfEqR@3tl+TUUGFVzxeV~!vS-0Lh z%)h2$aQJl?UG3aS^jtX=20o|I zziyXi%=Dn6rM&?8AkLf~5ulAmAXukX6rnpvkrWLkpj{ F{{wKnhWG#g literal 0 HcmV?d00001 diff --git a/client/src/action_buttons.rs b/client/src/action_buttons.rs index 862d173f..1ecd7461 100644 --- a/client/src/action_buttons.rs +++ b/client/src/action_buttons.rs @@ -5,8 +5,8 @@ use crate::event_ui::event_help_tooltip; use crate::happiness_ui::open_increase_happiness_dialog; use crate::influence_ui::new_cultural_influence_dialog; use crate::layout_ui::{bottom_left_texture, icon_pos}; -use crate::log_ui::MultilineText; use crate::move_ui::MoveIntent; +use crate::multiline::MultilineText; use crate::render_context::RenderContext; use itertools::Itertools; use server::action::Action; diff --git a/client/src/advance_ui.rs b/client/src/advance_ui.rs index c1a95a82..1aad23ea 100644 --- a/client/src/advance_ui.rs +++ b/client/src/advance_ui.rs @@ -1,7 +1,7 @@ use crate::city_ui::add_building_description; use crate::client_state::{ActiveDialog, NO_UPDATE, RenderResult, StateUpdate}; use crate::layout_ui::{button_pressed, top_centered_text}; -use crate::log_ui::MultilineText; +use crate::multiline::MultilineText; use crate::payment_ui::{Payment, payment_dialog}; use crate::render_context::RenderContext; use crate::unit_ui::add_unit_description; diff --git a/client/src/assets.rs b/client/src/assets.rs index 842d0aed..99ef5878 100644 --- a/client/src/assets.rs +++ b/client/src/assets.rs @@ -63,6 +63,7 @@ pub(crate) struct Assets { // Log pub hex: Texture2D, + pub fast: Texture2D, } impl Assets { @@ -122,6 +123,7 @@ impl Assets { // Log hex: load_png(include_bytes!("../assets/hex-svgrepo-com.png")), + fast: load_png(include_bytes!("../assets/lightning-svgrepo-com.png")), } } diff --git a/client/src/cards_ui.rs b/client/src/cards_ui.rs index c698d6ee..acbcfb34 100644 --- a/client/src/cards_ui.rs +++ b/client/src/cards_ui.rs @@ -3,7 +3,7 @@ use crate::custom_phase_ui; use crate::custom_phase_ui::MultiSelection; use crate::dialog_ui::ok_button; use crate::layout_ui::{bottom_centered_text, button_pressed, rect_from}; -use crate::log_ui::MultilineText; +use crate::multiline::MultilineText; use crate::player_ui::get_combat; use crate::render_context::RenderContext; use crate::select_ui::HighlightType; diff --git a/client/src/city_ui.rs b/client/src/city_ui.rs index 796ca0ec..b5908fd5 100644 --- a/client/src/city_ui.rs +++ b/client/src/city_ui.rs @@ -11,8 +11,8 @@ use crate::hex_ui; use crate::layout_ui::{ draw_scaled_icon, draw_scaled_icon_with_tooltip, is_in_circle, is_mouse_pressed, }; -use crate::log_ui::MultilineText; use crate::map_ui::{move_units_buttons, show_map_action_buttons}; +use crate::multiline::MultilineText; use crate::recruit_unit_ui::RecruitAmount; use crate::render_context::RenderContext; use crate::select_ui::HighlightType; diff --git a/client/src/client.rs b/client/src/client.rs index a1e37f5d..61be2a2b 100644 --- a/client/src/client.rs +++ b/client/src/client.rs @@ -21,8 +21,9 @@ use crate::layout_ui::{ ICON_SIZE, bottom_center_anchor, bottom_centered_text_with_offset, draw_scaled_icon_with_tooltip, icon_pos, is_mouse_pressed, top_right_texture, }; -use crate::log_ui::{LogDialog, MultilineText, show_log}; +use crate::log_ui::{LogDialog, show_log}; use crate::map_ui::{draw_map, explore_dialog, show_tile_menu}; +use crate::multiline::MultilineText; use crate::player_ui::{ ColumnLabelPainter, player_select, show_global_controls, show_top_center, show_top_left, }; diff --git a/client/src/custom_phase_ui.rs b/client/src/custom_phase_ui.rs index b22a5590..e1e37deb 100644 --- a/client/src/custom_phase_ui.rs +++ b/client/src/custom_phase_ui.rs @@ -2,7 +2,7 @@ use crate::advance_ui::{AdvanceState, show_advance_menu}; use crate::client_state::{ActiveDialog, NO_UPDATE, RenderResult, StateUpdate}; use crate::dialog_ui::{BaseOrCustomDialog, OkTooltip, cancel_button_with_tooltip, ok_button}; use crate::layout_ui::{bottom_center_anchor, bottom_centered_text, icon_pos}; -use crate::log_ui::MultilineText; +use crate::multiline::MultilineText; use crate::payment_ui::{Payment, multi_payment_dialog, payment_dialog}; use crate::player_ui::choose_player_dialog; use crate::render_context::RenderContext; diff --git a/client/src/dialog_ui.rs b/client/src/dialog_ui.rs index 4838ac2c..bab65f85 100644 --- a/client/src/dialog_ui.rs +++ b/client/src/dialog_ui.rs @@ -1,6 +1,6 @@ use crate::client_state::{NO_UPDATE, PendingUpdate, RenderResult, StateUpdate}; use crate::layout_ui::{bottom_centered_text_with_offset, bottom_right_texture, icon_pos}; -use crate::log_ui::MultilineText; +use crate::multiline::MultilineText; use crate::render_context::RenderContext; use macroquad::math::{Vec2, vec2}; use server::playing_actions::PlayingActionType; diff --git a/client/src/event_ui.rs b/client/src/event_ui.rs index 0c658a08..341a9289 100644 --- a/client/src/event_ui.rs +++ b/client/src/event_ui.rs @@ -1,4 +1,4 @@ -use crate::log_ui::MultilineText; +use crate::multiline::MultilineText; use crate::payment_ui::Payment; use crate::render_context::RenderContext; use server::content::effects; diff --git a/client/src/info_ui.rs b/client/src/info_ui.rs index 2380b690..eb6774f6 100644 --- a/client/src/info_ui.rs +++ b/client/src/info_ui.rs @@ -4,7 +4,7 @@ use crate::client_state::{ActiveDialog, NO_UPDATE, RenderResult, StateUpdate}; use crate::dialog_ui::{OkTooltip, ok_button}; use crate::event_ui::event_help_tooltip; use crate::layout_ui::button_pressed; -use crate::log_ui::MultilineText; +use crate::multiline::MultilineText; use crate::render_context::RenderContext; use itertools::Itertools; use macroquad::color::Color; diff --git a/client/src/layout_ui.rs b/client/src/layout_ui.rs index 2212cc72..316c9904 100644 --- a/client/src/layout_ui.rs +++ b/client/src/layout_ui.rs @@ -1,4 +1,4 @@ -use crate::log_ui::MultilineText; +use crate::multiline::MultilineText; use crate::render_context::RenderContext; use crate::tooltip::show_tooltip_for_rect; use macroquad::color::WHITE; diff --git a/client/src/lib.rs b/client/src/lib.rs index 6ff07621..e779028a 100644 --- a/client/src/lib.rs +++ b/client/src/lib.rs @@ -30,11 +30,13 @@ mod log_collector; mod log_ui; mod map_ui; mod move_ui; +mod multiline; mod payment_ui; mod player_ui; mod recruit_unit_ui; mod render_context; mod resource_ui; +mod richtext; mod select_ui; mod status_phase_ui; mod tooltip; diff --git a/client/src/local_client/bin/main.rs b/client/src/local_client/bin/main.rs index c78d9772..a6c69b30 100644 --- a/client/src/local_client/bin/main.rs +++ b/client/src/local_client/bin/main.rs @@ -26,7 +26,7 @@ enum Mode { async fn main() { start_profiling(); - set_window_size(1200, 600); + set_window_size(1800, 1600); let mut args: Vec = env::args().collect(); args.remove(0); // program name diff --git a/client/src/log_collector.rs b/client/src/log_collector.rs index 10114a66..daded8a0 100644 --- a/client/src/log_collector.rs +++ b/client/src/log_collector.rs @@ -1,10 +1,81 @@ -use crate::log_ui::{LogBody, LogEntry, multiline_label}; +use crate::log_ui::multiline_label; use crate::render_context::RenderContext; use server::action::Action; +use server::card::HandCardLocation; +use server::combat_roll::UnitCombatRoll; +use server::content::ability::combat_event_origin; +use server::cultural_influence::InfluenceCultureAttemptInfo; use server::events::EventOrigin; use server::game_setup::setup_event_origin; -use server::log::{ActionLogAge, TurnType}; +use server::log::{ + ActionLogAction, ActionLogAge, ActionLogBalance, ActionLogEntry, ActionLogItem, ActionLogRound, + ActionLogTurn, SetupTurnType, TurnType, +}; +use server::playing_actions::PlayingAction; use server::status_phase::StatusPhaseStateType; +use server::unit::Units; +use server::utils::remove_element_by; + +#[derive(Clone, Debug)] +pub(crate) struct ActionLogInfluence { + pub(crate) player: usize, + pub(crate) info: InfluenceCultureAttemptInfo, +} + +#[derive(Clone, Debug)] +pub(crate) struct ActionLogBody { + pub(crate) action: ActionLogAction, + pub(crate) action_cost: bool, + pub(crate) argument: Option, +} + +impl ActionLogBody { + pub(crate) fn new(action: ActionLogAction) -> Self { + ActionLogBody { + action, + action_cost: false, + argument: None, + } + } +} + +#[derive(Clone, Debug)] +pub(crate) enum LogBody { + Message(String), + Item(ActionLogItem), + PlayerSetup(SetupTurnType), + PlayerTurn { + age: u32, + round: u32, + player: usize, + }, + Action(ActionLogBody), + CombatUnits { + role: String, + player: usize, + units: Units, + }, + DieRoll(UnitCombatRoll), + InfluenceStartCity(ActionLogInfluence), + InfluenceRangeBoost(ActionLogInfluence), +} + +#[derive(Clone, Debug)] +pub(crate) struct LogEntry { + pub(crate) body: LogBody, + pub(crate) active_origin: Option, + pub(crate) indent: usize, +} + +impl LogEntry { + pub(crate) fn new(body: LogBody, active_origin: Option, indent: usize) -> Self { + LogEntry { + body, + active_origin, + indent, + } + } +} struct LogCollector { log_entries: Vec, @@ -19,13 +90,13 @@ impl LogCollector { } } - fn add_log_entry(&mut self, body: LogBody, indent: usize) { + fn add_entry(&mut self, body: LogBody, indent: usize) { self.log_entries .push(LogEntry::new(body, self.active_origin.clone(), indent)); } fn add_message(&mut self, message: &str, indent: usize) { - self.add_log_entry(LogBody::Message(message.to_string()), indent); + self.add_entry(LogBody::Message(message.to_string()), indent); } } @@ -42,52 +113,9 @@ pub(crate) fn collect_log_entries(rc: &RenderContext) -> Vec { } for turn in &round.turns { c.active_origin = None; - let indent = match turn.turn_type { - TurnType::Player(p) => { - c.add_log_entry( - LogBody::PlayerTurn { - age: age.age, - round: round.round, - player: p, - }, - 1, - ); - 2 - } - TurnType::Setup(p) => { - c.active_origin = Some(setup_event_origin()); - c.add_log_entry( - LogBody::PlayerSetup { - player: p, - civilization: rc.game.player(p).civilization.name.clone(), - }, - 1, - ); - 2 - } - TurnType::StatusPhase(t) => status_phase_title(age, t, &mut c), - }; - + let indent = add_title_items(&mut c, age, round, turn); for action in &turn.actions { - let origin = &action.origin; - if origin.is_some() { - c.active_origin.clone_from(origin); - } - let indent = if matches!(action.action, Action::StartTurn) { - indent - } else { - c.add_log_entry(LogBody::Action(action.clone()), indent); - indent + 1 - }; - for item in &action.items { - c.add_log_entry(LogBody::Item(item.clone()), indent); - } - for message in &action.log { - // Simulate multiline labels to get accurate line count - multiline_label(rc.state, message, max_width(rc), |label: &str| { - c.add_message(label, indent); - }); - } + collect_action(rc, &mut c, action, indent + action.active_events); } } } @@ -95,10 +123,261 @@ pub(crate) fn collect_log_entries(rc: &RenderContext) -> Vec { c.log_entries } +fn collect_action( + rc: &RenderContext, + c: &mut LogCollector, + action: &ActionLogAction, + indent: usize, +) { + let origin = &action.origin; + if origin.is_some() { + c.active_origin.clone_from(origin); + } + let mut items = action.items.clone(); + let indent = if matches!(action.action, Action::StartTurn) { + indent + } else { + let mut body = ActionLogBody::new(action.clone()); + inline_action_items(&mut items, &mut body); + c.add_entry(LogBody::Action(body.clone()), indent); + add_additional_action_items(c, &mut body, action, indent + 1); + indent + 1 + }; + + for item in &items { + match &item.entry { + ActionLogEntry::Text(m) => { + add_text_item(rc, c, indent, item, m); + continue; + } + ActionLogEntry::HandCard { + to: HandCardLocation::PlayToKeep, + .. + } => { + // redundant + continue; + } + _ => {} + } + + set_item_origin(c, item); + c.add_entry(LogBody::Item(item.clone()), indent); + add_additional_items(c, item, indent); + } +} + +fn add_additional_action_items( + c: &mut LogCollector, + body: &mut ActionLogBody, + action: &ActionLogAction, + indent: usize, +) { + if let Some(ActionLogEntry::InfluenceCultureAttempt(i)) = &body.argument { + c.add_entry( + LogBody::InfluenceStartCity(ActionLogInfluence { + player: action.player, + info: i.clone(), + }), + indent, + ); + if !i.range_boost_cost.is_free() { + c.add_entry( + LogBody::InfluenceRangeBoost(ActionLogInfluence { + player: action.player, + info: i.clone(), + }), + indent, + ); + } + } +} + +fn add_text_item( + rc: &RenderContext, + c: &mut LogCollector, + indent: usize, + item: &ActionLogItem, + m: &str, +) { + // Simulate multiline labels to get accurate line count + multiline_label(rc.state, m, max_width(rc), |i, label: &str| { + if i == 0 { + c.add_entry(LogBody::Item(item.clone()), indent); + } else { + c.add_message(label, indent); + } + }); +} + +fn set_item_origin(c: &mut LogCollector, item: &ActionLogItem) { + if matches!( + item.entry, + ActionLogEntry::CombatRound(_) | ActionLogEntry::CombatRoll(_) + ) { + c.active_origin = Some(combat_event_origin()); + } +} + +fn add_title_items( + c: &mut LogCollector, + age: &ActionLogAge, + round: &ActionLogRound, + turn: &ActionLogTurn, +) -> usize { + match &turn.turn_type { + TurnType::Player(p) => { + c.add_entry( + LogBody::PlayerTurn { + age: age.age, + round: round.round, + player: *p, + }, + 1, + ); + 2 + } + TurnType::Setup(t) => { + c.active_origin = Some(setup_event_origin()); + c.add_entry(LogBody::PlayerSetup(t.clone()), 1); + 2 + } + TurnType::StatusPhase(t) => status_phase_title(age, *t, c), + } +} + +fn add_additional_items(c: &mut LogCollector, item: &ActionLogItem, indent: usize) { + match &item.entry { + ActionLogEntry::CombatRound(r) => { + c.add_entry( + LogBody::CombatUnits { + role: "Attacking:".to_string(), + player: item.player, + units: r.attackers.clone(), + }, + indent + 1, + ); + c.add_entry( + LogBody::CombatUnits { + role: "Defending:".to_string(), + player: r.defending_player, + units: r.defenders.clone(), + }, + indent + 1, + ); + } + ActionLogEntry::CombatRoll(r) => { + for m in &r.combat_modifiers { + c.add_message(m, indent + 1); + } + for r in &r.rolls { + c.add_entry(LogBody::DieRoll(r.clone()), indent + 1); + } + } + _ => {} + } +} + +fn inline_action_items(items: &mut Vec, action: &mut ActionLogBody) { + if remove_element_by(items, |item| { + matches!( + item, + ActionLogItem { + player, + entry: ActionLogEntry::Action { + balance: ActionLogBalance::Pay, + .. + }, + .. + } if *player == action.action.player + ) + }) + .is_some() + { + action.action_cost = true; + } + action.argument = pull_action_arg(items, action); +} + +pub fn find_action_arg( + list: &mut Vec, + body: &ActionLogBody, + f: impl Fn(&ActionLogItem) -> bool, +) -> Option { + let arg = remove_element_by(list, |i| f(i) && i.player == body.action.player).map(|i| i.entry); + assert!(arg.is_some(), "Could not find action argument in log items"); + arg +} + +fn pull_action_arg(items: &mut Vec, body: &ActionLogBody) -> Option { + match &body.action.action { + Action::Playing(a) => match a { + PlayingAction::Advance(_) => find_action_arg(items, body, |item| { + matches!( + item, + ActionLogItem { + entry: ActionLogEntry::Advance(_), + .. + } + ) + }), + PlayingAction::FoundCity { .. } | PlayingAction::Construct(_) => { + find_action_arg(items, body, |item| { + matches!( + item, + ActionLogItem { + entry: ActionLogEntry::Structure(_), + .. + } + ) + }) + } + PlayingAction::Recruit(_) => find_action_arg(items, body, |item| { + matches!( + item, + ActionLogItem { + entry: ActionLogEntry::Units { .. }, + .. + } + ) + }), + PlayingAction::InfluenceCultureAttempt(_) => find_action_arg(items, body, |item| { + matches!( + item, + ActionLogItem { + entry: ActionLogEntry::InfluenceCultureAttempt(_), + .. + } + ) + }), + PlayingAction::ActionCard(_) => find_action_arg(items, body, |item| { + matches!( + item, + ActionLogItem { + entry: ActionLogEntry::HandCard { .. }, + .. + } + ) + }), + _ => None, + }, + Action::Movement(_) => find_action_arg(items, body, |item| { + matches!( + item, + ActionLogItem { + entry: ActionLogEntry::Move(_), + .. + } + ) + }), + _ => None, + } +} + fn status_phase_title(age: &ActionLogAge, t: StatusPhaseStateType, c: &mut LogCollector) -> usize { if matches!(t, StatusPhaseStateType::CompleteObjectives) { c.add_message(&format!("Status Phase (Age {})", age.age), 2); } + c.add_message( match t { StatusPhaseStateType::CompleteObjectives => "Complete Objectives", @@ -110,7 +389,11 @@ fn status_phase_title(age: &ActionLogAge, t: StatusPhaseStateType, c: &mut LogCo }, 3, ); - 4 + if matches!(t, StatusPhaseStateType::DrawCards) { + 4 + } else { + 3 // response adds another indent + } } fn max_width(rc: &RenderContext) -> f32 { diff --git a/client/src/log_ui.rs b/client/src/log_ui.rs index 0ff5bb5e..0972aaa0 100644 --- a/client/src/log_ui.rs +++ b/client/src/log_ui.rs @@ -1,50 +1,22 @@ -use crate::city_ui::draw_mood_state; use crate::client_state::{ActiveDialog, NO_UPDATE, RenderResult, State, StateUpdate}; -use crate::layout_ui::{FONT_SIZE, bottom_center_texture, draw_scaled_icon}; -use crate::log_collector::collect_log_entries; +use crate::layout_ui::bottom_center_texture; +use crate::log_collector::{ActionLogBody, LogBody, LogEntry, collect_log_entries}; use crate::render_context::RenderContext; -use macroquad::math::{Vec2, vec2}; -use macroquad::prelude::{BLACK, Color, Texture2D}; +use crate::richtext::RichTextDrawer; +use macroquad::math::vec2; use server::action::Action; use server::card::hand_card_message; +use server::combat_roll::UnitCombatRoll; +use server::content::custom_actions::SpecialAction; use server::content::persistent_events::EventResponse; use server::events::EventOrigin; use server::log::{ - ActionLogAction, ActionLogBalance, ActionLogEntry, ActionLogEntryMove, ActionLogEntryStructure, + ActionLogBalance, ActionLogEntry, ActionLogEntryAdvance, ActionLogEntryMove, ActionLogIncidentToken, ActionLogItem, }; use server::movement::MovementAction; -use server::playing_actions::PlayingAction; -use server::position::Position; -use server::resource_pile::ResourcePile; -use server::structure::Structure; -use server::unit::Units; - -#[derive(Clone, Debug)] -pub(crate) enum LogBody { - Message(String), - Item(ActionLogItem), - PlayerSetup { player: usize, civilization: String }, - PlayerTurn { age: u32, round: u32, player: usize }, - Action(ActionLogAction), -} - -#[derive(Clone, Debug)] -pub(crate) struct LogEntry { - body: LogBody, - active_origin: Option, - indent: usize, -} - -impl LogEntry { - pub(crate) fn new(body: LogBody, active_origin: Option, indent: usize) -> Self { - LogEntry { - body, - active_origin, - indent, - } - } -} +use server::playing_actions::{PlayingAction, PlayingActionType}; +use server::unit::UnitType; #[derive(Clone, Debug)] pub(crate) struct LogDialog { @@ -133,161 +105,114 @@ pub(crate) fn show_log(rc: &RenderContext, d: &LogDialog) -> RenderResult { } fn draw_line(rc: &RenderContext, y: f32, entry: &LogEntry) { - let message_pos = vec2(20. + entry.indent as f32 * 20.0, y * 25. + 20.); + let message_pos = vec2(20. + entry.indent as f32 * 30.0, y * 25. + 20.); let mut drawer = RichTextDrawer::new(rc, message_pos); match &entry.body { LogBody::Message(m) => rc.draw_text(m, message_pos.x, message_pos.y), LogBody::Item(item) => { - drawer.player(item.player); - let balance = item.entry.balance(); - if let Some(b) = &balance { - drawer.text(match b { - ActionLogBalance::Gain => "gains", - ActionLogBalance::Loss => "loses", - ActionLogBalance::Pay => "pays", - }); - } - - draw_item(&mut drawer, item); - - if entry - .active_origin - .as_ref() - .is_none_or(|o| o != &item.origin) - { - drawer.modifier(&item.origin.name(drawer.rc.game), balance); - } - item.modifiers.iter().for_each(|m| { - drawer.modifier(&m.name(drawer.rc.game), balance); - }); + draw_item(entry, &mut drawer, item); } - LogBody::PlayerSetup { - player, - civilization, - } => { - drawer.player(*player); - drawer.text(&format!("plays as {civilization}")); + LogBody::PlayerSetup(t) => { + drawer.player(t.player); + if let Some(civilization) = &t.civilization { + drawer.text("plays as"); + drawer.text(civilization); + } else { + drawer.text("starts without a civilization"); + } } LogBody::PlayerTurn { age, round, player } => { drawer.player(*player); drawer.text(&format!("starts their turn (Age {age}, Round {round})")); } LogBody::Action(a) => { - drawer.player(a.player); - draw_action_log_entry(&mut drawer, a); + draw_action(&mut drawer, a); + } + LogBody::CombatUnits { + role, + player, + units, + } => { + drawer.text(role); + drawer.player(*player); + drawer.text("with"); + drawer.units(units); + } + LogBody::DieRoll(r) => { + draw_die_roll(&mut drawer, r); + } + LogBody::InfluenceStartCity(i) => { + drawer.player(i.player); + drawer.text("uses start city"); + drawer.at_location(i.info.starting_city_position); + } + LogBody::InfluenceRangeBoost(i) => { + drawer.player(i.player); + drawer.text("may pay"); + drawer.resources(&i.info.range_boost_cost.default); + drawer.text("to boost the range"); } } } -struct RichTextDrawer<'a> { - rc: &'a RenderContext<'a>, - current_pos: Vec2, - space: f32, +fn draw_item(entry: &LogEntry, drawer: &mut RichTextDrawer, item: &ActionLogItem) { + drawer.player(item.player); + let balance = item.entry.balance(); + if let Some(b) = &balance { + drawer.text(match b { + ActionLogBalance::Gain => "gains", + ActionLogBalance::Loss => "loses", + ActionLogBalance::Pay => "pays", + }); + } + + draw_entry(drawer, &item.entry, item.player); + + if entry + .active_origin + .as_ref() + .is_none_or(|o| o != &item.origin) + { + drawer.modifier(&item.origin.name(drawer.rc.game), balance); + } + item.modifiers.iter().for_each(|m| { + drawer.modifier(&m.name(drawer.rc.game), balance); + }); } -impl RichTextDrawer<'_> { - fn new<'a>(rc: &'a RenderContext<'_>, start_pos: Vec2) -> RichTextDrawer<'a> { - RichTextDrawer { - rc, - current_pos: start_pos, - space: rc.state.measure_text(" ").width, +fn draw_die_roll(drawer: &mut RichTextDrawer, r: &UnitCombatRoll) { + let (bonus_str, add_value) = if r.bonus { + match r.unit_type { + UnitType::Settler | UnitType::Ship => panic!("unit does not have bonus"), + UnitType::Infantry => (Some("+1 combat value"), true), + UnitType::Cavalry => (Some("+2 combat value"), true), + UnitType::Elephant => (Some("-1 hits, no combat value"), false), + UnitType::Leader(_) => (Some("re-roll"), false), } - } + } else { + (None, true) + }; - fn text(&mut self, text: &str) { - self.text_ex(text, BLACK, FONT_SIZE); + if add_value { + drawer.text(&format!("rolls a {}", r.value)); + } else { + drawer.text(&format!("rolls a ({})", r.value)); } - - fn text_ex(&mut self, text: &str, color: Color, font_size: u16) { - self.rc.draw_text_ex( - text, - self.current_pos.x, - self.current_pos.y, - color, - font_size, - ); - self.current_pos.x += self.rc.state.measure_text(text).width + self.space; - } - - fn modifier(&mut self, modifier: &str, balance: Option<&ActionLogBalance>) { - let verb = match balance { - None | Some(ActionLogBalance::Gain) => "using", - Some(ActionLogBalance::Loss) => "to", - Some(ActionLogBalance::Pay) => "for", - }; - self.text(&format!("{verb} {modifier}")); - } - - fn icon(&mut self, texture: &Texture2D) { - self.icon_with_size(texture, 20.0); - } - - fn icon_with_size(&mut self, texture: &Texture2D, size: f32) { - draw_scaled_icon( - &self.rc.no_icon_background(), - texture, - "", - vec2(self.current_pos.x, self.current_pos.y - size / 2.0 - 5.0), - size, - ); - self.current_pos.x += size + self.space; - } - - fn player(&mut self, player: usize) { - self.text_ex( - &self.rc.game.player_name(player), - self.rc.player_color(player), - FONT_SIZE, - ); - self.current_pos.x += self.space; - } - - fn at_location(&mut self, position: Position) { - self.text("at"); - self.location(position); - } - - fn location(&mut self, position: Position) { - self.icon_with_size(&self.rc.assets().hex, 35.0); - self.current_pos.x -= 31.0; - self.text_ex(&format!("{position}"), BLACK, 17); - } - - fn resources(&mut self, resources: &ResourcePile) { - for (resource, amount) in resources.clone() { - if amount > 0 - && let Some(texture) = self.rc.assets().resources.get(&resource) - { - self.icon(texture); - self.text(&amount.to_string()); - } - } - } - - fn units(&mut self, units: &Units) { - for (unit, amount) in units.clone() { - if amount > 0 { - let texture = self.rc.assets().unit(unit, self.rc.shown_player); - self.icon(texture); - let mut u = Units::empty(); - for _ in 0..amount { - u += &unit; - } - self.text(&u.to_string(Some(self.rc.game))); - } - } + drawer.unit_icon(r.unit_type); + if let Some(bonus_str) = bonus_str { + drawer.text(bonus_str); } } -fn draw_item(drawer: &mut RichTextDrawer, item: &ActionLogItem) { - match &item.entry { +fn draw_entry(drawer: &mut RichTextDrawer, entry: &ActionLogEntry, player: usize) { + match entry { ActionLogEntry::Action { balance: _, amount } => { if let Some(a) = amount { drawer.text(&a.to_string()); } - drawer.icon(&drawer.rc.assets().end_turn); + drawer.action_icon(); } ActionLogEntry::Resources { resources, @@ -295,20 +220,8 @@ fn draw_item(drawer: &mut RichTextDrawer, item: &ActionLogItem) { } => { drawer.resources(resources); } - ActionLogEntry::Advance { - advance, - balance: _, - incident_token, - } => { - drawer.icon(&drawer.rc.assets().advances); - drawer.text(advance.name(drawer.rc.game)); - if let ActionLogIncidentToken::Take(t) = incident_token { - if *t > 0 { - drawer.text(&format!("and take an event token ({t} left)")); - } else { - drawer.text("and take an event token (triggering an incident)"); - } - } + ActionLogEntry::Advance(a) => { + draw_advance(drawer, a); } ActionLogEntry::Units { units, @@ -319,7 +232,7 @@ fn draw_item(drawer: &mut RichTextDrawer, item: &ActionLogItem) { drawer.at_location(*position); } ActionLogEntry::Structure(s) => { - draw_structure(drawer, item, s); + drawer.structure(&s.structure, s.position, s.port_position, player); } ActionLogEntry::HandCard { card, from, to } => { let (_, message) = hand_card_message(drawer.rc.game, card, from, to); @@ -329,12 +242,7 @@ fn draw_item(drawer: &mut RichTextDrawer, item: &ActionLogItem) { drawer.text("City"); drawer.at_location(*city); drawer.text(&format!("becomes {mood}")); - let c = center(drawer.current_pos); - drawer - .rc - .draw_circle(c, RADIUS, drawer.rc.player_color(item.player)); - draw_mood_state(drawer.rc, c, mood); - drawer.current_pos.x += 35.0; + drawer.mood(player, mood); } ActionLogEntry::Move(m) => draw_move(drawer, m), ActionLogEntry::Explore { tiles } => { @@ -344,6 +252,33 @@ fn draw_item(drawer: &mut RichTextDrawer, item: &ActionLogItem) { drawer.text(&format!("is {t}")); } } + ActionLogEntry::CombatRound(r) => { + drawer.text(&format!("Combat Round {}", r.round)); + } + ActionLogEntry::CombatRoll(r) => { + drawer.text(&format!( + "rolls for combined combat value of {} and gets {} hits", + r.combat_value, r.hits, + )); + } + ActionLogEntry::Text(m) => { + drawer.text(m); + } + ActionLogEntry::InfluenceCultureAttempt(i) => { + drawer.structure(&i.structure, i.position, None, i.target_player); + } + } +} + +fn draw_advance(drawer: &mut RichTextDrawer, advance: &ActionLogEntryAdvance) { + drawer.icon(&drawer.rc.assets().advances); + drawer.text(advance.advance.name(drawer.rc.game)); + if let ActionLogIncidentToken::Take(t) = advance.incident_token { + if t > 0 { + drawer.text(&format!("and takes an event token ({t} left)")); + } else { + drawer.text("and takes the last event token - triggering an event!"); + } } } @@ -355,16 +290,16 @@ fn draw_move(drawer: &mut RichTextDrawer, m: &ActionLogEntryMove) { .expect("the destination position should be on the map"); let (verb, suffix) = if game.map.is_sea(m.start) { if t.is_unexplored() || t.is_water() { - ("sailed", "") + ("sails", "") } else { - ("disembarked", "") + ("disembarks", "") } } else if m.embark_carrier_id.is_some() { - ("embarked", "") + ("embarks", "") } else if m.start.is_neighbor(m.destination) { - ("marched", "") + ("marches", "") } else { - ("marched", " on roads") + ("marches", " on roads") }; drawer.text(verb); drawer.units(&m.units); @@ -377,49 +312,20 @@ fn draw_move(drawer: &mut RichTextDrawer, m: &ActionLogEntryMove) { } } -fn draw_structure(drawer: &mut RichTextDrawer, item: &ActionLogItem, s: &ActionLogEntryStructure) { - // Draw structure icon or circle - let c = center(drawer.current_pos); - let r = RADIUS; - match &s.structure { - Structure::CityCenter => { - drawer - .rc - .draw_circle(c, r, drawer.rc.player_color(item.player)); - drawer.current_pos.x += 35.0; - drawer.text("City"); - } - Structure::Building(b) => { - draw_scaled_icon(drawer.rc, &drawer.rc.assets().buildings[b], "", c, r); - drawer.current_pos.x += 35.0; - drawer.text(b.name()); - } - Structure::Wonder(w) => { - draw_scaled_icon(drawer.rc, &drawer.rc.assets().wonders[w], "", c, r); - drawer.current_pos.x += 35.0; - drawer.text(&w.name()); - } - } - drawer.at_location(s.position); - if let Some(port_pos) = s.port_position { - drawer.text(" at the water tile"); - drawer.at_location(port_pos); - } -} - -const RADIUS: f32 = 15.0; - -fn center(message_pos: Vec2) -> Vec2 { - vec2(message_pos.x + 15.0, message_pos.y - RADIUS / 2.0) -} - -pub(crate) fn multiline_label(state: &State, label: &str, len: f32, mut print: impl FnMut(&str)) { +pub(crate) fn multiline_label( + state: &State, + label: &str, + len: f32, + mut print: impl FnMut(usize, &str), +) { let mut line = String::new(); + let mut i = 0; label.split(' ').for_each(|s| { let next = format!("{line} {s}"); let dimensions = state.measure_text(&next); if dimensions.width > len { - print(&line); + print(i, &line); + i += 1; line = " ".to_string(); } if !line.is_empty() { @@ -428,50 +334,24 @@ pub(crate) fn multiline_label(state: &State, label: &str, len: f32, mut print: i line.push_str(s); }); if !line.is_empty() { - print(&line); + print(i, &line); } } -pub(crate) struct MultilineText { - pub width: f32, - pub text: Vec, -} - -impl MultilineText { - pub(crate) fn default() -> Self { - MultilineText { - width: 500., - text: vec![], - } +fn draw_action(drawer: &mut RichTextDrawer, body: &ActionLogBody) { + if body.action_cost { + drawer.action_icon(); + } else { + drawer.icon(&drawer.rc.assets().fast); } + let a = &body.action; + drawer.player(a.player); - pub(crate) fn of(rc: &RenderContext, text: &str) -> Self { - let mut t = Self::default(); - t.add(rc, text); - t - } - - pub(crate) fn from(rc: &RenderContext, text: &[String]) -> Self { - let mut t = Self::default(); - for label in text { - t.add(rc, label); - } - t - } - - pub(crate) fn add(&mut self, rc: &RenderContext, label: &str) { - multiline_label(rc.state, label, self.width, |line: &str| { - self.text.push(line.to_string()); - }); - } -} - -fn draw_action_log_entry(drawer: &mut RichTextDrawer, a: &ActionLogAction) { match &a.action { - Action::Playing(p) => draw_playing_action(drawer, p, a), + Action::Playing(p) => draw_playing_action(drawer, p, body), Action::Movement(m) => match m { MovementAction::Move(_) => { - drawer.text("performs a move action"); + draw_argument(drawer, body); } MovementAction::Stop => { drawer.text("stops movement"); @@ -492,11 +372,13 @@ fn draw_response_action(drawer: &mut RichTextDrawer, r: &EventResponse) { EventResponse::SelectAdvance(_) => drawer.text("selects advance"), EventResponse::Payment(_) => drawer.text("selects payment"), EventResponse::ResourceReward(_) => drawer.text("receives"), - EventResponse::SelectPlayer(p) => drawer.text(&format!( - "selects player: {}", - drawer.rc.game.player_name(*p) - )), - EventResponse::SelectPositions(p) => drawer.text(&format!("selects positions: {p:?}")), + EventResponse::SelectPlayer(_p) => drawer.text("selects a player"), + EventResponse::SelectPositions(p) => { + drawer.text("selects positions"); + for pos in p { + drawer.location(*pos); + } + } EventResponse::SelectUnitType(u) => { drawer.text(&format!("select unit type: {}", u.name(drawer.rc.game))); } @@ -517,34 +399,47 @@ fn draw_response_action(drawer: &mut RichTextDrawer, r: &EventResponse) { } } -fn draw_playing_action(drawer: &mut RichTextDrawer, p: &PlayingAction, a: &ActionLogAction) { +fn draw_playing_action(drawer: &mut RichTextDrawer, p: &PlayingAction, body: &ActionLogBody) { + let a = &body.action; + let origin = body.action.origin.as_ref(); match p { PlayingAction::Advance(_) => { drawer.text("advances"); + draw_argument(drawer, body); } PlayingAction::FoundCity { .. } => { - drawer.text("founds a city"); + drawer.text("founds a"); + draw_argument(drawer, body); } PlayingAction::Construct(_) => { - drawer.text("builds"); + drawer.text("builds a"); + draw_argument(drawer, body); } PlayingAction::Collect(c) => { drawer.text("collects"); drawer.at_location(c.city_position); + draw_modifier_suffix(drawer, &c.action_type, origin); } PlayingAction::Recruit(_) => { drawer.text("recruits"); + draw_argument(drawer, body); } - PlayingAction::IncreaseHappiness(_) => { + PlayingAction::IncreaseHappiness(i) => { drawer.text("increases happiness"); + draw_modifier_suffix(drawer, &i.action_type, origin); } - PlayingAction::InfluenceCultureAttempt(_) => { - drawer.text("attempts cultural influence"); + PlayingAction::InfluenceCultureAttempt(a) => { + drawer.text("attempts to influence"); + draw_argument(drawer, body); + draw_modifier_suffix(drawer, &a.action_type, origin); } PlayingAction::Custom(c) => { drawer.text(&format!( "starts {}", - a.items[0].origin.name(drawer.rc.game) + a.origin + .as_ref() + .expect("origin should be set for custom actions") + .name(drawer.rc.game) )); if let Some(pos) = c.city { drawer.at_location(pos); @@ -552,15 +447,40 @@ fn draw_playing_action(drawer: &mut RichTextDrawer, p: &PlayingAction, a: &Actio } PlayingAction::ActionCard(a) => { drawer.text(&format!( - "plays Action Card: {}", + "plays action card: {}", drawer.rc.game.cache.get_action_card(*a).name() )); } PlayingAction::WonderCard(w) => { - drawer.text(&format!("plays Wonder Card: {}", w.name())); + drawer.text("plays wonder card"); + drawer.wonder(*w); } PlayingAction::EndTurn => { drawer.text("ends their turn"); } } } + +fn draw_modifier_suffix( + drawer: &mut RichTextDrawer, + action_type: &PlayingActionType, + origin: Option<&EventOrigin>, +) { + if let PlayingActionType::Special(SpecialAction::Modifier(_)) = action_type { + drawer.text(&format!( + "using {}", + origin + .as_ref() + .expect("origin not found") + .name(drawer.rc.game) + )); + } +} + +fn draw_argument(drawer: &mut RichTextDrawer, body: &ActionLogBody) { + if let Some(a) = &body.argument { + draw_entry(drawer, a, body.action.player); + } else { + panic!("subject missing advance details"); + } +} diff --git a/client/src/map_ui.rs b/client/src/map_ui.rs index 9b91f992..5f2ae8cc 100644 --- a/client/src/map_ui.rs +++ b/client/src/map_ui.rs @@ -8,8 +8,8 @@ use crate::hex_ui::HexFeature; use crate::layout_ui::{ bottom_center_anchor, bottom_center_texture, bottom_right_texture, icon_pos, }; -use crate::log_ui::MultilineText; use crate::move_ui::{MoveIntent, movable_units}; +use crate::multiline::MultilineText; use crate::player_ui::get_combat; use crate::render_context::RenderContext; use crate::select_ui::HighlightType; diff --git a/client/src/multiline.rs b/client/src/multiline.rs new file mode 100644 index 00000000..d1fb8ebc --- /dev/null +++ b/client/src/multiline.rs @@ -0,0 +1,36 @@ +use crate::log_ui; +use crate::render_context::RenderContext; + +pub(crate) struct MultilineText { + pub width: f32, + pub text: Vec, +} + +impl MultilineText { + pub(crate) fn default() -> Self { + MultilineText { + width: 500., + text: vec![], + } + } + + pub(crate) fn of(rc: &RenderContext, text: &str) -> Self { + let mut t = Self::default(); + t.add(rc, text); + t + } + + pub(crate) fn from(rc: &RenderContext, text: &[String]) -> Self { + let mut t = Self::default(); + for label in text { + t.add(rc, label); + } + t + } + + pub(crate) fn add(&mut self, rc: &RenderContext, label: &str) { + log_ui::multiline_label(rc.state, label, self.width, |_, line: &str| { + self.text.push(line.to_string()); + }); + } +} diff --git a/client/src/payment_ui.rs b/client/src/payment_ui.rs index 566ab18c..bbd717c3 100644 --- a/client/src/payment_ui.rs +++ b/client/src/payment_ui.rs @@ -4,7 +4,7 @@ use crate::event_ui::event_help; use crate::layout_ui::{ ICON_SIZE, bottom_centered_text_with_offset, draw_scaled_icon_with_tooltip, }; -use crate::log_ui::MultilineText; +use crate::multiline::MultilineText; use crate::render_context::RenderContext; use crate::resource_ui::{new_resource_map, resource_name}; use crate::select_ui; diff --git a/client/src/player_ui.rs b/client/src/player_ui.rs index 4391fc23..74c63837 100644 --- a/client/src/player_ui.rs +++ b/client/src/player_ui.rs @@ -7,8 +7,9 @@ use crate::layout_ui::{ bottom_centered_text_with_offset, bottom_right_texture, button_pressed, draw_scaled_icon_with_tooltip, icon_pos, top_center_anchor, top_center_texture, }; -use crate::log_ui::{MultilineText, multiline_label}; +use crate::log_ui::multiline_label; use crate::map_ui::terrain_name; +use crate::multiline::MultilineText; use crate::render_context::RenderContext; use crate::resource_ui::{new_resource_map, resource_name}; use crate::tooltip::show_tooltip_for_circle; @@ -281,7 +282,7 @@ impl<'a> ColumnLabelPainter<'a> { pub fn label(&mut self, text: &str) { let rc = self.rc; - multiline_label(rc.state, text, self.max_column_width, |label| { + multiline_label(rc.state, text, self.max_column_width, |_, label| { self.used_column_width = self .used_column_width .max(rc.state.measure_text(label).width); diff --git a/client/src/recruit_unit_ui.rs b/client/src/recruit_unit_ui.rs index 0bba7526..c4bd91de 100644 --- a/client/src/recruit_unit_ui.rs +++ b/client/src/recruit_unit_ui.rs @@ -1,7 +1,7 @@ use crate::client_state::{ActiveDialog, NO_UPDATE, RenderResult, StateUpdate}; use crate::construct_ui::{ConstructionPayment, ConstructionProject}; use crate::dialog_ui::{OkTooltip, cancel_button, ok_button}; -use crate::log_ui::MultilineText; +use crate::multiline::MultilineText; use crate::render_context::RenderContext; use crate::select_ui; use crate::select_ui::{CountSelector, HasCountSelectableObject, HighlightType, SELECT_RADIUS}; diff --git a/client/src/richtext.rs b/client/src/richtext.rs new file mode 100644 index 00000000..ab165b07 --- /dev/null +++ b/client/src/richtext.rs @@ -0,0 +1,185 @@ +use crate::city_ui::draw_mood_state; +use crate::layout_ui::{FONT_SIZE, draw_scaled_icon}; +use crate::render_context::RenderContext; +use macroquad::color::{BLACK, Color}; +use macroquad::math::{Vec2, vec2}; +use macroquad::prelude::Texture2D; +use server::city::MoodState; +use server::log::ActionLogBalance; +use server::position::Position; +use server::resource_pile::ResourcePile; +use server::structure::Structure; +use server::unit::{UnitType, Units}; +use server::wonder::Wonder; + +pub struct RichTextDrawer<'a> { + pub(crate) rc: &'a RenderContext<'a>, + pub(crate) current_pos: Vec2, + space: f32, +} + +impl RichTextDrawer<'_> { + pub(crate) fn new<'a>(rc: &'a RenderContext<'_>, start_pos: Vec2) -> RichTextDrawer<'a> { + RichTextDrawer { + rc, + current_pos: start_pos, + space: rc.state.measure_text(" ").width, + } + } + + pub(crate) fn text(&mut self, text: &str) { + self.text_ex(text, BLACK, FONT_SIZE); + } + + fn text_ex(&mut self, text: &str, color: Color, font_size: u16) { + self.rc.draw_text_ex( + text, + self.current_pos.x, + self.current_pos.y, + color, + font_size, + ); + self.current_pos.x += self.rc.state.measure_text(text).width + self.space; + } + + pub(crate) fn modifier(&mut self, modifier: &str, balance: Option<&ActionLogBalance>) { + let verb = match balance { + None | Some(ActionLogBalance::Gain) => "using", + Some(ActionLogBalance::Loss) => "to", + Some(ActionLogBalance::Pay) => "for", + }; + self.text(&format!("{verb} {modifier}")); + } + + pub(crate) fn icon(&mut self, texture: &Texture2D) { + self.icon_with_size(texture, 20.0); + } + + fn icon_with_size(&mut self, texture: &Texture2D, size: f32) { + draw_scaled_icon( + &self.rc.no_icon_background(), + texture, + "", + vec2(self.current_pos.x, self.current_pos.y - size / 2.0 - 5.0), + size, + ); + self.current_pos.x += size + self.space; + } + + pub(crate) fn player(&mut self, player: usize) { + self.text_ex( + &self.rc.game.player_name(player), + self.rc.player_color(player), + FONT_SIZE, + ); + self.current_pos.x += self.space; + } + + pub(crate) fn at_location(&mut self, position: Position) { + self.text("at"); + self.location(position); + } + + pub(crate) fn location(&mut self, position: Position) { + self.icon_with_size(&self.rc.assets().hex, 35.0); + self.current_pos.x -= 31.0; + self.text_ex(&format!("{position}"), BLACK, 17); + } + + pub(crate) fn resources(&mut self, resources: &ResourcePile) { + for (resource, amount) in resources.clone() { + if amount > 0 + && let Some(texture) = self.rc.assets().resources.get(&resource) + { + self.icon(texture); + self.text(&amount.to_string()); + } + } + } + + pub(crate) fn unit_icon(&mut self, unit_type: UnitType) { + self.icon(self.rc.assets().unit(unit_type, self.rc.shown_player)); + } + + pub(crate) fn units(&mut self, units: &Units) { + for (unit, amount) in units.clone() { + if amount > 0 { + self.unit_icon(unit); + let mut u = Units::empty(); + for _ in 0..amount { + u += &unit; + } + self.text(&u.to_string(Some(self.rc.game))); + } + } + } + + pub(crate) fn action_icon(&mut self) { + self.icon(&self.rc.assets().end_turn); + } + + pub(crate) fn structure( + &mut self, + structure: &Structure, + position: Position, + port_position: Option, + player: usize, + ) { + // Draw structure icon or circle + match structure { + Structure::CityCenter => { + self.rc.draw_circle( + center(self.current_pos), + RADIUS, + self.rc.player_color(player), + ); + self.current_pos.x += 35.0; + self.text("City"); + } + Structure::Building(b) => { + draw_scaled_icon( + self.rc, + &self.rc.assets().buildings[b], + "", + center(self.current_pos), + RADIUS, + ); + self.current_pos.x += 35.0; + self.text(b.name()); + } + Structure::Wonder(w) => { + self.wonder(*w); + } + } + self.at_location(position); + if let Some(port_pos) = port_position { + self.text(" at the water tile"); + self.at_location(port_pos); + } + } + + pub(crate) fn wonder(&mut self, w: Wonder) { + draw_scaled_icon( + self.rc, + &self.rc.assets().wonders[&w], + "", + center(self.current_pos), + RADIUS, + ); + self.current_pos.x += 35.0; + self.text(&w.name()); + } + + pub(crate) fn mood(&mut self, player: usize, mood: &MoodState) { + let c = center(self.current_pos); + self.rc.draw_circle(c, RADIUS, self.rc.player_color(player)); + draw_mood_state(self.rc, c, mood); + self.current_pos.x += 35.0; + } +} + +const RADIUS: f32 = 15.0; + +fn center(message_pos: Vec2) -> Vec2 { + vec2(message_pos.x + 15.0, message_pos.y - RADIUS / 2.0) +} diff --git a/client/src/tooltip.rs b/client/src/tooltip.rs index 1eb0788b..33be405b 100644 --- a/client/src/tooltip.rs +++ b/client/src/tooltip.rs @@ -1,6 +1,6 @@ use crate::client_state::{CameraMode, MousePosition, NO_UPDATE, State}; use crate::layout_ui::rect_from; -use crate::log_ui::MultilineText; +use crate::multiline::MultilineText; use crate::render_context::RenderContext; use macroquad::color::Color; use macroquad::input::mouse_position; diff --git a/client/src/unit_ui.rs b/client/src/unit_ui.rs index d4c56fc3..21104b48 100644 --- a/client/src/unit_ui.rs +++ b/client/src/unit_ui.rs @@ -9,7 +9,7 @@ use crate::hex_ui; use crate::select_ui::HighlightType; use crate::layout_ui::{draw_scaled_icon_with_tooltip, is_in_circle}; -use crate::log_ui::MultilineText; +use crate::multiline::MultilineText; use crate::render_context::RenderContext; use crate::tooltip::show_tooltip_for_circle; use itertools::Itertools; diff --git a/server/src/action.rs b/server/src/action.rs index 25bf5a2a..f34edb5c 100644 --- a/server/src/action.rs +++ b/server/src/action.rs @@ -9,14 +9,15 @@ use crate::construct::on_construct; use crate::content::custom_actions::on_custom_action; use crate::content::persistent_events::{EventResponse, PersistentEventType}; use crate::cultural_influence::on_cultural_influence; -use crate::events::EventPlayer; +use crate::events::{EventOrigin, EventPlayer}; use crate::explore::ask_explore_resolution; use crate::game::GameState; use crate::game::{Game, GameContext}; use crate::game_setup::execute_choose_civ; use crate::incident::{on_choose_incident, on_trigger_incident}; use crate::log::{ - ActionLogBalance, ActionLogEntry, add_action_log_item, add_log_action, current_turn_log_mut, + ActionLogBalance, ActionLogEntry, ActionLogItem, add_action_log_item, add_log_action, + current_turn_log_mut, }; use crate::movement::{MovementAction, execute_movement_action, on_ship_construction_conversion}; use crate::objective_card::{complete_objective_card, gain_objective_card, on_objective_cards}; @@ -126,9 +127,14 @@ pub fn execute_without_undo( && !matches!(action, Action::Response(_)) { // ignore missing response in replay - game.add_info_log_item(&format!( - "interrupted {} events in replay due to a missing response", - game.events.len() + game.add_log_item(ActionLogItem::new( + player_index, + ActionLogEntry::message(format!( + "interrupted {} events in replay due to a missing response", + game.events.len() + )), + EventOrigin::Ability("replay".to_string()), + vec![], )); game.events.clear(); } @@ -243,7 +249,7 @@ pub(crate) fn execute_custom_phase_action( ExploreResolution(r) => { ask_explore_resolution(game, player, r); } - InfluenceCulture(r) => { + InfluenceCultureBoost(r) => { on_cultural_influence(game, player, r); } UnitsKilled(k) => units_killed(game, player, k), diff --git a/server/src/action_card.rs b/server/src/action_card.rs index 3c4b4ce4..9f146b7a 100644 --- a/server/src/action_card.rs +++ b/server/src/action_card.rs @@ -228,14 +228,15 @@ pub(crate) fn gain_action_card_from_pile(game: &mut Game, player: &EventPlayer) } pub(crate) fn do_gain_action_card_from_pile(game: &mut Game, player: &EventPlayer) { - if let Some(c) = draw_action_card_from_pile(game) { + if let Some(c) = draw_action_card_from_pile(game, player) { gain_action_card(game, player, c, HandCardLocation::DrawPile); } } -fn draw_action_card_from_pile(game: &mut Game) -> Option { +fn draw_action_card_from_pile(game: &mut Game, player: &EventPlayer) -> Option { draw_card_from_pile( game, + player, "Action Card", |g| &mut g.action_cards_left, |g| g.cache.get_action_cards().iter().map(|c| c.id).collect(), diff --git a/server/src/advance.rs b/server/src/advance.rs index 0eca3bf9..2577f54b 100644 --- a/server/src/advance.rs +++ b/server/src/advance.rs @@ -423,7 +423,7 @@ pub(crate) fn on_advance(game: &mut Game, player_index: usize, info: OnAdvanceIn player.incident_tokens -= 1; if player.incident_tokens == 0 { player.incident_tokens = 3; - trigger_incident(game, player_index); + trigger_incident(game, player_index, EventOrigin::Advance(info.advance)); } } } diff --git a/server/src/card.rs b/server/src/card.rs index 6ac012b3..9eb7df41 100644 --- a/server/src/card.rs +++ b/server/src/card.rs @@ -1,7 +1,7 @@ use crate::content::action_cards::spy::validate_spy_cards; use crate::content::action_cards::synergies::validate_new_plans; use crate::content::civilizations::rome::validate_princeps_cards; -use crate::events::EventOrigin; +use crate::events::{EventOrigin, EventPlayer}; use crate::game::Game; use crate::log::{ActionLogEntry, add_action_log_item}; use crate::player::Player; @@ -137,6 +137,7 @@ impl HandCardLocation { pub(crate) fn draw_card_from_pile( game: &mut Game, + player: &EventPlayer, name: &str, get_pile: impl Fn(&mut Game) -> &mut Vec, reshuffle_pile: impl Fn(&Game) -> Vec, @@ -153,13 +154,13 @@ where } if !new_pile.is_empty() { - game.add_info_log_item(&format!("Reshuffling {name} pile")); + player.log(game, &format!("Reshuffling {name} pile")); *get_pile(game) = new_pile.shuffled(&mut game.rng); } } if get_pile(game).is_empty() { - game.add_info_log_item(&format!("No {name} left to draw")); + player.log(game, &format!("No {name} left to draw")); return None; } diff --git a/server/src/combat.rs b/server/src/combat.rs index 9756f852..76f842e1 100644 --- a/server/src/combat.rs +++ b/server/src/combat.rs @@ -13,6 +13,7 @@ use crate::content::ability::combat_event_origin; use crate::content::persistent_events::PersistentEventType; use crate::events::{EventOrigin, EventPlayer}; use crate::game::Game; +use crate::log::{ActionLogEntry, ActionLogEntryCombatRound}; use crate::movement::{MoveUnits, MovementRestriction, move_units, stop_current_move}; use crate::position::Position; use crate::resource_pile::ResourcePile; @@ -219,43 +220,37 @@ pub fn initiate_combat( } pub(crate) fn log_round(game: &mut Game, c: &Combat) { - game.add_info_log_item(&format!("Combat round {}", c.stats.round)); - let origin = &combat_event_origin(); - game.log( - c.attacker(), - origin, - &format!( - "Attacking with {}", - c.attackers - .iter() - .flat_map(|u| { - let p = game.player(c.attacker()); - let u = p.get_unit(*u); - vec![u.unit_type] - .into_iter() - .chain( - carried_units(u.id, p) - .iter() - .map(|u| p.get_unit(*u).unit_type), - ) - .collect_vec() - }) - .collect::() - .to_string(Some(game)) - ), - ); - game.log( - c.defender(), - origin, - &format!( - "Defending with {}", - game.player(c.defender()) - .get_units(c.defender_position()) - .iter() - .map(|u| u.unit_type) - .collect::() - .to_string(Some(game)) - ), + let attackers = c + .attackers + .iter() + .flat_map(|u| { + let p = game.player(c.attacker()); + let u = p.get_unit(*u); + vec![u.unit_type] + .into_iter() + .chain( + carried_units(u.id, p) + .iter() + .map(|u| p.get_unit(*u).unit_type), + ) + .collect_vec() + }) + .collect::(); + let defending_player = c.defender(); + let defenders = game + .player(defending_player) + .get_units(c.defender_position()) + .iter() + .map(|u| u.unit_type) + .collect::(); + EventPlayer::new(c.attacker(), combat_event_origin()).add_log_entry( + game, + ActionLogEntry::CombatRound(ActionLogEntryCombatRound { + round: c.stats.round, + attackers, + defending_player, + defenders, + }), ); } diff --git a/server/src/combat_listeners.rs b/server/src/combat_listeners.rs index 059f802c..1d9846b5 100644 --- a/server/src/combat_listeners.rs +++ b/server/src/combat_listeners.rs @@ -5,7 +5,7 @@ use crate::combat_roll::CombatHits; use crate::combat_stats::CombatStats; use crate::content::ability::{Ability, combat_event_origin}; use crate::content::persistent_events::{PersistentEventType, PositionRequest, UnitsRequest}; -use crate::events::EventOrigin; +use crate::events::{EventOrigin, EventPlayer}; use crate::game::Game; use crate::log::current_action_log_mut; use crate::movement::move_units; @@ -322,7 +322,7 @@ pub(crate) fn combat_round_end(game: &mut Game, r: CombatRoundEnd) -> Option) { + EventPlayer::new(player_index, origin.unwrap_or(combat_event_origin())) + .log(game, "wins the battle"); +} + fn defender_wins(game: &mut Game, c: Combat) { - game.add_info_log_item("Defender wins"); + log_winner(game, c.defender(), None); end_combat_and_store_stats(game, CombatEnd::new(CombatResult::DefenderWins, c)); } pub(crate) fn draw(game: &mut Game, c: Combat) { if c.defender_fortress(game) && c.first_round() { - game.add_info_log_item(&format!( - "{} wins the battle because he has a defending fortress", - game.player_name(c.defender()) - )); + log_winner( + game, + c.defender(), + Some(EventOrigin::Ability("fortress".to_string())), + ); return end_combat_and_store_stats(game, CombatEnd::new(CombatResult::DefenderWins, c)); } - game.add_info_log_item("Battle ends in a draw"); + EventPlayer::new(c.attacker(), combat_event_origin()).log(game, "ends the battle in a draw"); end_combat_and_store_stats(game, CombatEnd::new(CombatResult::Draw, c)); } diff --git a/server/src/combat_roll.rs b/server/src/combat_roll.rs index fef0a303..e7290ed9 100644 --- a/server/src/combat_roll.rs +++ b/server/src/combat_roll.rs @@ -3,6 +3,7 @@ use crate::combat_listeners::CombatStrength; use crate::content::ability::combat_event_origin; use crate::events::EventPlayer; use crate::game::Game; +use crate::log::{ActionLogEntry, ActionLogEntryCombatRoll}; use crate::unit::UnitType::{Cavalry, Elephant, Infantry}; use crate::unit::{LEADER_UNIT, UnitType, Units}; use num::Zero; @@ -56,11 +57,17 @@ impl CombatHits { } } +#[derive(Serialize, Deserialize, Clone, PartialEq, Debug)] +pub struct UnitCombatRoll { + pub value: u8, + pub unit_type: UnitType, + pub bonus: bool, +} + pub(crate) struct CombatRoundStats { player: usize, - opponent_str: String, pub(crate) fighters: u8, - log_str: String, + rolls: Vec, combat_value: u8, hit_cancels: u8, strength: CombatStrength, @@ -74,7 +81,7 @@ impl CombatRoundStats { strength: CombatStrength, ) -> CombatRoundStats { let fighting = c.fighting_units(game, player); - let mut log = vec![]; + let mut unit_rolls = vec![]; let rolls = roll( game, player, @@ -82,24 +89,15 @@ impl CombatRoundStats { strength.extra_dies, strength.extra_combat_value, strength.deny_combat_abilities, - &mut log, + &mut unit_rolls, ); - let log_str = roll_log_str(&log); let combat_value = rolls.combat_value as u8; let hit_cancels = rolls.hit_cancels + strength.hit_cancels; - let opponent_str = if c.defender() == player { - "attacking" - } else { - "defending" - } - .to_string(); - CombatRoundStats { - opponent_str, strength, player, - log_str, + rolls: unit_rolls, combat_value, hit_cancels, fighters: fighting.len() as u8, @@ -118,37 +116,20 @@ impl CombatRoundStats { opponent.fighters, self.combat_value, ); - let hits = combat_hits.hits(); - let p = EventPlayer::new(self.player, combat_event_origin()); - p.log( + EventPlayer::new(self.player, combat_event_origin()).add_log_entry( game, - &format!( - "Roll {} for combined combat value of {} and gets {} hits against {} units", - self.log_str, self.combat_value, hits, self.opponent_str, - ), + ActionLogEntry::CombatRoll(ActionLogEntryCombatRoll { + rolls: self.rolls.clone(), + combat_value: self.combat_value, + hits: combat_hits.hits(), + combat_modifiers: self.strength.roll_log.clone(), + }), ); - - if !self.strength.roll_log.is_empty() { - p.log( - game, - &format!( - "Combat modifiers: {}", - roll_log_str(&self.strength.roll_log) - ), - ); - } combat_hits } } -fn roll_log_str(log: &[String]) -> String { - if log.is_empty() { - return String::from("no dice"); - } - log.join(", ") -} - struct CombatRolls { pub combat_value: i8, pub hit_cancels: u8, @@ -189,7 +170,7 @@ fn roll( extra_dies: u8, extra_combat_value: i8, deny_combat_abilities: bool, - roll_log: &mut Vec, + roll_log: &mut Vec, ) -> CombatRolls { let mut dice_rolls = extra_dies; let mut unit_types = Units::empty(); @@ -214,21 +195,19 @@ fn roll( match dice_roll.bonus { Infantry => { rolls.combat_value += 1; - add_roll_log_effect(roll_log, "+1 combat value"); + add_bonus(roll_log); } Cavalry => { rolls.combat_value += 2; - add_roll_log_effect(roll_log, "+2 combat value"); + add_bonus(roll_log); } Elephant => { rolls.hit_cancels += 1; rolls.combat_value -= value as i8; - add_roll_log_effect(roll_log, "-1 hits, no combat value"); + add_bonus(roll_log); } _ => (), } - } else { - add_roll_log_effect(roll_log, "no bonus"); } } if rolls.combat_value < 0 { @@ -241,7 +220,7 @@ fn dice_roll_with_leader_reroll( game: &mut Game, unit_types: &mut Units, deny_combat_abilities: bool, - roll_log: &mut Vec, + roll_log: &mut Vec, ) -> CombatDieRoll { let side = roll_die(game, roll_log); @@ -256,7 +235,7 @@ fn dice_roll_with_leader_reroll( // if used, the leader grants unlimited rerolls of 1s loop { - add_roll_log_effect(roll_log, "re-roll"); + add_bonus(roll_log); let side = roll_die(game, roll_log); if side.bonus != LEADER_UNIT { @@ -265,13 +244,16 @@ fn dice_roll_with_leader_reroll( } } -fn add_roll_log_effect(roll_log: &mut [String], effect: &str) { - use std::fmt::Write as _; - let _ = write!(roll_log[roll_log.len() - 1], "{effect})"); +fn add_bonus(roll_log: &mut [UnitCombatRoll]) { + roll_log.last_mut().expect("entry not found").bonus = true; } -fn roll_die(game: &mut Game, roll_log: &mut Vec) -> CombatDieRoll { +fn roll_die(game: &mut Game, roll_log: &mut Vec) -> CombatDieRoll { let roll = game.next_dice_roll(); - roll_log.push(format!("{} ({}, ", roll.value, roll.bonus.generic_name())); - roll.clone() + roll_log.push(UnitCombatRoll { + value: roll.value, + unit_type: roll.bonus, + bonus: false, + }); + roll } diff --git a/server/src/content/ability.rs b/server/src/content/ability.rs index 75b25cec..5982cd7b 100644 --- a/server/src/content/ability.rs +++ b/server/src/content/ability.rs @@ -149,7 +149,8 @@ pub(crate) fn recruit_event_origin() -> EventOrigin { EventOrigin::Ability("Recruit".to_string()) } -pub(crate) fn combat_event_origin() -> EventOrigin { +#[must_use] +pub fn combat_event_origin() -> EventOrigin { EventOrigin::Ability("Combat".to_string()) } diff --git a/server/src/content/action_cards/cultural_takeover.rs b/server/src/content/action_cards/cultural_takeover.rs index 00df6dcd..aaf88820 100644 --- a/server/src/content/action_cards/cultural_takeover.rs +++ b/server/src/content/action_cards/cultural_takeover.rs @@ -7,7 +7,7 @@ use crate::content::effects::PermanentEffect; use crate::content::persistent_events::{SelectedStructure, UnitTypeRequest}; use crate::content::tactics_cards::TacticsCardFactory; use crate::cultural_influence::{ - InfluenceCultureInfo, available_influence_actions, influence_culture_boost_cost, + InfluenceCultureAttemptInfo, available_influence_actions, influence_culture_boost_cost, }; use crate::game::Game; use crate::player::{Player, gain_unit, remove_unit}; @@ -105,6 +105,7 @@ fn any_barbarian_city_can_be_influenced(game: &Game, p: &Player) -> bool { i, true, true, + c.player_index, ) .is_ok() }) @@ -137,7 +138,7 @@ pub(crate) fn use_cultural_takeover() -> Ability { |c, _, game, _| { if let Ok(i) = c && matches!(i.structure, Structure::CityCenter) - && !(is_barbarian_takeover(game, i) || i.barbarian_takeover_check) + && !(is_barbarian_takeover(game, i) || i.barbarian_takeover) { *c = Err("City center can't be influenced".to_string()); } @@ -162,7 +163,7 @@ pub(crate) fn use_cultural_takeover() -> Ability { .build() } -fn is_barbarian_takeover(game: &Game, c: &InfluenceCultureInfo) -> bool { +fn is_barbarian_takeover(game: &Game, c: &InfluenceCultureAttemptInfo) -> bool { let city = game.get_any_city(c.position); city.player_index == get_barbarians_player(game).index && city.size() == 1 diff --git a/server/src/content/action_cards/mercenaries.rs b/server/src/content/action_cards/mercenaries.rs index 9fecd667..69df5a3a 100644 --- a/server/src/content/action_cards/mercenaries.rs +++ b/server/src/content/action_cards/mercenaries.rs @@ -155,7 +155,7 @@ fn move_army(b: ActionCardBuilder, i: i32) -> ActionCardBuilder { let m = MoveUnits::new(units, to, None, ResourcePile::empty()); s.player() - .add_action_log_item(game, ActionLogEntry::move_units(b, &m)); + .add_log_entry(game, ActionLogEntry::move_units(b, &m)); move_with_possible_combat(game, barbarian, &m); }, diff --git a/server/src/content/advances/autocracy.rs b/server/src/content/advances/autocracy.rs index 6276d5b4..5f29307d 100644 --- a/server/src/content/advances/autocracy.rs +++ b/server/src/content/advances/autocracy.rs @@ -56,9 +56,9 @@ fn totalitarianism() -> AdvanceBuilder { .add_transient_event_listener( |event| &mut event.on_influence_culture_attempt, 0, - |r, city, game, _| { + |r, city, game, p| { if let Ok(info) = r - && info.is_defender + && info.is_defender(p.index) && game .player(city.player_index) .get_units(city.position) diff --git a/server/src/content/advances/culture.rs b/server/src/content/advances/culture.rs index f5ac4bff..28737fe8 100644 --- a/server/src/content/advances/culture.rs +++ b/server/src/content/advances/culture.rs @@ -80,9 +80,9 @@ fn monuments() -> AdvanceBuilder { .add_transient_event_listener( |event| &mut event.on_influence_culture_attempt, 1, - |r, city, _, _| { + |r, city, _, p| { if let Ok(info) = r - && info.is_defender + && info.is_defender(p.index) && !city.pieces.wonders.is_empty() { *r = Err( diff --git a/server/src/content/advances/theocracy.rs b/server/src/content/advances/theocracy.rs index f714f071..a6fe4c9c 100644 --- a/server/src/content/advances/theocracy.rs +++ b/server/src/content/advances/theocracy.rs @@ -76,9 +76,9 @@ fn devotion() -> AdvanceBuilder { .add_transient_event_listener( |event| &mut event.on_influence_culture_attempt, 4, - |r, city, _, _| { + |r, city, _, p| { if let Ok(info) = r - && info.is_defender + && info.is_defender(p.index) && city.pieces.temple.is_some() { info.set_no_boost(); @@ -99,13 +99,10 @@ fn conversion() -> AdvanceBuilder { 3, |r, _, _, p| { if let Ok(info) = r - && !info.is_defender + && !info.is_defender(p.index) { info.roll_boost += 1; - info.info.add_log( - p, - "Gain +1 to Influence Culture roll for Conversion Advance", - ); + info.info.add_log(p, "gains +1 to Influence Culture roll"); } }, ) diff --git a/server/src/content/civilizations/rome.rs b/server/src/content/civilizations/rome.rs index e1a04fe6..68795ca5 100644 --- a/server/src/content/civilizations/rome.rs +++ b/server/src/content/civilizations/rome.rs @@ -329,9 +329,9 @@ fn sulla() -> LeaderInfo { .add_transient_event_listener( |event| &mut event.on_influence_culture_attempt, 6, - |r, city, game, _| { + |r, city, game, p| { if let Ok(info) = r - && info.is_defender + && info.is_defender(p.index) && leader_position(game.player(city.player_index)) == city.position { *r = diff --git a/server/src/content/civilizations/vikings.rs b/server/src/content/civilizations/vikings.rs index 8384608b..c4cfc20f 100644 --- a/server/src/content/civilizations/vikings.rs +++ b/server/src/content/civilizations/vikings.rs @@ -383,7 +383,7 @@ fn new_colonies() -> LeaderAbility { let m = MoveUnits::new(units, to, None, ResourcePile::empty()); s.player() - .add_action_log_item(game, ActionLogEntry::move_units(p, &m)); + .add_log_entry(game, ActionLogEntry::move_units(p, &m)); move_with_possible_combat(game, s.player_index, &m); }, diff --git a/server/src/content/persistent_events.rs b/server/src/content/persistent_events.rs index ef74eb08..517730ab 100644 --- a/server/src/content/persistent_events.rs +++ b/server/src/content/persistent_events.rs @@ -9,10 +9,11 @@ use crate::combat_listeners::{CombatRoundEnd, CombatRoundStart}; use crate::combat_stats::CombatStats; use crate::construct::ConstructInfo; use crate::content::custom_actions::CustomActionActivation; -use crate::cultural_influence::InfluenceCultureInfo; +use crate::cultural_influence::InfluenceCultureBoostInfo; use crate::events::EventOrigin; use crate::explore::ExploreResolutionState; use crate::game::Game; +use crate::log::ActionLogItem; use crate::map::Rotation; use crate::objective_card::{SelectObjectivesInfo, present_instant_objective_cards}; use crate::payment::{PaymentOptions, ResourceReward}; @@ -101,7 +102,7 @@ impl PersistentEventPlayer { pub enum PersistentEventType { Collect(CollectInfo), ExploreResolution(ExploreResolutionState), - InfluenceCulture(InfluenceCultureInfo), + InfluenceCultureBoost(InfluenceCultureBoostInfo), UnitsKilled(KilledUnits), CombatStart(Combat), CombatRoundStart(CombatRoundStart), @@ -365,7 +366,7 @@ impl EventResponse { #[derive(Debug, Clone)] pub struct TriggerPersistentEventParams { - pub log: Option, + pub log: Option, pub next_player: fn(&mut V) -> (), pub origin_override: Option, } @@ -410,7 +411,7 @@ where .is_none_or(|s| s.event_type != current_event_type) { if let Some(log) = params.log { - game.add_info_log_item(&log); + game.add_log_item(log); } game.events.push(PersistentEventState::new( players[0], diff --git a/server/src/content/tactics_cards.rs b/server/src/content/tactics_cards.rs index 7159691d..4c477d65 100644 --- a/server/src/content/tactics_cards.rs +++ b/server/src/content/tactics_cards.rs @@ -22,7 +22,7 @@ pub(crate) fn peltasts(id: u8) -> TacticsCard { id, "Peltasts", "Roll a die for each of your Army units. \ - If you rolled a 5 or 6, ignore 1 hit", + If you rolls a 5 or 6, ignore 1 hit", ) .fighter_requirement(FighterRequirement::Army) .add_reveal_listener(7, |player, game, combat, s| { @@ -30,12 +30,12 @@ pub(crate) fn peltasts(id: u8) -> TacticsCard { let roll = game.next_dice_roll().value; if roll >= 5 { s.roll_log - .push(format!("Peltasts rolled a {roll} and ignored a hit",)); + .push(format!("Peltasts rolls a {roll} and ignored a hit",)); s.hit_cancels += 1; return; } } - s.roll_log.push("Pelts rolled no 5 or 6".to_string()); + s.roll_log.push("Pelts rolls no 5 or 6".to_string()); }) .build() } @@ -66,11 +66,11 @@ pub(crate) fn encircled(id: u8) -> TacticsCard { if roll >= 5 { p.log( game, - "Rolled a 5 or 6 and added a hit that cannot be ignored", + "rolls a 5 or 6 and added a hit that cannot be ignored", ); e.update_hits(role, true, |h| h.extra_hits += 1); } else { - p.log(game, "Rolled no 5 or 6"); + p.log(game, "rolls no 5 or 6"); } } else { p.log(game, "Cannot do damage - opponent has fewer losses"); @@ -405,9 +405,9 @@ pub(crate) fn archers(id: u8) -> TacticsCard { let roll = game.next_dice_roll().value; if roll >= 5 { - p.log(game, &format!("Rolled a {roll} and scored a hit")); + p.log(game, &format!("rolls a {roll} and scored a hit")); } else { - p.log(game, &format!("Rolled a {roll} and did not score a hit")); + p.log(game, &format!("rolls a {roll} and did not score a hit")); return None; } diff --git a/server/src/content/wonders.rs b/server/src/content/wonders.rs index 92cf1d2f..0c670b20 100644 --- a/server/src/content/wonders.rs +++ b/server/src/content/wonders.rs @@ -182,7 +182,7 @@ pub(crate) fn use_great_mausoleum() -> Ability { game.cache.get_incident(*card).name )) } else { - i.incident_id = draw_and_discard_incident_card_from_pile(game, p.index); + i.incident_id = draw_and_discard_incident_card_from_pile(game, p); None } }, @@ -201,7 +201,7 @@ pub(crate) fn use_great_mausoleum() -> Ability { ); i.incident_id = card; } else { - i.incident_id = draw_and_discard_incident_card_from_pile(game, s.player_index); + i.incident_id = draw_and_discard_incident_card_from_pile(game, &s.player()); } }, ) diff --git a/server/src/cultural_influence.rs b/server/src/cultural_influence.rs index 9b02b92c..e1984311 100644 --- a/server/src/cultural_influence.rs +++ b/server/src/cultural_influence.rs @@ -8,7 +8,7 @@ use crate::content::custom_actions::custom_action_modifier_event_origin; use crate::content::persistent_events::{PaymentRequest, PersistentEventType, SelectedStructure}; use crate::events::{EventOrigin, EventPlayer}; use crate::game::Game; -use crate::log::current_turn_log_without_redo; +use crate::log::{ActionLogEntry, current_turn_log_without_redo}; use crate::payment::PaymentOptions; use crate::player::Player; use crate::player_events::ActionInfo; @@ -39,21 +39,19 @@ impl InfluenceCultureAttempt { } #[derive(Serialize, Deserialize, PartialEq, Eq, Clone, Debug)] -pub struct InfluenceCultureInfo { - pub is_defender: bool, +pub struct InfluenceCultureAttemptInfo { + pub target_player: usize, pub structure: Structure, pub prevent_boost: bool, pub range_boost_cost: PaymentOptions, - pub roll: u8, - pub roll_boost_cost: PaymentOptions, pub(crate) info: ActionInfo, pub roll_boost: u8, pub position: Position, pub starting_city_position: Position, - pub barbarian_takeover_check: bool, + pub barbarian_takeover: bool, } -impl InfluenceCultureInfo { +impl InfluenceCultureAttemptInfo { #[must_use] pub(crate) fn new( range_boost_cost: PaymentOptions, @@ -61,20 +59,19 @@ impl InfluenceCultureInfo { position: Position, structure: Structure, starting_city_position: Position, - barbarian_takeover_check: bool, - ) -> InfluenceCultureInfo { - InfluenceCultureInfo { + barbarian_takeover: bool, + target_player: usize, + ) -> InfluenceCultureAttemptInfo { + InfluenceCultureAttemptInfo { prevent_boost: false, structure, range_boost_cost, info, roll_boost: 0, - roll: 0, - roll_boost_cost: PaymentOptions::free(), - is_defender: false, position, starting_city_position, - barbarian_takeover_check, + barbarian_takeover, + target_player, } } @@ -86,6 +83,29 @@ impl InfluenceCultureInfo { pub(crate) fn player(&self, player: usize) -> EventPlayer { EventPlayer::new(player, self.info.origin.clone()) } + + #[must_use] + pub(crate) fn is_defender(&self, player: usize) -> bool { + self.target_player == player + } +} + +#[derive(Serialize, Deserialize, PartialEq, Eq, Clone, Debug)] +pub struct InfluenceCultureBoostInfo { + pub attempt: InfluenceCultureAttemptInfo, + pub roll: u8, + pub roll_boost_cost: PaymentOptions, +} + +impl InfluenceCultureBoostInfo { + #[must_use] + pub(crate) fn new(attempt: InfluenceCultureAttemptInfo) -> InfluenceCultureBoostInfo { + InfluenceCultureBoostInfo { + attempt, + roll: 0, + roll_boost_cost: PaymentOptions::free(), + } + } } #[derive(Clone, PartialEq)] @@ -112,70 +132,42 @@ pub(crate) fn execute_influence_culture_attempt( i: &InfluenceCultureAttempt, ) -> Result<(), String> { let s = &i.selected_structure; - let target_city_position = s.position; - let target_city = game.get_any_city(target_city_position); - let target_player_index = target_city.player_index; - let info = influence_culture_boost_cost(game, player_index, s, &i.action_type, false, false)?; - - let player = if target_player_index == player_index { - String::from("themselves") - } else { - game.player_name(target_player_index) - }; - let start = info.starting_city_position; - let city = if start == target_city_position { - String::new() - } else { - format!(" with the city {start}") - }; - let range_boost_cost = &info.range_boost_cost; - // this cost can't be changed by the player - let cost = if range_boost_cost.is_free() { - String::new() - } else { - format!( - " and may pay {} to boost the range", - range_boost_cost.default - ) - }; - let city_piece = match s.structure { - Structure::CityCenter => "City Center", - Structure::Building(b) => b.name(), - Structure::Wonder(_) => panic!("Wonder is not allowed here"), - }; - - info.player(player_index).log( + let info = influence_culture_boost_cost( game, - &format!( - "Tried to influence the {city_piece} in the city \ - at {target_city_position} by {player}{city}{cost}", - ), - ); + player_index, + s, + &i.action_type, + false, + false, + game.get_any_city(s.position).player_index, + )?; - on_cultural_influence(game, player_index, info); + info.player(player_index) + .add_log_entry(game, ActionLogEntry::InfluenceCultureAttempt(info.clone())); + on_cultural_influence(game, player_index, InfluenceCultureBoostInfo::new(info)); Ok(()) } pub(crate) fn on_cultural_influence( game: &mut Game, player_index: usize, - info: InfluenceCultureInfo, + info: InfluenceCultureBoostInfo, ) { let _ = game.trigger_persistent_event( &[player_index], - |e| &mut e.influence_culture, + |e| &mut e.influence_culture_boost, info, - PersistentEventType::InfluenceCulture, + PersistentEventType::InfluenceCultureBoost, ); } pub(crate) fn use_cultural_influence() -> Ability { Ability::builder("Influence Culture", "") .add_payment_request_listener( - |e| &mut e.influence_culture, + |e| &mut e.influence_culture_boost, 2, |game, p, info| { - let cost = &info.range_boost_cost; + let cost = &info.attempt.range_boost_cost; if cost.is_free() { info.roll_boost_cost = range_boost_cost(game, info, p.index); return None; @@ -191,7 +183,7 @@ pub(crate) fn use_cultural_influence() -> Ability { }, ) .add_payment_request_listener( - |e| &mut e.influence_culture, + |e| &mut e.influence_culture_boost, 0, roll_boost_payment, |game, s, info| roll_boost_paid(game, s.player_index, &s.choice[0], info), @@ -203,9 +195,10 @@ fn roll_boost_paid( game: &mut Game, player_index: usize, payment: &ResourcePile, - info: &mut InfluenceCultureInfo, + boost: &mut InfluenceCultureBoostInfo, ) { - let a = current_turn_log_without_redo(game) + let info = &mut boost.attempt; + let attempt = current_turn_log_without_redo(game) .actions .iter() .rev() @@ -225,18 +218,18 @@ fn roll_boost_paid( let player = info.player(player_index); if payment.is_empty() { player.log(game, "Declined to pay to increase the dice roll"); - attempt_failed(game, player_index, a.selected_structure.position); + attempt_failed(game, player_index, attempt.selected_structure.position); return; } - player.log(game, "Paying to increase the dice roll"); + player.log(game, "pays to increase the dice roll"); influence_culture(game, player_index, info); } fn roll_boost_payment( game: &mut Game, p: &EventPlayer, - info: &mut InfluenceCultureInfo, + info: &mut InfluenceCultureBoostInfo, ) -> Option> { let cost = &info.roll_boost_cost; if cost.is_free() { @@ -247,18 +240,18 @@ fn roll_boost_payment( if !p.get(game).can_afford(cost) { p.log( game, - &format!("Rolled a {roll} and does not have enough resources to increase the roll"), + &format!("rolls a {roll} and does not have enough resources to increase the roll"), ); - info.info.execute(game); - attempt_failed(game, p.index, info.position); + info.attempt.info.execute(game); + attempt_failed(game, p.index, info.attempt.position); return None; } - info.info.execute(game); + info.attempt.info.execute(game); p.log( game, &format!( - "Rolled a {roll} and now has the option to pay {cost} to \ + "rolls a {roll} and now has the option to pay {cost} to \ increase the dice roll and proceed with the cultural influence", ), ); @@ -271,28 +264,29 @@ fn roll_boost_payment( fn range_boost_cost( game: &mut Game, - info: &mut InfluenceCultureInfo, + info: &mut InfluenceCultureBoostInfo, player_index: usize, ) -> PaymentOptions { - let p = info.player(player_index); + let a = &info.attempt; + let p = a.player(player_index); - let roll = game.next_dice_roll().value + info.roll_boost; + let roll = game.next_dice_roll().value + a.roll_boost; info.roll = roll; let success = roll >= INFLUENCE_MIN_ROLL; if success { p.log( game, - &format!("Cultural influence succeeded (rolled {roll})"), + &format!("Cultural influence succeeded (rolls {roll})"), ); - info.info.execute(game); - influence_culture(game, player_index, info); + a.info.execute(game); + influence_culture(game, player_index, a); return PaymentOptions::free(); } - if (info.starting_city_position == info.position) || info.prevent_boost { - p.log(game, &format!("Cultural influence failed (rolled {roll})")); - info.info.execute(game); - attempt_failed(game, player_index, info.position); + if (a.starting_city_position == a.position) || a.prevent_boost { + p.log(game, &format!("Cultural influence failed (rolls {roll})")); + a.info.execute(game); + attempt_failed(game, player_index, a.position); return PaymentOptions::free(); } @@ -332,8 +326,9 @@ pub fn influence_culture_boost_cost( selected: &SelectedStructure, action_type: &PlayingActionType, add_action_cost: bool, - barbarian_takeover_check: bool, -) -> Result { + barbarian_takeover: bool, + target_player: usize, +) -> Result { let target_city_position = selected.position; let structure = &selected.structure; let target_city = game.get_any_city(target_city_position); @@ -372,7 +367,7 @@ pub fn influence_culture_boost_cost( )?; let origin = influence_event_origin(action_type, attacker); - let mut info = Ok(InfluenceCultureInfo::new( + let mut info = Ok(InfluenceCultureAttemptInfo::new( PaymentOptions::resources( attacker, origin.clone(), @@ -382,7 +377,8 @@ pub fn influence_culture_boost_cost( target_city_position, structure.clone(), start, - barbarian_takeover_check, + barbarian_takeover, + target_player, )); attacker.trigger_event( |e| &e.on_influence_culture_attempt, @@ -391,9 +387,7 @@ pub fn influence_culture_boost_cost( game, ); - let mut i = info?; - i.is_defender = true; - info = Ok(i); + info = Ok(info?); game.player(target_player_index).trigger_event( |e| &e.on_influence_culture_attempt, @@ -415,7 +409,10 @@ pub fn available_influence_culture( game: &Game, player: usize, action_type: &PlayingActionType, -) -> Vec<(SelectedStructure, Result)> { +) -> Vec<( + SelectedStructure, + Result, +)> { game.players .iter() .flat_map(|p| { @@ -432,6 +429,7 @@ pub fn available_influence_culture( action_type, true, false, + city.player_index, ); (s, result) }) @@ -454,7 +452,7 @@ fn structures(city: &City) -> Vec { structures } -fn influence_culture(game: &mut Game, influencer_index: usize, info: &InfluenceCultureInfo) { +fn influence_culture(game: &mut Game, influencer_index: usize, info: &InfluenceCultureAttemptInfo) { let city_position = info.position; let city_owner = game.get_any_city(city_position).player_index; let new = &info.player(influencer_index); diff --git a/server/src/events.rs b/server/src/events.rs index 216f587f..f10dfb4b 100644 --- a/server/src/events.rs +++ b/server/src/events.rs @@ -135,7 +135,7 @@ impl EventPlayer { self.get(game).get_name() } - pub fn add_action_log_item(&self, game: &mut Game, entry: ActionLogEntry) { + pub fn add_log_entry(&self, game: &mut Game, entry: ActionLogEntry) { add_action_log_item(game, self.index, entry, self.origin.clone(), vec![]); } } diff --git a/server/src/explore.rs b/server/src/explore.rs index c032e8c9..635cd376 100644 --- a/server/src/explore.rs +++ b/server/src/explore.rs @@ -259,7 +259,7 @@ fn add_block_tiles_with_log( .retain(|b| b.position.top_tile != pos.top_tile); let tiles = block.tiles(pos, rotation); - p.add_action_log_item(game, ActionLogEntry::explore_tiles(tiles)); + p.add_log_entry(game, ActionLogEntry::explore_tiles(tiles)); game.map.add_block_tiles(pos, block, rotation); } diff --git a/server/src/game.rs b/server/src/game.rs index 2b7e830f..005fd57d 100644 --- a/server/src/game.rs +++ b/server/src/game.rs @@ -11,8 +11,9 @@ use crate::content::persistent_events::{ use crate::events::{Event, EventOrigin, EventPlayer}; use crate::game_data::GameData; use crate::log::{ - ActionLogAge, TurnType, add_round_log, add_start_turn_action_if_needed, add_turn_log, - current_action_log_mut, current_turn_log, current_turn_log_mut, + ActionLogAge, ActionLogEntry, ActionLogItem, TurnType, add_round_log, + add_start_turn_action_if_needed, add_turn_log, current_action_log_mut, current_turn_log, + current_turn_log_mut, }; use crate::movement::MoveState; use crate::pirates::get_pirates_player; @@ -336,21 +337,17 @@ impl Game { }) } - pub fn add_info_log_item(&mut self, info: &str) { - current_action_log_mut(self).log.push(info.to_string()); + pub fn add_log_item(&mut self, item: ActionLogItem) { + current_action_log_mut(self).items.push(item); } pub fn log(&mut self, player: usize, origin: &EventOrigin, message: &str) { - let prefix = format!("{}: {}: ", self.player_name(player), origin.name(self)); - let log = &mut current_action_log_mut(self).log; - for c in log.iter_mut() { - if c.starts_with(&prefix) { - use std::fmt::Write as _; - let _ = write!(c, ", {message}"); - return; - } - } - log.push(format!("{prefix}{message}")); + self.add_log_item(ActionLogItem::new( + player, + ActionLogEntry::message(message.to_string()), + origin.clone(), + vec![], + )); } pub(crate) fn start_turn(&mut self) { @@ -493,10 +490,13 @@ impl Game { .expect("there should be at least one player in the game") .0; let winner_name = self.player_name(winner_player_index); - let m = format!("The game has ended. {winner_name} has won"); - self.add_message(&m); + self.add_message(&format!("The game has ended. {winner_name} has won")); add_start_turn_action_if_needed(self, 0); - self.add_info_log_item(&m); + EventPlayer::new( + winner_player_index, + EventOrigin::Ability("having the most points".to_string()), + ) + .log(self, "wins the game"); self.state = GameState::Finished; } diff --git a/server/src/game_setup.rs b/server/src/game_setup.rs index b24bc01d..e956af11 100644 --- a/server/src/game_setup.rs +++ b/server/src/game_setup.rs @@ -12,7 +12,8 @@ use crate::events::{EventOrigin, EventPlayer}; use crate::game::{CivSetupOption, Game, GameContext, GameOptions, GameState}; use crate::leader::Leader; use crate::log::{ - ActionLogAge, ActionLogRound, TurnType, add_start_turn_action_if_needed, add_turn_log, + ActionLogAge, ActionLogRound, SetupTurnType, TurnType, add_start_turn_action_if_needed, + add_turn_log, }; use crate::map::{Map, MapSetup, get_map_setup}; use crate::objective_card::gain_objective_card_from_pile; @@ -146,13 +147,14 @@ pub fn setup_game_with_cache(setup: &GameSetup, cache: Cache) -> Game { .collect_vec() .shuffled(&mut rng); let all = &cache.get_abilities().clone(); + let choose_civ = setup.options.civilization == CivSetupOption::ChooseCivilization; let mut game = Game { seed: setup.seed.clone(), context: GameContext::Play, version: JSON_SCHEMA_VERSION, options: setup.options.clone(), cache, - state: if setup.options.civilization == CivSetupOption::ChooseCivilization { + state: if choose_civ { GameState::ChooseCivilization } else { GameState::Playing @@ -187,17 +189,35 @@ pub fn setup_game_with_cache(setup: &GameSetup, cache: Cache) -> Game { ability::init_player(&mut game, i, all); } - execute_setup_round(setup, &mut game, map_setup.as_ref()); + execute_setup_round(setup, &mut game, map_setup.as_ref(), choose_civ); + if !choose_civ { + game.next_age(); + } game } -fn execute_setup_round(setup: &GameSetup, game: &mut Game, map_setup: Option<&MapSetup>) { +fn execute_setup_round( + setup: &GameSetup, + game: &mut Game, + map_setup: Option<&MapSetup>, + choose_civ: bool, +) { let mut age = ActionLogAge::new(0); age.rounds.push(ActionLogRound::new(0)); game.log.push(age); for player_index in 0..setup.player_amount { - add_turn_log(game, TurnType::Setup(player_index)); + add_turn_log( + game, + TurnType::Setup(SetupTurnType { + player: player_index, + civilization: if choose_civ { + None + } else { + Some(game.player(player_index).civilization.name.clone()) + }, + }), + ); add_start_turn_action_if_needed(game, player_index); let origin = setup_event_origin(); let player = &EventPlayer::new(player_index, origin.clone()); @@ -216,7 +236,6 @@ fn execute_setup_round(setup: &GameSetup, game: &mut Game, map_setup: Option<&Ma gain_unit(game, player, position, UnitType::Settler); } } - game.next_age(); } pub(crate) fn place_home_tiles(game: &mut Game, player: &EventPlayer) { @@ -308,11 +327,8 @@ pub(crate) fn execute_choose_civ( game.increment_player_index(); if game.players.iter().all(|p| !p.civilization.is_choose_civ()) { game.state = GameState::Playing; + game.next_age(); } - player.log( - game, - &format!("Choose {}", game.player(player_index).civilization.name), - ); Ok(()) } diff --git a/server/src/incident.rs b/server/src/incident.rs index df43e7d1..3165121e 100644 --- a/server/src/incident.rs +++ b/server/src/incident.rs @@ -16,6 +16,7 @@ use crate::content::persistent_events::{ }; use crate::events::{EventOrigin, EventPlayer}; use crate::game::Game; +use crate::log::{ActionLogEntry, ActionLogItem}; use crate::map::Terrain; use crate::payment::{PaymentConversion, PaymentConversionType}; use crate::pirates::pirates_spawn_and_raid; @@ -619,17 +620,25 @@ impl AbilityInitializerSetup for IncidentBuilder { } } -pub(crate) fn trigger_incident(game: &mut Game, player_index: usize) { +pub(crate) fn trigger_incident(game: &mut Game, player_index: usize, origin: EventOrigin) { if game .player(player_index) .wonders_owned .contains(Wonder::GreatMausoleum) { - on_choose_incident(game, player_index, IncidentInfo::new(0, player_index)); + on_choose_incident( + game, + player_index, + IncidentInfo::new(0, player_index, origin), + ); } else { let info = IncidentInfo::new( - draw_and_discard_incident_card_from_pile(game, player_index), + draw_and_discard_incident_card_from_pile( + game, + &EventPlayer::new(player_index, origin.clone()), + ), player_index, + origin, ); on_trigger_incident(game, info); } @@ -648,9 +657,14 @@ pub(crate) fn on_choose_incident(game: &mut Game, player_index: usize, info: Inc pub(crate) fn on_trigger_incident(game: &mut Game, mut info: IncidentInfo) { loop { - let log: Option = play_base_effect(&info).then_some(format!( - "A new game event has been triggered: {}", - game.cache.get_incident(info.incident_id).name + let log: Option = play_base_effect(&info).then_some(ActionLogItem::new( + info.active_player, + ActionLogEntry::message(format!( + "triggers the event {}", + game.cache.get_incident(info.incident_id).name + )), + info.cause.clone(), + vec![], )); info = match trigger_persistent_event_with_listener( game, @@ -682,9 +696,13 @@ pub(crate) fn on_trigger_incident(game: &mut Game, mut info: IncidentInfo) { } } -pub(crate) fn draw_and_discard_incident_card_from_pile(game: &mut Game, player: usize) -> u8 { +pub(crate) fn draw_and_discard_incident_card_from_pile( + game: &mut Game, + player: &EventPlayer, +) -> u8 { let id = draw_card_from_pile( game, + player, "Events", |g| &mut g.incidents_left, |g| g.cache.get_incidents().iter().map(|i| i.id).collect_vec(), @@ -703,7 +721,7 @@ pub(crate) fn draw_and_discard_incident_card_from_pile(game: &mut Game, player: ) .expect("incident should exist"); - discard_card(|g| &mut g.incidents_discarded, id, player, game); + discard_card(|g| &mut g.incidents_discarded, id, player.index, game); id } diff --git a/server/src/lib.rs b/server/src/lib.rs index cdbd3502..d1fae27f 100644 --- a/server/src/lib.rs +++ b/server/src/lib.rs @@ -33,7 +33,7 @@ pub mod civilization; pub mod collect; pub mod combat; mod combat_listeners; -mod combat_roll; +pub mod combat_roll; pub mod combat_stats; pub mod construct; pub mod consts; diff --git a/server/src/log.rs b/server/src/log.rs index f9e10f26..c6662629 100644 --- a/server/src/log.rs +++ b/server/src/log.rs @@ -1,7 +1,9 @@ use crate::advance::Advance; use crate::card::{HandCard, HandCardLocation}; use crate::city::MoodState; +use crate::combat_roll::UnitCombatRoll; use crate::combat_stats::CombatStats; +use crate::cultural_influence::InfluenceCultureAttemptInfo; use crate::events::EventOrigin; use crate::map::Terrain; use crate::movement::{MoveUnits, move_event_origin}; @@ -48,10 +50,18 @@ impl ActionLogRound { } } +#[derive(Serialize, Deserialize, Clone, PartialEq, Debug)] +pub struct SetupTurnType { + pub player: usize, + #[serde(default)] + #[serde(skip_serializing_if = "Option::is_none")] + pub civilization: Option, +} + #[derive(Serialize, Deserialize, Clone, PartialEq)] pub enum TurnType { Player(usize), - Setup(usize), + Setup(SetupTurnType), StatusPhase(StatusPhaseStateType), } @@ -100,9 +110,6 @@ pub struct ActionLogAction { #[serde(skip_serializing_if = "Vec::is_empty")] pub items: Vec, #[serde(default)] - #[serde(skip_serializing_if = "Vec::is_empty")] - pub log: Vec, - #[serde(default)] #[serde(skip_serializing_if = "usize::is_zero")] pub active_events: usize, } @@ -122,7 +129,6 @@ impl ActionLogAction { undo: Vec::new(), combat_stats: None, items: Vec::new(), - log: Vec::new(), active_events, } } @@ -159,8 +165,34 @@ pub struct ActionLogEntryMove { pub embark_carrier_id: Option, } +#[derive(Serialize, Deserialize, Clone, PartialEq, Debug)] +pub struct ActionLogEntryCombatRound { + pub attackers: Units, + pub defending_player: usize, + pub defenders: Units, + pub round: u32, +} + +#[derive(Serialize, Deserialize, Clone, PartialEq, Debug)] +pub struct ActionLogEntryCombatRoll { + pub rolls: Vec, + pub combat_value: u8, + pub hits: u8, + #[serde(default)] + #[serde(skip_serializing_if = "Vec::is_empty")] + pub combat_modifiers: Vec, +} + +#[derive(Serialize, Deserialize, Clone, PartialEq, Debug)] +pub struct ActionLogEntryAdvance { + pub advance: Advance, + pub incident_token: ActionLogIncidentToken, + balance: ActionLogBalance, +} + #[derive(Serialize, Deserialize, Clone, PartialEq, Debug)] pub enum ActionLogEntry { + Text(String), Action { balance: ActionLogBalance, #[serde(default)] @@ -171,11 +203,7 @@ pub enum ActionLogEntry { resources: ResourcePile, balance: ActionLogBalance, }, - Advance { - advance: Advance, - incident_token: ActionLogIncidentToken, - balance: ActionLogBalance, - }, + Advance(ActionLogEntryAdvance), Units { units: Units, balance: ActionLogBalance, @@ -195,6 +223,9 @@ pub enum ActionLogEntry { Explore { tiles: Vec<(Position, Terrain)>, }, + CombatRound(ActionLogEntryCombatRound), + CombatRoll(ActionLogEntryCombatRoll), + InfluenceCultureAttempt(InfluenceCultureAttemptInfo), } impl ActionLogEntry { @@ -203,16 +234,18 @@ impl ActionLogEntry { match self { ActionLogEntry::Action { balance, .. } | ActionLogEntry::Resources { balance, .. } - | ActionLogEntry::Advance { balance, .. } | ActionLogEntry::Units { balance, .. } => Some(balance), ActionLogEntry::Structure(s) => Some(&s.balance), - ActionLogEntry::HandCard { .. } - | ActionLogEntry::MoodChange { .. } - | ActionLogEntry::Move { .. } - | ActionLogEntry::Explore { .. } => None, + ActionLogEntry::Advance(a) => Some(&a.balance), + _ => None, } } + #[must_use] + pub fn message(text: String) -> Self { + Self::Text(text) + } + #[must_use] pub fn resources(resources: ResourcePile, balance: ActionLogBalance) -> Self { Self::Resources { resources, balance } @@ -233,11 +266,11 @@ impl ActionLogEntry { balance: ActionLogBalance, incident_token: ActionLogIncidentToken, ) -> Self { - Self::Advance { + Self::Advance(ActionLogEntryAdvance { advance, incident_token, balance, - } + }) } #[must_use] diff --git a/server/src/movement.rs b/server/src/movement.rs index 96e66f7b..23a57d39 100644 --- a/server/src/movement.rs +++ b/server/src/movement.rs @@ -292,7 +292,7 @@ pub(crate) fn execute_movement_action( player.log(game, "Used a movement actions but moved no units"); } Move(m) => { - player.add_action_log_item(game, ActionLogEntry::move_units(player.get(game), m)); + player.add_log_entry(game, ActionLogEntry::move_units(player.get(game), m)); } Stop => player.log(game, "End the movement action"), } diff --git a/server/src/objective_card.rs b/server/src/objective_card.rs index 80948204..1a973e15 100644 --- a/server/src/objective_card.rs +++ b/server/src/objective_card.rs @@ -375,6 +375,7 @@ pub(crate) fn draw_objective_card_from_pile(game: &mut Game, player: &EventPlaye draw_great_seer_card(game, player).or_else(|| { let card = draw_card_from_pile( game, + player, "Objective Card", |g| &mut g.objective_cards_left, |g| g.cache.get_objective_cards().iter().map(|c| c.id).collect(), diff --git a/server/src/player_events.rs b/server/src/player_events.rs index 3989f80d..820e9d86 100644 --- a/server/src/player_events.rs +++ b/server/src/player_events.rs @@ -8,7 +8,9 @@ use crate::combat_stats::CombatStats; use crate::construct::ConstructInfo; use crate::content::custom_actions::CustomActionActivation; use crate::content::persistent_events::{KilledUnits, PaymentRequest}; -use crate::cultural_influence::{InfluenceCultureInfo, InfluenceCultureOutcome}; +use crate::cultural_influence::{ + InfluenceCultureAttemptInfo, InfluenceCultureBoostInfo, InfluenceCultureOutcome, +}; use crate::events::{Event, EventOrigin, EventPlayer}; use crate::explore::ExploreResolutionState; use crate::game::Game; @@ -49,7 +51,8 @@ impl PlayerEvents { } pub(crate) struct TransientEvents { - pub on_influence_culture_attempt: Event, City, Game>, + pub on_influence_culture_attempt: + Event, City, Game>, pub on_influence_culture_resolve: Event, pub before_move: Event, @@ -103,7 +106,7 @@ pub(crate) struct PersistentEvents { pub advance: PersistentEvent, pub recruit: PersistentEvent, pub found_city: PersistentEvent, - pub influence_culture: PersistentEvent, + pub influence_culture_boost: PersistentEvent, pub explore_resolution: PersistentEvent, pub pay_action: PersistentEvent, pub play_action_card: PersistentEvent, @@ -140,7 +143,7 @@ impl PersistentEvents { advance: Event::new("advance"), recruit: Event::new("recruit"), found_city: Event::new("found_city"), - influence_culture: Event::new("influence_culture"), + influence_culture_boost: Event::new("influence_culture"), explore_resolution: Event::new("explore_resolution"), pay_action: Event::new("pay_action"), play_action_card: Event::new("play_action_card"), @@ -247,6 +250,7 @@ impl IncidentPlayerInfo { #[derive(Serialize, Deserialize, Clone, PartialEq, Eq, Debug)] pub struct IncidentInfo { pub incident_id: u8, + pub cause: EventOrigin, pub active_player: usize, #[serde(default)] #[serde(skip_serializing_if = "Option::is_none")] @@ -271,7 +275,7 @@ pub struct IncidentInfo { impl IncidentInfo { #[must_use] - pub fn new(incident_id: u8, active_player: usize) -> IncidentInfo { + pub fn new(incident_id: u8, active_player: usize, cause: EventOrigin) -> IncidentInfo { IncidentInfo { incident_id, active_player, @@ -281,6 +285,7 @@ impl IncidentInfo { selected_player: None, selected_position: None, player: IncidentPlayerInfo::new(), + cause, } } diff --git a/server/src/playing_actions.rs b/server/src/playing_actions.rs index 61d3a8e2..589d337e 100644 --- a/server/src/playing_actions.rs +++ b/server/src/playing_actions.rs @@ -135,7 +135,7 @@ impl PlayingActionType { PlayingActionType::IncreaseHappiness => happiness_base_event_origin(), PlayingActionType::InfluenceCultureAttempt => influence_base_origin(), PlayingActionType::ActionCard(a) => EventOrigin::CivilCard(*a), - PlayingActionType::WonderCard(w) => EventOrigin::Wonder(*w), + PlayingActionType::WonderCard(_) => wonder_origin(), PlayingActionType::Special(c) => player.special_action_info(c).event_origin, PlayingActionType::MoveUnits => move_event_origin(), PlayingActionType::EndTurn => end_turn_origin(), @@ -236,7 +236,7 @@ impl PlayingAction { WonderCardInfo::new( w, wonder_cost(game, game.player(player_index), w), - EventOrigin::Ability("Build Wonder".to_string()), + wonder_origin(), ), ); } @@ -391,7 +391,7 @@ pub(crate) fn pay_for_action() -> Ability { fn end_turn(game: &mut Game, player: usize) { if game.actions_left > 0 { - EventPlayer::new(player, end_turn_origin()).add_action_log_item( + EventPlayer::new(player, end_turn_origin()).add_log_entry( game, ActionLogEntry::action(ActionLogBalance::Loss, game.actions_left), ); @@ -403,6 +403,10 @@ pub(crate) fn end_turn_origin() -> EventOrigin { EventOrigin::Ability("End Turn".to_string()) } +pub(crate) fn wonder_origin() -> EventOrigin { + EventOrigin::Ability("Build Wonder".to_string()) +} + fn add_override_origin( game: &mut Game, player_index: usize, diff --git a/server/src/resource.rs b/server/src/resource.rs index eb8185cd..36e5464f 100644 --- a/server/src/resource.rs +++ b/server/src/resource.rs @@ -113,7 +113,7 @@ pub(crate) fn check_for_waste(game: &mut Game) { let wasted_resources = mem::replace(&mut game.players[p].wasted_resources, ResourcePile::empty()); if !wasted_resources.is_empty() { - EventPlayer::new(p, EventOrigin::Ability("Waste".to_string())).add_action_log_item( + EventPlayer::new(p, EventOrigin::Ability("Waste".to_string())).add_log_entry( game, ActionLogEntry::resources(wasted_resources, ActionLogBalance::Loss), ); diff --git a/server/src/undo.rs b/server/src/undo.rs index b9ba683f..5385bb8c 100644 --- a/server/src/undo.rs +++ b/server/src/undo.rs @@ -24,7 +24,6 @@ pub(crate) fn undo(mut game: Game) -> Result { }; let item = l.get_mut(i).expect("should have undoable action"); - item.log.clear(); item.items.clear(); let p = std::mem::take(&mut item.undo); diff --git a/server/src/wonder.rs b/server/src/wonder.rs index 56f0d1a5..51b7d0b0 100644 --- a/server/src/wonder.rs +++ b/server/src/wonder.rs @@ -208,9 +208,10 @@ pub(crate) fn on_draw_wonder_card(game: &mut Game, player_index: usize, draw: Dr ); } -pub(crate) fn draw_wonder_from_pile(game: &mut Game) -> Option { +pub(crate) fn draw_wonder_from_pile(game: &mut Game, player: &EventPlayer) -> Option { draw_card_from_pile( game, + player, "Wonders", |game| &mut game.wonders_left, |_| Vec::new(), @@ -322,7 +323,7 @@ fn player_with_wonder_card(game: &Game, wonder: Wonder) -> Option { } fn gain_wonder_from_pile(game: &mut Game, player: &EventPlayer) { - if let Some(w) = draw_wonder_from_pile(game) { + if let Some(w) = draw_wonder_from_pile(game, player) { gain_wonder_card(game, player, w, HandCardLocation::DrawPile); } } @@ -433,21 +434,14 @@ pub(crate) fn build_wonder_handler() -> Ability { |e| &mut e.play_wonder_card, 11, move |game, p, i| { - p.log(game, &format!("Play the wonder card {}", i.wonder.name())); - Some(PositionRequest::new( cities_for_wonder(i.wonder, game, p.get(game), i.cost.clone()), 1..=1, "Select city to build wonder", )) }, - |game, s, i| { - let position = s.choice[0]; - i.selected_position = Some(position); - s.log( - game, - &format!("Decided to build {} in city {position}", i.wonder.name(),), - ); + |_game, s, i| { + i.selected_position = Some(s.choice[0]); }, ) .add_payment_request_listener( @@ -624,7 +618,7 @@ fn remove_public_wonder(game: &mut Game) { } pub(crate) fn draw_public_wonder(game: &mut Game, player: &EventPlayer) { - if let Some(wonder) = draw_wonder_from_pile(game) { + if let Some(wonder) = draw_wonder_from_pile(game, player) { player.log( game, &format!("{} is now available to be taken by anyone", wonder.name()), diff --git a/server/tests/test_games/action_cards/assassination.outcome3.json b/server/tests/test_games/action_cards/assassination.outcome3.json index 8b647d67..70ef721f 100644 --- a/server/tests/test_games/action_cards/assassination.outcome3.json +++ b/server/tests/test_games/action_cards/assassination.outcome3.json @@ -271,11 +271,15 @@ "origin": { "CivilCard": 27 } + }, + { + "player": 0, + "Text": "Assassinated Player2", + "origin": { + "CivilCard": 27 + } } ], - "log": [ - "Player1: Assassination: Assassinated Player2" - ], "active_events": 1 }, { diff --git a/server/tests/test_games/action_cards/city_development.outcome2.json b/server/tests/test_games/action_cards/city_development.outcome2.json index 4699fea4..72cdfe6f 100644 --- a/server/tests/test_games/action_cards/city_development.outcome2.json +++ b/server/tests/test_games/action_cards/city_development.outcome2.json @@ -280,11 +280,15 @@ "origin": { "CivilCard": 17 } + }, + { + "player": 0, + "Text": "You may build a building in a city without spending an action and without paying resources.", + "origin": { + "CivilCard": 17 + } } ], - "log": [ - "Player1: City Development: You may build a building in a city without spending an action and without paying resources." - ], "active_events": 1 }, { @@ -330,6 +334,13 @@ } ] }, + { + "player": 0, + "Text": "May replace resources with mood tokens", + "origin": { + "SpecialAdvance": "Captivi" + } + }, { "player": 0, "Structure": { @@ -344,9 +355,6 @@ "Ability": "Construct Building" } } - ], - "log": [ - "Player1: Captivi: May replace resources with mood tokens" ] } ] diff --git a/server/tests/test_games/action_cards/cultural_takeover.outcome2.json b/server/tests/test_games/action_cards/cultural_takeover.outcome2.json index d8ff1f58..f35f0615 100644 --- a/server/tests/test_games/action_cards/cultural_takeover.outcome2.json +++ b/server/tests/test_games/action_cards/cultural_takeover.outcome2.json @@ -254,10 +254,14 @@ "origin": { "Ability": "Action Card" } + }, + { + "player": 0, + "Text": "You may influence Barbarian cities of size 1.", + "origin": { + "CivilCard": 15 + } } - ], - "log": [ - "Player1: Cultural Takeover: You may influence Barbarian cities of size 1." ] }, { @@ -285,10 +289,38 @@ "origin": { "Ability": "Influence Culture" } + }, + { + "player": 0, + "InfluenceCultureAttempt": { + "target_player": 2, + "structure": "CityCenter", + "prevent_boost": false, + "range_boost_cost": { + "default": { + "culture_tokens": 2 + }, + "origin": { + "Ability": "Influence Culture" + } + }, + "info": { + "player": 0, + "origin": { + "Ability": "Influence Culture" + }, + "info": {}, + "log": [] + }, + "roll_boost": 0, + "position": "B3", + "starting_city_position": "A1", + "barbarian_takeover": false + }, + "origin": { + "Ability": "Influence Culture" + } } - ], - "log": [ - "Player1: Influence Culture: Tried to influence the City Center in the city at B3 by Barbarians with the city A1 and may pay 2 culture tokens to boost the range" ] }, { @@ -315,6 +347,13 @@ "Ability": "Influence Culture" } }, + { + "player": 0, + "Text": "Cultural influence succeeded (rolls 6)", + "origin": { + "Ability": "Influence Culture" + } + }, { "player": 2, "Structure": { @@ -353,9 +392,6 @@ } } ], - "log": [ - "Player1: Influence Culture: Cultural influence succeeded (rolled 6)" - ], "active_events": 1 } ] @@ -397,4 +433,4 @@ "incidents_left": [ 28 ] -} \ No newline at end of file +} diff --git a/server/tests/test_games/action_cards/explorer.outcome4.json b/server/tests/test_games/action_cards/explorer.outcome4.json index c2bb77d5..3cee0c33 100644 --- a/server/tests/test_games/action_cards/explorer.outcome4.json +++ b/server/tests/test_games/action_cards/explorer.outcome4.json @@ -425,8 +425,14 @@ } }, "player": 1, - "log": [ - "Player2: Explorer: Explored B6" + "items": [ + { + "player": 1, + "Text": "Explored B6", + "origin": { + "CivilCard": 21 + } + } ], "active_events": 1 }, @@ -438,6 +444,13 @@ }, "player": 1, "items": [ + { + "player": 1, + "Text": "Chose rotation 0", + "origin": { + "Ability": "Explore Resolution" + } + }, { "player": 1, "Explore": { @@ -465,9 +478,6 @@ } } ], - "log": [ - "Player2: Explore Resolution: Chose rotation 0" - ], "active_events": 2 }, { diff --git a/server/tests/test_games/action_cards/hero_general.outcome1.json b/server/tests/test_games/action_cards/hero_general.outcome1.json index 5f20d542..41b70d77 100644 --- a/server/tests/test_games/action_cards/hero_general.outcome1.json +++ b/server/tests/test_games/action_cards/hero_general.outcome1.json @@ -229,12 +229,26 @@ "origin": { "Ability": "Move" } + }, + { + "player": 0, + "CombatRound": { + "attackers": { + "settlers": 2, + "infantry": 2, + "cavalry": 1, + "elephants": 1 + }, + "defending_player": 1, + "defenders": { + "infantry": 2 + }, + "round": 1 + }, + "origin": { + "Ability": "Combat" + } } - ], - "log": [ - "Combat round 1", - "Player1: Combat: Attacking with 2 settlers, 2 infantry, 1 cavalry and 1 elephant", - "Player2: Combat: Defending with 2 infantry" ] }, { @@ -271,6 +285,78 @@ "city_mood": "Angry" }, "items": [ + { + "player": 0, + "Text": "Did not play a Tactics Card", + "origin": { + "Advance": "Tactics" + } + }, + { + "player": 0, + "CombatRoll": { + "rolls": [ + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + }, + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + }, + { + "value": 6, + "unit_type": "Infantry", + "bonus": false + }, + { + "value": 6, + "unit_type": "Infantry", + "bonus": false + } + ], + "combat_value": 26, + "hits": 2 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 1, + "CombatRoll": { + "rolls": [ + { + "value": 1, + "unit_type": { + "Leader": "Alexander" + }, + "bonus": false + }, + { + "value": 1, + "unit_type": { + "Leader": "Alexander" + }, + "bonus": false + } + ], + "combat_value": 2, + "hits": 0 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 1, + "Text": "Remove all defending units", + "origin": { + "Ability": "Choose Casualties" + } + }, { "player": 1, "Units": { @@ -284,6 +370,13 @@ "Ability": "Combat" } }, + { + "player": 0, + "Text": "wins the battle", + "origin": { + "Ability": "Combat" + } + }, { "player": 0, "Resources": { @@ -333,13 +426,6 @@ } } ], - "log": [ - "Player1: Tactics: Did not play a Tactics Card", - "Player1: Combat: Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value), 6 (infantry, no bonus), 6 (infantry, no bonus) for combined combat value of 26 and gets 2 hits against defending units", - "Player2: Combat: Roll 1 (leader, no bonus), 1 (leader, no bonus) for combined combat value of 2 and gets 0 hits against attacking units", - "Player2: Choose Casualties: Remove all defending units", - "Attacker wins" - ], "active_events": 1 } ] diff --git a/server/tests/test_games/action_cards/hero_general.outcome5.json b/server/tests/test_games/action_cards/hero_general.outcome5.json index d794e9f8..10a80722 100644 --- a/server/tests/test_games/action_cards/hero_general.outcome5.json +++ b/server/tests/test_games/action_cards/hero_general.outcome5.json @@ -226,12 +226,26 @@ "origin": { "Ability": "Move" } + }, + { + "player": 0, + "CombatRound": { + "attackers": { + "settlers": 2, + "infantry": 2, + "cavalry": 1, + "elephants": 1 + }, + "defending_player": 1, + "defenders": { + "infantry": 2 + }, + "round": 1 + }, + "origin": { + "Ability": "Combat" + } } - ], - "log": [ - "Combat round 1", - "Player1: Combat: Attacking with 2 settlers, 2 infantry, 1 cavalry and 1 elephant", - "Player2: Combat: Defending with 2 infantry" ] }, { @@ -271,6 +285,78 @@ "city_mood": "Angry" }, "items": [ + { + "player": 0, + "Text": "Did not play a Tactics Card", + "origin": { + "Advance": "Tactics" + } + }, + { + "player": 0, + "CombatRoll": { + "rolls": [ + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + }, + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + }, + { + "value": 6, + "unit_type": "Infantry", + "bonus": false + }, + { + "value": 6, + "unit_type": "Infantry", + "bonus": false + } + ], + "combat_value": 26, + "hits": 2 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 1, + "CombatRoll": { + "rolls": [ + { + "value": 1, + "unit_type": { + "Leader": "Alexander" + }, + "bonus": false + }, + { + "value": 1, + "unit_type": { + "Leader": "Alexander" + }, + "bonus": false + } + ], + "combat_value": 2, + "hits": 0 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 1, + "Text": "Remove all defending units", + "origin": { + "Ability": "Choose Casualties" + } + }, { "player": 1, "Units": { @@ -284,6 +370,13 @@ "Ability": "Combat" } }, + { + "player": 0, + "Text": "wins the battle", + "origin": { + "Ability": "Combat" + } + }, { "player": 0, "Resources": { @@ -333,13 +426,6 @@ } } ], - "log": [ - "Player1: Tactics: Did not play a Tactics Card", - "Player1: Combat: Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value), 6 (infantry, no bonus), 6 (infantry, no bonus) for combined combat value of 26 and gets 2 hits against defending units", - "Player2: Combat: Roll 1 (leader, no bonus), 1 (leader, no bonus) for combined combat value of 2 and gets 0 hits against attacking units", - "Player2: Choose Casualties: Remove all defending units", - "Attacker wins" - ], "active_events": 1 }, { diff --git a/server/tests/test_games/action_cards/mass_production.outcome1.json b/server/tests/test_games/action_cards/mass_production.outcome1.json index a6537ea9..6a2985b9 100644 --- a/server/tests/test_games/action_cards/mass_production.outcome1.json +++ b/server/tests/test_games/action_cards/mass_production.outcome1.json @@ -239,10 +239,14 @@ "origin": { "Ability": "Action Card" } + }, + { + "player": 0, + "Text": "Can use Mass Production to collect from 2 additional tiles.", + "origin": { + "CivilCard": 29 + } } - ], - "log": [ - "Player1: Mass Production: Can use Mass Production to collect from 2 additional tiles." ] }, { diff --git a/server/tests/test_games/action_cards/mercenaries.outcome2.json b/server/tests/test_games/action_cards/mercenaries.outcome2.json index 842e33d6..613295ba 100644 --- a/server/tests/test_games/action_cards/mercenaries.outcome2.json +++ b/server/tests/test_games/action_cards/mercenaries.outcome2.json @@ -270,10 +270,14 @@ "origin": { "Ability": "Action Card" } + }, + { + "player": 0, + "Text": "Player1 cannot move Barbarian army at A3 because Sulla is in range", + "origin": { + "CivilCard": 13 + } } - ], - "log": [ - "Player1: Mercenaries: Player1 cannot move Barbarian army at A3 because Sulla is in range" ] }, { @@ -285,8 +289,14 @@ } }, "player": 0, - "log": [ - "Player1: Mercenaries: Selected Barbarian armies to move: B3" + "items": [ + { + "player": 0, + "Text": "Selected Barbarian armies to move: B3", + "origin": { + "CivilCard": 13 + } + } ], "active_events": 1 }, @@ -339,6 +349,20 @@ "CivilCard": 13 } }, + { + "player": 0, + "Text": "Selected Barbarian army to move: B3", + "origin": { + "CivilCard": 13 + } + }, + { + "player": 0, + "Text": "Selected destination for Barbarian army: B2", + "origin": { + "CivilCard": 13 + } + }, { "player": 0, "Move": { @@ -352,6 +376,68 @@ "CivilCard": 13 } }, + { + "player": 2, + "CombatRound": { + "attackers": { + "infantry": 2 + }, + "defending_player": 0, + "defenders": { + "infantry": 1 + }, + "round": 1 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 2, + "CombatRoll": { + "rolls": [ + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + }, + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + } + ], + "combat_value": 14, + "hits": 1 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 0, + "CombatRoll": { + "rolls": [ + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + } + ], + "combat_value": 7, + "hits": 1 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 2, + "Text": "Remove 1 of their attacking units", + "origin": { + "Ability": "Choose Casualties" + } + }, { "player": 2, "Units": { @@ -365,6 +451,13 @@ "Ability": "Combat" } }, + { + "player": 0, + "Text": "Remove all defending units", + "origin": { + "Ability": "Choose Casualties" + } + }, { "player": 0, "Units": { @@ -378,6 +471,13 @@ "Ability": "Combat" } }, + { + "player": 2, + "Text": "wins the battle", + "origin": { + "Ability": "Combat" + } + }, { "player": 2, "Units": { @@ -392,15 +492,6 @@ } } ], - "log": [ - "Player1: Mercenaries: Selected Barbarian army to move: B3, Selected destination for Barbarian army: B2", - "Combat round 1", - "Barbarians: Combat: Attacking with 2 infantry, Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value) for combined combat value of 14 and gets 1 hits against defending units", - "Player1: Combat: Defending with 1 infantry, Roll 6 (infantry, +1 combat value) for combined combat value of 7 and gets 1 hits against attacking units", - "Barbarians: Choose Casualties: Remove 1 of their attacking units", - "Player1: Choose Casualties: Remove all defending units", - "Attacker wins" - ], "active_events": 1 } ] diff --git a/server/tests/test_games/action_cards/negotiations.outcome4.json b/server/tests/test_games/action_cards/negotiations.outcome4.json index 15aa2108..76dcf203 100644 --- a/server/tests/test_games/action_cards/negotiations.outcome4.json +++ b/server/tests/test_games/action_cards/negotiations.outcome4.json @@ -266,11 +266,15 @@ "origin": { "CivilCard": 23 } + }, + { + "player": 0, + "Text": "Started negotiations with Player2", + "origin": { + "CivilCard": 23 + } } ], - "log": [ - "Player1: Negotiations: Started negotiations with Player2" - ], "active_events": 1 }, { @@ -304,8 +308,14 @@ { "action": "StartTurn", "player": 1, - "log": [ - "Player2: Negotiations: May not attack Player1 this turn." + "items": [ + { + "player": 1, + "Text": "May not attack Player1 this turn.", + "origin": { + "Ability": "Negotiations" + } + } ] }, { @@ -344,8 +354,14 @@ { "action": "StartTurn", "player": 0, - "log": [ - "Player1: Negotiations: May attack Player2 again." + "items": [ + { + "player": 0, + "Text": "May attack Player2 again.", + "origin": { + "Ability": "Negotiations" + } + } ] }, { @@ -411,6 +427,63 @@ "Ability": "Move" } }, + { + "player": 0, + "CombatRound": { + "attackers": { + "infantry": 1 + }, + "defending_player": 1, + "defenders": { + "infantry": 1 + }, + "round": 1 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 0, + "CombatRoll": { + "rolls": [ + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + } + ], + "combat_value": 7, + "hits": 1 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 1, + "CombatRoll": { + "rolls": [ + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + } + ], + "combat_value": 7, + "hits": 1 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 0, + "Text": "Remove all attacking units", + "origin": { + "Ability": "Choose Casualties" + } + }, { "player": 0, "Units": { @@ -424,6 +497,13 @@ "Ability": "Combat" } }, + { + "player": 1, + "Text": "Remove all defending units", + "origin": { + "Ability": "Choose Casualties" + } + }, { "player": 1, "Units": { @@ -436,15 +516,14 @@ "origin": { "Ability": "Combat" } + }, + { + "player": 0, + "Text": "ends the battle in a draw", + "origin": { + "Ability": "Combat" + } } - ], - "log": [ - "Combat round 1", - "Player1: Combat: Attacking with 1 infantry, Roll 6 (infantry, +1 combat value) for combined combat value of 7 and gets 1 hits against defending units", - "Player2: Combat: Defending with 1 infantry, Roll 6 (infantry, +1 combat value) for combined combat value of 7 and gets 1 hits against attacking units", - "Player1: Choose Casualties: Remove all attacking units", - "Player2: Choose Casualties: Remove all defending units", - "Battle ends in a draw" ] } ] diff --git a/server/tests/test_games/action_cards/new_ideas.outcome2.json b/server/tests/test_games/action_cards/new_ideas.outcome2.json index c4e3c164..db330180 100644 --- a/server/tests/test_games/action_cards/new_ideas.outcome2.json +++ b/server/tests/test_games/action_cards/new_ideas.outcome2.json @@ -238,8 +238,14 @@ } }, "player": 0, - "log": [ - "Player1: New Ideas: Selected Storage as advance for New Ideas." + "items": [ + { + "player": 0, + "Text": "Selected Storage as advance for New Ideas.", + "origin": { + "CivilCard": 41 + } + } ], "active_events": 1 }, diff --git a/server/tests/test_games/action_cards/production_focus.outcome1.json b/server/tests/test_games/action_cards/production_focus.outcome1.json index 6452d873..956e8b41 100644 --- a/server/tests/test_games/action_cards/production_focus.outcome1.json +++ b/server/tests/test_games/action_cards/production_focus.outcome1.json @@ -240,10 +240,14 @@ "origin": { "Ability": "Action Card" } + }, + { + "player": 0, + "Text": "Production Focus: You may collect multiple times from the same tile.", + "origin": { + "CivilCard": 19 + } } - ], - "log": [ - "Player1: Production Focus: Production Focus: You may collect multiple times from the same tile." ] }, { diff --git a/server/tests/test_games/action_cards/spy.outcome2.json b/server/tests/test_games/action_cards/spy.outcome2.json index 637a0a49..ad0d9096 100644 --- a/server/tests/test_games/action_cards/spy.outcome2.json +++ b/server/tests/test_games/action_cards/spy.outcome2.json @@ -268,11 +268,15 @@ "origin": { "CivilCard": 7 } + }, + { + "player": 0, + "Text": "Decided to looked at all Wonder, Action, and Objective cards of Player2", + "origin": { + "CivilCard": 7 + } } ], - "log": [ - "Player1: Spy: Decided to looked at all Wonder, Action, and Objective cards of Player2" - ], "active_events": 1 }, { @@ -323,11 +327,15 @@ "origin": { "CivilCard": 7 } + }, + { + "player": 0, + "Text": "Decided to swap an action card with Player2", + "origin": { + "CivilCard": 7 + } } ], - "log": [ - "Player1: Spy: Decided to swap an action card with Player2" - ], "active_events": 1 } ] diff --git a/server/tests/test_games/action_cards/synergies.outcome4.json b/server/tests/test_games/action_cards/synergies.outcome4.json index 3f02b0ac..a3bb0e31 100644 --- a/server/tests/test_games/action_cards/synergies.outcome4.json +++ b/server/tests/test_games/action_cards/synergies.outcome4.json @@ -257,8 +257,14 @@ } }, "player": 0, - "log": [ - "Player1: Synergies: Selected Fishing as first advance" + "items": [ + { + "player": 0, + "Text": "Selected Fishing as first advance", + "origin": { + "CivilCard": 34 + } + } ], "active_events": 1 }, @@ -319,8 +325,14 @@ } }, "player": 0, - "log": [ - "Player1: Synergies: Selected WarShips as second advance" + "items": [ + { + "player": 0, + "Text": "Selected WarShips as second advance", + "origin": { + "CivilCard": 34 + } + } ], "active_events": 1 }, diff --git a/server/tests/test_games/action_cards/teach_us.outcome1.json b/server/tests/test_games/action_cards/teach_us.outcome1.json index e22a2bd1..851c1522 100644 --- a/server/tests/test_games/action_cards/teach_us.outcome1.json +++ b/server/tests/test_games/action_cards/teach_us.outcome1.json @@ -260,6 +260,90 @@ "Ability": "Move" } }, + { + "player": 0, + "CombatRound": { + "attackers": { + "settlers": 2, + "infantry": 2, + "cavalry": 1, + "elephants": 1 + }, + "defending_player": 1, + "defenders": { + "infantry": 2 + }, + "round": 1 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 0, + "CombatRoll": { + "rolls": [ + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + }, + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + }, + { + "value": 6, + "unit_type": "Infantry", + "bonus": false + }, + { + "value": 6, + "unit_type": "Infantry", + "bonus": false + } + ], + "combat_value": 26, + "hits": 2 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 1, + "CombatRoll": { + "rolls": [ + { + "value": 1, + "unit_type": { + "Leader": "Alexander" + }, + "bonus": false + }, + { + "value": 1, + "unit_type": { + "Leader": "Alexander" + }, + "bonus": false + } + ], + "combat_value": 2, + "hits": 0 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 1, + "Text": "Remove all defending units", + "origin": { + "Ability": "Choose Casualties" + } + }, { "player": 1, "Units": { @@ -273,6 +357,13 @@ "Ability": "Combat" } }, + { + "player": 0, + "Text": "wins the battle", + "origin": { + "Ability": "Combat" + } + }, { "player": 0, "Resources": { @@ -321,13 +412,6 @@ "Ability": "Waste" } } - ], - "log": [ - "Combat round 1", - "Player1: Combat: Attacking with 2 settlers, 2 infantry, 1 cavalry and 1 elephant, Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value), 6 (infantry, no bonus), 6 (infantry, no bonus) for combined combat value of 26 and gets 2 hits against defending units", - "Player2: Combat: Defending with 2 infantry, Roll 1 (leader, no bonus), 1 (leader, no bonus) for combined combat value of 2 and gets 0 hits against attacking units", - "Player2: Choose Casualties: Remove all defending units", - "Attacker wins" ] }, { diff --git a/server/tests/test_games/action_cards/tech_trade.outcome.json b/server/tests/test_games/action_cards/tech_trade.outcome.json index 5e926151..a08afa3a 100644 --- a/server/tests/test_games/action_cards/tech_trade.outcome.json +++ b/server/tests/test_games/action_cards/tech_trade.outcome.json @@ -231,6 +231,13 @@ "Ability": "Action Card" } }, + { + "player": 0, + "Text": "Selected Player2 as trade partner", + "origin": { + "CivilCard": 39 + } + }, { "player": 0, "Resources": { @@ -277,9 +284,6 @@ "CivilCard": 39 } } - ], - "log": [ - "Player1: Technology Trade: Selected Player2 as trade partner" ] } ] diff --git a/server/tests/test_games/advances/civil_liberties.outcome1.json b/server/tests/test_games/advances/civil_liberties.outcome1.json index 196767f8..6fa626ed 100644 --- a/server/tests/test_games/advances/civil_liberties.outcome1.json +++ b/server/tests/test_games/advances/civil_liberties.outcome1.json @@ -282,6 +282,13 @@ } ] }, + { + "player": 0, + "Text": "Reduce the cost of 1 Infantry to 1 mood token", + "origin": { + "Advance": "Draft" + } + }, { "player": 0, "Units": { @@ -295,9 +302,6 @@ "Ability": "Recruit" } } - ], - "log": [ - "Player1: Draft: Reduce the cost of 1 Infantry to 1 mood token" ] } ] diff --git a/server/tests/test_games/advances/collect_husbandry.outcome.json b/server/tests/test_games/advances/collect_husbandry.outcome.json index f6de8b2f..f0a5f50d 100644 --- a/server/tests/test_games/advances/collect_husbandry.outcome.json +++ b/server/tests/test_games/advances/collect_husbandry.outcome.json @@ -327,6 +327,13 @@ "Ability": "Collect" } }, + { + "player": 0, + "Text": "Can collect 1 resources from 2 land spaces away", + "origin": { + "Advance": "Husbandry" + } + }, { "player": 0, "Resources": { @@ -339,9 +346,6 @@ "Ability": "Waste" } } - ], - "log": [ - "Player1: Husbandry: Can collect 1 resources from 2 land spaces away" ] } ] diff --git a/server/tests/test_games/advances/cultural_influence_instant_with_arts.outcome1.json b/server/tests/test_games/advances/cultural_influence_instant_with_arts.outcome1.json index a1099ca5..74fb1165 100644 --- a/server/tests/test_games/advances/cultural_influence_instant_with_arts.outcome1.json +++ b/server/tests/test_games/advances/cultural_influence_instant_with_arts.outcome1.json @@ -244,6 +244,44 @@ "Advance": "Arts" } }, + { + "player": 1, + "InfluenceCultureAttempt": { + "target_player": 0, + "structure": { + "Building": "Fortress" + }, + "prevent_boost": false, + "range_boost_cost": { + "default": {}, + "origin": { + "Advance": "Arts" + } + }, + "info": { + "player": 1, + "origin": { + "Advance": "Arts" + }, + "info": {}, + "log": [] + }, + "roll_boost": 0, + "position": "C2", + "starting_city_position": "C1", + "barbarian_takeover": false + }, + "origin": { + "Advance": "Arts" + } + }, + { + "player": 1, + "Text": "Cultural influence succeeded (rolls 6)", + "origin": { + "Advance": "Arts" + } + }, { "player": 0, "Structure": { @@ -273,9 +311,6 @@ } } ], - "log": [ - "Player2: Arts: Tried to influence the Fortress in the city at C2 by Player1 with the city C1, Cultural influence succeeded (rolled 6)" - ], "active_events": 1 } ] @@ -311,4 +346,4 @@ "wonders_left": [ "Pyramids" ] -} \ No newline at end of file +} diff --git a/server/tests/test_games/advances/cultural_influence_with_conversion.outcome2.json b/server/tests/test_games/advances/cultural_influence_with_conversion.outcome2.json index d8e9453d..edd82ea7 100644 --- a/server/tests/test_games/advances/cultural_influence_with_conversion.outcome2.json +++ b/server/tests/test_games/advances/cultural_influence_with_conversion.outcome2.json @@ -232,10 +232,47 @@ "origin": { "Ability": "Influence Culture" } + }, + { + "player": 1, + "InfluenceCultureAttempt": { + "target_player": 0, + "structure": { + "Building": "Temple" + }, + "prevent_boost": false, + "range_boost_cost": { + "default": { + "culture_tokens": 1 + }, + "origin": { + "Ability": "Influence Culture" + } + }, + "info": { + "player": 1, + "origin": { + "Ability": "Influence Culture" + }, + "info": {}, + "log": [ + [ + { + "Advance": "Conversion" + }, + "gains +1 to Influence Culture roll" + ] + ] + }, + "roll_boost": 1, + "position": "C2", + "starting_city_position": "B3", + "barbarian_takeover": false + }, + "origin": { + "Ability": "Influence Culture" + } } - ], - "log": [ - "Player2: Influence Culture: Tried to influence the Temple in the city at C2 by Player1 with the city B3 and may pay 1 culture token to boost the range" ] }, { @@ -261,12 +298,22 @@ "origin": { "Ability": "Influence Culture" } + }, + { + "player": 1, + "Text": "gains +1 to Influence Culture roll", + "origin": { + "Advance": "Conversion" + } + }, + { + "player": 1, + "Text": "rolls a 2 and now has the option to pay 3 culture tokens to increase the dice roll and proceed with the cultural influence", + "origin": { + "Ability": "Influence Culture" + } } ], - "log": [ - "Player2: Conversion: Gain +1 to Influence Culture roll for Conversion Advance", - "Player2: Influence Culture: Rolled a 2 and now has the option to pay 3 culture tokens to increase the dice roll and proceed with the cultural influence" - ], "active_events": 1 }, { @@ -293,6 +340,13 @@ "Ability": "Influence Culture" } }, + { + "player": 1, + "Text": "pays to increase the dice roll", + "origin": { + "Ability": "Influence Culture" + } + }, { "player": 0, "Structure": { @@ -334,9 +388,6 @@ } } ], - "log": [ - "Player2: Influence Culture: Paying to increase the dice roll" - ], "active_events": 1 } ] diff --git a/server/tests/test_games/advances/dogma.outcome3.json b/server/tests/test_games/advances/dogma.outcome3.json index f2676fd4..495561fe 100644 --- a/server/tests/test_games/advances/dogma.outcome3.json +++ b/server/tests/test_games/advances/dogma.outcome3.json @@ -331,6 +331,20 @@ "Ability": "Advance" } }, + { + "player": 1, + "Text": "Ideas limit reduced to 2", + "origin": { + "Advance": "Dogma" + } + }, + { + "player": 1, + "Text": "Unlock Provinces", + "origin": { + "Ability": "Advance" + } + }, { "player": 1, "Advance": { @@ -356,10 +370,6 @@ "Ability": "Waste" } } - ], - "log": [ - "Player2: Dogma: Ideas limit reduced to 2", - "Player2: Advance: Unlock Provinces" ] }, { @@ -408,6 +418,13 @@ } ] }, + { + "player": 1, + "Text": "Reduce the food cost to 0", + "origin": { + "Advance": "StateReligion" + } + }, { "player": 1, "Structure": { @@ -422,9 +439,6 @@ "Ability": "Construct Building" } } - ], - "log": [ - "Player2: State Religion: Reduce the food cost to 0" ] }, { @@ -473,6 +487,13 @@ "Advance": "Dogma" } }, + { + "player": 1, + "Text": "triggers the event Anarchy", + "origin": { + "Advance": "Fanaticism" + } + }, { "player": 1, "Advance": { @@ -494,12 +515,15 @@ "origin": { "Incident": 44 } + }, + { + "player": 1, + "Text": "Lose 2 government advances due to Anarchy - adding 2 victory points", + "origin": { + "Incident": 44 + } } ], - "log": [ - "A new game event has been triggered: Anarchy", - "Player2: Anarchy: Lose 2 government advances due to Anarchy - adding 2 victory points" - ], "active_events": 1 } ] diff --git a/server/tests/test_games/advances/forced_labor.outcome2.json b/server/tests/test_games/advances/forced_labor.outcome2.json index 2dea3041..006d099f 100644 --- a/server/tests/test_games/advances/forced_labor.outcome2.json +++ b/server/tests/test_games/advances/forced_labor.outcome2.json @@ -272,11 +272,15 @@ "origin": { "Advance": "ForcedLabor" } + }, + { + "player": 0, + "Text": "Treating Angry cities as neutral", + "origin": { + "Ability": "Forced Labor" + } } ], - "log": [ - "Player1: Forced Labor: Treating Angry cities as neutral" - ], "active_events": 1 }, { diff --git a/server/tests/test_games/advances/increase_happiness_voting_rituals.outcome.json b/server/tests/test_games/advances/increase_happiness_voting_rituals.outcome.json index 3eee9096..8e42122d 100644 --- a/server/tests/test_games/advances/increase_happiness_voting_rituals.outcome.json +++ b/server/tests/test_games/advances/increase_happiness_voting_rituals.outcome.json @@ -325,10 +325,14 @@ "Advance": "Rituals" } ] + }, + { + "player": 0, + "Text": "Can pay with any resource", + "origin": { + "Advance": "Rituals" + } } - ], - "log": [ - "Player1: Rituals: Can pay with any resource" ] } ] diff --git a/server/tests/test_games/advances/priesthood.outcome.json b/server/tests/test_games/advances/priesthood.outcome.json index cb94916b..12f2ddc5 100644 --- a/server/tests/test_games/advances/priesthood.outcome.json +++ b/server/tests/test_games/advances/priesthood.outcome.json @@ -322,6 +322,13 @@ } ] }, + { + "player": 1, + "Text": "Reduce the cost to 0", + "origin": { + "Advance": "Priesthood" + } + }, { "player": 1, "Resources": { @@ -359,9 +366,6 @@ "Advance": "Philosophy" } } - ], - "log": [ - "Player2: Priesthood: Reduce the cost to 0" ] } ] diff --git a/server/tests/test_games/advances/priesthood.outcome1.json b/server/tests/test_games/advances/priesthood.outcome1.json index bc9dcb23..24f3e65a 100644 --- a/server/tests/test_games/advances/priesthood.outcome1.json +++ b/server/tests/test_games/advances/priesthood.outcome1.json @@ -323,6 +323,13 @@ } ] }, + { + "player": 1, + "Text": "Reduce the cost to 0", + "origin": { + "Advance": "Priesthood" + } + }, { "player": 1, "Resources": { @@ -360,9 +367,6 @@ "Advance": "Philosophy" } } - ], - "log": [ - "Player2: Priesthood: Reduce the cost to 0" ] }, { diff --git a/server/tests/test_games/advances/sanitation_and_draft.outcome.json b/server/tests/test_games/advances/sanitation_and_draft.outcome.json index 6e744eb7..9cdc59d4 100644 --- a/server/tests/test_games/advances/sanitation_and_draft.outcome.json +++ b/server/tests/test_games/advances/sanitation_and_draft.outcome.json @@ -323,6 +323,20 @@ } ] }, + { + "player": 0, + "Text": "Reduce the cost of 1 Infantry to 1 mood token", + "origin": { + "Advance": "Draft" + } + }, + { + "player": 0, + "Text": "Reduce the cost of 1 Settler to 1 mood token", + "origin": { + "Advance": "Sanitation" + } + }, { "player": 0, "Units": { @@ -337,10 +351,6 @@ "Ability": "Recruit" } } - ], - "log": [ - "Player1: Draft: Reduce the cost of 1 Infantry to 1 mood token", - "Player1: Sanitation: Reduce the cost of 1 Settler to 1 mood token" ] } ] diff --git a/server/tests/test_games/advances/trade_routes.outcome.json b/server/tests/test_games/advances/trade_routes.outcome.json index c669c1ef..896dfad1 100644 --- a/server/tests/test_games/advances/trade_routes.outcome.json +++ b/server/tests/test_games/advances/trade_routes.outcome.json @@ -438,6 +438,20 @@ "Ability": "Market" } }, + { + "player": 1, + "Text": "ship at E7 traded with city D6", + "origin": { + "Advance": "TradeRoutes" + } + }, + { + "player": 1, + "Text": "settler at E7 traded with city E6", + "origin": { + "Advance": "TradeRoutes" + } + }, { "player": 1, "Resources": { @@ -462,9 +476,6 @@ "Ability": "Waste" } } - ], - "log": [ - "Player2: Trade Routes: ship at E7 traded with city D6, settler at E7 traded with city E6" ] } ] diff --git a/server/tests/test_games/advances/trade_routes_with_currency.outcome1.json b/server/tests/test_games/advances/trade_routes_with_currency.outcome1.json index 9e5cef23..50bf87d7 100644 --- a/server/tests/test_games/advances/trade_routes_with_currency.outcome1.json +++ b/server/tests/test_games/advances/trade_routes_with_currency.outcome1.json @@ -436,6 +436,27 @@ }, "player": 1, "items": [ + { + "player": 1, + "Text": "Player2 selected trade routes", + "origin": { + "Advance": "TradeRoutes" + } + }, + { + "player": 1, + "Text": "ship at E7 traded with city C6", + "origin": { + "Advance": "TradeRoutes" + } + }, + { + "player": 1, + "Text": "settler at E7 traded with city E6", + "origin": { + "Advance": "TradeRoutes" + } + }, { "player": 1, "Resources": { @@ -450,9 +471,6 @@ } } ], - "log": [ - "Player2: Trade Routes: Player2 selected trade routes, ship at E7 traded with city C6, settler at E7 traded with city E6" - ], "active_events": 1 } ] diff --git a/server/tests/test_games/base/collect.outcome.json b/server/tests/test_games/base/collect.outcome.json index e0c1b02c..88233d0f 100644 --- a/server/tests/test_games/base/collect.outcome.json +++ b/server/tests/test_games/base/collect.outcome.json @@ -250,6 +250,13 @@ "Ability": "Collect" } }, + { + "player": 0, + "Text": "Gain 1 idea", + "origin": { + "Advance": "PublicEducation" + } + }, { "player": 0, "Resources": { @@ -262,9 +269,6 @@ "Ability": "Waste" } } - ], - "log": [ - "Player1: Public Education: Gain 1 idea" ] } ] diff --git a/server/tests/test_games/base/construct.outcome.json b/server/tests/test_games/base/construct.outcome.json index 173aac0f..fcd3ea07 100644 --- a/server/tests/test_games/base/construct.outcome.json +++ b/server/tests/test_games/base/construct.outcome.json @@ -278,10 +278,14 @@ "origin": { "Ability": "Observatory" } + }, + { + "player": 0, + "Text": "Observatory gained 1 action card", + "origin": { + "Ability": "Observatory" + } } - ], - "log": [ - "Player1: Observatory: Observatory gained 1 action card" ] } ] diff --git a/server/tests/test_games/base/cultural_influence.outcome2.json b/server/tests/test_games/base/cultural_influence.outcome2.json index f9390d7c..0fc0b6da 100644 --- a/server/tests/test_games/base/cultural_influence.outcome2.json +++ b/server/tests/test_games/base/cultural_influence.outcome2.json @@ -232,10 +232,40 @@ "origin": { "Ability": "Influence Culture" } + }, + { + "player": 1, + "InfluenceCultureAttempt": { + "target_player": 0, + "structure": { + "Building": "Temple" + }, + "prevent_boost": false, + "range_boost_cost": { + "default": { + "culture_tokens": 1 + }, + "origin": { + "Ability": "Influence Culture" + } + }, + "info": { + "player": 1, + "origin": { + "Ability": "Influence Culture" + }, + "info": {}, + "log": [] + }, + "roll_boost": 0, + "position": "C2", + "starting_city_position": "B3", + "barbarian_takeover": false + }, + "origin": { + "Ability": "Influence Culture" + } } - ], - "log": [ - "Player2: Influence Culture: Tried to influence the Temple in the city at C2 by Player1 with the city B3 and may pay 1 culture token to boost the range" ] }, { @@ -261,11 +291,15 @@ "origin": { "Ability": "Influence Culture" } + }, + { + "player": 1, + "Text": "rolls a 1 and now has the option to pay 4 culture tokens to increase the dice roll and proceed with the cultural influence", + "origin": { + "Ability": "Influence Culture" + } } ], - "log": [ - "Player2: Influence Culture: Rolled a 1 and now has the option to pay 4 culture tokens to increase the dice roll and proceed with the cultural influence" - ], "active_events": 1 }, { @@ -292,6 +326,13 @@ "Ability": "Influence Culture" } }, + { + "player": 1, + "Text": "pays to increase the dice roll", + "origin": { + "Ability": "Influence Culture" + } + }, { "player": 0, "Structure": { @@ -321,9 +362,6 @@ } } ], - "log": [ - "Player2: Influence Culture: Paying to increase the dice roll" - ], "active_events": 1 } ] diff --git a/server/tests/test_games/base/cultural_influence_instant.outcome.json b/server/tests/test_games/base/cultural_influence_instant.outcome.json index 2cd01006..3634c0d0 100644 --- a/server/tests/test_games/base/cultural_influence_instant.outcome.json +++ b/server/tests/test_games/base/cultural_influence_instant.outcome.json @@ -219,6 +219,44 @@ "Ability": "Influence Culture" } }, + { + "player": 1, + "InfluenceCultureAttempt": { + "target_player": 0, + "structure": { + "Building": "Fortress" + }, + "prevent_boost": false, + "range_boost_cost": { + "default": {}, + "origin": { + "Ability": "Influence Culture" + } + }, + "info": { + "player": 1, + "origin": { + "Ability": "Influence Culture" + }, + "info": {}, + "log": [] + }, + "roll_boost": 0, + "position": "C2", + "starting_city_position": "C1", + "barbarian_takeover": false + }, + "origin": { + "Ability": "Influence Culture" + } + }, + { + "player": 1, + "Text": "Cultural influence succeeded (rolls 6)", + "origin": { + "Ability": "Influence Culture" + } + }, { "player": 0, "Structure": { @@ -247,9 +285,6 @@ "Ability": "Influence Culture" } } - ], - "log": [ - "Player2: Influence Culture: Tried to influence the Fortress in the city at C2 by Player1 with the city C1, Cultural influence succeeded (rolled 6)" ] } ] @@ -285,4 +320,4 @@ "wonders_left": [ "Pyramids" ] -} \ No newline at end of file +} diff --git a/server/tests/test_games/base/new_game.json b/server/tests/test_games/base/new_game.json index a5b341ff..0b5c9e28 100644 --- a/server/tests/test_games/base/new_game.json +++ b/server/tests/test_games/base/new_game.json @@ -389,7 +389,9 @@ "turns": [ { "turn_type": { - "Setup": 0 + "Setup": { + "player": 0 + } }, "actions": [ { @@ -501,7 +503,9 @@ }, { "turn_type": { - "Setup": 1 + "Setup": { + "player": 1 + } }, "actions": [ { @@ -608,32 +612,12 @@ } } ] - } - ] - } - ] - } - ] - }, - { - "age": 1, - "rounds": [ - { - "round": 1, - "turns": [ - { - "turn_type": { - "Player": 0 - }, - "actions": [ + }, { "action": { "ChooseCivilization": "Vikings" }, - "player": 0, - "log": [ - "Player1: Setup: Choose Vikings" - ] + "player": 0 } ] } @@ -642,14 +626,12 @@ ] } ], - "log_index": 1, - "undo_limit": 1, + "log_index": 2, + "undo_limit": 2, "actions_left": 3, "round": 1, - "age": 1, - "messages": [ - "Age 1 has started" - ], + "age": 0, + "messages": [], "rng": "187713005158128829250871947649707797698", "wonders_left": [ "GreatGardens", @@ -801,4 +783,4 @@ 13, 32 ] -} \ No newline at end of file +} diff --git a/server/tests/test_games/base/same_player_undo.outcome.json b/server/tests/test_games/base/same_player_undo.outcome.json index c1f83e89..6610700f 100644 --- a/server/tests/test_games/base/same_player_undo.outcome.json +++ b/server/tests/test_games/base/same_player_undo.outcome.json @@ -281,10 +281,14 @@ "origin": { "Ability": "Observatory" } + }, + { + "player": 0, + "Text": "Observatory gained 1 action card", + "origin": { + "Ability": "Observatory" + } } - ], - "log": [ - "Player1: Observatory: Observatory gained 1 action card" ] } ] diff --git a/server/tests/test_games/civilizations/china/expansion.outcome.json b/server/tests/test_games/civilizations/china/expansion.outcome.json index bea0e73b..daf1e6c9 100644 --- a/server/tests/test_games/civilizations/china/expansion.outcome.json +++ b/server/tests/test_games/civilizations/china/expansion.outcome.json @@ -302,10 +302,14 @@ "origin": { "Ability": "Recruit" } + }, + { + "player": 0, + "Text": "Expansion allows to move the settlers at B3, B3, A1", + "origin": { + "SpecialAdvance": "Expansion" + } } - ], - "log": [ - "Player1: Expansion: Expansion allows to move the settlers at B3, B3, A1" ] } ] diff --git a/server/tests/test_games/civilizations/china/fast_war.outcome.json b/server/tests/test_games/civilizations/china/fast_war.outcome.json index f9860fb2..6ceea50e 100644 --- a/server/tests/test_games/civilizations/china/fast_war.outcome.json +++ b/server/tests/test_games/civilizations/china/fast_war.outcome.json @@ -422,6 +422,63 @@ "Ability": "Move" } }, + { + "player": 0, + "CombatRound": { + "attackers": { + "leader": "SunTzu" + }, + "defending_player": 1, + "defenders": { + "infantry": 1 + }, + "round": 1 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 0, + "CombatRoll": { + "rolls": [ + { + "value": 5, + "unit_type": "Cavalry", + "bonus": false + } + ], + "combat_value": 5, + "hits": 1 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 1, + "CombatRoll": { + "rolls": [ + { + "value": 2, + "unit_type": "Cavalry", + "bonus": false + } + ], + "combat_value": 2, + "hits": 0 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 1, + "Text": "Remove all defending units", + "origin": { + "Ability": "Choose Casualties" + } + }, { "player": 1, "Units": { @@ -435,6 +492,13 @@ "Ability": "Combat" } }, + { + "player": 0, + "Text": "wins the battle", + "origin": { + "Ability": "Combat" + } + }, { "player": 0, "Resources": { @@ -494,13 +558,6 @@ "LeaderAbility": "Fast War" } } - ], - "log": [ - "Combat round 1", - "Player1: Combat: Attacking with Sun Tzu, Roll 5 (cavalry, no bonus) for combined combat value of 5 and gets 1 hits against defending units", - "Player2: Combat: Defending with 1 infantry, Roll 2 (cavalry, no bonus) for combined combat value of 2 and gets 0 hits against attacking units", - "Player2: Choose Casualties: Remove all defending units", - "Attacker wins" ] } ] diff --git a/server/tests/test_games/civilizations/china/fireworks.outcome1.json b/server/tests/test_games/civilizations/china/fireworks.outcome1.json index aa171071..4d364028 100644 --- a/server/tests/test_games/civilizations/china/fireworks.outcome1.json +++ b/server/tests/test_games/civilizations/china/fireworks.outcome1.json @@ -291,12 +291,57 @@ "origin": { "Ability": "Move" } + }, + { + "player": 0, + "CombatRound": { + "attackers": { + "infantry": 1 + }, + "defending_player": 1, + "defenders": { + "cavalry": 1 + }, + "round": 1 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 0, + "CombatRoll": { + "rolls": [ + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + } + ], + "combat_value": 7, + "hits": 1 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 1, + "CombatRoll": { + "rolls": [ + { + "value": 6, + "unit_type": "Infantry", + "bonus": false + } + ], + "combat_value": 6, + "hits": 1 + }, + "origin": { + "Ability": "Combat" + } } - ], - "log": [ - "Combat round 1", - "Player1: Combat: Attacking with 1 infantry, Roll 6 (infantry, +1 combat value) for combined combat value of 7 and gets 1 hits against defending units", - "Player2: Combat: Defending with 1 cavalry, Roll 6 (infantry, no bonus) for combined combat value of 6 and gets 1 hits against attacking units" ] }, { @@ -346,6 +391,20 @@ "SpecialAdvance": "Fireworks" } }, + { + "player": 0, + "Text": "Ignore the first hit", + "origin": { + "SpecialAdvance": "Fireworks" + } + }, + { + "player": 1, + "Text": "Remove all defending units", + "origin": { + "Ability": "Choose Casualties" + } + }, { "player": 1, "Units": { @@ -359,6 +418,13 @@ "Ability": "Combat" } }, + { + "player": 0, + "Text": "wins the battle", + "origin": { + "Ability": "Combat" + } + }, { "player": 0, "Resources": { @@ -409,11 +475,6 @@ } } ], - "log": [ - "Player1: Fireworks: Ignore the first hit", - "Player2: Choose Casualties: Remove all defending units", - "Attacker wins" - ], "active_events": 1 } ] diff --git a/server/tests/test_games/civilizations/china/great_wall.outcome4.json b/server/tests/test_games/civilizations/china/great_wall.outcome4.json index 64c0ad90..9c1c56bf 100644 --- a/server/tests/test_games/civilizations/china/great_wall.outcome4.json +++ b/server/tests/test_games/civilizations/china/great_wall.outcome4.json @@ -455,11 +455,8 @@ }, "player": 0, "origin": { - "Wonder": "GreatWall" - }, - "log": [ - "Player1: Build Wonder: Play the wonder card Great Wall, Decided to build Great Wall in city D1" - ] + "Ability": "Build Wonder" + } }, { "action": { @@ -496,6 +493,20 @@ } ] }, + { + "player": 0, + "Text": "Reduce the cost of Great Wall by 2 culture tokens", + "origin": { + "LeaderAbility": "Great Wall" + } + }, + { + "player": 0, + "Text": "Great Wall can be built in the leader city as a free action", + "origin": { + "LeaderAbility": "Great Wall" + } + }, { "player": 0, "HandCard": { @@ -526,9 +537,6 @@ } } ], - "log": [ - "Player1: Great Wall: Reduce the cost of Great Wall by 2 culture tokens, Great Wall can be built in the leader city as a free action" - ], "active_events": 1 }, { @@ -555,8 +563,14 @@ { "action": "StartTurn", "player": 1, - "log": [ - "Player2: Wonder replacement: Draw a replacement wonder card" + "items": [ + { + "player": 1, + "Text": "Draw a replacement wonder card", + "origin": { + "Ability": "Wonder replacement" + } + } ] }, { diff --git a/server/tests/test_games/civilizations/china/imperial_army.outcome1.json b/server/tests/test_games/civilizations/china/imperial_army.outcome1.json index 70c9fb8c..c57a9f70 100644 --- a/server/tests/test_games/civilizations/china/imperial_army.outcome1.json +++ b/server/tests/test_games/civilizations/china/imperial_army.outcome1.json @@ -275,8 +275,14 @@ } }, "player": 0, - "log": [ - "Player1: Imperial Army: Convert infantry at C2, settler at B4" + "items": [ + { + "player": 0, + "Text": "Convert infantry at C2, settler at B4", + "origin": { + "Ability": "Imperial Army" + } + } ], "active_events": 1 } diff --git a/server/tests/test_games/civilizations/china/rice.outcome.json b/server/tests/test_games/civilizations/china/rice.outcome.json index d7b74f5d..80ec0678 100644 --- a/server/tests/test_games/civilizations/china/rice.outcome.json +++ b/server/tests/test_games/civilizations/china/rice.outcome.json @@ -287,10 +287,14 @@ "Advance": "Irrigation" } ] + }, + { + "player": 0, + "Text": "Added 1 food", + "origin": { + "SpecialAdvance": "RiceCultivation" + } } - ], - "log": [ - "Player1: Rice Cultivation: Added 1 food" ] } ] diff --git a/server/tests/test_games/civilizations/greece/city_states.outcome1.json b/server/tests/test_games/civilizations/greece/city_states.outcome1.json index ef1ec4b5..d4c982d2 100644 --- a/server/tests/test_games/civilizations/greece/city_states.outcome1.json +++ b/server/tests/test_games/civilizations/greece/city_states.outcome1.json @@ -297,6 +297,20 @@ } ] }, + { + "player": 0, + "Text": "Reduce the cost of 1 Infantry to 1 mood token", + "origin": { + "Advance": "Draft" + } + }, + { + "player": 0, + "Text": "Can pay the Draft cost as culture tokens", + "origin": { + "SpecialAdvance": "Sparta" + } + }, { "player": 0, "MoodChange": { @@ -320,10 +334,6 @@ "Ability": "Recruit" } } - ], - "log": [ - "Player1: Draft: Reduce the cost of 1 Infantry to 1 mood token", - "Player1: Sparta: Can pay the Draft cost as culture tokens" ] }, { diff --git a/server/tests/test_games/civilizations/greece/hellenistic_culture.outcome1.json b/server/tests/test_games/civilizations/greece/hellenistic_culture.outcome1.json index 0970b7c6..3de5b634 100644 --- a/server/tests/test_games/civilizations/greece/hellenistic_culture.outcome1.json +++ b/server/tests/test_games/civilizations/greece/hellenistic_culture.outcome1.json @@ -284,6 +284,44 @@ "SpecialAdvance": "HellenisticCulture" } }, + { + "player": 0, + "InfluenceCultureAttempt": { + "target_player": 1, + "structure": { + "Building": "Port" + }, + "prevent_boost": false, + "range_boost_cost": { + "default": {}, + "origin": { + "SpecialAdvance": "HellenisticCulture" + } + }, + "info": { + "player": 0, + "origin": { + "SpecialAdvance": "HellenisticCulture" + }, + "info": {}, + "log": [] + }, + "roll_boost": 0, + "position": "C2", + "starting_city_position": "C2", + "barbarian_takeover": false + }, + "origin": { + "SpecialAdvance": "HellenisticCulture" + } + }, + { + "player": 0, + "Text": "Cultural influence succeeded (rolls 6)", + "origin": { + "SpecialAdvance": "HellenisticCulture" + } + }, { "player": 1, "Structure": { @@ -313,9 +351,6 @@ } } ], - "log": [ - "Player1: Hellenistic Culture: Tried to influence the Port in the city at C2 by Player2, Cultural influence succeeded (rolled 6)" - ], "active_events": 1 } ] @@ -349,4 +384,4 @@ "dice_roll_log": [ 10 ] -} \ No newline at end of file +} diff --git a/server/tests/test_games/civilizations/greece/idol.outcome2.json b/server/tests/test_games/civilizations/greece/idol.outcome2.json index 76eae447..f03f53d3 100644 --- a/server/tests/test_games/civilizations/greece/idol.outcome2.json +++ b/server/tests/test_games/civilizations/greece/idol.outcome2.json @@ -460,6 +460,13 @@ "LeaderAbility": "Idol" } }, + { + "player": 0, + "Text": "Decided to play Spy as a free action", + "origin": { + "Ability": "Idol" + } + }, { "player": 0, "HandCard": { @@ -476,9 +483,6 @@ } } ], - "log": [ - "Player1: Idol: Decided to play Spy as a free action" - ], "active_events": 1 }, { @@ -504,11 +508,15 @@ "origin": { "CivilCard": 7 } + }, + { + "player": 0, + "Text": "Decided to looked at all Wonder, Action, and Objective cards of Player2", + "origin": { + "CivilCard": 7 + } } ], - "log": [ - "Player1: Spy: Decided to looked at all Wonder, Action, and Objective cards of Player2" - ], "active_events": 2 } ] diff --git a/server/tests/test_games/civilizations/greece/ruler_of_the_world.outcome.json b/server/tests/test_games/civilizations/greece/ruler_of_the_world.outcome.json index a0d01239..47245148 100644 --- a/server/tests/test_games/civilizations/greece/ruler_of_the_world.outcome.json +++ b/server/tests/test_games/civilizations/greece/ruler_of_the_world.outcome.json @@ -424,6 +424,66 @@ "Ability": "Move" } }, + { + "player": 0, + "CombatRound": { + "attackers": { + "leader": "Alexander" + }, + "defending_player": 1, + "defenders": { + "infantry": 1 + }, + "round": 1 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 0, + "CombatRoll": { + "rolls": [ + { + "value": 5, + "unit_type": "Cavalry", + "bonus": false + } + ], + "combat_value": 6, + "hits": 1, + "combat_modifiers": [ + "Ruler of the World adds 1 combat value" + ] + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 1, + "CombatRoll": { + "rolls": [ + { + "value": 2, + "unit_type": "Cavalry", + "bonus": false + } + ], + "combat_value": 2, + "hits": 0 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 1, + "Text": "Remove all defending units", + "origin": { + "Ability": "Choose Casualties" + } + }, { "player": 1, "Units": { @@ -437,6 +497,13 @@ "Ability": "Combat" } }, + { + "player": 0, + "Text": "wins the battle", + "origin": { + "Ability": "Combat" + } + }, { "player": 0, "Resources": { @@ -483,13 +550,6 @@ "Ability": "Combat" } } - ], - "log": [ - "Combat round 1", - "Player1: Combat: Attacking with Alexander the Great, Roll 5 (cavalry, no bonus) for combined combat value of 6 and gets 1 hits against defending units, Combat modifiers: Ruler of the World adds 1 combat value", - "Player2: Combat: Defending with 1 infantry, Roll 2 (cavalry, no bonus) for combined combat value of 2 and gets 0 hits against attacking units", - "Player2: Choose Casualties: Remove all defending units", - "Attacker wins" ] } ] diff --git a/server/tests/test_games/civilizations/greece/sparta_battle.outcome.json b/server/tests/test_games/civilizations/greece/sparta_battle.outcome.json index ec507682..5a69e37f 100644 --- a/server/tests/test_games/civilizations/greece/sparta_battle.outcome.json +++ b/server/tests/test_games/civilizations/greece/sparta_battle.outcome.json @@ -289,6 +289,71 @@ "Ability": "Move" } }, + { + "player": 0, + "CombatRound": { + "attackers": { + "infantry": 1 + }, + "defending_player": 1, + "defenders": { + "infantry": 2 + }, + "round": 1 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 0, + "CombatRoll": { + "rolls": [ + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + } + ], + "combat_value": 7, + "hits": 1 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 1, + "CombatRoll": { + "rolls": [ + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + }, + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + } + ], + "combat_value": 14, + "hits": 1, + "combat_modifiers": [ + "Sparta denies playing tactics cards" + ] + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 0, + "Text": "Remove all attacking units", + "origin": { + "Ability": "Choose Casualties" + } + }, { "player": 0, "Units": { @@ -302,6 +367,13 @@ "Ability": "Combat" } }, + { + "player": 1, + "Text": "Remove 1 of their defending units", + "origin": { + "Ability": "Choose Casualties" + } + }, { "player": 1, "Units": { @@ -314,15 +386,14 @@ "origin": { "Ability": "Combat" } + }, + { + "player": 1, + "Text": "wins the battle", + "origin": { + "Ability": "Combat" + } } - ], - "log": [ - "Combat round 1", - "Player1: Combat: Attacking with 1 infantry, Roll 6 (infantry, +1 combat value) for combined combat value of 7 and gets 1 hits against defending units", - "Player2: Combat: Defending with 2 infantry, Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value) for combined combat value of 14 and gets 1 hits against attacking units, Combat modifiers: Sparta denies playing tactics cards", - "Player1: Choose Casualties: Remove all attacking units", - "Player2: Choose Casualties: Remove 1 of their defending units", - "Defender wins" ] } ] diff --git a/server/tests/test_games/civilizations/greece/sparta_draft.outcome.json b/server/tests/test_games/civilizations/greece/sparta_draft.outcome.json index daf14f01..9d8f3ce0 100644 --- a/server/tests/test_games/civilizations/greece/sparta_draft.outcome.json +++ b/server/tests/test_games/civilizations/greece/sparta_draft.outcome.json @@ -269,6 +269,20 @@ } ] }, + { + "player": 0, + "Text": "Reduce the cost of 1 Infantry to 1 mood token", + "origin": { + "Advance": "Draft" + } + }, + { + "player": 0, + "Text": "Can pay the Draft cost as culture tokens", + "origin": { + "SpecialAdvance": "Sparta" + } + }, { "player": 0, "Units": { @@ -282,10 +296,6 @@ "Ability": "Recruit" } } - ], - "log": [ - "Player1: Draft: Reduce the cost of 1 Infantry to 1 mood token", - "Player1: Sparta: Can pay the Draft cost as culture tokens" ] } ] diff --git a/server/tests/test_games/civilizations/rome/aqueduct_discount.outcome.json b/server/tests/test_games/civilizations/rome/aqueduct_discount.outcome.json index d0077e8c..230fcdc9 100644 --- a/server/tests/test_games/civilizations/rome/aqueduct_discount.outcome.json +++ b/server/tests/test_games/civilizations/rome/aqueduct_discount.outcome.json @@ -252,6 +252,13 @@ } ] }, + { + "player": 0, + "Text": "Reduce the cost to 0", + "origin": { + "SpecialAdvance": "Aqueduct" + } + }, { "player": 0, "Resources": { @@ -277,9 +284,6 @@ "Ability": "Advance" } } - ], - "log": [ - "Player1: Aqueduct: Reduce the cost to 0" ] } ] diff --git a/server/tests/test_games/civilizations/rome/captivi.outcome.json b/server/tests/test_games/civilizations/rome/captivi.outcome.json index 950e2c47..9118aacd 100644 --- a/server/tests/test_games/civilizations/rome/captivi.outcome.json +++ b/server/tests/test_games/civilizations/rome/captivi.outcome.json @@ -262,6 +262,13 @@ } ] }, + { + "player": 0, + "Text": "May replace resources with mood tokens", + "origin": { + "SpecialAdvance": "Captivi" + } + }, { "player": 0, "Structure": { @@ -276,9 +283,6 @@ "Ability": "Construct Building" } } - ], - "log": [ - "Player1: Captivi: May replace resources with mood tokens" ] } ] diff --git a/server/tests/test_games/civilizations/rome/civilizer.outcome.json b/server/tests/test_games/civilizations/rome/civilizer.outcome.json index 884d3b73..2bd045f6 100644 --- a/server/tests/test_games/civilizations/rome/civilizer.outcome.json +++ b/server/tests/test_games/civilizations/rome/civilizer.outcome.json @@ -420,6 +420,66 @@ "Ability": "Move" } }, + { + "player": 0, + "CombatRound": { + "attackers": { + "leader": "Sulla" + }, + "defending_player": 2, + "defenders": { + "infantry": 1 + }, + "round": 1 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 0, + "CombatRoll": { + "rolls": [ + { + "value": 5, + "unit_type": "Cavalry", + "bonus": false + } + ], + "combat_value": 7, + "hits": 1, + "combat_modifiers": [ + "Sulla adds 2 combat value" + ] + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 2, + "CombatRoll": { + "rolls": [ + { + "value": 2, + "unit_type": "Cavalry", + "bonus": false + } + ], + "combat_value": 2, + "hits": 0 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 2, + "Text": "Remove all defending units", + "origin": { + "Ability": "Choose Casualties" + } + }, { "player": 2, "Units": { @@ -433,6 +493,13 @@ "Ability": "Combat" } }, + { + "player": 0, + "Text": "wins the battle", + "origin": { + "Ability": "Combat" + } + }, { "player": 0, "Resources": { @@ -445,13 +512,6 @@ "Ability": "Barbarian battle" } } - ], - "log": [ - "Combat round 1", - "Player1: Combat: Attacking with Sulla, Roll 5 (cavalry, no bonus) for combined combat value of 7 and gets 1 hits against defending units, Combat modifiers: Sulla adds 2 combat value", - "Barbarians: Combat: Defending with 1 infantry, Roll 2 (cavalry, no bonus) for combined combat value of 2 and gets 0 hits against attacking units", - "Barbarians: Choose Casualties: Remove all defending units", - "Attacker wins" ] } ] diff --git a/server/tests/test_games/civilizations/rome/emperor.outcome.json b/server/tests/test_games/civilizations/rome/emperor.outcome.json index eb5d3f89..e878de47 100644 --- a/server/tests/test_games/civilizations/rome/emperor.outcome.json +++ b/server/tests/test_games/civilizations/rome/emperor.outcome.json @@ -420,6 +420,66 @@ "Ability": "Move" } }, + { + "player": 0, + "CombatRound": { + "attackers": { + "leader": "Augustus" + }, + "defending_player": 1, + "defenders": { + "infantry": 1 + }, + "round": 1 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 0, + "CombatRoll": { + "rolls": [ + { + "value": 5, + "unit_type": "Cavalry", + "bonus": false + } + ], + "combat_value": 7, + "hits": 1, + "combat_modifiers": [ + "Emperor adds 2 combat value" + ] + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 1, + "CombatRoll": { + "rolls": [ + { + "value": 2, + "unit_type": "Cavalry", + "bonus": false + } + ], + "combat_value": 2, + "hits": 0 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 1, + "Text": "Remove all defending units", + "origin": { + "Ability": "Choose Casualties" + } + }, { "player": 1, "Units": { @@ -433,6 +493,13 @@ "Ability": "Combat" } }, + { + "player": 0, + "Text": "wins the battle", + "origin": { + "Ability": "Combat" + } + }, { "player": 0, "Resources": { @@ -479,13 +546,6 @@ "Ability": "Combat" } } - ], - "log": [ - "Combat round 1", - "Player1: Combat: Attacking with Augustus, Roll 5 (cavalry, no bonus) for combined combat value of 7 and gets 1 hits against defending units, Combat modifiers: Emperor adds 2 combat value", - "Player2: Combat: Defending with 1 infantry, Roll 2 (cavalry, no bonus) for combined combat value of 2 and gets 0 hits against attacking units", - "Player2: Choose Casualties: Remove all defending units", - "Attacker wins" ] } ] diff --git a/server/tests/test_games/civilizations/rome/proconsul.outcome1.json b/server/tests/test_games/civilizations/rome/proconsul.outcome1.json index 75a17711..c5dfe79e 100644 --- a/server/tests/test_games/civilizations/rome/proconsul.outcome1.json +++ b/server/tests/test_games/civilizations/rome/proconsul.outcome1.json @@ -425,6 +425,63 @@ "Ability": "Move" } }, + { + "player": 0, + "CombatRound": { + "attackers": { + "leader": "Caesar" + }, + "defending_player": 1, + "defenders": { + "infantry": 1 + }, + "round": 1 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 0, + "CombatRoll": { + "rolls": [ + { + "value": 5, + "unit_type": "Cavalry", + "bonus": false + } + ], + "combat_value": 5, + "hits": 1 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 1, + "CombatRoll": { + "rolls": [ + { + "value": 2, + "unit_type": "Cavalry", + "bonus": false + } + ], + "combat_value": 2, + "hits": 0 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 1, + "Text": "Remove all defending units", + "origin": { + "Ability": "Choose Casualties" + } + }, { "player": 1, "Units": { @@ -438,6 +495,13 @@ "Ability": "Combat" } }, + { + "player": 0, + "Text": "wins the battle", + "origin": { + "Ability": "Combat" + } + }, { "player": 0, "Resources": { @@ -484,13 +548,6 @@ "Ability": "Combat" } } - ], - "log": [ - "Combat round 1", - "Player1: Combat: Attacking with Gaius Julius Caesar, Roll 5 (cavalry, no bonus) for combined combat value of 5 and gets 1 hits against defending units", - "Player2: Combat: Defending with 1 infantry, Roll 2 (cavalry, no bonus) for combined combat value of 2 and gets 0 hits against attacking units", - "Player2: Choose Casualties: Remove all defending units", - "Attacker wins" ] }, { diff --git a/server/tests/test_games/civilizations/rome/provinces.outcome2.json b/server/tests/test_games/civilizations/rome/provinces.outcome2.json index 920296a8..4f8183c2 100644 --- a/server/tests/test_games/civilizations/rome/provinces.outcome2.json +++ b/server/tests/test_games/civilizations/rome/provinces.outcome2.json @@ -301,6 +301,13 @@ "Ability": "Advance" } }, + { + "player": 0, + "Text": "Unlock Provinces", + "origin": { + "Ability": "Advance" + } + }, { "player": 0, "Advance": { @@ -314,9 +321,6 @@ "Ability": "Advance" } } - ], - "log": [ - "Player1: Advance: Unlock Provinces" ] }, { diff --git a/server/tests/test_games/civilizations/vikings/explorer.outcome1.json b/server/tests/test_games/civilizations/vikings/explorer.outcome1.json index c247c047..7da8ec25 100644 --- a/server/tests/test_games/civilizations/vikings/explorer.outcome1.json +++ b/server/tests/test_games/civilizations/vikings/explorer.outcome1.json @@ -314,11 +314,15 @@ "origin": { "LeaderAbility": "Legendary Explorer" } + }, + { + "player": 0, + "Text": "Place an explorer token at D2", + "origin": { + "Ability": "Legendary Explorer" + } } ], - "log": [ - "Player1: Legendary Explorer: Place an explorer token at D2" - ], "active_events": 1 } ] diff --git a/server/tests/test_games/civilizations/vikings/longships.outcome1.json b/server/tests/test_games/civilizations/vikings/longships.outcome1.json index cfb0eb45..38f11527 100644 --- a/server/tests/test_games/civilizations/vikings/longships.outcome1.json +++ b/server/tests/test_games/civilizations/vikings/longships.outcome1.json @@ -317,6 +317,83 @@ "Ability": "Move" } }, + { + "player": 0, + "Text": "Ignore battle movement restrictions", + "origin": { + "SpecialAdvance": "Longships" + } + }, + { + "player": 0, + "CombatRound": { + "attackers": { + "ships": 3 + }, + "defending_player": 1, + "defenders": { + "ships": 1 + }, + "round": 1 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 0, + "CombatRoll": { + "rolls": [ + { + "value": 6, + "unit_type": "Infantry", + "bonus": false + }, + { + "value": 6, + "unit_type": "Infantry", + "bonus": false + }, + { + "value": 6, + "unit_type": "Infantry", + "bonus": false + } + ], + "combat_value": 18, + "hits": 1, + "combat_modifiers": [ + "WarShips ignore the first hit in the first round of combat" + ] + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 1, + "CombatRoll": { + "rolls": [ + { + "value": 6, + "unit_type": "Infantry", + "bonus": false + } + ], + "combat_value": 6, + "hits": 0 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 1, + "Text": "Remove all defending units", + "origin": { + "Ability": "Choose Casualties" + } + }, { "player": 1, "Units": { @@ -329,15 +406,14 @@ "origin": { "Ability": "Combat" } + }, + { + "player": 0, + "Text": "wins the battle", + "origin": { + "Ability": "Combat" + } } - ], - "log": [ - "Player1: Longships: Ignore battle movement restrictions", - "Combat round 1", - "Player1: Combat: Attacking with 3 ships, Roll 6 (infantry, no bonus), 6 (infantry, no bonus), 6 (infantry, no bonus) for combined combat value of 18 and gets 1 hits against defending units, Combat modifiers: WarShips ignore the first hit in the first round of combat", - "Player2: Combat: Defending with 1 ship, Roll 6 (infantry, no bonus) for combined combat value of 6 and gets 0 hits against attacking units", - "Player2: Choose Casualties: Remove all defending units", - "Attacker wins" ] }, { @@ -401,6 +477,78 @@ "Ability": "Move" } }, + { + "player": 0, + "Text": "Ignore battle movement restrictions", + "origin": { + "SpecialAdvance": "Longships" + } + }, + { + "player": 0, + "CombatRound": { + "attackers": { + "ships": 2 + }, + "defending_player": 1, + "defenders": { + "ships": 1 + }, + "round": 1 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 0, + "CombatRoll": { + "rolls": [ + { + "value": 6, + "unit_type": "Infantry", + "bonus": false + }, + { + "value": 6, + "unit_type": "Infantry", + "bonus": false + } + ], + "combat_value": 12, + "hits": 1, + "combat_modifiers": [ + "WarShips ignore the first hit in the first round of combat" + ] + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 1, + "CombatRoll": { + "rolls": [ + { + "value": 6, + "unit_type": "Infantry", + "bonus": false + } + ], + "combat_value": 6, + "hits": 0 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 1, + "Text": "Remove all defending units", + "origin": { + "Ability": "Choose Casualties" + } + }, { "player": 1, "Units": { @@ -413,15 +561,14 @@ "origin": { "Ability": "Combat" } + }, + { + "player": 0, + "Text": "wins the battle", + "origin": { + "Ability": "Combat" + } } - ], - "log": [ - "Player1: Longships: Ignore battle movement restrictions", - "Combat round 1", - "Player1: Combat: Attacking with 2 ships, Roll 6 (infantry, no bonus), 6 (infantry, no bonus) for combined combat value of 12 and gets 1 hits against defending units, Combat modifiers: WarShips ignore the first hit in the first round of combat", - "Player2: Combat: Defending with 1 ship, Roll 6 (infantry, no bonus) for combined combat value of 6 and gets 0 hits against attacking units", - "Player2: Choose Casualties: Remove all defending units", - "Attacker wins" ] } ] diff --git a/server/tests/test_games/civilizations/vikings/new_colonies.outcome2.json b/server/tests/test_games/civilizations/vikings/new_colonies.outcome2.json index df3ac474..5f7ec75b 100644 --- a/server/tests/test_games/civilizations/vikings/new_colonies.outcome2.json +++ b/server/tests/test_games/civilizations/vikings/new_colonies.outcome2.json @@ -288,14 +288,72 @@ "origin": { "Ability": "New Colonies" } + }, + { + "player": 0, + "CombatRound": { + "attackers": { + "settlers": 1, + "infantry": 1, + "leader": "Erik" + }, + "defending_player": 1, + "defenders": { + "infantry": 1 + }, + "round": 1 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 0, + "CombatRoll": { + "rolls": [ + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + }, + { + "value": 6, + "unit_type": "Infantry", + "bonus": false + } + ], + "combat_value": 13, + "hits": 1 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 1, + "CombatRoll": { + "rolls": [ + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + } + ], + "combat_value": 7, + "hits": 1 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 0, + "Text": "Remove 1 of their attacking units", + "origin": { + "Ability": "Choose Casualties" + } } ], - "log": [ - "Combat round 1", - "Player1: Combat: Attacking with 1 settler, 1 infantry and Erik the Red, Roll 6 (infantry, +1 combat value), 6 (infantry, no bonus) for combined combat value of 13 and gets 1 hits against defending units", - "Player2: Combat: Defending with 1 infantry, Roll 6 (infantry, +1 combat value) for combined combat value of 7 and gets 1 hits against attacking units", - "Player1: Choose Casualties: Remove 1 of their attacking units" - ], "active_events": 1 }, { @@ -349,6 +407,13 @@ "Ability": "Combat" } }, + { + "player": 1, + "Text": "Remove all defending units", + "origin": { + "Ability": "Choose Casualties" + } + }, { "player": 1, "Units": { @@ -361,12 +426,15 @@ "origin": { "Ability": "Combat" } + }, + { + "player": 0, + "Text": "wins the battle", + "origin": { + "Ability": "Combat" + } } ], - "log": [ - "Player2: Choose Casualties: Remove all defending units", - "Attacker wins" - ], "active_events": 2 } ] diff --git a/server/tests/test_games/civilizations/vikings/raids.outcome2.json b/server/tests/test_games/civilizations/vikings/raids.outcome2.json index ef13ee46..e34db27b 100644 --- a/server/tests/test_games/civilizations/vikings/raids.outcome2.json +++ b/server/tests/test_games/civilizations/vikings/raids.outcome2.json @@ -438,6 +438,27 @@ "Ability": "Market" } }, + { + "player": 1, + "Text": "ship at E7 traded with city D6", + "origin": { + "Advance": "TradeRoutes" + } + }, + { + "player": 1, + "Text": "settler at E7 traded with city E6", + "origin": { + "Advance": "TradeRoutes" + } + }, + { + "player": 1, + "Text": "Raided Player1 at D6", + "origin": { + "SpecialAdvance": "Raiding" + } + }, { "player": 1, "Resources": { @@ -462,10 +483,6 @@ "Ability": "Waste" } } - ], - "log": [ - "Player2: Trade Routes: ship at E7 traded with city D6, settler at E7 traded with city E6", - "Player2: Raiding: Raided Player1 at D6" ] }, { @@ -519,11 +536,15 @@ "origin": { "Ability": "Viking Raids" } + }, + { + "player": 0, + "Text": "Lose 1 food", + "origin": { + "Ability": "Viking Raids" + } } ], - "log": [ - "Player1: Viking Raids: Lose 1 food" - ], "active_events": 1 } ] diff --git a/server/tests/test_games/civilizations/vikings/ship_construction.outcome3.json b/server/tests/test_games/civilizations/vikings/ship_construction.outcome3.json index 097eec94..b647a642 100644 --- a/server/tests/test_games/civilizations/vikings/ship_construction.outcome3.json +++ b/server/tests/test_games/civilizations/vikings/ship_construction.outcome3.json @@ -290,10 +290,14 @@ "origin": { "Ability": "Move" } + }, + { + "player": 0, + "Text": "Convert 1 settler to ships", + "origin": { + "SpecialAdvance": "ShipConstruction" + } } - ], - "log": [ - "Player1: Ship Construction: Convert 1 settler to ships" ] }, { @@ -380,8 +384,21 @@ } }, "player": 0, - "log": [ - "Player1: Ship Construction: Unloaded 1 settler and 1 infantry from ships, Converted 1 ship to 1 settler" + "items": [ + { + "player": 0, + "Text": "Unloaded 1 settler and 1 infantry from ships", + "origin": { + "SpecialAdvance": "ShipConstruction" + } + }, + { + "player": 0, + "Text": "Converted 1 ship to 1 settler", + "origin": { + "SpecialAdvance": "ShipConstruction" + } + } ], "active_events": 1 } diff --git a/server/tests/test_games/combat/capture_and_raze_city.outcome.json b/server/tests/test_games/combat/capture_and_raze_city.outcome.json index 443c2b1c..d32c56b8 100644 --- a/server/tests/test_games/combat/capture_and_raze_city.outcome.json +++ b/server/tests/test_games/combat/capture_and_raze_city.outcome.json @@ -271,6 +271,100 @@ "Ability": "Move" } }, + { + "player": 0, + "CombatRound": { + "attackers": { + "infantry": 2, + "cavalry": 1, + "elephants": 1 + }, + "defending_player": 1, + "defenders": { + "infantry": 2 + }, + "round": 1 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 0, + "CombatRoll": { + "rolls": [ + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + }, + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + }, + { + "value": 6, + "unit_type": "Infantry", + "bonus": false + }, + { + "value": 6, + "unit_type": "Infantry", + "bonus": false + } + ], + "combat_value": 26, + "hits": 2 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 1, + "CombatRoll": { + "rolls": [ + { + "value": 1, + "unit_type": { + "Leader": "Alexander" + }, + "bonus": false + }, + { + "value": 1, + "unit_type": { + "Leader": "Alexander" + }, + "bonus": false + }, + { + "value": 1, + "unit_type": { + "Leader": "Alexander" + }, + "bonus": false + } + ], + "combat_value": 3, + "hits": 0, + "combat_modifiers": [ + "fortress added one extra die", + "fortress cancelled one hit" + ] + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 1, + "Text": "Remove all defending units", + "origin": { + "Ability": "Choose Casualties" + } + }, { "player": 1, "Units": { @@ -284,6 +378,13 @@ "Ability": "Combat" } }, + { + "player": 0, + "Text": "wins the battle", + "origin": { + "Ability": "Combat" + } + }, { "player": 0, "Resources": { @@ -373,13 +474,6 @@ "Ability": "Waste" } } - ], - "log": [ - "Combat round 1", - "Player1: Combat: Attacking with 2 infantry, 1 cavalry and 1 elephant, Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value), 6 (infantry, no bonus), 6 (infantry, no bonus) for combined combat value of 26 and gets 2 hits against defending units", - "Player2: Combat: Defending with 2 infantry, Roll 1 (leader, no bonus), 1 (leader, no bonus), 1 (leader, no bonus) for combined combat value of 3 and gets 0 hits against attacking units, Combat modifiers: fortress added one extra die, fortress cancelled one hit", - "Player2: Choose Casualties: Remove all defending units", - "Attacker wins" ] } ] diff --git a/server/tests/test_games/combat/combat_all_modifiers.outcome5.json b/server/tests/test_games/combat/combat_all_modifiers.outcome5.json index 41e6cb0f..af6efebb 100644 --- a/server/tests/test_games/combat/combat_all_modifiers.outcome5.json +++ b/server/tests/test_games/combat/combat_all_modifiers.outcome5.json @@ -252,12 +252,26 @@ "origin": { "Ability": "Move" } + }, + { + "player": 0, + "CombatRound": { + "attackers": { + "settlers": 2, + "infantry": 2, + "cavalry": 1, + "elephants": 1 + }, + "defending_player": 1, + "defenders": { + "infantry": 2 + }, + "round": 1 + }, + "origin": { + "Ability": "Combat" + } } - ], - "log": [ - "Combat round 1", - "Player1: Combat: Attacking with 2 settlers, 2 infantry, 1 cavalry and 1 elephant", - "Player2: Combat: Defending with 2 infantry" ] }, { @@ -321,11 +335,15 @@ "origin": { "Advance": "Siegecraft" } + }, + { + "player": 0, + "Text": "Cancel Fortress Ignore Hit", + "origin": { + "Advance": "Siegecraft" + } } ], - "log": [ - "Player1: Siegecraft: Cancel Fortress Ignore Hit" - ], "active_events": 1 }, { @@ -438,6 +456,109 @@ "Advance": "Tactics" } }, + { + "player": 0, + "Text": "Reveal Tactics Card Peltasts", + "origin": { + "Advance": "Tactics" + } + }, + { + "player": 1, + "Text": "Reveal Tactics Card Encircled", + "origin": { + "Advance": "Tactics" + } + }, + { + "player": 0, + "CombatRoll": { + "rolls": [ + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + }, + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + }, + { + "value": 6, + "unit_type": "Infantry", + "bonus": false + }, + { + "value": 1, + "unit_type": { + "Leader": "Alexander" + }, + "bonus": false + } + ], + "combat_value": 22, + "hits": 2, + "combat_modifiers": [ + "steel weapons added 1 combat value", + "Peltasts rolls a 6 and ignored a hit" + ] + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 1, + "CombatRoll": { + "rolls": [ + { + "value": 1, + "unit_type": { + "Leader": "Alexander" + }, + "bonus": false + }, + { + "value": 1, + "unit_type": { + "Leader": "Alexander" + }, + "bonus": false + }, + { + "value": 1, + "unit_type": { + "Leader": "Alexander" + }, + "bonus": false + } + ], + "combat_value": 4, + "hits": 0, + "combat_modifiers": [ + "fortress added one extra die", + "steel weapons added 1 combat value" + ] + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 1, + "Text": "Cannot do damage - opponent has fewer losses", + "origin": { + "TacticsCard": 2 + } + }, + { + "player": 1, + "Text": "Remove all defending units", + "origin": { + "Ability": "Choose Casualties" + } + }, { "player": 1, "Units": { @@ -451,6 +572,13 @@ "Ability": "Combat" } }, + { + "player": 0, + "Text": "wins the battle", + "origin": { + "Ability": "Combat" + } + }, { "player": 0, "Resources": { @@ -528,15 +656,6 @@ } } ], - "log": [ - "Player1: Tactics: Reveal Tactics Card Peltasts", - "Player2: Tactics: Reveal Tactics Card Encircled", - "Player1: Combat: Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value), 6 (infantry, no bonus), 1 (leader, no bonus) for combined combat value of 22 and gets 2 hits against defending units, Combat modifiers: steel weapons added 1 combat value, Peltasts rolled a 6 and ignored a hit", - "Player2: Combat: Roll 1 (leader, no bonus), 1 (leader, no bonus), 1 (leader, no bonus) for combined combat value of 4 and gets 0 hits against attacking units, Combat modifiers: fortress added one extra die, steel weapons added 1 combat value", - "Player2: Encircled: Cannot do damage - opponent has fewer losses", - "Player2: Choose Casualties: Remove all defending units", - "Attacker wins" - ], "active_events": 1 } ] @@ -574,4 +693,4 @@ 1, 2 ] -} \ No newline at end of file +} diff --git a/server/tests/test_games/combat/combat_fanaticism.outcome.json b/server/tests/test_games/combat/combat_fanaticism.outcome.json index a7596c9a..8ac537d7 100644 --- a/server/tests/test_games/combat/combat_fanaticism.outcome.json +++ b/server/tests/test_games/combat/combat_fanaticism.outcome.json @@ -290,6 +290,93 @@ "Ability": "Move" } }, + { + "player": 0, + "CombatRound": { + "attackers": { + "settlers": 2, + "infantry": 2, + "cavalry": 1, + "elephants": 1 + }, + "defending_player": 1, + "defenders": { + "infantry": 2 + }, + "round": 1 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 0, + "CombatRoll": { + "rolls": [ + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + }, + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + }, + { + "value": 6, + "unit_type": "Infantry", + "bonus": false + }, + { + "value": 6, + "unit_type": "Infantry", + "bonus": false + } + ], + "combat_value": 26, + "hits": 2 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 1, + "CombatRoll": { + "rolls": [ + { + "value": 1, + "unit_type": { + "Leader": "Alexander" + }, + "bonus": false + }, + { + "value": 1, + "unit_type": { + "Leader": "Alexander" + }, + "bonus": false + } + ], + "combat_value": 4, + "hits": 0, + "combat_modifiers": [ + "Player gets +2 combat value for Fanaticism Advance" + ] + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 1, + "Text": "Remove all defending units", + "origin": { + "Ability": "Choose Casualties" + } + }, { "player": 1, "Units": { @@ -303,6 +390,13 @@ "Ability": "Combat" } }, + { + "player": 0, + "Text": "wins the battle", + "origin": { + "Ability": "Combat" + } + }, { "player": 0, "Resources": { @@ -405,13 +499,6 @@ "Ability": "Waste" } } - ], - "log": [ - "Combat round 1", - "Player1: Combat: Attacking with 2 settlers, 2 infantry, 1 cavalry and 1 elephant, Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value), 6 (infantry, no bonus), 6 (infantry, no bonus) for combined combat value of 26 and gets 2 hits against defending units", - "Player2: Combat: Defending with 2 infantry, Roll 1 (leader, no bonus), 1 (leader, no bonus) for combined combat value of 4 and gets 0 hits against attacking units, Combat modifiers: Player gets +2 combat value for Fanaticism Advance", - "Player2: Choose Casualties: Remove all defending units", - "Attacker wins" ] } ] diff --git a/server/tests/test_games/combat/direct_capture_city_fortress.outcome.json b/server/tests/test_games/combat/direct_capture_city_fortress.outcome.json index e1039558..de9d2210 100644 --- a/server/tests/test_games/combat/direct_capture_city_fortress.outcome.json +++ b/server/tests/test_games/combat/direct_capture_city_fortress.outcome.json @@ -262,6 +262,100 @@ "Ability": "Move" } }, + { + "player": 0, + "CombatRound": { + "attackers": { + "infantry": 2, + "cavalry": 1, + "elephants": 1 + }, + "defending_player": 1, + "defenders": { + "infantry": 2 + }, + "round": 1 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 0, + "CombatRoll": { + "rolls": [ + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + }, + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + }, + { + "value": 6, + "unit_type": "Infantry", + "bonus": false + }, + { + "value": 6, + "unit_type": "Infantry", + "bonus": false + } + ], + "combat_value": 26, + "hits": 2 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 1, + "CombatRoll": { + "rolls": [ + { + "value": 1, + "unit_type": { + "Leader": "Alexander" + }, + "bonus": false + }, + { + "value": 1, + "unit_type": { + "Leader": "Alexander" + }, + "bonus": false + }, + { + "value": 1, + "unit_type": { + "Leader": "Alexander" + }, + "bonus": false + } + ], + "combat_value": 3, + "hits": 0, + "combat_modifiers": [ + "fortress added one extra die", + "fortress cancelled one hit" + ] + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 1, + "Text": "Remove all defending units", + "origin": { + "Ability": "Choose Casualties" + } + }, { "player": 1, "Units": { @@ -275,6 +369,13 @@ "Ability": "Combat" } }, + { + "player": 0, + "Text": "wins the battle", + "origin": { + "Ability": "Combat" + } + }, { "player": 0, "Resources": { @@ -351,13 +452,6 @@ "Ability": "Waste" } } - ], - "log": [ - "Combat round 1", - "Player1: Combat: Attacking with 2 infantry, 1 cavalry and 1 elephant, Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value), 6 (infantry, no bonus), 6 (infantry, no bonus) for combined combat value of 26 and gets 2 hits against defending units", - "Player2: Combat: Defending with 2 infantry, Roll 1 (leader, no bonus), 1 (leader, no bonus), 1 (leader, no bonus) for combined combat value of 3 and gets 0 hits against attacking units, Combat modifiers: fortress added one extra die, fortress cancelled one hit", - "Player2: Choose Casualties: Remove all defending units", - "Attacker wins" ] } ] diff --git a/server/tests/test_games/combat/direct_capture_city_metallurgy.outcome.json b/server/tests/test_games/combat/direct_capture_city_metallurgy.outcome.json index 8dca4ccd..a0caf9c6 100644 --- a/server/tests/test_games/combat/direct_capture_city_metallurgy.outcome.json +++ b/server/tests/test_games/combat/direct_capture_city_metallurgy.outcome.json @@ -263,6 +263,92 @@ "Ability": "Move" } }, + { + "player": 0, + "CombatRound": { + "attackers": { + "infantry": 2, + "cavalry": 1, + "elephants": 1 + }, + "defending_player": 1, + "defenders": { + "leader": "Caesar" + }, + "round": 1 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 0, + "CombatRoll": { + "rolls": [ + { + "value": 2, + "unit_type": "Elephant", + "bonus": true + }, + { + "value": 2, + "unit_type": "Elephant", + "bonus": false + }, + { + "value": 2, + "unit_type": "Elephant", + "bonus": false + }, + { + "value": 1, + "unit_type": { + "Leader": "Alexander" + }, + "bonus": false + } + ], + "combat_value": 7, + "hits": 1, + "combat_modifiers": [ + "steel weapons added 2 combat value" + ] + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 1, + "CombatRoll": { + "rolls": [ + { + "value": 1, + "unit_type": { + "Leader": "Alexander" + }, + "bonus": true + }, + { + "value": 6, + "unit_type": "Infantry", + "bonus": false + } + ], + "combat_value": 6, + "hits": 0 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 1, + "Text": "Remove all defending units", + "origin": { + "Ability": "Choose Casualties" + } + }, { "player": 1, "Units": { @@ -276,6 +362,13 @@ "Ability": "Combat" } }, + { + "player": 0, + "Text": "wins the battle", + "origin": { + "Ability": "Combat" + } + }, { "player": 0, "Resources": { @@ -324,13 +417,6 @@ "Ability": "Waste" } } - ], - "log": [ - "Combat round 1", - "Player1: Combat: Attacking with 2 infantry, 1 cavalry and 1 elephant, Roll 2 (elephant, -1 hits, no combat value), 2 (elephant, no bonus), 2 (elephant, no bonus), 1 (leader, no bonus) for combined combat value of 7 and gets 1 hits against defending units, Combat modifiers: steel weapons added 2 combat value", - "Player2: Combat: Defending with Gaius Julius Caesar, Roll 1 (leader, re-roll), 6 (infantry, no bonus) for combined combat value of 6 and gets 0 hits against attacking units", - "Player2: Choose Casualties: Remove all defending units", - "Attacker wins" ] } ] diff --git a/server/tests/test_games/combat/direct_capture_city_only_fortress.outcome.json b/server/tests/test_games/combat/direct_capture_city_only_fortress.outcome.json index 70c47741..39df7060 100644 --- a/server/tests/test_games/combat/direct_capture_city_only_fortress.outcome.json +++ b/server/tests/test_games/combat/direct_capture_city_only_fortress.outcome.json @@ -256,6 +256,84 @@ "Ability": "Move" } }, + { + "player": 0, + "CombatRound": { + "attackers": { + "infantry": 2, + "cavalry": 1, + "elephants": 1 + }, + "defending_player": 1, + "defenders": {}, + "round": 1 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 0, + "CombatRoll": { + "rolls": [ + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + }, + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + }, + { + "value": 6, + "unit_type": "Infantry", + "bonus": false + }, + { + "value": 6, + "unit_type": "Infantry", + "bonus": false + } + ], + "combat_value": 26, + "hits": 0 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 1, + "CombatRoll": { + "rolls": [ + { + "value": 1, + "unit_type": { + "Leader": "Alexander" + }, + "bonus": false + } + ], + "combat_value": 1, + "hits": 0, + "combat_modifiers": [ + "fortress added one extra die", + "fortress cancelled one hit" + ] + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 0, + "Text": "wins the battle", + "origin": { + "Ability": "Combat" + } + }, { "player": 0, "Resources": { @@ -332,12 +410,6 @@ "Ability": "Waste" } } - ], - "log": [ - "Combat round 1", - "Player1: Combat: Attacking with 2 infantry, 1 cavalry and 1 elephant, Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value), 6 (infantry, no bonus), 6 (infantry, no bonus) for combined combat value of 26 and gets 0 hits against defending units", - "Player2: Combat: Defending with no units, Roll 1 (leader, no bonus) for combined combat value of 1 and gets 0 hits against attacking units, Combat modifiers: fortress added one extra die, fortress cancelled one hit", - "Attacker wins" ] } ] diff --git a/server/tests/test_games/combat/recruit_combat.outcome6.json b/server/tests/test_games/combat/recruit_combat.outcome6.json index a178f210..e1305c01 100644 --- a/server/tests/test_games/combat/recruit_combat.outcome6.json +++ b/server/tests/test_games/combat/recruit_combat.outcome6.json @@ -407,6 +407,76 @@ "Advance": "Medicine" } }, + { + "player": 0, + "CombatRound": { + "attackers": { + "ships": 4 + }, + "defending_player": 2, + "defenders": { + "ships": 2 + }, + "round": 1 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 0, + "CombatRoll": { + "rolls": [ + { + "value": 6, + "unit_type": "Infantry", + "bonus": false + }, + { + "value": 6, + "unit_type": "Infantry", + "bonus": false + }, + { + "value": 6, + "unit_type": "Infantry", + "bonus": false + }, + { + "value": 6, + "unit_type": "Infantry", + "bonus": false + } + ], + "combat_value": 24, + "hits": 2 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 2, + "CombatRoll": { + "rolls": [ + { + "value": 6, + "unit_type": "Infantry", + "bonus": false + }, + { + "value": 6, + "unit_type": "Infantry", + "bonus": false + } + ], + "combat_value": 12, + "hits": 2 + }, + "origin": { + "Ability": "Combat" + } + }, { "player": 0, "Resources": { @@ -419,6 +489,13 @@ "Ability": "Pirate ship destroyed" } }, + { + "player": 0, + "Text": "Remove 2 of their attacking units", + "origin": { + "Ability": "Choose Casualties" + } + }, { "player": 0, "Units": { @@ -432,6 +509,13 @@ "Ability": "Combat" } }, + { + "player": 2, + "Text": "Remove all defending units", + "origin": { + "Ability": "Choose Casualties" + } + }, { "player": 2, "Units": { @@ -444,16 +528,15 @@ "origin": { "Ability": "Combat" } + }, + { + "player": 0, + "Text": "wins the battle", + "origin": { + "Ability": "Combat" + } } ], - "log": [ - "Combat round 1", - "Player1: Combat: Attacking with 4 ships, Roll 6 (infantry, no bonus), 6 (infantry, no bonus), 6 (infantry, no bonus), 6 (infantry, no bonus) for combined combat value of 24 and gets 2 hits against defending units", - "Pirates: Combat: Defending with 2 ships, Roll 6 (infantry, no bonus), 6 (infantry, no bonus) for combined combat value of 12 and gets 2 hits against attacking units", - "Player1: Choose Casualties: Remove 2 of their attacking units", - "Pirates: Choose Casualties: Remove all defending units", - "Attacker wins" - ], "active_events": 1 }, { @@ -542,6 +625,63 @@ "Ability": "Move" } }, + { + "player": 0, + "CombatRound": { + "attackers": { + "ships": 2 + }, + "defending_player": 2, + "defenders": { + "ships": 1 + }, + "round": 1 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 0, + "CombatRoll": { + "rolls": [ + { + "value": 6, + "unit_type": "Infantry", + "bonus": false + }, + { + "value": 6, + "unit_type": "Infantry", + "bonus": false + } + ], + "combat_value": 12, + "hits": 1 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 2, + "CombatRoll": { + "rolls": [ + { + "value": 1, + "unit_type": { + "Leader": "Alexander" + }, + "bonus": false + } + ], + "combat_value": 1, + "hits": 0 + }, + "origin": { + "Ability": "Combat" + } + }, { "player": 0, "Resources": { @@ -554,6 +694,13 @@ "Ability": "Pirate ship destroyed" } }, + { + "player": 2, + "Text": "Remove all defending units", + "origin": { + "Ability": "Choose Casualties" + } + }, { "player": 2, "Units": { @@ -567,6 +714,13 @@ "Ability": "Combat" } }, + { + "player": 0, + "Text": "wins the battle", + "origin": { + "Ability": "Combat" + } + }, { "player": 0, "Resources": { @@ -579,13 +733,6 @@ "Ability": "Waste" } } - ], - "log": [ - "Combat round 1", - "Player1: Combat: Attacking with 2 ships, Roll 6 (infantry, no bonus), 6 (infantry, no bonus) for combined combat value of 12 and gets 1 hits against defending units", - "Pirates: Combat: Defending with 1 ship, Roll 1 (leader, no bonus) for combined combat value of 1 and gets 0 hits against attacking units", - "Pirates: Choose Casualties: Remove all defending units", - "Attacker wins" ] }, { diff --git a/server/tests/test_games/combat/remove_casualties_attacker.outcome.json b/server/tests/test_games/combat/remove_casualties_attacker.outcome.json index 35ceaf16..31fbdef8 100644 --- a/server/tests/test_games/combat/remove_casualties_attacker.outcome.json +++ b/server/tests/test_games/combat/remove_casualties_attacker.outcome.json @@ -317,13 +317,86 @@ "origin": { "Ability": "Move" } + }, + { + "player": 0, + "CombatRound": { + "attackers": { + "infantry": 2, + "cavalry": 1, + "elephants": 1 + }, + "defending_player": 1, + "defenders": { + "infantry": 2 + }, + "round": 1 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 0, + "CombatRoll": { + "rolls": [ + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + }, + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + }, + { + "value": 6, + "unit_type": "Infantry", + "bonus": false + }, + { + "value": 6, + "unit_type": "Infantry", + "bonus": false + } + ], + "combat_value": 26, + "hits": 2 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 1, + "CombatRoll": { + "rolls": [ + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + }, + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + } + ], + "combat_value": 14, + "hits": 2 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 0, + "Text": "Remove 2 of their attacking units", + "origin": { + "Ability": "Choose Casualties" + } } - ], - "log": [ - "Combat round 1", - "Player1: Combat: Attacking with 2 infantry, 1 cavalry and 1 elephant, Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value), 6 (infantry, no bonus), 6 (infantry, no bonus) for combined combat value of 26 and gets 2 hits against defending units", - "Player2: Combat: Defending with 2 infantry, Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value) for combined combat value of 14 and gets 2 hits against attacking units", - "Player1: Choose Casualties: Remove 2 of their attacking units" ] } ] diff --git a/server/tests/test_games/combat/remove_casualties_attacker.outcome1.json b/server/tests/test_games/combat/remove_casualties_attacker.outcome1.json index 6ae638a2..3ac5ebe6 100644 --- a/server/tests/test_games/combat/remove_casualties_attacker.outcome1.json +++ b/server/tests/test_games/combat/remove_casualties_attacker.outcome1.json @@ -216,13 +216,86 @@ "origin": { "Ability": "Move" } + }, + { + "player": 0, + "CombatRound": { + "attackers": { + "infantry": 2, + "cavalry": 1, + "elephants": 1 + }, + "defending_player": 1, + "defenders": { + "infantry": 2 + }, + "round": 1 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 0, + "CombatRoll": { + "rolls": [ + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + }, + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + }, + { + "value": 6, + "unit_type": "Infantry", + "bonus": false + }, + { + "value": 6, + "unit_type": "Infantry", + "bonus": false + } + ], + "combat_value": 26, + "hits": 2 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 1, + "CombatRoll": { + "rolls": [ + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + }, + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + } + ], + "combat_value": 14, + "hits": 2 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 0, + "Text": "Remove 2 of their attacking units", + "origin": { + "Ability": "Choose Casualties" + } } - ], - "log": [ - "Combat round 1", - "Player1: Combat: Attacking with 2 infantry, 1 cavalry and 1 elephant, Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value), 6 (infantry, no bonus), 6 (infantry, no bonus) for combined combat value of 26 and gets 2 hits against defending units", - "Player2: Combat: Defending with 2 infantry, Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value) for combined combat value of 14 and gets 2 hits against attacking units", - "Player1: Choose Casualties: Remove 2 of their attacking units" ] }, { @@ -279,6 +352,13 @@ "Ability": "Combat" } }, + { + "player": 1, + "Text": "Remove all defending units", + "origin": { + "Ability": "Choose Casualties" + } + }, { "player": 1, "Units": { @@ -292,6 +372,13 @@ "Ability": "Combat" } }, + { + "player": 0, + "Text": "wins the battle", + "origin": { + "Ability": "Combat" + } + }, { "player": 0, "Resources": { @@ -341,10 +428,6 @@ } } ], - "log": [ - "Player2: Choose Casualties: Remove all defending units", - "Attacker wins" - ], "active_events": 1 } ] diff --git a/server/tests/test_games/combat/remove_casualties_defender.outcome.json b/server/tests/test_games/combat/remove_casualties_defender.outcome.json index 469d2fd0..425c48da 100644 --- a/server/tests/test_games/combat/remove_casualties_defender.outcome.json +++ b/server/tests/test_games/combat/remove_casualties_defender.outcome.json @@ -243,6 +243,68 @@ "Ability": "Move" } }, + { + "player": 0, + "CombatRound": { + "attackers": { + "infantry": 1 + }, + "defending_player": 1, + "defenders": { + "infantry": 2 + }, + "round": 1 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 0, + "CombatRoll": { + "rolls": [ + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + } + ], + "combat_value": 7, + "hits": 1 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 1, + "CombatRoll": { + "rolls": [ + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + }, + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + } + ], + "combat_value": 14, + "hits": 1 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 0, + "Text": "Remove all attacking units", + "origin": { + "Ability": "Choose Casualties" + } + }, { "player": 0, "Units": { @@ -256,6 +318,13 @@ "Ability": "Combat" } }, + { + "player": 1, + "Text": "Remove 1 of their defending units", + "origin": { + "Ability": "Choose Casualties" + } + }, { "player": 1, "Units": { @@ -268,15 +337,14 @@ "origin": { "Ability": "Combat" } + }, + { + "player": 1, + "Text": "wins the battle", + "origin": { + "Ability": "Combat" + } } - ], - "log": [ - "Combat round 1", - "Player1: Combat: Attacking with 1 infantry, Roll 6 (infantry, +1 combat value) for combined combat value of 7 and gets 1 hits against defending units", - "Player2: Combat: Defending with 2 infantry, Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value) for combined combat value of 14 and gets 1 hits against attacking units", - "Player1: Choose Casualties: Remove all attacking units", - "Player2: Choose Casualties: Remove 1 of their defending units", - "Defender wins" ] } ] diff --git a/server/tests/test_games/combat/retreat.outcome.json b/server/tests/test_games/combat/retreat.outcome.json index edc65953..71222ba9 100644 --- a/server/tests/test_games/combat/retreat.outcome.json +++ b/server/tests/test_games/combat/retreat.outcome.json @@ -281,13 +281,75 @@ "origin": { "Ability": "Move" } + }, + { + "player": 0, + "CombatRound": { + "attackers": { + "infantry": 1 + }, + "defending_player": 1, + "defenders": { + "infantry": 2 + }, + "round": 1 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 0, + "CombatRoll": { + "rolls": [ + { + "value": 1, + "unit_type": { + "Leader": "Alexander" + }, + "bonus": false + } + ], + "combat_value": 1, + "hits": 0 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 1, + "CombatRoll": { + "rolls": [ + { + "value": 1, + "unit_type": { + "Leader": "Alexander" + }, + "bonus": false + }, + { + "value": 1, + "unit_type": { + "Leader": "Alexander" + }, + "bonus": false + } + ], + "combat_value": 2, + "hits": 0 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 0, + "Text": "Player1 can retreat", + "origin": { + "Ability": "Retreat" + } } - ], - "log": [ - "Combat round 1", - "Player1: Combat: Attacking with 1 infantry, Roll 1 (leader, no bonus) for combined combat value of 1 and gets 0 hits against defending units", - "Player2: Combat: Defending with 2 infantry, Roll 1 (leader, no bonus), 1 (leader, no bonus) for combined combat value of 2 and gets 0 hits against attacking units", - "Player1: Retreat: Player1 can retreat" ] } ] diff --git a/server/tests/test_games/combat/retreat.outcome1.json b/server/tests/test_games/combat/retreat.outcome1.json index cfd14fca..5b0c7388 100644 --- a/server/tests/test_games/combat/retreat.outcome1.json +++ b/server/tests/test_games/combat/retreat.outcome1.json @@ -229,13 +229,75 @@ "origin": { "Ability": "Move" } + }, + { + "player": 0, + "CombatRound": { + "attackers": { + "infantry": 1 + }, + "defending_player": 1, + "defenders": { + "infantry": 2 + }, + "round": 1 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 0, + "CombatRoll": { + "rolls": [ + { + "value": 1, + "unit_type": { + "Leader": "Alexander" + }, + "bonus": false + } + ], + "combat_value": 1, + "hits": 0 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 1, + "CombatRoll": { + "rolls": [ + { + "value": 1, + "unit_type": { + "Leader": "Alexander" + }, + "bonus": false + }, + { + "value": 1, + "unit_type": { + "Leader": "Alexander" + }, + "bonus": false + } + ], + "combat_value": 2, + "hits": 0 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 0, + "Text": "Player1 can retreat", + "origin": { + "Ability": "Retreat" + } } - ], - "log": [ - "Combat round 1", - "Player1: Combat: Attacking with 1 infantry, Roll 1 (leader, no bonus) for combined combat value of 1 and gets 0 hits against defending units", - "Player2: Combat: Defending with 2 infantry, Roll 1 (leader, no bonus), 1 (leader, no bonus) for combined combat value of 2 and gets 0 hits against attacking units", - "Player1: Retreat: Player1 can retreat" ] }, { @@ -245,8 +307,14 @@ } }, "player": 0, - "log": [ - "Player1: Retreat: Retreat" + "items": [ + { + "player": 0, + "Text": "Retreat", + "origin": { + "Ability": "Retreat" + } + } ], "active_events": 1 } diff --git a/server/tests/test_games/combat/retreat_no.outcome.json b/server/tests/test_games/combat/retreat_no.outcome.json index edc65953..71222ba9 100644 --- a/server/tests/test_games/combat/retreat_no.outcome.json +++ b/server/tests/test_games/combat/retreat_no.outcome.json @@ -281,13 +281,75 @@ "origin": { "Ability": "Move" } + }, + { + "player": 0, + "CombatRound": { + "attackers": { + "infantry": 1 + }, + "defending_player": 1, + "defenders": { + "infantry": 2 + }, + "round": 1 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 0, + "CombatRoll": { + "rolls": [ + { + "value": 1, + "unit_type": { + "Leader": "Alexander" + }, + "bonus": false + } + ], + "combat_value": 1, + "hits": 0 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 1, + "CombatRoll": { + "rolls": [ + { + "value": 1, + "unit_type": { + "Leader": "Alexander" + }, + "bonus": false + }, + { + "value": 1, + "unit_type": { + "Leader": "Alexander" + }, + "bonus": false + } + ], + "combat_value": 2, + "hits": 0 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 0, + "Text": "Player1 can retreat", + "origin": { + "Ability": "Retreat" + } } - ], - "log": [ - "Combat round 1", - "Player1: Combat: Attacking with 1 infantry, Roll 1 (leader, no bonus) for combined combat value of 1 and gets 0 hits against defending units", - "Player2: Combat: Defending with 2 infantry, Roll 1 (leader, no bonus), 1 (leader, no bonus) for combined combat value of 2 and gets 0 hits against attacking units", - "Player1: Retreat: Player1 can retreat" ] } ] diff --git a/server/tests/test_games/combat/retreat_no.outcome1.json b/server/tests/test_games/combat/retreat_no.outcome1.json index c713c99e..735ed7a1 100644 --- a/server/tests/test_games/combat/retreat_no.outcome1.json +++ b/server/tests/test_games/combat/retreat_no.outcome1.json @@ -216,13 +216,75 @@ "origin": { "Ability": "Move" } + }, + { + "player": 0, + "CombatRound": { + "attackers": { + "infantry": 1 + }, + "defending_player": 1, + "defenders": { + "infantry": 2 + }, + "round": 1 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 0, + "CombatRoll": { + "rolls": [ + { + "value": 1, + "unit_type": { + "Leader": "Alexander" + }, + "bonus": false + } + ], + "combat_value": 1, + "hits": 0 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 1, + "CombatRoll": { + "rolls": [ + { + "value": 1, + "unit_type": { + "Leader": "Alexander" + }, + "bonus": false + }, + { + "value": 1, + "unit_type": { + "Leader": "Alexander" + }, + "bonus": false + } + ], + "combat_value": 2, + "hits": 0 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 0, + "Text": "Player1 can retreat", + "origin": { + "Ability": "Retreat" + } } - ], - "log": [ - "Combat round 1", - "Player1: Combat: Attacking with 1 infantry, Roll 1 (leader, no bonus) for combined combat value of 1 and gets 0 hits against defending units", - "Player2: Combat: Defending with 2 infantry, Roll 1 (leader, no bonus), 1 (leader, no bonus) for combined combat value of 2 and gets 0 hits against attacking units", - "Player1: Retreat: Player1 can retreat" ] }, { @@ -259,6 +321,75 @@ "city_mood": "Angry" }, "items": [ + { + "player": 0, + "Text": "Do not retreat", + "origin": { + "Ability": "Retreat" + } + }, + { + "player": 0, + "CombatRound": { + "attackers": { + "infantry": 1 + }, + "defending_player": 1, + "defenders": { + "infantry": 2 + }, + "round": 2 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 0, + "CombatRoll": { + "rolls": [ + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + } + ], + "combat_value": 7, + "hits": 1 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 1, + "CombatRoll": { + "rolls": [ + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + }, + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + } + ], + "combat_value": 14, + "hits": 1 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 0, + "Text": "Remove all attacking units", + "origin": { + "Ability": "Choose Casualties" + } + }, { "player": 0, "Units": { @@ -272,6 +403,13 @@ "Ability": "Combat" } }, + { + "player": 1, + "Text": "Remove 1 of their defending units", + "origin": { + "Ability": "Choose Casualties" + } + }, { "player": 1, "Units": { @@ -284,17 +422,15 @@ "origin": { "Ability": "Combat" } + }, + { + "player": 1, + "Text": "wins the battle", + "origin": { + "Ability": "Combat" + } } ], - "log": [ - "Player1: Retreat: Do not retreat", - "Combat round 2", - "Player1: Combat: Attacking with 1 infantry, Roll 6 (infantry, +1 combat value) for combined combat value of 7 and gets 1 hits against defending units", - "Player2: Combat: Defending with 2 infantry, Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value) for combined combat value of 14 and gets 1 hits against attacking units", - "Player1: Choose Casualties: Remove all attacking units", - "Player2: Choose Casualties: Remove 1 of their defending units", - "Defender wins" - ], "active_events": 1 } ] diff --git a/server/tests/test_games/combat/ship_combat.outcome.json b/server/tests/test_games/combat/ship_combat.outcome.json index 8ab2fca1..4cd76366 100644 --- a/server/tests/test_games/combat/ship_combat.outcome.json +++ b/server/tests/test_games/combat/ship_combat.outcome.json @@ -366,6 +366,71 @@ "Ability": "Move" } }, + { + "player": 0, + "CombatRound": { + "attackers": { + "settlers": 1, + "ships": 2, + "cavalry": 1, + "elephants": 1 + }, + "defending_player": 1, + "defenders": { + "ships": 1 + }, + "round": 1 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 0, + "CombatRoll": { + "rolls": [ + { + "value": 6, + "unit_type": "Infantry", + "bonus": false + }, + { + "value": 6, + "unit_type": "Infantry", + "bonus": false + } + ], + "combat_value": 12, + "hits": 1 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 1, + "CombatRoll": { + "rolls": [ + { + "value": 6, + "unit_type": "Infantry", + "bonus": false + } + ], + "combat_value": 6, + "hits": 1 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 0, + "Text": "Remove 1 of their attacking units", + "origin": { + "Ability": "Choose Casualties" + } + }, { "player": 0, "Units": { @@ -379,12 +444,6 @@ "Ability": "Combat" } } - ], - "log": [ - "Combat round 1", - "Player1: Combat: Attacking with 1 settler, 2 ships, 1 cavalry and 1 elephant, Roll 6 (infantry, no bonus), 6 (infantry, no bonus) for combined combat value of 12 and gets 1 hits against defending units", - "Player2: Combat: Defending with 1 ship, Roll 6 (infantry, no bonus) for combined combat value of 6 and gets 1 hits against attacking units", - "Player1: Choose Casualties: Remove 1 of their attacking units" ] } ] diff --git a/server/tests/test_games/combat/ship_combat.outcome1.json b/server/tests/test_games/combat/ship_combat.outcome1.json index f41b7837..8eb2d20f 100644 --- a/server/tests/test_games/combat/ship_combat.outcome1.json +++ b/server/tests/test_games/combat/ship_combat.outcome1.json @@ -286,6 +286,71 @@ "Ability": "Move" } }, + { + "player": 0, + "CombatRound": { + "attackers": { + "settlers": 1, + "ships": 2, + "cavalry": 1, + "elephants": 1 + }, + "defending_player": 1, + "defenders": { + "ships": 1 + }, + "round": 1 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 0, + "CombatRoll": { + "rolls": [ + { + "value": 6, + "unit_type": "Infantry", + "bonus": false + }, + { + "value": 6, + "unit_type": "Infantry", + "bonus": false + } + ], + "combat_value": 12, + "hits": 1 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 1, + "CombatRoll": { + "rolls": [ + { + "value": 6, + "unit_type": "Infantry", + "bonus": false + } + ], + "combat_value": 6, + "hits": 1 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 0, + "Text": "Remove 1 of their attacking units", + "origin": { + "Ability": "Choose Casualties" + } + }, { "player": 0, "Units": { @@ -299,12 +364,6 @@ "Ability": "Combat" } } - ], - "log": [ - "Combat round 1", - "Player1: Combat: Attacking with 1 settler, 2 ships, 1 cavalry and 1 elephant, Roll 6 (infantry, no bonus), 6 (infantry, no bonus) for combined combat value of 12 and gets 1 hits against defending units", - "Player2: Combat: Defending with 1 ship, Roll 6 (infantry, no bonus) for combined combat value of 6 and gets 1 hits against attacking units", - "Player1: Choose Casualties: Remove 1 of their attacking units" ] }, { @@ -343,6 +402,13 @@ "result": "AttackerWins" }, "items": [ + { + "player": 0, + "Text": "Killed carried units: 1 cavalry", + "origin": { + "Ability": "Choose Casualties (carried units)" + } + }, { "player": 0, "Units": { @@ -356,6 +422,13 @@ "Ability": "Choose Casualties (carried units)" } }, + { + "player": 1, + "Text": "Remove all defending units", + "origin": { + "Ability": "Choose Casualties" + } + }, { "player": 1, "Units": { @@ -368,13 +441,15 @@ "origin": { "Ability": "Combat" } + }, + { + "player": 0, + "Text": "wins the battle", + "origin": { + "Ability": "Combat" + } } ], - "log": [ - "Player1: Choose Casualties (carried units): Killed carried units: 1 cavalry", - "Player2: Choose Casualties: Remove all defending units", - "Attacker wins" - ], "active_events": 2 } ] diff --git a/server/tests/test_games/combat/ship_combat_war_ships.outcome.json b/server/tests/test_games/combat/ship_combat_war_ships.outcome.json index 02638801..86b91e0f 100644 --- a/server/tests/test_games/combat/ship_combat_war_ships.outcome.json +++ b/server/tests/test_games/combat/ship_combat_war_ships.outcome.json @@ -356,6 +356,81 @@ "Ability": "Move" } }, + { + "player": 0, + "CombatRound": { + "attackers": { + "ships": 2, + "cavalry": 1, + "elephants": 1 + }, + "defending_player": 1, + "defenders": { + "ships": 2 + }, + "round": 1 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 0, + "CombatRoll": { + "rolls": [ + { + "value": 6, + "unit_type": "Infantry", + "bonus": false + }, + { + "value": 6, + "unit_type": "Infantry", + "bonus": false + } + ], + "combat_value": 12, + "hits": 1, + "combat_modifiers": [ + "WarShips ignore the first hit in the first round of combat" + ] + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 1, + "CombatRoll": { + "rolls": [ + { + "value": 6, + "unit_type": "Infantry", + "bonus": false + }, + { + "value": 6, + "unit_type": "Infantry", + "bonus": false + } + ], + "combat_value": 12, + "hits": 1, + "combat_modifiers": [ + "WarShips ignore the first hit in the first round of combat" + ] + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 0, + "Text": "Remove 1 of their attacking units", + "origin": { + "Ability": "Choose Casualties" + } + }, { "player": 0, "Units": { @@ -368,14 +443,14 @@ "origin": { "Ability": "Combat" } + }, + { + "player": 0, + "Text": "Player1 can retreat", + "origin": { + "Ability": "Retreat" + } } - ], - "log": [ - "Combat round 1", - "Player1: Combat: Attacking with 2 ships, 1 cavalry and 1 elephant, Roll 6 (infantry, no bonus), 6 (infantry, no bonus) for combined combat value of 12 and gets 1 hits against defending units, Combat modifiers: WarShips ignore the first hit in the first round of combat", - "Player2: Combat: Defending with 2 ships, Roll 6 (infantry, no bonus), 6 (infantry, no bonus) for combined combat value of 12 and gets 1 hits against attacking units, Combat modifiers: WarShips ignore the first hit in the first round of combat", - "Player1: Choose Casualties: Remove 1 of their attacking units", - "Player1: Retreat: Player1 can retreat" ] } ] diff --git a/server/tests/test_games/incidents/barbarians_attack.outcome.json b/server/tests/test_games/incidents/barbarians_attack.outcome.json index 55bb9eaa..db5b0596 100644 --- a/server/tests/test_games/incidents/barbarians_attack.outcome.json +++ b/server/tests/test_games/incidents/barbarians_attack.outcome.json @@ -309,6 +309,99 @@ "Ability": "Free Advance" } }, + { + "player": 0, + "Text": "triggers the event Population Boom", + "origin": { + "Advance": "Storage" + } + }, + { + "player": 0, + "Text": "Base effect: Barbarians move", + "origin": { + "Incident": 28 + } + }, + { + "player": 0, + "Text": "Barbarians move from B2 to C2: 2 infantry and 1 elephant", + "origin": { + "Incident": 28 + } + }, + { + "player": 2, + "CombatRound": { + "attackers": { + "infantry": 2, + "elephants": 1 + }, + "defending_player": 0, + "defenders": { + "settlers": 4 + }, + "round": 1 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 2, + "CombatRoll": { + "rolls": [ + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + }, + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + }, + { + "value": 6, + "unit_type": "Infantry", + "bonus": false + } + ], + "combat_value": 20, + "hits": 0 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 0, + "CombatRoll": { + "rolls": [ + { + "value": 6, + "unit_type": "Infantry", + "bonus": false + } + ], + "combat_value": 6, + "hits": 1, + "combat_modifiers": [ + "fortress added one extra die", + "fortress cancelled one hit" + ] + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 2, + "Text": "Remove 1 of their attacking units", + "origin": { + "Ability": "Choose Casualties" + } + }, { "player": 2, "Units": { @@ -322,6 +415,20 @@ "Ability": "Combat" } }, + { + "player": 2, + "Text": "wins the battle", + "origin": { + "Ability": "Combat" + } + }, + { + "player": 2, + "Text": "Kill 4 settlers of Player1", + "origin": { + "Ability": "Combat" + } + }, { "player": 0, "Units": { @@ -398,6 +505,13 @@ "Incident": 28 } }, + { + "player": 0, + "Text": "Player2 was selected to gain 1 settler.", + "origin": { + "Incident": 28 + } + }, { "player": 1, "Units": { @@ -412,15 +526,6 @@ } } ], - "log": [ - "A new game event has been triggered: Population Boom", - "Player1: Population Boom: Base effect: Barbarians move, Barbarians move from B2 to C2: 2 infantry and 1 elephant, Player2 was selected to gain 1 settler.", - "Combat round 1", - "Barbarians: Combat: Attacking with 2 infantry and 1 elephant, Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value), 6 (infantry, no bonus) for combined combat value of 20 and gets 0 hits against defending units, Kill 4 settlers of Player1", - "Player1: Combat: Defending with 4 settlers, Roll 6 (infantry, no bonus) for combined combat value of 6 and gets 1 hits against attacking units, Combat modifiers: fortress added one extra die, fortress cancelled one hit", - "Barbarians: Choose Casualties: Remove 1 of their attacking units", - "Attacker wins" - ], "active_events": 1 } ] diff --git a/server/tests/test_games/incidents/barbarians_move.outcome1.json b/server/tests/test_games/incidents/barbarians_move.outcome1.json index d819ecdf..d01d6c13 100644 --- a/server/tests/test_games/incidents/barbarians_move.outcome1.json +++ b/server/tests/test_games/incidents/barbarians_move.outcome1.json @@ -313,12 +313,22 @@ "origin": { "Ability": "Free Advance" } + }, + { + "player": 0, + "Text": "triggers the event Population Boom", + "origin": { + "Advance": "Storage" + } + }, + { + "player": 0, + "Text": "Base effect: Barbarians move", + "origin": { + "Incident": 28 + } } ], - "log": [ - "A new game event has been triggered: Population Boom", - "Player1: Population Boom: Base effect: Barbarians move" - ], "active_events": 1 }, { @@ -331,6 +341,20 @@ }, "player": 1, "items": [ + { + "player": 1, + "Text": "Selected Barbarian Armies that may NOT move: A3", + "origin": { + "LeaderAbility": "Dictator" + } + }, + { + "player": 0, + "Text": "Barbarians move from B3 to B2: 2 infantry", + "origin": { + "Incident": 28 + } + }, { "player": 2, "Units": { @@ -344,6 +368,13 @@ "Incident": 28 } }, + { + "player": 0, + "Text": "Player2 was selected to gain 1 settler.", + "origin": { + "Incident": 28 + } + }, { "player": 1, "Units": { @@ -358,10 +389,6 @@ } } ], - "log": [ - "Player2: Dictator: Selected Barbarian Armies that may NOT move: A3", - "Player1: Population Boom: Barbarians move from B3 to B2: 2 infantry, Player2 was selected to gain 1 settler." - ], "active_events": 3 } ] diff --git a/server/tests/test_games/incidents/barbarians_recapture_city.outcome.json b/server/tests/test_games/incidents/barbarians_recapture_city.outcome.json index 68ff10ec..f79288cf 100644 --- a/server/tests/test_games/incidents/barbarians_recapture_city.outcome.json +++ b/server/tests/test_games/incidents/barbarians_recapture_city.outcome.json @@ -267,6 +267,92 @@ "Ability": "Move" } }, + { + "player": 0, + "CombatRound": { + "attackers": { + "elephants": 4 + }, + "defending_player": 2, + "defenders": { + "infantry": 3 + }, + "round": 1 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 0, + "CombatRoll": { + "rolls": [ + { + "value": 6, + "unit_type": "Infantry", + "bonus": false + }, + { + "value": 6, + "unit_type": "Infantry", + "bonus": false + }, + { + "value": 6, + "unit_type": "Infantry", + "bonus": false + }, + { + "value": 1, + "unit_type": { + "Leader": "Alexander" + }, + "bonus": false + } + ], + "combat_value": 19, + "hits": 3 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 2, + "CombatRoll": { + "rolls": [ + { + "value": 1, + "unit_type": { + "Leader": "Alexander" + }, + "bonus": false + }, + { + "value": 2, + "unit_type": "Cavalry", + "bonus": false + }, + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + } + ], + "combat_value": 10, + "hits": 2 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 0, + "Text": "Remove 2 of their attacking units", + "origin": { + "Ability": "Choose Casualties" + } + }, { "player": 0, "Units": { @@ -280,6 +366,13 @@ "Ability": "Combat" } }, + { + "player": 2, + "Text": "Remove all defending units", + "origin": { + "Ability": "Choose Casualties" + } + }, { "player": 2, "Units": { @@ -293,6 +386,13 @@ "Ability": "Combat" } }, + { + "player": 0, + "Text": "wins the battle", + "origin": { + "Ability": "Combat" + } + }, { "player": 2, "Structure": { @@ -341,14 +441,6 @@ "Ability": "Waste" } } - ], - "log": [ - "Combat round 1", - "Player1: Combat: Attacking with 4 elephants, Roll 6 (infantry, no bonus), 6 (infantry, no bonus), 6 (infantry, no bonus), 1 (leader, no bonus) for combined combat value of 19 and gets 3 hits against defending units", - "Barbarians: Combat: Defending with 3 infantry, Roll 1 (leader, no bonus), 2 (cavalry, no bonus), 6 (infantry, +1 combat value) for combined combat value of 10 and gets 2 hits against attacking units", - "Player1: Choose Casualties: Remove 2 of their attacking units", - "Barbarians: Choose Casualties: Remove all defending units", - "Attacker wins" ] } ] diff --git a/server/tests/test_games/incidents/barbarians_spawn.outcome1.json b/server/tests/test_games/incidents/barbarians_spawn.outcome1.json index effeef78..0250919e 100644 --- a/server/tests/test_games/incidents/barbarians_spawn.outcome1.json +++ b/server/tests/test_games/incidents/barbarians_spawn.outcome1.json @@ -292,6 +292,20 @@ "Ability": "Free Advance" } }, + { + "player": 0, + "Text": "triggers the event A good year", + "origin": { + "Advance": "Storage" + } + }, + { + "player": 0, + "Text": "Base effect: Barbarians spawn", + "origin": { + "Incident": 9 + } + }, { "player": 2, "Structure": { @@ -318,10 +332,6 @@ } } ], - "log": [ - "A new game event has been triggered: A good year", - "Player1: A good year: Base effect: Barbarians spawn" - ], "active_events": 1 }, { diff --git a/server/tests/test_games/incidents/civil_war/civil_war.outcome.json b/server/tests/test_games/incidents/civil_war/civil_war.outcome.json index 9da56db2..80183fd0 100644 --- a/server/tests/test_games/incidents/civil_war/civil_war.outcome.json +++ b/server/tests/test_games/incidents/civil_war/civil_war.outcome.json @@ -282,6 +282,13 @@ "Ability": "Advance" } }, + { + "player": 0, + "Text": "triggers the event Civil War", + "origin": { + "Advance": "Storage" + } + }, { "player": 0, "MoodChange": { @@ -305,9 +312,6 @@ "Incident": 36 } } - ], - "log": [ - "A new game event has been triggered: Civil War" ] } ] diff --git a/server/tests/test_games/incidents/civil_war/envoy.outcome.json b/server/tests/test_games/incidents/civil_war/envoy.outcome.json index ac0e4529..75e8ee5e 100644 --- a/server/tests/test_games/incidents/civil_war/envoy.outcome.json +++ b/server/tests/test_games/incidents/civil_war/envoy.outcome.json @@ -282,6 +282,34 @@ "Ability": "Advance" } }, + { + "player": 0, + "Text": "triggers the event Envoy", + "origin": { + "Advance": "Storage" + } + }, + { + "player": 0, + "Text": "Base effect: Barbarians move", + "origin": { + "Incident": 40 + } + }, + { + "player": 0, + "Text": "Barbarians cannot move - will try to spawn a new city instead", + "origin": { + "Incident": 40 + } + }, + { + "player": 0, + "Text": "Barbarians cannot spawn a new city", + "origin": { + "Incident": 40 + } + }, { "player": 0, "Resources": { @@ -295,6 +323,13 @@ "Incident": 40 } }, + { + "player": 0, + "Text": "Pyramids is now available to be taken by anyone", + "origin": { + "Incident": 40 + } + }, { "player": 1, "Resources": { @@ -307,10 +342,6 @@ "Incident": 40 } } - ], - "log": [ - "A new game event has been triggered: Envoy", - "Player1: Envoy: Base effect: Barbarians move, Barbarians cannot move - will try to spawn a new city instead, Barbarians cannot spawn a new city, Pyramids is now available to be taken by anyone" ] } ] diff --git a/server/tests/test_games/incidents/civil_war/envoy.outcome1.json b/server/tests/test_games/incidents/civil_war/envoy.outcome1.json index c7bb4ded..13806d05 100644 --- a/server/tests/test_games/incidents/civil_war/envoy.outcome1.json +++ b/server/tests/test_games/incidents/civil_war/envoy.outcome1.json @@ -306,6 +306,34 @@ "Ability": "Advance" } }, + { + "player": 0, + "Text": "triggers the event Envoy", + "origin": { + "Advance": "Storage" + } + }, + { + "player": 0, + "Text": "Base effect: Barbarians move", + "origin": { + "Incident": 40 + } + }, + { + "player": 0, + "Text": "Barbarians cannot move - will try to spawn a new city instead", + "origin": { + "Incident": 40 + } + }, + { + "player": 0, + "Text": "Barbarians cannot spawn a new city", + "origin": { + "Incident": 40 + } + }, { "player": 0, "Resources": { @@ -319,6 +347,13 @@ "Incident": 40 } }, + { + "player": 0, + "Text": "Pyramids is now available to be taken by anyone", + "origin": { + "Incident": 40 + } + }, { "player": 1, "Resources": { @@ -331,10 +366,6 @@ "Incident": 40 } } - ], - "log": [ - "A new game event has been triggered: Envoy", - "Player1: Envoy: Base effect: Barbarians move, Barbarians cannot move - will try to spawn a new city instead, Barbarians cannot spawn a new city, Pyramids is now available to be taken by anyone" ] }, { diff --git a/server/tests/test_games/incidents/civil_war/envoy.outcome2.json b/server/tests/test_games/incidents/civil_war/envoy.outcome2.json index 09961bff..5e9b4a76 100644 --- a/server/tests/test_games/incidents/civil_war/envoy.outcome2.json +++ b/server/tests/test_games/incidents/civil_war/envoy.outcome2.json @@ -286,6 +286,34 @@ "Ability": "Advance" } }, + { + "player": 0, + "Text": "triggers the event Envoy", + "origin": { + "Advance": "Storage" + } + }, + { + "player": 0, + "Text": "Base effect: Barbarians move", + "origin": { + "Incident": 40 + } + }, + { + "player": 0, + "Text": "Barbarians cannot move - will try to spawn a new city instead", + "origin": { + "Incident": 40 + } + }, + { + "player": 0, + "Text": "Barbarians cannot spawn a new city", + "origin": { + "Incident": 40 + } + }, { "player": 0, "Resources": { @@ -299,6 +327,13 @@ "Incident": 40 } }, + { + "player": 0, + "Text": "Pyramids is now available to be taken by anyone", + "origin": { + "Incident": 40 + } + }, { "player": 1, "Resources": { @@ -311,10 +346,6 @@ "Incident": 40 } } - ], - "log": [ - "A new game event has been triggered: Envoy", - "Player1: Envoy: Base effect: Barbarians move, Barbarians cannot move - will try to spawn a new city instead, Barbarians cannot spawn a new city, Pyramids is now available to be taken by anyone" ] }, { diff --git a/server/tests/test_games/incidents/civil_war/migration.outcome.json b/server/tests/test_games/incidents/civil_war/migration.outcome.json index 92d953ac..0004d122 100644 --- a/server/tests/test_games/incidents/civil_war/migration.outcome.json +++ b/server/tests/test_games/incidents/civil_war/migration.outcome.json @@ -271,6 +271,13 @@ "Ability": "Advance" } }, + { + "player": 0, + "Text": "triggers the event Migration", + "origin": { + "Advance": "Storage" + } + }, { "player": 0, "Resources": { @@ -283,6 +290,13 @@ "Ability": "Gold deposits" } }, + { + "player": 0, + "Text": "Player2 was selected to gain 1 settler.", + "origin": { + "Incident": 34 + } + }, { "player": 0, "MoodChange": { @@ -306,10 +320,6 @@ "Incident": 34 } } - ], - "log": [ - "A new game event has been triggered: Migration", - "Player1: Migration: Player2 was selected to gain 1 settler." ] } ] diff --git a/server/tests/test_games/incidents/civil_war/revolution.outcome3.json b/server/tests/test_games/incidents/civil_war/revolution.outcome3.json index b891cdd4..7e8e3936 100644 --- a/server/tests/test_games/incidents/civil_war/revolution.outcome3.json +++ b/server/tests/test_games/incidents/civil_war/revolution.outcome3.json @@ -282,6 +282,13 @@ "Ability": "Advance" } }, + { + "player": 0, + "Text": "triggers the event Revolution", + "origin": { + "Advance": "Storage" + } + }, { "player": 0, "Resources": { @@ -294,9 +301,6 @@ "Ability": "Gold deposits" } } - ], - "log": [ - "A new game event has been triggered: Revolution" ] }, { @@ -333,6 +337,13 @@ }, "player": 0, "items": [ + { + "player": 0, + "Text": "Declined to kill units", + "origin": { + "Incident": 38 + } + }, { "player": 0, "Action": { @@ -343,9 +354,6 @@ } } ], - "log": [ - "Player1: Revolution: Declined to kill units" - ], "active_events": 1 }, { @@ -359,6 +367,20 @@ }, "player": 0, "items": [ + { + "player": 0, + "Text": "Democracy changed their government from Player1 to Theocracy", + "origin": { + "Incident": 38 + } + }, + { + "player": 0, + "Text": "Additional advances: none", + "origin": { + "Incident": 38 + } + }, { "player": 0, "Advance": { @@ -370,6 +392,20 @@ "Incident": 38 } }, + { + "player": 0, + "Text": "Ideas limit reduced to 2", + "origin": { + "Advance": "Dogma" + } + }, + { + "player": 0, + "Text": "Unlock Provinces", + "origin": { + "Incident": 38 + } + }, { "player": 0, "Advance": { @@ -394,10 +430,6 @@ } } ], - "log": [ - "Player1: Revolution: Democracy changed their government from Player1 to Theocracy, Additional advances: none, Unlock Provinces", - "Player1: Dogma: Ideas limit reduced to 2" - ], "active_events": 1 } ] diff --git a/server/tests/test_games/incidents/civil_war/uprising.outcome.json b/server/tests/test_games/incidents/civil_war/uprising.outcome.json index d8c1a7f5..eb217e6a 100644 --- a/server/tests/test_games/incidents/civil_war/uprising.outcome.json +++ b/server/tests/test_games/incidents/civil_war/uprising.outcome.json @@ -5,6 +5,9 @@ "event_type": { "Incident": { "incident_id": 39, + "cause": { + "Advance": "Storage" + }, "active_player": 0 } }, @@ -347,10 +350,14 @@ "origin": { "Ability": "Advance" } + }, + { + "player": 0, + "Text": "triggers the event Uprising", + "origin": { + "Advance": "Storage" + } } - ], - "log": [ - "A new game event has been triggered: Uprising" ] } ] diff --git a/server/tests/test_games/incidents/civil_war/uprising.outcome1.json b/server/tests/test_games/incidents/civil_war/uprising.outcome1.json index de097189..e30a210c 100644 --- a/server/tests/test_games/incidents/civil_war/uprising.outcome1.json +++ b/server/tests/test_games/incidents/civil_war/uprising.outcome1.json @@ -295,10 +295,14 @@ "origin": { "Ability": "Advance" } + }, + { + "player": 0, + "Text": "triggers the event Uprising", + "origin": { + "Advance": "Storage" + } } - ], - "log": [ - "A new game event has been triggered: Uprising" ] }, { @@ -326,11 +330,15 @@ "origin": { "Incident": 39 } + }, + { + "player": 0, + "Text": "Gain 1 victory point", + "origin": { + "Incident": 39 + } } ], - "log": [ - "Player1: Uprising: Gain 1 victory point" - ], "active_events": 1 } ] diff --git a/server/tests/test_games/incidents/earthquake/earthquake.outcome3.json b/server/tests/test_games/incidents/earthquake/earthquake.outcome3.json index 1281a1b2..09005f11 100644 --- a/server/tests/test_games/incidents/earthquake/earthquake.outcome3.json +++ b/server/tests/test_games/incidents/earthquake/earthquake.outcome3.json @@ -294,10 +294,14 @@ "origin": { "Ability": "Advance" } + }, + { + "player": 0, + "Text": "triggers the event Heavy Earthquake", + "origin": { + "Advance": "Storage" + } } - ], - "log": [ - "A new game event has been triggered: Heavy Earthquake" ] }, { @@ -339,6 +343,13 @@ "Incident": 31 } }, + { + "player": 0, + "Text": "Gain 2 points for the Fortress at C2", + "origin": { + "Incident": 31 + } + }, { "player": 0, "Structure": { @@ -352,11 +363,22 @@ "origin": { "Incident": 31 } + }, + { + "player": 0, + "Text": "Gain 2 points for the Great Gardens at C2", + "origin": { + "Incident": 31 + } + }, + { + "player": 0, + "Text": "Gain 2 points for the city center at B2", + "origin": { + "Incident": 31 + } } ], - "log": [ - "Player1: Heavy Earthquake: Gain 2 points for the Fortress at C2, Gain 2 points for the Great Gardens at C2, Gain 2 points for the city center at B2" - ], "active_events": 1 }, { @@ -382,11 +404,15 @@ "origin": { "Advance": "Myths" } + }, + { + "player": 0, + "Text": "Avoid mood change", + "origin": { + "Advance": "Myths" + } } ], - "log": [ - "Player1: Myths: Avoid mood change" - ], "active_events": 1 }, { @@ -425,12 +451,29 @@ "origin": { "Incident": 31 } + }, + { + "player": 0, + "Text": "Gain 2 points for the Fortress at A1", + "origin": { + "Incident": 31 + } + }, + { + "player": 1, + "Text": "Gain 2 points for the city center at A1", + "origin": { + "Incident": 31 + } + }, + { + "player": 1, + "Text": "Gain 2 points for the city center at A3", + "origin": { + "Incident": 31 + } } ], - "log": [ - "Player1: Heavy Earthquake: Gain 2 points for the Fortress at A1", - "Player2: Heavy Earthquake: Gain 2 points for the city center at A1, Gain 2 points for the city center at A3" - ], "active_events": 1 } ] diff --git a/server/tests/test_games/incidents/earthquake/flood.outcome.json b/server/tests/test_games/incidents/earthquake/flood.outcome.json index ec4ad6d1..9c8adee0 100644 --- a/server/tests/test_games/incidents/earthquake/flood.outcome.json +++ b/server/tests/test_games/incidents/earthquake/flood.outcome.json @@ -5,6 +5,9 @@ "event_type": { "Incident": { "incident_id": 33, + "cause": { + "Advance": "Storage" + }, "active_player": 0 } }, @@ -318,10 +321,14 @@ "origin": { "Ability": "Advance" } + }, + { + "player": 0, + "Text": "triggers the event Heavy Flood", + "origin": { + "Advance": "Storage" + } } - ], - "log": [ - "A new game event has been triggered: Heavy Flood" ] } ] diff --git a/server/tests/test_games/incidents/earthquake/flood.outcome1.json b/server/tests/test_games/incidents/earthquake/flood.outcome1.json index 6be98326..7fba7b29 100644 --- a/server/tests/test_games/incidents/earthquake/flood.outcome1.json +++ b/server/tests/test_games/incidents/earthquake/flood.outcome1.json @@ -5,6 +5,9 @@ "event_type": { "Incident": { "incident_id": 33, + "cause": { + "Advance": "Storage" + }, "active_player": 0 } }, @@ -320,10 +323,14 @@ "origin": { "Ability": "Advance" } + }, + { + "player": 0, + "Text": "triggers the event Heavy Flood", + "origin": { + "Advance": "Storage" + } } - ], - "log": [ - "A new game event has been triggered: Heavy Flood" ] }, { diff --git a/server/tests/test_games/incidents/earthquake/flood.outcome2.json b/server/tests/test_games/incidents/earthquake/flood.outcome2.json index 1b042804..a03a11d3 100644 --- a/server/tests/test_games/incidents/earthquake/flood.outcome2.json +++ b/server/tests/test_games/incidents/earthquake/flood.outcome2.json @@ -286,10 +286,14 @@ "origin": { "Ability": "Advance" } + }, + { + "player": 0, + "Text": "triggers the event Heavy Flood", + "origin": { + "Advance": "Storage" + } } - ], - "log": [ - "A new game event has been triggered: Heavy Flood" ] }, { diff --git a/server/tests/test_games/incidents/earthquake/volcano.outcome.json b/server/tests/test_games/incidents/earthquake/volcano.outcome.json index 7a8a98c0..e5d05480 100644 --- a/server/tests/test_games/incidents/earthquake/volcano.outcome.json +++ b/server/tests/test_games/incidents/earthquake/volcano.outcome.json @@ -5,6 +5,9 @@ "event_type": { "Incident": { "incident_id": 29, + "cause": { + "Advance": "Storage" + }, "active_player": 0 } }, @@ -296,10 +299,14 @@ "origin": { "Ability": "Advance" } + }, + { + "player": 0, + "Text": "triggers the event Vulcan", + "origin": { + "Advance": "Storage" + } } - ], - "log": [ - "A new game event has been triggered: Vulcan" ] } ] diff --git a/server/tests/test_games/incidents/earthquake/volcano.outcome1.json b/server/tests/test_games/incidents/earthquake/volcano.outcome1.json index 85b47e09..5bae9ab2 100644 --- a/server/tests/test_games/incidents/earthquake/volcano.outcome1.json +++ b/server/tests/test_games/incidents/earthquake/volcano.outcome1.json @@ -232,10 +232,14 @@ "origin": { "Ability": "Advance" } + }, + { + "player": 0, + "Text": "triggers the event Vulcan", + "origin": { + "Advance": "Storage" + } } - ], - "log": [ - "A new game event has been triggered: Vulcan" ] }, { @@ -248,6 +252,13 @@ }, "player": 0, "items": [ + { + "player": 0, + "Text": "Selected city C2 to be destroyed", + "origin": { + "Incident": 29 + } + }, { "player": 0, "Structure": { @@ -262,6 +273,13 @@ "Incident": 29 } }, + { + "player": 0, + "Text": "Gain 2 points for the Fortress at C2", + "origin": { + "Incident": 29 + } + }, { "player": 0, "Structure": { @@ -276,6 +294,13 @@ "Incident": 29 } }, + { + "player": 1, + "Text": "Gain 2 points for the Temple at C2", + "origin": { + "Incident": 29 + } + }, { "player": 0, "Structure": { @@ -290,6 +315,20 @@ "Incident": 29 } }, + { + "player": 0, + "Text": "Gain 0 points for the Pyramids at C2", + "origin": { + "Incident": 29 + } + }, + { + "player": 0, + "Text": "Gain 2 points for the city center at C2", + "origin": { + "Incident": 29 + } + }, { "player": 0, "Units": { @@ -307,10 +346,6 @@ } } ], - "log": [ - "Player1: Vulcan: Selected city C2 to be destroyed, Gain 2 points for the Fortress at C2, Gain 0 points for the Pyramids at C2, Gain 2 points for the city center at C2", - "Player2: Vulcan: Gain 2 points for the Temple at C2" - ], "active_events": 1 } ] diff --git a/server/tests/test_games/incidents/exhausted_land.outcome.json b/server/tests/test_games/incidents/exhausted_land.outcome.json index c67123a7..20ac2e37 100644 --- a/server/tests/test_games/incidents/exhausted_land.outcome.json +++ b/server/tests/test_games/incidents/exhausted_land.outcome.json @@ -12,6 +12,9 @@ "event_type": { "Incident": { "incident_id": 13, + "cause": { + "Advance": "Storage" + }, "active_player": 0 } }, @@ -274,11 +277,15 @@ "origin": { "Ability": "Free Advance" } + }, + { + "player": 0, + "Text": "triggers the event An awesome year", + "origin": { + "Advance": "Storage" + } } ], - "log": [ - "A new game event has been triggered: An awesome year" - ], "active_events": 1 } ] diff --git a/server/tests/test_games/incidents/exhausted_land.outcome1.json b/server/tests/test_games/incidents/exhausted_land.outcome1.json index 1d9ecf3c..642dcfe0 100644 --- a/server/tests/test_games/incidents/exhausted_land.outcome1.json +++ b/server/tests/test_games/incidents/exhausted_land.outcome1.json @@ -275,11 +275,15 @@ "origin": { "Ability": "Free Advance" } + }, + { + "player": 0, + "Text": "triggers the event An awesome year", + "origin": { + "Advance": "Storage" + } } ], - "log": [ - "A new game event has been triggered: An awesome year" - ], "active_events": 1 }, { @@ -292,6 +296,13 @@ }, "player": 0, "items": [ + { + "player": 0, + "Text": "Exhausted the land in position B2", + "origin": { + "Incident": 13 + } + }, { "player": 0, "Resources": { @@ -329,9 +340,6 @@ } } ], - "log": [ - "Player1: An awesome year: Exhausted the land in position B2" - ], "active_events": 2 } ] diff --git a/server/tests/test_games/incidents/famine/epidemics.outcome.json b/server/tests/test_games/incidents/famine/epidemics.outcome.json index f15061b0..08404fc6 100644 --- a/server/tests/test_games/incidents/famine/epidemics.outcome.json +++ b/server/tests/test_games/incidents/famine/epidemics.outcome.json @@ -5,6 +5,9 @@ "event_type": { "Incident": { "incident_id": 2, + "cause": { + "Advance": "Storage" + }, "active_player": 0 } }, @@ -300,10 +303,14 @@ "origin": { "Ability": "Advance" } + }, + { + "player": 0, + "Text": "triggers the event Epidemics", + "origin": { + "Advance": "Storage" + } } - ], - "log": [ - "A new game event has been triggered: Epidemics" ] } ] diff --git a/server/tests/test_games/incidents/famine/epidemics.outcome1.json b/server/tests/test_games/incidents/famine/epidemics.outcome1.json index a04e33ba..666bde93 100644 --- a/server/tests/test_games/incidents/famine/epidemics.outcome1.json +++ b/server/tests/test_games/incidents/famine/epidemics.outcome1.json @@ -257,10 +257,14 @@ "origin": { "Ability": "Advance" } + }, + { + "player": 0, + "Text": "triggers the event Epidemics", + "origin": { + "Advance": "Storage" + } } - ], - "log": [ - "A new game event has been triggered: Epidemics" ] }, { diff --git a/server/tests/test_games/incidents/famine/famine.outcome.json b/server/tests/test_games/incidents/famine/famine.outcome.json index 3fde0919..2d987f47 100644 --- a/server/tests/test_games/incidents/famine/famine.outcome.json +++ b/server/tests/test_games/incidents/famine/famine.outcome.json @@ -267,6 +267,34 @@ "Ability": "Advance" } }, + { + "player": 0, + "Text": "triggers the event Severe famine", + "origin": { + "Advance": "Storage" + } + }, + { + "player": 0, + "Text": "Base effect: Barbarians move", + "origin": { + "Incident": 7 + } + }, + { + "player": 0, + "Text": "Barbarians cannot move - will try to spawn a new city instead", + "origin": { + "Incident": 7 + } + }, + { + "player": 0, + "Text": "Barbarians cannot spawn a new city", + "origin": { + "Incident": 7 + } + }, { "player": 0, "Resources": { @@ -279,6 +307,13 @@ "Incident": 7 } }, + { + "player": 0, + "Text": "Lost 1 food", + "origin": { + "Incident": 7 + } + }, { "player": 0, "MoodChange": { @@ -289,10 +324,6 @@ "Incident": 7 } } - ], - "log": [ - "A new game event has been triggered: Severe famine", - "Player1: Severe famine: Base effect: Barbarians move, Barbarians cannot move - will try to spawn a new city instead, Barbarians cannot spawn a new city, Lost 1 food" ] } ] diff --git a/server/tests/test_games/incidents/famine/famine_protected.outcome.json b/server/tests/test_games/incidents/famine/famine_protected.outcome.json index 2248f658..202d838d 100644 --- a/server/tests/test_games/incidents/famine/famine_protected.outcome.json +++ b/server/tests/test_games/incidents/famine/famine_protected.outcome.json @@ -268,11 +268,35 @@ "origin": { "Ability": "Advance" } + }, + { + "player": 0, + "Text": "triggers the event Severe famine", + "origin": { + "Advance": "Storage" + } + }, + { + "player": 0, + "Text": "Base effect: Barbarians move", + "origin": { + "Incident": 7 + } + }, + { + "player": 0, + "Text": "Barbarians cannot move - will try to spawn a new city instead", + "origin": { + "Incident": 7 + } + }, + { + "player": 0, + "Text": "Barbarians cannot spawn a new city", + "origin": { + "Incident": 7 + } } - ], - "log": [ - "A new game event has been triggered: Severe famine", - "Player1: Severe famine: Base effect: Barbarians move, Barbarians cannot move - will try to spawn a new city instead, Barbarians cannot spawn a new city" ] } ] diff --git a/server/tests/test_games/incidents/famine/pestilence.outcome.json b/server/tests/test_games/incidents/famine/pestilence.outcome.json index 395b3713..69d478d1 100644 --- a/server/tests/test_games/incidents/famine/pestilence.outcome.json +++ b/server/tests/test_games/incidents/famine/pestilence.outcome.json @@ -5,6 +5,9 @@ "event_type": { "Incident": { "incident_id": 1, + "cause": { + "Advance": "Storage" + }, "active_player": 0 } }, @@ -320,10 +323,14 @@ "origin": { "Ability": "Advance" } + }, + { + "player": 0, + "Text": "triggers the event Pestilence", + "origin": { + "Advance": "Storage" + } } - ], - "log": [ - "A new game event has been triggered: Pestilence" ] } ] diff --git a/server/tests/test_games/incidents/famine/pestilence.outcome1.json b/server/tests/test_games/incidents/famine/pestilence.outcome1.json index 69d4358a..c45de321 100644 --- a/server/tests/test_games/incidents/famine/pestilence.outcome1.json +++ b/server/tests/test_games/incidents/famine/pestilence.outcome1.json @@ -5,6 +5,9 @@ "event_type": { "Incident": { "incident_id": 1, + "cause": { + "Advance": "Storage" + }, "active_player": 0, "myths_payment": 1 } @@ -306,10 +309,14 @@ "origin": { "Ability": "Advance" } + }, + { + "player": 0, + "Text": "triggers the event Pestilence", + "origin": { + "Advance": "Storage" + } } - ], - "log": [ - "A new game event has been triggered: Pestilence" ] }, { @@ -335,11 +342,15 @@ "origin": { "Advance": "Myths" } + }, + { + "player": 0, + "Text": "Avoid mood change", + "origin": { + "Advance": "Myths" + } } ], - "log": [ - "Player1: Myths: Avoid mood change" - ], "active_events": 1 } ] diff --git a/server/tests/test_games/incidents/famine/pestilence.outcome2.json b/server/tests/test_games/incidents/famine/pestilence.outcome2.json index 0e9fa088..d02df715 100644 --- a/server/tests/test_games/incidents/famine/pestilence.outcome2.json +++ b/server/tests/test_games/incidents/famine/pestilence.outcome2.json @@ -5,6 +5,9 @@ "event_type": { "Incident": { "incident_id": 1, + "cause": { + "Advance": "Storage" + }, "active_player": 0 } }, @@ -323,10 +326,14 @@ "origin": { "Ability": "Advance" } + }, + { + "player": 0, + "Text": "triggers the event Pestilence", + "origin": { + "Advance": "Storage" + } } - ], - "log": [ - "A new game event has been triggered: Pestilence" ] }, { @@ -352,11 +359,15 @@ "origin": { "Advance": "Myths" } + }, + { + "player": 0, + "Text": "Avoid mood change", + "origin": { + "Advance": "Myths" + } } ], - "log": [ - "Player1: Myths: Avoid mood change" - ], "active_events": 1 }, { diff --git a/server/tests/test_games/incidents/famine/pestilence.outcome3.json b/server/tests/test_games/incidents/famine/pestilence.outcome3.json index 51c36513..d1e4df53 100644 --- a/server/tests/test_games/incidents/famine/pestilence.outcome3.json +++ b/server/tests/test_games/incidents/famine/pestilence.outcome3.json @@ -273,10 +273,14 @@ "origin": { "Ability": "Advance" } + }, + { + "player": 0, + "Text": "triggers the event Pestilence", + "origin": { + "Advance": "Storage" + } } - ], - "log": [ - "A new game event has been triggered: Pestilence" ] }, { @@ -302,11 +306,15 @@ "origin": { "Advance": "Myths" } + }, + { + "player": 0, + "Text": "Avoid mood change", + "origin": { + "Advance": "Myths" + } } ], - "log": [ - "Player1: Myths: Avoid mood change" - ], "active_events": 1 }, { @@ -355,11 +363,15 @@ "origin": { "Advance": "Myths" } + }, + { + "player": 1, + "Text": "Avoid mood change", + "origin": { + "Advance": "Myths" + } } ], - "log": [ - "Player2: Myths: Avoid mood change" - ], "active_events": 1 } ] diff --git a/server/tests/test_games/incidents/good_year/good_year.outcome1.json b/server/tests/test_games/incidents/good_year/good_year.outcome1.json index 115c2dea..42c94393 100644 --- a/server/tests/test_games/incidents/good_year/good_year.outcome1.json +++ b/server/tests/test_games/incidents/good_year/good_year.outcome1.json @@ -292,6 +292,20 @@ "Ability": "Free Advance" } }, + { + "player": 0, + "Text": "triggers the event A good year", + "origin": { + "Advance": "Storage" + } + }, + { + "player": 0, + "Text": "Base effect: Barbarians spawn", + "origin": { + "Incident": 11 + } + }, { "player": 2, "Structure": { @@ -318,10 +332,6 @@ } } ], - "log": [ - "A new game event has been triggered: A good year", - "Player1: A good year: Base effect: Barbarians spawn" - ], "active_events": 1 }, { diff --git a/server/tests/test_games/incidents/good_year/successful_year.outcome.json b/server/tests/test_games/incidents/good_year/successful_year.outcome.json index 078cefcc..5f6aa57a 100644 --- a/server/tests/test_games/incidents/good_year/successful_year.outcome.json +++ b/server/tests/test_games/incidents/good_year/successful_year.outcome.json @@ -279,6 +279,27 @@ "Ability": "Free Advance" } }, + { + "player": 0, + "Text": "triggers the event A successful year", + "origin": { + "Advance": "Storage" + } + }, + { + "player": 0, + "Text": "Base effect: Pirates spawn", + "origin": { + "Incident": 54 + } + }, + { + "player": 0, + "Text": "No valid positions for Pirate Ship", + "origin": { + "Incident": 54 + } + }, { "player": 1, "Resources": { @@ -292,10 +313,6 @@ } } ], - "log": [ - "A new game event has been triggered: A successful year", - "Player1: A successful year: Base effect: Pirates spawn, No valid positions for Pirate Ship" - ], "active_events": 1 } ] diff --git a/server/tests/test_games/incidents/great_persons/great_architect.outcome4.json b/server/tests/test_games/incidents/great_persons/great_architect.outcome4.json index f4ce23c4..3c7a41ae 100644 --- a/server/tests/test_games/incidents/great_persons/great_architect.outcome4.json +++ b/server/tests/test_games/incidents/great_persons/great_architect.outcome4.json @@ -270,11 +270,28 @@ "origin": { "Ability": "Advance" } + }, + { + "player": 0, + "Text": "triggers the event Great Architect", + "origin": { + "Advance": "Storage" + } + }, + { + "player": 0, + "Text": "Base effect: Pirates spawn", + "origin": { + "Incident": 55 + } + }, + { + "player": 0, + "Text": "No valid positions for Pirate Ship", + "origin": { + "Incident": 55 + } } - ], - "log": [ - "A new game event has been triggered: Great Architect", - "Player1: Great Architect: Base effect: Pirates spawn, No valid positions for Pirate Ship" ] }, { @@ -345,9 +362,6 @@ "Ability": "Action Card" } } - ], - "log": [ - "Player1: Build Wonder: Play the wonder card Pyramids" ] }, { @@ -359,9 +373,6 @@ } }, "player": 0, - "log": [ - "Player1: Build Wonder: Decided to build Pyramids in city A1" - ], "active_events": 2 }, { diff --git a/server/tests/test_games/incidents/great_persons/great_artist.outcome.json b/server/tests/test_games/incidents/great_persons/great_artist.outcome.json index 5dee195c..7b9e1076 100644 --- a/server/tests/test_games/incidents/great_persons/great_artist.outcome.json +++ b/server/tests/test_games/incidents/great_persons/great_artist.outcome.json @@ -5,6 +5,9 @@ "event_type": { "Incident": { "incident_id": 19, + "cause": { + "Advance": "Storage" + }, "active_player": 0, "barbarians": {} } @@ -315,11 +318,42 @@ "origin": { "Ability": "Advance" } + }, + { + "player": 0, + "Text": "triggers the event Great Artist", + "origin": { + "Advance": "Storage" + } + }, + { + "player": 0, + "Text": "Base effect: Barbarians move", + "origin": { + "Incident": 19 + } + }, + { + "player": 0, + "Text": "Barbarians cannot move - will try to spawn a new city instead", + "origin": { + "Incident": 19 + } + }, + { + "player": 0, + "Text": "Barbarians cannot spawn a new city", + "origin": { + "Incident": 19 + } + }, + { + "player": 0, + "Text": "Cannot afford to buy Great Artist", + "origin": { + "Incident": 19 + } } - ], - "log": [ - "A new game event has been triggered: Great Artist", - "Player1: Great Artist: Base effect: Barbarians move, Barbarians cannot move - will try to spawn a new city instead, Barbarians cannot spawn a new city, Cannot afford to buy Great Artist" ] } ] diff --git a/server/tests/test_games/incidents/great_persons/great_artist.outcome1.json b/server/tests/test_games/incidents/great_persons/great_artist.outcome1.json index 02cb99cc..f83e829e 100644 --- a/server/tests/test_games/incidents/great_persons/great_artist.outcome1.json +++ b/server/tests/test_games/incidents/great_persons/great_artist.outcome1.json @@ -280,11 +280,42 @@ "origin": { "Ability": "Advance" } + }, + { + "player": 0, + "Text": "triggers the event Great Artist", + "origin": { + "Advance": "Storage" + } + }, + { + "player": 0, + "Text": "Base effect: Barbarians move", + "origin": { + "Incident": 19 + } + }, + { + "player": 0, + "Text": "Barbarians cannot move - will try to spawn a new city instead", + "origin": { + "Incident": 19 + } + }, + { + "player": 0, + "Text": "Barbarians cannot spawn a new city", + "origin": { + "Incident": 19 + } + }, + { + "player": 0, + "Text": "Cannot afford to buy Great Artist", + "origin": { + "Incident": 19 + } } - ], - "log": [ - "A new game event has been triggered: Great Artist", - "Player1: Great Artist: Base effect: Barbarians move, Barbarians cannot move - will try to spawn a new city instead, Barbarians cannot spawn a new city, Cannot afford to buy Great Artist" ] }, { diff --git a/server/tests/test_games/incidents/great_persons/great_artist.outcome2.json b/server/tests/test_games/incidents/great_persons/great_artist.outcome2.json index d2cc7eb5..cd2f0d69 100644 --- a/server/tests/test_games/incidents/great_persons/great_artist.outcome2.json +++ b/server/tests/test_games/incidents/great_persons/great_artist.outcome2.json @@ -277,11 +277,42 @@ "origin": { "Ability": "Advance" } + }, + { + "player": 0, + "Text": "triggers the event Great Artist", + "origin": { + "Advance": "Storage" + } + }, + { + "player": 0, + "Text": "Base effect: Barbarians move", + "origin": { + "Incident": 19 + } + }, + { + "player": 0, + "Text": "Barbarians cannot move - will try to spawn a new city instead", + "origin": { + "Incident": 19 + } + }, + { + "player": 0, + "Text": "Barbarians cannot spawn a new city", + "origin": { + "Incident": 19 + } + }, + { + "player": 0, + "Text": "Cannot afford to buy Great Artist", + "origin": { + "Incident": 19 + } } - ], - "log": [ - "A new game event has been triggered: Great Artist", - "Player1: Great Artist: Base effect: Barbarians move, Barbarians cannot move - will try to spawn a new city instead, Barbarians cannot spawn a new city, Cannot afford to buy Great Artist" ] }, { diff --git a/server/tests/test_games/incidents/great_persons/great_artist.outcome3.json b/server/tests/test_games/incidents/great_persons/great_artist.outcome3.json index 3491d5bb..33afd739 100644 --- a/server/tests/test_games/incidents/great_persons/great_artist.outcome3.json +++ b/server/tests/test_games/incidents/great_persons/great_artist.outcome3.json @@ -275,11 +275,42 @@ "origin": { "Ability": "Advance" } + }, + { + "player": 0, + "Text": "triggers the event Great Artist", + "origin": { + "Advance": "Storage" + } + }, + { + "player": 0, + "Text": "Base effect: Barbarians move", + "origin": { + "Incident": 19 + } + }, + { + "player": 0, + "Text": "Barbarians cannot move - will try to spawn a new city instead", + "origin": { + "Incident": 19 + } + }, + { + "player": 0, + "Text": "Barbarians cannot spawn a new city", + "origin": { + "Incident": 19 + } + }, + { + "player": 0, + "Text": "Cannot afford to buy Great Artist", + "origin": { + "Incident": 19 + } } - ], - "log": [ - "A new game event has been triggered: Great Artist", - "Player1: Great Artist: Base effect: Barbarians move, Barbarians cannot move - will try to spawn a new city instead, Barbarians cannot spawn a new city, Cannot afford to buy Great Artist" ] }, { @@ -387,6 +418,13 @@ "Ability": "Action Card" } }, + { + "player": 1, + "Text": "Unlock Hellenistic Culture", + "origin": { + "CivilCard": 119 + } + }, { "player": 1, "Resources": { @@ -420,9 +458,6 @@ "CivilCard": 119 } } - ], - "log": [ - "Player2: Great Artist: Unlock Hellenistic Culture" ] } ] diff --git a/server/tests/test_games/incidents/great_persons/great_athlete.outcome4.json b/server/tests/test_games/incidents/great_persons/great_athlete.outcome4.json index cccf7b83..23122c5e 100644 --- a/server/tests/test_games/incidents/great_persons/great_athlete.outcome4.json +++ b/server/tests/test_games/incidents/great_persons/great_athlete.outcome4.json @@ -262,11 +262,28 @@ "origin": { "Ability": "Advance" } + }, + { + "player": 0, + "Text": "triggers the event Great Athlete", + "origin": { + "Advance": "Storage" + } + }, + { + "player": 0, + "Text": "Base effect: Pirates spawn", + "origin": { + "Incident": 56 + } + }, + { + "player": 0, + "Text": "No valid positions for Pirate Ship", + "origin": { + "Incident": 56 + } } - ], - "log": [ - "A new game event has been triggered: Great Athlete", - "Player1: Great Athlete: Base effect: Pirates spawn, No valid positions for Pirate Ship" ] }, { @@ -378,8 +395,14 @@ } }, "player": 0, - "log": [ - "Player1: Great Athlete: Decided to convert culture to mood tokens" + "items": [ + { + "player": 0, + "Text": "Decided to convert culture to mood tokens", + "origin": { + "CivilCard": 156 + } + } ], "active_events": 1 }, diff --git a/server/tests/test_games/incidents/great_persons/great_diplomat.outcome2.json b/server/tests/test_games/incidents/great_persons/great_diplomat.outcome2.json index 568fcd96..523fd20a 100644 --- a/server/tests/test_games/incidents/great_persons/great_diplomat.outcome2.json +++ b/server/tests/test_games/incidents/great_persons/great_diplomat.outcome2.json @@ -284,11 +284,35 @@ "origin": { "Ability": "Advance" } + }, + { + "player": 0, + "Text": "triggers the event Great Diplomat", + "origin": { + "Advance": "Storage" + } + }, + { + "player": 0, + "Text": "Base effect: Barbarians spawn", + "origin": { + "Incident": 57 + } + }, + { + "player": 0, + "Text": "Barbarians cannot spawn a new city", + "origin": { + "Incident": 57 + } + }, + { + "player": 0, + "Text": "Barbarians cannot reinforce", + "origin": { + "Incident": 57 + } } - ], - "log": [ - "A new game event has been triggered: Great Diplomat", - "Player1: Great Diplomat: Base effect: Barbarians spawn, Barbarians cannot spawn a new city, Barbarians cannot reinforce" ] }, { @@ -329,11 +353,15 @@ "origin": { "Incident": 57 } + }, + { + "player": 0, + "Text": "Initiated diplomatic relations with Player2", + "origin": { + "Incident": 57 + } } ], - "log": [ - "Player1: Great Diplomat: Initiated diplomatic relations with Player2" - ], "active_events": 1 }, { @@ -419,6 +447,70 @@ } ] }, + { + "player": 0, + "CombatRound": { + "attackers": { + "infantry": 1 + }, + "defending_player": 1, + "defenders": { + "infantry": 1 + }, + "round": 1 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 0, + "Text": "Diplomatic relations with Player2 ended with a surprise attack.", + "origin": { + "Ability": "Diplomatic Relations" + } + }, + { + "player": 0, + "CombatRoll": { + "rolls": [ + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + } + ], + "combat_value": 7, + "hits": 1 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 1, + "CombatRoll": { + "rolls": [ + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + } + ], + "combat_value": 7, + "hits": 1 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 0, + "Text": "Remove all attacking units", + "origin": { + "Ability": "Choose Casualties" + } + }, { "player": 0, "Units": { @@ -432,6 +524,13 @@ "Ability": "Combat" } }, + { + "player": 1, + "Text": "Remove all defending units", + "origin": { + "Ability": "Choose Casualties" + } + }, { "player": 1, "Units": { @@ -444,16 +543,14 @@ "origin": { "Ability": "Combat" } + }, + { + "player": 0, + "Text": "ends the battle in a draw", + "origin": { + "Ability": "Combat" + } } - ], - "log": [ - "Combat round 1", - "Player1: Combat: Attacking with 1 infantry, Roll 6 (infantry, +1 combat value) for combined combat value of 7 and gets 1 hits against defending units", - "Player2: Combat: Defending with 1 infantry, Roll 6 (infantry, +1 combat value) for combined combat value of 7 and gets 1 hits against attacking units", - "Player1: Diplomatic Relations: Diplomatic relations with Player2 ended with a surprise attack.", - "Player1: Choose Casualties: Remove all attacking units", - "Player2: Choose Casualties: Remove all defending units", - "Battle ends in a draw" ] } ] diff --git a/server/tests/test_games/incidents/great_persons/great_engineer.outcome5.json b/server/tests/test_games/incidents/great_persons/great_engineer.outcome5.json index ef132f4f..07986d92 100644 --- a/server/tests/test_games/incidents/great_persons/great_engineer.outcome5.json +++ b/server/tests/test_games/incidents/great_persons/great_engineer.outcome5.json @@ -284,11 +284,35 @@ "origin": { "Ability": "Advance" } + }, + { + "player": 0, + "Text": "triggers the event Great Engineer", + "origin": { + "Advance": "Storage" + } + }, + { + "player": 0, + "Text": "Base effect: Barbarians move", + "origin": { + "Incident": 26 + } + }, + { + "player": 0, + "Text": "Barbarians cannot move - will try to spawn a new city instead", + "origin": { + "Incident": 26 + } + }, + { + "player": 0, + "Text": "Barbarians cannot spawn a new city", + "origin": { + "Incident": 26 + } } - ], - "log": [ - "A new game event has been triggered: Great Engineer", - "Player1: Great Engineer: Base effect: Barbarians move, Barbarians cannot move - will try to spawn a new city instead, Barbarians cannot spawn a new city" ] }, { @@ -393,6 +417,13 @@ "Advance": "Engineering" } }, + { + "player": 0, + "Text": "Unlock Aqueduct", + "origin": { + "CivilCard": 126 + } + }, { "player": 0, "Advance": { @@ -405,9 +436,6 @@ } } ], - "log": [ - "Player1: Great Engineer: Unlock Aqueduct" - ], "active_events": 1 }, { @@ -418,6 +446,13 @@ }, "player": 0, "items": [ + { + "player": 0, + "Text": "Great Engineer: You may build a building in a city without spending an action and without activating it.", + "origin": { + "CivilCard": 126 + } + }, { "player": 0, "Action": { @@ -428,9 +463,6 @@ } } ], - "log": [ - "Player1: Great Engineer: Great Engineer: You may build a building in a city without spending an action and without activating it." - ], "active_events": 1 }, { @@ -484,6 +516,13 @@ } ] }, + { + "player": 0, + "Text": "May replace resources with mood tokens", + "origin": { + "SpecialAdvance": "Captivi" + } + }, { "player": 0, "Structure": { @@ -498,9 +537,6 @@ "Ability": "Construct Building" } } - ], - "log": [ - "Player1: Captivi: May replace resources with mood tokens" ] } ] diff --git a/server/tests/test_games/incidents/great_persons/great_explorer.outcome6.json b/server/tests/test_games/incidents/great_persons/great_explorer.outcome6.json index f2238fe6..0f95ffb4 100644 --- a/server/tests/test_games/incidents/great_persons/great_explorer.outcome6.json +++ b/server/tests/test_games/incidents/great_persons/great_explorer.outcome6.json @@ -416,11 +416,21 @@ "origin": { "Ability": "Advance" } + }, + { + "player": 1, + "Text": "triggers the event Great Explorer", + "origin": { + "Advance": "Storage" + } + }, + { + "player": 1, + "Text": "Exhausted the land in position E8", + "origin": { + "Incident": 18 + } } - ], - "log": [ - "A new game event has been triggered: Great Explorer", - "Player2: Great Explorer: Exhausted the land in position E8" ] }, { @@ -534,8 +544,14 @@ } }, "player": 1, - "log": [ - "Player2: Great Explorer: Explored B6" + "items": [ + { + "player": 1, + "Text": "Explored B6", + "origin": { + "CivilCard": 118 + } + } ], "active_events": 1 }, @@ -547,6 +563,13 @@ }, "player": 1, "items": [ + { + "player": 1, + "Text": "Chose rotation 0", + "origin": { + "Ability": "Explore Resolution" + } + }, { "player": 1, "Explore": { @@ -574,9 +597,6 @@ } } ], - "log": [ - "Player2: Explore Resolution: Chose rotation 0" - ], "active_events": 2 }, { @@ -588,8 +608,14 @@ } }, "player": 1, - "log": [ - "Player2: Great Explorer: Decided to build a city A7" + "items": [ + { + "player": 1, + "Text": "Decided to build a city A7", + "origin": { + "CivilCard": 118 + } + } ], "active_events": 1 }, diff --git a/server/tests/test_games/incidents/great_persons/great_merchant.outcome3.json b/server/tests/test_games/incidents/great_persons/great_merchant.outcome3.json index 9ed02163..3ed274cb 100644 --- a/server/tests/test_games/incidents/great_persons/great_merchant.outcome3.json +++ b/server/tests/test_games/incidents/great_persons/great_merchant.outcome3.json @@ -280,11 +280,35 @@ "origin": { "Ability": "Advance" } + }, + { + "player": 0, + "Text": "triggers the event Great Merchant", + "origin": { + "Advance": "Storage" + } + }, + { + "player": 0, + "Text": "Base effect: Barbarians move", + "origin": { + "Incident": 25 + } + }, + { + "player": 0, + "Text": "Barbarians cannot move - will try to spawn a new city instead", + "origin": { + "Incident": 25 + } + }, + { + "player": 0, + "Text": "Barbarians cannot spawn a new city", + "origin": { + "Incident": 25 + } } - ], - "log": [ - "A new game event has been triggered: Great Merchant", - "Player1: Great Merchant: Base effect: Barbarians move, Barbarians cannot move - will try to spawn a new city instead, Barbarians cannot spawn a new city" ] }, { @@ -387,6 +411,20 @@ }, "player": 0, "items": [ + { + "player": 0, + "Text": "Player1 selected trade routes", + "origin": { + "CivilCard": 125 + } + }, + { + "player": 0, + "Text": "settler at C2 traded with city A3", + "origin": { + "CivilCard": 125 + } + }, { "player": 0, "Resources": { @@ -412,9 +450,6 @@ } } ], - "log": [ - "Player1: Great Merchant: Player1 selected trade routes, settler at C2 traded with city A3" - ], "active_events": 1 } ] diff --git a/server/tests/test_games/incidents/great_persons/great_prophet.outcome4.json b/server/tests/test_games/incidents/great_persons/great_prophet.outcome4.json index 9b621848..09531e51 100644 --- a/server/tests/test_games/incidents/great_persons/great_prophet.outcome4.json +++ b/server/tests/test_games/incidents/great_persons/great_prophet.outcome4.json @@ -336,11 +336,35 @@ "origin": { "Ability": "Advance" } + }, + { + "player": 0, + "Text": "triggers the event Great Prophet", + "origin": { + "Advance": "Storage" + } + }, + { + "player": 0, + "Text": "Base effect: Barbarians move", + "origin": { + "Incident": 20 + } + }, + { + "player": 0, + "Text": "Barbarians cannot move - will try to spawn a new city instead", + "origin": { + "Incident": 20 + } + }, + { + "player": 0, + "Text": "Barbarians cannot spawn a new city", + "origin": { + "Incident": 20 + } } - ], - "log": [ - "A new game event has been triggered: Great Prophet", - "Player1: Great Prophet: Base effect: Barbarians move, Barbarians cannot move - will try to spawn a new city instead, Barbarians cannot spawn a new city" ] }, { @@ -454,8 +478,14 @@ } }, "player": 0, - "log": [ - "Player1: Great Prophet: Decided to build a Temple at C1" + "items": [ + { + "player": 0, + "Text": "Decided to build a Temple at C1", + "origin": { + "CivilCard": 120 + } + } ], "active_events": 1 }, diff --git a/server/tests/test_games/incidents/great_persons/great_seer.outcome4.json b/server/tests/test_games/incidents/great_persons/great_seer.outcome4.json index cd802bdc..86fc7b8d 100644 --- a/server/tests/test_games/incidents/great_persons/great_seer.outcome4.json +++ b/server/tests/test_games/incidents/great_persons/great_seer.outcome4.json @@ -267,11 +267,28 @@ "origin": { "Ability": "Advance" } + }, + { + "player": 0, + "Text": "triggers the event Great Seer", + "origin": { + "Advance": "Storage" + } + }, + { + "player": 0, + "Text": "Base effect: Pirates spawn", + "origin": { + "Incident": 58 + } + }, + { + "player": 0, + "Text": "No valid positions for Pirate Ship", + "origin": { + "Incident": 58 + } } - ], - "log": [ - "A new game event has been triggered: Great Seer", - "Player1: Great Seer: Base effect: Pirates spawn, No valid positions for Pirate Ship" ] }, { diff --git a/server/tests/test_games/incidents/great_persons/great_warlord.outcome3.json b/server/tests/test_games/incidents/great_persons/great_warlord.outcome3.json index b49dc327..343aa024 100644 --- a/server/tests/test_games/incidents/great_persons/great_warlord.outcome3.json +++ b/server/tests/test_games/incidents/great_persons/great_warlord.outcome3.json @@ -423,11 +423,21 @@ "origin": { "Ability": "Advance" } + }, + { + "player": 1, + "Text": "triggers the event Great Warlord", + "origin": { + "Advance": "Storage" + } + }, + { + "player": 1, + "Text": "Exhausted the land in position E8", + "origin": { + "Incident": 24 + } } - ], - "log": [ - "A new game event has been triggered: Great Warlord", - "Player2: Great Warlord: Exhausted the land in position E8" ] }, { @@ -583,6 +593,66 @@ "Ability": "Move" } }, + { + "player": 1, + "CombatRound": { + "attackers": { + "infantry": 1 + }, + "defending_player": 0, + "defenders": { + "infantry": 1 + }, + "round": 1 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 1, + "CombatRoll": { + "rolls": [ + { + "value": 5, + "unit_type": "Cavalry", + "bonus": false + } + ], + "combat_value": 7, + "hits": 1, + "combat_modifiers": [ + "Player gets +2 combat value for Great Warlord" + ] + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 0, + "CombatRoll": { + "rolls": [ + { + "value": 2, + "unit_type": "Cavalry", + "bonus": false + } + ], + "combat_value": 2, + "hits": 0 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 0, + "Text": "Remove all defending units", + "origin": { + "Ability": "Choose Casualties" + } + }, { "player": 0, "Units": { @@ -595,14 +665,14 @@ "origin": { "Ability": "Combat" } + }, + { + "player": 1, + "Text": "wins the battle", + "origin": { + "Ability": "Combat" + } } - ], - "log": [ - "Combat round 1", - "Player2: Combat: Attacking with 1 infantry, Roll 5 (cavalry, no bonus) for combined combat value of 7 and gets 1 hits against defending units, Combat modifiers: Player gets +2 combat value for Great Warlord", - "Player1: Combat: Defending with 1 infantry, Roll 2 (cavalry, no bonus) for combined combat value of 2 and gets 0 hits against attacking units", - "Player1: Choose Casualties: Remove all defending units", - "Attacker wins" ] } ] diff --git a/server/tests/test_games/incidents/pandemics/black_death.outcome.json b/server/tests/test_games/incidents/pandemics/black_death.outcome.json index 36ff8f0d..f12075ef 100644 --- a/server/tests/test_games/incidents/pandemics/black_death.outcome.json +++ b/server/tests/test_games/incidents/pandemics/black_death.outcome.json @@ -5,6 +5,9 @@ "event_type": { "Incident": { "incident_id": 50, + "cause": { + "Advance": "Storage" + }, "active_player": 0 } }, @@ -318,10 +321,14 @@ "origin": { "Ability": "Advance" } + }, + { + "player": 0, + "Text": "triggers the event Black Death", + "origin": { + "Advance": "Storage" + } } - ], - "log": [ - "A new game event has been triggered: Black Death" ] } ] diff --git a/server/tests/test_games/incidents/pandemics/black_death.outcome1.json b/server/tests/test_games/incidents/pandemics/black_death.outcome1.json index febf3a38..8f58d536 100644 --- a/server/tests/test_games/incidents/pandemics/black_death.outcome1.json +++ b/server/tests/test_games/incidents/pandemics/black_death.outcome1.json @@ -285,10 +285,14 @@ "origin": { "Ability": "Advance" } + }, + { + "player": 0, + "Text": "triggers the event Black Death", + "origin": { + "Advance": "Storage" + } } - ], - "log": [ - "A new game event has been triggered: Black Death" ] }, { @@ -313,11 +317,15 @@ "origin": { "Incident": 50 } + }, + { + "player": 0, + "Text": "Gain 1 victory points", + "origin": { + "Incident": 50 + } } ], - "log": [ - "Player1: Black Death: Gain 1 victory points" - ], "active_events": 1 } ] diff --git a/server/tests/test_games/incidents/pandemics/drought.outcome.json b/server/tests/test_games/incidents/pandemics/drought.outcome.json index 8f6e3b02..10327855 100644 --- a/server/tests/test_games/incidents/pandemics/drought.outcome.json +++ b/server/tests/test_games/incidents/pandemics/drought.outcome.json @@ -271,6 +271,13 @@ "Ability": "Advance" } }, + { + "player": 0, + "Text": "triggers the event Famine: Draught", + "origin": { + "Advance": "Storage" + } + }, { "player": 0, "Resources": { @@ -282,11 +289,14 @@ "origin": { "Incident": 52 } + }, + { + "player": 0, + "Text": "Lost 2 food", + "origin": { + "Incident": 52 + } } - ], - "log": [ - "A new game event has been triggered: Famine: Draught", - "Player1: Famine: Draught: Lost 2 food" ] } ] diff --git a/server/tests/test_games/incidents/pandemics/fire.outcome.json b/server/tests/test_games/incidents/pandemics/fire.outcome.json index 4456883f..6943193c 100644 --- a/server/tests/test_games/incidents/pandemics/fire.outcome.json +++ b/server/tests/test_games/incidents/pandemics/fire.outcome.json @@ -5,6 +5,9 @@ "event_type": { "Incident": { "incident_id": 53, + "cause": { + "Advance": "Storage" + }, "active_player": 0 } }, @@ -305,6 +308,13 @@ "Ability": "Advance" } }, + { + "player": 0, + "Text": "triggers the event Fire", + "origin": { + "Advance": "Storage" + } + }, { "player": 0, "Resources": { @@ -317,9 +327,6 @@ "Ability": "Gold deposits" } } - ], - "log": [ - "A new game event has been triggered: Fire" ] } ] diff --git a/server/tests/test_games/incidents/pandemics/fire.outcome1.json b/server/tests/test_games/incidents/pandemics/fire.outcome1.json index 78b049d5..b1c6598e 100644 --- a/server/tests/test_games/incidents/pandemics/fire.outcome1.json +++ b/server/tests/test_games/incidents/pandemics/fire.outcome1.json @@ -277,6 +277,13 @@ "Ability": "Advance" } }, + { + "player": 0, + "Text": "triggers the event Fire", + "origin": { + "Advance": "Storage" + } + }, { "player": 0, "Resources": { @@ -289,9 +296,6 @@ "Ability": "Gold deposits" } } - ], - "log": [ - "A new game event has been triggered: Fire" ] }, { diff --git a/server/tests/test_games/incidents/pandemics/pandemics.outcome.json b/server/tests/test_games/incidents/pandemics/pandemics.outcome.json index 1e5a46aa..04d8d98f 100644 --- a/server/tests/test_games/incidents/pandemics/pandemics.outcome.json +++ b/server/tests/test_games/incidents/pandemics/pandemics.outcome.json @@ -5,6 +5,9 @@ "event_type": { "Incident": { "incident_id": 49, + "cause": { + "Advance": "Storage" + }, "active_player": 0, "barbarians": {} } @@ -322,11 +325,42 @@ "origin": { "Ability": "Advance" } + }, + { + "player": 0, + "Text": "triggers the event Pandemics", + "origin": { + "Advance": "Storage" + } + }, + { + "player": 0, + "Text": "Base effect: Barbarians move", + "origin": { + "Incident": 49 + } + }, + { + "player": 0, + "Text": "Barbarians cannot move - will try to spawn a new city instead", + "origin": { + "Incident": 49 + } + }, + { + "player": 0, + "Text": "Barbarians cannot spawn a new city", + "origin": { + "Incident": 49 + } + }, + { + "player": 0, + "Text": "Lose a total of 2 units, cards, and resources", + "origin": { + "Incident": 49 + } } - ], - "log": [ - "A new game event has been triggered: Pandemics", - "Player1: Pandemics: Base effect: Barbarians move, Barbarians cannot move - will try to spawn a new city instead, Barbarians cannot spawn a new city, Lose a total of 2 units, cards, and resources" ] } ] diff --git a/server/tests/test_games/incidents/pandemics/pandemics.outcome1.json b/server/tests/test_games/incidents/pandemics/pandemics.outcome1.json index eff2f265..4665ff86 100644 --- a/server/tests/test_games/incidents/pandemics/pandemics.outcome1.json +++ b/server/tests/test_games/incidents/pandemics/pandemics.outcome1.json @@ -5,6 +5,9 @@ "event_type": { "Incident": { "incident_id": 49, + "cause": { + "Advance": "Storage" + }, "active_player": 0, "barbarians": {}, "sacrifice": 1 @@ -313,11 +316,42 @@ "origin": { "Ability": "Advance" } + }, + { + "player": 0, + "Text": "triggers the event Pandemics", + "origin": { + "Advance": "Storage" + } + }, + { + "player": 0, + "Text": "Base effect: Barbarians move", + "origin": { + "Incident": 49 + } + }, + { + "player": 0, + "Text": "Barbarians cannot move - will try to spawn a new city instead", + "origin": { + "Incident": 49 + } + }, + { + "player": 0, + "Text": "Barbarians cannot spawn a new city", + "origin": { + "Incident": 49 + } + }, + { + "player": 0, + "Text": "Lose a total of 2 units, cards, and resources", + "origin": { + "Incident": 49 + } } - ], - "log": [ - "A new game event has been triggered: Pandemics", - "Player1: Pandemics: Base effect: Barbarians move, Barbarians cannot move - will try to spawn a new city instead, Barbarians cannot spawn a new city, Lose a total of 2 units, cards, and resources" ] }, { diff --git a/server/tests/test_games/incidents/pandemics/pandemics.outcome2.json b/server/tests/test_games/incidents/pandemics/pandemics.outcome2.json index 37413374..7e99de41 100644 --- a/server/tests/test_games/incidents/pandemics/pandemics.outcome2.json +++ b/server/tests/test_games/incidents/pandemics/pandemics.outcome2.json @@ -5,6 +5,9 @@ "event_type": { "Incident": { "incident_id": 49, + "cause": { + "Advance": "Storage" + }, "active_player": 0, "barbarians": {} } @@ -382,11 +385,42 @@ "origin": { "Ability": "Advance" } + }, + { + "player": 0, + "Text": "triggers the event Pandemics", + "origin": { + "Advance": "Storage" + } + }, + { + "player": 0, + "Text": "Base effect: Barbarians move", + "origin": { + "Incident": 49 + } + }, + { + "player": 0, + "Text": "Barbarians cannot move - will try to spawn a new city instead", + "origin": { + "Incident": 49 + } + }, + { + "player": 0, + "Text": "Barbarians cannot spawn a new city", + "origin": { + "Incident": 49 + } + }, + { + "player": 0, + "Text": "Lose a total of 2 units, cards, and resources", + "origin": { + "Incident": 49 + } } - ], - "log": [ - "A new game event has been triggered: Pandemics", - "Player1: Pandemics: Base effect: Barbarians move, Barbarians cannot move - will try to spawn a new city instead, Barbarians cannot spawn a new city, Lose a total of 2 units, cards, and resources" ] }, { @@ -441,11 +475,15 @@ "origin": { "Incident": 49 } + }, + { + "player": 1, + "Text": "Lose a total of 1 units, cards, and resources", + "origin": { + "Incident": 49 + } } ], - "log": [ - "Player2: Pandemics: Lose a total of 1 units, cards, and resources" - ], "active_events": 1 } ] diff --git a/server/tests/test_games/incidents/pandemics/pandemics.outcome3.json b/server/tests/test_games/incidents/pandemics/pandemics.outcome3.json index 05768e2d..131338ff 100644 --- a/server/tests/test_games/incidents/pandemics/pandemics.outcome3.json +++ b/server/tests/test_games/incidents/pandemics/pandemics.outcome3.json @@ -276,11 +276,42 @@ "origin": { "Ability": "Advance" } + }, + { + "player": 0, + "Text": "triggers the event Pandemics", + "origin": { + "Advance": "Storage" + } + }, + { + "player": 0, + "Text": "Base effect: Barbarians move", + "origin": { + "Incident": 49 + } + }, + { + "player": 0, + "Text": "Barbarians cannot move - will try to spawn a new city instead", + "origin": { + "Incident": 49 + } + }, + { + "player": 0, + "Text": "Barbarians cannot spawn a new city", + "origin": { + "Incident": 49 + } + }, + { + "player": 0, + "Text": "Lose a total of 2 units, cards, and resources", + "origin": { + "Incident": 49 + } } - ], - "log": [ - "A new game event has been triggered: Pandemics", - "Player1: Pandemics: Base effect: Barbarians move, Barbarians cannot move - will try to spawn a new city instead, Barbarians cannot spawn a new city, Lose a total of 2 units, cards, and resources" ] }, { @@ -335,11 +366,15 @@ "origin": { "Incident": 49 } + }, + { + "player": 1, + "Text": "Lose a total of 1 units, cards, and resources", + "origin": { + "Incident": 49 + } } ], - "log": [ - "Player2: Pandemics: Lose a total of 1 units, cards, and resources" - ], "active_events": 1 }, { @@ -365,11 +400,15 @@ "origin": { "Incident": 49 } + }, + { + "player": 1, + "Text": "Lose 1 culture token", + "origin": { + "Incident": 49 + } } ], - "log": [ - "Player2: Pandemics: Lose 1 culture token" - ], "active_events": 1 } ] diff --git a/server/tests/test_games/incidents/pandemics/vermin.outcome.json b/server/tests/test_games/incidents/pandemics/vermin.outcome.json index 1e9dcdc2..99ace0de 100644 --- a/server/tests/test_games/incidents/pandemics/vermin.outcome.json +++ b/server/tests/test_games/incidents/pandemics/vermin.outcome.json @@ -270,6 +270,13 @@ "Ability": "Advance" } }, + { + "player": 0, + "Text": "triggers the event Famine: Vermin", + "origin": { + "Advance": "Storage" + } + }, { "player": 0, "Resources": { @@ -282,6 +289,13 @@ "Incident": 51 } }, + { + "player": 0, + "Text": "Lost 1 food", + "origin": { + "Incident": 51 + } + }, { "player": 1, "Resources": { @@ -292,6 +306,13 @@ "Incident": 51 } }, + { + "player": 1, + "Text": "Lost 0 food", + "origin": { + "Incident": 51 + } + }, { "player": 1, "MoodChange": { @@ -302,11 +323,6 @@ "Incident": 51 } } - ], - "log": [ - "A new game event has been triggered: Famine: Vermin", - "Player1: Famine: Vermin: Lost 1 food", - "Player2: Famine: Vermin: Lost 0 food" ] } ] diff --git a/server/tests/test_games/incidents/pirates_spawn.outcome.json b/server/tests/test_games/incidents/pirates_spawn.outcome.json index d66a7291..7d17a11d 100644 --- a/server/tests/test_games/incidents/pirates_spawn.outcome.json +++ b/server/tests/test_games/incidents/pirates_spawn.outcome.json @@ -12,6 +12,9 @@ "event_type": { "Incident": { "incident_id": 54, + "cause": { + "Advance": "Storage" + }, "active_player": 0, "barbarians": {} } @@ -275,12 +278,22 @@ "origin": { "Ability": "Free Advance" } + }, + { + "player": 0, + "Text": "triggers the event A successful year", + "origin": { + "Advance": "Storage" + } + }, + { + "player": 0, + "Text": "Base effect: Pirates spawn", + "origin": { + "Incident": 54 + } } ], - "log": [ - "A new game event has been triggered: A successful year", - "Player1: A successful year: Base effect: Pirates spawn" - ], "active_events": 1 } ] @@ -318,4 +331,4 @@ "incidents_discarded": [ 54 ] -} \ No newline at end of file +} diff --git a/server/tests/test_games/incidents/pirates_spawn.outcome1.json b/server/tests/test_games/incidents/pirates_spawn.outcome1.json index 7f2b1dbb..ea7fb2c7 100644 --- a/server/tests/test_games/incidents/pirates_spawn.outcome1.json +++ b/server/tests/test_games/incidents/pirates_spawn.outcome1.json @@ -12,6 +12,9 @@ "event_type": { "Incident": { "incident_id": 54, + "cause": { + "Advance": "Storage" + }, "active_player": 0, "barbarians": {} } @@ -270,12 +273,22 @@ "origin": { "Ability": "Free Advance" } + }, + { + "player": 0, + "Text": "triggers the event A successful year", + "origin": { + "Advance": "Storage" + } + }, + { + "player": 0, + "Text": "Base effect: Pirates spawn", + "origin": { + "Incident": 54 + } } ], - "log": [ - "A new game event has been triggered: A successful year", - "Player1: A successful year: Base effect: Pirates spawn" - ], "active_events": 1 }, { @@ -287,8 +300,14 @@ } }, "player": 0, - "log": [ - "Player1: A successful year: Removed a Pirate Ships at D1" + "items": [ + { + "player": 0, + "Text": "Removed a Pirate Ships at D1", + "origin": { + "Incident": 54 + } + } ], "active_events": 2 } diff --git a/server/tests/test_games/incidents/pirates_spawn.outcome2.json b/server/tests/test_games/incidents/pirates_spawn.outcome2.json index 4f77c44a..9caf0321 100644 --- a/server/tests/test_games/incidents/pirates_spawn.outcome2.json +++ b/server/tests/test_games/incidents/pirates_spawn.outcome2.json @@ -12,6 +12,9 @@ "event_type": { "Incident": { "incident_id": 54, + "cause": { + "Advance": "Storage" + }, "active_player": 0, "barbarians": {} } @@ -275,12 +278,22 @@ "origin": { "Ability": "Free Advance" } + }, + { + "player": 0, + "Text": "triggers the event A successful year", + "origin": { + "Advance": "Storage" + } + }, + { + "player": 0, + "Text": "Base effect: Pirates spawn", + "origin": { + "Incident": 54 + } } ], - "log": [ - "A new game event has been triggered: A successful year", - "Player1: A successful year: Base effect: Pirates spawn" - ], "active_events": 1 }, { @@ -292,8 +305,14 @@ } }, "player": 0, - "log": [ - "Player1: A successful year: Removed a Pirate Ships at D1" + "items": [ + { + "player": 0, + "Text": "Removed a Pirate Ships at D1", + "origin": { + "Incident": 54 + } + } ], "active_events": 2 }, diff --git a/server/tests/test_games/incidents/pirates_spawn.outcome3.json b/server/tests/test_games/incidents/pirates_spawn.outcome3.json index 5495a4a7..b861b259 100644 --- a/server/tests/test_games/incidents/pirates_spawn.outcome3.json +++ b/server/tests/test_games/incidents/pirates_spawn.outcome3.json @@ -12,6 +12,9 @@ "event_type": { "Incident": { "incident_id": 54, + "cause": { + "Advance": "Storage" + }, "active_player": 0, "barbarians": {} } @@ -349,12 +352,22 @@ "origin": { "Ability": "Free Advance" } + }, + { + "player": 0, + "Text": "triggers the event A successful year", + "origin": { + "Advance": "Storage" + } + }, + { + "player": 0, + "Text": "Base effect: Pirates spawn", + "origin": { + "Incident": 54 + } } ], - "log": [ - "A new game event has been triggered: A successful year", - "Player1: A successful year: Base effect: Pirates spawn" - ], "active_events": 1 }, { @@ -366,8 +379,14 @@ } }, "player": 0, - "log": [ - "Player1: A successful year: Removed a Pirate Ships at D1" + "items": [ + { + "player": 0, + "Text": "Removed a Pirate Ships at D1", + "origin": { + "Incident": 54 + } + } ], "active_events": 2 }, @@ -419,11 +438,15 @@ "origin": { "Incident": 54 } + }, + { + "player": 0, + "Text": "Must pay 1 resource or token to bribe the pirates", + "origin": { + "Incident": 54 + } } ], - "log": [ - "Player1: A successful year: Must pay 1 resource or token to bribe the pirates" - ], "active_events": 2 } ] diff --git a/server/tests/test_games/incidents/pirates_spawn.outcome4.json b/server/tests/test_games/incidents/pirates_spawn.outcome4.json index 63419800..a6e6da52 100644 --- a/server/tests/test_games/incidents/pirates_spawn.outcome4.json +++ b/server/tests/test_games/incidents/pirates_spawn.outcome4.json @@ -279,12 +279,22 @@ "origin": { "Ability": "Free Advance" } + }, + { + "player": 0, + "Text": "triggers the event A successful year", + "origin": { + "Advance": "Storage" + } + }, + { + "player": 0, + "Text": "Base effect: Pirates spawn", + "origin": { + "Incident": 54 + } } ], - "log": [ - "A new game event has been triggered: A successful year", - "Player1: A successful year: Base effect: Pirates spawn" - ], "active_events": 1 }, { @@ -296,8 +306,14 @@ } }, "player": 0, - "log": [ - "Player1: A successful year: Removed a Pirate Ships at D1" + "items": [ + { + "player": 0, + "Text": "Removed a Pirate Ships at D1", + "origin": { + "Incident": 54 + } + } ], "active_events": 2 }, @@ -349,11 +365,15 @@ "origin": { "Incident": 54 } + }, + { + "player": 0, + "Text": "Must pay 1 resource or token to bribe the pirates", + "origin": { + "Incident": 54 + } } ], - "log": [ - "Player1: A successful year: Must pay 1 resource or token to bribe the pirates" - ], "active_events": 2 }, { @@ -380,6 +400,20 @@ "Incident": 54 } }, + { + "player": 0, + "Text": "Pirates took 1 ore", + "origin": { + "Incident": 54 + } + }, + { + "player": 1, + "Text": "Must reduce Mood in a city adjacent to pirates", + "origin": { + "Incident": 54 + } + }, { "player": 1, "MoodChange": { @@ -403,10 +437,6 @@ } } ], - "log": [ - "Player1: A successful year: Pirates took 1 ore", - "Player2: A successful year: Must reduce Mood in a city adjacent to pirates" - ], "active_events": 2 } ] diff --git a/server/tests/test_games/incidents/trade/era_of_stability.outcome.json b/server/tests/test_games/incidents/trade/era_of_stability.outcome.json index a9e203ce..8c84f529 100644 --- a/server/tests/test_games/incidents/trade/era_of_stability.outcome.json +++ b/server/tests/test_games/incidents/trade/era_of_stability.outcome.json @@ -5,6 +5,9 @@ "event_type": { "Incident": { "incident_id": 47, + "cause": { + "Advance": "Storage" + }, "active_player": 0 } }, @@ -303,11 +306,21 @@ "origin": { "Ability": "Advance" } + }, + { + "player": 0, + "Text": "triggers the event Era of Stability", + "origin": { + "Advance": "Storage" + } + }, + { + "player": 0, + "Text": "Exhausted the land in position B1", + "origin": { + "Incident": 47 + } } - ], - "log": [ - "A new game event has been triggered: Era of Stability", - "Player1: Era of Stability: Exhausted the land in position B1" ] } ] diff --git a/server/tests/test_games/incidents/trade/era_of_stability.outcome1.json b/server/tests/test_games/incidents/trade/era_of_stability.outcome1.json index b0e8a890..292d6392 100644 --- a/server/tests/test_games/incidents/trade/era_of_stability.outcome1.json +++ b/server/tests/test_games/incidents/trade/era_of_stability.outcome1.json @@ -5,6 +5,9 @@ "event_type": { "Incident": { "incident_id": 47, + "cause": { + "Advance": "Storage" + }, "active_player": 0 } }, @@ -306,11 +309,21 @@ "origin": { "Ability": "Advance" } + }, + { + "player": 0, + "Text": "triggers the event Era of Stability", + "origin": { + "Advance": "Storage" + } + }, + { + "player": 0, + "Text": "Exhausted the land in position B1", + "origin": { + "Incident": 47 + } } - ], - "log": [ - "A new game event has been triggered: Era of Stability", - "Player1: Era of Stability: Exhausted the land in position B1" ] }, { diff --git a/server/tests/test_games/incidents/trade/era_of_stability.outcome2.json b/server/tests/test_games/incidents/trade/era_of_stability.outcome2.json index e008fab7..84e21111 100644 --- a/server/tests/test_games/incidents/trade/era_of_stability.outcome2.json +++ b/server/tests/test_games/incidents/trade/era_of_stability.outcome2.json @@ -259,11 +259,21 @@ "origin": { "Ability": "Advance" } + }, + { + "player": 0, + "Text": "triggers the event Era of Stability", + "origin": { + "Advance": "Storage" + } + }, + { + "player": 0, + "Text": "Exhausted the land in position B1", + "origin": { + "Incident": 47 + } } - ], - "log": [ - "A new game event has been triggered: Era of Stability", - "Player1: Era of Stability: Exhausted the land in position B1" ] }, { diff --git a/server/tests/test_games/incidents/trade/flourishing_trade.outcome.json b/server/tests/test_games/incidents/trade/flourishing_trade.outcome.json index f01e05de..39f9ef68 100644 --- a/server/tests/test_games/incidents/trade/flourishing_trade.outcome.json +++ b/server/tests/test_games/incidents/trade/flourishing_trade.outcome.json @@ -258,6 +258,27 @@ "Ability": "Advance" } }, + { + "player": 0, + "Text": "triggers the event Flourishing Trade", + "origin": { + "Advance": "Storage" + } + }, + { + "player": 0, + "Text": "Base effect: Pirates spawn", + "origin": { + "Incident": 46 + } + }, + { + "player": 0, + "Text": "No valid positions for Pirate Ship", + "origin": { + "Incident": 46 + } + }, { "player": 0, "Resources": { @@ -294,10 +315,6 @@ "Ability": "Waste" } } - ], - "log": [ - "A new game event has been triggered: Flourishing Trade", - "Player1: Flourishing Trade: Base effect: Pirates spawn, No valid positions for Pirate Ship" ] } ] diff --git a/server/tests/test_games/incidents/trade/reformation.outcome.json b/server/tests/test_games/incidents/trade/reformation.outcome.json index 6901d2f1..cb3876b8 100644 --- a/server/tests/test_games/incidents/trade/reformation.outcome.json +++ b/server/tests/test_games/incidents/trade/reformation.outcome.json @@ -5,6 +5,9 @@ "event_type": { "Incident": { "incident_id": 48, + "cause": { + "Advance": "Storage" + }, "active_player": 2, "passed": "AlreadyPassed", "barbarians": {}, @@ -340,11 +343,49 @@ "origin": { "Ability": "Advance" } + }, + { + "player": 0, + "Text": "triggers the event Reformation", + "origin": { + "Advance": "Storage" + } + }, + { + "player": 0, + "Text": "Base effect: Barbarians spawn", + "origin": { + "Incident": 48 + } + }, + { + "player": 0, + "Text": "Barbarians cannot spawn a new city", + "origin": { + "Incident": 48 + } + }, + { + "player": 0, + "Text": "Barbarians cannot reinforce", + "origin": { + "Incident": 48 + } + }, + { + "player": 0, + "Text": "Selected Player3 to execute the event", + "origin": { + "Incident": 48 + } + }, + { + "player": 0, + "Text": "Pass the event to Player3", + "origin": { + "Incident": 48 + } } - ], - "log": [ - "A new game event has been triggered: Reformation", - "Player1: Reformation: Base effect: Barbarians spawn, Barbarians cannot spawn a new city, Barbarians cannot reinforce, Selected Player3 to execute the event, Pass the event to Player3" ] } ] diff --git a/server/tests/test_games/incidents/trade/reformation.outcome1.json b/server/tests/test_games/incidents/trade/reformation.outcome1.json index f648830f..d9793178 100644 --- a/server/tests/test_games/incidents/trade/reformation.outcome1.json +++ b/server/tests/test_games/incidents/trade/reformation.outcome1.json @@ -310,11 +310,49 @@ "origin": { "Ability": "Advance" } + }, + { + "player": 0, + "Text": "triggers the event Reformation", + "origin": { + "Advance": "Storage" + } + }, + { + "player": 0, + "Text": "Base effect: Barbarians spawn", + "origin": { + "Incident": 48 + } + }, + { + "player": 0, + "Text": "Barbarians cannot spawn a new city", + "origin": { + "Incident": 48 + } + }, + { + "player": 0, + "Text": "Barbarians cannot reinforce", + "origin": { + "Incident": 48 + } + }, + { + "player": 0, + "Text": "Selected Player3 to execute the event", + "origin": { + "Incident": 48 + } + }, + { + "player": 0, + "Text": "Pass the event to Player3", + "origin": { + "Incident": 48 + } } - ], - "log": [ - "A new game event has been triggered: Reformation", - "Player1: Reformation: Base effect: Barbarians spawn, Barbarians cannot spawn a new city, Barbarians cannot reinforce, Selected Player3 to execute the event, Pass the event to Player3" ] }, { diff --git a/server/tests/test_games/incidents/trade/scientific_trade.outcome.json b/server/tests/test_games/incidents/trade/scientific_trade.outcome.json index 64b0d4ea..0fc6cb38 100644 --- a/server/tests/test_games/incidents/trade/scientific_trade.outcome.json +++ b/server/tests/test_games/incidents/trade/scientific_trade.outcome.json @@ -258,6 +258,27 @@ "Ability": "Advance" } }, + { + "player": 0, + "Text": "triggers the event Scientific Trade", + "origin": { + "Advance": "Storage" + } + }, + { + "player": 0, + "Text": "Base effect: Pirates spawn", + "origin": { + "Incident": 45 + } + }, + { + "player": 0, + "Text": "No valid positions for Pirate Ship", + "origin": { + "Incident": 45 + } + }, { "player": 0, "Resources": { @@ -294,10 +315,6 @@ "Ability": "Waste" } } - ], - "log": [ - "A new game event has been triggered: Scientific Trade", - "Player1: Scientific Trade: Base effect: Pirates spawn, No valid positions for Pirate Ship" ] } ] diff --git a/server/tests/test_games/incidents/trojan/anarchy.outcome.json b/server/tests/test_games/incidents/trojan/anarchy.outcome.json index 9052dd83..34316c83 100644 --- a/server/tests/test_games/incidents/trojan/anarchy.outcome.json +++ b/server/tests/test_games/incidents/trojan/anarchy.outcome.json @@ -268,6 +268,13 @@ "Ability": "Advance" } }, + { + "player": 0, + "Text": "triggers the event Anarchy", + "origin": { + "Advance": "Storage" + } + }, { "player": 0, "Advance": { @@ -278,11 +285,14 @@ "origin": { "Incident": 44 } + }, + { + "player": 0, + "Text": "Lose 1 government advances due to Anarchy - adding 1 victory points", + "origin": { + "Incident": 44 + } } - ], - "log": [ - "A new game event has been triggered: Anarchy", - "Player1: Anarchy: Lose 1 government advances due to Anarchy - adding 1 victory points" ] } ] diff --git a/server/tests/test_games/incidents/trojan/anarchy.outcome1.json b/server/tests/test_games/incidents/trojan/anarchy.outcome1.json index 01744ebf..fcbc054a 100644 --- a/server/tests/test_games/incidents/trojan/anarchy.outcome1.json +++ b/server/tests/test_games/incidents/trojan/anarchy.outcome1.json @@ -260,6 +260,13 @@ "Ability": "Advance" } }, + { + "player": 0, + "Text": "triggers the event Anarchy", + "origin": { + "Advance": "Storage" + } + }, { "player": 0, "Advance": { @@ -270,11 +277,14 @@ "origin": { "Incident": 44 } + }, + { + "player": 0, + "Text": "Lose 1 government advances due to Anarchy - adding 1 victory points", + "origin": { + "Incident": 44 + } } - ], - "log": [ - "A new game event has been triggered: Anarchy", - "Player1: Anarchy: Lose 1 government advances due to Anarchy - adding 1 victory points" ] }, { @@ -314,6 +324,20 @@ "Ability": "Advance" } }, + { + "player": 0, + "Text": "Ideas limit reduced to 2", + "origin": { + "Advance": "Dogma" + } + }, + { + "player": 0, + "Text": "Unlock Provinces", + "origin": { + "Ability": "Advance" + } + }, { "player": 0, "Advance": { @@ -327,6 +351,13 @@ "Ability": "Advance" } }, + { + "player": 0, + "Text": "Gain a government advance, taking a game event token instead of triggering a game event (and losing 1 victory point)", + "origin": { + "Ability": "Anarchy" + } + }, { "player": 0, "Resources": { @@ -339,11 +370,6 @@ "Ability": "Waste" } } - ], - "log": [ - "Player1: Dogma: Ideas limit reduced to 2", - "Player1: Advance: Unlock Provinces", - "Player1: Anarchy: Gain a government advance, taking a game event token instead of triggering a game event (and losing 1 victory point)" ] } ] diff --git a/server/tests/test_games/incidents/trojan/guillotine.outcome2.json b/server/tests/test_games/incidents/trojan/guillotine.outcome2.json index 87e76648..599a5f5b 100644 --- a/server/tests/test_games/incidents/trojan/guillotine.outcome2.json +++ b/server/tests/test_games/incidents/trojan/guillotine.outcome2.json @@ -289,6 +289,34 @@ "Ability": "Advance" } }, + { + "player": 0, + "Text": "triggers the event Guillotine", + "origin": { + "Advance": "Storage" + } + }, + { + "player": 0, + "Text": "Base effect: Barbarians spawn", + "origin": { + "Incident": 43 + } + }, + { + "player": 0, + "Text": "Barbarians cannot spawn a new city", + "origin": { + "Incident": 43 + } + }, + { + "player": 0, + "Text": "Barbarians cannot reinforce", + "origin": { + "Incident": 43 + } + }, { "player": 0, "Units": { @@ -302,10 +330,6 @@ "Incident": 43 } } - ], - "log": [ - "A new game event has been triggered: Guillotine", - "Player1: Guillotine: Base effect: Barbarians spawn, Barbarians cannot spawn a new city, Barbarians cannot reinforce" ] }, { @@ -315,8 +339,21 @@ } }, "player": 0, - "log": [ - "Player1: Guillotine: Chose to select a new leader, Chose a new leader in A1" + "items": [ + { + "player": 0, + "Text": "Chose to select a new leader", + "origin": { + "Incident": 43 + } + }, + { + "player": 0, + "Text": "Chose a new leader in A1", + "origin": { + "Incident": 43 + } + } ], "active_events": 1 }, @@ -342,11 +379,15 @@ "origin": { "Incident": 43 } + }, + { + "player": 0, + "Text": "Lose leaders due to the Guillotine: Sulla", + "origin": { + "Incident": 43 + } } ], - "log": [ - "Player1: Guillotine: Lose leaders due to the Guillotine: Sulla" - ], "active_events": 1 } ] diff --git a/server/tests/test_games/incidents/trojan/solar_eclipse.outcome2.json b/server/tests/test_games/incidents/trojan/solar_eclipse.outcome2.json index 3ef56f0f..87a11b26 100644 --- a/server/tests/test_games/incidents/trojan/solar_eclipse.outcome2.json +++ b/server/tests/test_games/incidents/trojan/solar_eclipse.outcome2.json @@ -288,11 +288,28 @@ "origin": { "Ability": "Advance" } + }, + { + "player": 0, + "Text": "triggers the event Solar Eclipse", + "origin": { + "Advance": "Storage" + } + }, + { + "player": 0, + "Text": "Base effect: Pirates spawn", + "origin": { + "Incident": 41 + } + }, + { + "player": 0, + "Text": "No valid positions for Pirate Ship", + "origin": { + "Incident": 41 + } } - ], - "log": [ - "A new game event has been triggered: Solar Eclipse", - "Player1: Solar Eclipse: Base effect: Pirates spawn, No valid positions for Pirate Ship" ] }, { @@ -340,12 +357,26 @@ "origin": { "Ability": "Move" } + }, + { + "player": 0, + "CombatRound": { + "attackers": { + "settlers": 2, + "infantry": 2, + "cavalry": 1, + "elephants": 1 + }, + "defending_player": 1, + "defenders": { + "infantry": 2 + }, + "round": 1 + }, + "origin": { + "Ability": "Combat" + } } - ], - "log": [ - "Combat round 1", - "Player1: Combat: Attacking with 2 settlers, 2 infantry, 1 cavalry and 1 elephant", - "Player2: Combat: Defending with 2 infantry" ] }, { @@ -398,6 +429,34 @@ "Advance": "Tactics" } }, + { + "player": 1, + "Text": "Reveal Tactics Card Tactical Retreat", + "origin": { + "Advance": "Tactics" + } + }, + { + "player": 1, + "Text": "Player2 withdraws to B1", + "origin": { + "TacticsCard": 17 + } + }, + { + "player": 0, + "Text": "Gain 1 victory point for the Solar Eclipse", + "origin": { + "Ability": "Solar Eclipse" + } + }, + { + "player": 0, + "Text": "wins the battle", + "origin": { + "Ability": "Combat" + } + }, { "player": 0, "Resources": { @@ -463,12 +522,6 @@ } } ], - "log": [ - "Player2: Tactics: Reveal Tactics Card Tactical Retreat", - "Player2: Tactical Retreat: Player2 withdraws to B1", - "Player1: Solar Eclipse: Gain 1 victory point for the Solar Eclipse", - "Attacker wins" - ], "active_events": 1 } ] diff --git a/server/tests/test_games/incidents/trojan/trojan_horse.outcome2.json b/server/tests/test_games/incidents/trojan/trojan_horse.outcome2.json index a309c52b..56ead5b5 100644 --- a/server/tests/test_games/incidents/trojan/trojan_horse.outcome2.json +++ b/server/tests/test_games/incidents/trojan/trojan_horse.outcome2.json @@ -305,11 +305,35 @@ "origin": { "Ability": "Advance" } + }, + { + "player": 0, + "Text": "triggers the event Trojan Horse", + "origin": { + "Advance": "Storage" + } + }, + { + "player": 0, + "Text": "Base effect: Barbarians move", + "origin": { + "Incident": 42 + } + }, + { + "player": 0, + "Text": "Barbarians cannot move - will try to spawn a new city instead", + "origin": { + "Incident": 42 + } + }, + { + "player": 0, + "Text": "Barbarians cannot spawn a new city", + "origin": { + "Incident": 42 + } } - ], - "log": [ - "A new game event has been triggered: Trojan Horse", - "Player1: Trojan Horse: Base effect: Barbarians move, Barbarians cannot move - will try to spawn a new city instead, Barbarians cannot spawn a new city" ] }, { @@ -357,12 +381,26 @@ "origin": { "Ability": "Move" } + }, + { + "player": 0, + "CombatRound": { + "attackers": { + "settlers": 2, + "infantry": 2, + "cavalry": 1, + "elephants": 1 + }, + "defending_player": 1, + "defenders": { + "infantry": 2 + }, + "round": 1 + }, + "origin": { + "Ability": "Combat" + } } - ], - "log": [ - "Combat round 1", - "Player1: Combat: Attacking with 2 settlers, 2 infantry, 1 cavalry and 1 elephant", - "Player2: Combat: Defending with 2 infantry" ] }, { @@ -417,6 +455,82 @@ "Ability": "Trojan Horse" } }, + { + "player": 0, + "Text": "Activated the Trojan Horse and gained 1 victory point", + "origin": { + "Ability": "Trojan Horse" + } + }, + { + "player": 0, + "CombatRoll": { + "rolls": [ + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + }, + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + }, + { + "value": 6, + "unit_type": "Infantry", + "bonus": false + }, + { + "value": 6, + "unit_type": "Infantry", + "bonus": false + } + ], + "combat_value": 26, + "hits": 2 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 1, + "CombatRoll": { + "rolls": [ + { + "value": 1, + "unit_type": { + "Leader": "Alexander" + }, + "bonus": false + }, + { + "value": 1, + "unit_type": { + "Leader": "Alexander" + }, + "bonus": false + } + ], + "combat_value": 4, + "hits": 0, + "combat_modifiers": [ + "Player gets +2 combat value for Fanaticism Advance", + "Trojan Horse denied playing Tactics Cards" + ] + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 1, + "Text": "Remove all defending units", + "origin": { + "Ability": "Choose Casualties" + } + }, { "player": 1, "Units": { @@ -430,6 +544,13 @@ "Ability": "Combat" } }, + { + "player": 0, + "Text": "wins the battle", + "origin": { + "Ability": "Combat" + } + }, { "player": 0, "Resources": { @@ -521,13 +642,6 @@ } } ], - "log": [ - "Player1: Trojan Horse: Activated the Trojan Horse and gained 1 victory point", - "Player1: Combat: Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value), 6 (infantry, no bonus), 6 (infantry, no bonus) for combined combat value of 26 and gets 2 hits against defending units", - "Player2: Combat: Roll 1 (leader, no bonus), 1 (leader, no bonus) for combined combat value of 4 and gets 0 hits against attacking units, Combat modifiers: Player gets +2 combat value for Fanaticism Advance, Trojan Horse denied playing Tactics Cards", - "Player2: Choose Casualties: Remove all defending units", - "Attacker wins" - ], "active_events": 1 } ] diff --git a/server/tests/test_games/movement/explore_resolution.outcome1.json b/server/tests/test_games/movement/explore_resolution.outcome1.json index e139fd32..a1d9f55b 100644 --- a/server/tests/test_games/movement/explore_resolution.outcome1.json +++ b/server/tests/test_games/movement/explore_resolution.outcome1.json @@ -428,6 +428,13 @@ }, "player": 1, "items": [ + { + "player": 1, + "Text": "Chose rotation 3", + "origin": { + "Ability": "Explore Resolution" + } + }, { "player": 1, "Explore": { @@ -455,9 +462,6 @@ } } ], - "log": [ - "Player2: Explore Resolution: Chose rotation 3" - ], "active_events": 1 } ] diff --git a/server/tests/test_games/movement/ship_explore_move_not_possible.outcome.json b/server/tests/test_games/movement/ship_explore_move_not_possible.outcome.json index 772892d0..29e41895 100644 --- a/server/tests/test_games/movement/ship_explore_move_not_possible.outcome.json +++ b/server/tests/test_games/movement/ship_explore_move_not_possible.outcome.json @@ -347,6 +347,13 @@ }, "player": 1, "items": [ + { + "player": 1, + "Text": "Chose rotation 3", + "origin": { + "Ability": "Explore Resolution" + } + }, { "player": 1, "Explore": { @@ -372,11 +379,15 @@ "origin": { "Ability": "Explore Resolution" } + }, + { + "player": 1, + "Text": "Ship can't move to the explored tile", + "origin": { + "Ability": "Explore Resolution" + } } ], - "log": [ - "Player2: Explore Resolution: Chose rotation 3, Ship can't move to the explored tile" - ], "active_events": 1 } ] diff --git a/server/tests/test_games/movement/ship_explore_teleport.outcome.json b/server/tests/test_games/movement/ship_explore_teleport.outcome.json index c1afb935..b8da01a7 100644 --- a/server/tests/test_games/movement/ship_explore_teleport.outcome.json +++ b/server/tests/test_games/movement/ship_explore_teleport.outcome.json @@ -372,10 +372,14 @@ "origin": { "Ability": "Move" } + }, + { + "player": 1, + "Text": "Teleported ship from C4 to D4", + "origin": { + "Ability": "Move" + } } - ], - "log": [ - "Player2: Move: Teleported ship from C4 to D4" ] } ] diff --git a/server/tests/test_games/movement/ship_navigate_explore_move.outcome.json b/server/tests/test_games/movement/ship_navigate_explore_move.outcome.json index ddccfe46..269b1f5a 100644 --- a/server/tests/test_games/movement/ship_navigate_explore_move.outcome.json +++ b/server/tests/test_games/movement/ship_navigate_explore_move.outcome.json @@ -345,10 +345,14 @@ "origin": { "Ability": "Move" } + }, + { + "player": 1, + "Text": "Teleported ship from F2 to G3", + "origin": { + "Ability": "Move" + } } - ], - "log": [ - "Player2: Move: Teleported ship from F2 to G3" ] } ] diff --git a/server/tests/test_games/objective_cards/instant/conqueror.outcome3.json b/server/tests/test_games/objective_cards/instant/conqueror.outcome3.json index 3ed836f6..91551cb7 100644 --- a/server/tests/test_games/objective_cards/instant/conqueror.outcome3.json +++ b/server/tests/test_games/objective_cards/instant/conqueror.outcome3.json @@ -276,6 +276,107 @@ "Ability": "Move" } }, + { + "player": 0, + "CombatRound": { + "attackers": { + "infantry": 2, + "cavalry": 1, + "elephants": 1 + }, + "defending_player": 1, + "defenders": { + "infantry": 3 + }, + "round": 1 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 0, + "CombatRoll": { + "rolls": [ + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + }, + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + }, + { + "value": 6, + "unit_type": "Infantry", + "bonus": false + }, + { + "value": 6, + "unit_type": "Infantry", + "bonus": false + } + ], + "combat_value": 26, + "hits": 3 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 1, + "CombatRoll": { + "rolls": [ + { + "value": 1, + "unit_type": { + "Leader": "Alexander" + }, + "bonus": false + }, + { + "value": 1, + "unit_type": { + "Leader": "Alexander" + }, + "bonus": false + }, + { + "value": 1, + "unit_type": { + "Leader": "Alexander" + }, + "bonus": false + }, + { + "value": 1, + "unit_type": { + "Leader": "Alexander" + }, + "bonus": false + } + ], + "combat_value": 4, + "hits": 0, + "combat_modifiers": [ + "fortress added one extra die", + "fortress cancelled one hit" + ] + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 1, + "Text": "Remove all defending units", + "origin": { + "Ability": "Choose Casualties" + } + }, { "player": 1, "Units": { @@ -289,6 +390,13 @@ "Ability": "Combat" } }, + { + "player": 0, + "Text": "wins the battle", + "origin": { + "Ability": "Combat" + } + }, { "player": 0, "Resources": { @@ -365,13 +473,6 @@ "Ability": "Waste" } } - ], - "log": [ - "Combat round 1", - "Player1: Combat: Attacking with 2 infantry, 1 cavalry and 1 elephant, Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value), 6 (infantry, no bonus), 6 (infantry, no bonus) for combined combat value of 26 and gets 3 hits against defending units", - "Player2: Combat: Defending with 3 infantry, Roll 1 (leader, no bonus), 1 (leader, no bonus), 1 (leader, no bonus), 1 (leader, no bonus) for combined combat value of 4 and gets 0 hits against attacking units, Combat modifiers: fortress added one extra die, fortress cancelled one hit", - "Player2: Choose Casualties: Remove all defending units", - "Attacker wins" ] }, { diff --git a/server/tests/test_games/objective_cards/instant/defiance.outcome3.json b/server/tests/test_games/objective_cards/instant/defiance.outcome3.json index af00ae11..5f7d73e7 100644 --- a/server/tests/test_games/objective_cards/instant/defiance.outcome3.json +++ b/server/tests/test_games/objective_cards/instant/defiance.outcome3.json @@ -227,13 +227,73 @@ "origin": { "Ability": "Move" } + }, + { + "player": 0, + "CombatRound": { + "attackers": { + "infantry": 1 + }, + "defending_player": 1, + "defenders": { + "infantry": 2 + }, + "round": 1 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 0, + "CombatRoll": { + "rolls": [ + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + } + ], + "combat_value": 7, + "hits": 1 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 1, + "CombatRoll": { + "rolls": [ + { + "value": 1, + "unit_type": { + "Leader": "Alexander" + }, + "bonus": false + }, + { + "value": 1, + "unit_type": { + "Leader": "Alexander" + }, + "bonus": false + } + ], + "combat_value": 2, + "hits": 0 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 0, + "Text": "Player1 can retreat", + "origin": { + "Ability": "Retreat" + } } - ], - "log": [ - "Combat round 1", - "Player1: Combat: Attacking with 1 infantry, Roll 6 (infantry, +1 combat value) for combined combat value of 7 and gets 1 hits against defending units", - "Player2: Combat: Defending with 2 infantry, Roll 1 (leader, no bonus), 1 (leader, no bonus) for combined combat value of 2 and gets 0 hits against attacking units", - "Player1: Retreat: Player1 can retreat" ] }, { @@ -267,6 +327,20 @@ "city_mood": "Angry" }, "items": [ + { + "player": 0, + "Text": "Do not retreat", + "origin": { + "Ability": "Retreat" + } + }, + { + "player": 1, + "Text": "Remove 1 of their defending units", + "origin": { + "Ability": "Choose Casualties" + } + }, { "player": 1, "Units": { @@ -280,6 +354,65 @@ "Ability": "Combat" } }, + { + "player": 0, + "CombatRound": { + "attackers": { + "infantry": 1 + }, + "defending_player": 1, + "defenders": { + "infantry": 1 + }, + "round": 2 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 0, + "CombatRoll": { + "rolls": [ + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + } + ], + "combat_value": 7, + "hits": 1 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 1, + "CombatRoll": { + "rolls": [ + { + "value": 1, + "unit_type": { + "Leader": "Alexander" + }, + "bonus": false + } + ], + "combat_value": 1, + "hits": 0 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 1, + "Text": "Remove all defending units", + "origin": { + "Ability": "Choose Casualties" + } + }, { "player": 1, "Units": { @@ -293,6 +426,13 @@ "Ability": "Combat" } }, + { + "player": 0, + "Text": "wins the battle", + "origin": { + "Ability": "Combat" + } + }, { "player": 0, "Resources": { @@ -342,14 +482,6 @@ } } ], - "log": [ - "Player1: Retreat: Do not retreat", - "Player2: Choose Casualties: Remove 1 of their defending units, Remove all defending units", - "Combat round 2", - "Player1: Combat: Attacking with 1 infantry, Roll 6 (infantry, +1 combat value) for combined combat value of 7 and gets 1 hits against defending units", - "Player2: Combat: Defending with 1 infantry, Roll 1 (leader, no bonus) for combined combat value of 1 and gets 0 hits against attacking units", - "Attacker wins" - ], "active_events": 1 }, { @@ -359,8 +491,14 @@ } }, "player": 0, - "log": [ - "Player1: Select Objective Cards to Complete: No card selected" + "items": [ + { + "player": 0, + "Text": "No card selected", + "origin": { + "Ability": "Select Objective Cards to Complete" + } + } ], "active_events": 1 }, diff --git a/server/tests/test_games/objective_cards/instant/draft.outcome2.json b/server/tests/test_games/objective_cards/instant/draft.outcome2.json index 06d0b53f..c1f27c17 100644 --- a/server/tests/test_games/objective_cards/instant/draft.outcome2.json +++ b/server/tests/test_games/objective_cards/instant/draft.outcome2.json @@ -264,6 +264,13 @@ } ] }, + { + "player": 0, + "Text": "Reduce the cost of 1 Infantry to 1 mood token", + "origin": { + "Advance": "Draft" + } + }, { "player": 0, "Units": { @@ -277,9 +284,6 @@ "Ability": "Recruit" } } - ], - "log": [ - "Player1: Draft: Reduce the cost of 1 Infantry to 1 mood token" ] }, { @@ -327,6 +331,13 @@ } ] }, + { + "player": 0, + "Text": "Reduce the cost of 1 Infantry to 1 mood token", + "origin": { + "Advance": "Draft" + } + }, { "player": 0, "MoodChange": { @@ -350,9 +361,6 @@ "Ability": "Recruit" } } - ], - "log": [ - "Player1: Draft: Reduce the cost of 1 Infantry to 1 mood token" ] }, { diff --git a/server/tests/test_games/objective_cards/instant/scavenger.outcome1.json b/server/tests/test_games/objective_cards/instant/scavenger.outcome1.json index e34d1b31..62e8a08a 100644 --- a/server/tests/test_games/objective_cards/instant/scavenger.outcome1.json +++ b/server/tests/test_games/objective_cards/instant/scavenger.outcome1.json @@ -451,6 +451,68 @@ "Ability": "Move" } }, + { + "player": 0, + "CombatRound": { + "attackers": { + "ships": 2 + }, + "defending_player": 1, + "defenders": { + "ships": 1 + }, + "round": 1 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 0, + "CombatRoll": { + "rolls": [ + { + "value": 2, + "unit_type": "Cavalry", + "bonus": false + }, + { + "value": 5, + "unit_type": "Cavalry", + "bonus": false + } + ], + "combat_value": 7, + "hits": 1 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 1, + "CombatRoll": { + "rolls": [ + { + "value": 5, + "unit_type": "Cavalry", + "bonus": false + } + ], + "combat_value": 5, + "hits": 1 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 0, + "Text": "Remove 1 of their attacking units", + "origin": { + "Ability": "Choose Casualties" + } + }, { "player": 0, "Units": { @@ -464,6 +526,13 @@ "Ability": "Combat" } }, + { + "player": 1, + "Text": "Remove all defending units", + "origin": { + "Ability": "Choose Casualties" + } + }, { "player": 1, "Units": { @@ -476,15 +545,14 @@ "origin": { "Ability": "Combat" } + }, + { + "player": 0, + "Text": "wins the battle", + "origin": { + "Ability": "Combat" + } } - ], - "log": [ - "Combat round 1", - "Player1: Combat: Attacking with 2 ships, Roll 2 (cavalry, no bonus), 5 (cavalry, no bonus) for combined combat value of 7 and gets 1 hits against defending units", - "Player2: Combat: Defending with 1 ship, Roll 5 (cavalry, no bonus) for combined combat value of 5 and gets 1 hits against attacking units", - "Player1: Choose Casualties: Remove 1 of their attacking units", - "Player2: Choose Casualties: Remove all defending units", - "Attacker wins" ] }, { diff --git a/server/tests/test_games/objective_cards/instant/warmonger.outcome4.json b/server/tests/test_games/objective_cards/instant/warmonger.outcome4.json index cdcec97e..7cecd18b 100644 --- a/server/tests/test_games/objective_cards/instant/warmonger.outcome4.json +++ b/server/tests/test_games/objective_cards/instant/warmonger.outcome4.json @@ -249,6 +249,78 @@ "Ability": "Move" } }, + { + "player": 0, + "CombatRound": { + "attackers": { + "infantry": 1, + "cavalry": 1 + }, + "defending_player": 1, + "defenders": { + "infantry": 1 + }, + "round": 1 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 0, + "CombatRoll": { + "rolls": [ + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + }, + { + "value": 6, + "unit_type": "Infantry", + "bonus": false + } + ], + "combat_value": 13, + "hits": 1 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 1, + "CombatRoll": { + "rolls": [ + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + }, + { + "value": 6, + "unit_type": "Infantry", + "bonus": false + } + ], + "combat_value": 13, + "hits": 2, + "combat_modifiers": [ + "fortress added one extra die", + "fortress cancelled one hit" + ] + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 0, + "Text": "Remove all attacking units", + "origin": { + "Ability": "Choose Casualties" + } + }, { "player": 0, "Units": { @@ -263,6 +335,13 @@ "Ability": "Combat" } }, + { + "player": 1, + "Text": "Remove all defending units", + "origin": { + "Ability": "Choose Casualties" + } + }, { "player": 1, "Units": { @@ -275,15 +354,14 @@ "origin": { "Ability": "Combat" } + }, + { + "player": 1, + "Text": "wins the battle", + "origin": { + "Ability": "fortress" + } } - ], - "log": [ - "Combat round 1", - "Player1: Combat: Attacking with 1 infantry and 1 cavalry, Roll 6 (infantry, +1 combat value), 6 (infantry, no bonus) for combined combat value of 13 and gets 1 hits against defending units", - "Player2: Combat: Defending with 1 infantry, Roll 6 (infantry, +1 combat value), 6 (infantry, no bonus) for combined combat value of 13 and gets 2 hits against attacking units, Combat modifiers: fortress added one extra die, fortress cancelled one hit", - "Player1: Choose Casualties: Remove all attacking units", - "Player2: Choose Casualties: Remove all defending units", - "Player2 wins the battle because he has a defending fortress" ] }, { @@ -316,13 +394,76 @@ "origin": { "Ability": "Move" } + }, + { + "player": 0, + "CombatRound": { + "attackers": { + "infantry": 1, + "elephants": 1 + }, + "defending_player": 1, + "defenders": { + "infantry": 1 + }, + "round": 1 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 0, + "CombatRoll": { + "rolls": [ + { + "value": 1, + "unit_type": { + "Leader": "Alexander" + }, + "bonus": false + }, + { + "value": 1, + "unit_type": { + "Leader": "Alexander" + }, + "bonus": false + } + ], + "combat_value": 2, + "hits": 0 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 1, + "CombatRoll": { + "rolls": [ + { + "value": 1, + "unit_type": { + "Leader": "Alexander" + }, + "bonus": false + } + ], + "combat_value": 1, + "hits": 0 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 0, + "Text": "Player1 can retreat", + "origin": { + "Ability": "Retreat" + } } - ], - "log": [ - "Combat round 1", - "Player1: Combat: Attacking with 1 infantry and 1 elephant, Roll 1 (leader, no bonus), 1 (leader, no bonus) for combined combat value of 2 and gets 0 hits against defending units", - "Player2: Combat: Defending with 1 infantry, Roll 1 (leader, no bonus) for combined combat value of 1 and gets 0 hits against attacking units", - "Player1: Retreat: Player1 can retreat" ] }, { @@ -332,11 +473,81 @@ } }, "player": 0, - "log": [ - "Player1: Retreat: Do not retreat, Player1 can retreat", - "Combat round 2", - "Player1: Combat: Attacking with 1 infantry and 1 elephant, Roll 1 (leader, no bonus), 1 (leader, no bonus) for combined combat value of 2 and gets 0 hits against defending units", - "Player2: Combat: Defending with 1 infantry, Roll 2 (cavalry, no bonus) for combined combat value of 2 and gets 0 hits against attacking units" + "items": [ + { + "player": 0, + "Text": "Do not retreat", + "origin": { + "Ability": "Retreat" + } + }, + { + "player": 0, + "CombatRound": { + "attackers": { + "infantry": 1, + "elephants": 1 + }, + "defending_player": 1, + "defenders": { + "infantry": 1 + }, + "round": 2 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 0, + "CombatRoll": { + "rolls": [ + { + "value": 1, + "unit_type": { + "Leader": "Alexander" + }, + "bonus": false + }, + { + "value": 1, + "unit_type": { + "Leader": "Alexander" + }, + "bonus": false + } + ], + "combat_value": 2, + "hits": 0 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 1, + "CombatRoll": { + "rolls": [ + { + "value": 2, + "unit_type": "Cavalry", + "bonus": false + } + ], + "combat_value": 2, + "hits": 0 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 0, + "Text": "Player1 can retreat", + "origin": { + "Ability": "Retreat" + } + } ], "active_events": 1 }, @@ -371,6 +582,78 @@ "result": "AttackerWins" }, "items": [ + { + "player": 0, + "Text": "Do not retreat", + "origin": { + "Ability": "Retreat" + } + }, + { + "player": 0, + "CombatRound": { + "attackers": { + "infantry": 1, + "elephants": 1 + }, + "defending_player": 1, + "defenders": { + "infantry": 1 + }, + "round": 3 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 0, + "CombatRoll": { + "rolls": [ + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + }, + { + "value": 1, + "unit_type": { + "Leader": "Alexander" + }, + "bonus": false + } + ], + "combat_value": 8, + "hits": 1 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 1, + "CombatRoll": { + "rolls": [ + { + "value": 3, + "unit_type": "Elephant", + "bonus": false + } + ], + "combat_value": 3, + "hits": 0 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 1, + "Text": "Remove all defending units", + "origin": { + "Ability": "Choose Casualties" + } + }, { "player": 1, "Units": { @@ -383,16 +666,15 @@ "origin": { "Ability": "Combat" } + }, + { + "player": 0, + "Text": "wins the battle", + "origin": { + "Ability": "Combat" + } } ], - "log": [ - "Player1: Retreat: Do not retreat", - "Combat round 3", - "Player1: Combat: Attacking with 1 infantry and 1 elephant, Roll 6 (infantry, +1 combat value), 1 (leader, no bonus) for combined combat value of 8 and gets 1 hits against defending units", - "Player2: Combat: Defending with 1 infantry, Roll 3 (elephant, no bonus) for combined combat value of 3 and gets 0 hits against attacking units", - "Player2: Choose Casualties: Remove all defending units", - "Attacker wins" - ], "active_events": 1 }, { diff --git a/server/tests/test_games/objective_cards/status_phase/colony.outcome2.json b/server/tests/test_games/objective_cards/status_phase/colony.outcome2.json index ceb349cf..dfac2811 100644 --- a/server/tests/test_games/objective_cards/status_phase/colony.outcome2.json +++ b/server/tests/test_games/objective_cards/status_phase/colony.outcome2.json @@ -496,11 +496,15 @@ "origin": { "Ability": "Complete Objectives" } + }, + { + "player": 1, + "Text": "wins the game", + "origin": { + "Ability": "having the most points" + } } ], - "log": [ - "The game has ended. Player2 has won" - ], "active_events": 2 } ] diff --git a/server/tests/test_games/objective_cards/status_phase/large_civ.outcome8.json b/server/tests/test_games/objective_cards/status_phase/large_civ.outcome8.json index 632aacb4..d62406c9 100644 --- a/server/tests/test_games/objective_cards/status_phase/large_civ.outcome8.json +++ b/server/tests/test_games/objective_cards/status_phase/large_civ.outcome8.json @@ -592,6 +592,13 @@ "Objective": "Eureka!" } }, + { + "player": 0, + "Text": "Pay 2 ideas for Eureka!", + "origin": { + "Objective": "Eureka!" + } + }, { "player": 0, "HandCard": { @@ -610,9 +617,6 @@ } } ], - "log": [ - "Player1: Eureka!: Pay 2 ideas for Eureka!" - ], "active_events": 2 } ] diff --git a/server/tests/test_games/status_phase/change_government.outcome2.json b/server/tests/test_games/status_phase/change_government.outcome2.json index 949f8742..b6e5df28 100644 --- a/server/tests/test_games/status_phase/change_government.outcome2.json +++ b/server/tests/test_games/status_phase/change_government.outcome2.json @@ -242,8 +242,14 @@ } }, "player": 1, - "log": [ - "Player2: Raze city: Did not raze a city" + "items": [ + { + "player": 1, + "Text": "Did not raze a city", + "origin": { + "Ability": "Raze city" + } + } ], "active_events": 1 } @@ -300,6 +306,20 @@ }, "player": 0, "items": [ + { + "player": 0, + "Text": "Democracy changed their government from Player1 to Theocracy", + "origin": { + "Ability": "Change Government" + } + }, + { + "player": 0, + "Text": "Additional advances: Devotion", + "origin": { + "Ability": "Change Government" + } + }, { "player": 0, "Advance": { @@ -322,6 +342,20 @@ "Ability": "Change Government" } }, + { + "player": 0, + "Text": "Ideas limit reduced to 2", + "origin": { + "Advance": "Dogma" + } + }, + { + "player": 0, + "Text": "Unlock Provinces", + "origin": { + "Ability": "Change Government" + } + }, { "player": 0, "Advance": { @@ -345,10 +379,6 @@ } } ], - "log": [ - "Player1: Change Government: Democracy changed their government from Player1 to Theocracy, Additional advances: Devotion, Unlock Provinces", - "Player1: Dogma: Ideas limit reduced to 2" - ], "active_events": 1 } ] diff --git a/server/tests/test_games/status_phase/determine_first_player.outcome.json b/server/tests/test_games/status_phase/determine_first_player.outcome.json index 9ddf12a6..98611f3d 100644 --- a/server/tests/test_games/status_phase/determine_first_player.outcome.json +++ b/server/tests/test_games/status_phase/determine_first_player.outcome.json @@ -205,8 +205,14 @@ } }, "player": 0, - "log": [ - "Player1: Determine First Player: Player1 choose Player2 as the new starting player" + "items": [ + { + "player": 0, + "Text": "Player1 choose Player2 as the new starting player", + "origin": { + "Ability": "Determine First Player" + } + } ], "active_events": 1 } diff --git a/server/tests/test_games/status_phase/end_game.outcome.json b/server/tests/test_games/status_phase/end_game.outcome.json index 7ececaea..0069c478 100644 --- a/server/tests/test_games/status_phase/end_game.outcome.json +++ b/server/tests/test_games/status_phase/end_game.outcome.json @@ -297,8 +297,14 @@ { "action": "StartTurn", "player": 0, - "log": [ - "The game has ended. Player2 has won" + "items": [ + { + "player": 1, + "Text": "wins the game", + "origin": { + "Ability": "having the most points" + } + } ] } ] diff --git a/server/tests/test_games/status_phase/free_advance.outcome2.json b/server/tests/test_games/status_phase/free_advance.outcome2.json index 629ab1f5..af2d1acd 100644 --- a/server/tests/test_games/status_phase/free_advance.outcome2.json +++ b/server/tests/test_games/status_phase/free_advance.outcome2.json @@ -450,6 +450,13 @@ "Ability": "Draw Cards" } }, + { + "player": 1, + "Text": "Reshuffling Objective Card pile", + "origin": { + "Ability": "Draw Cards" + } + }, { "player": 1, "HandCard": { @@ -495,9 +502,6 @@ "Ability": "Draw Cards" } } - ], - "log": [ - "Reshuffling Objective Card pile" ] } ] diff --git a/server/tests/test_games/status_phase/keep_government.outcome1.json b/server/tests/test_games/status_phase/keep_government.outcome1.json index fa2ac282..7f1dc6b2 100644 --- a/server/tests/test_games/status_phase/keep_government.outcome1.json +++ b/server/tests/test_games/status_phase/keep_government.outcome1.json @@ -239,8 +239,14 @@ } }, "player": 1, - "log": [ - "Player2: Raze city: Did not raze a city" + "items": [ + { + "player": 1, + "Text": "Did not raze a city", + "origin": { + "Ability": "Raze city" + } + } ], "active_events": 1 } @@ -274,11 +280,15 @@ "origin": { "Ability": "Change Government" } + }, + { + "player": 0, + "Text": "Keep current government", + "origin": { + "Ability": "Change Government" + } } ], - "log": [ - "Player1: Change Government: Keep current government" - ], "active_events": 1 } ] diff --git a/server/tests/test_games/status_phase/raze_city_decline.outcome.json b/server/tests/test_games/status_phase/raze_city_decline.outcome.json index 110618c4..89ee5000 100644 --- a/server/tests/test_games/status_phase/raze_city_decline.outcome.json +++ b/server/tests/test_games/status_phase/raze_city_decline.outcome.json @@ -239,8 +239,14 @@ } }, "player": 0, - "log": [ - "Player1: Raze city: Did not raze a city" + "items": [ + { + "player": 0, + "Text": "Did not raze a city", + "origin": { + "Ability": "Raze city" + } + } ], "active_events": 1 } diff --git a/server/tests/test_games/status_phase/raze_city_decline.outcome1.json b/server/tests/test_games/status_phase/raze_city_decline.outcome1.json index 00c220c0..8528b1ea 100644 --- a/server/tests/test_games/status_phase/raze_city_decline.outcome1.json +++ b/server/tests/test_games/status_phase/raze_city_decline.outcome1.json @@ -235,8 +235,14 @@ } }, "player": 0, - "log": [ - "Player1: Raze city: Did not raze a city" + "items": [ + { + "player": 0, + "Text": "Did not raze a city", + "origin": { + "Ability": "Raze city" + } + } ], "active_events": 1 }, @@ -247,8 +253,14 @@ } }, "player": 1, - "log": [ - "Player2: Raze city: Did not raze a city" + "items": [ + { + "player": 1, + "Text": "Did not raze a city", + "origin": { + "Ability": "Raze city" + } + } ], "active_events": 1 } diff --git a/server/tests/test_games/tactics_cards/archers.outcome2.json b/server/tests/test_games/tactics_cards/archers.outcome2.json index bed97c7a..0dc6b3ee 100644 --- a/server/tests/test_games/tactics_cards/archers.outcome2.json +++ b/server/tests/test_games/tactics_cards/archers.outcome2.json @@ -218,12 +218,23 @@ "origin": { "Ability": "Move" } + }, + { + "player": 0, + "CombatRound": { + "attackers": { + "infantry": 1 + }, + "defending_player": 1, + "defenders": { + "infantry": 2 + }, + "round": 1 + }, + "origin": { + "Ability": "Combat" + } } - ], - "log": [ - "Combat round 1", - "Player1: Combat: Attacking with 1 infantry", - "Player2: Combat: Defending with 2 infantry" ] }, { @@ -252,12 +263,22 @@ "origin": { "Advance": "Tactics" } + }, + { + "player": 0, + "Text": "Reveal Tactics Card Archers", + "origin": { + "Advance": "Tactics" + } + }, + { + "player": 1, + "Text": "rolls a 6 and scored a hit", + "origin": { + "TacticsCard": 26 + } } ], - "log": [ - "Player1: Tactics: Reveal Tactics Card Archers", - "Player2: Archers: Rolled a 6 and scored a hit" - ], "active_events": 1 }, { @@ -296,6 +317,13 @@ "city_mood": "Angry" }, "items": [ + { + "player": 1, + "Text": "Player2 sacrifices an infantry for Archers", + "origin": { + "TacticsCard": 26 + } + }, { "player": 1, "Units": { @@ -309,6 +337,47 @@ "Ability": "Combat" } }, + { + "player": 0, + "CombatRoll": { + "rolls": [ + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + } + ], + "combat_value": 7, + "hits": 1 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 1, + "CombatRoll": { + "rolls": [ + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + } + ], + "combat_value": 7, + "hits": 1 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 0, + "Text": "Remove all attacking units", + "origin": { + "Ability": "Choose Casualties" + } + }, { "player": 0, "Units": { @@ -322,6 +391,13 @@ "Ability": "Combat" } }, + { + "player": 1, + "Text": "Remove all defending units", + "origin": { + "Ability": "Choose Casualties" + } + }, { "player": 1, "Units": { @@ -334,16 +410,15 @@ "origin": { "Ability": "Combat" } + }, + { + "player": 0, + "Text": "ends the battle in a draw", + "origin": { + "Ability": "Combat" + } } ], - "log": [ - "Player2: Archers: Player2 sacrifices an infantry for Archers", - "Player1: Combat: Roll 6 (infantry, +1 combat value) for combined combat value of 7 and gets 1 hits against defending units", - "Player2: Combat: Roll 6 (infantry, +1 combat value) for combined combat value of 7 and gets 1 hits against attacking units", - "Player1: Choose Casualties: Remove all attacking units", - "Player2: Choose Casualties: Remove all defending units", - "Battle ends in a draw" - ], "active_events": 1 } ] @@ -380,4 +455,4 @@ "action_cards_discarded": [ 26 ] -} \ No newline at end of file +} diff --git a/server/tests/test_games/tactics_cards/encircled.outcome.json b/server/tests/test_games/tactics_cards/encircled.outcome.json index 4b1a3323..4d1c9646 100644 --- a/server/tests/test_games/tactics_cards/encircled.outcome.json +++ b/server/tests/test_games/tactics_cards/encircled.outcome.json @@ -298,12 +298,23 @@ "origin": { "Ability": "Move" } + }, + { + "player": 0, + "CombatRound": { + "attackers": { + "infantry": 1 + }, + "defending_player": 1, + "defenders": { + "infantry": 2 + }, + "round": 1 + }, + "origin": { + "Ability": "Combat" + } } - ], - "log": [ - "Combat round 1", - "Player1: Combat: Attacking with 1 infantry", - "Player2: Combat: Defending with 2 infantry" ] } ] diff --git a/server/tests/test_games/tactics_cards/encircled.outcome1.json b/server/tests/test_games/tactics_cards/encircled.outcome1.json index 4ccd56f2..2640b38b 100644 --- a/server/tests/test_games/tactics_cards/encircled.outcome1.json +++ b/server/tests/test_games/tactics_cards/encircled.outcome1.json @@ -218,12 +218,23 @@ "origin": { "Ability": "Move" } + }, + { + "player": 0, + "CombatRound": { + "attackers": { + "infantry": 1 + }, + "defending_player": 1, + "defenders": { + "infantry": 2 + }, + "round": 1 + }, + "origin": { + "Ability": "Combat" + } } - ], - "log": [ - "Combat round 1", - "Player1: Combat: Attacking with 1 infantry", - "Player2: Combat: Defending with 2 infantry" ] }, { @@ -279,6 +290,66 @@ "Advance": "Tactics" } }, + { + "player": 0, + "Text": "Reveal Tactics Card Encircled", + "origin": { + "Advance": "Tactics" + } + }, + { + "player": 0, + "CombatRoll": { + "rolls": [ + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + } + ], + "combat_value": 7, + "hits": 1 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 1, + "CombatRoll": { + "rolls": [ + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + }, + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + } + ], + "combat_value": 14, + "hits": 1 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 0, + "Text": "rolls a 5 or 6 and added a hit that cannot be ignored", + "origin": { + "TacticsCard": 2 + } + }, + { + "player": 0, + "Text": "Remove all attacking units", + "origin": { + "Ability": "Choose Casualties" + } + }, { "player": 0, "Units": { @@ -292,6 +363,13 @@ "Ability": "Combat" } }, + { + "player": 1, + "Text": "Remove all defending units", + "origin": { + "Ability": "Choose Casualties" + } + }, { "player": 1, "Units": { @@ -304,17 +382,15 @@ "origin": { "Ability": "Combat" } + }, + { + "player": 0, + "Text": "ends the battle in a draw", + "origin": { + "Ability": "Combat" + } } ], - "log": [ - "Player1: Tactics: Reveal Tactics Card Encircled", - "Player1: Combat: Roll 6 (infantry, +1 combat value) for combined combat value of 7 and gets 1 hits against defending units", - "Player2: Combat: Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value) for combined combat value of 14 and gets 1 hits against attacking units", - "Player1: Encircled: Rolled a 5 or 6 and added a hit that cannot be ignored", - "Player1: Choose Casualties: Remove all attacking units", - "Player2: Choose Casualties: Remove all defending units", - "Battle ends in a draw" - ], "active_events": 1 } ] @@ -351,4 +427,4 @@ "action_cards_discarded": [ 2 ] -} \ No newline at end of file +} diff --git a/server/tests/test_games/tactics_cards/flanking.outcome1.json b/server/tests/test_games/tactics_cards/flanking.outcome1.json index ade6d90e..25398dd1 100644 --- a/server/tests/test_games/tactics_cards/flanking.outcome1.json +++ b/server/tests/test_games/tactics_cards/flanking.outcome1.json @@ -216,12 +216,23 @@ "origin": { "Ability": "Move" } + }, + { + "player": 0, + "CombatRound": { + "attackers": { + "infantry": 1 + }, + "defending_player": 1, + "defenders": { + "infantry": 2 + }, + "round": 1 + }, + "origin": { + "Ability": "Combat" + } } - ], - "log": [ - "Combat round 1", - "Player1: Combat: Attacking with 1 infantry", - "Player2: Combat: Defending with 2 infantry" ] }, { @@ -277,6 +288,67 @@ "Advance": "Tactics" } }, + { + "player": 0, + "Text": "Reveal Tactics Card Flanking", + "origin": { + "Advance": "Tactics" + } + }, + { + "player": 0, + "CombatRoll": { + "rolls": [ + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + }, + { + "value": 6, + "unit_type": "Infantry", + "bonus": false + } + ], + "combat_value": 13, + "hits": 2, + "combat_modifiers": [ + "Flanking added 1 extra die" + ] + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 1, + "CombatRoll": { + "rolls": [ + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + }, + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + } + ], + "combat_value": 14, + "hits": 1 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 0, + "Text": "Remove all attacking units", + "origin": { + "Ability": "Choose Casualties" + } + }, { "player": 0, "Units": { @@ -290,6 +362,13 @@ "Ability": "Combat" } }, + { + "player": 1, + "Text": "Remove all defending units", + "origin": { + "Ability": "Choose Casualties" + } + }, { "player": 1, "Units": { @@ -302,16 +381,15 @@ "origin": { "Ability": "Combat" } + }, + { + "player": 0, + "Text": "ends the battle in a draw", + "origin": { + "Ability": "Combat" + } } ], - "log": [ - "Player1: Tactics: Reveal Tactics Card Flanking", - "Player1: Combat: Roll 6 (infantry, +1 combat value), 6 (infantry, no bonus) for combined combat value of 13 and gets 2 hits against defending units, Combat modifiers: Flanking added 1 extra die", - "Player2: Combat: Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value) for combined combat value of 14 and gets 1 hits against attacking units", - "Player1: Choose Casualties: Remove all attacking units", - "Player2: Choose Casualties: Remove all defending units", - "Battle ends in a draw" - ], "active_events": 1 } ] diff --git a/server/tests/test_games/tactics_cards/heavy_resistance.outcome1.json b/server/tests/test_games/tactics_cards/heavy_resistance.outcome1.json index 4e9e73db..9ee13754 100644 --- a/server/tests/test_games/tactics_cards/heavy_resistance.outcome1.json +++ b/server/tests/test_games/tactics_cards/heavy_resistance.outcome1.json @@ -225,12 +225,23 @@ "origin": { "Ability": "Move" } + }, + { + "player": 0, + "CombatRound": { + "attackers": { + "infantry": 1 + }, + "defending_player": 1, + "defenders": { + "infantry": 2 + }, + "round": 1 + }, + "origin": { + "Ability": "Combat" + } } - ], - "log": [ - "Combat round 1", - "Player1: Combat: Attacking with 1 infantry", - "Player2: Combat: Defending with 2 infantry" ] }, { @@ -286,6 +297,62 @@ "Advance": "Tactics" } }, + { + "player": 1, + "Text": "Reveal Tactics Card Heavy Resistance", + "origin": { + "Advance": "Tactics" + } + }, + { + "player": 0, + "CombatRoll": { + "rolls": [ + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + } + ], + "combat_value": 6, + "hits": 1, + "combat_modifiers": [ + "Heavy resistance added -1 to combat value for each unit" + ] + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 1, + "CombatRoll": { + "rolls": [ + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + }, + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + } + ], + "combat_value": 14, + "hits": 1 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 0, + "Text": "Remove all attacking units", + "origin": { + "Ability": "Choose Casualties" + } + }, { "player": 0, "Units": { @@ -299,6 +366,13 @@ "Ability": "Combat" } }, + { + "player": 1, + "Text": "Remove 1 of their defending units", + "origin": { + "Ability": "Choose Casualties" + } + }, { "player": 1, "Units": { @@ -311,16 +385,15 @@ "origin": { "Ability": "Combat" } + }, + { + "player": 1, + "Text": "wins the battle", + "origin": { + "Ability": "Combat" + } } ], - "log": [ - "Player2: Tactics: Reveal Tactics Card Heavy Resistance", - "Player1: Combat: Roll 6 (infantry, +1 combat value) for combined combat value of 6 and gets 1 hits against defending units, Combat modifiers: Heavy resistance added -1 to combat value for each unit", - "Player2: Combat: Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value) for combined combat value of 14 and gets 1 hits against attacking units", - "Player1: Choose Casualties: Remove all attacking units", - "Player2: Choose Casualties: Remove 1 of their defending units", - "Defender wins" - ], "active_events": 1 } ] diff --git a/server/tests/test_games/tactics_cards/high_ground.outcome2.json b/server/tests/test_games/tactics_cards/high_ground.outcome2.json index d9bcf20d..1adfd479 100644 --- a/server/tests/test_games/tactics_cards/high_ground.outcome2.json +++ b/server/tests/test_games/tactics_cards/high_ground.outcome2.json @@ -225,12 +225,23 @@ "origin": { "Ability": "Move" } + }, + { + "player": 0, + "CombatRound": { + "attackers": { + "infantry": 1 + }, + "defending_player": 1, + "defenders": { + "infantry": 2 + }, + "round": 1 + }, + "origin": { + "Ability": "Combat" + } } - ], - "log": [ - "Combat round 1", - "Player1: Combat: Attacking with 1 infantry", - "Player2: Combat: Defending with 2 infantry" ] }, { @@ -316,6 +327,70 @@ "Advance": "Tactics" } }, + { + "player": 0, + "Text": "Reveal Tactics Card Peltasts", + "origin": { + "Advance": "Tactics" + } + }, + { + "player": 1, + "Text": "Reveal Tactics Card High Ground", + "origin": { + "Advance": "Tactics" + } + }, + { + "player": 0, + "CombatRoll": { + "rolls": [ + { + "value": 6, + "unit_type": "Infantry", + "bonus": false + } + ], + "combat_value": 6, + "hits": 1, + "combat_modifiers": [ + "Peltasts rolls a 6 and ignored a hit", + "High Ground prevents opponent from using combat abilities" + ] + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 1, + "CombatRoll": { + "rolls": [ + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + }, + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + } + ], + "combat_value": 14, + "hits": 1 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 0, + "Text": "Remove all attacking units", + "origin": { + "Ability": "Choose Casualties" + } + }, { "player": 0, "Units": { @@ -329,6 +404,13 @@ "Ability": "Combat" } }, + { + "player": 1, + "Text": "Remove 1 of their defending units", + "origin": { + "Ability": "Choose Casualties" + } + }, { "player": 1, "Units": { @@ -341,17 +423,15 @@ "origin": { "Ability": "Combat" } + }, + { + "player": 1, + "Text": "wins the battle", + "origin": { + "Ability": "Combat" + } } ], - "log": [ - "Player1: Tactics: Reveal Tactics Card Peltasts", - "Player2: Tactics: Reveal Tactics Card High Ground", - "Player1: Combat: Roll 6 (infantry, no bonus) for combined combat value of 6 and gets 1 hits against defending units, Combat modifiers: Peltasts rolled a 6 and ignored a hit, High Ground prevents opponent from using combat abilities", - "Player2: Combat: Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value) for combined combat value of 14 and gets 1 hits against attacking units", - "Player1: Choose Casualties: Remove all attacking units", - "Player2: Choose Casualties: Remove 1 of their defending units", - "Defender wins" - ], "active_events": 1 } ] @@ -389,4 +469,4 @@ 1, 9 ] -} \ No newline at end of file +} diff --git a/server/tests/test_games/tactics_cards/high_morale.outcome1.json b/server/tests/test_games/tactics_cards/high_morale.outcome1.json index 5b86b11d..3e5ab9d8 100644 --- a/server/tests/test_games/tactics_cards/high_morale.outcome1.json +++ b/server/tests/test_games/tactics_cards/high_morale.outcome1.json @@ -225,12 +225,23 @@ "origin": { "Ability": "Move" } + }, + { + "player": 0, + "CombatRound": { + "attackers": { + "infantry": 1 + }, + "defending_player": 1, + "defenders": { + "infantry": 2 + }, + "round": 1 + }, + "origin": { + "Ability": "Combat" + } } - ], - "log": [ - "Combat round 1", - "Player1: Combat: Attacking with 1 infantry", - "Player2: Combat: Defending with 2 infantry" ] }, { @@ -286,6 +297,62 @@ "Advance": "Tactics" } }, + { + "player": 0, + "Text": "Reveal Tactics Card High Morale", + "origin": { + "Advance": "Tactics" + } + }, + { + "player": 0, + "CombatRoll": { + "rolls": [ + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + } + ], + "combat_value": 9, + "hits": 1, + "combat_modifiers": [ + "High Morale added 2 combat value" + ] + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 1, + "CombatRoll": { + "rolls": [ + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + }, + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + } + ], + "combat_value": 14, + "hits": 1 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 0, + "Text": "Remove all attacking units", + "origin": { + "Ability": "Choose Casualties" + } + }, { "player": 0, "Units": { @@ -299,6 +366,13 @@ "Ability": "Combat" } }, + { + "player": 1, + "Text": "Remove 1 of their defending units", + "origin": { + "Ability": "Choose Casualties" + } + }, { "player": 1, "Units": { @@ -311,16 +385,15 @@ "origin": { "Ability": "Combat" } + }, + { + "player": 1, + "Text": "wins the battle", + "origin": { + "Ability": "Combat" + } } ], - "log": [ - "Player1: Tactics: Reveal Tactics Card High Morale", - "Player1: Combat: Roll 6 (infantry, +1 combat value) for combined combat value of 9 and gets 1 hits against defending units, Combat modifiers: High Morale added 2 combat value", - "Player2: Combat: Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value) for combined combat value of 14 and gets 1 hits against attacking units", - "Player1: Choose Casualties: Remove all attacking units", - "Player2: Choose Casualties: Remove 1 of their defending units", - "Defender wins" - ], "active_events": 1 } ] diff --git a/server/tests/test_games/tactics_cards/martyr.outcome4.json b/server/tests/test_games/tactics_cards/martyr.outcome4.json index 7cfd1214..7a2735b7 100644 --- a/server/tests/test_games/tactics_cards/martyr.outcome4.json +++ b/server/tests/test_games/tactics_cards/martyr.outcome4.json @@ -282,12 +282,26 @@ "origin": { "Ability": "Move" } + }, + { + "player": 0, + "CombatRound": { + "attackers": { + "settlers": 1, + "ships": 2, + "cavalry": 1, + "elephants": 1 + }, + "defending_player": 1, + "defenders": { + "ships": 1 + }, + "round": 1 + }, + "origin": { + "Ability": "Combat" + } } - ], - "log": [ - "Combat round 1", - "Player1: Combat: Attacking with 1 settler, 2 ships, 1 cavalry and 1 elephant", - "Player2: Combat: Defending with 1 ship" ] }, { @@ -346,13 +360,29 @@ "origin": { "Advance": "Tactics" } + }, + { + "player": 0, + "Text": "Reveal Tactics Card High Morale", + "origin": { + "Advance": "Tactics" + } + }, + { + "player": 1, + "Text": "Reveal Tactics Card Martyr", + "origin": { + "Advance": "Tactics" + } + }, + { + "player": 0, + "Text": "Cannot use tactics card (but it is still discarded)", + "origin": { + "TacticsCard": 24 + } } ], - "log": [ - "Player1: Tactics: Reveal Tactics Card High Morale", - "Player2: Tactics: Reveal Tactics Card Martyr", - "Player1: Martyr: Cannot use tactics card (but it is still discarded)" - ], "active_events": 1 }, { @@ -365,6 +395,13 @@ }, "player": 0, "items": [ + { + "player": 0, + "Text": "Player1 sacrifices a ship", + "origin": { + "TacticsCard": 24 + } + }, { "player": 0, "Units": { @@ -379,9 +416,6 @@ } } ], - "log": [ - "Player1: Martyr: Player1 sacrifices a ship" - ], "active_events": 1 }, { @@ -419,6 +453,13 @@ "result": "AttackerWins" }, "items": [ + { + "player": 0, + "Text": "Killed carried units: 1 elephant", + "origin": { + "Ability": "Choose Casualties (carried units)" + } + }, { "player": 0, "Units": { @@ -432,6 +473,13 @@ "Ability": "Choose Casualties (carried units)" } }, + { + "player": 1, + "Text": "Player2 sacrifices a ship", + "origin": { + "TacticsCard": 24 + } + }, { "player": 1, "Units": { @@ -444,15 +492,43 @@ "origin": { "Ability": "Combat" } + }, + { + "player": 0, + "CombatRoll": { + "rolls": [ + { + "value": 6, + "unit_type": "Infantry", + "bonus": false + } + ], + "combat_value": 6, + "hits": 0 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 1, + "CombatRoll": { + "rolls": [], + "combat_value": 0, + "hits": 0 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 0, + "Text": "wins the battle", + "origin": { + "Ability": "Combat" + } } ], - "log": [ - "Player1: Choose Casualties (carried units): Killed carried units: 1 elephant", - "Player2: Martyr: Player2 sacrifices a ship", - "Player1: Combat: Roll 6 (infantry, no bonus) for combined combat value of 6 and gets 0 hits against defending units", - "Player2: Combat: Roll no dice for combined combat value of 0 and gets 0 hits against attacking units", - "Attacker wins" - ], "active_events": 2 } ] diff --git a/server/tests/test_games/tactics_cards/martyr2.outcome1.json b/server/tests/test_games/tactics_cards/martyr2.outcome1.json index 11fc1e9d..e054f93c 100644 --- a/server/tests/test_games/tactics_cards/martyr2.outcome1.json +++ b/server/tests/test_games/tactics_cards/martyr2.outcome1.json @@ -619,6 +619,13 @@ }, "player": 0, "items": [ + { + "player": 0, + "Text": "Spock sacrifices an Alexander the Great", + "origin": { + "TacticsCard": 24 + } + }, { "player": 0, "Units": { @@ -633,9 +640,6 @@ } } ], - "log": [ - "Spock: Martyr: Spock sacrifices an Alexander the Great" - ], "active_events": 1 }, { @@ -679,6 +683,13 @@ "city_mood": "Happy" }, "items": [ + { + "player": 1, + "Text": "AlphaZero sacrifices a Wu Zetian", + "origin": { + "TacticsCard": 24 + } + }, { "player": 1, "Units": { @@ -692,6 +703,73 @@ "Ability": "Combat" } }, + { + "player": 0, + "CombatRoll": { + "rolls": [ + { + "value": 2, + "unit_type": "Elephant", + "bonus": false + }, + { + "value": 5, + "unit_type": "Infantry", + "bonus": true + }, + { + "value": 5, + "unit_type": "Infantry", + "bonus": true + } + ], + "combat_value": 16, + "hits": 3, + "combat_modifiers": [ + "Ruler of the World adds 2 combat value" + ] + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 1, + "CombatRoll": { + "rolls": [ + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + }, + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + }, + { + "value": 2, + "unit_type": "Elephant", + "bonus": false + } + ], + "combat_value": 18, + "hits": 3, + "combat_modifiers": [ + "Wu Zetian adds +2 combat value" + ] + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 0, + "Text": "Remove all attacking units", + "origin": { + "Ability": "Choose Casualties" + } + }, { "player": 0, "Units": { @@ -705,6 +783,20 @@ "Ability": "Combat" } }, + { + "player": 1, + "Text": "Not enough resources, no payment made.", + "origin": { + "SpecialAdvance": "Fireworks" + } + }, + { + "player": 1, + "Text": "Remove all defending units", + "origin": { + "Ability": "Choose Casualties" + } + }, { "player": 1, "Units": { @@ -717,17 +809,15 @@ "origin": { "Ability": "Combat" } + }, + { + "player": 0, + "Text": "ends the battle in a draw", + "origin": { + "Ability": "Combat" + } } ], - "log": [ - "AlphaZero: Martyr: AlphaZero sacrifices a Wu Zetian", - "Spock: Combat: Roll 2 (elephant, no bonus), 5 (infantry, +1 combat value), 5 (infantry, +1 combat value) for combined combat value of 16 and gets 3 hits against defending units, Combat modifiers: Ruler of the World adds 2 combat value", - "AlphaZero: Combat: Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value), 2 (elephant, no bonus) for combined combat value of 18 and gets 3 hits against attacking units, Combat modifiers: Wu Zetian adds +2 combat value", - "Spock: Choose Casualties: Remove all attacking units", - "AlphaZero: Fireworks: Not enough resources, no payment made.", - "AlphaZero: Choose Casualties: Remove all defending units", - "Battle ends in a draw" - ], "active_events": 1 } ] diff --git a/server/tests/test_games/tactics_cards/peltasts.outcome.json b/server/tests/test_games/tactics_cards/peltasts.outcome.json index b2dc78a3..78e04215 100644 --- a/server/tests/test_games/tactics_cards/peltasts.outcome.json +++ b/server/tests/test_games/tactics_cards/peltasts.outcome.json @@ -298,12 +298,23 @@ "origin": { "Ability": "Move" } + }, + { + "player": 0, + "CombatRound": { + "attackers": { + "infantry": 1 + }, + "defending_player": 1, + "defenders": { + "infantry": 2 + }, + "round": 1 + }, + "origin": { + "Ability": "Combat" + } } - ], - "log": [ - "Combat round 1", - "Player1: Combat: Attacking with 1 infantry", - "Player2: Combat: Defending with 2 infantry" ] } ] diff --git a/server/tests/test_games/tactics_cards/peltasts.outcome1.json b/server/tests/test_games/tactics_cards/peltasts.outcome1.json index 7207fa35..e5757c7f 100644 --- a/server/tests/test_games/tactics_cards/peltasts.outcome1.json +++ b/server/tests/test_games/tactics_cards/peltasts.outcome1.json @@ -225,12 +225,23 @@ "origin": { "Ability": "Move" } + }, + { + "player": 0, + "CombatRound": { + "attackers": { + "infantry": 1 + }, + "defending_player": 1, + "defenders": { + "infantry": 2 + }, + "round": 1 + }, + "origin": { + "Ability": "Combat" + } } - ], - "log": [ - "Combat round 1", - "Player1: Combat: Attacking with 1 infantry", - "Player2: Combat: Defending with 2 infantry" ] }, { @@ -286,6 +297,62 @@ "Advance": "Tactics" } }, + { + "player": 0, + "Text": "Reveal Tactics Card Peltasts", + "origin": { + "Advance": "Tactics" + } + }, + { + "player": 0, + "CombatRoll": { + "rolls": [ + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + } + ], + "combat_value": 7, + "hits": 1, + "combat_modifiers": [ + "Peltasts rolls a 6 and ignored a hit" + ] + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 1, + "CombatRoll": { + "rolls": [ + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + }, + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + } + ], + "combat_value": 14, + "hits": 1 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 0, + "Text": "Remove all attacking units", + "origin": { + "Ability": "Choose Casualties" + } + }, { "player": 0, "Units": { @@ -299,6 +366,13 @@ "Ability": "Combat" } }, + { + "player": 1, + "Text": "Remove 1 of their defending units", + "origin": { + "Ability": "Choose Casualties" + } + }, { "player": 1, "Units": { @@ -311,16 +385,15 @@ "origin": { "Ability": "Combat" } + }, + { + "player": 1, + "Text": "wins the battle", + "origin": { + "Ability": "Combat" + } } ], - "log": [ - "Player1: Tactics: Reveal Tactics Card Peltasts", - "Player1: Combat: Roll 6 (infantry, +1 combat value) for combined combat value of 7 and gets 1 hits against defending units, Combat modifiers: Peltasts rolled a 6 and ignored a hit", - "Player2: Combat: Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value) for combined combat value of 14 and gets 1 hits against attacking units", - "Player1: Choose Casualties: Remove all attacking units", - "Player2: Choose Casualties: Remove 1 of their defending units", - "Defender wins" - ], "active_events": 1 } ] @@ -357,4 +430,4 @@ "action_cards_discarded": [ 1 ] -} \ No newline at end of file +} diff --git a/server/tests/test_games/tactics_cards/scout.outcome2.json b/server/tests/test_games/tactics_cards/scout.outcome2.json index aa8cf0a9..32d250e2 100644 --- a/server/tests/test_games/tactics_cards/scout.outcome2.json +++ b/server/tests/test_games/tactics_cards/scout.outcome2.json @@ -228,12 +228,23 @@ "origin": { "Ability": "Move" } + }, + { + "player": 0, + "CombatRound": { + "attackers": { + "infantry": 1 + }, + "defending_player": 1, + "defenders": { + "infantry": 2 + }, + "round": 1 + }, + "origin": { + "Ability": "Combat" + } } - ], - "log": [ - "Combat round 1", - "Player1: Combat: Attacking with 1 infantry", - "Player2: Combat: Defending with 2 infantry" ] }, { @@ -319,6 +330,27 @@ "Advance": "Tactics" } }, + { + "player": 0, + "Text": "Reveal Tactics Card Peltasts", + "origin": { + "Advance": "Tactics" + } + }, + { + "player": 1, + "Text": "Reveal Tactics Card Scout", + "origin": { + "Advance": "Tactics" + } + }, + { + "player": 1, + "Text": "Ignore the enemy tactics", + "origin": { + "TacticsCard": 23 + } + }, { "player": 1, "HandCard": { @@ -334,6 +366,52 @@ "TacticsCard": 23 } }, + { + "player": 0, + "CombatRoll": { + "rolls": [ + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + } + ], + "combat_value": 7, + "hits": 1 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 1, + "CombatRoll": { + "rolls": [ + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + }, + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + } + ], + "combat_value": 14, + "hits": 1 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 0, + "Text": "Remove all attacking units", + "origin": { + "Ability": "Choose Casualties" + } + }, { "player": 0, "Units": { @@ -347,6 +425,13 @@ "Ability": "Combat" } }, + { + "player": 1, + "Text": "Remove 1 of their defending units", + "origin": { + "Ability": "Choose Casualties" + } + }, { "player": 1, "Units": { @@ -359,18 +444,15 @@ "origin": { "Ability": "Combat" } + }, + { + "player": 1, + "Text": "wins the battle", + "origin": { + "Ability": "Combat" + } } ], - "log": [ - "Player1: Tactics: Reveal Tactics Card Peltasts", - "Player2: Tactics: Reveal Tactics Card Scout", - "Player2: Scout: Ignore the enemy tactics", - "Player1: Combat: Roll 6 (infantry, +1 combat value) for combined combat value of 7 and gets 1 hits against defending units", - "Player2: Combat: Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value) for combined combat value of 14 and gets 1 hits against attacking units", - "Player1: Choose Casualties: Remove all attacking units", - "Player2: Choose Casualties: Remove 1 of their defending units", - "Defender wins" - ], "active_events": 1 } ] diff --git a/server/tests/test_games/tactics_cards/siege.outcome1.json b/server/tests/test_games/tactics_cards/siege.outcome1.json index c31cf078..122d0e1d 100644 --- a/server/tests/test_games/tactics_cards/siege.outcome1.json +++ b/server/tests/test_games/tactics_cards/siege.outcome1.json @@ -223,12 +223,23 @@ "origin": { "Ability": "Move" } + }, + { + "player": 0, + "CombatRound": { + "attackers": { + "infantry": 1 + }, + "defending_player": 1, + "defenders": { + "infantry": 2 + }, + "round": 1 + }, + "origin": { + "Ability": "Combat" + } } - ], - "log": [ - "Combat round 1", - "Player1: Combat: Attacking with 1 infantry", - "Player2: Combat: Defending with 2 infantry" ] }, { @@ -284,6 +295,65 @@ "Advance": "Tactics" } }, + { + "player": 0, + "Text": "Reveal Tactics Card Siege", + "origin": { + "Advance": "Tactics" + } + }, + { + "player": 0, + "CombatRoll": { + "rolls": [ + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + } + ], + "combat_value": 8, + "hits": 1, + "combat_modifiers": [ + "Siege added 1 to combat value" + ] + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 1, + "CombatRoll": { + "rolls": [ + { + "value": 6, + "unit_type": "Infantry", + "bonus": false + }, + { + "value": 6, + "unit_type": "Infantry", + "bonus": false + } + ], + "combat_value": 12, + "hits": 1, + "combat_modifiers": [ + "Siege prevents opponent from using combat abilities" + ] + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 0, + "Text": "Remove all attacking units", + "origin": { + "Ability": "Choose Casualties" + } + }, { "player": 0, "Units": { @@ -297,6 +367,13 @@ "Ability": "Combat" } }, + { + "player": 1, + "Text": "Remove 1 of their defending units", + "origin": { + "Ability": "Choose Casualties" + } + }, { "player": 1, "Units": { @@ -309,16 +386,15 @@ "origin": { "Ability": "Combat" } + }, + { + "player": 1, + "Text": "wins the battle", + "origin": { + "Ability": "Combat" + } } ], - "log": [ - "Player1: Tactics: Reveal Tactics Card Siege", - "Player1: Combat: Roll 6 (infantry, +1 combat value) for combined combat value of 8 and gets 1 hits against defending units, Combat modifiers: Siege added 1 to combat value", - "Player2: Combat: Roll 6 (infantry, no bonus), 6 (infantry, no bonus) for combined combat value of 12 and gets 1 hits against attacking units, Combat modifiers: Siege prevents opponent from using combat abilities", - "Player1: Choose Casualties: Remove all attacking units", - "Player2: Choose Casualties: Remove 1 of their defending units", - "Defender wins" - ], "active_events": 1 } ] diff --git a/server/tests/test_games/tactics_cards/surprise.outcome1.json b/server/tests/test_games/tactics_cards/surprise.outcome1.json index fba6606c..dbcdea63 100644 --- a/server/tests/test_games/tactics_cards/surprise.outcome1.json +++ b/server/tests/test_games/tactics_cards/surprise.outcome1.json @@ -228,12 +228,23 @@ "origin": { "Ability": "Move" } + }, + { + "player": 0, + "CombatRound": { + "attackers": { + "infantry": 1 + }, + "defending_player": 1, + "defenders": { + "infantry": 2 + }, + "round": 1 + }, + "origin": { + "Ability": "Combat" + } } - ], - "log": [ - "Combat round 1", - "Player1: Combat: Attacking with 1 infantry", - "Player2: Combat: Defending with 2 infantry" ] }, { @@ -289,6 +300,62 @@ "Advance": "Tactics" } }, + { + "player": 1, + "Text": "Reveal Tactics Card Surprise", + "origin": { + "Advance": "Tactics" + } + }, + { + "player": 0, + "CombatRoll": { + "rolls": [ + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + } + ], + "combat_value": 7, + "hits": 1 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 1, + "CombatRoll": { + "rolls": [ + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + }, + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + } + ], + "combat_value": 15, + "hits": 1, + "combat_modifiers": [ + "Surprise added 1 to combat value" + ] + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 1, + "Text": "Draw 1 action card for Surprise tactics", + "origin": { + "TacticsCard": 10 + } + }, { "player": 1, "HandCard": { @@ -304,6 +371,13 @@ "TacticsCard": 10 } }, + { + "player": 0, + "Text": "Remove all attacking units", + "origin": { + "Ability": "Choose Casualties" + } + }, { "player": 0, "Units": { @@ -317,6 +391,13 @@ "Ability": "Combat" } }, + { + "player": 1, + "Text": "Remove 1 of their defending units", + "origin": { + "Ability": "Choose Casualties" + } + }, { "player": 1, "Units": { @@ -329,17 +410,15 @@ "origin": { "Ability": "Combat" } + }, + { + "player": 1, + "Text": "wins the battle", + "origin": { + "Ability": "Combat" + } } ], - "log": [ - "Player2: Tactics: Reveal Tactics Card Surprise", - "Player1: Combat: Roll 6 (infantry, +1 combat value) for combined combat value of 7 and gets 1 hits against defending units", - "Player2: Combat: Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value) for combined combat value of 15 and gets 1 hits against attacking units, Combat modifiers: Surprise added 1 to combat value", - "Player2: Surprise: Draw 1 action card for Surprise tactics", - "Player1: Choose Casualties: Remove all attacking units", - "Player2: Choose Casualties: Remove 1 of their defending units", - "Defender wins" - ], "active_events": 1 } ] diff --git a/server/tests/test_games/tactics_cards/wedge_formation.outcome1.json b/server/tests/test_games/tactics_cards/wedge_formation.outcome1.json index f51cfe5a..a1587f9d 100644 --- a/server/tests/test_games/tactics_cards/wedge_formation.outcome1.json +++ b/server/tests/test_games/tactics_cards/wedge_formation.outcome1.json @@ -225,12 +225,23 @@ "origin": { "Ability": "Move" } + }, + { + "player": 0, + "CombatRound": { + "attackers": { + "infantry": 1 + }, + "defending_player": 1, + "defenders": { + "infantry": 2 + }, + "round": 1 + }, + "origin": { + "Ability": "Combat" + } } - ], - "log": [ - "Combat round 1", - "Player1: Combat: Attacking with 1 infantry", - "Player2: Combat: Defending with 2 infantry" ] }, { @@ -286,6 +297,62 @@ "Advance": "Tactics" } }, + { + "player": 0, + "Text": "Reveal Tactics Card Wedge Formation", + "origin": { + "Advance": "Tactics" + } + }, + { + "player": 0, + "CombatRoll": { + "rolls": [ + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + } + ], + "combat_value": 9, + "hits": 1, + "combat_modifiers": [ + "Wedge Formation added 2 combat value" + ] + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 1, + "CombatRoll": { + "rolls": [ + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + }, + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + } + ], + "combat_value": 14, + "hits": 1 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 0, + "Text": "Remove all attacking units", + "origin": { + "Ability": "Choose Casualties" + } + }, { "player": 0, "Units": { @@ -299,6 +366,13 @@ "Ability": "Combat" } }, + { + "player": 1, + "Text": "Remove 1 of their defending units", + "origin": { + "Ability": "Choose Casualties" + } + }, { "player": 1, "Units": { @@ -311,16 +385,15 @@ "origin": { "Ability": "Combat" } + }, + { + "player": 1, + "Text": "wins the battle", + "origin": { + "Ability": "Combat" + } } ], - "log": [ - "Player1: Tactics: Reveal Tactics Card Wedge Formation", - "Player1: Combat: Roll 6 (infantry, +1 combat value) for combined combat value of 9 and gets 1 hits against defending units, Combat modifiers: Wedge Formation added 2 combat value", - "Player2: Combat: Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value) for combined combat value of 14 and gets 1 hits against attacking units", - "Player1: Choose Casualties: Remove all attacking units", - "Player2: Choose Casualties: Remove 1 of their defending units", - "Defender wins" - ], "active_events": 1 } ] diff --git a/server/tests/test_games/wonders/colosseum.outcome6.json b/server/tests/test_games/wonders/colosseum.outcome6.json index fe2b035a..a2329b78 100644 --- a/server/tests/test_games/wonders/colosseum.outcome6.json +++ b/server/tests/test_games/wonders/colosseum.outcome6.json @@ -210,7 +210,7 @@ }, "player": 0, "origin": { - "Wonder": "Colosseum" + "Ability": "Build Wonder" }, "items": [ { @@ -222,9 +222,6 @@ "Ability": "Build Wonder" } } - ], - "log": [ - "Player1: Build Wonder: Play the wonder card Colosseum, Decided to build Colosseum in city A1" ] }, { @@ -393,12 +390,79 @@ "origin": { "Ability": "Move" } + }, + { + "player": 0, + "CombatRound": { + "attackers": { + "infantry": 2, + "cavalry": 1, + "elephants": 1 + }, + "defending_player": 1, + "defenders": { + "infantry": 2 + }, + "round": 1 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 0, + "CombatRoll": { + "rolls": [ + { + "value": 4, + "unit_type": "Elephant", + "bonus": true + }, + { + "value": 4, + "unit_type": "Elephant", + "bonus": false + }, + { + "value": 3, + "unit_type": "Elephant", + "bonus": false + }, + { + "value": 2, + "unit_type": "Elephant", + "bonus": false + } + ], + "combat_value": 9, + "hits": 1 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 1, + "CombatRoll": { + "rolls": [ + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + }, + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + } + ], + "combat_value": 14, + "hits": 1 + }, + "origin": { + "Ability": "Combat" + } } - ], - "log": [ - "Combat round 1", - "Player1: Combat: Attacking with 2 infantry, 1 cavalry and 1 elephant, Roll 4 (elephant, -1 hits, no combat value), 4 (elephant, no bonus), 3 (elephant, no bonus), 2 (elephant, no bonus) for combined combat value of 9 and gets 1 hits against defending units", - "Player2: Combat: Defending with 2 infantry, Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value) for combined combat value of 14 and gets 1 hits against attacking units" ] }, { @@ -424,12 +488,22 @@ "origin": { "Wonder": "Colosseum" } + }, + { + "player": 0, + "Text": "Increase combat value by 1, scoring an extra hit", + "origin": { + "Wonder": "Colosseum" + } + }, + { + "player": 0, + "Text": "Remove 1 of their attacking units", + "origin": { + "Ability": "Choose Casualties" + } } ], - "log": [ - "Player1: Colosseum: Increase combat value by 1, scoring an extra hit", - "Player1: Choose Casualties: Remove 1 of their attacking units" - ], "active_events": 1 }, { @@ -483,6 +557,13 @@ "Ability": "Combat" } }, + { + "player": 1, + "Text": "Remove all defending units", + "origin": { + "Ability": "Choose Casualties" + } + }, { "player": 1, "Units": { @@ -496,6 +577,13 @@ "Ability": "Combat" } }, + { + "player": 0, + "Text": "wins the battle", + "origin": { + "Ability": "Combat" + } + }, { "player": 0, "Resources": { @@ -545,10 +633,6 @@ } } ], - "log": [ - "Player2: Choose Casualties: Remove all defending units", - "Attacker wins" - ], "active_events": 1 } ] diff --git a/server/tests/test_games/wonders/great_gardens.outcome3.json b/server/tests/test_games/wonders/great_gardens.outcome3.json index 81c8b505..c3dd0b9f 100644 --- a/server/tests/test_games/wonders/great_gardens.outcome3.json +++ b/server/tests/test_games/wonders/great_gardens.outcome3.json @@ -214,7 +214,7 @@ }, "player": 0, "origin": { - "Wonder": "GreatGardens" + "Ability": "Build Wonder" }, "items": [ { @@ -226,9 +226,6 @@ "Ability": "Build Wonder" } } - ], - "log": [ - "Player1: Build Wonder: Play the wonder card Great Gardens, Decided to build Great Gardens in city A1" ] }, { diff --git a/server/tests/test_games/wonders/great_mausoleum.outcome4.json b/server/tests/test_games/wonders/great_mausoleum.outcome4.json index d73779cc..dc7ed457 100644 --- a/server/tests/test_games/wonders/great_mausoleum.outcome4.json +++ b/server/tests/test_games/wonders/great_mausoleum.outcome4.json @@ -5,6 +5,9 @@ "event_type": { "Incident": { "incident_id": 1, + "cause": { + "Advance": "Storage" + }, "active_player": 0 } }, @@ -282,6 +285,13 @@ }, "player": 0, "items": [ + { + "player": 0, + "Text": "Draw Inspiration/Peltasts from the discard pile", + "origin": { + "Ability": "Great Mausoleum" + } + }, { "player": 0, "HandCard": { @@ -298,9 +308,6 @@ } } ], - "log": [ - "Player1: Great Mausoleum: Draw Inspiration/Peltasts from the discard pile" - ], "active_events": 1 }, { @@ -400,9 +407,21 @@ } }, "player": 0, - "log": [ - "Player1: Great Mausoleum: Drew Pestilence from the discard pile", - "A new game event has been triggered: Pestilence" + "items": [ + { + "player": 0, + "Text": "Drew Pestilence from the discard pile", + "origin": { + "Ability": "Great Mausoleum" + } + }, + { + "player": 0, + "Text": "triggers the event Pestilence", + "origin": { + "Advance": "Storage" + } + } ], "active_events": 1 } diff --git a/server/tests/test_games/wonders/great_statue.outcome2.json b/server/tests/test_games/wonders/great_statue.outcome2.json index 998e280f..0160e6a2 100644 --- a/server/tests/test_games/wonders/great_statue.outcome2.json +++ b/server/tests/test_games/wonders/great_statue.outcome2.json @@ -215,7 +215,7 @@ }, "player": 0, "origin": { - "Wonder": "GreatStatue" + "Ability": "Build Wonder" }, "items": [ { @@ -227,9 +227,6 @@ "Ability": "Build Wonder" } } - ], - "log": [ - "Player1: Build Wonder: Play the wonder card Great Statue, Decided to build Great Statue in city A1" ] }, { diff --git a/server/tests/test_games/wonders/great_wall.outcome3.json b/server/tests/test_games/wonders/great_wall.outcome3.json index c0432c05..0ae6b842 100644 --- a/server/tests/test_games/wonders/great_wall.outcome3.json +++ b/server/tests/test_games/wonders/great_wall.outcome3.json @@ -307,6 +307,77 @@ "Ability": "Move" } }, + { + "player": 1, + "CombatRound": { + "attackers": { + "infantry": 2 + }, + "defending_player": 0, + "defenders": { + "infantry": 1, + "cavalry": 1 + }, + "round": 1 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 1, + "CombatRoll": { + "rolls": [ + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + }, + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + } + ], + "combat_value": 14, + "hits": 2 + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 0, + "CombatRoll": { + "rolls": [ + { + "value": 6, + "unit_type": "Infantry", + "bonus": true + }, + { + "value": 6, + "unit_type": "Infantry", + "bonus": false + } + ], + "combat_value": 11, + "hits": 2, + "combat_modifiers": [ + "Great Wall gives -2 combat value in the first round" + ] + }, + "origin": { + "Ability": "Combat" + } + }, + { + "player": 1, + "Text": "Remove all attacking units", + "origin": { + "Ability": "Choose Casualties" + } + }, { "player": 1, "Units": { @@ -320,6 +391,13 @@ "Ability": "Combat" } }, + { + "player": 0, + "Text": "Remove all defending units", + "origin": { + "Ability": "Choose Casualties" + } + }, { "player": 0, "Units": { @@ -333,15 +411,14 @@ "origin": { "Ability": "Combat" } + }, + { + "player": 1, + "Text": "ends the battle in a draw", + "origin": { + "Ability": "Combat" + } } - ], - "log": [ - "Combat round 1", - "Player2: Combat: Attacking with 2 infantry, Roll 6 (infantry, +1 combat value), 6 (infantry, +1 combat value) for combined combat value of 14 and gets 2 hits against defending units", - "Player1: Combat: Defending with 1 infantry and 1 cavalry, Roll 6 (infantry, +1 combat value), 6 (infantry, no bonus) for combined combat value of 11 and gets 2 hits against attacking units, Combat modifiers: Great Wall gives -2 combat value in the first round", - "Player2: Choose Casualties: Remove all attacking units", - "Player1: Choose Casualties: Remove all defending units", - "Battle ends in a draw" ] }, { @@ -463,6 +540,34 @@ "Ability": "Advance" } }, + { + "player": 0, + "Text": "triggers the event Envoy", + "origin": { + "Advance": "Storage" + } + }, + { + "player": 0, + "Text": "Base effect: Barbarians move", + "origin": { + "Incident": 40 + } + }, + { + "player": 0, + "Text": "Barbarians move from A2 to A1: 1 infantry and 1 elephant", + "origin": { + "Incident": 40 + } + }, + { + "player": 0, + "Text": "Automatic win against Barbarians", + "origin": { + "Wonder": "GreatWall" + } + }, { "player": 2, "Units": { @@ -515,6 +620,20 @@ "Incident": 40 } }, + { + "player": 0, + "Text": "No Wonders left to draw", + "origin": { + "Incident": 40 + } + }, + { + "player": 0, + "Text": "No wonders left to draw as public wonder card", + "origin": { + "Incident": 40 + } + }, { "player": 1, "Resources": { @@ -527,12 +646,6 @@ "Incident": 40 } } - ], - "log": [ - "A new game event has been triggered: Envoy", - "Player1: Envoy: Base effect: Barbarians move, Barbarians move from A2 to A1: 1 infantry and 1 elephant, No wonders left to draw as public wonder card", - "Player1: Great Wall: Automatic win against Barbarians", - "No Wonders left to draw" ] }, { diff --git a/server/tests/test_games/wonders/library.outcome2.json b/server/tests/test_games/wonders/library.outcome2.json index e8bb2a3f..891d8c6b 100644 --- a/server/tests/test_games/wonders/library.outcome2.json +++ b/server/tests/test_games/wonders/library.outcome2.json @@ -335,8 +335,14 @@ } }, "player": 0, - "log": [ - "Player1: Great Library: Use Engineering for the turn" + "items": [ + { + "player": 0, + "Text": "Use Engineering for the turn", + "origin": { + "Ability": "Great Library" + } + } ], "active_events": 1 }, @@ -348,7 +354,7 @@ }, "player": 0, "origin": { - "Wonder": "Pyramids" + "Ability": "Build Wonder" }, "items": [ { @@ -360,9 +366,6 @@ "Ability": "Build Wonder" } } - ], - "log": [ - "Player1: Build Wonder: Play the wonder card Pyramids, Decided to build Pyramids in city C2" ] } ] diff --git a/server/tests/test_games/wonders/lighthouse.outcome3.json b/server/tests/test_games/wonders/lighthouse.outcome3.json index 9f83f9db..9edcd4ae 100644 --- a/server/tests/test_games/wonders/lighthouse.outcome3.json +++ b/server/tests/test_games/wonders/lighthouse.outcome3.json @@ -221,7 +221,7 @@ }, "player": 0, "origin": { - "Wonder": "GreatLighthouse" + "Ability": "Build Wonder" }, "items": [ { @@ -233,9 +233,6 @@ "Ability": "Build Wonder" } } - ], - "log": [ - "Player1: Build Wonder: Play the wonder card Great Lighthouse, Decided to build Great Lighthouse in city A1" ] }, { diff --git a/server/tests/test_games/wonders/pyramids.outcome2.json b/server/tests/test_games/wonders/pyramids.outcome2.json index d963ba9c..5d0f0e36 100644 --- a/server/tests/test_games/wonders/pyramids.outcome2.json +++ b/server/tests/test_games/wonders/pyramids.outcome2.json @@ -214,7 +214,7 @@ }, "player": 0, "origin": { - "Wonder": "Pyramids" + "Ability": "Build Wonder" }, "items": [ { @@ -226,9 +226,6 @@ "Ability": "Build Wonder" } } - ], - "log": [ - "Player1: Build Wonder: Play the wonder card Pyramids, Decided to build Pyramids in city A1" ] }, { From e9ab7f9db7fe5a2c230be81ea5de31e980b9e327 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 11 Sep 2025 06:24:02 +0000 Subject: [PATCH 010/189] Update Rust crate wasm-bindgen-futures to v0.4.51 (#339) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [wasm-bindgen-futures](https://wasm-bindgen.github.io/wasm-bindgen/) ([source](https://redirect.github.com/wasm-bindgen/wasm-bindgen/tree/HEAD/crates/futures)) | dependencies | patch | `0.4.50` -> `0.4.51` | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Gregor Zeitlinger --- Cargo.lock | 33 +++++++++++++++++---------------- mise.toml | 4 ++-- 2 files changed, 19 insertions(+), 18 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index ca70303c..5f333885 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1015,9 +1015,9 @@ checksum = "4a5f13b858c8d314ee3e8f639011f7ccefe71f97f96e50151fb991f267928e2c" [[package]] name = "js-sys" -version = "0.3.77" +version = "0.3.78" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1cfaf33c695fc6e08064efbc1f72ec937429614f25eef83af942d0e227c3a28f" +checksum = "0c0b063578492ceec17683ef2f8c5e89121fbd0b172cbc280635ab7567db2738" dependencies = [ "once_cell", "wasm-bindgen", @@ -2296,21 +2296,22 @@ dependencies = [ [[package]] name = "wasm-bindgen" -version = "0.2.100" +version = "0.2.101" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1edc8929d7499fc4e8f0be2262a241556cfc54a0bea223790e71446f2aab1ef5" +checksum = "7e14915cadd45b529bb8d1f343c4ed0ac1de926144b746e2710f9cd05df6603b" dependencies = [ "cfg-if", "once_cell", "rustversion", "wasm-bindgen-macro", + "wasm-bindgen-shared", ] [[package]] name = "wasm-bindgen-backend" -version = "0.2.100" +version = "0.2.101" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2f0a0651a5c2bc21487bde11ee802ccaf4c51935d0d3d42a6101f98161700bc6" +checksum = "e28d1ba982ca7923fd01448d5c30c6864d0a14109560296a162f80f305fb93bb" dependencies = [ "bumpalo", "log", @@ -2322,9 +2323,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-futures" -version = "0.4.50" +version = "0.4.51" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "555d470ec0bc3bb57890405e5d4322cc9ea83cebb085523ced7be4144dac1e61" +checksum = "0ca85039a9b469b38336411d6d6ced91f3fc87109a2a27b0c197663f5144dffe" dependencies = [ "cfg-if", "js-sys", @@ -2335,9 +2336,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro" -version = "0.2.100" +version = "0.2.101" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7fe63fc6d09ed3792bd0897b314f53de8e16568c2b3f7982f468c0bf9bd0b407" +checksum = "7c3d463ae3eff775b0c45df9da45d68837702ac35af998361e2c84e7c5ec1b0d" dependencies = [ "quote", "wasm-bindgen-macro-support", @@ -2345,9 +2346,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro-support" -version = "0.2.100" +version = "0.2.101" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8ae87ea40c9f689fc23f209965b6fb8a99ad69aeeb0231408be24920604395de" +checksum = "7bb4ce89b08211f923caf51d527662b75bdc9c9c7aab40f86dcb9fb85ac552aa" dependencies = [ "proc-macro2", "quote", @@ -2358,18 +2359,18 @@ dependencies = [ [[package]] name = "wasm-bindgen-shared" -version = "0.2.100" +version = "0.2.101" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1a05d73b933a847d6cccdda8f838a22ff101ad9bf93e33684f39c1f5f0eece3d" +checksum = "f143854a3b13752c6950862c906306adb27c7e839f7414cec8fea35beab624c1" dependencies = [ "unicode-ident", ] [[package]] name = "web-sys" -version = "0.3.77" +version = "0.3.78" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "33b6dd2ef9186f1f2072e409e99cd22a975331a6b3591b12c764e0e55c60d5d2" +checksum = "77e4b637749ff0d92b8fad63aa1f7cff3cbe125fd49c175cd6345e7272638b12" dependencies = [ "js-sys", "wasm-bindgen", diff --git a/mise.toml b/mise.toml index 1bd96759..a6e67552 100644 --- a/mise.toml +++ b/mise.toml @@ -67,8 +67,8 @@ description = "Test publish client (the real one is done in GitHub Actions)" run = "./scripts/publish-client.sh test" [tools] -"cargo:cargo-nextest" = "0.9.98" -"cargo:wasm-bindgen-cli" = "0.2.100" +"cargo:cargo-nextest" = "0.9.103" +"cargo:wasm-bindgen-cli" = "0.2.101" "cargo:wasm-pack" = "0.13.1" rust = { version = "1.89.0", targets = "wasm32-unknown-unknown", components = "clippy,rustfmt" } From 8cf4e47b4a83710a45d7a3a45758f53327c35f39 Mon Sep 17 00:00:00 2001 From: Gregor Zeitlinger Date: Sat, 13 Sep 2025 09:19:56 +0200 Subject: [PATCH 011/189] Events (#344) --- server/src/ability_initializer.rs | 11 +---- server/src/action.rs | 6 +-- server/src/ai_collect.rs | 9 +++- server/src/collect.rs | 5 +-- server/src/content/advances/education.rs | 6 +-- server/src/events.rs | 55 ++++-------------------- server/src/game.rs | 2 +- server/src/game_data.rs | 1 - server/src/player.rs | 6 +-- server/src/player_events.rs | 25 +++++------ 10 files changed, 35 insertions(+), 91 deletions(-) diff --git a/server/src/ability_initializer.rs b/server/src/ability_initializer.rs index 402a7b98..16f4eb99 100644 --- a/server/src/ability_initializer.rs +++ b/server/src/ability_initializer.rs @@ -1067,18 +1067,11 @@ where let deinitialize_event = event.clone(); let initializer = move |game: &mut Game, p: &EventPlayer, prio_delta: i32| { let e = event(&mut p.get_mut(game).events); - e.inner - .as_mut() - .unwrap_or_else(|| panic!("event {} should be set: {:?}", e.name, p.origin)) - .add_listener_mut(listener.clone(), priority + prio_delta, p.clone()); + e.add_listener_mut(listener.clone(), priority + prio_delta, p.clone()); }; let deinitializer = move |game: &mut Game, p: &EventPlayer| { let e = deinitialize_event(&mut p.get_mut(game).events); - if let Some(inner) = &mut e.inner { - inner.remove_listener_mut_by_key(&p.origin); - } else { - e.deleted = Some(p.origin.clone()); - } + e.remove_listener_mut_by_key(&p.origin); }; setup .add_initializer(initializer) diff --git a/server/src/action.rs b/server/src/action.rs index f34edb5c..3904cf9e 100644 --- a/server/src/action.rs +++ b/server/src/action.rs @@ -20,7 +20,7 @@ use crate::log::{ current_turn_log_mut, }; use crate::movement::{MovementAction, execute_movement_action, on_ship_construction_conversion}; -use crate::objective_card::{complete_objective_card, gain_objective_card, on_objective_cards}; +use crate::objective_card::{complete_objective_card, on_objective_cards}; use crate::playing_actions::{PlayingAction, PlayingActionType}; use crate::position::Position; use crate::recruit::on_recruit; @@ -161,10 +161,6 @@ pub fn execute_without_undo( pub(crate) fn after_action(game: &mut Game, player_index: usize) { check_for_waste(game); - if let Some(o) = game.player_mut(player_index).gained_objective.take() { - gain_objective_card(game, player_index, o); - } - if game .player(player_index) .cities diff --git a/server/src/ai_collect.rs b/server/src/ai_collect.rs index d7cf43a8..74480797 100644 --- a/server/src/ai_collect.rs +++ b/server/src/ai_collect.rs @@ -8,7 +8,7 @@ use std::mem; pub(crate) fn possible_collections(info: &CollectInfo) -> Vec> { let choices = info.choices.clone(); - let mut list = choices.iter().collect_vec(); + let mut list = choices.iter().filter(|(_, v)| !v.is_empty()).collect_vec(); let tiles = list.len(); // production focus is not considered let mut max_tiles = tiles; @@ -69,7 +69,12 @@ fn add_combination( } } } else { - let n = pile.iter().next().expect("pile empty"); + let n = pile.iter().next().unwrap_or_else(|| { + panic!( + "Pile should have at least one element for position {pos:?}, \ + got choices {choices:?} and combo {combo:?}" + ) + }); for r in &mut *result { r.push(PositionCollection::new(*pos, n.clone())); } diff --git a/server/src/collect.rs b/server/src/collect.rs index 84342524..8b1d0046 100644 --- a/server/src/collect.rs +++ b/server/src/collect.rs @@ -275,10 +275,7 @@ pub fn possible_resource_collections( .events .transient .terrain_collect_options; - let modifiers = - event - .get() - .trigger_with_modifiers(&mut terrain_options, &(), &(), &mut (), trigger); + let modifiers = event.trigger_with_modifiers(&mut terrain_options, &(), &(), &mut (), trigger); let collect_options = city_pos .neighbors() diff --git a/server/src/content/advances/education.rs b/server/src/content/advances/education.rs index 35653cb6..d5baac28 100644 --- a/server/src/content/advances/education.rs +++ b/server/src/content/advances/education.rs @@ -10,7 +10,7 @@ use crate::content::custom_actions::PlayingActionModifier; use crate::content::persistent_events::PaymentRequest; use crate::game::GameOptions; use crate::log::{ActionLogEntry, current_turn_log_mut}; -use crate::objective_card::draw_objective_card_from_pile; +use crate::objective_card::gain_objective_card_from_pile; use crate::playing_actions::PlayingActionType; use crate::resource::gain_resources; use crate::resource_pile::ResourcePile; @@ -42,9 +42,7 @@ fn writing() -> AdvanceBuilder { if !game.is_update_patch() { gain_action_card_from_pile(game, player); } - // can't gain objective card directly, because the "combat_end" listener might - // currently being processed ("teach us now") - player.get_mut(game).gained_objective = draw_objective_card_from_pile(game, player); + gain_objective_card_from_pile(game, player); }) .add_transient_event_listener( |event| &mut event.after_action, diff --git a/server/src/events.rs b/server/src/events.rs index f10dfb4b..d4333b51 100644 --- a/server/src/events.rs +++ b/server/src/events.rs @@ -140,6 +140,7 @@ impl EventPlayer { } } +#[derive(Clone)] struct Listener { #[allow(clippy::type_complexity)] callback: Arc, @@ -160,17 +161,18 @@ impl Listener { } } -pub struct EventMut { - name: String, // for debugging +#[derive(Clone)] +pub struct Event { + pub(crate) name: String, // for debugging listeners: Vec>, } -impl EventMut +impl Event where T: Clone + PartialEq, W: Clone + PartialEq, { - fn new(name: &str) -> Self { + pub(crate) fn new(name: &str) -> Self { Self { name: name.to_string(), listeners: Vec::new(), @@ -247,56 +249,15 @@ where } } -pub struct Event { - pub name: String, - pub inner: Option>, - pub deleted: Option, -} - -impl Event { - #[must_use] - pub fn new(name: &str) -> Self - where - T: Clone + PartialEq, - W: Clone + PartialEq, - { - Self { - name: name.to_string(), - inner: Some(EventMut::new(name)), - deleted: None, - } - } - - pub(crate) fn get(&self) -> &EventMut { - self.inner.as_ref().expect("Event should be initialized") - } - - pub(crate) fn take(&mut self) -> EventMut { - self.inner.take().expect("Event should be initialized") - } - - pub(crate) fn set(&mut self, mut event: EventMut) - where - T: Clone + PartialEq, - W: Clone + PartialEq, - { - if let Some(o) = &self.deleted.take() { - event.remove_listener_mut_by_key(o); - } else { - self.inner = Some(event); - } - } -} - #[cfg(test)] mod tests { - use super::{EventMut, EventOrigin, EventPlayer}; + use super::{Event, EventOrigin, EventPlayer}; use crate::advance::Advance; use crate::player::CostTrigger; #[test] fn mutable_event() { - let mut event = EventMut::new("test"); + let mut event = Event::new("test"); let add_constant = Advance::Arts; event.add_listener_mut( |item, constant, _, (), _| *item += constant, diff --git a/server/src/game.rs b/server/src/game.rs index 005fd57d..62a5678d 100644 --- a/server/src/game.rs +++ b/server/src/game.rs @@ -278,7 +278,7 @@ impl Game { ) } - pub(crate) fn trigger_transient_event_with_game_value( + pub(crate) fn trigger_transient_event_with_game_value( &mut self, player_index: usize, event: fn(&mut TransientEvents) -> &mut Event, diff --git a/server/src/game_data.rs b/server/src/game_data.rs index 5d1ce92b..d1fcd69e 100644 --- a/server/src/game_data.rs +++ b/server/src/game_data.rs @@ -392,7 +392,6 @@ fn player_from_data(data: PlayerData, game: &Game) -> Player { secrets: data.secrets, custom_data: data.custom_data, objective_opportunities: Vec::new(), - gained_objective: None, great_mausoleum_action_cards: 0, } } diff --git a/server/src/player.rs b/server/src/player.rs index b23817a4..89930ebf 100644 --- a/server/src/player.rs +++ b/server/src/player.rs @@ -76,7 +76,6 @@ pub struct Player { pub secrets: Vec, pub custom_data: HashMap, pub(crate) objective_opportunities: Vec, // transient - pub(crate) gained_objective: Option, // transient pub(crate) great_mausoleum_action_cards: u8, // transient } @@ -125,7 +124,6 @@ impl Player { secrets: Vec::new(), custom_data: HashMap::new(), objective_opportunities: Vec::new(), - gained_objective: None, great_mausoleum_action_cards: 0, } } @@ -471,7 +469,7 @@ impl Player { T: Clone + PartialEq, { let e = event(&self.events.transient); - e.get().trigger(value, info, details, &mut ()); + e.trigger(value, info, details, &mut ()); } pub(crate) fn trigger_cost_event( @@ -482,7 +480,7 @@ impl Player { details: &V, trigger: CostTrigger, ) -> CostInfo { - let event = get_event(&self.events.transient).get(); + let event = get_event(&self.events.transient); match trigger { CostTrigger::WithModifiers => { let m = diff --git a/server/src/player_events.rs b/server/src/player_events.rs index 820e9d86..334b3761 100644 --- a/server/src/player_events.rs +++ b/server/src/player_events.rs @@ -360,6 +360,7 @@ pub struct OnAdvanceInfo { pub take_incident_token: bool, } +#[derive(Clone)] pub struct MoveInfo { pub units: Vec, pub from: Position, @@ -373,32 +374,28 @@ impl MoveInfo { } } -pub(crate) fn trigger_event_with_game_value( +pub(crate) fn trigger_event_with_game_value( game: &mut Game, player_index: usize, event: impl Fn(&mut PlayerEvents) -> &mut Event, info: &U, details: &V, extra_value: &mut W, -) where - W: Clone + PartialEq, -{ - let e = event(&mut game.players[player_index].events).take(); - e.trigger(game, info, details, extra_value); - event(&mut game.players[player_index].events).set(e); +) { + event(&mut game.players[player_index].events) + .clone() + .trigger(game, info, details, extra_value); } -pub(crate) fn trigger_event_with_game_info( +pub(crate) fn trigger_event_with_game_info( game: &mut Game, player_index: usize, event: impl Fn(&mut PlayerEvents) -> &mut Event, info: &mut U, details: &V, extra_value: &mut W, -) where - W: Clone + PartialEq, -{ - let e = event(&mut game.players[player_index].events).take(); - e.trigger(info, game, details, extra_value); - event(&mut game.players[player_index].events).set(e); +) { + event(&mut game.players[player_index].events) + .clone() + .trigger(info, game, details, extra_value); } From 0741951c6e1fc36779a471709ef92ef34edc18a3 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 14 Sep 2025 01:38:32 +0000 Subject: [PATCH 012/189] Update Rust crate serde to v1.0.221 (#345) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [serde](https://serde.rs) ([source](https://redirect.github.com/serde-rs/serde)) | dependencies | patch | `1.0.219` -> `1.0.221` | --- ### Release Notes
serde-rs/serde (serde) ### [`v1.0.221`](https://redirect.github.com/serde-rs/serde/releases/tag/v1.0.221) [Compare Source](https://redirect.github.com/serde-rs/serde/compare/v1.0.220...v1.0.221) - Documentation improvements ([#​2973](https://redirect.github.com/serde-rs/serde/issues/2973)) - Deprecate `serde_if_integer128!` macro ([#​2975](https://redirect.github.com/serde-rs/serde/issues/2975)) ### [`v1.0.220`](https://redirect.github.com/serde-rs/serde/compare/v1.0.219...v1.0.220) [Compare Source](https://redirect.github.com/serde-rs/serde/compare/v1.0.219...v1.0.220)
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- Cargo.lock | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 5f333885..235ffdd3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1822,10 +1822,11 @@ checksum = "56e6fa9c48d24d85fb3de5ad847117517440f6beceb7798af16b4a87d616b8d0" [[package]] name = "serde" -version = "1.0.219" +version = "1.0.221" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5f0e2c6ed6606019b4e29e69dbaba95b11854410e5347d525002456dbbb786b6" +checksum = "341877e04a22458705eb4e131a1508483c877dca2792b3781d4e5d8a6019ec43" dependencies = [ + "serde_core", "serde_derive", ] @@ -1841,10 +1842,19 @@ dependencies = [ ] [[package]] -name = "serde_derive" -version = "1.0.219" +name = "serde_core" +version = "1.0.221" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b0276cf7f2c73365f7157c8123c21cd9a50fbbd844757af28ca1f5925fc2a00" +checksum = "0c459bc0a14c840cb403fc14b148620de1e0778c96ecd6e0c8c3cacb6d8d00fe" +dependencies = [ + "serde_derive", +] + +[[package]] +name = "serde_derive" +version = "1.0.221" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d6185cf75117e20e62b1ff867b9518577271e58abe0037c40bb4794969355ab0" dependencies = [ "proc-macro2", "quote", From c151226771cabf908c53d606d3d85ac51ec13da2 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 14 Sep 2025 01:39:26 +0000 Subject: [PATCH 013/189] Update Rust crate serde_json to v1.0.144 (#346) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [serde_json](https://redirect.github.com/serde-rs/json) | dependencies | patch | `1.0.143` -> `1.0.144` | --- ### Release Notes
serde-rs/json (serde_json) ### [`v1.0.144`](https://redirect.github.com/serde-rs/json/compare/v1.0.143...v1.0.144) [Compare Source](https://redirect.github.com/serde-rs/json/compare/v1.0.143...v1.0.144)
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- Cargo.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 235ffdd3..5c101645 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1863,14 +1863,14 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.143" +version = "1.0.144" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d401abef1d108fbd9cbaebc3e46611f4b1021f714a0597a71f41ee463f5f4a5a" +checksum = "56177480b00303e689183f110b4e727bb4211d692c62d4fcd16d02be93077d40" dependencies = [ "itoa", "memchr", "ryu", - "serde", + "serde_core", ] [[package]] From ab850dc62c2fadef1f659de9ced3b80b164921af Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 14 Sep 2025 16:37:45 +0000 Subject: [PATCH 014/189] Update Rust crate serde_json to v1.0.145 (#347) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [serde_json](https://redirect.github.com/serde-rs/json) | dependencies | patch | `1.0.144` -> `1.0.145` | --- ### Release Notes
serde-rs/json (serde_json) ### [`v1.0.145`](https://redirect.github.com/serde-rs/json/releases/tag/v1.0.145) - Raise serde version requirement to >=1.0.220
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- Cargo.lock | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 5c101645..64fde841 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1863,13 +1863,14 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.144" +version = "1.0.145" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "56177480b00303e689183f110b4e727bb4211d692c62d4fcd16d02be93077d40" +checksum = "402a6f66d8c709116cf22f558eab210f5a50187f702eb4d7e5ef38d9a7f1c79c" dependencies = [ "itoa", "memchr", "ryu", + "serde", "serde_core", ] From 6539926b47a835b23f25aee12adfcb11bc64a269 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 14 Sep 2025 20:49:55 +0000 Subject: [PATCH 015/189] Update Rust crate serde to v1.0.223 (#348) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [serde](https://serde.rs) ([source](https://redirect.github.com/serde-rs/serde)) | dependencies | patch | `1.0.221` -> `1.0.223` | --- ### Release Notes
serde-rs/serde (serde) ### [`v1.0.223`](https://redirect.github.com/serde-rs/serde/compare/v1.0.222...v1.0.223) [Compare Source](https://redirect.github.com/serde-rs/serde/compare/v1.0.222...v1.0.223) ### [`v1.0.222`](https://redirect.github.com/serde-rs/serde/releases/tag/v1.0.222) [Compare Source](https://redirect.github.com/serde-rs/serde/compare/v1.0.221...v1.0.222) - Make `serialize_with` attribute produce code that works if respanned to 2024 edition ([#​2950](https://redirect.github.com/serde-rs/serde/issues/2950), thanks [@​aytey](https://redirect.github.com/aytey))
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- Cargo.lock | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 64fde841..ef25c4b7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1822,9 +1822,9 @@ checksum = "56e6fa9c48d24d85fb3de5ad847117517440f6beceb7798af16b4a87d616b8d0" [[package]] name = "serde" -version = "1.0.221" +version = "1.0.223" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "341877e04a22458705eb4e131a1508483c877dca2792b3781d4e5d8a6019ec43" +checksum = "a505d71960adde88e293da5cb5eda57093379f64e61cf77bf0e6a63af07a7bac" dependencies = [ "serde_core", "serde_derive", @@ -1843,18 +1843,18 @@ dependencies = [ [[package]] name = "serde_core" -version = "1.0.221" +version = "1.0.223" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c459bc0a14c840cb403fc14b148620de1e0778c96ecd6e0c8c3cacb6d8d00fe" +checksum = "20f57cbd357666aa7b3ac84a90b4ea328f1d4ddb6772b430caa5d9e1309bb9e9" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.221" +version = "1.0.223" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d6185cf75117e20e62b1ff867b9518577271e58abe0037c40bb4794969355ab0" +checksum = "3d428d07faf17e306e699ec1e91996e5a165ba5d6bce5b5155173e91a8a01a56" dependencies = [ "proc-macro2", "quote", From 8d60726992cdbb2e6e4d5f8940a91c4a03bf0469 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 15 Sep 2025 00:44:56 +0000 Subject: [PATCH 016/189] Update dependency mise to v2025.9.10 (#349) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Update | Change | |---|---|---| | [mise](https://redirect.github.com/jdx/mise) | patch | `v2025.9.5` -> `v2025.9.10` | --- ### Release Notes
jdx/mise (mise) ### [`v2025.9.10`](https://redirect.github.com/jdx/mise/releases/tag/v2025.9.10) [Compare Source](https://redirect.github.com/jdx/mise/compare/v2025.9.9...v2025.9.10) ##### 📦 Registry - use asdf to install semver-tool by [@​jylenhof](https://redirect.github.com/jylenhof) in [#​6233](https://redirect.github.com/jdx/mise/pull/6233) ##### 🐛 Bug Fixes - **(tool-stub)** detect binary names from single-file downloads by [@​jdx](https://redirect.github.com/jdx) in [#​6281](https://redirect.github.com/jdx/mise/pull/6281) ##### 🚜 Refactor - allow any collection types in deserialize\_arr by [@​risu729](https://redirect.github.com/risu729) in [#​6282](https://redirect.github.com/jdx/mise/pull/6282) - use deserialize\_arr for task runs by [@​risu729](https://redirect.github.com/risu729) in [#​6253](https://redirect.github.com/jdx/mise/pull/6253) ##### 📚 Documentation - **(getting-started)** add backends step with diagram, github example, env vars and simple tasks by [@​jdx](https://redirect.github.com/jdx) in [#​6288](https://redirect.github.com/jdx/mise/pull/6288) - simplify OS detection in tool plugin development by [@​jdx](https://redirect.github.com/jdx) in [#​6287](https://redirect.github.com/jdx/mise/pull/6287) - update backend plugin template references by [@​jdx](https://redirect.github.com/jdx) in [942f5eb](https://redirect.github.com/jdx/mise/commit/942f5eb1436fef38920836347218984200b07386) ##### 📦️ Dependency Updates - update rust crate chrono to v0.4.42 by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​6274](https://redirect.github.com/jdx/mise/pull/6274) - update taiki-e/install-action digest to [`0154864`](https://redirect.github.com/jdx/mise/commit/0154864) by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​6273](https://redirect.github.com/jdx/mise/pull/6273) ##### Chore - **(schema)** fix schema for subtasks by [@​risu729](https://redirect.github.com/risu729) in [#​6289](https://redirect.github.com/jdx/mise/pull/6289) - update render:schema task by [@​risu729](https://redirect.github.com/risu729) in [#​6275](https://redirect.github.com/jdx/mise/pull/6275) ### [`v2025.9.9`](https://redirect.github.com/jdx/mise/releases/tag/v2025.9.9) [Compare Source](https://redirect.github.com/jdx/mise/compare/v2025.9.8...v2025.9.9) ##### 🐛 Bug Fixes - **(backend)** make HTTP installs atomic and serialize with cache lock by [@​jdx](https://redirect.github.com/jdx) in [#​6259](https://redirect.github.com/jdx/mise/pull/6259) - **(env)** allow nested env.\_.path directives by [@​risu729](https://redirect.github.com/risu729) in [#​6160](https://redirect.github.com/jdx/mise/pull/6160) - **(env)** disallow nested env objects by [@​risu729](https://redirect.github.com/risu729) in [#​6268](https://redirect.github.com/jdx/mise/pull/6268) - **(schema)** allow nested arrays in task.depends by [@​risu729](https://redirect.github.com/risu729) in [#​6265](https://redirect.github.com/jdx/mise/pull/6265) - **(task)** resolve jobs=1 hang and keep-order panic; improve Ctrl-C handling by [@​jdx](https://redirect.github.com/jdx) in [#​6264](https://redirect.github.com/jdx/mise/pull/6264) - **(tasks)** stop CLI group after first failure without --continue-on-error by [@​jdx](https://redirect.github.com/jdx) in [#​6270](https://redirect.github.com/jdx/mise/pull/6270) ##### 📚 Documentation - fixed toml issues in URL replacements settings documentation by [@​ThomasSteinbach](https://redirect.github.com/ThomasSteinbach) in [#​6269](https://redirect.github.com/jdx/mise/pull/6269) ##### Chore - **(schema)** strict oneOf branches and DRY env\_directive in schemas by [@​jdx](https://redirect.github.com/jdx) in [#​6271](https://redirect.github.com/jdx/mise/pull/6271) - add schema linter by [@​risu729](https://redirect.github.com/risu729) in [#​6267](https://redirect.github.com/jdx/mise/pull/6267) ### [`v2025.9.8`](https://redirect.github.com/jdx/mise/releases/tag/v2025.9.8) [Compare Source](https://redirect.github.com/jdx/mise/compare/v2025.9.7...v2025.9.8) ##### 🐛 Bug Fixes - **(tasks)** prevent hang when task fails in sequence by [@​jdx](https://redirect.github.com/jdx) in [#​6260](https://redirect.github.com/jdx/mise/pull/6260) - **(version)** fetch mise version if cached version is older than the current by [@​risu729](https://redirect.github.com/risu729) in [#​6252](https://redirect.github.com/jdx/mise/pull/6252) ##### 📦️ Dependency Updates - update rhysd/action-setup-vim action to v1.4.3 by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​6249](https://redirect.github.com/jdx/mise/pull/6249) ### [`v2025.9.7`](https://redirect.github.com/jdx/mise/releases/tag/v2025.9.7) [Compare Source](https://redirect.github.com/jdx/mise/compare/v2025.9.6...v2025.9.7) ##### 🐛 Bug Fixes - **(env)** allow mixed map for env.\_.file by [@​risu729](https://redirect.github.com/risu729) in [#​6148](https://redirect.github.com/jdx/mise/pull/6148) - **(tasks)** restore parallel starts with poetry via list\_paths cache and stable exec-env cache by [@​jdx](https://redirect.github.com/jdx) in [#​6237](https://redirect.github.com/jdx/mise/pull/6237) - add 'unknown' to the list of OS patterns by [@​efussi](https://redirect.github.com/efussi) in [#​6235](https://redirect.github.com/jdx/mise/pull/6235) - propagate errors from backend installs by [@​jdx](https://redirect.github.com/jdx) in [#​6236](https://redirect.github.com/jdx/mise/pull/6236) ##### 📦️ Dependency Updates - update taiki-e/install-action digest to [`0c5db7f`](https://redirect.github.com/jdx/mise/commit/0c5db7f) by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​6244](https://redirect.github.com/jdx/mise/pull/6244) - update golang docker tag to v1.25.1 by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​6247](https://redirect.github.com/jdx/mise/pull/6247) - update dependency vitepress to v1.6.4 by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​6246](https://redirect.github.com/jdx/mise/pull/6246) ##### New Contributors - [@​efussi](https://redirect.github.com/efussi) made their first contribution in [#​6235](https://redirect.github.com/jdx/mise/pull/6235) ### [`v2025.9.6`](https://redirect.github.com/jdx/mise/releases/tag/v2025.9.6) [Compare Source](https://redirect.github.com/jdx/mise/compare/v2025.9.5...v2025.9.6) ##### 🚀 Features - **(backend)** add Backend trait methods for metadata fetching by [@​jdx](https://redirect.github.com/jdx) in [#​6228](https://redirect.github.com/jdx/mise/pull/6228) - **(core)** implement metadata fetching for Node.js and Bun by [@​jdx](https://redirect.github.com/jdx) in [#​6230](https://redirect.github.com/jdx/mise/pull/6230) - **(mise-test-tool)** add release scripts for automated GitHub releases by [@​jdx](https://redirect.github.com/jdx) in [bd0eadd](https://redirect.github.com/jdx/mise/commit/bd0eadde5fff3897cda47d533c02cfe8e2b20048) - **(platform)** implement platform parsing and CLI integration by [@​jdx](https://redirect.github.com/jdx) in [#​6227](https://redirect.github.com/jdx/mise/pull/6227) - migrate tools from ubi to github backend which work by [@​jdx](https://redirect.github.com/jdx) in [#​6232](https://redirect.github.com/jdx/mise/pull/6232) ##### 🐛 Bug Fixes - **(task)** use terminal width instead of hardcoded 60-char limit for task display by [@​jdx](https://redirect.github.com/jdx) in [#​6218](https://redirect.github.com/jdx/mise/pull/6218) - **(task)** use terminal width instead of hardcoded 60-char limit for task display by [@​jdx](https://redirect.github.com/jdx) in [#​6220](https://redirect.github.com/jdx/mise/pull/6220) - nix flake build failure on macOS by [@​okuuva](https://redirect.github.com/okuuva) in [#​6223](https://redirect.github.com/jdx/mise/pull/6223) - only use multi-version syntax in mise.lock by [@​jdx](https://redirect.github.com/jdx) in [#​6224](https://redirect.github.com/jdx/mise/pull/6224) ##### 🧪 Testing - **(e2e)** add comprehensive parallel task execution test for issue [#​5451](https://redirect.github.com/jdx/mise/issues/5451) by [@​jdx](https://redirect.github.com/jdx) in [#​6221](https://redirect.github.com/jdx/mise/pull/6221) ##### Chore - added .cursor/environment.json by [@​jdx](https://redirect.github.com/jdx) in [dc6b145](https://redirect.github.com/jdx/mise/commit/dc6b1455967c650b4f960316830b63072998977c) - init agent-os by [@​jdx](https://redirect.github.com/jdx) in [81af40e](https://redirect.github.com/jdx/mise/commit/81af40ece5a8e1481b3a4ebf0de8a401fb7685ad) - agent-os analyze by [@​jdx](https://redirect.github.com/jdx) in [9625f58](https://redirect.github.com/jdx/mise/commit/9625f58112d4f22d299c1352a3e85f036435f21c)
--- ### Configuration 📅 **Schedule**: Branch creation - "before 4am on monday" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/bench.yml | 4 ++-- .github/workflows/check.yml | 4 ++-- .github/workflows/release.yml | 4 ++-- .github/workflows/test-release.yml | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index a5c87ea3..d6695639 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -10,7 +10,7 @@ jobs: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - uses: jdx/mise-action@5ac50f778e26fac95da98d50503682459e86d566 # v3.2.0 with: - version: v2025.9.5 - sha256: 3c3781caaebd53918e8fe671cac1ad1f6d636460bdf9bff3b8a3570ef532e7e1 + version: v2025.9.10 + sha256: ab57ab710cf3e323a93431c8bb7ea31e58a0d12f385bcadd83d1d183cde16bf0 - name: Random actions test run: mise run random-actions diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 67d9d448..1883d7b1 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -10,7 +10,7 @@ jobs: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - uses: jdx/mise-action@5ac50f778e26fac95da98d50503682459e86d566 # v3.2.0 with: - version: v2025.9.5 - sha256: 3c3781caaebd53918e8fe671cac1ad1f6d636460bdf9bff3b8a3570ef532e7e1 + version: v2025.9.10 + sha256: ab57ab710cf3e323a93431c8bb7ea31e58a0d12f385bcadd83d1d183cde16bf0 - name: Check all run: mise run ci diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6534ff9c..b749ff46 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,8 +14,8 @@ jobs: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - uses: jdx/mise-action@5ac50f778e26fac95da98d50503682459e86d566 # v3.2.0 with: - version: v2025.9.5 - sha256: 3c3781caaebd53918e8fe671cac1ad1f6d636460bdf9bff3b8a3570ef532e7e1 + version: v2025.9.10 + sha256: ab57ab710cf3e323a93431c8bb7ea31e58a0d12f385bcadd83d1d183cde16bf0 - name: Use Node.js ${{ env.node_version }} uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5 with: diff --git a/.github/workflows/test-release.yml b/.github/workflows/test-release.yml index c2baf776..0cde281c 100644 --- a/.github/workflows/test-release.yml +++ b/.github/workflows/test-release.yml @@ -10,8 +10,8 @@ jobs: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - uses: jdx/mise-action@5ac50f778e26fac95da98d50503682459e86d566 # v3.2.0 with: - version: v2025.9.5 - sha256: 3c3781caaebd53918e8fe671cac1ad1f6d636460bdf9bff3b8a3570ef532e7e1 + version: v2025.9.10 + sha256: ab57ab710cf3e323a93431c8bb7ea31e58a0d12f385bcadd83d1d183cde16bf0 - name: Test server release run: mise run build-remote-server - name: Test client release From 4a32c6c6ae29163e96f63a5c8c7f5e7f386de52e Mon Sep 17 00:00:00 2001 From: Gregor Zeitlinger Date: Mon, 15 Sep 2025 18:52:04 +0200 Subject: [PATCH 017/189] Log (#350) --- Cargo.lock | 7 ++ client/src/client_state.rs | 23 ++-- client/src/local_client/bin/main.rs | 2 +- client/src/log_collector.rs | 59 +++++++++- client/src/log_ui.rs | 43 +++++--- client/src/remote_client/bin/main.rs | 27 +++-- client/src/richtext.rs | 59 +++++++--- server/Cargo.toml | 1 + server/src/advance.rs | 5 +- server/src/unit.rs | 104 ++++++++++++++---- .../test_games/advances/dogma.outcome3.json | 2 +- .../rome/provinces.outcome2.json | 2 +- .../vikings/ship_construction.outcome3.json | 2 +- .../combat/ship_combat.outcome1.json | 2 +- .../incidents/barbarians_attack.outcome.json | 2 +- .../incidents/barbarians_move.outcome1.json | 2 +- .../civil_war/revolution.outcome3.json | 2 +- .../great_persons/great_artist.outcome3.json | 2 +- .../great_engineer.outcome5.json | 2 +- .../incidents/trojan/anarchy.outcome1.json | 2 +- .../change_government.outcome2.json | 2 +- .../tactics_cards/martyr.outcome4.json | 2 +- .../wonders/great_wall.outcome3.json | 2 +- 23 files changed, 266 insertions(+), 90 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index ef25c4b7..0e5fc920 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1906,6 +1906,7 @@ dependencies = [ "serde", "serde-wasm-bindgen", "serde_json", + "string-builder", "tokio", "wasm-bindgen", "wasm-bindgen-futures", @@ -1970,6 +1971,12 @@ version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3" +[[package]] +name = "string-builder" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2bd10a070fb1f2796a288abec42695db4682a82b6f12ffacd60fb8d5ad3a4a12" + [[package]] name = "subtle" version = "2.6.1" diff --git a/client/src/client_state.rs b/client/src/client_state.rs index 0f65470c..fde280ad 100644 --- a/client/src/client_state.rs +++ b/client/src/client_state.rs @@ -17,6 +17,7 @@ use crate::recruit_unit_ui::{RecruitAmount, RecruitSelection}; use crate::render_context::{RenderContext, RenderStage}; use crate::status_phase_ui::ChooseAdditionalAdvances; use macroquad::prelude::*; +use serde::{Deserialize, Serialize}; use server::action::Action; use server::advance::Advance; use server::card::HandCard; @@ -336,6 +337,12 @@ pub(crate) enum CameraMode { World, } +#[derive(Serialize, Deserialize, Debug, PartialEq)] +pub enum ColorProfile { + Standard, + HighContrast, +} + use crate::info_ui::InfoDialog; #[cfg(not(target_arch = "wasm32"))] use server::ai::AI; @@ -347,20 +354,21 @@ pub struct State { pub show_player: usize, pub(crate) active_dialog: ActiveDialog, pub(crate) pending_update: Option, - pub world_camera: Camera2D, - pub world_zoom: f32, + pub(crate) world_camera: Camera2D, + pub(crate) world_zoom: f32, pub world_zoom_factor: f32, - pub ui_camera: Camera2D, + pub(crate) ui_camera: Camera2D, pub ui_scale: f32, pub raw_screen_size: Vec2, - pub screen_size: Vec2, // scaled by ui_scale + pub(crate) screen_size: Vec2, // scaled by ui_scale pub(crate) mouse_positions: Vec, - pub focused_tile: Option, - pub show_permanent_effects: bool, + pub(crate) focused_tile: Option, + pub(crate) show_permanent_effects: bool, pub ai_autoplay: bool, - pub pan_map: bool, + pub(crate) pan_map: bool, #[cfg(not(target_arch = "wasm32"))] pub ai_players: Vec, + pub color_profile: ColorProfile, } pub const ZOOM: f32 = 0.001; @@ -393,6 +401,7 @@ impl State { ai_autoplay: false, #[cfg(not(target_arch = "wasm32"))] ai_players: vec![], + color_profile: ColorProfile::Standard, } } diff --git a/client/src/local_client/bin/main.rs b/client/src/local_client/bin/main.rs index a6c69b30..75aa28d1 100644 --- a/client/src/local_client/bin/main.rs +++ b/client/src/local_client/bin/main.rs @@ -57,7 +57,7 @@ async fn main() { } else { CivSetupOption::Random }, - patch: PatchOption::BalancePatch, + patch: PatchOption::Standard, }) .build(), ); diff --git a/client/src/log_collector.rs b/client/src/log_collector.rs index daded8a0..8c8e1ddc 100644 --- a/client/src/log_collector.rs +++ b/client/src/log_collector.rs @@ -27,6 +27,7 @@ pub(crate) struct ActionLogBody { pub(crate) action: ActionLogAction, pub(crate) action_cost: bool, pub(crate) argument: Option, + pub(crate) payment: Option, } impl ActionLogBody { @@ -35,6 +36,7 @@ impl ActionLogBody { action, action_cost: false, argument: None, + payment: None, } } } @@ -49,7 +51,7 @@ pub(crate) enum LogBody { round: u32, player: usize, }, - Action(ActionLogBody), + Action(Box), CombatUnits { role: String, player: usize, @@ -65,19 +67,31 @@ pub(crate) struct LogEntry { pub(crate) body: LogBody, pub(crate) active_origin: Option, pub(crate) indent: usize, + pub(crate) age: u32, + pub(crate) round: u32, } impl LogEntry { - pub(crate) fn new(body: LogBody, active_origin: Option, indent: usize) -> Self { + pub(crate) fn new( + body: LogBody, + active_origin: Option, + indent: usize, + age: u32, + round: u32, + ) -> Self { LogEntry { body, active_origin, indent, + age, + round, } } } struct LogCollector { + age: u32, + round: u32, log_entries: Vec, active_origin: Option, } @@ -87,12 +101,19 @@ impl LogCollector { Self { log_entries: Vec::new(), active_origin: None, + age: 0, + round: 0, } } fn add_entry(&mut self, body: LogBody, indent: usize) { - self.log_entries - .push(LogEntry::new(body, self.active_origin.clone(), indent)); + self.log_entries.push(LogEntry::new( + body, + self.active_origin.clone(), + indent, + self.age, + self.round, + )); } fn add_message(&mut self, message: &str, indent: usize) { @@ -104,10 +125,12 @@ pub(crate) fn collect_log_entries(rc: &RenderContext) -> Vec { let mut c = LogCollector::new(); for age in &rc.game.log { + c.age = age.age; if age.age == 0 { c.add_message("Game Start", 0); } for round in &age.rounds { + c.round = round.round; if round.round > 0 { c.add_message(&format!("Age {}, Round {}", age.age, round.round), 0); } @@ -139,7 +162,7 @@ fn collect_action( } else { let mut body = ActionLogBody::new(action.clone()); inline_action_items(&mut items, &mut body); - c.add_entry(LogBody::Action(body.clone()), indent); + c.add_entry(LogBody::Action(Box::new(body.clone())), indent); add_additional_action_items(c, &mut body, action, indent + 1); indent + 1 }; @@ -296,6 +319,20 @@ fn inline_action_items(items: &mut Vec, action: &mut ActionLogBod action.action_cost = true; } action.argument = pull_action_arg(items, action); + action.payment = remove_element_by(items, |item| { + matches!( + item, + ActionLogItem { + player, + entry: ActionLogEntry::Resources { + balance: ActionLogBalance::Pay, + .. + }, + .. + } if *player == action.action.player + ) + }) + .map(|i| i.entry); } pub fn find_action_arg( @@ -320,6 +357,18 @@ fn pull_action_arg(items: &mut Vec, body: &ActionLogBody) -> Opti } ) }), + PlayingAction::Collect(_) => find_action_arg(items, body, |item| { + matches!( + item, + ActionLogItem { + entry: ActionLogEntry::Resources { + balance: ActionLogBalance::Gain, + .. + }, + .. + } + ) + }), PlayingAction::FoundCity { .. } | PlayingAction::Construct(_) => { find_action_arg(items, body, |item| { matches!( diff --git a/client/src/log_ui.rs b/client/src/log_ui.rs index 0972aaa0..e790b336 100644 --- a/client/src/log_ui.rs +++ b/client/src/log_ui.rs @@ -54,6 +54,16 @@ pub(crate) fn show_log(rc: &RenderContext, d: &LogDialog) -> RenderResult { // Use the pre-calculated log entries let start = d.current_page * d.lines_per_page; let end = usize::min(start + d.lines_per_page, d.log_entries.len()); + + // Header: turn and round, unless age is 0 + if let Some(first_entry) = d.log_entries.get(start) + && first_entry.age > 0 + { + let header = format!("Age {}, Round {}", first_entry.age, first_entry.round); + let header_width = state.measure_text(&header).width; + rc.draw_text(&header, state.screen_size.x / 2. - header_width / 2., 30.); + } + let mut y = 1.5; for entry in &d.log_entries[start..end] { @@ -105,7 +115,7 @@ pub(crate) fn show_log(rc: &RenderContext, d: &LogDialog) -> RenderResult { } fn draw_line(rc: &RenderContext, y: f32, entry: &LogEntry) { - let message_pos = vec2(20. + entry.indent as f32 * 30.0, y * 25. + 20.); + let message_pos = vec2(20. + entry.indent as f32 * 45.0, y * 25. + 20.); let mut drawer = RichTextDrawer::new(rc, message_pos); @@ -138,7 +148,7 @@ fn draw_line(rc: &RenderContext, y: f32, entry: &LogEntry) { drawer.text(role); drawer.player(*player); drawer.text("with"); - drawer.units(units); + drawer.units(units, None); } LogBody::DieRoll(r) => { draw_die_roll(&mut drawer, r); @@ -151,7 +161,7 @@ fn draw_line(rc: &RenderContext, y: f32, entry: &LogEntry) { LogBody::InfluenceRangeBoost(i) => { drawer.player(i.player); drawer.text("may pay"); - drawer.resources(&i.info.range_boost_cost.default); + drawer.resources(&i.info.range_boost_cost.default, &ActionLogBalance::Pay); drawer.text("to boost the range"); } } @@ -208,27 +218,24 @@ fn draw_die_roll(drawer: &mut RichTextDrawer, r: &UnitCombatRoll) { fn draw_entry(drawer: &mut RichTextDrawer, entry: &ActionLogEntry, player: usize) { match entry { - ActionLogEntry::Action { balance: _, amount } => { + ActionLogEntry::Action { balance, amount } => { if let Some(a) = amount { - drawer.text(&a.to_string()); + drawer.amount(*a, balance); } drawer.action_icon(); } - ActionLogEntry::Resources { - resources, - balance: _, - } => { - drawer.resources(resources); + ActionLogEntry::Resources { resources, balance } => { + drawer.resources(resources, balance); } ActionLogEntry::Advance(a) => { draw_advance(drawer, a); } ActionLogEntry::Units { units, - balance: _, + balance, position, } => { - drawer.units(units); + drawer.units(units, Some(balance)); drawer.at_location(*position); } ActionLogEntry::Structure(s) => { @@ -239,7 +246,7 @@ fn draw_entry(drawer: &mut RichTextDrawer, entry: &ActionLogEntry, player: usize drawer.text(&message); } ActionLogEntry::MoodChange { city, mood } => { - drawer.text("City"); + drawer.text("'s city"); drawer.at_location(*city); drawer.text(&format!("becomes {mood}")); drawer.mood(player, mood); @@ -302,7 +309,7 @@ fn draw_move(drawer: &mut RichTextDrawer, m: &ActionLogEntryMove) { ("marches", " on roads") }; drawer.text(verb); - drawer.units(&m.units); + drawer.units(&m.units, None); drawer.text("from"); drawer.location(m.start); drawer.text("to"); @@ -365,6 +372,11 @@ fn draw_action(drawer: &mut RichTextDrawer, body: &ActionLogBody) { drawer.text(&format!("Choose Civilization: {c}")); } } + + if let Some(payment) = &body.payment { + drawer.text("paying"); + draw_entry(drawer, payment, body.action.player); + } } fn draw_response_action(drawer: &mut RichTextDrawer, r: &EventResponse) { @@ -417,6 +429,7 @@ fn draw_playing_action(drawer: &mut RichTextDrawer, p: &PlayingAction, body: &Ac } PlayingAction::Collect(c) => { drawer.text("collects"); + draw_argument(drawer, body); drawer.at_location(c.city_position); draw_modifier_suffix(drawer, &c.action_type, origin); } @@ -481,6 +494,6 @@ fn draw_argument(drawer: &mut RichTextDrawer, body: &ActionLogBody) { if let Some(a) = &body.argument { draw_entry(drawer, a, body.action.player); } else { - panic!("subject missing advance details"); + panic!("subject missing argument"); } } diff --git a/client/src/remote_client/bin/main.rs b/client/src/remote_client/bin/main.rs index ec411000..5fd990e6 100644 --- a/client/src/remote_client/bin/main.rs +++ b/client/src/remote_client/bin/main.rs @@ -4,7 +4,7 @@ use macroquad::prelude::next_frame; extern crate console_error_panic_hook; use client::client::{Features, GameSyncRequest, GameSyncResult, init, render_and_update}; -use client::client_state::State; +use client::client_state::{ColorProfile, State}; use macroquad::math::vec2; use serde::{Deserialize, Serialize}; use server::action::Action; @@ -74,8 +74,9 @@ struct RemoteClient { #[derive(Serialize, Deserialize, Debug)] struct Preferences { - ui_scale: Option, - world_zoom_factor: Option, + ui_scale: String, + world_zoom_factor: String, + color_profile: ColorProfile, } #[macroquad::main("Clash")] @@ -148,16 +149,18 @@ impl RemoteClient { let p: Preferences = serde_json::from_str(prefs).expect("preferences can't be deserialized"); - if let Some(scale) = p.ui_scale { - self.state.ui_scale = f32::from_str(&scale).expect("ui scale should be a float"); - log(&format!("set ui scale to {scale}")); - } + let scale = p.ui_scale; + self.state.ui_scale = f32::from_str(&scale).expect("ui scale should be a float"); + log(&format!("set ui scale to {scale}")); - if let Some(zoom) = p.world_zoom_factor { - self.state.world_zoom_factor = - f32::from_str(&zoom).expect("world zoom factor should be a float"); - log(&format!("set world zoom factor to {zoom}")); - } + let zoom = p.world_zoom_factor; + self.state.world_zoom_factor = + f32::from_str(&zoom).expect("world zoom factor should be a float"); + log(&format!("set world zoom factor to {zoom}")); + + let profile = p.color_profile; + log(&format!("set color profile to {profile:?}",)); + self.state.color_profile = profile; } fn update_state(&mut self) -> GameSyncResult { diff --git a/client/src/richtext.rs b/client/src/richtext.rs index ab165b07..73e9077e 100644 --- a/client/src/richtext.rs +++ b/client/src/richtext.rs @@ -1,15 +1,16 @@ use crate::city_ui::draw_mood_state; +use crate::client_state::ColorProfile; use crate::layout_ui::{FONT_SIZE, draw_scaled_icon}; use crate::render_context::RenderContext; -use macroquad::color::{BLACK, Color}; +use macroquad::color::{BLACK, BLUE, Color, RED}; use macroquad::math::{Vec2, vec2}; -use macroquad::prelude::Texture2D; +use macroquad::prelude::{GREEN, Texture2D}; use server::city::MoodState; use server::log::ActionLogBalance; use server::position::Position; use server::resource_pile::ResourcePile; use server::structure::Structure; -use server::unit::{UnitType, Units}; +use server::unit::{UnitPrintArg, UnitType, Units}; use server::wonder::Wonder; pub struct RichTextDrawer<'a> { @@ -86,22 +87,36 @@ impl RichTextDrawer<'_> { self.text_ex(&format!("{position}"), BLACK, 17); } - pub(crate) fn resources(&mut self, resources: &ResourcePile) { + pub(crate) fn resources(&mut self, resources: &ResourcePile, balance: &ActionLogBalance) { for (resource, amount) in resources.clone() { - if amount > 0 - && let Some(texture) = self.rc.assets().resources.get(&resource) - { - self.icon(texture); - self.text(&amount.to_string()); + if amount > 0 { + self.icon(&self.rc.assets().resources[&resource]); + self.amount(u32::from(amount), balance); } } } + pub(crate) fn amount(&mut self, amount: u32, balance: &ActionLogBalance) { + self.text_ex( + &amount.to_string(), + if *balance == ActionLogBalance::Gain { + if self.rc.state.color_profile == ColorProfile::HighContrast { + BLUE + } else { + GREEN + } + } else { + RED + }, + FONT_SIZE, + ); + } + pub(crate) fn unit_icon(&mut self, unit_type: UnitType) { self.icon(self.rc.assets().unit(unit_type, self.rc.shown_player)); } - pub(crate) fn units(&mut self, units: &Units) { + pub(crate) fn units(&mut self, units: &Units, balance: Option<&ActionLogBalance>) { for (unit, amount) in units.clone() { if amount > 0 { self.unit_icon(unit); @@ -109,7 +124,16 @@ impl RichTextDrawer<'_> { for _ in 0..amount { u += &unit; } - self.text(&u.to_string(Some(self.rc.game))); + u.print(Some(self.rc.game), &mut |a| match a { + UnitPrintArg::Text(t) => self.text(t), + UnitPrintArg::Amount(a) => { + if let Some(b) = balance { + self.amount(u32::from(*a), b); + } else { + self.text(&a.to_string()); + } + } + }); } } } @@ -141,8 +165,8 @@ impl RichTextDrawer<'_> { self.rc, &self.rc.assets().buildings[b], "", - center(self.current_pos), - RADIUS, + self.building_pos(), + ICON_SIZE, ); self.current_pos.x += 35.0; self.text(b.name()); @@ -158,13 +182,17 @@ impl RichTextDrawer<'_> { } } + fn building_pos(&mut self) -> Vec2 { + self.current_pos + vec2(0.0, -20.0) + } + pub(crate) fn wonder(&mut self, w: Wonder) { draw_scaled_icon( self.rc, &self.rc.assets().wonders[&w], "", - center(self.current_pos), - RADIUS, + self.building_pos(), + ICON_SIZE, ); self.current_pos.x += 35.0; self.text(&w.name()); @@ -179,6 +207,7 @@ impl RichTextDrawer<'_> { } const RADIUS: f32 = 15.0; +const ICON_SIZE: f32 = 15.0 * 2.0; fn center(message_pos: Vec2) -> Vec2 { vec2(message_pos.x + 15.0, message_pos.y - RADIUS / 2.0) diff --git a/server/Cargo.toml b/server/Cargo.toml index 558b4743..11cbebbe 100644 --- a/server/Cargo.toml +++ b/server/Cargo.toml @@ -34,6 +34,7 @@ rustc-hash = "2.1.1" pyroscope = { version = "0.5.8", optional = true } pyroscope_pprofrs = { version = "0.2.10", optional = true } chrono = "0.4.41" +string-builder = "0.2.0" [target.'cfg(not(target_arch = "wasm32"))'.dependencies] tokio = { version = "1.45.0", features = ["full"]} diff --git a/server/src/advance.rs b/server/src/advance.rs index 2577f54b..9196d075 100644 --- a/server/src/advance.rs +++ b/server/src/advance.rs @@ -465,7 +465,10 @@ pub(crate) fn remove_advance(game: &mut Game, advance: Advance, player: &EventPl } fn unlock_special_advance(game: &mut Game, special_advance: SpecialAdvance, player: &EventPlayer) { - player.log(game, &format!("Unlock {}", special_advance.info(game).name)); + player.log( + game, + &format!("unlocks {}", special_advance.info(game).name), + ); special_advance .info(game) .listeners diff --git a/server/src/unit.rs b/server/src/unit.rs index 16d0aab0..f6440796 100644 --- a/server/src/unit.rs +++ b/server/src/unit.rs @@ -18,7 +18,8 @@ use crate::log::{ActionLogBalance, ActionLogEntry, add_action_log_item}; use crate::movement::{CurrentMove, MovementRestriction}; use crate::player::{Player, remove_unit}; use crate::special_advance::SpecialAdvance; -use crate::{game::Game, leader, position::Position, resource_pile::ResourcePile, unit, utils}; +use crate::{game::Game, leader, position::Position, resource_pile::ResourcePile, unit}; +use string_builder::Builder; #[derive(Clone)] pub struct Unit { @@ -49,6 +50,11 @@ pub struct UnitData { pub carried_units: Vec, } +pub enum UnitPrintArg { + Text(String), + Amount(u8), +} + impl Unit { #[must_use] pub fn new(player_index: usize, position: Position, unit_type: UnitType, id: u32) -> Self { @@ -412,50 +418,97 @@ impl Units { /// Panics if `game` is `None` and the units contain a leader. #[must_use] pub fn to_string(&self, game: Option<&Game>) -> String { - let mut unit_types = Vec::new(); + let mut builder = Builder::default(); + self.print(game, &mut |a| { + if builder.len() > 0 { + builder.append(" ".to_string()); + } + match a { + UnitPrintArg::Amount(a) => builder.append(a.to_string()), + UnitPrintArg::Text(t) => builder.append(t.to_string()), + } + }); + builder.string().unwrap_or_default() + } + + /// + /// # Panics + /// + /// Panics if `game` is `None` and the units contain a leader. + pub fn print(&self, game: Option<&Game>, print: &mut F) + where + F: FnMut(&UnitPrintArg), + { + fn amount(print: &mut F, a: u8) { + print(&UnitPrintArg::Amount(a)); + } + fn text(print: &mut F, t: &str) { + print(&UnitPrintArg::Text(t.to_string())); + } + let mut and = false; + let mut add_and = |print: &mut F| { + if and { + text(print, "and"); + and = false; + } else { + and = true; + } + }; + if self.settlers > 0 { - unit_types.push(format!( - "{} {}", - self.settlers, + amount(print, self.settlers); + text( + print, if self.settlers == 1 { "settler" } else { "settlers" - } - )); + }, + ); + add_and(print); } if self.infantry > 0 { - unit_types.push(format!("{} infantry", self.infantry,)); + add_and(print); + amount(print, self.infantry); + text(print, "infantry"); + add_and(print); } if self.ships > 0 { - unit_types.push(format!( - "{} {}", - self.ships, - if self.ships == 1 { "ship" } else { "ships" } - )); + add_and(print); + amount(print, self.ships); + text(print, if self.ships == 1 { "ship" } else { "ships" }); + add_and(print); } if self.cavalry > 0 { - unit_types.push(format!("{} cavalry", self.cavalry,)); + add_and(print); + amount(print, self.cavalry); + text(print, "cavalry"); + add_and(print); } if self.elephants > 0 { - unit_types.push(format!( - "{} {}", - self.elephants, + add_and(print); + amount(print, self.elephants); + text( + print, if self.elephants == 1 { "elephant" } else { "elephants" - } - )); + }, + ); + add_and(print); } if let Some(l) = self.leader { + add_and(print); if let Some(game) = game { - unit_types.push(l.name(game)); + text(print, &l.name(game)); } else { panic!("game missing for leader") } } - utils::format_and(&unit_types, "no units") + if self.is_empty() { + text(print, "no units"); + } } } @@ -836,4 +889,13 @@ mod tests { Units::new(0, 1, 0, 0, 0, None) ); } + + #[test] + fn test_to_string() { + let units = Units::new(1, 2, 0, 1, 0, None); + assert_eq!( + units.to_string(None), + "1 settler and 2 infantry and 1 cavalry" + ); + } } diff --git a/server/tests/test_games/advances/dogma.outcome3.json b/server/tests/test_games/advances/dogma.outcome3.json index 495561fe..e52be4fe 100644 --- a/server/tests/test_games/advances/dogma.outcome3.json +++ b/server/tests/test_games/advances/dogma.outcome3.json @@ -340,7 +340,7 @@ }, { "player": 1, - "Text": "Unlock Provinces", + "Text": "unlocks Provinces", "origin": { "Ability": "Advance" } diff --git a/server/tests/test_games/civilizations/rome/provinces.outcome2.json b/server/tests/test_games/civilizations/rome/provinces.outcome2.json index 4f8183c2..ab84376a 100644 --- a/server/tests/test_games/civilizations/rome/provinces.outcome2.json +++ b/server/tests/test_games/civilizations/rome/provinces.outcome2.json @@ -303,7 +303,7 @@ }, { "player": 0, - "Text": "Unlock Provinces", + "Text": "unlocks Provinces", "origin": { "Ability": "Advance" } diff --git a/server/tests/test_games/civilizations/vikings/ship_construction.outcome3.json b/server/tests/test_games/civilizations/vikings/ship_construction.outcome3.json index b647a642..46eb34bf 100644 --- a/server/tests/test_games/civilizations/vikings/ship_construction.outcome3.json +++ b/server/tests/test_games/civilizations/vikings/ship_construction.outcome3.json @@ -394,7 +394,7 @@ }, { "player": 0, - "Text": "Converted 1 ship to 1 settler", + "Text": "Converted 1 ship and to 1 settler", "origin": { "SpecialAdvance": "ShipConstruction" } diff --git a/server/tests/test_games/combat/ship_combat.outcome1.json b/server/tests/test_games/combat/ship_combat.outcome1.json index 8eb2d20f..cb016ab3 100644 --- a/server/tests/test_games/combat/ship_combat.outcome1.json +++ b/server/tests/test_games/combat/ship_combat.outcome1.json @@ -404,7 +404,7 @@ "items": [ { "player": 0, - "Text": "Killed carried units: 1 cavalry", + "Text": "Killed carried units: 1 cavalry and", "origin": { "Ability": "Choose Casualties (carried units)" } diff --git a/server/tests/test_games/incidents/barbarians_attack.outcome.json b/server/tests/test_games/incidents/barbarians_attack.outcome.json index db5b0596..81d64bb8 100644 --- a/server/tests/test_games/incidents/barbarians_attack.outcome.json +++ b/server/tests/test_games/incidents/barbarians_attack.outcome.json @@ -325,7 +325,7 @@ }, { "player": 0, - "Text": "Barbarians move from B2 to C2: 2 infantry and 1 elephant", + "Text": "Barbarians move from B2 to C2: 2 infantry and 1 elephant and", "origin": { "Incident": 28 } diff --git a/server/tests/test_games/incidents/barbarians_move.outcome1.json b/server/tests/test_games/incidents/barbarians_move.outcome1.json index d01d6c13..a2721740 100644 --- a/server/tests/test_games/incidents/barbarians_move.outcome1.json +++ b/server/tests/test_games/incidents/barbarians_move.outcome1.json @@ -350,7 +350,7 @@ }, { "player": 0, - "Text": "Barbarians move from B3 to B2: 2 infantry", + "Text": "Barbarians move from B3 to B2: 2 infantry and", "origin": { "Incident": 28 } diff --git a/server/tests/test_games/incidents/civil_war/revolution.outcome3.json b/server/tests/test_games/incidents/civil_war/revolution.outcome3.json index 7e8e3936..6d93c669 100644 --- a/server/tests/test_games/incidents/civil_war/revolution.outcome3.json +++ b/server/tests/test_games/incidents/civil_war/revolution.outcome3.json @@ -401,7 +401,7 @@ }, { "player": 0, - "Text": "Unlock Provinces", + "Text": "unlocks Provinces", "origin": { "Incident": 38 } diff --git a/server/tests/test_games/incidents/great_persons/great_artist.outcome3.json b/server/tests/test_games/incidents/great_persons/great_artist.outcome3.json index 33afd739..2abd6abd 100644 --- a/server/tests/test_games/incidents/great_persons/great_artist.outcome3.json +++ b/server/tests/test_games/incidents/great_persons/great_artist.outcome3.json @@ -420,7 +420,7 @@ }, { "player": 1, - "Text": "Unlock Hellenistic Culture", + "Text": "unlocks Hellenistic Culture", "origin": { "CivilCard": 119 } diff --git a/server/tests/test_games/incidents/great_persons/great_engineer.outcome5.json b/server/tests/test_games/incidents/great_persons/great_engineer.outcome5.json index 07986d92..350739e4 100644 --- a/server/tests/test_games/incidents/great_persons/great_engineer.outcome5.json +++ b/server/tests/test_games/incidents/great_persons/great_engineer.outcome5.json @@ -419,7 +419,7 @@ }, { "player": 0, - "Text": "Unlock Aqueduct", + "Text": "unlocks Aqueduct", "origin": { "CivilCard": 126 } diff --git a/server/tests/test_games/incidents/trojan/anarchy.outcome1.json b/server/tests/test_games/incidents/trojan/anarchy.outcome1.json index fcbc054a..7025a39a 100644 --- a/server/tests/test_games/incidents/trojan/anarchy.outcome1.json +++ b/server/tests/test_games/incidents/trojan/anarchy.outcome1.json @@ -333,7 +333,7 @@ }, { "player": 0, - "Text": "Unlock Provinces", + "Text": "unlocks Provinces", "origin": { "Ability": "Advance" } diff --git a/server/tests/test_games/status_phase/change_government.outcome2.json b/server/tests/test_games/status_phase/change_government.outcome2.json index b6e5df28..ab60775d 100644 --- a/server/tests/test_games/status_phase/change_government.outcome2.json +++ b/server/tests/test_games/status_phase/change_government.outcome2.json @@ -351,7 +351,7 @@ }, { "player": 0, - "Text": "Unlock Provinces", + "Text": "unlocks Provinces", "origin": { "Ability": "Change Government" } diff --git a/server/tests/test_games/tactics_cards/martyr.outcome4.json b/server/tests/test_games/tactics_cards/martyr.outcome4.json index 7a2735b7..45a3ddac 100644 --- a/server/tests/test_games/tactics_cards/martyr.outcome4.json +++ b/server/tests/test_games/tactics_cards/martyr.outcome4.json @@ -455,7 +455,7 @@ "items": [ { "player": 0, - "Text": "Killed carried units: 1 elephant", + "Text": "Killed carried units: 1 elephant and", "origin": { "Ability": "Choose Casualties (carried units)" } diff --git a/server/tests/test_games/wonders/great_wall.outcome3.json b/server/tests/test_games/wonders/great_wall.outcome3.json index 0ae6b842..c8ff7b55 100644 --- a/server/tests/test_games/wonders/great_wall.outcome3.json +++ b/server/tests/test_games/wonders/great_wall.outcome3.json @@ -556,7 +556,7 @@ }, { "player": 0, - "Text": "Barbarians move from A2 to A1: 1 infantry and 1 elephant", + "Text": "Barbarians move from A2 to A1: 1 infantry and 1 elephant and", "origin": { "Incident": 40 } From 4bd5961c5f9a93438f22237a06eef5be6bd62b3d Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 15 Sep 2025 16:56:44 +0000 Subject: [PATCH 018/189] Update Rust crate serde to v1.0.224 (#351) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Coming soon: The Renovate bot (GitHub App) will be renamed to Mend. PRs from Renovate will soon appear from 'Mend'. Learn more [here](https://redirect.github.com/renovatebot/renovate/discussions/37842). This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [serde](https://serde.rs) ([source](https://redirect.github.com/serde-rs/serde)) | dependencies | patch | `1.0.223` -> `1.0.224` | --- ### Release Notes
serde-rs/serde (serde) ### [`v1.0.224`](https://redirect.github.com/serde-rs/serde/releases/tag/v1.0.224) [Compare Source](https://redirect.github.com/serde-rs/serde/compare/v1.0.223...v1.0.224) - Remove private types being suggested in rustc diagnostics ([#​2979](https://redirect.github.com/serde-rs/serde/issues/2979))
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- Cargo.lock | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 0e5fc920..42bfcd8d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1822,9 +1822,9 @@ checksum = "56e6fa9c48d24d85fb3de5ad847117517440f6beceb7798af16b4a87d616b8d0" [[package]] name = "serde" -version = "1.0.223" +version = "1.0.224" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a505d71960adde88e293da5cb5eda57093379f64e61cf77bf0e6a63af07a7bac" +checksum = "6aaeb1e94f53b16384af593c71e20b095e958dab1d26939c1b70645c5cfbcc0b" dependencies = [ "serde_core", "serde_derive", @@ -1843,18 +1843,18 @@ dependencies = [ [[package]] name = "serde_core" -version = "1.0.223" +version = "1.0.224" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "20f57cbd357666aa7b3ac84a90b4ea328f1d4ddb6772b430caa5d9e1309bb9e9" +checksum = "32f39390fa6346e24defbcdd3d9544ba8a19985d0af74df8501fbfe9a64341ab" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.223" +version = "1.0.224" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3d428d07faf17e306e699ec1e91996e5a165ba5d6bce5b5155173e91a8a01a56" +checksum = "87ff78ab5e8561c9a675bfc1785cb07ae721f0ee53329a595cefd8c04c2ac4e0" dependencies = [ "proc-macro2", "quote", From db23b139bdd2ccbd239d8bf15a2bb3a55cbc2684 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 16 Sep 2025 13:58:35 +0000 Subject: [PATCH 019/189] Update Rust crate serde to v1.0.225 (#352) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Coming soon: The Renovate bot (GitHub App) will be renamed to Mend. PRs from Renovate will soon appear from 'Mend'. Learn more [here](https://redirect.github.com/renovatebot/renovate/discussions/37842). This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [serde](https://serde.rs) ([source](https://redirect.github.com/serde-rs/serde)) | dependencies | patch | `1.0.224` -> `1.0.225` | --- ### Release Notes
serde-rs/serde (serde) ### [`v1.0.225`](https://redirect.github.com/serde-rs/serde/releases/tag/v1.0.225) [Compare Source](https://redirect.github.com/serde-rs/serde/compare/v1.0.224...v1.0.225) - Avoid triggering a deprecation warning in derived Serialize and Deserialize impls for a data structure that contains its own deprecations ([#​2879](https://redirect.github.com/serde-rs/serde/issues/2879), thanks [@​rcrisanti](https://redirect.github.com/rcrisanti))
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- Cargo.lock | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 42bfcd8d..61e803a6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1822,9 +1822,9 @@ checksum = "56e6fa9c48d24d85fb3de5ad847117517440f6beceb7798af16b4a87d616b8d0" [[package]] name = "serde" -version = "1.0.224" +version = "1.0.225" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6aaeb1e94f53b16384af593c71e20b095e958dab1d26939c1b70645c5cfbcc0b" +checksum = "fd6c24dee235d0da097043389623fb913daddf92c76e9f5a1db88607a0bcbd1d" dependencies = [ "serde_core", "serde_derive", @@ -1843,18 +1843,18 @@ dependencies = [ [[package]] name = "serde_core" -version = "1.0.224" +version = "1.0.225" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "32f39390fa6346e24defbcdd3d9544ba8a19985d0af74df8501fbfe9a64341ab" +checksum = "659356f9a0cb1e529b24c01e43ad2bdf520ec4ceaf83047b83ddcc2251f96383" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.224" +version = "1.0.225" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "87ff78ab5e8561c9a675bfc1785cb07ae721f0ee53329a595cefd8c04c2ac4e0" +checksum = "0ea936adf78b1f766949a4977b91d2f5595825bd6ec079aa9543ad2685fc4516" dependencies = [ "proc-macro2", "quote", From 7be25257bc5c7b33085292aca51818b55ce55736 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 16 Sep 2025 19:17:46 +0000 Subject: [PATCH 020/189] Update Rust crate json-patch to v4.1.0 (#353) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Coming soon: The Renovate bot (GitHub App) will be renamed to Mend. PRs from Renovate will soon appear from 'Mend'. Learn more [here](https://redirect.github.com/renovatebot/renovate/discussions/37842). This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [json-patch](https://redirect.github.com/idubrov/json-patch) | dependencies | minor | `4.0.0` -> `4.1.0` | --- ### Release Notes
idubrov/json-patch (json-patch) ### [`v4.1.0`](https://redirect.github.com/idubrov/json-patch/compare/v4.0.0...v4.1.0) [Compare Source](https://redirect.github.com/idubrov/json-patch/compare/v4.0.0...v4.1.0)
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- Cargo.lock | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 61e803a6..2f135c1b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1025,9 +1025,9 @@ dependencies = [ [[package]] name = "json-patch" -version = "4.0.0" +version = "4.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "159294d661a039f7644cea7e4d844e6b25aaf71c1ffe9d73a96d768c24b0faf4" +checksum = "f300e415e2134745ef75f04562dd0145405c2f7fd92065db029ac4b16b57fe90" dependencies = [ "jsonptr", "serde", From e83a9a9512a17510d912268ec3308a3322449745 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 21 Sep 2025 01:49:34 +0000 Subject: [PATCH 021/189] Update Rust crate serde to v1.0.226 (#356) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Coming soon: The Renovate bot (GitHub App) will be renamed to Mend. PRs from Renovate will soon appear from 'Mend'. Learn more [here](https://redirect.github.com/renovatebot/renovate/discussions/37842). This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [serde](https://serde.rs) ([source](https://redirect.github.com/serde-rs/serde)) | dependencies | patch | `1.0.225` -> `1.0.226` | --- ### Release Notes
serde-rs/serde (serde) ### [`v1.0.226`](https://redirect.github.com/serde-rs/serde/releases/tag/v1.0.226) [Compare Source](https://redirect.github.com/serde-rs/serde/compare/v1.0.225...v1.0.226) - Deduplicate variant matching logic inside generated Deserialize impl for adjacently tagged enums ([#​2935](https://redirect.github.com/serde-rs/serde/issues/2935), thanks [@​Mingun](https://redirect.github.com/Mingun))
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- Cargo.lock | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 2f135c1b..38d2a419 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1822,9 +1822,9 @@ checksum = "56e6fa9c48d24d85fb3de5ad847117517440f6beceb7798af16b4a87d616b8d0" [[package]] name = "serde" -version = "1.0.225" +version = "1.0.226" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fd6c24dee235d0da097043389623fb913daddf92c76e9f5a1db88607a0bcbd1d" +checksum = "0dca6411025b24b60bfa7ec1fe1f8e710ac09782dca409ee8237ba74b51295fd" dependencies = [ "serde_core", "serde_derive", @@ -1843,18 +1843,18 @@ dependencies = [ [[package]] name = "serde_core" -version = "1.0.225" +version = "1.0.226" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "659356f9a0cb1e529b24c01e43ad2bdf520ec4ceaf83047b83ddcc2251f96383" +checksum = "ba2ba63999edb9dac981fb34b3e5c0d111a69b0924e253ed29d83f7c99e966a4" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.225" +version = "1.0.226" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0ea936adf78b1f766949a4977b91d2f5595825bd6ec079aa9543ad2685fc4516" +checksum = "8db53ae22f34573731bafa1db20f04027b2d25e02d8205921b569171699cdb33" dependencies = [ "proc-macro2", "quote", From 800a0d401ac086db71b0d65ecb7e1ec355134c93 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 21 Sep 2025 08:45:22 +0000 Subject: [PATCH 022/189] Update dependency rust to v1.90.0 (#355) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Coming soon: The Renovate bot (GitHub App) will be renamed to Mend. PRs from Renovate will soon appear from 'Mend'. Learn more [here](https://redirect.github.com/renovatebot/renovate/discussions/37842). This PR contains the following updates: | Package | Update | Change | |---|---|---| | [rust](https://redirect.github.com/rust-lang/rust) | minor | `1.89.0` -> `1.90.0` | --- ### Release Notes
rust-lang/rust (rust) ### [`v1.90.0`](https://redirect.github.com/rust-lang/rust/compare/1.89.0...1.90.0) [Compare Source](https://redirect.github.com/rust-lang/rust/compare/1.89.0...1.90.0)
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Gregor Zeitlinger --- mise.toml | 2 +- server/src/action_card.rs | 2 +- server/src/payment.rs | 5 +---- server/src/unit.rs | 2 +- server/src/utils.rs | 2 +- 5 files changed, 5 insertions(+), 8 deletions(-) diff --git a/mise.toml b/mise.toml index a6e67552..24f2b7a7 100644 --- a/mise.toml +++ b/mise.toml @@ -70,5 +70,5 @@ run = "./scripts/publish-client.sh test" "cargo:cargo-nextest" = "0.9.103" "cargo:wasm-bindgen-cli" = "0.2.101" "cargo:wasm-pack" = "0.13.1" -rust = { version = "1.89.0", targets = "wasm32-unknown-unknown", components = "clippy,rustfmt" } +rust = { version = "1.90.0", targets = "wasm32-unknown-unknown", components = "clippy,rustfmt" } diff --git a/server/src/action_card.rs b/server/src/action_card.rs index 9f146b7a..a8565f7b 100644 --- a/server/src/action_card.rs +++ b/server/src/action_card.rs @@ -328,7 +328,7 @@ pub fn combat_requirement_met( action_card_id: u8, requirement: &CombatRequirement, ) -> Option { - let sister_card = if action_card_id % 2 == 0 { + let sister_card = if action_card_id.is_multiple_of(2) { action_card_id - 1 } else { action_card_id + 1 diff --git a/server/src/payment.rs b/server/src/payment.rs index 332dcc19..cb1d3637 100644 --- a/server/src/payment.rs +++ b/server/src/payment.rs @@ -270,10 +270,7 @@ impl Display for PaymentOptions { } match conversion.payment_conversion_type { PaymentConversionType::Unlimited => {} - PaymentConversionType::MayOverpay(i) => { - write!(f, " (up to: {i})")?; - } - PaymentConversionType::MayNotOverpay(i) => { + PaymentConversionType::MayOverpay(i) | PaymentConversionType::MayNotOverpay(i) => { write!(f, " (up to: {i})")?; } } diff --git a/server/src/unit.rs b/server/src/unit.rs index f6440796..ce40fb82 100644 --- a/server/src/unit.rs +++ b/server/src/unit.rs @@ -706,7 +706,7 @@ fn save_carried_units(game: &mut Game, player: usize, pos: Position) { u.carrier_id .is_some_and(|id| game.player(player).try_get_unit(id).is_none()) }) - .map(|u| (u.id)) + .map(|u| u.id) .collect_vec(); if survivors.is_empty() { diff --git a/server/src/utils.rs b/server/src/utils.rs index faacbceb..d4102073 100644 --- a/server/src/utils.rs +++ b/server/src/utils.rs @@ -92,7 +92,7 @@ pub fn median(list: &[f64]) -> f64 { let mut sorted_list = list.to_vec(); sorted_list.sort_by(f64::total_cmp); let len = sorted_list.len(); - if len % 2 == 0 { + if len.is_multiple_of(2) { f64::midpoint(sorted_list[len / 2 - 1], sorted_list[len / 2]) } else { sorted_list[len / 2] From b3ede391af735979f34f4cd54ea4d098ce3969f0 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 21 Sep 2025 08:52:00 +0000 Subject: [PATCH 023/189] Update Rust crate wasm-bindgen-futures to v0.4.53 (#354) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Coming soon: The Renovate bot (GitHub App) will be renamed to Mend. PRs from Renovate will soon appear from 'Mend'. Learn more [here](https://redirect.github.com/renovatebot/renovate/discussions/37842). This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [wasm-bindgen-futures](https://wasm-bindgen.github.io/wasm-bindgen/) ([source](https://redirect.github.com/wasm-bindgen/wasm-bindgen/tree/HEAD/crates/futures)) | dependencies | patch | `0.4.51` -> `0.4.53` | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Gregor Zeitlinger --- Cargo.lock | 32 ++++++++++++++++---------------- mise.toml | 2 +- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 38d2a419..d7df62db 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1015,9 +1015,9 @@ checksum = "4a5f13b858c8d314ee3e8f639011f7ccefe71f97f96e50151fb991f267928e2c" [[package]] name = "js-sys" -version = "0.3.78" +version = "0.3.80" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c0b063578492ceec17683ef2f8c5e89121fbd0b172cbc280635ab7567db2738" +checksum = "852f13bec5eba4ba9afbeb93fd7c13fe56147f055939ae21c43a29a0ecb2702e" dependencies = [ "once_cell", "wasm-bindgen", @@ -2314,9 +2314,9 @@ dependencies = [ [[package]] name = "wasm-bindgen" -version = "0.2.101" +version = "0.2.103" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7e14915cadd45b529bb8d1f343c4ed0ac1de926144b746e2710f9cd05df6603b" +checksum = "ab10a69fbd0a177f5f649ad4d8d3305499c42bab9aef2f7ff592d0ec8f833819" dependencies = [ "cfg-if", "once_cell", @@ -2327,9 +2327,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-backend" -version = "0.2.101" +version = "0.2.103" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e28d1ba982ca7923fd01448d5c30c6864d0a14109560296a162f80f305fb93bb" +checksum = "0bb702423545a6007bbc368fde243ba47ca275e549c8a28617f56f6ba53b1d1c" dependencies = [ "bumpalo", "log", @@ -2341,9 +2341,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-futures" -version = "0.4.51" +version = "0.4.53" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0ca85039a9b469b38336411d6d6ced91f3fc87109a2a27b0c197663f5144dffe" +checksum = "a0b221ff421256839509adbb55998214a70d829d3a28c69b4a6672e9d2a42f67" dependencies = [ "cfg-if", "js-sys", @@ -2354,9 +2354,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro" -version = "0.2.101" +version = "0.2.103" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7c3d463ae3eff775b0c45df9da45d68837702ac35af998361e2c84e7c5ec1b0d" +checksum = "fc65f4f411d91494355917b605e1480033152658d71f722a90647f56a70c88a0" dependencies = [ "quote", "wasm-bindgen-macro-support", @@ -2364,9 +2364,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro-support" -version = "0.2.101" +version = "0.2.103" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7bb4ce89b08211f923caf51d527662b75bdc9c9c7aab40f86dcb9fb85ac552aa" +checksum = "ffc003a991398a8ee604a401e194b6b3a39677b3173d6e74495eb51b82e99a32" dependencies = [ "proc-macro2", "quote", @@ -2377,18 +2377,18 @@ dependencies = [ [[package]] name = "wasm-bindgen-shared" -version = "0.2.101" +version = "0.2.103" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f143854a3b13752c6950862c906306adb27c7e839f7414cec8fea35beab624c1" +checksum = "293c37f4efa430ca14db3721dfbe48d8c33308096bd44d80ebaa775ab71ba1cf" dependencies = [ "unicode-ident", ] [[package]] name = "web-sys" -version = "0.3.78" +version = "0.3.80" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "77e4b637749ff0d92b8fad63aa1f7cff3cbe125fd49c175cd6345e7272638b12" +checksum = "fbe734895e869dc429d78c4b433f8d17d95f8d05317440b4fad5ab2d33e596dc" dependencies = [ "js-sys", "wasm-bindgen", diff --git a/mise.toml b/mise.toml index 24f2b7a7..a4cf185e 100644 --- a/mise.toml +++ b/mise.toml @@ -68,7 +68,7 @@ run = "./scripts/publish-client.sh test" [tools] "cargo:cargo-nextest" = "0.9.103" -"cargo:wasm-bindgen-cli" = "0.2.101" +"cargo:wasm-bindgen-cli" = "0.2.103" "cargo:wasm-pack" = "0.13.1" rust = { version = "1.90.0", targets = "wasm32-unknown-unknown", components = "clippy,rustfmt" } From 8b1b2300ac051e8078a61b47ec59e201b4be2f71 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 23 Sep 2025 05:06:42 +0000 Subject: [PATCH 024/189] Update dependency mise to v2025.9.16 (#357) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Coming soon: The Renovate bot (GitHub App) will be renamed to Mend. PRs from Renovate will soon appear from 'Mend'. Learn more [here](https://redirect.github.com/renovatebot/renovate/discussions/37842). This PR contains the following updates: | Package | Update | Change | |---|---|---| | [mise](https://redirect.github.com/jdx/mise) | patch | `v2025.9.10` -> `v2025.9.16` | --- ### Release Notes
jdx/mise (mise) ### [`v2025.9.16`](https://redirect.github.com/jdx/mise/releases/tag/v2025.9.16) [Compare Source](https://redirect.github.com/jdx/mise/compare/v2025.9.15...v2025.9.16) ##### 📦 Registry - use npm backend for zbctl by [@​risu729](https://redirect.github.com/risu729) in [#​6379](https://redirect.github.com/jdx/mise/pull/6379) ##### 🐛 Bug Fixes - **(aqua)** remove blake3 support from aqua checksum algorithms by [@​risu729](https://redirect.github.com/risu729) in [#​6370](https://redirect.github.com/jdx/mise/pull/6370) - **(aqua)** remove cosign and slsa-verifier dependencies by [@​risu729](https://redirect.github.com/risu729) in [#​6371](https://redirect.github.com/jdx/mise/pull/6371) - **(aqua)** remove cosign.experimental by [@​risu729](https://redirect.github.com/risu729) in [#​6376](https://redirect.github.com/jdx/mise/pull/6376) - **(file)** handle GNU sparse files and tar crate extraction issues by [@​jdx](https://redirect.github.com/jdx) in [#​6380](https://redirect.github.com/jdx/mise/pull/6380) ##### 📚 Documentation - minisign doesn't require cli by [@​risu729](https://redirect.github.com/risu729) in [#​6369](https://redirect.github.com/jdx/mise/pull/6369) ##### Chore - ignore renovate new bot name by [@​risu729](https://redirect.github.com/risu729) in [#​6364](https://redirect.github.com/jdx/mise/pull/6364) ### [`v2025.9.15`](https://redirect.github.com/jdx/mise/releases/tag/v2025.9.15) [Compare Source](https://redirect.github.com/jdx/mise/compare/v2025.9.14...v2025.9.15) ##### 📦 Registry - add missing cargo backends by [@​jayvdb](https://redirect.github.com/jayvdb) in [#​6307](https://redirect.github.com/jdx/mise/pull/6307) ##### 🚀 Features - add env propagation by [@​Its-Just-Nans](https://redirect.github.com/Its-Just-Nans) in [#​6342](https://redirect.github.com/jdx/mise/pull/6342) ##### 🐛 Bug Fixes - **(aqua)** improve GitHub token handling for sigstore verification by [@​jdx](https://redirect.github.com/jdx) in [#​6351](https://redirect.github.com/jdx/mise/pull/6351) - **(backend)** change dependency checks to warnings instead of errors by [@​jdx](https://redirect.github.com/jdx) in [#​6363](https://redirect.github.com/jdx/mise/pull/6363) - **(npm)** improve error message when npm/bun is not installed by [@​jdx](https://redirect.github.com/jdx) in [#​6359](https://redirect.github.com/jdx/mise/pull/6359) - **(vfox)** enable TLS support for reqwest to fix CI tests by [@​jdx](https://redirect.github.com/jdx) in [#​6356](https://redirect.github.com/jdx/mise/pull/6356) ##### 🚜 Refactor - **(registry)** convert to nested TOML sections format by [@​jdx](https://redirect.github.com/jdx) in [#​6361](https://redirect.github.com/jdx/mise/pull/6361) ##### 🧪 Testing - **(e2e)** resolve mise via PATH in backend missing deps test by [@​jdx](https://redirect.github.com/jdx) in [#​6362](https://redirect.github.com/jdx/mise/pull/6362) - **(vfox)** replace flaky external HTTP tests with local mock server by [@​jdx](https://redirect.github.com/jdx) in [#​6354](https://redirect.github.com/jdx/mise/pull/6354) ##### 📦️ Dependency Updates - pin dependencies by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​6243](https://redirect.github.com/jdx/mise/pull/6243) ##### Chore - **(install.sh)** add `MISE_INSTALL_MUSL` to force installing musl variants on Linux by [@​malept](https://redirect.github.com/malept) in [#​6355](https://redirect.github.com/jdx/mise/pull/6355) ### [`v2025.9.14`](https://redirect.github.com/jdx/mise/releases/tag/v2025.9.14) [Compare Source](https://redirect.github.com/jdx/mise/compare/v2025.9.13...v2025.9.14) ##### 🐛 Bug Fixes - fix an issue where Swift could not be installed on arm64 Ubuntu by [@​lish82](https://redirect.github.com/lish82) in [#​6348](https://redirect.github.com/jdx/mise/pull/6348) ##### Chore - use cross to build on linux by [@​jdx](https://redirect.github.com/jdx) in [#​6346](https://redirect.github.com/jdx/mise/pull/6346) ##### New Contributors - [@​lish82](https://redirect.github.com/lish82) made their first contribution in [#​6348](https://redirect.github.com/jdx/mise/pull/6348) ### [`v2025.9.13`](https://redirect.github.com/jdx/mise/releases/tag/v2025.9.13) [Compare Source](https://redirect.github.com/jdx/mise/compare/v2025.9.12...v2025.9.13) ##### 📦 Registry - remove deprecated virtualos by [@​jdx](https://redirect.github.com/jdx) in [166379f](https://redirect.github.com/jdx/mise/commit/166379f71c79fccacfc980dd14d4e18642c7d1e5) - add trufflehog ([aqua:trufflesecurity/trufflehog](https://redirect.github.com/trufflesecurity/trufflehog)) by [@​risu729](https://redirect.github.com/risu729) in [#​6316](https://redirect.github.com/jdx/mise/pull/6316) ##### 🚀 Features - **(aqua)** integrate native sigstore-verification for security verification by [@​jdx](https://redirect.github.com/jdx) in [#​6332](https://redirect.github.com/jdx/mise/pull/6332) - **(docs)** improve search result readability with lighter teal background by [@​jdx](https://redirect.github.com/jdx) in [#​6328](https://redirect.github.com/jdx/mise/pull/6328) - **(ui)** update logo as favicon and fix hover transitions by [@​jdx](https://redirect.github.com/jdx) in [#​6325](https://redirect.github.com/jdx/mise/pull/6325) - **(vfox)** add file.read lua function by [@​malept](https://redirect.github.com/malept) in [#​6333](https://redirect.github.com/jdx/mise/pull/6333) - add documentation for "Environment in tasks" [#​5134](https://redirect.github.com/jdx/mise/issues/5134) [#​5638](https://redirect.github.com/jdx/mise/issues/5638) by [@​Its-Just-Nans](https://redirect.github.com/Its-Just-Nans) in [#​6329](https://redirect.github.com/jdx/mise/pull/6329) ##### 🐛 Bug Fixes - **(github)** correctly paginate releases/tags for private repos by [@​malept](https://redirect.github.com/malept) in [#​6318](https://redirect.github.com/jdx/mise/pull/6318) - **(hk)** exclude aqua-registry from prettier linting by [@​jdx](https://redirect.github.com/jdx) in [#​6327](https://redirect.github.com/jdx/mise/pull/6327) - **(ui)** improve GitHub star badge layout and alignment by [@​jdx](https://redirect.github.com/jdx) in [#​6326](https://redirect.github.com/jdx/mise/pull/6326) ##### 📚 Documentation - change 'hello.py' to 'main.py' in python.md by [@​my1e5](https://redirect.github.com/my1e5) in [#​6319](https://redirect.github.com/jdx/mise/pull/6319) - customize VitePress theme with unique branding by [@​jdx](https://redirect.github.com/jdx) in [#​6324](https://redirect.github.com/jdx/mise/pull/6324) ##### 📦️ Dependency Updates - update taiki-e/install-action digest to [`0aa4f22`](https://redirect.github.com/jdx/mise/commit/0aa4f22) by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​6334](https://redirect.github.com/jdx/mise/pull/6334) - update rust crate comfy-table to v7.2.1 by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​6335](https://redirect.github.com/jdx/mise/pull/6335) - update rust crate console to v0.16.1 by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​6336](https://redirect.github.com/jdx/mise/pull/6336) - update rust crate indexmap to v2.11.4 by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​6337](https://redirect.github.com/jdx/mise/pull/6337) ##### Chore - fixing typos by [@​Its-Just-Nans](https://redirect.github.com/Its-Just-Nans) in [#​6331](https://redirect.github.com/jdx/mise/pull/6331) ##### New Contributors - [@​Its-Just-Nans](https://redirect.github.com/Its-Just-Nans) made their first contribution in [#​6331](https://redirect.github.com/jdx/mise/pull/6331) - [@​my1e5](https://redirect.github.com/my1e5) made their first contribution in [#​6319](https://redirect.github.com/jdx/mise/pull/6319) ### [`v2025.9.12`](https://redirect.github.com/jdx/mise/releases/tag/v2025.9.12) [Compare Source](https://redirect.github.com/jdx/mise/compare/v2025.9.10...v2025.9.12) ##### 🐛 Bug Fixes - **(ci)** properly exclude aqua-registry files from hk linting by [@​jdx](https://redirect.github.com/jdx) in [42d7758](https://redirect.github.com/jdx/mise/commit/42d7758d157317088ac5194ac26eefc7fc1ba4f8) ##### Chore - **(release)** embed aqua-registry under crate and publish like vfox by [@​jdx](https://redirect.github.com/jdx) in [#​6306](https://redirect.github.com/jdx/mise/pull/6306) - ignore aqua-registry assets from prettier by [@​jdx](https://redirect.github.com/jdx) in [047d77b](https://redirect.github.com/jdx/mise/commit/047d77be35fea0b3277342cb6383a1873bca19a5) - disable "useless cat" shellcheck by [@​jdx](https://redirect.github.com/jdx) in [a6def59](https://redirect.github.com/jdx/mise/commit/a6def59fe945028934fed0694df2b4daeeaaf478)
--- ### Configuration 📅 **Schedule**: Branch creation - "before 4am on monday" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/bench.yml | 4 ++-- .github/workflows/check.yml | 4 ++-- .github/workflows/release.yml | 4 ++-- .github/workflows/test-release.yml | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index d6695639..b15d1abd 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -10,7 +10,7 @@ jobs: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - uses: jdx/mise-action@5ac50f778e26fac95da98d50503682459e86d566 # v3.2.0 with: - version: v2025.9.10 - sha256: ab57ab710cf3e323a93431c8bb7ea31e58a0d12f385bcadd83d1d183cde16bf0 + version: v2025.9.16 + sha256: 64875b8c4663d46bb147aa72189a8c54b377f2829c6cc21d028135e03b3c7195 - name: Random actions test run: mise run random-actions diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 1883d7b1..b69a9b3e 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -10,7 +10,7 @@ jobs: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - uses: jdx/mise-action@5ac50f778e26fac95da98d50503682459e86d566 # v3.2.0 with: - version: v2025.9.10 - sha256: ab57ab710cf3e323a93431c8bb7ea31e58a0d12f385bcadd83d1d183cde16bf0 + version: v2025.9.16 + sha256: 64875b8c4663d46bb147aa72189a8c54b377f2829c6cc21d028135e03b3c7195 - name: Check all run: mise run ci diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b749ff46..f563752d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,8 +14,8 @@ jobs: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - uses: jdx/mise-action@5ac50f778e26fac95da98d50503682459e86d566 # v3.2.0 with: - version: v2025.9.10 - sha256: ab57ab710cf3e323a93431c8bb7ea31e58a0d12f385bcadd83d1d183cde16bf0 + version: v2025.9.16 + sha256: 64875b8c4663d46bb147aa72189a8c54b377f2829c6cc21d028135e03b3c7195 - name: Use Node.js ${{ env.node_version }} uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5 with: diff --git a/.github/workflows/test-release.yml b/.github/workflows/test-release.yml index 0cde281c..8aa43ec9 100644 --- a/.github/workflows/test-release.yml +++ b/.github/workflows/test-release.yml @@ -10,8 +10,8 @@ jobs: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - uses: jdx/mise-action@5ac50f778e26fac95da98d50503682459e86d566 # v3.2.0 with: - version: v2025.9.10 - sha256: ab57ab710cf3e323a93431c8bb7ea31e58a0d12f385bcadd83d1d183cde16bf0 + version: v2025.9.16 + sha256: 64875b8c4663d46bb147aa72189a8c54b377f2829c6cc21d028135e03b3c7195 - name: Test server release run: mise run build-remote-server - name: Test client release From 27b149e4a63b9f718eb62d99df64321b1059691e Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 24 Sep 2025 18:50:00 +0000 Subject: [PATCH 025/189] Update Rust crate wasm-bindgen-futures to v0.4.54 (#358) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Coming soon: The Renovate bot (GitHub App) will be renamed to Mend. PRs from Renovate will soon appear from 'Mend'. Learn more [here](https://redirect.github.com/renovatebot/renovate/discussions/37842). This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [wasm-bindgen-futures](https://wasm-bindgen.github.io/wasm-bindgen/) ([source](https://redirect.github.com/wasm-bindgen/wasm-bindgen/tree/HEAD/crates/futures)) | dependencies | patch | `0.4.53` -> `0.4.54` | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- Cargo.lock | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index d7df62db..c26be866 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1015,9 +1015,9 @@ checksum = "4a5f13b858c8d314ee3e8f639011f7ccefe71f97f96e50151fb991f267928e2c" [[package]] name = "js-sys" -version = "0.3.80" +version = "0.3.81" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "852f13bec5eba4ba9afbeb93fd7c13fe56147f055939ae21c43a29a0ecb2702e" +checksum = "ec48937a97411dcb524a265206ccd4c90bb711fca92b2792c407f268825b9305" dependencies = [ "once_cell", "wasm-bindgen", @@ -2314,9 +2314,9 @@ dependencies = [ [[package]] name = "wasm-bindgen" -version = "0.2.103" +version = "0.2.104" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ab10a69fbd0a177f5f649ad4d8d3305499c42bab9aef2f7ff592d0ec8f833819" +checksum = "c1da10c01ae9f1ae40cbfac0bac3b1e724b320abfcf52229f80b547c0d250e2d" dependencies = [ "cfg-if", "once_cell", @@ -2327,9 +2327,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-backend" -version = "0.2.103" +version = "0.2.104" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0bb702423545a6007bbc368fde243ba47ca275e549c8a28617f56f6ba53b1d1c" +checksum = "671c9a5a66f49d8a47345ab942e2cb93c7d1d0339065d4f8139c486121b43b19" dependencies = [ "bumpalo", "log", @@ -2341,9 +2341,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-futures" -version = "0.4.53" +version = "0.4.54" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a0b221ff421256839509adbb55998214a70d829d3a28c69b4a6672e9d2a42f67" +checksum = "7e038d41e478cc73bae0ff9b36c60cff1c98b8f38f8d7e8061e79ee63608ac5c" dependencies = [ "cfg-if", "js-sys", @@ -2354,9 +2354,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro" -version = "0.2.103" +version = "0.2.104" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fc65f4f411d91494355917b605e1480033152658d71f722a90647f56a70c88a0" +checksum = "7ca60477e4c59f5f2986c50191cd972e3a50d8a95603bc9434501cf156a9a119" dependencies = [ "quote", "wasm-bindgen-macro-support", @@ -2364,9 +2364,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro-support" -version = "0.2.103" +version = "0.2.104" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ffc003a991398a8ee604a401e194b6b3a39677b3173d6e74495eb51b82e99a32" +checksum = "9f07d2f20d4da7b26400c9f4a0511e6e0345b040694e8a75bd41d578fa4421d7" dependencies = [ "proc-macro2", "quote", @@ -2377,18 +2377,18 @@ dependencies = [ [[package]] name = "wasm-bindgen-shared" -version = "0.2.103" +version = "0.2.104" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "293c37f4efa430ca14db3721dfbe48d8c33308096bd44d80ebaa775ab71ba1cf" +checksum = "bad67dc8b2a1a6e5448428adec4c3e84c43e561d8c9ee8a9e5aabeb193ec41d1" dependencies = [ "unicode-ident", ] [[package]] name = "web-sys" -version = "0.3.80" +version = "0.3.81" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fbe734895e869dc429d78c4b433f8d17d95f8d05317440b4fad5ab2d33e596dc" +checksum = "9367c417a924a74cae129e6a2ae3b47fabb1f8995595ab474029da749a8be120" dependencies = [ "js-sys", "wasm-bindgen", From 51cc2583a6a72c4bf72f259ac7835519796c5e7a Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 29 Sep 2025 01:39:34 +0000 Subject: [PATCH 026/189] Update dependency mise to v2025.9.23 (#359) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Coming soon: The Renovate bot (GitHub App) will be renamed to Mend. PRs from Renovate will soon appear from 'Mend'. Learn more [here](https://redirect.github.com/renovatebot/renovate/discussions/37842). This PR contains the following updates: | Package | Update | Change | |---|---|---| | [mise](https://redirect.github.com/jdx/mise) | patch | `v2025.9.16` -> `v2025.9.23` | --- ### Release Notes
jdx/mise (mise) ### [`v2025.9.23`](https://redirect.github.com/jdx/mise/releases/tag/v2025.9.23) [Compare Source](https://redirect.github.com/jdx/mise/compare/v2025.9.22...v2025.9.23) ##### 🚀 Features - **(env)** add support for required environment variables by [@​jdx](https://redirect.github.com/jdx) in [#​6461](https://redirect.github.com/jdx/mise/pull/6461) ##### 🐛 Bug Fixes - **(set)** unify config file resolution for mise set and mise use by [@​jdx](https://redirect.github.com/jdx) in [#​6467](https://redirect.github.com/jdx/mise/pull/6467) ##### Chore - **(clippy)** replace \&Box with \&dyn SingleReport by [@​jdx](https://redirect.github.com/jdx) in [#​6465](https://redirect.github.com/jdx/mise/pull/6465) ### [`v2025.9.22`](https://redirect.github.com/jdx/mise/releases/tag/v2025.9.22) [Compare Source](https://redirect.github.com/jdx/mise/compare/v2025.9.21...v2025.9.22) ##### 📦 Registry - re-enable tests by [@​risu729](https://redirect.github.com/risu729) in [#​6454](https://redirect.github.com/jdx/mise/pull/6454) - restore comments and tests by [@​risu729](https://redirect.github.com/risu729) in [#​6378](https://redirect.github.com/jdx/mise/pull/6378) - add github backend for graphite by [@​jdx](https://redirect.github.com/jdx) in [#​6455](https://redirect.github.com/jdx/mise/pull/6455) ##### 🚀 Features - **(backend)** add environment variable override for tool backends by [@​jdx](https://redirect.github.com/jdx) in [#​6456](https://redirect.github.com/jdx/mise/pull/6456) - add a http\_retries setting to define number of retry attempts by [@​roele](https://redirect.github.com/roele) in [#​6444](https://redirect.github.com/jdx/mise/pull/6444) ### [`v2025.9.21`](https://redirect.github.com/jdx/mise/releases/tag/v2025.9.21) [Compare Source](https://redirect.github.com/jdx/mise/compare/v2025.9.20...v2025.9.21) ##### 📦 Registry - remove incorrect bin\_path from balena-cli by [@​jdx](https://redirect.github.com/jdx) in [#​6445](https://redirect.github.com/jdx/mise/pull/6445) - disable oxlint test temporarily by [@​jdx](https://redirect.github.com/jdx) in [#​6446](https://redirect.github.com/jdx/mise/pull/6446) ##### 🚀 Features - **(cache)** add mise cache path command by [@​jdx](https://redirect.github.com/jdx) in [#​6442](https://redirect.github.com/jdx/mise/pull/6442) - **(github)** add support for compressed binaries and Buck2 to registry by [@​jdx](https://redirect.github.com/jdx) in [#​6439](https://redirect.github.com/jdx/mise/pull/6439) ##### 🐛 Bug Fixes - **(http)** bump mtime when extracting tarballs to cache by [@​jdx](https://redirect.github.com/jdx) in [#​6438](https://redirect.github.com/jdx/mise/pull/6438) ##### 🧪 Testing - **(vfox)** eliminate flaky remote host dependencies in tests by [@​jdx](https://redirect.github.com/jdx) in [#​6447](https://redirect.github.com/jdx/mise/pull/6447) - **(vfox)** improve test\_download\_file reliability by [@​jdx](https://redirect.github.com/jdx) in [#​6450](https://redirect.github.com/jdx/mise/pull/6450) - optimize remote task tests with local server by [@​jdx](https://redirect.github.com/jdx) in [#​6443](https://redirect.github.com/jdx/mise/pull/6443) - optimize git remote task tests with local repositories by [@​jdx](https://redirect.github.com/jdx) in [#​6441](https://redirect.github.com/jdx/mise/pull/6441) - mark slow e2e tests and add runtime warnings by [@​jdx](https://redirect.github.com/jdx) in [#​6449](https://redirect.github.com/jdx/mise/pull/6449) ##### Chore - **(ci)** run release workflow on PRs to main for branch protection by [@​jdx](https://redirect.github.com/jdx) in [#​6448](https://redirect.github.com/jdx/mise/pull/6448) ### [`v2025.9.20`](https://redirect.github.com/jdx/mise/releases/tag/v2025.9.20) [Compare Source](https://redirect.github.com/jdx/mise/compare/v2025.9.19...v2025.9.20) ##### 📦 Registry - use version\_prefix for github backends by [@​risu729](https://redirect.github.com/risu729) in [#​6409](https://redirect.github.com/jdx/mise/pull/6409) - fix hivemind by [@​mnm364](https://redirect.github.com/mnm364) in [#​6431](https://redirect.github.com/jdx/mise/pull/6431) - revert opam/k3kcli backends to ubi by [@​risu729](https://redirect.github.com/risu729) in [#​6406](https://redirect.github.com/jdx/mise/pull/6406) ##### 🚀 Features - **(spm)** add support for self-hosted and GitLab repositories by [@​roele](https://redirect.github.com/roele) in [#​6358](https://redirect.github.com/jdx/mise/pull/6358) - add instructions for self-update by [@​jdx](https://redirect.github.com/jdx) in [#​6433](https://redirect.github.com/jdx/mise/pull/6433) ##### 🐛 Bug Fixes - **(doctor)** exclude tools not supported on current os by [@​risu729](https://redirect.github.com/risu729) in [#​6422](https://redirect.github.com/jdx/mise/pull/6422) - **(json-schema)** remove settings/additionalProperties by [@​tpansino](https://redirect.github.com/tpansino) in [#​6420](https://redirect.github.com/jdx/mise/pull/6420) - **(task)** prevent hang when nested tasks fail by [@​jdx](https://redirect.github.com/jdx) in [#​6430](https://redirect.github.com/jdx/mise/pull/6430) - **(ubi)** filter versions with tag\_regex before trimming v prefixes by [@​risu729](https://redirect.github.com/risu729) in [#​6421](https://redirect.github.com/jdx/mise/pull/6421) - allow strip\_archive\_path\_components to strip a dir containing the same filename by [@​risu729](https://redirect.github.com/risu729) in [#​6405](https://redirect.github.com/jdx/mise/pull/6405) ##### 📦️ Dependency Updates - update ghcr.io/jdx/mise:alpine docker digest to [`a64d8b4`](https://redirect.github.com/jdx/mise/commit/a64d8b4) by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​6426](https://redirect.github.com/jdx/mise/pull/6426) - update actions/cache digest to [`0057852`](https://redirect.github.com/jdx/mise/commit/0057852) by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​6425](https://redirect.github.com/jdx/mise/pull/6425) - update ghcr.io/jdx/mise:deb docker digest to [`af96f8e`](https://redirect.github.com/jdx/mise/commit/af96f8e) by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​6428](https://redirect.github.com/jdx/mise/pull/6428) - update ghcr.io/jdx/mise:copr docker digest to [`0f98c77`](https://redirect.github.com/jdx/mise/commit/0f98c77) by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​6427](https://redirect.github.com/jdx/mise/pull/6427) ### [`v2025.9.19`](https://redirect.github.com/jdx/mise/releases/tag/v2025.9.19) [Compare Source](https://redirect.github.com/jdx/mise/compare/v2025.9.18...v2025.9.19) ##### 📦 Registry - fix mise-ghcup plugin managed tools descriptions by [@​risu729](https://redirect.github.com/risu729) in [#​6411](https://redirect.github.com/jdx/mise/pull/6411) - add Tinymist by [@​3w36zj6](https://redirect.github.com/3w36zj6) in [#​6412](https://redirect.github.com/jdx/mise/pull/6412) - revert djinni backend to ubi by [@​risu729](https://redirect.github.com/risu729) in [#​6410](https://redirect.github.com/jdx/mise/pull/6410) ##### 🚀 Features - **(github)** filter remote versions by version\_prefix by [@​risu729](https://redirect.github.com/risu729) in [#​6408](https://redirect.github.com/jdx/mise/pull/6408) - Remove experimental labels for GitHub and HTTP backends by [@​Copilot](https://redirect.github.com/Copilot) in [#​6415](https://redirect.github.com/jdx/mise/pull/6415) ##### 🐛 Bug Fixes - **(backend)** make pre-tools env vars available in postinstall hooks by [@​jdx](https://redirect.github.com/jdx) in [#​6418](https://redirect.github.com/jdx/mise/pull/6418) ##### 🧪 Testing - **(vfox)** replace flaky external tests with local dummy plugin by [@​jdx](https://redirect.github.com/jdx) in [#​6403](https://redirect.github.com/jdx/mise/pull/6403) ##### New Contributors - [@​Copilot](https://redirect.github.com/Copilot) made their first contribution in [#​6415](https://redirect.github.com/jdx/mise/pull/6415) ### [`v2025.9.18`](https://redirect.github.com/jdx/mise/releases/tag/v2025.9.18) [Compare Source](https://redirect.github.com/jdx/mise/compare/v2025.9.17...v2025.9.18) ##### 📦 Registry - replace amplify-cli github backend with ubi by [@​eggplants](https://redirect.github.com/eggplants) in [#​6396](https://redirect.github.com/jdx/mise/pull/6396) ##### 🚀 Features - **(config)** support vars in tool versions by [@​jdx](https://redirect.github.com/jdx) in [#​6401](https://redirect.github.com/jdx/mise/pull/6401) - **(template)** add read\_file() function by [@​jdx](https://redirect.github.com/jdx) in [#​6400](https://redirect.github.com/jdx/mise/pull/6400) ##### 🐛 Bug Fixes - **(aqua)** support github\_artifact\_attestations.enabled by [@​risu729](https://redirect.github.com/risu729) in [#​6372](https://redirect.github.com/jdx/mise/pull/6372) - use /c instead of -c on windows in postinstall hook by [@​risu729](https://redirect.github.com/risu729) in [#​6397](https://redirect.github.com/jdx/mise/pull/6397) ##### 🧪 Testing - **(test-tool)** uninstall all versions and clear cache before installation by [@​jdx](https://redirect.github.com/jdx) in [#​6393](https://redirect.github.com/jdx/mise/pull/6393) ##### New Contributors - [@​eggplants](https://redirect.github.com/eggplants) made their first contribution in [#​6396](https://redirect.github.com/jdx/mise/pull/6396) ### [`v2025.9.17`](https://redirect.github.com/jdx/mise/releases/tag/v2025.9.17) [Compare Source](https://redirect.github.com/jdx/mise/compare/v2025.9.16...v2025.9.17) ##### 🚀 Features - **(java)** add support for Liberica NIK releases by [@​roele](https://redirect.github.com/roele) in [#​6382](https://redirect.github.com/jdx/mise/pull/6382) ##### 🐛 Bug Fixes - **(toolset)** handle underflow in version\_sub function by [@​koh-sh](https://redirect.github.com/koh-sh) in [#​6389](https://redirect.github.com/jdx/mise/pull/6389) ##### 📚 Documentation - document MISE\_ENV behavior for global/system configs by [@​jdx](https://redirect.github.com/jdx) in [#​6385](https://redirect.github.com/jdx/mise/pull/6385) ##### New Contributors - [@​jc00ke](https://redirect.github.com/jc00ke) made their first contribution in [#​6386](https://redirect.github.com/jdx/mise/pull/6386) - [@​koh-sh](https://redirect.github.com/koh-sh) made their first contribution in [#​6389](https://redirect.github.com/jdx/mise/pull/6389)
--- ### Configuration 📅 **Schedule**: Branch creation - "before 4am on monday" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/bench.yml | 4 ++-- .github/workflows/check.yml | 4 ++-- .github/workflows/release.yml | 4 ++-- .github/workflows/test-release.yml | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index b15d1abd..2a8e0d3e 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -10,7 +10,7 @@ jobs: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - uses: jdx/mise-action@5ac50f778e26fac95da98d50503682459e86d566 # v3.2.0 with: - version: v2025.9.16 - sha256: 64875b8c4663d46bb147aa72189a8c54b377f2829c6cc21d028135e03b3c7195 + version: v2025.9.23 + sha256: 9f1af6a86479aaf4281b89620ce04363ba50ecf8343c6b457565557c233c6054 - name: Random actions test run: mise run random-actions diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index b69a9b3e..52f20203 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -10,7 +10,7 @@ jobs: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - uses: jdx/mise-action@5ac50f778e26fac95da98d50503682459e86d566 # v3.2.0 with: - version: v2025.9.16 - sha256: 64875b8c4663d46bb147aa72189a8c54b377f2829c6cc21d028135e03b3c7195 + version: v2025.9.23 + sha256: 9f1af6a86479aaf4281b89620ce04363ba50ecf8343c6b457565557c233c6054 - name: Check all run: mise run ci diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f563752d..c4f54ed7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,8 +14,8 @@ jobs: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - uses: jdx/mise-action@5ac50f778e26fac95da98d50503682459e86d566 # v3.2.0 with: - version: v2025.9.16 - sha256: 64875b8c4663d46bb147aa72189a8c54b377f2829c6cc21d028135e03b3c7195 + version: v2025.9.23 + sha256: 9f1af6a86479aaf4281b89620ce04363ba50ecf8343c6b457565557c233c6054 - name: Use Node.js ${{ env.node_version }} uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5 with: diff --git a/.github/workflows/test-release.yml b/.github/workflows/test-release.yml index 8aa43ec9..2045ead4 100644 --- a/.github/workflows/test-release.yml +++ b/.github/workflows/test-release.yml @@ -10,8 +10,8 @@ jobs: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - uses: jdx/mise-action@5ac50f778e26fac95da98d50503682459e86d566 # v3.2.0 with: - version: v2025.9.16 - sha256: 64875b8c4663d46bb147aa72189a8c54b377f2829c6cc21d028135e03b3c7195 + version: v2025.9.23 + sha256: 9f1af6a86479aaf4281b89620ce04363ba50ecf8343c6b457565557c233c6054 - name: Test server release run: mise run build-remote-server - name: Test client release From aa6e3bf3f7d145de0efdc00f8c0f941ae68169c5 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 29 Sep 2025 21:52:11 +0000 Subject: [PATCH 027/189] Update dependency webpack to v5.102.0 (#360) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Coming soon: The Renovate bot (GitHub App) will be renamed to Mend. PRs from Renovate will soon appear from 'Mend'. Learn more [here](https://redirect.github.com/renovatebot/renovate/discussions/37842). This PR contains the following updates: | Package | Change | Age | Confidence | |---|---|---|---| | [webpack](https://redirect.github.com/webpack/webpack) | [`5.101.3` -> `5.102.0`](https://renovatebot.com/diffs/npm/webpack/5.101.3/5.102.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/webpack/5.102.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/webpack/5.101.3/5.102.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
webpack/webpack (webpack) ### [`v5.102.0`](https://redirect.github.com/webpack/webpack/releases/tag/v5.102.0) [Compare Source](https://redirect.github.com/webpack/webpack/compare/v5.101.3...v5.102.0) ##### Features - Added static analyze for dynamic imports - Added support for `import file from "./file.ext" with { type: "bytes" }` to get the content as `Uint8Array` (look at [example](https://redirect.github.com/webpack/webpack/tree/main/examples/asset)) - Added support for `import file from "./file.ext" with { type: "text" }` to get the content as text (look at [example](https://redirect.github.com/webpack/webpack/tree/main/examples/asset)) - Added the `snapshot.contextModule` to configure snapshots options for context modules - Added the `extractSourceMap` option to implement the capabilities of loading source maps by comment, you don't need `source-map-loader` (look at [example](https://redirect.github.com/webpack/webpack/tree/main/examples/source-mapping-url)) - The `topLevelAwait` experiment is now stable (you can remove `experiments.topLevelAwait` from your `webpack.config.js`) - The `layers` experiment is now stable (you can remove `experiments.layers` from your `webpack.config.js`) - Added function matcher support in rule options ##### Fixes - Fixed conflicts caused by multiple concatenate modules - Ignore import failure during HMR update with ES modules output - Keep render module order consistent - Prevent inlining modules that have `this` exports - Removed unused `timeout` attribute of script tag - Supported UMD chunk format to work in web workers - Improved CommonJs bundle to ES module library - Use `es-lexer` for `mjs` files for build dependencies - Fixed support `__non_webpack_require__` for ES modules - Properly handle external modules for CSS - AssetsByChunkName included assets from `chunk.auxiliaryFiles` - Use `createRequire` only when output is ES module and target is node - Typescript types ##### Performance Improvements - Avoid extra calls for snapshot - A avoid extra jobs for build dependencies - Move import attributes to own dependencies
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- client/js/package-lock.json | 89 ++++++++++++++++++++----------------- client/js/package.json | 2 +- 2 files changed, 49 insertions(+), 42 deletions(-) diff --git a/client/js/package-lock.json b/client/js/package-lock.json index 98e88b3f..ad544c08 100644 --- a/client/js/package-lock.json +++ b/client/js/package-lock.json @@ -43,9 +43,9 @@ "dev": true }, "@jridgewell/trace-mapping": { - "version": "0.3.30", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.30.tgz", - "integrity": "sha512-GQ7Nw5G2lTu/BtHTKfXhKHok2WGetd4XYcVKGx00SjAk8GMwgJM3zr6zORiPGuOE+/vkc90KtTosSSvaCjKb2Q==", + "version": "0.3.31", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz", + "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==", "dev": true, "requires": { "@jridgewell/resolve-uri": "^3.1.0", @@ -85,12 +85,12 @@ "dev": true }, "@types/node": { - "version": "24.3.0", - "resolved": "https://registry.npmjs.org/@types/node/-/node-24.3.0.tgz", - "integrity": "sha512-aPTXCrfwnDLj4VvXrm+UUCQjNEvJgNA8s5F1cvwQU+3KNltTOkBm1j30uNLyqqPNe7gE3KFzImYoZEfLhp4Yow==", + "version": "24.6.0", + "resolved": "https://registry.npmjs.org/@types/node/-/node-24.6.0.tgz", + "integrity": "sha512-F1CBxgqwOMc4GKJ7eY22hWhBVQuMYTtqI8L0FcszYcpYX0fzfDGpez22Xau8Mgm7O9fI+zA/TYIdq3tGWfweBA==", "dev": true, "requires": { - "undici-types": "~7.10.0" + "undici-types": "~7.13.0" } }, "@webassemblyjs/ast": { @@ -311,15 +311,22 @@ "fast-deep-equal": "^3.1.3" } }, + "baseline-browser-mapping": { + "version": "2.8.9", + "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.8.9.tgz", + "integrity": "sha512-hY/u2lxLrbecMEWSB0IpGzGyDyeoMFQhCvZd2jGFSE5I17Fh01sYUBPCJtkWERw7zrac9+cIghxm/ytJa2X8iA==", + "dev": true + }, "browserslist": { - "version": "4.25.2", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.25.2.tgz", - "integrity": "sha512-0si2SJK3ooGzIawRu61ZdPCO1IncZwS8IzuX73sPZsXW6EQ/w/DAfPyKI8l1ETTCr2MnvqWitmlCUxgdul45jA==", + "version": "4.26.2", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.26.2.tgz", + "integrity": "sha512-ECFzp6uFOSB+dcZ5BK/IBaGWssbSYBHvuMeMt3MMFyhI0Z8SqGgEkBLARgpRH3hutIgPVsALcMwbDrJqPxQ65A==", "dev": true, "requires": { - "caniuse-lite": "^1.0.30001733", - "electron-to-chromium": "^1.5.199", - "node-releases": "^2.0.19", + "baseline-browser-mapping": "^2.8.3", + "caniuse-lite": "^1.0.30001741", + "electron-to-chromium": "^1.5.218", + "node-releases": "^2.0.21", "update-browserslist-db": "^1.1.3" } }, @@ -330,9 +337,9 @@ "dev": true }, "caniuse-lite": { - "version": "1.0.30001735", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001735.tgz", - "integrity": "sha512-EV/laoX7Wq2J9TQlyIXRxTJqIw4sxfXS4OYgudGxBYRuTv0q7AM6yMEpU/Vo1I94thg9U6EZ2NfZx9GJq83u7w==", + "version": "1.0.30001745", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001745.tgz", + "integrity": "sha512-ywt6i8FzvdgrrrGbr1jZVObnVv6adj+0if2/omv9cmR2oiZs30zL4DIyaptKcbOrBdOIc74QTMoJvSE2QHh5UQ==", "dev": true }, "chrome-trace-event": { @@ -376,9 +383,9 @@ } }, "electron-to-chromium": { - "version": "1.5.203", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.203.tgz", - "integrity": "sha512-uz4i0vLhfm6dLZWbz/iH88KNDV+ivj5+2SA+utpgjKaj9Q0iDLuwk6Idhe9BTxciHudyx6IvTvijhkPvFGUQ0g==", + "version": "1.5.227", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.227.tgz", + "integrity": "sha512-ITxuoPfJu3lsNWUi2lBM2PaBPYgH3uqmxut5vmBxgYvyI4AlJ6P3Cai1O76mOrkJCBzq0IxWg/NtqOrpu/0gKA==", "dev": true }, "enhanced-resolve": { @@ -454,9 +461,9 @@ "dev": true }, "fast-uri": { - "version": "3.0.6", - "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.0.6.tgz", - "integrity": "sha512-Atfo14OibSv5wAp4VWNsFYE1AchQRTv9cBGWET4pZWHzYshFSS9NQI6I57rdKn9croWVMbYFbLhJ+yJvmZIIHw==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.0.tgz", + "integrity": "sha512-iPeeDKJSWf4IEOasVVrknXpaBV0IApz/gp7S2bb7Z4Lljbl2MGJRqInZiUrQwV16cpzw/D3S5j5Julj/gT52AA==", "dev": true }, "fastest-levenshtein": { @@ -632,9 +639,9 @@ "dev": true }, "node-releases": { - "version": "2.0.19", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.19.tgz", - "integrity": "sha512-xxOWJsBKtzAq7DY0J+DTzuz58K8e7sJbdgwkbMWQe8UYB6ekmsQ45q0M/tJDsGaZmbC+l7n57UV8Hl5tHxO9uw==", + "version": "2.0.21", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.21.tgz", + "integrity": "sha512-5b0pgg78U3hwXkCM8Z9b2FJdPZlr9Psr9V2gQPESdGHqbntyFJKFW4r5TeWGFzafGY3hzs1JC62VEQMbl1JFkw==", "dev": true }, "p-limit": { @@ -827,19 +834,19 @@ "dev": true }, "tapable": { - "version": "2.2.2", - "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.2.tgz", - "integrity": "sha512-Re10+NauLTMCudc7T5WLFLAwDhQ0JWdrMK+9B2M8zR5hRExKmsRDCBA7/aV/pNJFltmBFO5BAMlQFi/vq3nKOg==", + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.3.tgz", + "integrity": "sha512-ZL6DDuAlRlLGghwcfmSn9sK3Hr6ArtyudlSAiCqQ6IfE+b+HHbydbYDIG15IfS5do+7XQQBdBiubF/cV2dnDzg==", "dev": true }, "terser": { - "version": "5.43.1", - "resolved": "https://registry.npmjs.org/terser/-/terser-5.43.1.tgz", - "integrity": "sha512-+6erLbBm0+LROX2sPXlUYx/ux5PyE9K/a92Wrt6oA+WDAoFTdpHE5tCYCI5PNzq2y8df4rA+QgHLJuR4jNymsg==", + "version": "5.44.0", + "resolved": "https://registry.npmjs.org/terser/-/terser-5.44.0.tgz", + "integrity": "sha512-nIVck8DK+GM/0Frwd+nIhZ84pR/BX7rmXMfYwyg+Sri5oGVE99/E3KvXqpC2xHFxyqXyGHTKBSioxxplrO4I4w==", "dev": true, "requires": { "@jridgewell/source-map": "^0.3.3", - "acorn": "^8.14.0", + "acorn": "^8.15.0", "commander": "^2.20.0", "source-map-support": "~0.5.20" } @@ -858,9 +865,9 @@ } }, "undici-types": { - "version": "7.10.0", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.10.0.tgz", - "integrity": "sha512-t5Fy/nfn+14LuOc2KNYg75vZqClpAiqscVvMygNnlsHBFpSXdJaYtXMcdNLpl/Qvc3P2cB3s6lOV51nqsFq4ag==", + "version": "7.13.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.13.0.tgz", + "integrity": "sha512-Ov2Rr9Sx+fRgagJ5AX0qvItZG/JKKoBRAVITs1zk7IqZGTJUwgUr7qoYBpWwakpWilTZFM98rG/AFRocu10iIQ==", "dev": true }, "update-browserslist-db": { @@ -884,9 +891,9 @@ } }, "webpack": { - "version": "5.101.3", - "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.101.3.tgz", - "integrity": "sha512-7b0dTKR3Ed//AD/6kkx/o7duS8H3f1a4w3BYpIriX4BzIhjkn4teo05cptsxvLesHFKK5KObnadmCHBwGc+51A==", + "version": "5.102.0", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.102.0.tgz", + "integrity": "sha512-hUtqAR3ZLVEYDEABdBioQCIqSoguHbFn1K7WlPPWSuXmx0031BD73PSE35jKyftdSh4YLDoQNgK4pqBt5Q82MA==", "dev": true, "requires": { "@types/eslint-scope": "^3.7.7", @@ -897,7 +904,7 @@ "@webassemblyjs/wasm-parser": "^1.14.1", "acorn": "^8.15.0", "acorn-import-phases": "^1.0.3", - "browserslist": "^4.24.0", + "browserslist": "^4.24.5", "chrome-trace-event": "^1.0.2", "enhanced-resolve": "^5.17.3", "es-module-lexer": "^1.2.1", @@ -910,9 +917,9 @@ "mime-types": "^2.1.27", "neo-async": "^2.6.2", "schema-utils": "^4.3.2", - "tapable": "^2.1.1", + "tapable": "^2.2.3", "terser-webpack-plugin": "^5.3.11", - "watchpack": "^2.4.1", + "watchpack": "^2.4.4", "webpack-sources": "^3.3.3" } }, diff --git a/client/js/package.json b/client/js/package.json index acd7189d..5d63caf3 100644 --- a/client/js/package.json +++ b/client/js/package.json @@ -18,7 +18,7 @@ "build": "webpack" }, "devDependencies": { - "webpack": "5.101.3", + "webpack": "5.102.0", "webpack-cli": "6.0.1" }, "dependencies": { From 15ffe7cf3f5440584200a3ef37fbf7d895ba17e8 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 3 Oct 2025 12:48:03 +0000 Subject: [PATCH 028/189] Update jdx/mise-action action to v3.3.0 (#361) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit > [!NOTE] > Mend has cancelled [the proposed renaming](https://redirect.github.com/renovatebot/renovate/discussions/37842) of the Renovate GitHub app being renamed to `mend[bot]`. > > This notice will be removed on 2025-10-07.
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [jdx/mise-action](https://redirect.github.com/jdx/mise-action) | action | minor | `v3.2.0` -> `v3.3.0` | --- ### Release Notes
jdx/mise-action (jdx/mise-action) ### [`v3.3.0`](https://redirect.github.com/jdx/mise-action/releases/tag/v3.3.0) [Compare Source](https://redirect.github.com/jdx/mise-action/compare/v3.2.0...v3.3.0) #### What's Changed - chore(deps): update github/codeql-action digest to [`d3678e2`](https://redirect.github.com/jdx/mise-action/commit/d3678e2) by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​259](https://redirect.github.com/jdx/mise-action/pull/259) - chore(deps): pin actions/checkout action to [`08eba0b`](https://redirect.github.com/jdx/mise-action/commit/08eba0b) by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​258](https://redirect.github.com/jdx/mise-action/pull/258) - chore(config): migrate renovate config by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​263](https://redirect.github.com/jdx/mise-action/pull/263) - chore(deps): update dependency [@​types/node](https://redirect.github.com/types/node) to v24.3.1 by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​261](https://redirect.github.com/jdx/mise-action/pull/261) - chore(deps): update dependency globals to v16.4.0 by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​265](https://redirect.github.com/jdx/mise-action/pull/265) - chore(deps): update dependency jest to v30.1.3 by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​262](https://redirect.github.com/jdx/mise-action/pull/262) - chore(deps): update dependency typescript-eslint to v8.43.0 by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​266](https://redirect.github.com/jdx/mise-action/pull/266) - chore(deps): update github/codeql-action digest to [`192325c`](https://redirect.github.com/jdx/mise-action/commit/192325c) by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​269](https://redirect.github.com/jdx/mise-action/pull/269) - chore(deps): update dependency [@​vercel/ncc](https://redirect.github.com/vercel/ncc) to v0.38.4 by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​270](https://redirect.github.com/jdx/mise-action/pull/270) - chore(deps): update dependency typescript-eslint to v8.44.0 by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​272](https://redirect.github.com/jdx/mise-action/pull/272) - chore(deps): update dependency [@​types/node](https://redirect.github.com/types/node) to v24.5.2 by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​271](https://redirect.github.com/jdx/mise-action/pull/271) - chore(deps): update github/codeql-action digest to [`303c0ae`](https://redirect.github.com/jdx/mise-action/commit/303c0ae) by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​274](https://redirect.github.com/jdx/mise-action/pull/274) - chore(deps): update dependency typescript-eslint to v8.44.1 by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​275](https://redirect.github.com/jdx/mise-action/pull/275) - fix(cache): replace `,` in `MISE_ENV` with `-` by [@​risu729](https://redirect.github.com/risu729) in [#​278](https://redirect.github.com/jdx/mise-action/pull/278) - chore(deps): update github/codeql-action digest to [`64d10c1`](https://redirect.github.com/jdx/mise-action/commit/64d10c1) by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​279](https://redirect.github.com/jdx/mise-action/pull/279) - chore(deps): update dependency typescript to v5.9.3 by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​280](https://redirect.github.com/jdx/mise-action/pull/280) - feat: use self-update to modify version if mise is already installed by [@​ImpSy](https://redirect.github.com/ImpSy) in [#​277](https://redirect.github.com/jdx/mise-action/pull/277) - chore(deps): update dependency [@​types/handlebars](https://redirect.github.com/types/handlebars) to v4.1.0 by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​283](https://redirect.github.com/jdx/mise-action/pull/283) - chore(deps): lock file maintenance by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​268](https://redirect.github.com/jdx/mise-action/pull/268) - chore: release v3.3.0 by [@​mise-en-dev](https://redirect.github.com/mise-en-dev) in [#​284](https://redirect.github.com/jdx/mise-action/pull/284) #### New Contributors - [@​ImpSy](https://redirect.github.com/ImpSy) made their first contribution in [#​277](https://redirect.github.com/jdx/mise-action/pull/277) - [@​mise-en-dev](https://redirect.github.com/mise-en-dev) made their first contribution in [#​284](https://redirect.github.com/jdx/mise-action/pull/284) **Full Changelog**:
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/bench.yml | 2 +- .github/workflows/check.yml | 2 +- .github/workflows/release.yml | 2 +- .github/workflows/test-release.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index 2a8e0d3e..35ef2186 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -8,7 +8,7 @@ jobs: steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - - uses: jdx/mise-action@5ac50f778e26fac95da98d50503682459e86d566 # v3.2.0 + - uses: jdx/mise-action@156251fcc627ac4e26cb0f93dd47d1d4979abf24 # v3.3.0 with: version: v2025.9.23 sha256: 9f1af6a86479aaf4281b89620ce04363ba50ecf8343c6b457565557c233c6054 diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 52f20203..ff18f8f4 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -8,7 +8,7 @@ jobs: steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - - uses: jdx/mise-action@5ac50f778e26fac95da98d50503682459e86d566 # v3.2.0 + - uses: jdx/mise-action@156251fcc627ac4e26cb0f93dd47d1d4979abf24 # v3.3.0 with: version: v2025.9.23 sha256: 9f1af6a86479aaf4281b89620ce04363ba50ecf8343c6b457565557c233c6054 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c4f54ed7..2b33a627 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - - uses: jdx/mise-action@5ac50f778e26fac95da98d50503682459e86d566 # v3.2.0 + - uses: jdx/mise-action@156251fcc627ac4e26cb0f93dd47d1d4979abf24 # v3.3.0 with: version: v2025.9.23 sha256: 9f1af6a86479aaf4281b89620ce04363ba50ecf8343c6b457565557c233c6054 diff --git a/.github/workflows/test-release.yml b/.github/workflows/test-release.yml index 2045ead4..f9556fe0 100644 --- a/.github/workflows/test-release.yml +++ b/.github/workflows/test-release.yml @@ -8,7 +8,7 @@ jobs: steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - - uses: jdx/mise-action@5ac50f778e26fac95da98d50503682459e86d566 # v3.2.0 + - uses: jdx/mise-action@156251fcc627ac4e26cb0f93dd47d1d4979abf24 # v3.3.0 with: version: v2025.9.23 sha256: 9f1af6a86479aaf4281b89620ce04363ba50ecf8343c6b457565557c233c6054 From d3518236f7ceeebe834d0ed9828bc8516105ef98 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 6 Oct 2025 02:00:18 +0000 Subject: [PATCH 029/189] Update dependency mise to v2025.10.2 (#362) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit > [!NOTE] > Mend has cancelled [the proposed renaming](https://redirect.github.com/renovatebot/renovate/discussions/37842) of the Renovate GitHub app being renamed to `mend[bot]`. > > This notice will be removed on 2025-10-07.
This PR contains the following updates: | Package | Update | Change | |---|---|---| | [mise](https://redirect.github.com/jdx/mise) | minor | `v2025.9.23` -> `v2025.10.2` | --- ### Release Notes
jdx/mise (mise) ### [`v2025.10.2`](https://redirect.github.com/jdx/mise/releases/tag/v2025.10.2) [Compare Source](https://redirect.github.com/jdx/mise/compare/v2025.10.1...v2025.10.2) ##### 🐛 Bug Fixes - **(shell)** prevent infinite loop in zsh command-not-found handler by [@​yordis](https://redirect.github.com/yordis) in [#​6516](https://redirect.github.com/jdx/mise/pull/6516) - **(snapcraft)** add missing home plug for the home directory access permission by [@​phanect](https://redirect.github.com/phanect) in [#​6525](https://redirect.github.com/jdx/mise/pull/6525) - **(vfox)** implement headers support on http mod by [@​BasixKOR](https://redirect.github.com/BasixKOR) in [#​6521](https://redirect.github.com/jdx/mise/pull/6521) - set MIX\_HOME and MIX\_ARCHIVES when using the elixir plugin by [@​numso](https://redirect.github.com/numso) in [#​6504](https://redirect.github.com/jdx/mise/pull/6504) ##### 📦️ Dependency Updates - update docker/login-action digest to [`5e57cd1`](https://redirect.github.com/jdx/mise/commit/5e57cd1) by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​6522](https://redirect.github.com/jdx/mise/pull/6522) - update fedora:43 docker digest to [`2c0d72b`](https://redirect.github.com/jdx/mise/commit/2c0d72b) by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​6523](https://redirect.github.com/jdx/mise/pull/6523) ##### Security - verify macOS binary signature during self-update by [@​jdx](https://redirect.github.com/jdx) in [#​6528](https://redirect.github.com/jdx/mise/pull/6528) ##### New Contributors - [@​yordis](https://redirect.github.com/yordis) made their first contribution in [#​6516](https://redirect.github.com/jdx/mise/pull/6516) - [@​numso](https://redirect.github.com/numso) made their first contribution in [#​6504](https://redirect.github.com/jdx/mise/pull/6504) - [@​BasixKOR](https://redirect.github.com/BasixKOR) made their first contribution in [#​6521](https://redirect.github.com/jdx/mise/pull/6521) ### [`v2025.10.1`](https://redirect.github.com/jdx/mise/releases/tag/v2025.10.1) [Compare Source](https://redirect.github.com/jdx/mise/compare/v2025.10.0...v2025.10.1) ##### 📦 Registry - add tombi by [@​TyceHerrman](https://redirect.github.com/TyceHerrman) in [#​6520](https://redirect.github.com/jdx/mise/pull/6520) ##### 🚀 Features - **(snapcraft)** add snap package by [@​phanect](https://redirect.github.com/phanect) in [#​6472](https://redirect.github.com/jdx/mise/pull/6472) ##### 🐛 Bug Fixes - **(cache)** remove duplicate bytes in prune output by [@​risu729](https://redirect.github.com/risu729) in [#​6515](https://redirect.github.com/jdx/mise/pull/6515) ##### Chore - **(copr)** increase COPR publish timeout by 60 minutes by [@​Copilot](https://redirect.github.com/Copilot) in [#​6512](https://redirect.github.com/jdx/mise/pull/6512) ##### New Contributors - [@​phanect](https://redirect.github.com/phanect) made their first contribution in [#​6472](https://redirect.github.com/jdx/mise/pull/6472) ### [`v2025.10.0`](https://redirect.github.com/jdx/mise/releases/tag/v2025.10.0) [Compare Source](https://redirect.github.com/jdx/mise/compare/v2025.9.25...v2025.10.0) ##### 📦 Registry - add code by [@​TyceHerrman](https://redirect.github.com/TyceHerrman) in [#​6492](https://redirect.github.com/jdx/mise/pull/6492) ##### 🚀 Features - change idiomatic\_version\_file to default disabled by [@​jdx](https://redirect.github.com/jdx) in [#​6501](https://redirect.github.com/jdx/mise/pull/6501) ##### 🐛 Bug Fixes - **(self-update)** add missing functions to self\_update stub by [@​jdx](https://redirect.github.com/jdx) in [#​6502](https://redirect.github.com/jdx/mise/pull/6502) - **(set)** allow --prompt flag to work with `mise set` by [@​jdx](https://redirect.github.com/jdx) in [#​6485](https://redirect.github.com/jdx/mise/pull/6485) ##### 📚 Documentation - **(hooks)** clarify pre/post-install hooks description. by [@​minusfive](https://redirect.github.com/minusfive) in [#​6497](https://redirect.github.com/jdx/mise/pull/6497) - remove link to issue by [@​jdx](https://redirect.github.com/jdx) in [e13d980](https://redirect.github.com/jdx/mise/commit/e13d98012fda05e5032b7dfc18f562c28f140cf9) ##### 🧪 Testing - **(e2e)** remove deprecated MISE\_LEGACY\_VERSION\_FILE assertions by [@​jdx](https://redirect.github.com/jdx) in [#​6505](https://redirect.github.com/jdx/mise/pull/6505) ##### New Contributors - [@​minusfive](https://redirect.github.com/minusfive) made their first contribution in [#​6497](https://redirect.github.com/jdx/mise/pull/6497) ### [`v2025.9.25`](https://redirect.github.com/jdx/mise/releases/tag/v2025.9.25) [Compare Source](https://redirect.github.com/jdx/mise/compare/v2025.9.24...v2025.9.25) ##### 📦 Registry - prefer k3s from Aqua over ASDF plugin by [@​TobiX](https://redirect.github.com/TobiX) in [#​6486](https://redirect.github.com/jdx/mise/pull/6486) ##### 🐛 Bug Fixes - **(auto-install)** support installing non-active backend versions by [@​jdx](https://redirect.github.com/jdx) in [#​6484](https://redirect.github.com/jdx/mise/pull/6484) - **(install)** remove duplicate 'mise' text in install header by [@​jdx](https://redirect.github.com/jdx) in [#​6489](https://redirect.github.com/jdx/mise/pull/6489) - **(task)** prevent hang when tasks with multiple dependencies fail by [@​stempler](https://redirect.github.com/stempler) in [#​6481](https://redirect.github.com/jdx/mise/pull/6481) ##### 🧪 Testing - **(e2e)** use local HTTP server instead of httpbin.org for tool-stub tests by [@​jdx](https://redirect.github.com/jdx) in [#​6488](https://redirect.github.com/jdx/mise/pull/6488) ##### Chore - **(ci)** prevent release workflow from running on release branch pushes by [@​jdx](https://redirect.github.com/jdx) in [#​6490](https://redirect.github.com/jdx/mise/pull/6490) - **(ci)** parallelize release workflow to start e2e tests earlier by [@​jdx](https://redirect.github.com/jdx) in [#​6491](https://redirect.github.com/jdx/mise/pull/6491) ##### New Contributors - [@​stempler](https://redirect.github.com/stempler) made their first contribution in [#​6481](https://redirect.github.com/jdx/mise/pull/6481) ### [`v2025.9.24`](https://redirect.github.com/jdx/mise/releases/tag/v2025.9.24) [Compare Source](https://redirect.github.com/jdx/mise/compare/v2025.9.23...v2025.9.24) ##### 📦 Registry - add ggshield by [@​TyceHerrman](https://redirect.github.com/TyceHerrman) in [#​6435](https://redirect.github.com/jdx/mise/pull/6435) - add jaq by [@​TyceHerrman](https://redirect.github.com/TyceHerrman) in [#​6434](https://redirect.github.com/jdx/mise/pull/6434) ##### 🚀 Features - **(age)** support age encrypted env vars in mise.toml files by [@​jdx](https://redirect.github.com/jdx) in [#​6463](https://redirect.github.com/jdx/mise/pull/6463) ##### 🐛 Bug Fixes - **(vfox)** integrate `parse_legacy_file` into backend by [@​malept](https://redirect.github.com/malept) in [#​6471](https://redirect.github.com/jdx/mise/pull/6471)
--- ### Configuration 📅 **Schedule**: Branch creation - "before 4am on monday" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/bench.yml | 4 ++-- .github/workflows/check.yml | 4 ++-- .github/workflows/release.yml | 4 ++-- .github/workflows/test-release.yml | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index 35ef2186..23eb8d1d 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -10,7 +10,7 @@ jobs: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - uses: jdx/mise-action@156251fcc627ac4e26cb0f93dd47d1d4979abf24 # v3.3.0 with: - version: v2025.9.23 - sha256: 9f1af6a86479aaf4281b89620ce04363ba50ecf8343c6b457565557c233c6054 + version: v2025.10.2 + sha256: ddcf9ab75f5558c3782281f39a0e0b8776582e007ebb2215397a065ae90aa5c2 - name: Random actions test run: mise run random-actions diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index ff18f8f4..6ebb7da6 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -10,7 +10,7 @@ jobs: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - uses: jdx/mise-action@156251fcc627ac4e26cb0f93dd47d1d4979abf24 # v3.3.0 with: - version: v2025.9.23 - sha256: 9f1af6a86479aaf4281b89620ce04363ba50ecf8343c6b457565557c233c6054 + version: v2025.10.2 + sha256: ddcf9ab75f5558c3782281f39a0e0b8776582e007ebb2215397a065ae90aa5c2 - name: Check all run: mise run ci diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2b33a627..34adced9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,8 +14,8 @@ jobs: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - uses: jdx/mise-action@156251fcc627ac4e26cb0f93dd47d1d4979abf24 # v3.3.0 with: - version: v2025.9.23 - sha256: 9f1af6a86479aaf4281b89620ce04363ba50ecf8343c6b457565557c233c6054 + version: v2025.10.2 + sha256: ddcf9ab75f5558c3782281f39a0e0b8776582e007ebb2215397a065ae90aa5c2 - name: Use Node.js ${{ env.node_version }} uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5 with: diff --git a/.github/workflows/test-release.yml b/.github/workflows/test-release.yml index f9556fe0..782df1c0 100644 --- a/.github/workflows/test-release.yml +++ b/.github/workflows/test-release.yml @@ -10,8 +10,8 @@ jobs: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - uses: jdx/mise-action@156251fcc627ac4e26cb0f93dd47d1d4979abf24 # v3.3.0 with: - version: v2025.9.23 - sha256: 9f1af6a86479aaf4281b89620ce04363ba50ecf8343c6b457565557c233c6054 + version: v2025.10.2 + sha256: ddcf9ab75f5558c3782281f39a0e0b8776582e007ebb2215397a065ae90aa5c2 - name: Test server release run: mise run build-remote-server - name: Test client release From 4b44ff719beb8a7635bc7e2096ef6de996aa9e5b Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 6 Oct 2025 13:53:27 +0000 Subject: [PATCH 030/189] Update jdx/mise-action action to v3.3.1 (#363) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit > [!NOTE] > Mend has cancelled [the proposed renaming](https://redirect.github.com/renovatebot/renovate/discussions/37842) of the Renovate GitHub app being renamed to `mend[bot]`. > > This notice will be removed on 2025-10-07.
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [jdx/mise-action](https://redirect.github.com/jdx/mise-action) | action | patch | `v3.3.0` -> `v3.3.1` | --- ### Release Notes
jdx/mise-action (jdx/mise-action) ### [`v3.3.1`](https://redirect.github.com/jdx/mise-action/releases/tag/v3.3.1) [Compare Source](https://redirect.github.com/jdx/mise-action/compare/v3.3.0...v3.3.1) #### What's Changed - chore(deps): lock file maintenance by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​286](https://redirect.github.com/jdx/mise-action/pull/286) - fix: Fix update by [@​zeitlinger](https://redirect.github.com/zeitlinger) in [#​287](https://redirect.github.com/jdx/mise-action/pull/287) - chore: release v3.3.1 by [@​mise-en-dev](https://redirect.github.com/mise-en-dev) in [#​288](https://redirect.github.com/jdx/mise-action/pull/288) **Full Changelog**:
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/bench.yml | 2 +- .github/workflows/check.yml | 2 +- .github/workflows/release.yml | 2 +- .github/workflows/test-release.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index 23eb8d1d..068abb3a 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -8,7 +8,7 @@ jobs: steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - - uses: jdx/mise-action@156251fcc627ac4e26cb0f93dd47d1d4979abf24 # v3.3.0 + - uses: jdx/mise-action@e3d7b8d67a7958d1207f6ed871e83b1ea780e7b0 # v3.3.1 with: version: v2025.10.2 sha256: ddcf9ab75f5558c3782281f39a0e0b8776582e007ebb2215397a065ae90aa5c2 diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 6ebb7da6..abf1b064 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -8,7 +8,7 @@ jobs: steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - - uses: jdx/mise-action@156251fcc627ac4e26cb0f93dd47d1d4979abf24 # v3.3.0 + - uses: jdx/mise-action@e3d7b8d67a7958d1207f6ed871e83b1ea780e7b0 # v3.3.1 with: version: v2025.10.2 sha256: ddcf9ab75f5558c3782281f39a0e0b8776582e007ebb2215397a065ae90aa5c2 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 34adced9..47495142 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - - uses: jdx/mise-action@156251fcc627ac4e26cb0f93dd47d1d4979abf24 # v3.3.0 + - uses: jdx/mise-action@e3d7b8d67a7958d1207f6ed871e83b1ea780e7b0 # v3.3.1 with: version: v2025.10.2 sha256: ddcf9ab75f5558c3782281f39a0e0b8776582e007ebb2215397a065ae90aa5c2 diff --git a/.github/workflows/test-release.yml b/.github/workflows/test-release.yml index 782df1c0..0f375978 100644 --- a/.github/workflows/test-release.yml +++ b/.github/workflows/test-release.yml @@ -8,7 +8,7 @@ jobs: steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - - uses: jdx/mise-action@156251fcc627ac4e26cb0f93dd47d1d4979abf24 # v3.3.0 + - uses: jdx/mise-action@e3d7b8d67a7958d1207f6ed871e83b1ea780e7b0 # v3.3.1 with: version: v2025.10.2 sha256: ddcf9ab75f5558c3782281f39a0e0b8776582e007ebb2215397a065ae90aa5c2 From 004d0f4d007b0900c626e7e8a4941b28db6c4b17 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 9 Oct 2025 10:54:04 +0000 Subject: [PATCH 031/189] Update dependency webpack to v5.102.1 (#364) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Change | Age | Confidence | |---|---|---|---| | [webpack](https://redirect.github.com/webpack/webpack) | [`5.102.0` -> `5.102.1`](https://renovatebot.com/diffs/npm/webpack/5.102.0/5.102.1) | [![age](https://developer.mend.io/api/mc/badges/age/npm/webpack/5.102.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/webpack/5.102.0/5.102.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
webpack/webpack (webpack) ### [`v5.102.1`](https://redirect.github.com/webpack/webpack/compare/v5.102.0...c7ebdbda637ea73a03a23446f5db0f600e304772) [Compare Source](https://redirect.github.com/webpack/webpack/compare/v5.102.0...v5.102.1)
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- client/js/package-lock.json | 74 ++++++++++++++++++------------------- client/js/package.json | 2 +- 2 files changed, 38 insertions(+), 38 deletions(-) diff --git a/client/js/package-lock.json b/client/js/package-lock.json index ad544c08..e01514ae 100644 --- a/client/js/package-lock.json +++ b/client/js/package-lock.json @@ -85,12 +85,12 @@ "dev": true }, "@types/node": { - "version": "24.6.0", - "resolved": "https://registry.npmjs.org/@types/node/-/node-24.6.0.tgz", - "integrity": "sha512-F1CBxgqwOMc4GKJ7eY22hWhBVQuMYTtqI8L0FcszYcpYX0fzfDGpez22Xau8Mgm7O9fI+zA/TYIdq3tGWfweBA==", + "version": "24.7.0", + "resolved": "https://registry.npmjs.org/@types/node/-/node-24.7.0.tgz", + "integrity": "sha512-IbKooQVqUBrlzWTi79E8Fw78l8k1RNtlDDNWsFZs7XonuQSJ8oNYfEeclhprUldXISRMLzBpILuKgPlIxm+/Yw==", "dev": true, "requires": { - "undici-types": "~7.13.0" + "undici-types": "~7.14.0" } }, "@webassemblyjs/ast": { @@ -312,20 +312,20 @@ } }, "baseline-browser-mapping": { - "version": "2.8.9", - "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.8.9.tgz", - "integrity": "sha512-hY/u2lxLrbecMEWSB0IpGzGyDyeoMFQhCvZd2jGFSE5I17Fh01sYUBPCJtkWERw7zrac9+cIghxm/ytJa2X8iA==", + "version": "2.8.13", + "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.8.13.tgz", + "integrity": "sha512-7s16KR8io8nIBWQyCYhmFhd+ebIzb9VKTzki+wOJXHTxTnV6+mFGH3+Jwn1zoKaY9/H9T/0BcKCZnzXljPnpSQ==", "dev": true }, "browserslist": { - "version": "4.26.2", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.26.2.tgz", - "integrity": "sha512-ECFzp6uFOSB+dcZ5BK/IBaGWssbSYBHvuMeMt3MMFyhI0Z8SqGgEkBLARgpRH3hutIgPVsALcMwbDrJqPxQ65A==", + "version": "4.26.3", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.26.3.tgz", + "integrity": "sha512-lAUU+02RFBuCKQPj/P6NgjlbCnLBMp4UtgTx7vNHd3XSIJF87s9a5rA3aH2yw3GS9DqZAUbOtZdCCiZeVRqt0w==", "dev": true, "requires": { - "baseline-browser-mapping": "^2.8.3", - "caniuse-lite": "^1.0.30001741", - "electron-to-chromium": "^1.5.218", + "baseline-browser-mapping": "^2.8.9", + "caniuse-lite": "^1.0.30001746", + "electron-to-chromium": "^1.5.227", "node-releases": "^2.0.21", "update-browserslist-db": "^1.1.3" } @@ -337,9 +337,9 @@ "dev": true }, "caniuse-lite": { - "version": "1.0.30001745", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001745.tgz", - "integrity": "sha512-ywt6i8FzvdgrrrGbr1jZVObnVv6adj+0if2/omv9cmR2oiZs30zL4DIyaptKcbOrBdOIc74QTMoJvSE2QHh5UQ==", + "version": "1.0.30001748", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001748.tgz", + "integrity": "sha512-5P5UgAr0+aBmNiplks08JLw+AW/XG/SurlgZLgB1dDLfAw7EfRGxIwzPHxdSCGY/BTKDqIVyJL87cCN6s0ZR0w==", "dev": true }, "chrome-trace-event": { @@ -383,9 +383,9 @@ } }, "electron-to-chromium": { - "version": "1.5.227", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.227.tgz", - "integrity": "sha512-ITxuoPfJu3lsNWUi2lBM2PaBPYgH3uqmxut5vmBxgYvyI4AlJ6P3Cai1O76mOrkJCBzq0IxWg/NtqOrpu/0gKA==", + "version": "1.5.232", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.232.tgz", + "integrity": "sha512-ENirSe7wf8WzyPCibqKUG1Cg43cPaxH4wRR7AJsX7MCABCHBIOFqvaYODSLKUuZdraxUTHRE/0A2Aq8BYKEHOg==", "dev": true }, "enhanced-resolve": { @@ -639,9 +639,9 @@ "dev": true }, "node-releases": { - "version": "2.0.21", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.21.tgz", - "integrity": "sha512-5b0pgg78U3hwXkCM8Z9b2FJdPZlr9Psr9V2gQPESdGHqbntyFJKFW4r5TeWGFzafGY3hzs1JC62VEQMbl1JFkw==", + "version": "2.0.23", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.23.tgz", + "integrity": "sha512-cCmFDMSm26S6tQSDpBCg/NR8NENrVPhAJSf+XbxBG4rPFaaonlEoE9wHQmun+cls499TQGSb7ZyPBRlzgKfpeg==", "dev": true }, "p-limit": { @@ -758,9 +758,9 @@ "dev": true }, "schema-utils": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.3.2.tgz", - "integrity": "sha512-Gn/JaSk/Mt9gYubxTtSn/QCV4em9mpAPiR1rqy/Ocu19u/G9J5WWdNoUT4SiV6mFC3y6cxyFcFwdzPM3FgxGAQ==", + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.3.3.tgz", + "integrity": "sha512-eflK8wEtyOE6+hsaRVPxvUKYCpRgzLqDTb8krvAsRIwOGlHoSgYLgBXoubGgLd2fT41/OUYdb48v4k4WWHQurA==", "dev": true, "requires": { "@types/json-schema": "^7.0.9", @@ -834,9 +834,9 @@ "dev": true }, "tapable": { - "version": "2.2.3", - "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.3.tgz", - "integrity": "sha512-ZL6DDuAlRlLGghwcfmSn9sK3Hr6ArtyudlSAiCqQ6IfE+b+HHbydbYDIG15IfS5do+7XQQBdBiubF/cV2dnDzg==", + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.3.0.tgz", + "integrity": "sha512-g9ljZiwki/LfxmQADO3dEY1CbpmXT5Hm2fJ+QaGKwSXUylMybePR7/67YW7jOrrvjEgL1Fmz5kzyAjWVWLlucg==", "dev": true }, "terser": { @@ -865,9 +865,9 @@ } }, "undici-types": { - "version": "7.13.0", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.13.0.tgz", - "integrity": "sha512-Ov2Rr9Sx+fRgagJ5AX0qvItZG/JKKoBRAVITs1zk7IqZGTJUwgUr7qoYBpWwakpWilTZFM98rG/AFRocu10iIQ==", + "version": "7.14.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.14.0.tgz", + "integrity": "sha512-QQiYxHuyZ9gQUIrmPo3IA+hUl4KYk8uSA7cHrcKd/l3p1OTpZcM0Tbp9x7FAtXdAYhlasd60ncPpgu6ihG6TOA==", "dev": true }, "update-browserslist-db": { @@ -891,9 +891,9 @@ } }, "webpack": { - "version": "5.102.0", - "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.102.0.tgz", - "integrity": "sha512-hUtqAR3ZLVEYDEABdBioQCIqSoguHbFn1K7WlPPWSuXmx0031BD73PSE35jKyftdSh4YLDoQNgK4pqBt5Q82MA==", + "version": "5.102.1", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.102.1.tgz", + "integrity": "sha512-7h/weGm9d/ywQ6qzJ+Xy+r9n/3qgp/thalBbpOi5i223dPXKi04IBtqPN9nTd+jBc7QKfvDbaBnFipYp4sJAUQ==", "dev": true, "requires": { "@types/eslint-scope": "^3.7.7", @@ -904,7 +904,7 @@ "@webassemblyjs/wasm-parser": "^1.14.1", "acorn": "^8.15.0", "acorn-import-phases": "^1.0.3", - "browserslist": "^4.24.5", + "browserslist": "^4.26.3", "chrome-trace-event": "^1.0.2", "enhanced-resolve": "^5.17.3", "es-module-lexer": "^1.2.1", @@ -916,8 +916,8 @@ "loader-runner": "^4.2.0", "mime-types": "^2.1.27", "neo-async": "^2.6.2", - "schema-utils": "^4.3.2", - "tapable": "^2.2.3", + "schema-utils": "^4.3.3", + "tapable": "^2.3.0", "terser-webpack-plugin": "^5.3.11", "watchpack": "^2.4.4", "webpack-sources": "^3.3.3" diff --git a/client/js/package.json b/client/js/package.json index 5d63caf3..a4c7c278 100644 --- a/client/js/package.json +++ b/client/js/package.json @@ -18,7 +18,7 @@ "build": "webpack" }, "devDependencies": { - "webpack": "5.102.0", + "webpack": "5.102.1", "webpack-cli": "6.0.1" }, "dependencies": { From a6e8c5fa254263f1a6ca732a21d3e39e4ee85aee Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 9 Oct 2025 10:58:50 +0000 Subject: [PATCH 032/189] Update Rust crate serde to v1.0.228 (#365) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [serde](https://serde.rs) ([source](https://redirect.github.com/serde-rs/serde)) | dependencies | patch | `1.0.226` -> `1.0.228` | --- ### Release Notes
serde-rs/serde (serde) ### [`v1.0.228`](https://redirect.github.com/serde-rs/serde/releases/tag/v1.0.228) [Compare Source](https://redirect.github.com/serde-rs/serde/compare/v1.0.227...v1.0.228) - Allow building documentation with `RUSTDOCFLAGS='--cfg=docsrs'` set for the whole dependency graph ([#​2995](https://redirect.github.com/serde-rs/serde/issues/2995)) ### [`v1.0.227`](https://redirect.github.com/serde-rs/serde/releases/tag/v1.0.227) [Compare Source](https://redirect.github.com/serde-rs/serde/compare/v1.0.226...v1.0.227) - Documentation improvements ([#​2991](https://redirect.github.com/serde-rs/serde/issues/2991))
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- Cargo.lock | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index c26be866..e75a998a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1822,9 +1822,9 @@ checksum = "56e6fa9c48d24d85fb3de5ad847117517440f6beceb7798af16b4a87d616b8d0" [[package]] name = "serde" -version = "1.0.226" +version = "1.0.228" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0dca6411025b24b60bfa7ec1fe1f8e710ac09782dca409ee8237ba74b51295fd" +checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e" dependencies = [ "serde_core", "serde_derive", @@ -1843,18 +1843,18 @@ dependencies = [ [[package]] name = "serde_core" -version = "1.0.226" +version = "1.0.228" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ba2ba63999edb9dac981fb34b3e5c0d111a69b0924e253ed29d83f7c99e966a4" +checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.226" +version = "1.0.228" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8db53ae22f34573731bafa1db20f04027b2d25e02d8205921b569171699cdb33" +checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79" dependencies = [ "proc-macro2", "quote", From f20d5c1ce73444b1d87954b49784761806b36856 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 13 Oct 2025 01:54:05 +0000 Subject: [PATCH 033/189] Update dependency mise to v2025.10.7 (#366) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Update | Change | |---|---|---| | [mise](https://redirect.github.com/jdx/mise) | patch | `v2025.10.2` -> `v2025.10.7` | --- ### Release Notes
jdx/mise (mise) ### [`v2025.10.7`](https://redirect.github.com/jdx/mise/releases/tag/v2025.10.7) [Compare Source](https://redirect.github.com/jdx/mise/compare/v2025.10.6...v2025.10.7) ##### 📦 Registry - add lazyssh by [@​TyceHerrman](https://redirect.github.com/TyceHerrman) in [#​6610](https://redirect.github.com/jdx/mise/pull/6610) ##### 🚀 Features - **(config)** Add a ceiling to how mise searchs for config & tasks by [@​richardthe3rd](https://redirect.github.com/richardthe3rd) in [#​6041](https://redirect.github.com/jdx/mise/pull/6041) - **(release)** include aqua-registry updates in changelog and release notes by [@​jdx](https://redirect.github.com/jdx) in [#​6623](https://redirect.github.com/jdx/mise/pull/6623) ##### 🐛 Bug Fixes - **(task)** use config\_root instead of project\_root for task base path by [@​risu729](https://redirect.github.com/risu729) in [#​6609](https://redirect.github.com/jdx/mise/pull/6609) - **(task)** resolve project tasks in run blocks using TaskLoadContext by [@​jdx](https://redirect.github.com/jdx) in [#​6614](https://redirect.github.com/jdx/mise/pull/6614) - **(task)** dont truncate task message when CI is set by [@​roele](https://redirect.github.com/roele) in [#​6620](https://redirect.github.com/jdx/mise/pull/6620) - **(tasks)** restore MISE\_ENV environment inheritance for tasks by [@​glasser](https://redirect.github.com/glasser) in [#​6621](https://redirect.github.com/jdx/mise/pull/6621) - **(ui)** prevent OSC 9;4 progress sequences from being written to non-terminals by [@​jdx](https://redirect.github.com/jdx) in [#​6615](https://redirect.github.com/jdx/mise/pull/6615) ##### Chore - remove cosign/slsa-verifier from mise.toml by [@​jdx](https://redirect.github.com/jdx) in [#​6616](https://redirect.github.com/jdx/mise/pull/6616) ##### New Contributors - [@​richardthe3rd](https://redirect.github.com/richardthe3rd) made their first contribution in [#​6041](https://redirect.github.com/jdx/mise/pull/6041) ### [`v2025.10.6`](https://redirect.github.com/jdx/mise/releases/tag/v2025.10.6) [Compare Source](https://redirect.github.com/jdx/mise/compare/v2025.10.5...v2025.10.6) ##### 📦 Registry - add vfox-mongod by [@​blaubaer](https://redirect.github.com/blaubaer) in [#​6586](https://redirect.github.com/jdx/mise/pull/6586) ##### 🚀 Features - add OSC 9;4 terminal progress indicators by [@​jdx](https://redirect.github.com/jdx) in [#​6584](https://redirect.github.com/jdx/mise/pull/6584) - make progress bar a footer by [@​jdx](https://redirect.github.com/jdx) in [#​6590](https://redirect.github.com/jdx/mise/pull/6590) ##### 🐛 Bug Fixes - **(task)** preserve ubi tool options during auto-install by [@​jdx](https://redirect.github.com/jdx) in [#​6600](https://redirect.github.com/jdx/mise/pull/6600) - unify project\_root and config\_root resolution by [@​risu729](https://redirect.github.com/risu729) in [#​6588](https://redirect.github.com/jdx/mise/pull/6588) ##### 🚜 Refactor - **(exec)** remove redundant tty check for auto-install by [@​jdx](https://redirect.github.com/jdx) in [#​6589](https://redirect.github.com/jdx/mise/pull/6589) - remove duplicated task loads by [@​risu729](https://redirect.github.com/risu729) in [#​6594](https://redirect.github.com/jdx/mise/pull/6594) ##### New Contributors - [@​blaubaer](https://redirect.github.com/blaubaer) made their first contribution in [#​6586](https://redirect.github.com/jdx/mise/pull/6586) ### [`v2025.10.5`](https://redirect.github.com/jdx/mise/releases/tag/v2025.10.5) [Compare Source](https://redirect.github.com/jdx/mise/compare/v2025.10.4...v2025.10.5) ##### 📦 Registry - add jules by [@​alefteris](https://redirect.github.com/alefteris) in [#​6568](https://redirect.github.com/jdx/mise/pull/6568) ##### 🐛 Bug Fixes - **(docs)** improve favicon support for Safari by [@​jdx](https://redirect.github.com/jdx) in [#​6567](https://redirect.github.com/jdx/mise/pull/6567) - **(github)** download assets via API to respect GITHUB\_TOKEN by [@​roele](https://redirect.github.com/roele) in [#​6496](https://redirect.github.com/jdx/mise/pull/6496) - **(task)** load toml tasks in `task_config.includes` in system/global config and monorepo subdirs by [@​risu729](https://redirect.github.com/risu729) in [#​6545](https://redirect.github.com/jdx/mise/pull/6545) - **(task)** handle dots in monorepo directory names correctly by [@​jdx](https://redirect.github.com/jdx) in [#​6571](https://redirect.github.com/jdx/mise/pull/6571) ##### 📚 Documentation - **(readme)** add GitHub Issues & Discussions section by [@​rsyring](https://redirect.github.com/rsyring) in [#​6573](https://redirect.github.com/jdx/mise/pull/6573) - **(tasks)** create dedicated monorepo tasks documentation by [@​jdx](https://redirect.github.com/jdx) in [#​6561](https://redirect.github.com/jdx/mise/pull/6561) - **(tasks)** enhance monorepo documentation with tool comparisons by [@​jdx](https://redirect.github.com/jdx) in [#​6563](https://redirect.github.com/jdx/mise/pull/6563) ### [`v2025.10.4`](https://redirect.github.com/jdx/mise/releases/tag/v2025.10.4) [Compare Source](https://redirect.github.com/jdx/mise/compare/v2025.10.3...v2025.10.4) ##### 🐛 Bug Fixes - **(installing-mise.md)** broken link by [@​equirosa](https://redirect.github.com/equirosa) in [#​6555](https://redirect.github.com/jdx/mise/pull/6555) - **(task)** remote git tasks now properly inherit tools from parent configs by [@​jdx](https://redirect.github.com/jdx) in [#​6558](https://redirect.github.com/jdx/mise/pull/6558) - **(tasks)** restore tool loading from idiomatic version files by [@​jdx](https://redirect.github.com/jdx) in [#​6559](https://redirect.github.com/jdx/mise/pull/6559) ##### 🚜 Refactor - **(task)** remove duplicated codes by [@​risu729](https://redirect.github.com/risu729) in [#​6553](https://redirect.github.com/jdx/mise/pull/6553) ##### New Contributors - [@​equirosa](https://redirect.github.com/equirosa) made their first contribution in [#​6555](https://redirect.github.com/jdx/mise/pull/6555) ### [`v2025.10.3`](https://redirect.github.com/jdx/mise/releases/tag/v2025.10.3) [Compare Source](https://redirect.github.com/jdx/mise/compare/v2025.10.2...v2025.10.3) ##### 📦 Registry - added cloudflare wrangler by [@​moisesmorillo](https://redirect.github.com/moisesmorillo) in [#​6534](https://redirect.github.com/jdx/mise/pull/6534) ##### 🚀 Features - **(tasks)** add experimental monorepo task support with target paths by [@​jdx](https://redirect.github.com/jdx) in [#​6535](https://redirect.github.com/jdx/mise/pull/6535) - **(tasks)** respect local config\_roots for monorepo tasks by [@​jdx](https://redirect.github.com/jdx) in [#​6552](https://redirect.github.com/jdx/mise/pull/6552) - support latest suffix for Java, Python and Ruby flavoured versions by [@​roele](https://redirect.github.com/roele) in [#​6533](https://redirect.github.com/jdx/mise/pull/6533) ##### 🐛 Bug Fixes - **(aqua)** decode filename extracted from url by [@​risu729](https://redirect.github.com/risu729) in [#​6536](https://redirect.github.com/jdx/mise/pull/6536) - **(snapcraft)** use classic confinement by [@​phanect](https://redirect.github.com/phanect) in [#​6542](https://redirect.github.com/jdx/mise/pull/6542) - **(task)** fix task pattern matching and add :task syntax for monorepos by [@​risu729](https://redirect.github.com/risu729) in [#​6549](https://redirect.github.com/jdx/mise/pull/6549) - **(tasks)** validate monorepo setup before running monorepo tasks by [@​jdx](https://redirect.github.com/jdx) in [#​6551](https://redirect.github.com/jdx/mise/pull/6551) - Add bash option in example by [@​Its-Just-Nans](https://redirect.github.com/Its-Just-Nans) in [#​6541](https://redirect.github.com/jdx/mise/pull/6541) - suppress ignore crate logs by [@​risu729](https://redirect.github.com/risu729) in [#​6547](https://redirect.github.com/jdx/mise/pull/6547) ##### 📚 Documentation - Update Python virtual environment documentation by [@​Konfekt](https://redirect.github.com/Konfekt) in [#​6538](https://redirect.github.com/jdx/mise/pull/6538) ##### Chore - **(hk)** bump to v1.18.1 by [@​jdx](https://redirect.github.com/jdx) in [#​6546](https://redirect.github.com/jdx/mise/pull/6546) ##### Hk - bump to 1.18.1 by [@​jdx](https://redirect.github.com/jdx) in [0ab65cd](https://redirect.github.com/jdx/mise/commit/0ab65cd9c6827fd4738e5184be6d743f94be34b2) ##### New Contributors - [@​Konfekt](https://redirect.github.com/Konfekt) made their first contribution in [#​6538](https://redirect.github.com/jdx/mise/pull/6538) - [@​moisesmorillo](https://redirect.github.com/moisesmorillo) made their first contribution in [#​6534](https://redirect.github.com/jdx/mise/pull/6534)
--- ### Configuration 📅 **Schedule**: Branch creation - "before 4am on monday" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/bench.yml | 4 ++-- .github/workflows/check.yml | 4 ++-- .github/workflows/release.yml | 4 ++-- .github/workflows/test-release.yml | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index 068abb3a..d9c62a21 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -10,7 +10,7 @@ jobs: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - uses: jdx/mise-action@e3d7b8d67a7958d1207f6ed871e83b1ea780e7b0 # v3.3.1 with: - version: v2025.10.2 - sha256: ddcf9ab75f5558c3782281f39a0e0b8776582e007ebb2215397a065ae90aa5c2 + version: v2025.10.7 + sha256: 2f7add417e5717fb9a93fe560c1f655f97cd69e3db6f889faf95391a5fe8e714 - name: Random actions test run: mise run random-actions diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index abf1b064..3e4e13e4 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -10,7 +10,7 @@ jobs: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - uses: jdx/mise-action@e3d7b8d67a7958d1207f6ed871e83b1ea780e7b0 # v3.3.1 with: - version: v2025.10.2 - sha256: ddcf9ab75f5558c3782281f39a0e0b8776582e007ebb2215397a065ae90aa5c2 + version: v2025.10.7 + sha256: 2f7add417e5717fb9a93fe560c1f655f97cd69e3db6f889faf95391a5fe8e714 - name: Check all run: mise run ci diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 47495142..b3ddf4e0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,8 +14,8 @@ jobs: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - uses: jdx/mise-action@e3d7b8d67a7958d1207f6ed871e83b1ea780e7b0 # v3.3.1 with: - version: v2025.10.2 - sha256: ddcf9ab75f5558c3782281f39a0e0b8776582e007ebb2215397a065ae90aa5c2 + version: v2025.10.7 + sha256: 2f7add417e5717fb9a93fe560c1f655f97cd69e3db6f889faf95391a5fe8e714 - name: Use Node.js ${{ env.node_version }} uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5 with: diff --git a/.github/workflows/test-release.yml b/.github/workflows/test-release.yml index 0f375978..164b8776 100644 --- a/.github/workflows/test-release.yml +++ b/.github/workflows/test-release.yml @@ -10,8 +10,8 @@ jobs: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - uses: jdx/mise-action@e3d7b8d67a7958d1207f6ed871e83b1ea780e7b0 # v3.3.1 with: - version: v2025.10.2 - sha256: ddcf9ab75f5558c3782281f39a0e0b8776582e007ebb2215397a065ae90aa5c2 + version: v2025.10.7 + sha256: 2f7add417e5717fb9a93fe560c1f655f97cd69e3db6f889faf95391a5fe8e714 - name: Test server release run: mise run build-remote-server - name: Test client release From 8412d0d59791b630fcb10ae237dc7b8869a49da1 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 20 Oct 2025 01:11:27 +0000 Subject: [PATCH 034/189] Update dependency mise to v2025.10.11 (#369) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Update | Change | |---|---|---| | [mise](https://redirect.github.com/jdx/mise) | patch | `v2025.10.7` -> `v2025.10.11` | --- ### Release Notes
jdx/mise (mise) ### [`v2025.10.11`](https://redirect.github.com/jdx/mise/releases/tag/v2025.10.11) [Compare Source](https://redirect.github.com/jdx/mise/compare/v2025.10.10...v2025.10.11) ##### 🚀 Features - remove experimental labels from stable features by [@​jdx](https://redirect.github.com/jdx) in [#​6684](https://redirect.github.com/jdx/mise/pull/6684) ##### 🐛 Bug Fixes - **(tasks)** resolve :task patterns in run blocks for monorepo tasks by [@​LER0ever](https://redirect.github.com/LER0ever) in [#​6682](https://redirect.github.com/jdx/mise/pull/6682) ##### 📚 Documentation - Fix typo in comparison-to-asdf.md by [@​TobiX](https://redirect.github.com/TobiX) in [#​6677](https://redirect.github.com/jdx/mise/pull/6677) ##### 📦️ Dependency Updates - update docker/dockerfile:1 docker digest to [`b6afd42`](https://redirect.github.com/jdx/mise/commit/b6afd42) by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​6675](https://redirect.github.com/jdx/mise/pull/6675) - update fedora:43 docker digest to [`2ad3073`](https://redirect.github.com/jdx/mise/commit/2ad3073) by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​6676](https://redirect.github.com/jdx/mise/pull/6676) ##### New Contributors - [@​LER0ever](https://redirect.github.com/LER0ever) made their first contribution in [#​6682](https://redirect.github.com/jdx/mise/pull/6682) ### [`v2025.10.10`](https://redirect.github.com/jdx/mise/releases/tag/v2025.10.10) [Compare Source](https://redirect.github.com/jdx/mise/compare/v2025.10.9...v2025.10.10) ##### 🐛 Bug Fixes - **(backend)** sync parent directory after removing incomplete marker by [@​EronWright](https://redirect.github.com/EronWright) in [#​6668](https://redirect.github.com/jdx/mise/pull/6668) - **(tasks)** improve error message for untrusted config files by [@​jdx](https://redirect.github.com/jdx) in [#​6672](https://redirect.github.com/jdx/mise/pull/6672) - fix(deps) Revert "fix(deps): update rust crate ubi to 0.8 " by [@​swgillespie](https://redirect.github.com/swgillespie) in [#​6652](https://redirect.github.com/jdx/mise/pull/6652) ##### New Contributors - [@​swgillespie](https://redirect.github.com/swgillespie) made their first contribution in [#​6652](https://redirect.github.com/jdx/mise/pull/6652) - [@​EronWright](https://redirect.github.com/EronWright) made their first contribution in [#​6668](https://redirect.github.com/jdx/mise/pull/6668) ### [`v2025.10.9`](https://redirect.github.com/jdx/mise/releases/tag/v2025.10.9) [Compare Source](https://redirect.github.com/jdx/mise/compare/v2025.10.8...v2025.10.9) ##### 🐛 Bug Fixes - **(docs)** add missing config file path by [@​azais-corentin](https://redirect.github.com/azais-corentin) in [#​6658](https://redirect.github.com/jdx/mise/pull/6658) - **(task)** resolve monorepo dependency chains with local task references by [@​jdx](https://redirect.github.com/jdx) in [#​6665](https://redirect.github.com/jdx/mise/pull/6665) - **(ui)** add terminal detection for OSC 9;4 progress sequences by [@​jdx](https://redirect.github.com/jdx) in [#​6657](https://redirect.github.com/jdx/mise/pull/6657) ##### 📚 Documentation - fix aqua package info in CHANGELOG.md by [@​jdx](https://redirect.github.com/jdx) in [#​6664](https://redirect.github.com/jdx/mise/pull/6664) ##### New Contributors - [@​azais-corentin](https://redirect.github.com/azais-corentin) made their first contribution in [#​6658](https://redirect.github.com/jdx/mise/pull/6658) ### [`v2025.10.8`](https://redirect.github.com/jdx/mise/releases/tag/v2025.10.8) [Compare Source](https://redirect.github.com/jdx/mise/compare/v2025.10.7...v2025.10.8) ##### 📦 Registry - add codex (`npm:@​openai/codex`) by [@​risu729](https://redirect.github.com/risu729) in [#​6634](https://redirect.github.com/jdx/mise/pull/6634) - add tests (1password-certstrap) by [@​risu729](https://redirect.github.com/risu729) in [#​6592](https://redirect.github.com/jdx/mise/pull/6592) ##### 🚀 Features - **(plugins)** more archiver extensions by [@​blaubaer](https://redirect.github.com/blaubaer) in [#​6644](https://redirect.github.com/jdx/mise/pull/6644) ##### 🐛 Bug Fixes - **(cli)** make `mise //foo` equivalent to `mise run //foo` by [@​neongreen](https://redirect.github.com/neongreen) in [#​6641](https://redirect.github.com/jdx/mise/pull/6641) - **(config)** load MISE\_ENV configs for monorepo tasks by [@​jdx](https://redirect.github.com/jdx) in [#​6624](https://redirect.github.com/jdx/mise/pull/6624) - improve ... pattern matching for monorepo tasks by [@​neongreen](https://redirect.github.com/neongreen) in [#​6635](https://redirect.github.com/jdx/mise/pull/6635) ##### 🛡️ Security - **(security)** use HTTPS instead of HTTP for version hosts by [@​jdx](https://redirect.github.com/jdx) in [#​6638](https://redirect.github.com/jdx/mise/pull/6638) ##### 📦️ Dependency Updates - update rust crate ubi to 0.8 by [@​risu729](https://redirect.github.com/risu729) in [#​6637](https://redirect.github.com/jdx/mise/pull/6637) ##### New Contributors - [@​neongreen](https://redirect.github.com/neongreen) made their first contribution in [#​6641](https://redirect.github.com/jdx/mise/pull/6641)
--- ### Configuration 📅 **Schedule**: Branch creation - "before 4am on monday" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/bench.yml | 4 ++-- .github/workflows/check.yml | 4 ++-- .github/workflows/release.yml | 4 ++-- .github/workflows/test-release.yml | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index d9c62a21..79c1e438 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -10,7 +10,7 @@ jobs: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - uses: jdx/mise-action@e3d7b8d67a7958d1207f6ed871e83b1ea780e7b0 # v3.3.1 with: - version: v2025.10.7 - sha256: 2f7add417e5717fb9a93fe560c1f655f97cd69e3db6f889faf95391a5fe8e714 + version: v2025.10.11 + sha256: 589cac941160e404d13be6f5699a25ffdb25b732084430338bc384df9f0a4438 - name: Random actions test run: mise run random-actions diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 3e4e13e4..019599d0 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -10,7 +10,7 @@ jobs: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - uses: jdx/mise-action@e3d7b8d67a7958d1207f6ed871e83b1ea780e7b0 # v3.3.1 with: - version: v2025.10.7 - sha256: 2f7add417e5717fb9a93fe560c1f655f97cd69e3db6f889faf95391a5fe8e714 + version: v2025.10.11 + sha256: 589cac941160e404d13be6f5699a25ffdb25b732084430338bc384df9f0a4438 - name: Check all run: mise run ci diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b3ddf4e0..066c8a04 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,8 +14,8 @@ jobs: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - uses: jdx/mise-action@e3d7b8d67a7958d1207f6ed871e83b1ea780e7b0 # v3.3.1 with: - version: v2025.10.7 - sha256: 2f7add417e5717fb9a93fe560c1f655f97cd69e3db6f889faf95391a5fe8e714 + version: v2025.10.11 + sha256: 589cac941160e404d13be6f5699a25ffdb25b732084430338bc384df9f0a4438 - name: Use Node.js ${{ env.node_version }} uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5 with: diff --git a/.github/workflows/test-release.yml b/.github/workflows/test-release.yml index 164b8776..143fd118 100644 --- a/.github/workflows/test-release.yml +++ b/.github/workflows/test-release.yml @@ -10,8 +10,8 @@ jobs: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - uses: jdx/mise-action@e3d7b8d67a7958d1207f6ed871e83b1ea780e7b0 # v3.3.1 with: - version: v2025.10.7 - sha256: 2f7add417e5717fb9a93fe560c1f655f97cd69e3db6f889faf95391a5fe8e714 + version: v2025.10.11 + sha256: 589cac941160e404d13be6f5699a25ffdb25b732084430338bc384df9f0a4438 - name: Test server release run: mise run build-remote-server - name: Test client release From c41b0209352605cd10b6321662a8134e2c731c39 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 20 Oct 2025 05:43:26 +0000 Subject: [PATCH 035/189] Update Rust crate tokio to v1.48.0 (#368) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [tokio](https://tokio.rs) ([source](https://redirect.github.com/tokio-rs/tokio)) | dependencies | minor | `1.47.1` -> `1.48.0` | --- ### Release Notes
tokio-rs/tokio (tokio) ### [`v1.48.0`](https://redirect.github.com/tokio-rs/tokio/releases/tag/tokio-1.48.0): Tokio v1.48.0 [Compare Source](https://redirect.github.com/tokio-rs/tokio/compare/tokio-1.47.2...tokio-1.48.0) ##### 1.48.0 (October 14th, 2025) The MSRV is increased to 1.71. ##### Added - fs: add `File::max_buf_size` ([#​7594]) - io: export `Chain` of `AsyncReadExt::chain` ([#​7599]) - net: add `SocketAddr::as_abstract_name` ([#​7491]) - net: add `TcpStream::quickack` and `TcpStream::set_quickack` ([#​7490]) - net: implement `AsRef` for `TcpStream` and `UnixStream` ([#​7573]) - task: add `LocalKey::try_get` ([#​7666]) - task: implement `Ord` for `task::Id` ([#​7530]) ##### Changed - deps: bump windows-sys to version 0.61 ([#​7645]) - fs: preserve `max_buf_size` when cloning a `File` ([#​7593]) - macros: suppress `clippy::unwrap_in_result` in `#[tokio::main]` ([#​7651]) - net: remove `PollEvented` noise from Debug formats ([#​7675]) - process: upgrade `Command::spawn_with` to use `FnOnce` ([#​7511]) - sync: remove inner mutex in `SetOnce` ([#​7554]) - sync: use `UnsafeCell::get_mut` in `Mutex::get_mut` and `RwLock::get_mut` ([#​7569]) - time: reduce the generated code size of `Timeout::poll` ([#​7535]) ##### Fixed - macros: fix hygiene issue in `join!` and `try_join!` ([#​7638]) - net: fix copy/paste errors in udp peek methods ([#​7604]) - process: fix error when runtime is shut down on nightly-2025-10-12 ([#​7672]) - runtime: use release ordering in `wake_by_ref()` even if already woken ([#​7622]) - sync: close the `broadcast::Sender` in `broadcast::Sender::new()` ([#​7629]) - sync: fix implementation of unused `RwLock::try_*` methods ([#​7587]) ##### Unstable - tokio: use cargo features instead of `--cfg` flags for `taskdump` and `io_uring` ([#​7655], [#​7621]) - fs: support `io_uring` in `fs::write` ([#​7567]) - fs: support `io_uring` with `File::open()` ([#​7617]) - fs: support `io_uring` with `OpenOptions` ([#​7321]) - macros: add `local` runtime flavor ([#​7375], [#​7597]) ##### Documented - io: clarify the zero capacity case of `AsyncRead::poll_read` ([#​7580]) - io: fix typos in the docs of `AsyncFd` readiness guards ([#​7583]) - net: clarify socket gets closed on drop ([#​7526]) - net: clarify the behavior of `UCred::pid()` on Cygwin ([#​7611]) - net: clarify the supported platform of `set_reuseport()` and `reuseport()` ([#​7628]) - net: qualify that `SO_REUSEADDR` is only set on Unix ([#​7533]) - runtime: add guide for choosing between runtime types ([#​7635]) - runtime: clarify the behavior of `Handle::block_on` ([#​7665]) - runtime: clarify the edge case of `Builder::global_queue_interval()` ([#​7605]) - sync: clarify bounded channel panic behavior ([#​7641]) - sync: clarify the behavior of `tokio::sync::watch::Receiver` ([#​7584]) - sync: document cancel safety on `SetOnce::wait` ([#​7506]) - sync: fix the docs of `parking_lot` feature flag ([#​7663]) - sync: improve the docs of `UnboundedSender::send` ([#​7661]) - sync: improve the docs of `sync::watch` ([#​7601]) - sync: reword allocation failure paragraph in broadcast docs ([#​7595]) - task: clarify the behavior of several `spawn_local` methods ([#​7669]) - task: clarify the task ID reuse guarantees ([#​7577]) - task: improve the example of `poll_proceed` ([#​7586]) [#​7321]: https://redirect.github.com/tokio-rs/tokio/pull/7321 [#​7375]: https://redirect.github.com/tokio-rs/tokio/pull/7375 [#​7490]: https://redirect.github.com/tokio-rs/tokio/pull/7490 [#​7491]: https://redirect.github.com/tokio-rs/tokio/pull/7491 [#​7494]: https://redirect.github.com/tokio-rs/tokio/pull/7494 [#​7506]: https://redirect.github.com/tokio-rs/tokio/pull/7506 [#​7511]: https://redirect.github.com/tokio-rs/tokio/pull/7511 [#​7526]: https://redirect.github.com/tokio-rs/tokio/pull/7526 [#​7530]: https://redirect.github.com/tokio-rs/tokio/pull/7530 [#​7533]: https://redirect.github.com/tokio-rs/tokio/pull/7533 [#​7535]: https://redirect.github.com/tokio-rs/tokio/pull/7535 [#​7554]: https://redirect.github.com/tokio-rs/tokio/pull/7554 [#​7567]: https://redirect.github.com/tokio-rs/tokio/pull/7567 [#​7569]: https://redirect.github.com/tokio-rs/tokio/pull/7569 [#​7573]: https://redirect.github.com/tokio-rs/tokio/pull/7573 [#​7577]: https://redirect.github.com/tokio-rs/tokio/pull/7577 [#​7580]: https://redirect.github.com/tokio-rs/tokio/pull/7580 [#​7583]: https://redirect.github.com/tokio-rs/tokio/pull/7583 [#​7584]: https://redirect.github.com/tokio-rs/tokio/pull/7584 [#​7586]: https://redirect.github.com/tokio-rs/tokio/pull/7586 [#​7587]: https://redirect.github.com/tokio-rs/tokio/pull/7587 [#​7593]: https://redirect.github.com/tokio-rs/tokio/pull/7593 [#​7594]: https://redirect.github.com/tokio-rs/tokio/pull/7594 [#​7595]: https://redirect.github.com/tokio-rs/tokio/pull/7595 [#​7597]: https://redirect.github.com/tokio-rs/tokio/pull/7597 [#​7599]: https://redirect.github.com/tokio-rs/tokio/pull/7599 [#​7601]: https://redirect.github.com/tokio-rs/tokio/pull/7601 [#​7604]: https://redirect.github.com/tokio-rs/tokio/pull/7604 [#​7605]: https://redirect.github.com/tokio-rs/tokio/pull/7605 [#​7611]: https://redirect.github.com/tokio-rs/tokio/pull/7611 [#​7617]: https://redirect.github.com/tokio-rs/tokio/pull/7617 [#​7621]: https://redirect.github.com/tokio-rs/tokio/pull/7621 [#​7622]: https://redirect.github.com/tokio-rs/tokio/pull/7622 [#​7628]: https://redirect.github.com/tokio-rs/tokio/pull/7628 [#​7629]: https://redirect.github.com/tokio-rs/tokio/pull/7629 [#​7635]: https://redirect.github.com/tokio-rs/tokio/pull/7635 [#​7638]: https://redirect.github.com/tokio-rs/tokio/pull/7638 [#​7641]: https://redirect.github.com/tokio-rs/tokio/pull/7641 [#​7645]: https://redirect.github.com/tokio-rs/tokio/pull/7645 [#​7651]: https://redirect.github.com/tokio-rs/tokio/pull/7651 [#​7655]: https://redirect.github.com/tokio-rs/tokio/pull/7655 [#​7661]: https://redirect.github.com/tokio-rs/tokio/pull/7661 [#​7663]: https://redirect.github.com/tokio-rs/tokio/pull/7663 [#​7665]: https://redirect.github.com/tokio-rs/tokio/pull/7665 [#​7666]: https://redirect.github.com/tokio-rs/tokio/pull/7666 [#​7669]: https://redirect.github.com/tokio-rs/tokio/pull/7669 [#​7672]: https://redirect.github.com/tokio-rs/tokio/pull/7672 [#​7675]: https://redirect.github.com/tokio-rs/tokio/pull/7675 ### [`v1.47.2`](https://redirect.github.com/tokio-rs/tokio/compare/tokio-1.47.1...tokio-1.47.2) [Compare Source](https://redirect.github.com/tokio-rs/tokio/compare/tokio-1.47.1...tokio-1.47.2)
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- Cargo.lock | 39 +++++++++++++++++---------------------- 1 file changed, 17 insertions(+), 22 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index e75a998a..f02a6b2a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -962,17 +962,6 @@ dependencies = [ "num-traits", ] -[[package]] -name = "io-uring" -version = "0.7.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b86e202f00093dcba4275d4636b93ef9dd75d025ae560d2521b45ea28ab49013" -dependencies = [ - "bitflags 2.9.1", - "cfg-if", - "libc", -] - [[package]] name = "ipnet" version = "2.11.0" @@ -1590,7 +1579,7 @@ dependencies = [ "once_cell", "socket2 0.5.10", "tracing", - "windows-sys 0.59.0", + "windows-sys 0.52.0", ] [[package]] @@ -1758,7 +1747,7 @@ dependencies = [ "errno", "libc", "linux-raw-sys", - "windows-sys 0.59.0", + "windows-sys 0.52.0", ] [[package]] @@ -2058,7 +2047,7 @@ dependencies = [ "getrandom 0.3.3", "once_cell", "rustix", - "windows-sys 0.59.0", + "windows-sys 0.52.0", ] [[package]] @@ -2128,29 +2117,26 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" [[package]] name = "tokio" -version = "1.47.1" +version = "1.48.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "89e49afdadebb872d3145a5638b59eb0691ea23e46ca484037cfab3b76b95038" +checksum = "ff360e02eab121e0bc37a2d3b4d4dc622e6eda3a8e5253d5435ecf5bd4c68408" dependencies = [ - "backtrace", "bytes", - "io-uring", "libc", "mio", "parking_lot", "pin-project-lite", "signal-hook-registry", - "slab", "socket2 0.6.0", "tokio-macros", - "windows-sys 0.59.0", + "windows-sys 0.61.1", ] [[package]] name = "tokio-macros" -version = "2.5.0" +version = "2.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6e06d43f1345a3bcd39f6a56dbb7dcab2ba47e68e8ac134855e7e2bdbaf8cab8" +checksum = "af407857209536a95c8e56f8231ef2c2e2aff839b22e07a1ffcbc617e9db9fa5" dependencies = [ "proc-macro2", "quote", @@ -2527,6 +2513,15 @@ dependencies = [ "windows-targets 0.53.2", ] +[[package]] +name = "windows-sys" +version = "0.61.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6f109e41dd4a3c848907eb83d5a42ea98b3769495597450cf6d153507b166f0f" +dependencies = [ + "windows-link 0.2.0", +] + [[package]] name = "windows-targets" version = "0.52.6" From ae78552a2d17491a9ee4a5547fdcd27d39b48e79 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 20 Oct 2025 05:43:45 +0000 Subject: [PATCH 036/189] Update actions/setup-node action to v6 (#367) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [actions/setup-node](https://redirect.github.com/actions/setup-node) | action | major | `v5` -> `v6` | --- ### Release Notes
actions/setup-node (actions/setup-node) ### [`v6`](https://redirect.github.com/actions/setup-node/compare/v5...v6) [Compare Source](https://redirect.github.com/actions/setup-node/compare/v5...v6)
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 066c8a04..5d17db42 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,7 +17,7 @@ jobs: version: v2025.10.11 sha256: 589cac941160e404d13be6f5699a25ffdb25b732084430338bc384df9f0a4438 - name: Use Node.js ${{ env.node_version }} - uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5 + uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6 with: node-version: ${{ env.node_version }} # setting a registry enables the NODE_AUTH_TOKEN env variable where we can set an npm token. REQUIRED From 0312c231f292a633baae0447c0742b35cda47970 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 27 Oct 2025 03:16:16 +0000 Subject: [PATCH 037/189] Update dependency mise to v2025.10.18 (#370) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Update | Change | |---|---|---| | [mise](https://redirect.github.com/jdx/mise) | patch | `v2025.10.11` -> `v2025.10.18` | --- ### Release Notes
jdx/mise (mise) ### [`v2025.10.18`](https://redirect.github.com/jdx/mise/releases/tag/v2025.10.18) [Compare Source](https://redirect.github.com/jdx/mise/compare/v2025.10.17...v2025.10.18) ##### 🚀 Features - **(task)** make leading colon optional for monorepo task references by [@​jdx](https://redirect.github.com/jdx) in [#​6763](https://redirect.github.com/jdx/mise/pull/6763) ##### 🐛 Bug Fixes - **(task)** resolve monorepo task dependencies with colons in task names by [@​jdx](https://redirect.github.com/jdx) in [#​6761](https://redirect.github.com/jdx/mise/pull/6761) - Add clang and libs to nix nativeBuildInputs by [@​laozc](https://redirect.github.com/laozc) in [#​6760](https://redirect.github.com/jdx/mise/pull/6760) ##### 📚 Documentation - **(task)** deprecate Tera template functions for task arguments by [@​jdx](https://redirect.github.com/jdx) in [#​6764](https://redirect.github.com/jdx/mise/pull/6764) ### [`v2025.10.17`](https://redirect.github.com/jdx/mise/releases/tag/v2025.10.17) [Compare Source](https://redirect.github.com/jdx/mise/compare/v2025.10.16...v2025.10.17) ##### 📦 Registry - add superhtml by [@​Maarrk](https://redirect.github.com/Maarrk) in [#​6742](https://redirect.github.com/jdx/mise/pull/6742) - add opengrep by [@​vmeurisse](https://redirect.github.com/vmeurisse) in [#​6745](https://redirect.github.com/jdx/mise/pull/6745) ##### 🚀 Features - **(plugins)** Implement missing `file.exists()` Lua function by [@​ofalvai](https://redirect.github.com/ofalvai) in [#​6754](https://redirect.github.com/jdx/mise/pull/6754) - **(tasks)** Make tera templates available in usage by [@​iamkroot](https://redirect.github.com/iamkroot) in [#​6747](https://redirect.github.com/jdx/mise/pull/6747) - use custom api\_url for asset downloading in GHES setups by [@​talbx](https://redirect.github.com/talbx) in [#​6730](https://redirect.github.com/jdx/mise/pull/6730) ##### 🐛 Bug Fixes - **(env)** prioritize \_.path after external PATH modifications by [@​jdx](https://redirect.github.com/jdx) in [#​6755](https://redirect.github.com/jdx/mise/pull/6755) - incorrect task arguments with spaces on Windows by [@​nickbabcock](https://redirect.github.com/nickbabcock) in [#​6744](https://redirect.github.com/jdx/mise/pull/6744) ##### 📚 Documentation - Add example of configuring tools in a file tasks by [@​richardthe3rd](https://redirect.github.com/richardthe3rd) in [#​6719](https://redirect.github.com/jdx/mise/pull/6719) - Add NixOS tip about source compilation to install docs by [@​richardgill](https://redirect.github.com/richardgill) in [#​6757](https://redirect.github.com/jdx/mise/pull/6757) ##### ◀️ Revert - fix(shell): prevent infinite loop in zsh command-not-found handler by [@​jdx](https://redirect.github.com/jdx) in [#​6758](https://redirect.github.com/jdx/mise/pull/6758) ##### 📦️ Dependency Updates - update ghcr.io/jdx/mise:copr docker digest to [`7f6aee5`](https://redirect.github.com/jdx/mise/commit/7f6aee5) by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​6750](https://redirect.github.com/jdx/mise/pull/6750) - update ghcr.io/jdx/mise:alpine docker digest to [`f749e46`](https://redirect.github.com/jdx/mise/commit/f749e46) by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​6749](https://redirect.github.com/jdx/mise/pull/6749) - update ghcr.io/jdx/mise:rpm docker digest to [`308b042`](https://redirect.github.com/jdx/mise/commit/308b042) by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​6752](https://redirect.github.com/jdx/mise/pull/6752) - update ghcr.io/jdx/mise:deb docker digest to [`e28b4fd`](https://redirect.github.com/jdx/mise/commit/e28b4fd) by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​6751](https://redirect.github.com/jdx/mise/pull/6751) ##### New Contributors - [@​richardgill](https://redirect.github.com/richardgill) made their first contribution in [#​6757](https://redirect.github.com/jdx/mise/pull/6757) - [@​nickbabcock](https://redirect.github.com/nickbabcock) made their first contribution in [#​6744](https://redirect.github.com/jdx/mise/pull/6744) - [@​vmeurisse](https://redirect.github.com/vmeurisse) made their first contribution in [#​6745](https://redirect.github.com/jdx/mise/pull/6745) - [@​talbx](https://redirect.github.com/talbx) made their first contribution in [#​6730](https://redirect.github.com/jdx/mise/pull/6730) - [@​Maarrk](https://redirect.github.com/Maarrk) made their first contribution in [#​6742](https://redirect.github.com/jdx/mise/pull/6742) ### [`v2025.10.16`](https://redirect.github.com/jdx/mise/releases/tag/v2025.10.16) [Compare Source](https://redirect.github.com/jdx/mise/compare/v2025.10.15...v2025.10.16) ##### 🚀 Features - **(tasks)** modify usage spec parsing to return dummy strings by [@​iamkroot](https://redirect.github.com/iamkroot) in [#​6723](https://redirect.github.com/jdx/mise/pull/6723) - include resolved sources in task templating context by [@​the-wondersmith](https://redirect.github.com/the-wondersmith) in [#​6180](https://redirect.github.com/jdx/mise/pull/6180) - Add Tera function `absolute` by [@​iamkroot](https://redirect.github.com/iamkroot) in [#​6729](https://redirect.github.com/jdx/mise/pull/6729) ##### 🐛 Bug Fixes - **(cli)** respect os filter during upgrade by [@​iamkroot](https://redirect.github.com/iamkroot) in [#​6724](https://redirect.github.com/jdx/mise/pull/6724) ##### 📚 Documentation - fix RUNTIME.osType values in example snippet by [@​ofalvai](https://redirect.github.com/ofalvai) in [#​6732](https://redirect.github.com/jdx/mise/pull/6732) - migrate issue links to GitHub discussions by [@​jdx](https://redirect.github.com/jdx) in [#​6740](https://redirect.github.com/jdx/mise/pull/6740) - document Lua version by [@​ofalvai](https://redirect.github.com/ofalvai) in [#​6741](https://redirect.github.com/jdx/mise/pull/6741) ##### New Contributors - [@​ofalvai](https://redirect.github.com/ofalvai) made their first contribution in [#​6741](https://redirect.github.com/jdx/mise/pull/6741) - [@​iamkroot](https://redirect.github.com/iamkroot) made their first contribution in [#​6729](https://redirect.github.com/jdx/mise/pull/6729) - [@​the-wondersmith](https://redirect.github.com/the-wondersmith) made their first contribution in [#​6180](https://redirect.github.com/jdx/mise/pull/6180) ### [`v2025.10.15`](https://redirect.github.com/jdx/mise/releases/tag/v2025.10.15) [Compare Source](https://redirect.github.com/jdx/mise/compare/v2025.10.14...v2025.10.15) ##### 🚀 Features - **(aqua)** use GitHub API digests for release asset checksums by [@​jdx](https://redirect.github.com/jdx) in [#​6720](https://redirect.github.com/jdx/mise/pull/6720) - **(github)** use GitHub API digests for release asset checksums by [@​jdx](https://redirect.github.com/jdx) in [#​6721](https://redirect.github.com/jdx/mise/pull/6721) - **(plugins)** automatically install backend plugins by [@​roele](https://redirect.github.com/roele) in [#​6696](https://redirect.github.com/jdx/mise/pull/6696) - **(tasks)** add choices to flag() and enable naked runs with task flags by [@​jdx](https://redirect.github.com/jdx) in [#​6707](https://redirect.github.com/jdx/mise/pull/6707) ##### 🐛 Bug Fixes - **(config)** show trust error instead of silently skipping untrusted configs by [@​jdx](https://redirect.github.com/jdx) in [#​6715](https://redirect.github.com/jdx/mise/pull/6715) - **(env)** handle non-ASCII environment variables gracefully by [@​arnodirlam](https://redirect.github.com/arnodirlam) in [#​6708](https://redirect.github.com/jdx/mise/pull/6708) - **(nix)** add cmakeMinimal to nativeBuildInputs by [@​okuuva](https://redirect.github.com/okuuva) in [#​6691](https://redirect.github.com/jdx/mise/pull/6691) - **(tasks)** load project env vars for global tasks with dir="{{cwd}}" by [@​jdx](https://redirect.github.com/jdx) in [#​6717](https://redirect.github.com/jdx/mise/pull/6717) ##### 📦️ Dependency Updates - update gh to latest (2.82.1) by [@​jdx](https://redirect.github.com/jdx) in [#​6718](https://redirect.github.com/jdx/mise/pull/6718) ##### New Contributors - [@​arnodirlam](https://redirect.github.com/arnodirlam) made their first contribution in [#​6708](https://redirect.github.com/jdx/mise/pull/6708) ### [`v2025.10.14`](https://redirect.github.com/jdx/mise/releases/tag/v2025.10.14) [Compare Source](https://redirect.github.com/jdx/mise/compare/v2025.10.13...v2025.10.14) ##### 🚀 Features - **(tasks)** add env var support for args/flags in usage specs by [@​jdx](https://redirect.github.com/jdx) in [#​6704](https://redirect.github.com/jdx/mise/pull/6704) ##### 🐛 Bug Fixes - **(release)** prevent S3 rate limiting errors during CDN upload by [@​jdx](https://redirect.github.com/jdx) in [#​6705](https://redirect.github.com/jdx/mise/pull/6705) ##### 📚 Documentation - add comprehensive documentation for environment plugins by [@​jdx](https://redirect.github.com/jdx) in [#​6702](https://redirect.github.com/jdx/mise/pull/6702) ##### 📦️ Dependency Updates - bump mlua from 0.11.0-beta.3 to 0.11 by [@​jdx](https://redirect.github.com/jdx) in [#​6701](https://redirect.github.com/jdx/mise/pull/6701) ### [`v2025.10.13`](https://redirect.github.com/jdx/mise/releases/tag/v2025.10.13) [Compare Source](https://redirect.github.com/jdx/mise/compare/v2025.10.12...v2025.10.13) ##### 🐛 Bug Fixes - **(revert)** fix(deps): update rust crate ubi to 0.8.2 by [@​nekrich](https://redirect.github.com/nekrich) in [#​6700](https://redirect.github.com/jdx/mise/pull/6700) ##### 📚 Documentation - Add fnox as recommended secret management option by [@​jdx](https://redirect.github.com/jdx) in [#​6698](https://redirect.github.com/jdx/mise/pull/6698) ##### New Contributors - [@​nekrich](https://redirect.github.com/nekrich) made their first contribution in [#​6700](https://redirect.github.com/jdx/mise/pull/6700) ### [`v2025.10.12`](https://redirect.github.com/jdx/mise/releases/tag/v2025.10.12) [Compare Source](https://redirect.github.com/jdx/mise/compare/v2025.10.11...v2025.10.12) ##### 🐛 Bug Fixes - **(rust)** preserve original PATH entries when managing tool paths by [@​jdx](https://redirect.github.com/jdx) in [#​6689](https://redirect.github.com/jdx/mise/pull/6689) ##### 📦️ Dependency Updates - update rust crate ubi to 0.8.2 by [@​risu729](https://redirect.github.com/risu729) in [#​6693](https://redirect.github.com/jdx/mise/pull/6693)
--- ### Configuration 📅 **Schedule**: Branch creation - "before 4am on monday" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/bench.yml | 4 ++-- .github/workflows/check.yml | 4 ++-- .github/workflows/release.yml | 4 ++-- .github/workflows/test-release.yml | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index 79c1e438..6fb6e9a5 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -10,7 +10,7 @@ jobs: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - uses: jdx/mise-action@e3d7b8d67a7958d1207f6ed871e83b1ea780e7b0 # v3.3.1 with: - version: v2025.10.11 - sha256: 589cac941160e404d13be6f5699a25ffdb25b732084430338bc384df9f0a4438 + version: v2025.10.18 + sha256: 3790805b8041fdd831c904ffeb9c11a9b5ddaaea85f8cba775d4f344a61d5014 - name: Random actions test run: mise run random-actions diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 019599d0..7f362a79 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -10,7 +10,7 @@ jobs: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - uses: jdx/mise-action@e3d7b8d67a7958d1207f6ed871e83b1ea780e7b0 # v3.3.1 with: - version: v2025.10.11 - sha256: 589cac941160e404d13be6f5699a25ffdb25b732084430338bc384df9f0a4438 + version: v2025.10.18 + sha256: 3790805b8041fdd831c904ffeb9c11a9b5ddaaea85f8cba775d4f344a61d5014 - name: Check all run: mise run ci diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5d17db42..e0a21f2b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,8 +14,8 @@ jobs: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - uses: jdx/mise-action@e3d7b8d67a7958d1207f6ed871e83b1ea780e7b0 # v3.3.1 with: - version: v2025.10.11 - sha256: 589cac941160e404d13be6f5699a25ffdb25b732084430338bc384df9f0a4438 + version: v2025.10.18 + sha256: 3790805b8041fdd831c904ffeb9c11a9b5ddaaea85f8cba775d4f344a61d5014 - name: Use Node.js ${{ env.node_version }} uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6 with: diff --git a/.github/workflows/test-release.yml b/.github/workflows/test-release.yml index 143fd118..7e4b464e 100644 --- a/.github/workflows/test-release.yml +++ b/.github/workflows/test-release.yml @@ -10,8 +10,8 @@ jobs: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - uses: jdx/mise-action@e3d7b8d67a7958d1207f6ed871e83b1ea780e7b0 # v3.3.1 with: - version: v2025.10.11 - sha256: 589cac941160e404d13be6f5699a25ffdb25b732084430338bc384df9f0a4438 + version: v2025.10.18 + sha256: 3790805b8041fdd831c904ffeb9c11a9b5ddaaea85f8cba775d4f344a61d5014 - name: Test server release run: mise run build-remote-server - name: Test client release From 07ac66c1db73062ed246f45c1425fbf769aa1715 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 30 Oct 2025 21:59:39 +0000 Subject: [PATCH 038/189] Update dependency rust to v1.91.0 (#372) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Update | Change | |---|---|---| | [rust](https://redirect.github.com/rust-lang/rust) | minor | `1.90.0` -> `1.91.0` | --- ### Release Notes
rust-lang/rust (rust) ### [`v1.91.0`](https://redirect.github.com/rust-lang/rust/blob/HEAD/RELEASES.md#Version-1910-2025-10-30) [Compare Source](https://redirect.github.com/rust-lang/rust/compare/1.90.0...1.91.0) \========================== ## Language - [Lower pattern bindings in the order they're written and base drop order on primary bindings' order](https://redirect.github.com/rust-lang/rust/pull/143764) - [Stabilize declaration of C-style variadic functions for `sysv64`, `win64`, `efiapi`, and `aapcs` ABIs](https://redirect.github.com/rust-lang/rust/pull/144066). This brings these ABIs in line with the C ABI: variadic functions can be declared in extern blocks but not defined. - [Add `dangling_pointers_from_locals` lint to warn against dangling pointers from local variables](https://redirect.github.com/rust-lang/rust/pull/144322) - [Upgrade `semicolon_in_expressions_from_macros` from warn to deny](https://redirect.github.com/rust-lang/rust/pull/144369) - [Stabilize LoongArch32 inline assembly](https://redirect.github.com/rust-lang/rust/pull/144402) - [Add warn-by-default `integer_to_ptr_transmutes` lint against integer-to-pointer transmutes](https://redirect.github.com/rust-lang/rust/pull/144531) - [Stabilize `sse4a` and `tbm` target features](https://redirect.github.com/rust-lang/rust/pull/144542) - [Add `target_env = "macabi"` and `target_env = "sim"` cfgs](https://redirect.github.com/rust-lang/rust/pull/139451) as replacements for the `target_abi` cfgs with the same values. ## Compiler - [Don't warn on never-to-any `as` casts as unreachable](https://redirect.github.com/rust-lang/rust/pull/144804) ## Platform Support - [Promote `aarch64-pc-windows-gnullvm` and `x86_64-pc-windows-gnullvm` to Tier 2 with host tools.](https://redirect.github.com/rust-lang/rust/pull/143031) Note: llvm-tools and MSI installers are missing but will be added in future releases. - [Promote `aarch64-pc-windows-msvc` to Tier 1](https://redirect.github.com/rust-lang/rust/pull/145682) Refer to Rust's [platform support page][platform-support-doc] for more information on Rust's tiered platform support. [platform-support-doc]: https://doc.rust-lang.org/rustc/platform-support.html ## Libraries - [Print thread ID in panic message](https://redirect.github.com/rust-lang/rust/pull/115746) - [Fix overly restrictive lifetime in `core::panic::Location::file` return type](https://redirect.github.com/rust-lang/rust/pull/132087) - [Guarantee parameter order for `_by()` variants of `min` / `max`/ `minmax` in `std::cmp`](https://redirect.github.com/rust-lang/rust/pull/139357) - [Document assumptions about `Clone` and `Eq` traits](https://redirect.github.com/rust-lang/rust/pull/144330/) - [`std::thread`: Return error if setting thread stack size fails](https://redirect.github.com/rust-lang/rust/pull/144210) This used to panic within the standard library. ## Stabilized APIs - [`Path::file_prefix`](https://doc.rust-lang.org/stable/std/path/struct.Path.html#method.file_prefix) - [`AtomicPtr::fetch_ptr_add`](https://doc.rust-lang.org/stable/std/sync/atomic/struct.AtomicPtr.html#method.fetch_ptr_add) - [`AtomicPtr::fetch_ptr_sub`](https://doc.rust-lang.org/stable/std/sync/atomic/struct.AtomicPtr.html#method.fetch_ptr_sub) - [`AtomicPtr::fetch_byte_add`](https://doc.rust-lang.org/stable/std/sync/atomic/struct.AtomicPtr.html#method.fetch_byte_add) - [`AtomicPtr::fetch_byte_sub`](https://doc.rust-lang.org/stable/std/sync/atomic/struct.AtomicPtr.html#method.fetch_byte_sub) - [`AtomicPtr::fetch_or`](https://doc.rust-lang.org/stable/std/sync/atomic/struct.AtomicPtr.html#method.fetch_or) - [`AtomicPtr::fetch_and`](https://doc.rust-lang.org/stable/std/sync/atomic/struct.AtomicPtr.html#method.fetch_and) - [`AtomicPtr::fetch_xor`](https://doc.rust-lang.org/stable/std/sync/atomic/struct.AtomicPtr.html#method.fetch_xor) - [`{integer}::strict_add`](https://doc.rust-lang.org/stable/std/primitive.u32.html#method.strict_add) - [`{integer}::strict_sub`](https://doc.rust-lang.org/stable/std/primitive.u32.html#method.strict_sub) - [`{integer}::strict_mul`](https://doc.rust-lang.org/stable/std/primitive.u32.html#method.strict_mul) - [`{integer}::strict_div`](https://doc.rust-lang.org/stable/std/primitive.i32.html#method.strict_div) - [`{integer}::strict_div_euclid`](https://doc.rust-lang.org/stable/std/primitive.i32.html#method.strict_div_euclid) - [`{integer}::strict_rem`](https://doc.rust-lang.org/stable/std/primitive.i32.html#method.strict_rem) - [`{integer}::strict_rem_euclid`](https://doc.rust-lang.org/stable/std/primitive.i32.html#method.strict_rem_euclid) - [`{integer}::strict_neg`](https://doc.rust-lang.org/stable/std/primitive.u32.html#method.strict_neg) - [`{integer}::strict_shl`](https://doc.rust-lang.org/stable/std/primitive.u32.html#method.strict_shl) - [`{integer}::strict_shr`](https://doc.rust-lang.org/stable/std/primitive.u32.html#method.strict_shr) - [`{integer}::strict_pow`](https://doc.rust-lang.org/stable/std/primitive.u32.html#method.strict_pow) - [`i{N}::strict_add_unsigned`](https://doc.rust-lang.org/stable/std/primitive.i32.html#method.strict_add_unsigned) - [`i{N}::strict_sub_unsigned`](https://doc.rust-lang.org/stable/std/primitive.i32.html#method.strict_sub_unsigned) - [`i{N}::strict_abs`](https://doc.rust-lang.org/stable/std/primitive.i32.html#method.strict_abs) - [`u{N}::strict_add_signed`](https://doc.rust-lang.org/stable/std/primitive.u32.html#method.strict_add_signed) - [`u{N}::strict_sub_signed`](https://doc.rust-lang.org/stable/std/primitive.u32.html#method.strict_sub_signed) - [`PanicHookInfo::payload_as_str`](https://doc.rust-lang.org/stable/std/panic/struct.PanicHookInfo.html#method.payload_as_str) - [`core::iter::chain`](https://doc.rust-lang.org/stable/core/iter/fn.chain.html) - [`u{N}::checked_signed_diff`](https://doc.rust-lang.org/stable/std/primitive.u16.html#method.checked_signed_diff) - [`core::array::repeat`](https://doc.rust-lang.org/stable/core/array/fn.repeat.html) - [`PathBuf::add_extension`](https://doc.rust-lang.org/stable/std/path/struct.PathBuf.html#method.add_extension) - [`PathBuf::with_added_extension`](https://doc.rust-lang.org/stable/std/path/struct.PathBuf.html#method.with_added_extension) - [`Duration::from_mins`](https://doc.rust-lang.org/stable/std/time/struct.Duration.html#method.from_mins) - [`Duration::from_hours`](https://doc.rust-lang.org/stable/std/time/struct.Duration.html#method.from_hours) - [`impl PartialEq for PathBuf`](https://doc.rust-lang.org/stable/std/path/struct.PathBuf.html#impl-PartialEq%3Cstr%3E-for-PathBuf) - [`impl PartialEq for PathBuf`](https://doc.rust-lang.org/stable/std/path/struct.PathBuf.html#impl-PartialEq%3CString%3E-for-PathBuf) - [`impl PartialEq for Path`](https://doc.rust-lang.org/stable/std/path/struct.Path.html#impl-PartialEq%3Cstr%3E-for-Path) - [`impl PartialEq for Path`](https://doc.rust-lang.org/stable/std/path/struct.Path.html#impl-PartialEq%3CString%3E-for-Path) - [`impl PartialEq for String`](https://doc.rust-lang.org/stable/std/string/struct.String.html#impl-PartialEq%3CPathBuf%3E-for-String) - [`impl PartialEq for String`](https://doc.rust-lang.org/stable/std/string/struct.String.html#impl-PartialEq%3CPath%3E-for-String) - [`impl PartialEq for str`](https://doc.rust-lang.org/stable/std/primitive.str.html#impl-PartialEq%3CPathBuf%3E-for-str) - [`impl PartialEq for str`](https://doc.rust-lang.org/stable/std/primitive.str.html#impl-PartialEq%3CPath%3E-for-str) - [`Ipv4Addr::from_octets`](https://doc.rust-lang.org/stable/std/net/struct.Ipv4Addr.html#method.from_octets) - [`Ipv6Addr::from_octets`](https://doc.rust-lang.org/stable/std/net/struct.Ipv6Addr.html#method.from_octets) - [`Ipv6Addr::from_segments`](https://doc.rust-lang.org/stable/std/net/struct.Ipv6Addr.html#method.from_segments) - [`impl Default for Pin> where Box: Default, T: ?Sized`](https://doc.rust-lang.org/stable/std/default/trait.Default.html#impl-Default-for-Pin%3CBox%3CT%3E%3E) - [`impl Default for Pin> where Rc: Default, T: ?Sized`](https://doc.rust-lang.org/stable/std/default/trait.Default.html#impl-Default-for-Pin%3CRc%3CT%3E%3E) - [`impl Default for Pin> where Arc: Default, T: ?Sized`](https://doc.rust-lang.org/stable/std/default/trait.Default.html#impl-Default-for-Pin%3CArc%3CT%3E%3E) - [`Cell::as_array_of_cells`](https://doc.rust-lang.org/stable/std/cell/struct.Cell.html#method.as_array_of_cells) - [`u{N}::carrying_add`](https://doc.rust-lang.org/stable/std/primitive.u64.html#method.carrying_add) - [`u{N}::borrowing_sub`](https://doc.rust-lang.org/stable/std/primitive.u64.html#method.borrowing_sub) - [`u{N}::carrying_mul`](https://doc.rust-lang.org/stable/std/primitive.u64.html#method.carrying_mul) - [`u{N}::carrying_mul_add`](https://doc.rust-lang.org/stable/std/primitive.u64.html#method.carrying_mul_add) - [`BTreeMap::extract_if`](https://doc.rust-lang.org/stable/std/collections/struct.BTreeMap.html#method.extract_if) - [`BTreeSet::extract_if`](https://doc.rust-lang.org/stable/std/collections/struct.BTreeSet.html#method.extract_if) - [`impl Debug for windows::ffi::EncodeWide<'_>`](https://doc.rust-lang.org/stable/std/os/windows/ffi/struct.EncodeWide.html#impl-Debug-for-EncodeWide%3C'_%3E) - [`str::ceil_char_boundary`](https://doc.rust-lang.org/stable/std/primitive.str.html#method.ceil_char_boundary) - [`str::floor_char_boundary`](https://doc.rust-lang.org/stable/std/primitive.str.html#method.floor_char_boundary) - [`impl Sum for Saturating`](https://doc.rust-lang.org/stable/std/num/struct.Saturating.html#impl-Sum-for-Saturating%3Cu32%3E) - [`impl Sum<&Self> for Saturating`](https://doc.rust-lang.org/stable/std/num/struct.Saturating.html#impl-Sum%3C%26Saturating%3Cu32%3E%3E-for-Saturating%3Cu32%3E) - [`impl Product for Saturating`](https://doc.rust-lang.org/stable/std/num/struct.Saturating.html#impl-Product-for-Saturating%3Cu32%3E) - [`impl Product<&Self> for Saturating`](https://doc.rust-lang.org/stable/std/num/struct.Saturating.html#impl-Product%3C%26Saturating%3Cu32%3E%3E-for-Saturating%3Cu32%3E) These previously stable APIs are now stable in const contexts: - [`<[T; N]>::each_ref`](https://doc.rust-lang.org/stable/std/primitive.array.html#method.each_ref) - [`<[T; N]>::each_mut`](https://doc.rust-lang.org/stable/std/primitive.array.html#method.each_mut) - [`OsString::new`](https://doc.rust-lang.org/stable/std/ffi/struct.OsString.html#method.new) - [`PathBuf::new`](https://doc.rust-lang.org/stable/std/path/struct.PathBuf.html#method.new) - [`TypeId::of`](https://doc.rust-lang.org/stable/std/any/struct.TypeId.html#method.of) - [`ptr::with_exposed_provenance`](https://doc.rust-lang.org/stable/std/ptr/fn.with_exposed_provenance.html) - [`ptr::with_exposed_provenance_mut`](https://doc.rust-lang.org/stable/std/ptr/fn.with_exposed_provenance_mut.html) ## Cargo - 🎉 Stabilize `build.build-dir`. This config sets the directory where intermediate build artifacts are stored. These artifacts are produced by Cargo and rustc during the build process. End users usually won't need to interact with them, and the layout inside `build-dir` is an implementation detail that may change without notice. ([config doc](https://doc.rust-lang.org/stable/cargo/reference/config.html#buildbuild-dir)) ([build cache doc](https://doc.rust-lang.org/stable/cargo/reference/build-cache.html)) [#​15833](https://redirect.github.com/rust-lang/cargo/pull/15833) [#​15840](https://redirect.github.com/rust-lang/cargo/pull/15840) - The `--target` flag and the `build.target` configuration can now take literal `"host-tuple"` string, which will internally be substituted by the host machine's target triple. [#​15838](https://redirect.github.com/rust-lang/cargo/pull/15838) [#​16003](https://redirect.github.com/rust-lang/cargo/pull/16003) [#​16032](https://redirect.github.com/rust-lang/cargo/pull/16032) ## Rustdoc - [In search results, rank doc aliases lower than non-alias items with the same name](https://redirect.github.com/rust-lang/rust/pull/145100) - [Raw pointers now work in type-based search like references](https://redirect.github.com/rust-lang/rust/pull/145731). This means you can now search for things like `*const u8 ->`, and additionally functions that take or return raw pointers will now display their signature properly in search results. ## Compatibility Notes - [Always require coroutine captures to be drop-live](https://redirect.github.com/rust-lang/rust/pull/144156) - [Apple: Always pass SDK root when linking with `cc`, and pass it via `SDKROOT` env var](https://redirect.github.com/rust-lang/rust/pull/131477). This should fix linking issues with `rustc` running inside Xcode. Libraries in `/usr/local/lib` may no longer be linked automatically, if you develop or use a crate that relies on this, you should explicitly set `cargo::rustc-link-search=/usr/local/lib` in a `build.rs` script. - [Relaxed bounds in associated type bound position like in `TraitRef` are now correctly forbidden](https://redirect.github.com/rust-lang/rust/pull/135331) - [Add unstable `#[sanitize(xyz = "on|off")]` built-in attribute that shadows procedural macros with the same name](https://redirect.github.com/rust-lang/rust/pull/142681) - [Fix the drop checker being more permissive for bindings declared with let-else](https://redirect.github.com/rust-lang/rust/pull/143028) - [Be more strict when parsing attributes, erroring on many invalid attributes](https://redirect.github.com/rust-lang/rust/pull/144689) - [Error on invalid `#[should_panic]` attributes](https://redirect.github.com/rust-lang/rust/pull/143808) - [Error on invalid `#[link]` attributes](https://redirect.github.com/rust-lang/rust/pull/143193) - [Mark all deprecation lints in name resolution as deny-by-default and also report in dependencies](https://redirect.github.com/rust-lang/rust/pull/143929) - The lint `semicolon_in_expressions_from_macros`, for `macro_rules!` macros in expression position that expand to end in a semicolon (`;`), is now deny-by-default. It was already warn-by-default, and a future compatibility warning (FCW) that warned even in dependencies. This lint will become a hard error in the future. - [Trait impl modifiers (e.g., `unsafe`, `!`, `default`) in inherent impls are no longer syntactically valid](https://redirect.github.com/rust-lang/rust/pull/144386) - [Start reporting future breakage for `ill_formed_attribute_input` in dependencies](https://redirect.github.com/rust-lang/rust/pull/144544) - [Restrict the scope of temporaries created by the macros `pin!`, `format_args!`, `write!`, and `writeln!` in `if let` scrutinees in Rust Edition 2024.](https://redirect.github.com/rust-lang/rust/pull/145342) This applies [Rust Edition 2024's `if let` temporary scope rules](https://doc.rust-lang.org/edition-guide/rust-2024/temporary-if-let-scope.html) to these temporaries, which previously could live past the `if` expression regardless of Edition. - [Invalid numeric literal suffixes in tuple indexing, tuple struct indexing, and struct field name positions are now correctly rejected](https://redirect.github.com/rust-lang/rust/pull/145463) - [Closures marked with the keyword `static` are now syntactically invalid](https://redirect.github.com/rust-lang/rust/pull/145604) - [Shebangs inside `--cfg` and `--check-cfg` arguments are no longer allowed](https://redirect.github.com/rust-lang/rust/pull/146211) - [Add future incompatibility lint for temporary lifetime shortening in Rust 1.92](https://redirect.github.com/rust-lang/rust/pull/147056) Cargo compatibility notes: - `cargo publish` no longer keeps `.crate` tarballs as final build artifacts when `build.build-dir` is set. These tarballs were previously included due to an oversight and are now treated as intermediate artifacts. To get `.crate` tarballs as final artifacts, use `cargo package`. In a future version, this change will apply regardless of `build.build-dir`. [#​15910](https://redirect.github.com/rust-lang/cargo/pull/15910) - Adjust Cargo messages to match rustc diagnostic style. This changes some of the terminal colors used by Cargo messages. [#​15928](https://redirect.github.com/rust-lang/cargo/pull/15928) - Tools and projects relying on the [internal details of Cargo's `build-dir`](https://doc.rust-lang.org/cargo/reference/build-cache.html) may not work for users changing their `build-dir` layout. For those doing so, we'd recommend proactively testing these cases particularly as we are considering changing the default location of the `build-dir` in the future ([cargo#16147](https://redirect.github.com/rust-lang/cargo/issues/16147)). If you can't migrate off of Cargo's internal details, we'd like to learn more about your use case as we prepare to change the layout of the `build-dir` ([cargo#15010](https://redirect.github.com/rust-lang/cargo/issues/15010)). ## Internal Changes These changes do not affect any public interfaces of Rust, but they represent significant improvements to the performance or internals of rustc and related tools. - [Update to LLVM 21](https://redirect.github.com/rust-lang/rust/pull/143684)
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- mise.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mise.toml b/mise.toml index a4cf185e..3eab11ce 100644 --- a/mise.toml +++ b/mise.toml @@ -70,5 +70,5 @@ run = "./scripts/publish-client.sh test" "cargo:cargo-nextest" = "0.9.103" "cargo:wasm-bindgen-cli" = "0.2.103" "cargo:wasm-pack" = "0.13.1" -rust = { version = "1.90.0", targets = "wasm32-unknown-unknown", components = "clippy,rustfmt" } +rust = { version = "1.91.0", targets = "wasm32-unknown-unknown", components = "clippy,rustfmt" } From 81a674e2c3feb2458b95e3fb0da025cbc0dd4a04 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 31 Oct 2025 21:14:20 +0000 Subject: [PATCH 039/189] Update jdx/mise-action action to v3.4.0 (#373) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [jdx/mise-action](https://redirect.github.com/jdx/mise-action) | action | minor | `v3.3.1` -> `v3.4.0` | --- ### Release Notes
jdx/mise-action (jdx/mise-action) ### [`v3.4.0`](https://redirect.github.com/jdx/mise-action/releases/tag/v3.4.0) [Compare Source](https://redirect.github.com/jdx/mise-action/compare/v3.3.1...v3.4.0) ##### What's Changed - docs: update to v3 in README by [@​pdecat](https://redirect.github.com/pdecat) in [#​290](https://redirect.github.com/jdx/mise-action/pull/290) - chore(deps): update github/codeql-action digest to [`a8d1ac4`](https://redirect.github.com/jdx/mise-action/commit/a8d1ac4) by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​293](https://redirect.github.com/jdx/mise-action/pull/293) - chore(deps): update github/codeql-action digest to [`755f449`](https://redirect.github.com/jdx/mise-action/commit/755f449) by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​296](https://redirect.github.com/jdx/mise-action/pull/296) - chore(deps): update dependency [@​types/node](https://redirect.github.com/types/node) to v24.8.1 by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​297](https://redirect.github.com/jdx/mise-action/pull/297) - chore(deps): update github/codeql-action digest to [`4221315`](https://redirect.github.com/jdx/mise-action/commit/4221315) by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​299](https://redirect.github.com/jdx/mise-action/pull/299) - chore(deps): update dependency [@​types/node](https://redirect.github.com/types/node) to v24.9.1 by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​300](https://redirect.github.com/jdx/mise-action/pull/300) - chore(deps): update github/codeql-action digest to [`5d5cd55`](https://redirect.github.com/jdx/mise-action/commit/5d5cd55) by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​302](https://redirect.github.com/jdx/mise-action/pull/302) - chore(deps): update dependency [@​types/node](https://redirect.github.com/types/node) to v24.9.2 by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​303](https://redirect.github.com/jdx/mise-action/pull/303) - fix: add missing `await` to `core.group` calls by [@​smorimoto](https://redirect.github.com/smorimoto) in [#​305](https://redirect.github.com/jdx/mise-action/pull/305) - fix: auto-update dist folder in Renovate PRs via GitHub Actions by [@​jdx](https://redirect.github.com/jdx) in [#​306](https://redirect.github.com/jdx/mise-action/pull/306) - chore(deps): update dependency [@​types/handlebars](https://redirect.github.com/types/handlebars) to v4.1.0 by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​294](https://redirect.github.com/jdx/mise-action/pull/294) - feat: use autofix.ci to auto-update dist/ on all PRs by [@​jdx](https://redirect.github.com/jdx) in [#​308](https://redirect.github.com/jdx/mise-action/pull/308) - chore(deps): lock file maintenance by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​301](https://redirect.github.com/jdx/mise-action/pull/301) - chore: release v3.4.0 by [@​mise-en-dev](https://redirect.github.com/mise-en-dev) in [#​291](https://redirect.github.com/jdx/mise-action/pull/291) ##### New Contributors - [@​pdecat](https://redirect.github.com/pdecat) made their first contribution in [#​290](https://redirect.github.com/jdx/mise-action/pull/290) - [@​smorimoto](https://redirect.github.com/smorimoto) made their first contribution in [#​305](https://redirect.github.com/jdx/mise-action/pull/305) **Full Changelog**:
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/bench.yml | 2 +- .github/workflows/check.yml | 2 +- .github/workflows/release.yml | 2 +- .github/workflows/test-release.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index 6fb6e9a5..826e6d46 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -8,7 +8,7 @@ jobs: steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - - uses: jdx/mise-action@e3d7b8d67a7958d1207f6ed871e83b1ea780e7b0 # v3.3.1 + - uses: jdx/mise-action@be3be2260bc02bc3fbf94c5e2fed8b7964baf074 # v3.4.0 with: version: v2025.10.18 sha256: 3790805b8041fdd831c904ffeb9c11a9b5ddaaea85f8cba775d4f344a61d5014 diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 7f362a79..a2418007 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -8,7 +8,7 @@ jobs: steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - - uses: jdx/mise-action@e3d7b8d67a7958d1207f6ed871e83b1ea780e7b0 # v3.3.1 + - uses: jdx/mise-action@be3be2260bc02bc3fbf94c5e2fed8b7964baf074 # v3.4.0 with: version: v2025.10.18 sha256: 3790805b8041fdd831c904ffeb9c11a9b5ddaaea85f8cba775d4f344a61d5014 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e0a21f2b..95f01052 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - - uses: jdx/mise-action@e3d7b8d67a7958d1207f6ed871e83b1ea780e7b0 # v3.3.1 + - uses: jdx/mise-action@be3be2260bc02bc3fbf94c5e2fed8b7964baf074 # v3.4.0 with: version: v2025.10.18 sha256: 3790805b8041fdd831c904ffeb9c11a9b5ddaaea85f8cba775d4f344a61d5014 diff --git a/.github/workflows/test-release.yml b/.github/workflows/test-release.yml index 7e4b464e..a63bc32a 100644 --- a/.github/workflows/test-release.yml +++ b/.github/workflows/test-release.yml @@ -8,7 +8,7 @@ jobs: steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - - uses: jdx/mise-action@e3d7b8d67a7958d1207f6ed871e83b1ea780e7b0 # v3.3.1 + - uses: jdx/mise-action@be3be2260bc02bc3fbf94c5e2fed8b7964baf074 # v3.4.0 with: version: v2025.10.18 sha256: 3790805b8041fdd831c904ffeb9c11a9b5ddaaea85f8cba775d4f344a61d5014 From fb9c85a98f00b2f451a201447bce71feb2e0ca41 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 3 Nov 2025 03:06:48 +0000 Subject: [PATCH 040/189] Update dependency mise to v2025.11.1 (#374) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Update | Change | |---|---|---| | [mise](https://redirect.github.com/jdx/mise) | minor | `v2025.10.18` -> `v2025.11.1` | --- ### Release Notes
jdx/mise (mise) ### [`v2025.11.1`](https://redirect.github.com/jdx/mise/releases/tag/v2025.11.1) [Compare Source](https://redirect.github.com/jdx/mise/compare/v2025.11.0...v2025.11.1) ##### 📦 Registry - Disable libsql-server on Windows by [@​jayvdb](https://redirect.github.com/jayvdb) in [#​6837](https://redirect.github.com/jdx/mise/pull/6837) - add infisical by [@​jdx](https://redirect.github.com/jdx) in [#​6845](https://redirect.github.com/jdx/mise/pull/6845) ##### 🚀 Features - **(age)** add strict mode for non-strict decryption mode by [@​iamkroot](https://redirect.github.com/iamkroot) in [#​6838](https://redirect.github.com/jdx/mise/pull/6838) - **(vfox)** add support for specifying attestation metadata in the preinstall return value by [@​malept](https://redirect.github.com/malept) in [#​6839](https://redirect.github.com/jdx/mise/pull/6839) ##### 🐛 Bug Fixes - **(activate)** prevent hash table errors during deactivation by [@​jdx](https://redirect.github.com/jdx) in [#​6846](https://redirect.github.com/jdx/mise/pull/6846) - **(install)** error on non-existent tools in `mise install` by [@​jdx](https://redirect.github.com/jdx) in [#​6844](https://redirect.github.com/jdx/mise/pull/6844) ### [`v2025.11.0`](https://redirect.github.com/jdx/mise/releases/tag/v2025.11.0) [Compare Source](https://redirect.github.com/jdx/mise/compare/v2025.10.21...v2025.11.0) ##### 🐛 Bug Fixes - **(activate)** reset PATH when activate is called multiple times by [@​jdx](https://redirect.github.com/jdx) in [#​6829](https://redirect.github.com/jdx/mise/pull/6829) - **(env)** preserve user-configured PATH entries from env.\_.path by [@​jdx](https://redirect.github.com/jdx) in [#​6835](https://redirect.github.com/jdx/mise/pull/6835) - store tool options for all backends in metadata by [@​roele](https://redirect.github.com/roele) in [#​6807](https://redirect.github.com/jdx/mise/pull/6807) ##### 📚 Documentation - fix usage spec syntax from 'option' to 'flag' by [@​jdx](https://redirect.github.com/jdx) in [#​6834](https://redirect.github.com/jdx/mise/pull/6834) ##### 📦️ Dependency Updates - update ghcr.io/jdx/mise:alpine docker digest to [`7351bbe`](https://redirect.github.com/jdx/mise/commit/7351bbe) by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​6826](https://redirect.github.com/jdx/mise/pull/6826) - update ghcr.io/jdx/mise:deb docker digest to [`3a847f2`](https://redirect.github.com/jdx/mise/commit/3a847f2) by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​6828](https://redirect.github.com/jdx/mise/pull/6828) - update ghcr.io/jdx/mise:copr docker digest to [`546dffb`](https://redirect.github.com/jdx/mise/commit/546dffb) by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​6827](https://redirect.github.com/jdx/mise/pull/6827) - pin jdx/mise-action action to [`e3d7b8d`](https://redirect.github.com/jdx/mise/commit/e3d7b8d) by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​6825](https://redirect.github.com/jdx/mise/pull/6825) ### [`v2025.10.21`](https://redirect.github.com/jdx/mise/releases/tag/v2025.10.21) [Compare Source](https://redirect.github.com/jdx/mise/compare/v2025.10.20...v2025.10.21) ##### 🐛 Bug Fixes - **(cli)** show friendly error when --cd path does not exist by [@​jdx](https://redirect.github.com/jdx) in [#​6818](https://redirect.github.com/jdx/mise/pull/6818) - **(env)** prevent PATH corruption when paths are interleaved with original PATH by [@​jdx](https://redirect.github.com/jdx) in [#​6821](https://redirect.github.com/jdx/mise/pull/6821) - **(node)** update lts version by [@​risu729](https://redirect.github.com/risu729) in [#​6816](https://redirect.github.com/jdx/mise/pull/6816) - **(schema,settings)** update type and descriptions for shell argument settings by [@​astrochemx](https://redirect.github.com/astrochemx) in [#​6805](https://redirect.github.com/jdx/mise/pull/6805) ##### Chore - update kerl to 4.4.0 by [@​rbino](https://redirect.github.com/rbino) in [#​6809](https://redirect.github.com/jdx/mise/pull/6809) ##### New Contributors - [@​astrochemx](https://redirect.github.com/astrochemx) made their first contribution in [#​6805](https://redirect.github.com/jdx/mise/pull/6805) - [@​rbino](https://redirect.github.com/rbino) made their first contribution in [#​6809](https://redirect.github.com/jdx/mise/pull/6809) ### [`v2025.10.20`](https://redirect.github.com/jdx/mise/releases/tag/v2025.10.20) [Compare Source](https://redirect.github.com/jdx/mise/compare/v2025.10.19...v2025.10.20) ##### 📦 Registry - add cpz and rmz by [@​sassdavid](https://redirect.github.com/sassdavid) in [#​6793](https://redirect.github.com/jdx/mise/pull/6793) ##### 🚀 Features - Add MSVC asset matching on Windows by [@​trolleyman](https://redirect.github.com/trolleyman) in [#​6798](https://redirect.github.com/jdx/mise/pull/6798) ##### 🐛 Bug Fixes - **(cache)** exclude http backend tarballs from autoprune by [@​jdx](https://redirect.github.com/jdx) in [#​6806](https://redirect.github.com/jdx/mise/pull/6806) - **(ci)** prevent release job from running when dependencies fail by [@​jdx](https://redirect.github.com/jdx) in [#​6804](https://redirect.github.com/jdx/mise/pull/6804) - **(fish)** remove --move flag from fish\_add\_path to prevent PATH corruption by [@​jdx](https://redirect.github.com/jdx) in [#​6800](https://redirect.github.com/jdx/mise/pull/6800) - **(tasks)** support local .config/mise/conf.d/\*.toml tasks by [@​syhol](https://redirect.github.com/syhol) in [#​6792](https://redirect.github.com/jdx/mise/pull/6792) ##### 📚 Documentation - change 'claude-code' to 'claude' in examples by [@​bradleybuda](https://redirect.github.com/bradleybuda) in [#​6801](https://redirect.github.com/jdx/mise/pull/6801) ##### New Contributors - [@​trolleyman](https://redirect.github.com/trolleyman) made their first contribution in [#​6798](https://redirect.github.com/jdx/mise/pull/6798) - [@​bradleybuda](https://redirect.github.com/bradleybuda) made their first contribution in [#​6801](https://redirect.github.com/jdx/mise/pull/6801) ### [`v2025.10.19`](https://redirect.github.com/jdx/mise/releases/tag/v2025.10.19) [Compare Source](https://redirect.github.com/jdx/mise/compare/v2025.10.18...v2025.10.19) ##### 📦 Registry - update bat-extras backends by [@​TyceHerrman](https://redirect.github.com/TyceHerrman) in [#​6784](https://redirect.github.com/jdx/mise/pull/6784) ##### 🚀 Features - **(zig)** Download zig tarballs from vetted community mirrors when available. by [@​Maarrk](https://redirect.github.com/Maarrk) in [#​6670](https://redirect.github.com/jdx/mise/pull/6670) ##### 🐛 Bug Fixes - **(config)** respect auto\_install=false for all installation contexts by [@​jdx](https://redirect.github.com/jdx) in [#​6788](https://redirect.github.com/jdx/mise/pull/6788) - **(plugins)** incorrect tool versions installed for custom plugins by [@​roele](https://redirect.github.com/roele) in [#​6765](https://redirect.github.com/jdx/mise/pull/6765) - **(reqwest)** enable socks for self-update by [@​tony-sol](https://redirect.github.com/tony-sol) in [#​6775](https://redirect.github.com/jdx/mise/pull/6775) ##### 📚 Documentation - **(task)** Fix task flag definitions and examples by [@​syhol](https://redirect.github.com/syhol) in [#​6790](https://redirect.github.com/jdx/mise/pull/6790) - **(task-arguments)** adds `# [USAGE]` syntax by [@​risu729](https://redirect.github.com/risu729) in [#​6768](https://redirect.github.com/jdx/mise/pull/6768) - enhance task documentation with syntax highlighting and corrections by [@​jdx](https://redirect.github.com/jdx) in [#​6777](https://redirect.github.com/jdx/mise/pull/6777) - use triple single quotes for multiline run commands by [@​jdx](https://redirect.github.com/jdx) in [#​6791](https://redirect.github.com/jdx/mise/pull/6791) ##### 🧪 Testing - **(perf)** add warmup calls for benchmarks to fix incorrect numbers by [@​jdx](https://redirect.github.com/jdx) in [#​6789](https://redirect.github.com/jdx/mise/pull/6789) ##### 📦️ Dependency Updates - lock file maintenance by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​6780](https://redirect.github.com/jdx/mise/pull/6780)
--- ### Configuration 📅 **Schedule**: Branch creation - "before 4am on monday" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/bench.yml | 4 ++-- .github/workflows/check.yml | 4 ++-- .github/workflows/release.yml | 4 ++-- .github/workflows/test-release.yml | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index 826e6d46..5cb3150d 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -10,7 +10,7 @@ jobs: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - uses: jdx/mise-action@be3be2260bc02bc3fbf94c5e2fed8b7964baf074 # v3.4.0 with: - version: v2025.10.18 - sha256: 3790805b8041fdd831c904ffeb9c11a9b5ddaaea85f8cba775d4f344a61d5014 + version: v2025.11.1 + sha256: d4bec11aeb5b13180c596b70abf59716acda20131dbc3df8b9146f97cecf645c - name: Random actions test run: mise run random-actions diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index a2418007..2c21ca47 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -10,7 +10,7 @@ jobs: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - uses: jdx/mise-action@be3be2260bc02bc3fbf94c5e2fed8b7964baf074 # v3.4.0 with: - version: v2025.10.18 - sha256: 3790805b8041fdd831c904ffeb9c11a9b5ddaaea85f8cba775d4f344a61d5014 + version: v2025.11.1 + sha256: d4bec11aeb5b13180c596b70abf59716acda20131dbc3df8b9146f97cecf645c - name: Check all run: mise run ci diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 95f01052..2094d9e3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,8 +14,8 @@ jobs: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - uses: jdx/mise-action@be3be2260bc02bc3fbf94c5e2fed8b7964baf074 # v3.4.0 with: - version: v2025.10.18 - sha256: 3790805b8041fdd831c904ffeb9c11a9b5ddaaea85f8cba775d4f344a61d5014 + version: v2025.11.1 + sha256: d4bec11aeb5b13180c596b70abf59716acda20131dbc3df8b9146f97cecf645c - name: Use Node.js ${{ env.node_version }} uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6 with: diff --git a/.github/workflows/test-release.yml b/.github/workflows/test-release.yml index a63bc32a..a451d9e0 100644 --- a/.github/workflows/test-release.yml +++ b/.github/workflows/test-release.yml @@ -10,8 +10,8 @@ jobs: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - uses: jdx/mise-action@be3be2260bc02bc3fbf94c5e2fed8b7964baf074 # v3.4.0 with: - version: v2025.10.18 - sha256: 3790805b8041fdd831c904ffeb9c11a9b5ddaaea85f8cba775d4f344a61d5014 + version: v2025.11.1 + sha256: d4bec11aeb5b13180c596b70abf59716acda20131dbc3df8b9146f97cecf645c - name: Test server release run: mise run build-remote-server - name: Test client release From 0feeb970fabf4b57362cad0c162781c99f6e7d16 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 10 Nov 2025 01:08:40 +0000 Subject: [PATCH 041/189] Update dependency mise to v2025.11.3 (#375) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Update | Change | |---|---|---| | [mise](https://redirect.github.com/jdx/mise) | patch | `v2025.11.1` -> `v2025.11.3` | --- ### Release Notes
jdx/mise (mise) ### [`v2025.11.3`](https://redirect.github.com/jdx/mise/releases/tag/v2025.11.3) [Compare Source](https://redirect.github.com/jdx/mise/compare/v2025.11.2...v2025.11.3) ##### 📦 Registry - rename yt-dlp bin by [@​risu729](https://redirect.github.com/risu729) in [#​6883](https://redirect.github.com/jdx/mise/pull/6883) - use aqua backend for slsa-verifier by [@​risu729](https://redirect.github.com/risu729) in [#​6872](https://redirect.github.com/jdx/mise/pull/6872) - added devcontainer-cli by [@​moisesmorillo](https://redirect.github.com/moisesmorillo) in [#​6888](https://redirect.github.com/jdx/mise/pull/6888) - add amazon-ecs-cli by [@​ducvuongpham](https://redirect.github.com/ducvuongpham) in [#​6898](https://redirect.github.com/jdx/mise/pull/6898) - add helm-ls by [@​ldrouard](https://redirect.github.com/ldrouard) in [#​6899](https://redirect.github.com/jdx/mise/pull/6899) - add ubi backend and test for oxipng, change aqua backend by [@​ldrouard](https://redirect.github.com/ldrouard) in [#​6900](https://redirect.github.com/jdx/mise/pull/6900) ##### 🚀 Features - **(aqua)** support `Asset` template for cosign and slsa verification by [@​risu729](https://redirect.github.com/risu729) in [#​6875](https://redirect.github.com/jdx/mise/pull/6875) - improve task info support with experimental\_monorepo\_root by [@​hverlin](https://redirect.github.com/hverlin) in [#​6881](https://redirect.github.com/jdx/mise/pull/6881) ##### 🐛 Bug Fixes - **(clippy)** resolve comparison and derivable impl warnings by [@​jdx](https://redirect.github.com/jdx) in [#​6924](https://redirect.github.com/jdx/mise/pull/6924) - **(config)** add `mise/config.local.toml` to config paths by [@​risu729](https://redirect.github.com/risu729) in [#​6882](https://redirect.github.com/jdx/mise/pull/6882) - **(java)** unable to install JDKs of release type EA by [@​roele](https://redirect.github.com/roele) in [#​6907](https://redirect.github.com/jdx/mise/pull/6907) - interactive task selection when monorepo tasks are enabled by [@​halms](https://redirect.github.com/halms) in [#​6891](https://redirect.github.com/jdx/mise/pull/6891) ##### 📚 Documentation - **(security)** use long-form GPG key fingerprint in installation docs by [@​jdx](https://redirect.github.com/jdx) in [#​6885](https://redirect.github.com/jdx/mise/pull/6885) ##### Chore - update Java LTS to 25 by [@​sargunv](https://redirect.github.com/sargunv) in [#​6897](https://redirect.github.com/jdx/mise/pull/6897) ##### New Contributors - [@​halms](https://redirect.github.com/halms) made their first contribution in [#​6891](https://redirect.github.com/jdx/mise/pull/6891) - [@​sargunv](https://redirect.github.com/sargunv) made their first contribution in [#​6897](https://redirect.github.com/jdx/mise/pull/6897) - [@​ducvuongpham](https://redirect.github.com/ducvuongpham) made their first contribution in [#​6898](https://redirect.github.com/jdx/mise/pull/6898) ### [`v2025.11.2`](https://redirect.github.com/jdx/mise/releases/tag/v2025.11.2) [Compare Source](https://redirect.github.com/jdx/mise/compare/v2025.11.1...v2025.11.2) ##### 📦 Registry - rename mise-haskell -> asdf-haskell by [@​jdx](https://redirect.github.com/jdx) in [#​6859](https://redirect.github.com/jdx/mise/pull/6859) ##### 🚀 Features - **(cli)** switch manpage generation from clap\_mangen to usage by [@​jdx](https://redirect.github.com/jdx) in [#​6868](https://redirect.github.com/jdx/mise/pull/6868) - **(task)** add selective stream suppression for silent configuration by [@​jdx](https://redirect.github.com/jdx) in [#​6851](https://redirect.github.com/jdx/mise/pull/6851) ##### 🐛 Bug Fixes - **(backend)** support platform-specific bin and bin\_path configuration by [@​dragoscirjan](https://redirect.github.com/dragoscirjan) in [#​6853](https://redirect.github.com/jdx/mise/pull/6853) - **(generate)** update git pre-commit script to use null separator by [@​azais-corentin](https://redirect.github.com/azais-corentin) in [#​6874](https://redirect.github.com/jdx/mise/pull/6874) - **(stubs)** lookup for aqua tools stubs fails because of tool options by [@​roele](https://redirect.github.com/roele) in [#​6867](https://redirect.github.com/jdx/mise/pull/6867) - **(task)** resolve aliases correctly for monorepo tasks by [@​jdx](https://redirect.github.com/jdx) in [#​6857](https://redirect.github.com/jdx/mise/pull/6857) - **(task)** prevent MISE\_TASK\_OUTPUT from propagating to nested tasks by [@​jdx](https://redirect.github.com/jdx) in [#​6860](https://redirect.github.com/jdx/mise/pull/6860) - **(tasks)** simplify task command display to show only first line by [@​jdx](https://redirect.github.com/jdx) in [#​6863](https://redirect.github.com/jdx/mise/pull/6863) - **(tasks)** implement smart flag routing for task arguments by [@​jdx](https://redirect.github.com/jdx) in [#​6861](https://redirect.github.com/jdx/mise/pull/6861) - **(xonsh)** prevent KeyError when activating in nested shells by [@​jdx](https://redirect.github.com/jdx) in [#​6856](https://redirect.github.com/jdx/mise/pull/6856) - Don't set empty env var if decryption fails with age.strict=false by [@​iamkroot](https://redirect.github.com/iamkroot) in [#​6847](https://redirect.github.com/jdx/mise/pull/6847) ##### 🚜 Refactor - **(task)** split run.rs into modular task execution pipeline by [@​jdx](https://redirect.github.com/jdx) in [#​6852](https://redirect.github.com/jdx/mise/pull/6852) ##### 📚 Documentation - **(cli)** integrate clap-sort to validate subcommand ordering by [@​jdx](https://redirect.github.com/jdx) in [#​6865](https://redirect.github.com/jdx/mise/pull/6865) ##### 📦️ Dependency Updates - lock file maintenance by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​6873](https://redirect.github.com/jdx/mise/pull/6873) ##### New Contributors - [@​dragoscirjan](https://redirect.github.com/dragoscirjan) made their first contribution in [#​6853](https://redirect.github.com/jdx/mise/pull/6853)
--- ### Configuration 📅 **Schedule**: Branch creation - "before 4am on monday" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/bench.yml | 4 ++-- .github/workflows/check.yml | 4 ++-- .github/workflows/release.yml | 4 ++-- .github/workflows/test-release.yml | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index 5cb3150d..ab4b8526 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -10,7 +10,7 @@ jobs: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - uses: jdx/mise-action@be3be2260bc02bc3fbf94c5e2fed8b7964baf074 # v3.4.0 with: - version: v2025.11.1 - sha256: d4bec11aeb5b13180c596b70abf59716acda20131dbc3df8b9146f97cecf645c + version: v2025.11.3 + sha256: 2b01d2063ac9fb6988ed5bfa087bebfba4ae6300b0739231bb534924acd31306 - name: Random actions test run: mise run random-actions diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 2c21ca47..36c5e62f 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -10,7 +10,7 @@ jobs: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - uses: jdx/mise-action@be3be2260bc02bc3fbf94c5e2fed8b7964baf074 # v3.4.0 with: - version: v2025.11.1 - sha256: d4bec11aeb5b13180c596b70abf59716acda20131dbc3df8b9146f97cecf645c + version: v2025.11.3 + sha256: 2b01d2063ac9fb6988ed5bfa087bebfba4ae6300b0739231bb534924acd31306 - name: Check all run: mise run ci diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2094d9e3..0ae78058 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,8 +14,8 @@ jobs: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - uses: jdx/mise-action@be3be2260bc02bc3fbf94c5e2fed8b7964baf074 # v3.4.0 with: - version: v2025.11.1 - sha256: d4bec11aeb5b13180c596b70abf59716acda20131dbc3df8b9146f97cecf645c + version: v2025.11.3 + sha256: 2b01d2063ac9fb6988ed5bfa087bebfba4ae6300b0739231bb534924acd31306 - name: Use Node.js ${{ env.node_version }} uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6 with: diff --git a/.github/workflows/test-release.yml b/.github/workflows/test-release.yml index a451d9e0..33c9a019 100644 --- a/.github/workflows/test-release.yml +++ b/.github/workflows/test-release.yml @@ -10,8 +10,8 @@ jobs: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - uses: jdx/mise-action@be3be2260bc02bc3fbf94c5e2fed8b7964baf074 # v3.4.0 with: - version: v2025.11.1 - sha256: d4bec11aeb5b13180c596b70abf59716acda20131dbc3df8b9146f97cecf645c + version: v2025.11.3 + sha256: 2b01d2063ac9fb6988ed5bfa087bebfba4ae6300b0739231bb534924acd31306 - name: Test server release run: mise run build-remote-server - name: Test client release From 9284bba615a5e18ce70ef210fa7ca5d47174d227 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 10 Nov 2025 06:41:40 +0000 Subject: [PATCH 042/189] Update Rust crate wasm-bindgen-futures to v0.4.55 (#371) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [wasm-bindgen-futures](https://wasm-bindgen.github.io/wasm-bindgen/) ([source](https://redirect.github.com/wasm-bindgen/wasm-bindgen/tree/HEAD/crates/futures)) | dependencies | patch | `0.4.54` -> `0.4.55` | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Gregor Zeitlinger --- Cargo.lock | 44 +++++++++++++++----------------------------- mise.toml | 2 +- 2 files changed, 16 insertions(+), 30 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index f02a6b2a..f271e69a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1004,9 +1004,9 @@ checksum = "4a5f13b858c8d314ee3e8f639011f7ccefe71f97f96e50151fb991f267928e2c" [[package]] name = "js-sys" -version = "0.3.81" +version = "0.3.82" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec48937a97411dcb524a265206ccd4c90bb711fca92b2792c407f268825b9305" +checksum = "b011eec8cc36da2aab2d5cff675ec18454fad408585853910a202391cf9f8e65" dependencies = [ "once_cell", "wasm-bindgen", @@ -2300,9 +2300,9 @@ dependencies = [ [[package]] name = "wasm-bindgen" -version = "0.2.104" +version = "0.2.105" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c1da10c01ae9f1ae40cbfac0bac3b1e724b320abfcf52229f80b547c0d250e2d" +checksum = "da95793dfc411fbbd93f5be7715b0578ec61fe87cb1a42b12eb625caa5c5ea60" dependencies = [ "cfg-if", "once_cell", @@ -2311,25 +2311,11 @@ dependencies = [ "wasm-bindgen-shared", ] -[[package]] -name = "wasm-bindgen-backend" -version = "0.2.104" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "671c9a5a66f49d8a47345ab942e2cb93c7d1d0339065d4f8139c486121b43b19" -dependencies = [ - "bumpalo", - "log", - "proc-macro2", - "quote", - "syn 2.0.104", - "wasm-bindgen-shared", -] - [[package]] name = "wasm-bindgen-futures" -version = "0.4.54" +version = "0.4.55" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7e038d41e478cc73bae0ff9b36c60cff1c98b8f38f8d7e8061e79ee63608ac5c" +checksum = "551f88106c6d5e7ccc7cd9a16f312dd3b5d36ea8b4954304657d5dfba115d4a0" dependencies = [ "cfg-if", "js-sys", @@ -2340,9 +2326,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro" -version = "0.2.104" +version = "0.2.105" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7ca60477e4c59f5f2986c50191cd972e3a50d8a95603bc9434501cf156a9a119" +checksum = "04264334509e04a7bf8690f2384ef5265f05143a4bff3889ab7a3269adab59c2" dependencies = [ "quote", "wasm-bindgen-macro-support", @@ -2350,31 +2336,31 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro-support" -version = "0.2.104" +version = "0.2.105" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9f07d2f20d4da7b26400c9f4a0511e6e0345b040694e8a75bd41d578fa4421d7" +checksum = "420bc339d9f322e562942d52e115d57e950d12d88983a14c79b86859ee6c7ebc" dependencies = [ + "bumpalo", "proc-macro2", "quote", "syn 2.0.104", - "wasm-bindgen-backend", "wasm-bindgen-shared", ] [[package]] name = "wasm-bindgen-shared" -version = "0.2.104" +version = "0.2.105" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bad67dc8b2a1a6e5448428adec4c3e84c43e561d8c9ee8a9e5aabeb193ec41d1" +checksum = "76f218a38c84bcb33c25ec7059b07847d465ce0e0a76b995e134a45adcb6af76" dependencies = [ "unicode-ident", ] [[package]] name = "web-sys" -version = "0.3.81" +version = "0.3.82" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9367c417a924a74cae129e6a2ae3b47fabb1f8995595ab474029da749a8be120" +checksum = "3a1f95c0d03a47f4ae1f7a64643a6bb97465d9b740f0fa8f90ea33915c99a9a1" dependencies = [ "js-sys", "wasm-bindgen", diff --git a/mise.toml b/mise.toml index 3eab11ce..e44f7b9e 100644 --- a/mise.toml +++ b/mise.toml @@ -68,7 +68,7 @@ run = "./scripts/publish-client.sh test" [tools] "cargo:cargo-nextest" = "0.9.103" -"cargo:wasm-bindgen-cli" = "0.2.103" +"cargo:wasm-bindgen-cli" = "0.2.105" "cargo:wasm-pack" = "0.13.1" rust = { version = "1.91.0", targets = "wasm32-unknown-unknown", components = "clippy,rustfmt" } From 5a46b2e9af741906a0a312a5c0269b64a1f47e8e Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 10 Nov 2025 21:05:08 +0000 Subject: [PATCH 043/189] Update dependency rust to v1.91.1 (#376) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Update | Change | |---|---|---| | [rust](https://redirect.github.com/rust-lang/rust) | patch | `1.91.0` -> `1.91.1` | --- ### Release Notes
rust-lang/rust (rust) ### [`v1.91.1`](https://redirect.github.com/rust-lang/rust/blob/HEAD/RELEASES.md#Version-1911-2025-11-10) [Compare Source](https://redirect.github.com/rust-lang/rust/compare/1.91.0...1.91.1) \=========================== - [Enable file locking support in illumos](https://redirect.github.com/rust-lang/rust/pull/148322). This fixes Cargo not locking the build directory on illumos. - [Fix `wasm_import_module` attribute cross-crate](https://redirect.github.com/rust-lang/rust/pull/148363). This fixes linker errors on WASM targets.
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- mise.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mise.toml b/mise.toml index e44f7b9e..91249173 100644 --- a/mise.toml +++ b/mise.toml @@ -70,5 +70,5 @@ run = "./scripts/publish-client.sh test" "cargo:cargo-nextest" = "0.9.103" "cargo:wasm-bindgen-cli" = "0.2.105" "cargo:wasm-pack" = "0.13.1" -rust = { version = "1.91.0", targets = "wasm32-unknown-unknown", components = "clippy,rustfmt" } +rust = { version = "1.91.1", targets = "wasm32-unknown-unknown", components = "clippy,rustfmt" } From 080230b92f534009cbbee706ff57726e1c68df0f Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 13 Nov 2025 13:59:55 +0000 Subject: [PATCH 044/189] Update jdx/mise-action action to v3.4.1 (#377) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [jdx/mise-action](https://redirect.github.com/jdx/mise-action) | action | patch | `v3.4.0` -> `v3.4.1` | --- ### Release Notes
jdx/mise-action (jdx/mise-action) ### [`v3.4.1`](https://redirect.github.com/jdx/mise-action/compare/v3.4.0...v3.4.1) [Compare Source](https://redirect.github.com/jdx/mise-action/compare/v3.4.0...v3.4.1)
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/bench.yml | 2 +- .github/workflows/check.yml | 2 +- .github/workflows/release.yml | 2 +- .github/workflows/test-release.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index ab4b8526..89b3da12 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -8,7 +8,7 @@ jobs: steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - - uses: jdx/mise-action@be3be2260bc02bc3fbf94c5e2fed8b7964baf074 # v3.4.0 + - uses: jdx/mise-action@9dc7d5dd454262207dea3ab5a06a3df6afc8ff26 # v3.4.1 with: version: v2025.11.3 sha256: 2b01d2063ac9fb6988ed5bfa087bebfba4ae6300b0739231bb534924acd31306 diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 36c5e62f..e21a5c40 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -8,7 +8,7 @@ jobs: steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - - uses: jdx/mise-action@be3be2260bc02bc3fbf94c5e2fed8b7964baf074 # v3.4.0 + - uses: jdx/mise-action@9dc7d5dd454262207dea3ab5a06a3df6afc8ff26 # v3.4.1 with: version: v2025.11.3 sha256: 2b01d2063ac9fb6988ed5bfa087bebfba4ae6300b0739231bb534924acd31306 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0ae78058..e63b1b82 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - - uses: jdx/mise-action@be3be2260bc02bc3fbf94c5e2fed8b7964baf074 # v3.4.0 + - uses: jdx/mise-action@9dc7d5dd454262207dea3ab5a06a3df6afc8ff26 # v3.4.1 with: version: v2025.11.3 sha256: 2b01d2063ac9fb6988ed5bfa087bebfba4ae6300b0739231bb534924acd31306 diff --git a/.github/workflows/test-release.yml b/.github/workflows/test-release.yml index 33c9a019..5fbf8a5a 100644 --- a/.github/workflows/test-release.yml +++ b/.github/workflows/test-release.yml @@ -8,7 +8,7 @@ jobs: steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - - uses: jdx/mise-action@be3be2260bc02bc3fbf94c5e2fed8b7964baf074 # v3.4.0 + - uses: jdx/mise-action@9dc7d5dd454262207dea3ab5a06a3df6afc8ff26 # v3.4.1 with: version: v2025.11.3 sha256: 2b01d2063ac9fb6988ed5bfa087bebfba4ae6300b0739231bb534924acd31306 From 29c12f447ee215514749334d3b758d528c73d0bc Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 17 Nov 2025 03:01:02 +0000 Subject: [PATCH 045/189] Update dependency mise to v2025.11.5 (#378) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Update | Change | |---|---|---| | [mise](https://redirect.github.com/jdx/mise) | patch | `v2025.11.3` -> `v2025.11.5` | --- ### Release Notes
jdx/mise (mise) ### [`v2025.11.5`](https://redirect.github.com/jdx/mise/releases/tag/v2025.11.5) [Compare Source](https://redirect.github.com/jdx/mise/compare/v2025.11.4...v2025.11.5) ##### 🚀 Features - **(http)** Add 'format' to http backend by [@​thejcannon](https://redirect.github.com/thejcannon) in [#​6957](https://redirect.github.com/jdx/mise/pull/6957) ##### 🐛 Bug Fixes - **(bootstrap)** wrong directory on first run by [@​vmeurisse](https://redirect.github.com/vmeurisse) in [#​6971](https://redirect.github.com/jdx/mise/pull/6971) - **(tasks)** fix nested colons with `mise task edit` by [@​jdx](https://redirect.github.com/jdx) in [#​6978](https://redirect.github.com/jdx/mise/pull/6978) - Use compatible env flags by [@​thejcannon](https://redirect.github.com/thejcannon) in [#​6964](https://redirect.github.com/jdx/mise/pull/6964) - Flush vfox download buffer by [@​blampe](https://redirect.github.com/blampe) in [#​6969](https://redirect.github.com/jdx/mise/pull/6969) ##### 📚 Documentation - `arch()` template is `x64` by [@​thejcannon](https://redirect.github.com/thejcannon) in [#​6967](https://redirect.github.com/jdx/mise/pull/6967) - update section headers in getting-started.md by [@​JunichiroKohari](https://redirect.github.com/JunichiroKohari) in [#​6980](https://redirect.github.com/jdx/mise/pull/6980) ##### New Contributors - [@​JunichiroKohari](https://redirect.github.com/JunichiroKohari) made their first contribution in [#​6980](https://redirect.github.com/jdx/mise/pull/6980) - [@​blampe](https://redirect.github.com/blampe) made their first contribution in [#​6969](https://redirect.github.com/jdx/mise/pull/6969) - [@​thejcannon](https://redirect.github.com/thejcannon) made their first contribution in [#​6964](https://redirect.github.com/jdx/mise/pull/6964) ### [`v2025.11.4`](https://redirect.github.com/jdx/mise/releases/tag/v2025.11.4) [Compare Source](https://redirect.github.com/jdx/mise/compare/v2025.11.3...v2025.11.4) ##### 📦 Registry - add xcsift by [@​alexey1312](https://redirect.github.com/alexey1312) in [#​6923](https://redirect.github.com/jdx/mise/pull/6923) - add tools: magika & xxh by [@​IceCodeNew](https://redirect.github.com/IceCodeNew) in [#​6909](https://redirect.github.com/jdx/mise/pull/6909) - add aliases to aqua-backend tools by [@​IceCodeNew](https://redirect.github.com/IceCodeNew) in [#​6910](https://redirect.github.com/jdx/mise/pull/6910) ##### 🚀 Features - **(gem-backend)** use gem command for backend operations by [@​andrewthauer](https://redirect.github.com/andrewthauer) in [#​6650](https://redirect.github.com/jdx/mise/pull/6650) - **(tasks)** add `mise task validate` command for task validation by [@​jdx](https://redirect.github.com/jdx) in [#​6958](https://redirect.github.com/jdx/mise/pull/6958) - Add `--skip-deps` flag to run specified tasks, skipping dependencies by [@​hverlin](https://redirect.github.com/hverlin) in [#​6894](https://redirect.github.com/jdx/mise/pull/6894) ##### 🐛 Bug Fixes - **(cli)** intercept --help flag to show task help instead of executing task by [@​jdx](https://redirect.github.com/jdx) in [#​6955](https://redirect.github.com/jdx/mise/pull/6955) - **(cli)** handle `mise help` without requiring tasks by [@​jdx](https://redirect.github.com/jdx) in [#​6961](https://redirect.github.com/jdx/mise/pull/6961) - **(pwsh)** remove \_\_MISE\_DIFF env var instead of \_\_MISE\_WATCH on deactivate by [@​IMXEren](https://redirect.github.com/IMXEren) in [#​6886](https://redirect.github.com/jdx/mise/pull/6886) - remove temporary files after install by [@​vmeurisse](https://redirect.github.com/vmeurisse) in [#​6948](https://redirect.github.com/jdx/mise/pull/6948) ##### 📚 Documentation - **(snapcraft)** update `summary` & `description` shown in snapcraft.io by [@​phanect](https://redirect.github.com/phanect) in [#​6926](https://redirect.github.com/jdx/mise/pull/6926) - Change package example in go.md by [@​nachtjasmin](https://redirect.github.com/nachtjasmin) in [#​6862](https://redirect.github.com/jdx/mise/pull/6862) - paranoid mode does not untrust global config by [@​iloveitaly](https://redirect.github.com/iloveitaly) in [#​6952](https://redirect.github.com/jdx/mise/pull/6952) ##### 📦️ Dependency Updates - lock file maintenance by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​6932](https://redirect.github.com/jdx/mise/pull/6932) ##### Chore - bump cargo deps by [@​jdx](https://redirect.github.com/jdx) in [#​6960](https://redirect.github.com/jdx/mise/pull/6960) ##### New Contributors - [@​iloveitaly](https://redirect.github.com/iloveitaly) made their first contribution in [#​6952](https://redirect.github.com/jdx/mise/pull/6952) - [@​nachtjasmin](https://redirect.github.com/nachtjasmin) made their first contribution in [#​6862](https://redirect.github.com/jdx/mise/pull/6862) - [@​IceCodeNew](https://redirect.github.com/IceCodeNew) made their first contribution in [#​6910](https://redirect.github.com/jdx/mise/pull/6910) - [@​alexey1312](https://redirect.github.com/alexey1312) made their first contribution in [#​6923](https://redirect.github.com/jdx/mise/pull/6923)
--- ### Configuration 📅 **Schedule**: Branch creation - "before 4am on monday" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/bench.yml | 4 ++-- .github/workflows/check.yml | 4 ++-- .github/workflows/release.yml | 4 ++-- .github/workflows/test-release.yml | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index 89b3da12..453001d3 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -10,7 +10,7 @@ jobs: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - uses: jdx/mise-action@9dc7d5dd454262207dea3ab5a06a3df6afc8ff26 # v3.4.1 with: - version: v2025.11.3 - sha256: 2b01d2063ac9fb6988ed5bfa087bebfba4ae6300b0739231bb534924acd31306 + version: v2025.11.5 + sha256: 5dc683fc1ff3b1d2da41b962af110186c8caa059ebfd65ae48a2969c9a13de58 - name: Random actions test run: mise run random-actions diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index e21a5c40..2bcebd83 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -10,7 +10,7 @@ jobs: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - uses: jdx/mise-action@9dc7d5dd454262207dea3ab5a06a3df6afc8ff26 # v3.4.1 with: - version: v2025.11.3 - sha256: 2b01d2063ac9fb6988ed5bfa087bebfba4ae6300b0739231bb534924acd31306 + version: v2025.11.5 + sha256: 5dc683fc1ff3b1d2da41b962af110186c8caa059ebfd65ae48a2969c9a13de58 - name: Check all run: mise run ci diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e63b1b82..c615e40b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,8 +14,8 @@ jobs: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - uses: jdx/mise-action@9dc7d5dd454262207dea3ab5a06a3df6afc8ff26 # v3.4.1 with: - version: v2025.11.3 - sha256: 2b01d2063ac9fb6988ed5bfa087bebfba4ae6300b0739231bb534924acd31306 + version: v2025.11.5 + sha256: 5dc683fc1ff3b1d2da41b962af110186c8caa059ebfd65ae48a2969c9a13de58 - name: Use Node.js ${{ env.node_version }} uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6 with: diff --git a/.github/workflows/test-release.yml b/.github/workflows/test-release.yml index 5fbf8a5a..8d6a2643 100644 --- a/.github/workflows/test-release.yml +++ b/.github/workflows/test-release.yml @@ -10,8 +10,8 @@ jobs: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - uses: jdx/mise-action@9dc7d5dd454262207dea3ab5a06a3df6afc8ff26 # v3.4.1 with: - version: v2025.11.3 - sha256: 2b01d2063ac9fb6988ed5bfa087bebfba4ae6300b0739231bb534924acd31306 + version: v2025.11.5 + sha256: 5dc683fc1ff3b1d2da41b962af110186c8caa059ebfd65ae48a2969c9a13de58 - name: Test server release run: mise run build-remote-server - name: Test client release From 800cc4ff27438b732ee23ef1b248bebd3f84a53c Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 18 Nov 2025 02:35:31 +0000 Subject: [PATCH 046/189] Update actions/checkout action to v5.0.1 (#379) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [actions/checkout](https://redirect.github.com/actions/checkout) | action | patch | `v5.0.0` -> `v5.0.1` | --- ### Release Notes
actions/checkout (actions/checkout) ### [`v5.0.1`](https://redirect.github.com/actions/checkout/compare/v5.0.0...v5.0.1) [Compare Source](https://redirect.github.com/actions/checkout/compare/v5.0.0...v5.0.1)
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/bench.yml | 2 +- .github/workflows/check.yml | 2 +- .github/workflows/release.yml | 2 +- .github/workflows/test-release.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index 453001d3..50a7a3c1 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1 - uses: jdx/mise-action@9dc7d5dd454262207dea3ab5a06a3df6afc8ff26 # v3.4.1 with: version: v2025.11.5 diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 2bcebd83..1675f7c2 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1 - uses: jdx/mise-action@9dc7d5dd454262207dea3ab5a06a3df6afc8ff26 # v3.4.1 with: version: v2025.11.5 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c615e40b..52711965 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,7 +11,7 @@ jobs: release: runs-on: ubuntu-latest steps: - - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1 - uses: jdx/mise-action@9dc7d5dd454262207dea3ab5a06a3df6afc8ff26 # v3.4.1 with: version: v2025.11.5 diff --git a/.github/workflows/test-release.yml b/.github/workflows/test-release.yml index 8d6a2643..bb96b6d3 100644 --- a/.github/workflows/test-release.yml +++ b/.github/workflows/test-release.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1 - uses: jdx/mise-action@9dc7d5dd454262207dea3ab5a06a3df6afc8ff26 # v3.4.1 with: version: v2025.11.5 From 6dd2ce30462951952005eb1ce8182c47101bb922 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 20 Nov 2025 17:01:49 +0000 Subject: [PATCH 047/189] Update actions/checkout action to v6 (#380) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [actions/checkout](https://redirect.github.com/actions/checkout) | action | major | `v5.0.1` -> `v6.0.0` | --- ### Release Notes
actions/checkout (actions/checkout) ### [`v6.0.0`](https://redirect.github.com/actions/checkout/compare/v5.0.1...v6.0.0) [Compare Source](https://redirect.github.com/actions/checkout/compare/v5.0.1...v6.0.0)
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/bench.yml | 2 +- .github/workflows/check.yml | 2 +- .github/workflows/release.yml | 2 +- .github/workflows/test-release.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index 50a7a3c1..6671da87 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1 + - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 - uses: jdx/mise-action@9dc7d5dd454262207dea3ab5a06a3df6afc8ff26 # v3.4.1 with: version: v2025.11.5 diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 1675f7c2..e3fec0f7 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1 + - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 - uses: jdx/mise-action@9dc7d5dd454262207dea3ab5a06a3df6afc8ff26 # v3.4.1 with: version: v2025.11.5 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 52711965..b8bc28d8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,7 +11,7 @@ jobs: release: runs-on: ubuntu-latest steps: - - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1 + - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 - uses: jdx/mise-action@9dc7d5dd454262207dea3ab5a06a3df6afc8ff26 # v3.4.1 with: version: v2025.11.5 diff --git a/.github/workflows/test-release.yml b/.github/workflows/test-release.yml index bb96b6d3..b9f53a52 100644 --- a/.github/workflows/test-release.yml +++ b/.github/workflows/test-release.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1 + - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 - uses: jdx/mise-action@9dc7d5dd454262207dea3ab5a06a3df6afc8ff26 # v3.4.1 with: version: v2025.11.5 From 173abe279852a8e12641d4bd4e9ec349aac39855 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 21 Nov 2025 14:36:26 +0000 Subject: [PATCH 048/189] Update jdx/mise-action action to v3.5.0 (#381) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [jdx/mise-action](https://redirect.github.com/jdx/mise-action) | action | minor | `v3.4.1` -> `v3.5.0` | --- ### Release Notes
jdx/mise-action (jdx/mise-action) ### [`v3.5.0`](https://redirect.github.com/jdx/mise-action/releases/tag/v3.5.0) [Compare Source](https://redirect.github.com/jdx/mise-action/compare/v3.4.1...v3.5.0) ##### What's Changed - chore(deps): update github/codeql-action digest to [`f94c9be`](https://redirect.github.com/jdx/mise-action/commit/f94c9be) by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​319](https://redirect.github.com/jdx/mise-action/pull/319) - chore(deps): update dependency [@​types/node](https://redirect.github.com/types/node) to v24.10.1 by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​320](https://redirect.github.com/jdx/mise-action/pull/320) - feat(action): moved save cache to post step by [@​aamkye](https://redirect.github.com/aamkye) in [#​321](https://redirect.github.com/jdx/mise-action/pull/321) - chore(deps): update actions/checkout digest by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​323](https://redirect.github.com/jdx/mise-action/pull/323) - chore: release v3.5.0 by [@​mise-en-dev](https://redirect.github.com/mise-en-dev) in [#​322](https://redirect.github.com/jdx/mise-action/pull/322) ##### New Contributors - [@​aamkye](https://redirect.github.com/aamkye) made their first contribution in [#​321](https://redirect.github.com/jdx/mise-action/pull/321) **Full Changelog**:
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/bench.yml | 2 +- .github/workflows/check.yml | 2 +- .github/workflows/release.yml | 2 +- .github/workflows/test-release.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index 6671da87..08f7a15a 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -8,7 +8,7 @@ jobs: steps: - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 - - uses: jdx/mise-action@9dc7d5dd454262207dea3ab5a06a3df6afc8ff26 # v3.4.1 + - uses: jdx/mise-action@d16887ba50704baed7de72bd1e82e04391e4457a # v3.5.0 with: version: v2025.11.5 sha256: 5dc683fc1ff3b1d2da41b962af110186c8caa059ebfd65ae48a2969c9a13de58 diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index e3fec0f7..bfd9ab19 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -8,7 +8,7 @@ jobs: steps: - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 - - uses: jdx/mise-action@9dc7d5dd454262207dea3ab5a06a3df6afc8ff26 # v3.4.1 + - uses: jdx/mise-action@d16887ba50704baed7de72bd1e82e04391e4457a # v3.5.0 with: version: v2025.11.5 sha256: 5dc683fc1ff3b1d2da41b962af110186c8caa059ebfd65ae48a2969c9a13de58 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b8bc28d8..bd08f7d0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 - - uses: jdx/mise-action@9dc7d5dd454262207dea3ab5a06a3df6afc8ff26 # v3.4.1 + - uses: jdx/mise-action@d16887ba50704baed7de72bd1e82e04391e4457a # v3.5.0 with: version: v2025.11.5 sha256: 5dc683fc1ff3b1d2da41b962af110186c8caa059ebfd65ae48a2969c9a13de58 diff --git a/.github/workflows/test-release.yml b/.github/workflows/test-release.yml index b9f53a52..456eb1ab 100644 --- a/.github/workflows/test-release.yml +++ b/.github/workflows/test-release.yml @@ -8,7 +8,7 @@ jobs: steps: - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 - - uses: jdx/mise-action@9dc7d5dd454262207dea3ab5a06a3df6afc8ff26 # v3.4.1 + - uses: jdx/mise-action@d16887ba50704baed7de72bd1e82e04391e4457a # v3.5.0 with: version: v2025.11.5 sha256: 5dc683fc1ff3b1d2da41b962af110186c8caa059ebfd65ae48a2969c9a13de58 From 9f114f35cfbcf1e0322f9e2c826850492238a4c4 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 24 Nov 2025 02:08:08 +0000 Subject: [PATCH 049/189] Update dependency mise to v2025.11.7 (#382) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Update | Change | |---|---|---| | [mise](https://redirect.github.com/jdx/mise) | patch | `v2025.11.5` -> `v2025.11.7` | --- ### Release Notes
jdx/mise (mise) ### [`v2025.11.7`](https://redirect.github.com/jdx/mise/releases/tag/v2025.11.7) [Compare Source](https://redirect.github.com/jdx/mise/compare/v2025.11.6...v2025.11.7) ##### 📦 Registry - added nelm by [@​tony-sol](https://redirect.github.com/tony-sol) in [#​7020](https://redirect.github.com/jdx/mise/pull/7020) ##### 🚀 Features - **(exec)** ensure MISE\_ENV is set in spawned shell when specified via -E flag by [@​ceelian](https://redirect.github.com/ceelian) in [#​7007](https://redirect.github.com/jdx/mise/pull/7007) ##### 🐛 Bug Fixes - **(fig)** resolve \_\_dirname error in ES module by [@​jdx](https://redirect.github.com/jdx) in [#​7021](https://redirect.github.com/jdx/mise/pull/7021) - **(go)** Don't allow auto mod=vendor mode by [@​mariduv](https://redirect.github.com/mariduv) in [#​7006](https://redirect.github.com/jdx/mise/pull/7006) - **(nushell)** test `use` not `source`, fix pipeline parse error by [@​jokeyrhyme](https://redirect.github.com/jokeyrhyme) in [#​7013](https://redirect.github.com/jdx/mise/pull/7013) - **(tasks)** make file paths relative to config location and templateable by [@​halms](https://redirect.github.com/halms) in [#​7005](https://redirect.github.com/jdx/mise/pull/7005) ##### Chore - **(deny)** add exclusion for number\_prefix by [@​jdx](https://redirect.github.com/jdx) in [e955ecb](https://redirect.github.com/jdx/mise/commit/e955ecbb733d61ef1d0b522a979a7d1998ec8061) ##### New Contributors - [@​mariduv](https://redirect.github.com/mariduv) made their first contribution in [#​7006](https://redirect.github.com/jdx/mise/pull/7006) - [@​ceelian](https://redirect.github.com/ceelian) made their first contribution in [#​7007](https://redirect.github.com/jdx/mise/pull/7007) ### [`v2025.11.6`](https://redirect.github.com/jdx/mise/releases/tag/v2025.11.6) [Compare Source](https://redirect.github.com/jdx/mise/compare/v2025.11.5...v2025.11.6) ##### 📦 Registry - add tbls by [@​artemklevtsov](https://redirect.github.com/artemklevtsov) in [#​6987](https://redirect.github.com/jdx/mise/pull/6987) - add kubeswitch tool and add test for ruff by [@​jylenhof](https://redirect.github.com/jylenhof) in [#​6990](https://redirect.github.com/jdx/mise/pull/6990) ##### 🐛 Bug Fixes - **(nushell)** add missing `| parse env | update-env` for deactivation operations by [@​jokeyrhyme](https://redirect.github.com/jokeyrhyme) in [#​6994](https://redirect.github.com/jdx/mise/pull/6994) - **(pwsh)** wrap the executable path with double quotes by [@​leosuncin](https://redirect.github.com/leosuncin) in [#​6993](https://redirect.github.com/jdx/mise/pull/6993) - in `activate bash` output, wrap mise executable path in single-quotes by [@​cspotcode](https://redirect.github.com/cspotcode) in [#​7002](https://redirect.github.com/jdx/mise/pull/7002) - On Windows, preserve/proxy the exit code of tools, to match behavior on Unix by [@​cspotcode](https://redirect.github.com/cspotcode) in [#​7001](https://redirect.github.com/jdx/mise/pull/7001) ##### 📚 Documentation - simplify apt instructions by [@​scop](https://redirect.github.com/scop) in [#​6986](https://redirect.github.com/jdx/mise/pull/6986) - update idiomatic version files enablement info by [@​scop](https://redirect.github.com/scop) in [#​6985](https://redirect.github.com/jdx/mise/pull/6985) - registry notability explanation by [@​jdx](https://redirect.github.com/jdx) in [8f9ab15](https://redirect.github.com/jdx/mise/commit/8f9ab15e18d8cf0983d08a1f14b04511c999d681) ##### 🧪 Testing - **(aqua)** remove biome test due to version incompatibility by [@​jdx](https://redirect.github.com/jdx) in [#​7000](https://redirect.github.com/jdx/mise/pull/7000) ##### 📦️ Dependency Updates - lock file maintenance by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​6997](https://redirect.github.com/jdx/mise/pull/6997) ##### New Contributors - [@​cspotcode](https://redirect.github.com/cspotcode) made their first contribution in [#​7001](https://redirect.github.com/jdx/mise/pull/7001) - [@​jokeyrhyme](https://redirect.github.com/jokeyrhyme) made their first contribution in [#​6994](https://redirect.github.com/jdx/mise/pull/6994) - [@​artemklevtsov](https://redirect.github.com/artemklevtsov) made their first contribution in [#​6987](https://redirect.github.com/jdx/mise/pull/6987) - [@​leosuncin](https://redirect.github.com/leosuncin) made their first contribution in [#​6993](https://redirect.github.com/jdx/mise/pull/6993)
--- ### Configuration 📅 **Schedule**: Branch creation - "before 4am on monday" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/bench.yml | 4 ++-- .github/workflows/check.yml | 4 ++-- .github/workflows/release.yml | 4 ++-- .github/workflows/test-release.yml | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index 08f7a15a..20cd2b2d 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -10,7 +10,7 @@ jobs: - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 - uses: jdx/mise-action@d16887ba50704baed7de72bd1e82e04391e4457a # v3.5.0 with: - version: v2025.11.5 - sha256: 5dc683fc1ff3b1d2da41b962af110186c8caa059ebfd65ae48a2969c9a13de58 + version: v2025.11.7 + sha256: b2fb7d4c8dad559ede4fb346fb12171298a8ec8648f7923730abcd92e9dda15c - name: Random actions test run: mise run random-actions diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index bfd9ab19..36dc6fce 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -10,7 +10,7 @@ jobs: - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 - uses: jdx/mise-action@d16887ba50704baed7de72bd1e82e04391e4457a # v3.5.0 with: - version: v2025.11.5 - sha256: 5dc683fc1ff3b1d2da41b962af110186c8caa059ebfd65ae48a2969c9a13de58 + version: v2025.11.7 + sha256: b2fb7d4c8dad559ede4fb346fb12171298a8ec8648f7923730abcd92e9dda15c - name: Check all run: mise run ci diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bd08f7d0..e1adafda 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,8 +14,8 @@ jobs: - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 - uses: jdx/mise-action@d16887ba50704baed7de72bd1e82e04391e4457a # v3.5.0 with: - version: v2025.11.5 - sha256: 5dc683fc1ff3b1d2da41b962af110186c8caa059ebfd65ae48a2969c9a13de58 + version: v2025.11.7 + sha256: b2fb7d4c8dad559ede4fb346fb12171298a8ec8648f7923730abcd92e9dda15c - name: Use Node.js ${{ env.node_version }} uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6 with: diff --git a/.github/workflows/test-release.yml b/.github/workflows/test-release.yml index 456eb1ab..0ba086ba 100644 --- a/.github/workflows/test-release.yml +++ b/.github/workflows/test-release.yml @@ -10,8 +10,8 @@ jobs: - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 - uses: jdx/mise-action@d16887ba50704baed7de72bd1e82e04391e4457a # v3.5.0 with: - version: v2025.11.5 - sha256: 5dc683fc1ff3b1d2da41b962af110186c8caa059ebfd65ae48a2969c9a13de58 + version: v2025.11.7 + sha256: b2fb7d4c8dad559ede4fb346fb12171298a8ec8648f7923730abcd92e9dda15c - name: Test server release run: mise run build-remote-server - name: Test client release From 9b1fcef5adb3b5ef6090a9b40333e31b924d9d14 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 24 Nov 2025 13:51:13 +0000 Subject: [PATCH 050/189] Update jdx/mise-action action to v3.5.1 (#383) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [jdx/mise-action](https://redirect.github.com/jdx/mise-action) | action | patch | `v3.5.0` -> `v3.5.1` | --- ### Release Notes
jdx/mise-action (jdx/mise-action) ### [`v3.5.1`](https://redirect.github.com/jdx/mise-action/releases/tag/v3.5.1) [Compare Source](https://redirect.github.com/jdx/mise-action/compare/v3.5.0...v3.5.1) #### What's Changed - chore(deps): lock file maintenance by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​328](https://redirect.github.com/jdx/mise-action/pull/328) - Revert "feat(action): moved save cache to post step" by [@​jdx](https://redirect.github.com/jdx) in [#​329](https://redirect.github.com/jdx/mise-action/pull/329) - chore: release v3.5.1 by [@​mise-en-dev](https://redirect.github.com/mise-en-dev) in [#​330](https://redirect.github.com/jdx/mise-action/pull/330) **Full Changelog**:
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/bench.yml | 2 +- .github/workflows/check.yml | 2 +- .github/workflows/release.yml | 2 +- .github/workflows/test-release.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index 20cd2b2d..c57ace3a 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -8,7 +8,7 @@ jobs: steps: - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 - - uses: jdx/mise-action@d16887ba50704baed7de72bd1e82e04391e4457a # v3.5.0 + - uses: jdx/mise-action@146a28175021df8ca24f8ee1828cc2a60f980bd5 # v3.5.1 with: version: v2025.11.7 sha256: b2fb7d4c8dad559ede4fb346fb12171298a8ec8648f7923730abcd92e9dda15c diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 36dc6fce..06f270c1 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -8,7 +8,7 @@ jobs: steps: - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 - - uses: jdx/mise-action@d16887ba50704baed7de72bd1e82e04391e4457a # v3.5.0 + - uses: jdx/mise-action@146a28175021df8ca24f8ee1828cc2a60f980bd5 # v3.5.1 with: version: v2025.11.7 sha256: b2fb7d4c8dad559ede4fb346fb12171298a8ec8648f7923730abcd92e9dda15c diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e1adafda..523cd99b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 - - uses: jdx/mise-action@d16887ba50704baed7de72bd1e82e04391e4457a # v3.5.0 + - uses: jdx/mise-action@146a28175021df8ca24f8ee1828cc2a60f980bd5 # v3.5.1 with: version: v2025.11.7 sha256: b2fb7d4c8dad559ede4fb346fb12171298a8ec8648f7923730abcd92e9dda15c diff --git a/.github/workflows/test-release.yml b/.github/workflows/test-release.yml index 0ba086ba..615af3db 100644 --- a/.github/workflows/test-release.yml +++ b/.github/workflows/test-release.yml @@ -8,7 +8,7 @@ jobs: steps: - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 - - uses: jdx/mise-action@d16887ba50704baed7de72bd1e82e04391e4457a # v3.5.0 + - uses: jdx/mise-action@146a28175021df8ca24f8ee1828cc2a60f980bd5 # v3.5.1 with: version: v2025.11.7 sha256: b2fb7d4c8dad559ede4fb346fb12171298a8ec8648f7923730abcd92e9dda15c From f70d3a07dda8d910aa72bf438cfaaece2540a935 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 25 Nov 2025 18:42:43 +0000 Subject: [PATCH 051/189] Update dependency webpack to v5.103.0 (#384) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Change | Age | Confidence | |---|---|---|---| | [webpack](https://redirect.github.com/webpack/webpack) | [`5.102.1` -> `5.103.0`](https://renovatebot.com/diffs/npm/webpack/5.102.1/5.103.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/webpack/5.103.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/webpack/5.102.1/5.103.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
webpack/webpack (webpack) ### [`v5.103.0`](https://redirect.github.com/webpack/webpack/releases/tag/v5.103.0) [Compare Source](https://redirect.github.com/webpack/webpack/compare/v5.102.1...v5.103.0) ##### Features - Added `DotenvPlugin` and top level `dotenv` option to enable this plugin - Added `WebpackManifestPlugin` - Added support the `ignoreList` option in devtool plugins - Allow to use custom javascript parse function - Added `import.meta.env` support for environment variables - Added support for `import.meta.dirname` and `import.meta.filename` - Added support `import.defer()` for statistical path - Handle import.meta.main - Added suport to setup named exports for JSON modules and disable usage named export for `import file from "./file.json" with { type: "json" }` - Added support `__dirname`/`__filename`/`import.meta.dirname`/`import.meta.filename` for universal target - \[CSS] Added the `exportType` option with `link` (by default), "text" and `css-style-sheet` values - \[CSS] Added support for `composes` properties ##### Fixes - The `dependOn` chunk must be loaded before the common chunk - Return to namespace import when the external request includes a specific export - No runtime extra runtime code for module libraries - Delay HMR accept dependencies to preserve import attributes - Properly handle external presets for universal target - Fixed incorrect identifier of import binding for module externals - Fixed when defer import and dynamic default export mixed - Reduce generated output when `globalThis` supported - Fixed loading async modules in defer import - Reexport module for default import when no used exports for systemjs library - Rename HarmonyExportDependencyParserPlugin exported id to CompatibilityPlugin tagged id - Handle `__dirname` and `__filename` for ES modules - Rename single nested `__webpack_export__` and `__webpack_require__` in already bundled code - \[Types] webpack function type - \[Types] NormalModule type - \[Types] Multi compiler configuration type - \[Types] Fixed regression in custom `hashDigest` type - \[CSS] No extra runtime for initial chunk - \[CSS] Fixed a lot of CSS modules bugs
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- client/js/package-lock.json | 80 ++++++++++++++++++------------------- client/js/package.json | 2 +- 2 files changed, 41 insertions(+), 41 deletions(-) diff --git a/client/js/package-lock.json b/client/js/package-lock.json index e01514ae..5d444aa1 100644 --- a/client/js/package-lock.json +++ b/client/js/package-lock.json @@ -85,12 +85,12 @@ "dev": true }, "@types/node": { - "version": "24.7.0", - "resolved": "https://registry.npmjs.org/@types/node/-/node-24.7.0.tgz", - "integrity": "sha512-IbKooQVqUBrlzWTi79E8Fw78l8k1RNtlDDNWsFZs7XonuQSJ8oNYfEeclhprUldXISRMLzBpILuKgPlIxm+/Yw==", + "version": "24.10.1", + "resolved": "https://registry.npmjs.org/@types/node/-/node-24.10.1.tgz", + "integrity": "sha512-GNWcUTRBgIRJD5zj+Tq0fKOJ5XZajIiBroOF0yvj2bSU1WvNdYS/dn9UxwsujGW4JX06dnHyjV2y9rRaybH0iQ==", "dev": true, "requires": { - "undici-types": "~7.14.0" + "undici-types": "~7.16.0" } }, "@webassemblyjs/ast": { @@ -312,22 +312,22 @@ } }, "baseline-browser-mapping": { - "version": "2.8.13", - "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.8.13.tgz", - "integrity": "sha512-7s16KR8io8nIBWQyCYhmFhd+ebIzb9VKTzki+wOJXHTxTnV6+mFGH3+Jwn1zoKaY9/H9T/0BcKCZnzXljPnpSQ==", + "version": "2.8.31", + "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.8.31.tgz", + "integrity": "sha512-a28v2eWrrRWPpJSzxc+mKwm0ZtVx/G8SepdQZDArnXYU/XS+IF6mp8aB/4E+hH1tyGCoDo3KlUCdlSxGDsRkAw==", "dev": true }, "browserslist": { - "version": "4.26.3", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.26.3.tgz", - "integrity": "sha512-lAUU+02RFBuCKQPj/P6NgjlbCnLBMp4UtgTx7vNHd3XSIJF87s9a5rA3aH2yw3GS9DqZAUbOtZdCCiZeVRqt0w==", + "version": "4.28.0", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.0.tgz", + "integrity": "sha512-tbydkR/CxfMwelN0vwdP/pLkDwyAASZ+VfWm4EOwlB6SWhx1sYnWLqo8N5j0rAzPfzfRaxt0mM/4wPU/Su84RQ==", "dev": true, "requires": { - "baseline-browser-mapping": "^2.8.9", - "caniuse-lite": "^1.0.30001746", - "electron-to-chromium": "^1.5.227", - "node-releases": "^2.0.21", - "update-browserslist-db": "^1.1.3" + "baseline-browser-mapping": "^2.8.25", + "caniuse-lite": "^1.0.30001754", + "electron-to-chromium": "^1.5.249", + "node-releases": "^2.0.27", + "update-browserslist-db": "^1.1.4" } }, "buffer-from": { @@ -337,9 +337,9 @@ "dev": true }, "caniuse-lite": { - "version": "1.0.30001748", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001748.tgz", - "integrity": "sha512-5P5UgAr0+aBmNiplks08JLw+AW/XG/SurlgZLgB1dDLfAw7EfRGxIwzPHxdSCGY/BTKDqIVyJL87cCN6s0ZR0w==", + "version": "1.0.30001757", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001757.tgz", + "integrity": "sha512-r0nnL/I28Zi/yjk1el6ilj27tKcdjLsNqAOZr0yVjWPrSQyHgKI2INaEWw21bAQSv2LXRt1XuCS/GomNpWOxsQ==", "dev": true }, "chrome-trace-event": { @@ -383,9 +383,9 @@ } }, "electron-to-chromium": { - "version": "1.5.232", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.232.tgz", - "integrity": "sha512-ENirSe7wf8WzyPCibqKUG1Cg43cPaxH4wRR7AJsX7MCABCHBIOFqvaYODSLKUuZdraxUTHRE/0A2Aq8BYKEHOg==", + "version": "1.5.259", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.259.tgz", + "integrity": "sha512-I+oLXgpEJzD6Cwuwt1gYjxsDmu/S/Kd41mmLA3O+/uH2pFRO/DvOjUyGozL8j3KeLV6WyZ7ssPwELMsXCcsJAQ==", "dev": true }, "enhanced-resolve": { @@ -597,9 +597,9 @@ "dev": true }, "loader-runner": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-4.3.0.tgz", - "integrity": "sha512-3R/1M+yS3j5ou80Me59j7F9IMs4PXs3VqRrm0TU3AbKPxlmpoY1TNscJV/oGJXo8qCatFGTfDbY6W6ipGOYXfg==", + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-4.3.1.tgz", + "integrity": "sha512-IWqP2SCPhyVFTBtRcgMHdzlf9ul25NwaFx4wCEH/KjAXuuHY4yNjvPXsBokp8jCB936PyWRaPKUNh8NvylLp2Q==", "dev": true }, "locate-path": { @@ -639,9 +639,9 @@ "dev": true }, "node-releases": { - "version": "2.0.23", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.23.tgz", - "integrity": "sha512-cCmFDMSm26S6tQSDpBCg/NR8NENrVPhAJSf+XbxBG4rPFaaonlEoE9wHQmun+cls499TQGSb7ZyPBRlzgKfpeg==", + "version": "2.0.27", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.27.tgz", + "integrity": "sha512-nmh3lCkYZ3grZvqcCH+fjmQ7X+H0OeZgP40OierEaAptX4XofMh5kwNbWh7lBduUzCcV/8kZ+NDLCwm2iorIlA==", "dev": true }, "p-limit": { @@ -840,9 +840,9 @@ "dev": true }, "terser": { - "version": "5.44.0", - "resolved": "https://registry.npmjs.org/terser/-/terser-5.44.0.tgz", - "integrity": "sha512-nIVck8DK+GM/0Frwd+nIhZ84pR/BX7rmXMfYwyg+Sri5oGVE99/E3KvXqpC2xHFxyqXyGHTKBSioxxplrO4I4w==", + "version": "5.44.1", + "resolved": "https://registry.npmjs.org/terser/-/terser-5.44.1.tgz", + "integrity": "sha512-t/R3R/n0MSwnnazuPpPNVO60LX0SKL45pyl9YlvxIdkH0Of7D5qM2EVe+yASRIlY5pZ73nclYJfNANGWPwFDZw==", "dev": true, "requires": { "@jridgewell/source-map": "^0.3.3", @@ -865,15 +865,15 @@ } }, "undici-types": { - "version": "7.14.0", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.14.0.tgz", - "integrity": "sha512-QQiYxHuyZ9gQUIrmPo3IA+hUl4KYk8uSA7cHrcKd/l3p1OTpZcM0Tbp9x7FAtXdAYhlasd60ncPpgu6ihG6TOA==", + "version": "7.16.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.16.0.tgz", + "integrity": "sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw==", "dev": true }, "update-browserslist-db": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.3.tgz", - "integrity": "sha512-UxhIZQ+QInVdunkDAaiazvvT/+fXL5Osr0JZlJulepYu6Jd7qJtDZjlur0emRlT71EN3ScPoE7gvsuIKKNavKw==", + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.4.tgz", + "integrity": "sha512-q0SPT4xyU84saUX+tomz1WLkxUbuaJnR1xWt17M7fJtEJigJeWUNGUqrauFXsHnqev9y9JTRGwk13tFBuKby4A==", "dev": true, "requires": { "escalade": "^3.2.0", @@ -891,9 +891,9 @@ } }, "webpack": { - "version": "5.102.1", - "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.102.1.tgz", - "integrity": "sha512-7h/weGm9d/ywQ6qzJ+Xy+r9n/3qgp/thalBbpOi5i223dPXKi04IBtqPN9nTd+jBc7QKfvDbaBnFipYp4sJAUQ==", + "version": "5.103.0", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.103.0.tgz", + "integrity": "sha512-HU1JOuV1OavsZ+mfigY0j8d1TgQgbZ6M+J75zDkpEAwYeXjWSqrGJtgnPblJjd/mAyTNQ7ygw0MiKOn6etz8yw==", "dev": true, "requires": { "@types/eslint-scope": "^3.7.7", @@ -913,7 +913,7 @@ "glob-to-regexp": "^0.4.1", "graceful-fs": "^4.2.11", "json-parse-even-better-errors": "^2.3.1", - "loader-runner": "^4.2.0", + "loader-runner": "^4.3.1", "mime-types": "^2.1.27", "neo-async": "^2.6.2", "schema-utils": "^4.3.3", diff --git a/client/js/package.json b/client/js/package.json index a4c7c278..8a0ac2cb 100644 --- a/client/js/package.json +++ b/client/js/package.json @@ -18,7 +18,7 @@ "build": "webpack" }, "devDependencies": { - "webpack": "5.102.1", + "webpack": "5.103.0", "webpack-cli": "6.0.1" }, "dependencies": { From f79c8c386288ff382ea3c52708d85f01da5a5c05 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 1 Dec 2025 01:05:34 +0000 Subject: [PATCH 052/189] Update dependency mise to v2025.11.11 (#385) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Update | Change | |---|---|---| | [mise](https://redirect.github.com/jdx/mise) | patch | `v2025.11.7` -> `v2025.11.11` | --- ### Release Notes
jdx/mise (mise) ### [`v2025.11.11`](https://redirect.github.com/jdx/mise/releases/tag/v2025.11.11) [Compare Source](https://redirect.github.com/jdx/mise/compare/v2025.11.10...v2025.11.11) ##### 🚀 Features - **(backend)** add filter\_bins option to github/gitlab backends by [@​risu729](https://redirect.github.com/risu729) in [#​7105](https://redirect.github.com/jdx/mise/pull/7105) - **(ci)** auto-close PRs from non-maintainers by [@​jdx](https://redirect.github.com/jdx) in [#​7108](https://redirect.github.com/jdx/mise/pull/7108) - **(conda)** add conda backend for installing packages from conda-forge by [@​jdx](https://redirect.github.com/jdx) in [#​7139](https://redirect.github.com/jdx/mise/pull/7139) - **(github)** add rename\_exe option and switch elm, opam, yt-dlp from ubi by [@​jdx](https://redirect.github.com/jdx) in [#​7140](https://redirect.github.com/jdx/mise/pull/7140) - **(install)** add --locked flag for strict lockfile mode by [@​jdx](https://redirect.github.com/jdx) in [#​7098](https://redirect.github.com/jdx/mise/pull/7098) - **(lock)** implement cross-platform lockfile generation by [@​jdx](https://redirect.github.com/jdx) in [#​7091](https://redirect.github.com/jdx/mise/pull/7091) - **(lockfile)** add options field for tool artifact identity by [@​jdx](https://redirect.github.com/jdx) in [#​7092](https://redirect.github.com/jdx/mise/pull/7092) - **(lockfile)** add env field and local lockfile support by [@​jdx](https://redirect.github.com/jdx) in [#​7099](https://redirect.github.com/jdx/mise/pull/7099) - **(lockfile)** add URL support for deno, go, and zig backends by [@​jdx](https://redirect.github.com/jdx) in [#​7112](https://redirect.github.com/jdx/mise/pull/7112) - **(lockfile)** add URL support for vfox backend by [@​jdx](https://redirect.github.com/jdx) in [#​7114](https://redirect.github.com/jdx/mise/pull/7114) - **(lockfile)** add multi-platform checksums without downloading tarballs by [@​jdx](https://redirect.github.com/jdx) in [#​7113](https://redirect.github.com/jdx/mise/pull/7113) ##### 🐛 Bug Fixes - **(backend)** allow platform-specific strip\_components by [@​risu729](https://redirect.github.com/risu729) in [#​7106](https://redirect.github.com/jdx/mise/pull/7106) - **(backend)** prefer path root for bin path if it contains an executable by [@​risu729](https://redirect.github.com/risu729) in [#​7151](https://redirect.github.com/jdx/mise/pull/7151) - **(bash)** avoid deactivate error on (no)unset PROMPT\_COMMAND by [@​scop](https://redirect.github.com/scop) in [#​7096](https://redirect.github.com/jdx/mise/pull/7096) - **(ci)** use updatedAt instead of createdAt for stale PR detection by [@​jdx](https://redirect.github.com/jdx) in [#​7109](https://redirect.github.com/jdx/mise/pull/7109) - **(config)** increase fetch\_remote\_versions\_timeout default to 20s by [@​jdx](https://redirect.github.com/jdx) in [#​7157](https://redirect.github.com/jdx/mise/pull/7157) - **(github)** search subdirectories for executables in discover\_bin\_paths by [@​jdx](https://redirect.github.com/jdx) in [#​7138](https://redirect.github.com/jdx/mise/pull/7138) - **(lockfile)** combine api\_url with asset\_pattern for GitHub release URLs by [@​jdx](https://redirect.github.com/jdx) in [#​7111](https://redirect.github.com/jdx/mise/pull/7111) ##### 🚜 Refactor - **(lock)** simplify lockfile to always use array format by [@​jdx](https://redirect.github.com/jdx) in [#​7093](https://redirect.github.com/jdx/mise/pull/7093) - **(lockfile)** use compact inline table format by [@​jdx](https://redirect.github.com/jdx) in [#​7141](https://redirect.github.com/jdx/mise/pull/7141) ##### 📚 Documentation - **(gitlab)** document rename\_exe option also for gitlab backend by [@​risu729](https://redirect.github.com/risu729) in [#​7149](https://redirect.github.com/jdx/mise/pull/7149) - **(lockfile)** update documentation for recent lockfile changes by [@​jdx](https://redirect.github.com/jdx) in [#​7107](https://redirect.github.com/jdx/mise/pull/7107) - **(node)** use config\_root in \_.path for pnpm example by [@​risu729](https://redirect.github.com/risu729) in [#​7146](https://redirect.github.com/jdx/mise/pull/7146) - **(registry)** add github/gitlab backends to the preferred backends list by [@​risu729](https://redirect.github.com/risu729) in [#​7148](https://redirect.github.com/jdx/mise/pull/7148) - **(registry)** add url mappings for all backends by [@​risu729](https://redirect.github.com/risu729) in [#​7147](https://redirect.github.com/jdx/mise/pull/7147) ##### 📦️ Dependency Updates - update docker/metadata-action digest to [`c299e40`](https://redirect.github.com/jdx/mise/commit/c299e40) by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​7101](https://redirect.github.com/jdx/mise/pull/7101) - update ghcr.io/jdx/mise:alpine docker digest to [`693c5f6`](https://redirect.github.com/jdx/mise/commit/693c5f6) by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​7102](https://redirect.github.com/jdx/mise/pull/7102) - update ghcr.io/jdx/mise:deb docker digest to [`9985cab`](https://redirect.github.com/jdx/mise/commit/9985cab) by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​7104](https://redirect.github.com/jdx/mise/pull/7104) - update ghcr.io/jdx/mise:copr docker digest to [`564d8e1`](https://redirect.github.com/jdx/mise/commit/564d8e1) by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​7103](https://redirect.github.com/jdx/mise/pull/7103) - update rust crate ubi to 0.8.4 by [@​risu729](https://redirect.github.com/risu729) in [#​7154](https://redirect.github.com/jdx/mise/pull/7154) ##### 📦 Registry - add aqua backend as primary for e1s by [@​jdx](https://redirect.github.com/jdx) in [#​7115](https://redirect.github.com/jdx/mise/pull/7115) - add gem backend for bashly by [@​jdx](https://redirect.github.com/jdx) in [6af6607](https://redirect.github.com/jdx/mise/commit/6af6607393a198feb1078e3ec3bc06146e82a23d) - switch 1password from asdf to vfox backend by [@​jdx](https://redirect.github.com/jdx) in [#​7116](https://redirect.github.com/jdx/mise/pull/7116) - add vfox backend for bfs by [@​jdx](https://redirect.github.com/jdx) in [#​7126](https://redirect.github.com/jdx/mise/pull/7126) - add github backend for btrace by [@​jdx](https://redirect.github.com/jdx) in [#​7129](https://redirect.github.com/jdx/mise/pull/7129) - add github backend for cf by [@​jdx](https://redirect.github.com/jdx) in [#​7131](https://redirect.github.com/jdx/mise/pull/7131) - add vfox backend for bpkg by [@​jdx](https://redirect.github.com/jdx) in [#​7130](https://redirect.github.com/jdx/mise/pull/7130) - switch apollo-ios from asdf to github backend by [@​jdx](https://redirect.github.com/jdx) in [#​7118](https://redirect.github.com/jdx/mise/pull/7118) - add vfox backend for chromedriver by [@​jdx](https://redirect.github.com/jdx) in [#​7134](https://redirect.github.com/jdx/mise/pull/7134) - switch superhtml, vespa-cli, xcsift from ubi to github backend by [@​jdx](https://redirect.github.com/jdx) in [#​7137](https://redirect.github.com/jdx/mise/pull/7137) - add vfox backend for clickhouse by [@​jdx](https://redirect.github.com/jdx) in [#​7136](https://redirect.github.com/jdx/mise/pull/7136) - switch chicken to vfox plugin by [@​jdx](https://redirect.github.com/jdx) in [#​7135](https://redirect.github.com/jdx/mise/pull/7135) - switch chezscheme from asdf to vfox backend by [@​jdx](https://redirect.github.com/jdx) in [#​7132](https://redirect.github.com/jdx/mise/pull/7132) - add vfox backend for carthage by [@​jdx](https://redirect.github.com/jdx) in [#​7133](https://redirect.github.com/jdx/mise/pull/7133) - switch azure-functions-core-tools from asdf to vfox backend by [@​jdx](https://redirect.github.com/jdx) in [#​7128](https://redirect.github.com/jdx/mise/pull/7128) - switch aapt2 to vfox backend by [@​jdx](https://redirect.github.com/jdx) in [#​7117](https://redirect.github.com/jdx/mise/pull/7117) - switch ant to vfox backend by [@​jdx](https://redirect.github.com/jdx) in [#​7119](https://redirect.github.com/jdx/mise/pull/7119) - switch asciidoctorj from asdf to vfox backend by [@​jdx](https://redirect.github.com/jdx) in [#​7121](https://redirect.github.com/jdx/mise/pull/7121) - switch awscli-local to pipx backend by [@​jdx](https://redirect.github.com/jdx) in [#​7120](https://redirect.github.com/jdx/mise/pull/7120) - add omnictl by [@​risu729](https://redirect.github.com/risu729) in [#​7145](https://redirect.github.com/jdx/mise/pull/7145) - remove pnpm asdf plugin from fallback by [@​risu729](https://redirect.github.com/risu729) in [#​7143](https://redirect.github.com/jdx/mise/pull/7143) - switch tanzu to github backend by [@​jdx](https://redirect.github.com/jdx) in [#​7124](https://redirect.github.com/jdx/mise/pull/7124) - switch android-sdk to vfox plugin by [@​jdx](https://redirect.github.com/jdx) in [#​7127](https://redirect.github.com/jdx/mise/pull/7127) - add vfox backend for ag (The Silver Searcher) by [@​jdx](https://redirect.github.com/jdx) in [#​7122](https://redirect.github.com/jdx/mise/pull/7122) - add gem backend for bashly by [@​jdx](https://redirect.github.com/jdx) in [#​7125](https://redirect.github.com/jdx/mise/pull/7125) ##### Chore - **(registry)** ignore deleted tools in test-tool workflow by [@​risu729](https://redirect.github.com/risu729) in [#​7081](https://redirect.github.com/jdx/mise/pull/7081) - **(release)** show registry section last in changelog by [@​jdx](https://redirect.github.com/jdx) in [#​7156](https://redirect.github.com/jdx/mise/pull/7156) - update mise.lock with checksums by [@​jdx](https://redirect.github.com/jdx) in [71e9123](https://redirect.github.com/jdx/mise/commit/71e9123efac62924b5804e1f56e61400adf22470) - disable cancel-in-progress for test workflow on main branch by [@​risu729](https://redirect.github.com/risu729) in [#​7152](https://redirect.github.com/jdx/mise/pull/7152) ### [`v2025.11.10`](https://redirect.github.com/jdx/mise/releases/tag/v2025.11.10) [Compare Source](https://redirect.github.com/jdx/mise/compare/v2025.11.9...v2025.11.10) ##### 📦 Registry - enable symlink\_bins for aws-sam by [@​risu729](https://redirect.github.com/risu729) in [#​7082](https://redirect.github.com/jdx/mise/pull/7082) - use cargo backend for tokei to support latest version by [@​risu729](https://redirect.github.com/risu729) in [#​7086](https://redirect.github.com/jdx/mise/pull/7086) - add SonarSource/sonar-scanner-cli by [@​kapitoshka438](https://redirect.github.com/kapitoshka438) in [#​7087](https://redirect.github.com/jdx/mise/pull/7087) ##### 🐛 Bug Fixes - **(docs)** link gitlab backended tools in registry by [@​risu729](https://redirect.github.com/risu729) in [#​7078](https://redirect.github.com/jdx/mise/pull/7078) ##### 🚜 Refactor - **(hook-env)** derive config\_subdirs from config filenames by [@​risu729](https://redirect.github.com/risu729) in [#​7080](https://redirect.github.com/jdx/mise/pull/7080) ##### New Contributors - [@​kapitoshka438](https://redirect.github.com/kapitoshka438) made their first contribution in [#​7087](https://redirect.github.com/jdx/mise/pull/7087) ### [`v2025.11.9`](https://redirect.github.com/jdx/mise/releases/tag/v2025.11.9) [Compare Source](https://redirect.github.com/jdx/mise/compare/v2025.11.8...v2025.11.9) ##### 📦 Registry - add charmbracelet/crush by [@​ev-the-dev](https://redirect.github.com/ev-the-dev) in [#​7075](https://redirect.github.com/jdx/mise/pull/7075) ##### 🚀 Features - **(aqua)** add symlink\_bins option to filter exposed binaries by [@​jdx](https://redirect.github.com/jdx) in [#​7076](https://redirect.github.com/jdx/mise/pull/7076) ##### 🐛 Bug Fixes - **(aqua)** skip whitespace before pipe token in template parser by [@​jdx](https://redirect.github.com/jdx) in [#​7069](https://redirect.github.com/jdx/mise/pull/7069) - **(docs)** link github backends to github repo URLs by [@​SKalt](https://redirect.github.com/SKalt) in [#​7071](https://redirect.github.com/jdx/mise/pull/7071) ##### 📚 Documentation - update node examples from 22 to 24 by [@​jdx](https://redirect.github.com/jdx) in [#​7074](https://redirect.github.com/jdx/mise/pull/7074) ##### ⚡ Performance - **(hook-env)** add fast-path to skip initialization when nothing changed by [@​jdx](https://redirect.github.com/jdx) in [#​7073](https://redirect.github.com/jdx/mise/pull/7073) ##### New Contributors - [@​ev-the-dev](https://redirect.github.com/ev-the-dev) made their first contribution in [#​7075](https://redirect.github.com/jdx/mise/pull/7075) - [@​SKalt](https://redirect.github.com/SKalt) made their first contribution in [#​7071](https://redirect.github.com/jdx/mise/pull/7071) ### [`v2025.11.8`](https://redirect.github.com/jdx/mise/releases/tag/v2025.11.8) [Compare Source](https://redirect.github.com/jdx/mise/compare/v2025.11.7...v2025.11.8) ##### 📦 Registry - add blender by [@​lucasew](https://redirect.github.com/lucasew) in [#​7014](https://redirect.github.com/jdx/mise/pull/7014) - add vespa-cli by [@​buinauskas](https://redirect.github.com/buinauskas) in [#​7037](https://redirect.github.com/jdx/mise/pull/7037) - fix vespa-cli order by [@​buinauskas](https://redirect.github.com/buinauskas) in [#​7038](https://redirect.github.com/jdx/mise/pull/7038) - add scooter by [@​TyceHerrman](https://redirect.github.com/TyceHerrman) in [#​7039](https://redirect.github.com/jdx/mise/pull/7039) - Prefer github backend for allure by [@​TobiX](https://redirect.github.com/TobiX) in [#​7049](https://redirect.github.com/jdx/mise/pull/7049) ##### 🚀 Features - **(plugins)** Install a plugin from a zip file over HTTPS by [@​KaanYT](https://redirect.github.com/KaanYT) in [#​6992](https://redirect.github.com/jdx/mise/pull/6992) - **(registry)** add tool options support for http backend by [@​jdx](https://redirect.github.com/jdx) in [#​7061](https://redirect.github.com/jdx/mise/pull/7061) ##### 🐛 Bug Fixes - **(core)** trim `core:` prefix in unalias\_backend by [@​kou029w](https://redirect.github.com/kou029w) in [#​7040](https://redirect.github.com/jdx/mise/pull/7040) - **(exec)** make `mise x tool@latest` auto-install actual latest version by [@​jdx](https://redirect.github.com/jdx) in [#​7064](https://redirect.github.com/jdx/mise/pull/7064) - **(go)** use -mod=readonly for go install by [@​joonas](https://redirect.github.com/joonas) in [#​7052](https://redirect.github.com/jdx/mise/pull/7052) - **(npm)** handle v-prefixed versions correctly by [@​jdx](https://redirect.github.com/jdx) in [#​7062](https://redirect.github.com/jdx/mise/pull/7062) - **(tasks)** add missing task fields to JSON output by [@​roele](https://redirect.github.com/roele) in [#​7044](https://redirect.github.com/jdx/mise/pull/7044) - semver in aqua by [@​lucasew](https://redirect.github.com/lucasew) in [#​7018](https://redirect.github.com/jdx/mise/pull/7018) - use the musl version if installing in Android (Termux) by [@​lucasew](https://redirect.github.com/lucasew) in [#​7027](https://redirect.github.com/jdx/mise/pull/7027) - empty enable\_tools crash by [@​moshen](https://redirect.github.com/moshen) in [#​7035](https://redirect.github.com/jdx/mise/pull/7035) ##### 📚 Documentation - add MISE and USAGE syntax hl queries to neovim cookbook by [@​okuuva](https://redirect.github.com/okuuva) in [#​7047](https://redirect.github.com/jdx/mise/pull/7047) - use local assets for screenshots by [@​okuuva](https://redirect.github.com/okuuva) in [#​7056](https://redirect.github.com/jdx/mise/pull/7056) - remove GitHub issues link from roadmap by [@​jdx](https://redirect.github.com/jdx) in [6897286](https://redirect.github.com/jdx/mise/commit/689728642b386e197a549ea8b5dd591c3b950b42) ##### 📦️ Dependency Updates - update docker/metadata-action digest to [`318604b`](https://redirect.github.com/jdx/mise/commit/318604b) by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​7033](https://redirect.github.com/jdx/mise/pull/7033) - update actions/checkout digest to [`34e1148`](https://redirect.github.com/jdx/mise/commit/34e1148) by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​7032](https://redirect.github.com/jdx/mise/pull/7032) - lock file maintenance by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​7048](https://redirect.github.com/jdx/mise/pull/7048) ##### Chore - upgrade actionlint to 1.7.9 and fix lint issues by [@​jdx](https://redirect.github.com/jdx) in [#​7065](https://redirect.github.com/jdx/mise/pull/7065) ##### New Contributors - [@​joonas](https://redirect.github.com/joonas) made their first contribution in [#​7052](https://redirect.github.com/jdx/mise/pull/7052) - [@​KaanYT](https://redirect.github.com/KaanYT) made their first contribution in [#​6992](https://redirect.github.com/jdx/mise/pull/6992) - [@​kou029w](https://redirect.github.com/kou029w) made their first contribution in [#​7040](https://redirect.github.com/jdx/mise/pull/7040) - [@​moshen](https://redirect.github.com/moshen) made their first contribution in [#​7035](https://redirect.github.com/jdx/mise/pull/7035) - [@​buinauskas](https://redirect.github.com/buinauskas) made their first contribution in [#​7038](https://redirect.github.com/jdx/mise/pull/7038) - [@​lucasew](https://redirect.github.com/lucasew) made their first contribution in [#​7014](https://redirect.github.com/jdx/mise/pull/7014)
--- ### Configuration 📅 **Schedule**: Branch creation - "before 4am on monday" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/bench.yml | 4 ++-- .github/workflows/check.yml | 4 ++-- .github/workflows/release.yml | 4 ++-- .github/workflows/test-release.yml | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index c57ace3a..260d4902 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -10,7 +10,7 @@ jobs: - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 - uses: jdx/mise-action@146a28175021df8ca24f8ee1828cc2a60f980bd5 # v3.5.1 with: - version: v2025.11.7 - sha256: b2fb7d4c8dad559ede4fb346fb12171298a8ec8648f7923730abcd92e9dda15c + version: v2025.11.11 + sha256: 707b686ef2ea040ee98138287ac415039d8e8c7d6783c3d139eda8209497fea2 - name: Random actions test run: mise run random-actions diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 06f270c1..c799de4a 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -10,7 +10,7 @@ jobs: - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 - uses: jdx/mise-action@146a28175021df8ca24f8ee1828cc2a60f980bd5 # v3.5.1 with: - version: v2025.11.7 - sha256: b2fb7d4c8dad559ede4fb346fb12171298a8ec8648f7923730abcd92e9dda15c + version: v2025.11.11 + sha256: 707b686ef2ea040ee98138287ac415039d8e8c7d6783c3d139eda8209497fea2 - name: Check all run: mise run ci diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 523cd99b..053e5873 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,8 +14,8 @@ jobs: - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 - uses: jdx/mise-action@146a28175021df8ca24f8ee1828cc2a60f980bd5 # v3.5.1 with: - version: v2025.11.7 - sha256: b2fb7d4c8dad559ede4fb346fb12171298a8ec8648f7923730abcd92e9dda15c + version: v2025.11.11 + sha256: 707b686ef2ea040ee98138287ac415039d8e8c7d6783c3d139eda8209497fea2 - name: Use Node.js ${{ env.node_version }} uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6 with: diff --git a/.github/workflows/test-release.yml b/.github/workflows/test-release.yml index 615af3db..05d14a42 100644 --- a/.github/workflows/test-release.yml +++ b/.github/workflows/test-release.yml @@ -10,8 +10,8 @@ jobs: - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 - uses: jdx/mise-action@146a28175021df8ca24f8ee1828cc2a60f980bd5 # v3.5.1 with: - version: v2025.11.7 - sha256: b2fb7d4c8dad559ede4fb346fb12171298a8ec8648f7923730abcd92e9dda15c + version: v2025.11.11 + sha256: 707b686ef2ea040ee98138287ac415039d8e8c7d6783c3d139eda8209497fea2 - name: Test server release run: mise run build-remote-server - name: Test client release From d507e9f3f633d13d1ceb92bffec3c54275d45f3e Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 2 Dec 2025 18:53:14 +0000 Subject: [PATCH 053/189] Update actions/checkout action to v6.0.1 (#386) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [actions/checkout](https://redirect.github.com/actions/checkout) | action | patch | `v6.0.0` -> `v6.0.1` | --- ### Release Notes
actions/checkout (actions/checkout) ### [`v6.0.1`](https://redirect.github.com/actions/checkout/compare/v6.0.0...v6.0.1) [Compare Source](https://redirect.github.com/actions/checkout/compare/v6.0.0...v6.0.1)
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/bench.yml | 2 +- .github/workflows/check.yml | 2 +- .github/workflows/release.yml | 2 +- .github/workflows/test-release.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index 260d4902..7a87450e 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 + - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - uses: jdx/mise-action@146a28175021df8ca24f8ee1828cc2a60f980bd5 # v3.5.1 with: version: v2025.11.11 diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index c799de4a..4140eb86 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 + - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - uses: jdx/mise-action@146a28175021df8ca24f8ee1828cc2a60f980bd5 # v3.5.1 with: version: v2025.11.11 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 053e5873..6baba688 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,7 +11,7 @@ jobs: release: runs-on: ubuntu-latest steps: - - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 + - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - uses: jdx/mise-action@146a28175021df8ca24f8ee1828cc2a60f980bd5 # v3.5.1 with: version: v2025.11.11 diff --git a/.github/workflows/test-release.yml b/.github/workflows/test-release.yml index 05d14a42..2dd0c0e1 100644 --- a/.github/workflows/test-release.yml +++ b/.github/workflows/test-release.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 + - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - uses: jdx/mise-action@146a28175021df8ca24f8ee1828cc2a60f980bd5 # v3.5.1 with: version: v2025.11.11 From 81f80af9db4d26302854688e9e3781e5eecedce6 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 3 Dec 2025 06:10:18 +0000 Subject: [PATCH 054/189] Update actions/setup-node digest to 395ad32 (#387) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [actions/setup-node](https://redirect.github.com/actions/setup-node) | action | digest | `2028fbc` -> `395ad32` | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6baba688..e7c5c369 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,7 +17,7 @@ jobs: version: v2025.11.11 sha256: 707b686ef2ea040ee98138287ac415039d8e8c7d6783c3d139eda8209497fea2 - name: Use Node.js ${{ env.node_version }} - uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6 + uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6 with: node-version: ${{ env.node_version }} # setting a registry enables the NODE_AUTH_TOKEN env variable where we can set an npm token. REQUIRED From 547352ee895ba0fbc1aed471e69167fbe17ddb69 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 8 Dec 2025 00:57:39 +0000 Subject: [PATCH 055/189] Update dependency mise to v2025.12.0 (#388) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Update | Change | |---|---|---| | [mise](https://redirect.github.com/jdx/mise) | minor | `v2025.11.11` -> `v2025.12.0` | --- ### Release Notes
jdx/mise (mise) ### [`v2025.12.0`](https://redirect.github.com/jdx/mise/releases/tag/v2025.12.0) [Compare Source](https://redirect.github.com/jdx/mise/compare/v2025.11.11...v2025.12.0) ##### 🚀 Features - **(config)** add support for netrc by [@​RobotSupervisor](https://redirect.github.com/RobotSupervisor) in [#​7164](https://redirect.github.com/jdx/mise/pull/7164) - **(lock)** add resolve\_lock\_info to core backends for checksum fetching by [@​jdx](https://redirect.github.com/jdx) in [#​7180](https://redirect.github.com/jdx/mise/pull/7180) - **(ruby)** Install ruby from a zip file over HTTPS by [@​KaanYT](https://redirect.github.com/KaanYT) in [#​7167](https://redirect.github.com/jdx/mise/pull/7167) - **(tasks)** add `usage` args to Tera context in run scripts by [@​iamkroot](https://redirect.github.com/iamkroot) in [#​7041](https://redirect.github.com/jdx/mise/pull/7041) ##### 🐛 Bug Fixes - **(lock)** validate platform qualifiers when reading from lockfile by [@​jdx](https://redirect.github.com/jdx) in [#​7181](https://redirect.github.com/jdx/mise/pull/7181) - **(task)** retry shebang scripts on ETXTBUSY by [@​iamkroot](https://redirect.github.com/iamkroot) in [#​7162](https://redirect.github.com/jdx/mise/pull/7162) - **(ui)** remove duplicate 'mise' prefix in verbose footer output by [@​jdx](https://redirect.github.com/jdx) in [#​7174](https://redirect.github.com/jdx/mise/pull/7174) ##### 📦️ Dependency Updates - bump usage-lib to 2.9.0 by [@​jdx](https://redirect.github.com/jdx) in [#​7177](https://redirect.github.com/jdx/mise/pull/7177) ##### 📦 Registry - remove duplicated ubi and github backends from gping by [@​risu729](https://redirect.github.com/risu729) in [#​7144](https://redirect.github.com/jdx/mise/pull/7144) - disable bashly test (not working in CI) by [@​jdx](https://redirect.github.com/jdx) in [#​7173](https://redirect.github.com/jdx/mise/pull/7173) - disable cfn-lint test (failing in CI) by [@​jdx](https://redirect.github.com/jdx) in [#​7176](https://redirect.github.com/jdx/mise/pull/7176) ##### Chore - add fd to mise.toml by [@​blampe](https://redirect.github.com/blampe) in [#​7178](https://redirect.github.com/jdx/mise/pull/7178) ##### New Contributors - [@​RobotSupervisor](https://redirect.github.com/RobotSupervisor) made their first contribution in [#​7164](https://redirect.github.com/jdx/mise/pull/7164)
--- ### Configuration 📅 **Schedule**: Branch creation - "before 4am on monday" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/bench.yml | 4 ++-- .github/workflows/check.yml | 4 ++-- .github/workflows/release.yml | 4 ++-- .github/workflows/test-release.yml | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index 7a87450e..9c53aea9 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -10,7 +10,7 @@ jobs: - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - uses: jdx/mise-action@146a28175021df8ca24f8ee1828cc2a60f980bd5 # v3.5.1 with: - version: v2025.11.11 - sha256: 707b686ef2ea040ee98138287ac415039d8e8c7d6783c3d139eda8209497fea2 + version: v2025.12.0 + sha256: 5b7b9992950b65569b4f6f1c78b05abceea2506f15b750a4b9781f33c6cc1ae4 - name: Random actions test run: mise run random-actions diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 4140eb86..1d953636 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -10,7 +10,7 @@ jobs: - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - uses: jdx/mise-action@146a28175021df8ca24f8ee1828cc2a60f980bd5 # v3.5.1 with: - version: v2025.11.11 - sha256: 707b686ef2ea040ee98138287ac415039d8e8c7d6783c3d139eda8209497fea2 + version: v2025.12.0 + sha256: 5b7b9992950b65569b4f6f1c78b05abceea2506f15b750a4b9781f33c6cc1ae4 - name: Check all run: mise run ci diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e7c5c369..c2d88986 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,8 +14,8 @@ jobs: - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - uses: jdx/mise-action@146a28175021df8ca24f8ee1828cc2a60f980bd5 # v3.5.1 with: - version: v2025.11.11 - sha256: 707b686ef2ea040ee98138287ac415039d8e8c7d6783c3d139eda8209497fea2 + version: v2025.12.0 + sha256: 5b7b9992950b65569b4f6f1c78b05abceea2506f15b750a4b9781f33c6cc1ae4 - name: Use Node.js ${{ env.node_version }} uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6 with: diff --git a/.github/workflows/test-release.yml b/.github/workflows/test-release.yml index 2dd0c0e1..cc12b827 100644 --- a/.github/workflows/test-release.yml +++ b/.github/workflows/test-release.yml @@ -10,8 +10,8 @@ jobs: - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - uses: jdx/mise-action@146a28175021df8ca24f8ee1828cc2a60f980bd5 # v3.5.1 with: - version: v2025.11.11 - sha256: 707b686ef2ea040ee98138287ac415039d8e8c7d6783c3d139eda8209497fea2 + version: v2025.12.0 + sha256: 5b7b9992950b65569b4f6f1c78b05abceea2506f15b750a4b9781f33c6cc1ae4 - name: Test server release run: mise run build-remote-server - name: Test client release From c800a0da91dea98b987d9b7d019bdf00d98573a5 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 11 Dec 2025 21:09:56 +0000 Subject: [PATCH 056/189] Update dependency rust to v1.92.0 (#389) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Update | Change | |---|---|---| | [rust](https://redirect.github.com/rust-lang/rust) | minor | `1.91.1` -> `1.92.0` | --- ### Release Notes
rust-lang/rust (rust) ### [`v1.92.0`](https://redirect.github.com/rust-lang/rust/blob/HEAD/RELEASES.md#Version-1920-2025-12-11) [Compare Source](https://redirect.github.com/rust-lang/rust/compare/1.91.1...1.92.0) \========================== ## Language - [Document `MaybeUninit` representation and validity](https://redirect.github.com/rust-lang/rust/pull/140463) - [Allow `&raw [mut | const]` for union field in safe code](https://redirect.github.com/rust-lang/rust/pull/141469) - [Prefer item bounds of associated types over where-bounds for auto-traits and `Sized`](https://redirect.github.com/rust-lang/rust/pull/144064) - [Do not materialize `X` in `[X; 0]` when `X` is unsizing a const](https://redirect.github.com/rust-lang/rust/pull/145277) - [Support combining `#[track_caller]` and `#[no_mangle]` (requires every declaration specifying `#[track_caller]` as well)](https://redirect.github.com/rust-lang/rust/pull/145724) - [Make never type lints `never_type_fallback_flowing_into_unsafe` and `dependency_on_unit_never_type_fallback` deny-by-default](https://redirect.github.com/rust-lang/rust/pull/146167) - [Allow specifying multiple bounds for same associated item, except in trait objects](https://redirect.github.com/rust-lang/rust/pull/146593) - [Slightly strengthen higher-ranked region handling in coherence](https://redirect.github.com/rust-lang/rust/pull/146725) - [The `unused_must_use` lint no longer warns on `Result<(), Uninhabited>` (for instance, `Result<(), !>`), or `ControlFlow`](https://redirect.github.com/rust-lang/rust/pull/147382). This avoids having to check for an error that can never happen. ## Compiler - [Make `mips64el-unknown-linux-muslabi64` link dynamically](https://redirect.github.com/rust-lang/rust/pull/146858) - [Remove current code for embedding command-line args in PDB](https://redirect.github.com/rust-lang/rust/pull/147022) Command-line information is typically not needed by debugging tools, and the removed code was causing problems for incremental builds even on targets that don't use PDB debuginfo. ## Libraries - [Specialize `Iterator::eq{_by}` for `TrustedLen` iterators](https://redirect.github.com/rust-lang/rust/pull/137122) - [Simplify `Extend` for tuples](https://redirect.github.com/rust-lang/rust/pull/138799) - [Added details to `Debug` for `EncodeWide`](https://redirect.github.com/rust-lang/rust/pull/140153). - [`iter::Repeat::last`](https://redirect.github.com/rust-lang/rust/pull/147258) and [`count`](https://redirect.github.com/rust-lang/rust/pull/146410) will now panic, rather than looping infinitely. ## Stabilized APIs - [`NonZero::div_ceil`](https://doc.rust-lang.org/stable/std/num/struct.NonZero.html#method.div_ceil) - [`Location::file_as_c_str`](https://doc.rust-lang.org/stable/std/panic/struct.Location.html#method.file_as_c_str) - [`RwLockWriteGuard::downgrade`](https://doc.rust-lang.org/stable/std/sync/struct.RwLockWriteGuard.html#method.downgrade) - [`Box::new_zeroed`](https://doc.rust-lang.org/stable/std/boxed/struct.Box.html#method.new_zeroed) - [`Box::new_zeroed_slice`](https://doc.rust-lang.org/stable/std/boxed/struct.Box.html#method.new_zeroed_slice) - [`Rc::new_zeroed`](https://doc.rust-lang.org/stable/std/rc/struct.Rc.html#method.new_zeroed) - [`Rc::new_zeroed_slice`](https://doc.rust-lang.org/stable/std/rc/struct.Rc.html#method.new_zeroed_slice) - [`Arc::new_zeroed`](https://doc.rust-lang.org/stable/std/sync/struct.Arc.html#method.new_zeroed) - [`Arc::new_zeroed_slice`](https://doc.rust-lang.org/stable/std/sync/struct.Arc.html#method.new_zeroed_slice) - [`btree_map::Entry::insert_entry`](https://doc.rust-lang.org/stable/std/collections/btree_map/enum.Entry.html#method.insert_entry) - [`btree_map::VacantEntry::insert_entry`](https://doc.rust-lang.org/stable/std/collections/btree_map/struct.VacantEntry.html#method.insert_entry) - [`impl Extend for proc_macro::TokenStream`](https://doc.rust-lang.org/stable/proc_macro/struct.TokenStream.html#impl-Extend%3CGroup%3E-for-TokenStream) - [`impl Extend for proc_macro::TokenStream`](https://doc.rust-lang.org/stable/proc_macro/struct.TokenStream.html#impl-Extend%3CLiteral%3E-for-TokenStream) - [`impl Extend for proc_macro::TokenStream`](https://doc.rust-lang.org/stable/proc_macro/struct.TokenStream.html#impl-Extend%3CPunct%3E-for-TokenStream) - [`impl Extend for proc_macro::TokenStream`](https://doc.rust-lang.org/stable/proc_macro/struct.TokenStream.html#impl-Extend%3CIdent%3E-for-TokenStream) These previously stable APIs are now stable in const contexts: - [`<[_]>::rotate_left`](https://doc.rust-lang.org/stable/std/primitive.slice.html#method.rotate_left) - [`<[_]>::rotate_right`](https://doc.rust-lang.org/stable/std/primitive.slice.html#method.rotate_right) ## Cargo - [Added a new chapter](https://redirect.github.com/rust-lang/cargo/issues/16119) to the Cargo book, ["Optimizing Build Performance"](https://doc.rust-lang.org/stable/cargo/guide/build-performance.html). ## Rustdoc - [If a trait item appears in rustdoc search, hide the corresponding impl items](https://redirect.github.com/rust-lang/rust/pull/145898). Previously a search for "last" would show both `Iterator::last` as well as impl methods like `std::vec::IntoIter::last`. Now these impl methods will be hidden, freeing up space for inherent methods like `BTreeSet::last`. - [Relax rules for identifiers in search](https://redirect.github.com/rust-lang/rust/pull/147860). Previously you could only search for identifiers that were valid in rust code, now searches only need to be valid as part of an identifier. For example, you can now perform a search that starts with a digit. ## Compatibility Notes - [Fix backtraces with `-C panic=abort` on Linux by generating unwind tables by default](https://redirect.github.com/rust-lang/rust/pull/143613). Build with `-C force-unwind-tables=no` to keep omitting unwind tables. * As part of the larger effort refactoring compiler built-in attributes and their diagnostics, [the future-compatibility lint `invalid_macro_export_arguments` is upgraded to deny-by-default and will be reported in dependencies too.](https://redirect.github.com/rust-lang/rust/pull/143857) * [Update the minimum external LLVM to 20](https://redirect.github.com/rust-lang/rust/pull/145071) * [Prevent downstream `impl DerefMut for Pin`](https://redirect.github.com/rust-lang/rust/pull/145608) * [Don't apply temporary lifetime extension rules to the arguments of non-extended `pin!` and formatting macros](https://redirect.github.com/rust-lang/rust/pull/145838)
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- mise.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mise.toml b/mise.toml index 91249173..08cceb9c 100644 --- a/mise.toml +++ b/mise.toml @@ -70,5 +70,5 @@ run = "./scripts/publish-client.sh test" "cargo:cargo-nextest" = "0.9.103" "cargo:wasm-bindgen-cli" = "0.2.105" "cargo:wasm-pack" = "0.13.1" -rust = { version = "1.91.1", targets = "wasm32-unknown-unknown", components = "clippy,rustfmt" } +rust = { version = "1.92.0", targets = "wasm32-unknown-unknown", components = "clippy,rustfmt" } From a067a51e2aad5dfe0e65112fee3eed3135f6e47d Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 15 Dec 2025 01:14:02 +0000 Subject: [PATCH 057/189] Update dependency mise to v2025.12.7 (#390) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Update | Change | |---|---|---| | [mise](https://redirect.github.com/jdx/mise) | patch | `v2025.12.0` -> `v2025.12.7` | --- ### Release Notes
jdx/mise (mise) ### [`v2025.12.7`](https://redirect.github.com/jdx/mise/releases/tag/v2025.12.7) [Compare Source](https://redirect.github.com/jdx/mise/compare/v2025.12.6...v2025.12.7) ##### 🚀 Features - **(java)** add created\_at support to ls-remote --json by [@​jdx](https://redirect.github.com/jdx) in [#​7297](https://redirect.github.com/jdx/mise/pull/7297) - **(ls-remote)** add created\_at timestamps to ls-remote --json for more backends by [@​jdx](https://redirect.github.com/jdx) in [#​7295](https://redirect.github.com/jdx/mise/pull/7295) - **(ls-remote)** add created\_at timestamps to ls-remote --json for core plugins by [@​jdx](https://redirect.github.com/jdx) in [#​7294](https://redirect.github.com/jdx/mise/pull/7294) - **(registry)** add --json flag to registry command by [@​jdx](https://redirect.github.com/jdx) in [#​7290](https://redirect.github.com/jdx/mise/pull/7290) - **(ruby)** add created\_at timestamps to ls-remote --json by [@​jdx](https://redirect.github.com/jdx) in [#​7296](https://redirect.github.com/jdx/mise/pull/7296) ##### 🐛 Bug Fixes - **(spm)** recursively update submodules after checkout by [@​JFej](https://redirect.github.com/JFej) in [#​7292](https://redirect.github.com/jdx/mise/pull/7292) - prioritize raw task output over task\_output setting by [@​skorfmann](https://redirect.github.com/skorfmann) in [#​7286](https://redirect.github.com/jdx/mise/pull/7286) ##### New Contributors - [@​skorfmann](https://redirect.github.com/skorfmann) made their first contribution in [#​7286](https://redirect.github.com/jdx/mise/pull/7286) - [@​JFej](https://redirect.github.com/JFej) made their first contribution in [#​7292](https://redirect.github.com/jdx/mise/pull/7292) ### [`v2025.12.6`](https://redirect.github.com/jdx/mise/releases/tag/v2025.12.6) [Compare Source](https://redirect.github.com/jdx/mise/compare/v2025.12.5...v2025.12.6) ##### 🚀 Features - add anonymous download tracking for tool popularity stats by [@​jdx](https://redirect.github.com/jdx) in [#​7289](https://redirect.github.com/jdx/mise/pull/7289) ##### 🐛 Bug Fixes - add --compressed flag to curl for Swift GPG keys by [@​jdx](https://redirect.github.com/jdx) in [7bc1273](https://redirect.github.com/jdx/mise/commit/7bc1273e78c9a1b58e0c987f5f2560f498efd2d4) ##### 📚 Documentation - add Versions link to nav bar by [@​jdx](https://redirect.github.com/jdx) in [#​7283](https://redirect.github.com/jdx/mise/pull/7283) - add mise-tools link to nav bar by [@​jdx](https://redirect.github.com/jdx) in [#​7285](https://redirect.github.com/jdx/mise/pull/7285) ### [`v2025.12.5`](https://redirect.github.com/jdx/mise/releases/tag/v2025.12.5) [Compare Source](https://redirect.github.com/jdx/mise/compare/v2025.12.4...v2025.12.5) ##### 🚀 Features - **(ls-remote)** add --json flag with created\_at timestamps by [@​jdx](https://redirect.github.com/jdx) in [#​7279](https://redirect.github.com/jdx/mise/pull/7279) ##### 🐛 Bug Fixes - **(config)** respect MISE\_CONFIG\_DIR when set to non-default location by [@​jdx](https://redirect.github.com/jdx) in [#​7271](https://redirect.github.com/jdx/mise/pull/7271) - **(http)** move http-tarballs from cache to data directory by [@​jdx](https://redirect.github.com/jdx) in [#​7273](https://redirect.github.com/jdx/mise/pull/7273) - **(pipx)** expand wildcards in install command for backend tools by [@​jdx](https://redirect.github.com/jdx) in [#​7275](https://redirect.github.com/jdx/mise/pull/7275) - **(tasks)** position-based flag parsing for `mise run` by [@​jdx](https://redirect.github.com/jdx) in [#​7278](https://redirect.github.com/jdx/mise/pull/7278) - **(tera)** handle empty strings in path filters by [@​jdx](https://redirect.github.com/jdx) in [#​7276](https://redirect.github.com/jdx/mise/pull/7276) - **(vfox)** make mise\_env and mise\_path hooks optional by [@​jdx](https://redirect.github.com/jdx) in [#​7274](https://redirect.github.com/jdx/mise/pull/7274) ##### 📚 Documentation - **(ruby)** add precompiled binaries documentation by [@​jdx](https://redirect.github.com/jdx) in [#​7269](https://redirect.github.com/jdx/mise/pull/7269) ### [`v2025.12.4`](https://redirect.github.com/jdx/mise/releases/tag/v2025.12.4) [Compare Source](https://redirect.github.com/jdx/mise/compare/v2025.12.3...v2025.12.4) ##### 🚀 Features - **(copr)** add Fedora 43 support by [@​jdx](https://redirect.github.com/jdx) in [#​7265](https://redirect.github.com/jdx/mise/pull/7265) - **(ruby)** add precompiled binary support by [@​jdx](https://redirect.github.com/jdx) in [#​7263](https://redirect.github.com/jdx/mise/pull/7263) ### [`v2025.12.3`](https://redirect.github.com/jdx/mise/releases/tag/v2025.12.3) [Compare Source](https://redirect.github.com/jdx/mise/compare/v2025.12.2...v2025.12.3) ##### 🚀 Features - **(ui)** add color\_theme setting for light terminal support by [@​bishopmatthew](https://redirect.github.com/bishopmatthew) in [#​7257](https://redirect.github.com/jdx/mise/pull/7257) ##### 🐛 Bug Fixes - **(node)** add newlines between GPG keys in fetch script by [@​jdx](https://redirect.github.com/jdx) in [#​7262](https://redirect.github.com/jdx/mise/pull/7262) - **(run)** truncate task description to first line in run selector by [@​jdx](https://redirect.github.com/jdx) in [#​7256](https://redirect.github.com/jdx/mise/pull/7256) - unset -f bash functions by [@​agriffis](https://redirect.github.com/agriffis) in [#​7072](https://redirect.github.com/jdx/mise/pull/7072) ##### 📚 Documentation - fix type of mise\_env in templates by [@​risu729](https://redirect.github.com/risu729) in [#​7261](https://redirect.github.com/jdx/mise/pull/7261) ##### 🧪 Testing - add empty secret redaction test by [@​risu729](https://redirect.github.com/risu729) in [#​7260](https://redirect.github.com/jdx/mise/pull/7260) ##### 📦️ Dependency Updates - update ghcr.io/jdx/mise:copr docker digest to [`af06edf`](https://redirect.github.com/jdx/mise/commit/af06edf) by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​7245](https://redirect.github.com/jdx/mise/pull/7245) - update ghcr.io/jdx/mise:alpine docker digest to [`3ca5ebd`](https://redirect.github.com/jdx/mise/commit/3ca5ebd) by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​7244](https://redirect.github.com/jdx/mise/pull/7244) - update ghcr.io/jdx/mise:rpm docker digest to [`bdc5d0d`](https://redirect.github.com/jdx/mise/commit/bdc5d0d) by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​7247](https://redirect.github.com/jdx/mise/pull/7247) - update ghcr.io/jdx/mise:deb docker digest to [`f73d7ef`](https://redirect.github.com/jdx/mise/commit/f73d7ef) by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​7246](https://redirect.github.com/jdx/mise/pull/7246) - update mcr.microsoft.com/devcontainers/rust:1 docker digest to [`884de39`](https://redirect.github.com/jdx/mise/commit/884de39) by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​7249](https://redirect.github.com/jdx/mise/pull/7249) - update jdx/mise-action digest to [`146a281`](https://redirect.github.com/jdx/mise/commit/146a281) by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​7248](https://redirect.github.com/jdx/mise/pull/7248) ##### Chore - **(registry)** retry only failed tools by [@​risu729](https://redirect.github.com/risu729) in [#​7251](https://redirect.github.com/jdx/mise/pull/7251) ##### New Contributors - [@​agriffis](https://redirect.github.com/agriffis) made their first contribution in [#​7072](https://redirect.github.com/jdx/mise/pull/7072) - [@​bishopmatthew](https://redirect.github.com/bishopmatthew) made their first contribution in [#​7257](https://redirect.github.com/jdx/mise/pull/7257) ### [`v2025.12.2`](https://redirect.github.com/jdx/mise/releases/tag/v2025.12.2) [Compare Source](https://redirect.github.com/jdx/mise/compare/v2025.12.1...v2025.12.2) ##### 🐛 Bug Fixes - **(node)** fetch GPG keys from nodejs/release-keys repo by [@​jdx](https://redirect.github.com/jdx) in [#​7242](https://redirect.github.com/jdx/mise/pull/7242) - **(release)** run fetch-gpg-keys before build by [@​jdx](https://redirect.github.com/jdx) in [2608caf](https://redirect.github.com/jdx/mise/commit/2608cafec410befc911f53181850fbc720bc33ce) - **(tasks)** disable ctrl-c exit behavior during mise run by [@​jdx](https://redirect.github.com/jdx) in [#​7232](https://redirect.github.com/jdx/mise/pull/7232) ##### 📦 Registry - added werf by [@​tony-sol](https://redirect.github.com/tony-sol) in [#​7230](https://redirect.github.com/jdx/mise/pull/7230) ### [`v2025.12.1`](https://redirect.github.com/jdx/mise/releases/tag/v2025.12.1) [Compare Source](https://redirect.github.com/jdx/mise/compare/v2025.12.0...v2025.12.1) ##### 🚀 Features - **(npm)** support pnpm as a package manager for npm backend by [@​risu729](https://redirect.github.com/risu729) in [#​7214](https://redirect.github.com/jdx/mise/pull/7214) - **(tool-stubs)** add --bootstrap flag to mise generate tool-stub by [@​jdx](https://redirect.github.com/jdx) in [#​7203](https://redirect.github.com/jdx/mise/pull/7203) ##### 🐛 Bug Fixes - **(alpine)** increase alpine release timeout to 60 minutes by [@​jdx](https://redirect.github.com/jdx) in [#​7188](https://redirect.github.com/jdx/mise/pull/7188) - **(bun)** use x64-baseline for aarch64 on Windows by [@​roele](https://redirect.github.com/roele) in [#​7190](https://redirect.github.com/jdx/mise/pull/7190) - **(tools)** allow using env vars in tools by [@​antonsergeyev](https://redirect.github.com/antonsergeyev) in [#​7205](https://redirect.github.com/jdx/mise/pull/7205) - add cfg(feature = "self\_update") to statics only used by that feature by [@​jdx](https://redirect.github.com/jdx) in [#​7185](https://redirect.github.com/jdx/mise/pull/7185) ##### 📚 Documentation - Update registry.md by [@​jdx](https://redirect.github.com/jdx) in [ad11ad1](https://redirect.github.com/jdx/mise/commit/ad11ad14705b2adac5c874f15fef4cc74652e26f) ##### 📦️ Dependency Updates - update ghcr.io/jdx/mise:alpine docker digest to [`2909cce`](https://redirect.github.com/jdx/mise/commit/2909cce) by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​7196](https://redirect.github.com/jdx/mise/pull/7196) - update fedora:43 docker digest to [`6cd815d`](https://redirect.github.com/jdx/mise/commit/6cd815d) by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​7195](https://redirect.github.com/jdx/mise/pull/7195) - update ghcr.io/jdx/mise:deb docker digest to [`1893530`](https://redirect.github.com/jdx/mise/commit/1893530) by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​7198](https://redirect.github.com/jdx/mise/pull/7198) - update ghcr.io/jdx/mise:copr docker digest to [`0447a85`](https://redirect.github.com/jdx/mise/commit/0447a85) by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​7197](https://redirect.github.com/jdx/mise/pull/7197) ##### 📦 Registry - add Supabase CLI to registry.toml by [@​bodadotsh](https://redirect.github.com/bodadotsh) in [#​7206](https://redirect.github.com/jdx/mise/pull/7206) - add cmake aqua backend by [@​mangkoran](https://redirect.github.com/mangkoran) in [#​7186](https://redirect.github.com/jdx/mise/pull/7186) ##### New Contributors - [@​antonsergeyev](https://redirect.github.com/antonsergeyev) made their first contribution in [#​7205](https://redirect.github.com/jdx/mise/pull/7205) - [@​bodadotsh](https://redirect.github.com/bodadotsh) made their first contribution in [#​7206](https://redirect.github.com/jdx/mise/pull/7206)
--- ### Configuration 📅 **Schedule**: Branch creation - "before 4am on monday" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/bench.yml | 4 ++-- .github/workflows/check.yml | 4 ++-- .github/workflows/release.yml | 4 ++-- .github/workflows/test-release.yml | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index 9c53aea9..267acfca 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -10,7 +10,7 @@ jobs: - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - uses: jdx/mise-action@146a28175021df8ca24f8ee1828cc2a60f980bd5 # v3.5.1 with: - version: v2025.12.0 - sha256: 5b7b9992950b65569b4f6f1c78b05abceea2506f15b750a4b9781f33c6cc1ae4 + version: v2025.12.7 + sha256: 59fb463dbcbebc3d4b51690865b8b9ea1f80707fddbf008bcd071aee7079daa3 - name: Random actions test run: mise run random-actions diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 1d953636..b24d809b 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -10,7 +10,7 @@ jobs: - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - uses: jdx/mise-action@146a28175021df8ca24f8ee1828cc2a60f980bd5 # v3.5.1 with: - version: v2025.12.0 - sha256: 5b7b9992950b65569b4f6f1c78b05abceea2506f15b750a4b9781f33c6cc1ae4 + version: v2025.12.7 + sha256: 59fb463dbcbebc3d4b51690865b8b9ea1f80707fddbf008bcd071aee7079daa3 - name: Check all run: mise run ci diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c2d88986..d79f256f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,8 +14,8 @@ jobs: - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - uses: jdx/mise-action@146a28175021df8ca24f8ee1828cc2a60f980bd5 # v3.5.1 with: - version: v2025.12.0 - sha256: 5b7b9992950b65569b4f6f1c78b05abceea2506f15b750a4b9781f33c6cc1ae4 + version: v2025.12.7 + sha256: 59fb463dbcbebc3d4b51690865b8b9ea1f80707fddbf008bcd071aee7079daa3 - name: Use Node.js ${{ env.node_version }} uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6 with: diff --git a/.github/workflows/test-release.yml b/.github/workflows/test-release.yml index cc12b827..40bafdf0 100644 --- a/.github/workflows/test-release.yml +++ b/.github/workflows/test-release.yml @@ -10,8 +10,8 @@ jobs: - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - uses: jdx/mise-action@146a28175021df8ca24f8ee1828cc2a60f980bd5 # v3.5.1 with: - version: v2025.12.0 - sha256: 5b7b9992950b65569b4f6f1c78b05abceea2506f15b750a4b9781f33c6cc1ae4 + version: v2025.12.7 + sha256: 59fb463dbcbebc3d4b51690865b8b9ea1f80707fddbf008bcd071aee7079daa3 - name: Test server release run: mise run build-remote-server - name: Test client release From 891c203d20647520494a4533ff84078ff4e2b21f Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 19 Dec 2025 17:49:32 +0000 Subject: [PATCH 058/189] Update dependency webpack to v5.104.0 (#391) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [webpack](https://redirect.github.com/webpack/webpack) | [`5.103.0` -> `5.104.0`](https://renovatebot.com/diffs/npm/webpack/5.103.0/5.104.0) | ![age](https://developer.mend.io/api/mc/badges/age/npm/webpack/5.104.0?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/webpack/5.103.0/5.104.0?slim=true) | --- ### Release Notes
webpack/webpack (webpack) ### [`v5.104.0`](https://redirect.github.com/webpack/webpack/blob/HEAD/CHANGELOG.md#51040) [Compare Source](https://redirect.github.com/webpack/webpack/compare/v5.103.0...v5.104.0) ##### Minor Changes - [`d3dd841`](https://redirect.github.com/webpack/webpack/commit/d3dd841): Use method shorthand to render module content in `__webpack_modules__` object. - [`d3dd841`](https://redirect.github.com/webpack/webpack/commit/d3dd841): Enhance `import.meta.env` to support object access. - [`4baab4e`](https://redirect.github.com/webpack/webpack/commit/4baab4e): Optimize dependency sorting in updateParent: sort each module only once by deferring to finishUpdateParent(), and reduce traversal count in sortWithSourceOrder by caching WeakMap values upfront. - [`04cd530`](https://redirect.github.com/webpack/webpack/commit/04cd530): Handle more at-rules for CSS modules. - [`cafae23`](https://redirect.github.com/webpack/webpack/commit/cafae23): Added options to control the renaming of at-rules and various identifiers in CSS modules. - [`d3dd841`](https://redirect.github.com/webpack/webpack/commit/d3dd841): Added `base64url`, `base62`, `base58`, `base52`, `base49`, `base36`, `base32` and `base25` digests. - [`5983843`](https://redirect.github.com/webpack/webpack/commit/5983843): Provide a stable runtime function variable `__webpack_global__`. - [`d3dd841`](https://redirect.github.com/webpack/webpack/commit/d3dd841): Improved `localIdentName` hashing for CSS. ##### Patch Changes - [`22c48fb`](https://redirect.github.com/webpack/webpack/commit/22c48fb): Added module existence check for informative error message in development mode. - [`50689e1`](https://redirect.github.com/webpack/webpack/commit/50689e1): Use the fully qualified class name (or export name) for `[fullhash]` placeholder in CSS modules. - [`d3dd841`](https://redirect.github.com/webpack/webpack/commit/d3dd841): Support universal lazy compilation. - [`d3dd841`](https://redirect.github.com/webpack/webpack/commit/d3dd841): Fixed module library export definitions when multiple runtimes. - [`d3dd841`](https://redirect.github.com/webpack/webpack/commit/d3dd841): Fixed CSS nesting and CSS custom properties parsing. - [`d3dd841`](https://redirect.github.com/webpack/webpack/commit/d3dd841): Don't write fragment from URL to filename and apply fragment to module URL. - [`aab1da9`](https://redirect.github.com/webpack/webpack/commit/aab1da9): Fixed bugs for `css/global` type. - [`d3dd841`](https://redirect.github.com/webpack/webpack/commit/d3dd841): Compatibility `import.meta.filename` and `import.meta.dirname` with `eval` devtools. - [`d3dd841`](https://redirect.github.com/webpack/webpack/commit/d3dd841): Handle nested `__webpack_require__`. - [`728ddb7`](https://redirect.github.com/webpack/webpack/commit/728ddb7): The speed of identifier parsing has been improved. - [`0f8b31b`](https://redirect.github.com/webpack/webpack/commit/0f8b31b): Improve types. - [`d3dd841`](https://redirect.github.com/webpack/webpack/commit/d3dd841): Don't corrupt `debugId` injection when `hidden-source-map` is used. - [`2179fdb`](https://redirect.github.com/webpack/webpack/commit/2179fdb): Re-validate HttpUriPlugin redirects against allowedUris, restrict to http(s) and add a conservative redirect limit to prevent SSRF and untrusted content inclusion. Redirects failing policy are rejected before caching/lockfile writes. - [`d3dd841`](https://redirect.github.com/webpack/webpack/commit/d3dd841): Serialize `HookWebpackError`. - [`d3dd841`](https://redirect.github.com/webpack/webpack/commit/d3dd841): Added ability to use built-in properties in dotenv and define plugin. - [`3c4319f`](https://redirect.github.com/webpack/webpack/commit/3c4319f): Optimizing the regular expression character class by specifying ranges for runtime code. - [`d3dd841`](https://redirect.github.com/webpack/webpack/commit/d3dd841): Reduce collision for local indent name in CSS. - [`d3dd841`](https://redirect.github.com/webpack/webpack/commit/d3dd841): Remove CSS link tags when CSS imports are removed.
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- client/js/package-lock.json | 76 ++++++++++++++++++------------------- client/js/package.json | 2 +- 2 files changed, 39 insertions(+), 39 deletions(-) diff --git a/client/js/package-lock.json b/client/js/package-lock.json index 5d444aa1..5cb01a6d 100644 --- a/client/js/package-lock.json +++ b/client/js/package-lock.json @@ -85,9 +85,9 @@ "dev": true }, "@types/node": { - "version": "24.10.1", - "resolved": "https://registry.npmjs.org/@types/node/-/node-24.10.1.tgz", - "integrity": "sha512-GNWcUTRBgIRJD5zj+Tq0fKOJ5XZajIiBroOF0yvj2bSU1WvNdYS/dn9UxwsujGW4JX06dnHyjV2y9rRaybH0iQ==", + "version": "25.0.3", + "resolved": "https://registry.npmjs.org/@types/node/-/node-25.0.3.tgz", + "integrity": "sha512-W609buLVRVmeW693xKfzHeIV6nJGGz98uCPfeXI1ELMLXVeKYZ9m15fAMSaUPBHYLGFsVRcMmSCksQOrZV9BYA==", "dev": true, "requires": { "undici-types": "~7.16.0" @@ -312,22 +312,22 @@ } }, "baseline-browser-mapping": { - "version": "2.8.31", - "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.8.31.tgz", - "integrity": "sha512-a28v2eWrrRWPpJSzxc+mKwm0ZtVx/G8SepdQZDArnXYU/XS+IF6mp8aB/4E+hH1tyGCoDo3KlUCdlSxGDsRkAw==", + "version": "2.9.11", + "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.9.11.tgz", + "integrity": "sha512-Sg0xJUNDU1sJNGdfGWhVHX0kkZ+HWcvmVymJbj6NSgZZmW/8S9Y2HQ5euytnIgakgxN6papOAWiwDo1ctFDcoQ==", "dev": true }, "browserslist": { - "version": "4.28.0", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.0.tgz", - "integrity": "sha512-tbydkR/CxfMwelN0vwdP/pLkDwyAASZ+VfWm4EOwlB6SWhx1sYnWLqo8N5j0rAzPfzfRaxt0mM/4wPU/Su84RQ==", + "version": "4.28.1", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.1.tgz", + "integrity": "sha512-ZC5Bd0LgJXgwGqUknZY/vkUQ04r8NXnJZ3yYi4vDmSiZmC/pdSN0NbNRPxZpbtO4uAfDUAFffO8IZoM3Gj8IkA==", "dev": true, "requires": { - "baseline-browser-mapping": "^2.8.25", - "caniuse-lite": "^1.0.30001754", - "electron-to-chromium": "^1.5.249", + "baseline-browser-mapping": "^2.9.0", + "caniuse-lite": "^1.0.30001759", + "electron-to-chromium": "^1.5.263", "node-releases": "^2.0.27", - "update-browserslist-db": "^1.1.4" + "update-browserslist-db": "^1.2.0" } }, "buffer-from": { @@ -337,9 +337,9 @@ "dev": true }, "caniuse-lite": { - "version": "1.0.30001757", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001757.tgz", - "integrity": "sha512-r0nnL/I28Zi/yjk1el6ilj27tKcdjLsNqAOZr0yVjWPrSQyHgKI2INaEWw21bAQSv2LXRt1XuCS/GomNpWOxsQ==", + "version": "1.0.30001761", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001761.tgz", + "integrity": "sha512-JF9ptu1vP2coz98+5051jZ4PwQgd2ni8A+gYSN7EA7dPKIMf0pDlSUxhdmVOaV3/fYK5uWBkgSXJaRLr4+3A6g==", "dev": true }, "chrome-trace-event": { @@ -383,15 +383,15 @@ } }, "electron-to-chromium": { - "version": "1.5.259", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.259.tgz", - "integrity": "sha512-I+oLXgpEJzD6Cwuwt1gYjxsDmu/S/Kd41mmLA3O+/uH2pFRO/DvOjUyGozL8j3KeLV6WyZ7ssPwELMsXCcsJAQ==", + "version": "1.5.267", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.267.tgz", + "integrity": "sha512-0Drusm6MVRXSOJpGbaSVgcQsuB4hEkMpHXaVstcPmhu5LIedxs1xNK/nIxmQIU/RPC0+1/o0AVZfBTkTNJOdUw==", "dev": true }, "enhanced-resolve": { - "version": "5.18.3", - "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.18.3.tgz", - "integrity": "sha512-d4lC8xfavMeBjzGr2vECC3fsGXziXZQyJxD868h2M/mBI3PwAuODxAkLkq5HYuvrPYcUtiLzsTo8U3PgX3Ocww==", + "version": "5.18.4", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.18.4.tgz", + "integrity": "sha512-LgQMM4WXU3QI+SYgEc2liRgznaD5ojbmY3sb8LxyguVkIg5FxdpTkvk72te2R38/TGKxH634oLxXRGY6d7AP+Q==", "dev": true, "requires": { "graceful-fs": "^4.2.4", @@ -405,9 +405,9 @@ "dev": true }, "es-module-lexer": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.7.0.tgz", - "integrity": "sha512-jEQoCwk8hyb2AZziIOLhDqpm5+2ww5uIE6lkO/6jcOCusfk6LhMHpXXfBLXTZ7Ydyt0j4VoUQv6uGNYbdW+kBA==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-2.0.0.tgz", + "integrity": "sha512-5POEcUuZybH7IdmGsD8wlf0AI55wMecM9rVBTI/qEAy2c1kTOm3DjFYjrBdI2K3BaJjJYfYFeRtM0t9ssnRuxw==", "dev": true }, "escalade": { @@ -852,9 +852,9 @@ } }, "terser-webpack-plugin": { - "version": "5.3.14", - "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.14.tgz", - "integrity": "sha512-vkZjpUjb6OMS7dhV+tILUW6BhpDR7P2L/aQSAv+Uwk+m8KATX9EccViHTJR2qDtACKPIYndLGCyl3FMo+r2LMw==", + "version": "5.3.16", + "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.16.tgz", + "integrity": "sha512-h9oBFCWrq78NyWWVcSwZarJkZ01c2AyGrzs1crmHZO3QUg9D61Wu4NPjBy69n7JqylFF5y+CsUZYmYEIZ3mR+Q==", "dev": true, "requires": { "@jridgewell/trace-mapping": "^0.3.25", @@ -871,9 +871,9 @@ "dev": true }, "update-browserslist-db": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.4.tgz", - "integrity": "sha512-q0SPT4xyU84saUX+tomz1WLkxUbuaJnR1xWt17M7fJtEJigJeWUNGUqrauFXsHnqev9y9JTRGwk13tFBuKby4A==", + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.2.3.tgz", + "integrity": "sha512-Js0m9cx+qOgDxo0eMiFGEueWztz+d4+M3rGlmKPT+T4IS/jP4ylw3Nwpu6cpTTP8R1MAC1kF4VbdLt3ARf209w==", "dev": true, "requires": { "escalade": "^3.2.0", @@ -891,9 +891,9 @@ } }, "webpack": { - "version": "5.103.0", - "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.103.0.tgz", - "integrity": "sha512-HU1JOuV1OavsZ+mfigY0j8d1TgQgbZ6M+J75zDkpEAwYeXjWSqrGJtgnPblJjd/mAyTNQ7ygw0MiKOn6etz8yw==", + "version": "5.104.0", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.104.0.tgz", + "integrity": "sha512-5DeICTX8BVgNp6afSPYXAFjskIgWGlygQH58bcozPOXgo2r/6xx39Y1+cULZ3gTxUYQP88jmwLj2anu4Xaq84g==", "dev": true, "requires": { "@types/eslint-scope": "^3.7.7", @@ -904,10 +904,10 @@ "@webassemblyjs/wasm-parser": "^1.14.1", "acorn": "^8.15.0", "acorn-import-phases": "^1.0.3", - "browserslist": "^4.26.3", + "browserslist": "^4.28.1", "chrome-trace-event": "^1.0.2", - "enhanced-resolve": "^5.17.3", - "es-module-lexer": "^1.2.1", + "enhanced-resolve": "^5.17.4", + "es-module-lexer": "^2.0.0", "eslint-scope": "5.1.1", "events": "^3.2.0", "glob-to-regexp": "^0.4.1", @@ -918,7 +918,7 @@ "neo-async": "^2.6.2", "schema-utils": "^4.3.3", "tapable": "^2.3.0", - "terser-webpack-plugin": "^5.3.11", + "terser-webpack-plugin": "^5.3.16", "watchpack": "^2.4.4", "webpack-sources": "^3.3.3" } diff --git a/client/js/package.json b/client/js/package.json index 8a0ac2cb..eeb508c2 100644 --- a/client/js/package.json +++ b/client/js/package.json @@ -18,7 +18,7 @@ "build": "webpack" }, "devDependencies": { - "webpack": "5.103.0", + "webpack": "5.104.0", "webpack-cli": "6.0.1" }, "dependencies": { From 6d11ebb45f2b5100b65303fc122063d17699ba97 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 21 Dec 2025 13:12:09 +0000 Subject: [PATCH 059/189] Update dependency webpack to v5.104.1 (#392) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [webpack](https://redirect.github.com/webpack/webpack) | [`5.104.0` -> `5.104.1`](https://renovatebot.com/diffs/npm/webpack/5.104.0/5.104.1) | ![age](https://developer.mend.io/api/mc/badges/age/npm/webpack/5.104.1?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/webpack/5.104.0/5.104.1?slim=true) | --- ### Release Notes
webpack/webpack (webpack) ### [`v5.104.1`](https://redirect.github.com/webpack/webpack/blob/HEAD/CHANGELOG.md#51041) [Compare Source](https://redirect.github.com/webpack/webpack/compare/v5.104.0...v5.104.1) ##### Patch Changes - [`2efd21b`](https://redirect.github.com/webpack/webpack/commit/2efd21b): Reexports runtime calculation should not accessing **WEBPACK\_IMPORT\_KEY** decl with var. - [`c510070`](https://redirect.github.com/webpack/webpack/commit/c510070): Fixed a user information bypass vulnerability in the HttpUriPlugin plugin.
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- client/js/package-lock.json | 6 +++--- client/js/package.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/client/js/package-lock.json b/client/js/package-lock.json index 5cb01a6d..d0a5117d 100644 --- a/client/js/package-lock.json +++ b/client/js/package-lock.json @@ -891,9 +891,9 @@ } }, "webpack": { - "version": "5.104.0", - "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.104.0.tgz", - "integrity": "sha512-5DeICTX8BVgNp6afSPYXAFjskIgWGlygQH58bcozPOXgo2r/6xx39Y1+cULZ3gTxUYQP88jmwLj2anu4Xaq84g==", + "version": "5.104.1", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.104.1.tgz", + "integrity": "sha512-Qphch25abbMNtekmEGJmeRUhLDbe+QfiWTiqpKYkpCOWY64v9eyl+KRRLmqOFA2AvKPpc9DC6+u2n76tQLBoaA==", "dev": true, "requires": { "@types/eslint-scope": "^3.7.7", diff --git a/client/js/package.json b/client/js/package.json index eeb508c2..a4c5d9de 100644 --- a/client/js/package.json +++ b/client/js/package.json @@ -18,7 +18,7 @@ "build": "webpack" }, "devDependencies": { - "webpack": "5.104.0", + "webpack": "5.104.1", "webpack-cli": "6.0.1" }, "dependencies": { From 4c94c057feb9fd7dac6e3a6256e5dd47d4aa3402 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 22 Dec 2025 01:16:56 +0000 Subject: [PATCH 060/189] Update dependency mise to v2025.12.12 (#393) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Update | Change | |---|---|---| | [mise](https://redirect.github.com/jdx/mise) | patch | `v2025.12.7` -> `v2025.12.12` | --- ### Release Notes
jdx/mise (mise) ### [`v2025.12.12`](https://redirect.github.com/jdx/mise/releases/tag/v2025.12.12) [Compare Source](https://redirect.github.com/jdx/mise/compare/v2025.12.11...v2025.12.12) ##### 🚀 Features - **(backend)** add version timestamps for spm, conda, and gem backends by [@​jdx](https://redirect.github.com/jdx) in [#​7383](https://redirect.github.com/jdx/mise/pull/7383) - **(backend)** add security features to github backend by [@​jdx](https://redirect.github.com/jdx) in [#​7387](https://redirect.github.com/jdx/mise/pull/7387) - **(ruby)** add GitHub attestation verification for precompiled binaries by [@​jdx](https://redirect.github.com/jdx) in [#​7382](https://redirect.github.com/jdx/mise/pull/7382) ##### 🐛 Bug Fixes - **(aqua)** improve security feature detection by [@​jdx](https://redirect.github.com/jdx) in [#​7385](https://redirect.github.com/jdx/mise/pull/7385) - **(github)** use version\_prefix when fetching release for SLSA verification by [@​jdx](https://redirect.github.com/jdx) in [#​7391](https://redirect.github.com/jdx/mise/pull/7391) ##### 🚜 Refactor - **(vfox)** remove submodules, embed plugins directly by [@​jdx](https://redirect.github.com/jdx) in [#​7389](https://redirect.github.com/jdx/mise/pull/7389) ##### 🧪 Testing - **(registry)** add final ci job as merge gate by [@​jdx](https://redirect.github.com/jdx) in [#​7390](https://redirect.github.com/jdx/mise/pull/7390) - split unit job to speed up macOS CI by [@​jdx](https://redirect.github.com/jdx) in [#​7388](https://redirect.github.com/jdx/mise/pull/7388) ### [`v2025.12.11`](https://redirect.github.com/jdx/mise/releases/tag/v2025.12.11) [Compare Source](https://redirect.github.com/jdx/mise/compare/v2025.12.10...v2025.12.11) ##### 🚀 Features - **(alias)** rename alias to tool-alias, add shell-alias command by [@​jdx](https://redirect.github.com/jdx) in [#​7357](https://redirect.github.com/jdx/mise/pull/7357) - **(upgrade)** display summary of upgraded tools by [@​jdx](https://redirect.github.com/jdx) in [#​7372](https://redirect.github.com/jdx/mise/pull/7372) - **(vfox)** embed vfox plugin Lua code in binary by [@​jdx](https://redirect.github.com/jdx) in [#​7369](https://redirect.github.com/jdx/mise/pull/7369) ##### 🐛 Bug Fixes - **(aqua)** add start\_operations for progress reporting by [@​jdx](https://redirect.github.com/jdx) in [#​7354](https://redirect.github.com/jdx/mise/pull/7354) - **(github)** improve asset detection for distro-specific and Swift artifacts by [@​jdx](https://redirect.github.com/jdx) in [#​7347](https://redirect.github.com/jdx/mise/pull/7347) - **(github)** clean up static\_helpers.rs and fix archive bin= option by [@​jdx](https://redirect.github.com/jdx) in [#​7366](https://redirect.github.com/jdx/mise/pull/7366) - **(http)** add start\_operations for progress reporting by [@​jdx](https://redirect.github.com/jdx) in [#​7355](https://redirect.github.com/jdx/mise/pull/7355) - **(lockfile)** place lockfile alongside config file by [@​jdx](https://redirect.github.com/jdx) in [#​7360](https://redirect.github.com/jdx/mise/pull/7360) - **(progress)** add start\_operations to core plugins by [@​jdx](https://redirect.github.com/jdx) in [#​7351](https://redirect.github.com/jdx/mise/pull/7351) - **(ruby-install)** Use ruby\_install\_bin to update by [@​calebhearth](https://redirect.github.com/calebhearth) in [#​7350](https://redirect.github.com/jdx/mise/pull/7350) - **(rust)** add release\_url for rust versions by [@​jdx](https://redirect.github.com/jdx) in [#​7373](https://redirect.github.com/jdx/mise/pull/7373) - **(schema)** add `tool_alias`, mark `alias` as deprecated by [@​SKalt](https://redirect.github.com/SKalt) in [#​7358](https://redirect.github.com/jdx/mise/pull/7358) - **(toolset)** filter tools by OS in list\_current\_versions by [@​jdx](https://redirect.github.com/jdx) in [#​7356](https://redirect.github.com/jdx/mise/pull/7356) - **(ubi)** only show deprecation warning during installation by [@​jdx](https://redirect.github.com/jdx) in [#​7380](https://redirect.github.com/jdx/mise/pull/7380) - **(ui)** remove noisy "record size" message during install by [@​jdx](https://redirect.github.com/jdx) in [#​7381](https://redirect.github.com/jdx/mise/pull/7381) - update mise-versions URL to use /tools/ prefix by [@​jdx](https://redirect.github.com/jdx) in [#​7378](https://redirect.github.com/jdx/mise/pull/7378) ##### 🚜 Refactor - **(backend)** unified AssetMatcher with checksum fetching by [@​jdx](https://redirect.github.com/jdx) in [#​7370](https://redirect.github.com/jdx/mise/pull/7370) - **(backend)** deprecate ubi backend in favor of github by [@​jdx](https://redirect.github.com/jdx) in [#​7374](https://redirect.github.com/jdx/mise/pull/7374) - **(toolset)** decompose mod.rs into smaller modules by [@​jdx](https://redirect.github.com/jdx) in [#​7371](https://redirect.github.com/jdx/mise/pull/7371) ##### 🧪 Testing - **(e2e)** fix and rename ubi and vfox\_embedded\_override tests by [@​jdx](https://redirect.github.com/jdx) in [052ea40](https://redirect.github.com/jdx/mise/commit/052ea40b29468f05fbc425cc5a4c20ebda077253) ##### 📦 Registry - add vfox-gcloud backend for gcloud by [@​jdx](https://redirect.github.com/jdx) in [#​7349](https://redirect.github.com/jdx/mise/pull/7349) - convert amplify to use github backend by [@​jdx](https://redirect.github.com/jdx) in [#​7365](https://redirect.github.com/jdx/mise/pull/7365) - add github backend for djinni tool by [@​jdx](https://redirect.github.com/jdx) in [#​7363](https://redirect.github.com/jdx/mise/pull/7363) - switch glab to native gitlab backend by [@​jdx](https://redirect.github.com/jdx) in [#​7364](https://redirect.github.com/jdx/mise/pull/7364) - add s5cmd by [@​jdx](https://redirect.github.com/jdx) in [#​7376](https://redirect.github.com/jdx/mise/pull/7376) ##### Chore - **(registry)** disable flaky tests for gitu and ktlint by [@​jdx](https://redirect.github.com/jdx) in [64151cb](https://redirect.github.com/jdx/mise/commit/64151cb3fb1e517b2c80aa2179b24c4bd55ff34a) - resolve clippy warnings and add stricter CI check by [@​jdx](https://redirect.github.com/jdx) in [#​7367](https://redirect.github.com/jdx/mise/pull/7367) - suppress dead\_code warnings in asset\_matcher module by [@​jdx](https://redirect.github.com/jdx) in [#​7377](https://redirect.github.com/jdx/mise/pull/7377) ##### New Contributors - [@​calebhearth](https://redirect.github.com/calebhearth) made their first contribution in [#​7350](https://redirect.github.com/jdx/mise/pull/7350) ### [`v2025.12.10`](https://redirect.github.com/jdx/mise/releases/tag/v2025.12.10) [Compare Source](https://redirect.github.com/jdx/mise/compare/v2025.12.9...v2025.12.10) ##### 🐛 Bug Fixes - **(backend)** fix fuzzy\_match\_filter regex for vendor-prefixed versions by [@​jdx](https://redirect.github.com/jdx) in [#​7332](https://redirect.github.com/jdx/mise/pull/7332) - **(backend)** use backend delegation for install-time option filtering by [@​jdx](https://redirect.github.com/jdx) in [#​7335](https://redirect.github.com/jdx/mise/pull/7335) - **(duration)** support calendar units in relative durations for --before flag by [@​Copilot](https://redirect.github.com/Copilot) in [#​7337](https://redirect.github.com/jdx/mise/pull/7337) - **(gem)** improve shebang compatibility for precompiled Ruby by [@​jdx](https://redirect.github.com/jdx) in [#​7336](https://redirect.github.com/jdx/mise/pull/7336) - **(gem)** handle RubyGems polyglot shebang format by [@​jdx](https://redirect.github.com/jdx) in [#​7340](https://redirect.github.com/jdx/mise/pull/7340) - **(pipx)** use minor version symlink for venv Python by [@​jdx](https://redirect.github.com/jdx) in [#​7339](https://redirect.github.com/jdx/mise/pull/7339) - **(registry)** prefer claude-code latest over stale stable by [@​jdx](https://redirect.github.com/jdx) in [#​7334](https://redirect.github.com/jdx/mise/pull/7334) - **(upgrade)** only check specified tools when upgrading with tool args by [@​jdx](https://redirect.github.com/jdx) in [#​7331](https://redirect.github.com/jdx/mise/pull/7331) ##### 📚 Documentation - Revise alias example for task execution by [@​azais-corentin](https://redirect.github.com/azais-corentin) in [#​7338](https://redirect.github.com/jdx/mise/pull/7338) ### [`v2025.12.9`](https://redirect.github.com/jdx/mise/releases/tag/v2025.12.9) [Compare Source](https://redirect.github.com/jdx/mise/compare/v2025.12.8...v2025.12.9) ##### 🚀 Features - **(aqua)** add tuist aqua backend by [@​jdx](https://redirect.github.com/jdx) in [#​7323](https://redirect.github.com/jdx/mise/pull/7323) - **(ls-remote)** add release\_url to VersionInfo for --json output by [@​jdx](https://redirect.github.com/jdx) in [#​7322](https://redirect.github.com/jdx/mise/pull/7322) - **(prepare)** add `mise prepare` command for dependency preparation by [@​jdx](https://redirect.github.com/jdx) in [#​7281](https://redirect.github.com/jdx/mise/pull/7281) - **(registry)** add aqua backend for zigmod by [@​jdx](https://redirect.github.com/jdx) in [#​7319](https://redirect.github.com/jdx/mise/pull/7319) ##### 🐛 Bug Fixes - **(e2e)** fix flaky test\_prepare go provider test by [@​jdx](https://redirect.github.com/jdx) in [0e2ef73](https://redirect.github.com/jdx/mise/commit/0e2ef73f9ae91072efd5abbbbe9d82e932472e79) - **(go)** restore git ls-remote for version listing by [@​jdx](https://redirect.github.com/jdx) in [#​7324](https://redirect.github.com/jdx/mise/pull/7324) ##### 📦 Registry - use github backend for sourcery by [@​jdx](https://redirect.github.com/jdx) in [#​7327](https://redirect.github.com/jdx/mise/pull/7327) - use github backend for swiftgen by [@​jdx](https://redirect.github.com/jdx) in [#​7326](https://redirect.github.com/jdx/mise/pull/7326) ### [`v2025.12.8`](https://redirect.github.com/jdx/mise/releases/tag/v2025.12.8) [Compare Source](https://redirect.github.com/jdx/mise/compare/v2025.12.7...v2025.12.8) ##### 🚀 Features - **(conda)** add dependency resolution for conda packages by [@​jdx](https://redirect.github.com/jdx) in [#​7280](https://redirect.github.com/jdx/mise/pull/7280) - **(go)** add created\_at support to ls-remote --json by [@​jdx](https://redirect.github.com/jdx) in [#​7305](https://redirect.github.com/jdx/mise/pull/7305) - **(hook-env)** add hook\_env.cache\_ttl and hook\_env.chpwd\_only settings for NFS optimization by [@​jdx](https://redirect.github.com/jdx) in [#​7312](https://redirect.github.com/jdx/mise/pull/7312) - **(hooks)** add MISE\_TOOL\_NAME and MISE\_TOOL\_VERSION to preinstall/postinstall hooks by [@​jdx](https://redirect.github.com/jdx) in [#​7311](https://redirect.github.com/jdx/mise/pull/7311) - **(shell\_alias)** add shell\_alias support for cross-shell aliases by [@​jdx](https://redirect.github.com/jdx) in [#​7316](https://redirect.github.com/jdx/mise/pull/7316) - **(tool)** add security field to mise tool --json by [@​jdx](https://redirect.github.com/jdx) in [#​7303](https://redirect.github.com/jdx/mise/pull/7303) - add --before flag for date-based version filtering by [@​jdx](https://redirect.github.com/jdx) in [#​7298](https://redirect.github.com/jdx/mise/pull/7298) ##### 🐛 Bug Fixes - **(aqua)** support cosign v3 bundle verification by [@​jdx](https://redirect.github.com/jdx) in [#​7314](https://redirect.github.com/jdx/mise/pull/7314) - **(config)** use correct config\_root in tera context for hooks by [@​jdx](https://redirect.github.com/jdx) in [#​7309](https://redirect.github.com/jdx/mise/pull/7309) - **(nu)** fix nushell deactivation script on Windows by [@​fu050409](https://redirect.github.com/fu050409) in [#​7213](https://redirect.github.com/jdx/mise/pull/7213) - **(python)** apply uv\_venv\_create\_args in auto-venv code path by [@​jdx](https://redirect.github.com/jdx) in [#​7310](https://redirect.github.com/jdx/mise/pull/7310) - **(shell)** escape exe path in activation scripts for paths with spaces by [@​jdx](https://redirect.github.com/jdx) in [#​7315](https://redirect.github.com/jdx/mise/pull/7315) - **(task)** parallelize exec\_env loading to fix parallel task execution by [@​jdx](https://redirect.github.com/jdx) in [#​7313](https://redirect.github.com/jdx/mise/pull/7313) - track downloads for python and java by [@​jdx](https://redirect.github.com/jdx) in [#​7304](https://redirect.github.com/jdx/mise/pull/7304) - include full tool ID in download track by [@​jdx](https://redirect.github.com/jdx) in [#​7320](https://redirect.github.com/jdx/mise/pull/7320) ##### 📚 Documentation - Switch `postinstall` code to be shell-agnostic by [@​thejcannon](https://redirect.github.com/thejcannon) in [#​7317](https://redirect.github.com/jdx/mise/pull/7317) ##### 🧪 Testing - **(e2e)** disable debug mode by default for windows-e2e by [@​jdx](https://redirect.github.com/jdx) in [#​7318](https://redirect.github.com/jdx/mise/pull/7318) ##### New Contributors - [@​fu050409](https://redirect.github.com/fu050409) made their first contribution in [#​7213](https://redirect.github.com/jdx/mise/pull/7213)
--- ### Configuration 📅 **Schedule**: Branch creation - "before 4am on monday" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/bench.yml | 4 ++-- .github/workflows/check.yml | 4 ++-- .github/workflows/release.yml | 4 ++-- .github/workflows/test-release.yml | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index 267acfca..9f528067 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -10,7 +10,7 @@ jobs: - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - uses: jdx/mise-action@146a28175021df8ca24f8ee1828cc2a60f980bd5 # v3.5.1 with: - version: v2025.12.7 - sha256: 59fb463dbcbebc3d4b51690865b8b9ea1f80707fddbf008bcd071aee7079daa3 + version: v2025.12.12 + sha256: 9dc747b7baed63f74dc3c729f0f825201b585035944e8fff3e255d5124b10960 - name: Random actions test run: mise run random-actions diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index b24d809b..f60cac5d 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -10,7 +10,7 @@ jobs: - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - uses: jdx/mise-action@146a28175021df8ca24f8ee1828cc2a60f980bd5 # v3.5.1 with: - version: v2025.12.7 - sha256: 59fb463dbcbebc3d4b51690865b8b9ea1f80707fddbf008bcd071aee7079daa3 + version: v2025.12.12 + sha256: 9dc747b7baed63f74dc3c729f0f825201b585035944e8fff3e255d5124b10960 - name: Check all run: mise run ci diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d79f256f..ae0d6a99 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,8 +14,8 @@ jobs: - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - uses: jdx/mise-action@146a28175021df8ca24f8ee1828cc2a60f980bd5 # v3.5.1 with: - version: v2025.12.7 - sha256: 59fb463dbcbebc3d4b51690865b8b9ea1f80707fddbf008bcd071aee7079daa3 + version: v2025.12.12 + sha256: 9dc747b7baed63f74dc3c729f0f825201b585035944e8fff3e255d5124b10960 - name: Use Node.js ${{ env.node_version }} uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6 with: diff --git a/.github/workflows/test-release.yml b/.github/workflows/test-release.yml index 40bafdf0..15778c4c 100644 --- a/.github/workflows/test-release.yml +++ b/.github/workflows/test-release.yml @@ -10,8 +10,8 @@ jobs: - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - uses: jdx/mise-action@146a28175021df8ca24f8ee1828cc2a60f980bd5 # v3.5.1 with: - version: v2025.12.7 - sha256: 59fb463dbcbebc3d4b51690865b8b9ea1f80707fddbf008bcd071aee7079daa3 + version: v2025.12.12 + sha256: 9dc747b7baed63f74dc3c729f0f825201b585035944e8fff3e255d5124b10960 - name: Test server release run: mise run build-remote-server - name: Test client release From 99cc9ff8b74eee356138d1220620d507e80bb4c8 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 22 Dec 2025 13:41:22 +0000 Subject: [PATCH 061/189] Update Rust crate serde_json to v1.0.146 (#394) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [serde_json](https://redirect.github.com/serde-rs/json) | dependencies | patch | `1.0.145` -> `1.0.146` | --- ### Release Notes
serde-rs/json (serde_json) ### [`v1.0.146`](https://redirect.github.com/serde-rs/json/releases/tag/v1.0.146) [Compare Source](https://redirect.github.com/serde-rs/json/compare/v1.0.145...v1.0.146) - Set fast\_arithmetic=64 for riscv64 ([#​1305](https://redirect.github.com/serde-rs/json/issues/1305), thanks [@​Xeonacid](https://redirect.github.com/Xeonacid))
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- Cargo.lock | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index f271e69a..703deb35 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1852,9 +1852,9 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.145" +version = "1.0.146" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "402a6f66d8c709116cf22f558eab210f5a50187f702eb4d7e5ef38d9a7f1c79c" +checksum = "217ca874ae0207aac254aa02c957ded05585a90892cc8d87f9e5fa49669dadd8" dependencies = [ "itoa", "memchr", From 48f2a40b873a1368279b42465ac215dc9e7b9530 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 24 Dec 2025 01:48:40 +0000 Subject: [PATCH 062/189] Update Rust crate serde_json to v1.0.147 (#395) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [serde_json](https://redirect.github.com/serde-rs/json) | dependencies | patch | `1.0.146` -> `1.0.147` | --- ### Release Notes
serde-rs/json (serde_json) ### [`v1.0.147`](https://redirect.github.com/serde-rs/json/releases/tag/v1.0.147) [Compare Source](https://redirect.github.com/serde-rs/json/compare/v1.0.146...v1.0.147) - Switch float-to-string algorithm from Ryū to Żmij for better f32 and f64 serialization performance ([#​1304](https://redirect.github.com/serde-rs/json/issues/1304))
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- Cargo.lock | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 703deb35..332174bd 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1852,15 +1852,15 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.146" +version = "1.0.147" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "217ca874ae0207aac254aa02c957ded05585a90892cc8d87f9e5fa49669dadd8" +checksum = "6af14725505314343e673e9ecb7cd7e8a36aa9791eb936235a3567cc31447ae4" dependencies = [ "itoa", "memchr", - "ryu", "serde", "serde_core", + "zmij", ] [[package]] @@ -2754,3 +2754,9 @@ dependencies = [ "quote", "syn 2.0.104", ] + +[[package]] +name = "zmij" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9e404bcd8afdaf006e529269d3e85a743f9480c3cef60034d77860d02964f3ba" From ce10e4d1b75c2444732e8aa5290c08d9185bd0a4 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 27 Dec 2025 09:57:59 +0000 Subject: [PATCH 063/189] Update Rust crate serde_json to v1.0.148 (#396) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [serde_json](https://redirect.github.com/serde-rs/json) | dependencies | patch | `1.0.147` -> `1.0.148` | --- ### Release Notes
serde-rs/json (serde_json) ### [`v1.0.148`](https://redirect.github.com/serde-rs/json/releases/tag/v1.0.148) [Compare Source](https://redirect.github.com/serde-rs/json/compare/v1.0.147...v1.0.148) - Update `zmij` dependency to 1.0
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- Cargo.lock | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 332174bd..13ca88f7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1852,9 +1852,9 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.147" +version = "1.0.148" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6af14725505314343e673e9ecb7cd7e8a36aa9791eb936235a3567cc31447ae4" +checksum = "3084b546a1dd6289475996f182a22aba973866ea8e8b02c51d9f46b1336a22da" dependencies = [ "itoa", "memchr", @@ -2757,6 +2757,6 @@ dependencies = [ [[package]] name = "zmij" -version = "0.1.7" +version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9e404bcd8afdaf006e529269d3e85a743f9480c3cef60034d77860d02964f3ba" +checksum = "e6d6085d62852e35540689d1f97ad663e3971fc19cf5eceab364d62c646ea167" From 60da33afa5550a47c5e38734f9bbe0315cff512d Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 3 Jan 2026 12:39:27 +0000 Subject: [PATCH 064/189] Update Rust crate tokio to v1.49.0 (#397) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [tokio](https://tokio.rs) ([source](https://redirect.github.com/tokio-rs/tokio)) | dependencies | minor | `1.48.0` → `1.49.0` | --- ### Release Notes
tokio-rs/tokio (tokio) ### [`v1.49.0`](https://redirect.github.com/tokio-rs/tokio/releases/tag/tokio-1.49.0): Tokio v1.49.0 [Compare Source](https://redirect.github.com/tokio-rs/tokio/compare/tokio-1.48.0...tokio-1.49.0) ### 1.49.0 (January 3rd, 2026) ##### Added - net: add support for `TCLASS` option on IPv6 ([#​7781]) - runtime: stabilize `runtime::id::Id` ([#​7125]) - task: implement `Extend` for `JoinSet` ([#​7195]) - task: stabilize the `LocalSet::id()` ([#​7776]) ##### Changed - net: deprecate `{TcpStream,TcpSocket}::set_linger` ([#​7752]) ##### Fixed - macros: fix the hygiene issue of `join!` and `try_join!` ([#​7766]) - runtime: revert "replace manual vtable definitions with Wake" ([#​7699]) - sync: return `TryRecvError::Disconnected` from `Receiver::try_recv` after `Receiver::close` ([#​7686]) - task: remove unnecessary trait bounds on the `Debug` implementation ([#​7720]) ##### Unstable - fs: handle `EINTR` in `fs::write` for io-uring ([#​7786]) - fs: support io-uring with `tokio::fs::read` ([#​7696]) - runtime: disable io-uring on `EPERM` ([#​7724]) - time: add alternative timer for better multicore scalability ([#​7467]) ##### Documented - docs: fix a typos in `bounded.rs` and `park.rs` ([#​7817]) - io: add `SyncIoBridge` cross-references to `copy` and `copy_buf` ([#​7798]) - io: doc that `AsyncWrite` does not inherit from `std::io::Write` ([#​7705]) - metrics: clarify that `num_alive_tasks` is not strongly consistent ([#​7614]) - net: clarify the cancellation safety of the `TcpStream::peek` ([#​7305]) - net: clarify the drop behavior of `unix::OwnedWriteHalf` ([#​7742]) - net: clarify the platform-dependent backlog in `TcpSocket` docs ([#​7738]) - runtime: mention `LocalRuntime` in `new_current_thread` docs ([#​7820]) - sync: add missing period to `mpsc::Sender::try_send` docs ([#​7721]) - sync: clarify the cancellation safety of `oneshot::Receiver` ([#​7780]) - sync: improve the docs for the `errors` of mpsc ([#​7722]) - task: add example for `spawn_local` usage on local runtime ([#​7689]) [#​7125]: https://redirect.github.com/tokio-rs/tokio/pull/7125 [#​7195]: https://redirect.github.com/tokio-rs/tokio/pull/7195 [#​7305]: https://redirect.github.com/tokio-rs/tokio/pull/7305 [#​7467]: https://redirect.github.com/tokio-rs/tokio/pull/7467 [#​7614]: https://redirect.github.com/tokio-rs/tokio/pull/7614 [#​7686]: https://redirect.github.com/tokio-rs/tokio/pull/7686 [#​7689]: https://redirect.github.com/tokio-rs/tokio/pull/7689 [#​7696]: https://redirect.github.com/tokio-rs/tokio/pull/7696 [#​7699]: https://redirect.github.com/tokio-rs/tokio/pull/7699 [#​7705]: https://redirect.github.com/tokio-rs/tokio/pull/7705 [#​7720]: https://redirect.github.com/tokio-rs/tokio/pull/7720 [#​7721]: https://redirect.github.com/tokio-rs/tokio/pull/7721 [#​7722]: https://redirect.github.com/tokio-rs/tokio/pull/7722 [#​7724]: https://redirect.github.com/tokio-rs/tokio/pull/7724 [#​7738]: https://redirect.github.com/tokio-rs/tokio/pull/7738 [#​7742]: https://redirect.github.com/tokio-rs/tokio/pull/7742 [#​7752]: https://redirect.github.com/tokio-rs/tokio/pull/7752 [#​7766]: https://redirect.github.com/tokio-rs/tokio/pull/7766 [#​7776]: https://redirect.github.com/tokio-rs/tokio/pull/7776 [#​7780]: https://redirect.github.com/tokio-rs/tokio/pull/7780 [#​7781]: https://redirect.github.com/tokio-rs/tokio/pull/7781 [#​7786]: https://redirect.github.com/tokio-rs/tokio/pull/7786 [#​7798]: https://redirect.github.com/tokio-rs/tokio/pull/7798 [#​7817]: https://redirect.github.com/tokio-rs/tokio/pull/7817 [#​7820]: https://redirect.github.com/tokio-rs/tokio/pull/7820
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- Cargo.lock | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 13ca88f7..2ca5dd10 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2117,9 +2117,9 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" [[package]] name = "tokio" -version = "1.48.0" +version = "1.49.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ff360e02eab121e0bc37a2d3b4d4dc622e6eda3a8e5253d5435ecf5bd4c68408" +checksum = "72a2903cd7736441aac9df9d7688bd0ce48edccaadf181c3b90be801e81d3d86" dependencies = [ "bytes", "libc", From af0da9d6c6896a7e4beba93f27f9b98ebbd36eb4 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 6 Jan 2026 17:58:47 +0000 Subject: [PATCH 065/189] Update Rust crate serde_json to v1.0.149 (#399) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [serde_json](https://redirect.github.com/serde-rs/json) | dependencies | patch | `1.0.148` → `1.0.149` | --- ### Release Notes
serde-rs/json (serde_json) ### [`v1.0.149`](https://redirect.github.com/serde-rs/json/releases/tag/v1.0.149) [Compare Source](https://redirect.github.com/serde-rs/json/compare/v1.0.148...v1.0.149) - Align arbitrary\_precision number strings with zmij's formatting ([#​1306](https://redirect.github.com/serde-rs/json/issues/1306), thanks [@​b41sh](https://redirect.github.com/b41sh))
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- Cargo.lock | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 2ca5dd10..377e1564 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1852,9 +1852,9 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.148" +version = "1.0.149" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3084b546a1dd6289475996f182a22aba973866ea8e8b02c51d9f46b1336a22da" +checksum = "83fc039473c5595ace860d8c4fafa220ff474b3fc6bfdb4293327f1a37e94d86" dependencies = [ "itoa", "memchr", From e8c91c4a4e0c59a23e76843a13c831c3b371cb0c Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 6 Jan 2026 22:09:02 +0000 Subject: [PATCH 066/189] Update dependency mise to v2025.12.13 (#398) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Update | Change | |---|---|---| | [mise](https://redirect.github.com/jdx/mise) | patch | `v2025.12.12` → `v2025.12.13` | --- ### Release Notes
jdx/mise (mise) ### [`v2025.12.13`](https://redirect.github.com/jdx/mise/releases/tag/v2025.12.13) [Compare Source](https://redirect.github.com/jdx/mise/compare/v2025.12.12...v2025.12.13) ##### 🚀 Features - **(ruby)** set PKG\_CONFIG\_PATH for native gem extensions by [@​jdx](https://redirect.github.com/jdx) in [#​7457](https://redirect.github.com/jdx/mise/pull/7457) - **(tera)** add haiku() function for random name generation by [@​jdx](https://redirect.github.com/jdx) in [#​7399](https://redirect.github.com/jdx/mise/pull/7399) - **(vfox)** pass tool options to EnvKeys hook by [@​jdx](https://redirect.github.com/jdx) in [#​7447](https://redirect.github.com/jdx/mise/pull/7447) - implement independent versioning for subcrates by [@​jdx](https://redirect.github.com/jdx) in [#​7402](https://redirect.github.com/jdx/mise/pull/7402) - Move iTerm to OSC9;4 supported terminals by [@​Maks3w](https://redirect.github.com/Maks3w) in [#​7485](https://redirect.github.com/jdx/mise/pull/7485) ##### 🐛 Bug Fixes - **(ci)** improve GHA cache efficiency and fix registry-ci bug by [@​jdx](https://redirect.github.com/jdx) in [#​7404](https://redirect.github.com/jdx/mise/pull/7404) - **(ci)** use !cancelled() instead of always() for registry-ci by [@​jdx](https://redirect.github.com/jdx) in [#​7435](https://redirect.github.com/jdx/mise/pull/7435) - **(ci)** bump taiki-e/install-action 2.61.10 to 2.65.5 by [@​kvokka](https://redirect.github.com/kvokka) in [#​7496](https://redirect.github.com/jdx/mise/pull/7496) - **(e2e)** use explicit asdf backend for zprint in plugin\_install test by [@​jdx](https://redirect.github.com/jdx) in [#​7440](https://redirect.github.com/jdx/mise/pull/7440) - **(github)** use GITHUB\_TOKEN for attestation verification by [@​jdx](https://redirect.github.com/jdx) in [#​7446](https://redirect.github.com/jdx/mise/pull/7446) - **(go)** filter out go pre-release versions in ls-remote by [@​roele](https://redirect.github.com/roele) in [#​7488](https://redirect.github.com/jdx/mise/pull/7488) - **(hooks)** revert per-tool hook execution by [@​just-be-dev](https://redirect.github.com/just-be-dev) in [#​7509](https://redirect.github.com/jdx/mise/pull/7509) - **(release)** sync subcrate versions and use YYYY.MM.0 calver by [@​jdx](https://redirect.github.com/jdx) in [#​7516](https://redirect.github.com/jdx/mise/pull/7516) - **(schema)** add shell\_alias definition by [@​anp](https://redirect.github.com/anp) in [#​7441](https://redirect.github.com/jdx/mise/pull/7441) - **(schema)** add prepare config by [@​risu729](https://redirect.github.com/risu729) in [#​7497](https://redirect.github.com/jdx/mise/pull/7497) - **(test)** update backend\_arg test to use clojure instead of poetry by [@​jdx](https://redirect.github.com/jdx) in [#​7436](https://redirect.github.com/jdx/mise/pull/7436) - use vfox backend for poetry and fix related tests by [@​jdx](https://redirect.github.com/jdx) in [#​7445](https://redirect.github.com/jdx/mise/pull/7445) ##### 📚 Documentation - **(prepare)** add all source files to sources by [@​risu729](https://redirect.github.com/risu729) in [#​7498](https://redirect.github.com/jdx/mise/pull/7498) - add link to COPR package page for Fedora/RHEL by [@​jdx](https://redirect.github.com/jdx) in [bc8ac73](https://redirect.github.com/jdx/mise/commit/bc8ac732e3bdecfd12affd7b8c54cdebcdb87da1) - improve installation documentation by [@​jdx](https://redirect.github.com/jdx) in [#​7403](https://redirect.github.com/jdx/mise/pull/7403) - add comprehensive glossary by [@​jdx](https://redirect.github.com/jdx) in [#​7401](https://redirect.github.com/jdx/mise/pull/7401) - use `mise run` uniformly in its examples by [@​muzimuzhi](https://redirect.github.com/muzimuzhi) in [#​7444](https://redirect.github.com/jdx/mise/pull/7444) - update source file for asset autodetection by [@​muzimuzhi](https://redirect.github.com/muzimuzhi) in [#​7513](https://redirect.github.com/jdx/mise/pull/7513) ##### 🧪 Testing - **(ci)** validate GitHub token from pool with API call by [@​jdx](https://redirect.github.com/jdx) in [#​7459](https://redirect.github.com/jdx/mise/pull/7459) - rename duplicate 'ci' job names for clarity by [@​jdx](https://redirect.github.com/jdx) in [#​7398](https://redirect.github.com/jdx/mise/pull/7398) - add token pool integration for rate limit distribution by [@​jdx](https://redirect.github.com/jdx) in [#​7397](https://redirect.github.com/jdx/mise/pull/7397) ##### 📦️ Dependency Updates - replace dependency [@​tsconfig/node18](https://redirect.github.com/tsconfig/node18) with [@​tsconfig/node20](https://redirect.github.com/tsconfig/node20) by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​7450](https://redirect.github.com/jdx/mise/pull/7450) - pin rui314/setup-mold action to [`725a879`](https://redirect.github.com/jdx/mise/commit/725a879) by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​7449](https://redirect.github.com/jdx/mise/pull/7449) ##### 📦 Registry - add github backend for swiftformat by [@​jdx](https://redirect.github.com/jdx) in [#​7396](https://redirect.github.com/jdx/mise/pull/7396) - use pipx backend for azure-cli by [@​jdx](https://redirect.github.com/jdx) in [#​7406](https://redirect.github.com/jdx/mise/pull/7406) - use pipx backend for dvc by [@​jdx](https://redirect.github.com/jdx) in [#​7413](https://redirect.github.com/jdx/mise/pull/7413) - add github backend for zprint by [@​jdx](https://redirect.github.com/jdx) in [#​7410](https://redirect.github.com/jdx/mise/pull/7410) - use gem backend for cocoapods by [@​jdx](https://redirect.github.com/jdx) in [#​7411](https://redirect.github.com/jdx/mise/pull/7411) - use pipx backend for gallery-dl by [@​jdx](https://redirect.github.com/jdx) in [#​7409](https://redirect.github.com/jdx/mise/pull/7409) - add aqua backends for HashiCorp tools by [@​jdx](https://redirect.github.com/jdx) in [#​7408](https://redirect.github.com/jdx/mise/pull/7408) - use npm backend for danger-js by [@​jdx](https://redirect.github.com/jdx) in [#​7407](https://redirect.github.com/jdx/mise/pull/7407) - use pipx backend for pipenv by [@​jdx](https://redirect.github.com/jdx) in [#​7415](https://redirect.github.com/jdx/mise/pull/7415) - use pipx backend for poetry by [@​jdx](https://redirect.github.com/jdx) in [#​7416](https://redirect.github.com/jdx/mise/pull/7416) - add github backend for xcodegen ([github:yonaskolb/XcodeGen](https://redirect.github.com/yonaskolb/XcodeGen)) by [@​jdx](https://redirect.github.com/jdx) in [#​7417](https://redirect.github.com/jdx/mise/pull/7417) - use npm backend for heroku by [@​jdx](https://redirect.github.com/jdx) in [#​7418](https://redirect.github.com/jdx/mise/pull/7418) - add aqua backend for setup-envtest by [@​jdx](https://redirect.github.com/jdx) in [#​7421](https://redirect.github.com/jdx/mise/pull/7421) - add github backend for xcresultparser ([github:a7ex/xcresultparser](https://redirect.github.com/a7ex/xcresultparser)) by [@​jdx](https://redirect.github.com/jdx) in [#​7422](https://redirect.github.com/jdx/mise/pull/7422) - add aqua backend for tomcat by [@​jdx](https://redirect.github.com/jdx) in [#​7423](https://redirect.github.com/jdx/mise/pull/7423) - use npm backend for serverless by [@​jdx](https://redirect.github.com/jdx) in [#​7424](https://redirect.github.com/jdx/mise/pull/7424) - add github backend for daytona ([github:daytonaio/daytona](https://redirect.github.com/daytonaio/daytona)) by [@​jdx](https://redirect.github.com/jdx) in [#​7412](https://redirect.github.com/jdx/mise/pull/7412) - add github backend for flyway ([github:flyway/flyway](https://redirect.github.com/flyway/flyway)) by [@​jdx](https://redirect.github.com/jdx) in [#​7414](https://redirect.github.com/jdx/mise/pull/7414) - add github backend for schemacrawler ([github:schemacrawler/SchemaCrawler](https://redirect.github.com/schemacrawler/SchemaCrawler)) by [@​jdx](https://redirect.github.com/jdx) in [#​7419](https://redirect.github.com/jdx/mise/pull/7419) - add github backend for codeql by [@​jdx](https://redirect.github.com/jdx) in [#​7420](https://redirect.github.com/jdx/mise/pull/7420) - use pipx backend for mitmproxy by [@​jdx](https://redirect.github.com/jdx) in [#​7425](https://redirect.github.com/jdx/mise/pull/7425) - use pipx backend for sshuttle by [@​jdx](https://redirect.github.com/jdx) in [#​7426](https://redirect.github.com/jdx/mise/pull/7426) - add github backend for quarkus by [@​jdx](https://redirect.github.com/jdx) in [#​7428](https://redirect.github.com/jdx/mise/pull/7428) - add github backend for smithy by [@​jdx](https://redirect.github.com/jdx) in [#​7430](https://redirect.github.com/jdx/mise/pull/7430) - add github backend for xchtmlreport ([github:XCTestHTMLReport/XCTestHTMLReport](https://redirect.github.com/XCTestHTMLReport/XCTestHTMLReport)) by [@​jdx](https://redirect.github.com/jdx) in [#​7431](https://redirect.github.com/jdx/mise/pull/7431) - add github backend for grails by [@​jdx](https://redirect.github.com/jdx) in [#​7429](https://redirect.github.com/jdx/mise/pull/7429) - use npm backend for esy by [@​jdx](https://redirect.github.com/jdx) in [#​7434](https://redirect.github.com/jdx/mise/pull/7434) - add github backend for micronaut by [@​jdx](https://redirect.github.com/jdx) in [#​7433](https://redirect.github.com/jdx/mise/pull/7433) - add github backend for dome by [@​jdx](https://redirect.github.com/jdx) in [#​7432](https://redirect.github.com/jdx/mise/pull/7432) - use vfox backend for poetry by [@​jdx](https://redirect.github.com/jdx) in [#​7438](https://redirect.github.com/jdx/mise/pull/7438) - add vfox backend for pipenv by [@​jdx](https://redirect.github.com/jdx) in [#​7439](https://redirect.github.com/jdx/mise/pull/7439) - use github backend for xchtmlreport by [@​jdx](https://redirect.github.com/jdx) in [#​7442](https://redirect.github.com/jdx/mise/pull/7442) - use npm backend for purty by [@​jdx](https://redirect.github.com/jdx) in [#​7443](https://redirect.github.com/jdx/mise/pull/7443) - add micromamba tool definition by [@​x9xhack](https://redirect.github.com/x9xhack) in [#​7475](https://redirect.github.com/jdx/mise/pull/7475) - add github backend for rumdl by [@​kvokka](https://redirect.github.com/kvokka) in [#​7494](https://redirect.github.com/jdx/mise/pull/7494) - add github backend for ty by [@​kvokka](https://redirect.github.com/kvokka) in [#​7495](https://redirect.github.com/jdx/mise/pull/7495) - add kopia by [@​ldrouard](https://redirect.github.com/ldrouard) in [#​7501](https://redirect.github.com/jdx/mise/pull/7501) - add d2 by [@​icholy](https://redirect.github.com/icholy) in [#​7514](https://redirect.github.com/jdx/mise/pull/7514) ##### Chore - **(docker)** add Node LTS to mise Docker image by [@​jdx](https://redirect.github.com/jdx) in [#​7405](https://redirect.github.com/jdx/mise/pull/7405) - rename mise-tools to mise-versions by [@​jdx](https://redirect.github.com/jdx) in [ab3e1b8](https://redirect.github.com/jdx/mise/commit/ab3e1b8e64c2aa881c43af7636d6b492c6001e6f) - s/mise task/mise tasks/g in docs and tests by [@​muzimuzhi](https://redirect.github.com/muzimuzhi) in [#​7400](https://redirect.github.com/jdx/mise/pull/7400) - update singular/plural forms for word "task" by [@​muzimuzhi](https://redirect.github.com/muzimuzhi) in [#​7448](https://redirect.github.com/jdx/mise/pull/7448) ##### New Contributors - [@​icholy](https://redirect.github.com/icholy) made their first contribution in [#​7514](https://redirect.github.com/jdx/mise/pull/7514) - [@​Maks3w](https://redirect.github.com/Maks3w) made their first contribution in [#​7485](https://redirect.github.com/jdx/mise/pull/7485) - [@​muzimuzhi](https://redirect.github.com/muzimuzhi) made their first contribution in [#​7513](https://redirect.github.com/jdx/mise/pull/7513) - [@​just-be-dev](https://redirect.github.com/just-be-dev) made their first contribution in [#​7509](https://redirect.github.com/jdx/mise/pull/7509) - [@​kvokka](https://redirect.github.com/kvokka) made their first contribution in [#​7495](https://redirect.github.com/jdx/mise/pull/7495) - [@​x9xhack](https://redirect.github.com/x9xhack) made their first contribution in [#​7475](https://redirect.github.com/jdx/mise/pull/7475) - [@​anp](https://redirect.github.com/anp) made their first contribution in [#​7441](https://redirect.github.com/jdx/mise/pull/7441)
--- ### Configuration 📅 **Schedule**: Branch creation - "before 4am on monday" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/bench.yml | 4 ++-- .github/workflows/check.yml | 4 ++-- .github/workflows/release.yml | 4 ++-- .github/workflows/test-release.yml | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index 9f528067..24d059ab 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -10,7 +10,7 @@ jobs: - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - uses: jdx/mise-action@146a28175021df8ca24f8ee1828cc2a60f980bd5 # v3.5.1 with: - version: v2025.12.12 - sha256: 9dc747b7baed63f74dc3c729f0f825201b585035944e8fff3e255d5124b10960 + version: v2025.12.13 + sha256: 2134c55725d08547cddc921f84ddac05c9de1700115c32817563435072cae5ed - name: Random actions test run: mise run random-actions diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index f60cac5d..282411b5 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -10,7 +10,7 @@ jobs: - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - uses: jdx/mise-action@146a28175021df8ca24f8ee1828cc2a60f980bd5 # v3.5.1 with: - version: v2025.12.12 - sha256: 9dc747b7baed63f74dc3c729f0f825201b585035944e8fff3e255d5124b10960 + version: v2025.12.13 + sha256: 2134c55725d08547cddc921f84ddac05c9de1700115c32817563435072cae5ed - name: Check all run: mise run ci diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ae0d6a99..f1e88402 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,8 +14,8 @@ jobs: - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - uses: jdx/mise-action@146a28175021df8ca24f8ee1828cc2a60f980bd5 # v3.5.1 with: - version: v2025.12.12 - sha256: 9dc747b7baed63f74dc3c729f0f825201b585035944e8fff3e255d5124b10960 + version: v2025.12.13 + sha256: 2134c55725d08547cddc921f84ddac05c9de1700115c32817563435072cae5ed - name: Use Node.js ${{ env.node_version }} uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6 with: diff --git a/.github/workflows/test-release.yml b/.github/workflows/test-release.yml index 15778c4c..8a00af15 100644 --- a/.github/workflows/test-release.yml +++ b/.github/workflows/test-release.yml @@ -10,8 +10,8 @@ jobs: - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - uses: jdx/mise-action@146a28175021df8ca24f8ee1828cc2a60f980bd5 # v3.5.1 with: - version: v2025.12.12 - sha256: 9dc747b7baed63f74dc3c729f0f825201b585035944e8fff3e255d5124b10960 + version: v2025.12.13 + sha256: 2134c55725d08547cddc921f84ddac05c9de1700115c32817563435072cae5ed - name: Test server release run: mise run build-remote-server - name: Test client release From 3c2fe8dc4a9dcefffbff229c664d60285e079055 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 12 Jan 2026 01:20:23 +0000 Subject: [PATCH 067/189] Update dependency mise to v2026 (#400) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Update | Change | |---|---|---| | [mise](https://redirect.github.com/jdx/mise) | major | `v2025.12.13` → `v2026.1.1` | --- ### Release Notes
jdx/mise (mise) ### [`v2026.1.1`](https://redirect.github.com/jdx/mise/releases/tag/v2026.1.1) [Compare Source](https://redirect.github.com/jdx/mise/compare/v2026.1.0...v2026.1.1) ##### 🚀 Features - **(config)** add .miserc.toml for early initialization settings by [@​jdx](https://redirect.github.com/jdx) in [#​7596](https://redirect.github.com/jdx/mise/pull/7596) - allow to include tasks from git repositories by [@​vmaleze](https://redirect.github.com/vmaleze) in [#​7582](https://redirect.github.com/jdx/mise/pull/7582) ##### 🐛 Bug Fixes - **(config)** mise use writes to lowest precedence config file by [@​jdx](https://redirect.github.com/jdx) in [#​7598](https://redirect.github.com/jdx/mise/pull/7598) - **(python)** sort miniconda versions by conda version instead of version string by [@​jdx](https://redirect.github.com/jdx) in [#​7595](https://redirect.github.com/jdx/mise/pull/7595) - Rust channel updates installing twice by [@​x9xhack](https://redirect.github.com/x9xhack) in [#​7565](https://redirect.github.com/jdx/mise/pull/7565) - use Bearer instead of token in authorization headers by [@​risu729](https://redirect.github.com/risu729) in [#​7593](https://redirect.github.com/jdx/mise/pull/7593) ##### 📚 Documentation - **(url-replacements)** document auth behaviour with url replacements by [@​risu729](https://redirect.github.com/risu729) in [#​7592](https://redirect.github.com/jdx/mise/pull/7592) - correct spelling in walkthrough.md by [@​tomhoover](https://redirect.github.com/tomhoover) in [#​7581](https://redirect.github.com/jdx/mise/pull/7581) ##### 📦 Registry - Revert "fix(registry): fix biome test to handle version prefix" by [@​risu729](https://redirect.github.com/risu729) in [#​7586](https://redirect.github.com/jdx/mise/pull/7586) - use aqua backend for ty by [@​risu729](https://redirect.github.com/risu729) in [#​7539](https://redirect.github.com/jdx/mise/pull/7539) - update opencode's org from sst to anomalyco by [@​graelo](https://redirect.github.com/graelo) in [#​7594](https://redirect.github.com/jdx/mise/pull/7594) ##### New Contributors - [@​graelo](https://redirect.github.com/graelo) made their first contribution in [#​7594](https://redirect.github.com/jdx/mise/pull/7594) - [@​tomhoover](https://redirect.github.com/tomhoover) made their first contribution in [#​7581](https://redirect.github.com/jdx/mise/pull/7581) - [@​vmaleze](https://redirect.github.com/vmaleze) made their first contribution in [#​7582](https://redirect.github.com/jdx/mise/pull/7582) ### [`v2026.1.0`](https://redirect.github.com/jdx/mise/releases/tag/v2026.1.0) [Compare Source](https://redirect.github.com/jdx/mise/compare/v2025.12.13...v2026.1.0) ##### 🚀 Features - **(hooks)** add tool context env vars to postinstall hooks by [@​jdx](https://redirect.github.com/jdx) in [#​7521](https://redirect.github.com/jdx/mise/pull/7521) - **(sops)** support standard SOPS environment variables by [@​yordis](https://redirect.github.com/yordis) in [#​7461](https://redirect.github.com/jdx/mise/pull/7461) - **(tasks)** Add disable\_spec\_from\_run\_scripts setting by [@​iamkroot](https://redirect.github.com/iamkroot) in [#​7471](https://redirect.github.com/jdx/mise/pull/7471) - **(tasks)** Add task\_show\_full\_cmd setting by [@​iamkroot](https://redirect.github.com/iamkroot) in [#​7344](https://redirect.github.com/jdx/mise/pull/7344) - **(tasks)** enable naked task completions and ::: separator by [@​jdx](https://redirect.github.com/jdx) in [#​7524](https://redirect.github.com/jdx/mise/pull/7524) - add Forgejo backend by [@​roele](https://redirect.github.com/roele) in [#​7469](https://redirect.github.com/jdx/mise/pull/7469) - override node bundled npm by specified version of npm by [@​risu729](https://redirect.github.com/risu729) in [#​7559](https://redirect.github.com/jdx/mise/pull/7559) ##### 🐛 Bug Fixes - **(aqua)** fix tree-sitter bin path regression by [@​risu729](https://redirect.github.com/risu729) in [#​7535](https://redirect.github.com/jdx/mise/pull/7535) - **(ci)** exclude subcrate tags from release workflow by [@​jdx](https://redirect.github.com/jdx) in [#​7517](https://redirect.github.com/jdx/mise/pull/7517) - **(e2e)** remove hardcoded year from version check by [@​jdx](https://redirect.github.com/jdx) in [#​7584](https://redirect.github.com/jdx/mise/pull/7584) - **(github)** asset matcher does not handle mixed archive/binary assets properly by [@​roele](https://redirect.github.com/roele) in [#​7566](https://redirect.github.com/jdx/mise/pull/7566) - **(github)** prioritize .zip on windows by [@​risu729](https://redirect.github.com/risu729) in [#​7568](https://redirect.github.com/jdx/mise/pull/7568) - **(github)** prefer .zip over non-archive extensions on linux by [@​risu729](https://redirect.github.com/risu729) in [#​7587](https://redirect.github.com/jdx/mise/pull/7587) - **(npm)** always use hoisted installs of bun by [@​sushichan044](https://redirect.github.com/sushichan044) in [#​7542](https://redirect.github.com/jdx/mise/pull/7542) - **(npm)** suppress NPM\_CONFIG\_UPDATE\_NOTIFIER by [@​risu729](https://redirect.github.com/risu729) in [#​7556](https://redirect.github.com/jdx/mise/pull/7556) - **(registry)** fix biome test to handle version prefix by [@​jdx](https://redirect.github.com/jdx) in [#​7585](https://redirect.github.com/jdx/mise/pull/7585) - **(tasks)** load monorepo task dirs without config by [@​matixlol](https://redirect.github.com/matixlol) in [#​7478](https://redirect.github.com/jdx/mise/pull/7478) - force reshim when windows\_shim\_mode is hardlink by [@​roele](https://redirect.github.com/roele) in [#​7537](https://redirect.github.com/jdx/mise/pull/7537) - simple .tar files are not extracted properly by [@​roele](https://redirect.github.com/roele) in [#​7567](https://redirect.github.com/jdx/mise/pull/7567) - quiet kerl update output by [@​iloveitaly](https://redirect.github.com/iloveitaly) in [#​7467](https://redirect.github.com/jdx/mise/pull/7467) ##### 📚 Documentation - **(registry)** remove ubi backend from preferred backends list by [@​risu729](https://redirect.github.com/risu729) in [#​7555](https://redirect.github.com/jdx/mise/pull/7555) - **(tasks)** remove advanced usage specs sections from toml-tasks.md by [@​risu729](https://redirect.github.com/risu729) in [#​7538](https://redirect.github.com/jdx/mise/pull/7538) - fix invalid config section `[aliases]` by [@​muzimuzhi](https://redirect.github.com/muzimuzhi) in [#​7518](https://redirect.github.com/jdx/mise/pull/7518) - Fix path to GitLab backend source by [@​henrebotha](https://redirect.github.com/henrebotha) in [#​7529](https://redirect.github.com/jdx/mise/pull/7529) - Fix path to GitLab backend source by [@​henrebotha](https://redirect.github.com/henrebotha) in [#​7531](https://redirect.github.com/jdx/mise/pull/7531) - update `mise --version` output by [@​muzimuzhi](https://redirect.github.com/muzimuzhi) in [#​7530](https://redirect.github.com/jdx/mise/pull/7530) ##### 🧪 Testing - **(win)** use pester in backend tests by [@​risu729](https://redirect.github.com/risu729) in [#​7536](https://redirect.github.com/jdx/mise/pull/7536) - update e2e tests to use `[tool_alias]` instead of `[alias]` by [@​muzimuzhi](https://redirect.github.com/muzimuzhi) in [#​7520](https://redirect.github.com/jdx/mise/pull/7520) ##### 📦️ Dependency Updates - update alpine:edge docker digest to [`ea71a03`](https://redirect.github.com/jdx/mise/commit/ea71a03) by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​7545](https://redirect.github.com/jdx/mise/pull/7545) - update docker/setup-buildx-action digest to [`8d2750c`](https://redirect.github.com/jdx/mise/commit/8d2750c) by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​7546](https://redirect.github.com/jdx/mise/pull/7546) - update ghcr.io/jdx/mise:copr docker digest to [`23f4277`](https://redirect.github.com/jdx/mise/commit/23f4277) by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​7548](https://redirect.github.com/jdx/mise/pull/7548) - update ghcr.io/jdx/mise:alpine docker digest to [`0adc211`](https://redirect.github.com/jdx/mise/commit/0adc211) by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​7547](https://redirect.github.com/jdx/mise/pull/7547) - lock file maintenance by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​7211](https://redirect.github.com/jdx/mise/pull/7211) - lock file maintenance by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​7572](https://redirect.github.com/jdx/mise/pull/7572) - replace dependency [@​tsconfig/node18](https://redirect.github.com/tsconfig/node18) with [@​tsconfig/node20](https://redirect.github.com/tsconfig/node20) by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​7543](https://redirect.github.com/jdx/mise/pull/7543) - replace dependency [@​tsconfig/node20](https://redirect.github.com/tsconfig/node20) with [@​tsconfig/node22](https://redirect.github.com/tsconfig/node22) by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​7544](https://redirect.github.com/jdx/mise/pull/7544) ##### 📦 Registry - add zarf by [@​joonas](https://redirect.github.com/joonas) in [#​7525](https://redirect.github.com/jdx/mise/pull/7525) - update aws-vault to maintained fork by [@​h3y6e](https://redirect.github.com/h3y6e) in [#​7527](https://redirect.github.com/jdx/mise/pull/7527) - fix claude backend http for windows-x64 by [@​granstrand](https://redirect.github.com/granstrand) in [#​7540](https://redirect.github.com/jdx/mise/pull/7540) - add sqlc by [@​phm07](https://redirect.github.com/phm07) in [#​7570](https://redirect.github.com/jdx/mise/pull/7570) - use spm backend for swift-package-list by [@​risu729](https://redirect.github.com/risu729) in [#​7569](https://redirect.github.com/jdx/mise/pull/7569) - add npm (npm:npm) by [@​risu729](https://redirect.github.com/risu729) in [#​7557](https://redirect.github.com/jdx/mise/pull/7557) - add github backend for tmux by [@​ll-nick](https://redirect.github.com/ll-nick) in [#​7472](https://redirect.github.com/jdx/mise/pull/7472) ##### Chore - **(release)** update Changelog for v2025.12.13 by [@​muzimuzhi](https://redirect.github.com/muzimuzhi) in [#​7522](https://redirect.github.com/jdx/mise/pull/7522) ##### New Contributors - [@​ll-nick](https://redirect.github.com/ll-nick) made their first contribution in [#​7472](https://redirect.github.com/jdx/mise/pull/7472) - [@​sushichan044](https://redirect.github.com/sushichan044) made their first contribution in [#​7542](https://redirect.github.com/jdx/mise/pull/7542) - [@​phm07](https://redirect.github.com/phm07) made their first contribution in [#​7570](https://redirect.github.com/jdx/mise/pull/7570) - [@​granstrand](https://redirect.github.com/granstrand) made their first contribution in [#​7540](https://redirect.github.com/jdx/mise/pull/7540) - [@​h3y6e](https://redirect.github.com/h3y6e) made their first contribution in [#​7527](https://redirect.github.com/jdx/mise/pull/7527) - [@​matixlol](https://redirect.github.com/matixlol) made their first contribution in [#​7478](https://redirect.github.com/jdx/mise/pull/7478)
--- ### Configuration 📅 **Schedule**: Branch creation - "before 4am on monday" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/bench.yml | 4 ++-- .github/workflows/check.yml | 4 ++-- .github/workflows/release.yml | 4 ++-- .github/workflows/test-release.yml | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index 24d059ab..964f0c2e 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -10,7 +10,7 @@ jobs: - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - uses: jdx/mise-action@146a28175021df8ca24f8ee1828cc2a60f980bd5 # v3.5.1 with: - version: v2025.12.13 - sha256: 2134c55725d08547cddc921f84ddac05c9de1700115c32817563435072cae5ed + version: v2026.1.1 + sha256: 986e4630dfdfaae41d09c0317507e252c7403d72839fc66844b534c120a3dc57 - name: Random actions test run: mise run random-actions diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 282411b5..9c13be34 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -10,7 +10,7 @@ jobs: - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - uses: jdx/mise-action@146a28175021df8ca24f8ee1828cc2a60f980bd5 # v3.5.1 with: - version: v2025.12.13 - sha256: 2134c55725d08547cddc921f84ddac05c9de1700115c32817563435072cae5ed + version: v2026.1.1 + sha256: 986e4630dfdfaae41d09c0317507e252c7403d72839fc66844b534c120a3dc57 - name: Check all run: mise run ci diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f1e88402..1bbbbf56 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,8 +14,8 @@ jobs: - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - uses: jdx/mise-action@146a28175021df8ca24f8ee1828cc2a60f980bd5 # v3.5.1 with: - version: v2025.12.13 - sha256: 2134c55725d08547cddc921f84ddac05c9de1700115c32817563435072cae5ed + version: v2026.1.1 + sha256: 986e4630dfdfaae41d09c0317507e252c7403d72839fc66844b534c120a3dc57 - name: Use Node.js ${{ env.node_version }} uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6 with: diff --git a/.github/workflows/test-release.yml b/.github/workflows/test-release.yml index 8a00af15..96557e29 100644 --- a/.github/workflows/test-release.yml +++ b/.github/workflows/test-release.yml @@ -10,8 +10,8 @@ jobs: - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - uses: jdx/mise-action@146a28175021df8ca24f8ee1828cc2a60f980bd5 # v3.5.1 with: - version: v2025.12.13 - sha256: 2134c55725d08547cddc921f84ddac05c9de1700115c32817563435072cae5ed + version: v2026.1.1 + sha256: 986e4630dfdfaae41d09c0317507e252c7403d72839fc66844b534c120a3dc57 - name: Test server release run: mise run build-remote-server - name: Test client release From d7f8043535267c0c8e32dc82dca6cc763a08081c Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 15 Jan 2026 01:17:59 +0000 Subject: [PATCH 068/189] Update Rust crate chrono to v0.4.43 (#401) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [chrono](https://redirect.github.com/chronotope/chrono) | dependencies | patch | `0.4.42` → `0.4.43` | --- ### Release Notes
chronotope/chrono (chrono) ### [`v0.4.43`](https://redirect.github.com/chronotope/chrono/releases/tag/v0.4.43): 0.4.43 [Compare Source](https://redirect.github.com/chronotope/chrono/compare/v0.4.42...v0.4.43) #### What's Changed - Install extra components for lint workflow by [@​djc](https://redirect.github.com/djc) in [#​1741](https://redirect.github.com/chronotope/chrono/pull/1741) - Upgrade windows-bindgen to 0.64 by [@​djc](https://redirect.github.com/djc) in [#​1742](https://redirect.github.com/chronotope/chrono/pull/1742) - Improve windows-bindgen setup by [@​djc](https://redirect.github.com/djc) in [#​1744](https://redirect.github.com/chronotope/chrono/pull/1744) - Drop stabilized feature doc\_auto\_cfg by [@​djc](https://redirect.github.com/djc) in [#​1745](https://redirect.github.com/chronotope/chrono/pull/1745) - Faster RFC 3339 parsing by [@​djc](https://redirect.github.com/djc) in [#​1748](https://redirect.github.com/chronotope/chrono/pull/1748) - Update windows-bindgen requirement from 0.64 to 0.65 by [@​dependabot](https://redirect.github.com/dependabot)\[bot] in [#​1751](https://redirect.github.com/chronotope/chrono/pull/1751) - add `NaiveDate::abs_diff` by [@​Kinrany](https://redirect.github.com/Kinrany) in [#​1752](https://redirect.github.com/chronotope/chrono/pull/1752) - Add feature gated defmt support. by [@​pebender](https://redirect.github.com/pebender) in [#​1747](https://redirect.github.com/chronotope/chrono/pull/1747) - Drop deny lints, eager Debug impls are a mixed blessing by [@​djc](https://redirect.github.com/djc) in [#​1753](https://redirect.github.com/chronotope/chrono/pull/1753) - chore: minor improvement for docs by [@​spuradage](https://redirect.github.com/spuradage) in [#​1756](https://redirect.github.com/chronotope/chrono/pull/1756) - Added doctest for the NaiveDate years\_since function by [@​LucasBou](https://redirect.github.com/LucasBou) in [#​1755](https://redirect.github.com/chronotope/chrono/pull/1755) - Prepare 0.4.43 by [@​djc](https://redirect.github.com/djc) in [#​1765](https://redirect.github.com/chronotope/chrono/pull/1765) - Update copyright year to 2026 in LICENSE.txt by [@​taozui472](https://redirect.github.com/taozui472) in [#​1767](https://redirect.github.com/chronotope/chrono/pull/1767)
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- Cargo.lock | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 377e1564..1c964cf8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -263,9 +263,9 @@ checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724" [[package]] name = "chrono" -version = "0.4.42" +version = "0.4.43" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "145052bdd345b87320e369255277e3fb5152762ad123a901ef5c262dd38fe8d2" +checksum = "fac4744fb15ae8337dc853fee7fb3f4e48c0fbaa23d0afe49c447b4fab126118" dependencies = [ "iana-time-zone", "js-sys", From b9f26ab74a8774e0e43197e60fd313f92009707f Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 17 Jan 2026 03:38:32 +0000 Subject: [PATCH 069/189] Update actions/setup-node digest to 6044e13 (#402) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [actions/setup-node](https://redirect.github.com/actions/setup-node) ([changelog](https://redirect.github.com/actions/setup-node/compare/395ad3262231945c25e8478fd5baf05154b1d79f..6044e13b5dc448c55e2357c09f80417699197238)) | action | digest | `395ad32` → `6044e13` | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1bbbbf56..1281e330 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,7 +17,7 @@ jobs: version: v2026.1.1 sha256: 986e4630dfdfaae41d09c0317507e252c7403d72839fc66844b534c120a3dc57 - name: Use Node.js ${{ env.node_version }} - uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6 + uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6 with: node-version: ${{ env.node_version }} # setting a registry enables the NODE_AUTH_TOKEN env variable where we can set an npm token. REQUIRED From c4954f9074eb35193073e5d308898551d9ceb495 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 18 Jan 2026 21:12:06 +0000 Subject: [PATCH 070/189] Update jdx/mise-action action to v3.6.0 (#403) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [jdx/mise-action](https://redirect.github.com/jdx/mise-action) | action | minor | `v3.5.1` → `v3.6.0` | --- ### Release Notes
jdx/mise-action (jdx/mise-action) ### [`v3.6.0`](https://redirect.github.com/jdx/mise-action/releases/tag/v3.6.0) [Compare Source](https://redirect.github.com/jdx/mise-action/compare/v3.5.1...v3.6.0) #### What's Changed - chore(deps): update dependency prettier to v3.7.1 by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​331](https://redirect.github.com/jdx/mise-action/pull/331) - chore(deps): update github/codeql-action digest to [`497990d`](https://redirect.github.com/jdx/mise-action/commit/497990d) by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​324](https://redirect.github.com/jdx/mise-action/pull/324) - chore(deps): update dependency typescript-eslint to v8.48.1 by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​332](https://redirect.github.com/jdx/mise-action/pull/332) - chore(deps): update dependency [@​types/handlebars](https://redirect.github.com/types/handlebars) to v4.1.0 by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​314](https://redirect.github.com/jdx/mise-action/pull/314) - chore(deps): update dependency [@​eslint/eslintrc](https://redirect.github.com/eslint/eslintrc) to v3.3.3 by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​333](https://redirect.github.com/jdx/mise-action/pull/333) - chore(deps): lock file maintenance by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​336](https://redirect.github.com/jdx/mise-action/pull/336) - chore(deps): lock file maintenance by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​338](https://redirect.github.com/jdx/mise-action/pull/338) - fix: use mise\_dir input when specified by [@​jdx](https://redirect.github.com/jdx) in [#​339](https://redirect.github.com/jdx/mise-action/pull/339) - feat: add option to disable shims in PATH by [@​jdx](https://redirect.github.com/jdx) in [#​340](https://redirect.github.com/jdx/mise-action/pull/340) - fix: pass environment variables to mise commands by [@​jdx](https://redirect.github.com/jdx) in [#​341](https://redirect.github.com/jdx/mise-action/pull/341) - chore(deps): lock file maintenance by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​344](https://redirect.github.com/jdx/mise-action/pull/344) - chore(deps): update github/codeql-action digest to [`45c3735`](https://redirect.github.com/jdx/mise-action/commit/45c3735) by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​346](https://redirect.github.com/jdx/mise-action/pull/346) - chore(deps): lock file maintenance by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​348](https://redirect.github.com/jdx/mise-action/pull/348) - chore(deps): update actions/checkout action to v6 by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​350](https://redirect.github.com/jdx/mise-action/pull/350) - chore(deps): lock file maintenance by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​352](https://redirect.github.com/jdx/mise-action/pull/352) - docs: fix description for `mise_toml` input by [@​quad](https://redirect.github.com/quad) in [#​351](https://redirect.github.com/jdx/mise-action/pull/351) - fix: make mise self-update output visible in logs by [@​nikobockerman](https://redirect.github.com/nikobockerman) in [#​355](https://redirect.github.com/jdx/mise-action/pull/355) - chore(deps): update actions/setup-node action to v6 by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​356](https://redirect.github.com/jdx/mise-action/pull/356) - chore(deps): lock file maintenance by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​358](https://redirect.github.com/jdx/mise-action/pull/358) - chore(deps): update actions/setup-node digest to [`6044e13`](https://redirect.github.com/jdx/mise-action/commit/6044e13) by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​361](https://redirect.github.com/jdx/mise-action/pull/361) - fix(cache): isolate cache keys per working\_directory in monorepos by [@​chadxz](https://redirect.github.com/chadxz) in [#​360](https://redirect.github.com/jdx/mise-action/pull/360) - chore(deps): update github/codeql-action digest to [`4bdb89f`](https://redirect.github.com/jdx/mise-action/commit/4bdb89f) by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​362](https://redirect.github.com/jdx/mise-action/pull/362) - chore(deps): update dependency [@​types/handlebars](https://redirect.github.com/types/handlebars) to v4.1.0 by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​349](https://redirect.github.com/jdx/mise-action/pull/349) - chore(deps): update actions/upload-artifact action to v6 by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​357](https://redirect.github.com/jdx/mise-action/pull/357) - chore: release v3.6.0 by [@​mise-en-dev](https://redirect.github.com/mise-en-dev) in [#​342](https://redirect.github.com/jdx/mise-action/pull/342) #### New Contributors - [@​quad](https://redirect.github.com/quad) made their first contribution in [#​351](https://redirect.github.com/jdx/mise-action/pull/351) - [@​nikobockerman](https://redirect.github.com/nikobockerman) made their first contribution in [#​355](https://redirect.github.com/jdx/mise-action/pull/355) - [@​chadxz](https://redirect.github.com/chadxz) made their first contribution in [#​360](https://redirect.github.com/jdx/mise-action/pull/360) **Full Changelog**:
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/bench.yml | 2 +- .github/workflows/check.yml | 2 +- .github/workflows/release.yml | 2 +- .github/workflows/test-release.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index 964f0c2e..4525dca6 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -8,7 +8,7 @@ jobs: steps: - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - - uses: jdx/mise-action@146a28175021df8ca24f8ee1828cc2a60f980bd5 # v3.5.1 + - uses: jdx/mise-action@c53b9236f0b3370f31520f8b142f141256d839c6 # v3.6.0 with: version: v2026.1.1 sha256: 986e4630dfdfaae41d09c0317507e252c7403d72839fc66844b534c120a3dc57 diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 9c13be34..9981e172 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -8,7 +8,7 @@ jobs: steps: - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - - uses: jdx/mise-action@146a28175021df8ca24f8ee1828cc2a60f980bd5 # v3.5.1 + - uses: jdx/mise-action@c53b9236f0b3370f31520f8b142f141256d839c6 # v3.6.0 with: version: v2026.1.1 sha256: 986e4630dfdfaae41d09c0317507e252c7403d72839fc66844b534c120a3dc57 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1281e330..71d8ae6f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - - uses: jdx/mise-action@146a28175021df8ca24f8ee1828cc2a60f980bd5 # v3.5.1 + - uses: jdx/mise-action@c53b9236f0b3370f31520f8b142f141256d839c6 # v3.6.0 with: version: v2026.1.1 sha256: 986e4630dfdfaae41d09c0317507e252c7403d72839fc66844b534c120a3dc57 diff --git a/.github/workflows/test-release.yml b/.github/workflows/test-release.yml index 96557e29..5d396d7b 100644 --- a/.github/workflows/test-release.yml +++ b/.github/workflows/test-release.yml @@ -8,7 +8,7 @@ jobs: steps: - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - - uses: jdx/mise-action@146a28175021df8ca24f8ee1828cc2a60f980bd5 # v3.5.1 + - uses: jdx/mise-action@c53b9236f0b3370f31520f8b142f141256d839c6 # v3.6.0 with: version: v2026.1.1 sha256: 986e4630dfdfaae41d09c0317507e252c7403d72839fc66844b534c120a3dc57 From 095b416ec0003544041981e1bd54ac186f1e60eb Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 19 Jan 2026 02:04:46 +0000 Subject: [PATCH 071/189] Update dependency mise to v2026.1.4 (#404) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Update | Change | |---|---|---| | [mise](https://redirect.github.com/jdx/mise) | patch | `v2026.1.1` → `v2026.1.4` | --- ### Release Notes
jdx/mise (mise) ### [`v2026.1.4`](https://redirect.github.com/jdx/mise/releases/tag/v2026.1.4) [Compare Source](https://redirect.github.com/jdx/mise/compare/v2026.1.3...v2026.1.4) This release brings significant improvements to dependency management, task execution, and backend flexibility, with a focus on reproducibility and performance. The Conda backend now supports dependency locking for reproducible installations, ensuring your environments remain consistent across machines and time. The HTTP backend has been enhanced with JSON filtering and Tera templating for more flexible version extraction from web sources. Task execution sees improvements in monorepo support and performance, while several bug fixes address deadlocks and path resolution issues. ##### Highlights **Reproducible Conda Environments** - The [Conda backend](https://mise.jdx.dev/dev-tools/backends/conda.html) now supports dependency locking ([#​7708](https://redirect.github.com/jdx/mise/pull/7708)), allowing you to freeze exact package versions for reproducible installations. This ensures your conda environments remain identical across different machines and over time, crucial for scientific computing and data analysis workflows. **Enhanced HTTP Backend** - The [HTTP backend](https://mise.jdx.dev/dev-tools/backends/http.html) gains powerful new features for version extraction ([#​7707](https://redirect.github.com/jdx/mise/pull/7707), [#​7723](https://redirect.github.com/jdx/mise/pull/7723)). You can now use JSON filter syntax to extract versions from complex API responses, and Tera templating provides flexible string manipulation. This makes it easier to integrate tools that don't follow standard versioning patterns. **Better Monorepo Task Support** - [Task execution](https://mise.jdx.dev/tasks/) in monorepos is now more flexible with explicit config root listing via `[monorepo].config_roots` ([#​7705](https://redirect.github.com/jdx/mise/pull/7705)). Task dependencies can now use environment variables ([#​7724](https://redirect.github.com/jdx/mise/pull/7724)), and path resolution for dependencies works correctly across monorepo boundaries ([#​7698](https://redirect.github.com/jdx/mise/pull/7698), [#​7699](https://redirect.github.com/jdx/mise/pull/7699)). ##### Bug Fixes - Fixed a deadlock that could occur when using venv/go backends during environment resolution ([@​stk0vrfl0w](https://redirect.github.com/stk0vrfl0w) in [#​7696](https://redirect.github.com/jdx/mise/pull/7696)) - Resolved hardcoded library paths in conda packages that prevented proper relocation ([#​7713](https://redirect.github.com/jdx/mise/pull/7713)) - Tool stubs are now properly exempted from lockfile requirements ([#​7729](https://redirect.github.com/jdx/mise/pull/7729)) - Python's `ls-remote` command now correctly sorts CPython versions at the end of the output ([#​7721](https://redirect.github.com/jdx/mise/pull/7721)) - Remote task files are now resolved before display and validation commands ([@​yannrouillard](https://redirect.github.com/yannrouillard) in [#​7681](https://redirect.github.com/jdx/mise/pull/7681)) ##### Performance Task listing performance has been restored to previous levels by fixing a caching regression ([#​7716](https://redirect.github.com/jdx/mise/pull/7716)). Users with many tasks should notice significantly faster `mise tasks` commands. ##### Registry Updates Several tools have been migrated to more reliable backends: - **Dotnet**, **Lua**, **Redis**, and **Postgres** now use vfox backends by default for better cross-platform support - **Kotlin** and **Crystal** moved to GitHub backends for direct releases - **SQLite** and **Make** now use the conda backend - **Meson** uses pipx for Python-based installation - Added Smithy support via aqua backend ([#​7661](https://redirect.github.com/jdx/mise/pull/7661)) Low-usage ASDF plugins have been removed to streamline the registry ([#​7701](https://redirect.github.com/jdx/mise/pull/7701)). ##### New Contributors Welcome to [@​yannrouillard](https://redirect.github.com/yannrouillard) and [@​stk0vrfl0w](https://redirect.github.com/stk0vrfl0w) who made their first contributions to mise! ### [`v2026.1.3`](https://redirect.github.com/jdx/mise/releases/tag/v2026.1.3) [Compare Source](https://redirect.github.com/jdx/mise/compare/vfox-v2026.1.2...v2026.1.3) This release introduces several powerful new features for mise, including private artifact storage via S3, enhanced upgrade controls, and improved hook management. We've also fixed important bugs affecting npm dependencies, GitHub authentication, and task inheritance in monorepos. ##### Highlights **S3 Backend Support** - You can now use Amazon S3 for private artifact storage, enabling secure distribution of internal tools and binaries. This is particularly useful for enterprise environments that need to host proprietary tools. See the [S3 backend documentation](https://mise.jdx.dev/backends/s3.html) for setup instructions. ([@​jdx](https://redirect.github.com/jdx), [#​7668](https://redirect.github.com/jdx/mise/pull/7668)) **Enhanced Upgrade Command** - The `mise upgrade` command now includes an `--exclude` flag to skip specific tools during bulk upgrades, and benefits from improved tab completion that shows only installed tools. This gives you more control when updating your development environment. Learn more in the [upgrade command documentation](https://mise.jdx.dev/cli/upgrade.html). ([@​jdx](https://redirect.github.com/jdx), [#​7669](https://redirect.github.com/jdx/mise/pull/7669), [#​7670](https://redirect.github.com/jdx/mise/pull/7670)) **Hook and Environment Control** - New `--no-hooks` and `--no-env` flags provide fine-grained control over mise's behavior, allowing you to skip hooks or environment variable loading when needed. This is helpful for debugging or when you need to run mise in isolation. ([@​aacebedo](https://redirect.github.com/aacebedo), [#​7560](https://redirect.github.com/jdx/mise/pull/7560)) ##### Bug Fixes - **npm circular dependencies** - Fixed an issue where mise could get stuck in a loop when npm itself was listed as a dependency ([@​AprilNEA](https://redirect.github.com/AprilNEA), [#​7644](https://redirect.github.com/jdx/mise/pull/7644)) - **GitHub authentication** - Improved token handling to properly fall back to `GITHUB_TOKEN` when accessing github.com, resolving authentication issues for private repositories ([@​subdigital](https://redirect.github.com/subdigital), [#​7667](https://redirect.github.com/jdx/mise/pull/7667), [#​7673](https://redirect.github.com/jdx/mise/pull/7673)) - **Task inheritance** - Tasks defined in parent directories are now properly inherited in monorepo setups, making it easier to share common tasks across projects ([@​chadxz](https://redirect.github.com/chadxz), [#​7643](https://redirect.github.com/jdx/mise/pull/7643)) - **vfox backend upgrades** - Fixed upgrading tools that use symlinked installations in the vfox backend ([@​TyceHerrman](https://redirect.github.com/TyceHerrman), [#​7012](https://redirect.github.com/jdx/mise/pull/7012)) - **Architecture validation** - mise now properly rejects tool downloads when the architecture doesn't match your system, preventing installation of incompatible binaries ([@​jdx](https://redirect.github.com/jdx), [#​7672](https://redirect.github.com/jdx/mise/pull/7672)) - **Self-update efficiency** - The self-update command now skips unnecessary operations when you're already on the latest version ([@​jdx](https://redirect.github.com/jdx), [#​7666](https://redirect.github.com/jdx/mise/pull/7666)) ##### Registry Updates Added support for new tools: - **oh-my-posh** - The popular cross-shell prompt theme engine ([@​scop](https://redirect.github.com/scop), [#​7659](https://redirect.github.com/jdx/mise/pull/7659)) - **bibtex-tidy** - A BibTeX file formatter and cleaner ([@​3w36zj6](https://redirect.github.com/3w36zj6), [#​7677](https://redirect.github.com/jdx/mise/pull/7677)) Also fixed the kscript configuration by removing an incorrect bin\_path option ([@​risu729](https://redirect.github.com/risu729), [#​7693](https://redirect.github.com/jdx/mise/pull/7693)). ##### New Contributors Welcome to [@​AprilNEA](https://redirect.github.com/AprilNEA), [@​opswole](https://redirect.github.com/opswole), [@​subdigital](https://redirect.github.com/subdigital), and [@​aacebedo](https://redirect.github.com/aacebedo) who made their first contributions to mise! ### [`v2026.1.2`](https://redirect.github.com/jdx/mise/releases/tag/v2026.1.2) [Compare Source](https://redirect.github.com/jdx/mise/compare/vfox-v2026.1.1...vfox-v2026.1.2) mise v2026.1.2 includes several important bug fixes and security improvements, particularly addressing version management edge cases and enhancing the tool's reliability across different scenarios. This release also strengthens our GitHub workflow security to prevent potential code execution from untrusted sources, ensuring the safety of our development process and community contributions. ##### Bug Fixes **Version Management Improvements** - Fixed an issue where pre-release versions were incorrectly included when using `latest` with `install_before` ([#​7631](https://redirect.github.com/jdx/mise/pull/7631)) - thanks to [@​koh-sh](https://redirect.github.com/koh-sh) - Enhanced version filtering to properly exclude test versions (e.g., `1.0.0-test`) from stable version lists ([#​7647](https://redirect.github.com/jdx/mise/pull/7647)) - thanks to [@​belgio99](https://redirect.github.com/belgio99) - Resolved a year-boundary bug that caused `mise self-update` to fail when crossing into a new year ([#​7611](https://redirect.github.com/jdx/mise/pull/7611)) **Backend and Asset Detection** - Added support for `.artifactbundle.zip` files in asset selection, improving compatibility with certain tool distributions ([#​7657](https://redirect.github.com/jdx/mise/pull/7657)) - thanks to [@​swizzlr](https://redirect.github.com/swizzlr) - Fixed HTTP backend to properly fallback to configuration when fetching tool options ([#​7655](https://redirect.github.com/jdx/mise/pull/7655)) - thanks to [@​roele](https://redirect.github.com/roele) **Task System** - Corrected tool inheritance behavior in [tasks](https://mise.jdx.dev/tasks/) when using intermediate parent configurations ([#​7637](https://redirect.github.com/jdx/mise/pull/7637)) - thanks to [@​chadxz](https://redirect.github.com/chadxz) ##### Security - Implemented safeguards in our GitHub workflows to prevent potential code execution from untrusted forks, enhancing the security of our development process ##### New Tools - Added support for [oha](https://redirect.github.com/hatoo/oha), a modern HTTP load testing tool ([#​7633](https://redirect.github.com/jdx/mise/pull/7633)) - thanks to [@​jylenhof](https://redirect.github.com/jylenhof) ##### New Contributors Welcome to our first-time contributors! - [@​swizzlr](https://redirect.github.com/swizzlr), [@​belgio99](https://redirect.github.com/belgio99), [@​gmalinowski](https://redirect.github.com/gmalinowski), [@​chadxz](https://redirect.github.com/chadxz), [@​shina1024](https://redirect.github.com/shina1024), [@​jonathanagustin](https://redirect.github.com/jonathanagustin), and [@​turbocrime](https://redirect.github.com/turbocrime)
--- ### Configuration 📅 **Schedule**: Branch creation - "before 4am on monday" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/bench.yml | 4 ++-- .github/workflows/check.yml | 4 ++-- .github/workflows/release.yml | 4 ++-- .github/workflows/test-release.yml | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index 4525dca6..a22c2a5b 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -10,7 +10,7 @@ jobs: - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - uses: jdx/mise-action@c53b9236f0b3370f31520f8b142f141256d839c6 # v3.6.0 with: - version: v2026.1.1 - sha256: 986e4630dfdfaae41d09c0317507e252c7403d72839fc66844b534c120a3dc57 + version: v2026.1.4 + sha256: 79c798e39b83f0dd80108eaa88c6ca63689695ae975fd6786e7a353ef9f87002 - name: Random actions test run: mise run random-actions diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 9981e172..46b1fb0f 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -10,7 +10,7 @@ jobs: - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - uses: jdx/mise-action@c53b9236f0b3370f31520f8b142f141256d839c6 # v3.6.0 with: - version: v2026.1.1 - sha256: 986e4630dfdfaae41d09c0317507e252c7403d72839fc66844b534c120a3dc57 + version: v2026.1.4 + sha256: 79c798e39b83f0dd80108eaa88c6ca63689695ae975fd6786e7a353ef9f87002 - name: Check all run: mise run ci diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 71d8ae6f..5c7ccfa9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,8 +14,8 @@ jobs: - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - uses: jdx/mise-action@c53b9236f0b3370f31520f8b142f141256d839c6 # v3.6.0 with: - version: v2026.1.1 - sha256: 986e4630dfdfaae41d09c0317507e252c7403d72839fc66844b534c120a3dc57 + version: v2026.1.4 + sha256: 79c798e39b83f0dd80108eaa88c6ca63689695ae975fd6786e7a353ef9f87002 - name: Use Node.js ${{ env.node_version }} uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6 with: diff --git a/.github/workflows/test-release.yml b/.github/workflows/test-release.yml index 5d396d7b..7209ff28 100644 --- a/.github/workflows/test-release.yml +++ b/.github/workflows/test-release.yml @@ -10,8 +10,8 @@ jobs: - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - uses: jdx/mise-action@c53b9236f0b3370f31520f8b142f141256d839c6 # v3.6.0 with: - version: v2026.1.1 - sha256: 986e4630dfdfaae41d09c0317507e252c7403d72839fc66844b534c120a3dc57 + version: v2026.1.4 + sha256: 79c798e39b83f0dd80108eaa88c6ca63689695ae975fd6786e7a353ef9f87002 - name: Test server release run: mise run build-remote-server - name: Test client release From 8e80051e7d72fd69f64898530f132cb749019c5d Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 20 Jan 2026 14:45:24 +0000 Subject: [PATCH 072/189] Update jdx/mise-action action to v3.6.1 (#405) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [jdx/mise-action](https://redirect.github.com/jdx/mise-action) | action | patch | `v3.6.0` → `v3.6.1` | --- ### Release Notes
jdx/mise-action (jdx/mise-action) ### [`v3.6.1`](https://redirect.github.com/jdx/mise-action/releases/tag/v3.6.1) [Compare Source](https://redirect.github.com/jdx/mise-action/compare/v3.6.0...v3.6.1) #### What's Changed - Revert "fix(cache): isolate cache keys per working\_directory in monorepos" by [@​jdx](https://redirect.github.com/jdx) in [#​364](https://redirect.github.com/jdx/mise-action/pull/364) - chore: release v3.6.1 by [@​mise-en-dev](https://redirect.github.com/mise-en-dev) in [#​365](https://redirect.github.com/jdx/mise-action/pull/365) **Full Changelog**:
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/bench.yml | 2 +- .github/workflows/check.yml | 2 +- .github/workflows/release.yml | 2 +- .github/workflows/test-release.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index a22c2a5b..875501bb 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -8,7 +8,7 @@ jobs: steps: - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - - uses: jdx/mise-action@c53b9236f0b3370f31520f8b142f141256d839c6 # v3.6.0 + - uses: jdx/mise-action@6d1e696aa24c1aa1bcc1adea0212707c71ab78a8 # v3.6.1 with: version: v2026.1.4 sha256: 79c798e39b83f0dd80108eaa88c6ca63689695ae975fd6786e7a353ef9f87002 diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 46b1fb0f..0274f727 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -8,7 +8,7 @@ jobs: steps: - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - - uses: jdx/mise-action@c53b9236f0b3370f31520f8b142f141256d839c6 # v3.6.0 + - uses: jdx/mise-action@6d1e696aa24c1aa1bcc1adea0212707c71ab78a8 # v3.6.1 with: version: v2026.1.4 sha256: 79c798e39b83f0dd80108eaa88c6ca63689695ae975fd6786e7a353ef9f87002 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5c7ccfa9..0d0541ee 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - - uses: jdx/mise-action@c53b9236f0b3370f31520f8b142f141256d839c6 # v3.6.0 + - uses: jdx/mise-action@6d1e696aa24c1aa1bcc1adea0212707c71ab78a8 # v3.6.1 with: version: v2026.1.4 sha256: 79c798e39b83f0dd80108eaa88c6ca63689695ae975fd6786e7a353ef9f87002 diff --git a/.github/workflows/test-release.yml b/.github/workflows/test-release.yml index 7209ff28..5ce8c4f1 100644 --- a/.github/workflows/test-release.yml +++ b/.github/workflows/test-release.yml @@ -8,7 +8,7 @@ jobs: steps: - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - - uses: jdx/mise-action@c53b9236f0b3370f31520f8b142f141256d839c6 # v3.6.0 + - uses: jdx/mise-action@6d1e696aa24c1aa1bcc1adea0212707c71ab78a8 # v3.6.1 with: version: v2026.1.4 sha256: 79c798e39b83f0dd80108eaa88c6ca63689695ae975fd6786e7a353ef9f87002 From ee2793c3373b5aabde0bec083a5c3740301989d8 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 20 Jan 2026 14:46:40 +0000 Subject: [PATCH 073/189] Update dependency cargo:wasm-pack to 0.14.0 (#406) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Update | Change | |---|---|---| | [cargo:wasm-pack](https://redirect.github.com/rustwasm/wasm-pack) | minor | `0.13.1` → `0.14.0` | --- ### Release Notes
rustwasm/wasm-pack (cargo:wasm-pack) ### [`v0.14.0`](https://redirect.github.com/rustwasm/wasm-pack/blob/HEAD/CHANGELOG.md#-0140) [Compare Source](https://redirect.github.com/rustwasm/wasm-pack/compare/v0.13.1...v0.14.0) - ### ✨ Features - **Support arbitrary wasm targets (WASI support) - [RReverser], [pull/1524]** Allows building for targets other than wasm32-unknown-unknown, enabling WASI and other custom wasm targets. [pull/1524]: https://redirect.github.com/drager/wasm-pack/pull/1524 [RReverser]: https://redirect.github.com/RReverser - **macOS ARM (aarch64-apple-darwin) build support - [kaleidawave], [pull/1529]** Adds native Apple Silicon support in release builds and NPM package. [pull/1529]: https://redirect.github.com/drager/wasm-pack/pull/1529 [kaleidawave]: https://redirect.github.com/kaleidawave - **Allow `--split-linked-modules` flag for wasm-bindgen - [codeart1st], [pull/1443]** [pull/1443]: https://redirect.github.com/drager/wasm-pack/pull/1443 [codeart1st]: https://redirect.github.com/codeart1st - **Custom build profile support - [rafaelbeckel], [pull/1428]** Allows using custom cargo profiles via `--profile`. [pull/1428]: https://redirect.github.com/drager/wasm-pack/pull/1428 [rafaelbeckel]: https://redirect.github.com/rafaelbeckel - ### 🤕 Fixes - **Fix NPM package download URL - [qinyuhang], [pull/1543]** [pull/1543]: https://redirect.github.com/drager/wasm-pack/pull/1543 [qinyuhang]: https://redirect.github.com/qinyuhang - **Filter build artifacts to only .wasm files - \[drager], [pull/1535]** [pull/1535]: https://redirect.github.com/drager/wasm-pack/pull/1535 - **Handle undefined VERSION in installer script - [BrianHung], [pull/1512]** [pull/1512]: https://redirect.github.com/drager/wasm-pack/pull/1512 [BrianHung]: https://redirect.github.com/BrianHung - **Fix it\_gets\_wasm\_bindgen\_version test - [mshroyer], [pull/1509]** [pull/1509]: https://redirect.github.com/drager/wasm-pack/pull/1509 [mshroyer]: https://redirect.github.com/mshroyer - ### 🛠️ Maintenance - **Update dependencies to latest versions - \[drager], [pull/1536]** [pull/1536]: https://redirect.github.com/drager/wasm-pack/pull/1536 - **Security workflow permissions fixes - \[drager]** - **Bump ring from 0.17.8 to 0.17.14 - [dependabot], [pull/1516]** [pull/1516]: https://redirect.github.com/drager/wasm-pack/pull/1516 - **Bump brace-expansion from 1.1.11 to 1.1.12 in /npm - [dependabot], [pull/1515]** [pull/1515]: https://redirect.github.com/drager/wasm-pack/pull/1515 - **Bump rustls from 0.23.16 to 0.23.18 - [dependabot], [pull/1451]** [pull/1451]: https://redirect.github.com/drager/wasm-pack/pull/1451 [dependabot]: https://redirect.github.com/apps/dependabot - **Fix tar vulnerability (CVE-2026-23745) in npm package** Override tar dependency to ^7.5.3 to fix arbitrary file overwrite and symlink poisoning vulnerability ([GHSA-8qq5-rm4j-mr97]). [GHSA-8qq5-rm4j-mr97]: https://redirect.github.com/advisories/GHSA-8qq5-rm4j-mr97 - **Fix axios vulnerabilities in npm package** Override axios dependency to ^0.30.0 to fix SSRF/credential leakage via absolute URL and XSRF-TOKEN leakage (CSRF) vulnerabilities. - ### 📖 Documentation - **Update documentation links to drager's repo - [yutannihilation], [pull/1513]** [pull/1513]: https://redirect.github.com/drager/wasm-pack/pull/1513 [yutannihilation]: https://redirect.github.com/yutannihilation - **Document prerequisites for webdriver tests - [mshroyer], [pull/1509]**
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- mise.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mise.toml b/mise.toml index 08cceb9c..9530beaa 100644 --- a/mise.toml +++ b/mise.toml @@ -69,6 +69,6 @@ run = "./scripts/publish-client.sh test" [tools] "cargo:cargo-nextest" = "0.9.103" "cargo:wasm-bindgen-cli" = "0.2.105" -"cargo:wasm-pack" = "0.13.1" +"cargo:wasm-pack" = "0.14.0" rust = { version = "1.92.0", targets = "wasm32-unknown-unknown", components = "clippy,rustfmt" } From 1e2f59743bffc8684a38445298b7c7be3e8f4874 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 22 Jan 2026 17:08:23 +0000 Subject: [PATCH 074/189] Update actions/checkout action to v6.0.2 (#407) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [actions/checkout](https://redirect.github.com/actions/checkout) | action | patch | `v6.0.1` → `v6.0.2` | --- ### Release Notes
actions/checkout (actions/checkout) ### [`v6.0.2`](https://redirect.github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v602) [Compare Source](https://redirect.github.com/actions/checkout/compare/v6.0.1...v6.0.2) - Fix tag handling: preserve annotations and explicit fetch-tags by [@​ericsciple](https://redirect.github.com/ericsciple) in [#​2356](https://redirect.github.com/actions/checkout/pull/2356)
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/bench.yml | 2 +- .github/workflows/check.yml | 2 +- .github/workflows/release.yml | 2 +- .github/workflows/test-release.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index 875501bb..4b36123d 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - uses: jdx/mise-action@6d1e696aa24c1aa1bcc1adea0212707c71ab78a8 # v3.6.1 with: version: v2026.1.4 diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 0274f727..5ef847f7 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - uses: jdx/mise-action@6d1e696aa24c1aa1bcc1adea0212707c71ab78a8 # v3.6.1 with: version: v2026.1.4 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0d0541ee..22347d75 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,7 +11,7 @@ jobs: release: runs-on: ubuntu-latest steps: - - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - uses: jdx/mise-action@6d1e696aa24c1aa1bcc1adea0212707c71ab78a8 # v3.6.1 with: version: v2026.1.4 diff --git a/.github/workflows/test-release.yml b/.github/workflows/test-release.yml index 5ce8c4f1..1048612b 100644 --- a/.github/workflows/test-release.yml +++ b/.github/workflows/test-release.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - uses: jdx/mise-action@6d1e696aa24c1aa1bcc1adea0212707c71ab78a8 # v3.6.1 with: version: v2026.1.4 From 1828343f11e2aae2556eaf1f4884261613e7209c Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 22 Jan 2026 17:09:25 +0000 Subject: [PATCH 075/189] Update dependency rust to v1.93.0 (#408) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Update | Change | |---|---|---| | [rust](https://redirect.github.com/rust-lang/rust) | minor | `1.92.0` → `1.93.0` | --- ### Release Notes
rust-lang/rust (rust) ### [`v1.93.0`](https://redirect.github.com/rust-lang/rust/blob/HEAD/RELEASES.md#Version-1930-2026-01-22) [Compare Source](https://redirect.github.com/rust-lang/rust/compare/1.92.0...1.93.0) \========================== ## Language - [Stabilize several s390x `vector`-related target features and the `is_s390x_feature_detected!` macro](https://redirect.github.com/rust-lang/rust/pull/145656) - [Stabilize declaration of C-style variadic functions for the `system` ABI](https://redirect.github.com/rust-lang/rust/pull/145954) - [Emit error when using some keyword as a `cfg` predicate](https://redirect.github.com/rust-lang/rust/pull/146978) - [Stabilize `asm_cfg`](https://redirect.github.com/rust-lang/rust/pull/147736) - [During const-evaluation, support copying pointers byte-by-byte](https://redirect.github.com/rust-lang/rust/pull/148259) - [LUB coercions now correctly handle function item types, and functions with differing safeties](https://redirect.github.com/rust-lang/rust/pull/148602) - [Allow `const` items that contain mutable references to `static` (which is *very* unsafe, but not *always* UB)](https://redirect.github.com/rust-lang/rust/pull/148746) - [Add warn-by-default `const_item_interior_mutations` lint to warn against calls which mutate interior mutable `const` items](https://redirect.github.com/rust-lang/rust/pull/148407) - [Add warn-by-default `function_casts_as_integer` lint](https://redirect.github.com/rust-lang/rust/pull/141470) ## Compiler - [Stabilize `-Cjump-tables=bool`](https://redirect.github.com/rust-lang/rust/pull/145974). The flag was previously called `-Zno-jump-tables`. ## Platform Support - [Promote `riscv64a23-unknown-linux-gnu` to Tier 2 (without host tools)](https://redirect.github.com/rust-lang/rust/pull/148435) Refer to Rust's [platform support page][platform-support-doc] for more information on Rust's tiered platform support. [platform-support-doc]: https://doc.rust-lang.org/rustc/platform-support.html ## Libraries - [Stop internally using `specialization` on the `Copy` trait as it is unsound in the presence of lifetime dependent `Copy` implementations. This may result in some performance regressions as some standard library APIs may now call `Clone::clone` instead of performing bitwise copies](https://redirect.github.com/rust-lang/rust/pull/135634) - [Allow the global allocator to use thread-local storage and `std::thread::current()`](https://redirect.github.com/rust-lang/rust/pull/144465) - [Make `BTree::append` not update existing keys when appending an entry which already exists](https://redirect.github.com/rust-lang/rust/pull/145628) - [Don't require `T: RefUnwindSafe` for `vec::IntoIter: UnwindSafe`](https://redirect.github.com/rust-lang/rust/pull/145665) ## Stabilized APIs - [`<[MaybeUninit]>::assume_init_drop`](https://doc.rust-lang.org/stable/core/primitive.slice.html#method.assume_init_drop) - [`<[MaybeUninit]>::assume_init_ref`](https://doc.rust-lang.org/stable/core/primitive.slice.html#method.assume_init_ref) - [`<[MaybeUninit]>::assume_init_mut`](https://doc.rust-lang.org/stable/core/primitive.slice.html#method.assume_init_mut) - [`<[MaybeUninit]>::write_copy_of_slice`](https://doc.rust-lang.org/stable/std/primitive.slice.html#method.write_copy_of_slice) - [`<[MaybeUninit]>::write_clone_of_slice`](https://doc.rust-lang.org/stable/std/primitive.slice.html#method.write_clone_of_slice) - [`String::into_raw_parts`](https://doc.rust-lang.org/stable/std/string/struct.String.html#method.into_raw_parts) - [`Vec::into_raw_parts`](https://doc.rust-lang.org/stable/std/vec/struct.Vec.html#method.into_raw_parts) - [`::unchecked_neg`](https://doc.rust-lang.org/stable/std/primitive.isize.html#method.unchecked_neg) - [`::unchecked_shl`](https://doc.rust-lang.org/stable/std/primitive.isize.html#method.unchecked_shl) - [`::unchecked_shr`](https://doc.rust-lang.org/stable/std/primitive.isize.html#method.unchecked_shr) - [`::unchecked_shl`](https://doc.rust-lang.org/stable/std/primitive.usize.html#method.unchecked_shl) - [`::unchecked_shr`](https://doc.rust-lang.org/stable/std/primitive.usize.html#method.unchecked_shr) - [`<[T]>::as_array`](https://doc.rust-lang.org/stable/std/primitive.slice.html#method.as_array) - [`<[T]>::as_array_mut`](https://doc.rust-lang.org/stable/std/primitive.slice.html#method.as_mut_array) - [`<*const [T]>::as_array`](https://doc.rust-lang.org/stable/std/primitive.pointer.html#method.as_array) - [`<*mut [T]>::as_array_mut`](https://doc.rust-lang.org/stable/std/primitive.pointer.html#method.as_mut_array) - [`VecDeque::pop_front_if`](https://doc.rust-lang.org/stable/std/collections/struct.VecDeque.html#method.pop_front_if) - [`VecDeque::pop_back_if`](https://doc.rust-lang.org/stable/std/collections/struct.VecDeque.html#method.pop_back_if) - [`Duration::from_nanos_u128`](https://doc.rust-lang.org/stable/std/time/struct.Duration.html#method.from_nanos_u128) - [`char::MAX_LEN_UTF8`](https://doc.rust-lang.org/stable/std/primitive.char.html#associatedconstant.MAX_LEN_UTF8) - [`char::MAX_LEN_UTF16`](https://doc.rust-lang.org/stable/std/primitive.char.html#associatedconstant.MAX_LEN_UTF16) - [`std::fmt::from_fn`](https://doc.rust-lang.org/stable/std/fmt/fn.from_fn.html) - [`std::fmt::FromFn`](https://doc.rust-lang.org/stable/std/fmt/struct.FromFn.html) ## Cargo - [Enable CARGO\_CFG\_DEBUG\_ASSERTIONS in build scripts based on profile](https://redirect.github.com/rust-lang/cargo/pull/16160/) - [In `cargo tree`, support long forms for `--format` variables](https://redirect.github.com/rust-lang/cargo/pull/16204/) - [Add `--workspace` to `cargo clean`](https://redirect.github.com/rust-lang/cargo/pull/16263/) ## Rustdoc - [Remove `#![doc(document_private_items)]`](https://redirect.github.com/rust-lang/rust/pull/146495) - [Include attribute and derive macros in search filters for "macros"](https://redirect.github.com/rust-lang/rust/pull/148176) - [Include extern crates in search filters for `import`](https://redirect.github.com/rust-lang/rust/pull/148301) - [Validate usage of crate-level doc attributes](https://redirect.github.com/rust-lang/rust/pull/149197). This means if any of `html_favicon_url`, `html_logo_url`, `html_playground_url`, `issue_tracker_base_url`, or `html_no_source` either has a missing value, an unexpected value, or a value of the wrong type, rustdoc will emit the deny-by-default lint `rustdoc::invalid_doc_attributes`. ## Compatibility Notes - [Introduce `pin_v2` into the builtin attributes namespace](https://redirect.github.com/rust-lang/rust/pull/139751) - [Update bundled musl to 1.2.5](https://redirect.github.com/rust-lang/rust/pull/142682) - [On Emscripten, the unwinding ABI used when compiling with `panic=unwind` was changed from the JS exception handling ABI to the wasm exception handling ABI.](https://redirect.github.com/rust-lang/rust/pull/147224) If linking C/C++ object files with Rust objects, `-fwasm-exceptions` must be passed to the linker now. On nightly Rust, it is possible to get the old behavior with `-Zwasm-emscripten-eh=false -Zbuild-std`, but it will be removed in a future release. - The `#[test]` attribute, used to define tests, was previously ignored in various places where it had no meaning (e.g on trait methods or types). Putting the `#[test]` attribute in these places is no longer ignored, and will now result in an error; this may also result in errors when generating rustdoc. [Error when `test` attribute is applied to structs](https://redirect.github.com/rust-lang/rust/pull/147841) - Cargo now sets the `CARGO_CFG_DEBUG_ASSERTIONS` environment variable in more situations. This will cause crates depending on `static-init` versions 1.0.1 to 1.0.3 to fail compilation with "failed to resolve: use of unresolved module or unlinked crate `parking_lot`". See [the linked issue](https://redirect.github.com/rust-lang/rust/issues/150646#issuecomment-3718964342) for details. - [User written types in the `offset_of!` macro are now checked to be well formed.](https://redirect.github.com/rust-lang/rust/issues/150465/) - `cargo publish` no longer emits `.crate` files as a final artifact for user access when the `build.build-dir` config is unset - [Upgrade the `deref_nullptr` lint from warn-by-default to deny-by-default](https://redirect.github.com/rust-lang/rust/pull/148122) - [Add future-incompatibility warning for `...` function parameters without a pattern outside of `extern` blocks](https://redirect.github.com/rust-lang/rust/pull/143619) - [Introduce future-compatibility warning for `repr(C)` enums whose discriminant values do not fit into a `c_int` or `c_uint`](https://redirect.github.com/rust-lang/rust/pull/147017) - [Introduce future-compatibility warning against ignoring `repr(C)` types as part of `repr(transparent)`](https://redirect.github.com/rust-lang/rust/pull/147185)
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- mise.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mise.toml b/mise.toml index 9530beaa..babe0097 100644 --- a/mise.toml +++ b/mise.toml @@ -70,5 +70,5 @@ run = "./scripts/publish-client.sh test" "cargo:cargo-nextest" = "0.9.103" "cargo:wasm-bindgen-cli" = "0.2.105" "cargo:wasm-pack" = "0.14.0" -rust = { version = "1.92.0", targets = "wasm32-unknown-unknown", components = "clippy,rustfmt" } +rust = { version = "1.93.0", targets = "wasm32-unknown-unknown", components = "clippy,rustfmt" } From 718a0a42e0069f3699405fcffccc3fb66c24d17d Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 26 Jan 2026 01:50:14 +0000 Subject: [PATCH 076/189] Update dependency mise to v2026.1.7 (#409) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Update | Change | |---|---|---| | [mise](https://redirect.github.com/jdx/mise) | patch | `v2026.1.4` → `v2026.1.7` | --- ### Release Notes
jdx/mise (mise) ### [`v2026.1.7`](https://redirect.github.com/jdx/mise/releases/tag/v2026.1.7): : Cache & Compatibility Cleanup [Compare Source](https://redirect.github.com/jdx/mise/compare/aqua-registry-v2026.1.6...v2026.1.7) This release focuses on stability improvements and compatibility fixes. The headline fix addresses a caching issue where plugin watch files weren't being properly cached, causing unnecessary re-execution of plugins when loading environment variables. We've also resolved several edge cases in tool resolution and version handling. ##### Bug Fixes - **Registry mismatch fix**: Previously installed tools now correctly resolve against the registry, fixing cases where tools installed before registry changes would fail to match properly. Thanks to [@​smorimoto](https://redirect.github.com/smorimoto) for this fix in their first contribution! [#​7773](https://redirect.github.com/jdx/mise/pull/7773) - **Environment caching improvement**: Fixed an issue where `watch_files` weren't being cached properly, causing plugins to re-execute unnecessarily when loading environment variables. This should improve performance when using plugins with file watchers. [#​7817](https://redirect.github.com/jdx/mise/pull/7817) - **GitHub tag format handling**: The GitHub backend now correctly handles tools that use the `projectname@version` tag format (e.g., `tool@v1.2.3`), expanding compatibility with more GitHub releases. [#​7788](https://redirect.github.com/jdx/mise/pull/7788) - **HashiCorp tools version detection**: Added `fromJSON` and `keys` functions to `version_expr` for the HTTP backend, fixing version detection for HashiCorp tools like sentinel, nomad-pack, and tfc-agent. [#​7816](https://redirect.github.com/jdx/mise/pull/7816) ##### Registry Additions - **claude-powerline**: A powerline prompt theme - added by [@​TyceHerrman](https://redirect.github.com/TyceHerrman) [#​7798](https://redirect.github.com/jdx/mise/pull/7798) - **rpk**: Redpanda CLI tool - added by [@​artemklevtsov](https://redirect.github.com/artemklevtsov) [#​7802](https://redirect.github.com/jdx/mise/pull/7802) ##### New Contributors Welcome to our new contributors! 🎉 - [@​smorimoto](https://redirect.github.com/smorimoto) - [@​nguyenvulong](https://redirect.github.com/nguyenvulong) ##### 📦 Aqua Registry Updates ##### New Packages (5) - [`Epistates/treemd`](https://redirect.github.com/Epistates/treemd) - [`anthropics/claude-code`](https://redirect.github.com/anthropics/claude-code) - [`k1LoW/git-wt`](https://redirect.github.com/k1LoW/git-wt) - [`odigos-io/odigos`](https://redirect.github.com/odigos-io/odigos) - [`raskell-io/hx`](https://redirect.github.com/raskell-io/hx) ##### Updated Packages (6) - [`checkmake/checkmake`](https://redirect.github.com/checkmake/checkmake) - [`gruntwork-io/terragrunt`](https://redirect.github.com/gruntwork-io/terragrunt) - [`interlynk-io/sbomqs`](https://redirect.github.com/interlynk-io/sbomqs) - [`maxpert/marmot`](https://redirect.github.com/maxpert/marmot) - [`pranshuparmar/witr`](https://redirect.github.com/pranshuparmar/witr) - [`skim-rs/skim`](https://redirect.github.com/skim-rs/skim) ### [`v2026.1.6`](https://redirect.github.com/jdx/mise/releases/tag/v2026.1.6): : Better Errors, Faster Envs [Compare Source](https://redirect.github.com/jdx/mise/compare/v2026.1.5...v2026.1.6) This release brings two significant quality-of-life improvements: enhanced error diagnostics for configuration files and a new environment caching system. When you make a typo in your `mise.toml`, you'll now get beautifully formatted error messages with precise line and column information thanks to miette diagnostics. The new environment caching feature can dramatically speed up shell activation for projects with complex environment setups. ##### Highlights **TOML Parsing Diagnostics** - Configuration errors now display with clear, contextual error messages showing exactly where the problem is in your file. No more guessing which line has the syntax error! [#​7764](https://redirect.github.com/jdx/mise/pull/7764) by [@​jdx](https://redirect.github.com/jdx) **Environment Caching** - A new caching system for environment resolution that supports module-level cacheability. This can significantly speed up `mise activate` for projects with many tools or complex configurations. [#​7761](https://redirect.github.com/jdx/mise/pull/7761) by [@​jdx](https://redirect.github.com/jdx) ##### Bug Fixes - **Auto-created venvs** now properly handle freshness checks during the prepare phase, preventing unnecessary rebuilds [#​7770](https://redirect.github.com/jdx/mise/pull/7770) by [@​jdx](https://redirect.github.com/jdx) - **Task tools** are now included in environment resolution cache checks, ensuring cache invalidation works correctly when task-specific tools change [#​7786](https://redirect.github.com/jdx/mise/pull/7786) by [@​jdx](https://redirect.github.com/jdx) - **Tool stubs** now include dependency toolset paths, fixing issues where tools couldn't find their dependencies [#​7777](https://redirect.github.com/jdx/mise/pull/7777) by [@​thejcannon](https://redirect.github.com/thejcannon) - Fixed rust lockfile inconsistency [#​7780](https://redirect.github.com/jdx/mise/pull/7780) by [@​vadimpiven](https://redirect.github.com/vadimpiven) ##### Registry Updates - Added **miller** - a powerful CSV/JSON/etc data processing tool [#​7782](https://redirect.github.com/jdx/mise/pull/7782) by [@​kit494way](https://redirect.github.com/kit494way) - Added **atlas-community** - the community edition of the Atlas database schema management tool [#​7784](https://redirect.github.com/jdx/mise/pull/7784) by [@​akanter](https://redirect.github.com/akanter) - Switched **zprint** to use the aqua backend [#​7767](https://redirect.github.com/jdx/mise/pull/7767) by [@​scop](https://redirect.github.com/scop) ##### Security - Removed an insecure registry-comment workflow from CI [#​7769](https://redirect.github.com/jdx/mise/pull/7769) by [@​jdx](https://redirect.github.com/jdx) ##### Other Changes - Improved file task field parsing with better test coverage [#​7751](https://redirect.github.com/jdx/mise/pull/7751) by [@​makp0](https://redirect.github.com/makp0) - Dropped Fedora 41 from COPR builds as it has reached end-of-life [#​7771](https://redirect.github.com/jdx/mise/pull/7771) by [@​TobiX](https://redirect.github.com/TobiX) ##### 📦 Aqua Registry Updates ##### New Packages (2) - [`cameron-martin/bazel-lsp`](https://redirect.github.com/cameron-martin/bazel-lsp) - [`micro-editor/micro`](https://redirect.github.com/micro-editor/micro) ### [`v2026.1.5`](https://redirect.github.com/jdx/mise/releases/tag/v2026.1.5): : PowerShell Joins the Party [Compare Source](https://redirect.github.com/jdx/mise/compare/v2026.1.4...v2026.1.5) This release brings PowerShell users into the mise ecosystem with full tab completion support, making mise more accessible to Windows developers and PowerShell enthusiasts everywhere. The vfox backend also receives significant upgrades with rolling release support and a new semver Lua module for smarter version sorting. File task handling gets a reliability boost with improved parsing, validation, and better error messages when unknown fields appear in task headers. Several schema and configuration fixes ensure your mise setup works more predictably across different scenarios. ##### Highlights - **PowerShell Completion Support**: Tab completion now works in PowerShell sessions, bringing the same convenient autocomplete experience that bash, zsh, and fish users enjoy. See the [shell completions documentation](https://mise.jdx.dev/installing-mise.html#shell-completions) for setup instructions. ([#​7746](https://redirect.github.com/jdx/mise/pull/7746)) by [@​jdx](https://redirect.github.com/jdx) - **Vfox Rolling Releases**: The vfox backend now supports rolling releases with checksum tracking, enabling tools that publish frequent updates without traditional version numbers. A new semver Lua module also improves version sorting accuracy. ([#​7757](https://redirect.github.com/jdx/mise/pull/7757), [#​7739](https://redirect.github.com/jdx/mise/pull/7739)) by [@​jdx](https://redirect.github.com/jdx) - **Improved File Task Parsing**: File tasks now have DRYer parsing logic and validate unknown fields in headers, catching configuration mistakes earlier with clearer error messages. ([#​7738](https://redirect.github.com/jdx/mise/pull/7738), [#​7733](https://redirect.github.com/jdx/mise/pull/7733)) by [@​makp0](https://redirect.github.com/makp0) ##### Bug Fixes - Fixed schema missing the required string variant for environment variables ([#​7734](https://redirect.github.com/jdx/mise/pull/7734)) by [@​vadimpiven](https://redirect.github.com/vadimpiven) - Fixed double forward slashes appearing in task list paths ([#​7744](https://redirect.github.com/jdx/mise/pull/7744)) by [@​collinstevens](https://redirect.github.com/collinstevens) - Fixed `{{ version }}` template variables being incorrectly processed during config load instead of being preserved for runtime evaluation ([#​7755](https://redirect.github.com/jdx/mise/pull/7755)) by [@​jdx](https://redirect.github.com/jdx) ##### New Contributors Welcome to our new contributors! 🎉 - [@​collinstevens](https://redirect.github.com/collinstevens) made their first contribution in [#​7744](https://redirect.github.com/jdx/mise/pull/7744) - [@​makp0](https://redirect.github.com/makp0) made their first contribution in [#​7738](https://redirect.github.com/jdx/mise/pull/7738) - [@​vadimpiven](https://redirect.github.com/vadimpiven) made their first contribution in [#​7734](https://redirect.github.com/jdx/mise/pull/7734) ##### 📦 Aqua Registry Updates ##### New Packages (2) - [`F1bonacc1/process-compose`](https://redirect.github.com/F1bonacc1/process-compose) - [`kkinnear/zprint`](https://redirect.github.com/kkinnear/zprint) ##### Updated Packages (1) - [`theryangeary/choose`](https://redirect.github.com/theryangeary/choose)
--- ### Configuration 📅 **Schedule**: Branch creation - "before 4am on monday" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/bench.yml | 4 ++-- .github/workflows/check.yml | 4 ++-- .github/workflows/release.yml | 4 ++-- .github/workflows/test-release.yml | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index 4b36123d..e99ebe91 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -10,7 +10,7 @@ jobs: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - uses: jdx/mise-action@6d1e696aa24c1aa1bcc1adea0212707c71ab78a8 # v3.6.1 with: - version: v2026.1.4 - sha256: 79c798e39b83f0dd80108eaa88c6ca63689695ae975fd6786e7a353ef9f87002 + version: v2026.1.7 + sha256: d98523f15392ab17909a55560244667aa81122766209b816d9a9b9585109bfea - name: Random actions test run: mise run random-actions diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 5ef847f7..49bf9e09 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -10,7 +10,7 @@ jobs: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - uses: jdx/mise-action@6d1e696aa24c1aa1bcc1adea0212707c71ab78a8 # v3.6.1 with: - version: v2026.1.4 - sha256: 79c798e39b83f0dd80108eaa88c6ca63689695ae975fd6786e7a353ef9f87002 + version: v2026.1.7 + sha256: d98523f15392ab17909a55560244667aa81122766209b816d9a9b9585109bfea - name: Check all run: mise run ci diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 22347d75..7da0ee80 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,8 +14,8 @@ jobs: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - uses: jdx/mise-action@6d1e696aa24c1aa1bcc1adea0212707c71ab78a8 # v3.6.1 with: - version: v2026.1.4 - sha256: 79c798e39b83f0dd80108eaa88c6ca63689695ae975fd6786e7a353ef9f87002 + version: v2026.1.7 + sha256: d98523f15392ab17909a55560244667aa81122766209b816d9a9b9585109bfea - name: Use Node.js ${{ env.node_version }} uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6 with: diff --git a/.github/workflows/test-release.yml b/.github/workflows/test-release.yml index 1048612b..6581ac07 100644 --- a/.github/workflows/test-release.yml +++ b/.github/workflows/test-release.yml @@ -10,8 +10,8 @@ jobs: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - uses: jdx/mise-action@6d1e696aa24c1aa1bcc1adea0212707c71ab78a8 # v3.6.1 with: - version: v2026.1.4 - sha256: 79c798e39b83f0dd80108eaa88c6ca63689695ae975fd6786e7a353ef9f87002 + version: v2026.1.7 + sha256: d98523f15392ab17909a55560244667aa81122766209b816d9a9b9585109bfea - name: Test server release run: mise run build-remote-server - name: Test client release From c750b0247fabb83557f41823cf4456005eeacefe Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 2 Feb 2026 02:22:54 +0000 Subject: [PATCH 077/189] Update dependency mise to v2026.2.0 (#410) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Update | Change | |---|---|---| | [mise](https://redirect.github.com/jdx/mise) | minor | `v2026.1.7` → `v2026.2.0` | --- ### Release Notes
jdx/mise (mise) ### [`v2026.2.0`](https://redirect.github.com/jdx/mise/releases/tag/v2026.2.0): : Lockfiles Graduate, Editor Arrives [Compare Source](https://redirect.github.com/jdx/mise/compare/v2026.1.12...v2026.2.0) This release marks a significant milestone: **lockfiles are now stable** and no longer require an experimental flag. After extensive testing and refinement, lockfiles are ready for production use, giving you reproducible builds with cryptographically verified tool versions across your team. The other headline feature is `mise edit`, a brand new interactive configuration editor that makes managing your mise setup more intuitive than ever. Just run `mise edit` and navigate your configuration with a proper editor interface. ##### Highlights - **Lockfiles are stable** — No more `MISE_EXPERIMENTAL=1` needed! Lockfiles ensure everyone on your team gets exactly the same tool versions with SHA256 verification. See the [lockfile documentation](https://mise.jdx.dev/dev-tools/mise-lock.html) for details. [#​7929](https://redirect.github.com/jdx/mise/pull/7929) - **Interactive config editor** — The new `mise edit` command launches an interactive editor for your mise configuration, making it easier to manage tools and settings. [#​7930](https://redirect.github.com/jdx/mise/pull/7930) - **Smarter task confirmation dialogs** — Task confirm prompts now support usage values, giving you more context when confirming task execution. Thanks [@​roele](https://redirect.github.com/roele)! [#​7924](https://redirect.github.com/jdx/mise/pull/7924) - **Windows shebang task support** — File tasks with shebangs are now properly discovered and executed on Windows. [#​7941](https://redirect.github.com/jdx/mise/pull/7941) ##### Performance - **Faster dependency scheduling** — Tool installation now uses Kahn's algorithm for optimal parallel dependency resolution, speeding up installs with complex dependency trees. [#​7933](https://redirect.github.com/jdx/mise/pull/7933) - **Efficient secret redaction** — Switched to Aho-Corasick algorithm for redacting secrets in output, improving performance when many secrets are configured. [#​7931](https://redirect.github.com/jdx/mise/pull/7931) ##### Bug Fixes - **PATH ordering preserved** — Fixed an issue where paths added after `mise activate` could get reordered unexpectedly. [#​7919](https://redirect.github.com/jdx/mise/pull/7919) - **Lockfile reliability** — Atomic writes prevent corruption, cache invalidation works correctly, and URL/SHA256 info is properly preserved when merging platform information. [#​7923](https://redirect.github.com/jdx/mise/pull/7923), [#​7927](https://redirect.github.com/jdx/mise/pull/7927) - **Template hash filter** — The `hash` filter in templates now uses SHA256 instead of Blake3 for broader compatibility. [#​7925](https://redirect.github.com/jdx/mise/pull/7925) - **Smarter version pruning** — `mise upgrade` now respects tracked configs when pruning old versions, preventing accidental removal of versions still in use. [#​7926](https://redirect.github.com/jdx/mise/pull/7926) - **Deterministic error output** — Failed installations are now sorted, making error messages consistent across runs. [#​7936](https://redirect.github.com/jdx/mise/pull/7936) ##### Documentation - Improved clarity on uvx and pipx dependencies — Thanks [@​ygormutti](https://redirect.github.com/ygormutti) for your first contribution! [#​7878](https://redirect.github.com/jdx/mise/pull/7878) ### [`v2026.1.12`](https://redirect.github.com/jdx/mise/releases/tag/v2026.1.12): : Monorepo Task Resolution [Compare Source](https://redirect.github.com/jdx/mise/compare/v2026.1.11...v2026.1.12) This release focuses on improving the developer experience for monorepo setups and fixing cross-platform compatibility issues. If you've been struggling with task includes in monorepos or encountering strange behavior when cloning plugins on Windows Subsystem for Linux (WSL), this update has you covered. ##### Bug Fixes - **Monorepo task includes now resolve correctly** - Task includes are now resolved relative to the config file directory rather than the current working directory. This is a significant fix for monorepo users who define tasks in nested config files and expect includes to work relative to where the config lives. ([#​7917](https://redirect.github.com/jdx/mise/pull/7917)) - **WSL git clone compatibility** - Fixed an issue where `autocrlf` settings could cause problems when cloning git repositories on WSL. Mise now explicitly disables `autocrlf` during git clone operations, preventing line-ending issues that could break plugins and tools on Windows Subsystem for Linux. ([#​7916](https://redirect.github.com/jdx/mise/pull/7916)) ##### Documentation - Added documentation for using bash array patterns with variadic arguments in tasks, making it easier to handle variable numbers of arguments in your task definitions. ([#​7914](https://redirect.github.com/jdx/mise/pull/7914)) See the [tasks documentation](https://mise.jdx.dev/tasks/) for more details. ### [`v2026.1.11`](https://redirect.github.com/jdx/mise/releases/tag/v2026.1.11): : Speed Demons and Scoped Providers [Compare Source](https://redirect.github.com/jdx/mise/compare/aqua-registry-v2026.1.9...v2026.1.11) This release focuses on performance improvements and fixing several edge cases that affected users with complex configurations. The headline changes include significant startup time reduction for `mise x` (exec) and a new consolidated manifest system that replaces the per-tool `.mise.backend` files, making tool installations cleaner and faster. Configuration management gets more flexible with support for loading `.config/miserc.toml` in local directories, and the prepare providers are now properly scoped to their defining config files—fixing issues where providers could leak between projects. ##### Highlights - **Faster `mise x` startup** - Reduced overhead when running commands through `mise x`, which should be noticeable for frequently executed commands ([#​7890](https://redirect.github.com/jdx/mise/pull/7890)) - **Consolidated backend manifest** - Tool installations now use a single manifest file instead of individual `.mise.backend` files per tool, improving both performance and disk organization ([#​7892](https://redirect.github.com/jdx/mise/pull/7892)) - **Local `.config/miserc.toml` support** - You can now place mise configuration in `.config/miserc.toml` within your project directory, following XDG conventions ([#​7896](https://redirect.github.com/jdx/mise/pull/7896)) - thanks [@​scop](https://redirect.github.com/scop)! ##### Bug Fixes - **Scoped prepare providers** - Prepare providers are now correctly scoped to their defining config file, preventing unintended interactions between projects ([#​7889](https://redirect.github.com/jdx/mise/pull/7889)) - **GitHub cache path fix** - Resolved an issue where clearing cache for GitHub backend tools used incorrect paths ([#​7907](https://redirect.github.com/jdx/mise/pull/7907)) - **macOS .app bundle support** - The GitHub backend now properly discovers binaries inside macOS `.app` bundles ([#​7885](https://redirect.github.com/jdx/mise/pull/7885)) - **Task `--help` behavior** - Running `mise run --help` now shows task info instead of trying to execute when no usage spec is defined ([#​7893](https://redirect.github.com/jdx/mise/pull/7893)) - **Task `wait_for` fixes** - Fixed issues with `wait_for` when using environment overrides, and outputs are now properly re-rendered ([#​7888](https://redirect.github.com/jdx/mise/pull/7888)) ##### vfox Improvements - Module hooks now receive the constructed environment when using `cmd.exec`, enabling more powerful plugin behavior ([#​7908](https://redirect.github.com/jdx/mise/pull/7908)) ##### Documentation - Added documentation explaining `MISE_GITLAB_TOKEN` for accessing private GitLab repositories - thanks [@​lchagnoleau](https://redirect.github.com/lchagnoleau)! ([#​7902](https://redirect.github.com/jdx/mise/pull/7902)) ##### New Contributors Welcome to our new contributors! 🎉 - [@​lchagnoleau](https://redirect.github.com/lchagnoleau) made their first contribution in [#​7902](https://redirect.github.com/jdx/mise/pull/7902) ### [`v2026.1.9`](https://redirect.github.com/jdx/mise/releases/tag/v2026.1.9): : Templates Take the Stage [Compare Source](https://redirect.github.com/jdx/mise/compare/aqua-registry-v2026.1.8...aqua-registry-v2026.1.9) This release introduces task templates, a powerful new feature for creating reusable task definitions across your projects. Combined with glob pattern support for task includes and automatic plugin installation, mise is becoming even more flexible for complex project setups. We've also added several quality-of-life improvements including better diagnostics from `mise doctor` and enhanced archive extraction capabilities. ##### Highlights **Task Templates** ([#​7873](https://redirect.github.com/jdx/mise/pull/7873)) - Define reusable task templates that can be instantiated with different parameters. This is perfect for monorepos or projects with repetitive task patterns. See the [tasks documentation](https://mise.jdx.dev/tasks/) for details. **Glob Patterns in Task Includes** ([#​7870](https://redirect.github.com/jdx/mise/pull/7870)) - You can now use glob patterns like `tasks/**/*.toml` in your `task_config.includes` setting, making it easier to organize tasks across multiple files. **Auto-install Plugins** ([#​7856](https://redirect.github.com/jdx/mise/pull/7856)) - Plugins defined in your `[plugins]` config section are now automatically installed when needed, reducing setup friction for new team members. **Backend Mismatch Warnings** ([#​7847](https://redirect.github.com/jdx/mise/pull/7847)) - `mise doctor` now warns you when a tool is installed via a different backend than what's currently configured, helping diagnose unexpected behavior. **Archive Extraction Improvements** ([#​7874](https://redirect.github.com/jdx/mise/pull/7874)) - Added `rename_exe` support for archive extraction, giving backend authors more control over how executables are named after extraction. ##### Bug Fixes - **GitHub backend**: Fixed SLSA verification to select the correct platform-matching provenance file ([#​7853](https://redirect.github.com/jdx/mise/pull/7853)) - **Go**: Filtered out invalid version "1" from available versions list ([#​7871](https://redirect.github.com/jdx/mise/pull/7871)) - **Flutter**: Fixed duplicate `-stable` suffix in download URLs ([#​7872](https://redirect.github.com/jdx/mise/pull/7872)) - **pipx**: Ensured Python minor version symlink exists for postinstall hooks ([#​7869](https://redirect.github.com/jdx/mise/pull/7869)) - **Tasks**: Fixed environment variable passing to usage parser ([#​7848](https://redirect.github.com/jdx/mise/pull/7848)) and proper `MISE_ENV` propagation with `-E` flag - **Archive extraction**: Fixed handling of archives with `./` prefixed paths ([#​7868](https://redirect.github.com/jdx/mise/pull/7868)) - **vfox-dotnet**: Fixed Windows installation issues ([#​7843](https://redirect.github.com/jdx/mise/pull/7843)) - thanks [@​prodrigues1912](https://redirect.github.com/prodrigues1912)! ##### Reverted - Task inheritance from parent configs in monorepos has been reverted ([#​7851](https://redirect.github.com/jdx/mise/pull/7851)) pending further refinement ##### Registry - Added [vercel](https://vercel.com/docs/cli) ([#​7844](https://redirect.github.com/jdx/mise/pull/7844)) - thanks [@​mikecurtis](https://redirect.github.com/mikecurtis)! - Added [mago](https://redirect.github.com/carthage-software/mago) ([#​7845](https://redirect.github.com/jdx/mise/pull/7845)) - thanks [@​scop](https://redirect.github.com/scop)! ### [`v2026.1.8`](https://redirect.github.com/jdx/mise/releases/tag/v2026.1.8): : Registry Revolution [Compare Source](https://redirect.github.com/jdx/mise/compare/v2026.1.7...aqua-registry-v2026.1.8) This release brings a significant architectural improvement to mise's registry system, splitting the monolithic `registry.toml` into individual files per tool. This refactoring makes the registry more maintainable and easier to contribute to. We've also squashed several bugs across the aqua backend, GitHub release handling, and task system. ##### Highlights - **Registry restructured**: The tool registry has been split from a single large file into one file per tool ([#​7820](https://redirect.github.com/jdx/mise/pull/7820)). This makes it much easier to add new tools and review registry changes. - **Claude now uses aqua backend**: The Claude CLI tool now defaults to the aqua backend for installation ([#​7842](https://redirect.github.com/jdx/mise/pull/7842)). ##### Bug Fixes - **Aqua backend improvements**: Fixed an issue where the lockfile wasn't being invalidated when assets didn't match the registry ([#​7830](https://redirect.github.com/jdx/mise/pull/7830)). Added helpful warnings when version tag lookups fail ([#​7831](https://redirect.github.com/jdx/mise/pull/7831)). - **GitHub backend**: Windows-specific file extensions (like `.exe` and `.zip`) are now properly deprioritized when selecting release assets on non-Windows platforms ([#​7838](https://redirect.github.com/jdx/mise/pull/7838)). This prevents accidentally downloading Windows binaries on Linux/macOS. - **Task system fixes**: Environment variables in monorepo task usage specs now resolve correctly ([#​7832](https://redirect.github.com/jdx/mise/pull/7832)). File task headers now support dotted keys and deep-merge behavior ([#​7840](https://redirect.github.com/jdx/mise/pull/7840)), giving you more flexibility in task configuration. - **`mise ls --local` fix**: Idiomatic version files (like `.node-version`) and `.tool-versions` files now properly appear in `mise ls --local` output ([#​7836](https://redirect.github.com/jdx/mise/pull/7836)). Thanks to [@​offbyone](https://redirect.github.com/offbyone) for this fix! ##### Contributors Thanks to [@​offbyone](https://redirect.github.com/offbyone) for contributing to this release! ##### 📦 Aqua Registry Updates ##### New Packages (1) - [`carthage-software/mago`](https://redirect.github.com/carthage-software/mago) ##### Updated Packages (1) - [`golangci/golangci-lint`](https://redirect.github.com/golangci/golangci-lint)
--- ### Configuration 📅 **Schedule**: Branch creation - "before 4am on monday" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/bench.yml | 4 ++-- .github/workflows/check.yml | 4 ++-- .github/workflows/release.yml | 4 ++-- .github/workflows/test-release.yml | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index e99ebe91..d6846e5b 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -10,7 +10,7 @@ jobs: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - uses: jdx/mise-action@6d1e696aa24c1aa1bcc1adea0212707c71ab78a8 # v3.6.1 with: - version: v2026.1.7 - sha256: d98523f15392ab17909a55560244667aa81122766209b816d9a9b9585109bfea + version: v2026.2.0 + sha256: 7e1cd2dc33f6ebc9f33c1911013ed92bf724cf63ece21f284aaa4b34987e5002 - name: Random actions test run: mise run random-actions diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 49bf9e09..e161ae57 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -10,7 +10,7 @@ jobs: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - uses: jdx/mise-action@6d1e696aa24c1aa1bcc1adea0212707c71ab78a8 # v3.6.1 with: - version: v2026.1.7 - sha256: d98523f15392ab17909a55560244667aa81122766209b816d9a9b9585109bfea + version: v2026.2.0 + sha256: 7e1cd2dc33f6ebc9f33c1911013ed92bf724cf63ece21f284aaa4b34987e5002 - name: Check all run: mise run ci diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7da0ee80..be22a421 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,8 +14,8 @@ jobs: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - uses: jdx/mise-action@6d1e696aa24c1aa1bcc1adea0212707c71ab78a8 # v3.6.1 with: - version: v2026.1.7 - sha256: d98523f15392ab17909a55560244667aa81122766209b816d9a9b9585109bfea + version: v2026.2.0 + sha256: 7e1cd2dc33f6ebc9f33c1911013ed92bf724cf63ece21f284aaa4b34987e5002 - name: Use Node.js ${{ env.node_version }} uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6 with: diff --git a/.github/workflows/test-release.yml b/.github/workflows/test-release.yml index 6581ac07..989cd0d3 100644 --- a/.github/workflows/test-release.yml +++ b/.github/workflows/test-release.yml @@ -10,8 +10,8 @@ jobs: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - uses: jdx/mise-action@6d1e696aa24c1aa1bcc1adea0212707c71ab78a8 # v3.6.1 with: - version: v2026.1.7 - sha256: d98523f15392ab17909a55560244667aa81122766209b816d9a9b9585109bfea + version: v2026.2.0 + sha256: 7e1cd2dc33f6ebc9f33c1911013ed92bf724cf63ece21f284aaa4b34987e5002 - name: Test server release run: mise run build-remote-server - name: Test client release From c260ad3a4a9de2c5d480833f0e282c9567af9ed5 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 6 Feb 2026 18:16:31 +0000 Subject: [PATCH 078/189] Update dependency webpack to v5.105.0 (#411) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [webpack](https://redirect.github.com/webpack/webpack) | [`5.104.1` → `5.105.0`](https://renovatebot.com/diffs/npm/webpack/5.104.1/5.105.0) | ![age](https://developer.mend.io/api/mc/badges/age/npm/webpack/5.105.0?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/webpack/5.104.1/5.105.0?slim=true) | --- ### Release Notes
webpack/webpack (webpack) ### [`v5.105.0`](https://redirect.github.com/webpack/webpack/blob/HEAD/CHANGELOG.md#51050) [Compare Source](https://redirect.github.com/webpack/webpack/compare/v5.104.1...v5.105.0) ##### Minor Changes - Allow resolving worker module by export condition name when using `new Worker()` (by [@​hai-x](https://redirect.github.com/hai-x) in [#​20353](https://redirect.github.com/webpack/webpack/pull/20353)) - Detect conditional imports to avoid compile-time linking errors for non-existent exports. (by [@​hai-x](https://redirect.github.com/hai-x) in [#​20320](https://redirect.github.com/webpack/webpack/pull/20320)) - Added the `tsconfig` option for the `resolver` options (replacement for `tsconfig-paths-webpack-plugin`). Can be `false` (disabled), `true` (use the default `tsconfig.json` file to search for it), a string path to `tsconfig.json`, or an object with `configFile` and `references` options. (by [@​alexander-akait](https://redirect.github.com/alexander-akait) in [#​20400](https://redirect.github.com/webpack/webpack/pull/20400)) - Support `import.defer()` for context modules. (by [@​ahabhgk](https://redirect.github.com/ahabhgk) in [#​20399](https://redirect.github.com/webpack/webpack/pull/20399)) - Added support for array values ​​to the `devtool` option. (by [@​hai-x](https://redirect.github.com/hai-x) in [#​20191](https://redirect.github.com/webpack/webpack/pull/20191)) - Improve rendering node built-in modules for ECMA module output. (by [@​hai-x](https://redirect.github.com/hai-x) in [#​20255](https://redirect.github.com/webpack/webpack/pull/20255)) - Unknown import.meta properties are now determined at runtime instead of being statically analyzed at compile time. (by [@​xiaoxiaojx](https://redirect.github.com/xiaoxiaojx) in [#​20312](https://redirect.github.com/webpack/webpack/pull/20312)) ##### Patch Changes - Fixed ESM default export handling for `.mjs` files in Module Federation (by [@​y-okt](https://redirect.github.com/y-okt) in [#​20189](https://redirect.github.com/webpack/webpack/pull/20189)) - Optimized `import.meta.env` handling in destructuring assignments by using cached stringified environment definitions. (by [@​xiaoxiaojx](https://redirect.github.com/xiaoxiaojx) in [#​20313](https://redirect.github.com/webpack/webpack/pull/20313)) - Respect the `stats.errorStack` option in stats output. (by [@​samarthsinh2660](https://redirect.github.com/samarthsinh2660) in [#​20258](https://redirect.github.com/webpack/webpack/pull/20258)) - Fixed a bug where declaring a `module` variable in module scope would conflict with the default `moduleArgument`. (by [@​xiaoxiaojx](https://redirect.github.com/xiaoxiaojx) in [#​20265](https://redirect.github.com/webpack/webpack/pull/20265)) - Fix VirtualUrlPlugin to set resourceData.context for proper module resolution. Previously, when context was not set, it would fallback to the virtual scheme path (e.g., `virtual:routes`), which is not a valid filesystem path, causing subsequent resolve operations to fail. (by [@​xiaoxiaojx](https://redirect.github.com/xiaoxiaojx) in [#​20390](https://redirect.github.com/webpack/webpack/pull/20390)) - Fixed Worker self-import handling to support various URL patterns (e.g., `import.meta.url`, `new URL(import.meta.url)`, `new URL(import.meta.url, import.meta.url)`, `new URL("./index.js", import.meta.url)`). Workers that resolve to the same module are now properly deduplicated, regardless of the URL syntax used. (by [@​xiaoxiaojx](https://redirect.github.com/xiaoxiaojx) in [#​20381](https://redirect.github.com/webpack/webpack/pull/20381)) - Reuse the same async entrypoint for the same Worker URL within a module to avoid circular dependency warnings when multiple Workers reference the same resource. (by [@​xiaoxiaojx](https://redirect.github.com/xiaoxiaojx) in [#​20345](https://redirect.github.com/webpack/webpack/pull/20345)) - Fixed a bug where a self-referencing dependency would have an unused export name when imported inside a web worker. (by [@​samarthsinh2660](https://redirect.github.com/samarthsinh2660) in [#​20251](https://redirect.github.com/webpack/webpack/pull/20251)) - Fix missing export generation when concatenated modules in different chunks share the same runtime in module library bundles. (by [@​hai-x](https://redirect.github.com/hai-x) in [#​20346](https://redirect.github.com/webpack/webpack/pull/20346)) - Fixed `import.meta.env.xxx` behavior: when accessing a non-existent property, it now returns empty object instead of full object at runtime. (by [@​xiaoxiaojx](https://redirect.github.com/xiaoxiaojx) in [#​20289](https://redirect.github.com/webpack/webpack/pull/20289)) - Improved parsing error reporting by adding a link to the loader documentation. (by [@​gaurav10gg](https://redirect.github.com/gaurav10gg) in [#​20244](https://redirect.github.com/webpack/webpack/pull/20244)) - Fix typescript types. (by [@​alexander-akait](https://redirect.github.com/alexander-akait) in [#​20305](https://redirect.github.com/webpack/webpack/pull/20305)) - Add declaration for unused harmony import specifier. (by [@​hai-x](https://redirect.github.com/hai-x) in [#​20286](https://redirect.github.com/webpack/webpack/pull/20286)) - Fix compressibility of modules while retaining portability. (by [@​dmichon-msft](https://redirect.github.com/dmichon-msft) in [#​20287](https://redirect.github.com/webpack/webpack/pull/20287)) - Optimize source map generation: only include `ignoreList` property when it has content, avoiding empty arrays in source maps. (by [@​xiaoxiaojx](https://redirect.github.com/xiaoxiaojx) in [#​20319](https://redirect.github.com/webpack/webpack/pull/20319)) - Preserve star exports for dependencies in ECMA module output. (by [@​hai-x](https://redirect.github.com/hai-x) in [#​20293](https://redirect.github.com/webpack/webpack/pull/20293)) - Consider asset modulem to be side-effect free. (by [@​hai-x](https://redirect.github.com/hai-x) in [#​20352](https://redirect.github.com/webpack/webpack/pull/20352)) - Avoid generating JavaScript modules for CSS exports that are not used, reducing unnecessary output and bundle size. (by [@​xiaoxiaojx](https://redirect.github.com/xiaoxiaojx) in [#​20337](https://redirect.github.com/webpack/webpack/pull/20337))
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- client/js/package-lock.json | 54 ++++++++++++++++++------------------- client/js/package.json | 2 +- 2 files changed, 28 insertions(+), 28 deletions(-) diff --git a/client/js/package-lock.json b/client/js/package-lock.json index d0a5117d..ff3e8d39 100644 --- a/client/js/package-lock.json +++ b/client/js/package-lock.json @@ -85,9 +85,9 @@ "dev": true }, "@types/node": { - "version": "25.0.3", - "resolved": "https://registry.npmjs.org/@types/node/-/node-25.0.3.tgz", - "integrity": "sha512-W609buLVRVmeW693xKfzHeIV6nJGGz98uCPfeXI1ELMLXVeKYZ9m15fAMSaUPBHYLGFsVRcMmSCksQOrZV9BYA==", + "version": "25.2.1", + "resolved": "https://registry.npmjs.org/@types/node/-/node-25.2.1.tgz", + "integrity": "sha512-CPrnr8voK8vC6eEtyRzvMpgp3VyVRhgclonE7qYi6P9sXwYb59ucfrnmFBTaP0yUi8Gk4yZg/LlTJULGxvTNsg==", "dev": true, "requires": { "undici-types": "~7.16.0" @@ -312,9 +312,9 @@ } }, "baseline-browser-mapping": { - "version": "2.9.11", - "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.9.11.tgz", - "integrity": "sha512-Sg0xJUNDU1sJNGdfGWhVHX0kkZ+HWcvmVymJbj6NSgZZmW/8S9Y2HQ5euytnIgakgxN6papOAWiwDo1ctFDcoQ==", + "version": "2.9.19", + "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.9.19.tgz", + "integrity": "sha512-ipDqC8FrAl/76p2SSWKSI+H9tFwm7vYqXQrItCuiVPt26Km0jS+NzSsBWAaBusvSbQcfJG+JitdMm+wZAgTYqg==", "dev": true }, "browserslist": { @@ -337,9 +337,9 @@ "dev": true }, "caniuse-lite": { - "version": "1.0.30001761", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001761.tgz", - "integrity": "sha512-JF9ptu1vP2coz98+5051jZ4PwQgd2ni8A+gYSN7EA7dPKIMf0pDlSUxhdmVOaV3/fYK5uWBkgSXJaRLr4+3A6g==", + "version": "1.0.30001769", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001769.tgz", + "integrity": "sha512-BCfFL1sHijQlBGWBMuJyhZUhzo7wer5sVj9hqekB/7xn0Ypy+pER/edCYQm4exbXj4WiySGp40P8UuTh6w1srg==", "dev": true }, "chrome-trace-event": { @@ -383,19 +383,19 @@ } }, "electron-to-chromium": { - "version": "1.5.267", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.267.tgz", - "integrity": "sha512-0Drusm6MVRXSOJpGbaSVgcQsuB4hEkMpHXaVstcPmhu5LIedxs1xNK/nIxmQIU/RPC0+1/o0AVZfBTkTNJOdUw==", + "version": "1.5.286", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.286.tgz", + "integrity": "sha512-9tfDXhJ4RKFNerfjdCcZfufu49vg620741MNs26a9+bhLThdB+plgMeou98CAaHu/WATj2iHOOHTp1hWtABj2A==", "dev": true }, "enhanced-resolve": { - "version": "5.18.4", - "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.18.4.tgz", - "integrity": "sha512-LgQMM4WXU3QI+SYgEc2liRgznaD5ojbmY3sb8LxyguVkIg5FxdpTkvk72te2R38/TGKxH634oLxXRGY6d7AP+Q==", + "version": "5.19.0", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.19.0.tgz", + "integrity": "sha512-phv3E1Xl4tQOShqSte26C7Fl84EwUdZsyOuSSk9qtAGyyQs2s3jJzComh+Abf4g187lUUAvH+H26omrqia2aGg==", "dev": true, "requires": { "graceful-fs": "^4.2.4", - "tapable": "^2.2.0" + "tapable": "^2.3.0" } }, "envinfo": { @@ -840,9 +840,9 @@ "dev": true }, "terser": { - "version": "5.44.1", - "resolved": "https://registry.npmjs.org/terser/-/terser-5.44.1.tgz", - "integrity": "sha512-t/R3R/n0MSwnnazuPpPNVO60LX0SKL45pyl9YlvxIdkH0Of7D5qM2EVe+yASRIlY5pZ73nclYJfNANGWPwFDZw==", + "version": "5.46.0", + "resolved": "https://registry.npmjs.org/terser/-/terser-5.46.0.tgz", + "integrity": "sha512-jTwoImyr/QbOWFFso3YoU3ik0jBBDJ6JTOQiy/J2YxVJdZCc+5u7skhNwiOR3FQIygFqVUPHl7qbbxtjW2K3Qg==", "dev": true, "requires": { "@jridgewell/source-map": "^0.3.3", @@ -881,9 +881,9 @@ } }, "watchpack": { - "version": "2.4.4", - "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.4.tgz", - "integrity": "sha512-c5EGNOiyxxV5qmTtAB7rbiXxi1ooX1pQKMLX/MIabJjRA0SJBQOjKF+KSVfHkr9U1cADPon0mRiVe/riyaiDUA==", + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.5.1.tgz", + "integrity": "sha512-Zn5uXdcFNIA1+1Ei5McRd+iRzfhENPCe7LeABkJtNulSxjma+l7ltNx55BWZkRlwRnpOgHqxnjyaDgJnNXnqzg==", "dev": true, "requires": { "glob-to-regexp": "^0.4.1", @@ -891,9 +891,9 @@ } }, "webpack": { - "version": "5.104.1", - "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.104.1.tgz", - "integrity": "sha512-Qphch25abbMNtekmEGJmeRUhLDbe+QfiWTiqpKYkpCOWY64v9eyl+KRRLmqOFA2AvKPpc9DC6+u2n76tQLBoaA==", + "version": "5.105.0", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.105.0.tgz", + "integrity": "sha512-gX/dMkRQc7QOMzgTe6KsYFM7DxeIONQSui1s0n/0xht36HvrgbxtM1xBlgx596NbpHuQU8P7QpKwrZYwUX48nw==", "dev": true, "requires": { "@types/eslint-scope": "^3.7.7", @@ -906,7 +906,7 @@ "acorn-import-phases": "^1.0.3", "browserslist": "^4.28.1", "chrome-trace-event": "^1.0.2", - "enhanced-resolve": "^5.17.4", + "enhanced-resolve": "^5.19.0", "es-module-lexer": "^2.0.0", "eslint-scope": "5.1.1", "events": "^3.2.0", @@ -919,7 +919,7 @@ "schema-utils": "^4.3.3", "tapable": "^2.3.0", "terser-webpack-plugin": "^5.3.16", - "watchpack": "^2.4.4", + "watchpack": "^2.5.1", "webpack-sources": "^3.3.3" } }, diff --git a/client/js/package.json b/client/js/package.json index a4c5d9de..6cf86022 100644 --- a/client/js/package.json +++ b/client/js/package.json @@ -18,7 +18,7 @@ "build": "webpack" }, "devDependencies": { - "webpack": "5.104.1", + "webpack": "5.105.0", "webpack-cli": "6.0.1" }, "dependencies": { From c2cb60ea192552abfc6aab3654ab06c947697a27 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 9 Feb 2026 02:11:54 +0000 Subject: [PATCH 079/189] Update dependency mise to v2026.2.7 (#412) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Update | Change | |---|---|---| | [mise](https://redirect.github.com/jdx/mise) | patch | `v2026.2.0` → `v2026.2.7` | --- ### Release Notes
jdx/mise (mise) ### [`v2026.2.7`](https://redirect.github.com/jdx/mise/releases/tag/v2026.2.7): : Windows Gets Real [Compare Source](https://redirect.github.com/jdx/mise/compare/v2026.2.6...v2026.2.7) This release brings a significant improvement for Windows users with native `.exe` shims, along with several bug fixes that improve the reliability of tool installation and version resolution. ##### Highlights **Native Windows Shims** ([#​8045](https://redirect.github.com/jdx/mise/pull/8045)) mise now generates native `.exe` shim files instead of `.cmd` batch scripts. This resolves a whole category of frustrating issues: - No more intermittent `ENOENT` errors from `spawnSync` in node - `where.exe` now correctly finds your tools - Better compatibility with package managers like npm and bun that expect real executables - Proper control flow in batch scripts The new `"exe"` mode is now the default for `windows_shim_mode`. This follows the same pattern used by Scoop, Volta, and Chocolatey. If you need to switch back, you can set `windows_shim_mode = "file"` in your settings. Thanks to [@​iki](https://redirect.github.com/iki) for helping with this. ##### Bug Fixes - **Config options preserved during CLI installs** ([#​8044](https://redirect.github.com/jdx/mise/pull/8044)) - Running `mise install tool@version` with an explicit version no longer loses tool-level config options like `postinstall` from your `mise.toml`. Registry defaults (like `uvx=false` or `pipx_args`) are also preserved when using table syntax. - **Linked versions take priority over lockfiles** ([#​8050](https://redirect.github.com/jdx/mise/pull/8050)) - Tools created with `mise link` now correctly override lockfile entries during version resolution. Previously, a lockfile pin would override your linked version, causing confusing "missing" warnings. - **Fixed duplicate entries in `ls --all-sources`** ([#​8042](https://redirect.github.com/jdx/mise/pull/8042)) - Thanks [@​roele](https://redirect.github.com/roele)! ##### Registry Updates - Switched `oxlint` to use npm backend by default ([#​8038](https://redirect.github.com/jdx/mise/pull/8038)) - Thanks [@​risu729](https://redirect.github.com/risu729)! - Added `orval` for OpenAPI client generation: `mise use orval` ([#​8051](https://redirect.github.com/jdx/mise/pull/8051)) - Thanks [@​zdunecki](https://redirect.github.com/zdunecki) for your first contribution! ### [`v2026.2.6`](https://redirect.github.com/jdx/mise/releases/tag/v2026.2.6): : Shell Expansion & Source Tracking [Compare Source](https://redirect.github.com/jdx/mise/compare/v2026.2.5...v2026.2.6) This release brings a couple of nice quality-of-life improvements alongside several bug fixes. ##### Highlights **Shell-style variable expansion in env values** ([#​8029](https://redirect.github.com/jdx/mise/pull/8029)) - You can now use shell-style variable expansion like `${VAR:-default}` and `${VAR:+alternate}` directly in your `mise.toml` environment variables. This makes it easier to set up flexible configurations without needing to drop into shell scripts. **New `--all-sources` flag for `mise ls`** ([#​8019](https://redirect.github.com/jdx/mise/pull/8019)) - Thanks to [@​TylerHillery](https://redirect.github.com/TylerHillery) for adding this flag, which shows all the sources where a tool version is defined. Useful for debugging why a particular version is being used when you have multiple config files. ##### Bug Fixes - **gem backend**: Fixed Windows support and resolved a newline issue in gem scripts ([#​8031](https://redirect.github.com/jdx/mise/pull/8031), [#​8034](https://redirect.github.com/jdx/mise/pull/8034)) - Thanks [@​my1e5](https://redirect.github.com/my1e5)! - **lockfile**: Tools are now written to the lockfile matching their source config, fixing issues where lockfile entries could get misattributed ([#​8012](https://redirect.github.com/jdx/mise/pull/8012)) - **mise ls**: Sources in `--all-sources` output are now sorted deterministically ([#​8037](https://redirect.github.com/jdx/mise/pull/8037)) - **tasks**: File tasks now auto-install tools defined in `mise.toml`, matching the behavior of inline tasks ([#​8030](https://redirect.github.com/jdx/mise/pull/8030)) ##### Security - Updated the `time` crate to 0.3.47 to address RUSTSEC-2026-0009 ([#​8026](https://redirect.github.com/jdx/mise/pull/8026)) ##### New Tools - [tirith](https://redirect.github.com/sheeki03/tirith) - Thanks [@​sheeki03](https://redirect.github.com/sheeki03)! - [mas](https://redirect.github.com/mas-cli/mas) (Mac App Store CLI) - Thanks [@​TyceHerrman](https://redirect.github.com/TyceHerrman)! ##### New Contributors Welcome to [@​sheeki03](https://redirect.github.com/sheeki03) and [@​TylerHillery](https://redirect.github.com/TylerHillery) for their first contributions! ##### 📦 Aqua Registry Updates ##### New Packages (1) - [`kubernetes-sigs/kubectl-validate`](https://redirect.github.com/kubernetes-sigs/kubectl-validate) ##### Updated Packages (6) - [`flux-iac/tofu-controller/tfctl`](https://redirect.github.com/flux-iac/tofu-controller/tfctl) - [`gogs/gogs`](https://redirect.github.com/gogs/gogs) - [`j178/prek`](https://redirect.github.com/j178/prek) - [`syncthing/syncthing`](https://redirect.github.com/syncthing/syncthing) - [`tuist/tuist`](https://redirect.github.com/tuist/tuist) - [`yaml/yamlscript`](https://redirect.github.com/yaml/yamlscript) ### [`v2026.2.5`](https://redirect.github.com/jdx/mise/releases/tag/v2026.2.5): : Lockfiles Break Free [Compare Source](https://redirect.github.com/jdx/mise/compare/v2026.2.4...v2026.2.5) This is a small maintenance release with one user-facing improvement. ##### Bug Fixes - **Lockfiles no longer require experimental mode** - You can now use `mise.lock` files without setting `experimental = true` in your configuration. Lockfiles help ensure reproducible tool versions across your team, and this change makes them accessible to everyone by default. ([#​8011](https://redirect.github.com/jdx/mise/pull/8011)) For more information on lockfiles, see the [documentation](https://mise.jdx.dev/configuration/mise-lock.html). ##### 📦 Aqua Registry Updates ##### Updated Packages (1) - [`uutils/coreutils`](https://redirect.github.com/uutils/coreutils) ### [`v2026.2.4`](https://redirect.github.com/jdx/mise/releases/tag/v2026.2.4): : Taming the Environment [Compare Source](https://redirect.github.com/jdx/mise/compare/v2026.2.3...v2026.2.4) This release focuses on fixing several edge cases in environment handling and tool management. Users working with complex environment configurations, npm package managers, and locked tool versions will find this update particularly helpful. ##### Bug Fixes - **Environment variable resolution for tool templates**: When using `env._.source` to source environment files, tool templates now correctly resolve the sourced environment variables. Previously, tool version templates that depended on sourced env vars might not have worked as expected. Thanks to [@​corymhall](https://redirect.github.com/corymhall) for this fix! [#​7895](https://redirect.github.com/jdx/mise/pull/7895) - **npm package manager dependencies**: When using mise to manage Node.js package managers (npm, yarn, pnpm, bun), mise now only declares the specifically configured package manager as a dependency rather than all of them. This prevents unnecessary dependency resolution issues. [#​7995](https://redirect.github.com/jdx/mise/pull/7995) - **Respect `use_locked_version` during upgrades**: The `mise upgrade` command now properly respects the `use_locked_version` setting when checking tracked configs. If you have this setting enabled, upgrades will now correctly use the locked versions from your config files. [#​7997](https://redirect.github.com/jdx/mise/pull/7997) - **Ignore `MISE_TOOL_VERSION` in env parsing**: Fixed an issue where the internal `MISE_TOOL_VERSION` environment variable could interfere with environment variable parsing, preventing potential conflicts in certain workflows. [#​8004](https://redirect.github.com/jdx/mise/pull/8004) ##### New Contributors Welcome to [@​corymhall](https://redirect.github.com/corymhall) who made their first contribution to mise! 🎉 ### [`v2026.2.3`](https://redirect.github.com/jdx/mise/releases/tag/v2026.2.3): : Locked and Loaded [Compare Source](https://redirect.github.com/jdx/mise/compare/vfox-v2026.2.2...v2026.2.3) This patch release fixes an important bug affecting users who use mise in locked mode with pipx, npm, cargo, or asdf backends. Previously, these backends would fail when lockfile enforcement was enabled—now they work seamlessly with your locked configurations. This release also includes a security-related dependency update and welcomes three new tools to the registry: mermaid-ascii for creating ASCII diagrams from Mermaid syntax, Godot game engine, and Julia programming language support. ##### Bug Fixes - **Locked mode now works with more backends** - Users can now use `mise install` with pipx, npm, cargo, and asdf backends when lockfile mode is enabled. Previously these backends would fail in locked mode, forcing users to disable lockfiles or use different installation methods. [#​7985](https://redirect.github.com/jdx/mise/pull/7985) ##### Security - Updated the `bytes` crate to 1.11.1 to address [RUSTSEC-2026-0007](https://rustsec.org/advisories/RUSTSEC-2026-0007.html). [#​7986](https://redirect.github.com/jdx/mise/pull/7986) ##### New Tools - **mermaid-ascii** - Generate ASCII art diagrams from Mermaid diagram syntax, great for documentation and terminal-based workflows. Thanks [@​TyceHerrman](https://redirect.github.com/TyceHerrman)! [#​7984](https://redirect.github.com/jdx/mise/pull/7984) - **godot** - The popular open-source game engine is now available via mise. Thanks [@​dmarcoux](https://redirect.github.com/dmarcoux)! [#​7989](https://redirect.github.com/jdx/mise/pull/7989) - **julia** - The Julia programming language can now be installed and managed with mise. Thanks [@​quinnj](https://redirect.github.com/quinnj)! [#​7990](https://redirect.github.com/jdx/mise/pull/7990) ##### New Contributors Welcome to our new contributors! 🎉 - [@​quinnj](https://redirect.github.com/quinnj) made their first contribution - [@​dmarcoux](https://redirect.github.com/dmarcoux) made their first contribution ##### 📦 Aqua Registry Updates ##### New Packages (2) - [`chainloop-dev/chainloop`](https://redirect.github.com/chainloop-dev/chainloop) - [`redhat.com/openshift-install`](https://redirect.github.com/redhat.com/openshift-install) ### [`v2026.2.2`](https://redirect.github.com/jdx/mise/releases/tag/v2026.2.2): : Smart Suggestions and Python UV Improvements [Compare Source](https://redirect.github.com/jdx/mise/compare/vfox-v2026.2.1...vfox-v2026.2.2) This release brings quality-of-life improvements that make mise smarter and more helpful. When you mistype a tool name, mise now suggests what you might have meant with "Did you mean?" hints, and warns you about inactive tools that might need attention. Python users will appreciate the reworked `python.uv_venv_auto` setting that gives more control over virtual environment management. ##### Highlights - **"Did you mean?" suggestions** - Mistype a tool name and mise will now suggest similar tools you might have intended, plus warn about inactive tools in your config ([#​7965](https://redirect.github.com/jdx/mise/pull/7965)) - **Reworked `python.uv_venv_auto` setting** - The UV virtual environment auto-creation behavior has been improved for better control over when and how venvs are created. See the [Python documentation](https://mise.jdx.dev/lang/python.html) for details. Thanks [@​halms](https://redirect.github.com/halms)! ([#​7905](https://redirect.github.com/jdx/mise/pull/7905)) - **Windows `mingw-w64` detection** - The asset matcher now properly detects `mingw-w64` packages for Windows, improving tool installation on Windows systems. Thanks [@​lchagnoleau](https://redirect.github.com/lchagnoleau)! ([#​7981](https://redirect.github.com/jdx/mise/pull/7981)) - **vfox plugin `download_path`** - Plugin authors can now access `download_path` in the BackendInstall context, making it easier to write plugins that need to reference downloaded files. Thanks [@​malept](https://redirect.github.com/malept)! ([#​7959](https://redirect.github.com/jdx/mise/pull/7959)) ##### Bug Fixes - **Prefer-offline mode improvements** - `hook-env` no longer attempts to fetch remote versions for uninstalled tools when running in prefer-offline mode ([#​7976](https://redirect.github.com/jdx/mise/pull/7976)) - **ETXTBSY retry** - Fixed an edge case where spawning processes could fail with "Text file busy" errors by adding automatic retries ([#​7964](https://redirect.github.com/jdx/mise/pull/7964)) - **ToolOptions comma parsing** - Tool options now properly support comma-separated values, fixing issues with complex option configurations. Thanks [@​roele](https://redirect.github.com/roele)! ([#​7971](https://redirect.github.com/jdx/mise/pull/7971)) ##### Documentation - Improved [plugin documentation](https://mise.jdx.dev/dev-tools/backends/) with better comparisons between plugin types and links to templates ([#​7962](https://redirect.github.com/jdx/mise/pull/7962)) ##### New Contributors Welcome [@​gogolok](https://redirect.github.com/gogolok) who made their first contribution with an install script typo fix! ([#​7980](https://redirect.github.com/jdx/mise/pull/7980)) ##### 📦 Aqua Registry Updates ##### New Packages (4) - [`autobrr/mkbrr`](https://redirect.github.com/autobrr/mkbrr) - [`dodobrands/Peekie`](https://redirect.github.com/dodobrands/Peekie) - [`grpc/grpc-java/protoc-gen-grpc-java`](https://redirect.github.com/grpc/grpc-java/protoc-gen-grpc-java) - [`str4d/age-plugin-yubikey`](https://redirect.github.com/str4d/age-plugin-yubikey) ##### Updated Packages (3) - [`biomejs/biome`](https://redirect.github.com/biomejs/biome) - [`rust-cross/cargo-zigbuild`](https://redirect.github.com/rust-cross/cargo-zigbuild) - [`siderolabs/talos`](https://redirect.github.com/siderolabs/talos) ### [`v2026.2.1`](https://redirect.github.com/jdx/mise/releases/tag/v2026.2.1): : Task Docs and Tool Stubs [Compare Source](https://redirect.github.com/jdx/mise/compare/v2026.2.0...vfox-v2026.2.1) ##### Highlights **Task documentation improvements** - The `mise generate task-docs` command now supports a `--index` flag and uses task names when generating multi-file documentation with `--multi`. This gives you better control over how your task documentation is organized and named. [#​7944](https://redirect.github.com/jdx/mise/pull/7944) **Tool stub generation with --lock** - You can now generate tool stubs with locked versions using `mise generate tool-stub --lock`, making it easier to pin exact tool versions in your generated stubs. [#​7948](https://redirect.github.com/jdx/mise/pull/7948) **Plugin shadowing warnings** - mise now warns you when an env plugin shadows a tool from the registry, helping you avoid confusion when a local plugin name conflicts with a well-known tool. [#​7953](https://redirect.github.com/jdx/mise/pull/7953) **Lua log module for vfox plugins** - Plugin authors can now use a dedicated logging module to output debug information, warnings, and errors from their Lua plugins. [#​7949](https://redirect.github.com/jdx/mise/pull/7949) ##### Bug Fixes - Fixed handling of `file://` URLs in the registry's `normalize_remote` function [#​7947](https://redirect.github.com/jdx/mise/pull/7947) - Fixed LuaLS warnings in vfox test fixtures and added linting [#​7946](https://redirect.github.com/jdx/mise/pull/7946) ##### Internal Changes - Unified the `deprecated_at!` macro to provide consistent deprecation warnings [#​7957](https://redirect.github.com/jdx/mise/pull/7957) *** Full documentation:
--- ### Configuration 📅 **Schedule**: Branch creation - "before 4am on monday" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/bench.yml | 4 ++-- .github/workflows/check.yml | 4 ++-- .github/workflows/release.yml | 4 ++-- .github/workflows/test-release.yml | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index d6846e5b..2ba96a70 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -10,7 +10,7 @@ jobs: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - uses: jdx/mise-action@6d1e696aa24c1aa1bcc1adea0212707c71ab78a8 # v3.6.1 with: - version: v2026.2.0 - sha256: 7e1cd2dc33f6ebc9f33c1911013ed92bf724cf63ece21f284aaa4b34987e5002 + version: v2026.2.7 + sha256: d23400ea220cfcbcd04856cf224dc6bc1a5e2a16e6c7365a433b7737c0774c23 - name: Random actions test run: mise run random-actions diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index e161ae57..3a75de53 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -10,7 +10,7 @@ jobs: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - uses: jdx/mise-action@6d1e696aa24c1aa1bcc1adea0212707c71ab78a8 # v3.6.1 with: - version: v2026.2.0 - sha256: 7e1cd2dc33f6ebc9f33c1911013ed92bf724cf63ece21f284aaa4b34987e5002 + version: v2026.2.7 + sha256: d23400ea220cfcbcd04856cf224dc6bc1a5e2a16e6c7365a433b7737c0774c23 - name: Check all run: mise run ci diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index be22a421..f033e9bc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,8 +14,8 @@ jobs: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - uses: jdx/mise-action@6d1e696aa24c1aa1bcc1adea0212707c71ab78a8 # v3.6.1 with: - version: v2026.2.0 - sha256: 7e1cd2dc33f6ebc9f33c1911013ed92bf724cf63ece21f284aaa4b34987e5002 + version: v2026.2.7 + sha256: d23400ea220cfcbcd04856cf224dc6bc1a5e2a16e6c7365a433b7737c0774c23 - name: Use Node.js ${{ env.node_version }} uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6 with: diff --git a/.github/workflows/test-release.yml b/.github/workflows/test-release.yml index 989cd0d3..c72bab24 100644 --- a/.github/workflows/test-release.yml +++ b/.github/workflows/test-release.yml @@ -10,8 +10,8 @@ jobs: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - uses: jdx/mise-action@6d1e696aa24c1aa1bcc1adea0212707c71ab78a8 # v3.6.1 with: - version: v2026.2.0 - sha256: 7e1cd2dc33f6ebc9f33c1911013ed92bf724cf63ece21f284aaa4b34987e5002 + version: v2026.2.7 + sha256: d23400ea220cfcbcd04856cf224dc6bc1a5e2a16e6c7365a433b7737c0774c23 - name: Test server release run: mise run build-remote-server - name: Test client release From de7fb70612abddd0df7096f3ece1806ad9b4d35c Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 12 Feb 2026 23:15:37 +0000 Subject: [PATCH 080/189] Update dependency rust to v1.93.1 (#413) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Update | Change | |---|---|---| | [rust](https://redirect.github.com/rust-lang/rust) | patch | `1.93.0` → `1.93.1` | --- ### Release Notes
rust-lang/rust (rust) ### [`v1.93.1`](https://redirect.github.com/rust-lang/rust/blob/HEAD/RELEASES.md#Version-1931-2026-02-12) [Compare Source](https://redirect.github.com/rust-lang/rust/compare/1.93.0...1.93.1) \=========================== - [Don't try to recover keyword as non-keyword identifier](https://redirect.github.com/rust-lang/rust/pull/150590), fixing an ICE that especially [affected rustfmt](https://redirect.github.com/rust-lang/rustfmt/issues/6739). - [Fix `clippy::panicking_unwrap` false-positive on field access with implicit deref](https://redirect.github.com/rust-lang/rust-clippy/pull/16196). - [Revert "Update wasm-related dependencies in CI"](https://redirect.github.com/rust-lang/rust/pull/152259), fixing file descriptor leaks on the `wasm32-wasip2` target.
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- mise.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mise.toml b/mise.toml index babe0097..d3b268c7 100644 --- a/mise.toml +++ b/mise.toml @@ -70,5 +70,5 @@ run = "./scripts/publish-client.sh test" "cargo:cargo-nextest" = "0.9.103" "cargo:wasm-bindgen-cli" = "0.2.105" "cargo:wasm-pack" = "0.14.0" -rust = { version = "1.93.0", targets = "wasm32-unknown-unknown", components = "clippy,rustfmt" } +rust = { version = "1.93.1", targets = "wasm32-unknown-unknown", components = "clippy,rustfmt" } From df562b9dff826b4889d76bb653727e5baf33692e Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 13 Feb 2026 18:45:10 +0000 Subject: [PATCH 081/189] Update dependency webpack to v5.105.1 (#414) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [webpack](https://redirect.github.com/webpack/webpack) | [`5.105.0` → `5.105.1`](https://renovatebot.com/diffs/npm/webpack/5.105.0/5.105.1) | ![age](https://developer.mend.io/api/mc/badges/age/npm/webpack/5.105.1?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/webpack/5.105.0/5.105.1?slim=true) | --- ### Release Notes
webpack/webpack (webpack) ### [`v5.105.1`](https://redirect.github.com/webpack/webpack/blob/HEAD/CHANGELOG.md#51051) [Compare Source](https://redirect.github.com/webpack/webpack/compare/v5.105.0...v5.105.1) ##### Patch Changes - Fix VirtualUrlPlugin Windows compatibility by sanitizing cache keys and filenames. Cache keys now use `toSafePath` to replace colons (`:`) with double underscores (`__`) and sanitize other invalid characters, ensuring compatibility with Windows filesystem restrictions. (by [@​xiaoxiaojx](https://redirect.github.com/xiaoxiaojx) in [#​20424](https://redirect.github.com/webpack/webpack/pull/20424)) - Revert part of the createRequire generation behavior for `require("node:...")` to keep compatibility with those modules exports, e.g. `const EventEmitter = require("node:events");`. (by [@​hai-x](https://redirect.github.com/hai-x) in [#​20433](https://redirect.github.com/webpack/webpack/pull/20433)) - Skip guard collection when exports-presence mode is disabled to improve parsing performance. (by [@​hai-x](https://redirect.github.com/hai-x) in [#​20433](https://redirect.github.com/webpack/webpack/pull/20433))
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- client/js/package-lock.json | 12 ++++++------ client/js/package.json | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/client/js/package-lock.json b/client/js/package-lock.json index ff3e8d39..fac98ec2 100644 --- a/client/js/package-lock.json +++ b/client/js/package-lock.json @@ -85,9 +85,9 @@ "dev": true }, "@types/node": { - "version": "25.2.1", - "resolved": "https://registry.npmjs.org/@types/node/-/node-25.2.1.tgz", - "integrity": "sha512-CPrnr8voK8vC6eEtyRzvMpgp3VyVRhgclonE7qYi6P9sXwYb59ucfrnmFBTaP0yUi8Gk4yZg/LlTJULGxvTNsg==", + "version": "25.2.3", + "resolved": "https://registry.npmjs.org/@types/node/-/node-25.2.3.tgz", + "integrity": "sha512-m0jEgYlYz+mDJZ2+F4v8D1AyQb+QzsNqRuI7xg1VQX/KlKS0qT9r1Mo16yo5F/MtifXFgaofIFsdFMox2SxIbQ==", "dev": true, "requires": { "undici-types": "~7.16.0" @@ -891,9 +891,9 @@ } }, "webpack": { - "version": "5.105.0", - "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.105.0.tgz", - "integrity": "sha512-gX/dMkRQc7QOMzgTe6KsYFM7DxeIONQSui1s0n/0xht36HvrgbxtM1xBlgx596NbpHuQU8P7QpKwrZYwUX48nw==", + "version": "5.105.1", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.105.1.tgz", + "integrity": "sha512-Gdj3X74CLJJ8zy4URmK42W7wTZUJrqL+z8nyGEr4dTN0kb3nVs+ZvjbTOqRYPD7qX4tUmwyHL9Q9K6T1seW6Yw==", "dev": true, "requires": { "@types/eslint-scope": "^3.7.7", diff --git a/client/js/package.json b/client/js/package.json index 6cf86022..6e6a4a0c 100644 --- a/client/js/package.json +++ b/client/js/package.json @@ -18,7 +18,7 @@ "build": "webpack" }, "devDependencies": { - "webpack": "5.105.0", + "webpack": "5.105.1", "webpack-cli": "6.0.1" }, "dependencies": { From afd2f5f36bfc9fd88519b75d626e3ba501fb2d72 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 15 Feb 2026 18:06:01 +0000 Subject: [PATCH 082/189] Update dependency webpack to v5.105.2 (#415) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [webpack](https://redirect.github.com/webpack/webpack) | [`5.105.1` → `5.105.2`](https://renovatebot.com/diffs/npm/webpack/5.105.1/5.105.2) | ![age](https://developer.mend.io/api/mc/badges/age/npm/webpack/5.105.2?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/webpack/5.105.1/5.105.2?slim=true) | --- ### Release Notes
webpack/webpack (webpack) ### [`v5.105.2`](https://redirect.github.com/webpack/webpack/blob/HEAD/CHANGELOG.md#51052) [Compare Source](https://redirect.github.com/webpack/webpack/compare/v5.105.1...v5.105.2) ##### Patch Changes - Fixed `WebpackPluginInstance` type regression. (by [@​alexander-akait](https://redirect.github.com/alexander-akait) in [#​20440](https://redirect.github.com/webpack/webpack/pull/20440))
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- client/js/package-lock.json | 24 ++++++++++++------------ client/js/package.json | 2 +- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/client/js/package-lock.json b/client/js/package-lock.json index fac98ec2..315cf516 100644 --- a/client/js/package-lock.json +++ b/client/js/package-lock.json @@ -282,9 +282,9 @@ "dev": true }, "ajv": { - "version": "8.17.1", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz", - "integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==", + "version": "8.18.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.18.0.tgz", + "integrity": "sha512-PlXPeEWMXMZ7sPYOHqmDyCJzcfNrUr3fGNKtezX14ykXOEIvyK81d+qydx89KY5O71FKMPaQ2vBfBFI5NHR63A==", "dev": true, "requires": { "fast-deep-equal": "^3.1.3", @@ -337,9 +337,9 @@ "dev": true }, "caniuse-lite": { - "version": "1.0.30001769", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001769.tgz", - "integrity": "sha512-BCfFL1sHijQlBGWBMuJyhZUhzo7wer5sVj9hqekB/7xn0Ypy+pER/edCYQm4exbXj4WiySGp40P8UuTh6w1srg==", + "version": "1.0.30001770", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001770.tgz", + "integrity": "sha512-x/2CLQ1jHENRbHg5PSId2sXq1CIO1CISvwWAj027ltMVG2UNgW+w9oH2+HzgEIRFembL8bUlXtfbBHR1fCg2xw==", "dev": true }, "chrome-trace-event": { @@ -891,9 +891,9 @@ } }, "webpack": { - "version": "5.105.1", - "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.105.1.tgz", - "integrity": "sha512-Gdj3X74CLJJ8zy4URmK42W7wTZUJrqL+z8nyGEr4dTN0kb3nVs+ZvjbTOqRYPD7qX4tUmwyHL9Q9K6T1seW6Yw==", + "version": "5.105.2", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.105.2.tgz", + "integrity": "sha512-dRXm0a2qcHPUBEzVk8uph0xWSjV/xZxenQQbLwnwP7caQCYpqG1qddwlyEkIDkYn0K8tvmcrZ+bOrzoQ3HxCDw==", "dev": true, "requires": { "@types/eslint-scope": "^3.7.7", @@ -964,9 +964,9 @@ } }, "webpack-sources": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.3.3.tgz", - "integrity": "sha512-yd1RBzSGanHkitROoPFd6qsrxt+oFhg/129YzheDGqeustzX0vTZJZsSsQjVQC4yzBQ56K55XU8gaNCtIzOnTg==", + "version": "3.3.4", + "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.3.4.tgz", + "integrity": "sha512-7tP1PdV4vF+lYPnkMR0jMY5/la2ub5Fc/8VQrrU+lXkiM6C4TjVfGw7iKfyhnTQOsD+6Q/iKw0eFciziRgD58Q==", "dev": true }, "which": { diff --git a/client/js/package.json b/client/js/package.json index 6e6a4a0c..31c976db 100644 --- a/client/js/package.json +++ b/client/js/package.json @@ -18,7 +18,7 @@ "build": "webpack" }, "devDependencies": { - "webpack": "5.105.1", + "webpack": "5.105.2", "webpack-cli": "6.0.1" }, "dependencies": { From 1e2310f50ae5e92b91986e4af20d4925cd53759f Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 16 Feb 2026 01:12:39 +0000 Subject: [PATCH 083/189] Update dependency mise to v2026.2.13 (#416) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Update | Change | |---|---|---| | [mise](https://redirect.github.com/jdx/mise) | patch | `v2026.2.7` → `v2026.2.13` | --- ### Release Notes
jdx/mise (mise) ### [`v2026.2.13`](https://redirect.github.com/jdx/mise/releases/tag/v2026.2.13): : Fix GitHub attestation verification failures [Compare Source](https://redirect.github.com/jdx/mise/compare/v2026.2.11...v2026.2.13) This release partially mitigates GitHub attestation verification failures that were causing tool installations to fail (e.g., `gh`, and other aqua-backed tools with attestations enabled). See [#​8142](https://redirect.github.com/jdx/mise/discussions/8142) for details. ##### What happened GitHub silently changed their attestations API to externalize bundle storage to Azure Blob Storage (`tmaproduction.blob.core.windows.net`) using [Snappy compression](https://google.github.io/snappy/), rather than returning bundles inline as JSON. The `gh` CLI had already been updated to handle this ([cli/cli#10185](https://redirect.github.com/cli/cli/pull/10185)), but third-party tools like mise were not yet aware of the new format, causing `"error decoding response body"` failures. ##### What this release does Bumps `sigstore-verification` to 0.2, which splits the reqwest dependency version from mise's (0.13 vs 0.12). This avoids Cargo feature unification that was causing mise's `gzip` feature to be applied to attestation requests, interfering with the Snappy-compressed responses. **Note:** A full fix with proper Snappy decompression support and auth token scoping landed in [sigstore-verification v0.2.1](https://redirect.github.com/jdx/sigstore-verification/releases/tag/v0.2.1) ([#​22](https://redirect.github.com/jdx/sigstore-verification/pull/22), [#​23](https://redirect.github.com/jdx/sigstore-verification/pull/23)) — expect a follow-up mise release with that bump. If you are still hitting issues, set `settings.aqua.github_attestations = false` as a workaround. ##### Dependency Updates - **Bumped `sigstore-verification` to 0.2** ([e8897c9](https://redirect.github.com/jdx/mise/commit/e8897c9fbc873fe272495a65e5a88b04b97f3b6d)) ##### 📦 Aqua Registry Updates ##### New Packages (1) - [`k1LoW/tcmux`](https://redirect.github.com/k1LoW/tcmux) ##### Updated Packages (1) - [`jdx/usage`](https://redirect.github.com/jdx/usage) ### [`v2026.2.11`](https://redirect.github.com/jdx/mise/releases/tag/v2026.2.11): : Templates Level Up [Compare Source](https://redirect.github.com/jdx/mise/compare/v2026.2.10...v2026.2.11) A small release with a nice quality-of-life improvement for tera template users and a bug fix for file watching. ##### Highlights - **Array access for multi-version tools in tera templates** — If you have multiple versions of a tool installed, you can now access them individually in tera templates via `tools.[0].path`, `tools.[1].path`, etc. Single-version tools continue to work as before with `tools..path`. [#​8129](https://redirect.github.com/jdx/mise/pull/8129) ##### Bug Fixes - **hook-env now watches files used in tera templates** — Files referenced by template functions like `read_file()`, `hash_file()`, `file_size()`, and `last_modified()` are now properly tracked by `hook-env`. Previously, changes to these files wouldn't trigger an environment refresh until you changed directories. [#​8122](https://redirect.github.com/jdx/mise/pull/8122) ##### New Tools - [mutagen](https://redirect.github.com/mutagen-io/mutagen) — thanks [@​tony-sol](https://redirect.github.com/tony-sol)! [#​8125](https://redirect.github.com/jdx/mise/pull/8125) - [communique](https://redirect.github.com/jdx/communique) [#​8126](https://redirect.github.com/jdx/mise/pull/8126) ### [`v2026.2.10`](https://redirect.github.com/jdx/mise/releases/tag/v2026.2.10): : Shims, Stdin, and Smarter Offline [Compare Source](https://redirect.github.com/jdx/mise/compare/v2026.2.9...v2026.2.10) This release brings several quality-of-life features alongside a solid round of bug fixes. ##### Highlights - **Shims as PATH fallback during activation** — When `not_found_auto_install` is enabled (the default), mise now adds the shims directory to your PATH as a fallback. This fixes a subtle issue where subshells or child processes could miss uninstalled tools or pick up the wrong system version instead of the mise-managed one. Thanks [@​ctaintor](https://redirect.github.com/ctaintor) for this contribution! [#​8106](https://redirect.github.com/jdx/mise/pull/8106) - **`tools` variable in Tera templates** — You can now reference `{{ tools.node.version }}` and `{{ tools.node.path }}` directly in env templates and task templates (with `tools = true`), eliminating the need for `exec(command='node --version')` workarounds. [#​8108](https://redirect.github.com/jdx/mise/pull/8108) — [Template docs](https://mise.jdx.dev/environments/templates.html) - **`mise set --stdin` for multiline values** — Need to set an SSH key, certificate, or other multiline value as an environment variable? `mise set --stdin MY_KEY` now reads from stdin until EOF. [#​8110](https://redirect.github.com/jdx/mise/pull/8110) ##### Bug Fixes - **`MISE_OFFLINE` now works correctly** — Previously, offline mode could hang or error out instead of gracefully falling back to local data. This is now fixed, and `offline`/`prefer_offline` are proper settings configurable in `mise.toml`. [#​8109](https://redirect.github.com/jdx/mise/pull/8109) - **Upgrade symlink cleanup** — Fixed an issue where `mise upgrade` could leave behind invalid symlinks when uninstalling old versions, thanks [@​roele](https://redirect.github.com/roele). [#​8099](https://redirect.github.com/jdx/mise/pull/8099) [#​8101](https://redirect.github.com/jdx/mise/pull/8101) - **Conda dependency resolution** — Improved patchelf handling and dependency version pinning for complex conda packages on Linux. [#​8087](https://redirect.github.com/jdx/mise/pull/8087) - **SLSA provenance for Docker Buildx** — Tools like `github:docker/buildx` that ship in-toto statements without sigstore signatures no longer fail verification, thanks [@​gerhard](https://redirect.github.com/gerhard). [#​8094](https://redirect.github.com/jdx/mise/pull/8094) - **Vfox plugin auto-installation** — Fixed a clean-setup failure where vfox-backed env modules would error with "Plugin directory not found" before the plugin was installed, thanks [@​pose](https://redirect.github.com/pose). [#​8035](https://redirect.github.com/jdx/mise/pull/8035) - **GitHub `latest` version prefix** — The `v` prefix is no longer incorrectly added when resolving "latest" for GitHub release backends. [#​8105](https://redirect.github.com/jdx/mise/pull/8105) - **GitLab tool options** — Tool options from config are now correctly resolved for aliased GitLab tools. [#​8084](https://redirect.github.com/jdx/mise/pull/8084) - **Flutter version resolution** — Fixed version resolution by using `version_expr`. [#​8081](https://redirect.github.com/jdx/mise/pull/8081) - **Tuist on Linux** — Registry now includes Linux support for tuist, thanks [@​fortmarek](https://redirect.github.com/fortmarek). [#​8102](https://redirect.github.com/jdx/mise/pull/8102) ##### Registry - Added conda backends for mysql, ffmpeg, ghc, vim, and several other previously asdf-only tools. [#​8080](https://redirect.github.com/jdx/mise/pull/8080) [#​8083](https://redirect.github.com/jdx/mise/pull/8083) - Added podman-tui, thanks [@​tony-sol](https://redirect.github.com/tony-sol). [#​8098](https://redirect.github.com/jdx/mise/pull/8098) ##### New Contributors Welcome [@​ctaintor](https://redirect.github.com/ctaintor), [@​rileychh](https://redirect.github.com/rileychh), [@​fortmarek](https://redirect.github.com/fortmarek), [@​pose](https://redirect.github.com/pose), and [@​gerhard](https://redirect.github.com/gerhard) — thanks for your first contributions! ##### 📦 Aqua Registry Updates ##### New Packages (2) - [`entireio/cli`](https://redirect.github.com/entireio/cli) - [`rmitchellscott/reManager`](https://redirect.github.com/rmitchellscott/reManager) ##### Updated Packages (1) - [`atuinsh/atuin`](https://redirect.github.com/atuinsh/atuin) ### [`v2026.2.9`](https://redirect.github.com/jdx/mise/releases/tag/v2026.2.9): : Ruby Plays Nice with Legacy Linux [Compare Source](https://redirect.github.com/jdx/mise/compare/v2026.2.8...v2026.2.9) This release brings a quality-of-life improvement for Ruby users on older Linux distributions, plus a couple of important bug fixes. ##### Highlights **Automatic Ruby variant selection for older glibc systems** ([#​8069](https://redirect.github.com/jdx/mise/pull/8069)) If you're running Linux with glibc older than 2.35 (common on RHEL 7, Amazon Linux 2, CentOS 7, or older Debian/Ubuntu versions), mise will now automatically download the no-YJIT precompiled Ruby variant instead of failing with cryptic errors. This means precompiled Ruby "just works" on a much wider range of Linux systems without any manual configuration. Systems with glibc 2.35+ (Ubuntu 22.04+, Debian 12+, Fedora 36+) continue to get the standard YJIT-enabled builds as before. ##### Bug Fixes - **Windows shim updates with self-update** ([#​8075](https://redirect.github.com/jdx/mise/pull/8075)) — `mise self-update` on Windows now properly updates `mise-shim.exe` alongside `mise.exe`. Previously, users had to manually download the shim from GitHub releases after updating. - **Fixed `cargo install mise`** ([#​8077](https://redirect.github.com/jdx/mise/pull/8077)) — Bumped the `xx` dependency to 2.5 to fix an issue where Cargo was selecting an incompatible older version, causing installation failures. Thanks [@​erickt](https://redirect.github.com/erickt) for the fix and welcome to mise! ##### Documentation - Ruby precompiled binaries are no longer marked as experimental ([#​8073](https://redirect.github.com/jdx/mise/pull/8073)) — they're stable and ready for production use. ##### 📦 Aqua Registry Updates ##### Updated Packages (1) - [`carthage-software/mago`](https://redirect.github.com/carthage-software/mago) ### [`v2026.2.8`](https://redirect.github.com/jdx/mise/releases/tag/v2026.2.8): : Hooks Get Their Act Together [Compare Source](https://redirect.github.com/jdx/mise/compare/v2026.2.7...v2026.2.8) This release focuses on hooks—fixing 12 community-reported issues that were making them unreliable. There are also some nice quality-of-life improvements for Node.js and Ruby users. ##### Highlights **Hooks overhaul** — A comprehensive fix for the hooks system addressing a dozen issues reported by the community. Global hooks now actually work, hook execution order is corrected (leave fires before enter), infinite loops in fish shell are fixed, and postinstall hooks can now find all installed tools. [#​8058](https://redirect.github.com/jdx/mise/pull/8058) **Node version detection from package.json** — mise now reads tool versions directly from `package.json` using the `devEngines` and `packageManager` fields. This means your Node, Bun, pnpm, yarn, and npm versions can be auto-detected without a separate `.tool-versions` or `mise.toml` file. Semver ranges are simplified automatically (`>=18.0.0` → `18`). [#​8059](https://redirect.github.com/jdx/mise/pull/8059) **Precompiled Ruby goes stable** — You can now use precompiled Ruby binaries by setting `ruby.compile=false` without needing `experimental=true`. This will become the default in 2026.8.0. If you haven't tried it, precompiled Ruby installs in seconds instead of minutes. [#​8052](https://redirect.github.com/jdx/mise/pull/8052) ##### New Features - **`--dry-run-code` flag** — Added to `install`, `upgrade`, `prune`, `uninstall`, and `use` commands. Behaves like `--dry-run` but exits with code 1 when there's work to do, enabling patterns like `if ! mise install --dry-run-code -q; then mise install; fi` [#​8063](https://redirect.github.com/jdx/mise/pull/8063) ##### Bug Fixes - **MISE\_ARCH override** — The bun and erlang plugins now respect `MISE_ARCH` at runtime, which is useful for Windows ARM64 users running x64 binaries under emulation [#​8062](https://redirect.github.com/jdx/mise/pull/8062) - **key=value format** — `mise settings set`, `mise settings add`, `mise config set`, and `mise shell-alias set` now accept `key=value` as a single argument [#​8053](https://redirect.github.com/jdx/mise/pull/8053) ##### Registry - Added **quicktype** (`npm:quicktype`) — thanks [@​zdunecki](https://redirect.github.com/zdunecki)! [#​8054](https://redirect.github.com/jdx/mise/pull/8054) ##### Dependencies - Upgraded to TOML 1.1 support via toml 0.9 and toml\_edit 0.24 [#​8057](https://redirect.github.com/jdx/mise/pull/8057)
--- ### Configuration 📅 **Schedule**: Branch creation - "before 4am on monday" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/bench.yml | 4 ++-- .github/workflows/check.yml | 4 ++-- .github/workflows/release.yml | 4 ++-- .github/workflows/test-release.yml | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index 2ba96a70..c4f48ee5 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -10,7 +10,7 @@ jobs: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - uses: jdx/mise-action@6d1e696aa24c1aa1bcc1adea0212707c71ab78a8 # v3.6.1 with: - version: v2026.2.7 - sha256: d23400ea220cfcbcd04856cf224dc6bc1a5e2a16e6c7365a433b7737c0774c23 + version: v2026.2.13 + sha256: 981018c274d3d2a376e66ad894987bb93ccd50abc59f5700103b52da1c7702da - name: Random actions test run: mise run random-actions diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 3a75de53..b6d86683 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -10,7 +10,7 @@ jobs: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - uses: jdx/mise-action@6d1e696aa24c1aa1bcc1adea0212707c71ab78a8 # v3.6.1 with: - version: v2026.2.7 - sha256: d23400ea220cfcbcd04856cf224dc6bc1a5e2a16e6c7365a433b7737c0774c23 + version: v2026.2.13 + sha256: 981018c274d3d2a376e66ad894987bb93ccd50abc59f5700103b52da1c7702da - name: Check all run: mise run ci diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f033e9bc..0354e222 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,8 +14,8 @@ jobs: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - uses: jdx/mise-action@6d1e696aa24c1aa1bcc1adea0212707c71ab78a8 # v3.6.1 with: - version: v2026.2.7 - sha256: d23400ea220cfcbcd04856cf224dc6bc1a5e2a16e6c7365a433b7737c0774c23 + version: v2026.2.13 + sha256: 981018c274d3d2a376e66ad894987bb93ccd50abc59f5700103b52da1c7702da - name: Use Node.js ${{ env.node_version }} uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6 with: diff --git a/.github/workflows/test-release.yml b/.github/workflows/test-release.yml index c72bab24..0f9053f6 100644 --- a/.github/workflows/test-release.yml +++ b/.github/workflows/test-release.yml @@ -10,8 +10,8 @@ jobs: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - uses: jdx/mise-action@6d1e696aa24c1aa1bcc1adea0212707c71ab78a8 # v3.6.1 with: - version: v2026.2.7 - sha256: d23400ea220cfcbcd04856cf224dc6bc1a5e2a16e6c7365a433b7737c0774c23 + version: v2026.2.13 + sha256: 981018c274d3d2a376e66ad894987bb93ccd50abc59f5700103b52da1c7702da - name: Test server release run: mise run build-remote-server - name: Test client release From dd1d906a6cbc7b03a5c4d8d762b70bd44a7ecc31 Mon Sep 17 00:00:00 2001 From: Gregor Zeitlinger Date: Fri, 20 Feb 2026 13:41:44 +0100 Subject: [PATCH 084/189] Remove mise version pinning from CI mise is stable enough that pinning a specific version is unnecessary. This also simplifies the renovate config by removing the custom manager. Signed-off-by: Gregor Zeitlinger --- .github/renovate.json5 | 27 --------------------------- .github/workflows/bench.yml | 3 --- .github/workflows/check.yml | 3 --- .github/workflows/release.yml | 3 --- .github/workflows/test-release.yml | 3 --- 5 files changed, 39 deletions(-) diff --git a/.github/renovate.json5 b/.github/renovate.json5 index e18fdbe7..28e739f7 100644 --- a/.github/renovate.json5 +++ b/.github/renovate.json5 @@ -8,31 +8,4 @@ labels: [ "dependencies" ], - packageRules: [ - { - matchPackageNames: [ - "jdx/mise" - ], - groupName: "mise", - schedule: [ - "before 4am on monday" - ], - } - ], - customManagers: [ - { - customType: "regex", - description: "update mise", - managerFilePatterns: [ - "/(^|/)(workflow-templates|\\.(?:github|gitea|forgejo)/(?:workflows|actions))/.+\\.ya?ml$/", - "/(^|/)action\\.ya?ml$/" - ], - datasourceTemplate: "github-release-attachments", - packageNameTemplate: "jdx/mise", - depNameTemplate: "mise", - matchStrings: [ - "jdx/mise-action.*\\n\\s*with:\\s*\\n\\s*version: [\"']?(?v[.\\d]+)[\"']?\\s*\\n\\s*sha256: [\"']?(?\\w+)[\"']?" - ], - }, - ] } diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index c4f48ee5..e4d2177f 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -9,8 +9,5 @@ jobs: steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - uses: jdx/mise-action@6d1e696aa24c1aa1bcc1adea0212707c71ab78a8 # v3.6.1 - with: - version: v2026.2.13 - sha256: 981018c274d3d2a376e66ad894987bb93ccd50abc59f5700103b52da1c7702da - name: Random actions test run: mise run random-actions diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index b6d86683..f1d08f8e 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -9,8 +9,5 @@ jobs: steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - uses: jdx/mise-action@6d1e696aa24c1aa1bcc1adea0212707c71ab78a8 # v3.6.1 - with: - version: v2026.2.13 - sha256: 981018c274d3d2a376e66ad894987bb93ccd50abc59f5700103b52da1c7702da - name: Check all run: mise run ci diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0354e222..c030f20b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,9 +13,6 @@ jobs: steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - uses: jdx/mise-action@6d1e696aa24c1aa1bcc1adea0212707c71ab78a8 # v3.6.1 - with: - version: v2026.2.13 - sha256: 981018c274d3d2a376e66ad894987bb93ccd50abc59f5700103b52da1c7702da - name: Use Node.js ${{ env.node_version }} uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6 with: diff --git a/.github/workflows/test-release.yml b/.github/workflows/test-release.yml index 0f9053f6..040e8c9c 100644 --- a/.github/workflows/test-release.yml +++ b/.github/workflows/test-release.yml @@ -9,9 +9,6 @@ jobs: steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - uses: jdx/mise-action@6d1e696aa24c1aa1bcc1adea0212707c71ab78a8 # v3.6.1 - with: - version: v2026.2.13 - sha256: 981018c274d3d2a376e66ad894987bb93ccd50abc59f5700103b52da1c7702da - name: Test server release run: mise run build-remote-server - name: Test client release From 02e78b8446105e671d17ac67e5889f706df5daf1 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 23 Feb 2026 14:47:13 +0000 Subject: [PATCH 085/189] Update Rust crate chrono to v0.4.44 (#418) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [chrono](https://redirect.github.com/chronotope/chrono) | dependencies | patch | `0.4.43` → `0.4.44` | --- ### Release Notes
chronotope/chrono (chrono) ### [`v0.4.44`](https://redirect.github.com/chronotope/chrono/releases/tag/v0.4.44): 0.4.44 [Compare Source](https://redirect.github.com/chronotope/chrono/compare/v0.4.43...v0.4.44) #### What's Changed - docs: match MSRV with `Cargo.toml` contents by [@​coryan](https://redirect.github.com/coryan) in [#​1772](https://redirect.github.com/chronotope/chrono/pull/1772) - Add track\_caller to non-deprecated functions by [@​svix-jplatte](https://redirect.github.com/svix-jplatte) in [#​1774](https://redirect.github.com/chronotope/chrono/pull/1774)
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- Cargo.lock | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 1c964cf8..89e3ed6e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -263,9 +263,9 @@ checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724" [[package]] name = "chrono" -version = "0.4.43" +version = "0.4.44" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fac4744fb15ae8337dc853fee7fb3f4e48c0fbaa23d0afe49c447b4fab126118" +checksum = "c673075a2e0e5f4a1dde27ce9dee1ea4558c7ffe648f576438a20ca1d2acc4b0" dependencies = [ "iana-time-zone", "js-sys", From b3267261732562e984ee3413ec727404f0ecc483 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 1 Mar 2026 11:26:27 +0000 Subject: [PATCH 086/189] Update dependency webpack to v5.105.3 (#419) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [webpack](https://redirect.github.com/webpack/webpack) | [`5.105.2` → `5.105.3`](https://renovatebot.com/diffs/npm/webpack/5.105.2/5.105.3) | ![age](https://developer.mend.io/api/mc/badges/age/npm/webpack/5.105.3?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/webpack/5.105.2/5.105.3?slim=true) | --- ### Release Notes
webpack/webpack (webpack) ### [`v5.105.3`](https://redirect.github.com/webpack/webpack/blob/HEAD/CHANGELOG.md#51053) [Compare Source](https://redirect.github.com/webpack/webpack/compare/v5.105.2...v5.105.3) ##### Patch Changes - Context modules now handle rejections correctly. (by [@​alexander-akait](https://redirect.github.com/alexander-akait) in [#​20455](https://redirect.github.com/webpack/webpack/pull/20455)) - Only mark asset modules as side-effect-free when `experimental.futureDefaults` is set to true, so asset-copying use cases (e.g. `import "./x.png"`) won’t break unless the option is enabled. (by [@​hai-x](https://redirect.github.com/hai-x) in [#​20535](https://redirect.github.com/webpack/webpack/pull/20535)) - Add the missing **webpack\_exports** declaration in certain cases when bundling a JS entry together with non-JS entries (e.g., CSS entry or asset module entry). (by [@​hai-x](https://redirect.github.com/hai-x) in [#​20463](https://redirect.github.com/webpack/webpack/pull/20463)) - Fixed HMR failure for CSS modules with [@​import](https://redirect.github.com/import) when exportType !== "link". When exportType is not "link", CSS modules now behave like JavaScript modules and don't require special HMR handling, allowing [@​import](https://redirect.github.com/import) CSS to work correctly during hot module replacement. (by [@​xiaoxiaojx](https://redirect.github.com/xiaoxiaojx) in [#​20514](https://redirect.github.com/webpack/webpack/pull/20514)) - Fixed an issue where empty JavaScript files were generated for CSS-only entry points. The code now correctly checks if entry modules have JavaScript source types before determining whether to generate a JS file. (by [@​xiaoxiaojx](https://redirect.github.com/xiaoxiaojx) in [#​20454](https://redirect.github.com/webpack/webpack/pull/20454)) - Do not crash when a referenced chunk is not a runtime chunk. (by [@​alexander-akait](https://redirect.github.com/alexander-akait) in [#​20461](https://redirect.github.com/webpack/webpack/pull/20461)) - Fix some types. (by [@​alexander-akait](https://redirect.github.com/alexander-akait) in [#​20412](https://redirect.github.com/webpack/webpack/pull/20412)) - Ensure that missing module error are thrown after the interception handler (if present), allowing module interception to customize the module factory. (by [@​hai-x](https://redirect.github.com/hai-x) in [#​20510](https://redirect.github.com/webpack/webpack/pull/20510)) - Added `createRequire` support for ECMA modules. (by [@​stefanbinoj](https://redirect.github.com/stefanbinoj) in [#​20497](https://redirect.github.com/webpack/webpack/pull/20497)) - Added category for CJS reexport dependency to fix issues with ECMA modules. (by [@​hai-x](https://redirect.github.com/hai-x) in [#​20444](https://redirect.github.com/webpack/webpack/pull/20444)) - Implement immutable bytes for `bytes` import attribute to match tc39 spec. (by [@​alexander-akait](https://redirect.github.com/alexander-akait) in [#​20481](https://redirect.github.com/webpack/webpack/pull/20481)) - Fixed deterministic search for graph roots regardless of edge order. (by [@​veeceey](https://redirect.github.com/veeceey) in [#​20452](https://redirect.github.com/webpack/webpack/pull/20452))
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- client/js/package-lock.json | 54 ++++++++++++++++++------------------- client/js/package.json | 2 +- 2 files changed, 28 insertions(+), 28 deletions(-) diff --git a/client/js/package-lock.json b/client/js/package-lock.json index 315cf516..a6e586b0 100644 --- a/client/js/package-lock.json +++ b/client/js/package-lock.json @@ -85,12 +85,12 @@ "dev": true }, "@types/node": { - "version": "25.2.3", - "resolved": "https://registry.npmjs.org/@types/node/-/node-25.2.3.tgz", - "integrity": "sha512-m0jEgYlYz+mDJZ2+F4v8D1AyQb+QzsNqRuI7xg1VQX/KlKS0qT9r1Mo16yo5F/MtifXFgaofIFsdFMox2SxIbQ==", + "version": "25.3.3", + "resolved": "https://registry.npmjs.org/@types/node/-/node-25.3.3.tgz", + "integrity": "sha512-DpzbrH7wIcBaJibpKo9nnSQL0MTRdnWttGyE5haGwK86xgMOkFLp7vEyfQPGLOJh5wNYiJ3V9PmUMDhV9u8kkQ==", "dev": true, "requires": { - "undici-types": "~7.16.0" + "undici-types": "~7.18.0" } }, "@webassemblyjs/ast": { @@ -270,9 +270,9 @@ "dev": true }, "acorn": { - "version": "8.15.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz", - "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==", + "version": "8.16.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.16.0.tgz", + "integrity": "sha512-UVJyE9MttOsBQIDKw1skb9nAwQuR5wuGD3+82K6JgJlm/Y+KI92oNsMNGZCYdDsVtRHSak0pcV5Dno5+4jh9sw==", "dev": true }, "acorn-import-phases": { @@ -312,9 +312,9 @@ } }, "baseline-browser-mapping": { - "version": "2.9.19", - "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.9.19.tgz", - "integrity": "sha512-ipDqC8FrAl/76p2SSWKSI+H9tFwm7vYqXQrItCuiVPt26Km0jS+NzSsBWAaBusvSbQcfJG+JitdMm+wZAgTYqg==", + "version": "2.10.0", + "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.10.0.tgz", + "integrity": "sha512-lIyg0szRfYbiy67j9KN8IyeD7q7hcmqnJ1ddWmNt19ItGpNN64mnllmxUNFIOdOm6by97jlL6wfpTTJrmnjWAA==", "dev": true }, "browserslist": { @@ -337,9 +337,9 @@ "dev": true }, "caniuse-lite": { - "version": "1.0.30001770", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001770.tgz", - "integrity": "sha512-x/2CLQ1jHENRbHg5PSId2sXq1CIO1CISvwWAj027ltMVG2UNgW+w9oH2+HzgEIRFembL8bUlXtfbBHR1fCg2xw==", + "version": "1.0.30001775", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001775.tgz", + "integrity": "sha512-s3Qv7Lht9zbVKE9XoTyRG6wVDCKdtOFIjBGg3+Yhn6JaytuNKPIjBMTMIY1AnOH3seL5mvF+x33oGAyK3hVt3A==", "dev": true }, "chrome-trace-event": { @@ -383,15 +383,15 @@ } }, "electron-to-chromium": { - "version": "1.5.286", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.286.tgz", - "integrity": "sha512-9tfDXhJ4RKFNerfjdCcZfufu49vg620741MNs26a9+bhLThdB+plgMeou98CAaHu/WATj2iHOOHTp1hWtABj2A==", + "version": "1.5.302", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.302.tgz", + "integrity": "sha512-sM6HAN2LyK82IyPBpznDRqlTQAtuSaO+ShzFiWTvoMJLHyZ+Y39r8VMfHzwbU8MVBzQ4Wdn85+wlZl2TLGIlwg==", "dev": true }, "enhanced-resolve": { - "version": "5.19.0", - "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.19.0.tgz", - "integrity": "sha512-phv3E1Xl4tQOShqSte26C7Fl84EwUdZsyOuSSk9qtAGyyQs2s3jJzComh+Abf4g187lUUAvH+H26omrqia2aGg==", + "version": "5.20.0", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.20.0.tgz", + "integrity": "sha512-/ce7+jQ1PQ6rVXwe+jKEg5hW5ciicHwIQUagZkp6IufBoY3YDgdTTY1azVs0qoRgVmvsNB+rbjLJxDAeHHtwsQ==", "dev": true, "requires": { "graceful-fs": "^4.2.4", @@ -865,9 +865,9 @@ } }, "undici-types": { - "version": "7.16.0", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.16.0.tgz", - "integrity": "sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw==", + "version": "7.18.2", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.18.2.tgz", + "integrity": "sha512-AsuCzffGHJybSaRrmr5eHr81mwJU3kjw6M+uprWvCXiNeN9SOGwQ3Jn8jb8m3Z6izVgknn1R0FTCEAP2QrLY/w==", "dev": true }, "update-browserslist-db": { @@ -891,9 +891,9 @@ } }, "webpack": { - "version": "5.105.2", - "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.105.2.tgz", - "integrity": "sha512-dRXm0a2qcHPUBEzVk8uph0xWSjV/xZxenQQbLwnwP7caQCYpqG1qddwlyEkIDkYn0K8tvmcrZ+bOrzoQ3HxCDw==", + "version": "5.105.3", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.105.3.tgz", + "integrity": "sha512-LLBBA4oLmT7sZdHiYE/PeVuifOxYyE2uL/V+9VQP7YSYdJU7bSf7H8bZRRxW8kEPMkmVjnrXmoR3oejIdX0xbg==", "dev": true, "requires": { "@types/eslint-scope": "^3.7.7", @@ -902,7 +902,7 @@ "@webassemblyjs/ast": "^1.14.1", "@webassemblyjs/wasm-edit": "^1.14.1", "@webassemblyjs/wasm-parser": "^1.14.1", - "acorn": "^8.15.0", + "acorn": "^8.16.0", "acorn-import-phases": "^1.0.3", "browserslist": "^4.28.1", "chrome-trace-event": "^1.0.2", @@ -920,7 +920,7 @@ "tapable": "^2.3.0", "terser-webpack-plugin": "^5.3.16", "watchpack": "^2.5.1", - "webpack-sources": "^3.3.3" + "webpack-sources": "^3.3.4" } }, "webpack-cli": { diff --git a/client/js/package.json b/client/js/package.json index 31c976db..e1fb5629 100644 --- a/client/js/package.json +++ b/client/js/package.json @@ -18,7 +18,7 @@ "build": "webpack" }, "devDependencies": { - "webpack": "5.105.2", + "webpack": "5.105.3", "webpack-cli": "6.0.1" }, "dependencies": { From 7c397e5f5c5050f4520753b8ea21c0e8a23c617f Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 2 Mar 2026 14:55:39 +0000 Subject: [PATCH 087/189] Update jdx/mise-action action to v3.6.2 (#421) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [jdx/mise-action](https://redirect.github.com/jdx/mise-action) | action | patch | `v3.6.1` → `v3.6.2` | --- ### Release Notes
jdx/mise-action (jdx/mise-action) ### [`v3.6.2`](https://redirect.github.com/jdx/mise-action/compare/v3.6.1...v3.6.2) [Compare Source](https://redirect.github.com/jdx/mise-action/compare/v3.6.1...v3.6.2)
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/bench.yml | 2 +- .github/workflows/check.yml | 2 +- .github/workflows/release.yml | 2 +- .github/workflows/test-release.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index e4d2177f..7cf98001 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -8,6 +8,6 @@ jobs: steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - - uses: jdx/mise-action@6d1e696aa24c1aa1bcc1adea0212707c71ab78a8 # v3.6.1 + - uses: jdx/mise-action@e79ddf65a11cec7b0e882bedced08d6e976efb2d # v3.6.2 - name: Random actions test run: mise run random-actions diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index f1d08f8e..272039bf 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -8,6 +8,6 @@ jobs: steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - - uses: jdx/mise-action@6d1e696aa24c1aa1bcc1adea0212707c71ab78a8 # v3.6.1 + - uses: jdx/mise-action@e79ddf65a11cec7b0e882bedced08d6e976efb2d # v3.6.2 - name: Check all run: mise run ci diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c030f20b..2453fdd6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - - uses: jdx/mise-action@6d1e696aa24c1aa1bcc1adea0212707c71ab78a8 # v3.6.1 + - uses: jdx/mise-action@e79ddf65a11cec7b0e882bedced08d6e976efb2d # v3.6.2 - name: Use Node.js ${{ env.node_version }} uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6 with: diff --git a/.github/workflows/test-release.yml b/.github/workflows/test-release.yml index 040e8c9c..309ea714 100644 --- a/.github/workflows/test-release.yml +++ b/.github/workflows/test-release.yml @@ -8,7 +8,7 @@ jobs: steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - - uses: jdx/mise-action@6d1e696aa24c1aa1bcc1adea0212707c71ab78a8 # v3.6.1 + - uses: jdx/mise-action@e79ddf65a11cec7b0e882bedced08d6e976efb2d # v3.6.2 - name: Test server release run: mise run build-remote-server - name: Test client release From 8148591ea896db119df310473fee125a40047333 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 3 Mar 2026 10:20:52 +0000 Subject: [PATCH 088/189] Update Rust crate tokio to v1.50.0 (#422) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [tokio](https://tokio.rs) ([source](https://redirect.github.com/tokio-rs/tokio)) | dependencies | minor | `1.49.0` → `1.50.0` | --- ### Release Notes
tokio-rs/tokio (tokio) ### [`v1.50.0`](https://redirect.github.com/tokio-rs/tokio/releases/tag/tokio-1.50.0): Tokio v1.50.0 [Compare Source](https://redirect.github.com/tokio-rs/tokio/compare/tokio-1.49.0...tokio-1.50.0) ### 1.50.0 (Mar 3rd, 2026) ##### Added - net: add `TcpStream::set_zero_linger` ([#​7837]) - rt: add `is_rt_shutdown_err` ([#​7771]) ##### Changed - io: add optimizer hint that `memchr` returns in-bounds pointer ([#​7792]) - io: implement vectored writes for `write_buf` ([#​7871]) - runtime: panic when `event_interval` is set to 0 ([#​7838]) - runtime: shorten default thread name to fit in Linux limit ([#​7880]) - signal: remember the result of `SetConsoleCtrlHandler` ([#​7833]) - signal: specialize windows `Registry` ([#​7885]) ##### Fixed - io: always cleanup `AsyncFd` registration list on deregister ([#​7773]) - macros: remove (most) local `use` declarations in `tokio::select!` ([#​7929]) - net: fix `GET_BUF_SIZE` constant for `target_os = "android"` ([#​7889]) - runtime: avoid redundant unpark in current\_thread scheduler ([#​7834]) - runtime: don't park in `current_thread` if `before_park` defers waker ([#​7835]) - io: fix write readiness on ESP32 on short writes ([#​7872]) - runtime: wake deferred tasks before entering `block_in_place` ([#​7879]) - sync: drop rx waker when oneshot receiver is dropped ([#​7886]) - runtime: fix double increment of `num_idle_threads` on shutdown ([#​7910], [#​7918], [#​7922]) ##### Unstable - fs: check for io-uring opcode support ([#​7815]) - runtime: avoid lock acquisition after uring init ([#​7850]) ##### Documented - docs: update outdated unstable features section ([#​7839]) - io: clarify the behavior of `AsyncWriteExt::shutdown()` ([#​7908]) - io: explain how to flush stdout/stderr ([#​7904]) - io: fix incorrect and confusing `AsyncWrite` documentation ([#​7875]) - rt: clarify the documentation of `Runtime::spawn` ([#​7803]) - rt: fix missing quotation in docs ([#​7925]) - runtime: correct the default thread name in docs ([#​7896]) - runtime: fix `event_interval` doc ([#​7932]) - sync: clarify RwLock fairness documentation ([#​7919]) - sync: clarify that `recv` returns `None` once closed and no more messages ([#​7920]) - task: clarify when to use `spawn_blocking` vs dedicated threads ([#​7923]) - task: doc that task drops before `JoinHandle` completion ([#​7825]) - signal: guarantee that listeners never return `None` ([#​7869]) - task: fix task module feature flags in docs ([#​7891]) - task: fix two typos ([#​7913]) - task: improve the docs of `Builder::spawn_local` ([#​7828]) - time: add docs about auto-advance and when to use sleep ([#​7858]) - util: fix typo in docs ([#​7926]) [#​7771]: https://redirect.github.com/tokio-rs/tokio/pull/7771 [#​7773]: https://redirect.github.com/tokio-rs/tokio/pull/7773 [#​7792]: https://redirect.github.com/tokio-rs/tokio/pull/7792 [#​7803]: https://redirect.github.com/tokio-rs/tokio/pull/7803 [#​7815]: https://redirect.github.com/tokio-rs/tokio/pull/7815 [#​7825]: https://redirect.github.com/tokio-rs/tokio/pull/7825 [#​7828]: https://redirect.github.com/tokio-rs/tokio/pull/7828 [#​7833]: https://redirect.github.com/tokio-rs/tokio/pull/7833 [#​7834]: https://redirect.github.com/tokio-rs/tokio/pull/7834 [#​7835]: https://redirect.github.com/tokio-rs/tokio/pull/7835 [#​7837]: https://redirect.github.com/tokio-rs/tokio/pull/7837 [#​7838]: https://redirect.github.com/tokio-rs/tokio/pull/7838 [#​7839]: https://redirect.github.com/tokio-rs/tokio/pull/7839 [#​7850]: https://redirect.github.com/tokio-rs/tokio/pull/7850 [#​7858]: https://redirect.github.com/tokio-rs/tokio/pull/7858 [#​7869]: https://redirect.github.com/tokio-rs/tokio/pull/7869 [#​7871]: https://redirect.github.com/tokio-rs/tokio/pull/7871 [#​7872]: https://redirect.github.com/tokio-rs/tokio/pull/7872 [#​7875]: https://redirect.github.com/tokio-rs/tokio/pull/7875 [#​7879]: https://redirect.github.com/tokio-rs/tokio/pull/7879 [#​7880]: https://redirect.github.com/tokio-rs/tokio/pull/7880 [#​7885]: https://redirect.github.com/tokio-rs/tokio/pull/7885 [#​7886]: https://redirect.github.com/tokio-rs/tokio/pull/7886 [#​7889]: https://redirect.github.com/tokio-rs/tokio/pull/7889 [#​7891]: https://redirect.github.com/tokio-rs/tokio/pull/7891 [#​7896]: https://redirect.github.com/tokio-rs/tokio/pull/7896 [#​7904]: https://redirect.github.com/tokio-rs/tokio/pull/7904 [#​7908]: https://redirect.github.com/tokio-rs/tokio/pull/7908 [#​7910]: https://redirect.github.com/tokio-rs/tokio/pull/7910 [#​7913]: https://redirect.github.com/tokio-rs/tokio/pull/7913 [#​7918]: https://redirect.github.com/tokio-rs/tokio/pull/7918 [#​7919]: https://redirect.github.com/tokio-rs/tokio/pull/7919 [#​7920]: https://redirect.github.com/tokio-rs/tokio/pull/7920 [#​7922]: https://redirect.github.com/tokio-rs/tokio/pull/7922 [#​7923]: https://redirect.github.com/tokio-rs/tokio/pull/7923 [#​7925]: https://redirect.github.com/tokio-rs/tokio/pull/7925 [#​7926]: https://redirect.github.com/tokio-rs/tokio/pull/7926 [#​7929]: https://redirect.github.com/tokio-rs/tokio/pull/7929 [#​7932]: https://redirect.github.com/tokio-rs/tokio/pull/7932
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- Cargo.lock | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 89e3ed6e..38c6f0e1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2117,9 +2117,9 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" [[package]] name = "tokio" -version = "1.49.0" +version = "1.50.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "72a2903cd7736441aac9df9d7688bd0ce48edccaadf181c3b90be801e81d3d86" +checksum = "27ad5e34374e03cfffefc301becb44e9dc3c17584f414349ebe29ed26661822d" dependencies = [ "bytes", "libc", From 7565d562e06fabe656fdc5720b951b548acb128a Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 4 Mar 2026 05:20:09 +0000 Subject: [PATCH 089/189] Update actions/setup-node digest to 53b8394 (#423) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [actions/setup-node](https://redirect.github.com/actions/setup-node) ([changelog](https://redirect.github.com/actions/setup-node/compare/6044e13b5dc448c55e2357c09f80417699197238..53b83947a5a98c8d113130e565377fae1a50d02f)) | action | digest | `6044e13` → `53b8394` | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2453fdd6..7fcaaf32 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,7 +14,7 @@ jobs: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - uses: jdx/mise-action@e79ddf65a11cec7b0e882bedced08d6e976efb2d # v3.6.2 - name: Use Node.js ${{ env.node_version }} - uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6 + uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6 with: node-version: ${{ env.node_version }} # setting a registry enables the NODE_AUTH_TOKEN env variable where we can set an npm token. REQUIRED From 69b5022db7e146861964c775ba6f61e1c0fda639 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 5 Mar 2026 22:09:30 +0000 Subject: [PATCH 090/189] Update dependency rust to v1.94.0 (#424) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Update | Change | |---|---|---| | [rust](https://redirect.github.com/rust-lang/rust) | minor | `1.93.1` → `1.94.0` | --- ### Release Notes
rust-lang/rust (rust) ### [`v1.94.0`](https://redirect.github.com/rust-lang/rust/blob/HEAD/RELEASES.md#Version-1940-2026-03-05) [Compare Source](https://redirect.github.com/rust-lang/rust/compare/1.93.1...1.94.0) \========================== ## Language - [Impls and impl items inherit `dead_code` lint level of the corresponding traits and trait items](https://redirect.github.com/rust-lang/rust/pull/144113) - [Stabilize additional 29 RISC-V target features including large portions of the RVA22U64 / RVA23U64 profiles](https://redirect.github.com/rust-lang/rust/pull/145948) - [Add warn-by-default `unused_visibilities` lint for visibility on `const _` declarations](https://redirect.github.com/rust-lang/rust/pull/147136) - [Update to Unicode 17](https://redirect.github.com/rust-lang/rust/pull/148321) - [Avoid incorrect lifetime errors for closures](https://redirect.github.com/rust-lang/rust/pull/148329) ## Platform Support - [Add `riscv64im-unknown-none-elf` as a tier 3 target](https://redirect.github.com/rust-lang/rust/pull/148790) Refer to Rust's [platform support page][platform-support-doc] for more information on Rust's tiered platform support. [platform-support-doc]: https://doc.rust-lang.org/rustc/platform-support.html ## Libraries - [Relax `T: Ord` bound for some `BinaryHeap` methods.](https://redirect.github.com/rust-lang/rust/pull/149408) ## Stabilized APIs - [`<[T]>::array_windows`](https://doc.rust-lang.org/stable/std/primitive.slice.html#method.array_windows) - [`<[T]>::element_offset`](https://doc.rust-lang.org/stable/std/primitive.slice.html#method.element_offset) - [`LazyCell::get`](https://doc.rust-lang.org/stable/std/cell/struct.LazyCell.html#method.get) - [`LazyCell::get_mut`](https://doc.rust-lang.org/stable/std/cell/struct.LazyCell.html#method.get_mut) - [`LazyCell::force_mut`](https://doc.rust-lang.org/stable/std/cell/struct.LazyCell.html#method.force_mut) - [`LazyLock::get`](https://doc.rust-lang.org/stable/std/sync/struct.LazyLock.html#method.get) - [`LazyLock::get_mut`](https://doc.rust-lang.org/stable/std/sync/struct.LazyLock.html#method.get_mut) - [`LazyLock::force_mut`](https://doc.rust-lang.org/stable/std/sync/struct.LazyLock.html#method.force_mut) - [`impl TryFrom for usize`](https://doc.rust-lang.org/stable/std/convert/trait.TryFrom.html#impl-TryFrom%3Cchar%3E-for-usize) - [`std::iter::Peekable::next_if_map`](https://doc.rust-lang.org/stable/std/iter/struct.Peekable.html#method.next_if_map) - [`std::iter::Peekable::next_if_map_mut`](https://doc.rust-lang.org/stable/std/iter/struct.Peekable.html#method.next_if_map_mut) - [x86 `avx512fp16` intrinsics](https://redirect.github.com/rust-lang/rust/issues/127213) (excluding those that depend directly on the unstable `f16` type) - [AArch64 NEON fp16 intrinsics](https://redirect.github.com/rust-lang/rust/issues/136306) (excluding those that depend directly on the unstable `f16` type) - [`f32::consts::EULER_GAMMA`](https://doc.rust-lang.org/stable/std/f32/consts/constant.EULER_GAMMA.html) - [`f64::consts::EULER_GAMMA`](https://doc.rust-lang.org/stable/std/f64/consts/constant.EULER_GAMMA.html) - [`f32::consts::GOLDEN_RATIO`](https://doc.rust-lang.org/stable/std/f32/consts/constant.GOLDEN_RATIO.html) - [`f64::consts::GOLDEN_RATIO`](https://doc.rust-lang.org/stable/std/f64/consts/constant.GOLDEN_RATIO.html) These previously stable APIs are now stable in const contexts: - [`f32::mul_add`](https://doc.rust-lang.org/stable/std/primitive.f32.html#method.mul_add) - [`f64::mul_add`](https://doc.rust-lang.org/stable/std/primitive.f64.html#method.mul_add) ## Cargo - Stabilize the config include key. The top-level include config key allows loading additional config files, enabling better organization, sharing, and management of Cargo configurations across projects and environments. [docs](https://doc.rust-lang.org/nightly/cargo/reference/config.html#including-extra-configuration-files) [#​16284](https://redirect.github.com/rust-lang/cargo/pull/16284) - Stabilize the pubtime field in registry index. This records when a crate version was published and enables time-based dependency resolution in the future. Note that crates.io will gradually backfill existing packages when a new version is published. Not all crates have pubtime yet. [#​16369](https://redirect.github.com/rust-lang/cargo/pull/16369) [#​16372](https://redirect.github.com/rust-lang/cargo/pull/16372) - Cargo now parses [TOML v1.1](https://toml.io/en/v1.1.0) for manifests and configuration files. Note that using these features in Cargo.toml will raise your development MSRV, but the published manifest remains compatible with older parsers. [#​16415](https://redirect.github.com/rust-lang/cargo/pull/16415) - [Make `CARGO_BIN_EXE_` available at runtime ](https://redirect.github.com/rust-lang/cargo/pull/16421/) ## Compatibility Notes - [Forbid freely casting lifetime bounds of `dyn`-types](https://redirect.github.com/rust-lang/rust/pull/136776) - [Make closure capturing have consistent and correct behaviour around patterns](https://redirect.github.com/rust-lang/rust/pull/138961) Some finer details of how precise closure captures get affected by pattern matching have been changed. In some cases, this can cause a non-move closure that was previously capturing an entire variable by move, to now capture only part of that variable by move, and other parts by borrow. This can cause the borrow checker to complain where it previously didn't, or cause `Drop` to run at a different point in time. - [Standard library macros are now imported via prelude, not via injected `#[macro_use]`](https://redirect.github.com/rust-lang/rust/pull/139493) This will raise an error if macros of the same name are glob imported. For example if a crate defines their own `matches` macro and then glob imports that, it's now ambiguous whether the custom or standard library `matches` is meant and an explicit import of the name is required to resolve the ambiguity. One exception is `core::panic` and `std::panic`, if their import is ambiguous a new warning ([`ambiguous_panic_imports`](https://redirect.github.com/rust-lang/rust/issues/147319)) is raised. This may raise a new warning ([`ambiguous_panic_imports`](https://redirect.github.com/rust-lang/rust/issues/147319)) on `#![no_std]` code glob importing the std crate. Both `core::panic!` and `std::panic!` are then in scope and which is used is ambiguous. - [Don't strip shebang in expression-context `include!(…)`s](https://redirect.github.com/rust-lang/rust/pull/146377) This can cause previously working includes to no longer compile if they included files which started with a shebang. - [Ambiguous glob reexports are now also visible cross-crate](https://redirect.github.com/rust-lang/rust/pull/147984) This unifies behavior between local and cross-crate errors on these exports, which may introduce new ambiguity errors. - [Don't normalize where-clauses before checking well-formedness](https://redirect.github.com/rust-lang/rust/pull/148477) - [Introduce a future compatibility warning on codegen attributes on body-free trait methods](https://redirect.github.com/rust-lang/rust/pull/148756) These attributes currently have no effect in this position. - [On Windows `std::time::SystemTime::checked_sub_duration` will return `None` for times before the Windows epoch (1/1/1601)](https://redirect.github.com/rust-lang/rust/pull/148825) - [Lifetime identifiers such as `'a` are now NFC normalized](https://redirect.github.com/rust-lang/rust/pull/149192). - [Overhaul filename handling for cross-compiler consistency](https://redirect.github.com/rust-lang/rust/pull/149709) Any paths emitted by compiler now always respect the relative-ness of the paths and `--remap-path-prefix` given originally. One side-effect of this change is that paths emitted for local crates in Cargo (path dependencies and workspace members) are no longer absolute but relative when emitted as part of a diagnostic in a downstream crate. ## Internal Changes These changes do not affect any public interfaces of Rust, but they represent significant improvements to the performance or internals of rustc and related tools. - [Switch to `annotate-snippets` for error emission](https://redirect.github.com/rust-lang/rust/pull/150032) This should preserve mostly the same outputs in rustc error messages.
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- mise.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mise.toml b/mise.toml index d3b268c7..e5123afa 100644 --- a/mise.toml +++ b/mise.toml @@ -70,5 +70,5 @@ run = "./scripts/publish-client.sh test" "cargo:cargo-nextest" = "0.9.103" "cargo:wasm-bindgen-cli" = "0.2.105" "cargo:wasm-pack" = "0.14.0" -rust = { version = "1.93.1", targets = "wasm32-unknown-unknown", components = "clippy,rustfmt" } +rust = { version = "1.94.0", targets = "wasm32-unknown-unknown", components = "clippy,rustfmt" } From a731d4cdff8b656961dc06ffdee7c71df028321b Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 6 Mar 2026 16:45:47 +0000 Subject: [PATCH 091/189] Update dependency webpack to v5.105.4 (#425) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [webpack](https://redirect.github.com/webpack/webpack) | [`5.105.3` → `5.105.4`](https://renovatebot.com/diffs/npm/webpack/5.105.3/5.105.4) | ![age](https://developer.mend.io/api/mc/badges/age/npm/webpack/5.105.4?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/webpack/5.105.3/5.105.4?slim=true) | --- ### Release Notes
webpack/webpack (webpack) ### [`v5.105.4`](https://redirect.github.com/webpack/webpack/blob/HEAD/CHANGELOG.md#51054) [Compare Source](https://redirect.github.com/webpack/webpack/compare/v5.105.3...v5.105.4) ##### Patch Changes - Add `Module.getSourceBasicTypes` to distinguish basic source types and clarify how modules with non-basic source types like `remote` still produce JavaScript output. (by [@​xiaoxiaojx](https://redirect.github.com/xiaoxiaojx) in [#​20546](https://redirect.github.com/webpack/webpack/pull/20546)) - Handle `createRequire` in expressions. (by [@​alexander-akait](https://redirect.github.com/alexander-akait) in [#​20549](https://redirect.github.com/webpack/webpack/pull/20549)) - Fixed types for multi stats. (by [@​alexander-akait](https://redirect.github.com/alexander-akait) in [#​20556](https://redirect.github.com/webpack/webpack/pull/20556)) - Remove empty needless js output for normal css module. (by [@​JSerFeng](https://redirect.github.com/JSerFeng) in [#​20162](https://redirect.github.com/webpack/webpack/pull/20162)) - Update `enhanced-resolve` to support new features for `tsconfig.json`. (by [@​alexander-akait](https://redirect.github.com/alexander-akait) in [#​20555](https://redirect.github.com/webpack/webpack/pull/20555)) - Narrows export presence guard detection to explicit existence checks on namespace imports only, i.e. patterns like "x" in ns. (by [@​hai-x](https://redirect.github.com/hai-x) in [#​20561](https://redirect.github.com/webpack/webpack/pull/20561))
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- client/js/package-lock.json | 65 ++++++++++++------------------------- client/js/package.json | 2 +- 2 files changed, 21 insertions(+), 46 deletions(-) diff --git a/client/js/package-lock.json b/client/js/package-lock.json index a6e586b0..d442c9b9 100644 --- a/client/js/package-lock.json +++ b/client/js/package-lock.json @@ -85,9 +85,9 @@ "dev": true }, "@types/node": { - "version": "25.3.3", - "resolved": "https://registry.npmjs.org/@types/node/-/node-25.3.3.tgz", - "integrity": "sha512-DpzbrH7wIcBaJibpKo9nnSQL0MTRdnWttGyE5haGwK86xgMOkFLp7vEyfQPGLOJh5wNYiJ3V9PmUMDhV9u8kkQ==", + "version": "25.3.5", + "resolved": "https://registry.npmjs.org/@types/node/-/node-25.3.5.tgz", + "integrity": "sha512-oX8xrhvpiyRCQkG1MFchB09f+cXftgIXb3a7UUa4Y3wpmZPw5tyZGTLWhlESOLq1Rq6oDlc8npVU2/9xiCuXMA==", "dev": true, "requires": { "undici-types": "~7.18.0" @@ -337,9 +337,9 @@ "dev": true }, "caniuse-lite": { - "version": "1.0.30001775", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001775.tgz", - "integrity": "sha512-s3Qv7Lht9zbVKE9XoTyRG6wVDCKdtOFIjBGg3+Yhn6JaytuNKPIjBMTMIY1AnOH3seL5mvF+x33oGAyK3hVt3A==", + "version": "1.0.30001777", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001777.tgz", + "integrity": "sha512-tmN+fJxroPndC74efCdp12j+0rk0RHwV5Jwa1zWaFVyw2ZxAuPeG8ZgWC3Wz7uSjT3qMRQ5XHZ4COgQmsCMJAQ==", "dev": true }, "chrome-trace-event": { @@ -383,9 +383,9 @@ } }, "electron-to-chromium": { - "version": "1.5.302", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.302.tgz", - "integrity": "sha512-sM6HAN2LyK82IyPBpznDRqlTQAtuSaO+ShzFiWTvoMJLHyZ+Y39r8VMfHzwbU8MVBzQ4Wdn85+wlZl2TLGIlwg==", + "version": "1.5.307", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.307.tgz", + "integrity": "sha512-5z3uFKBWjiNR44nFcYdkcXjKMbg5KXNdciu7mhTPo9tB7NbqSNP2sSnGR+fqknZSCwKkBN+oxiiajWs4dT6ORg==", "dev": true }, "enhanced-resolve": { @@ -639,9 +639,9 @@ "dev": true }, "node-releases": { - "version": "2.0.27", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.27.tgz", - "integrity": "sha512-nmh3lCkYZ3grZvqcCH+fjmQ7X+H0OeZgP40OierEaAptX4XofMh5kwNbWh7lBduUzCcV/8kZ+NDLCwm2iorIlA==", + "version": "2.0.36", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.36.tgz", + "integrity": "sha512-TdC8FSgHz8Mwtw9g5L4gR/Sh9XhSP/0DEkQxfEFXOpiul5IiHgHan2VhYYb6agDSfp4KuvltmGApc8HMgUrIkA==", "dev": true }, "p-limit": { @@ -701,15 +701,6 @@ "find-up": "^4.0.0" } }, - "randombytes": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", - "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", - "dev": true, - "requires": { - "safe-buffer": "^5.1.0" - } - }, "rechoir": { "version": "0.8.0", "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.8.0.tgz", @@ -751,12 +742,6 @@ "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", "dev": true }, - "safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "dev": true - }, "schema-utils": { "version": "4.3.3", "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.3.3.tgz", @@ -769,15 +754,6 @@ "ajv-keywords": "^5.1.0" } }, - "serialize-javascript": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.2.tgz", - "integrity": "sha512-Saa1xPByTTq2gdeFZYLLo+RFE35NHZkAbqZeWNd3BpzppeVisAqpDjcp8dyf6uIvEqJRd46jemmyA4iFIeVk8g==", - "dev": true, - "requires": { - "randombytes": "^2.1.0" - } - }, "shallow-clone": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/shallow-clone/-/shallow-clone-3.0.1.tgz", @@ -852,15 +828,14 @@ } }, "terser-webpack-plugin": { - "version": "5.3.16", - "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.16.tgz", - "integrity": "sha512-h9oBFCWrq78NyWWVcSwZarJkZ01c2AyGrzs1crmHZO3QUg9D61Wu4NPjBy69n7JqylFF5y+CsUZYmYEIZ3mR+Q==", + "version": "5.3.17", + "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.17.tgz", + "integrity": "sha512-YR7PtUp6GMU91BgSJmlaX/rS2lGDbAF7D+Wtq7hRO+MiljNmodYvqslzCFiYVAgW+Qoaaia/QUIP4lGXufjdZw==", "dev": true, "requires": { "@jridgewell/trace-mapping": "^0.3.25", "jest-worker": "^27.4.5", "schema-utils": "^4.3.0", - "serialize-javascript": "^6.0.2", "terser": "^5.31.1" } }, @@ -891,9 +866,9 @@ } }, "webpack": { - "version": "5.105.3", - "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.105.3.tgz", - "integrity": "sha512-LLBBA4oLmT7sZdHiYE/PeVuifOxYyE2uL/V+9VQP7YSYdJU7bSf7H8bZRRxW8kEPMkmVjnrXmoR3oejIdX0xbg==", + "version": "5.105.4", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.105.4.tgz", + "integrity": "sha512-jTywjboN9aHxFlToqb0K0Zs9SbBoW4zRUlGzI2tYNxVYcEi/IPpn+Xi4ye5jTLvX2YeLuic/IvxNot+Q1jMoOw==", "dev": true, "requires": { "@types/eslint-scope": "^3.7.7", @@ -906,7 +881,7 @@ "acorn-import-phases": "^1.0.3", "browserslist": "^4.28.1", "chrome-trace-event": "^1.0.2", - "enhanced-resolve": "^5.19.0", + "enhanced-resolve": "^5.20.0", "es-module-lexer": "^2.0.0", "eslint-scope": "5.1.1", "events": "^3.2.0", @@ -918,7 +893,7 @@ "neo-async": "^2.6.2", "schema-utils": "^4.3.3", "tapable": "^2.3.0", - "terser-webpack-plugin": "^5.3.16", + "terser-webpack-plugin": "^5.3.17", "watchpack": "^2.5.1", "webpack-sources": "^3.3.4" } diff --git a/client/js/package.json b/client/js/package.json index e1fb5629..26d597c5 100644 --- a/client/js/package.json +++ b/client/js/package.json @@ -18,7 +18,7 @@ "build": "webpack" }, "devDependencies": { - "webpack": "5.105.3", + "webpack": "5.105.4", "webpack-cli": "6.0.1" }, "dependencies": { From 3ab49ff6bb9d759e8c4cb52449668ec167710915 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 6 Mar 2026 21:45:39 +0000 Subject: [PATCH 092/189] Update jdx/mise-action action to v3.6.3 (#426) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [jdx/mise-action](https://redirect.github.com/jdx/mise-action) | action | patch | `v3.6.2` → `v3.6.3` | --- ### Release Notes
jdx/mise-action (jdx/mise-action) ### [`v3.6.3`](https://redirect.github.com/jdx/mise-action/compare/v3.6.2...v3.6.3) [Compare Source](https://redirect.github.com/jdx/mise-action/compare/v3.6.2...v3.6.3)
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/bench.yml | 2 +- .github/workflows/check.yml | 2 +- .github/workflows/release.yml | 2 +- .github/workflows/test-release.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index 7cf98001..87967e8c 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -8,6 +8,6 @@ jobs: steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - - uses: jdx/mise-action@e79ddf65a11cec7b0e882bedced08d6e976efb2d # v3.6.2 + - uses: jdx/mise-action@5228313ee0372e111a38da051671ca30fc5a96db # v3.6.3 - name: Random actions test run: mise run random-actions diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 272039bf..5f5f8a37 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -8,6 +8,6 @@ jobs: steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - - uses: jdx/mise-action@e79ddf65a11cec7b0e882bedced08d6e976efb2d # v3.6.2 + - uses: jdx/mise-action@5228313ee0372e111a38da051671ca30fc5a96db # v3.6.3 - name: Check all run: mise run ci diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7fcaaf32..69e3151a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - - uses: jdx/mise-action@e79ddf65a11cec7b0e882bedced08d6e976efb2d # v3.6.2 + - uses: jdx/mise-action@5228313ee0372e111a38da051671ca30fc5a96db # v3.6.3 - name: Use Node.js ${{ env.node_version }} uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6 with: diff --git a/.github/workflows/test-release.yml b/.github/workflows/test-release.yml index 309ea714..93d04a1d 100644 --- a/.github/workflows/test-release.yml +++ b/.github/workflows/test-release.yml @@ -8,7 +8,7 @@ jobs: steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - - uses: jdx/mise-action@e79ddf65a11cec7b0e882bedced08d6e976efb2d # v3.6.2 + - uses: jdx/mise-action@5228313ee0372e111a38da051671ca30fc5a96db # v3.6.3 - name: Test server release run: mise run build-remote-server - name: Test client release From 7303ac2e17d8299137dde9a2ecb690a1a06ee3d9 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 15 Mar 2026 02:53:24 +0000 Subject: [PATCH 093/189] Update Rust crate pathfinding to v4.15.0 (#427) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [pathfinding](https://rfc1149.net/devel/pathfinding.html) ([source](https://redirect.github.com/evenfurther/pathfinding)) | dependencies | minor | `4.14.0` → `4.15.0` | --- ### Release Notes
evenfurther/pathfinding (pathfinding) ### [`v4.15.0`](https://redirect.github.com/evenfurther/pathfinding/blob/HEAD/CHANGELOG.md#v4150--2026-03-10) [Compare Source](https://redirect.github.com/evenfurther/pathfinding/compare/v4.14.0...v4.15.0) \================== - chore!: increase MSRV to 1.87.0 and switch to edition 2024 - fix: yen k=0 panic, and DfsReachable stack overflow - fix: add missing link in documentation - feat: add kuhn\_munkres\_complexity example to experimentally measure algorithm complexity - feat: add `floyd_partial` and `brent_partial` cycle-finding functions - feat: adapt BFS to accept multiple starts - feat: add NodeRefs - perf(idastar): use set for nodes encountered in path - perf: pre-allocate some hash maps - docs: add comprehensive graph documentation with examples - docs(kruskal): use correct return type in function documentation - chore: make some functions `const` - chore(deps): update rust crate criterion to 0.8
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- Cargo.lock | 40 +++++++++++++++++++++++----------------- 1 file changed, 23 insertions(+), 17 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 38c6f0e1..cf86eecb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -392,9 +392,9 @@ dependencies = [ [[package]] name = "deprecate-until" -version = "0.1.1" +version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7a3767f826efbbe5a5ae093920b58b43b01734202be697e1354914e862e8e704" +checksum = "9d0795c0c5b2cab72b80d75b5cb08bde679e616c67e954669a2476668319ac3a" dependencies = [ "proc-macro2", "quote", @@ -538,7 +538,7 @@ version = "0.9.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2e57e16b3fe8ff4364c0661fdaac543fb38b29ea9bc9c2f45612d90adf931d2b" dependencies = [ - "hashbrown", + "hashbrown 0.15.4", "ttf-parser", ] @@ -676,6 +676,12 @@ dependencies = [ "foldhash", ] +[[package]] +name = "hashbrown" +version = "0.16.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "841d1cc9bed7f9236f321df977030373f4a4163ae1a7dbfe1a51a2c1a51d9100" + [[package]] name = "hermit-abi" version = "0.5.2" @@ -945,12 +951,12 @@ dependencies = [ [[package]] name = "indexmap" -version = "2.9.0" +version = "2.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cea70ddb795996207ad57735b50c5982d8844f38ba9ee5f1aedcfb708a2aa11e" +checksum = "7714e70437a7dc3ac8eb7e6f8df75fd8eb422675fc7678aff7364301092b1017" dependencies = [ "equivalent", - "hashbrown", + "hashbrown 0.16.1", ] [[package]] @@ -1353,16 +1359,16 @@ dependencies = [ [[package]] name = "pathfinding" -version = "4.14.0" +version = "4.15.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "59ac35caa284c08f3721fb33c2741b5f763decaf42d080c8a6a722154347017e" +checksum = "835ad2773f8587ad2d90a0f7f0022ca743dfd5a6a24ea25062f3519c38d2fcfa" dependencies = [ "deprecate-until", "indexmap", "integer-sqrt", "num-traits", "rustc-hash", - "thiserror 2.0.12", + "thiserror 2.0.18", ] [[package]] @@ -1448,7 +1454,7 @@ dependencies = [ "smallvec", "symbolic-demangle", "tempfile", - "thiserror 2.0.12", + "thiserror 2.0.18", ] [[package]] @@ -1541,7 +1547,7 @@ dependencies = [ "rustc-hash", "rustls", "socket2 0.5.10", - "thiserror 2.0.12", + "thiserror 2.0.18", "tokio", "tracing", "web-time", @@ -1562,7 +1568,7 @@ dependencies = [ "rustls", "rustls-pki-types", "slab", - "thiserror 2.0.12", + "thiserror 2.0.18", "tinyvec", "tracing", "web-time", @@ -2061,11 +2067,11 @@ dependencies = [ [[package]] name = "thiserror" -version = "2.0.12" +version = "2.0.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "567b8a2dae586314f7be2a752ec7474332959c6460e02bde30d702a66d488708" +checksum = "4288b5bcbc7920c07a1149a35cf9590a2aa808e0bc1eafaade0b80947865fbc4" dependencies = [ - "thiserror-impl 2.0.12", + "thiserror-impl 2.0.18", ] [[package]] @@ -2081,9 +2087,9 @@ dependencies = [ [[package]] name = "thiserror-impl" -version = "2.0.12" +version = "2.0.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f7cf42b4507d8ea322120659672cf1b9dbb93f8f2d4ecfd6e51350ff5b17a1d" +checksum = "ebc4ee7f67670e9b64d05fa4253e753e016c6c95ff35b89b7941d6b856dec1d5" dependencies = [ "proc-macro2", "quote", From fdac1520c8e4b0b24a542968829998adbf616b1e Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 15 Mar 2026 02:53:44 +0000 Subject: [PATCH 094/189] Update jdx/mise-action action to v4 (#428) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [jdx/mise-action](https://redirect.github.com/jdx/mise-action) | action | major | `v3.6.3` → `v4.0.0` | --- ### Release Notes
jdx/mise-action (jdx/mise-action) ### [`v4.0.0`](https://redirect.github.com/jdx/mise-action/releases/tag/v4.0.0) [Compare Source](https://redirect.github.com/jdx/mise-action/compare/v3.6.3...v4.0.0) #### What's Changed - chore(deps): lock file maintenance by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​392](https://redirect.github.com/jdx/mise-action/pull/392) - chore(deps): update actions/setup-node digest to [`53b8394`](https://redirect.github.com/jdx/mise-action/commit/53b8394) by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​396](https://redirect.github.com/jdx/mise-action/pull/396) - feat!: Update Node.js version from 20 to 24 by [@​tumerorkun](https://redirect.github.com/tumerorkun) in [#​395](https://redirect.github.com/jdx/mise-action/pull/395) - chore(deps): update github/codeql-action digest to [`820e316`](https://redirect.github.com/jdx/mise-action/commit/820e316) by [@​renovate](https://redirect.github.com/renovate)\[bot] in [#​397](https://redirect.github.com/jdx/mise-action/pull/397) - chore: release v4.0.0 by [@​mise-en-dev](https://redirect.github.com/mise-en-dev) in [#​398](https://redirect.github.com/jdx/mise-action/pull/398) #### New Contributors - [@​tumerorkun](https://redirect.github.com/tumerorkun) made their first contribution in [#​395](https://redirect.github.com/jdx/mise-action/pull/395) **Full Changelog**:
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/bench.yml | 2 +- .github/workflows/check.yml | 2 +- .github/workflows/release.yml | 2 +- .github/workflows/test-release.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index 87967e8c..f18d0a04 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -8,6 +8,6 @@ jobs: steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - - uses: jdx/mise-action@5228313ee0372e111a38da051671ca30fc5a96db # v3.6.3 + - uses: jdx/mise-action@c1ecc8f748cd28cdeabf76dab3cccde4ce692fe4 # v4.0.0 - name: Random actions test run: mise run random-actions diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 5f5f8a37..fb178c4c 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -8,6 +8,6 @@ jobs: steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - - uses: jdx/mise-action@5228313ee0372e111a38da051671ca30fc5a96db # v3.6.3 + - uses: jdx/mise-action@c1ecc8f748cd28cdeabf76dab3cccde4ce692fe4 # v4.0.0 - name: Check all run: mise run ci diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 69e3151a..da3bf44a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - - uses: jdx/mise-action@5228313ee0372e111a38da051671ca30fc5a96db # v3.6.3 + - uses: jdx/mise-action@c1ecc8f748cd28cdeabf76dab3cccde4ce692fe4 # v4.0.0 - name: Use Node.js ${{ env.node_version }} uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6 with: diff --git a/.github/workflows/test-release.yml b/.github/workflows/test-release.yml index 93d04a1d..02284b1c 100644 --- a/.github/workflows/test-release.yml +++ b/.github/workflows/test-release.yml @@ -8,7 +8,7 @@ jobs: steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - - uses: jdx/mise-action@5228313ee0372e111a38da051671ca30fc5a96db # v3.6.3 + - uses: jdx/mise-action@c1ecc8f748cd28cdeabf76dab3cccde4ce692fe4 # v4.0.0 - name: Test server release run: mise run build-remote-server - name: Test client release From 9a83c586364fe9fae8594de3b2350fa3a2195bab Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 15 Mar 2026 06:06:06 +0000 Subject: [PATCH 095/189] Update Rust crate pyroscope to v2 (#429) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [pyroscope](https://pyroscope.io/docs/rust) ([source](https://redirect.github.com/pyroscope-io/pyroscope-rs)) | dependencies | major | `0.5.8` → `2.0.0` | --- ### Release Notes
pyroscope-io/pyroscope-rs (pyroscope) ### [`v2.0.0`](https://redirect.github.com/pyroscope-io/pyroscope-rs/blob/HEAD/CHANGELOG.md#v200) #### Breaking Changes - `Backend::report()` now returns `ReportBatch` instead of `Vec` ([#​437](https://redirect.github.com/grafana/pyroscope-rs/pull/437), [#​447](https://redirect.github.com/grafana/pyroscope-rs/pull/447)) - New `ReportData` enum replaces the plain `Vec` in `ReportBatch`, supporting both structured reports (`ReportData::Reports`) and pre-encoded pprof bytes (`ReportData::RawPprof`) ([#​447](https://redirect.github.com/grafana/pyroscope-rs/pull/447)) - Minimum supported Rust version bumped from 1.64 to 1.66 #### New Features - **Jemalloc memory profiling backend** — new `backend-jemalloc` feature flag enables heap profiling via `jemalloc_pprof`. Use `pyroscope::backend::jemalloc::jemalloc_backend()` to get started ([#​378](https://redirect.github.com/grafana/pyroscope-rs/pull/378)) - **`ReportBatch` type** — backends now return a `ReportBatch` with a `profile_type` field (e.g. `"process_cpu"`, `"memory"`), enabling multi-profile support ([#​437](https://redirect.github.com/grafana/pyroscope-rs/pull/437)) #### Dependencies - Updated `pprof` (pprof-pyroscope-fork) to v0.1500.3 ([#​407](https://redirect.github.com/grafana/pyroscope-rs/pull/407)) - Updated `object` crate to 0.38 ([#​430](https://redirect.github.com/grafana/pyroscope-rs/pull/430)) - Disabled py-spy default features to exclude CLI dependencies ([#​418](https://redirect.github.com/grafana/pyroscope-rs/pull/418)) - Added `jemalloc_pprof` 0.8 and `tokio` 1 as workspace dependencies ### [`v1.0.0`](https://redirect.github.com/pyroscope-io/pyroscope-rs/blob/HEAD/CHANGELOG.md#v100) #### Breaking Changes - Removed `auth_token` from Python and Ruby FFI bindings and related code - Removed `detect_subprocesses` from Python and Ruby configs - Config constructor now requires app/spy identity and sample rate inputs - Removed support for collapsed format - Removed global tags from ruleset #### New Features - Integrated pprof-rs backend into main crate behind optional `backend-pprof-rs` feature - Switched to push API (from `/ingest` to `/push`) - Generated push API protos - Added `ThreadId` type - Added `rustls-no-provider` TLS feature #### Bug Fixes / Improvements - Unified signal logic - Report cleanup functions - Optimized ruleset - Removed obscure thread id hash check - Ruby: inline thread\_id crate; remove detect\_subprocess - Dependency updates (reqwest 0.13, prost 0.14, thiserror 2.0, serde\_json 1.0.115, uuid 1.20, libflate 2.1)
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- Cargo.lock | 710 +++++++++++++++++++++++++++++++++++++++++++--- client/Cargo.toml | 2 +- server/Cargo.toml | 2 +- 3 files changed, 667 insertions(+), 47 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index cf86eecb..94cd9b1d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -170,6 +170,28 @@ version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8" +[[package]] +name = "aws-lc-rs" +version = "1.16.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94bffc006df10ac2a68c83692d734a465f8ee6c5b384d8545a636f81d858f4bf" +dependencies = [ + "aws-lc-sys", + "zeroize", +] + +[[package]] +name = "aws-lc-sys" +version = "0.38.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4321e568ed89bb5a7d291a7f37997c2c0df89809d7b6d12062c81ddb54aa782e" +dependencies = [ + "cc", + "cmake", + "dunce", + "fs_extra", +] + [[package]] name = "backtrace" version = "0.3.75" @@ -199,9 +221,9 @@ checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" [[package]] name = "bitflags" -version = "2.9.1" +version = "2.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b8e56985ec62d17e9c1001dc89c88ecd7dc08e47eba5ec7c29c7b5eeecde967" +checksum = "843867be96c8daad0d758b57df9392b6d8d271134fce549de6ce169ff98a92af" [[package]] name = "blocking" @@ -242,13 +264,22 @@ checksum = "d71b6127be86fdcfddb610f7182ac57211d4b18a3e9c82eb2d17662f2227ad6a" [[package]] name = "cc" -version = "1.2.27" +version = "1.2.57" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d487aa071b5f64da6f19a3e848e3578944b726ee5a4854b82172f02aa876bfdc" +checksum = "7a0dd1ca384932ff3641c8718a02769f1698e7563dc6974ffd03346116310423" dependencies = [ + "find-msvc-tools", + "jobserver", + "libc", "shlex", ] +[[package]] +name = "cesu8" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6d43a04d8753f35258c91f8ec639f792891f748a1edbd759cf1dcea3382ad83c" + [[package]] name = "cfg-if" version = "1.0.1" @@ -282,7 +313,7 @@ dependencies = [ "hex2d", "itertools 0.14.0", "macroquad", - "pyroscope", + "pyroscope 2.0.0", "pyroscope_pprofrs", "serde", "serde_json", @@ -292,12 +323,31 @@ dependencies = [ "web-sys", ] +[[package]] +name = "cmake" +version = "0.1.57" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "75443c44cd6b379beb8c5b45d85d0773baf31cce901fe7bb252f4eff3008ef7d" +dependencies = [ + "cc", +] + [[package]] name = "color_quant" version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3d7b894f5411737b7867f4827955924d7c254fc9f4d91a6aad6b097804b1018b" +[[package]] +name = "combine" +version = "4.6.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba5a308b75df32fe02788e748662718f03fde005016435c444eea572398219fd" +dependencies = [ + "bytes", + "memchr", +] + [[package]] name = "concurrent-queue" version = "2.5.0" @@ -317,12 +367,31 @@ dependencies = [ "wasm-bindgen", ] +[[package]] +name = "core-foundation" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b2a6cd9ae233e7f62ba4e9353e81a88df7fc8a5987b8d445b4d90c879bd156f6" +dependencies = [ + "core-foundation-sys", + "libc", +] + [[package]] name = "core-foundation-sys" version = "0.8.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" +[[package]] +name = "core2" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b49ba7ef1ad6107f8824dbe97de947cbaac53c44e7f9756a1fba0d37c1eec505" +dependencies = [ + "memchr", +] + [[package]] name = "cpp_demangle" version = "0.4.4" @@ -367,7 +436,7 @@ dependencies = [ "ident_case", "proc-macro2", "quote", - "syn 2.0.104", + "syn 2.0.117", ] [[package]] @@ -378,9 +447,15 @@ checksum = "ce154b9bea7fb0c8e8326e62d00354000c36e79770ff21b8c84e3aa267d9d531" dependencies = [ "darling_core", "quote", - "syn 2.0.104", + "syn 2.0.117", ] +[[package]] +name = "dary_heap" +version = "0.3.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "06d2e3287df1c007e74221c49ca10a95d557349e54b3a75dc2fb14712c751f04" + [[package]] name = "debugid" version = "0.8.0" @@ -399,7 +474,7 @@ dependencies = [ "proc-macro2", "quote", "semver", - "syn 2.0.104", + "syn 2.0.117", ] [[package]] @@ -410,9 +485,15 @@ checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0" dependencies = [ "proc-macro2", "quote", - "syn 2.0.104", + "syn 2.0.117", ] +[[package]] +name = "dunce" +version = "1.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92773504d58c093f6de2459af4af33faa518c13451eb8f2b5698ed3d36e7c813" + [[package]] name = "either" version = "1.15.0" @@ -437,7 +518,7 @@ dependencies = [ "darling", "proc-macro2", "quote", - "syn 2.0.104", + "syn 2.0.117", ] [[package]] @@ -498,6 +579,12 @@ dependencies = [ "simd-adler32", ] +[[package]] +name = "find-msvc-tools" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582" + [[package]] name = "findshlibs" version = "0.10.2" @@ -532,6 +619,12 @@ version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d9c4f5dac5e15c24eb999c26181a6ca40b39fe946cbe4c263c7209467bc83af2" +[[package]] +name = "foldhash" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb" + [[package]] name = "fontdue" version = "0.9.3" @@ -551,6 +644,12 @@ dependencies = [ "percent-encoding", ] +[[package]] +name = "fs_extra" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "42703706b716c37f96a77aea830392ad231f44c9e9a67872fa5548707e11b11c" + [[package]] name = "futures-channel" version = "0.3.31" @@ -636,11 +735,24 @@ dependencies = [ "cfg-if", "js-sys", "libc", - "r-efi", + "r-efi 5.3.0", "wasi 0.14.2+wasi-0.2.4", "wasm-bindgen", ] +[[package]] +name = "getrandom" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0de51e6874e94e7bf76d726fc5d13ba782deca734ff60d5bb2fb2607c7406555" +dependencies = [ + "cfg-if", + "libc", + "r-efi 6.0.0", + "wasip2", + "wasip3", +] + [[package]] name = "gimli" version = "0.31.1" @@ -673,7 +785,7 @@ checksum = "5971ac85611da7067dbfcabef3c70ebb5606018acd9e2a3903a0da507521e0d5" dependencies = [ "allocator-api2", "equivalent", - "foldhash", + "foldhash 0.1.5", ] [[package]] @@ -681,6 +793,17 @@ name = "hashbrown" version = "0.16.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "841d1cc9bed7f9236f321df977030373f4a4163ae1a7dbfe1a51a2c1a51d9100" +dependencies = [ + "allocator-api2", + "equivalent", + "foldhash 0.2.0", +] + +[[package]] +name = "heck" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" [[package]] name = "hermit-abi" @@ -909,6 +1032,12 @@ dependencies = [ "zerovec", ] +[[package]] +name = "id-arena" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3d3067d79b975e8844ca9eb072e16b31c3c1c36928edf9c6789548c524d0d954" + [[package]] name = "ident_case" version = "1.0.1" @@ -957,6 +1086,8 @@ checksum = "7714e70437a7dc3ac8eb7e6f8df75fd8eb422675fc7678aff7364301092b1017" dependencies = [ "equivalent", "hashbrown 0.16.1", + "serde", + "serde_core", ] [[package]] @@ -1008,6 +1139,38 @@ version = "1.0.15" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4a5f13b858c8d314ee3e8f639011f7ccefe71f97f96e50151fb991f267928e2c" +[[package]] +name = "jni" +version = "0.21.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1a87aa2bb7d2af34197c04845522473242e1aa17c12f4935d5856491a7fb8c97" +dependencies = [ + "cesu8", + "cfg-if", + "combine", + "jni-sys", + "log", + "thiserror 1.0.69", + "walkdir", + "windows-sys 0.45.0", +] + +[[package]] +name = "jni-sys" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8eaf4bc02d17cbdd7ff4c7438cafcdf7fb9a4613313ad11b4f8fefe7d3fa0130" + +[[package]] +name = "jobserver" +version = "0.1.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9afb3de4395d6b3e67a780b6de64b51c978ecf11cb9a462c66be7d4ca9039d33" +dependencies = [ + "getrandom 0.3.3", + "libc", +] + [[package]] name = "js-sys" version = "0.3.82" @@ -1055,6 +1218,12 @@ version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe" +[[package]] +name = "leb128fmt" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09edd9e8b54e49e587e4f6295a7d29c3ea94d469cb40ab8ca70b288248a81db2" + [[package]] name = "libc" version = "0.2.174" @@ -1069,7 +1238,20 @@ checksum = "5ff4ae71b685bbad2f2f391fe74f6b7659a34871c08b210fdc039e43bee07d18" dependencies = [ "adler32", "crc32fast", - "libflate_lz77", + "libflate_lz77 1.2.0", +] + +[[package]] +name = "libflate" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3248b8d211bd23a104a42d81b4fa8bb8ac4a3b75e7a43d85d2c9ccb6179cd74" +dependencies = [ + "adler32", + "core2", + "crc32fast", + "dary_heap", + "libflate_lz77 2.2.0", ] [[package]] @@ -1081,6 +1263,17 @@ dependencies = [ "rle-decode-fast", ] +[[package]] +name = "libflate_lz77" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a599cb10a9cd92b1300debcef28da8f70b935ec937f44fcd1b70a7c986a11c5c" +dependencies = [ + "core2", + "hashbrown 0.16.1", + "rle-decode-fast", +] + [[package]] name = "linux-raw-sys" version = "0.9.4" @@ -1216,7 +1409,7 @@ version = "0.27.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2eb04e9c688eff1c89d72b407f168cf79bb9e867a9d3323ed6c01519eb9cc053" dependencies = [ - "bitflags 2.9.1", + "bitflags 2.11.0", "cfg-if", "libc", ] @@ -1328,6 +1521,12 @@ version = "1.21.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d" +[[package]] +name = "openssl-probe" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7c87def4c32ab89d880effc9e097653c8da5d6ef28e6b539d313baaacfbafcbe" + [[package]] name = "parking" version = "2.2.1" @@ -1466,6 +1665,16 @@ dependencies = [ "zerocopy", ] +[[package]] +name = "prettyplease" +version = "0.2.37" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "479ca8adacdd7ce8f1fb39ce9ecccbfe93a3f1344b3d0d97f20bc0196208f62b" +dependencies = [ + "proc-macro2", + "syn 2.0.117", +] + [[package]] name = "proc-macro2" version = "1.0.95" @@ -1482,7 +1691,17 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0b82eaa1d779e9a4bc1c3217db8ffbeabaae1dca241bf70183242128d48681cd" dependencies = [ "bytes", - "prost-derive", + "prost-derive 0.11.9", +] + +[[package]] +name = "prost" +version = "0.14.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d2ea70524a2f82d518bce41317d0fae74151505651af45faf1ffbd6fd33f0568" +dependencies = [ + "bytes", + "prost-derive 0.14.3", ] [[package]] @@ -1498,6 +1717,19 @@ dependencies = [ "syn 1.0.109", ] +[[package]] +name = "prost-derive" +version = "0.14.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "27c6023962132f4b30eb4c172c91ce92d933da334c59c23cddee82358ddafb0b" +dependencies = [ + "anyhow", + "itertools 0.14.0", + "proc-macro2", + "quote", + "syn 2.0.117", +] + [[package]] name = "pyroscope" version = "0.5.8" @@ -1505,17 +1737,36 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d3a5f63b0d2727095db59045e6a0ef3259b28b90d481ae88f0e3d866d0234ce8" dependencies = [ "libc", - "libflate", + "libflate 1.4.0", "log", "names", - "prost", - "reqwest", + "prost 0.11.9", + "reqwest 0.12.20", "serde_json", "thiserror 1.0.69", "url", "winapi", ] +[[package]] +name = "pyroscope" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85eebd4bcbf45db75f67d2ba20ea0207bd111d2029c07a7db3229289173d4387" +dependencies = [ + "lazy_static", + "libc", + "libflate 2.2.1", + "log", + "names", + "prost 0.14.3", + "reqwest 0.13.2", + "serde_json", + "thiserror 2.0.18", + "url", + "uuid", +] + [[package]] name = "pyroscope_pprofrs" version = "0.2.10" @@ -1524,7 +1775,7 @@ checksum = "50da7a8950c542357de489aa9ee628f46322b1beaac1f4fa3313bcdebe85b4ea" dependencies = [ "log", "pprof2", - "pyroscope", + "pyroscope 0.5.8", ] [[package]] @@ -1559,6 +1810,7 @@ version = "0.11.12" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "49df843a9161c85bb8aae55f101bc0bac8bcafd637a620d9122fd7e0b2f7422e" dependencies = [ + "aws-lc-rs", "bytes", "getrandom 0.3.3", "lru-slab", @@ -1585,7 +1837,7 @@ dependencies = [ "once_cell", "socket2 0.5.10", "tracing", - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[package]] @@ -1603,6 +1855,12 @@ version = "5.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f" +[[package]] +name = "r-efi" +version = "6.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf" + [[package]] name = "rand" version = "0.8.5" @@ -1668,7 +1926,7 @@ version = "0.5.13" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0d04b7d0ee6b4a0207a0a7adb104d23ecb0b47d6beae7152d0fa34b692b29fd6" dependencies = [ - "bitflags 2.9.1", + "bitflags 2.11.0", ] [[package]] @@ -1711,6 +1969,45 @@ dependencies = [ "webpki-roots", ] +[[package]] +name = "reqwest" +version = "0.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ab3f43e3283ab1488b624b44b0e988d0acea0b3214e694730a055cb6b2efa801" +dependencies = [ + "base64", + "bytes", + "futures-channel", + "futures-core", + "futures-util", + "http", + "http-body", + "http-body-util", + "hyper", + "hyper-rustls", + "hyper-util", + "js-sys", + "log", + "percent-encoding", + "pin-project-lite", + "quinn", + "rustls", + "rustls-pki-types", + "rustls-platform-verifier", + "serde", + "serde_urlencoded", + "sync_wrapper", + "tokio", + "tokio-rustls", + "tower", + "tower-http", + "tower-service", + "url", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", +] + [[package]] name = "ring" version = "0.17.14" @@ -1749,11 +2046,11 @@ version = "1.0.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c71e83d6afe7ff64890ec6b71d6a69bb8a610ab78ce364b3352876bb4c801266" dependencies = [ - "bitflags 2.9.1", + "bitflags 2.11.0", "errno", "libc", "linux-raw-sys", - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[package]] @@ -1762,6 +2059,7 @@ version = "0.23.28" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7160e3e10bf4535308537f3c4e1641468cd0e485175d6163087c0393c7d46643" dependencies = [ + "aws-lc-rs", "once_cell", "ring", "rustls-pki-types", @@ -1770,6 +2068,18 @@ dependencies = [ "zeroize", ] +[[package]] +name = "rustls-native-certs" +version = "0.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "612460d5f7bea540c490b2b6395d8e34a953e52b491accd6c86c8164c5932a63" +dependencies = [ + "openssl-probe", + "rustls-pki-types", + "schannel", + "security-framework", +] + [[package]] name = "rustls-pki-types" version = "1.12.0" @@ -1780,12 +2090,40 @@ dependencies = [ "zeroize", ] +[[package]] +name = "rustls-platform-verifier" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d99feebc72bae7ab76ba994bb5e121b8d83d910ca40b36e0921f53becc41784" +dependencies = [ + "core-foundation", + "core-foundation-sys", + "jni", + "log", + "once_cell", + "rustls", + "rustls-native-certs", + "rustls-platform-verifier-android", + "rustls-webpki", + "security-framework", + "security-framework-sys", + "webpki-root-certs", + "windows-sys 0.61.1", +] + +[[package]] +name = "rustls-platform-verifier-android" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f87165f0995f63a9fbeea62b64d10b4d9d8e78ec6d7d51fb2125fda7bb36788f" + [[package]] name = "rustls-webpki" version = "0.103.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e4a72fe2bcf7a6ac6fd7d0b9e5cb68aeb7d4c0a0271730218b3e92d43b4eb435" dependencies = [ + "aws-lc-rs", "ring", "rustls-pki-types", "untrusted", @@ -1803,12 +2141,53 @@ version = "1.0.20" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "28d3b2b1366ec20994f1fd18c3c594f05c5dd4bc44d8bb0c1c632c8d6829481f" +[[package]] +name = "same-file" +version = "1.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502" +dependencies = [ + "winapi-util", +] + +[[package]] +name = "schannel" +version = "0.1.29" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "91c1b7e4904c873ef0710c1f407dde2e6287de2bebc1bbbf7d430bb7cbffd939" +dependencies = [ + "windows-sys 0.61.1", +] + [[package]] name = "scopeguard" version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" +[[package]] +name = "security-framework" +version = "3.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b7f4bc775c73d9a02cde8bf7b2ec4c9d12743edf609006c7facc23998404cd1d" +dependencies = [ + "bitflags 2.11.0", + "core-foundation", + "core-foundation-sys", + "libc", + "security-framework-sys", +] + +[[package]] +name = "security-framework-sys" +version = "2.17.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ce2691df843ecc5d231c0b14ece2acc3efb62c0a398c7e1d875f3983ce020e3" +dependencies = [ + "core-foundation-sys", + "libc", +] + [[package]] name = "semver" version = "1.0.26" @@ -1853,7 +2232,7 @@ checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79" dependencies = [ "proc-macro2", "quote", - "syn 2.0.104", + "syn 2.0.117", ] [[package]] @@ -1895,7 +2274,7 @@ dependencies = [ "num", "num_cpus", "pathfinding", - "pyroscope", + "pyroscope 2.0.0", "pyroscope_pprofrs", "rustc-hash", "serde", @@ -2014,9 +2393,9 @@ dependencies = [ [[package]] name = "syn" -version = "2.0.104" +version = "2.0.117" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "17b6f705963418cdb9927482fa304bc562ece2fdd4f616084c50b7023b435a40" +checksum = "e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99" dependencies = [ "proc-macro2", "quote", @@ -2040,7 +2419,7 @@ checksum = "728a70f3dbaf5bab7f0c4b1ac8d7ae5ea60a4b5549c8a5914361c99147a709d2" dependencies = [ "proc-macro2", "quote", - "syn 2.0.104", + "syn 2.0.117", ] [[package]] @@ -2053,7 +2432,7 @@ dependencies = [ "getrandom 0.3.3", "once_cell", "rustix", - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[package]] @@ -2082,7 +2461,7 @@ checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1" dependencies = [ "proc-macro2", "quote", - "syn 2.0.104", + "syn 2.0.117", ] [[package]] @@ -2093,7 +2472,7 @@ checksum = "ebc4ee7f67670e9b64d05fa4253e753e016c6c95ff35b89b7941d6b856dec1d5" dependencies = [ "proc-macro2", "quote", - "syn 2.0.104", + "syn 2.0.117", ] [[package]] @@ -2146,7 +2525,7 @@ checksum = "af407857209536a95c8e56f8231ef2c2e2aff839b22e07a1ffcbc617e9db9fa5" dependencies = [ "proc-macro2", "quote", - "syn 2.0.104", + "syn 2.0.117", ] [[package]] @@ -2176,11 +2555,11 @@ dependencies = [ [[package]] name = "tower-http" -version = "0.6.6" +version = "0.6.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "adc82fd73de2a9722ac5da747f12383d2bfdb93591ee6c58486e0097890f05f2" +checksum = "d4e6559d53cc268e5031cd8429d05415bc4cb4aefc4aa5d6cc35fbf5b924a1f8" dependencies = [ - "bitflags 2.9.1", + "bitflags 2.11.0", "bytes", "futures-util", "http", @@ -2241,6 +2620,12 @@ version = "1.0.18" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5a5f39404a5da50712a4c1eecf25e90dd62b613502b7e925fd4e4d19b5c96512" +[[package]] +name = "unicode-xid" +version = "0.2.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ebc1c04c71510c7f702b52b7c350734c9ff1295c464a03335b00bb84fc54f853" + [[package]] name = "untrusted" version = "0.9.0" @@ -2266,10 +2651,11 @@ checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be" [[package]] name = "uuid" -version = "1.17.0" +version = "1.22.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3cf4199d1e5d15ddd86a694e4d0dffa9c323ce759fea589f00fef9d81cc1931d" +checksum = "a68d3c8f01c0cfa54a75291d83601161799e4a89a39e0929f4b0354d88757a37" dependencies = [ + "getrandom 0.4.2", "js-sys", "wasm-bindgen", ] @@ -2280,6 +2666,16 @@ version = "1.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "943ce29a8a743eb10d6082545d861b24f9d1b160b7d741e0f2cdf726bec909c5" +[[package]] +name = "walkdir" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b" +dependencies = [ + "same-file", + "winapi-util", +] + [[package]] name = "want" version = "0.3.1" @@ -2304,6 +2700,24 @@ dependencies = [ "wit-bindgen-rt", ] +[[package]] +name = "wasip2" +version = "1.0.2+wasi-0.2.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9517f9239f02c069db75e65f174b3da828fe5f5b945c4dd26bd25d89c03ebcf5" +dependencies = [ + "wit-bindgen", +] + +[[package]] +name = "wasip3" +version = "0.4.0+wasi-0.3.0-rc-2026-01-06" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5428f8bf88ea5ddc08faddef2ac4a67e390b88186c703ce6dbd955e1c145aca5" +dependencies = [ + "wit-bindgen", +] + [[package]] name = "wasm-bindgen" version = "0.2.105" @@ -2349,7 +2763,7 @@ dependencies = [ "bumpalo", "proc-macro2", "quote", - "syn 2.0.104", + "syn 2.0.117", "wasm-bindgen-shared", ] @@ -2362,6 +2776,40 @@ dependencies = [ "unicode-ident", ] +[[package]] +name = "wasm-encoder" +version = "0.244.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "990065f2fe63003fe337b932cfb5e3b80e0b4d0f5ff650e6985b1048f62c8319" +dependencies = [ + "leb128fmt", + "wasmparser", +] + +[[package]] +name = "wasm-metadata" +version = "0.244.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bb0e353e6a2fbdc176932bbaab493762eb1255a7900fe0fea1a2f96c296cc909" +dependencies = [ + "anyhow", + "indexmap", + "wasm-encoder", + "wasmparser", +] + +[[package]] +name = "wasmparser" +version = "0.244.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "47b807c72e1bac69382b3a6fb3dbe8ea4c0ed87ff5629b8685ae6b9a611028fe" +dependencies = [ + "bitflags 2.11.0", + "hashbrown 0.15.4", + "indexmap", + "semver", +] + [[package]] name = "web-sys" version = "0.3.82" @@ -2382,6 +2830,15 @@ dependencies = [ "wasm-bindgen", ] +[[package]] +name = "webpki-root-certs" +version = "1.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "804f18a4ac2676ffb4e8b5b5fa9ae38af06df08162314f96a68d2a363e21a8ca" +dependencies = [ + "rustls-pki-types", +] + [[package]] name = "webpki-roots" version = "1.0.1" @@ -2407,6 +2864,15 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" +[[package]] +name = "winapi-util" +version = "0.1.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22" +dependencies = [ + "windows-sys 0.61.1", +] + [[package]] name = "winapi-x86_64-pc-windows-gnu" version = "0.4.0" @@ -2434,7 +2900,7 @@ checksum = "a47fddd13af08290e67f4acabf4b459f647552718f683a7b415d290ac744a836" dependencies = [ "proc-macro2", "quote", - "syn 2.0.104", + "syn 2.0.117", ] [[package]] @@ -2445,7 +2911,7 @@ checksum = "bd9211b69f8dcdfa817bfd14bf1c97c9188afa36f4750130fcdf3f400eca9fa8" dependencies = [ "proc-macro2", "quote", - "syn 2.0.104", + "syn 2.0.117", ] [[package]] @@ -2478,6 +2944,15 @@ dependencies = [ "windows-link 0.1.3", ] +[[package]] +name = "windows-sys" +version = "0.45.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "75283be5efb2831d37ea142365f009c02ec203cd29a3ebecbc093d52315b66d0" +dependencies = [ + "windows-targets 0.42.2", +] + [[package]] name = "windows-sys" version = "0.52.0" @@ -2514,6 +2989,21 @@ dependencies = [ "windows-link 0.2.0", ] +[[package]] +name = "windows-targets" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e5180c00cd44c9b1c88adb3693291f1cd93605ded80c250a75d472756b4d071" +dependencies = [ + "windows_aarch64_gnullvm 0.42.2", + "windows_aarch64_msvc 0.42.2", + "windows_i686_gnu 0.42.2", + "windows_i686_msvc 0.42.2", + "windows_x86_64_gnu 0.42.2", + "windows_x86_64_gnullvm 0.42.2", + "windows_x86_64_msvc 0.42.2", +] + [[package]] name = "windows-targets" version = "0.52.6" @@ -2546,6 +3036,12 @@ dependencies = [ "windows_x86_64_msvc 0.53.0", ] +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "597a5118570b68bc08d8d59125332c54f1ba9d9adeedeef5b99b02ba2b0698f8" + [[package]] name = "windows_aarch64_gnullvm" version = "0.52.6" @@ -2558,6 +3054,12 @@ version = "0.53.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "86b8d5f90ddd19cb4a147a5fa63ca848db3df085e25fee3cc10b39b6eebae764" +[[package]] +name = "windows_aarch64_msvc" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e08e8864a60f06ef0d0ff4ba04124db8b0fb3be5776a5cd47641e942e58c4d43" + [[package]] name = "windows_aarch64_msvc" version = "0.52.6" @@ -2570,6 +3072,12 @@ version = "0.53.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c7651a1f62a11b8cbd5e0d42526e55f2c99886c77e007179efff86c2b137e66c" +[[package]] +name = "windows_i686_gnu" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c61d927d8da41da96a81f029489353e68739737d3beca43145c8afec9a31a84f" + [[package]] name = "windows_i686_gnu" version = "0.52.6" @@ -2594,6 +3102,12 @@ version = "0.53.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9ce6ccbdedbf6d6354471319e781c0dfef054c81fbc7cf83f338a4296c0cae11" +[[package]] +name = "windows_i686_msvc" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "44d840b6ec649f480a41c8d80f9c65108b92d89345dd94027bfe06ac444d1060" + [[package]] name = "windows_i686_msvc" version = "0.52.6" @@ -2606,6 +3120,12 @@ version = "0.53.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "581fee95406bb13382d2f65cd4a908ca7b1e4c2f1917f143ba16efe98a589b5d" +[[package]] +name = "windows_x86_64_gnu" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8de912b8b8feb55c064867cf047dda097f92d51efad5b491dfb98f6bbb70cb36" + [[package]] name = "windows_x86_64_gnu" version = "0.52.6" @@ -2618,6 +3138,12 @@ version = "0.53.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2e55b5ac9ea33f2fc1716d1742db15574fd6fc8dadc51caab1c16a3d3b4190ba" +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "26d41b46a36d453748aedef1486d5c7a85db22e56aff34643984ea85514e94a3" + [[package]] name = "windows_x86_64_gnullvm" version = "0.52.6" @@ -2630,6 +3156,12 @@ version = "0.53.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0a6e035dd0599267ce1ee132e51c27dd29437f63325753051e71dd9e42406c57" +[[package]] +name = "windows_x86_64_msvc" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9aec5da331524158c6d1a4ac0ab1541149c0b9505fde06423b02f5ef0106b9f0" + [[package]] name = "windows_x86_64_msvc" version = "0.52.6" @@ -2642,13 +3174,101 @@ version = "0.53.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "271414315aff87387382ec3d271b52d7ae78726f5d44ac98b4f4030c91880486" +[[package]] +name = "wit-bindgen" +version = "0.51.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d7249219f66ced02969388cf2bb044a09756a083d0fab1e566056b04d9fbcaa5" +dependencies = [ + "wit-bindgen-rust-macro", +] + +[[package]] +name = "wit-bindgen-core" +version = "0.51.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ea61de684c3ea68cb082b7a88508a8b27fcc8b797d738bfc99a82facf1d752dc" +dependencies = [ + "anyhow", + "heck", + "wit-parser", +] + [[package]] name = "wit-bindgen-rt" version = "0.39.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6f42320e61fe2cfd34354ecb597f86f413484a798ba44a8ca1165c58d42da6c1" dependencies = [ - "bitflags 2.9.1", + "bitflags 2.11.0", +] + +[[package]] +name = "wit-bindgen-rust" +version = "0.51.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b7c566e0f4b284dd6561c786d9cb0142da491f46a9fbed79ea69cdad5db17f21" +dependencies = [ + "anyhow", + "heck", + "indexmap", + "prettyplease", + "syn 2.0.117", + "wasm-metadata", + "wit-bindgen-core", + "wit-component", +] + +[[package]] +name = "wit-bindgen-rust-macro" +version = "0.51.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c0f9bfd77e6a48eccf51359e3ae77140a7f50b1e2ebfe62422d8afdaffab17a" +dependencies = [ + "anyhow", + "prettyplease", + "proc-macro2", + "quote", + "syn 2.0.117", + "wit-bindgen-core", + "wit-bindgen-rust", +] + +[[package]] +name = "wit-component" +version = "0.244.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9d66ea20e9553b30172b5e831994e35fbde2d165325bec84fc43dbf6f4eb9cb2" +dependencies = [ + "anyhow", + "bitflags 2.11.0", + "indexmap", + "log", + "serde", + "serde_derive", + "serde_json", + "wasm-encoder", + "wasm-metadata", + "wasmparser", + "wit-parser", +] + +[[package]] +name = "wit-parser" +version = "0.244.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ecc8ac4bc1dc3381b7f59c34f00b67e18f910c2c0f50015669dde7def656a736" +dependencies = [ + "anyhow", + "id-arena", + "indexmap", + "log", + "semver", + "serde", + "serde_derive", + "serde_json", + "unicode-xid", + "wasmparser", ] [[package]] @@ -2677,7 +3297,7 @@ checksum = "38da3c9736e16c5d3c8c597a9aaa5d1fa565d0532ae05e27c24aa62fb32c0ab6" dependencies = [ "proc-macro2", "quote", - "syn 2.0.104", + "syn 2.0.117", "synstructure", ] @@ -2698,7 +3318,7 @@ checksum = "9ecf5b4cc5364572d7f4c329661bcc82724222973f2cab6f050a4e5c22f75181" dependencies = [ "proc-macro2", "quote", - "syn 2.0.104", + "syn 2.0.117", ] [[package]] @@ -2718,7 +3338,7 @@ checksum = "d71e5d6e06ab090c67b5e44993ec16b72dcbaabc526db883a360057678b48502" dependencies = [ "proc-macro2", "quote", - "syn 2.0.104", + "syn 2.0.117", "synstructure", ] @@ -2758,7 +3378,7 @@ checksum = "5b96237efa0c878c64bd89c436f661be4e46b2f3eff1ebb976f7ef2321d2f58f" dependencies = [ "proc-macro2", "quote", - "syn 2.0.104", + "syn 2.0.117", ] [[package]] diff --git a/client/Cargo.toml b/client/Cargo.toml index c4fef3ce..3e913763 100644 --- a/client/Cargo.toml +++ b/client/Cargo.toml @@ -18,7 +18,7 @@ wasm-bindgen = "0.2.100" wasm-bindgen-futures = "0.4.50" console_error_panic_hook = "0.1.7" web-sys = { version = "0.3.77", features = ["Window"] } -pyroscope = { version = "0.5.8", optional = true } +pyroscope = { version = "2.0.0", optional = true } pyroscope_pprofrs = { version = "0.2.10", optional = true } serde = { version = "1.0.219", features = ["derive"] } diff --git a/server/Cargo.toml b/server/Cargo.toml index 11cbebbe..036098fd 100644 --- a/server/Cargo.toml +++ b/server/Cargo.toml @@ -31,7 +31,7 @@ pathfinding = "4.14.0" num_cpus = "1.16.0" enumset = { version = "1.1.6" } rustc-hash = "2.1.1" -pyroscope = { version = "0.5.8", optional = true } +pyroscope = { version = "2.0.0", optional = true } pyroscope_pprofrs = { version = "0.2.10", optional = true } chrono = "0.4.41" string-builder = "0.2.0" From 6dff594b1bfbe089d5075e7943f7b0a2b319f625 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 16 Mar 2026 21:23:29 +0000 Subject: [PATCH 096/189] Update dependency webpack-cli to v7 (#430) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [webpack-cli](https://redirect.github.com/webpack/webpack-cli/tree/main/packages/webpack-cli) ([source](https://redirect.github.com/webpack/webpack-cli)) | [`6.0.1` → `7.0.0`](https://renovatebot.com/diffs/npm/webpack-cli/6.0.1/7.0.0) | ![age](https://developer.mend.io/api/mc/badges/age/npm/webpack-cli/7.0.0?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/webpack-cli/6.0.1/7.0.0?slim=true) | --- ### Release Notes
webpack/webpack-cli (webpack-cli) ### [`v7.0.0`](https://redirect.github.com/webpack/webpack-cli/blob/HEAD/CHANGELOG.md#700) [Compare Source](https://redirect.github.com/webpack/webpack-cli/compare/webpack-cli@6.0.1...webpack-cli@7.0.0) ##### Major Changes - The minimum supported version of Node.js is `20.9.0`. (by [@​alexander-akait](https://redirect.github.com/alexander-akait) in [#​4677](https://redirect.github.com/webpack/webpack-cli/pull/4677)) - Use dynamic import to load `webpack.config.js`, fallback to interpret only when configuration can't be load by dynamic import. Using dynamic imports allows you to take advantage of Node.js's built-in TypeScript support. (by [@​alexander-akait](https://redirect.github.com/alexander-akait) in [#​4677](https://redirect.github.com/webpack/webpack-cli/pull/4677)) - Removed the `--node-env` argument in favor of the `--config-node-env` argument. (by [@​alexander-akait](https://redirect.github.com/alexander-akait) in [#​4677](https://redirect.github.com/webpack/webpack-cli/pull/4677)) - The `version` command only output versions right now. (by [@​alexander-akait](https://redirect.github.com/alexander-akait) in [#​4677](https://redirect.github.com/webpack/webpack-cli/pull/4677)) - Removed deprecated API, no action required unless you use `import cli from "webpack-cli";`/`const cli = require("webpack-cli");`. (by [@​alexander-akait](https://redirect.github.com/alexander-akait) in [#​4677](https://redirect.github.com/webpack/webpack-cli/pull/4677)) ##### Patch Changes - Allow configuration freezing. (by [@​alexander-akait](https://redirect.github.com/alexander-akait) in [#​4677](https://redirect.github.com/webpack/webpack-cli/pull/4677)) - Use graceful shutdown when file system cache is enabled. (by [@​alexander-akait](https://redirect.github.com/alexander-akait) in [#​4677](https://redirect.github.com/webpack/webpack-cli/pull/4677)) - Performance improved. (by [@​alexander-akait](https://redirect.github.com/alexander-akait) in [#​4677](https://redirect.github.com/webpack/webpack-cli/pull/4677))
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- client/js/package-lock.json | 66 +++++++++++-------------------------- client/js/package.json | 2 +- 2 files changed, 20 insertions(+), 48 deletions(-) diff --git a/client/js/package-lock.json b/client/js/package-lock.json index d442c9b9..ff4c454b 100644 --- a/client/js/package-lock.json +++ b/client/js/package-lock.json @@ -5,9 +5,9 @@ "requires": true, "dependencies": { "@discoveryjs/json-ext": { - "version": "0.6.3", - "resolved": "https://registry.npmjs.org/@discoveryjs/json-ext/-/json-ext-0.6.3.tgz", - "integrity": "sha512-4B4OijXeVNOPZlYA2oEwWOTkzyltLao+xbotHQeqN++Rv27Y6s818+n2Qkp8q+Fxhn0t/5lA5X1Mxktud8eayQ==", + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@discoveryjs/json-ext/-/json-ext-1.0.0.tgz", + "integrity": "sha512-dDlz3W405VMFO4w5kIP9DOmELBcvFQGmLoKSdIRstBDubKFYwaNHV1NnlzMCQpXQFGWVALmeMORAuiLx18AvZQ==", "dev": true }, "@jridgewell/gen-mapping": { @@ -239,24 +239,6 @@ "@xtuc/long": "4.2.2" } }, - "@webpack-cli/configtest": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@webpack-cli/configtest/-/configtest-3.0.1.tgz", - "integrity": "sha512-u8d0pJ5YFgneF/GuvEiDA61Tf1VDomHHYMjv/wc9XzYj7nopltpG96nXN5dJRstxZhcNpV1g+nT6CydO7pHbjA==", - "dev": true - }, - "@webpack-cli/info": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@webpack-cli/info/-/info-3.0.1.tgz", - "integrity": "sha512-coEmDzc2u/ffMvuW9aCjoRzNSPDl/XLuhPdlFRpT9tZHmJ/039az33CE7uH+8s0uL1j5ZNtfdv0HkfaKRBGJsQ==", - "dev": true - }, - "@webpack-cli/serve": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@webpack-cli/serve/-/serve-3.0.1.tgz", - "integrity": "sha512-sbgw03xQaCLiT6gcY/6u3qBDn01CWw/nbaXl3gTdTFuJJ75Gffv3E3DBpgvY2fkkrdS1fpjaXNOmJlnbtKauKg==", - "dev": true - }, "@xtuc/ieee754": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz", @@ -359,12 +341,6 @@ "shallow-clone": "^3.0.0" } }, - "colorette": { - "version": "2.0.20", - "resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.20.tgz", - "integrity": "sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==", - "dev": true - }, "commander": { "version": "2.20.3", "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", @@ -399,9 +375,9 @@ } }, "envinfo": { - "version": "7.14.0", - "resolved": "https://registry.npmjs.org/envinfo/-/envinfo-7.14.0.tgz", - "integrity": "sha512-CO40UI41xDQzhLB1hWyqUKgFhs250pNcGbyGKe1l/e4FSaI/+YE4IMG76GDt0In67WLPACIITC+sOi08x4wIvg==", + "version": "7.21.0", + "resolved": "https://registry.npmjs.org/envinfo/-/envinfo-7.21.0.tgz", + "integrity": "sha512-Lw7I8Zp5YKHFCXL7+Dz95g4CcbMEpgvqZNNq3AmlT5XAV6CgAAk6gyAMqn2zjw08K9BHfcNuKrMiCPLByGafow==", "dev": true }, "es-module-lexer": { @@ -717,12 +693,12 @@ "dev": true }, "resolve": { - "version": "1.22.10", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.10.tgz", - "integrity": "sha512-NPRy+/ncIMeDlTAsuqwKIiferiawhefFJtkNSW0qZJEqMEb+qBt/77B/jGeeek+F0uOeN05CDa6HXbbIgtVX4w==", + "version": "1.22.11", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.11.tgz", + "integrity": "sha512-RfqAvLnMl313r7c9oclB1HhUEAezcpLjz95wFH4LVuhk9JF/r22qmVP9AMmOU4vMX7Q8pN8jwNg/CSpdFnMjTQ==", "dev": true, "requires": { - "is-core-module": "^2.16.0", + "is-core-module": "^2.16.1", "path-parse": "^1.0.7", "supports-preserve-symlinks-flag": "^1.0.0" } @@ -899,18 +875,14 @@ } }, "webpack-cli": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/webpack-cli/-/webpack-cli-6.0.1.tgz", - "integrity": "sha512-MfwFQ6SfwinsUVi0rNJm7rHZ31GyTcpVE5pgVA3hwFRb7COD4TzjUUwhGWKfO50+xdc2MQPuEBBJoqIMGt3JDw==", + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/webpack-cli/-/webpack-cli-7.0.0.tgz", + "integrity": "sha512-NbM62WodkUPXQGR/Ip3pSFsFUKJSseDIFr2H5Z1+4fHwB9X4cO10knPShIopFqAHZa8a5Q8pdtmtE6C12/mlMQ==", "dev": true, "requires": { - "@discoveryjs/json-ext": "^0.6.1", - "@webpack-cli/configtest": "^3.0.1", - "@webpack-cli/info": "^3.0.1", - "@webpack-cli/serve": "^3.0.1", - "colorette": "^2.0.14", - "commander": "^12.1.0", - "cross-spawn": "^7.0.3", + "@discoveryjs/json-ext": "^1.0.0", + "commander": "^14.0.3", + "cross-spawn": "^7.0.6", "envinfo": "^7.14.0", "fastest-levenshtein": "^1.0.12", "import-local": "^3.0.2", @@ -920,9 +892,9 @@ }, "dependencies": { "commander": { - "version": "12.1.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-12.1.0.tgz", - "integrity": "sha512-Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA==", + "version": "14.0.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-14.0.3.tgz", + "integrity": "sha512-H+y0Jo/T1RZ9qPP4Eh1pkcQcLRglraJaSLoyOtHxu6AapkjWVCy2Sit1QQ4x3Dng8qDlSsZEet7g5Pq06MvTgw==", "dev": true } } diff --git a/client/js/package.json b/client/js/package.json index 26d597c5..e521b968 100644 --- a/client/js/package.json +++ b/client/js/package.json @@ -19,7 +19,7 @@ }, "devDependencies": { "webpack": "5.105.4", - "webpack-cli": "6.0.1" + "webpack-cli": "7.0.0" }, "dependencies": { "events": "^3.3.0" From a51d0811bfeba369abdf8cdd6b2db7de5e0407df Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 19 Mar 2026 21:38:52 +0000 Subject: [PATCH 097/189] Update dependency webpack-cli to v7.0.1 (#431) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [webpack-cli](https://redirect.github.com/webpack/webpack-cli/tree/main/packages/webpack-cli) ([source](https://redirect.github.com/webpack/webpack-cli)) | [`7.0.0` → `7.0.1`](https://renovatebot.com/diffs/npm/webpack-cli/7.0.0/7.0.1) | ![age](https://developer.mend.io/api/mc/badges/age/npm/webpack-cli/7.0.1?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/webpack-cli/7.0.0/7.0.1?slim=true) | --- ### Release Notes
webpack/webpack-cli (webpack-cli) ### [`v7.0.1`](https://redirect.github.com/webpack/webpack-cli/blob/HEAD/CHANGELOG.md#701) [Compare Source](https://redirect.github.com/webpack/webpack-cli/compare/webpack-cli@7.0.0...webpack-cli@7.0.1) ##### Patch Changes - The `file` protocol for configuration options (`--config`/`--extends`) is supported. (by [@​alexander-akait](https://redirect.github.com/alexander-akait) in [#​4702](https://redirect.github.com/webpack/webpack-cli/pull/4702))
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- client/js/package-lock.json | 6 +++--- client/js/package.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/client/js/package-lock.json b/client/js/package-lock.json index ff4c454b..5597aed0 100644 --- a/client/js/package-lock.json +++ b/client/js/package-lock.json @@ -875,9 +875,9 @@ } }, "webpack-cli": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/webpack-cli/-/webpack-cli-7.0.0.tgz", - "integrity": "sha512-NbM62WodkUPXQGR/Ip3pSFsFUKJSseDIFr2H5Z1+4fHwB9X4cO10knPShIopFqAHZa8a5Q8pdtmtE6C12/mlMQ==", + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/webpack-cli/-/webpack-cli-7.0.1.tgz", + "integrity": "sha512-QeNvbQ3q67tiY7UqjbsfhK2026YTVhtW8XsfdrrGfGUtBe6EQpxBB1w9SbB2eLTZzx4m8tRvm8dqKo8rBNfeFg==", "dev": true, "requires": { "@discoveryjs/json-ext": "^1.0.0", diff --git a/client/js/package.json b/client/js/package.json index e521b968..4b78ef79 100644 --- a/client/js/package.json +++ b/client/js/package.json @@ -19,7 +19,7 @@ }, "devDependencies": { "webpack": "5.105.4", - "webpack-cli": "7.0.0" + "webpack-cli": "7.0.1" }, "dependencies": { "events": "^3.3.0" From 4ce5bfb192b22cdca96bbd0126b42797898f531e Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 20 Mar 2026 13:40:29 +0000 Subject: [PATCH 098/189] Update dependency webpack-cli to v7.0.2 (#432) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [webpack-cli](https://redirect.github.com/webpack/webpack-cli/tree/main/packages/webpack-cli) ([source](https://redirect.github.com/webpack/webpack-cli)) | [`7.0.1` → `7.0.2`](https://renovatebot.com/diffs/npm/webpack-cli/7.0.1/7.0.2) | ![age](https://developer.mend.io/api/mc/badges/age/npm/webpack-cli/7.0.2?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/webpack-cli/7.0.1/7.0.2?slim=true) | --- ### Release Notes
webpack/webpack-cli (webpack-cli) ### [`v7.0.2`](https://redirect.github.com/webpack/webpack-cli/blob/HEAD/CHANGELOG.md#702) [Compare Source](https://redirect.github.com/webpack/webpack-cli/compare/webpack-cli@7.0.1...webpack-cli@7.0.2) ##### Patch Changes - Resolve configuration path for cache build dependencies. (by [@​alexander-akait](https://redirect.github.com/alexander-akait) in [#​4707](https://redirect.github.com/webpack/webpack-cli/pull/4707))
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- client/js/package-lock.json | 6 +++--- client/js/package.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/client/js/package-lock.json b/client/js/package-lock.json index 5597aed0..11e38150 100644 --- a/client/js/package-lock.json +++ b/client/js/package-lock.json @@ -875,9 +875,9 @@ } }, "webpack-cli": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/webpack-cli/-/webpack-cli-7.0.1.tgz", - "integrity": "sha512-QeNvbQ3q67tiY7UqjbsfhK2026YTVhtW8XsfdrrGfGUtBe6EQpxBB1w9SbB2eLTZzx4m8tRvm8dqKo8rBNfeFg==", + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/webpack-cli/-/webpack-cli-7.0.2.tgz", + "integrity": "sha512-dB0R4T+C/8YuvM+fabdvil6QE44/ChDXikV5lOOkrUeCkW5hTJv2pGLE3keh+D5hjYw8icBaJkZzpFoaHV4T+g==", "dev": true, "requires": { "@discoveryjs/json-ext": "^1.0.0", diff --git a/client/js/package.json b/client/js/package.json index 4b78ef79..f725df2a 100644 --- a/client/js/package.json +++ b/client/js/package.json @@ -19,7 +19,7 @@ }, "devDependencies": { "webpack": "5.105.4", - "webpack-cli": "7.0.1" + "webpack-cli": "7.0.2" }, "dependencies": { "events": "^3.3.0" From e2f626c3915e64f86aec834f5dc85fa281d3b36b Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 22 Mar 2026 17:08:46 +0000 Subject: [PATCH 099/189] Update jdx/mise-action action to v4.0.1 (#433) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [jdx/mise-action](https://redirect.github.com/jdx/mise-action) | action | patch | `v4.0.0` → `v4.0.1` | --- ### Release Notes
jdx/mise-action (jdx/mise-action) ### [`v4.0.1`](https://redirect.github.com/jdx/mise-action/releases/tag/v4.0.1): : Documentation and Internal Cleanup [Compare Source](https://redirect.github.com/jdx/mise-action/compare/v4.0.0...v4.0.1) A small maintenance release that updates the README documentation to reflect v4 and cleans up internal code. There are no functional changes to the action itself. ##### Changed - Updated all README examples to reference `jdx/mise-action@v4`, `actions/checkout@v6`, and current tool versions by [@​deining](https://redirect.github.com/deining) in [#​407](https://redirect.github.com/jdx/mise-action/pull/407) and [#​408](https://redirect.github.com/jdx/mise-action/pull/408) - Extracted `getCwd()` helper to deduplicate working directory resolution logic (internal refactor, no behavior change) by [@​altendky](https://redirect.github.com/altendky) in [#​403](https://redirect.github.com/jdx/mise-action/pull/403) ##### New Contributors - [@​deining](https://redirect.github.com/deining) made their first contribution in [#​407](https://redirect.github.com/jdx/mise-action/pull/407) **Full Changelog**:
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/bench.yml | 2 +- .github/workflows/check.yml | 2 +- .github/workflows/release.yml | 2 +- .github/workflows/test-release.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index f18d0a04..79382b63 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -8,6 +8,6 @@ jobs: steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - - uses: jdx/mise-action@c1ecc8f748cd28cdeabf76dab3cccde4ce692fe4 # v4.0.0 + - uses: jdx/mise-action@1648a7812b9aeae629881980618f079932869151 # v4.0.1 - name: Random actions test run: mise run random-actions diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index fb178c4c..6fc8c37f 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -8,6 +8,6 @@ jobs: steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - - uses: jdx/mise-action@c1ecc8f748cd28cdeabf76dab3cccde4ce692fe4 # v4.0.0 + - uses: jdx/mise-action@1648a7812b9aeae629881980618f079932869151 # v4.0.1 - name: Check all run: mise run ci diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index da3bf44a..fbfc02cd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - - uses: jdx/mise-action@c1ecc8f748cd28cdeabf76dab3cccde4ce692fe4 # v4.0.0 + - uses: jdx/mise-action@1648a7812b9aeae629881980618f079932869151 # v4.0.1 - name: Use Node.js ${{ env.node_version }} uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6 with: diff --git a/.github/workflows/test-release.yml b/.github/workflows/test-release.yml index 02284b1c..68ff5040 100644 --- a/.github/workflows/test-release.yml +++ b/.github/workflows/test-release.yml @@ -8,7 +8,7 @@ jobs: steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - - uses: jdx/mise-action@c1ecc8f748cd28cdeabf76dab3cccde4ce692fe4 # v4.0.0 + - uses: jdx/mise-action@1648a7812b9aeae629881980618f079932869151 # v4.0.1 - name: Test server release run: mise run build-remote-server - name: Test client release From 9c548ec9c858fd398220383d3118c0c41263df6e Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 26 Mar 2026 13:22:04 +0000 Subject: [PATCH 100/189] Update dependency rust to v1.94.1 (#434) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Update | Change | |---|---|---| | [rust](https://redirect.github.com/rust-lang/rust) | patch | `1.94.0` → `1.94.1` | --- ### Release Notes
rust-lang/rust (rust) ### [`v1.94.1`](https://redirect.github.com/rust-lang/rust/blob/HEAD/RELEASES.md#Version-1941-2026-03-26) [Compare Source](https://redirect.github.com/rust-lang/rust/compare/1.94.0...1.94.1) \=========================== - [Fix `std::thread::spawn` on wasm32-wasip1-threads](https://redirect.github.com/rust-lang/rust/pull/153634) - [Remove new methods added to `std::os::windows::fs::OpenOptionsExt`](https://redirect.github.com/rust-lang/rust/pull/153491) The new methods were unstable, but the trait itself is not sealed and so cannot be extended with non-default methods. - [Clippy: fix ICE in `match_same_arms`](https://redirect.github.com/rust-lang/rust-clippy/pull/16685) - [Cargo: update tar to 0.4.45](https://redirect.github.com/rust-lang/cargo/pull/16769) This resolves CVE-2026-33055 and CVE-2026-33056. Users of crates.io are not affected. See [blog](https://blog.rust-lang.org/2026/03/21/cve-2026-33056/) for more details.
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- mise.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mise.toml b/mise.toml index e5123afa..e05c13cb 100644 --- a/mise.toml +++ b/mise.toml @@ -70,5 +70,5 @@ run = "./scripts/publish-client.sh test" "cargo:cargo-nextest" = "0.9.103" "cargo:wasm-bindgen-cli" = "0.2.105" "cargo:wasm-pack" = "0.14.0" -rust = { version = "1.94.0", targets = "wasm32-unknown-unknown", components = "clippy,rustfmt" } +rust = { version = "1.94.1", targets = "wasm32-unknown-unknown", components = "clippy,rustfmt" } From b003bc51ae07b32fe7a8673445a22d832894a2a4 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 28 Mar 2026 10:01:59 +0000 Subject: [PATCH 101/189] Update Rust crate rustc-hash to v2.1.2 (#435) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [rustc-hash](https://redirect.github.com/rust-lang/rustc-hash) | dependencies | patch | `2.1.1` → `2.1.2` | --- ### Release Notes
rust-lang/rustc-hash (rustc-hash) ### [`v2.1.2`](https://redirect.github.com/rust-lang/rustc-hash/blob/HEAD/CHANGELOG.md#212) [Compare Source](https://redirect.github.com/rust-lang/rustc-hash/compare/v2.1.1...v2.1.2) - [Refactor byte hashing to remove unreachable panic](https://redirect.github.com/rust-lang/rustc-hash/pull/65)
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- Cargo.lock | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 94cd9b1d..644f6c34 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2036,9 +2036,9 @@ checksum = "989e6739f80c4ad5b13e0fd7fe89531180375b18520cc8c82080e4dc4035b84f" [[package]] name = "rustc-hash" -version = "2.1.1" +version = "2.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "357703d41365b4b27c590e3ed91eabb1b663f07c4c084095e60cbed4362dff0d" +checksum = "94300abf3f1ae2e2b8ffb7b58043de3d399c73fa6f4b73826402a5c457614dbe" [[package]] name = "rustix" From 4e28643cccc6116a9f568210b770af48c58d15ce Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 15 Apr 2026 14:47:22 +0000 Subject: [PATCH 102/189] Update Rust crate tokio to v1.52.0 (#437) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [tokio](https://tokio.rs) ([source](https://redirect.github.com/tokio-rs/tokio)) | dependencies | minor | `1.50.0` → `1.52.0` | --- ### Release Notes
tokio-rs/tokio (tokio) ### [`v1.52.0`](https://redirect.github.com/tokio-rs/tokio/releases/tag/tokio-1.52.0): Tokio v1.52.0 [Compare Source](https://redirect.github.com/tokio-rs/tokio/compare/tokio-1.51.1...tokio-1.52.0) ### 1.52.0 (April 14th, 2026) #### Added - io: `AioSource::register_borrowed` for I/O safety support ([#​7992]) - net: add `try_io` function to `unix::pipe` sender and receiver types ([#​8030]) #### Added (unstable) - runtime: `Builder::enable_eager_driver_handoff` setting enable eager hand off of the I/O and time drivers before polling tasks ([#​8010]) - taskdump: add `trace_with()` for customized task dumps ([#​8025]) - taskdump: allow `impl FnMut()` in `trace_with` instead of just `fn()` ([#​8040]) - fs: support `io_uring` in `AsyncRead` for `File` ([#​7907]) #### Changed - runtime: improve `spawn_blocking` scalability with sharded queue ([#​7757]) - runtime: use `compare_exchange_weak()` in worker queue ([#​8028]) #### Fixed - runtime: overflow second half of tasks when local queue is filled instead of first half ([#​8029]) #### Documented - docs: fix typo in `oneshot::Sender::send` docs ([#​8026]) - docs: hide #\[tokio::main] attribute in the docs of `sync::watch` ([#​8035]) - net: add docs on `ConnectionRefused` errors with UDP sockets ([#​7870]) [#​7757]: https://redirect.github.com/tokio-rs/tokio/pull/7757 [#​7870]: https://redirect.github.com/tokio-rs/tokio/pull/7870 [#​7907]: https://redirect.github.com/tokio-rs/tokio/pull/7907 [#​7992]: https://redirect.github.com/tokio-rs/tokio/pull/7992 [#​8010]: https://redirect.github.com/tokio-rs/tokio/pull/8010 [#​8025]: https://redirect.github.com/tokio-rs/tokio/pull/8025 [#​8026]: https://redirect.github.com/tokio-rs/tokio/pull/8026 [#​8028]: https://redirect.github.com/tokio-rs/tokio/pull/8028 [#​8029]: https://redirect.github.com/tokio-rs/tokio/pull/8029 [#​8030]: https://redirect.github.com/tokio-rs/tokio/pull/8030 [#​8035]: https://redirect.github.com/tokio-rs/tokio/pull/8035 [#​8040]: https://redirect.github.com/tokio-rs/tokio/pull/8040 ### [`v1.51.1`](https://redirect.github.com/tokio-rs/tokio/releases/tag/tokio-1.51.1): Tokio v1.51.1 [Compare Source](https://redirect.github.com/tokio-rs/tokio/compare/tokio-1.51.0...tokio-1.51.1) ##### 1.51.1 (April 8th, 2026) ##### Fixed - sync: fix semaphore reopens after forget ([#​8021]) - net: surface errors from `SO_ERROR` on `recv` for UDP sockets on Linux ([#​8001]) ##### Fixed (unstable) - metrics: fix `worker_local_schedule_count` test ([#​8008]) - rt: do not leak fd when cancelling io\_uring open operation ([#​7983]) [#​7983]: https://redirect.github.com/tokio-rs/tokio/pull/7983 [#​8001]: https://redirect.github.com/tokio-rs/tokio/pull/8001 [#​8008]: https://redirect.github.com/tokio-rs/tokio/pull/8008 [#​8021]: https://redirect.github.com/tokio-rs/tokio/pull/8021 ### [`v1.51.0`](https://redirect.github.com/tokio-rs/tokio/releases/tag/tokio-1.51.0): Tokio v1.51.0 [Compare Source](https://redirect.github.com/tokio-rs/tokio/compare/tokio-1.50.0...tokio-1.51.0) ##### 1.51.0 (April 3rd, 2026) ##### Added - net: implement `get_peer_cred` on Hurd ([#​7989]) - runtime: add `tokio::runtime::worker_index()` ([#​7921]) - runtime: add runtime name ([#​7924]) - runtime: stabilize `LocalRuntime` ([#​7557]) - wasm: add wasm32-wasip2 networking support ([#​7933]) ##### Changed - runtime: steal tasks from the LIFO slot ([#​7431]) ##### Fixed - docs: do not show "Available on non-loom only." doc label ([#​7977]) - macros: improve overall macro hygiene ([#​7997]) - sync: fix `notify_waiters` priority in `Notify` ([#​7996]) - sync: fix panic in `Chan::recv_many` when called with non-empty vector on closed channel ([#​7991]) [#​7431]: https://redirect.github.com/tokio-rs/tokio/pull/7431 [#​7557]: https://redirect.github.com/tokio-rs/tokio/pull/7557 [#​7921]: https://redirect.github.com/tokio-rs/tokio/pull/7921 [#​7924]: https://redirect.github.com/tokio-rs/tokio/pull/7924 [#​7933]: https://redirect.github.com/tokio-rs/tokio/pull/7933 [#​7977]: https://redirect.github.com/tokio-rs/tokio/pull/7977 [#​7989]: https://redirect.github.com/tokio-rs/tokio/pull/7989 [#​7991]: https://redirect.github.com/tokio-rs/tokio/pull/7991 [#​7996]: https://redirect.github.com/tokio-rs/tokio/pull/7996 [#​7997]: https://redirect.github.com/tokio-rs/tokio/pull/7997
--- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- Cargo.lock | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 644f6c34..40d609c8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1226,9 +1226,9 @@ checksum = "09edd9e8b54e49e587e4f6295a7d29c3ea94d469cb40ab8ca70b288248a81db2" [[package]] name = "libc" -version = "0.2.174" +version = "0.2.185" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1171693293099992e19cddea4e8b849964e9846f4acee11b3948bcc337be8776" +checksum = "52ff2c0fe9bc6cb6b14a0592c2ff4fa9ceb83eea9db979b0487cd054946a2b8f" [[package]] name = "libflate" @@ -1379,13 +1379,13 @@ dependencies = [ [[package]] name = "mio" -version = "1.0.4" +version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "78bed444cc8a2160f01cbcf811ef18cac863ad68ae8ca62092e8db51d51c761c" +checksum = "50b7e5b27aa02a74bac8c3f23f448f8d87ff11f92d3aac1a6ed369ee08cc56c1" dependencies = [ "libc", "wasi 0.11.1+wasi-snapshot-preview1", - "windows-sys 0.59.0", + "windows-sys 0.61.1", ] [[package]] @@ -1837,7 +1837,7 @@ dependencies = [ "once_cell", "socket2 0.5.10", "tracing", - "windows-sys 0.59.0", + "windows-sys 0.52.0", ] [[package]] @@ -2050,7 +2050,7 @@ dependencies = [ "errno", "libc", "linux-raw-sys", - "windows-sys 0.59.0", + "windows-sys 0.52.0", ] [[package]] @@ -2108,7 +2108,7 @@ dependencies = [ "security-framework", "security-framework-sys", "webpki-root-certs", - "windows-sys 0.61.1", + "windows-sys 0.52.0", ] [[package]] @@ -2331,12 +2331,12 @@ dependencies = [ [[package]] name = "socket2" -version = "0.6.0" +version = "0.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "233504af464074f9d066d7b5416c5f9b894a5862a6506e306f7b816cdd6f1807" +checksum = "3a766e1110788c36f4fa1c2b71b387a7815aa65f88ce0229841826633d93723e" dependencies = [ "libc", - "windows-sys 0.59.0", + "windows-sys 0.60.2", ] [[package]] @@ -2432,7 +2432,7 @@ dependencies = [ "getrandom 0.3.3", "once_cell", "rustix", - "windows-sys 0.59.0", + "windows-sys 0.52.0", ] [[package]] @@ -2502,9 +2502,9 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" [[package]] name = "tokio" -version = "1.50.0" +version = "1.52.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "27ad5e34374e03cfffefc301becb44e9dc3c17584f414349ebe29ed26661822d" +checksum = "a91135f59b1cbf38c91e73cf3386fca9bb77915c45ce2771460c9d92f0f3d776" dependencies = [ "bytes", "libc", @@ -2512,16 +2512,16 @@ dependencies = [ "parking_lot", "pin-project-lite", "signal-hook-registry", - "socket2 0.6.0", + "socket2 0.6.3", "tokio-macros", "windows-sys 0.61.1", ] [[package]] name = "tokio-macros" -version = "2.6.0" +version = "2.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "af407857209536a95c8e56f8231ef2c2e2aff839b22e07a1ffcbc617e9db9fa5" +checksum = "385a6cb71ab9ab790c5fe8d67f1645e6c450a7ce006a33de03daa956cf70a496" dependencies = [ "proc-macro2", "quote", @@ -2870,7 +2870,7 @@ version = "0.1.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22" dependencies = [ - "windows-sys 0.61.1", + "windows-sys 0.52.0", ] [[package]] From 4138f55d91155956bbac42b6e436eade01857c70 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 15 Apr 2026 14:47:57 +0000 Subject: [PATCH 103/189] Update dependency webpack to v5.106.1 (#436) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [webpack](https://redirect.github.com/webpack/webpack) | [`5.105.4` → `5.106.1`](https://renovatebot.com/diffs/npm/webpack/5.105.4/5.106.1) | ![age](https://developer.mend.io/api/mc/badges/age/npm/webpack/5.106.1?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/webpack/5.105.4/5.106.1?slim=true) | --- ### Release Notes
webpack/webpack (webpack) ### [`v5.106.1`](https://redirect.github.com/webpack/webpack/blob/HEAD/CHANGELOG.md#51061) [Compare Source](https://redirect.github.com/webpack/webpack/compare/v5.106.0...v5.106.1) ##### Patch Changes - Fix two ES5-environment regressions in the anonymous default export `.name` fix-up: the generated code referenced an undeclared `__WEBPACK_DEFAULT_EXPORT__` binding causing `ReferenceError`, and used `Reflect.defineProperty` which is not available in pre-ES2015 runtimes. The fix-up now references the real assignment target and uses `Object.defineProperty` / `Object.getOwnPropertyDescriptor`. (by [@​xiaoxiaojx](https://redirect.github.com/xiaoxiaojx) in [#​20796](https://redirect.github.com/webpack/webpack/pull/20796)) - Prevent `!important` from being renamed as a local identifier in CSS modules. (by [@​xiaoxiaojx](https://redirect.github.com/xiaoxiaojx) in [#​20798](https://redirect.github.com/webpack/webpack/pull/20798)) - Use compiler context instead of module context for CSS modules local ident hashing to avoid hash collisions when files with the same name exist in different directories. (by [@​xiaoxiaojx](https://redirect.github.com/xiaoxiaojx) in [#​20799](https://redirect.github.com/webpack/webpack/pull/20799)) ### [`v5.106.0`](https://redirect.github.com/webpack/webpack/blob/HEAD/CHANGELOG.md#51060) [Compare Source](https://redirect.github.com/webpack/webpack/compare/v5.105.4...v5.106.0) ##### Minor Changes - Add `exportType: "style"` for CSS modules to inject styles into DOM via HTMLStyleElement, similar to style-loader functionality. (by [@​xiaoxiaojx](https://redirect.github.com/xiaoxiaojx) in [#​20579](https://redirect.github.com/webpack/webpack/pull/20579)) - Add `context` option support for VirtualUrlPlugin (by [@​xiaoxiaojx](https://redirect.github.com/xiaoxiaojx) in [#​20449](https://redirect.github.com/webpack/webpack/pull/20449)) - The context for the virtual module. A string path. Defaults to 'auto', which will try to resolve the context from the module id. - Support custom context path for resolving relative imports in virtual modules - Add examples demonstrating context usage and filename customization - Generate different `CssModule` instances for different `exportType` values. (by [@​xiaoxiaojx](https://redirect.github.com/xiaoxiaojx) in [#​20590](https://redirect.github.com/webpack/webpack/pull/20590)) - Added the `localIdentHashFunction` option to configure the hash function to be used for hashing. (by [@​alexander-akait](https://redirect.github.com/alexander-akait) in [#​20694](https://redirect.github.com/webpack/webpack/pull/20694)) Additionally, the `localIdentName` option can now be a function. - Added support for destructuring assignment `require` in cjs, allowing for tree shaking. (by [@​ahabhgk](https://redirect.github.com/ahabhgk) in [#​20548](https://redirect.github.com/webpack/webpack/pull/20548)) - Added the `validate` option to enable/disable validation in webpack/plugins/loaders, also implemented API to make it inside plugins. (by [@​xiaoxiaojx](https://redirect.github.com/xiaoxiaojx) in [#​20275](https://redirect.github.com/webpack/webpack/pull/20275)) - Added `source` support for async WASM modules. (by [@​magic-akari](https://redirect.github.com/magic-akari) in [#​20364](https://redirect.github.com/webpack/webpack/pull/20364)) ##### Patch Changes - Add a static getSourceBasicTypes method to the Module class to prevent errors across multiple versions. (by [@​xiaoxiaojx](https://redirect.github.com/xiaoxiaojx) in [#​20614](https://redirect.github.com/webpack/webpack/pull/20614)) - Included fragment groups in the conflicting order warning for CSS. (by [@​aryanraj45](https://redirect.github.com/aryanraj45) in [#​20660](https://redirect.github.com/webpack/webpack/pull/20660)) - Avoid rendering unused top-level `__webpack_exports__` declaration when output ECMA module library. (by [@​hai-x](https://redirect.github.com/hai-x) in [#​20669](https://redirect.github.com/webpack/webpack/pull/20669)) - Fixed resolving in CSS modules. (by [@​alexander-akait](https://redirect.github.com/alexander-akait) in [#​20771](https://redirect.github.com/webpack/webpack/pull/20771)) - Allow external modules place in async chunks when output ECMA module. (by [@​hai-x](https://redirect.github.com/hai-x) in [#​20662](https://redirect.github.com/webpack/webpack/pull/20662)) - Implement `deprecate` flag in schema for better TypeScript support to show which options are already deprecated by the configuration (by [@​bjohansebas](https://redirect.github.com/bjohansebas) in [#​20432](https://redirect.github.com/webpack/webpack/pull/20432)) - Set `.name` to `"default"` for anonymous default export functions and classes per ES spec (by [@​xiaoxiaojx](https://redirect.github.com/xiaoxiaojx) in [#​20773](https://redirect.github.com/webpack/webpack/pull/20773)) - Hash entry chunks after runtime chunks to prevent stale content hash references in watch mode (by [@​xiaoxiaojx](https://redirect.github.com/xiaoxiaojx) in [#​20724](https://redirect.github.com/webpack/webpack/pull/20724)) - Fix multiple bugs and optimizations in CSS modules: correct third code point position in walkCssTokens number detection, fix multiline CSS comment regex, fix swapped :import/:export error message, fix comma callback incorrectly popping balanced stack, fix cache comparison missing array length check, fix match.index mutation side effect, move publicPathAutoRegex to module scope, precompute merged callbacks in consumeUntil, simplify redundant ternary in CssGenerator, fix typo GRID\_TEMPLATE\_ARES, remove duplicate grid-column-start, and merge duplicate getCompilationHooks calls. (by [@​xiaoxiaojx](https://redirect.github.com/xiaoxiaojx) in [#​20648](https://redirect.github.com/webpack/webpack/pull/20648)) - Correct url() path resolution and preserve source maps for non-link CSS export types (style, text, css-style-sheet) (by [@​xiaoxiaojx](https://redirect.github.com/xiaoxiaojx) in [#​20717](https://redirect.github.com/webpack/webpack/pull/20717)) - Emit error when proxy server returns non-200 status code in HttpUriPlugin instead of silently failing. (by [@​xiaoxiaojx](https://redirect.github.com/xiaoxiaojx) in [#​20646](https://redirect.github.com/webpack/webpack/pull/20646)) - `import.meta` as standalone expression now returns a complete object with known properties (`url`, `webpack`, `main`, `env`) instead of an empty object `({})`, and hoists it as a module-level variable to ensure `import.meta === import.meta` identity. In `preserve-unknown` mode (ESM output), the hoisted object merges runtime `import.meta` properties via `Object.assign`. (by [@​xiaoxiaojx](https://redirect.github.com/xiaoxiaojx) in [#​20658](https://redirect.github.com/webpack/webpack/pull/20658)) - Fix incorrect condition in FileSystemInfo that always evaluated to false, preventing trailing slash removal from directory paths during build dependency resolution. (by [@​xiaoxiaojx](https://redirect.github.com/xiaoxiaojx) in [#​20649](https://redirect.github.com/webpack/webpack/pull/20649)) - fix: VirtualUrlPlugin absolute path virtual module IDs getting concatenated with compiler context (by [@​xiaoxiaojx](https://redirect.github.com/xiaoxiaojx) in [#​20656](https://redirect.github.com/webpack/webpack/pull/20656)) When a virtual module ID is an absolute path (e.g. `virtual:C:/project/user.js`), the auto-derived context was incorrectly joined with `compiler.context`, producing a concatenated path like `C:\cwd\C:\project`. Now absolute-path contexts are used directly. - All deprecated methods and options now have `@deprecated` flag in types. (by [@​alexander-akait](https://redirect.github.com/alexander-akait) in [#​20707](https://redirect.github.com/webpack/webpack/pull/20707)) - Fix `CompatibilityPlugin` to correctly rename `__webpack_require__` when it appears as an arrow function parameter (e.g. `(__webpack_module, __webpack_exports, __webpack_require__) => { ... }`). (by [@​hai-x](https://redirect.github.com/hai-x) in [#​20661](https://redirect.github.com/webpack/webpack/pull/20661))
--- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- client/js/package-lock.json | 84 ++++++++++++++++++------------------- client/js/package.json | 2 +- 2 files changed, 43 insertions(+), 43 deletions(-) diff --git a/client/js/package-lock.json b/client/js/package-lock.json index 11e38150..2d1be17a 100644 --- a/client/js/package-lock.json +++ b/client/js/package-lock.json @@ -85,12 +85,12 @@ "dev": true }, "@types/node": { - "version": "25.3.5", - "resolved": "https://registry.npmjs.org/@types/node/-/node-25.3.5.tgz", - "integrity": "sha512-oX8xrhvpiyRCQkG1MFchB09f+cXftgIXb3a7UUa4Y3wpmZPw5tyZGTLWhlESOLq1Rq6oDlc8npVU2/9xiCuXMA==", + "version": "25.6.0", + "resolved": "https://registry.npmjs.org/@types/node/-/node-25.6.0.tgz", + "integrity": "sha512-+qIYRKdNYJwY3vRCZMdJbPLJAtGjQBudzZzdzwQYkEPQd+PJGixUL5QfvCLDaULoLv+RhT3LDkwEfKaAkgSmNQ==", "dev": true, "requires": { - "undici-types": "~7.18.0" + "undici-types": "~7.19.0" } }, "@webassemblyjs/ast": { @@ -294,22 +294,22 @@ } }, "baseline-browser-mapping": { - "version": "2.10.0", - "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.10.0.tgz", - "integrity": "sha512-lIyg0szRfYbiy67j9KN8IyeD7q7hcmqnJ1ddWmNt19ItGpNN64mnllmxUNFIOdOm6by97jlL6wfpTTJrmnjWAA==", + "version": "2.10.19", + "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.10.19.tgz", + "integrity": "sha512-qCkNLi2sfBOn8XhZQ0FXsT1Ki/Yo5P90hrkRamVFRS7/KV9hpfA4HkoWNU152+8w0zPjnxo5psx5NL3PSGgv5g==", "dev": true }, "browserslist": { - "version": "4.28.1", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.1.tgz", - "integrity": "sha512-ZC5Bd0LgJXgwGqUknZY/vkUQ04r8NXnJZ3yYi4vDmSiZmC/pdSN0NbNRPxZpbtO4uAfDUAFffO8IZoM3Gj8IkA==", + "version": "4.28.2", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.2.tgz", + "integrity": "sha512-48xSriZYYg+8qXna9kwqjIVzuQxi+KYWp2+5nCYnYKPTr0LvD89Jqk2Or5ogxz0NUMfIjhh2lIUX/LyX9B4oIg==", "dev": true, "requires": { - "baseline-browser-mapping": "^2.9.0", - "caniuse-lite": "^1.0.30001759", - "electron-to-chromium": "^1.5.263", - "node-releases": "^2.0.27", - "update-browserslist-db": "^1.2.0" + "baseline-browser-mapping": "^2.10.12", + "caniuse-lite": "^1.0.30001782", + "electron-to-chromium": "^1.5.328", + "node-releases": "^2.0.36", + "update-browserslist-db": "^1.2.3" } }, "buffer-from": { @@ -319,9 +319,9 @@ "dev": true }, "caniuse-lite": { - "version": "1.0.30001777", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001777.tgz", - "integrity": "sha512-tmN+fJxroPndC74efCdp12j+0rk0RHwV5Jwa1zWaFVyw2ZxAuPeG8ZgWC3Wz7uSjT3qMRQ5XHZ4COgQmsCMJAQ==", + "version": "1.0.30001788", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001788.tgz", + "integrity": "sha512-6q8HFp+lOQtcf7wBK+uEenxymVWkGKkjFpCvw5W25cmMwEDU45p1xQFBQv8JDlMMry7eNxyBaR+qxgmTUZkIRQ==", "dev": true }, "chrome-trace-event": { @@ -359,15 +359,15 @@ } }, "electron-to-chromium": { - "version": "1.5.307", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.307.tgz", - "integrity": "sha512-5z3uFKBWjiNR44nFcYdkcXjKMbg5KXNdciu7mhTPo9tB7NbqSNP2sSnGR+fqknZSCwKkBN+oxiiajWs4dT6ORg==", + "version": "1.5.336", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.336.tgz", + "integrity": "sha512-AbH9q9J455r/nLmdNZes0G0ZKcRX73FicwowalLs6ijwOmCJSRRrLX63lcAlzy9ux3dWK1w1+1nsBJEWN11hcQ==", "dev": true }, "enhanced-resolve": { - "version": "5.20.0", - "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.20.0.tgz", - "integrity": "sha512-/ce7+jQ1PQ6rVXwe+jKEg5hW5ciicHwIQUagZkp6IufBoY3YDgdTTY1azVs0qoRgVmvsNB+rbjLJxDAeHHtwsQ==", + "version": "5.20.1", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.20.1.tgz", + "integrity": "sha512-Qohcme7V1inbAfvjItgw0EaxVX5q2rdVEZHRBrEQdRZTssLDGsL8Lwrznl8oQ/6kuTJONLaDcGjkNP247XEhcA==", "dev": true, "requires": { "graceful-fs": "^4.2.4", @@ -615,9 +615,9 @@ "dev": true }, "node-releases": { - "version": "2.0.36", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.36.tgz", - "integrity": "sha512-TdC8FSgHz8Mwtw9g5L4gR/Sh9XhSP/0DEkQxfEFXOpiul5IiHgHan2VhYYb6agDSfp4KuvltmGApc8HMgUrIkA==", + "version": "2.0.37", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.37.tgz", + "integrity": "sha512-1h5gKZCF+pO/o3Iqt5Jp7wc9rH3eJJ0+nh/CIoiRwjRxde/hAHyLPXYN4V3CqKAbiZPSeJFSWHmJsbkicta0Eg==", "dev": true }, "p-limit": { @@ -786,15 +786,15 @@ "dev": true }, "tapable": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.3.0.tgz", - "integrity": "sha512-g9ljZiwki/LfxmQADO3dEY1CbpmXT5Hm2fJ+QaGKwSXUylMybePR7/67YW7jOrrvjEgL1Fmz5kzyAjWVWLlucg==", + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.3.2.tgz", + "integrity": "sha512-1MOpMXuhGzGL5TTCZFItxCc0AARf1EZFQkGqMm7ERKj8+Hgr5oLvJOVFcC+lRmR8hCe2S3jC4T5D7Vg/d7/fhA==", "dev": true }, "terser": { - "version": "5.46.0", - "resolved": "https://registry.npmjs.org/terser/-/terser-5.46.0.tgz", - "integrity": "sha512-jTwoImyr/QbOWFFso3YoU3ik0jBBDJ6JTOQiy/J2YxVJdZCc+5u7skhNwiOR3FQIygFqVUPHl7qbbxtjW2K3Qg==", + "version": "5.46.1", + "resolved": "https://registry.npmjs.org/terser/-/terser-5.46.1.tgz", + "integrity": "sha512-vzCjQO/rgUuK9sf8VJZvjqiqiHFaZLnOiimmUuOKODxWL8mm/xua7viT7aqX7dgPY60otQjUotzFMmCB4VdmqQ==", "dev": true, "requires": { "@jridgewell/source-map": "^0.3.3", @@ -804,9 +804,9 @@ } }, "terser-webpack-plugin": { - "version": "5.3.17", - "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.17.tgz", - "integrity": "sha512-YR7PtUp6GMU91BgSJmlaX/rS2lGDbAF7D+Wtq7hRO+MiljNmodYvqslzCFiYVAgW+Qoaaia/QUIP4lGXufjdZw==", + "version": "5.4.0", + "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.4.0.tgz", + "integrity": "sha512-Bn5vxm48flOIfkdl5CaD2+1CiUVbonWQ3KQPyP7/EuIl9Gbzq/gQFOzaMFUEgVjB1396tcK0SG8XcNJ/2kDH8g==", "dev": true, "requires": { "@jridgewell/trace-mapping": "^0.3.25", @@ -816,9 +816,9 @@ } }, "undici-types": { - "version": "7.18.2", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.18.2.tgz", - "integrity": "sha512-AsuCzffGHJybSaRrmr5eHr81mwJU3kjw6M+uprWvCXiNeN9SOGwQ3Jn8jb8m3Z6izVgknn1R0FTCEAP2QrLY/w==", + "version": "7.19.2", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.19.2.tgz", + "integrity": "sha512-qYVnV5OEm2AW8cJMCpdV20CDyaN3g0AjDlOGf1OW4iaDEx8MwdtChUp4zu4H0VP3nDRF/8RKWH+IPp9uW0YGZg==", "dev": true }, "update-browserslist-db": { @@ -842,9 +842,9 @@ } }, "webpack": { - "version": "5.105.4", - "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.105.4.tgz", - "integrity": "sha512-jTywjboN9aHxFlToqb0K0Zs9SbBoW4zRUlGzI2tYNxVYcEi/IPpn+Xi4ye5jTLvX2YeLuic/IvxNot+Q1jMoOw==", + "version": "5.106.1", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.106.1.tgz", + "integrity": "sha512-EW8af29ak8Oaf4T8k8YsajjrDBDYgnKZ5er6ljWFJsXABfTNowQfvHLftwcepVgdz+IoLSdEAbBiM9DFXoll9w==", "dev": true, "requires": { "@types/eslint-scope": "^3.7.7", diff --git a/client/js/package.json b/client/js/package.json index f725df2a..52ee714c 100644 --- a/client/js/package.json +++ b/client/js/package.json @@ -18,7 +18,7 @@ "build": "webpack" }, "devDependencies": { - "webpack": "5.105.4", + "webpack": "5.106.1", "webpack-cli": "7.0.2" }, "dependencies": { From cdd8af7608c9d5ecdf1dbc6796f2395952419380 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 17 Apr 2026 01:05:05 +0000 Subject: [PATCH 104/189] Update Rust crate tokio to v1.52.1 (#439) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [tokio](https://tokio.rs) ([source](https://redirect.github.com/tokio-rs/tokio)) | dependencies | patch | `1.52.0` → `1.52.1` | --- ### Release Notes
tokio-rs/tokio (tokio) ### [`v1.52.1`](https://redirect.github.com/tokio-rs/tokio/releases/tag/tokio-1.52.1): Tokio v1.52.1 [Compare Source](https://redirect.github.com/tokio-rs/tokio/compare/tokio-1.52.0...tokio-1.52.1) ### 1.52.1 (April 16th, 2026) #### Fixed - runtime: revert [#​7757] to fix [a regression][#​8056] that causes `spawn_blocking` to hang ([#​8057]) [#​7757]: https://redirect.github.com/tokio-rs/tokio/pull/7757 [#​8056]: https://redirect.github.com/tokio-rs/tokio/pull/8056 [#​8057]: https://redirect.github.com/tokio-rs/tokio/pull/8057
--- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- Cargo.lock | 83 ++++-------------------------------------------------- 1 file changed, 5 insertions(+), 78 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 40d609c8..63ef0a10 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -534,7 +534,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "778e2ac28f6c47af28e4907f13ffd1e1ddbd400980a9abd7c8df189bf578a5ad" dependencies = [ "libc", - "windows-sys 0.60.2", + "windows-sys 0.52.0", ] [[package]] @@ -2336,7 +2336,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3a766e1110788c36f4fa1c2b71b387a7815aa65f88ce0229841826633d93723e" dependencies = [ "libc", - "windows-sys 0.60.2", + "windows-sys 0.61.1", ] [[package]] @@ -2502,9 +2502,9 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" [[package]] name = "tokio" -version = "1.52.0" +version = "1.52.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a91135f59b1cbf38c91e73cf3386fca9bb77915c45ce2771460c9d92f0f3d776" +checksum = "b67dee974fe86fd92cc45b7a95fdd2f99a36a6d7b0d431a231178d3d670bbcc6" dependencies = [ "bytes", "libc", @@ -2971,15 +2971,6 @@ dependencies = [ "windows-targets 0.52.6", ] -[[package]] -name = "windows-sys" -version = "0.60.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f2f500e4d28234f72040990ec9d39e3a6b950f9f22d3dba18416c35882612bcb" -dependencies = [ - "windows-targets 0.53.2", -] - [[package]] name = "windows-sys" version = "0.61.1" @@ -3013,29 +3004,13 @@ dependencies = [ "windows_aarch64_gnullvm 0.52.6", "windows_aarch64_msvc 0.52.6", "windows_i686_gnu 0.52.6", - "windows_i686_gnullvm 0.52.6", + "windows_i686_gnullvm", "windows_i686_msvc 0.52.6", "windows_x86_64_gnu 0.52.6", "windows_x86_64_gnullvm 0.52.6", "windows_x86_64_msvc 0.52.6", ] -[[package]] -name = "windows-targets" -version = "0.53.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c66f69fcc9ce11da9966ddb31a40968cad001c5bedeb5c2b82ede4253ab48aef" -dependencies = [ - "windows_aarch64_gnullvm 0.53.0", - "windows_aarch64_msvc 0.53.0", - "windows_i686_gnu 0.53.0", - "windows_i686_gnullvm 0.53.0", - "windows_i686_msvc 0.53.0", - "windows_x86_64_gnu 0.53.0", - "windows_x86_64_gnullvm 0.53.0", - "windows_x86_64_msvc 0.53.0", -] - [[package]] name = "windows_aarch64_gnullvm" version = "0.42.2" @@ -3048,12 +3023,6 @@ version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" -[[package]] -name = "windows_aarch64_gnullvm" -version = "0.53.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "86b8d5f90ddd19cb4a147a5fa63ca848db3df085e25fee3cc10b39b6eebae764" - [[package]] name = "windows_aarch64_msvc" version = "0.42.2" @@ -3066,12 +3035,6 @@ version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" -[[package]] -name = "windows_aarch64_msvc" -version = "0.53.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c7651a1f62a11b8cbd5e0d42526e55f2c99886c77e007179efff86c2b137e66c" - [[package]] name = "windows_i686_gnu" version = "0.42.2" @@ -3084,24 +3047,12 @@ version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" -[[package]] -name = "windows_i686_gnu" -version = "0.53.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c1dc67659d35f387f5f6c479dc4e28f1d4bb90ddd1a5d3da2e5d97b42d6272c3" - [[package]] name = "windows_i686_gnullvm" version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" -[[package]] -name = "windows_i686_gnullvm" -version = "0.53.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9ce6ccbdedbf6d6354471319e781c0dfef054c81fbc7cf83f338a4296c0cae11" - [[package]] name = "windows_i686_msvc" version = "0.42.2" @@ -3114,12 +3065,6 @@ version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" -[[package]] -name = "windows_i686_msvc" -version = "0.53.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "581fee95406bb13382d2f65cd4a908ca7b1e4c2f1917f143ba16efe98a589b5d" - [[package]] name = "windows_x86_64_gnu" version = "0.42.2" @@ -3132,12 +3077,6 @@ version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" -[[package]] -name = "windows_x86_64_gnu" -version = "0.53.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2e55b5ac9ea33f2fc1716d1742db15574fd6fc8dadc51caab1c16a3d3b4190ba" - [[package]] name = "windows_x86_64_gnullvm" version = "0.42.2" @@ -3150,12 +3089,6 @@ version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" -[[package]] -name = "windows_x86_64_gnullvm" -version = "0.53.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0a6e035dd0599267ce1ee132e51c27dd29437f63325753051e71dd9e42406c57" - [[package]] name = "windows_x86_64_msvc" version = "0.42.2" @@ -3168,12 +3101,6 @@ version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" -[[package]] -name = "windows_x86_64_msvc" -version = "0.53.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "271414315aff87387382ec3d271b52d7ae78726f5d44ac98b4f4030c91880486" - [[package]] name = "wit-bindgen" version = "0.51.0" From c81d10d43e79af5fb954f16a264dbb673ce272d6 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 18 Apr 2026 13:56:31 +0000 Subject: [PATCH 105/189] Update dependency webpack to v5.106.2 (#440) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [webpack](https://redirect.github.com/webpack/webpack) | [`5.106.1` → `5.106.2`](https://renovatebot.com/diffs/npm/webpack/5.106.1/5.106.2) | ![age](https://developer.mend.io/api/mc/badges/age/npm/webpack/5.106.2?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/webpack/5.106.1/5.106.2?slim=true) | --- ### Release Notes
webpack/webpack (webpack) ### [`v5.106.2`]() [Compare Source](https://redirect.github.com/webpack/webpack/compare/v5.106.1...v5.106.2)
--- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- client/js/package-lock.json | 36 ++++++++++-------------------------- client/js/package.json | 2 +- 2 files changed, 11 insertions(+), 27 deletions(-) diff --git a/client/js/package-lock.json b/client/js/package-lock.json index 2d1be17a..2e0b7968 100644 --- a/client/js/package-lock.json +++ b/client/js/package-lock.json @@ -359,9 +359,9 @@ } }, "electron-to-chromium": { - "version": "1.5.336", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.336.tgz", - "integrity": "sha512-AbH9q9J455r/nLmdNZes0G0ZKcRX73FicwowalLs6ijwOmCJSRRrLX63lcAlzy9ux3dWK1w1+1nsBJEWN11hcQ==", + "version": "1.5.340", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.340.tgz", + "integrity": "sha512-908qahOGocRMinT2nM3ajCEM99H4iPdv84eagPP3FfZy/1ZGeOy2CZYzjhms81ckOPCXPlW7LkY4XpxD8r1DrA==", "dev": true }, "enhanced-resolve": { @@ -554,12 +554,6 @@ "supports-color": "^8.0.0" } }, - "json-parse-even-better-errors": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", - "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", - "dev": true - }, "json-schema-traverse": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", @@ -594,20 +588,11 @@ "dev": true }, "mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "version": "1.54.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.54.0.tgz", + "integrity": "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==", "dev": true }, - "mime-types": { - "version": "2.1.35", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "dev": true, - "requires": { - "mime-db": "1.52.0" - } - }, "neo-async": { "version": "2.6.2", "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", @@ -842,9 +827,9 @@ } }, "webpack": { - "version": "5.106.1", - "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.106.1.tgz", - "integrity": "sha512-EW8af29ak8Oaf4T8k8YsajjrDBDYgnKZ5er6ljWFJsXABfTNowQfvHLftwcepVgdz+IoLSdEAbBiM9DFXoll9w==", + "version": "5.106.2", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.106.2.tgz", + "integrity": "sha512-wGN3qcrBQIFmQ/c0AiOAQBvrZ5lmY8vbbMv4Mxfgzqd/B6+9pXtLo73WuS1dSGXM5QYY3hZnIbvx+K1xxe6FyA==", "dev": true, "requires": { "@types/eslint-scope": "^3.7.7", @@ -863,9 +848,8 @@ "events": "^3.2.0", "glob-to-regexp": "^0.4.1", "graceful-fs": "^4.2.11", - "json-parse-even-better-errors": "^2.3.1", "loader-runner": "^4.3.1", - "mime-types": "^2.1.27", + "mime-db": "^1.54.0", "neo-async": "^2.6.2", "schema-utils": "^4.3.3", "tapable": "^2.3.0", diff --git a/client/js/package.json b/client/js/package.json index 52ee714c..305cf593 100644 --- a/client/js/package.json +++ b/client/js/package.json @@ -18,7 +18,7 @@ "build": "webpack" }, "devDependencies": { - "webpack": "5.106.1", + "webpack": "5.106.2", "webpack-cli": "7.0.2" }, "dependencies": { From 8a19f44707b888ed6524638738bc965aa322cd71 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 19 Apr 2026 13:11:26 +0000 Subject: [PATCH 106/189] Update Rust crate pyroscope to v2.0.1 (#441) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [pyroscope](https://grafana.com/docs/pyroscope/latest/configure-client/language-sdks/rust/) ([source](https://redirect.github.com/grafana/pyroscope-rs)) | dependencies | patch | `2.0.0` → `2.0.1` | --- ### Release Notes
grafana/pyroscope-rs (pyroscope) ### [`v2.0.1`](https://redirect.github.com/grafana/pyroscope-rs/blob/HEAD/CHANGELOG.md#201-2026-04-19) ##### Bug Fixes - revert [`0976d99`](https://redirect.github.com/grafana/pyroscope-rs/commit/0976d999e4a50c14459b8a0b39e72434be6d4bfc) ([#​483](https://redirect.github.com/grafana/pyroscope-rs/issues/483)) ([ad3d032](https://redirect.github.com/grafana/pyroscope-rs/commit/ad3d03217a14a18868b8ba21f3dbf4ed844d759a)) ##### Miscellaneous Chores - **deps:** lock file maintenance ([#​467](https://redirect.github.com/grafana/pyroscope-rs/issues/467)) ([09411da](https://redirect.github.com/grafana/pyroscope-rs/commit/09411daca91120c4863983273863c55b02b4dd89)) - **deps:** lock file maintenance ([#​478](https://redirect.github.com/grafana/pyroscope-rs/issues/478)) ([447d8ee](https://redirect.github.com/grafana/pyroscope-rs/commit/447d8eef3621be5b9b09b0b9eca3968bca081c2a)) - **deps:** lock file maintenance ([#​498](https://redirect.github.com/grafana/pyroscope-rs/issues/498)) ([4072a04](https://redirect.github.com/grafana/pyroscope-rs/commit/4072a04626abd98aa18bc6cda37fb0ccc0803f59)) - **deps:** lock file maintenance ([#​502](https://redirect.github.com/grafana/pyroscope-rs/issues/502)) ([bef3bc3](https://redirect.github.com/grafana/pyroscope-rs/commit/bef3bc3ec08b57b74d5d177204118492cdaa50b2)) - **deps:** pin dependencies ([#​427](https://redirect.github.com/grafana/pyroscope-rs/issues/427)) ([a46830a](https://redirect.github.com/grafana/pyroscope-rs/commit/a46830ac9a75a7634d9cc1ecc514a21b5c0f0603)) - **deps:** pin rust docker tag to [`e8e2bb5`](https://redirect.github.com/grafana/pyroscope-rs/commit/e8e2bb5) ([#​501](https://redirect.github.com/grafana/pyroscope-rs/issues/501)) ([c177d5b](https://redirect.github.com/grafana/pyroscope-rs/commit/c177d5b8f28041d3956851d93e61be3aebc6d975)) - **deps:** update dtolnay/rust-toolchain digest to [`3c5f7ea`](https://redirect.github.com/grafana/pyroscope-rs/commit/3c5f7ea) ([#​480](https://redirect.github.com/grafana/pyroscope-rs/issues/480)) ([c4f2e7d](https://redirect.github.com/grafana/pyroscope-rs/commit/c4f2e7dd1b1234f8870ce0f858f92542aef37c2e)) - **deps:** update dtolnay/rust-toolchain digest to [`3c5f7ea`](https://redirect.github.com/grafana/pyroscope-rs/commit/3c5f7ea) ([#​500](https://redirect.github.com/grafana/pyroscope-rs/issues/500)) ([fc21bda](https://redirect.github.com/grafana/pyroscope-rs/commit/fc21bda959bdf5d5d5a44f559a2b9de8072d2fba)) - **deps:** update googleapis/release-please-action digest to [`5c625bf`](https://redirect.github.com/grafana/pyroscope-rs/commit/5c625bf) ([#​509](https://redirect.github.com/grafana/pyroscope-rs/issues/509)) ([c347e17](https://redirect.github.com/grafana/pyroscope-rs/commit/c347e1775487456b996b87ce4672a20d9b9f4541)) - **deps:** update rust crate env\_logger to v0.11.10 ([#​490](https://redirect.github.com/grafana/pyroscope-rs/issues/490)) ([24fb12d](https://redirect.github.com/grafana/pyroscope-rs/commit/24fb12d4c26c9cc167585f3fd93172015864a0e4)) - **deps:** update rust crate libc to v0.2.183 ([#​489](https://redirect.github.com/grafana/pyroscope-rs/issues/489)) ([b44bac8](https://redirect.github.com/grafana/pyroscope-rs/commit/b44bac8f4274882d793e9e9f92ab0ad9fc4692f0)) - **deps:** update rust crate libc to v0.2.185 ([#​514](https://redirect.github.com/grafana/pyroscope-rs/issues/514)) ([e72f5c6](https://redirect.github.com/grafana/pyroscope-rs/commit/e72f5c6e4944e7b2ac949d6dbd3201dc426704d5)) - **deps:** update rust crate libflate to v2.3.0 ([#​516](https://redirect.github.com/grafana/pyroscope-rs/issues/516)) ([da2835f](https://redirect.github.com/grafana/pyroscope-rs/commit/da2835f536771e089635e9fd8b97a860b09b9479)) - **deps:** update rust crate rbspy to 0.43 ([#​471](https://redirect.github.com/grafana/pyroscope-rs/issues/471)) ([1e524d3](https://redirect.github.com/grafana/pyroscope-rs/commit/1e524d38d84dfedc799515cb70ee434ef91a28e6)) - **deps:** update rust crate rbspy to 0.44 ([#​477](https://redirect.github.com/grafana/pyroscope-rs/issues/477)) ([c7cfe39](https://redirect.github.com/grafana/pyroscope-rs/commit/c7cfe39fecd8a0624df5c5d22b709e73747ddb4d)) - **deps:** update rust crate uuid to v1.23.0 ([#​481](https://redirect.github.com/grafana/pyroscope-rs/issues/481)) ([9c4b53a](https://redirect.github.com/grafana/pyroscope-rs/commit/9c4b53aef55b13dc6da99396119e33ec9dc02aa0)) - **deps:** update rust crate uuid to v1.23.1 ([#​517](https://redirect.github.com/grafana/pyroscope-rs/issues/517)) ([6a89238](https://redirect.github.com/grafana/pyroscope-rs/commit/6a89238e7127cb5f3fa0f480ba7447369a21fc12)) - **deps:** update rust-lang/crates-io-auth-action action to v1.0.4 ([#​479](https://redirect.github.com/grafana/pyroscope-rs/issues/479)) ([f4e08f3](https://redirect.github.com/grafana/pyroscope-rs/commit/f4e08f34aa2b14a1e417c005d37f75981940d675)) - **deps:** update rust:trixie docker digest to [`652612f`](https://redirect.github.com/grafana/pyroscope-rs/commit/652612f) ([#​510](https://redirect.github.com/grafana/pyroscope-rs/issues/510)) ([7f76541](https://redirect.github.com/grafana/pyroscope-rs/commit/7f76541afc2a03cd783b0a0627b7a876f18c4918)) - **deps:** update softprops/action-gh-release action to v2.5.2 ([#​473](https://redirect.github.com/grafana/pyroscope-rs/issues/473)) ([1700be3](https://redirect.github.com/grafana/pyroscope-rs/commit/1700be3e34e7351a2f5f030187a2fac1ce1082e9)) - **deps:** update softprops/action-gh-release action to v2.5.3 ([#​474](https://redirect.github.com/grafana/pyroscope-rs/issues/474)) ([12e34c1](https://redirect.github.com/grafana/pyroscope-rs/commit/12e34c109bd0e408dc0401430f4da4b5245a09da)) - **deps:** update softprops/action-gh-release action to v2.6.1 ([#​475](https://redirect.github.com/grafana/pyroscope-rs/issues/475)) ([209c4c0](https://redirect.github.com/grafana/pyroscope-rs/commit/209c4c03ce08fe411046316dc333654fb64ab75b)) - remove FFI code and kindasafe (moved to separate repos) ([#​488](https://redirect.github.com/grafana/pyroscope-rs/issues/488)) ([35a4c6a](https://redirect.github.com/grafana/pyroscope-rs/commit/35a4c6aa0808f0392e39e752d95a91536068ab74)) ##### Documentation - fix broken Rust documentation and add doc-test CI ([#​484](https://redirect.github.com/grafana/pyroscope-rs/issues/484)) ([98ae8a5](https://redirect.github.com/grafana/pyroscope-rs/commit/98ae8a595f18946f2edf27544ea6e2bb29724cbf)) ##### Continuous Integration - add musl/Alpine to Rust test matrix ([#​495](https://redirect.github.com/grafana/pyroscope-rs/issues/495)) ([a4b7ad4](https://redirect.github.com/grafana/pyroscope-rs/commit/a4b7ad4c9e530576adbbf278b104d65c970d43b0)) - add release-please configuration ([#​491](https://redirect.github.com/grafana/pyroscope-rs/issues/491)) ([fbb2d8e](https://redirect.github.com/grafana/pyroscope-rs/commit/fbb2d8edc7cf400343650e77580464d32369d93d))
--- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- Cargo.lock | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 63ef0a10..c7c7749b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -313,7 +313,7 @@ dependencies = [ "hex2d", "itertools 0.14.0", "macroquad", - "pyroscope 2.0.0", + "pyroscope 2.0.1", "pyroscope_pprofrs", "serde", "serde_json", @@ -534,7 +534,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "778e2ac28f6c47af28e4907f13ffd1e1ddbd400980a9abd7c8df189bf578a5ad" dependencies = [ "libc", - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[package]] @@ -1724,7 +1724,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "27c6023962132f4b30eb4c172c91ce92d933da334c59c23cddee82358ddafb0b" dependencies = [ "anyhow", - "itertools 0.14.0", + "itertools 0.10.5", "proc-macro2", "quote", "syn 2.0.117", @@ -1750,9 +1750,9 @@ dependencies = [ [[package]] name = "pyroscope" -version = "2.0.0" +version = "2.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "85eebd4bcbf45db75f67d2ba20ea0207bd111d2029c07a7db3229289173d4387" +checksum = "480661d88db8b4dfb7cb34b1626a0c77e01572cc34de2b08f88200beaa52adbb" dependencies = [ "lazy_static", "libc", @@ -1837,7 +1837,7 @@ dependencies = [ "once_cell", "socket2 0.5.10", "tracing", - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[package]] @@ -2050,7 +2050,7 @@ dependencies = [ "errno", "libc", "linux-raw-sys", - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[package]] @@ -2108,7 +2108,7 @@ dependencies = [ "security-framework", "security-framework-sys", "webpki-root-certs", - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[package]] @@ -2274,7 +2274,7 @@ dependencies = [ "num", "num_cpus", "pathfinding", - "pyroscope 2.0.0", + "pyroscope 2.0.1", "pyroscope_pprofrs", "rustc-hash", "serde", @@ -2432,7 +2432,7 @@ dependencies = [ "getrandom 0.3.3", "once_cell", "rustix", - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[package]] @@ -2870,7 +2870,7 @@ version = "0.1.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22" dependencies = [ - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[package]] From b82c587093670f32b34ad0466ab939e3f8e442d4 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 20 Apr 2026 09:04:17 +0000 Subject: [PATCH 107/189] Update actions/setup-node digest to 48b55a0 (#442) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [actions/setup-node](https://redirect.github.com/actions/setup-node) ([changelog](https://redirect.github.com/actions/setup-node/compare/53b83947a5a98c8d113130e565377fae1a50d02f..48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e)) | action | digest | `53b8394` → `48b55a0` | --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fbfc02cd..ddb328e2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,7 +14,7 @@ jobs: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - uses: jdx/mise-action@1648a7812b9aeae629881980618f079932869151 # v4.0.1 - name: Use Node.js ${{ env.node_version }} - uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6 + uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6 with: node-version: ${{ env.node_version }} # setting a registry enables the NODE_AUTH_TOKEN env variable where we can set an npm token. REQUIRED From c9e62a3ce29070ab9811b2c113d7b2a199317be8 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 25 Apr 2026 01:37:17 +0000 Subject: [PATCH 108/189] Update Rust crate pyroscope to v2.0.2 (#443) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [pyroscope](https://grafana.com/docs/pyroscope/latest/configure-client/language-sdks/rust/) ([source](https://redirect.github.com/grafana/pyroscope-rs)) | dependencies | patch | `2.0.1` → `2.0.2` | --- ### Release Notes
grafana/pyroscope-rs (pyroscope) ### [`v2.0.2`](https://redirect.github.com/grafana/pyroscope-rs/blob/HEAD/CHANGELOG.md#202-2026-04-24) ##### Miscellaneous Chores - **deps:** bump rustls-webpki from 0.103.12 to 0.103.13 ([#​524](https://redirect.github.com/grafana/pyroscope-rs/issues/524)) ([935384d](https://redirect.github.com/grafana/pyroscope-rs/commit/935384dc4d3479a1a12df2502898a8813b775884)) - **deps:** lock file maintenance ([#​522](https://redirect.github.com/grafana/pyroscope-rs/issues/522)) ([4bd95bb](https://redirect.github.com/grafana/pyroscope-rs/commit/4bd95bb47f84f3aa6db6aa22173a7d74f774ab45)) - **deps:** update dependency ruby to v4.0.3 ([#​523](https://redirect.github.com/grafana/pyroscope-rs/issues/523)) ([e126aa2](https://redirect.github.com/grafana/pyroscope-rs/commit/e126aa24517ba6efea62302e465ea736e4cef54c)) - **deps:** update rust:trixie docker digest to [`e4f09e8`](https://redirect.github.com/grafana/pyroscope-rs/commit/e4f09e8) ([#​515](https://redirect.github.com/grafana/pyroscope-rs/issues/515)) ([f450327](https://redirect.github.com/grafana/pyroscope-rs/commit/f450327b1901f43d97d96eee5e0d73ccb64aa768))
--- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- Cargo.lock | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index c7c7749b..acbd47fc 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -313,7 +313,7 @@ dependencies = [ "hex2d", "itertools 0.14.0", "macroquad", - "pyroscope 2.0.1", + "pyroscope 2.0.2", "pyroscope_pprofrs", "serde", "serde_json", @@ -1724,7 +1724,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "27c6023962132f4b30eb4c172c91ce92d933da334c59c23cddee82358ddafb0b" dependencies = [ "anyhow", - "itertools 0.10.5", + "itertools 0.14.0", "proc-macro2", "quote", "syn 2.0.117", @@ -1750,9 +1750,9 @@ dependencies = [ [[package]] name = "pyroscope" -version = "2.0.1" +version = "2.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "480661d88db8b4dfb7cb34b1626a0c77e01572cc34de2b08f88200beaa52adbb" +checksum = "8ef335beaacecb830dc21ab54c8b4a75677874bb78a375ad880715ce385ccb35" dependencies = [ "lazy_static", "libc", @@ -2108,7 +2108,7 @@ dependencies = [ "security-framework", "security-framework-sys", "webpki-root-certs", - "windows-sys 0.59.0", + "windows-sys 0.61.1", ] [[package]] @@ -2274,7 +2274,7 @@ dependencies = [ "num", "num_cpus", "pathfinding", - "pyroscope 2.0.1", + "pyroscope 2.0.2", "pyroscope_pprofrs", "rustc-hash", "serde", @@ -2870,7 +2870,7 @@ version = "0.1.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22" dependencies = [ - "windows-sys 0.59.0", + "windows-sys 0.61.1", ] [[package]] From ce0d8f5dc822bf5df0bb6910ea782bddeb374cce Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 26 Apr 2026 13:04:14 +0000 Subject: [PATCH 109/189] Update Rust crate pyroscope to v2.0.3 (#444) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [pyroscope](https://grafana.com/docs/pyroscope/latest/configure-client/language-sdks/rust/) ([source](https://redirect.github.com/grafana/pyroscope-rs)) | dependencies | patch | `2.0.2` → `2.0.3` | --- ### Release Notes
grafana/pyroscope-rs (pyroscope) ### [`v2.0.3`](https://redirect.github.com/grafana/pyroscope-rs/blob/HEAD/CHANGELOG.md#203-2026-04-26) ##### Bug Fixes - **epoll:** use libc::c\_long for itimerspec fields ([#​532](https://redirect.github.com/grafana/pyroscope-rs/issues/532)) ([093406e](https://redirect.github.com/grafana/pyroscope-rs/commit/093406e667175e5bc28ca7a1c5efe62be6b9b4a0)) ##### Miscellaneous Chores - **deps:** update googleapis/release-please-action action to v5 ([#​530](https://redirect.github.com/grafana/pyroscope-rs/issues/530)) ([6c97b9d](https://redirect.github.com/grafana/pyroscope-rs/commit/6c97b9d414c7a1e26b07334a1cf0922e1c2cd2c9))
--- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- Cargo.lock | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index acbd47fc..2131e50b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -313,7 +313,7 @@ dependencies = [ "hex2d", "itertools 0.14.0", "macroquad", - "pyroscope 2.0.2", + "pyroscope 2.0.3", "pyroscope_pprofrs", "serde", "serde_json", @@ -1724,7 +1724,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "27c6023962132f4b30eb4c172c91ce92d933da334c59c23cddee82358ddafb0b" dependencies = [ "anyhow", - "itertools 0.14.0", + "itertools 0.10.5", "proc-macro2", "quote", "syn 2.0.117", @@ -1750,9 +1750,9 @@ dependencies = [ [[package]] name = "pyroscope" -version = "2.0.2" +version = "2.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8ef335beaacecb830dc21ab54c8b4a75677874bb78a375ad880715ce385ccb35" +checksum = "fc050356140f6c47dcaab95b6554ce12d461e4902c0a5baf4e888fcc86dcfaf4" dependencies = [ "lazy_static", "libc", @@ -2274,7 +2274,7 @@ dependencies = [ "num", "num_cpus", "pathfinding", - "pyroscope 2.0.2", + "pyroscope 2.0.3", "pyroscope_pprofrs", "rustc-hash", "serde", From 3ef0e70a946500a385ede7c9896208002013775a Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 30 Apr 2026 23:13:20 +0000 Subject: [PATCH 110/189] Update Rust crate json-patch to v4.2.0 (#445) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [json-patch](https://redirect.github.com/idubrov/json-patch) | dependencies | minor | `4.1.0` → `4.2.0` | --- ### Release Notes
idubrov/json-patch (json-patch) ### [`v4.2.0`](https://redirect.github.com/idubrov/json-patch/compare/v4.1.0...v4.2.0) [Compare Source](https://redirect.github.com/idubrov/json-patch/compare/v4.1.0...v4.2.0)
--- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- Cargo.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 2131e50b..e2d6e48d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1183,14 +1183,14 @@ dependencies = [ [[package]] name = "json-patch" -version = "4.1.0" +version = "4.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f300e415e2134745ef75f04562dd0145405c2f7fd92065db029ac4b16b57fe90" +checksum = "7421438de105a0827e44fadd05377727847d717c80ce29a229f85fd04c427b72" dependencies = [ "jsonptr", "serde", "serde_json", - "thiserror 1.0.69", + "thiserror 2.0.18", ] [[package]] From bc5525f973937c56623dbe0d03292017dedd6ac0 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 4 May 2026 15:13:31 +0000 Subject: [PATCH 111/189] Update Rust crate tokio to v1.52.2 (#446) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [tokio](https://tokio.rs) ([source](https://redirect.github.com/tokio-rs/tokio)) | dependencies | patch | `1.52.1` → `1.52.2` | --- ### Release Notes
tokio-rs/tokio (tokio) ### [`v1.52.2`](https://redirect.github.com/tokio-rs/tokio/releases/tag/tokio-1.52.2): Tokio v1.52.2 [Compare Source](https://redirect.github.com/tokio-rs/tokio/compare/tokio-1.52.1...tokio-1.52.2) ### 1.52.2 (May 4th, 2026) This release reverts the LIFO slot stealing change introduced in 1.51.0 ([#​7431]), due to [its performance impact][#​8065]. ([#​8100]) [#​7431]: https://redirect.github.com/tokio-rs/tokio/pull/7431 [#​8065]: https://redirect.github.com/tokio-rs/tokio/pull/8065 [#​8100]: https://redirect.github.com/tokio-rs/tokio/pull/8100
--- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- Cargo.lock | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index e2d6e48d..cc36a907 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2108,7 +2108,7 @@ dependencies = [ "security-framework", "security-framework-sys", "webpki-root-certs", - "windows-sys 0.61.1", + "windows-sys 0.52.0", ] [[package]] @@ -2502,9 +2502,9 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" [[package]] name = "tokio" -version = "1.52.1" +version = "1.52.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b67dee974fe86fd92cc45b7a95fdd2f99a36a6d7b0d431a231178d3d670bbcc6" +checksum = "110a78583f19d5cdb2c5ccf321d1290344e71313c6c37d43520d386027d18386" dependencies = [ "bytes", "libc", @@ -2870,7 +2870,7 @@ version = "0.1.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22" dependencies = [ - "windows-sys 0.61.1", + "windows-sys 0.52.0", ] [[package]] From 27293db136ba4a8f667d3941351f4bc54dab3220 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 8 May 2026 03:05:41 +0000 Subject: [PATCH 112/189] Update Rust crate enumset to v1.1.12 (#447) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [enumset](https://redirect.github.com/Lymia/enumset) | dependencies | patch | `1.1.10` → `1.1.12` | --- ### Release Notes
Lymia/enumset (enumset) ### [`v1.1.12`](https://redirect.github.com/Lymia/enumset/blob/HEAD/RELEASES.md#Version-1112-2026-05-06) [Compare Source](https://redirect.github.com/Lymia/enumset/compare/v1.1.11...v1.1.12) - Corrected the mistaken release of 1.1.11 with an outdated version of the public API for `MixedEnumSet`, where it was at `enumset::MixedEnumSet` instead of `enumset::set::MixedEnumSet` to avoid namespace pollution. ### [`v1.1.11`](https://redirect.github.com/Lymia/enumset/blob/HEAD/RELEASES.md#Version-1111-2026-05-06-YANKED) [Compare Source](https://redirect.github.com/Lymia/enumset/compare/v1.1.10...v1.1.11) - Implement a new `MixedEnumSet` type that allows unknown bits to be mixed with known enum variants in a single bitset. - Added `FromIterator` implementations for iterators of borrowed items. - Added `EnumSet::bit_index` and `EnumSet::is_bit_valid` methods to query the bit associated with an enum variant, or if a bit index is valid. - Fixed a bug causing `#![derive(EnumSetType)]` to produce invalid code on big-endian systems. - Allowed `EnumSet` to be `Send` and `Sync`. (Thanks [@​SLUCHABLUB](https://redirect.github.com/SLUCHABLUB)) - Allow byte literals such as `b'A'` to be used as variant discriminants. (Thanks [@​ronnodas](https://redirect.github.com/ronnodas)) - Minimum required Rust version is now 1.71+ due to updates in dependencies. - Minimum required Rust version when the `proc-macro-crate` feature flag cannot be guaranteed. It uses multiple dependencies without a specified minimum version.
--- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- Cargo.lock | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index cc36a907..08944c27 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -418,9 +418,9 @@ checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28" [[package]] name = "darling" -version = "0.21.2" +version = "0.21.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "08440b3dd222c3d0433e63e097463969485f112baff337dfdaca043a0d760570" +checksum = "9cdf337090841a411e2a7f3deb9187445851f91b309c0c0a29e05f74a00a48c0" dependencies = [ "darling_core", "darling_macro", @@ -428,9 +428,9 @@ dependencies = [ [[package]] name = "darling_core" -version = "0.21.2" +version = "0.21.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d25b7912bc28a04ab1b7715a68ea03aaa15662b43a1a4b2c480531fd19f8bf7e" +checksum = "1247195ecd7e3c85f83c8d2a366e4210d588e802133e1e355180a9870b517ea4" dependencies = [ "fnv", "ident_case", @@ -441,9 +441,9 @@ dependencies = [ [[package]] name = "darling_macro" -version = "0.21.2" +version = "0.21.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ce154b9bea7fb0c8e8326e62d00354000c36e79770ff21b8c84e3aa267d9d531" +checksum = "d38308df82d1080de0afee5d069fa14b0326a88c14f15c5ccda35b4a6c414c81" dependencies = [ "darling_core", "quote", @@ -502,18 +502,18 @@ checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719" [[package]] name = "enumset" -version = "1.1.10" +version = "1.1.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "25b07a8dfbbbfc0064c0a6bdf9edcf966de6b1c33ce344bdeca3b41615452634" +checksum = "7f96a4a12fe60ac746ae295a1a4ecb5bb02debc20856506c8635288065f142de" dependencies = [ "enumset_derive", ] [[package]] name = "enumset_derive" -version = "0.14.0" +version = "0.15.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f43e744e4ea338060faee68ed933e46e722fb7f3617e722a5772d7e856d8b3ce" +checksum = "4bd536557b58c682b217b8fb199afdff47cd3eff260623f19e77074eb073d63a" dependencies = [ "darling", "proc-macro2", From b136224a177ffdf4e156b87b25d174796c8ebfa1 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 8 May 2026 18:45:15 +0000 Subject: [PATCH 113/189] Update Rust crate tokio to v1.52.3 (#448) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [tokio](https://tokio.rs) ([source](https://redirect.github.com/tokio-rs/tokio)) | dependencies | patch | `1.52.2` → `1.52.3` | --- ### Release Notes
tokio-rs/tokio (tokio) ### [`v1.52.3`](https://redirect.github.com/tokio-rs/tokio/releases/tag/tokio-1.52.3): Tokio v1.52.3 [Compare Source](https://redirect.github.com/tokio-rs/tokio/compare/tokio-1.52.2...tokio-1.52.3) ##### 1.52.3 (May 8th, 2026) ##### Fixed - sync: fix underflow in mpsc channel `len()` ([#​8062]) - sync: notify receivers in mpsc `OwnedPermit::release()` method ([#​8075]) - sync: require that an `RwLock` has `max_readers != 0` ([#​8076]) - sync: return `Empty` from `try_recv()` when mpsc is closed with outstanding permits ([#​8074]) [#​8062]: https://redirect.github.com/tokio-rs/tokio/pull/8062 [#​8074]: https://redirect.github.com/tokio-rs/tokio/pull/8074 [#​8075]: https://redirect.github.com/tokio-rs/tokio/pull/8075 [#​8076]: https://redirect.github.com/tokio-rs/tokio/pull/8076
--- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- Cargo.lock | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 08944c27..605bfef9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2502,9 +2502,9 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" [[package]] name = "tokio" -version = "1.52.2" +version = "1.52.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "110a78583f19d5cdb2c5ccf321d1290344e71313c6c37d43520d386027d18386" +checksum = "8fc7f01b389ac15039e4dc9531aa973a135d7a4135281b12d7c1bc79fd57fffe" dependencies = [ "bytes", "libc", From 708741dd986ab9ab39b86302a9529a4b1ac2b32d Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 15 May 2026 14:10:12 +0000 Subject: [PATCH 114/189] Update dependency cargo:wasm-pack to 0.15.0 (#449) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Update | Change | |---|---|---| | [cargo:wasm-pack](https://redirect.github.com/wasm-bindgen/wasm-pack) | minor | `0.14.0` → `0.15.0` | --- ### Release Notes
wasm-bindgen/wasm-pack (cargo:wasm-pack) ### [`v0.15.0`](https://redirect.github.com/wasm-bindgen/wasm-pack/blob/HEAD/CHANGELOG.md#-0150) [Compare Source](https://redirect.github.com/wasm-bindgen/wasm-pack/compare/v0.14.0...v0.15.0) - ### ✨ Features - **Add wasm64-unknown-unknown target support - [audreyt], [pull/1553]** Parameterizes the target triple in `cargo_build_wasm()` and `cargo_build_wasm_tests()`, extracts `--target` from extra options, adds `--enable-memory64` to wasm-opt args for wasm64 targets, and dynamically constructs the `CARGO_TARGET_*_RUNNER` env var from the target triple. [pull/1553]: https://redirect.github.com/wasm-bindgen/wasm-pack/pull/1553 [audreyt]: https://redirect.github.com/audreyt - **Add `--panic-unwind` flag to build and test commands - [guybedford], [pull/1572]** [pull/1572]: https://redirect.github.com/wasm-bindgen/wasm-pack/pull/1572 - **Move `wasm-pack-template` into the repo - [guybedford], [pull/1573]** Vendors the project template directly into this repository so `wasm-pack new` no longer depends on a separate external template repo. [pull/1573]: https://redirect.github.com/wasm-bindgen/wasm-pack/pull/1573 - ### 🤕 Fixes - **Replace deprecated `binary-install` and add release auto-publish - [guybedford], [pull/1579]** The 0.14.0 npm package shipped with the old `drager/wasm-pack` release URL and was never republished after the repository moved, so `npm install -g wasm-pack` failed with a 404. This inlines the install/run logic into `npm/binary.js`, drops the deprecated `binary-install` dependency (which pulled in unmaintained `rimraf@3`, `glob@7`, `inflight`, and `tar@6`), promotes `tar` to a real dependency, and adds release workflow automation so the npm package no longer requires a manual `npm publish`. [pull/1579]: https://redirect.github.com/wasm-bindgen/wasm-pack/pull/1579 - **Make `init.sh` POSIX-compatible and stop mangling `$VERSION` - [guybedford], [pull/1578]** [pull/1578]: https://redirect.github.com/wasm-bindgen/wasm-pack/pull/1578 [guybedford]: https://redirect.github.com/guybedford - **Add trailing newline in `package.json` - [joaofreires], [pull/1162]** [pull/1162]: https://redirect.github.com/wasm-bindgen/wasm-pack/pull/1162 [joaofreires]: https://redirect.github.com/joaofreires - **Fix `drager` → `wasm-bindgen` in URLs - [akesling], [pull/1571]** [pull/1571]: https://redirect.github.com/wasm-bindgen/wasm-pack/pull/1571 [akesling]: https://redirect.github.com/akesling - ### 🛠️ Maintenance - **Bump follow-redirects from 1.15.11 to 1.16.0 in /npm - \[dependabot], [pull/1565]** [pull/1565]: https://redirect.github.com/wasm-bindgen/wasm-pack/pull/1565 - **Bump rustls-webpki from 0.103.9 to 0.103.13 - \[dependabot], [pull/1570]** [pull/1570]: https://redirect.github.com/wasm-bindgen/wasm-pack/pull/1570 - **Bump brace-expansion from 1.1.12 to 1.1.14 in /npm - \[dependabot], [pull/1574]** [pull/1574]: https://redirect.github.com/wasm-bindgen/wasm-pack/pull/1574 - **Bump tar from 0.4.44 to 0.4.45 - \[dependabot], [pull/1559]** [pull/1559]: https://redirect.github.com/wasm-bindgen/wasm-pack/pull/1559 - **Bump time from 0.3.45 to 0.3.47 - \[dependabot], [pull/1549]** [pull/1549]: https://redirect.github.com/wasm-bindgen/wasm-pack/pull/1549 - **Bump minimatch from 3.1.2 to 3.1.5 in /npm - \[dependabot], [pull/1555]** [pull/1555]: https://redirect.github.com/wasm-bindgen/wasm-pack/pull/1555 - ### 📖 Documentation - **Update documentation and references to the new GitHub repo - \[qinyuhang], [pull/1567]** [pull/1567]: https://redirect.github.com/wasm-bindgen/wasm-pack/pull/1567 - **Fix typo in prerequisites documentation - [pRizz], [pull/1545]** [pull/1545]: https://redirect.github.com/wasm-bindgen/wasm-pack/pull/1545 [pRizz]: https://redirect.github.com/pRizz
--- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- mise.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mise.toml b/mise.toml index e05c13cb..f7075f1b 100644 --- a/mise.toml +++ b/mise.toml @@ -69,6 +69,6 @@ run = "./scripts/publish-client.sh test" [tools] "cargo:cargo-nextest" = "0.9.103" "cargo:wasm-bindgen-cli" = "0.2.105" -"cargo:wasm-pack" = "0.14.0" +"cargo:wasm-pack" = "0.15.0" rust = { version = "1.94.1", targets = "wasm32-unknown-unknown", components = "clippy,rustfmt" } From 432b7dcd7c927d65d40dc1136e70958a661442b7 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 19 May 2026 02:10:00 +0000 Subject: [PATCH 115/189] Update Rust crate enumset to v1.1.13 (#450) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [enumset](https://redirect.github.com/Lymia/enumset) | dependencies | patch | `1.1.12` → `1.1.13` | --- ### Release Notes
Lymia/enumset (enumset) ### [`v1.1.13`](https://redirect.github.com/Lymia/enumset/blob/HEAD/RELEASES.md#Version-1113-2026-05-18) [Compare Source](https://redirect.github.com/Lymia/enumset/compare/v1.1.12...v1.1.13) - Revert a semver breaking change introduced in 1.1.12 relating to using functions like `EnumSet.symmetric_difference` with `Enum::A.into()`. - Deprecate `EnumSet.symmetrical_difference` in favor of `symmetric_difference`, to better match the standard library sets.
--- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- Cargo.lock | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 605bfef9..d8246631 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -502,9 +502,9 @@ checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719" [[package]] name = "enumset" -version = "1.1.12" +version = "1.1.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f96a4a12fe60ac746ae295a1a4ecb5bb02debc20856506c8635288065f142de" +checksum = "839c4174b41e75c8f7306110b2c51996a293b8d1d850edd529011841d9fede7d" dependencies = [ "enumset_derive", ] From 895cb48791cf35ade1115c2f54f3d51a3c065d74 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 20 May 2026 15:55:35 +0000 Subject: [PATCH 116/189] Update Rust crate pyroscope to v2.0.4 (#451) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [pyroscope](https://grafana.com/docs/pyroscope/latest/configure-client/language-sdks/rust/) ([source](https://redirect.github.com/grafana/pyroscope-rs)) | dependencies | patch | `2.0.3` → `2.0.4` | --- ### Release Notes
grafana/pyroscope-rs (pyroscope) ### [`v2.0.4`](https://redirect.github.com/grafana/pyroscope-rs/blob/HEAD/CHANGELOG.md#204-2026-05-20) ##### Bug Fixes - do not recreate profiling guard, just reset the data ([#​518](https://redirect.github.com/grafana/pyroscope-rs/issues/518)) ([b1fe114](https://redirect.github.com/grafana/pyroscope-rs/commit/b1fe1141ee0d86caa59db383298c818763f3fa95)) - remove kindasafe CI leftovers ([#​521](https://redirect.github.com/grafana/pyroscope-rs/issues/521)) ([f8bc0f3](https://redirect.github.com/grafana/pyroscope-rs/commit/f8bc0f31c3b775b9d0e97fb412af76059f0819ec)) ##### Miscellaneous Chores - **deps:** bump openssl from 0.10.79 to 0.10.80 ([#​548](https://redirect.github.com/grafana/pyroscope-rs/issues/548)) ([f3ed911](https://redirect.github.com/grafana/pyroscope-rs/commit/f3ed911e8b179d6fd63eacc2a793e884f126dfa0)) - **deps:** lock file maintenance ([#​535](https://redirect.github.com/grafana/pyroscope-rs/issues/535)) ([9554564](https://redirect.github.com/grafana/pyroscope-rs/commit/955456438ea768adfe0a89cd1ef7da22e7974bcd)) - **deps:** lock file maintenance ([#​541](https://redirect.github.com/grafana/pyroscope-rs/issues/541)) ([3abc7b6](https://redirect.github.com/grafana/pyroscope-rs/commit/3abc7b6d0c01f420a16cd2d08f44f10424c3ef3c)) - **deps:** lock file maintenance ([#​547](https://redirect.github.com/grafana/pyroscope-rs/issues/547)) ([cd30ebf](https://redirect.github.com/grafana/pyroscope-rs/commit/cd30ebfb07bfbf243125df53f051a2f2d1dd5d63)) - **deps:** pin rust docker tag to [`a9cfb75`](https://redirect.github.com/grafana/pyroscope-rs/commit/a9cfb75) ([#​544](https://redirect.github.com/grafana/pyroscope-rs/issues/544)) ([ea14091](https://redirect.github.com/grafana/pyroscope-rs/commit/ea140911e4b8bbabc8c42fbb2c7d43e0384ec4fe)) - **deps:** remove names crate dependency ([#​527](https://redirect.github.com/grafana/pyroscope-rs/issues/527)) ([5893aac](https://redirect.github.com/grafana/pyroscope-rs/commit/5893aacb5bc3660dcd269b2fee33847f1fe1ab82)) - **deps:** update rust crate libc to v0.2.186 ([#​533](https://redirect.github.com/grafana/pyroscope-rs/issues/533)) ([a7468c1](https://redirect.github.com/grafana/pyroscope-rs/commit/a7468c1db5d7955dfa0eb702a8b0371775ff2350)) - **deps:** update rust crate reqwest to v0.13.3 ([#​539](https://redirect.github.com/grafana/pyroscope-rs/issues/539)) ([b8c6fbb](https://redirect.github.com/grafana/pyroscope-rs/commit/b8c6fbb97cc5f3b22185be35c9e19e72237b912e)) - **deps:** update rust:trixie docker digest to [`a9cfb75`](https://redirect.github.com/grafana/pyroscope-rs/commit/a9cfb75) ([#​538](https://redirect.github.com/grafana/pyroscope-rs/issues/538)) ([bff1d5d](https://redirect.github.com/grafana/pyroscope-rs/commit/bff1d5d98f2a81d7a291c257bfb8291b41ffc8e5)) - **renovate:** vulnerabilities-only with profiling deps allowlist ([#​540](https://redirect.github.com/grafana/pyroscope-rs/issues/540)) ([4aa8e56](https://redirect.github.com/grafana/pyroscope-rs/commit/4aa8e5656472a08ddea21cb2128b85203920243b)) ##### Continuous Integration - add ARM cross-compilation test job ([#​536](https://redirect.github.com/grafana/pyroscope-rs/issues/536)) ([54bb03f](https://redirect.github.com/grafana/pyroscope-rs/commit/54bb03f6996a74ad98cc75bdd08d790bce61efa3)) - auto-publish to crates.io after release-please PR merge ([#​529](https://redirect.github.com/grafana/pyroscope-rs/issues/529)) ([a4f76b6](https://redirect.github.com/grafana/pyroscope-rs/commit/a4f76b6f9de6b6c35e4d947aba4dbfe49d8c019a)) - Potential fix for code scanning alert no. 14: Workflow does not contain permissions ([#​542](https://redirect.github.com/grafana/pyroscope-rs/issues/542)) ([51ac4b7](https://redirect.github.com/grafana/pyroscope-rs/commit/51ac4b78e4a8cc0c8130984b52181fce12e3589f))
--- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- Cargo.lock | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index d8246631..90ff9032 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -313,7 +313,7 @@ dependencies = [ "hex2d", "itertools 0.14.0", "macroquad", - "pyroscope 2.0.3", + "pyroscope 2.0.4", "pyroscope_pprofrs", "serde", "serde_json", @@ -1724,7 +1724,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "27c6023962132f4b30eb4c172c91ce92d933da334c59c23cddee82358ddafb0b" dependencies = [ "anyhow", - "itertools 0.10.5", + "itertools 0.14.0", "proc-macro2", "quote", "syn 2.0.117", @@ -1750,15 +1750,14 @@ dependencies = [ [[package]] name = "pyroscope" -version = "2.0.3" +version = "2.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fc050356140f6c47dcaab95b6554ce12d461e4902c0a5baf4e888fcc86dcfaf4" +checksum = "942d4561e34d24ce01820f6e6bdf1dcff292b6f0c03245b0b4e5b4f89dddd85d" dependencies = [ "lazy_static", "libc", "libflate 2.2.1", "log", - "names", "prost 0.14.3", "reqwest 0.13.2", "serde_json", @@ -2108,7 +2107,7 @@ dependencies = [ "security-framework", "security-framework-sys", "webpki-root-certs", - "windows-sys 0.52.0", + "windows-sys 0.61.1", ] [[package]] @@ -2274,7 +2273,7 @@ dependencies = [ "num", "num_cpus", "pathfinding", - "pyroscope 2.0.3", + "pyroscope 2.0.4", "pyroscope_pprofrs", "rustc-hash", "serde", @@ -2870,7 +2869,7 @@ version = "0.1.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22" dependencies = [ - "windows-sys 0.52.0", + "windows-sys 0.61.1", ] [[package]] From 326acd3dba91f04a30a15b1f83f08aa912329ddd Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 20 May 2026 17:45:53 +0000 Subject: [PATCH 117/189] Update Rust crate macroquad to v0.4.15 (#452) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [macroquad](https://redirect.github.com/not-fl3/macroquad) | dependencies | patch | `0.4.14` → `0.4.15` | --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- Cargo.lock | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 90ff9032..91104af1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1313,9 +1313,9 @@ checksum = "112b39cec0b298b6c1999fee3e31427f74f676e4cb9879ed1a121b43661a4154" [[package]] name = "macroquad" -version = "0.4.14" +version = "0.4.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d2befbae373456143ef55aa93a73594d080adfb111dc32ec96a1123a3e4ff4ae" +checksum = "41f7d60318b52b19e909db1f01c522977da28a5e515127a73ecd8b7488498edb" dependencies = [ "fontdue", "glam", @@ -1357,9 +1357,9 @@ dependencies = [ [[package]] name = "miniquad" -version = "0.4.8" +version = "0.4.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2fb3e758e46dbc45716a8a49ca9edc54b15bcca826277e80b1f690708f67f9e3" +checksum = "2f64fd94ff70fdc425766c78a3fa9f263d02cb25725a49f255f6a66d8a186c3f" dependencies = [ "libc", "ndk-sys", From 93f50d9c35533b6b9f8067c71465eae46fbf4e92 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 21 May 2026 20:50:40 +0000 Subject: [PATCH 118/189] Update Rust crate serde_json to v1.0.150 (#453) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [serde_json](https://redirect.github.com/serde-rs/json) | dependencies | patch | `1.0.149` → `1.0.150` | --- ### Release Notes
serde-rs/json (serde_json) ### [`v1.0.150`](https://redirect.github.com/serde-rs/json/releases/tag/v1.0.150) - Reject non-string enum object keys ([#​1324](https://redirect.github.com/serde-rs/json/issues/1324), thanks [@​puneetdixit200](https://redirect.github.com/puneetdixit200))
--- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- Cargo.lock | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 91104af1..e4f01190 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2236,9 +2236,9 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.149" +version = "1.0.150" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "83fc039473c5595ace860d8c4fafa220ff474b3fc6bfdb4293327f1a37e94d86" +checksum = "e8014e44b4736ed0538adeecded0fce2a272f22dc9578a7eb6b2d9993c74cfb9" dependencies = [ "itoa", "memchr", From a004240f5e0ddc58f317103e844f2d6959429571 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 24 May 2026 07:47:31 +0000 Subject: [PATCH 119/189] Update dependency webpack to v5.107.0 (#454) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [webpack](https://redirect.github.com/webpack/webpack) | [`5.106.2` → `5.107.0`](https://renovatebot.com/diffs/npm/webpack/5.106.2/5.107.0) | ![age](https://developer.mend.io/api/mc/badges/age/npm/webpack/5.107.0?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/webpack/5.106.2/5.107.0?slim=true) | --- ### Release Notes
webpack/webpack (webpack) ### [`v5.107.0`](https://redirect.github.com/webpack/webpack/blob/HEAD/CHANGELOG.md#51070) [Compare Source](https://redirect.github.com/webpack/webpack/compare/v5.106.2...v5.107.0) ##### Minor Changes - Add `module.generator.javascript.anonymousDefaultExportName` option to control whether webpack sets `.name` to `"default"` for anonymous default export functions and classes per ES spec. Defaults to `true` for applications and `false` for libraries (when `output.library` is set) to avoid unnecessary bundle size overhead. Also extract anonymous default export `.name` fix-up into a shared runtime helper (`__webpack_require__.dn`), replacing repeated inline `Object.defineProperty` / `Object.getOwnPropertyDescriptor` calls with a single short call per module to reduce output size. (by [@​xiaoxiaojx](https://redirect.github.com/xiaoxiaojx) in [#​20894](https://redirect.github.com/webpack/webpack/pull/20894)) - Support module concatenation (scope hoisting) for CSS modules with `text`, `css-style-sheet`, `style`, and `link` export types (by [@​xiaoxiaojx](https://redirect.github.com/xiaoxiaojx) in [#​20851](https://redirect.github.com/webpack/webpack/pull/20851)) - The `generator.exportsConvention` function form for CSS modules now accepts `string[]` in addition to `string`. (by [@​alexander-akait](https://redirect.github.com/alexander-akait) in [#​20914](https://redirect.github.com/webpack/webpack/pull/20914)) - Add `linkInsert` hook to `CssLoadingRuntimeModule.getCompilationHooks(compilation)` so plugin developers can control where stylesheet `` elements are inserted into the document. (by [@​alexander-akait](https://redirect.github.com/alexander-akait) in [#​20947](https://redirect.github.com/webpack/webpack/pull/20947)) - Add `CssModulesPlugin.getCompilationHooks(compilation).orderModules` hook. (by [@​alexander-akait](https://redirect.github.com/alexander-akait) in [#​20978](https://redirect.github.com/webpack/webpack/pull/20978)) - Add a `pure` parser option for `css/module` and `css/auto` types matching `postcss-modules-local-by-default`'s pure mode: every selector must contain at least one local class or id, otherwise webpack emits a build error. (by [@​alexander-akait](https://redirect.github.com/alexander-akait) in [#​20946](https://redirect.github.com/webpack/webpack/pull/20946)) - Support CSS Modules `@value` identifiers as `@import` URLs and inside `url()` functions, e.g. `@value path: "./other.css"; @​import path;` and `@value bg: "./image.png"; .a { background: url(bg); }` (by [@​alexander-akait](https://redirect.github.com/alexander-akait) in [#​20925](https://redirect.github.com/webpack/webpack/pull/20925)) - Add experimental TypeScript support via `experiments.typescript: true` (auto-enabled by `experiments.futureDefaults`). Uses Node.js's built-in `module.stripTypeScriptTypes` (Node.js >= 22.6 with the stable `mode: "strip"` API, including Node.js 26) to transform `.ts`, `.cts`, `.mts`, `data:text/typescript`, and `data:application/typescript` modules — no type checking, only erasable TypeScript (types, generics, `import type`, casts). `.tsx`/JSX and non-erasable syntax (`enum`, `namespace`, parameter-property constructors, decorator metadata) are NOT supported; use a TSX-capable loader (e.g. `ts-loader`, `swc-loader`) for those. (by [@​alexander-akait](https://redirect.github.com/alexander-akait) in [#​20964](https://redirect.github.com/webpack/webpack/pull/20964)) - Added an `experiments.html` flag that reserves the `html` module type for the first-class HTML entry-point support. (by [@​aryanraj45](https://redirect.github.com/aryanraj45) in [#​20902](https://redirect.github.com/webpack/webpack/pull/20902)) - Preserve `defer` / `source` import phase keywords on external dependencies in ESM output, the same way import attributes are preserved. (by [@​alexander-akait](https://redirect.github.com/alexander-akait) in [#​20934](https://redirect.github.com/webpack/webpack/pull/20934)) - Support the `#__NO_SIDE_EFFECTS__` annotation to mark functions as pure for better tree-shaking. (by [@​hai-x](https://redirect.github.com/hai-x) in [#​20775](https://redirect.github.com/webpack/webpack/pull/20775)) - Add `module.generator.html.extract` for HTML modules and the matching `output.htmlFilename` / `output.htmlChunkFilename` filename templates (defaults derived from `output.filename` / `output.chunkFilename` with `.js` swapped for `.html`, mirroring the CSS pipeline). When extraction is on, the parsed and URL-rewritten HTML is emitted as a standalone `.html` output file alongside the module's JavaScript export. (by [@​alexander-akait](https://redirect.github.com/alexander-akait) in [#​20979](https://redirect.github.com/webpack/webpack/pull/20979)) - Add `"module-sync"` to default `conditionNames` for resolver defaults to align with Node.js, which exposes the `module-sync` community condition for synchronously-loadable ESM. (by [@​alexander-akait](https://redirect.github.com/alexander-akait) in [#​20933](https://redirect.github.com/webpack/webpack/pull/20933)) ##### Patch Changes - Fix CSS modules `composes` so `composes: foo from "./self.module.css"` from inside `self.module.css` no longer creates a duplicate module instance. Fix CSS modules `composes` parsing so `local()` and `global()` function wrappers are tracked per class name. Fix CSS modules `composes: ... from ""` so the composed files load in an order consistent with every rule's local composes order, instead of source first-appearance order. (by [@​alexander-akait](https://redirect.github.com/alexander-akait) in [#​20929](https://redirect.github.com/webpack/webpack/pull/20929)) - Avoid emitting the `__webpack_require__` runtime in CSS bundles when all imported CSS modules were concatenated into the same scope. (by [@​alexander-akait](https://redirect.github.com/alexander-akait) in [#​20936](https://redirect.github.com/webpack/webpack/pull/20936)) - Recompute the CSS chunk's `[contenthash]` and the rendered CSS bytes when an asset referenced by `url()`/`src()`/string in CSS changes its hashed filename. (by [@​alexander-akait](https://redirect.github.com/alexander-akait) in [#​20938](https://redirect.github.com/webpack/webpack/pull/20938)) - Embed an inline `sourceMappingURL` data URI inside the CSS when the `parser.exportType` option are `text`, `style`, or `css-style-sheet`. Also merge `@import`ed CSS at build time for `text` and `css-style-sheet` exportTypes so the bundle ships a single accurate inline source map covering every contributing file. Map each generated CSS-module class export line in the JS bundle back to its selector position in the original CSS file (e.g. `btn: "..."` → `.btn { ... }`). (by [@​alexander-akait](https://redirect.github.com/alexander-akait) in [#​20886](https://redirect.github.com/webpack/webpack/pull/20886)) - Fix CSS modules deduplication so a `.module.` file imported both directly (JS) and via icss (`composes from` / `:import`) becomes a single module instance. (by [@​alexander-akait](https://redirect.github.com/alexander-akait) in [#​20929](https://redirect.github.com/webpack/webpack/pull/20929)) - Preserve `@charset` at-rule when CSS modules use `exportType: "text"`. (by [@​alexander-akait](https://redirect.github.com/alexander-akait) in [#​20912](https://redirect.github.com/webpack/webpack/pull/20912)) - Resolve `[hash]`/`[fullhash]` placeholders in `output.publicPath` when generating `url()` references for `experiments.css`. (by [@​alexander-akait](https://redirect.github.com/alexander-akait) in [#​20879](https://redirect.github.com/webpack/webpack/pull/20879)) - Fix HMR for concatenated CSS modules with `style` exportType by using stable per-module identifiers for injected style elements and tracking inner module IDs of concatenated modules in HMR records (by [@​xiaoxiaojx](https://redirect.github.com/xiaoxiaojx) in [#​20911](https://redirect.github.com/webpack/webpack/pull/20911)) - Fix CSS Modules `@value` resolution when the same local name is imported from multiple modules. (by [@​alexander-akait](https://redirect.github.com/alexander-akait) in [#​20940](https://redirect.github.com/webpack/webpack/pull/20940)) - Fix `typeof ns.default` / `ns.default instanceof X` on a static `import defer * as ns from "./mod"` for `default-only` and `default-with-named` external modules under `optimization.concatenateModules`. The concatenated-module rewrite was collapsing `ns.default` to the deferred-namespace proxy itself instead of routing through the optimized `.a` getter (which lazily evaluates the module and returns its default value), so `typeof ns.default` observed `"object"` (the proxy) rather than the type of the default. The `dynamic` exportsType already used `.a` correctly; default-only and default-with-named now match. (by [@​alexander-akait](https://redirect.github.com/alexander-akait) in [#​20910](https://redirect.github.com/webpack/webpack/pull/20910)) - Make `import defer * as ns` more spec-compliant: `ns.x = value` no longer triggers module evaluation (per the TC39 import-defer `[[Set]]` algorithm), and the deferred namespace is now a distinct object from the eager namespace, with the same Deferred Module Namespace Exotic Object shared across defer-import call sites for the same module. (by [@​alexander-akait](https://redirect.github.com/alexander-akait) in [#​20913](https://redirect.github.com/webpack/webpack/pull/20913)) - Fixed spec deviations in the deferred namespace object returned by `__webpack_require__.z` (`import defer * as ns` / `import.defer(...)`). (by [@​alexander-akait](https://redirect.github.com/alexander-akait) in [#​20910](https://redirect.github.com/webpack/webpack/pull/20910)) - Drop the `__webpack_require__`, `__webpack_require__.d`, and `__webpack_require__.o` runtime helpers from `library: { type: "module" }` bundles when the on-demand exports source they were emitted for ends up dropped (e.g. a single concatenated entry without an IIFE). (by [@​alexander-akait](https://redirect.github.com/alexander-akait) in [#​20901](https://redirect.github.com/webpack/webpack/pull/20901)) - Resolve the static specifier of a dynamic `import()` whose argument is a side-effect-free `SequenceExpression`, e.g. `import((1, 0, "./mod.js"))` is now treated the same as `import("./mod.js")` instead of being rejected as unresolvable. (by [@​alexander-akait](https://redirect.github.com/alexander-akait) in [#​20917](https://redirect.github.com/webpack/webpack/pull/20917)) - Stable shared module ids and runtime-chunk emission order. (by [@​imccausl](https://redirect.github.com/imccausl) in [#​20860](https://redirect.github.com/webpack/webpack/pull/20860)) - Fix snapshot validity check for context dependencies in watch mode by treating watchpack's existence-only entries (`{}`) as cache misses. (by [@​alexander-akait](https://redirect.github.com/alexander-akait) in [#​20916](https://redirect.github.com/webpack/webpack/pull/20916)) - Support no-expression template literals in computed member access (e.g. ``import.meta[`url`]``). (by [@​alexander-akait](https://redirect.github.com/alexander-akait) in [#​20889](https://redirect.github.com/webpack/webpack/pull/20889)) - Improve tree-shaking in `isPure`: handle more expression types (`ArrayExpression`, `ObjectExpression`, `NewExpression`, `ChainExpression`, `UnaryExpression` (safe operators), `MetaProperty`, `TaggedTemplateExpression`, `BinaryExpression` (strict equality)), prevent `/*#__PURE__*/` comments from leaking across `ObjectExpression` properties, and detect PURE comments inside `TemplateLiteral` interpolations. (by [@​alexander-akait](https://redirect.github.com/alexander-akait) in [#​20723](https://redirect.github.com/webpack/webpack/pull/20723)) - Reject `new import.defer(...)` and `new import.source(...)` as a parse-time `SyntaxError`, matching the spec — `ImportCall` is a `CallExpression` and is not a valid operand of `new`. Parenthesized forms (`new (import.defer(...))`) remain valid and continue to throw `TypeError` at runtime as before. (by [@​alexander-akait](https://redirect.github.com/alexander-akait) in [#​20917](https://redirect.github.com/webpack/webpack/pull/20917)) - Escape `#` characters that appear inside a path-shaped request's directory portion before passing the request to the resolver, so projects located in directories like `/home/user/proj#1` (and tools like webpack-dev-server that build entry requests with query strings) resolve correctly. The escape only kicks in when the request contains both a `#` in the path portion and a `?` query string — paths without a query keep their existing semantics. (by [@​alexander-akait](https://redirect.github.com/alexander-akait) in [#​20980](https://redirect.github.com/webpack/webpack/pull/20980)) - Silence unhandled rejection from the prefetch trigger when chunk loading fails. The `ensureChunkHandlers.prefetch` runtime created `Promise.all(promises).then(...)` whose result is discarded by `__webpack_require__.e`. If chunk loading rejected (e.g. `chunkLoadTimeout`), that dangling chain produced an unhandled rejection. Prefetch is best-effort, so a no-op rejection handler is now attached. (by [@​alexander-akait](https://redirect.github.com/alexander-akait) in [#​20898](https://redirect.github.com/webpack/webpack/pull/20898)) - Align `require()` of an ES module with Node.js's [`require(esm)`](https://nodejs.org/docs/latest/api/modules.html#loading-ecmascript-modules-using-require) `"module.exports"` named-export convention. When CommonJS `require()` resolves to an ES module that exports a binding with the literal string name `"module.exports"` (e.g. `export { value as "module.exports" }`), `require()` now returns the value of that export instead of the module's namespace object — matching Node.js v22.12+/v23+ behavior and easing migration of dual ESM/CJS libraries that rely on `module.exports = …`. The unwrap applies to plain `require()`, `require().foo`, calls (`require()(…)`), destructuring, and to CJS wrappers like `module.exports = require(esm)` / `exports.x = require(esm)`. (by [@​alexander-akait](https://redirect.github.com/alexander-akait) in [#​20981](https://redirect.github.com/webpack/webpack/pull/20981)) - Remove outdated `@types/eslint-scope` package from dependencies. (by [@​alexander-akait](https://redirect.github.com/alexander-akait) in [#​20869](https://redirect.github.com/webpack/webpack/pull/20869)) - Fix `export *` resolution when a star-reexported module re-exports a name back to the importer cyclically. Previously, in a graph where `a` does `export * from "./b"; export * from "./c";` and `b` does `export { foo } from "./a";` while `c` provides the actual `foo` binding, webpack hoisted `foo` from `b` into `a`'s namespace without per-name cycle detection — emitting a getter chain (`a.foo` → `b.foo` → `a.foo`) that threw "Maximum call stack size exceeded" at runtime. The TC39 `ResolveExport` algorithm requires the cyclic branch to return null and the star loop to fall through to the non-cyclic source. (by [@​alexander-akait](https://redirect.github.com/alexander-akait) in [#​20959](https://redirect.github.com/webpack/webpack/pull/20959)) - Preserve `using` declaration initializers when the inner graph optimization is enabled. (by [@​hai-x](https://redirect.github.com/hai-x) in [#​20906](https://redirect.github.com/webpack/webpack/pull/20906)) - Fixed typescript types. (by [@​alexander-akait](https://redirect.github.com/alexander-akait) in [#​20880](https://redirect.github.com/webpack/webpack/pull/20880)) - Bump `webpack-sources` to `^3.4.1` and feed asset bytes into hashes via the new `Source.prototype.buffers()` API. For large `ConcatSource`/`ReplaceSource` outputs this avoids the intermediate `Buffer.concat` that `source.buffer()` performs, removing a peak-memory spike equal to the source's total size on each hashed asset (`AssetGenerator.getFullContentHash`, `CssIcssExportDependency` content hashing, and `RealContentHashPlugin`). A small benchmark on a 64 MiB `ConcatSource` shows \~64 MiB lower peak external memory and \~45% faster hashing. (by [@​alexander-akait](https://redirect.github.com/alexander-akait) in [#​20897](https://redirect.github.com/webpack/webpack/pull/20897))
--- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- client/js/package-lock.json | 137 +++++++++++++++--------------------- client/js/package.json | 2 +- 2 files changed, 59 insertions(+), 80 deletions(-) diff --git a/client/js/package-lock.json b/client/js/package-lock.json index 2e0b7968..c8db36ac 100644 --- a/client/js/package-lock.json +++ b/client/js/package-lock.json @@ -52,30 +52,10 @@ "@jridgewell/sourcemap-codec": "^1.4.14" } }, - "@types/eslint": { - "version": "9.6.1", - "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-9.6.1.tgz", - "integrity": "sha512-FXx2pKgId/WyYo2jXw63kk7/+TY7u7AziEJxJAnSFzHlqTAS3Ync6SvgYAN/k4/PQpnnVuzoMuVnByKK2qp0ag==", - "dev": true, - "requires": { - "@types/estree": "*", - "@types/json-schema": "*" - } - }, - "@types/eslint-scope": { - "version": "3.7.7", - "resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.7.tgz", - "integrity": "sha512-MzMFlSLBqNF2gcHWO0G1vP/YQyfvrxZ0bF+u7mzUdZ1/xK4A4sru+nraZz5i3iEIk1l1uyicaDVTB4QbbEkAYg==", - "dev": true, - "requires": { - "@types/eslint": "*", - "@types/estree": "*" - } - }, "@types/estree": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz", - "integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==", + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.9.tgz", + "integrity": "sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==", "dev": true }, "@types/json-schema": { @@ -85,12 +65,12 @@ "dev": true }, "@types/node": { - "version": "25.6.0", - "resolved": "https://registry.npmjs.org/@types/node/-/node-25.6.0.tgz", - "integrity": "sha512-+qIYRKdNYJwY3vRCZMdJbPLJAtGjQBudzZzdzwQYkEPQd+PJGixUL5QfvCLDaULoLv+RhT3LDkwEfKaAkgSmNQ==", + "version": "25.9.1", + "resolved": "https://registry.npmjs.org/@types/node/-/node-25.9.1.tgz", + "integrity": "sha512-xfrlY7UD5rMJk3ZVJP8BNzS28J36YJg+xp+LPXV1TdWxr8uMH5A860QNxYDGQe/ylDSgjxE52Q9VnO7p75tJxg==", "dev": true, "requires": { - "undici-types": "~7.19.0" + "undici-types": ">=7.24.0 <7.24.7" } }, "@webassemblyjs/ast": { @@ -264,9 +244,9 @@ "dev": true }, "ajv": { - "version": "8.18.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.18.0.tgz", - "integrity": "sha512-PlXPeEWMXMZ7sPYOHqmDyCJzcfNrUr3fGNKtezX14ykXOEIvyK81d+qydx89KY5O71FKMPaQ2vBfBFI5NHR63A==", + "version": "8.20.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.20.0.tgz", + "integrity": "sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==", "dev": true, "requires": { "fast-deep-equal": "^3.1.3", @@ -294,9 +274,9 @@ } }, "baseline-browser-mapping": { - "version": "2.10.19", - "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.10.19.tgz", - "integrity": "sha512-qCkNLi2sfBOn8XhZQ0FXsT1Ki/Yo5P90hrkRamVFRS7/KV9hpfA4HkoWNU152+8w0zPjnxo5psx5NL3PSGgv5g==", + "version": "2.10.31", + "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.10.31.tgz", + "integrity": "sha512-MujYO3eP72uvmSE0i4wltsodRfIpZATP3jvzRNRGGxgzId7aVocVJJV3nf01qnzzKFGxQVC9bpWxl5cjxTr/7Q==", "dev": true }, "browserslist": { @@ -319,9 +299,9 @@ "dev": true }, "caniuse-lite": { - "version": "1.0.30001788", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001788.tgz", - "integrity": "sha512-6q8HFp+lOQtcf7wBK+uEenxymVWkGKkjFpCvw5W25cmMwEDU45p1xQFBQv8JDlMMry7eNxyBaR+qxgmTUZkIRQ==", + "version": "1.0.30001793", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001793.tgz", + "integrity": "sha512-iwSsYWaCOoh26cV8NwNRViHlrfUvYsHDfRVcbtmw0Kg6PJIZZXwMkj1442FYLBGkeUf1juAsU3DTfxW579mrPA==", "dev": true }, "chrome-trace-event": { @@ -359,19 +339,19 @@ } }, "electron-to-chromium": { - "version": "1.5.340", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.340.tgz", - "integrity": "sha512-908qahOGocRMinT2nM3ajCEM99H4iPdv84eagPP3FfZy/1ZGeOy2CZYzjhms81ckOPCXPlW7LkY4XpxD8r1DrA==", + "version": "1.5.360", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.360.tgz", + "integrity": "sha512-GkcBt6YYAw9SxFWn+xVar4cLVGlXVuswwtRLBozi2zp0GjXs4ZnOrqV4zbXzg35n7w81hCkyJNYicgXlVHAmBA==", "dev": true }, "enhanced-resolve": { - "version": "5.20.1", - "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.20.1.tgz", - "integrity": "sha512-Qohcme7V1inbAfvjItgw0EaxVX5q2rdVEZHRBrEQdRZTssLDGsL8Lwrznl8oQ/6kuTJONLaDcGjkNP247XEhcA==", + "version": "5.21.6", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.21.6.tgz", + "integrity": "sha512-aNnGCvbJ/RIyWo1IuhNdVjnNF+EjH9wpzpNHt+ci/m9He9LJvUN8wrCcXjp9cWsGNAuvSpVFTx/vraAFQ8qGjQ==", "dev": true, "requires": { "graceful-fs": "^4.2.4", - "tapable": "^2.3.0" + "tapable": "^2.3.3" } }, "envinfo": { @@ -381,9 +361,9 @@ "dev": true }, "es-module-lexer": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-2.0.0.tgz", - "integrity": "sha512-5POEcUuZybH7IdmGsD8wlf0AI55wMecM9rVBTI/qEAy2c1kTOm3DjFYjrBdI2K3BaJjJYfYFeRtM0t9ssnRuxw==", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-2.1.0.tgz", + "integrity": "sha512-n27zTYMjYu1aj4MjCWzSP7G9r75utsaoc8m61weK+W8JMBGGQybd43GstCXZ3WNmSFtGT9wi59qQTW6mhTR5LQ==", "dev": true }, "escalade": { @@ -437,9 +417,9 @@ "dev": true }, "fast-uri": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.0.tgz", - "integrity": "sha512-iPeeDKJSWf4IEOasVVrknXpaBV0IApz/gp7S2bb7Z4Lljbl2MGJRqInZiUrQwV16cpzw/D3S5j5Julj/gT52AA==", + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.2.tgz", + "integrity": "sha512-rVjf7ArG3LTk+FS6Yw81V1DLuZl1bRbNrev6Tmd/9RaroeeRRJhAt7jg/6YFxbvAQXUCavSoZhPPj6oOx+5KjQ==", "dev": true }, "fastest-levenshtein": { @@ -567,9 +547,9 @@ "dev": true }, "loader-runner": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-4.3.1.tgz", - "integrity": "sha512-IWqP2SCPhyVFTBtRcgMHdzlf9ul25NwaFx4wCEH/KjAXuuHY4yNjvPXsBokp8jCB936PyWRaPKUNh8NvylLp2Q==", + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-4.3.2.tgz", + "integrity": "sha512-DFEqQ3ihfS9blba08cLfYf1NRAIEm+dDjic073DRDc3/JspI/8wYmtDsHwd3+4hwvdxSK7PGaElfTmm0awWJ4w==", "dev": true }, "locate-path": { @@ -600,9 +580,9 @@ "dev": true }, "node-releases": { - "version": "2.0.37", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.37.tgz", - "integrity": "sha512-1h5gKZCF+pO/o3Iqt5Jp7wc9rH3eJJ0+nh/CIoiRwjRxde/hAHyLPXYN4V3CqKAbiZPSeJFSWHmJsbkicta0Eg==", + "version": "2.0.45", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.45.tgz", + "integrity": "sha512-iIbHXV9eBB2nB0wa7oTsrrXq+qQt+9SIlx9AX3T96YgobtEQfis5n6TJ6vV+3QP8DwdriEAcGhARaFCu37peBg==", "dev": true }, "p-limit": { @@ -771,15 +751,15 @@ "dev": true }, "tapable": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.3.2.tgz", - "integrity": "sha512-1MOpMXuhGzGL5TTCZFItxCc0AARf1EZFQkGqMm7ERKj8+Hgr5oLvJOVFcC+lRmR8hCe2S3jC4T5D7Vg/d7/fhA==", + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.3.3.tgz", + "integrity": "sha512-uxc/zpqFg6x7C8vOE7lh6Lbda8eEL9zmVm/PLeTPBRhh1xCgdWaQ+J1CUieGpIfm2HdtsUpRv+HshiasBMcc6A==", "dev": true }, "terser": { - "version": "5.46.1", - "resolved": "https://registry.npmjs.org/terser/-/terser-5.46.1.tgz", - "integrity": "sha512-vzCjQO/rgUuK9sf8VJZvjqiqiHFaZLnOiimmUuOKODxWL8mm/xua7viT7aqX7dgPY60otQjUotzFMmCB4VdmqQ==", + "version": "5.47.1", + "resolved": "https://registry.npmjs.org/terser/-/terser-5.47.1.tgz", + "integrity": "sha512-tPbLXTI6ohPASb/1YViL428oEHu6/qv1OxqYnfaonVCFHqx4+wCd95pHrQWsL5X4pl90CTyW9piSAsS2L0VoMw==", "dev": true, "requires": { "@jridgewell/source-map": "^0.3.3", @@ -789,9 +769,9 @@ } }, "terser-webpack-plugin": { - "version": "5.4.0", - "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.4.0.tgz", - "integrity": "sha512-Bn5vxm48flOIfkdl5CaD2+1CiUVbonWQ3KQPyP7/EuIl9Gbzq/gQFOzaMFUEgVjB1396tcK0SG8XcNJ/2kDH8g==", + "version": "5.6.0", + "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.6.0.tgz", + "integrity": "sha512-Eum+5ajkaOhf5KbM26osvv21kLD7BaGqQ1UA4Ami4arYwylmGUQTgHFpHDdmJod1q4QXa66p0to/FBKID+J1vA==", "dev": true, "requires": { "@jridgewell/trace-mapping": "^0.3.25", @@ -801,9 +781,9 @@ } }, "undici-types": { - "version": "7.19.2", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.19.2.tgz", - "integrity": "sha512-qYVnV5OEm2AW8cJMCpdV20CDyaN3g0AjDlOGf1OW4iaDEx8MwdtChUp4zu4H0VP3nDRF/8RKWH+IPp9uW0YGZg==", + "version": "7.24.6", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.24.6.tgz", + "integrity": "sha512-WRNW+sJgj5OBN4/0JpHFqtqzhpbnV0GuB+OozA9gCL7a993SmU+1JBZCzLNxYsbMfIeDL+lTsphD5jN5N+n0zg==", "dev": true }, "update-browserslist-db": { @@ -827,12 +807,11 @@ } }, "webpack": { - "version": "5.106.2", - "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.106.2.tgz", - "integrity": "sha512-wGN3qcrBQIFmQ/c0AiOAQBvrZ5lmY8vbbMv4Mxfgzqd/B6+9pXtLo73WuS1dSGXM5QYY3hZnIbvx+K1xxe6FyA==", + "version": "5.107.0", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.107.0.tgz", + "integrity": "sha512-PSxeHk/dmLYZlnTU+vL1Gej6Evg5RNtl3flhxBresfznFnzxinHMzHKloHnywM/3ouQv7/AlZCswWDIkNSggUA==", "dev": true, "requires": { - "@types/eslint-scope": "^3.7.7", "@types/estree": "^1.0.8", "@types/json-schema": "^7.0.15", "@webassemblyjs/ast": "^1.14.1", @@ -842,20 +821,20 @@ "acorn-import-phases": "^1.0.3", "browserslist": "^4.28.1", "chrome-trace-event": "^1.0.2", - "enhanced-resolve": "^5.20.0", - "es-module-lexer": "^2.0.0", + "enhanced-resolve": "^5.21.4", + "es-module-lexer": "^2.1.0", "eslint-scope": "5.1.1", "events": "^3.2.0", "glob-to-regexp": "^0.4.1", "graceful-fs": "^4.2.11", - "loader-runner": "^4.3.1", + "loader-runner": "^4.3.2", "mime-db": "^1.54.0", "neo-async": "^2.6.2", "schema-utils": "^4.3.3", "tapable": "^2.3.0", - "terser-webpack-plugin": "^5.3.17", + "terser-webpack-plugin": "^5.5.0", "watchpack": "^2.5.1", - "webpack-sources": "^3.3.4" + "webpack-sources": "^3.4.1" } }, "webpack-cli": { @@ -895,9 +874,9 @@ } }, "webpack-sources": { - "version": "3.3.4", - "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.3.4.tgz", - "integrity": "sha512-7tP1PdV4vF+lYPnkMR0jMY5/la2ub5Fc/8VQrrU+lXkiM6C4TjVfGw7iKfyhnTQOsD+6Q/iKw0eFciziRgD58Q==", + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.4.1.tgz", + "integrity": "sha512-eACpxRN02yaawnt+uUNIF7Qje6A9zArxBbcAJjK1PK3S9Ycg5jIuJ8pW4q8EMnwNZCEGltcjkRx1QzOxOkKD8A==", "dev": true }, "which": { diff --git a/client/js/package.json b/client/js/package.json index 305cf593..0f95ab95 100644 --- a/client/js/package.json +++ b/client/js/package.json @@ -18,7 +18,7 @@ "build": "webpack" }, "devDependencies": { - "webpack": "5.106.2", + "webpack": "5.107.0", "webpack-cli": "7.0.2" }, "dependencies": { From f7cf5135faf2f11996025d63c3909094adc350bf Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 24 May 2026 16:36:05 +0000 Subject: [PATCH 120/189] Update dependency webpack to v5.107.1 (#455) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [webpack](https://redirect.github.com/webpack/webpack) | [`5.107.0` → `5.107.1`](https://renovatebot.com/diffs/npm/webpack/5.107.0/5.107.1) | ![age](https://developer.mend.io/api/mc/badges/age/npm/webpack/5.107.1?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/webpack/5.107.0/5.107.1?slim=true) | --- ### Release Notes
webpack/webpack (webpack) ### [`v5.107.1`](https://redirect.github.com/webpack/webpack/blob/HEAD/CHANGELOG.md#51071) [Compare Source](https://redirect.github.com/webpack/webpack/compare/v5.107.0...v5.107.1) ##### Patch Changes - Align the experimental HTML tokenizer with the WHATWG spec: fix offset-range bugs in the script-data, content-mode end-tag, attribute-value, and EOF states; surface tokenizer parse errors to consumers via a new `parseError` callback (`"warning"` when the tokenizer recovers and the emitted token is still well-formed, `"error"` when the offset range is incomplete — e.g. `eof-in-tag`); and add the full WHATWG named character references table so `decodeHtmlEntities` handles all named entities (including legacy bare forms like `&` and multi-code-point entities like `≂̸`) with proper longest-prefix backtracking. (by [@​alexander-akait](https://redirect.github.com/alexander-akait) in [#​21000](https://redirect.github.com/webpack/webpack/pull/21000)) - Tree-shake CommonJS modules imported through a `const NAME = require(LITERAL)` binding when only static members of `NAME` are read. Previously webpack treated every export of such modules as referenced (because the bare `require()` dependency reports `EXPORTS_OBJECT_REFERENCED`), so unused `exports.x = ...` assignments remained in the bundle even with `usedExports` enabled. The parser now forwards `NAME.x` / `NAME.x()` / `NAME["x"]` accesses to the underlying `CommonJsRequireDependency` as referenced exports, falling back to the full exports object the moment `NAME` is read in any other context (passed by value, destructured later, accessed with a dynamic key, …). This brings the binding form to parity with the existing destructuring form (`const { x } = require(...)`). (by [@​alexander-akait](https://redirect.github.com/alexander-akait) in [#​21003](https://redirect.github.com/webpack/webpack/pull/21003)) - Fix `RangeError: Maximum call stack size exceeded` thrown from `HarmonyImportSideEffectDependency.getModuleEvaluationSideEffectsState` on long linear chains of side-effect-free imports. `NormalModule.getSideEffectsConnectionState` previously descended through `HarmonyImportSideEffectDependency.getModuleEvaluationSideEffectsState` recursively, adding two stack frames per module, which overflowed V8's stack at a few thousand modules deep. The traversal is now iterative. (by [@​alexander-akait](https://redirect.github.com/alexander-akait) in [#​20993](https://redirect.github.com/webpack/webpack/pull/20993)) - Fix `NormalModuleFactory` parser/generator types: (by [@​alexander-akait](https://redirect.github.com/alexander-akait) in [#​20999](https://redirect.github.com/webpack/webpack/pull/20999)) - `module.generator.html` now uses `HtmlGeneratorOptions` instead of `EmptyGeneratorOptions` (the `extract` option was hidden from the `createGenerator` / `generator` hook types). - WebAssembly (`webassembly/async`, `webassembly/sync`) generator hooks now use `EmptyGeneratorOptions` instead of `EmptyParserOptions`. - `NormalModuleFactory#getParser` / `createParser` / `getGenerator` / `createGenerator` are now generic over the module-type string, returning the specific parser/generator class for known types (e.g. `JavascriptParser` for `"javascript/auto"`, `CssGenerator` for `"css"`, etc.) instead of always returning the base `Parser` / `Generator`. - `NormalModuleCreateData` is now generic over the module type so `parser`, `parserOptions`, `generator`, and `generatorOptions` are narrowed to the specific class / options for the given `type`. - Link import bindings used inside `define(...)` callbacks in ES modules. Previously, `HarmonyDetectionParserPlugin` skipped walking the arguments of `define` calls in harmony modules, so references to imported bindings inside an inline AMD `define` factory (e.g. `define(function () { console.log(foo); })`) were not rewritten to their imported references and could cause `ReferenceError` at runtime. Inner graph usage analysis is also fixed for the related pattern `const fn = function () { foo; }; define(fn);`. (by [@​alexander-akait](https://redirect.github.com/alexander-akait) in [#​20990](https://redirect.github.com/webpack/webpack/pull/20990)) - HTML-entry pipeline (`experiments.html` + `experiments.css`): emit `` tags for CSS chunks reachable from a `