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='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. 3
0
File: port.py Progetto: kjuao9/FERNZ
from industry import IndustryPrimaryPort, TileLocationChecks

industry = IndustryPrimaryPort(id='port',
                               accept_cargo_types=['FOOD', 'FRUT', 'BEER'],
                               prod_cargo_types=[],
                               prob_in_game='2',
                               prob_random='6',
                               prod_multiplier='[9, 9]',
                               map_colour='186',
                               spec_flags='bitmask(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['FIRS'].enabled = True
industry.economy_variations['FIRS'].accept_cargo_types = ['GOOD', 'FRUT', 'MNSP']
industry.economy_variations['FIRS'].prod_cargo_types = ['ENSP', 'FMSP']
industry.economy_variations['FIRS'].prod_multiplier = '[9, 7]'

industry.economy_variations['FERNZ'].enabled = True
industry.economy_variations['FERNZ'].accept_cargo_types = ['GOOD', 'PAPR', 'WOOL']
industry.economy_variations['FERNZ'].prod_cargo_types = ['ENSP', 'FMSP']
industry.economy_variations['FERNZ'].prod_multiplier = '[9, 7]'

industry.economy_variations['BASIC_TEMPERATE'].enabled = True
industry.economy_variations['BASIC_TEMPERATE'].accept_cargo_types = ['BEER', 'GOOD']
industry.economy_variations['BASIC_TEMPERATE'].prod_cargo_types = ['ENSP']
industry.economy_variations['BASIC_TEMPERATE'].prod_multiplier = '[19]'
Esempio n. 4
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. 5
0
from industry import IndustryPrimaryPort, TileLocationChecks

industry = IndustryPrimaryPort(
    id='bulk_terminal',
    accept_cargo_types=['BDMT', 'MNO2', 'GOOD'],
    prod_cargo_types=['IORE', 'COAL'],
    prob_in_game='2',
    prob_random='6',
    prod_multiplier='[9, 9]',
    map_colour='177',
    spec_flags='bitmask(IND_FLAG_BUILT_ON_WATER)',
    location_checks=dict(same_type_distance=16),
    prospect_chance='0.75',
    name='string(STR_IND_BULK_TERMINAL)',
    nearby_station_name='string(STR_STATION_INDUSTRY_HARBOUR_1)',
    fund_cost_multiplier='152',
    override_default_construction_states=True)

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

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

# empty tile
# covered store
Esempio n. 6
0
from industry import IndustryPrimaryPort, TileLocationChecks

industry = IndustryPrimaryPort(
    id="liquids_terminal",
    accept_cargo_types=[],
    prod_cargo_types_with_multipliers=[],
    prob_in_game="2",
    prob_map_gen="6",
    map_colour="164",
    special_flags=["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['BETTER_LIVING_THROUGH_CHEMISTRY'].enabled = True
industry.economy_variations['BETTER_LIVING_THROUGH_CHEMISTRY'].accept_cargo_types = []
industry.economy_variations['BETTER_LIVING_THROUGH_CHEMISTRY'].prod_cargo_types_with_multipliers = [('OIL_', 20)]
"""

industry.economy_variations["IN_A_HOT_COUNTRY"].enabled = True
industry.economy_variations["IN_A_HOT_COUNTRY"].accept_cargo_types = [
    "EOIL", "OIL_"
]
# industry.economy_variations['IN_A_HOT_COUNTRY'].prod_cargo_types_with_multipliers = [('NH3_', 16)]
industry.economy_variations[
    "IN_A_HOT_COUNTRY"].prod_cargo_types_with_multipliers = [
        ("RFPR", 11),