Skip to content

Commit 47983d3

Browse files
committed
2 parents 3d98b7b + 2afe19c commit 47983d3

File tree

2 files changed

+25
-13
lines changed

2 files changed

+25
-13
lines changed

Diff for: script/hooks.js

+23-12
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,17 @@ Hooks.once("init", () => {
3939
});
4040

4141
Hooks.once('diceSoNiceReady', (dice3d) => {
42-
dice3d.addSystem({ id: "vaesen", name: "Vaesen" }, true);
42+
dice3d.addSystem({ id: "vaesen", name: "Vaesen" }, "default");
43+
dice3d.addColorset({
44+
name: 'vaesen',
45+
description: 'Vaesen',
46+
category: 'Colors',
47+
foreground: "#2D1A00",
48+
background: "#F5F4F1",
49+
outline: 'black',
50+
texture: 'wood',
51+
default: true
52+
});
4353
dice3d.addDicePreset({
4454
type: "d6",
4555
labels: [
@@ -50,17 +60,18 @@ Hooks.once('diceSoNiceReady', (dice3d) => {
5060
"systems/vaesen/asset/dsn/dsn-d6-5.png",
5161
"systems/vaesen/asset/dsn/dsn-d6-6.png",
5262
],
53-
system: "vaesen"
63+
bumpMaps: [
64+
"systems/vaesen/asset/dsn/dsn-d6-1.png",
65+
"systems/vaesen/asset/dsn/dsn-d6-2.png",
66+
"systems/vaesen/asset/dsn/dsn-d6-3.png",
67+
"systems/vaesen/asset/dsn/dsn-d6-4.png",
68+
"systems/vaesen/asset/dsn/dsn-d6-5.png",
69+
"systems/vaesen/asset/dsn/dsn-d6-6.png",
70+
],
71+
colorset: "vaesen",
72+
system: "vaesen",
73+
default: true
5474
});
55-
dice3d.addColorset({
56-
name: 'vaesen',
57-
description: 'Vaesen',
58-
category: 'Colors',
59-
foreground: "#2D1A00",
60-
background: "#F5F4F1",
61-
outline: 'black',
62-
texture: 'wood'
63-
}, "force");
6475
});
6576

6677
function preloadHandlebarsTemplates() {
@@ -98,4 +109,4 @@ function preloadHandlebarsTemplates() {
98109
"systems/vaesen/model/attack.html"
99110
];
100111
return loadTemplates(templatePaths);
101-
}
112+
}

Diff for: system.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
23
"name": "vaesen",
34
"title": "Vaesen",
45
"description": "Nordic horror role-playing",
@@ -71,4 +72,4 @@
7172
"manifest": "https://github.com/fvtt-fria-ligan/vaesen-foundry-vtt/releases/latest/download/system.json",
7273
"download": "https://github.com/fvtt-fria-ligan/vaesen-foundry-vtt/releases/latest/download/system.zip",
7374
"license": "LICENSE.txt"
74-
}
75+
}

0 commit comments

Comments
 (0)