diff options
author | Jesusaves <cpntb1@ymail.com> | 2022-11-11 18:59:12 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2022-11-11 18:59:12 -0300 |
commit | 58a23ddadfc9afc4573601d9b950a38c1607e1e4 (patch) | |
tree | f636d4518f3cba8395ec20a09c2fcf250dd36c7b | |
parent | 8d6345ac07e0b26d162faaf63f3ad9360eb24786 (diff) | |
download | tools-58a23ddadfc9afc4573601d9b950a38c1607e1e4.tar.gz tools-58a23ddadfc9afc4573601d9b950a38c1607e1e4.tar.bz2 tools-58a23ddadfc9afc4573601d9b950a38c1607e1e4.tar.xz tools-58a23ddadfc9afc4573601d9b950a38c1607e1e4.zip |
So. A crash it is.
-rwxr-xr-x | evolved.py | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -330,6 +330,8 @@ class It: self.script=[] def ItAlloc(it): + if (it.aegis == "UnknownItem"): + return if (it.sl == "0" and it.ac) or (it.sl in ["1","2","3","4"] and not it.ac): print("WARNING, item id "+it.id+" invalid dye/card setting!") if (len(it.sl) > 1): @@ -390,7 +392,10 @@ def ItAlloc(it): return ## Save the Aegis ID - aegis.write("%s %s\n" % (it.aegis, it.id)) + if (it.aegis not in ["CaveSnakeLamp"]): + aegis.write("%s %s\n" % (it.aegis, it.id)) + else: + print("%s: Aegis reused as quest var (please purge)" % it.aegis) AllItems[it.aegis]=str(it.id) |