@@ -108,7 +108,7 @@ def get_size(self):
108108# Summary: If 'string' or 'string_literal' is set, the value should be a
109109# string or literal string, else the value is a number. 'unit_type' and
110110# 'unit_conversion' are used to convert user-entered values to nfo values.
111- # If some more arithmetic is needed to convert the entered value into an nfo
111+ # If some more arithmetic is needed to convert the entered value into a nfo
112112# value, 'value_function' can be used. For even more complicated things,
113113# 'custom_function' can be used to create a special mapping of the value to nfo
114114# properties, else 'num' and 'size' are used to provide a 'normal' action0.
@@ -214,7 +214,7 @@ def two_byte_property(low_prop, high_prop, low_prop_info=None, high_prop_info=No
214214def animation_info (value , loop_bit = 8 , max_frame = 253 ):
215215 """
216216 Convert animation info array of two elements to an animation info property.
217- The first is 0/1, and defines whether or not the animation loops.
217+ The first is 0/1, and defines whether the animation loops.
218218 The second is the number of frames, at most 253 frames.
219219
220220 @param value: Array of animation info.
@@ -428,12 +428,12 @@ def prop_test(value):
428428 "unit_conversion" : (5000 , 1397 ),
429429 "adjust_value" : lambda val , unit : ottd_display_speed (val , 1 , 1 , unit )
430430 },
431- # 09 doesn" t exist
431+ # 09 doesn' t exist
432432 "power" : {"size" : 2 , "num" : 0x0B , "unit_type" : "power" },
433- # 0A doesn" t exist
433+ # 0A doesn' t exist
434434 "running_cost_factor" : {"size" : 1 , "num" : 0x0D },
435435 "running_cost_base" : {"size" : 4 , "num" : 0x0E },
436- # 0F -11 don" t exist
436+ # 0F -11 don' t exist
437437 "sprite_id" : {"size" : 1 , "num" : 0x12 },
438438 "dual_headed" : {"size" : 1 , "num" : 0x13 },
439439 "cargo_capacity" : {"size" : 1 , "num" : 0x14 },
@@ -717,7 +717,7 @@ def aircraft_is_large(value):
717717
718718def station_platforms_length (value ):
719719 # Writing bitmask(2) to disable platform/length 3 is not very intuitive.
720- # Instead we expect the user will write bitmask(3) and we shift the result.
720+ # Instead, we expect the user will write bitmask(3) and we shift the result.
721721 return nmlop .SHIFT_RIGHT (value , 1 , value .pos ).reduce ()
722722
723723
@@ -1566,7 +1566,7 @@ def label_list(value, prop_num, description):
15661566properties [0x11 ] = {
15671567 "substitute" : {"size" : 1 , "num" : 0x08 , "first" : None },
15681568 "override" : {"size" : 1 , "num" : 0x09 },
1569- # 0A - 0D don" t exist (yet?)
1569+ # 0A - 0D don' t exist (yet?)
15701570 # 0E (callback flags) is not set by user
15711571 "animation_info" : {"size" : 2 , "num" : 0x0F , "value_function" : animation_info },
15721572 "animation_speed" : {"size" : 1 , "num" : 0x10 },
0 commit comments