Exemple #1
0
from industry import IndustryTertiary, TileLocationChecks

industry = IndustryTertiary(
    id="general_store",
    accept_cargo_types=["FOOD", "GOOD", "BEER"],
    prod_cargo_types=[],
    prob_in_game="12",
    prob_map_gen="24",
    prod_multiplier="[0, 0]",
    map_colour="168",
    life_type="IND_LIFE_TYPE_BLACK_HOLE",
    special_flags=["IND_FLAG_ONLY_IN_TOWNS"],
    location_checks=dict(same_type_distance=16),
    prospect_chance="0.75",
    name="string(STR_IND_GENERAL_STORE)",
    nearby_station_name="string(STR_STATION_TOWN_3)",
    fund_cost_multiplier="15",
)

industry.economy_variations["BASIC_TEMPERATE"].enabled = True

industry.economy_variations["BASIC_ARCTIC"].enabled = True
industry.economy_variations["BASIC_ARCTIC"].accept_cargo_types = [
    "FOOD",
]

industry.economy_variations["BASIC_TROPIC"].enabled = True
###industry.economy_variations['BETTER_LIVING_THROUGH_CHEMISTRY'].enabled = True

industry.economy_variations["IN_A_HOT_COUNTRY"].enabled = True
industry.economy_variations["IN_A_HOT_COUNTRY"].prob_map_gen = "14"
Exemple #2
0
from industry import IndustryTertiary, TileLocationChecks

industry = IndustryTertiary(id='food_market',
                            accept_cargo_types=['FOOD', 'FRUT', 'BEER'],
                            prod_cargo_types=[],
                            prob_in_game='12',
                            prob_random='24',
                            prod_multiplier='[0, 0]',
                            map_colour='191',
                            life_type='IND_LIFE_TYPE_BLACK_HOLE',
                            spec_flags='bitmask(IND_FLAG_ONLY_IN_TOWNS)',
                            location_checks=dict(same_type_distance=16),
                            prospect_chance='0.75',
                            name='string(STR_IND_FOOD_MARKET)',
                            nearby_station_name='string(STR_STATION_TOWN_3)',
                            fund_cost_multiplier='15')

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

industry.add_tile(
    id='food_market_tile_1',
    location_checks=TileLocationChecks(require_road_adjacent=True))

spriteset_ground = industry.add_spriteset(type='slab', )
spriteset_ground_overlay = industry.add_spriteset(sprites=[(10, 10, 64, 31,
                                                            -31, 0)], )
spriteset_1 = industry.add_spriteset(sprites=[(10, 60, 64, 36, -31, -4)])
sprite_tree_1 = industry.add_sprite(
    sprite_number=
    'nearby_tile_terrain_type(0, 0) != TILETYPE_SNOW ? market_tree : market_tree_snow',
    xoffset=11,
Exemple #3
0
from industry import IndustryTertiary, TileLocationChecks

industry = IndustryTertiary(id='general_store',
                            accept_cargo_types=['FOOD', 'GOOD', 'BEER'],
                            prod_cargo_types=[],
                            prob_in_game='12',
                            prob_random='24',
                            prod_multiplier='[0, 0]',
                            map_colour='168',
                            life_type='IND_LIFE_TYPE_BLACK_HOLE',
                            spec_flags='bitmask(IND_FLAG_ONLY_IN_TOWNS)',
                            location_checks=dict(same_type_distance=16),
                            prospect_chance='0.75',
                            name='string(STR_IND_GENERAL_STORE)',
                            nearby_station_name='string(STR_STATION_TOWN_3)',
                            fund_cost_multiplier='15')

industry.economy_variations['FIRS'].enabled = True
industry.economy_variations['BASIC_ARCTIC'].enabled = True
industry.economy_variations['BASIC_TROPIC'].enabled = True
industry.economy_variations['MISTAH_KURTZ'].enabled = True
industry.economy_variations['MISTAH_KURTZ'].prob_random = '14'
industry.economy_variations['STEELTOWN'].enabled = True

industry.add_tile(
    id='general_store_tile_1',
    location_checks=TileLocationChecks(require_road_adjacent=True))

spriteset_ground = industry.add_spriteset(type='slab', )
spriteset_ground_overlay = industry.add_spriteset(sprites=[(10, 10, 64, 31,
                                                            -31, 0)], )
Exemple #4
0
from industry import IndustryTertiary, TileLocationChecks

industry = IndustryTertiary(
    id='builders_yard',
    accept_cargo_types=['BDMT'],
    prod_cargo_types=[],
    prob_in_game='12',
    prob_random='18',
    prod_multiplier='[0, 0]',
    map_colour='169',
    life_type='IND_LIFE_TYPE_BLACK_HOLE',
    prospect_chance='0.75',
    name='string(STR_IND_BUILDERS_YARD)',
    nearby_station_name='string(STR_STATION_MERCHANTS_LANE)',
    fund_cost_multiplier='16')

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

industry.economy_variations['MISTAH_KURTZ'].enabled = True
industry.economy_variations['MISTAH_KURTZ'].prob_random = '14'

industry.add_tile(id='builders_yard_tile_1',
                  location_checks=TileLocationChecks(
                      require_houses_nearby=True,
                      require_effectively_flat=True,
                      disallow_industry_adjacent=True))

spriteset_ground = industry.add_spriteset(type='concrete', )
spriteset_ground_overlay = industry.add_spriteset(type='empty')
stacks_1 = industry.add_spriteset(sprites=[(10, 10, 64, 56, -31, -26)], )
Exemple #5
0
from industry import IndustryTertiary, TileLocationChecks

industry = IndustryTertiary(
    id="food_market",
    accept_cargo_types=["FOOD", "FRUT", "BEER"],
    prod_cargo_types=[],
    prob_in_game="12",
    prob_map_gen="24",
    prod_multiplier="[0, 0]",
    map_colour="191",
    life_type="IND_LIFE_TYPE_BLACK_HOLE",
    special_flags=["IND_FLAG_ONLY_IN_TOWNS"],
    location_checks=dict(same_type_distance=16),
    prospect_chance="0.75",
    name="string(STR_IND_FOOD_MARKET)",
    nearby_station_name="string(STR_STATION_TOWN_3)",
    fund_cost_multiplier="15",
)

industry.add_tile(
    id="food_market_tile_1",
    location_checks=TileLocationChecks(require_road_adjacent=True),
)

spriteset_ground = industry.add_spriteset(type="slab", )
spriteset_ground_overlay = industry.add_spriteset(sprites=[(10, 10, 64, 31,
                                                            -31, 0)], )
spriteset_1 = industry.add_spriteset(sprites=[(10, 60, 64, 36, -31, -4)])
sprite_tree_1 = industry.add_sprite(
    sprite_number=
    "nearby_tile_terrain_type(0, 0) != TILETYPE_SNOW ? 1639 : 1793",
Exemple #6
0
from industry import IndustryTertiary, TileLocationChecks

industry = IndustryTertiary(id='petrol_pump',
                            accept_cargo_types=['FOOD', 'GOOD', 'PETR'],
                            prod_cargo_types=[],
                            prob_in_game='14',
                            prob_random='14',
                            prod_multiplier='[0, 0]',
                            map_colour='169',
                            life_type='IND_LIFE_TYPE_BLACK_HOLE',
                            location_checks=dict(same_type_distance=16),
                            prospect_chance='0.75',
                            name='string(STR_IND_PETROLPUMP)',
                            nearby_station_name='string(STR_STATION_PUMPS)',
                            fund_cost_multiplier='8',
                            intro_year=1900)

industry.economy_variations['FIRS'].enabled = True
industry.economy_variations['FERNZ'].enabled = True
industry.economy_variations['MISTAH_KURTZ'].enabled = True
industry.economy_variations['MISTAH_KURTZ'].prob_random = '8'
industry.economy_variations['MISTAH_KURTZ'].prob_in_game = '8'

industry.add_tile(id='petrol_pump_tile_1',
                  location_checks=TileLocationChecks(require_road_adjacent=True,
                                                     require_effectively_flat=True))

sprite_ground = industry.add_sprite(
    sprite_number='GROUNDTILE_SLABS',
)
sprite_ground_overlay = industry.add_sprite(
Exemple #7
0
from industry import IndustryTertiary, TileLocationChecks

industry = IndustryTertiary(
    id="hardware_store",
    accept_cargo_types=[],
    prod_cargo_types=[],
    prob_in_game="18",
    prob_map_gen="24",
    prod_multiplier="[0, 0]",
    map_colour="169",
    life_type="IND_LIFE_TYPE_BLACK_HOLE",
    special_flags=["IND_FLAG_ONLY_IN_TOWNS"],
    location_checks=dict(same_type_distance=16),
    prospect_chance="0.75",
    name="string(STR_IND_HARDWARE_STORE)",
    nearby_station_name="string(STR_STATION_TOWN_1)",
    fund_cost_multiplier="15",
)

industry.economy_variations["IN_A_HOT_COUNTRY"].enabled = True
###industry.economy_variations['BETTER_LIVING_THROUGH_CHEMISTRY'].enabled = True

industry.add_tile(
    id="hardware_store_tile_1",
    location_checks=TileLocationChecks(require_road_adjacent=True),
)

hardware_store_spriteset_ground = industry.add_spriteset(type="slab", )
hardware_store_spriteset_ground_overlay = industry.add_spriteset(
    type="empty", )
hardware_store_spriteset = industry.add_spriteset(sprites=[(0, 0, 64, 64, -31,
Exemple #8
0
from industry import IndustryTertiary, TileLocationChecks

industry = IndustryTertiary(
    id='power_plant',
    accept_cargo_types=['COAL'],
    prod_cargo_types=[],
    prob_in_game='3',
    prob_random='5',
    prod_multiplier='[0, 0]',
    map_colour='168',
    life_type='IND_LIFE_TYPE_BLACK_HOLE',
    prospect_chance='0.75',
    name='string(STR_IND_POWER_PLANT)',
    nearby_station_name='string(STR_STATION_POWERHUNGRY)',
    fund_cost_multiplier='15',
    intro_year=1900)

industry.economy_variations['FIRS'].enabled = True
industry.economy_variations['FERNZ'].enabled = True
industry.economy_variations['BASIC_ARCTIC'].enabled = True
industry.economy_variations['BASIC_ARCTIC'].accept_cargo_types = ['PEAT']

industry.add_tile(id='power_plant_tile_1',
                  animation_length=7,
                  animation_looping=True,
                  animation_speed=3,
                  custom_animation_control={
                      'macro':
                      'random_first_frame',
                      'animation_triggers':
                      'bitmask(ANIM_TRIGGER_INDTILE_CONSTRUCTION_STATE)'
Exemple #9
0
from industry import IndustryTertiary, TileLocationChecks

industry = IndustryTertiary(
    id="petrol_pump",
    accept_cargo_types=["FOOD", "GOOD", "PETR"],
    prod_cargo_types=[],
    prob_in_game="14",
    prob_map_gen="14",
    prod_multiplier="[0, 0]",
    map_colour="169",
    life_type="IND_LIFE_TYPE_BLACK_HOLE",
    location_checks=dict(same_type_distance=16),
    prospect_chance="0.75",
    name="string(STR_IND_PETROLPUMP)",
    nearby_station_name="string(STR_STATION_PUMPS)",
    fund_cost_multiplier="8",
)

industry.economy_variations["IN_A_HOT_COUNTRY"].enabled = True
industry.economy_variations["IN_A_HOT_COUNTRY"].prob_map_gen = "8"
industry.economy_variations["IN_A_HOT_COUNTRY"].prob_in_game = "8"

industry.add_tile(
    id="petrol_pump_tile_1",
    location_checks=TileLocationChecks(require_road_adjacent=True,
                                       require_effectively_flat=True),
)

sprite_ground = industry.add_sprite(sprite_number="GROUNDTILE_SLABS", )
sprite_ground_overlay = industry.add_sprite(sprite_number="GROUNDTILE_SLABS", )
spriteset_1 = industry.add_spriteset(sprites=[(10, 60, 64, 59, -31, -28)])
Exemple #10
0
from industry import IndustryTertiary, TileLocationChecks

industry = IndustryTertiary(
    id="vehicle_distributor",
    accept_cargo_types=["VEHI"],
    prod_cargo_types_with_multipliers=[],
    prob_in_game="3",
    prob_map_gen="10",
    map_colour="207",
    life_type="IND_LIFE_TYPE_BLACK_HOLE",
    location_checks=dict(same_type_distance=32),
    prospect_chance="0.75",
    name="string(STR_IND_VEHICLE_DISTRIBUTOR)",
    nearby_station_name="string(STR_STATION_VEHICLE_DISTRIBUTOR)",
    fund_cost_multiplier="8",
)

industry.economy_variations["STEELTOWN"].enabled = True

industry.add_tile(
    id="vehicle_distributor_tile_1",
    location_checks=TileLocationChecks(
        # require_road_adjacent=True,
        require_houses_nearby=True,
        require_effectively_flat=True,
    ),
)

spriteset_ground = industry.add_spriteset(type="concrete", )
spriteset_ground_overlay = industry.add_spriteset(type="empty")
spriteset_1 = industry.add_spriteset(sprites=[(10, 60, 64, 59, -31, -28)])
Exemple #11
0
from industry import IndustryTertiary, TileLocationChecks

industry = IndustryTertiary(
    id="hotel",
    accept_cargo_types=["FOOD", "BEER", "PASS"],
    prod_cargo_types_with_multipliers=[("PASS", 17)],
    prob_in_game="15",
    prob_map_gen="10",
    map_colour="189",
    life_type="IND_LIFE_TYPE_BLACK_HOLE",
    location_checks=dict(same_type_distance=16),
    prospect_chance="0.75",
    name="string(STR_IND_HOTEL)",
    nearby_station_name="string(STR_STATION_BAR_GRILL_AND_ROOMS)",
    fund_cost_multiplier="101",
)

industry.economy_variations["BASIC_TEMPERATE"].enabled = True
industry.economy_variations["BASIC_TROPIC"].enabled = True
industry.economy_variations["BASIC_ARCTIC"].enabled = True
###industry.economy_variations['BETTER_LIVING_THROUGH_CHEMISTRY'].enabled = True
industry.economy_variations["IN_A_HOT_COUNTRY"].enabled = True

industry.add_tile(
    id="hotel_tile_1",
    location_checks=TileLocationChecks(
        require_effectively_flat=True, require_houses_nearby=True
    ),
)

sprite_ground = industry.add_sprite(sprite_number="GROUNDSPRITE_CLEARED")
Exemple #12
0
from industry import IndustryTertiary, TileLocationChecks

industry = IndustryTertiary(id='hardware_store',
                            accept_cargo_types=['GOOD', 'BDMT'],
                            prod_cargo_types=[],
                            prob_in_game='18',
                            prob_random='24',
                            prod_multiplier='[0, 0]',
                            map_colour='169',
                            life_type='IND_LIFE_TYPE_BLACK_HOLE',
                            spec_flags='bitmask(IND_FLAG_ONLY_IN_TOWNS)',
                            location_checks=dict(same_type_distance=16),
                            prospect_chance='0.75',
                            name='string(STR_IND_HARDWARE_STORE)',
                            nearby_station_name='string(STR_STATION_TOWN_1)',
                            fund_cost_multiplier='15')

industry.economy_variations['FIRS'].enabled = True
industry.economy_variations['FERNZ'].enabled = True
industry.economy_variations['MISTAH_KURTZ'].enabled = True
industry.economy_variations['MISTAH_KURTZ'].prob_random = '14'

industry.add_tile(
    id='hardware_store_tile_1',
    location_checks=TileLocationChecks(require_road_adjacent=True))

hardware_store_spriteset_ground = industry.add_spriteset(type='slab', )
hardware_store_spriteset_ground_overlay = industry.add_spriteset(
    type='empty', )
hardware_store_spriteset = industry.add_spriteset(sprites=[(0, 0, 64, 64, -31,
                                                            -33)])
Exemple #13
0
from industry import IndustryTertiary, TileLocationChecks

industry = IndustryTertiary(
    id="power_plant",
    accept_cargo_types=["COAL"],
    prod_cargo_types=[],
    prob_in_game="3",
    prob_map_gen="5",
    prod_multiplier="[0, 0]",
    map_colour="168",
    life_type="IND_LIFE_TYPE_BLACK_HOLE",
    prospect_chance="0.75",
    name="string(STR_IND_POWER_PLANT)",
    nearby_station_name="string(STR_STATION_POWERHUNGRY)",
    fund_cost_multiplier="15",
)

industry.economy_variations["BASIC_ARCTIC"].enabled = True
industry.economy_variations["BASIC_ARCTIC"].accept_cargo_types = ["PEAT"]

industry.add_tile(
    id="power_plant_tile_1",
    animation_length=7,
    animation_looping=True,
    animation_speed=3,
    custom_animation_control={
        "macro": "random_first_frame",
        "animation_triggers":
        "bitmask(ANIM_TRIGGER_INDTILE_CONSTRUCTION_STATE)",
    },
    location_checks=TileLocationChecks(require_effectively_flat=True,
Exemple #14
0
from industry import IndustryTertiary, TileLocationChecks

industry = IndustryTertiary(
    id="builders_yard",
    accept_cargo_types=["BDMT"],
    prod_cargo_types=[],
    prob_in_game="12",
    prob_map_gen="18",
    prod_multiplier="[0, 0]",
    map_colour="169",
    life_type="IND_LIFE_TYPE_BLACK_HOLE",
    prospect_chance="0.75",
    name="string(STR_IND_BUILDERS_YARD)",
    nearby_station_name="string(STR_STATION_MERCHANTS_LANE)",
    fund_cost_multiplier="16",
)

###industry.economy_variations['BETTER_LIVING_THROUGH_CHEMISTRY'].enabled = True

industry.economy_variations["STEELTOWN"].enabled = True
industry.economy_variations["STEELTOWN"].prob_in_game = "6"
industry.economy_variations["STEELTOWN"].prob_map_gen = "9"
industry.economy_variations["STEELTOWN"].accept_cargo_types = [
    "CMNT", "PIPE", "STSE"
]

industry.economy_variations["IN_A_HOT_COUNTRY"].enabled = True
industry.economy_variations["IN_A_HOT_COUNTRY"].prob_map_gen = "14"
# industry.economy_variations['IN_A_HOT_COUNTRY'].accept_cargo_types = ['CMNT', 'WDPR']

industry.add_tile(
Exemple #15
0
from industry import IndustryTertiary, TileLocationChecks

industry = IndustryTertiary(
    id='vehicle_dealer',
    accept_cargo_types=['VEHI'],
    prod_cargo_types=[],
    prob_in_game='14',
    prob_random='14',
    prod_multiplier='[0, 0]',
    map_colour='189',
    life_type='IND_LIFE_TYPE_BLACK_HOLE',
    spec_flags='bitmask(IND_FLAG_BUILT_NEAR_TOWN)',
    location_checks=dict(same_type_distance=32),
    prospect_chance='0.75',
    name='string(STR_IND_VEHICLE_DEALER)',
    nearby_station_name='string(STR_STATION_VEHICLE_DEALER)',
    fund_cost_multiplier='8')

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

industry.add_tile(id='vehicle_dealer_tile_1',
                  location_checks=TileLocationChecks(
                      require_road_adjacent=True,
                      require_effectively_flat=True))

spriteset_ground = industry.add_spriteset(type='concrete', )
spriteset_ground_overlay = industry.add_spriteset(type='empty')
spriteset_1 = industry.add_spriteset(sprites=[(10, 60, 64, 59, -31, -28)])
spriteset_2 = industry.add_spriteset(sprites=[(80, 60, 64, 59, -31, -28)])

industry.add_spritelayout(
Exemple #16
0
from industry import IndustryTertiary, TileLocationChecks

industry = IndustryTertiary(
    id='hotel',
    accept_cargo_types=['FOOD', 'BEER', 'PASS'],
    prod_cargo_types=['PASS'],
    prob_in_game='15',
    prob_random='10',
    prod_multiplier='[17, 0]',
    map_colour='189',
    life_type='IND_LIFE_TYPE_BLACK_HOLE',
    location_checks=dict(same_type_distance=16),
    prospect_chance='0.75',
    name='string(STR_IND_HOTEL)',
    nearby_station_name='string(STR_STATION_BAR_GRILL_AND_ROOMS)',
    fund_cost_multiplier='101')

industry.economy_variations['FIRS'].enabled = True
industry.economy_variations['BASIC_TEMPERATE'].enabled = True
industry.economy_variations['BASIC_TROPIC'].enabled = True
industry.economy_variations['BASIC_ARCTIC'].enabled = True
industry.economy_variations['MISTAH_KURTZ'].enabled = True

industry.add_tile(id='hotel_tile_1',
                  location_checks=TileLocationChecks(
                      require_effectively_flat=True,
                      require_houses_nearby=True))

sprite_ground = industry.add_sprite(sprite_number='GROUNDSPRITE_CLEARED')
spriteset_ground_overlay = industry.add_spriteset(type='empty', )
sprite_building_1 = industry.add_sprite(