Skip to content

Commit

Permalink
[18Norway] Setup privates for 1.5X
Browse files Browse the repository at this point in the history
  • Loading branch information
patrikolesen committed Dec 29, 2024
1 parent cb38afd commit 1e1f799
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/engine/game/g_18_norway/game.rb
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ def switcher?(corporation)
EXTRA_TILE_LAYS = [{ lay: true, upgrade: true }, { lay: :not_if_upgraded, upgrade: false }].freeze

def setup
setup_company_price_up_to_face
MOUNTAIN_BIG_HEXES.each { |hex| hex_by_id(hex).assign!('MOUNTAIN_BIG') }
MOUNTAIN_SMALL_HEXES.each { |hex| hex_by_id(hex).assign!('MOUNTAIN_SMALL') }
corporation_by_id('H').add_ability(Engine::Ability::Base.new(
Expand Down Expand Up @@ -636,6 +637,13 @@ def sell_movement(corporation = nil)
self.class::SELL_MOVEMENT
end

def setup_company_price_up_to_face
@companies.each do |company|
company.min_price = 1
company.max_price = (company.value * 1.5)
end
end

def check_sale_timing(entity, bundle)
return false if @turn <= 1 && !@round.operating?

Expand Down

0 comments on commit 1e1f799

Please sign in to comment.