diff --git a/lib/engine/game/g_1837/entities.rb b/lib/engine/game/g_1837/entities.rb index b9ecdb3b2b..fae17cc82f 100644 --- a/lib/engine/game/g_1837/entities.rb +++ b/lib/engine/game/g_1837/entities.rb @@ -5,6 +5,15 @@ module Game module G1837 module Entities COMPANIES = [ + { + name: 'Block Bosnia-Herzegovina hexes', + sym: '3', + value: 0, + meta: { hidden: true }, + abilities: [ + { type: 'blocks_hexes', remove: '3', hexes: %w[L16 L18 L20 M17 M19 M21 N18 N20] }, + ], + }, { name: 'Pilsen-Priesen Railway', sym: 'EPP', diff --git a/lib/engine/game/g_1837/game.rb b/lib/engine/game/g_1837/game.rb index 0ff8663d53..887ca0de07 100644 --- a/lib/engine/game/g_1837/game.rb +++ b/lib/engine/game/g_1837/game.rb @@ -265,7 +265,9 @@ def initial_auction_companies end def setup - non_purchasable = @companies.flat_map { |c| c.meta['additional_companies'] }.compact + non_purchasable = @companies.flat_map do |c| + Array(c.meta['additional_companies']) + [c.meta['hidden'] ? c.id : nil] + end.compact @companies.each { |company| company.owner = @bank unless non_purchasable.include?(company.id) } setup_mines setup_minors