Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add spell components to character info #37

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jkisor
Copy link
Contributor

@jkisor jkisor commented Oct 30, 2021

#35

Adds scarab and prismatic taper counts to character info sent to treestats.

Research

Documentation for Decal libraries are hard to track down, so I looked for examples from other plugins instead. I found an example from StatsDump (authored by Optim actually). I recommend this as a resource for other character information (such as location).

https://github.com/OptimShi/StatsDump/blob/36ed8d8a6e7573285bcc84c20f2da74733528575/PluginCore.cs#L530-L577
https://github.com/OptimShi/StatsDump/blob/36ed8d8a6e7573285bcc84c20f2da74733528575/PluginCore.cs#L679-L725

Approach for Inventory item counts

GetItemInventoryCount method is mostly the same implementation as seen in StatsDump -- only difference is contextual things (like where to get the CoreManager reference).

There's knowledge in there that I can only make assumptions about: The two loops contributing to the final count is hinting at how main pack and additional packs are represented. worldObject.Category == 512 must be a pointer to additional packs which must be dug into separately (second loop) to complete the full count.

Disclaimer

Unable to test fully due to lack of know how, testing framework, and working Windows machine. I could use some help there. At the very least, I hope this is a good starting point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant