tyhayescreative / foundry-5e-stargate

0 stars 0 forks source link

Make Determination Points a resource. #1

Open tyhayescreative opened 1 year ago

tyhayescreative commented 1 year ago

These are actor data. Ideally they should be added at the default level.

tyhayescreative commented 1 year ago

Consider

tyhayescreative commented 1 year ago

World script looks probably the way to do it? Not sure how that works on the forge though...

https://foundryvtt.wiki/en/basics/world-scripts

tyhayescreative commented 1 year ago

Eureka points should work like class resources like Lay on Hands - see how that works.

tyhayescreative commented 1 year ago

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

tyhayescreative commented 1 year ago

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)

tyhayescreative commented 1 year ago

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.

tyhayescreative commented 1 year ago

Moxie now includes check bonuses as appropriate, and is a json object that mimics initiative.

tyhayescreative commented 1 year ago

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

tyhayescreative commented 1 year ago

Tests:

consider using Quench: https://github.com/Ethaks/FVTT-Quench

Create actor

Open actor sheet

Rolls