@@ -817,11 +817,14 @@ def station_tile_flags(value):
817817 Action0Property (0x15 , ConstantNumeric (blocked ), 1 ),
818818 ]
819819
820+ class array_for_station_properties :
821+ def __init__ (self , prop_num ):
822+ self .prop_num = prop_num
820823
821- def station_minimum_bridge_height ( value ):
822- if not isinstance (value , Array ):
823- raise generic .ScriptError ("Flag list must be an array" , value .pos )
824- return [VariableByteListProp (0x20 , [[flags .reduce_constant ().value for flags in value .values ]], True )]
824+ def __call__ ( self , value ):
825+ if not isinstance (value , Array ):
826+ raise generic .ScriptError ("Flag list must be an array" , value .pos )
827+ return [VariableByteListProp (self . prop_num , [[flags .reduce_constant ().value for flags in value .values ]], True )]
825828
826829
827830# fmt: off
@@ -849,7 +852,8 @@ def station_minimum_bridge_height(value):
849852 "name" : {"size" : 2 , "num" : (256 , - 1 , 0x1C ), "string" : (256 , 0xC5 , 0xDC ), "required" : True },
850853 "classname" : {"size" : 2 , "num" : (256 , - 1 , 0x1D ), "string" : (256 , 0xC4 , 0xDC )},
851854 "tile_flags" : {"custom_function" : station_tile_flags }, # = prop 1E
852- "minimum_bridge_height" : {"custom_function" : station_minimum_bridge_height }, # = prop 20
855+ "minimum_bridge_height" : {"custom_function" : array_for_station_properties (0x20 )},
856+ "bridge_pillars_flags" : {"custom_function" : array_for_station_properties (0x21 )},
853857}
854858# fmt: on
855859
0 commit comments