Changed Slow Weapon to Initiative Penalty

Changed the Slow checkbox in the weapon to subtract 1 from intiative per ACKS rules, instead of putting the character last in the initiative order like in OSE.
master
The Happy Anarchist 2020-09-05 16:02:38 -10:00
parent 65820e609e
commit 9a786c29c0
2 changed files with 12 additions and 9 deletions

View File

@ -21,6 +21,9 @@ export class AcksActor extends Actor {
data.initiative.value = data.initiative.mod;
if (this.data.type == "character") {
data.initiative.value += data.scores.dex.mod;
if (data.isSlow) {
data.initiative.value -= 1;
}
}
} else {
data.initiative.value = 0;

View File

@ -22,12 +22,11 @@ export class AcksCombat {
if (!data.combatants[i].actor) {
return;
}
data.combatants[i].initiative =
groups[data.combatants[i].flags.acks.group].initiative;
if (data.combatants[i].actor.data.data.isSlow) {
data.combatants[i].initiative = -789;
} else {
data.combatants[i].initiative =
groups[data.combatants[i].flags.acks.group].initiative;
}
data.combatants[i].initiative -= 1;
}
}
combat.setupTurns();
}
@ -123,10 +122,11 @@ export class AcksCombat {
static updateCombatant(combat, combatant, data) {
let init = game.settings.get("acks", "initiative");
// Why do you reroll ?
if (combatant.actor.data.data.isSlow) {
data.initiative = -789;
return;
}
// Legacy Slowness code from OSE
// if (combatant.actor.data.data.isSlow) {
// data.initiative = -789;
// return;
// }
if (data.initiative && init == "group") {
let groupInit = data.initiative;
// Check if there are any members of the group with init