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
parent
65820e609e
commit
9a786c29c0
|
@ -21,6 +21,9 @@ export class AcksActor extends Actor {
|
||||||
data.initiative.value = data.initiative.mod;
|
data.initiative.value = data.initiative.mod;
|
||||||
if (this.data.type == "character") {
|
if (this.data.type == "character") {
|
||||||
data.initiative.value += data.scores.dex.mod;
|
data.initiative.value += data.scores.dex.mod;
|
||||||
|
if (data.isSlow) {
|
||||||
|
data.initiative.value -= 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
data.initiative.value = 0;
|
data.initiative.value = 0;
|
||||||
|
|
|
@ -22,12 +22,11 @@ export class AcksCombat {
|
||||||
if (!data.combatants[i].actor) {
|
if (!data.combatants[i].actor) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
data.combatants[i].initiative =
|
||||||
|
groups[data.combatants[i].flags.acks.group].initiative;
|
||||||
if (data.combatants[i].actor.data.data.isSlow) {
|
if (data.combatants[i].actor.data.data.isSlow) {
|
||||||
data.combatants[i].initiative = -789;
|
data.combatants[i].initiative -= 1;
|
||||||
} else {
|
}
|
||||||
data.combatants[i].initiative =
|
|
||||||
groups[data.combatants[i].flags.acks.group].initiative;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
combat.setupTurns();
|
combat.setupTurns();
|
||||||
}
|
}
|
||||||
|
@ -123,10 +122,11 @@ export class AcksCombat {
|
||||||
static updateCombatant(combat, combatant, data) {
|
static updateCombatant(combat, combatant, data) {
|
||||||
let init = game.settings.get("acks", "initiative");
|
let init = game.settings.get("acks", "initiative");
|
||||||
// Why do you reroll ?
|
// Why do you reroll ?
|
||||||
if (combatant.actor.data.data.isSlow) {
|
// Legacy Slowness code from OSE
|
||||||
data.initiative = -789;
|
// if (combatant.actor.data.data.isSlow) {
|
||||||
return;
|
// data.initiative = -789;
|
||||||
}
|
// return;
|
||||||
|
// }
|
||||||
if (data.initiative && init == "group") {
|
if (data.initiative && init == "group") {
|
||||||
let groupInit = data.initiative;
|
let groupInit = data.initiative;
|
||||||
// Check if there are any members of the group with init
|
// Check if there are any members of the group with init
|
||||||
|
|
Loading…
Reference in New Issue