ose icon indicating copy to clipboard operation
ose copied to clipboard

feat: Issue #425 - Add default "Link Actor Data" for Characters

Open Stew-rt opened this issue 2 years ago • 10 comments

Add default "Link Actor Data" to new Actor's prototypeToken if it's type is character and is not from a Compendium. Also provided two extra options which would be sane but do not cover the Issue, so commented out.

Stew-rt avatar May 27 '23 18:05 Stew-rt

Any chance you could add some testing for this?

wyrmisis avatar May 27 '23 18:05 wyrmisis

Sure. Just working on #424 at the mo.. so might be a little bit.

Stew-rt avatar May 27 '23 19:05 Stew-rt

I've added tests.. but i'm not sure how this project runs them, sorry if i'm being dumb.

Stew-rt avatar May 27 '23 20:05 Stew-rt

Not a problem! The Foundry ecosystem is just weird :)

You'll want to pick up the Quench module. That'll run tests for you.

wyrmisis avatar May 27 '23 21:05 wyrmisis

Finally got tests for the 3 features working. Now I know to not trust my IDE's linter at all for Foundry stuff.

Also, I had to have my test clean some stuff up after, as Quench doesn't seem to remove Compendiums created during a test routine.

Stew-rt avatar May 29 '23 08:05 Stew-rt

Ironically, this implementation is robbed almost verbatim from the official DnD5 system, as my familiarity with the foundry base is limited.

But fair do's, I'll take another look around and try again. 🙂

Stew-rt avatar May 29 '23 22:05 Stew-rt

5e? Who plays that? 😆

Great, thanks, no rush obviously!

anthonyronda avatar May 29 '23 22:05 anthonyronda

Just leaving this here for us to monitor https://github.com/foundryvtt/foundryvtt/issues/9567

anthonyronda avatar Jun 09 '23 08:06 anthonyronda

Noting that the bugged behavior blocking this issue is still awaiting V12 (unless someone finds a better solution, but likely the linked issue above will lead to the best way of solving it)

anthonyronda avatar Nov 15 '23 16:11 anthonyronda

Noting that the bugged behavior blocking this issue is still awaiting V12 (it has been pushed several times now)

anthonyronda avatar Mar 13 '24 15:03 anthonyronda