Skip to content

Commit

Permalink
Merge pull request dmdorman#787 from aeauseth/main
Browse files Browse the repository at this point in the history
Lightning Reflexes initiative dmdorman#775
  • Loading branch information
aeauseth authored Mar 2, 2024
2 parents 3932303 + 81b5d72 commit 47de327
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions module/combat.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ export class HeroSystem6eCombat extends Combat {
let dexValue =
combatant.actor.system.characteristics[characteristic].value;
let spdValue = combatant.actor.system.characteristics.spd.value;
let intValue = combatant.actor.system.characteristics.int.value;
//let intValue = combatant.actor.system.characteristics.int.value;

let initiativeValue = dexValue + spdValue / 100 + intValue / 10000;
let initiativeValue = dexValue + spdValue / 100; // + intValue / 10000;

if (initiativeValue != combatant.initiative) {
updates.push({
Expand Down
6 changes: 3 additions & 3 deletions module/combatTracker.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,11 @@ export class HeroSystem6eCombatTracker extends CombatTracker {
combatant.actor.system.characteristics[
characteristic
].value;
const intValue =
combatant.actor.system.characteristics.int.value;
const spdValue =
combatant.actor.system.characteristics.spd.value;
context.turns[t].initiative =
dexValue +
intValue / 100 +
spdValue / 100 +
combatant.initiative +
parseInt(levels);
}
Expand Down
2 changes: 1 addition & 1 deletion module/herosystem6e.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Hooks.once("init", async function () {
*/
CONFIG.Combat.initiative = {
formula:
"@characteristics.dex.value + (@characteristics.int.value / 100)",
"@characteristics.dex.value + (@characteristics.spd.value / 100)",
decimals: 2,
};

Expand Down

0 comments on commit 47de327

Please sign in to comment.