Esempio n. 1
0
from industry import IndustryPrimaryPort, TileLocationChecks

industry = IndustryPrimaryPort(
    id='trading_post',
    accept_cargo_types=['FOOD', 'FRUT', 'BEER'],
    prod_cargo_types=['ENSP', 'FMSP'],  #todo add???
    prob_in_game='2',
    prob_random='6',
    prod_multiplier='[7, 6]',
    map_colour='37',
    spec_flags='bitmask(IND_FLAG_BUILT_ON_WATER)',
    location_checks=dict(same_type_distance=16),
    prospect_chance='0.75',
    name='string(STR_IND_TRADING_POST)',
    nearby_station_name='string(STR_STATION_INDUSTRY_HARBOUR_3)',
    fund_cost_multiplier='152',
    override_default_construction_states=True)

industry.economy_variations['BASIC_ARCTIC'].enabled = True
industry.economy_variations['BASIC_ARCTIC'].accept_cargo_types = [
    'BOOM', 'PEAT', 'GOOD'
]
industry.economy_variations['BASIC_ARCTIC'].prod_cargo_types = ['FMSP', 'BEER']

industry.economy_variations['MISTAH_KURTZ'].enabled = True
industry.economy_variations['MISTAH_KURTZ'].accept_cargo_types = [
    'DIAM', 'JAVA', 'RUBR'
]
industry.economy_variations['MISTAH_KURTZ'].prod_cargo_types = ['ENSP', 'FMSP']

industry.add_tile(
Esempio n. 2
0
from industry import IndustryPrimaryPort, TileLocationChecks

industry = IndustryPrimaryPort(
    id="wharf",
    accept_cargo_types=[],
    prod_cargo_types_with_multipliers=[],
    prob_in_game="2",
    prob_map_gen="6",
    map_colour="37",
    special_flags=["IND_FLAG_BUILT_ON_WATER"],
    location_checks=dict(same_type_distance=16),
    prospect_chance="0.75",
    name="string(STR_IND_WHARF)",
    nearby_station_name="string(STR_STATION_INDUSTRY_HARBOUR_4)",
    fund_cost_multiplier="152",
    override_default_construction_states=True,
)

industry.economy_variations["BASIC_ARCTIC"].enabled = True
industry.economy_variations["BASIC_ARCTIC"].accept_cargo_types = [
    "BOOM",
    "PEAT",
    "WDPR",
]
industry.economy_variations[
    "BASIC_ARCTIC"].prod_cargo_types_with_multipliers = [
        ("POTA", 19),
        ("ENSP", 9),
        ("FMSP", 9),
    ]
Esempio n. 3
0
from industry import IndustryPrimaryPort, TileLocationChecks

industry = IndustryPrimaryPort(
    id='liquids_terminal',
    accept_cargo_types=['CHLO', 'PETR', 'EOIL'],
    prod_cargo_types=['ACID', 'RFPR'],
    prob_in_game='2',
    prob_random='6',
    prod_multiplier='[9, 9]',
    map_colour='164',
    spec_flags='bitmask(IND_FLAG_BUILT_ON_WATER)',
    location_checks=dict(same_type_distance=16),
    prospect_chance='0.75',
    name='string(STR_IND_LIQUIDS_TERMINAL)',
    nearby_station_name='string(STR_STATION_TANK_FARM)',
    fund_cost_multiplier='152',
    override_default_construction_states=True)

industry.economy_variations['FIRS'].enabled = True

industry.add_tile(
    id='liquids_terminal_tile_1',
    land_shape_flags='bitmask(LSF_ONLY_ON_FLAT_LAND)',
    location_checks=TileLocationChecks(always_allow_founder=False))
industry.add_tile(id='liquids_terminal_tile_2',
                  foundations='return CB_RESULT_NO_FOUNDATIONS',
                  location_checks=TileLocationChecks(
                      always_allow_founder=False, require_coast=True))

sprite_ground = industry.add_sprite(sprite_number='GROUNDSPRITE_WATER')
spriteset_ground_empty = industry.add_spriteset(type='empty')
Esempio n. 4
0
from industry import IndustryPrimaryPort, TileLocationChecks

industry = IndustryPrimaryPort(
    id="port",
    accept_cargo_types=[],
    prod_cargo_types_with_multipliers=[],
    prob_in_game="2",
    prob_map_gen="8",
    map_colour="186",
    special_flags=["IND_FLAG_BUILT_ON_WATER"],
    location_checks=dict(same_type_distance=16),
    prospect_chance="0.75",
    name="string(STR_IND_PORT)",
    nearby_station_name="string(STR_STATION_INDUSTRY_HARBOUR_2)",
    fund_cost_multiplier="152",
    override_default_construction_states=True,
)

industry.economy_variations["BASIC_TEMPERATE"].enabled = True
industry.economy_variations["BASIC_TEMPERATE"].accept_cargo_types = [
    "GOOD",
    "KAOL",
    "FOOD",
]
industry.economy_variations["BASIC_TEMPERATE"].prod_cargo_types_with_multipliers = [
    ("ENSP", 19),
    ("FMSP", 7),
    ("RFPR", 19),
]
industry.economy_variations["BASIC_TEMPERATE"].prob_map_gen = "10"