FIX_ minor fixes

This commit is contained in:
Joaquin Pereyra 2025-07-18 15:32:57 -03:00
parent ff8c257d2c
commit 103071bd15
2 changed files with 1 additions and 2 deletions

View file

@ -66,7 +66,7 @@ Hooks.once('init', () => {
CONFIG.Token.documentClass = documents.DhToken; CONFIG.Token.documentClass = documents.DhToken;
CONFIG.Token.prototypeSheetClass = applications.sheetConfigs.DhPrototypeTokenConfig; CONFIG.Token.prototypeSheetClass = applications.sheetConfigs.DhPrototypeTokenConfig;
DocumentSheetConfig.unregisterSheet(TokenDocument, 'core', foundry.applications.sheets.TokenConfig); DocumentSheetConfig.unregisterSheet(TokenDocument, 'core', foundry.applications.sheets.TokenConfig);
DocumentSheetConfig.registerSheet(TokenDocument, 'dnd5e', applications.sheetConfigs.DhTokenConfig, { DocumentSheetConfig.registerSheet(TokenDocument, SYSTEM.id, applications.sheetConfigs.DhTokenConfig, {
makeDefault: true makeDefault: true
}); });

View file

@ -532,7 +532,6 @@ export default class CharacterSheet extends DHBaseActorSheet {
const maxMarks = this.document.system.armorScore; const maxMarks = this.document.system.armorScore;
const value = Math.min(Math.max(Number(event.currentTarget.value), 0), maxMarks); const value = Math.min(Math.max(Number(event.currentTarget.value), 0), maxMarks);
await armor.update({ 'system.marks.value': value }); await armor.update({ 'system.marks.value': value });
this.render();
} }
/* -------------------------------------------- */ /* -------------------------------------------- */