mirror of
https://github.com/veekun/pokedex.git
synced 2024-08-20 18:16:34 +00:00
Fix off-by-ten error in imperial weights
This commit is contained in:
parent
dd3d3a3f25
commit
1cff16f256
1 changed files with 2 additions and 2 deletions
|
@ -952,7 +952,7 @@ pokedex_flavor_struct_imperial = Struct(
|
||||||
PokemonCString('genus'),
|
PokemonCString('genus'),
|
||||||
ULInt8('height_feet'),
|
ULInt8('height_feet'),
|
||||||
ULInt8('height_inches'),
|
ULInt8('height_inches'),
|
||||||
ULInt16('weight_pounds'),
|
ULInt16('weight_decipounds'),
|
||||||
MacroPokemonCString('flavor_text'),
|
MacroPokemonCString('flavor_text'),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -1738,7 +1738,7 @@ def main(base_root):
|
||||||
writer.height = 254 * (
|
writer.height = 254 * (
|
||||||
12 * flavor_struct.height_feet
|
12 * flavor_struct.height_feet
|
||||||
+ flavor_struct.height_inches)
|
+ flavor_struct.height_inches)
|
||||||
writer.weight = 453592370 * flavor_struct.weight_pounds
|
writer.weight = 45359237 * flavor_struct.weight_decipounds
|
||||||
|
|
||||||
fn = root / 'pokemon.yaml'
|
fn = root / 'pokemon.yaml'
|
||||||
print('Writing', fn)
|
print('Writing', fn)
|
||||||
|
|
Loading…
Reference in a new issue