From dfac77d2135ef7084852860d995113cc8709a233 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 28 Feb 2025 00:16:57 +0100 Subject: client wip --- rules.ts | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'rules.ts') diff --git a/rules.ts b/rules.ts index 98b10b9..2775617 100644 --- a/rules.ts +++ b/rules.ts @@ -513,31 +513,33 @@ function game_view(state: Game, current: Player | 'Observer') { view = { active: game.active, - engine: game.engine, // TODO: remove + // engine: game.engine, // TODO: remove log: game.log, prompt: null, - state: game.state, - bag_of_glory: game.bag_of_glory, + // state: game.state, + // bag_of_glory: game.bag_of_glory, bag_of_glory_count: game.bag_of_glory.length, bonuses: game.bonuses, - current, - current_player_faction: faction, + // current, + // current_player_faction: faction, current_events: game.current_events, first_player: game.first_player, fronts: game.fronts, glory: game.glory, hand: faction === null ? [] : game.hands[faction], - discard: faction === null ? [] : game.discard[faction], - trash: faction === null ? [] : game.trash[faction], - deck: faction === null ? [] : list_deck(faction), + // discard: faction === null ? [] : game.discard[faction], + // trash: faction === null ? [] : game.trash[faction], + // deck: faction === null ? [] : list_deck(faction), hero_points: game.hero_points, initiative: game.initiative, medallions: game.medallions, played_card: game.played_card, + /* player_order: current === OBSERVER ? game.player_order : get_player_order_in_game(faction).map((id) => faction_player_map[id]), + */ selectable_cards: game.selectable_cards, selected_cards: current === OBSERVER ? [] : game.selected_cards[faction], tableaus: game.tableaus, -- cgit v1.2.3