Fix a couple of errors. Make roll dialog verbiage clearer.

This commit is contained in:
Aaron Lutomski
2026-05-30 16:26:08 -07:00
parent e2f722602e
commit e87a3e8ea2
5 changed files with 25 additions and 12 deletions
+2 -2
View File
@@ -317,13 +317,13 @@
"DG.ModifySkillRollDialogue.OriginalTarget": "Original Target:",
"DG.ModifySkillRollDialogue.ModifierTooltip": "Enter a positive value to increase the target, or a negative value to decrease it.",
"DG.ModifySkillRollDialogue.QuickModifiersHeader": "Quick Modifiers",
"DG.ModifySkillRollDialogue.QuickModifiersHint": "Apply a preset adjustment and roll immediately.",
"DG.ModifySkillRollDialogue.QuickModifiersHint": "Click one of the following to apply a preset adjustment and roll immediately.",
"DG.ModifySkillRollDialogue.ModifierMuchHarder": "Makes the roll much harder",
"DG.ModifySkillRollDialogue.ModifierHarder": "Makes the roll harder",
"DG.ModifySkillRollDialogue.ModifierEasier": "Makes the roll easier",
"DG.ModifySkillRollDialogue.ModifierMuchEasier": "Makes the roll much easier",
"DG.ModifySkillRollDialogue.CustomModifierHeader": "Custom Modifier",
"DG.ModifySkillRollDialogue.CustomModifierHint": "Enter a positive or negative value to adjust the target.",
"DG.ModifySkillRollDialogue.CustomModifierHint": "For custom adjustments to the roll target, enter a positive or negative value and click the Roll button.",
"DG.ModifySkillRollDialogue.InvalidModifier": "Enter a valid modifier to roll.",
"DG.ModifyDamageRollDialogue.Weapon": "Weapon:",
"DG.ModifyDamageRollDialogue.OuterModifierTooltip": "Use this field to modify the outer part of the formula, such as to double the result.",
+8 -1
View File
@@ -6,6 +6,7 @@ import {
} from "../../profession/constants.js";
const { renderTemplate } = foundry.applications.handlebars;
const { ForcedDeletion } = foundry.data.operators;
/**
* @param {string} [selectedGroup]
@@ -39,7 +40,13 @@ export default function TypedSkillMixin(Base) {
});
break;
case "delete":
this.actor.update({ [`system.typedSkills.-=${typedskill}`]: null });
this.actor.update({
system: {
typedSkills: {
[typedskill]: new ForcedDeletion(),
},
},
});
break;
default:
break;
+8 -2
View File
@@ -1,5 +1,7 @@
import DG from "../config/index.js";
const { ForcedDeletion } = foundry.data.operators;
const MIGRATION_VERSION = 2;
const ACTOR_TYPES_WITH_SKILLS = ["agent", "npc", "unnatural"];
const OBSOLETE_WORLD_SETTINGS = [
@@ -41,8 +43,12 @@ export default async function runWorldMigration() {
for (const actor of actors) {
if (actor.system.skills?.ritual) {
await actor.update({
"system.skills.-=ritual": null,
"system.schemaVersion": MIGRATION_VERSION,
system: {
skills: {
ritual: new ForcedDeletion(),
},
schemaVersion: MIGRATION_VERSION,
},
});
migratedActors += 1;
}
+1 -1
View File
@@ -10,7 +10,7 @@
<input class="centered"
type="text"
name="system.statistics.{{key}}.value"
value="{{lookup @root.sourceStatistics key 'value'}}"
value="{{lookup (lookup @root.sourceStatistics key) 'value'}}"
data-dtype="Number" />
</div>
<div>
+6 -6
View File
@@ -11,12 +11,6 @@
style="text-decoration: line-through"
disabled
{{/if }} />
<span class="resource-label">{{localize 'DG.ItemWindow.Motivations.AcuteEpisode'}}:</span>
<input type="checkbox"
name="system.acuteEpisode"
{{checked item.system.acuteEpisode}}
data-dtype="Boolean"
title="{{localize 'DG.ItemWindow.Motivations.AcuteEpisodeTooltip'}}" />
<span class="resource-label">{{localize 'DG.ItemWindow.Motivations.IsDisorder'}}:</span>
<input type="checkbox"
name="system.crossedOut"
@@ -30,6 +24,12 @@
value="{{item.system.disorder}}"
data-dtype="String"
title="{{localize 'DG.ItemWindow.Motivations.DisorderNameTooltip'}}" />
<span class="resource-label">{{localize 'DG.ItemWindow.Motivations.AcuteEpisode'}}:</span>
<input type="checkbox"
name="system.acuteEpisode"
{{checked item.system.acuteEpisode}}
data-dtype="Boolean"
title="{{localize 'DG.ItemWindow.Motivations.AcuteEpisodeTooltip'}}" />
<span class="resource-label">{{localize 'DG.ItemWindow.Motivations.DisorderHasBeenCured'}}:</span>
<input class="labeled-resource-checkbox"
type="checkbox"