Skip to content

Commit

Permalink
Merge pull request #11275 from 18xx-ru/system-18-fix-discard
Browse files Browse the repository at this point in the history
System18: Remove discarded trains from the game
  • Loading branch information
ollybh authored Oct 24, 2024
2 parents 1a85716 + 62c4286 commit f2c3633
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/engine/game/g_system18/game.rb
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ class Game < Game::Base
BANKRUPTCY_ENDS_GAME_AFTER = :one
STATUS_TEXT = {}.freeze
TILE_UPGRADES_MUST_USE_MAX_EXITS = [].freeze
DISCARDED_TRAINS = :remove

def find_map_name
optional_rules&.find { |r| r.to_s.include?('map_') }&.to_s&.delete_prefix('map_')&.downcase
Expand Down

0 comments on commit f2c3633

Please sign in to comment.