Show notification when invalid item types are added to actors (#1807)

This commit is contained in:
Carlos Fernandez 2026-04-16 02:23:25 -04:00 committed by GitHub
parent 7d5cdeb09d
commit aa8771bf0d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 41 additions and 25 deletions

View file

@ -18,7 +18,8 @@ export default class DhCharacter extends DhCreature {
label: 'TYPES.Actor.character',
type: 'character',
settingSheet: DHCharacterSettings,
isNPC: false
isNPC: false,
hasInventory: true
});
}
@ -429,6 +430,11 @@ export default class DhCharacter extends DhCreature {
return attack;
}
/* All items are valid on characters */
isItemValid() {
return true;
}
/** @inheritDoc */
isItemAvailable(item) {
if (!super.isItemAvailable(this)) return false;