Keep gfx.py with other tools, and remove its dependency on the 'extras' submodule

This commit is contained in:
Rangi
2018-12-31 17:17:55 -05:00
parent 4259e7051e
commit e3bc378492
5 changed files with 4171 additions and 2 deletions

View File

@@ -3,7 +3,7 @@
import os
import argparse
from extras.pokemontools import gfx, lz
from pokemontools import gfx, lz
# Graphics with inverted tilemaps that aren't covered by filepath_rules.
@@ -146,7 +146,7 @@ def filepath_rules(filepath):
pokemon_name = ''
if 'gfx/pics/' in filedir:
if 'gfx/pokemon/' in filedir:
pokemon_name = filedir.split('/')[-1]
if pokemon_name.startswith('unown_'):
index = filedir.find(pokemon_name)

View File

@@ -0,0 +1 @@
# A subset of https://github.com/pret/pokemon-reverse-engineering-tools

938
tools/pokemontools/gfx.py Normal file

File diff suppressed because it is too large Load Diff

580
tools/pokemontools/lz.py Normal file

File diff suppressed because it is too large Load Diff

2650
tools/pokemontools/png.py Normal file

File diff suppressed because it is too large Load Diff