summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2022-11-11 18:59:12 -0300
committerJesusaves <cpntb1@ymail.com>2022-11-11 18:59:12 -0300
commit58a23ddadfc9afc4573601d9b950a38c1607e1e4 (patch)
treef636d4518f3cba8395ec20a09c2fcf250dd36c7b
parent8d6345ac07e0b26d162faaf63f3ad9360eb24786 (diff)
downloadtools-58a23ddadfc9afc4573601d9b950a38c1607e1e4.tar.gz
tools-58a23ddadfc9afc4573601d9b950a38c1607e1e4.tar.bz2
tools-58a23ddadfc9afc4573601d9b950a38c1607e1e4.tar.xz
tools-58a23ddadfc9afc4573601d9b950a38c1607e1e4.zip
So. A crash it is.
-rwxr-xr-xevolved.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/evolved.py b/evolved.py
index 349b811..8b01942 100755
--- a/evolved.py
+++ b/evolved.py
@@ -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)