Open tyhayescreative opened 1 year ago
Consider
World script looks probably the way to do it? Not sure how that works on the forge though...
Eureka points should work like class resources like Lay on Hands - see how that works.
This file seems to be where a lot of these things should be created:
https://github.com/foundryvtt/dnd5e/blob/master/module/config.mjs
Skills at line 64 Weapon proficiencies at line 146 Tools at 206 Weapon properties (for things like recharge) at line 936 Conditions at line 1162
And defaults are set up here:
https://github.com/foundryvtt/dnd5e/blob/master/template.json
referenced as game.system.template.Actor.templates.common.abilities.cha (see https://github.com/foundryvtt/dnd5e/blob/f2c7c99193f5c00d327e9fb515b3759919b86e91/module/documents/actor/actor.mjs#L206 line 206)
Skills added. Not awful, though it feels slightly shoddy.
Excess skills not removed in case it breaks other things. (Should do a grep on my folders to find things that are related. Possibly some things in the system compendia?)
Moxie calculated, but only included with a raw number, and doesn't include any potential bonuses
Determination points added as a attribute. Should really be a resource.
Moxie now includes check bonuses as appropriate, and is a json object that mimics initiative.
Not sure whether resource should stay in the game.system.model.Actor or whether the data can just be created ad hoc. There might be a timing problem - not sure how it would interact with items adding to the dp
Tests:
consider using Quench: https://github.com/Ethaks/FVTT-Quench ✅
Create actor
Open actor sheet
Rolls
These are actor data. Ideally they should be added at the default level.