mysurvive / pf2e-thaum-vuln

Improvement for Thaumaturge Exploit Vulnerability
MIT License
10 stars 12 forks source link

Implement helper to get implement data #97

Closed xyzzy42 closed 6 months ago

xyzzy42 commented 6 months ago

This will find the implement data in the flags and return it, or null if the implement isn't one the actor has. The implement is specified via a slug-like name, e.g. "tome", or "weapon". It's not for user display and wouldn't be translated.

Currently it uses a kludge method of translating the slug into the localized implement name, and then looking for a flag with a matching label. But this could change and then users of the helper would all just keep working but with whatever faster and more reliable method gets used.