|
@@ -3,7 +3,7 @@ const genGloomhaven = () => {
|
|
|
|
|
|
[...Array(7).keys()].forEach((_, index) => {
|
|
|
items.push({
|
|
|
- type: 'image',
|
|
|
+ type: "image",
|
|
|
content: `https://raw.githubusercontent.com/romgar/gloomhaven/master/images/monster-ability-cards/archer/ma-ar-${
|
|
|
index + 1
|
|
|
}.png`,
|
|
@@ -16,7 +16,7 @@ const genGloomhaven = () => {
|
|
|
|
|
|
[...Array(7).keys()].forEach((_, index) => {
|
|
|
items.push({
|
|
|
- type: 'image',
|
|
|
+ type: "image",
|
|
|
content: `https://raw.githubusercontent.com/romgar/gloomhaven/master/images/monster-ability-cards/guard/ma-gu-${
|
|
|
index + 1
|
|
|
}.png`,
|
|
@@ -29,7 +29,7 @@ const genGloomhaven = () => {
|
|
|
|
|
|
[...Array(7).keys()].forEach((_, index) => {
|
|
|
items.push({
|
|
|
- type: 'image',
|
|
|
+ type: "image",
|
|
|
content: `https://raw.githubusercontent.com/romgar/gloomhaven/master/images/monster-ability-cards/living-bones/ma-lb-${
|
|
|
index + 1
|
|
|
}.png`,
|
|
@@ -43,25 +43,25 @@ const genGloomhaven = () => {
|
|
|
// map-tiles
|
|
|
|
|
|
[
|
|
|
- 'a4',
|
|
|
- 'b4',
|
|
|
- 'c2',
|
|
|
- 'd2',
|
|
|
- 'e1',
|
|
|
- 'f1',
|
|
|
- 'g2',
|
|
|
- 'h3',
|
|
|
- 'i2',
|
|
|
- 'j2',
|
|
|
- 'k2',
|
|
|
- 'l3',
|
|
|
- 'm1',
|
|
|
- 'n1',
|
|
|
+ "a4",
|
|
|
+ "b4",
|
|
|
+ "c2",
|
|
|
+ "d2",
|
|
|
+ "e1",
|
|
|
+ "f1",
|
|
|
+ "g2",
|
|
|
+ "h3",
|
|
|
+ "i2",
|
|
|
+ "j2",
|
|
|
+ "k2",
|
|
|
+ "l3",
|
|
|
+ "m1",
|
|
|
+ "n1",
|
|
|
].forEach((ln, index) => {
|
|
|
const [l, n] = Array.from(ln);
|
|
|
[...Array(n).keys()].forEach((y, index) => {
|
|
|
items.push({
|
|
|
- type: 'image',
|
|
|
+ type: "image",
|
|
|
content: `https://raw.githubusercontent.com/romgar/gloomhaven/master/images/map-tiles/${l}${
|
|
|
y + 1
|
|
|
}a.png`,
|
|
@@ -79,40 +79,40 @@ const genGloomhaven = () => {
|
|
|
// character-mats
|
|
|
|
|
|
items.push({
|
|
|
- type: 'image',
|
|
|
+ type: "image",
|
|
|
content:
|
|
|
- 'https://raw.githubusercontent.com/romgar/gloomhaven/master/images/character-mats/brute.png',
|
|
|
+ "https://raw.githubusercontent.com/romgar/gloomhaven/master/images/character-mats/brute.png",
|
|
|
backContent:
|
|
|
- 'https://raw.githubusercontent.com/romgar/gloomhaven/master/images/character-mats/brute-back.png',
|
|
|
+ "https://raw.githubusercontent.com/romgar/gloomhaven/master/images/character-mats/brute-back.png",
|
|
|
width: 300,
|
|
|
x: 500,
|
|
|
y: 500,
|
|
|
});
|
|
|
|
|
|
items.push({
|
|
|
- type: 'image',
|
|
|
+ type: "image",
|
|
|
content:
|
|
|
- 'https://raw.githubusercontent.com/romgar/gloomhaven/master/images/character-mats/spellweaver.png',
|
|
|
+ "https://raw.githubusercontent.com/romgar/gloomhaven/master/images/character-mats/spellweaver.png",
|
|
|
backContent:
|
|
|
- 'https://raw.githubusercontent.com/romgar/gloomhaven/master/images/character-mats/spellweaver-back.png',
|
|
|
+ "https://raw.githubusercontent.com/romgar/gloomhaven/master/images/character-mats/spellweaver-back.png",
|
|
|
width: 300,
|
|
|
x: 500,
|
|
|
y: 700,
|
|
|
});
|
|
|
|
|
|
items.push({
|
|
|
- type: 'image',
|
|
|
+ type: "image",
|
|
|
content:
|
|
|
- 'https://raw.githubusercontent.com/romgar/gloomhaven/master/images/character-perks/brute-perks.png',
|
|
|
+ "https://raw.githubusercontent.com/romgar/gloomhaven/master/images/character-perks/brute-perks.png",
|
|
|
width: 300,
|
|
|
x: 1000,
|
|
|
y: 500,
|
|
|
});
|
|
|
|
|
|
items.push({
|
|
|
- type: 'image',
|
|
|
+ type: "image",
|
|
|
content:
|
|
|
- 'https://raw.githubusercontent.com/romgar/gloomhaven/master/images/character-perks/spellweaver-perks.png',
|
|
|
+ "https://raw.githubusercontent.com/romgar/gloomhaven/master/images/character-perks/spellweaver-perks.png",
|
|
|
width: 300,
|
|
|
x: 1000,
|
|
|
y: 700,
|
|
@@ -121,11 +121,11 @@ const genGloomhaven = () => {
|
|
|
// Attack modifiers
|
|
|
|
|
|
[...Array(19).keys()].forEach((_, index) => {
|
|
|
- const number = index < 9 ? '0' + (index + 1) : '' + (index + 1);
|
|
|
+ const number = index < 9 ? "0" + (index + 1) : "" + (index + 1);
|
|
|
items.push({
|
|
|
- type: 'image',
|
|
|
+ type: "image",
|
|
|
content: `https://raw.githubusercontent.com/romgar/gloomhaven/master/images/attack-modifiers/base/player/am-p-${number}.png`,
|
|
|
- backContent: '/games/gloom/attackback.png',
|
|
|
+ backContent: "/games/gloom/attackback.png",
|
|
|
width: 100,
|
|
|
flipped: true,
|
|
|
x: 300,
|
|
@@ -134,11 +134,11 @@ const genGloomhaven = () => {
|
|
|
});
|
|
|
|
|
|
[...Array(19).keys()].forEach((_, index) => {
|
|
|
- const number = index < 9 ? '0' + (index + 1) : '' + (index + 1);
|
|
|
+ const number = index < 9 ? "0" + (index + 1) : "" + (index + 1);
|
|
|
items.push({
|
|
|
- type: 'image',
|
|
|
+ type: "image",
|
|
|
content: `https://raw.githubusercontent.com/romgar/gloomhaven/master/images/attack-modifiers/base/player/am-p-${number}.png`,
|
|
|
- backContent: '/games/gloom/attackback.png',
|
|
|
+ backContent: "/games/gloom/attackback.png",
|
|
|
width: 100,
|
|
|
flipped: true,
|
|
|
x: 300,
|
|
@@ -147,11 +147,11 @@ const genGloomhaven = () => {
|
|
|
});
|
|
|
|
|
|
[...Array(19).keys()].forEach((_, index) => {
|
|
|
- const number = index < 9 ? '0' + (index + 1) : '' + (index + 1);
|
|
|
+ const number = index < 9 ? "0" + (index + 1) : "" + (index + 1);
|
|
|
items.push({
|
|
|
- type: 'image',
|
|
|
+ type: "image",
|
|
|
content: `https://raw.githubusercontent.com/romgar/gloomhaven/master/images/attack-modifiers/base/monster/am-m-${number}.png`,
|
|
|
- backContent: '/games/gloom/attackback.png',
|
|
|
+ backContent: "/games/gloom/attackback.png",
|
|
|
width: 100,
|
|
|
flipped: true,
|
|
|
x: 1000,
|
|
@@ -162,54 +162,54 @@ const genGloomhaven = () => {
|
|
|
// monster tokens
|
|
|
[...Array(10).keys()].forEach((_, index) => {
|
|
|
items.push({
|
|
|
- type: 'image',
|
|
|
+ type: "image",
|
|
|
content:
|
|
|
- 'https://raw.githubusercontent.com/romgar/gloomhaven/master/images/monster-tokens/bandit-guard.png',
|
|
|
+ "https://raw.githubusercontent.com/romgar/gloomhaven/master/images/monster-tokens/bandit-guard.png",
|
|
|
x: 1400 + 60 * index,
|
|
|
y: 0,
|
|
|
width: 60,
|
|
|
text: `${index}`,
|
|
|
overlay: {
|
|
|
content: `https://raw.githubusercontent.com/romgar/gloomhaven/master/images/monster-tokens/${
|
|
|
- index < 7 ? 'normal' : 'elite'
|
|
|
+ index < 7 ? "normal" : "elite"
|
|
|
}-monster-overlay.svg`,
|
|
|
},
|
|
|
});
|
|
|
items.push({
|
|
|
- type: 'image',
|
|
|
+ type: "image",
|
|
|
content:
|
|
|
- 'https://raw.githubusercontent.com/romgar/gloomhaven/master/images/monster-tokens/bandit-archer.png',
|
|
|
+ "https://raw.githubusercontent.com/romgar/gloomhaven/master/images/monster-tokens/bandit-archer.png",
|
|
|
x: 1400 + 60 * index,
|
|
|
y: 50,
|
|
|
width: 60,
|
|
|
text: `${index}`,
|
|
|
overlay: {
|
|
|
content: `https://raw.githubusercontent.com/romgar/gloomhaven/master/images/monster-tokens/${
|
|
|
- index < 7 ? 'normal' : 'elite'
|
|
|
+ index < 7 ? "normal" : "elite"
|
|
|
}-monster-overlay.svg`,
|
|
|
},
|
|
|
});
|
|
|
items.push({
|
|
|
- type: 'image',
|
|
|
+ type: "image",
|
|
|
content:
|
|
|
- 'https://raw.githubusercontent.com/romgar/gloomhaven/master/images/monster-tokens/living-bones.png',
|
|
|
+ "https://raw.githubusercontent.com/romgar/gloomhaven/master/images/monster-tokens/living-bones.png",
|
|
|
x: 1400 + 60 * index,
|
|
|
y: 100,
|
|
|
width: 60,
|
|
|
text: `${index}`,
|
|
|
overlay: {
|
|
|
content: `https://raw.githubusercontent.com/romgar/gloomhaven/master/images/monster-tokens/${
|
|
|
- index < 7 ? 'normal' : 'elite'
|
|
|
+ index < 7 ? "normal" : "elite"
|
|
|
}-monster-overlay.svg`,
|
|
|
},
|
|
|
});
|
|
|
});
|
|
|
|
|
|
- const monsters = ['bandit-guard', 'bandit-archer', 'living-bones'];
|
|
|
+ const monsters = ["bandit-guard", "bandit-archer", "living-bones"];
|
|
|
|
|
|
monsters.forEach((monsterName, index) => {
|
|
|
items.push({
|
|
|
- type: 'image',
|
|
|
+ type: "image",
|
|
|
content: `https://raw.githubusercontent.com//romgar/gloomhaven/master/images/monster-stat-cards/${monsterName}-0.png`,
|
|
|
x: 1300 + 200 * index,
|
|
|
y: 300,
|
|
@@ -220,9 +220,9 @@ const genGloomhaven = () => {
|
|
|
// Overlay tokens
|
|
|
[...Array(20).keys()].forEach((_, index) => {
|
|
|
items.push({
|
|
|
- type: 'image',
|
|
|
+ type: "image",
|
|
|
content:
|
|
|
- 'https://raw.githubusercontent.com//romgar/gloomhaven/master/images/overlay-tokens/treasures/coin-1.png',
|
|
|
+ "https://raw.githubusercontent.com//romgar/gloomhaven/master/images/overlay-tokens/treasures/coin-1.png",
|
|
|
x: 1100 + 20 * index,
|
|
|
y: 200,
|
|
|
width: 50,
|
|
@@ -230,8 +230,8 @@ const genGloomhaven = () => {
|
|
|
});
|
|
|
|
|
|
items.push({
|
|
|
- type: 'counter',
|
|
|
- label: 'Life #1',
|
|
|
+ type: "counter",
|
|
|
+ label: "Life #1",
|
|
|
value: 0,
|
|
|
x: 100,
|
|
|
y: 100,
|
|
@@ -239,8 +239,8 @@ const genGloomhaven = () => {
|
|
|
});
|
|
|
|
|
|
items.push({
|
|
|
- type: 'counter',
|
|
|
- label: 'Life #2',
|
|
|
+ type: "counter",
|
|
|
+ label: "Life #2",
|
|
|
value: 0,
|
|
|
x: 100,
|
|
|
y: 300,
|
|
@@ -248,8 +248,8 @@ const genGloomhaven = () => {
|
|
|
});
|
|
|
|
|
|
items.push({
|
|
|
- type: 'counter',
|
|
|
- label: 'XP #1',
|
|
|
+ type: "counter",
|
|
|
+ label: "XP #1",
|
|
|
value: 0,
|
|
|
x: 300,
|
|
|
y: 100,
|
|
@@ -257,8 +257,8 @@ const genGloomhaven = () => {
|
|
|
});
|
|
|
|
|
|
items.push({
|
|
|
- type: 'counter',
|
|
|
- label: 'XP #2',
|
|
|
+ type: "counter",
|
|
|
+ label: "XP #2",
|
|
|
value: 0,
|
|
|
x: 300,
|
|
|
y: 300,
|
|
@@ -266,8 +266,8 @@ const genGloomhaven = () => {
|
|
|
});
|
|
|
|
|
|
items.push({
|
|
|
- type: 'counter',
|
|
|
- label: 'Gold #1',
|
|
|
+ type: "counter",
|
|
|
+ label: "Gold #1",
|
|
|
value: 0,
|
|
|
x: 100,
|
|
|
y: 600,
|
|
@@ -275,8 +275,8 @@ const genGloomhaven = () => {
|
|
|
});
|
|
|
|
|
|
items.push({
|
|
|
- type: 'counter',
|
|
|
- label: 'Gold #2',
|
|
|
+ type: "counter",
|
|
|
+ label: "Gold #2",
|
|
|
value: 0,
|
|
|
x: 100,
|
|
|
y: 900,
|
|
@@ -286,7 +286,7 @@ const genGloomhaven = () => {
|
|
|
[...Array(3).keys()].forEach(() => {
|
|
|
[...Array(9).keys()].forEach((_, index) => {
|
|
|
items.push({
|
|
|
- type: 'counter',
|
|
|
+ type: "counter",
|
|
|
label: `Monster #${index + 1}`,
|
|
|
value: 0,
|
|
|
x: 200 + 10 * index,
|
|
@@ -297,9 +297,9 @@ const genGloomhaven = () => {
|
|
|
});
|
|
|
|
|
|
items.push({
|
|
|
- type: 'image',
|
|
|
+ type: "image",
|
|
|
content:
|
|
|
- 'https://raw.githubusercontent.com//romgar/gloomhaven/master/images/overlay-tokens/treasures/treasure.png',
|
|
|
+ "https://raw.githubusercontent.com//romgar/gloomhaven/master/images/overlay-tokens/treasures/treasure.png",
|
|
|
x: 1100,
|
|
|
y: 250,
|
|
|
width: 50,
|
|
@@ -307,9 +307,9 @@ const genGloomhaven = () => {
|
|
|
|
|
|
[...Array(2).keys()].forEach((_, index) => {
|
|
|
items.push({
|
|
|
- type: 'image',
|
|
|
+ type: "image",
|
|
|
content:
|
|
|
- 'https://raw.githubusercontent.com//romgar/gloomhaven/master/images/overlay-tokens/doors/stone-door.png',
|
|
|
+ "https://raw.githubusercontent.com//romgar/gloomhaven/master/images/overlay-tokens/doors/stone-door.png",
|
|
|
x: 1100 + 20 * index,
|
|
|
y: 300,
|
|
|
width: 50,
|
|
@@ -318,9 +318,9 @@ const genGloomhaven = () => {
|
|
|
|
|
|
[...Array(2).keys()].forEach((_, index) => {
|
|
|
items.push({
|
|
|
- type: 'image',
|
|
|
+ type: "image",
|
|
|
content:
|
|
|
- 'https://raw.githubusercontent.com//romgar/gloomhaven/master/images/overlay-tokens/traps/spike-pit-trap.png',
|
|
|
+ "https://raw.githubusercontent.com//romgar/gloomhaven/master/images/overlay-tokens/traps/spike-pit-trap.png",
|
|
|
x: 1100 + 20 * index,
|
|
|
y: 350,
|
|
|
width: 50,
|
|
@@ -329,9 +329,9 @@ const genGloomhaven = () => {
|
|
|
|
|
|
[...Array(2).keys()].forEach((_, index) => {
|
|
|
items.push({
|
|
|
- type: 'image',
|
|
|
+ type: "image",
|
|
|
content:
|
|
|
- 'https://raw.githubusercontent.com//romgar/gloomhaven/master/images/overlay-tokens/obstacles/table.png',
|
|
|
+ "https://raw.githubusercontent.com//romgar/gloomhaven/master/images/overlay-tokens/obstacles/table.png",
|
|
|
x: 1100 + 20 * index,
|
|
|
y: 400,
|
|
|
width: 50,
|
|
@@ -340,41 +340,41 @@ const genGloomhaven = () => {
|
|
|
|
|
|
// Character ability cards
|
|
|
const brute = {
|
|
|
- code: 'BR',
|
|
|
+ code: "BR",
|
|
|
abilityCards: {
|
|
|
- 'level-1': [
|
|
|
- 'eye-for-an-eye',
|
|
|
- 'grab-and-go',
|
|
|
- 'leaping-cleave',
|
|
|
- 'overwhelming-assault',
|
|
|
- 'provoking-roar',
|
|
|
- 'shield-bash',
|
|
|
- 'spare-dagger',
|
|
|
- 'sweeping-blow',
|
|
|
- 'trample',
|
|
|
- 'warding-strength',
|
|
|
+ "level-1": [
|
|
|
+ "eye-for-an-eye",
|
|
|
+ "grab-and-go",
|
|
|
+ "leaping-cleave",
|
|
|
+ "overwhelming-assault",
|
|
|
+ "provoking-roar",
|
|
|
+ "shield-bash",
|
|
|
+ "spare-dagger",
|
|
|
+ "sweeping-blow",
|
|
|
+ "trample",
|
|
|
+ "warding-strength",
|
|
|
],
|
|
|
- 'level-X': ['balanced-measure', 'skewer', 'wall-of-doom'],
|
|
|
- 'level-2': ['fatal-advance', 'juggernaut'],
|
|
|
- 'level-3': ['brute-force', 'hook-and-chain'],
|
|
|
- 'level-4': ['devastating-hack', 'unstoppable-charge'],
|
|
|
- 'level-5': ['skirmishing-maneuver', 'whirlwind'],
|
|
|
- 'level-6': ['immovable-phalanx', 'quietus'],
|
|
|
- 'level-7': ['crippling-offensive', 'defensive-tactics'],
|
|
|
- 'level-8': ['frenzied-onslaught', 'selfish-retribution'],
|
|
|
- 'level-9': ['face-your-end', 'king-of-the-hill'],
|
|
|
+ "level-X": ["balanced-measure", "skewer", "wall-of-doom"],
|
|
|
+ "level-2": ["fatal-advance", "juggernaut"],
|
|
|
+ "level-3": ["brute-force", "hook-and-chain"],
|
|
|
+ "level-4": ["devastating-hack", "unstoppable-charge"],
|
|
|
+ "level-5": ["skirmishing-maneuver", "whirlwind"],
|
|
|
+ "level-6": ["immovable-phalanx", "quietus"],
|
|
|
+ "level-7": ["crippling-offensive", "defensive-tactics"],
|
|
|
+ "level-8": ["frenzied-onslaught", "selfish-retribution"],
|
|
|
+ "level-9": ["face-your-end", "king-of-the-hill"],
|
|
|
},
|
|
|
backCard:
|
|
|
- 'https://raw.githubusercontent.com//romgar/gloomhaven/master/images/character-ability-cards/BR/br-back.png',
|
|
|
+ "https://raw.githubusercontent.com//romgar/gloomhaven/master/images/character-ability-cards/BR/br-back.png",
|
|
|
icon:
|
|
|
- 'https://raw.githubusercontent.com/romgar/gloomhaven/master/images/character-icons/brute-icon.png',
|
|
|
+ "https://raw.githubusercontent.com/romgar/gloomhaven/master/images/character-icons/brute-icon.png",
|
|
|
token:
|
|
|
- 'https://raw.githubusercontent.com/romgar/gloomhaven/master/images/character-icons/brute-character-token.png',
|
|
|
+ "https://raw.githubusercontent.com/romgar/gloomhaven/master/images/character-icons/brute-character-token.png",
|
|
|
};
|
|
|
|
|
|
- brute.abilityCards['level-1'].forEach((abilityName, index) => {
|
|
|
+ brute.abilityCards["level-1"].forEach((abilityName, index) => {
|
|
|
items.push({
|
|
|
- type: 'image',
|
|
|
+ type: "image",
|
|
|
content: `https://raw.githubusercontent.com//romgar/gloomhaven/master/images/character-ability-cards/${brute.code}/${abilityName}.png`,
|
|
|
backContent: `${brute.backCard}`,
|
|
|
x: 0 + 100 * index,
|
|
@@ -384,7 +384,7 @@ const genGloomhaven = () => {
|
|
|
});
|
|
|
|
|
|
items.push({
|
|
|
- type: 'image',
|
|
|
+ type: "image",
|
|
|
content: brute.icon,
|
|
|
x: 450,
|
|
|
y: 500,
|
|
@@ -393,7 +393,7 @@ const genGloomhaven = () => {
|
|
|
|
|
|
[...Array(5).keys()].forEach((_, index) => {
|
|
|
items.push({
|
|
|
- type: 'image',
|
|
|
+ type: "image",
|
|
|
content: brute.token,
|
|
|
x: 350 + 20 * index,
|
|
|
y: 500,
|
|
@@ -402,39 +402,39 @@ const genGloomhaven = () => {
|
|
|
});
|
|
|
|
|
|
const spellWeaver = {
|
|
|
- code: 'SW',
|
|
|
+ code: "SW",
|
|
|
abilityCards: {
|
|
|
- 'level-1': [
|
|
|
- 'fire-orbs',
|
|
|
- 'flame-strike',
|
|
|
- 'freezing-nova',
|
|
|
- 'frost-armor',
|
|
|
- 'impaling-eruption',
|
|
|
- 'mana-bolt',
|
|
|
- 'reviving-ether',
|
|
|
- 'ride-the-wind',
|
|
|
+ "level-1": [
|
|
|
+ "fire-orbs",
|
|
|
+ "flame-strike",
|
|
|
+ "freezing-nova",
|
|
|
+ "frost-armor",
|
|
|
+ "impaling-eruption",
|
|
|
+ "mana-bolt",
|
|
|
+ "reviving-ether",
|
|
|
+ "ride-the-wind",
|
|
|
],
|
|
|
- 'level-X': ['crackling-air', 'hardened-spikes', 'aid-from-the-ether'],
|
|
|
- 'level-2': ['flashing-burst', 'icy-blast'],
|
|
|
- 'level-3': ['elemental-aid', 'cold-fire'],
|
|
|
- 'level-4': ['forked-beam', 'spirit-of-doom'],
|
|
|
- 'level-5': ['engulfed-in-flames', 'chromatic-explosion'],
|
|
|
- 'level-6': ['frozen-night', 'living-torch'],
|
|
|
- 'level-7': ['stone-fists', 'twin-restoration'],
|
|
|
- 'level-8': ['zephyr-wings', 'cold-front'],
|
|
|
- 'level-9': ['inferno', 'black-hole'],
|
|
|
+ "level-X": ["crackling-air", "hardened-spikes", "aid-from-the-ether"],
|
|
|
+ "level-2": ["flashing-burst", "icy-blast"],
|
|
|
+ "level-3": ["elemental-aid", "cold-fire"],
|
|
|
+ "level-4": ["forked-beam", "spirit-of-doom"],
|
|
|
+ "level-5": ["engulfed-in-flames", "chromatic-explosion"],
|
|
|
+ "level-6": ["frozen-night", "living-torch"],
|
|
|
+ "level-7": ["stone-fists", "twin-restoration"],
|
|
|
+ "level-8": ["zephyr-wings", "cold-front"],
|
|
|
+ "level-9": ["inferno", "black-hole"],
|
|
|
},
|
|
|
backCard:
|
|
|
- 'https://raw.githubusercontent.com//romgar/gloomhaven/master/images/character-ability-cards/SW/sw-back.png',
|
|
|
+ "https://raw.githubusercontent.com//romgar/gloomhaven/master/images/character-ability-cards/SW/sw-back.png",
|
|
|
icon:
|
|
|
- 'https://raw.githubusercontent.com/romgar/gloomhaven/master/images/character-icons/spellweaver-icon.png',
|
|
|
+ "https://raw.githubusercontent.com/romgar/gloomhaven/master/images/character-icons/spellweaver-icon.png",
|
|
|
token:
|
|
|
- 'https://raw.githubusercontent.com/romgar/gloomhaven/master/images/character-icons/spellweaver-character-token.png',
|
|
|
+ "https://raw.githubusercontent.com/romgar/gloomhaven/master/images/character-icons/spellweaver-character-token.png",
|
|
|
};
|
|
|
|
|
|
- spellWeaver.abilityCards['level-1'].forEach((abilityName, index) => {
|
|
|
+ spellWeaver.abilityCards["level-1"].forEach((abilityName, index) => {
|
|
|
items.push({
|
|
|
- type: 'image',
|
|
|
+ type: "image",
|
|
|
content: `https://raw.githubusercontent.com//romgar/gloomhaven/master/images/character-ability-cards/${spellWeaver.code}/${abilityName}.png`,
|
|
|
backContent: `${spellWeaver.backCard}`,
|
|
|
x: 0 + 100 * index,
|
|
@@ -444,7 +444,7 @@ const genGloomhaven = () => {
|
|
|
});
|
|
|
|
|
|
items.push({
|
|
|
- type: 'image',
|
|
|
+ type: "image",
|
|
|
content: spellWeaver.icon,
|
|
|
x: 450,
|
|
|
y: 700,
|
|
@@ -453,7 +453,7 @@ const genGloomhaven = () => {
|
|
|
|
|
|
[...Array(5).keys()].forEach((_, index) => {
|
|
|
items.push({
|
|
|
- type: 'image',
|
|
|
+ type: "image",
|
|
|
content: spellWeaver.token,
|
|
|
x: 350 + 20 * index,
|
|
|
y: 700,
|
|
@@ -461,10 +461,10 @@ const genGloomhaven = () => {
|
|
|
});
|
|
|
});
|
|
|
|
|
|
- const elements = ['ice', 'air', 'earth', 'fire', 'dark', 'light'];
|
|
|
+ const elements = ["ice", "air", "earth", "fire", "dark", "light"];
|
|
|
elements.forEach((elementName, index) => {
|
|
|
items.push({
|
|
|
- type: 'image',
|
|
|
+ type: "image",
|
|
|
content: `https://raw.githubusercontent.com/romgar/gloomhaven/master/images/elements/${elementName}-element.svg`,
|
|
|
x: 0 + 30 * index,
|
|
|
y: 0,
|
|
@@ -473,28 +473,28 @@ const genGloomhaven = () => {
|
|
|
});
|
|
|
|
|
|
items.push({
|
|
|
- type: 'image',
|
|
|
+ type: "image",
|
|
|
content:
|
|
|
- 'https://raw.githubusercontent.com/romgar/gloomhaven/master/images/elements/element-matboard.png',
|
|
|
+ "https://raw.githubusercontent.com/romgar/gloomhaven/master/images/elements/element-matboard.png",
|
|
|
x: 0,
|
|
|
y: 100,
|
|
|
width: 300,
|
|
|
});
|
|
|
|
|
|
const ailments = [
|
|
|
- 'reinforcement',
|
|
|
- 'disarm',
|
|
|
- 'immobilise',
|
|
|
- 'wound',
|
|
|
- 'stun',
|
|
|
- 'invisible',
|
|
|
- 'confusion',
|
|
|
- 'poison',
|
|
|
+ "reinforcement",
|
|
|
+ "disarm",
|
|
|
+ "immobilise",
|
|
|
+ "wound",
|
|
|
+ "stun",
|
|
|
+ "invisible",
|
|
|
+ "confusion",
|
|
|
+ "poison",
|
|
|
];
|
|
|
[...Array(5).keys()].forEach((_, rowIndex) => {
|
|
|
ailments.forEach((ailmentName, index) => {
|
|
|
items.push({
|
|
|
- type: 'image',
|
|
|
+ type: "image",
|
|
|
content: `https://raw.githubusercontent.com/romgar/gloomhaven/master/images/ailments/${ailmentName}.png`,
|
|
|
x: 0 + 30 * index,
|
|
|
y: 100 + 40 * rowIndex,
|
|
@@ -503,37 +503,37 @@ const genGloomhaven = () => {
|
|
|
});
|
|
|
|
|
|
const battleGoals = [
|
|
|
- 'aggressor',
|
|
|
- 'diehard',
|
|
|
- 'dynamo',
|
|
|
- 'executioner',
|
|
|
- 'explorer',
|
|
|
- 'fasthealer',
|
|
|
- 'hoarder',
|
|
|
- 'hunter',
|
|
|
- 'indigent',
|
|
|
- 'layabout',
|
|
|
- 'masochist',
|
|
|
- 'neutralizer',
|
|
|
- 'opener',
|
|
|
- 'pacifist',
|
|
|
- 'plunderer',
|
|
|
- 'professional',
|
|
|
- 'protector',
|
|
|
- 'purist',
|
|
|
- 'sadist',
|
|
|
- 'scrambler',
|
|
|
- 'straggler',
|
|
|
- 'streamliner',
|
|
|
- 'workhorse',
|
|
|
- 'zealot',
|
|
|
+ "aggressor",
|
|
|
+ "diehard",
|
|
|
+ "dynamo",
|
|
|
+ "executioner",
|
|
|
+ "explorer",
|
|
|
+ "fasthealer",
|
|
|
+ "hoarder",
|
|
|
+ "hunter",
|
|
|
+ "indigent",
|
|
|
+ "layabout",
|
|
|
+ "masochist",
|
|
|
+ "neutralizer",
|
|
|
+ "opener",
|
|
|
+ "pacifist",
|
|
|
+ "plunderer",
|
|
|
+ "professional",
|
|
|
+ "protector",
|
|
|
+ "purist",
|
|
|
+ "sadist",
|
|
|
+ "scrambler",
|
|
|
+ "straggler",
|
|
|
+ "streamliner",
|
|
|
+ "workhorse",
|
|
|
+ "zealot",
|
|
|
];
|
|
|
battleGoals.forEach((battleGoalName, index) => {
|
|
|
items.push({
|
|
|
- type: 'image',
|
|
|
+ type: "image",
|
|
|
content: `https://raw.githubusercontent.com/romgar/gloomhaven/master/images/battle-goals/${battleGoalName}.png`,
|
|
|
backContent:
|
|
|
- 'https://raw.githubusercontent.com/romgar/gloomhaven/master/images/battle-goals/battlegoal-back.png',
|
|
|
+ "https://raw.githubusercontent.com/romgar/gloomhaven/master/images/battle-goals/battlegoal-back.png",
|
|
|
x: 200 + 1 * index,
|
|
|
y: 0 + 1 * index,
|
|
|
flipped: true,
|
|
@@ -542,24 +542,24 @@ const genGloomhaven = () => {
|
|
|
});
|
|
|
|
|
|
const characterItems = [
|
|
|
- 'boots-of-striding',
|
|
|
- 'cloak-of-invisibility',
|
|
|
- 'eagle-eye-goggles',
|
|
|
- 'heater-shield',
|
|
|
- 'hide-armor',
|
|
|
- 'iron-helmet',
|
|
|
- 'leather-armor',
|
|
|
- 'minor-healing-potion',
|
|
|
- 'minor-power-potion',
|
|
|
- 'minor-stamina-potion',
|
|
|
- 'piercing-bow',
|
|
|
- 'poison-dagger',
|
|
|
- 'war-hammer',
|
|
|
- 'winged-shoes',
|
|
|
+ "boots-of-striding",
|
|
|
+ "cloak-of-invisibility",
|
|
|
+ "eagle-eye-goggles",
|
|
|
+ "heater-shield",
|
|
|
+ "hide-armor",
|
|
|
+ "iron-helmet",
|
|
|
+ "leather-armor",
|
|
|
+ "minor-healing-potion",
|
|
|
+ "minor-power-potion",
|
|
|
+ "minor-stamina-potion",
|
|
|
+ "piercing-bow",
|
|
|
+ "poison-dagger",
|
|
|
+ "war-hammer",
|
|
|
+ "winged-shoes",
|
|
|
];
|
|
|
characterItems.forEach((itemName, index) => {
|
|
|
items.push({
|
|
|
- type: 'image',
|
|
|
+ type: "image",
|
|
|
content: `https://raw.githubusercontent.com/romgar/gloomhaven/master/images/items/1-14/${itemName}.png`,
|
|
|
x: 1500 + 40 * index,
|
|
|
y: 1500,
|