Xp not in curriculum are now rounded up (down before)

No more automation in stats for Npc (these cheaters !)
20Q Pushed the step3 item's limit to 20 (10 previous)
Gm Tool no longer stuck the escape key process
This commit is contained in:
Vlyan
2021-01-19 12:10:04 +01:00
parent 23db7ed2c2
commit 71a3af85dd
7 changed files with 47 additions and 29 deletions

View File

@@ -59,7 +59,7 @@ export class CombatL5r5e extends Combat {
if (combatant.actor.data.type === "npc" && combatant.actor.data.data.type === "minion") {
// Minion NPCs can generate initiative value without a check, using their focus or vigilance attribute
initiative = cfg.prepared.minion ? data.focus : data.vigilance;
initiative = cfg.prepared.minion ? data.focus : data.is_compromised ? 1 : data.vigilance;
} else {
// PC and Adversary
const isPc = combatant.actor.data.type === "character";
@@ -69,7 +69,7 @@ export class CombatL5r5e extends Combat {
if (isPrepared === "null") {
isPrepared = data.prepared;
}
initiative = isPrepared ? data.focus : data.vigilance;
initiative = isPrepared ? data.focus : data.is_compromised ? 1 : data.vigilance;
// Roll formula
if (!formula) {