Rewrote with charaIds, fixed big sprites

This commit is contained in:
Firq 2024-10-11 01:04:05 +02:00
parent ad4391caea
commit 0377c6282a
Signed by: Firq
GPG key ID: 3ACC61C8CEC83C20
6 changed files with 111 additions and 80 deletions
atlasimagecomposer/cli

View file

@ -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)