From ad2fd013530a92651ae61e76696841463c212a92 Mon Sep 17 00:00:00 2001 From: Johannes Loher Date: Tue, 13 Apr 2021 20:19:25 +0200 Subject: [PATCH] Add checks for analyzing magic --- src/lang/de.json | 4 +++- src/lang/en.json | 4 +++- src/module/actor/actor.ts | 2 ++ src/module/config.ts | 4 +++- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/src/lang/de.json b/src/lang/de.json index 96c654af..91f8a7ec 100644 --- a/src/lang/de.json +++ b/src/lang/de.json @@ -238,7 +238,7 @@ "DS4.SettingUseSlayingDiceForAutomatedChecksName": "Slayende Würfel", "DS4.SettingUseSlayingDiceForAutomatedChecksHint": "Benutze Slayende Würfel bei automatisierten Proben.", "DS4.ChecksAppraise": "Schätzen", - "DS4.ChangeSpell": "Zauber Wechseln", + "DS4.ChecksChangeSpell": "Zauber Wechseln", "DS4.ChecksClimb": "Klettern", "DS4.ChecksCommunicate": "Verständigen", "DS4.ChecksDecipherScript": "Inschrift Entziffern", @@ -249,6 +249,7 @@ "DS4.ChecksFlirt": "Flirten", "DS4.ChecksHaggle": "Feilschen", "DS4.ChecksHide": "Verbergen", + "DS4.ChecksIdentifyMagic": "Magie Erkennen", "DS4.ChecksJump": "Springen", "DS4.ChecksKnowledge": "Wissen", "DS4.ChecksOpenLock": "Schlösser Öffnen", @@ -258,6 +259,7 @@ "DS4.ChecksResistDisease": "Krankheit Trotzen", "DS4.ChecksRide": "Reiten", "DS4.ChecksSearch": "Suchen", + "DS4.ChecksSenseMagic": "Magie Erspüren", "DS4.ChecksSneak": "Sneak", "DS4.ChecksStartFire": "Feuer Machen", "DS4.ChecksSwim": "Schwimmen", diff --git a/src/lang/en.json b/src/lang/en.json index f5d456c7..26d950c1 100644 --- a/src/lang/en.json +++ b/src/lang/en.json @@ -238,7 +238,7 @@ "DS4.SettingUseSlayingDiceForAutomatedChecksName": "Slaying Dice", "DS4.SettingUseSlayingDiceForAutomatedChecksHint": "Use Slaying Dice for automated checks.", "DS4.ChecksAppraise": "Appraise", - "DS4.ChangeSpell": "Change Spell", + "DS4.ChecksChangeSpell": "Change Spell", "DS4.ChecksClimb": "Climb", "DS4.ChecksCommunicate": "Communicate", "DS4.ChecksDecipherScript": "Decipher Script", @@ -249,6 +249,7 @@ "DS4.ChecksFlirt": "Flirt", "DS4.ChecksHaggle": "Haggle", "DS4.ChecksHide": "Hide", + "DS4.ChecksIdentifyMagic": "Identify Magic", "DS4.ChecksJump": "Jump", "DS4.ChecksKnowledge": "Knowledge", "DS4.ChecksOpenLock": "Open Lock", @@ -258,6 +259,7 @@ "DS4.ChecksResistDisease": "Resist Disease", "DS4.ChecksRide": "Ride", "DS4.ChecksSearch": "Search", + "DS4.ChecksSenseMagic": "Sense Magic", "DS4.ChecksSneak": "Sneak", "DS4.ChecksStartFire": "Start Fire", "DS4.ChecksSwim": "Swim", diff --git a/src/module/actor/actor.ts b/src/module/actor/actor.ts index 17b03b9a..1bb05a07 100644 --- a/src/module/actor/actor.ts +++ b/src/module/actor/actor.ts @@ -231,6 +231,7 @@ export class DS4Actor extends Actor flirt: data.attributes.mind.total + data.traits.aura.total, haggle: data.attributes.mind.total + Math.max(data.traits.intellect.total, data.traits.intellect.total), hide: data.attributes.mobility.total + data.traits.agility.total, + identifyMagic: data.attributes.mind.total + data.traits.intellect.total, jump: data.attributes.mobility.total + data.traits.agility.total, knowledge: data.attributes.mind.total + data.traits.intellect.total, openLock: data.attributes.mind.total + data.traits.dexterity.total, @@ -240,6 +241,7 @@ export class DS4Actor extends Actor resistDisease: data.attributes.body.total + data.traits.constitution.total, ride: data.attributes.mobility.total + Math.max(data.traits.agility.total, data.traits.aura.total), search: Math.max(data.attributes.mind.total + data.traits.intellect.total, 8), + senseMagic: data.attributes.mind.total + data.traits.aura.total, sneak: data.attributes.mobility.total + data.traits.agility.total, startFire: data.attributes.mind.total + data.traits.dexterity.total, swim: data.attributes.mobility.total + data.traits.strength.total, diff --git a/src/module/config.ts b/src/module/config.ts index c2990358..2b314cdf 100644 --- a/src/module/config.ts +++ b/src/module/config.ts @@ -284,7 +284,7 @@ export const DS4 = { checks: { appraise: "DS4.ChecksAppraise", - changeSpell: "DS4.ChangeSpell", + changeSpell: "DS4.ChecksChangeSpell", climb: "DS4.ChecksClimb", communicate: "DS4.ChecksCommunicate", decipherScript: "DS4.ChecksDecipherScript", @@ -295,6 +295,7 @@ export const DS4 = { flirt: "DS4.ChecksFlirt", haggle: "DS4.ChecksHaggle", hide: "DS4.ChecksHide", + identifyMagic: "DS4.ChecksIdentifyMagic", jump: "DS4.ChecksJump", knowledge: "DS4.ChecksKnowledge", openLock: "DS4.ChecksOpenLock", @@ -304,6 +305,7 @@ export const DS4 = { resistDisease: "DS4.ChecksResistDisease", ride: "DS4.ChecksRide", search: "DS4.ChecksSearch", + senseMagic: "DS4.ChecksSenseMagic", sneak: "DS4.ChecksSneak", startFire: "DS4.ChecksStartFire", swim: "DS4.ChecksSwim",