Removed the system setting for playerCanEdit. It's always available now.

This commit is contained in:
WBHarry 2026-01-14 19:30:36 +01:00
parent 96c421cc6a
commit 067df2bdc1
5 changed files with 2 additions and 21 deletions

View file

@ -226,13 +226,6 @@ export default class CharacterSheet extends DHBaseActorSheet {
async _preparePartContext(partId, context, options) {
context = await super._preparePartContext(partId, context, options);
switch (partId) {
case 'header':
const { playerCanEditSheet, levelupAuto } = game.settings.get(
CONFIG.DH.id,
CONFIG.DH.SETTINGS.gameSettings.Automation
);
context.showSettings = game.user.isGM || !levelupAuto || (levelupAuto && playerCanEditSheet);
break;
case 'loadout':
await this._prepareLoadoutContext(context, options);
break;