Exemple #1
0

industry.add_tile(id='vineyard_tile_1',
                  foundations='return CB_RESULT_NO_FOUNDATIONS',
                  autoslope='return CB_RESULT_NO_AUTOSLOPE',
                  location_checks=TileLocationChecks(disallow_above_snowline=True,
                                                     disallow_desert=True,
                                                     disallow_industry_adjacent=True))
industry.add_tile(id='vineyard_tile_2',  # house
                  autoslope='return CB_RESULT_AUTOSLOPE',
                  location_checks=TileLocationChecks(disallow_above_snowline=True,
                                                     disallow_desert=True,
                                                     disallow_industry_adjacent=True))

sprite_ground = industry.add_sprite(
    sprite_number=3962
)
spriteset_ground_overlay = industry.add_spriteset(
    type='empty'
)
spriteset_1 = industry.add_spriteset(
    sprites=[(10, 10, 64, 59, -31, -28)],
)
spriteset_2 = industry.add_spriteset(
    sprites=[(80, 10, 64, 59, -31, -28)],
)

industry.add_spritelayout(
    id='vineyard_house_spritelayout',
    ground_sprite=sprite_ground,
    ground_overlay=spriteset_ground_overlay,
Exemple #2
0
                                  name='string(STR_IND_ARABLE_FARM)',
                                  extra_text_fund='string(STR_FUND_ARABLE_FARM)',
                                  nearby_station_name='string(STR_STATION_FARM_1)',
                                  fund_cost_multiplier='55',
                                  graphics_change_dates=[1928])

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

industry.add_tile(id='arable_farm_tile_1',
                  location_checks=TileLocationChecks(disallow_slopes=True,
                                                     disallow_above_snowline=True,
                                                     disallow_desert=True,
                                                     disallow_industry_adjacent=True))

sprite_ground = industry.add_sprite(
    sprite_number='GROUNDTILE_MUD_TRACKS'
)
spriteset_ground_empty = industry.add_spriteset(
    type='empty'
)
spriteset_ground_overlay = industry.add_spriteset(
    type='empty'
)
spriteset_1 = industry.add_spriteset(
    sprites=[(10, 10, 64, 59, -31, -28)],
)
spriteset_2 = industry.add_spriteset(
    sprites=[(80, 10, 64, 59, -31, -28)],
)
spriteset_3 = industry.add_spriteset(
    sprites=[(150, 10, 64, 59, -31, -28)],
Exemple #3
0
industry.economy_variations["BASIC_ARCTIC"].enabled = True

industry.add_tile(
    id="fish_farm_tile_1",
    land_shape_flags="bitmask(LSF_ONLY_ON_FLAT_LAND)",
    location_checks=TileLocationChecks(always_allow_founder=False),
)
industry.add_tile(
    id="fish_farm_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")
spriteset_concrete = industry.add_spriteset(
    sprites=[(10, 10, 64, 39, -31, -8)],
    always_draw=1,
)
spriteset_warehouse = industry.add_spriteset(sprites=[(80, 10, 64, 39, -31,
                                                       -16)], )
spriteset_jetty_se_nw = industry.add_spriteset(
    sprites=[(10, 60, 64, 39, -31, -7)],
    always_draw=1,
)
spriteset_jetty_ne_sw = industry.add_spriteset(sprites=[(80, 60, 64, 39, -31,
                                                         -7)],
                                               always_draw=1)
spriteset_jetty_slope_nw_se = industry.add_spriteset(sprites=[(150, 60, 64, 39,
Exemple #4
0
    ("FOOD", 14)
]

industry.add_tile(
    id="farm_tile_1",
    location_checks=TileLocationChecks(
        disallow_steep_slopes=True,
        disallow_above_snowline=True,
        disallow_desert=True,
        disallow_coast=True,
        disallow_industry_adjacent=True,
    ),
)

spriteset_ground = industry.add_spriteset(type="empty")
sprite_ground_mud = industry.add_sprite(sprite_number="GROUNDSPRITE_CLEARED")
spriteset_ground_overlay = industry.add_spriteset(type="empty")
spriteset_1 = industry.add_spriteset(
    sprites=[(10, 10, 64, 52, -31, -21)],
)
spriteset_1_ground = industry.add_spriteset(
    sprites=[(10, 70, 64, 52, -31, -21)],
)
spriteset_2 = industry.add_spriteset(
    sprites=[(80, 10, 64, 52, -31, -21)],
)
spriteset_2_ground = industry.add_spriteset(
    sprites=[(80, 70, 64, 52, -31, -21)],
)
spriteset_3 = industry.add_spriteset(
    sprites=[(150, 10, 64, 52, -31, -21)],
Exemple #5
0
industry.economy_variations['BASIC_ARCTIC'].enabled = True

industry.add_tile(id='herding_coop_tile_1',
                  animation_length=71,
                  animation_looping=True,
                  animation_speed=2,
                  location_checks=TileLocationChecks(disallow_desert=True,
                                                     disallow_coast=True,
                                                     disallow_industry_adjacent=True))

spriteset_ground = industry.add_spriteset(
    type='empty'
)
sprite_ground_mud = industry.add_sprite(
    sprite_number=3943
)
spriteset_ground_overlay = industry.add_spriteset(
    type='empty'
)
spriteset_1 = industry.add_spriteset(
    sprites=[(10, 10, 64, 52, -31, -21)],
)
spriteset_2 = industry.add_spriteset(
    sprites=[(80, 10, 64, 52, -31, -21)],
)
spriteset_3 = industry.add_spriteset(
    sprites=[(150, 10, 64, 52, -31, -21)],
)
spriteset_4 = industry.add_spriteset(
    sprites=[(220, 10, 64, 52, -31, -21)],
Exemple #6
0
industry.add_tile(id='peatlands_tile_1',
                  location_checks=TileLocationChecks(
                      require_effectively_flat=True,
                      disallow_desert=True,
                      disallow_industry_adjacent=True))
industry.add_tile(
    id='peatlands_tile_2',
    foundations=
    'return CB_RESULT_NO_FOUNDATIONS',  # might not be needed, cargo-culted from previous code, didn't test; may be needed to stop rear foundations showing in some cases?
    autoslope='return CB_RESULT_NO_AUTOSLOPE',
    location_checks=TileLocationChecks(disallow_slopes=True,
                                       disallow_desert=True,
                                       disallow_coast=True,
                                       disallow_industry_adjacent=True))

sprite_ground = industry.add_sprite(sprite_number='4126')
sprite_ground_tracks = industry.add_sprite(
    sprite_number='GROUNDTILE_MUD_TRACKS')
spriteset_1 = industry.add_spriteset(sprites=[(10, 10, 64, 64, -31, -31)], )
spriteset_2 = industry.add_spriteset(sprites=[(80, 10, 64, 64, -31, -31)], )
spriteset_3 = industry.add_spriteset(sprites=[(150, 10, 64, 64, -31, -31)], )
spriteset_4 = industry.add_spriteset(sprites=[(220, 10, 64, 64, -31, -31)], )
spriteset_5 = industry.add_spriteset(sprites=[(290, 10, 64, 64, -31, -31)], )
spriteset_6 = industry.add_spriteset(sprites=[(360, 10, 64, 64, -31, -31)], )
spriteset_7 = industry.add_spriteset(sprites=[(430, 10, 64, 64, -31, -31)], )
industry.add_spritelayout(
    id='peatlands_spritelayout_bare_ground',
    ground_sprite=sprite_ground,
    ground_overlay=sprite_ground,
    building_sprites=[],
)