Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Action1(
- feature=TRAIN,
- set_count=6,
- sprite_count=8,
- )
- g.add(sets.get_sprites('set_343'))
- g.add(sets.get_sprites('set_344'))
- g.add(sets.get_sprites('set_345'))
- g.add(sets.get_sprites('set_346'))
- g.add(sets.get_sprites('set_347'))
- g.add(sets.get_sprites('set_348'))
- layout_128_4 = GenericSpriteLayout(
- feature=TRAIN,
- ent1=(0,),
- ent2=(0,),
- )
- layout_131_11 = GenericSpriteLayout(
- feature=TRAIN,
- ent1=(1,),
- ent2=(1,),
- )
- switch_127_4 = Switch( # switch_127_4
- related_scope=True,
- code='build_year',
- ranges={
- (0, 1999): Switch( # switch_127_3
- related_scope=True,
- code='date_of_last_service',
- ranges={(0, 730484): layout_128_4},
- default=layout_131_11,
- ),
- },
- default=layout_131_11,
- )
- layout_35_17 = GenericSpriteLayout(
- feature=TRAIN,
- ent1=(2,),
- ent2=(2,),
- )
- layout_34_10 = GenericSpriteLayout(
- feature=TRAIN,
- ent1=(3,),
- ent2=(3,),
- )
- switch_129_8 = Switch( # switch_129_8
- related_scope=True,
- code='var(0x42, shift=24, and=0xff, add=0, div=2) & 1',
- ranges={
- 0: Switch( # switch_129_7
- related_scope=True,
- code='build_year',
- ranges={(0, 1999): layout_35_17},
- default=Switch( # switch_129_6
- related_scope=True,
- code='date_of_last_service',
- ranges={(0, 730484): layout_35_17},
- default=RandomSwitch(
- feature=TRAIN,
- ref_id=129,
- scope='self',
- count=None,
- triggers=0,
- cmp_all=False,
- lowest_bit=0,
- groups=[layout_35_17, layout_35_17, layout_35_17, layout_34_10],
- ),
- ),
- ),
- },
- default=switch_127_4,
- )
- layout_35_18 = GenericSpriteLayout(
- feature=TRAIN,
- ent1=(4,),
- ent2=(4,),
- )
- layout_136_16 = GenericSpriteLayout(
- feature=TRAIN,
- ent1=(5,),
- ent2=(5,),
- )
- switch_133_14 = Switch( # switch_133_14
- related_scope=True,
- code='var(0x42, shift=24, and=0xff, add=0, div=2) & 1',
- ranges={
- 0: Switch( # switch_133_13
- related_scope=True,
- code='build_year',
- ranges={(0, 1999): layout_35_18},
- default=Switch( # switch_133_12
- related_scope=True,
- code='date_of_last_service',
- ranges={(0, 730484): layout_35_18},
- default=RandomSwitch(
- feature=TRAIN,
- ref_id=133,
- scope='self',
- count=None,
- triggers=0,
- cmp_all=False,
- lowest_bit=0,
- groups=[layout_35_18, layout_35_18, layout_35_18, layout_136_16],
- ),
- ),
- ),
- },
- default=switch_127_4,
- )
- switch_136_17 = Switch( # switch_136_17
- related_scope=False,
- code='cargo_subtype',
- ranges={
- 0: Switch( # switch_129_11
- related_scope=False,
- code='var(0x41, shift=16, and=0xff, add=1, div=2)',
- ranges={
- (0, 6): switch_127_4,
- (7, 8): Switch( # switch_133_15
- related_scope=False,
- code='var(0x41, shift=0, and=0xff, add=0, div=2)',
- ranges={3: switch_133_14},
- default=switch_127_4,
- ),
- (9, 10): Switch( # switch_134_10
- related_scope=False,
- code='var(0x41, shift=0, and=0xff, add=0, div=2)',
- ranges={4: switch_133_14},
- default=switch_127_4,
- ),
- },
- default=Switch( # switch_129_10
- related_scope=False,
- code='var(0x41, shift=0, and=0xff, add=0, div=2) % 16',
- ranges={5: switch_133_14},
- default=switch_127_4,
- ),
- ),
- 1: layout_128_4,
- 2: layout_35_18,
- 3: layout_131_11,
- },
- default=layout_136_16,
- )
- switch_136_19 = Switch( # switch_136_19
- related_scope=False,
- code='var(0x41, shift=0, and=0xff, add=0, mod=2)',
- ranges={
- 0: Switch( # switch_136_18
- related_scope=False,
- code='var(0x42, shift=24, and=0x1)',
- ranges={
- 1: Switch( # switch_34_13
- related_scope=False,
- code='var(0x10, shift=0, and=0x11)',
- ranges={17: switch_136_17},
- default=Switch( # switch_34_12
- related_scope=True,
- code='vehicle_is_reversed',
- ranges={
- 1: Switch( # switch_34_11
- related_scope=False,
- code='''
- TEMP[0x80] = position_in_vehid_chain * 2
- TEMP[0x10f] = var(0x41, shift=16, and=0xff, add=1, div=1) - TEMP[128] - 2
- var(0x61, param=(242), shift=0, and=0xff)''',
- ranges={
- 0: Switch( # switch_136_15
- related_scope=False,
- code='var(0x41, shift=16, and=0xff, add=1, div=2)',
- ranges={
- (0, 6): switch_127_4,
- (7, 8): Switch( # switch_129_9
- related_scope=False,
- code='var(0x41, shift=8, and=0xff, add=0, div=2)',
- ranges={3: switch_129_8},
- default=switch_127_4,
- ),
- (9, 10): Switch( # switch_133_10
- related_scope=False,
- code='var(0x41, shift=8, and=0xff, add=0, div=2)',
- ranges={4: switch_129_8},
- default=switch_127_4,
- ),
- },
- default=Switch( # switch_136_14
- related_scope=False,
- code='var(0x41, shift=8, and=0xff, add=0, div=2) % 16',
- ranges={5: switch_129_8},
- default=switch_127_4,
- ),
- ),
- 1: layout_128_4,
- 2: layout_35_17,
- 3: layout_131_11,
- },
- default=layout_34_10,
- ),
- },
- default=switch_136_17,
- ),
- ),
- },
- default=switch_136_17,
- ),
- },
- default=layout_235_1,
- )
- Action1(
- feature=TRAIN,
- set_count=4,
- sprite_count=1,
- )
- g.add(sets.get_sprites('set_349'))
- g.add(sets.get_sprites('set_350'))
- g.add(sets.get_sprites('set_351'))
- g.add(sets.get_sprites('set_352'))
- layout_34_14 = GenericSpriteLayout(
- feature=TRAIN,
- ent1=(0,),
- ent2=(0,),
- )
- layout_131_12 = GenericSpriteLayout(
- feature=TRAIN,
- ent1=(1,),
- ent2=(1,),
- )
- switch_34_15 = Switch( # switch_34_15
- related_scope=False,
- code='extra_callback_info1',
- ranges={1: CB(510)},
- default=CB(32767),
- )
- switch_35_22 = Switch( # switch_35_22
- related_scope=False,
- code='cargo_subtype',
- ranges={
- 0: Switch( # switch_35_21
- related_scope=True,
- code='var(0x42, shift=24, and=0xff, add=0, div=2) & 1',
- ranges={
- 0: Switch( # switch_35_20
- related_scope=False,
- code='var(0x41, shift=16, and=0xff, add=1, div=2)',
- ranges={
- (0, 6): switch_30_2,
- (7, 8): Switch( # switch_129_12
- related_scope=False,
- code='var(0x41, shift=0, and=0xff, add=0, div=2)',
- ranges={3: CB(10)},
- default=switch_30_2,
- ),
- (9, 10): Switch( # switch_128_5
- related_scope=False,
- code='var(0x41, shift=0, and=0xff, add=0, div=2)',
- ranges={4: CB(10)},
- default=switch_30_2,
- ),
- },
- default=Switch( # switch_35_19
- related_scope=False,
- code='var(0x41, shift=0, and=0xff, add=0, div=2) % 16',
- ranges={5: CB(10)},
- default=switch_30_2,
- ),
- ),
- },
- default=switch_30_2,
- ),
- 2: CB(10),
- 4: CB(10),
- },
- default=switch_30_2,
- )
- ModifySprites(
- [{'num': 126, 'size': 4, 'offset': 6}]
- )
- switch_129_14 = Switch( # switch_129_14
- related_scope=False,
- code='var(0x41, shift=0, and=0xff, add=0, mod=2)',
- ranges={1: CB(2)},
- default=CB(8),
- )
- switch_126_5 = Switch( # switch_126_5
- related_scope=False,
- code='current_callback',
- ranges={
- 21: switch_35_22,
- 22: switch_34_15,
- 25: Switch( # switch_128_8
- related_scope=False,
- code='0',
- ranges={0: CB(1024)},
- default=Switch( # switch_128_7
- related_scope=False,
- code='current_year',
- ranges={
- (0, 1999): Switch( # switch_129_13
- related_scope=False,
- code='cargo_subtype',
- ranges={
- 0: CB(0),
- 1: CB(9),
- 2: CB(79),
- },
- default=CB(1024),
- ),
- },
- default=Switch( # switch_128_6
- related_scope=False,
- code='cargo_subtype',
- ranges={
- 0: CB(0),
- 1: CB(9),
- 2: CB(79),
- 3: CB(87),
- 4: CB(88),
- },
- default=CB(1024),
- ),
- ),
- ),
- 45: switch_244_3,
- 54: Switch( # switch_126_4
- related_scope=False,
- code='extra_callback_info1_byte',
- ranges={
- 7: switch_241_1,
- 13: Switch( # switch_125_2
- related_scope=False,
- code='cargo_subtype',
- ranges={
- 0: Switch( # switch_134_13
- related_scope=True,
- code='var(0x42, shift=24, and=0xff, add=0, div=2) & 1',
- ranges={
- 0: Switch( # switch_134_12
- related_scope=False,
- code='var(0x41, shift=16, and=0xff, add=1, div=2)',
- ranges={
- (0, 6): switch_125_1,
- (7, 8): Switch( # switch_127_5
- related_scope=False,
- code='var(0x41, shift=0, and=0xff, add=0, div=2)',
- ranges={3: switch_126_1},
- default=switch_125_1,
- ),
- (9, 10): Switch( # switch_133_16
- related_scope=False,
- code='var(0x41, shift=0, and=0xff, add=0, div=2)',
- ranges={4: switch_126_1},
- default=switch_125_1,
- ),
- },
- default=Switch( # switch_134_11
- related_scope=False,
- code='var(0x41, shift=0, and=0xff, add=0, div=2) % 16',
- ranges={5: switch_126_1},
- default=switch_125_1,
- ),
- ),
- },
- default=switch_125_1,
- ),
- 2: switch_126_1,
- 4: switch_126_1,
- },
- default=switch_125_1,
- ),
- 20: switch_35_22,
- 33: Switch( # switch_0_34
- related_scope=False,
- code='call(129)',
- ranges={65535: switch_30_2},
- default=Switch( # switch_134_14
- related_scope=False,
- code='8 - last_computed_result',
- ranges={},
- default=CB(0),
- ),
- ),
- 37: Switch( # switch_126_3
- related_scope=False,
- code='cargo_subtype',
- ranges={
- 0: Switch( # switch_126_2
- related_scope=False,
- code='var(0x41, shift=16, and=0xff, add=1, div=2)',
- ranges={(0, 6): CB(0)},
- default=CB(4),
- ),
- 2: CB(2),
- 4: CB(2),
- },
- default=CB(0),
- ),
- 43: switch_247_4,
- },
- default=switch_136_19,
- ),
- },
- default=switch_136_19,
- )
- switch_136_20 = Switch( # switch_136_20
- related_scope=False,
- code='current_callback',
- ranges={
- 0: Switch( # switch_131_13
- related_scope=False,
- code='current_year',
- ranges={(0, 1999): layout_34_14},
- default=layout_131_12,
- ),
- 22: switch_34_15,
- 35: CB(89),
- 45: switch_244_3,
- 54: Switch( # switch_124_2
- related_scope=False,
- code='extra_callback_info1_byte',
- ranges={
- 13: Switch( # switch_124_1
- related_scope=False,
- code='TEMP[0x00] = 219',
- ranges={(1, 0): CB(0)},
- default=switch_232_12,
- ),
- 20: switch_35_22,
- },
- default=switch_136_19,
- ),
- },
- default=switch_136_19,
- )
- # Modern standard passenger coach (EW IV) (#510)
- Train(
- id=510,
- name=g.strings['NAME_510'],
- liveries=FIXME,
- length=8,
- track_type=4,
- cost_factor=80,
- running_cost_base=19516,
- introduction_date=datetime.date(1980, 4, 21),
- model_life=255,
- retire_early=1,
- vehicle_life=50,
- reliability_decay=20,
- climates_available=grf.NO_CLIMATE,
- engine_class=0,
- visual_effect_and_powered=197,
- is_dual_headed=0,
- max_speed=200,
- power=0,
- extra_power_per_wagon=0,
- weight=42,
- extra_weight_per_wagon_high=0,
- extra_weight_per_wagon_low=0,
- tractive_effort_coefficient=51,
- air_drag_coefficient=15,
- refittable_cargo_classes=1,
- refittable_cargo_types=0,
- default_cargo_type=0,
- cargo_capacity=30,
- refit_cost=0,
- loading_speed=3,
- ai_special_flag=1,
- misc_flags=80,
- sprite_id=253,
- bitmask_vehicle_info=0,
- sort_purchase_list=553,
- )
- # Default chain: switch_126_5
- # Purchase chain: switch_136_20
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement