mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 11:41:08 +01:00
Merged with main
This commit is contained in:
commit
629782eccc
4 changed files with 23 additions and 6 deletions
|
|
@ -22,7 +22,8 @@ export default class Resources extends HandlebarsApplicationMixin(ApplicationV2)
|
|||
frame: true,
|
||||
title: 'Fear',
|
||||
positioned: true,
|
||||
resizable: true
|
||||
resizable: true,
|
||||
minimizable: false
|
||||
},
|
||||
actions: {
|
||||
setFear: Resources.setFear,
|
||||
|
|
@ -105,6 +106,5 @@ export default class Resources extends HandlebarsApplicationMixin(ApplicationV2)
|
|||
if (!game.user.isGM) return;
|
||||
value = Math.max(0, Math.min(this.maxFear, value));
|
||||
await game.settings.set(SYSTEM.id, SYSTEM.SETTINGS.gameSettings.Resources.Fear, value);
|
||||
await this.render(true);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -181,7 +181,10 @@ export const registerDHSettings = () => {
|
|||
scope: 'world',
|
||||
config: false,
|
||||
type: Number,
|
||||
default: 0
|
||||
default: 0,
|
||||
onChange: () => {
|
||||
if (ui.resources) ui.resources.render({ force: true });
|
||||
}
|
||||
});
|
||||
|
||||
game.settings.register(SYSTEM.id, SYSTEM.SETTINGS.gameSettings.Resources.MaxFear, {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue