From ffd6b6157ec6d67ea946ec172af1e6ebcc205e71 Mon Sep 17 00:00:00 2001 From: The Happy Anarchist Date: Sat, 24 Oct 2020 17:51:05 -1000 Subject: [PATCH] Support for ability scores 19+ Resolves issue #31. --- src/lang/en.json | 7 +++++++ src/module/actor/entity.js | 10 +++++++++- src/templates/actors/dialogs/modifiers-dialog.html | 2 +- 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/src/lang/en.json b/src/lang/en.json index 117d489..88291e6 100644 --- a/src/lang/en.json +++ b/src/lang/en.json @@ -152,6 +152,13 @@ "ACKS.NativePlus1": "Native + 1", "ACKS.NativePlus2": "Native + 2", "ACKS.NativePlus3": "Native + 3", + "ACKS.NativePlus4": "Native + 4", + "ACKS.NativePlus5": "Native + 5", + "ACKS.NativePlus6": "Native + 6", + "ACKS.NativePlus7": "Native + 7", + "ACKS.NativePlus8": "Native + 8", + "ACKS.NativePlus9": "Native + 9", + "ACKS.NativePlus10": "Native + 10", "ACKS.NPCReaction": "NPC Reaction", "ACKS.RetainersMax": "#Retainers", diff --git a/src/module/actor/entity.js b/src/module/actor/entity.js index f7b3790..4ab8f56 100644 --- a/src/module/actor/entity.js +++ b/src/module/actor/entity.js @@ -798,7 +798,7 @@ export class AcksActor extends Actor { data.scores.cha.value ); data.scores.cha.retain = data.scores.cha.mod + 4; - data.scores.cha.loyalty = data.scores.cha.mod + 7; + data.scores.cha.loyalty = data.scores.cha.mod; const od = { 0: 0, @@ -809,6 +809,7 @@ export class AcksActor extends Actor { 13: 14, 16: 10, 18: 6, + 19: 2, }; data.exploration.odMod = AcksActor._valueFromTable( od, @@ -830,6 +831,13 @@ export class AcksActor extends Actor { 13: "ACKS.NativePlus1", 16: "ACKS.NativePlus2", 18: "ACKS.NativePlus3", + 19: "ACKS.NativePlus4", + 20: "ACKS.NativePlus5", + 21: "ACKS.NativePlus6", + 22: "ACKS.NativePlus7", + 23: "ACKS.NativePlus8", + 24: "ACKS.NativePlus9", + 25: "ACKS.NativePlus10", }; data.languages.spoken = AcksActor._valueFromTable( spoken, diff --git a/src/templates/actors/dialogs/modifiers-dialog.html b/src/templates/actors/dialogs/modifiers-dialog.html index c01ea67..0a1da23 100644 --- a/src/templates/actors/dialogs/modifiers-dialog.html +++ b/src/templates/actors/dialogs/modifiers-dialog.html @@ -61,7 +61,7 @@ {{localize 'ACKS.RetainersMax'}} ({{add data.scores.cha.mod 4}})
  • - {{localize 'ACKS.Loyalty'}} ({{add data.scores.cha.mod 7}}) + {{localize 'ACKS.Loyalty'}} ({{add data.scores.cha.mod 0}})