mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-15 13:11:08 +01:00
Feature/89 gm fear display (#102)
* gm fear display * clean up * Make Fear Panel resizable * Update for evil light mode * Fix clients fear update
This commit is contained in:
parent
879299b661
commit
6bfb25325f
2 changed files with 4 additions and 2 deletions
|
|
@ -105,6 +105,5 @@ export default class Resources extends HandlebarsApplicationMixin(ApplicationV2)
|
||||||
if(!game.user.isGM) return;
|
if(!game.user.isGM) return;
|
||||||
value = Math.max(0, Math.min(this.maxFear, value));
|
value = Math.max(0, Math.min(this.maxFear, value));
|
||||||
await game.settings.set(SYSTEM.id, SYSTEM.SETTINGS.gameSettings.Resources.Fear, value);
|
await game.settings.set(SYSTEM.id, SYSTEM.SETTINGS.gameSettings.Resources.Fear, value);
|
||||||
await this.render(true);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -179,7 +179,10 @@ export const registerDHSettings = () => {
|
||||||
scope: 'world',
|
scope: 'world',
|
||||||
config: false,
|
config: false,
|
||||||
type: Number,
|
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, {
|
game.settings.register(SYSTEM.id, SYSTEM.SETTINGS.gameSettings.Resources.MaxFear, {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue