Add v1.2 development quest progression and experimental battle runtime

This commit is contained in:
AttilaNet
2026-11-08 19:29:28 +08:00
parent 79b7672471
commit 0d3e231cde
71 changed files with 14349 additions and 172 deletions
+15 -8
View File
@@ -58,15 +58,22 @@ class Reader:
self.objects.append(value)
return value
if kind == 9:
associative, dense = {}, []
result = associative if not h >> 1 else dense
self.objects.append(result)
while (name := self.string()):
associative[name] = self.read()
for _ in range(h >> 1):
dense.append(self.read())
if dense and associative:
dense_length = h >> 1
# The first key decides the shape, including dense length 0.
# Reading a key uses only the string table; reserve the final
# object container before any child value can reference it.
name = self.string()
if name and dense_length:
raise ValueError("Mixed AMF array unsupported")
result = {} if name else []
self.objects.append(result)
if name:
while name:
result[name] = self.read()
name = self.string()
else:
for _ in range(dense_length):
result.append(self.read())
return result
if not h & 2:
external, dynamic, names = self.traits[h >> 2]