mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-04-22 07:23:37 +02:00
Added an AppearanceSetting that decided if players should get to see information about hit/miss in chat messages
This commit is contained in:
parent
f1f5102af1
commit
f75468c9e0
6 changed files with 17 additions and 3 deletions
|
|
@ -68,8 +68,11 @@ export default class DhpChatMessage extends foundry.documents.ChatMessage {
|
|||
document = fromUuidSync(uuid);
|
||||
if (!document) return;
|
||||
|
||||
e.setAttribute('data-view-perm', document.testUserPermission(game.user, 'OBSERVER'));
|
||||
e.setAttribute('data-use-perm', document.testUserPermission(game.user, 'OWNER'));
|
||||
|
||||
const settings = game.settings.get(CONFIG.DH.id, CONFIG.DH.SETTINGS.gameSettings.appearance);
|
||||
if (settings.hideHitMissForPlayers)
|
||||
e.setAttribute('data-view-perm', document.testUserPermission(game.user, 'OBSERVER'));
|
||||
});
|
||||
|
||||
if (this.isContentVisible) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue