lib/engine/game/g_1862/game.rb
# OK to start a corp if
# - there still is a slot available, OR
# - a legal upgrade has an additional slot
OK to start a corp if
there still is a slot available, OR
a legal upgrade has an additional slot
OK to start a corp if there still is a slot available OR a legal upgrade has an additional slot
def legal_to_start?(corporation)
          return true if corporation.tokens.first&.used
          hex = hex_by_id(corporation.coordinates)
          city = hex.tile.cities.first
          city.tokenable?(corporation, free: true) || upgrade_tokenable?(hex)
        end
def legal_to_start? ( corporation ) return true if corporation . tokens . first &. used hex = hex_by_id ( corporation . coordinates ) city = hex . tile . cities . first city . tokenable? ( corporation , free : true ) || upgrade_tokenable? ( hex ) end
OK to start a corp if
 there still is a slot available, OR
 a legal upgrade has an additional slot
OK to start a corp if there still is a slot available OR a legal upgrade has an additional slot
corporation
<not_specific>