Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System18 northern italy #11216

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
15 commits
Select commit Hold shift + click to select a range
2094830
Created a copy of the System18 Poland map called Northern Italy
BlueChickenBoardGames Aug 28, 2024
5358a98
Merge branch 'tobymao:master' into System18NorthernItaly
BlueChickenBoardGames Aug 28, 2024
eadaef4
Merge branch 'tobymao:master' into System18NorthernItaly
BlueChickenBoardGames Sep 10, 2024
618d2ef
System18 Northern Italy regions, city names, tiles, map in progress
BlueChickenBoardGames Sep 10, 2024
e69c722
System18 Northern Italy finished map and other stuff, still number of…
BlueChickenBoardGames Sep 10, 2024
847879f
Merge branch 'System18NorthernItaly' of https://github.com/BlueChicke…
BlueChickenBoardGames Sep 10, 2024
670d487
System18 Northern Italy: map fixes, phases, share price movement as f…
BlueChickenBoardGames Sep 11, 2024
56c7ec0
System18 Northern Italy small fixes
BlueChickenBoardGames Sep 12, 2024
802fbd0
System18 Northern Italy: fixed docker issues and fixed spelling mistakes
BlueChickenBoardGames Sep 16, 2024
1bc1fb0
Merge branch 'master' into System18NorthernItaly
BlueChickenBoardGames Oct 11, 2024
e3f5b06
System18 NorthernItaly: use general Parliament round
BlueChickenBoardGames Oct 11, 2024
1fd8506
System18 NorthernItaly: fix merge mistake
BlueChickenBoardGames Oct 11, 2024
e0c387c
System18 NorthernItaly: docker rubocop fixes
BlueChickenBoardGames Oct 11, 2024
206b502
System18 NorthernItaly: delete specific charter auction
BlueChickenBoardGames Oct 13, 2024
e50a227
Merge branch 'tobymao:master' into System18NorthernItaly
BlueChickenBoardGames Oct 26, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion lib/engine/game/g_system18/game.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
require_relative 'map_china_rapid_development_customization'
require_relative 'map_poland_customization'
require_relative 'map_britain_customization'
require_relative 'map_northern_italy_customization'

module Engine
module Game
Expand All @@ -30,6 +31,7 @@ class Game < Game::Base
include MapChinaRapidDevelopmentCustomization
include MapPolandCustomization
include MapBritainCustomization
include MapNorthernItalyCustomization

register_colors(red: '#d1232a',
orange: '#f58121',
Expand Down Expand Up @@ -375,7 +377,15 @@ def game_phases
end

def half_dividend_by_map?
game_capitalization == :incremental
return game_capitalization == :incremental unless respond_to?("map_#{map_name}_half_dividend")

send("map_#{map_name}_half_dividend")
end

def share_price_change_as_full_cap_by_map?
return game_capitalization == :full unless respond_to?("map_#{map_name}_share_price_change_as_full_cap")

send("map_#{map_name}_share_price_change_as_full_cap")
end

def redef_const(const, value)
Expand Down Expand Up @@ -646,6 +656,14 @@ def ipo_name(_corp)
game_capitalization == :incremental ? 'Treasury' : 'IPO'
end

def issuable_shares(entity)
return [] unless entity.operating_history.size > 1
return [] unless entity.corporation?

bundles_for_corporation(entity, entity)
.select { |bundle| @share_pool.fit_in_bank?(bundle) }
end

def can_remove_icon?(entity)
return false unless respond_to?("map_#{map_name}_can_remove_icon?")

Expand Down
Loading
Loading