286 - Adversary Experience Value Bug (#293)

* Changed experience schema field name from 'modifier' to 'total' to match useage in Character and Companion

* Using 'signedString()'
This commit is contained in:
WBHarry 2025-07-08 12:10:38 +02:00 committed by GitHub
parent 87b3677956
commit 5aa9ba661a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 5 additions and 7 deletions

View file

@ -92,9 +92,7 @@ export default class AdversarySheet extends DHBaseActorSheet {
const cls = getDocumentClass('ChatMessage');
const systemData = {
name: game.i18n.localize('DAGGERHEART.GENERAL.Experience.single'),
description: `${experience.name} ${
experience.modifier < 0 ? experience.modifier : `+${experience.modifier}`
}`
description: `${experience.name} ${experience.total.signedString()}`
};
const msg = new cls({
type: 'abilityUse',