REPENTOGON icon indicating copy to clipboard operation
REPENTOGON copied to clipboard

Access to several Bestiary features

Open BabyblueSheep opened this issue 1 year ago • 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.

BabyblueSheep avatar Oct 09 '24 23:10 BabyblueSheep

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

jsgnextortex avatar Oct 10 '24 00:10 jsgnextortex