Add system.skills getter to actor datamodel
Intent
Add system.skills
getter to actor datamodel. This reads all skillItems on an actor and returns an array of objects for skill level
, base
, and mods
:
{
"basicTech": {
"level": 4,
"stat": 6,
"mods": 0
},
"meleeWeapon": {
"level": 0,
"stat": 6,
"mods": 2
}
}
These can then be accessed with actor.system.skills
-
This is meant for a hotfix -
This is meant for the next release (see milestone) -
This needs more reviewers than normal; there may be controversy or high complexity -
This intentionally introduces regressions that will be addressed later -
There is/will be documentation changes on the wiki -
Please do not send commits here without coordinating closely with the owner -
This is a Build System change
How to test
- Checkout/build/load
- Create a Character/Mook
- Adjust some Skills
- Add some custom Skills
- Find the actor's id
- Run
game.actors.get("ActorId").system.skills
Edited by Ryan Walder