@@ -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.
@@ -440,12 +440,12 @@ def single_or_list(prop_name, single_num, multiple_num, value):
440440 "unit_conversion" : (5000 , 1397 ),
441441 "adjust_value" : lambda val , unit : ottd_display_speed (val , 1 , 1 , unit )
442442 },
443- # 09 doesn" t exist
443+ # 09 doesn' t exist
444444 "power" : {"size" : 2 , "num" : 0x0B , "unit_type" : "power" },
445- # 0A doesn" t exist
445+ # 0A doesn' t exist
446446 "running_cost_factor" : {"size" : 1 , "num" : 0x0D },
447447 "running_cost_base" : {"size" : 4 , "num" : 0x0E },
448- # 0F -11 don" t exist
448+ # 0F -11 don' t exist
449449 "sprite_id" : {"size" : 1 , "num" : 0x12 },
450450 "dual_headed" : {"size" : 1 , "num" : 0x13 },
451451 "cargo_capacity" : {"size" : 1 , "num" : 0x14 },
@@ -729,7 +729,7 @@ def aircraft_is_large(value):
729729
730730def station_platforms_length (value ):
731731 # Writing bitmask(2) to disable platform/length 3 is not very intuitive.
732- # Instead we expect the user will write bitmask(3) and we shift the result.
732+ # Instead, we expect the user will write bitmask(3) and we shift the result.
733733 return nmlop .SHIFT_RIGHT (value , 1 , value .pos ).reduce ()
734734
735735
@@ -1578,7 +1578,7 @@ def label_list(value, prop_num, description):
15781578properties [0x11 ] = {
15791579 "substitute" : {"size" : 1 , "num" : 0x08 , "first" : None },
15801580 "override" : {"size" : 1 , "num" : 0x09 },
1581- # 0A - 0D don" t exist (yet?)
1581+ # 0A - 0D don' t exist (yet?)
15821582 # 0E (callback flags) is not set by user
15831583 "animation_info" : {"size" : 2 , "num" : 0x0F , "value_function" : animation_info },
15841584 "animation_speed" : {"size" : 1 , "num" : 0x10 },
0 commit comments