From e1ece35c2bf3ecb3d361bff7382c680967cdde5b Mon Sep 17 00:00:00 2001 From: Jeremy Gao <145064583+WenSimEHRP@users.noreply.github.com> Date: Wed, 16 Oct 2024 23:30:31 -0700 Subject: [PATCH] Add: 60+x variables for road stops --- grf/va2vars.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/grf/va2vars.py b/grf/va2vars.py index 0f4c561..29454b1 100644 --- a/grf/va2vars.py +++ b/grf/va2vars.py @@ -328,6 +328,28 @@ 'drawn_in_gui' : {'var': 0x50, 'start': 4, 'size': 1}, 'waiting_triggers' : {'var': 0x5F, 'start': 0, 'size': 8}, 'random_bits_tile' : {'var': 0x5F, 'start': 24, 'size': 8}, + + # 60+x variables + + 'nearby_tile_animation_frame' : {'var': 0x66, 'start': 0, 'size': 32, 'param_function': signed_tile_offset}, + 'nearby_tile_info' : {'var': 0x67, 'start': 0, 'size': 32, 'param_function': signed_tile_offset}, + 'nearby_tile_slope' : {'var': 0x67, 'start': 0, 'size': 5, 'param_function': signed_tile_offset}, + 'nearby_tile_is_water' : {'var': 0x67, 'start': 9, 'size': 1, 'param_function': signed_tile_offset}, + 'nearby_tile_terrain_type' : {'var': 0x67, 'start': 10, 'size': 3, 'param_function': signed_tile_offset}, + 'nearby_tile_water_class' : {'var': 0x67, 'start': 13, 'size': 2, 'param_function': signed_tile_offset}, + 'nearby_tile_height' : {'var': 0x67, 'start': 16, 'size': 8, 'param_function': signed_tile_offset}, + 'nearby_tile_class' : {'var': 0x67, 'start': 24, 'size': 4, 'param_function': signed_tile_offset}, + 'nearby_tile_road_stop_info' : {'var': 0x68, 'start': 0, 'size': 32, 'param_function': signed_tile_offset}, + 'nearby_tile_same_grf' : {'var': 0x68, 'start': 8, 'size': 2, 'param_function': signed_tile_offset, 'value_function': value_equals(0)}, + 'nearby_tile_other_grf' : {'var': 0x68, 'start': 8, 'size': 2, 'param_function': signed_tile_offset, 'value_function': value_equals(1)}, + 'nearby_tile_original_gfx' : {'var': 0x68, 'start': 8, 'size': 2, 'param_function': signed_tile_offset, 'value_function': value_equals(2)}, + 'nearby_tile_same_station' : {'var': 0x68, 'start': 10, 'size': 1, 'param_function': signed_tile_offset}, + 'nearby_tile_different_view' : {'var': 0x68, 'start': 11, 'size': 1, 'param_function': signed_tile_offset}, + 'nearby_tile_view' : {'var': 0x68, 'start': 12, 'size': 4, 'param_function': signed_tile_offset}, + 'nearby_tile_stop_type' : {'var': 0x68, 'start': 16, 'size': 4, 'param_function': signed_tile_offset}, + 'nearby_tile_same_stop_type' : {'var': 0x68, 'start': 20, 'size': 1, 'param_function': signed_tile_offset}, + 'nearby_tile_grfid' : {'var': 0x6A, 'start': 0, 'size': 32, 'param_function': signed_tile_offset}, + 'nearby_tile_road_stop_id' : {'var': 0x6B, 'start': 0, 'size': 16, 'param_function': signed_tile_offset}, }