TeamREPENTOGON/REPENTOGON

Access to several Bestiary features

Opened this issue · 1 comments

  1. Access to the parent attribute in bestiary tags for enemies in entities2.xml, likely as EntityConfigEntity.GetBestiaryParent() or something similar.
  2. Access to the amount of hits an enemy has done to you, likely as PersistentGameData.GetBestiaryHitCount().

Asking since I'm remaking the Bestiary for easy additions/changes to it, and these changes are, as far as I know, the only things missing for a perfect recreation.

For point 1, while not ideal, in the meantime, remember that xmldata is a thing and you can access any xml attribute with it. For example, you can do:
print(XMLData.GetEntityByTypeVarSub(35,1).bestiary[1].parent)
To print the parent of Mr. Maw Head ("35.0")