Rewrote with charaIds, fixed big sprites
This commit is contained in:
parent
ad4391caea
commit
0377c6282a
6 changed files with 111 additions and 80 deletions
atlasimagecomposer/cli
|
@ -56,9 +56,9 @@ def run_cli():
|
|||
|
||||
welcome()
|
||||
|
||||
servantid = input("Enter servant ID: ")
|
||||
input_id = input("Enter servantId/charaId: ")
|
||||
try:
|
||||
t = int(servantid)
|
||||
t = int(input_id)
|
||||
if t <= 0:
|
||||
raise ValueError
|
||||
except ValueError:
|
||||
|
@ -66,11 +66,13 @@ def run_cli():
|
|||
sys.exit(1)
|
||||
|
||||
if args.cacheclear:
|
||||
cachepath = Paths.IMAGES / str(servantid)
|
||||
cachepath = Paths.IMAGES / str(input_id)
|
||||
if input_id > 10000:
|
||||
cachepath = Paths.IMAGES / "manual" / str(input_id)
|
||||
if cachepath.exists():
|
||||
rmdir(cachepath)
|
||||
print("Successfully cleared cached assets")
|
||||
else:
|
||||
print("No cache to clear was found, continuing")
|
||||
|
||||
compose(servantid, args.filter)
|
||||
compose(int(input_id), args.filter)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue