From 1cff16f256cae9bab3825e7354d88c7182540ad1 Mon Sep 17 00:00:00 2001 From: "Eevee (Lexy Munroe)" Date: Fri, 16 Sep 2016 16:59:09 -0700 Subject: [PATCH] Fix off-by-ten error in imperial weights --- pokedex/extract/rby.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pokedex/extract/rby.py b/pokedex/extract/rby.py index ff8d886..fe2d175 100644 --- a/pokedex/extract/rby.py +++ b/pokedex/extract/rby.py @@ -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)