Access to several Bestiary features
Opened this issue · 1 comments
BabyblueSheep commented
- Access to the
parent
attribute inbestiary
tags for enemies inentities2.xml
, likely asEntityConfigEntity.GetBestiaryParent()
or something similar. - 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.
jsgnextortex commented
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")