Browse Source

Add bonus to characteristics template and init formula

Added the characteristics bonus, which is currently not updated
Added initiative formula for characters
master
marco 1 year ago
parent
commit
c766a199bd
  1. 6
      module/deathwatch.js
  2. 27
      template.json

6
module/deathwatch.js

@ -16,8 +16,8 @@ Hooks.once('init', async function() {
* @type {String}
*/
CONFIG.Combat.initiative = {
formula: "1d20",
decimals: 2
formula: "1d10 + @characteristics.ag.bonus",
decimals: 0
};
// Define custom Entity classes
@ -44,4 +44,4 @@ Hooks.once('init', async function() {
Handlebars.registerHelper('toLowerCase', function(str) {
return str.toLowerCase();
});
});
});

27
template.json

@ -23,31 +23,40 @@
},
"characteristics": {
"ws": {
"value": 30
"value": 30,
"bonus": 3
},
"bs": {
"value": 30
"value": 30,
"bonus": 3
},
"s": {
"value": 30
"value": 30,
"bonus": 3
},
"t": {
"value": 30
"value": 30,
"bonus": 3
},
"ag": {
"value": 30
"value": 30,
"bonus": 3
},
"int": {
"value": 30
"value": 30,
"bonus": 3
},
"per": {
"value": 30
"value": 30,
"bonus": 3
},
"wp": {
"value": 30
"value": 30,
"bonus": 3
},
"fel": {
"value": 30
"value": 30,
"bonus": 3
}
}
}

Loading…
Cancel
Save