From 97f71268358fbce780a845f2e96bc4bde6b5d63b Mon Sep 17 00:00:00 2001 From: U~man Date: Fri, 10 Jul 2020 13:44:00 +0200 Subject: [PATCH] ENH: Default HD, compute movement for GM --- src/module/dialog/entity-tweaks.js | 1 + src/template.json | 2 +- .../actors/dialogs/tweaks-dialog.html | 150 +++++++----------- 3 files changed, 56 insertions(+), 97 deletions(-) diff --git a/src/module/dialog/entity-tweaks.js b/src/module/dialog/entity-tweaks.js index 01c03ac..02f4301 100644 --- a/src/module/dialog/entity-tweaks.js +++ b/src/module/dialog/entity-tweaks.js @@ -32,6 +32,7 @@ export class OseEntityTweaks extends FormApplication { if (this.object.data.type === 'character') { data.isCharacter = true; } + data.user = game.user; return data; } diff --git a/src/template.json b/src/template.json index 6072050..2ab3816 100644 --- a/src/template.json +++ b/src/template.json @@ -8,7 +8,7 @@ "loyalty": 0 }, "hp": { - "hd": "", + "hd": "1d8", "value": 20, "max": 20 }, diff --git a/src/templates/actors/dialogs/tweaks-dialog.html b/src/templates/actors/dialogs/tweaks-dialog.html index cc0eec7..41a5d30 100644 --- a/src/templates/actors/dialogs/tweaks-dialog.html +++ b/src/templates/actors/dialogs/tweaks-dialog.html @@ -1,105 +1,63 @@
-
- -
- -
+
+ +
+
-
- -
- -
+
+
+ +
+
-
- -
- -
+
+
+ +
+
- {{#if (eq this.type 'character')}} -
- -
- -
+
+ {{#if (eq this.type 'character')}} +
+ +
+
-
- -
- -
+
+
+ +
+
-
- -
- -
+
+
+ +
+
-
- -
- -
+
+
+ +
+
-
- -
- -
+
+
+ +
+
- {{/if}} -
- -
- - \ No newline at end of file +
+ {{/if}} + + \ No newline at end of file