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.js | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'rules.js') diff --git a/rules.js b/rules.js index 4ede666..f2e83e8 100644 --- a/rules.js +++ b/rules.js @@ -343,30 +343,19 @@ function game_view(state, current) { const faction = current === OBSERVER ? null : player_faction_map[current]; view = { active: game.active, - engine: game.engine, log: game.log, prompt: null, - 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_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), 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