Log action, fix synergies (#272)
This commit is contained in:
parent
f56c4e0b57
commit
a6dd910c41
102 changed files with 2133 additions and 602 deletions
|
|
@ -1,3 +1,4 @@
|
|||
use crate::action_cost::{ActionCostOncePerTurn, ActionCostOncePerTurnBuilder};
|
||||
use crate::advance::Advance;
|
||||
use crate::card::{HandCard, validate_card_selection_for_origin};
|
||||
use crate::city::City;
|
||||
|
|
@ -5,8 +6,7 @@ use crate::combat::{Combat, update_combat_strength};
|
|||
use crate::combat_listeners::CombatStrength;
|
||||
use crate::content::ability::{Ability, AbilityBuilder};
|
||||
use crate::content::custom_actions::{
|
||||
CustomActionActionExecution, CustomActionCost, CustomActionExecution, CustomActionInfo,
|
||||
CustomActionOncePerTurn,
|
||||
CustomActionActionExecution, CustomActionExecution, CustomActionInfo,
|
||||
};
|
||||
use crate::content::persistent_events::{
|
||||
AdvanceRequest, EventResponse, HandCardsRequest, MultiRequest, PaymentRequest,
|
||||
|
|
@ -896,7 +896,7 @@ pub(crate) trait AbilityInitializerSetup: Sized {
|
|||
fn add_custom_action(
|
||||
self,
|
||||
action: CustomActionType,
|
||||
cost: impl Fn(CustomActionOncePerTurn) -> CustomActionCost + Send + Sync + 'static,
|
||||
cost: impl Fn(ActionCostOncePerTurnBuilder) -> ActionCostOncePerTurn + Send + Sync + 'static,
|
||||
ability: impl Fn(AbilityBuilder) -> AbilityBuilder + Sync + Send + 'static,
|
||||
can_play: impl Fn(&Game, &Player) -> bool + Sync + Send + 'static,
|
||||
) -> Self {
|
||||
|
|
@ -916,7 +916,7 @@ pub(crate) trait AbilityInitializerSetup: Sized {
|
|||
fn add_custom_action_with_city_checker(
|
||||
self,
|
||||
action: CustomActionType,
|
||||
cost: impl Fn(CustomActionOncePerTurn) -> CustomActionCost + Send + Sync + 'static,
|
||||
cost: impl Fn(ActionCostOncePerTurnBuilder) -> ActionCostOncePerTurn + Send + Sync + 'static,
|
||||
ability: impl Fn(AbilityBuilder) -> AbilityBuilder + Sync + Send + 'static,
|
||||
can_play: impl Fn(&Game, &Player) -> bool + Sync + Send + 'static,
|
||||
city_checker: impl Fn(&Game, &City) -> bool + Sync + Send + 'static,
|
||||
|
|
@ -937,7 +937,7 @@ pub(crate) trait AbilityInitializerSetup: Sized {
|
|||
fn add_action_modifier(
|
||||
self,
|
||||
action: CustomActionType,
|
||||
info: impl Fn(CustomActionOncePerTurn) -> CustomActionCost + Send + Sync + 'static,
|
||||
info: impl Fn(ActionCostOncePerTurnBuilder) -> ActionCostOncePerTurn + Send + Sync + 'static,
|
||||
base_action: PlayingActionType,
|
||||
) -> Self {
|
||||
self.add_custom_action_execution(action, info, CustomActionExecution::Modifier(base_action))
|
||||
|
|
@ -946,7 +946,7 @@ pub(crate) trait AbilityInitializerSetup: Sized {
|
|||
fn add_custom_action_execution(
|
||||
self,
|
||||
action: CustomActionType,
|
||||
info: impl Fn(CustomActionOncePerTurn) -> CustomActionCost + Send + Sync + 'static,
|
||||
cost: impl Fn(ActionCostOncePerTurnBuilder) -> ActionCostOncePerTurn + Send + Sync + 'static,
|
||||
execution: CustomActionExecution,
|
||||
) -> Self {
|
||||
let deinitializer_action = action;
|
||||
|
|
@ -959,7 +959,7 @@ pub(crate) trait AbilityInitializerSetup: Sized {
|
|||
action,
|
||||
exec.clone(),
|
||||
key.clone(),
|
||||
info(CustomActionOncePerTurn::new(action)),
|
||||
cost(ActionCostOncePerTurnBuilder::new(action)),
|
||||
),
|
||||
);
|
||||
})
|
||||
|
|
|
|||
|
|
@ -1,8 +1,11 @@
|
|||
use crate::ability_initializer::{
|
||||
AbilityInitializerBuilder, AbilityInitializerSetup, AbilityListeners,
|
||||
};
|
||||
use crate::action_cost::{ActionCost, ActionCostBuilder, ActionCostOncePerTurn};
|
||||
use crate::advance::Advance;
|
||||
use crate::card::{discard_card, draw_card_from_pile};
|
||||
use crate::card::{
|
||||
HandCard, HandCardLocation, discard_card, draw_card_from_pile, log_card_transfer,
|
||||
};
|
||||
use crate::combat_stats::CombatStats;
|
||||
use crate::content::persistent_events::{
|
||||
PersistentEventType, TriggerPersistentEventParams, trigger_persistent_event_with_listener,
|
||||
|
|
@ -12,7 +15,6 @@ use crate::events::EventOrigin;
|
|||
use crate::game::Game;
|
||||
use crate::log::{current_player_turn_log, current_player_turn_log_mut};
|
||||
use crate::player::Player;
|
||||
use crate::playing_actions::ActionCost;
|
||||
use crate::position::Position;
|
||||
use crate::tactics_card::TacticsCard;
|
||||
use crate::utils::remove_element_by;
|
||||
|
|
@ -58,11 +60,11 @@ impl ActionCard {
|
|||
}
|
||||
|
||||
#[must_use]
|
||||
pub fn builder<F>(
|
||||
pub(crate) fn builder<F>(
|
||||
id: u8,
|
||||
name: &str,
|
||||
description: &str,
|
||||
action_type: ActionCost,
|
||||
cost: impl Fn(ActionCostBuilder) -> ActionCostOncePerTurn + Send + Sync + 'static,
|
||||
can_play: F,
|
||||
) -> ActionCardBuilder
|
||||
where
|
||||
|
|
@ -76,20 +78,18 @@ impl ActionCard {
|
|||
combat_requirement: None,
|
||||
builder: AbilityInitializerBuilder::new(),
|
||||
tactics_card: None,
|
||||
action_type,
|
||||
action_cost: cost(ActionCostBuilder::new(None)).cost,
|
||||
target: CivilCardTarget::ActivePlayer,
|
||||
}
|
||||
}
|
||||
|
||||
#[must_use]
|
||||
pub fn name(&self) -> String {
|
||||
format!(
|
||||
"{}/{}",
|
||||
self.civil_card.name,
|
||||
self.tactics_card
|
||||
.as_ref()
|
||||
.map_or("-".to_string(), |c| c.name.clone())
|
||||
)
|
||||
if let Some(tactics_card) = &self.tactics_card {
|
||||
format!("{}/{}", self.civil_card.name, tactics_card.name)
|
||||
} else {
|
||||
self.civil_card.name.clone()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -97,7 +97,7 @@ pub struct ActionCardBuilder {
|
|||
id: u8,
|
||||
name: String,
|
||||
description: String,
|
||||
action_type: ActionCost,
|
||||
action_cost: ActionCost,
|
||||
can_play: CanPlayCard,
|
||||
combat_requirement: Option<CombatRequirement>,
|
||||
tactics_card: Option<TacticsCard>,
|
||||
|
|
@ -134,7 +134,7 @@ impl ActionCardBuilder {
|
|||
can_play: self.can_play,
|
||||
combat_requirement: self.combat_requirement,
|
||||
listeners: self.builder.build(),
|
||||
action_type: self.action_type,
|
||||
action_type: self.action_cost,
|
||||
target: self.target,
|
||||
},
|
||||
self.tactics_card,
|
||||
|
|
@ -163,7 +163,6 @@ impl AbilityInitializerSetup for ActionCardBuilder {
|
|||
pub(crate) fn play_action_card(game: &mut Game, player_index: usize, id: u8) {
|
||||
let card = game.cache.get_civil_card(id).clone();
|
||||
|
||||
discard_action_card(game, player_index, id);
|
||||
let mut satisfying_action: Option<usize> = None;
|
||||
let civil_card_target = card.target;
|
||||
if let Some(r) = &card.combat_requirement {
|
||||
|
|
@ -188,14 +187,6 @@ pub(crate) fn play_action_card(game: &mut Game, player_index: usize, id: u8) {
|
|||
);
|
||||
}
|
||||
|
||||
pub(crate) fn log_execute_action_card(game: &mut Game, player_index: usize, id: u8) {
|
||||
game.add_info_log_item(&format!(
|
||||
"{} played the action card {}",
|
||||
game.player_name(player_index),
|
||||
game.cache.get_civil_card(id).clone().name
|
||||
));
|
||||
}
|
||||
|
||||
pub(crate) fn on_play_action_card(game: &mut Game, player_index: usize, i: ActionCardInfo) {
|
||||
let players = match &game.cache.get_civil_card(i.id).target {
|
||||
CivilCardTarget::ActivePlayer => vec![player_index],
|
||||
|
|
@ -213,7 +204,7 @@ pub(crate) fn on_play_action_card(game: &mut Game, player_index: usize, i: Actio
|
|||
);
|
||||
}
|
||||
|
||||
pub(crate) fn gain_action_card_from_pile(game: &mut Game, player: usize) {
|
||||
pub(crate) fn gain_action_card_from_pile(game: &mut Game, player: usize, origin: &EventOrigin) {
|
||||
if game
|
||||
.player(player)
|
||||
.wonders_owned
|
||||
|
|
@ -221,17 +212,13 @@ pub(crate) fn gain_action_card_from_pile(game: &mut Game, player: usize) {
|
|||
{
|
||||
game.player_mut(player).great_mausoleum_action_cards += 1;
|
||||
} else {
|
||||
do_gain_action_card_from_pile(game, player);
|
||||
do_gain_action_card_from_pile(game, player, origin);
|
||||
}
|
||||
}
|
||||
|
||||
pub(crate) fn do_gain_action_card_from_pile(game: &mut Game, player: usize) {
|
||||
pub(crate) fn do_gain_action_card_from_pile(game: &mut Game, player: usize, origin: &EventOrigin) {
|
||||
if let Some(c) = draw_action_card_from_pile(game) {
|
||||
gain_action_card(game, player, c);
|
||||
game.add_info_log_item(&format!(
|
||||
"{} gained an action card from the pile",
|
||||
game.player_name(player)
|
||||
));
|
||||
gain_action_card(game, player, c, HandCardLocation::DrawPile, origin);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -245,14 +232,40 @@ fn draw_action_card_from_pile(game: &mut Game) -> Option<u8> {
|
|||
)
|
||||
}
|
||||
|
||||
pub(crate) fn gain_action_card(game: &mut Game, player_index: usize, action_card: u8) {
|
||||
game.players[player_index].action_cards.push(action_card);
|
||||
pub(crate) fn gain_action_card(
|
||||
game: &mut Game,
|
||||
player_index: usize,
|
||||
action_card: u8,
|
||||
from: HandCardLocation,
|
||||
origin: &EventOrigin,
|
||||
) {
|
||||
game.player_mut(player_index).action_cards.push(action_card);
|
||||
log_card_transfer(
|
||||
game,
|
||||
&HandCard::ActionCard(action_card),
|
||||
from,
|
||||
HandCardLocation::Hand(player_index),
|
||||
origin,
|
||||
);
|
||||
}
|
||||
|
||||
pub(crate) fn discard_action_card(game: &mut Game, player: usize, card: u8) {
|
||||
pub(crate) fn discard_action_card(
|
||||
game: &mut Game,
|
||||
player: usize,
|
||||
card: u8,
|
||||
origin: &EventOrigin,
|
||||
to: HandCardLocation,
|
||||
) {
|
||||
let card = remove_element_by(&mut game.player_mut(player).action_cards, |&id| id == card)
|
||||
.unwrap_or_else(|| panic!("action card not found {card}"));
|
||||
discard_card(|g| &mut g.action_cards_discarded, card, player, game);
|
||||
log_card_transfer(
|
||||
game,
|
||||
&HandCard::ActionCard(card),
|
||||
HandCardLocation::Hand(player),
|
||||
to,
|
||||
origin,
|
||||
);
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Clone, PartialEq, Eq, Debug)]
|
||||
|
|
|
|||
201
server/src/action_cost.rs
Normal file
201
server/src/action_cost.rs
Normal file
|
|
@ -0,0 +1,201 @@
|
|||
use crate::advance::base_advance_cost;
|
||||
use crate::content::custom_actions::CustomActionType;
|
||||
use crate::events::{EventOrigin, check_event_origin};
|
||||
use crate::game::Game;
|
||||
use crate::payment::PaymentOptions;
|
||||
use crate::player::Player;
|
||||
use crate::resource_pile::ResourcePile;
|
||||
|
||||
#[derive(Clone, Debug, PartialEq)]
|
||||
pub enum ActionResourceCost {
|
||||
Free,
|
||||
Resources(ResourcePile),
|
||||
Tokens(u8),
|
||||
AdvanceCostWithoutDiscount,
|
||||
}
|
||||
|
||||
impl ActionResourceCost {
|
||||
#[must_use]
|
||||
pub fn free() -> Self {
|
||||
ActionResourceCost::Free
|
||||
}
|
||||
|
||||
#[must_use]
|
||||
pub fn resources(cost: ResourcePile) -> Self {
|
||||
if cost.is_empty() {
|
||||
return ActionResourceCost::Free;
|
||||
}
|
||||
ActionResourceCost::Resources(cost)
|
||||
}
|
||||
|
||||
#[must_use]
|
||||
pub fn tokens(tokens: u8) -> Self {
|
||||
if tokens == 0 {
|
||||
return ActionResourceCost::Free;
|
||||
}
|
||||
ActionResourceCost::Tokens(tokens)
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, PartialEq)]
|
||||
pub struct ActionCost {
|
||||
pub free: bool,
|
||||
pub cost: ActionResourceCost,
|
||||
}
|
||||
|
||||
impl ActionCost {
|
||||
pub(crate) fn is_available(&self, game: &Game, player_index: usize) -> Result<(), String> {
|
||||
let p = game.player(player_index);
|
||||
if !p.can_afford(&self.payment_options(p, check_event_origin())) {
|
||||
return Err("Not enough resources for action type".to_string());
|
||||
}
|
||||
|
||||
if !(self.free || game.actions_left > 0) {
|
||||
return Err("No actions left".to_string());
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[must_use]
|
||||
pub fn payment_options(&self, player: &Player, origin: EventOrigin) -> PaymentOptions {
|
||||
match &self.cost {
|
||||
ActionResourceCost::Free => PaymentOptions::free(),
|
||||
ActionResourceCost::Resources(c) => {
|
||||
PaymentOptions::resources(player, origin, c.clone())
|
||||
}
|
||||
ActionResourceCost::Tokens(tokens) => PaymentOptions::tokens(player, origin, *tokens),
|
||||
ActionResourceCost::AdvanceCostWithoutDiscount => base_advance_cost(player),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl ActionCost {
|
||||
#[must_use]
|
||||
pub fn new(free: bool, cost: ActionResourceCost) -> Self {
|
||||
Self { free, cost }
|
||||
}
|
||||
}
|
||||
|
||||
pub(crate) struct ActionCostOncePerTurnBuilder {
|
||||
action: CustomActionType,
|
||||
}
|
||||
|
||||
impl ActionCostOncePerTurnBuilder {
|
||||
#[must_use]
|
||||
pub fn new(action: CustomActionType) -> Self {
|
||||
Self { action }
|
||||
}
|
||||
|
||||
#[must_use]
|
||||
#[allow(clippy::unused_self)]
|
||||
pub fn any_times(self) -> ActionCostBuilder {
|
||||
ActionCostBuilder::new(None)
|
||||
}
|
||||
|
||||
#[must_use]
|
||||
pub fn once_per_turn(self) -> ActionCostBuilder {
|
||||
ActionCostBuilder::new(Some(self.action))
|
||||
}
|
||||
|
||||
#[allow(clippy::unused_self)]
|
||||
#[must_use]
|
||||
pub fn once_per_turn_mutually_exclusive(
|
||||
self,
|
||||
mutually_exclusive: CustomActionType,
|
||||
) -> ActionCostBuilder {
|
||||
ActionCostBuilder::new(Some(mutually_exclusive))
|
||||
}
|
||||
}
|
||||
|
||||
pub(crate) struct ActionCostBuilder {
|
||||
once_per_turn: Option<CustomActionType>,
|
||||
}
|
||||
|
||||
impl ActionCostBuilder {
|
||||
#[must_use]
|
||||
pub(crate) fn new(once_per_turn: Option<CustomActionType>) -> Self {
|
||||
Self { once_per_turn }
|
||||
}
|
||||
|
||||
#[must_use]
|
||||
pub fn action(self) -> ActionResourceCostBuilder {
|
||||
ActionResourceCostBuilder::new(self.once_per_turn, false)
|
||||
}
|
||||
|
||||
#[must_use]
|
||||
pub fn free_action(self) -> ActionResourceCostBuilder {
|
||||
ActionResourceCostBuilder::new(self.once_per_turn, true)
|
||||
}
|
||||
}
|
||||
|
||||
pub(crate) struct ActionResourceCostBuilder {
|
||||
once_per_turn: Option<CustomActionType>,
|
||||
free: bool,
|
||||
}
|
||||
|
||||
impl ActionResourceCostBuilder {
|
||||
#[must_use]
|
||||
fn new(once_per_turn: Option<CustomActionType>, free: bool) -> ActionResourceCostBuilder {
|
||||
ActionResourceCostBuilder {
|
||||
once_per_turn,
|
||||
free,
|
||||
}
|
||||
}
|
||||
|
||||
#[must_use]
|
||||
pub fn no_resources(self) -> ActionCostOncePerTurn {
|
||||
ActionCostOncePerTurn::new(self.free, self.once_per_turn, ActionResourceCost::free())
|
||||
}
|
||||
|
||||
#[must_use]
|
||||
pub fn resources(self, cost: ResourcePile) -> ActionCostOncePerTurn {
|
||||
ActionCostOncePerTurn::new(
|
||||
self.free,
|
||||
self.once_per_turn,
|
||||
ActionResourceCost::resources(cost),
|
||||
)
|
||||
}
|
||||
|
||||
#[must_use]
|
||||
pub fn culture_tokens(self, cost: u8) -> ActionCostOncePerTurn {
|
||||
self.resources(ResourcePile::culture_tokens(cost))
|
||||
}
|
||||
|
||||
#[must_use]
|
||||
pub fn tokens(self, cost: u8) -> ActionCostOncePerTurn {
|
||||
ActionCostOncePerTurn::new(
|
||||
self.free,
|
||||
self.once_per_turn,
|
||||
ActionResourceCost::tokens(cost),
|
||||
)
|
||||
}
|
||||
|
||||
#[must_use]
|
||||
pub fn advance_cost_without_discounts(self) -> ActionCostOncePerTurn {
|
||||
ActionCostOncePerTurn::new(
|
||||
self.free,
|
||||
self.once_per_turn,
|
||||
ActionResourceCost::AdvanceCostWithoutDiscount,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, PartialEq)]
|
||||
pub struct ActionCostOncePerTurn {
|
||||
pub cost: ActionCost,
|
||||
pub once_per_turn: Option<CustomActionType>,
|
||||
}
|
||||
|
||||
impl ActionCostOncePerTurn {
|
||||
#[must_use]
|
||||
pub(crate) fn new(
|
||||
free: bool,
|
||||
once_per_turn: Option<CustomActionType>,
|
||||
cost: ActionResourceCost,
|
||||
) -> ActionCostOncePerTurn {
|
||||
ActionCostOncePerTurn {
|
||||
cost: ActionCost::new(free, cost),
|
||||
once_per_turn,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -4,12 +4,14 @@ use crate::content::civilizations::rome::validate_princeps_cards;
|
|||
use crate::content::persistent_events::PersistentEventType;
|
||||
use crate::events::EventOrigin;
|
||||
use crate::game::Game;
|
||||
use crate::log::{ActionLogEntry, add_action_log_item};
|
||||
use crate::objective_card::match_objective_cards;
|
||||
use crate::player::Player;
|
||||
use crate::utils::Shuffle;
|
||||
use crate::wonder::Wonder;
|
||||
use itertools::Itertools;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use std::fmt::Display;
|
||||
|
||||
#[derive(Clone, Copy)]
|
||||
pub enum HandCardType {
|
||||
|
|
@ -29,6 +31,16 @@ impl HandCardType {
|
|||
}
|
||||
}
|
||||
|
||||
impl Display for HandCardType {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
match self {
|
||||
HandCardType::Action => write!(f, "an action card"),
|
||||
HandCardType::Objective => write!(f, "an objective card"),
|
||||
HandCardType::Wonder => write!(f, "a wonder card"),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Clone, PartialEq, Eq, Ord, Debug, PartialOrd)]
|
||||
pub enum HandCard {
|
||||
ActionCard(u8),
|
||||
|
|
@ -36,6 +48,60 @@ pub enum HandCard {
|
|||
Wonder(Wonder),
|
||||
}
|
||||
|
||||
impl HandCard {
|
||||
#[must_use]
|
||||
pub fn card_type(&self) -> HandCardType {
|
||||
match self {
|
||||
HandCard::ActionCard(_) => HandCardType::Action,
|
||||
HandCard::ObjectiveCard(_) => HandCardType::Objective,
|
||||
HandCard::Wonder(_) => HandCardType::Wonder,
|
||||
}
|
||||
}
|
||||
|
||||
#[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(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Clone, PartialEq, Eq, Ord, Debug, PartialOrd)]
|
||||
pub enum HandCardLocation {
|
||||
DrawPile,
|
||||
Hand(usize),
|
||||
DiscardPile,
|
||||
// converted from incident to hand
|
||||
Incident,
|
||||
PlayToDiscard,
|
||||
// the tactics card counts as being discarded even though it is discarded at the end of combat
|
||||
PlayToDiscardFaceDown,
|
||||
PlayToKeep,
|
||||
Public,
|
||||
}
|
||||
|
||||
impl HandCardLocation {
|
||||
#[must_use]
|
||||
pub fn player(&self) -> Option<usize> {
|
||||
match self {
|
||||
HandCardLocation::Hand(p) => Some(*p),
|
||||
_ => None,
|
||||
}
|
||||
}
|
||||
|
||||
#[must_use]
|
||||
pub fn is_public(&self) -> bool {
|
||||
!matches!(
|
||||
self,
|
||||
HandCardLocation::DrawPile
|
||||
| HandCardLocation::Hand(_)
|
||||
| HandCardLocation::PlayToDiscardFaceDown
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
pub(crate) fn draw_card_from_pile<T>(
|
||||
game: &mut Game,
|
||||
name: &str,
|
||||
|
|
@ -172,3 +238,67 @@ pub(crate) fn all_objective_hand_cards(player: &Player) -> Vec<HandCard> {
|
|||
.map(|&a| HandCard::ObjectiveCard(a))
|
||||
.collect_vec()
|
||||
}
|
||||
|
||||
pub(crate) fn log_card_transfer(
|
||||
game: &mut Game,
|
||||
card: &HandCard,
|
||||
from: HandCardLocation,
|
||||
to: HandCardLocation,
|
||||
origin: &EventOrigin,
|
||||
) {
|
||||
let (player_index, message) = if let HandCardLocation::Hand(p) = to {
|
||||
(
|
||||
p,
|
||||
match from {
|
||||
HandCardLocation::DrawPile => &format!("Draw {}", card.card_type()),
|
||||
HandCardLocation::Hand(from) => {
|
||||
&format!("Gain {} from {}", card.card_type(), game.player_name(from))
|
||||
}
|
||||
HandCardLocation::DiscardPile => {
|
||||
&format!("Gain {} from discard pile", card.name(game))
|
||||
}
|
||||
HandCardLocation::Public => {
|
||||
&format!("Gain {} from the public area", card.name(game))
|
||||
}
|
||||
HandCardLocation::Incident => {
|
||||
&format!("Gain {} from the current event", card.name(game))
|
||||
}
|
||||
_ => {
|
||||
panic!(
|
||||
"Cannot transfer card from played to hand: {card:?} from {from:?} to {to:?}"
|
||||
)
|
||||
}
|
||||
},
|
||||
)
|
||||
} else {
|
||||
let HandCardLocation::Hand(p) = from else {
|
||||
panic!("Invalid card transfer from {from:?} to {to:?}");
|
||||
};
|
||||
(
|
||||
p,
|
||||
match to {
|
||||
HandCardLocation::Hand(_) => panic!("handled above"),
|
||||
HandCardLocation::DiscardPile => &format!("Discard {}", card.name(game)),
|
||||
HandCardLocation::PlayToDiscard | HandCardLocation::PlayToKeep => {
|
||||
&format!("Play {}", card.name(game))
|
||||
}
|
||||
HandCardLocation::PlayToDiscardFaceDown => {
|
||||
&format!("Play {} face down", card.card_type())
|
||||
}
|
||||
HandCardLocation::Public => &format!("Place {} in public area", card.name(game)),
|
||||
_ => panic!(
|
||||
"Cannot transfer card from hand to draw pile: {card:?} from {from:?} to {to:?}"
|
||||
),
|
||||
},
|
||||
)
|
||||
};
|
||||
|
||||
game.log_with_origin(player_index, origin, message);
|
||||
add_action_log_item(
|
||||
game,
|
||||
player_index,
|
||||
ActionLogEntry::hand_card(card.clone(), from, to),
|
||||
origin.clone(),
|
||||
vec![],
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -343,10 +343,7 @@ pub(crate) fn set_city_mood(
|
|||
add_action_log_item(
|
||||
game,
|
||||
player,
|
||||
ActionLogEntry::MoodChange {
|
||||
city: position,
|
||||
mood: new_state,
|
||||
},
|
||||
ActionLogEntry::mood_change(position, new_state),
|
||||
origin.clone(),
|
||||
vec![],
|
||||
);
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ use crate::cultural_influence::{
|
|||
};
|
||||
use crate::game::Game;
|
||||
use crate::player::{Player, gain_unit, remove_unit};
|
||||
use crate::playing_actions::{ActionCost, PlayingActionType};
|
||||
use crate::playing_actions::PlayingActionType;
|
||||
use crate::unit::UnitType;
|
||||
use crate::utils::remove_element;
|
||||
use itertools::Itertools;
|
||||
|
|
@ -24,7 +24,7 @@ pub(crate) fn cultural_takeover(id: u8, tactics_card: TacticsCardFactory) -> Act
|
|||
If successful, replace the Barbarian city with a city of your color. \
|
||||
Replace one of the Barbarian units with a Settler or Infantry of your color. \
|
||||
Remove the other Barbarian units.",
|
||||
ActionCost::free(),
|
||||
|c| c.free_action().no_resources(),
|
||||
|game, p, _| any_barbarian_city_can_be_influenced(game, p),
|
||||
)
|
||||
.add_unit_type_request(
|
||||
|
|
|
|||
|
|
@ -15,8 +15,7 @@ use crate::content::tactics_cards::{
|
|||
};
|
||||
use crate::game::Game;
|
||||
use crate::player::{Player, gain_unit};
|
||||
use crate::playing_actions::{ActionCost, PlayingActionType};
|
||||
use crate::resource_pile::ResourcePile;
|
||||
use crate::playing_actions::PlayingActionType;
|
||||
use crate::unit::UnitType;
|
||||
use crate::utils::remove_element_by;
|
||||
|
||||
|
|
@ -40,7 +39,7 @@ fn city_development(id: u8, tactics_card: TacticsCardFactory) -> ActionCard {
|
|||
id,
|
||||
"City Development",
|
||||
"Construct a building without paying resources.",
|
||||
ActionCost::regular_with_cost(ResourcePile::culture_tokens(1)),
|
||||
|c| c.action().culture_tokens(1),
|
||||
|game, player, _| can_construct_any_building(game, player),
|
||||
)
|
||||
.tactics_card(tactics_card)
|
||||
|
|
@ -67,7 +66,7 @@ fn production_focus(id: u8, tactics_card: TacticsCardFactory) -> ActionCard {
|
|||
"Production Focus",
|
||||
"For the next collect action, you may collect multiple times from the same tile. \
|
||||
The total amount of resources does not change.",
|
||||
ActionCost::regular(),
|
||||
|c| c.action().no_resources(),
|
||||
|game, player, _| collect_special_action(game, player),
|
||||
)
|
||||
.tactics_card(tactics_card)
|
||||
|
|
@ -152,7 +151,7 @@ fn explorer(id: u8, tactics_card: TacticsCardFactory) -> ActionCard {
|
|||
"Explorer",
|
||||
"Explore a tile adjacent to a one of your cities - \
|
||||
AND/OR gain a free settler in one of your cities.",
|
||||
ActionCost::regular_with_cost(ResourcePile::culture_tokens(1)),
|
||||
|c| c.action().culture_tokens(1),
|
||||
|game, player, _| {
|
||||
!action_explore_request(game, player.index)
|
||||
.choices
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@ use crate::content::tactics_cards::{
|
|||
};
|
||||
use crate::game::Game;
|
||||
use crate::player::Player;
|
||||
use crate::playing_actions::ActionCost;
|
||||
use crate::position::Position;
|
||||
use crate::resource_pile::ResourcePile;
|
||||
use itertools::Itertools;
|
||||
|
|
@ -38,9 +37,9 @@ pub(crate) fn inspiration_action_cards() -> Vec<ActionCard> {
|
|||
fn advance(id: u8, tactics_card: TacticsCardFactory) -> ActionCard {
|
||||
ActionCard::builder(
|
||||
id,
|
||||
"Advance",
|
||||
"Quick Advance",
|
||||
"Pay 1 culture token: Gain 1 advance without changing the Game Event counter.",
|
||||
ActionCost::cost(ResourcePile::culture_tokens(1)),
|
||||
|c| c.free_action().culture_tokens(1),
|
||||
|game, player, _| !possible_advances(player, game).is_empty(),
|
||||
)
|
||||
.tactics_card(tactics_card)
|
||||
|
|
@ -57,10 +56,7 @@ fn advance(id: u8, tactics_card: TacticsCardFactory) -> ActionCard {
|
|||
ResourcePile::culture_tokens(1),
|
||||
false,
|
||||
);
|
||||
s.log(
|
||||
game,
|
||||
&format!("Gain {} using the Advance action card.", advance.name(game)),
|
||||
);
|
||||
s.log(game, &format!("Gain {}", advance.name(game)));
|
||||
},
|
||||
)
|
||||
.build()
|
||||
|
|
@ -81,7 +77,7 @@ fn inspiration(id: u8, tactics_card: TacticsCardFactory) -> ActionCard {
|
|||
"Inspiration",
|
||||
"Gain 1 advance for free (without changing the Game Event counter) \
|
||||
that a player owns who has a unit or city within range 2 of your units or cities.",
|
||||
ActionCost::free(),
|
||||
|c| c.free_action().no_resources(),
|
||||
|game, player, _| !possible_inspiration_advances(game, player).is_empty(),
|
||||
)
|
||||
.tactics_card(tactics_card)
|
||||
|
|
@ -157,7 +153,7 @@ fn hero_general(id: u8, tactics_card: TacticsCardFactory) -> ActionCard {
|
|||
"Hero General",
|
||||
"If you won a land battle this turn: Increase the mood in a city by 1. \
|
||||
You may pay 1 mood token to increase the mood in a city by 1.",
|
||||
ActionCost::free(),
|
||||
|c| c.free_action().no_resources(),
|
||||
|_game, player, _| !cities_where_mood_can_increase(player).is_empty(),
|
||||
)
|
||||
.combat_requirement(Arc::new(|s, p| {
|
||||
|
|
@ -228,7 +224,7 @@ fn ideas(id: u8, tactics_card: TacticsCardFactory) -> ActionCard {
|
|||
id,
|
||||
"Ideas",
|
||||
"Gain 1 idea per Academy you own.",
|
||||
ActionCost::free(),
|
||||
|c| c.free_action().no_resources(),
|
||||
|_game, player, _| academies(player) > 0,
|
||||
)
|
||||
.tactics_card(tactics_card)
|
||||
|
|
@ -255,7 +251,7 @@ fn great_ideas(id: u8, tactics_card: TacticsCardFactory) -> ActionCard {
|
|||
id,
|
||||
"Great Ideas",
|
||||
"You captured a city or won a land battle this turn: Gain 2 ideas.",
|
||||
ActionCost::free(),
|
||||
|c| c.free_action().no_resources(),
|
||||
|_game, player, _| player.resources.ideas < player.resource_limit.ideas,
|
||||
)
|
||||
.combat_requirement(Arc::new(|s, p| {
|
||||
|
|
|
|||
|
|
@ -10,7 +10,6 @@ use crate::content::tactics_cards::TacticsCardFactory;
|
|||
use crate::game::Game;
|
||||
use crate::movement::{MoveUnits, move_action_log};
|
||||
use crate::player::Player;
|
||||
use crate::playing_actions::ActionCost;
|
||||
use crate::position::Position;
|
||||
use crate::resource::ResourceType;
|
||||
use crate::resource_pile::ResourcePile;
|
||||
|
|
@ -26,7 +25,7 @@ pub(crate) fn mercenaries(id: u8, tactics_card: TacticsCardFactory) -> ActionCar
|
|||
The armies must be within range 2 of your cities or army units. \
|
||||
Pay 1 food, wood, ore, or culture token for each army up front. \
|
||||
Reinforce all Barbarian cities where you moved units out of according to the usual rules.",
|
||||
ActionCost::regular(),
|
||||
|c| c.action().no_resources(),
|
||||
|game, p, _| {
|
||||
!barbarian_army_positions_in_range2(game, p).0.is_empty()
|
||||
&& max_mercenary_payment(p) > 0
|
||||
|
|
|
|||
|
|
@ -11,8 +11,7 @@ use crate::content::tactics_cards::{
|
|||
};
|
||||
use crate::game::Game;
|
||||
use crate::log::current_player_turn_log;
|
||||
use crate::playing_actions::{ActionCost, PlayingAction};
|
||||
use crate::resource_pile::ResourcePile;
|
||||
use crate::playing_actions::PlayingAction;
|
||||
use crate::utils::remove_element_by;
|
||||
|
||||
pub(crate) fn negotiation_action_cards() -> Vec<ActionCard> {
|
||||
|
|
@ -34,7 +33,7 @@ fn negotiations(id: u8, tactics_card: TacticsCardFactory) -> ActionCard {
|
|||
"Negotiations",
|
||||
"Select another player. This turn, you may not attack that player. \
|
||||
In their next turn, they may not attack you.",
|
||||
ActionCost::cost(ResourcePile::culture_tokens(1)),
|
||||
|c| c.free_action().culture_tokens(1),
|
||||
move |game, _player, _| {
|
||||
!current_player_turn_log(game)
|
||||
.actions
|
||||
|
|
@ -125,7 +124,7 @@ fn leadership(id: u8, tactics_card: TacticsCardFactory) -> ActionCard {
|
|||
id,
|
||||
"Leadership",
|
||||
"Gain 1 action.",
|
||||
ActionCost::cost(ResourcePile::culture_tokens(1)),
|
||||
|c| c.free_action().culture_tokens(1),
|
||||
move |_game, _player, _| true,
|
||||
)
|
||||
.tactics_card(tactics_card)
|
||||
|
|
@ -146,7 +145,7 @@ fn assassination(id: u8, tactics_card: TacticsCardFactory) -> ActionCard {
|
|||
"Assassination",
|
||||
"Select a player (not affected by Assassination already) \
|
||||
to lose an action in their next turn.",
|
||||
ActionCost::cost(ResourcePile::culture_tokens(1)),
|
||||
|c| c.free_action().culture_tokens(1),
|
||||
move |game, p, _| !opponents_not_affected_by_assassination(game, p.index).is_empty(),
|
||||
)
|
||||
.tactics_card(tactics_card)
|
||||
|
|
@ -214,7 +213,7 @@ fn overproduction(id: u8, tactics_card: TacticsCardFactory) -> ActionCard {
|
|||
"Overproduction",
|
||||
"You may collect from 2 additional tiles this turn. \
|
||||
(Cannot combine with Production Focus or another Overproduction.)",
|
||||
ActionCost::regular(),
|
||||
|c| c.action().no_resources(),
|
||||
move |game, p, _| collect_special_action(game, p),
|
||||
)
|
||||
.tactics_card(tactics_card)
|
||||
|
|
|
|||
|
|
@ -1,13 +1,12 @@
|
|||
use crate::ability_initializer::AbilityInitializerSetup;
|
||||
use crate::action_card::ActionCard;
|
||||
use crate::card::{HandCard, HandCardType, hand_cards};
|
||||
use crate::card::{HandCard, HandCardLocation, HandCardType, hand_cards, log_card_transfer};
|
||||
use crate::content::persistent_events::{HandCardsRequest, PersistentEventType, PlayerRequest};
|
||||
use crate::content::tactics_cards::TacticsCardFactory;
|
||||
use crate::events::{EventOrigin, check_event_origin};
|
||||
use crate::game::Game;
|
||||
use crate::objective_card::{deinit_objective_card, init_objective_card};
|
||||
use crate::player::Player;
|
||||
use crate::playing_actions::ActionCost;
|
||||
use crate::resource_pile::ResourcePile;
|
||||
use crate::utils::remove_element;
|
||||
use crate::wonder::{Wonder, deinit_wonder, init_wonder};
|
||||
use itertools::Itertools;
|
||||
|
|
@ -19,7 +18,7 @@ pub(crate) fn spy(id: u8, tactics_card: TacticsCardFactory) -> ActionCard {
|
|||
"Spy",
|
||||
"Look at all Wonder, Action, and Objective cards of another player. \
|
||||
You may swap one card of the same type.",
|
||||
ActionCost::regular_with_cost(ResourcePile::culture_tokens(1)),
|
||||
|c| c.action().culture_tokens(1),
|
||||
|game, player, _| !players_with_cards(game, player.index).is_empty(),
|
||||
)
|
||||
.add_player_request(
|
||||
|
|
@ -79,6 +78,7 @@ pub(crate) fn spy(id: u8, tactics_card: TacticsCardFactory) -> ActionCard {
|
|||
&s.choice,
|
||||
s.player_index,
|
||||
a.selected_player.expect("player not found"),
|
||||
&s.origin,
|
||||
)
|
||||
.map_err(|e| panic!("Failed to swap cards: {e}"));
|
||||
},
|
||||
|
|
@ -100,6 +100,7 @@ fn swap_cards(
|
|||
swap: &[HandCard],
|
||||
player: usize,
|
||||
other: usize,
|
||||
origin: &EventOrigin,
|
||||
) -> Result<(), String> {
|
||||
if swap.is_empty() {
|
||||
game.add_info_log_item(&format!(
|
||||
|
|
@ -132,6 +133,8 @@ fn swap_cards(
|
|||
|p| &mut p.action_cards,
|
||||
|_, _, _| {}, // action cards are not initialized
|
||||
|_, _, _| {},
|
||||
HandCard::ActionCard,
|
||||
origin,
|
||||
);
|
||||
"action"
|
||||
}
|
||||
|
|
@ -148,6 +151,8 @@ fn swap_cards(
|
|||
|p| &mut p.wonder_cards,
|
||||
init_wonder,
|
||||
deinit_wonder,
|
||||
HandCard::Wonder,
|
||||
origin,
|
||||
);
|
||||
"wonder"
|
||||
}
|
||||
|
|
@ -164,6 +169,8 @@ fn swap_cards(
|
|||
|p| &mut p.objective_cards,
|
||||
init_objective_card,
|
||||
deinit_objective_card,
|
||||
HandCard::ObjectiveCard,
|
||||
origin,
|
||||
);
|
||||
"objective"
|
||||
}
|
||||
|
|
@ -177,6 +184,7 @@ fn swap_cards(
|
|||
Ok(())
|
||||
}
|
||||
|
||||
#[allow(clippy::too_many_arguments)]
|
||||
fn swap_card<T: PartialEq + Ord + Debug + Copy>(
|
||||
game: &mut Game,
|
||||
player: usize,
|
||||
|
|
@ -186,6 +194,8 @@ fn swap_card<T: PartialEq + Ord + Debug + Copy>(
|
|||
get_list: impl Fn(&mut Player) -> &mut Vec<T>,
|
||||
init: impl Fn(&mut Game, usize, T),
|
||||
deinit: impl Fn(&mut Game, usize, T),
|
||||
to_hand_card: impl Fn(T) -> HandCard + Copy,
|
||||
origin: &EventOrigin,
|
||||
) {
|
||||
let card = remove_element(get_list(game.player_mut(player)), &id)
|
||||
.unwrap_or_else(|| panic!("card not found {id:?}"));
|
||||
|
|
@ -203,6 +213,20 @@ fn swap_card<T: PartialEq + Ord + Debug + Copy>(
|
|||
deinit(game, other, other_id);
|
||||
init(game, other, id);
|
||||
init(game, player, other_id);
|
||||
log_card_transfer(
|
||||
game,
|
||||
&to_hand_card(id),
|
||||
HandCardLocation::Hand(player),
|
||||
HandCardLocation::Hand(other),
|
||||
origin,
|
||||
);
|
||||
log_card_transfer(
|
||||
game,
|
||||
&to_hand_card(other_id),
|
||||
HandCardLocation::Hand(other),
|
||||
HandCardLocation::Hand(player),
|
||||
origin,
|
||||
);
|
||||
}
|
||||
|
||||
fn get_swap_card(swap: &[HandCard], p: &Player) -> Result<HandCard, String> {
|
||||
|
|
@ -254,5 +278,6 @@ pub(crate) fn validate_spy_cards(cards: &[HandCard], game: &Game) -> Result<(),
|
|||
cards,
|
||||
s.player.index,
|
||||
c.selected_player.expect("no player found"),
|
||||
&check_event_origin(),
|
||||
)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
use crate::ability_initializer::AbilityInitializerSetup;
|
||||
use crate::action_card::{ActionCard, ActionCardBuilder, CivilCardTarget, discard_action_card};
|
||||
use crate::advance::{Advance, gain_advance_without_payment};
|
||||
use crate::card::HandCard;
|
||||
use crate::card::{HandCard, HandCardLocation};
|
||||
use crate::content::ability::Ability;
|
||||
use crate::content::action_cards::inspiration;
|
||||
use crate::content::advances::theocracy::cities_that_can_add_units;
|
||||
|
|
@ -15,7 +15,6 @@ use crate::content::tactics_cards::{
|
|||
use crate::game::Game;
|
||||
use crate::objective_card::{deinit_objective_card, gain_objective_card};
|
||||
use crate::player::{Player, gain_unit};
|
||||
use crate::playing_actions::ActionCost;
|
||||
use crate::resource_pile::ResourcePile;
|
||||
use crate::unit::UnitType;
|
||||
use crate::utils::{Shuffle, remove_element, remove_element_by};
|
||||
|
|
@ -46,7 +45,7 @@ fn new_plans(id: u8, tactics_card: TacticsCardFactory) -> ActionCard {
|
|||
"Draw 2 objective cards. \
|
||||
You may discard an objective card from your hand to keep 1 of them. \
|
||||
Reshuffle the discarded and not taken cards into the deck.",
|
||||
ActionCost::regular_with_cost(ResourcePile::culture_tokens(1)),
|
||||
|c| c.action().culture_tokens(1),
|
||||
move |_game, p, _| !p.objective_cards.is_empty(),
|
||||
)
|
||||
.add_hand_card_request(
|
||||
|
|
@ -142,7 +141,7 @@ fn synergies(id: u8, tactics_card: TacticsCardFactory) -> ActionCard {
|
|||
"Synergies",
|
||||
"Gain 2 advances from the same category without changing the Game Event counter. \
|
||||
Pay the price as usual.",
|
||||
ActionCost::regular(),
|
||||
|c| c.action().no_resources(),
|
||||
move |game, p, _| !categories_with_2_affordable_advances(p, game).is_empty(),
|
||||
)
|
||||
.tactics_card(tactics_card)
|
||||
|
|
@ -244,7 +243,10 @@ fn categories_with_2_affordable_advances(p: &Player, game: &Game) -> Vec<Advance
|
|||
.default;
|
||||
p.can_afford(&cost)
|
||||
&& p.can_advance_free(a.advance, game)
|
||||
&& p.can_advance_free(b.advance, game)
|
||||
// don't check requirements for second advance,
|
||||
// because it can only be to have the leading advance of the group
|
||||
// which is already checked
|
||||
&& !p.has_advance(b.advance)
|
||||
})
|
||||
.map(|pair| pair[0].advance)
|
||||
.collect_vec()
|
||||
|
|
@ -258,7 +260,7 @@ fn teach_us(id: u8, tactics_card: TacticsCardFactory) -> ActionCard {
|
|||
"Teach Us",
|
||||
"If you just captured a city: Gain 1 advance from the loser for free \
|
||||
without changing the Game Event counter.",
|
||||
ActionCost::free(),
|
||||
|c| c.free_action().no_resources(),
|
||||
// is played by "use_teach_us"
|
||||
|_game, _player, _a| false,
|
||||
)
|
||||
|
|
@ -302,9 +304,13 @@ pub(crate) fn use_teach_us() -> Ability {
|
|||
let HandCard::ActionCard(id) = s.choice[0] else {
|
||||
panic!("Teach Us card not found");
|
||||
};
|
||||
discard_action_card(game, s.player_index, id);
|
||||
|
||||
s.log(game, "Activate");
|
||||
discard_action_card(
|
||||
game,
|
||||
s.player_index,
|
||||
id,
|
||||
&s.origin,
|
||||
HandCardLocation::PlayToDiscard,
|
||||
);
|
||||
e.selected_card = Some(id);
|
||||
},
|
||||
)
|
||||
|
|
@ -348,7 +354,7 @@ fn militia(id: u8, tactics_card: TacticsCardFactory) -> ActionCard {
|
|||
id,
|
||||
"Militia",
|
||||
"Gain 1 infantry in one of your cities.",
|
||||
ActionCost::cost(ResourcePile::culture_tokens(1)),
|
||||
|c| c.free_action().culture_tokens(1),
|
||||
|_game, player, _a| {
|
||||
player.available_units().infantry > 0 && !cities_that_can_add_units(player).is_empty()
|
||||
},
|
||||
|
|
@ -386,7 +392,7 @@ fn tech_trade(id: u8, tactics_card: TacticsCardFactory) -> ActionCard {
|
|||
"Gain 1 advance for free (without changing the Game Event counter) \
|
||||
that a player owns who has a unit or city within range 2 of your units or cities. \
|
||||
Then that player gains 1 advance from you for free the same way.",
|
||||
ActionCost::cost(ResourcePile::culture_tokens(1)),
|
||||
|c| c.free_action().no_resources(),
|
||||
|game, player, _a| !possible_inspiration_advances(game, player).is_empty(),
|
||||
)
|
||||
.tactics_card(tactics_card)
|
||||
|
|
@ -467,7 +473,7 @@ fn new_ideas(id: u8, tactics_card: TacticsCardFactory) -> ActionCard {
|
|||
"New Ideas",
|
||||
"Gain 1 advance for the regular price (without changing the Game Event counter), \
|
||||
then gain 2 ideas.",
|
||||
ActionCost::regular(),
|
||||
|c| c.action().no_resources(),
|
||||
|game, player, _a| !advances_that_can_be_gained(player, game).is_empty(),
|
||||
)
|
||||
.tactics_card(tactics_card)
|
||||
|
|
|
|||
|
|
@ -88,7 +88,7 @@ fn absolute_power() -> AdvanceBuilder {
|
|||
0,
|
||||
|game, p, _| {
|
||||
game.actions_left += 1;
|
||||
p.log(game, "Gain an extra action using Absolute Power");
|
||||
p.log(game, "Gain an extra action");
|
||||
},
|
||||
)
|
||||
},
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ use crate::ability_initializer::AbilityInitializerSetup;
|
|||
use crate::action_card::discard_action_card;
|
||||
use crate::advance::Bonus::{CultureToken, MoodToken};
|
||||
use crate::advance::{Advance, AdvanceBuilder, AdvanceInfo};
|
||||
use crate::card::{HandCard, all_action_hand_cards};
|
||||
use crate::card::{HandCard, HandCardLocation, all_action_hand_cards};
|
||||
use crate::city_pieces::Building::Market;
|
||||
use crate::content::ability::{AbilityBuilder, building_event_origin};
|
||||
use crate::content::advances::trade_routes::{TradeRoute, trade_route_log, trade_route_reward};
|
||||
|
|
@ -67,14 +67,13 @@ fn use_bartering(b: AbilityBuilder) -> AbilityBuilder {
|
|||
let HandCard::ActionCard(card) = s.choice[0] else {
|
||||
panic!("Invalid type");
|
||||
};
|
||||
s.log(
|
||||
discard_action_card(
|
||||
game,
|
||||
&format!(
|
||||
"Discard {} for 1 gold or 1 culture token",
|
||||
game.cache.get_action_card(card).name()
|
||||
),
|
||||
s.player_index,
|
||||
card,
|
||||
&s.origin,
|
||||
HandCardLocation::DiscardPile,
|
||||
);
|
||||
discard_action_card(game, s.player_index, card);
|
||||
},
|
||||
)
|
||||
.add_resource_request(
|
||||
|
|
|
|||
|
|
@ -24,20 +24,21 @@ pub(crate) fn education() -> AdvanceGroupInfo {
|
|||
}
|
||||
|
||||
fn writing() -> AdvanceBuilder {
|
||||
AdvanceInfo::builder(
|
||||
let b = AdvanceInfo::builder(
|
||||
Advance::Writing,
|
||||
"Writing",
|
||||
"Gain 1 action and 1 objective card",
|
||||
)
|
||||
.with_advance_bonus(CultureToken)
|
||||
.with_unlocked_building(Building::Academy)
|
||||
.add_once_initializer(|game, player_index| {
|
||||
gain_action_card_from_pile(game, player_index);
|
||||
// can't gain objective card directly, because the "combat_end" listener might
|
||||
// currently being processed ("teach us now")
|
||||
game.player_mut(player_index).gained_objective =
|
||||
draw_and_log_objective_card_from_pile(game, player_index);
|
||||
})
|
||||
);
|
||||
let origin = b.get_key().clone();
|
||||
b.with_advance_bonus(CultureToken)
|
||||
.with_unlocked_building(Building::Academy)
|
||||
.add_once_initializer(move |game, player_index| {
|
||||
gain_action_card_from_pile(game, player_index, &origin);
|
||||
// can't gain objective card directly, because the "combat_end" listener might
|
||||
// currently being processed ("teach us now")
|
||||
game.player_mut(player_index).gained_objective =
|
||||
draw_and_log_objective_card_from_pile(game, player_index);
|
||||
})
|
||||
}
|
||||
|
||||
pub(crate) fn use_academy() -> Ability {
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ pub fn use_observatory() -> Ability {
|
|||
4,
|
||||
|game, p, b| {
|
||||
if b.building == Building::Observatory {
|
||||
gain_action_card_from_pile(game, p.index);
|
||||
gain_action_card_from_pile(game, p.index, &p.origin);
|
||||
p.log(game, "Observatory gained 1 action card");
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -229,7 +229,7 @@ fn use_imperial_army(b: AbilityBuilder) -> AbilityBuilder {
|
|||
player_index,
|
||||
choices,
|
||||
1..=max,
|
||||
"Select units to convert using Imperial Army",
|
||||
"Select units to convert",
|
||||
))
|
||||
},
|
||||
|game, s, _| {
|
||||
|
|
@ -249,10 +249,7 @@ fn use_imperial_army(b: AbilityBuilder) -> AbilityBuilder {
|
|||
}
|
||||
}
|
||||
|
||||
s.log(
|
||||
game,
|
||||
&format!("Convert {} using Imperial Army", names.join(", ")),
|
||||
);
|
||||
s.log(game, &format!("Convert {}", names.join(", ")));
|
||||
},
|
||||
)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -246,7 +246,7 @@ fn use_idol(b: AbilityBuilder) -> AbilityBuilder {
|
|||
Some(HandCardsRequest::new(
|
||||
idol_cards(game, player.get(game), &ResourcePile::empty()),
|
||||
1..=1,
|
||||
"Select an action card to play as a free action using Idol",
|
||||
"Select an action card to play as a free action",
|
||||
))
|
||||
},
|
||||
|game, s, _| {
|
||||
|
|
@ -256,7 +256,7 @@ fn use_idol(b: AbilityBuilder) -> AbilityBuilder {
|
|||
s.log(
|
||||
game,
|
||||
&format!(
|
||||
"Decided to play {} as a free action using Idol",
|
||||
"Decided to play {} as a free action",
|
||||
game.cache.get_civil_card(id).name
|
||||
),
|
||||
);
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
use crate::ability_initializer::AbilityInitializerSetup;
|
||||
use crate::action_card::{discard_action_card, gain_action_card_from_pile};
|
||||
use crate::advance::{Advance, base_advance_cost, gain_advance_without_payment};
|
||||
use crate::card::{HandCard, all_action_hand_cards, all_objective_hand_cards};
|
||||
use crate::card::{HandCard, HandCardLocation, all_action_hand_cards, all_objective_hand_cards};
|
||||
use crate::city::{MoodState, set_city_mood};
|
||||
use crate::civilization::Civilization;
|
||||
use crate::content::ability::AbilityBuilder;
|
||||
|
|
@ -212,7 +212,7 @@ fn use_princeps(b: AbilityBuilder) -> AbilityBuilder {
|
|||
|game, p, _| {
|
||||
let player = p.index;
|
||||
activate_leader_city(game, p);
|
||||
gain_action_card_from_pile(game, player);
|
||||
gain_action_card_from_pile(game, player, &p.origin);
|
||||
gain_objective_card_from_pile(game, player);
|
||||
|
||||
let p = game.player(player);
|
||||
|
|
@ -230,14 +230,13 @@ fn use_princeps(b: AbilityBuilder) -> AbilityBuilder {
|
|||
for c in &s.choice {
|
||||
match c {
|
||||
HandCard::ActionCard(card) => {
|
||||
s.log(
|
||||
discard_action_card(
|
||||
game,
|
||||
&format!(
|
||||
"Discard action card {}",
|
||||
game.cache.get_action_card(*card).name()
|
||||
),
|
||||
p,
|
||||
*card,
|
||||
&s.origin,
|
||||
HandCardLocation::DiscardPile,
|
||||
);
|
||||
discard_action_card(game, p, *card);
|
||||
}
|
||||
HandCard::ObjectiveCard(card) => {
|
||||
s.log(
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
use crate::action_cost::ActionCostOncePerTurn;
|
||||
use crate::city::{City, MoodState};
|
||||
use crate::content::ability::Ability;
|
||||
use crate::content::persistent_events::{
|
||||
|
|
@ -5,9 +6,9 @@ use crate::content::persistent_events::{
|
|||
};
|
||||
use crate::events::EventOrigin;
|
||||
use crate::player::Player;
|
||||
use crate::playing_actions::{ActionResourceCost, PlayingActionType};
|
||||
use crate::playing_actions::PlayingActionType;
|
||||
use crate::position::Position;
|
||||
use crate::{game::Game, playing_actions::ActionCost, resource_pile::ResourcePile};
|
||||
use crate::{game::Game, resource_pile::ResourcePile};
|
||||
use serde::{Deserialize, Serialize};
|
||||
use std::fmt::Debug;
|
||||
use std::sync::Arc;
|
||||
|
|
@ -43,131 +44,12 @@ impl CustomActionActivation {
|
|||
}
|
||||
}
|
||||
|
||||
pub(crate) struct CustomActionOncePerTurn {
|
||||
action: CustomActionType,
|
||||
}
|
||||
|
||||
impl CustomActionOncePerTurn {
|
||||
#[must_use]
|
||||
pub fn new(action: CustomActionType) -> Self {
|
||||
Self { action }
|
||||
}
|
||||
|
||||
#[must_use]
|
||||
#[allow(clippy::unused_self)]
|
||||
pub fn any_times(self) -> CustomActionActionCost {
|
||||
CustomActionActionCost::new(None)
|
||||
}
|
||||
|
||||
#[must_use]
|
||||
pub fn once_per_turn(self) -> CustomActionActionCost {
|
||||
CustomActionActionCost::new(Some(self.action))
|
||||
}
|
||||
|
||||
#[allow(clippy::unused_self)]
|
||||
#[must_use]
|
||||
pub fn once_per_turn_mutually_exclusive(
|
||||
self,
|
||||
mutually_exclusive: CustomActionType,
|
||||
) -> CustomActionActionCost {
|
||||
CustomActionActionCost::new(Some(mutually_exclusive))
|
||||
}
|
||||
}
|
||||
|
||||
pub(crate) struct CustomActionActionCost {
|
||||
once_per_turn: Option<CustomActionType>,
|
||||
}
|
||||
|
||||
impl CustomActionActionCost {
|
||||
#[must_use]
|
||||
fn new(once_per_turn: Option<CustomActionType>) -> Self {
|
||||
Self { once_per_turn }
|
||||
}
|
||||
|
||||
#[must_use]
|
||||
pub fn action(self) -> CustomActionResourceCost {
|
||||
CustomActionResourceCost::new(self.once_per_turn, false)
|
||||
}
|
||||
|
||||
#[must_use]
|
||||
pub fn free_action(self) -> CustomActionResourceCost {
|
||||
CustomActionResourceCost::new(self.once_per_turn, true)
|
||||
}
|
||||
}
|
||||
|
||||
pub(crate) struct CustomActionResourceCost {
|
||||
once_per_turn: Option<CustomActionType>,
|
||||
free: bool,
|
||||
}
|
||||
|
||||
impl CustomActionResourceCost {
|
||||
#[must_use]
|
||||
fn new(once_per_turn: Option<CustomActionType>, free: bool) -> CustomActionResourceCost {
|
||||
CustomActionResourceCost {
|
||||
once_per_turn,
|
||||
free,
|
||||
}
|
||||
}
|
||||
|
||||
#[must_use]
|
||||
pub fn no_resources(self) -> CustomActionCost {
|
||||
CustomActionCost::new(self.free, self.once_per_turn, ActionResourceCost::free())
|
||||
}
|
||||
|
||||
#[must_use]
|
||||
pub fn resources(self, cost: ResourcePile) -> CustomActionCost {
|
||||
CustomActionCost::new(
|
||||
self.free,
|
||||
self.once_per_turn,
|
||||
ActionResourceCost::resources(cost),
|
||||
)
|
||||
}
|
||||
|
||||
#[must_use]
|
||||
pub fn tokens(self, cost: u8) -> CustomActionCost {
|
||||
CustomActionCost::new(
|
||||
self.free,
|
||||
self.once_per_turn,
|
||||
ActionResourceCost::tokens(cost),
|
||||
)
|
||||
}
|
||||
|
||||
#[must_use]
|
||||
pub fn advance_cost_without_discounts(self) -> CustomActionCost {
|
||||
CustomActionCost::new(
|
||||
self.free,
|
||||
self.once_per_turn,
|
||||
ActionResourceCost::AdvanceCostWithoutDiscount,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, PartialEq)]
|
||||
pub struct CustomActionCost {
|
||||
pub action_type: ActionCost,
|
||||
pub once_per_turn: Option<CustomActionType>,
|
||||
}
|
||||
|
||||
impl CustomActionCost {
|
||||
#[must_use]
|
||||
pub(crate) fn new(
|
||||
free: bool,
|
||||
once_per_turn: Option<CustomActionType>,
|
||||
cost: ActionResourceCost,
|
||||
) -> CustomActionCost {
|
||||
CustomActionCost {
|
||||
action_type: ActionCost::new(free, cost),
|
||||
once_per_turn,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone)]
|
||||
pub struct CustomActionInfo {
|
||||
pub action: CustomActionType,
|
||||
pub execution: CustomActionExecution,
|
||||
pub event_origin: EventOrigin,
|
||||
pub cost: CustomActionCost,
|
||||
pub cost: ActionCostOncePerTurn,
|
||||
}
|
||||
|
||||
impl CustomActionInfo {
|
||||
|
|
@ -176,7 +58,7 @@ impl CustomActionInfo {
|
|||
action: CustomActionType,
|
||||
execution: CustomActionExecution,
|
||||
event_origin: EventOrigin,
|
||||
cost: CustomActionCost,
|
||||
cost: ActionCostOncePerTurn,
|
||||
) -> CustomActionInfo {
|
||||
CustomActionInfo {
|
||||
action,
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ use crate::content::persistent_events::HandCardsRequest;
|
|||
use crate::game::Game;
|
||||
use crate::player::Player;
|
||||
use crate::player_events::CostInfo;
|
||||
use crate::playing_actions::{ActionCost, PlayingActionType};
|
||||
use crate::playing_actions::PlayingActionType;
|
||||
use crate::resource_pile::ResourcePile;
|
||||
use crate::utils::remove_element_by;
|
||||
use crate::wonder::{Wonder, WonderCardInfo, cities_for_wonder, on_play_wonder_card, wonder_cost};
|
||||
|
|
@ -28,7 +28,7 @@ pub(crate) fn great_engineer() -> ActionCard {
|
|||
without spending an action and without activating it.",
|
||||
great_person_description(&groups)
|
||||
),
|
||||
ActionCost::regular(),
|
||||
|c| c.action().no_resources(),
|
||||
groups,
|
||||
can_construct_any_building,
|
||||
)
|
||||
|
|
@ -121,7 +121,7 @@ pub(crate) fn great_architect() -> ActionCard {
|
|||
the requirement advances (but not Engineering). \
|
||||
In addition, the cost of constructing the wonder is reduced by 3 culture tokens.",
|
||||
),
|
||||
ActionCost::free(),
|
||||
|c| c.free_action().no_resources(),
|
||||
vec![],
|
||||
|game, player| !playable_wonders(game, player).is_empty(),
|
||||
)
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@ use crate::content::incidents::great_persons::{
|
|||
use crate::game::Game;
|
||||
use crate::incident::IncidentBuilder;
|
||||
use crate::player_events::IncidentTarget;
|
||||
use crate::playing_actions::ActionCost;
|
||||
use crate::utils::remove_element_by;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
|
|
@ -24,7 +23,8 @@ pub(crate) fn great_diplomat() -> ActionCard {
|
|||
Discard this card if either player attacks the other. \
|
||||
You may discard the card as a regular action.",
|
||||
),
|
||||
ActionCost::regular(),
|
||||
// action for ending diplomatic relations
|
||||
|c| c.action().no_resources(),
|
||||
vec![],
|
||||
|_game, _player| true,
|
||||
)
|
||||
|
|
|
|||
|
|
@ -12,7 +12,6 @@ use crate::game::Game;
|
|||
use crate::map::{BlockPosition, block_has_player_city, block_tiles, get_map_setup};
|
||||
use crate::payment::PaymentOptions;
|
||||
use crate::player::Player;
|
||||
use crate::playing_actions::ActionCost;
|
||||
use crate::position::Position;
|
||||
use crate::resource_pile::ResourcePile;
|
||||
use itertools::Itertools;
|
||||
|
|
@ -28,7 +27,7 @@ pub(crate) fn great_explorer() -> ActionCard {
|
|||
without using a Settler.",
|
||||
great_person_description(&groups)
|
||||
),
|
||||
ActionCost::regular(),
|
||||
|c| c.action().no_resources(),
|
||||
groups,
|
||||
|game, player| {
|
||||
!action_explore_request(game, player.index)
|
||||
|
|
|
|||
|
|
@ -1,7 +1,8 @@
|
|||
use crate::ability_initializer::AbilityInitializerSetup;
|
||||
use crate::action_card::{ActionCard, ActionCardBuilder, gain_action_card_from_pile};
|
||||
use crate::action_cost::{ActionCostBuilder, ActionCostOncePerTurn};
|
||||
use crate::advance::gain_advance_without_payment;
|
||||
use crate::card::HandCard;
|
||||
use crate::card::{HandCard, HandCardLocation, log_card_transfer};
|
||||
use crate::city::{MoodState, set_city_mood};
|
||||
use crate::city_pieces::Building;
|
||||
use crate::construct::{Construct, execute_construct};
|
||||
|
|
@ -20,7 +21,6 @@ use crate::incident::{Incident, IncidentBaseEffect, IncidentBuilder};
|
|||
use crate::payment::PaymentOptions;
|
||||
use crate::player::Player;
|
||||
use crate::player_events::IncidentTarget;
|
||||
use crate::playing_actions::ActionCost;
|
||||
use crate::resource::ResourceType;
|
||||
use crate::resource_pile::ResourcePile;
|
||||
use crate::utils::{format_list, remove_element};
|
||||
|
|
@ -74,7 +74,6 @@ fn incident(
|
|||
let id = card_id - GREAT_PERSON_OFFSET;
|
||||
let civil_card = &action_card.civil_card;
|
||||
let name = civil_card.name.clone();
|
||||
let name2 = name.clone();
|
||||
|
||||
let b = Incident::builder(id, &name, &civil_card.description.clone(), base)
|
||||
.with_action_card(action_card)
|
||||
|
|
@ -107,8 +106,14 @@ fn incident(
|
|||
s.log(game, "Declined to gain the Action Card");
|
||||
return;
|
||||
}
|
||||
s.log(game, &format!("Gain {name2} for {pile}"));
|
||||
game.player_mut(s.player_index).action_cards.push(card_id);
|
||||
log_card_transfer(
|
||||
game,
|
||||
&HandCard::ActionCard(card_id),
|
||||
HandCardLocation::Incident,
|
||||
HandCardLocation::Hand(s.player_index),
|
||||
&s.origin,
|
||||
);
|
||||
i.selected_player = Some(s.player_index);
|
||||
},
|
||||
)
|
||||
|
|
@ -129,7 +134,7 @@ pub(crate) fn great_person_action_card<F>(
|
|||
incident_id: u8,
|
||||
name: &str,
|
||||
description: &str,
|
||||
action_type: ActionCost,
|
||||
cost: impl Fn(ActionCostBuilder) -> ActionCostOncePerTurn + Send + Sync + 'static,
|
||||
free_advance_groups: Vec<AdvanceGroup>,
|
||||
can_play: F,
|
||||
) -> ActionCardBuilder
|
||||
|
|
@ -140,7 +145,7 @@ where
|
|||
incident_id + GREAT_PERSON_OFFSET,
|
||||
name,
|
||||
description,
|
||||
action_type,
|
||||
cost,
|
||||
move |game, player, _| can_play(game, player),
|
||||
)
|
||||
.add_advance_request(
|
||||
|
|
@ -173,7 +178,7 @@ fn great_artist() -> ActionCard {
|
|||
"{} Then, you make one of your cities Happy.",
|
||||
great_person_description(&groups)
|
||||
),
|
||||
ActionCost::regular(),
|
||||
|c| c.action().no_resources(),
|
||||
groups,
|
||||
|_game, _player| true,
|
||||
)
|
||||
|
|
@ -210,7 +215,7 @@ fn great_prophet() -> ActionCard {
|
|||
"{} Then, you build a Temple without activating the city.",
|
||||
great_person_description(&groups)
|
||||
),
|
||||
ActionCost::regular(),
|
||||
|c| c.action().no_resources(),
|
||||
groups,
|
||||
|_game, _player| true,
|
||||
)
|
||||
|
|
@ -305,7 +310,7 @@ fn great_philosopher() -> ActionCard {
|
|||
21,
|
||||
"Great Philosopher",
|
||||
&format!("{} Then, gain 2 ideas.", great_person_description(&groups)),
|
||||
ActionCost::regular(),
|
||||
|c| c.action().no_resources(),
|
||||
groups,
|
||||
|_game, _player| true,
|
||||
)
|
||||
|
|
@ -328,7 +333,7 @@ fn great_scientist() -> ActionCard {
|
|||
"{} Then, gain 1 idea and 1 Action Card.",
|
||||
great_person_description(&groups)
|
||||
),
|
||||
ActionCost::regular(),
|
||||
|c| c.action().no_resources(),
|
||||
groups,
|
||||
|_game, _player| true,
|
||||
)
|
||||
|
|
@ -337,7 +342,7 @@ fn great_scientist() -> ActionCard {
|
|||
0,
|
||||
|game, p, _| {
|
||||
p.gain_resources(game, ResourcePile::ideas(1));
|
||||
gain_action_card_from_pile(game, p.index);
|
||||
gain_action_card_from_pile(game, p.index, &p.origin);
|
||||
},
|
||||
)
|
||||
.build()
|
||||
|
|
@ -355,7 +360,7 @@ fn elder_statesman() -> ActionCard {
|
|||
"{} Then, draw 2 Action Cards.",
|
||||
great_person_description(&groups)
|
||||
),
|
||||
ActionCost::regular(),
|
||||
|c| c.action().no_resources(),
|
||||
groups,
|
||||
|_game, _player| true,
|
||||
)
|
||||
|
|
@ -363,8 +368,8 @@ fn elder_statesman() -> ActionCard {
|
|||
|e| &mut e.play_action_card,
|
||||
0,
|
||||
|game, p, _| {
|
||||
gain_action_card_from_pile(game, p.index);
|
||||
gain_action_card_from_pile(game, p.index);
|
||||
gain_action_card_from_pile(game, p.index, &p.origin);
|
||||
gain_action_card_from_pile(game, p.index, &p.origin);
|
||||
},
|
||||
)
|
||||
.build()
|
||||
|
|
@ -380,7 +385,7 @@ fn great_merchant() -> ActionCard {
|
|||
"{} Then, if you have the Trade Routes advance, gain the Trade Routes income.",
|
||||
great_person_description(&groups)
|
||||
),
|
||||
ActionCost::regular(),
|
||||
|c| c.action().no_resources(),
|
||||
groups,
|
||||
|_game, _player| true,
|
||||
),
|
||||
|
|
@ -398,7 +403,7 @@ fn great_athlete() -> ActionCard {
|
|||
"{} Then, you may convert any amount of culture tokens to mood tokens or vice versa.",
|
||||
great_person_description(&groups)
|
||||
),
|
||||
ActionCost::regular(),
|
||||
|c| c.action().no_resources(),
|
||||
groups,
|
||||
|_game, player| player.resources.culture_tokens > 0 || player.resources.mood_tokens > 0,
|
||||
)
|
||||
|
|
@ -475,7 +480,7 @@ fn great_seer() -> ActionCard {
|
|||
The next time the player draws an objective card from the pile, \
|
||||
they draw the designated card instead.",
|
||||
),
|
||||
ActionCost::free(),
|
||||
|c| c.action().no_resources(),
|
||||
vec![],
|
||||
|_game, _player| true,
|
||||
);
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@ use crate::content::incidents::great_persons::{
|
|||
use crate::game::GameState;
|
||||
use crate::game::GameState::Movement;
|
||||
use crate::movement::MoveState;
|
||||
use crate::playing_actions::ActionCost;
|
||||
use std::mem;
|
||||
|
||||
pub(crate) fn great_warlord() -> ActionCard {
|
||||
|
|
@ -22,7 +21,7 @@ pub(crate) fn great_warlord() -> ActionCard {
|
|||
gain 2 combat value in every round.",
|
||||
great_person_description(&groups)
|
||||
),
|
||||
ActionCost::regular(),
|
||||
|c| c.action().no_resources(),
|
||||
groups,
|
||||
|_game, _player| true,
|
||||
)
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
use crate::action_card::discard_action_card;
|
||||
use crate::advance::Advance;
|
||||
use crate::card::{HandCard, HandCardType, hand_cards};
|
||||
use crate::card::{HandCard, HandCardLocation, HandCardType, hand_cards};
|
||||
use crate::city::City;
|
||||
use crate::content::incidents::famine::{
|
||||
additional_sanitation_damage, famine, kill_incident_units,
|
||||
|
|
@ -72,10 +72,12 @@ fn pandemics() -> Incident {
|
|||
for id in &s.choice {
|
||||
match id {
|
||||
HandCard::ActionCard(a) => {
|
||||
discard_action_card(game, s.player_index, *a);
|
||||
s.log(
|
||||
discard_action_card(
|
||||
game,
|
||||
&format!("Discard {}", game.cache.get_action_card(*a).name()),
|
||||
s.player_index,
|
||||
*a,
|
||||
&s.origin,
|
||||
HandCardLocation::DiscardPile,
|
||||
);
|
||||
}
|
||||
HandCard::ObjectiveCard(o) => {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
use crate::ability_initializer::AbilityInitializerSetup;
|
||||
use crate::action_card::{gain_action_card, gain_action_card_from_pile};
|
||||
use crate::card::HandCardLocation;
|
||||
use crate::combat::{Combat, update_combat_strength};
|
||||
use crate::combat_listeners::{CombatResult, CombatRoundStart, CombatStrength, kill_combat_units};
|
||||
use crate::content::persistent_events::{PaymentRequest, PositionRequest, UnitsRequest};
|
||||
|
|
@ -156,7 +157,7 @@ pub(crate) fn surprise(id: u8) -> TacticsCard {
|
|||
.add_resolve_listener(1, |p, game, e| {
|
||||
if e.hits(e.role(p.index)) > 0 {
|
||||
p.log(game, "Draw 1 action card for Surprise tactics");
|
||||
gain_action_card_from_pile(game, p.index);
|
||||
gain_action_card_from_pile(game, p.index, &p.origin);
|
||||
}
|
||||
})
|
||||
.build()
|
||||
|
|
@ -321,19 +322,13 @@ pub(crate) fn scout(id: u8) -> TacticsCard {
|
|||
s,
|
||||
|game, _combat, st, _role| {
|
||||
if let Some(tactics_card) = st.tactics_card.take() {
|
||||
gain_action_card(game, p.index, tactics_card);
|
||||
p.log(
|
||||
p.log(game, "Ignore the enemy tactics");
|
||||
gain_action_card(
|
||||
game,
|
||||
&format!(
|
||||
"Ignore the enemy tactics {} and takes \
|
||||
it to their hand using Scout",
|
||||
game.cache
|
||||
.get_action_card(tactics_card)
|
||||
.tactics_card
|
||||
.as_ref()
|
||||
.expect("tactics card not found")
|
||||
.name
|
||||
),
|
||||
p.index,
|
||||
tactics_card,
|
||||
HandCardLocation::DiscardPile,
|
||||
&p.origin,
|
||||
);
|
||||
} else {
|
||||
p.log(game, "Cannot use - opponent didn't play a tactics card");
|
||||
|
|
@ -370,7 +365,7 @@ pub(crate) fn martyr(id: u8) -> TacticsCard {
|
|||
s.log(
|
||||
game,
|
||||
&format!(
|
||||
"{} sacrifices {} using Martyr",
|
||||
"{} sacrifices {}",
|
||||
game.player_name(s.player_index),
|
||||
a_or_an(
|
||||
&game
|
||||
|
|
@ -390,10 +385,7 @@ pub(crate) fn martyr(id: u8) -> TacticsCard {
|
|||
move |game, p, s| {
|
||||
if s.is_active(p.index, id, TacticsCardTarget::Opponent) {
|
||||
update_combat_strength(game, p.index, s, |game, _combat, st, _role| {
|
||||
p.log(
|
||||
game,
|
||||
"Cannot use tactics card using Martyr (but it is still discarded)",
|
||||
);
|
||||
p.log(game, "Cannot use tactics card (but it is still discarded)");
|
||||
st.tactics_card = None;
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
use crate::ability_initializer::AbilityInitializerSetup;
|
||||
use crate::action_card::do_gain_action_card_from_pile;
|
||||
use crate::advance::{Advance, init_great_library};
|
||||
use crate::card::{HandCard, all_objective_hand_cards};
|
||||
use crate::card::{HandCard, HandCardLocation, all_objective_hand_cards, log_card_transfer};
|
||||
use crate::city::{City, MoodState, activate_city};
|
||||
use crate::combat_listeners::CombatRoundEnd;
|
||||
use crate::content::ability::{Ability, AbilityBuilder};
|
||||
|
|
@ -139,7 +139,7 @@ pub(crate) fn use_great_mausoleum() -> Ability {
|
|||
game.cache.get_action_card(*card).name()
|
||||
))
|
||||
} else {
|
||||
do_gain_action_card_from_pile(game, p.index);
|
||||
do_gain_action_card_from_pile(game, p.index, &p.origin);
|
||||
None
|
||||
}
|
||||
},
|
||||
|
|
@ -157,8 +157,15 @@ pub(crate) fn use_great_mausoleum() -> Ability {
|
|||
),
|
||||
);
|
||||
game.player_mut(s.player_index).action_cards.push(card);
|
||||
log_card_transfer(
|
||||
game,
|
||||
&HandCard::ActionCard(card),
|
||||
HandCardLocation::DiscardPile,
|
||||
HandCardLocation::Hand(s.player_index),
|
||||
&s.origin,
|
||||
);
|
||||
} else {
|
||||
do_gain_action_card_from_pile(game, s.player_index);
|
||||
do_gain_action_card_from_pile(game, s.player_index, &s.origin);
|
||||
}
|
||||
},
|
||||
)
|
||||
|
|
|
|||
|
|
@ -1,14 +1,16 @@
|
|||
use super::player::Player;
|
||||
use crate::action::execute_action;
|
||||
use crate::card::{HandCard, HandCardLocation};
|
||||
use crate::content::effects::PermanentEffect;
|
||||
use crate::content::persistent_events::{
|
||||
EventResponse, PersistentEventRequest, PersistentEventType,
|
||||
};
|
||||
use crate::game::GameOptions;
|
||||
use crate::game_setup::{GameSetupBuilder, setup_game};
|
||||
use crate::log::{current_player_turn_log_mut, linear_action_log};
|
||||
use crate::log::{ActionLogAction, ActionLogEntry, linear_action_log};
|
||||
use crate::utils::Shuffle;
|
||||
use crate::victory_points::compare_score;
|
||||
use crate::wonder::Wonder;
|
||||
use crate::{
|
||||
action::Action,
|
||||
game::{Game, GameState::*},
|
||||
|
|
@ -130,6 +132,58 @@ pub fn strip_secret(mut game: Game, player_index: Option<usize>) -> Game {
|
|||
}
|
||||
}
|
||||
game.map.strip_secret();
|
||||
strip_events(&mut game, player_index);
|
||||
strip_log(&mut game, player_index);
|
||||
|
||||
game
|
||||
}
|
||||
|
||||
fn strip_log(game: &mut Game, player_index: Option<usize>) {
|
||||
for age in &mut game.action_log {
|
||||
for round in &mut age.rounds {
|
||||
for player in &mut round.players {
|
||||
for action in &mut player.actions {
|
||||
strip_action(action, player_index);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fn strip_action(action: &mut ActionLogAction, player_index: Option<usize>) {
|
||||
// undo has secret information, like gained action cards
|
||||
action.undo.clear();
|
||||
|
||||
if let Action::Response(EventResponse::SelectHandCards(c)) = &mut action.action {
|
||||
// player shouldn't see other player's hand cards
|
||||
c.clear();
|
||||
}
|
||||
|
||||
for item in &mut action.items {
|
||||
if let ActionLogEntry::HandCard { card, from, to } = &mut item.entry {
|
||||
if is_visible_card_info(player_index, from, to) {
|
||||
match &card {
|
||||
HandCard::ActionCard(_) => *card = HandCard::ActionCard(0),
|
||||
HandCard::ObjectiveCard(_) => *card = HandCard::ObjectiveCard(0),
|
||||
HandCard::Wonder(_) => *card = HandCard::Wonder(Wonder::Hidden),
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fn is_visible_card_info(
|
||||
player_index: Option<usize>,
|
||||
from: &HandCardLocation,
|
||||
to: &HandCardLocation,
|
||||
) -> bool {
|
||||
from.player() == player_index
|
||||
|| to.player() == player_index
|
||||
|| from.is_public()
|
||||
|| to.is_public()
|
||||
}
|
||||
|
||||
fn strip_events(game: &mut Game, player_index: Option<usize>) {
|
||||
for s in &mut game.events {
|
||||
match &mut s.event_type {
|
||||
PersistentEventType::CombatRoundStart(r) => {
|
||||
|
|
@ -158,17 +212,4 @@ pub fn strip_secret(mut game: Game, player_index: Option<usize>) -> Game {
|
|||
}
|
||||
}
|
||||
}
|
||||
let player_log = current_player_turn_log_mut(&mut game);
|
||||
if player_index != Some(player_log.index) {
|
||||
for l in &mut player_log.actions {
|
||||
// undo has secret information, like gained action cards
|
||||
l.undo.clear();
|
||||
if let Action::Response(EventResponse::SelectHandCards(c)) = &mut l.action {
|
||||
// player shouldn't see other player's hand cards
|
||||
c.clear();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
game
|
||||
}
|
||||
|
|
|
|||
|
|
@ -189,17 +189,12 @@ fn execute_setup_round(setup: &GameSetup, game: &mut Game) {
|
|||
|
||||
let p = game.player(player_index);
|
||||
game.add_info_log_group(format!("{p} is playing as {}", p.civilization.name));
|
||||
gain_action_card_from_pile(game, player_index);
|
||||
let origin = setup_event_origin();
|
||||
gain_action_card_from_pile(game, player_index, &origin);
|
||||
gain_objective_card_from_pile(game, player_index);
|
||||
if setup.random_map {
|
||||
let home = game.player(player_index).cities[0].position;
|
||||
gain_unit(
|
||||
game,
|
||||
player_index,
|
||||
home,
|
||||
UnitType::Settler,
|
||||
&setup_event_origin(),
|
||||
);
|
||||
gain_unit(game, player_index, home, UnitType::Settler, &origin);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@ extern crate core;
|
|||
pub mod ability_initializer;
|
||||
pub mod action;
|
||||
pub mod action_card;
|
||||
mod action_cost;
|
||||
pub mod advance;
|
||||
#[cfg(not(target_arch = "wasm32"))]
|
||||
pub mod ai;
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
use crate::card::{HandCard, HandCardLocation};
|
||||
use crate::city::MoodState;
|
||||
use crate::combat_stats::CombatStats;
|
||||
use crate::events::EventOrigin;
|
||||
|
|
@ -119,17 +120,44 @@ pub enum ActionLogEntry {
|
|||
units: Units,
|
||||
balance: ActionLogBalance,
|
||||
},
|
||||
HandCard {
|
||||
card: HandCard,
|
||||
from: HandCardLocation,
|
||||
to: HandCardLocation,
|
||||
},
|
||||
MoodChange {
|
||||
city: Position,
|
||||
mood: MoodState,
|
||||
},
|
||||
}
|
||||
|
||||
impl ActionLogEntry {
|
||||
#[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 hand_card(card: HandCard, from: HandCardLocation, to: HandCardLocation) -> Self {
|
||||
Self::HandCard { card, from, to }
|
||||
}
|
||||
|
||||
#[must_use]
|
||||
pub fn mood_change(city: Position, mood: MoodState) -> Self {
|
||||
Self::MoodChange { city, mood }
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Clone, PartialEq)]
|
||||
pub struct ActionLogItem {
|
||||
player: usize,
|
||||
pub player: usize,
|
||||
#[serde(flatten)]
|
||||
entry: ActionLogEntry,
|
||||
pub entry: ActionLogEntry,
|
||||
origin: EventOrigin,
|
||||
#[serde(default)]
|
||||
#[serde(skip_serializing_if = "Vec::is_empty")]
|
||||
|
|
|
|||
|
|
@ -597,10 +597,7 @@ pub fn gain_units(
|
|||
add_action_log_item(
|
||||
game,
|
||||
player,
|
||||
ActionLogEntry::Units {
|
||||
balance: ActionLogBalance::Gain,
|
||||
units,
|
||||
},
|
||||
ActionLogEntry::units(units, ActionLogBalance::Gain),
|
||||
origin.clone(),
|
||||
vec![],
|
||||
);
|
||||
|
|
|
|||
|
|
@ -1,8 +1,11 @@
|
|||
use crate::action_cost::ActionResourceCost;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
use crate::ability_initializer::AbilityInitializerSetup;
|
||||
use crate::action_card::{can_play_civil_card, log_execute_action_card, play_action_card};
|
||||
use crate::advance::{AdvanceAction, base_advance_cost, execute_advance_action};
|
||||
use crate::action_card::{can_play_civil_card, discard_action_card, play_action_card};
|
||||
use crate::action_cost::ActionCost;
|
||||
use crate::advance::{AdvanceAction, execute_advance_action};
|
||||
use crate::card::HandCardLocation;
|
||||
use crate::city::execute_found_city_action;
|
||||
use crate::collect::{Collect, execute_collect};
|
||||
use crate::construct::Construct;
|
||||
|
|
@ -15,7 +18,7 @@ use crate::content::persistent_events::{
|
|||
PaymentRequest, PersistentEventType, TriggerPersistentEventParams, trigger_persistent_event_ext,
|
||||
};
|
||||
use crate::cultural_influence::{InfluenceCultureAttempt, execute_influence_culture_attempt};
|
||||
use crate::events::{EventOrigin, check_event_origin};
|
||||
use crate::events::EventOrigin;
|
||||
use crate::game::GameState;
|
||||
use crate::happiness::{IncreaseHappiness, execute_increase_happiness};
|
||||
use crate::payment::PaymentOptions;
|
||||
|
|
@ -90,12 +93,14 @@ impl PlayingActionType {
|
|||
.player(player)
|
||||
.custom_action_info(*custom_action)
|
||||
.cost
|
||||
.action_type
|
||||
.cost
|
||||
.clone(),
|
||||
PlayingActionType::ActionCard(id) => game.cache.get_civil_card(*id).action_type.clone(),
|
||||
// action cost of wonder is checked later
|
||||
PlayingActionType::WonderCard(_) | PlayingActionType::EndTurn => ActionCost::free(),
|
||||
_ => ActionCost::regular(),
|
||||
PlayingActionType::WonderCard(_) | PlayingActionType::EndTurn => {
|
||||
ActionCost::new(true, ActionResourceCost::free())
|
||||
}
|
||||
_ => ActionCost::new(false, ActionResourceCost::free()),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -167,7 +172,13 @@ impl PlayingAction {
|
|||
log_start_custom_action(game, player_index, a);
|
||||
}
|
||||
PlayingAction::ActionCard(id) => {
|
||||
log_execute_action_card(game, player_index, *id);
|
||||
discard_action_card(
|
||||
game,
|
||||
player_index,
|
||||
*id,
|
||||
&EventOrigin::Ability("Action Card".to_string()),
|
||||
HandCardLocation::PlayToDiscard,
|
||||
);
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
|
|
@ -297,96 +308,6 @@ fn assert_allowed_action_type(
|
|||
playing_action_type.clone()
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, PartialEq)]
|
||||
pub enum ActionResourceCost {
|
||||
Free,
|
||||
Resources(ResourcePile),
|
||||
Tokens(u8),
|
||||
AdvanceCostWithoutDiscount,
|
||||
}
|
||||
|
||||
impl ActionResourceCost {
|
||||
#[must_use]
|
||||
pub fn free() -> Self {
|
||||
ActionResourceCost::Free
|
||||
}
|
||||
|
||||
#[must_use]
|
||||
pub fn resources(cost: ResourcePile) -> Self {
|
||||
if cost.is_empty() {
|
||||
return ActionResourceCost::Free;
|
||||
}
|
||||
ActionResourceCost::Resources(cost)
|
||||
}
|
||||
|
||||
#[must_use]
|
||||
pub fn tokens(tokens: u8) -> Self {
|
||||
if tokens == 0 {
|
||||
return ActionResourceCost::Free;
|
||||
}
|
||||
ActionResourceCost::Tokens(tokens)
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, PartialEq)]
|
||||
pub struct ActionCost {
|
||||
pub free: bool,
|
||||
pub cost: ActionResourceCost,
|
||||
}
|
||||
|
||||
impl ActionCost {
|
||||
pub(crate) fn is_available(&self, game: &Game, player_index: usize) -> Result<(), String> {
|
||||
let p = game.player(player_index);
|
||||
if !p.can_afford(&self.payment_options(p, check_event_origin())) {
|
||||
return Err("Not enough resources for action type".to_string());
|
||||
}
|
||||
|
||||
if !(self.free || game.actions_left > 0) {
|
||||
return Err("No actions left".to_string());
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[must_use]
|
||||
pub fn payment_options(&self, player: &Player, origin: EventOrigin) -> PaymentOptions {
|
||||
match &self.cost {
|
||||
ActionResourceCost::Free => PaymentOptions::free(),
|
||||
ActionResourceCost::Resources(c) => {
|
||||
PaymentOptions::resources(player, origin, c.clone())
|
||||
}
|
||||
ActionResourceCost::Tokens(tokens) => PaymentOptions::tokens(player, origin, *tokens),
|
||||
ActionResourceCost::AdvanceCostWithoutDiscount => base_advance_cost(player),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl ActionCost {
|
||||
#[must_use]
|
||||
pub fn cost(cost: ResourcePile) -> Self {
|
||||
Self::new(true, ActionResourceCost::resources(cost))
|
||||
}
|
||||
|
||||
#[must_use]
|
||||
pub fn regular() -> Self {
|
||||
Self::new(false, ActionResourceCost::free())
|
||||
}
|
||||
|
||||
#[must_use]
|
||||
pub fn regular_with_cost(cost: ResourcePile) -> Self {
|
||||
Self::new(false, ActionResourceCost::resources(cost))
|
||||
}
|
||||
|
||||
#[must_use]
|
||||
pub fn free() -> Self {
|
||||
Self::new(true, ActionResourceCost::free())
|
||||
}
|
||||
|
||||
#[must_use]
|
||||
pub fn new(free: bool, cost: ActionResourceCost) -> Self {
|
||||
Self { free, cost }
|
||||
}
|
||||
}
|
||||
|
||||
#[must_use]
|
||||
pub(crate) fn base_or_custom_available(
|
||||
game: &Game,
|
||||
|
|
|
|||
|
|
@ -112,10 +112,7 @@ pub(crate) fn gain_resources_with_modifiers(
|
|||
add_action_log_item(
|
||||
game,
|
||||
player,
|
||||
ActionLogEntry::Resources {
|
||||
resources,
|
||||
balance: ActionLogBalance::Gain,
|
||||
},
|
||||
ActionLogEntry::resources(resources, ActionLogBalance::Gain),
|
||||
origin,
|
||||
modifiers,
|
||||
);
|
||||
|
|
@ -158,10 +155,7 @@ pub(crate) fn lose_resources(
|
|||
add_action_log_item(
|
||||
game,
|
||||
player,
|
||||
ActionLogEntry::Resources {
|
||||
resources,
|
||||
balance: ActionLogBalance::Loss,
|
||||
},
|
||||
ActionLogEntry::resources(resources, ActionLogBalance::Loss),
|
||||
origin,
|
||||
modifiers,
|
||||
);
|
||||
|
|
|
|||
|
|
@ -182,7 +182,7 @@ pub(crate) fn draw_cards() -> Ability {
|
|||
|event| &mut event.status_phase,
|
||||
0,
|
||||
|game, p, _s| {
|
||||
gain_action_card_from_pile(game, p.index);
|
||||
gain_action_card_from_pile(game, p.index, &p.origin);
|
||||
gain_objective_card_from_pile(game, p.index);
|
||||
},
|
||||
)
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ use crate::ability_initializer::{
|
|||
use crate::action_card;
|
||||
use crate::action_card::ActionCard;
|
||||
use crate::advance::AdvanceBuilder;
|
||||
use crate::card::HandCard;
|
||||
use crate::card::{HandCard, HandCardLocation};
|
||||
use crate::combat::{Combat, CombatModifier, get_combat_strength, update_combat_strength};
|
||||
use crate::combat_listeners::{CombatRoundEnd, CombatRoundStart, CombatStrength};
|
||||
use crate::content::persistent_events::HandCardsRequest;
|
||||
|
|
@ -318,14 +318,19 @@ pub(crate) fn play_tactics_card(b: AdvanceBuilder) -> AdvanceBuilder {
|
|||
s.log(game, "Did not play a Tactics Card");
|
||||
} else {
|
||||
let player = s.player_index;
|
||||
s.log(game, "Played a Tactics Card");
|
||||
let HandCard::ActionCard(card) = s.choice[0] else {
|
||||
panic!("Expected ActionCard, got {:?}", s.choice[0]);
|
||||
};
|
||||
update_combat_strength(game, player, r, move |_game, _c, s, _role| {
|
||||
s.tactics_card = Some(card);
|
||||
});
|
||||
discard_action_card(game, player, card);
|
||||
discard_action_card(
|
||||
game,
|
||||
player,
|
||||
card,
|
||||
&s.origin,
|
||||
HandCardLocation::PlayToDiscardFaceDown,
|
||||
);
|
||||
}
|
||||
},
|
||||
)
|
||||
|
|
|
|||
|
|
@ -600,10 +600,7 @@ pub(crate) fn kill_units_without_event(
|
|||
add_action_log_item(
|
||||
game,
|
||||
player,
|
||||
ActionLogEntry::Units {
|
||||
balance: ActionLogBalance::Loss,
|
||||
units,
|
||||
},
|
||||
ActionLogEntry::units(units, ActionLogBalance::Loss),
|
||||
origin.clone(),
|
||||
vec![],
|
||||
);
|
||||
|
|
|
|||
|
|
@ -343,7 +343,7 @@ fn test_synergies() {
|
|||
TestAction::undoable(0, Action::Playing(PlayingAction::ActionCard(34))).skip_json(),
|
||||
TestAction::undoable(
|
||||
0,
|
||||
Action::Response(EventResponse::SelectAdvance(advance::Advance::Cartography)),
|
||||
Action::Response(EventResponse::SelectAdvance(advance::Advance::Fishing)),
|
||||
)
|
||||
.skip_json(),
|
||||
TestAction::undoable(0, payment_response(ResourcePile::ideas(2))).skip_json(),
|
||||
|
|
@ -392,10 +392,10 @@ fn test_militia() {
|
|||
fn test_tech_trade() {
|
||||
JSON.test(
|
||||
"tech_trade",
|
||||
vec![
|
||||
TestAction::undoable(0, Action::Playing(PlayingAction::ActionCard(39))).skip_json(),
|
||||
TestAction::undoable(0, payment_response(ResourcePile::culture_tokens(1))),
|
||||
],
|
||||
vec![TestAction::undoable(
|
||||
0,
|
||||
Action::Playing(PlayingAction::ActionCard(39)),
|
||||
)],
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -195,7 +195,24 @@
|
|||
"Playing": {
|
||||
"ActionCard": 2
|
||||
}
|
||||
}
|
||||
},
|
||||
"items": [
|
||||
{
|
||||
"player": 0,
|
||||
"HandCard": {
|
||||
"card": {
|
||||
"ActionCard": 2
|
||||
},
|
||||
"from": {
|
||||
"Hand": 0
|
||||
},
|
||||
"to": "PlayToDiscard"
|
||||
},
|
||||
"origin": {
|
||||
"Ability": "Action Card"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"action": {
|
||||
|
|
@ -253,15 +270,15 @@
|
|||
"action_log_index": 3,
|
||||
"log": [
|
||||
[
|
||||
"Player1 played the action card Advance",
|
||||
"Player1 has to pay 1 culture token for Advance"
|
||||
"Player1: Action Card: Play Quick Advance/Encircled",
|
||||
"Player1 has to pay 1 culture token for Quick Advance"
|
||||
],
|
||||
[
|
||||
"Player1: Advance: Pay 1 culture token"
|
||||
"Player1: Quick Advance: Pay 1 culture token"
|
||||
],
|
||||
[
|
||||
"Player1: Storage: Gain 1 mood token",
|
||||
"Player1: Advance: Gain Storage using the Advance action card."
|
||||
"Player1: Quick Advance: Gain Storage"
|
||||
]
|
||||
],
|
||||
"undo_limit": 0,
|
||||
|
|
|
|||
|
|
@ -223,7 +223,24 @@
|
|||
"Playing": {
|
||||
"ActionCard": 27
|
||||
}
|
||||
}
|
||||
},
|
||||
"items": [
|
||||
{
|
||||
"player": 0,
|
||||
"HandCard": {
|
||||
"card": {
|
||||
"ActionCard": 27
|
||||
},
|
||||
"from": {
|
||||
"Hand": 0
|
||||
},
|
||||
"to": "PlayToDiscard"
|
||||
},
|
||||
"origin": {
|
||||
"Ability": "Action Card"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"action": {
|
||||
|
|
@ -283,7 +300,7 @@
|
|||
"action_log_index": 0,
|
||||
"log": [
|
||||
[
|
||||
"Player1 played the action card Assassination",
|
||||
"Player1: Action Card: Play Assassination/High Ground",
|
||||
"Player1 has to pay 1 culture token for Assassination"
|
||||
],
|
||||
[
|
||||
|
|
|
|||
|
|
@ -221,7 +221,24 @@
|
|||
"Playing": {
|
||||
"ActionCard": 17
|
||||
}
|
||||
}
|
||||
},
|
||||
"items": [
|
||||
{
|
||||
"player": 0,
|
||||
"HandCard": {
|
||||
"card": {
|
||||
"ActionCard": 17
|
||||
},
|
||||
"from": {
|
||||
"Hand": 0
|
||||
},
|
||||
"to": "PlayToDiscard"
|
||||
},
|
||||
"origin": {
|
||||
"Ability": "Action Card"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"action": {
|
||||
|
|
@ -290,7 +307,7 @@
|
|||
"action_log_index": 3,
|
||||
"log": [
|
||||
[
|
||||
"Player1 played the action card City Development",
|
||||
"Player1: Action Card: Play City Development/Tactical Retreat",
|
||||
"Player1 has to pay 1 culture token for City Development"
|
||||
],
|
||||
[
|
||||
|
|
|
|||
|
|
@ -232,7 +232,24 @@
|
|||
"Playing": {
|
||||
"ActionCard": 15
|
||||
}
|
||||
}
|
||||
},
|
||||
"items": [
|
||||
{
|
||||
"player": 0,
|
||||
"HandCard": {
|
||||
"card": {
|
||||
"ActionCard": 15
|
||||
},
|
||||
"from": {
|
||||
"Hand": 0
|
||||
},
|
||||
"to": "PlayToDiscard"
|
||||
},
|
||||
"origin": {
|
||||
"Ability": "Action Card"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"action": {
|
||||
|
|
@ -294,7 +311,7 @@
|
|||
"action_log_index": 3,
|
||||
"log": [
|
||||
[
|
||||
"Player1 played the action card Cultural Takeover",
|
||||
"Player1: Action Card: Play Cultural Takeover/Heavy Resistance",
|
||||
"Player1: Cultural Takeover: You may influence Barbarian cities of size 1."
|
||||
],
|
||||
[
|
||||
|
|
|
|||
|
|
@ -355,7 +355,24 @@
|
|||
"Playing": {
|
||||
"ActionCard": 21
|
||||
}
|
||||
}
|
||||
},
|
||||
"items": [
|
||||
{
|
||||
"player": 1,
|
||||
"HandCard": {
|
||||
"card": {
|
||||
"ActionCard": 21
|
||||
},
|
||||
"from": {
|
||||
"Hand": 1
|
||||
},
|
||||
"to": "PlayToDiscard"
|
||||
},
|
||||
"origin": {
|
||||
"Ability": "Action Card"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"action": {
|
||||
|
|
@ -431,7 +448,7 @@
|
|||
"action_log_index": 5,
|
||||
"log": [
|
||||
[
|
||||
"Player2 played the action card Explorer",
|
||||
"Player2: Action Card: Play Explorer/Encircled",
|
||||
"Player2 has to pay 1 culture token for Explorer"
|
||||
],
|
||||
[
|
||||
|
|
|
|||
|
|
@ -252,6 +252,21 @@
|
|||
}
|
||||
},
|
||||
"items": [
|
||||
{
|
||||
"player": 0,
|
||||
"HandCard": {
|
||||
"card": {
|
||||
"ActionCard": 11
|
||||
},
|
||||
"from": {
|
||||
"Hand": 0
|
||||
},
|
||||
"to": "PlayToDiscard"
|
||||
},
|
||||
"origin": {
|
||||
"Ability": "Action Card"
|
||||
}
|
||||
},
|
||||
{
|
||||
"player": 0,
|
||||
"Resources": {
|
||||
|
|
@ -281,7 +296,7 @@
|
|||
"Player1: Waste: Could not store 1 gold"
|
||||
],
|
||||
[
|
||||
"Player1 played the action card Great Ideas",
|
||||
"Player1: Action Card: Play Great Ideas/Siege",
|
||||
"Player1: Great Ideas: Gain 2 ideas"
|
||||
]
|
||||
],
|
||||
|
|
|
|||
|
|
@ -272,7 +272,24 @@
|
|||
"Playing": {
|
||||
"ActionCard": 5
|
||||
}
|
||||
}
|
||||
},
|
||||
"items": [
|
||||
{
|
||||
"player": 0,
|
||||
"HandCard": {
|
||||
"card": {
|
||||
"ActionCard": 5
|
||||
},
|
||||
"from": {
|
||||
"Hand": 0
|
||||
},
|
||||
"to": "PlayToDiscard"
|
||||
},
|
||||
"origin": {
|
||||
"Ability": "Action Card"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"action": {
|
||||
|
|
@ -369,7 +386,7 @@
|
|||
"Player1: Waste: Could not store 1 gold"
|
||||
],
|
||||
[
|
||||
"Player1 played the action card Hero General"
|
||||
"Player1: Action Card: Play Hero General/Wedge Formation"
|
||||
],
|
||||
[
|
||||
"Player1: Hero General: City C1 became Neutral"
|
||||
|
|
|
|||
|
|
@ -200,6 +200,21 @@
|
|||
}
|
||||
},
|
||||
"items": [
|
||||
{
|
||||
"player": 0,
|
||||
"HandCard": {
|
||||
"card": {
|
||||
"ActionCard": 9
|
||||
},
|
||||
"from": {
|
||||
"Hand": 0
|
||||
},
|
||||
"to": "PlayToDiscard"
|
||||
},
|
||||
"origin": {
|
||||
"Ability": "Action Card"
|
||||
}
|
||||
},
|
||||
{
|
||||
"player": 0,
|
||||
"Resources": {
|
||||
|
|
@ -224,7 +239,7 @@
|
|||
"action_log_index": 1,
|
||||
"log": [
|
||||
[
|
||||
"Player1 played the action card Ideas",
|
||||
"Player1: Action Card: Play Ideas/High Ground",
|
||||
"Player1: Ideas: Gain 1 idea"
|
||||
]
|
||||
],
|
||||
|
|
|
|||
|
|
@ -198,6 +198,21 @@
|
|||
}
|
||||
},
|
||||
"items": [
|
||||
{
|
||||
"player": 0,
|
||||
"HandCard": {
|
||||
"card": {
|
||||
"ActionCard": 3
|
||||
},
|
||||
"from": {
|
||||
"Hand": 0
|
||||
},
|
||||
"to": "PlayToDiscard"
|
||||
},
|
||||
"origin": {
|
||||
"Ability": "Action Card"
|
||||
}
|
||||
},
|
||||
{
|
||||
"player": 0,
|
||||
"Resources": {
|
||||
|
|
@ -222,7 +237,7 @@
|
|||
"action_log_index": 1,
|
||||
"log": [
|
||||
[
|
||||
"Player1 played the action card Inspiration",
|
||||
"Player1: Action Card: Play Inspiration/Encircled",
|
||||
"Player1: Storage: Gain 1 mood token",
|
||||
"Player1: Inspiration: Gain Storage for free using Inspiration."
|
||||
]
|
||||
|
|
|
|||
|
|
@ -239,7 +239,24 @@
|
|||
"Playing": {
|
||||
"ActionCard": 13
|
||||
}
|
||||
}
|
||||
},
|
||||
"items": [
|
||||
{
|
||||
"player": 0,
|
||||
"HandCard": {
|
||||
"card": {
|
||||
"ActionCard": 13
|
||||
},
|
||||
"from": {
|
||||
"Hand": 0
|
||||
},
|
||||
"to": "PlayToDiscard"
|
||||
},
|
||||
"origin": {
|
||||
"Ability": "Action Card"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"action": {
|
||||
|
|
@ -346,7 +363,7 @@
|
|||
"action_log_index": 3,
|
||||
"log": [
|
||||
[
|
||||
"Player1 played the action card Mercenaries",
|
||||
"Player1: Action Card: Play Mercenaries/For the People",
|
||||
"Player1: Mercenaries: Player1 cannot move Barbarian army at A3 because Sulla is in range"
|
||||
],
|
||||
[
|
||||
|
|
|
|||
|
|
@ -196,7 +196,24 @@
|
|||
"Playing": {
|
||||
"ActionCard": 37
|
||||
}
|
||||
}
|
||||
},
|
||||
"items": [
|
||||
{
|
||||
"player": 0,
|
||||
"HandCard": {
|
||||
"card": {
|
||||
"ActionCard": 37
|
||||
},
|
||||
"from": {
|
||||
"Hand": 0
|
||||
},
|
||||
"to": "PlayToDiscard"
|
||||
},
|
||||
"origin": {
|
||||
"Ability": "Action Card"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"action": {
|
||||
|
|
@ -245,7 +262,7 @@
|
|||
"action_log_index": 2,
|
||||
"log": [
|
||||
[
|
||||
"Player1 played the action card Militia",
|
||||
"Player1: Action Card: Play Militia/Wedge Formation",
|
||||
"Player1 has to pay 1 culture token for Militia"
|
||||
],
|
||||
[
|
||||
|
|
|
|||
|
|
@ -218,7 +218,24 @@
|
|||
"Playing": {
|
||||
"ActionCard": 23
|
||||
}
|
||||
}
|
||||
},
|
||||
"items": [
|
||||
{
|
||||
"player": 0,
|
||||
"HandCard": {
|
||||
"card": {
|
||||
"ActionCard": 23
|
||||
},
|
||||
"from": {
|
||||
"Hand": 0
|
||||
},
|
||||
"to": "PlayToDiscard"
|
||||
},
|
||||
"origin": {
|
||||
"Ability": "Action Card"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"action": {
|
||||
|
|
@ -343,7 +360,7 @@
|
|||
"action_log_index": 1,
|
||||
"log": [
|
||||
[
|
||||
"Player1 played the action card Negotiations",
|
||||
"Player1: Action Card: Play Negotiations/Scout",
|
||||
"Player1 has to pay 1 culture token for Negotiations"
|
||||
],
|
||||
[
|
||||
|
|
|
|||
|
|
@ -197,7 +197,24 @@
|
|||
"Playing": {
|
||||
"ActionCard": 41
|
||||
}
|
||||
}
|
||||
},
|
||||
"items": [
|
||||
{
|
||||
"player": 0,
|
||||
"HandCard": {
|
||||
"card": {
|
||||
"ActionCard": 41
|
||||
},
|
||||
"from": {
|
||||
"Hand": 0
|
||||
},
|
||||
"to": "PlayToDiscard"
|
||||
},
|
||||
"origin": {
|
||||
"Ability": "Action Card"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"action": {
|
||||
|
|
@ -265,7 +282,7 @@
|
|||
"action_log_index": 3,
|
||||
"log": [
|
||||
[
|
||||
"Player1 played the action card New Ideas"
|
||||
"Player1: Action Card: Play New Ideas/High Morale"
|
||||
],
|
||||
[
|
||||
"Player1: New Ideas: Selected Storage as advance for New Ideas."
|
||||
|
|
|
|||
|
|
@ -207,7 +207,24 @@
|
|||
"Playing": {
|
||||
"ActionCard": 31
|
||||
}
|
||||
}
|
||||
},
|
||||
"items": [
|
||||
{
|
||||
"player": 0,
|
||||
"HandCard": {
|
||||
"card": {
|
||||
"ActionCard": 31
|
||||
},
|
||||
"from": {
|
||||
"Hand": 0
|
||||
},
|
||||
"to": "PlayToDiscard"
|
||||
},
|
||||
"origin": {
|
||||
"Ability": "Action Card"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"action": {
|
||||
|
|
@ -258,7 +275,7 @@
|
|||
"action_log_index": 3,
|
||||
"log": [
|
||||
[
|
||||
"Player1 played the action card New Plans",
|
||||
"Player1: Action Card: Play New Plans/Flanking",
|
||||
"Player1 has to pay 1 culture token for New Plans"
|
||||
],
|
||||
[
|
||||
|
|
|
|||
|
|
@ -217,7 +217,24 @@
|
|||
"Playing": {
|
||||
"ActionCard": 29
|
||||
}
|
||||
}
|
||||
},
|
||||
"items": [
|
||||
{
|
||||
"player": 0,
|
||||
"HandCard": {
|
||||
"card": {
|
||||
"ActionCard": 29
|
||||
},
|
||||
"from": {
|
||||
"Hand": 0
|
||||
},
|
||||
"to": "PlayToDiscard"
|
||||
},
|
||||
"origin": {
|
||||
"Ability": "Action Card"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"action": {
|
||||
|
|
@ -278,7 +295,7 @@
|
|||
"action_log_index": 2,
|
||||
"log": [
|
||||
[
|
||||
"Player1 played the action card Overproduction",
|
||||
"Player1: Action Card: Play Overproduction/Defensive Formation",
|
||||
"Player1: Overproduction: Can use Overproduction to collect from 2 additional tiles."
|
||||
],
|
||||
[
|
||||
|
|
|
|||
|
|
@ -218,7 +218,24 @@
|
|||
"Playing": {
|
||||
"ActionCard": 19
|
||||
}
|
||||
}
|
||||
},
|
||||
"items": [
|
||||
{
|
||||
"player": 0,
|
||||
"HandCard": {
|
||||
"card": {
|
||||
"ActionCard": 19
|
||||
},
|
||||
"from": {
|
||||
"Hand": 0
|
||||
},
|
||||
"to": "PlayToDiscard"
|
||||
},
|
||||
"origin": {
|
||||
"Ability": "Action Card"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"action": {
|
||||
|
|
@ -279,7 +296,7 @@
|
|||
"action_log_index": 2,
|
||||
"log": [
|
||||
[
|
||||
"Player1 played the action card Production Focus",
|
||||
"Player1: Action Card: Play Production Focus/Tactical Retreat",
|
||||
"Player1: Production Focus: Production Focus: You may collect multiple times from the same tile."
|
||||
],
|
||||
[
|
||||
|
|
|
|||
|
|
@ -85,7 +85,7 @@
|
|||
],
|
||||
"next_unit_id": 8,
|
||||
"secrets": [
|
||||
"Player2 has the following action cards: Advance/Encircled, Inspiration/Encircled, Inspiration/Peltasts",
|
||||
"Player2 has the following action cards: Quick Advance/Encircled, Inspiration/Encircled, Inspiration/Peltasts",
|
||||
"Player2 has the following objective cards: ",
|
||||
"Player2 has the following wonder cards: Pyramids"
|
||||
]
|
||||
|
|
@ -211,7 +211,24 @@
|
|||
"Playing": {
|
||||
"ActionCard": 7
|
||||
}
|
||||
}
|
||||
},
|
||||
"items": [
|
||||
{
|
||||
"player": 0,
|
||||
"HandCard": {
|
||||
"card": {
|
||||
"ActionCard": 7
|
||||
},
|
||||
"from": {
|
||||
"Hand": 0
|
||||
},
|
||||
"to": "PlayToDiscard"
|
||||
},
|
||||
"origin": {
|
||||
"Ability": "Action Card"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"action": {
|
||||
|
|
@ -250,7 +267,43 @@
|
|||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"items": [
|
||||
{
|
||||
"player": 1,
|
||||
"HandCard": {
|
||||
"card": {
|
||||
"ActionCard": 1
|
||||
},
|
||||
"from": {
|
||||
"Hand": 0
|
||||
},
|
||||
"to": {
|
||||
"Hand": 1
|
||||
}
|
||||
},
|
||||
"origin": {
|
||||
"CivilCard": 7
|
||||
}
|
||||
},
|
||||
{
|
||||
"player": 0,
|
||||
"HandCard": {
|
||||
"card": {
|
||||
"ActionCard": 2
|
||||
},
|
||||
"from": {
|
||||
"Hand": 1
|
||||
},
|
||||
"to": {
|
||||
"Hand": 0
|
||||
}
|
||||
},
|
||||
"origin": {
|
||||
"CivilCard": 7
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -262,7 +315,7 @@
|
|||
"action_log_index": 3,
|
||||
"log": [
|
||||
[
|
||||
"Player1 played the action card Spy",
|
||||
"Player1: Action Card: Play Spy/Heavy Resistance",
|
||||
"Player1 has to pay 1 culture token for Spy"
|
||||
],
|
||||
[
|
||||
|
|
@ -270,6 +323,8 @@
|
|||
"Player1: Spy: Decided to looked at all Wonder, Action, and Objective cards of Player2"
|
||||
],
|
||||
[
|
||||
"Player2: Spy: Gain an action card from Player1",
|
||||
"Player1: Spy: Gain an action card from Player2",
|
||||
"Player1 decided to swap an action card with Player2"
|
||||
]
|
||||
],
|
||||
|
|
|
|||
|
|
@ -60,7 +60,6 @@
|
|||
"civilization": "Rome",
|
||||
"advances": [
|
||||
"Farming",
|
||||
"Fishing",
|
||||
"Mining",
|
||||
"Storage",
|
||||
"Tactics"
|
||||
|
|
|
|||
|
|
@ -9,8 +9,8 @@
|
|||
"ore": 5,
|
||||
"ideas": 1,
|
||||
"gold": 7,
|
||||
"mood_tokens": 8,
|
||||
"culture_tokens": 8
|
||||
"mood_tokens": 9,
|
||||
"culture_tokens": 7
|
||||
},
|
||||
"resource_limit": {
|
||||
"food": 7,
|
||||
|
|
@ -59,7 +59,6 @@
|
|||
],
|
||||
"civilization": "Rome",
|
||||
"advances": [
|
||||
"Cartography",
|
||||
"Farming",
|
||||
"Fishing",
|
||||
"Mining",
|
||||
|
|
@ -217,12 +216,29 @@
|
|||
"Playing": {
|
||||
"ActionCard": 34
|
||||
}
|
||||
}
|
||||
},
|
||||
"items": [
|
||||
{
|
||||
"player": 0,
|
||||
"HandCard": {
|
||||
"card": {
|
||||
"ActionCard": 34
|
||||
},
|
||||
"from": {
|
||||
"Hand": 0
|
||||
},
|
||||
"to": "PlayToDiscard"
|
||||
},
|
||||
"origin": {
|
||||
"Ability": "Action Card"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"action": {
|
||||
"Response": {
|
||||
"SelectAdvance": "Cartography"
|
||||
"SelectAdvance": "Fishing"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
@ -253,12 +269,12 @@
|
|||
"player": 0,
|
||||
"Resources": {
|
||||
"resources": {
|
||||
"culture_tokens": 1
|
||||
"mood_tokens": 1
|
||||
},
|
||||
"balance": "Gain"
|
||||
},
|
||||
"origin": {
|
||||
"Advance": "Cartography"
|
||||
"Advance": "Fishing"
|
||||
}
|
||||
}
|
||||
]
|
||||
|
|
@ -305,14 +321,14 @@
|
|||
"action_log_index": 5,
|
||||
"log": [
|
||||
[
|
||||
"Player1 played the action card Synergies"
|
||||
"Player1: Action Card: Play Synergies/Archers"
|
||||
],
|
||||
[
|
||||
"Player1: Synergies: Selected Cartography as first advance"
|
||||
"Player1: Synergies: Selected Fishing as first advance"
|
||||
],
|
||||
[
|
||||
"Player1: Advance: Pay 2 ideas",
|
||||
"Player1: Cartography: Gain 1 culture token"
|
||||
"Player1: Fishing: Gain 1 mood token"
|
||||
],
|
||||
[
|
||||
"Player1: Synergies: Selected WarShips as second advance"
|
||||
|
|
|
|||
|
|
@ -275,6 +275,36 @@
|
|||
}
|
||||
},
|
||||
"items": [
|
||||
{
|
||||
"player": 0,
|
||||
"HandCard": {
|
||||
"card": {
|
||||
"ActionCard": 35
|
||||
},
|
||||
"from": {
|
||||
"Hand": 0
|
||||
},
|
||||
"to": "PlayToDiscard"
|
||||
},
|
||||
"origin": {
|
||||
"Ability": "Teach us"
|
||||
}
|
||||
},
|
||||
{
|
||||
"player": 0,
|
||||
"HandCard": {
|
||||
"card": {
|
||||
"ActionCard": 1
|
||||
},
|
||||
"from": "DrawPile",
|
||||
"to": {
|
||||
"Hand": 0
|
||||
}
|
||||
},
|
||||
"origin": {
|
||||
"Advance": "Writing"
|
||||
}
|
||||
},
|
||||
{
|
||||
"player": 0,
|
||||
"Resources": {
|
||||
|
|
@ -314,9 +344,9 @@
|
|||
"Player1: Waste: Could not store 1 gold"
|
||||
],
|
||||
[
|
||||
"Player1: Teach us: Activate",
|
||||
"Player1: Teach us: Play Teach Us/Defensive Formation",
|
||||
"Player1: Teach us: Selected Writing as advance",
|
||||
"Player1 gained an action card from the pile",
|
||||
"Player1: Writing: Draw an action card",
|
||||
"Player1 gained an objective card from the pile",
|
||||
"Player1: Writing: Gain 1 culture token"
|
||||
]
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
"ideas": 3,
|
||||
"gold": 7,
|
||||
"mood_tokens": 8,
|
||||
"culture_tokens": 6
|
||||
"culture_tokens": 7
|
||||
},
|
||||
"resource_limit": {
|
||||
"food": 7,
|
||||
|
|
@ -208,29 +208,21 @@
|
|||
"Playing": {
|
||||
"ActionCard": 39
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"action": {
|
||||
"Response": {
|
||||
"Payment": [
|
||||
{
|
||||
"culture_tokens": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"items": [
|
||||
{
|
||||
"player": 0,
|
||||
"Resources": {
|
||||
"resources": {
|
||||
"culture_tokens": 1
|
||||
"HandCard": {
|
||||
"card": {
|
||||
"ActionCard": 39
|
||||
},
|
||||
"balance": "Loss"
|
||||
"from": {
|
||||
"Hand": 0
|
||||
},
|
||||
"to": "PlayToDiscard"
|
||||
},
|
||||
"origin": {
|
||||
"CivilCard": 39
|
||||
"Ability": "Action Card"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
@ -266,14 +258,10 @@
|
|||
]
|
||||
}
|
||||
],
|
||||
"action_log_index": 2,
|
||||
"action_log_index": 1,
|
||||
"log": [
|
||||
[
|
||||
"Player1 played the action card Technology Trade",
|
||||
"Player1 has to pay 1 culture token for Technology Trade"
|
||||
],
|
||||
[
|
||||
"Player1: Technology Trade: Pay 1 culture token",
|
||||
"Player1: Action Card: Play Technology Trade/Surprise",
|
||||
"Player1: Technology Trade: Selected Player2 as trade partner",
|
||||
"Player1: Technology Trade: Selected Storage as advance for Technology Trade.",
|
||||
"Player1: Storage: Gain 1 mood token",
|
||||
|
|
@ -279,7 +279,7 @@
|
|||
],
|
||||
[
|
||||
"Player1: Absolute Power: Pay 2 mood tokens",
|
||||
"Player1: Absolute Power: Gain an extra action using Absolute Power"
|
||||
"Player1: Absolute Power: Gain an extra action"
|
||||
]
|
||||
],
|
||||
"undo_limit": 0,
|
||||
|
|
|
|||
|
|
@ -203,7 +203,24 @@
|
|||
"action": "Bartering"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"items": [
|
||||
{
|
||||
"player": 0,
|
||||
"HandCard": {
|
||||
"card": {
|
||||
"ActionCard": 1
|
||||
},
|
||||
"from": {
|
||||
"Hand": 0
|
||||
},
|
||||
"to": "DiscardPile"
|
||||
},
|
||||
"origin": {
|
||||
"Ability": "Bartering"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"action": {
|
||||
|
|
@ -239,7 +256,7 @@
|
|||
"log": [
|
||||
[
|
||||
"Player1 started Bartering",
|
||||
"Player1: Bartering: Discard Advance/Peltasts for 1 gold or 1 culture token"
|
||||
"Player1: Bartering: Discard Quick Advance/Peltasts"
|
||||
],
|
||||
[
|
||||
"Player1: Bartering: Gain 1 gold",
|
||||
|
|
|
|||
|
|
@ -294,6 +294,21 @@
|
|||
"Ability": "Advance"
|
||||
}
|
||||
},
|
||||
{
|
||||
"player": 0,
|
||||
"HandCard": {
|
||||
"card": {
|
||||
"ActionCard": 1
|
||||
},
|
||||
"from": "DrawPile",
|
||||
"to": {
|
||||
"Hand": 0
|
||||
}
|
||||
},
|
||||
"origin": {
|
||||
"Advance": "Writing"
|
||||
}
|
||||
},
|
||||
{
|
||||
"player": 0,
|
||||
"Resources": {
|
||||
|
|
@ -364,7 +379,7 @@
|
|||
[
|
||||
"Player1: Advance: Pay 1 food and 1 gold",
|
||||
"Player1: Advance: Gain Writing",
|
||||
"Player1 gained an action card from the pile",
|
||||
"Player1: Writing: Draw an action card",
|
||||
"Player1 gained an objective card from the pile",
|
||||
"Player1: Writing: Gain 1 culture token"
|
||||
],
|
||||
|
|
|
|||
|
|
@ -234,6 +234,21 @@
|
|||
"origin": {
|
||||
"Ability": "Construct Building"
|
||||
}
|
||||
},
|
||||
{
|
||||
"player": 0,
|
||||
"HandCard": {
|
||||
"card": {
|
||||
"ActionCard": 1
|
||||
},
|
||||
"from": "DrawPile",
|
||||
"to": {
|
||||
"Hand": 0
|
||||
}
|
||||
},
|
||||
"origin": {
|
||||
"Ability": "Observatory"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -250,7 +265,7 @@
|
|||
"Player1: Construct Building: City C2 became Neutral",
|
||||
"Player1: Construct Building: Pay 1 food, 1 wood and 1 ore",
|
||||
"Player1: Construct Building: Build a Observatory in the city C2",
|
||||
"Player1 gained an action card from the pile",
|
||||
"Player1: Observatory: Draw an action card",
|
||||
"Player1: Observatory: Observatory gained 1 action card"
|
||||
]
|
||||
],
|
||||
|
|
|
|||
|
|
@ -402,6 +402,21 @@
|
|||
{
|
||||
"action": "StartTurn",
|
||||
"items": [
|
||||
{
|
||||
"player": 0,
|
||||
"HandCard": {
|
||||
"card": {
|
||||
"ActionCard": 27
|
||||
},
|
||||
"from": "DrawPile",
|
||||
"to": {
|
||||
"Hand": 0
|
||||
}
|
||||
},
|
||||
"origin": {
|
||||
"Ability": "Setup"
|
||||
}
|
||||
},
|
||||
{
|
||||
"player": 0,
|
||||
"Units": {
|
||||
|
|
@ -424,6 +439,21 @@
|
|||
{
|
||||
"action": "StartTurn",
|
||||
"items": [
|
||||
{
|
||||
"player": 1,
|
||||
"HandCard": {
|
||||
"card": {
|
||||
"ActionCard": 22
|
||||
},
|
||||
"from": "DrawPile",
|
||||
"to": {
|
||||
"Hand": 1
|
||||
}
|
||||
},
|
||||
"origin": {
|
||||
"Ability": "Setup"
|
||||
}
|
||||
},
|
||||
{
|
||||
"player": 1,
|
||||
"Units": {
|
||||
|
|
@ -461,13 +491,13 @@
|
|||
],
|
||||
[
|
||||
"Player1 is playing as China",
|
||||
"Player1 gained an action card from the pile",
|
||||
"Player1: Setup: Draw an action card",
|
||||
"Player1 gained an objective card from the pile",
|
||||
"Player1: Setup: Gain 1 settler at D2"
|
||||
],
|
||||
[
|
||||
"Player2 is playing as Greece",
|
||||
"Player2 gained an action card from the pile",
|
||||
"Player2: Setup: Draw an action card",
|
||||
"Player2 gained an objective card from the pile",
|
||||
"Player2: Setup: Gain 1 settler at D7"
|
||||
]
|
||||
|
|
|
|||
|
|
@ -237,6 +237,21 @@
|
|||
"origin": {
|
||||
"Ability": "Construct Building"
|
||||
}
|
||||
},
|
||||
{
|
||||
"player": 0,
|
||||
"HandCard": {
|
||||
"card": {
|
||||
"ActionCard": 1
|
||||
},
|
||||
"from": "DrawPile",
|
||||
"to": {
|
||||
"Hand": 0
|
||||
}
|
||||
},
|
||||
"origin": {
|
||||
"Ability": "Observatory"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -253,7 +268,7 @@
|
|||
"Player1: Construct Building: City C2 became Neutral",
|
||||
"Player1: Construct Building: Pay 1 food, 1 wood and 1 ore",
|
||||
"Player1: Construct Building: Build a Observatory in the city C2",
|
||||
"Player1 gained an action card from the pile",
|
||||
"Player1: Observatory: Draw an action card",
|
||||
"Player1: Observatory: Observatory gained 1 action card"
|
||||
]
|
||||
],
|
||||
|
|
|
|||
|
|
@ -228,9 +228,11 @@
|
|||
"starting_player_index": 0,
|
||||
"current_player_index": 0,
|
||||
"action_log": [
|
||||
{ "age": 1,
|
||||
{
|
||||
"age": 1,
|
||||
"rounds": [
|
||||
{ "round": 1,
|
||||
{
|
||||
"round": 1,
|
||||
"players": [
|
||||
{
|
||||
"index": 0,
|
||||
|
|
@ -270,7 +272,7 @@
|
|||
"Player1 started Imperial Army"
|
||||
],
|
||||
[
|
||||
"Player1: Imperial Army: Convert infantry at C2, settler at B4 using Imperial Army"
|
||||
"Player1: Imperial Army: Convert infantry at C2, settler at B4"
|
||||
]
|
||||
],
|
||||
"undo_limit": 0,
|
||||
|
|
@ -292,4 +294,4 @@
|
|||
10,
|
||||
10
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
@ -452,6 +452,21 @@
|
|||
"origin": {
|
||||
"LeaderAbility": "Idol"
|
||||
}
|
||||
},
|
||||
{
|
||||
"player": 0,
|
||||
"HandCard": {
|
||||
"card": {
|
||||
"ActionCard": 7
|
||||
},
|
||||
"from": {
|
||||
"Hand": 0
|
||||
},
|
||||
"to": "PlayToDiscard"
|
||||
},
|
||||
"origin": {
|
||||
"Ability": "Action Card"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
@ -495,8 +510,8 @@
|
|||
],
|
||||
[
|
||||
"Player1: Idol: Pay 1 culture token",
|
||||
"Player1: Idol: Decided to play Spy as a free action using Idol",
|
||||
"Player1 played the action card Spy",
|
||||
"Player1: Idol: Decided to play Spy as a free action",
|
||||
"Player1: Action Card: Play Spy/Heavy Resistance",
|
||||
"Player1 has to pay 1 culture token for Spy"
|
||||
],
|
||||
[
|
||||
|
|
|
|||
|
|
@ -407,6 +407,21 @@
|
|||
"LeaderAbility": "Master"
|
||||
}
|
||||
},
|
||||
{
|
||||
"player": 0,
|
||||
"HandCard": {
|
||||
"card": {
|
||||
"ActionCard": 1
|
||||
},
|
||||
"from": "DrawPile",
|
||||
"to": {
|
||||
"Hand": 0
|
||||
}
|
||||
},
|
||||
"origin": {
|
||||
"Advance": "Writing"
|
||||
}
|
||||
},
|
||||
{
|
||||
"player": 0,
|
||||
"Resources": {
|
||||
|
|
@ -437,7 +452,7 @@
|
|||
[
|
||||
"Player1: Master: Pay 1 mood token",
|
||||
"Player1: Master: Decided to gain Writing for free",
|
||||
"Player1 gained an action card from the pile",
|
||||
"Player1: Writing: Draw an action card",
|
||||
"Player1 gained an objective card from the pile",
|
||||
"Player1: Writing: Gain 1 culture token"
|
||||
]
|
||||
|
|
|
|||
|
|
@ -278,6 +278,36 @@
|
|||
"origin": {
|
||||
"LeaderAbility": "Princeps"
|
||||
}
|
||||
},
|
||||
{
|
||||
"player": 0,
|
||||
"HandCard": {
|
||||
"card": {
|
||||
"ActionCard": 1
|
||||
},
|
||||
"from": "DrawPile",
|
||||
"to": {
|
||||
"Hand": 0
|
||||
}
|
||||
},
|
||||
"origin": {
|
||||
"Ability": "Princeps"
|
||||
}
|
||||
},
|
||||
{
|
||||
"player": 0,
|
||||
"HandCard": {
|
||||
"card": {
|
||||
"ActionCard": 1
|
||||
},
|
||||
"from": {
|
||||
"Hand": 0
|
||||
},
|
||||
"to": "DiscardPile"
|
||||
},
|
||||
"origin": {
|
||||
"Ability": "Princeps"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -296,9 +326,9 @@
|
|||
],
|
||||
[
|
||||
"Player1: Princeps: Pay 1 culture token",
|
||||
"Player1 gained an action card from the pile",
|
||||
"Player1: Princeps: Draw an action card",
|
||||
"Player1 gained an objective card from the pile",
|
||||
"Player1: Princeps: Discard action card Advance/Peltasts",
|
||||
"Player1: Princeps: Discard Quick Advance/Peltasts",
|
||||
"Player1: Princeps: Discard objective card Large Civilization/Draft"
|
||||
]
|
||||
],
|
||||
|
|
|
|||
|
|
@ -317,7 +317,24 @@
|
|||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"items": [
|
||||
{
|
||||
"player": 0,
|
||||
"HandCard": {
|
||||
"card": {
|
||||
"ActionCard": 1
|
||||
},
|
||||
"from": {
|
||||
"Hand": 0
|
||||
},
|
||||
"to": "PlayToDiscardFaceDown"
|
||||
},
|
||||
"origin": {
|
||||
"Advance": "Tactics"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"action": {
|
||||
|
|
@ -356,6 +373,21 @@
|
|||
"city_mood": "Angry"
|
||||
},
|
||||
"items": [
|
||||
{
|
||||
"player": 1,
|
||||
"HandCard": {
|
||||
"card": {
|
||||
"ActionCard": 2
|
||||
},
|
||||
"from": {
|
||||
"Hand": 1
|
||||
},
|
||||
"to": "PlayToDiscardFaceDown"
|
||||
},
|
||||
"origin": {
|
||||
"Advance": "Tactics"
|
||||
}
|
||||
},
|
||||
{
|
||||
"player": 1,
|
||||
"Units": {
|
||||
|
|
@ -411,10 +443,10 @@
|
|||
"Player2: Steel Weapons: Pay 1 ore"
|
||||
],
|
||||
[
|
||||
"Player1: Tactics: Played a Tactics Card"
|
||||
"Player1: Tactics: Play an action card face down"
|
||||
],
|
||||
[
|
||||
"Player2: Tactics: Played a Tactics Card",
|
||||
"Player2: Tactics: Play an action card face down",
|
||||
"Player1 reveals Tactics Card Peltasts",
|
||||
"Player2 reveals Tactics Card Encircled",
|
||||
"Player1 rolled 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.",
|
||||
|
|
|
|||
|
|
@ -267,6 +267,21 @@
|
|||
"origin": {
|
||||
"Incident": 55
|
||||
}
|
||||
},
|
||||
{
|
||||
"player": 0,
|
||||
"HandCard": {
|
||||
"card": {
|
||||
"ActionCard": 155
|
||||
},
|
||||
"from": "Incident",
|
||||
"to": {
|
||||
"Hand": 0
|
||||
}
|
||||
},
|
||||
"origin": {
|
||||
"Incident": 55
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
@ -275,7 +290,24 @@
|
|||
"Playing": {
|
||||
"ActionCard": 155
|
||||
}
|
||||
}
|
||||
},
|
||||
"items": [
|
||||
{
|
||||
"player": 0,
|
||||
"HandCard": {
|
||||
"card": {
|
||||
"ActionCard": 155
|
||||
},
|
||||
"from": {
|
||||
"Hand": 0
|
||||
},
|
||||
"to": "PlayToDiscard"
|
||||
},
|
||||
"origin": {
|
||||
"Ability": "Action Card"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"action": {
|
||||
|
|
@ -341,10 +373,10 @@
|
|||
],
|
||||
[
|
||||
"Player1: Great Architect: Pay 1 culture token",
|
||||
"Player1: Great Architect: Gain Great Architect for 1 culture token"
|
||||
"Player1: Great Architect: Gain Great Architect from the current event"
|
||||
],
|
||||
[
|
||||
"Player1 played the action card Great Architect",
|
||||
"Player1: Action Card: Play Great Architect",
|
||||
"Player1 played the wonder card Pyramids"
|
||||
],
|
||||
[
|
||||
|
|
|
|||
|
|
@ -277,6 +277,21 @@
|
|||
"origin": {
|
||||
"Incident": 19
|
||||
}
|
||||
},
|
||||
{
|
||||
"player": 1,
|
||||
"HandCard": {
|
||||
"card": {
|
||||
"ActionCard": 119
|
||||
},
|
||||
"from": "Incident",
|
||||
"to": {
|
||||
"Hand": 1
|
||||
}
|
||||
},
|
||||
"origin": {
|
||||
"Incident": 19
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -303,7 +318,7 @@
|
|||
],
|
||||
[
|
||||
"Player2: Great Artist: Pay 2 culture tokens",
|
||||
"Player2: Great Artist: Gain Great Artist for 2 culture tokens"
|
||||
"Player2: Great Artist: Gain Great Artist from the current event"
|
||||
]
|
||||
],
|
||||
"undo_limit": 2,
|
||||
|
|
|
|||
|
|
@ -274,6 +274,21 @@
|
|||
"origin": {
|
||||
"Incident": 19
|
||||
}
|
||||
},
|
||||
{
|
||||
"player": 1,
|
||||
"HandCard": {
|
||||
"card": {
|
||||
"ActionCard": 119
|
||||
},
|
||||
"from": "Incident",
|
||||
"to": {
|
||||
"Hand": 1
|
||||
}
|
||||
},
|
||||
"origin": {
|
||||
"Incident": 19
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
@ -308,7 +323,7 @@
|
|||
],
|
||||
[
|
||||
"Player2: Great Artist: Pay 2 culture tokens",
|
||||
"Player2: Great Artist: Gain Great Artist for 2 culture tokens"
|
||||
"Player2: Great Artist: Gain Great Artist from the current event"
|
||||
],
|
||||
[
|
||||
"Player1 ended their turn with 2 actions left"
|
||||
|
|
|
|||
|
|
@ -272,6 +272,21 @@
|
|||
"origin": {
|
||||
"Incident": 19
|
||||
}
|
||||
},
|
||||
{
|
||||
"player": 1,
|
||||
"HandCard": {
|
||||
"card": {
|
||||
"ActionCard": 119
|
||||
},
|
||||
"from": "Incident",
|
||||
"to": {
|
||||
"Hand": 1
|
||||
}
|
||||
},
|
||||
"origin": {
|
||||
"Incident": 19
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
@ -292,6 +307,21 @@
|
|||
}
|
||||
},
|
||||
"items": [
|
||||
{
|
||||
"player": 1,
|
||||
"HandCard": {
|
||||
"card": {
|
||||
"ActionCard": 119
|
||||
},
|
||||
"from": {
|
||||
"Hand": 1
|
||||
},
|
||||
"to": "PlayToDiscard"
|
||||
},
|
||||
"origin": {
|
||||
"Ability": "Action Card"
|
||||
}
|
||||
},
|
||||
{
|
||||
"player": 1,
|
||||
"Resources": {
|
||||
|
|
@ -314,6 +344,21 @@
|
|||
"CivilCard": 119
|
||||
}
|
||||
},
|
||||
{
|
||||
"player": 1,
|
||||
"HandCard": {
|
||||
"card": {
|
||||
"ActionCard": 119
|
||||
},
|
||||
"from": {
|
||||
"Hand": 1
|
||||
},
|
||||
"to": "PlayToDiscard"
|
||||
},
|
||||
"origin": {
|
||||
"Ability": "Action Card"
|
||||
}
|
||||
},
|
||||
{
|
||||
"player": 1,
|
||||
"Resources": {
|
||||
|
|
@ -361,7 +406,7 @@
|
|||
],
|
||||
[
|
||||
"Player2: Great Artist: Pay 2 culture tokens",
|
||||
"Player2: Great Artist: Gain Great Artist for 2 culture tokens"
|
||||
"Player2: Great Artist: Gain Great Artist from the current event"
|
||||
],
|
||||
[
|
||||
"Player1 ended their turn with 2 actions left"
|
||||
|
|
@ -370,7 +415,7 @@
|
|||
"It's Player2's turn"
|
||||
],
|
||||
[
|
||||
"Player2 played the action card Great Artist",
|
||||
"Player2: Action Card: Play Great Artist",
|
||||
"Player2: Great Artist: Gain Arts",
|
||||
"Player2 unlocked Hellenistic Culture",
|
||||
"Player2: Arts: Gain 1 culture token",
|
||||
|
|
|
|||
|
|
@ -259,6 +259,21 @@
|
|||
"origin": {
|
||||
"Incident": 56
|
||||
}
|
||||
},
|
||||
{
|
||||
"player": 0,
|
||||
"HandCard": {
|
||||
"card": {
|
||||
"ActionCard": 156
|
||||
},
|
||||
"from": "Incident",
|
||||
"to": {
|
||||
"Hand": 0
|
||||
}
|
||||
},
|
||||
"origin": {
|
||||
"Incident": 56
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
@ -269,6 +284,21 @@
|
|||
}
|
||||
},
|
||||
"items": [
|
||||
{
|
||||
"player": 0,
|
||||
"HandCard": {
|
||||
"card": {
|
||||
"ActionCard": 156
|
||||
},
|
||||
"from": {
|
||||
"Hand": 0
|
||||
},
|
||||
"to": "PlayToDiscard"
|
||||
},
|
||||
"origin": {
|
||||
"Ability": "Action Card"
|
||||
}
|
||||
},
|
||||
{
|
||||
"player": 0,
|
||||
"Resources": {
|
||||
|
|
@ -348,10 +378,10 @@
|
|||
],
|
||||
[
|
||||
"Player1: Great Athlete: Pay 1 culture token",
|
||||
"Player1: Great Athlete: Gain Great Athlete for 1 culture token"
|
||||
"Player1: Great Athlete: Gain Great Athlete from the current event"
|
||||
],
|
||||
[
|
||||
"Player1 played the action card Great Athlete",
|
||||
"Player1: Action Card: Play Great Athlete",
|
||||
"Player1: Great Athlete: Gain Arts",
|
||||
"Player1: Arts: Gain 1 culture token"
|
||||
],
|
||||
|
|
|
|||
|
|
@ -281,6 +281,21 @@
|
|||
"origin": {
|
||||
"Incident": 57
|
||||
}
|
||||
},
|
||||
{
|
||||
"player": 0,
|
||||
"HandCard": {
|
||||
"card": {
|
||||
"ActionCard": 157
|
||||
},
|
||||
"from": "Incident",
|
||||
"to": {
|
||||
"Hand": 0
|
||||
}
|
||||
},
|
||||
"origin": {
|
||||
"Incident": 57
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
@ -389,7 +404,7 @@
|
|||
],
|
||||
[
|
||||
"Player1: Great Diplomat: Pay 1 culture token",
|
||||
"Player1: Great Diplomat: Gain Great Diplomat for 1 culture token",
|
||||
"Player1: Great Diplomat: Gain Great Diplomat from the current event",
|
||||
"Player1: Great Diplomat: Initiated diplomatic relations with Player2"
|
||||
],
|
||||
[
|
||||
|
|
|
|||
|
|
@ -280,6 +280,21 @@
|
|||
"origin": {
|
||||
"Incident": 26
|
||||
}
|
||||
},
|
||||
{
|
||||
"player": 0,
|
||||
"HandCard": {
|
||||
"card": {
|
||||
"ActionCard": 126
|
||||
},
|
||||
"from": "Incident",
|
||||
"to": {
|
||||
"Hand": 0
|
||||
}
|
||||
},
|
||||
"origin": {
|
||||
"Incident": 26
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
@ -288,7 +303,24 @@
|
|||
"Playing": {
|
||||
"ActionCard": 126
|
||||
}
|
||||
}
|
||||
},
|
||||
"items": [
|
||||
{
|
||||
"player": 0,
|
||||
"HandCard": {
|
||||
"card": {
|
||||
"ActionCard": 126
|
||||
},
|
||||
"from": {
|
||||
"Hand": 0
|
||||
},
|
||||
"to": "PlayToDiscard"
|
||||
},
|
||||
"origin": {
|
||||
"Ability": "Action Card"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"action": {
|
||||
|
|
@ -366,10 +398,10 @@
|
|||
],
|
||||
[
|
||||
"Player1: Great Engineer: Pay 1 culture token",
|
||||
"Player1: Great Engineer: Gain Great Engineer for 1 culture token"
|
||||
"Player1: Great Engineer: Gain Great Engineer from the current event"
|
||||
],
|
||||
[
|
||||
"Player1 played the action card Great Engineer"
|
||||
"Player1: Action Card: Play Great Engineer"
|
||||
],
|
||||
[
|
||||
"Player1: Great Engineer: Gain Engineering",
|
||||
|
|
|
|||
|
|
@ -413,6 +413,21 @@
|
|||
"origin": {
|
||||
"Incident": 18
|
||||
}
|
||||
},
|
||||
{
|
||||
"player": 1,
|
||||
"HandCard": {
|
||||
"card": {
|
||||
"ActionCard": 118
|
||||
},
|
||||
"from": "Incident",
|
||||
"to": {
|
||||
"Hand": 1
|
||||
}
|
||||
},
|
||||
"origin": {
|
||||
"Incident": 18
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
@ -423,6 +438,21 @@
|
|||
}
|
||||
},
|
||||
"items": [
|
||||
{
|
||||
"player": 1,
|
||||
"HandCard": {
|
||||
"card": {
|
||||
"ActionCard": 118
|
||||
},
|
||||
"from": {
|
||||
"Hand": 1
|
||||
},
|
||||
"to": "PlayToDiscard"
|
||||
},
|
||||
"origin": {
|
||||
"Ability": "Action Card"
|
||||
}
|
||||
},
|
||||
{
|
||||
"player": 1,
|
||||
"Resources": {
|
||||
|
|
@ -507,10 +537,10 @@
|
|||
],
|
||||
[
|
||||
"Player2: Great Explorer: Pay 1 culture token",
|
||||
"Player2: Great Explorer: Gain Great Explorer for 1 culture token"
|
||||
"Player2: Great Explorer: Gain Great Explorer from the current event"
|
||||
],
|
||||
[
|
||||
"Player2 played the action card Great Explorer",
|
||||
"Player2: Action Card: Play Great Explorer",
|
||||
"Player2: Great Explorer: Gain Fishing",
|
||||
"Player2: Fishing: Gain 1 mood token"
|
||||
],
|
||||
|
|
|
|||
|
|
@ -277,6 +277,21 @@
|
|||
"origin": {
|
||||
"Incident": 25
|
||||
}
|
||||
},
|
||||
{
|
||||
"player": 0,
|
||||
"HandCard": {
|
||||
"card": {
|
||||
"ActionCard": 125
|
||||
},
|
||||
"from": "Incident",
|
||||
"to": {
|
||||
"Hand": 0
|
||||
}
|
||||
},
|
||||
"origin": {
|
||||
"Incident": 25
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
@ -285,7 +300,24 @@
|
|||
"Playing": {
|
||||
"ActionCard": 125
|
||||
}
|
||||
}
|
||||
},
|
||||
"items": [
|
||||
{
|
||||
"player": 0,
|
||||
"HandCard": {
|
||||
"card": {
|
||||
"ActionCard": 125
|
||||
},
|
||||
"from": {
|
||||
"Hand": 0
|
||||
},
|
||||
"to": "PlayToDiscard"
|
||||
},
|
||||
"origin": {
|
||||
"Ability": "Action Card"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"action": {
|
||||
|
|
@ -332,10 +364,10 @@
|
|||
],
|
||||
[
|
||||
"Player1: Great Merchant: Pay 1 culture token",
|
||||
"Player1: Great Merchant: Gain Great Merchant for 1 culture token"
|
||||
"Player1: Great Merchant: Gain Great Merchant from the current event"
|
||||
],
|
||||
[
|
||||
"Player1 played the action card Great Merchant",
|
||||
"Player1: Action Card: Play Great Merchant",
|
||||
"Player1: Great Merchant: Gain Trade Routes"
|
||||
],
|
||||
[
|
||||
|
|
|
|||
|
|
@ -337,6 +337,21 @@
|
|||
"origin": {
|
||||
"Incident": 20
|
||||
}
|
||||
},
|
||||
{
|
||||
"player": 0,
|
||||
"HandCard": {
|
||||
"card": {
|
||||
"ActionCard": 120
|
||||
},
|
||||
"from": "Incident",
|
||||
"to": {
|
||||
"Hand": 0
|
||||
}
|
||||
},
|
||||
"origin": {
|
||||
"Incident": 20
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
@ -347,6 +362,21 @@
|
|||
}
|
||||
},
|
||||
"items": [
|
||||
{
|
||||
"player": 0,
|
||||
"HandCard": {
|
||||
"card": {
|
||||
"ActionCard": 120
|
||||
},
|
||||
"from": {
|
||||
"Hand": 0
|
||||
},
|
||||
"to": "PlayToDiscard"
|
||||
},
|
||||
"origin": {
|
||||
"Ability": "Action Card"
|
||||
}
|
||||
},
|
||||
{
|
||||
"player": 0,
|
||||
"Resources": {
|
||||
|
|
@ -439,10 +469,10 @@
|
|||
],
|
||||
[
|
||||
"Player1: Great Prophet: Pay 1 culture token",
|
||||
"Player1: Great Prophet: Gain Great Prophet for 1 culture token"
|
||||
"Player1: Great Prophet: Gain Great Prophet from the current event"
|
||||
],
|
||||
[
|
||||
"Player1 played the action card Great Prophet",
|
||||
"Player1: Action Card: Play Great Prophet",
|
||||
"Player1: Great Prophet: Gain Myths",
|
||||
"Player1: Myths: Gain 1 mood token"
|
||||
],
|
||||
|
|
|
|||
|
|
@ -264,6 +264,21 @@
|
|||
"origin": {
|
||||
"Incident": 58
|
||||
}
|
||||
},
|
||||
{
|
||||
"player": 0,
|
||||
"HandCard": {
|
||||
"card": {
|
||||
"ActionCard": 158
|
||||
},
|
||||
"from": "Incident",
|
||||
"to": {
|
||||
"Hand": 0
|
||||
}
|
||||
},
|
||||
"origin": {
|
||||
"Incident": 58
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
@ -272,7 +287,24 @@
|
|||
"Playing": {
|
||||
"ActionCard": 158
|
||||
}
|
||||
}
|
||||
},
|
||||
"items": [
|
||||
{
|
||||
"player": 0,
|
||||
"HandCard": {
|
||||
"card": {
|
||||
"ActionCard": 158
|
||||
},
|
||||
"from": {
|
||||
"Hand": 0
|
||||
},
|
||||
"to": "PlayToDiscard"
|
||||
},
|
||||
"origin": {
|
||||
"Ability": "Action Card"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"action": {
|
||||
|
|
@ -309,6 +341,21 @@
|
|||
"Ability": "Advance"
|
||||
}
|
||||
},
|
||||
{
|
||||
"player": 0,
|
||||
"HandCard": {
|
||||
"card": {
|
||||
"ActionCard": 1
|
||||
},
|
||||
"from": "DrawPile",
|
||||
"to": {
|
||||
"Hand": 0
|
||||
}
|
||||
},
|
||||
"origin": {
|
||||
"Advance": "Writing"
|
||||
}
|
||||
},
|
||||
{
|
||||
"player": 0,
|
||||
"Resources": {
|
||||
|
|
@ -344,10 +391,10 @@
|
|||
],
|
||||
[
|
||||
"Player1: Great Seer: Pay 1 culture token",
|
||||
"Player1: Great Seer: Gain Great Seer for 1 culture token"
|
||||
"Player1: Great Seer: Gain Great Seer from the current event"
|
||||
],
|
||||
[
|
||||
"Player1 played the action card Great Seer"
|
||||
"Player1: Action Card: Play Great Seer"
|
||||
],
|
||||
[
|
||||
"Player1: Great Seer: Chose an objective card for player Player1",
|
||||
|
|
@ -356,13 +403,13 @@
|
|||
[
|
||||
"Player1: Advance: Pay 2 food",
|
||||
"Player1: Advance: Gain Writing",
|
||||
"Player1 gained an action card from the pile",
|
||||
"Player1: Writing: Draw an action card",
|
||||
"Player1 gained the Great Seer objective card from the pile",
|
||||
"Player1: Writing: Gain 1 culture token"
|
||||
]
|
||||
],
|
||||
"undo_limit": 5,
|
||||
"actions_left": 1,
|
||||
"actions_left": 0,
|
||||
"round": 2,
|
||||
"age": 1,
|
||||
"messages": [
|
||||
|
|
|
|||
|
|
@ -420,6 +420,21 @@
|
|||
"origin": {
|
||||
"Incident": 24
|
||||
}
|
||||
},
|
||||
{
|
||||
"player": 1,
|
||||
"HandCard": {
|
||||
"card": {
|
||||
"ActionCard": 124
|
||||
},
|
||||
"from": "Incident",
|
||||
"to": {
|
||||
"Hand": 1
|
||||
}
|
||||
},
|
||||
"origin": {
|
||||
"Incident": 24
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
@ -430,6 +445,21 @@
|
|||
}
|
||||
},
|
||||
"items": [
|
||||
{
|
||||
"player": 1,
|
||||
"HandCard": {
|
||||
"card": {
|
||||
"ActionCard": 124
|
||||
},
|
||||
"from": {
|
||||
"Hand": 1
|
||||
},
|
||||
"to": "PlayToDiscard"
|
||||
},
|
||||
"origin": {
|
||||
"Ability": "Action Card"
|
||||
}
|
||||
},
|
||||
{
|
||||
"player": 1,
|
||||
"Resources": {
|
||||
|
|
@ -512,10 +542,10 @@
|
|||
],
|
||||
[
|
||||
"Player2: Great Warlord: Pay 1 culture token",
|
||||
"Player2: Great Warlord: Gain Great Warlord for 1 culture token"
|
||||
"Player2: Great Warlord: Gain Great Warlord from the current event"
|
||||
],
|
||||
[
|
||||
"Player2 played the action card Great Warlord",
|
||||
"Player2: Action Card: Play Great Warlord",
|
||||
"Player2: Great Warlord: Gain Tactics",
|
||||
"Player2: Tactics: Gain 1 culture token"
|
||||
],
|
||||
|
|
|
|||
|
|
@ -389,7 +389,24 @@
|
|||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"items": [
|
||||
{
|
||||
"player": 0,
|
||||
"HandCard": {
|
||||
"card": {
|
||||
"ActionCard": 1
|
||||
},
|
||||
"from": {
|
||||
"Hand": 0
|
||||
},
|
||||
"to": "DiscardPile"
|
||||
},
|
||||
"origin": {
|
||||
"Incident": 49
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -416,7 +433,7 @@
|
|||
"Player1: Pandemics: Lost 1 infantry at C2"
|
||||
],
|
||||
[
|
||||
"Player1: Pandemics: Discard Advance/Peltasts",
|
||||
"Player1: Pandemics: Discard Quick Advance/Peltasts",
|
||||
"Player2: Pandemics: Lose a total of 1 units, cards, and resources"
|
||||
]
|
||||
],
|
||||
|
|
|
|||
|
|
@ -283,7 +283,24 @@
|
|||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"items": [
|
||||
{
|
||||
"player": 0,
|
||||
"HandCard": {
|
||||
"card": {
|
||||
"ActionCard": 1
|
||||
},
|
||||
"from": {
|
||||
"Hand": 0
|
||||
},
|
||||
"to": "DiscardPile"
|
||||
},
|
||||
"origin": {
|
||||
"Incident": 49
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"action": {
|
||||
|
|
@ -335,7 +352,7 @@
|
|||
"Player1: Pandemics: Lost 1 infantry at C2"
|
||||
],
|
||||
[
|
||||
"Player1: Pandemics: Discard Advance/Peltasts",
|
||||
"Player1: Pandemics: Discard Quick Advance/Peltasts",
|
||||
"Player2: Pandemics: Lose a total of 1 units, cards, and resources"
|
||||
],
|
||||
[
|
||||
|
|
|
|||
|
|
@ -314,6 +314,21 @@
|
|||
"city_mood": "Angry"
|
||||
},
|
||||
"items": [
|
||||
{
|
||||
"player": 1,
|
||||
"HandCard": {
|
||||
"card": {
|
||||
"ActionCard": 17
|
||||
},
|
||||
"from": {
|
||||
"Hand": 1
|
||||
},
|
||||
"to": "PlayToDiscardFaceDown"
|
||||
},
|
||||
"origin": {
|
||||
"Advance": "Tactics"
|
||||
}
|
||||
},
|
||||
{
|
||||
"player": 0,
|
||||
"Resources": {
|
||||
|
|
@ -356,7 +371,7 @@
|
|||
"Defenders: 2 infantry"
|
||||
],
|
||||
[
|
||||
"Player2: Tactics: Played a Tactics Card",
|
||||
"Player2: Tactics: Play an action card face down",
|
||||
"Player2 reveals Tactics Card Tactical Retreat",
|
||||
"Player2: Tactical Retreat: Player2 withdraws to B1",
|
||||
"Player1: Solar Eclipse: Gain 1 victory point for the Solar Eclipse",
|
||||
|
|
|
|||
|
|
@ -373,6 +373,36 @@
|
|||
"origin": {
|
||||
"Advance": "Philosophy"
|
||||
}
|
||||
},
|
||||
{
|
||||
"player": 1,
|
||||
"HandCard": {
|
||||
"card": {
|
||||
"ActionCard": 1
|
||||
},
|
||||
"from": "DrawPile",
|
||||
"to": {
|
||||
"Hand": 1
|
||||
}
|
||||
},
|
||||
"origin": {
|
||||
"Ability": "Draw Cards"
|
||||
}
|
||||
},
|
||||
{
|
||||
"player": 0,
|
||||
"HandCard": {
|
||||
"card": {
|
||||
"ActionCard": 2
|
||||
},
|
||||
"from": "DrawPile",
|
||||
"to": {
|
||||
"Hand": 0
|
||||
}
|
||||
},
|
||||
"origin": {
|
||||
"Ability": "Draw Cards"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -399,10 +429,10 @@
|
|||
"Player1: Free Advance: Advanced Philosophy for free",
|
||||
"Player1: Philosophy: Gain 1 idea",
|
||||
"Player1: Philosophy: Gain 1 mood token",
|
||||
"Player2 gained an action card from the pile",
|
||||
"Player2: Draw Cards: Draw an action card",
|
||||
"Reshuffling Objective Card pile",
|
||||
"Player2 gained an objective card from the pile",
|
||||
"Player1 gained an action card from the pile",
|
||||
"Player1: Draw Cards: Draw an action card",
|
||||
"Player1 gained an objective card from the pile"
|
||||
]
|
||||
],
|
||||
|
|
|
|||
|
|
@ -200,7 +200,24 @@
|
|||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"items": [
|
||||
{
|
||||
"player": 0,
|
||||
"HandCard": {
|
||||
"card": {
|
||||
"ActionCard": 26
|
||||
},
|
||||
"from": {
|
||||
"Hand": 0
|
||||
},
|
||||
"to": "PlayToDiscardFaceDown"
|
||||
},
|
||||
"origin": {
|
||||
"Advance": "Tactics"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"action": {
|
||||
|
|
@ -293,7 +310,7 @@
|
|||
"Defenders: 2 infantry"
|
||||
],
|
||||
[
|
||||
"Player1: Tactics: Played a Tactics Card",
|
||||
"Player1: Tactics: Play an action card face down",
|
||||
"Player1 reveals Tactics Card Archers",
|
||||
"Player2: Archers: Rolled a 6 and scored a hit"
|
||||
],
|
||||
|
|
|
|||
|
|
@ -228,6 +228,21 @@
|
|||
"city_mood": "Angry"
|
||||
},
|
||||
"items": [
|
||||
{
|
||||
"player": 0,
|
||||
"HandCard": {
|
||||
"card": {
|
||||
"ActionCard": 2
|
||||
},
|
||||
"from": {
|
||||
"Hand": 0
|
||||
},
|
||||
"to": "PlayToDiscardFaceDown"
|
||||
},
|
||||
"origin": {
|
||||
"Advance": "Tactics"
|
||||
}
|
||||
},
|
||||
{
|
||||
"player": 0,
|
||||
"Units": {
|
||||
|
|
@ -272,7 +287,7 @@
|
|||
"Defenders: 2 infantry"
|
||||
],
|
||||
[
|
||||
"Player1: Tactics: Played a Tactics Card",
|
||||
"Player1: Tactics: Play an action card face down",
|
||||
"Player1 reveals Tactics Card Encircled",
|
||||
"Player1 rolled 6 (infantry, +1 combat value) for combined combat value of 7 and gets 1 hits against defending units.",
|
||||
"Player2 rolled 6 (infantry, +1 combat value), 6 (infantry, +1 combat value) for combined combat value of 14 and gets 1 hits against attacking units.",
|
||||
|
|
|
|||
|
|
@ -226,6 +226,21 @@
|
|||
"city_mood": "Angry"
|
||||
},
|
||||
"items": [
|
||||
{
|
||||
"player": 0,
|
||||
"HandCard": {
|
||||
"card": {
|
||||
"ActionCard": 42
|
||||
},
|
||||
"from": {
|
||||
"Hand": 0
|
||||
},
|
||||
"to": "PlayToDiscardFaceDown"
|
||||
},
|
||||
"origin": {
|
||||
"Advance": "Tactics"
|
||||
}
|
||||
},
|
||||
{
|
||||
"player": 0,
|
||||
"Units": {
|
||||
|
|
@ -270,7 +285,7 @@
|
|||
"Defenders: 2 infantry"
|
||||
],
|
||||
[
|
||||
"Player1: Tactics: Played a Tactics Card",
|
||||
"Player1: Tactics: Play an action card face down",
|
||||
"Player1 reveals Tactics Card Flanking",
|
||||
"Player1 rolled 6 (infantry, +1 combat value), 6 (infantry, no bonus) for combined combat value of 13 and gets 2 hits against defending units.",
|
||||
"Player1 used the following combat modifiers: Flanking added 1 extra die",
|
||||
|
|
|
|||
|
|
@ -235,6 +235,21 @@
|
|||
"city_mood": "Angry"
|
||||
},
|
||||
"items": [
|
||||
{
|
||||
"player": 1,
|
||||
"HandCard": {
|
||||
"card": {
|
||||
"ActionCard": 7
|
||||
},
|
||||
"from": {
|
||||
"Hand": 1
|
||||
},
|
||||
"to": "PlayToDiscardFaceDown"
|
||||
},
|
||||
"origin": {
|
||||
"Advance": "Tactics"
|
||||
}
|
||||
},
|
||||
{
|
||||
"player": 0,
|
||||
"Units": {
|
||||
|
|
@ -279,7 +294,7 @@
|
|||
"Defenders: 2 infantry"
|
||||
],
|
||||
[
|
||||
"Player2: Tactics: Played a Tactics Card",
|
||||
"Player2: Tactics: Play an action card face down",
|
||||
"Player2 reveals Tactics Card Heavy Resistance",
|
||||
"Player1 rolled 6 (infantry, +1 combat value) for combined combat value of 6 and gets 1 hits against defending units.",
|
||||
"Player1 used the following combat modifiers: Heavy resistance added -1 to combat value for each unit",
|
||||
|
|
|
|||
|
|
@ -207,7 +207,24 @@
|
|||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"items": [
|
||||
{
|
||||
"player": 0,
|
||||
"HandCard": {
|
||||
"card": {
|
||||
"ActionCard": 1
|
||||
},
|
||||
"from": {
|
||||
"Hand": 0
|
||||
},
|
||||
"to": "PlayToDiscardFaceDown"
|
||||
},
|
||||
"origin": {
|
||||
"Advance": "Tactics"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"action": {
|
||||
|
|
@ -246,6 +263,21 @@
|
|||
"city_mood": "Angry"
|
||||
},
|
||||
"items": [
|
||||
{
|
||||
"player": 1,
|
||||
"HandCard": {
|
||||
"card": {
|
||||
"ActionCard": 9
|
||||
},
|
||||
"from": {
|
||||
"Hand": 1
|
||||
},
|
||||
"to": "PlayToDiscardFaceDown"
|
||||
},
|
||||
"origin": {
|
||||
"Advance": "Tactics"
|
||||
}
|
||||
},
|
||||
{
|
||||
"player": 0,
|
||||
"Units": {
|
||||
|
|
@ -290,10 +322,10 @@
|
|||
"Defenders: 2 infantry"
|
||||
],
|
||||
[
|
||||
"Player1: Tactics: Played a Tactics Card"
|
||||
"Player1: Tactics: Play an action card face down"
|
||||
],
|
||||
[
|
||||
"Player2: Tactics: Played a Tactics Card",
|
||||
"Player2: Tactics: Play an action card face down",
|
||||
"Player1 reveals Tactics Card Peltasts",
|
||||
"Player2 reveals Tactics Card High Ground",
|
||||
"Player1 rolled 6 (infantry, no bonus) for combined combat value of 6 and gets 1 hits against defending units.",
|
||||
|
|
|
|||
|
|
@ -235,6 +235,21 @@
|
|||
"city_mood": "Angry"
|
||||
},
|
||||
"items": [
|
||||
{
|
||||
"player": 0,
|
||||
"HandCard": {
|
||||
"card": {
|
||||
"ActionCard": 6
|
||||
},
|
||||
"from": {
|
||||
"Hand": 0
|
||||
},
|
||||
"to": "PlayToDiscardFaceDown"
|
||||
},
|
||||
"origin": {
|
||||
"Advance": "Tactics"
|
||||
}
|
||||
},
|
||||
{
|
||||
"player": 0,
|
||||
"Units": {
|
||||
|
|
@ -279,7 +294,7 @@
|
|||
"Defenders: 2 infantry"
|
||||
],
|
||||
[
|
||||
"Player1: Tactics: Played a Tactics Card",
|
||||
"Player1: Tactics: Play an action card face down",
|
||||
"Player1 reveals Tactics Card High Morale",
|
||||
"Player1 rolled 6 (infantry, +1 combat value) for combined combat value of 9 and gets 1 hits against defending units.",
|
||||
"Player1 used the following combat modifiers: High Morale added 2 combat value",
|
||||
|
|
|
|||
|
|
@ -273,7 +273,24 @@
|
|||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"items": [
|
||||
{
|
||||
"player": 0,
|
||||
"HandCard": {
|
||||
"card": {
|
||||
"ActionCard": 6
|
||||
},
|
||||
"from": {
|
||||
"Hand": 0
|
||||
},
|
||||
"to": "PlayToDiscardFaceDown"
|
||||
},
|
||||
"origin": {
|
||||
"Advance": "Tactics"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"action": {
|
||||
|
|
@ -284,7 +301,24 @@
|
|||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"items": [
|
||||
{
|
||||
"player": 1,
|
||||
"HandCard": {
|
||||
"card": {
|
||||
"ActionCard": 24
|
||||
},
|
||||
"from": {
|
||||
"Hand": 1
|
||||
},
|
||||
"to": "PlayToDiscardFaceDown"
|
||||
},
|
||||
"origin": {
|
||||
"Advance": "Tactics"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"action": {
|
||||
|
|
@ -387,22 +421,22 @@
|
|||
"Defenders: 1 ship"
|
||||
],
|
||||
[
|
||||
"Player1: Tactics: Played a Tactics Card"
|
||||
"Player1: Tactics: Play an action card face down"
|
||||
],
|
||||
[
|
||||
"Player2: Tactics: Played a Tactics Card",
|
||||
"Player2: Tactics: Play an action card face down",
|
||||
"Player1 reveals Tactics Card High Morale",
|
||||
"Player2 reveals Tactics Card Martyr",
|
||||
"Player1: Martyr: Cannot use tactics card using Martyr (but it is still discarded)"
|
||||
"Player1: Martyr: Cannot use tactics card (but it is still discarded)"
|
||||
],
|
||||
[
|
||||
"Player1: Martyr: Player1 sacrifices a ship using Martyr",
|
||||
"Player1: Martyr: Player1 sacrifices a ship",
|
||||
"Player1: Combat: Lost 1 ship at C3"
|
||||
],
|
||||
[
|
||||
"Player1: Choose Casualties (carried units): Killed carried units: 1 elephant",
|
||||
"Player1: Choose Casualties (carried units): Lost 1 elephant at C3",
|
||||
"Player2: Martyr: Player2 sacrifices a ship using Martyr",
|
||||
"Player2: Martyr: Player2 sacrifices a ship",
|
||||
"Player2: Combat: Lost 1 ship at D2",
|
||||
"Player1 rolled 6 (infantry, no bonus) for combined combat value of 6 and gets 0 hits against defending units.",
|
||||
"Player2 rolled no dice for combined combat value of 0 and gets 0 hits against attacking units.",
|
||||
|
|
|
|||
|
|
@ -1586,11 +1586,11 @@
|
|||
"AlphaZero: Martyr: Cannot use tactics card using Martyr (but it is still discarded)"
|
||||
],
|
||||
[
|
||||
"Spock: Martyr: Spock sacrifices an Alexander the Great using Martyr",
|
||||
"Spock: Martyr: Spock sacrifices an Alexander the Great",
|
||||
"Spock: Combat: Lost Alexander the Great at D4"
|
||||
],
|
||||
[
|
||||
"AlphaZero: Martyr: AlphaZero sacrifices a Wu Zetian using Martyr",
|
||||
"AlphaZero: Martyr: AlphaZero sacrifices a Wu Zetian",
|
||||
"AlphaZero: Combat: Lost Wu Zetian at D5",
|
||||
"Spock rolled 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.",
|
||||
"Spock used the following combat modifiers: Ruler of the World adds 2 combat value",
|
||||
|
|
|
|||
|
|
@ -235,6 +235,21 @@
|
|||
"city_mood": "Angry"
|
||||
},
|
||||
"items": [
|
||||
{
|
||||
"player": 0,
|
||||
"HandCard": {
|
||||
"card": {
|
||||
"ActionCard": 1
|
||||
},
|
||||
"from": {
|
||||
"Hand": 0
|
||||
},
|
||||
"to": "PlayToDiscardFaceDown"
|
||||
},
|
||||
"origin": {
|
||||
"Advance": "Tactics"
|
||||
}
|
||||
},
|
||||
{
|
||||
"player": 0,
|
||||
"Units": {
|
||||
|
|
@ -279,7 +294,7 @@
|
|||
"Defenders: 2 infantry"
|
||||
],
|
||||
[
|
||||
"Player1: Tactics: Played a Tactics Card",
|
||||
"Player1: Tactics: Play an action card face down",
|
||||
"Player1 reveals Tactics Card Peltasts",
|
||||
"Player1 rolled 6 (infantry, +1 combat value) for combined combat value of 7 and gets 1 hits against defending units.",
|
||||
"Player1 used the following combat modifiers: Peltasts rolled a 6 and ignored a hit",
|
||||
|
|
|
|||
|
|
@ -210,7 +210,24 @@
|
|||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"items": [
|
||||
{
|
||||
"player": 0,
|
||||
"HandCard": {
|
||||
"card": {
|
||||
"ActionCard": 1
|
||||
},
|
||||
"from": {
|
||||
"Hand": 0
|
||||
},
|
||||
"to": "PlayToDiscardFaceDown"
|
||||
},
|
||||
"origin": {
|
||||
"Advance": "Tactics"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"action": {
|
||||
|
|
@ -249,6 +266,36 @@
|
|||
"city_mood": "Angry"
|
||||
},
|
||||
"items": [
|
||||
{
|
||||
"player": 1,
|
||||
"HandCard": {
|
||||
"card": {
|
||||
"ActionCard": 23
|
||||
},
|
||||
"from": {
|
||||
"Hand": 1
|
||||
},
|
||||
"to": "PlayToDiscardFaceDown"
|
||||
},
|
||||
"origin": {
|
||||
"Advance": "Tactics"
|
||||
}
|
||||
},
|
||||
{
|
||||
"player": 1,
|
||||
"HandCard": {
|
||||
"card": {
|
||||
"ActionCard": 1
|
||||
},
|
||||
"from": "DiscardPile",
|
||||
"to": {
|
||||
"Hand": 1
|
||||
}
|
||||
},
|
||||
"origin": {
|
||||
"TacticsCard": 23
|
||||
}
|
||||
},
|
||||
{
|
||||
"player": 0,
|
||||
"Units": {
|
||||
|
|
@ -293,13 +340,14 @@
|
|||
"Defenders: 2 infantry"
|
||||
],
|
||||
[
|
||||
"Player1: Tactics: Played a Tactics Card"
|
||||
"Player1: Tactics: Play an action card face down"
|
||||
],
|
||||
[
|
||||
"Player2: Tactics: Played a Tactics Card",
|
||||
"Player2: Tactics: Play an action card face down",
|
||||
"Player1 reveals Tactics Card Peltasts",
|
||||
"Player2 reveals Tactics Card Scout",
|
||||
"Player2: Scout: Ignore the enemy tactics Peltasts and takes it to their hand using Scout",
|
||||
"Player2: Scout: Ignore the enemy tactics",
|
||||
"Player2: Scout: Gain Quick Advance/Peltasts from discard pile",
|
||||
"Player1 rolled 6 (infantry, +1 combat value) for combined combat value of 7 and gets 1 hits against defending units.",
|
||||
"Player2 rolled 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",
|
||||
|
|
|
|||
|
|
@ -233,6 +233,21 @@
|
|||
"city_mood": "Angry"
|
||||
},
|
||||
"items": [
|
||||
{
|
||||
"player": 0,
|
||||
"HandCard": {
|
||||
"card": {
|
||||
"ActionCard": 11
|
||||
},
|
||||
"from": {
|
||||
"Hand": 0
|
||||
},
|
||||
"to": "PlayToDiscardFaceDown"
|
||||
},
|
||||
"origin": {
|
||||
"Advance": "Tactics"
|
||||
}
|
||||
},
|
||||
{
|
||||
"player": 0,
|
||||
"Units": {
|
||||
|
|
@ -277,7 +292,7 @@
|
|||
"Defenders: 2 infantry"
|
||||
],
|
||||
[
|
||||
"Player1: Tactics: Played a Tactics Card",
|
||||
"Player1: Tactics: Play an action card face down",
|
||||
"Player1 reveals Tactics Card Siege",
|
||||
"Player1 rolled 6 (infantry, +1 combat value) for combined combat value of 8 and gets 1 hits against defending units.",
|
||||
"Player1 used the following combat modifiers: Siege added 1 to combat value",
|
||||
|
|
|
|||
|
|
@ -238,6 +238,36 @@
|
|||
"city_mood": "Angry"
|
||||
},
|
||||
"items": [
|
||||
{
|
||||
"player": 1,
|
||||
"HandCard": {
|
||||
"card": {
|
||||
"ActionCard": 10
|
||||
},
|
||||
"from": {
|
||||
"Hand": 1
|
||||
},
|
||||
"to": "PlayToDiscardFaceDown"
|
||||
},
|
||||
"origin": {
|
||||
"Advance": "Tactics"
|
||||
}
|
||||
},
|
||||
{
|
||||
"player": 1,
|
||||
"HandCard": {
|
||||
"card": {
|
||||
"ActionCard": 1
|
||||
},
|
||||
"from": "DrawPile",
|
||||
"to": {
|
||||
"Hand": 1
|
||||
}
|
||||
},
|
||||
"origin": {
|
||||
"TacticsCard": 10
|
||||
}
|
||||
},
|
||||
{
|
||||
"player": 0,
|
||||
"Units": {
|
||||
|
|
@ -282,13 +312,13 @@
|
|||
"Defenders: 2 infantry"
|
||||
],
|
||||
[
|
||||
"Player2: Tactics: Played a Tactics Card",
|
||||
"Player2: Tactics: Play an action card face down",
|
||||
"Player2 reveals Tactics Card Surprise",
|
||||
"Player1 rolled 6 (infantry, +1 combat value) for combined combat value of 7 and gets 1 hits against defending units.",
|
||||
"Player2 rolled 6 (infantry, +1 combat value), 6 (infantry, +1 combat value) for combined combat value of 15 and gets 1 hits against attacking units.",
|
||||
"Player2 used the following combat modifiers: Surprise added 1 to combat value",
|
||||
"Player2: Surprise: Draw 1 action card for Surprise tactics",
|
||||
"Player2 gained an action card from the pile",
|
||||
"Player2: Surprise: Draw an action card",
|
||||
"Player1: Choose Casualties: Remove all attacking units",
|
||||
"Player1: Combat: Lost 1 infantry at C2",
|
||||
"Player2: Choose Casualties: Remove 1 of their defending units",
|
||||
|
|
|
|||
|
|
@ -235,6 +235,21 @@
|
|||
"city_mood": "Angry"
|
||||
},
|
||||
"items": [
|
||||
{
|
||||
"player": 0,
|
||||
"HandCard": {
|
||||
"card": {
|
||||
"ActionCard": 5
|
||||
},
|
||||
"from": {
|
||||
"Hand": 0
|
||||
},
|
||||
"to": "PlayToDiscardFaceDown"
|
||||
},
|
||||
"origin": {
|
||||
"Advance": "Tactics"
|
||||
}
|
||||
},
|
||||
{
|
||||
"player": 0,
|
||||
"Units": {
|
||||
|
|
@ -279,7 +294,7 @@
|
|||
"Defenders: 2 infantry"
|
||||
],
|
||||
[
|
||||
"Player1: Tactics: Played a Tactics Card",
|
||||
"Player1: Tactics: Play an action card face down",
|
||||
"Player1 reveals Tactics Card Wedge Formation",
|
||||
"Player1 rolled 6 (infantry, +1 combat value) for combined combat value of 9 and gets 1 hits against defending units.",
|
||||
"Player1 used the following combat modifiers: Wedge Formation added 2 combat value",
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue