Working on 0.8.x

- entities -> contents
- RnK button black if no action left
This commit is contained in:
Vlyan
2021-05-03 19:34:30 +02:00
parent 93cfe5bb86
commit c2d2dbb9fe
12 changed files with 37 additions and 35 deletions

View File

@@ -63,7 +63,7 @@ export class GmToolsDialog extends FormApplication {
* Do not close this dialog
* @override
*/
close() {
async close(options = {}) {
// TODO better implementation needed : see KeyboardManager._onEscape(event, up, modifiers)
// This windows is always open, so esc key si stuck at step 2 : Object.keys(ui.windows).length > 0
// Case 3 (GM) - release controlled objects
@@ -180,7 +180,7 @@ export class GmToolsDialog extends FormApplication {
return;
}
game.actors.entities.forEach((actor) => {
game.actors.contents.forEach((actor) => {
switch (type) {
case "sleep":
// Remove 'water x2' fatigue points