Fix off-by-ten error in imperial weights

This commit is contained in:
Eevee (Lexy Munroe) 2016-09-16 16:59:09 -07:00
parent dd3d3a3f25
commit 1cff16f256

View file

@ -952,7 +952,7 @@ pokedex_flavor_struct_imperial = Struct(
PokemonCString('genus'),
ULInt8('height_feet'),
ULInt8('height_inches'),
ULInt16('weight_pounds'),
ULInt16('weight_decipounds'),
MacroPokemonCString('flavor_text'),
)
@ -1738,7 +1738,7 @@ def main(base_root):
writer.height = 254 * (
12 * flavor_struct.height_feet
+ flavor_struct.height_inches)
writer.weight = 453592370 * flavor_struct.weight_pounds
writer.weight = 45359237 * flavor_struct.weight_decipounds
fn = root / 'pokemon.yaml'
print('Writing', fn)