From 651f3d3ebbf3f9bfbca37d0b51f93ec12fcd3851 Mon Sep 17 00:00:00 2001 From: Ralph Mack Date: Mon, 2 Sep 2024 11:51:27 -0400 Subject: [PATCH] Preparing for release with everyday heroes and worlds without number --- .eslintrc.js | 13 + CHANGELOG.md | 5 + README.md | 2 + module.json | 6 +- package.json | 2 +- src/sources.mjs | 907 +++++++++++++++++++++++------------------------- 6 files changed, 467 insertions(+), 468 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index d2d9558..234c5f6 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -21,6 +21,19 @@ module.exports = { quench: "readable", }, overrides: [ + { + files: [".eslintrc.js", "src/sources.mjs"], + rules: { + "prettier/prettier": [ + "error", + { + "singleQuote": false, + "printWidth": 120, + "quoteProps": "preserve", + }, + ], + }, + }, { files: ["test/*.mjs"], globals: { diff --git a/CHANGELOG.md b/CHANGELOG.md index 06cf8f1..5b0ba76 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,11 @@ ## Middle Kingdom - v10 -> main branch +### 2.15.0 - September 2, 2024 - Worlds Without Number support and OSE cleanups +- [FEATURE] Now supports Worlds Without Number (thanks, @fuzzymuzzi) +- [FEATURE] Now supports Everyday Heroes +- [BUGFIX] Adjustment to sources list for OSE light sources (thanks, @Andrew-Staggs) + ### 2.14.0 - August 10, 2024 - Italian translation added - [FEATURE] Italian translation provided (Thanks, @GregoryWarn) diff --git a/README.md b/README.md index b4809f1..39fc5f6 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,7 @@ Out of the box, the following are available: | pf2e | Candle, Lantern (Hooded), Lantern (Bull's Eye), Torch. Everburning Torch | sfrpg | "Comm Unit, Personal", "Portable Light, Beacon", "Portable Light, Flashlight", "Portable Light, Lantern", "Portable Light, Spotlight", | earthdawn4e | Candle, Lantern (Hooded), Lantern (Bullseye), Torch +| everyday-heroes | Flashlight/Headlamp, Glow Sticks | gurps | "Candle, Tallow", "Flashlight, Heavy", Mini Flashlight, Micro Flashlight, Survival Flashlight, Lantern, Torch, Bull's-Eye Lantern, "Electric Lantern, Small", "Electric Lantern, Large", Small Tactical Light, Large Tactical Light, Floodlight | dcc | Lantern, "Torch, each" | ose | Torches, Lantern @@ -27,6 +28,7 @@ Out of the box, the following are available: This module just sheds light from the location of a player token upon demand based upon equipment inventory. It is recommended *not* to use this module for spells or equipment that have other capabilities you intend to use, like performing damage or setting down the equipment, but to rely upon other common approaches, like active effects or item piles, for those. Because the light source to use is now user-configurable, we no longer select a light source for you based on fallbacks. As it stands, if you do not explicitly select your light source, it will pick any among the light sources you have equipped, in no particular order. + ## Customizing light sources You can supersede these settings or supply settings for your own light sources for any system with a JSON file, which you can deliver through the "Additional Light Sources" setting. We support JSON5 syntax, which is tolerant of trailing commas and comments. The following shows a fully specified light source and a couple of aliases: diff --git a/module.json b/module.json index e052c07..462e86b 100644 --- a/module.json +++ b/module.json @@ -2,7 +2,7 @@ "id": "torch", "title": "Torch", "description": "Torch HUD Controls", - "version": "2.14.0", + "version": "2.15.0", "authors": [ { "name": "Deuce", @@ -77,11 +77,11 @@ "torch.css" ], "manifest": "https://raw.githubusercontent.com/League-of-Foundry-Developers/torch/main/module.json", - "download": "https://github.com/League-of-Foundry-Developers/torch/releases/download/v2.14.0/torch-v2.14.0.zip", + "download": "https://github.com/League-of-Foundry-Developers/torch/releases/download/v2.15.0/torch-v2.15.0.zip", "url": "https://github.com/League-of-Foundry-Developers/torch", "compatibility": { "minimum": "10", - "verified": "12.330", + "verified": "12.331", "maximum": "12" } } diff --git a/package.json b/package.json index 9fd3e48..fb7e934 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "torch", - "version": "2.14.0", + "version": "2.15.0", "description": "Torch HUD Controls", "main": "src/torch.js", diff --git a/src/sources.mjs b/src/sources.mjs index 52253a8..db480ff 100644 --- a/src/sources.mjs +++ b/src/sources.mjs @@ -2,10 +2,10 @@ export default { "dnd5e": { "system": "dnd5e", "topology": "standard", - "quantity" : "quantity", + "quantity": "quantity", "aliases": { "Lantern, Hooded": "Hooded Lantern", - "Lantern, Bullseye": "Bullseye Lantern" + "Lantern, Bullseye": "Bullseye Lantern", }, "sources": { "Candle": { @@ -13,36 +13,28 @@ export default { "type": "equipment", "consumable": true, "states": 2, - "light": [ - { "bright": 5, "dim": 10, "angle": 360 } - ] + "light": [{ "bright": 5, "dim": 10, "angle": 360 }], }, "Torch": { "name": "Torch", "type": "equipment", "consumable": true, "states": 2, - "light": [ - { "bright": 20, "dim": 40, "angle": 360 } - ] + "light": [{ "bright": 20, "dim": 40, "angle": 360 }], }, "Lamp": { "name": "Lamp", "type": "equipment", "consumable": false, "states": 2, - "light": [ - { "bright": 15, "dim": 45, "angle": 360 } - ] + "light": [{ "bright": 15, "dim": 45, "angle": 360 }], }, "Bullseye Lantern": { "name": "Bullseye Lantern", "type": "equipment", "consumable": false, "states": 2, - "light": [ - { "bright": 60, "dim": 120, "angle": 57 } - ] + "light": [{ "bright": 60, "dim": 120, "angle": 57 }], }, "Hooded Lantern": { "name": "Hooded Lantern", @@ -51,155 +43,127 @@ export default { "states": 3, "light": [ { "bright": 30, "dim": 60, "angle": 360 }, - { "bright": 0, "dim": 5, "angle": 360 } - ] + { "bright": 0, "dim": 5, "angle": 360 }, + ], }, "Light": { "name": "Light", "type": "cantrip", "consumable": false, "states": 2, - "light": [ - { "bright": 20, "dim": 40, "angle": 360 } - ] + "light": [{ "bright": 20, "dim": 40, "angle": 360 }], }, "Dancing Lights": { "name": "Dancing Lights", "type": "cantrip", "consumable": false, "states": 2, - "light": [ - { "bright": 0, "dim": 10, "angle": 360 } - ] - } - } + "light": [{ "bright": 0, "dim": 10, "angle": 360 }], + }, + }, }, "swade": { "system": "swade", "topology": "standard", - "quantity" : "quantity", + "quantity": "quantity", "sources": { "Candle": { "name": "Candle", "type": "equipment", "consumable": true, "states": 2, - "light": [ - {"bright": 0, "dim": 2, "angle": 360} - ] + "light": [{ "bright": 0, "dim": 2, "angle": 360 }], }, "Flashlight": { "name": "Flashlight", "type": "equipment", "consumable": false, "states": 2, - "light": [ - {"bright": 10, "dim": 10, "angle": 6} - ] + "light": [{ "bright": 10, "dim": 10, "angle": 6 }], }, "Lantern": { "name": "Lantern", "type": "equipment", "consumable": false, "states": 2, - "light": [ - {"bright": 4, "dim": 4, "angle": 360} - ] + "light": [{ "bright": 4, "dim": 4, "angle": 360 }], }, "Torch": { "name": "Torch", "type": "equipment", "consumable": true, "states": 2, - "light": [ - {"bright": 4, "dim": 4, "angle": 360} - ] - } - } + "light": [{ "bright": 4, "dim": 4, "angle": 360 }], + }, + }, }, "pf1": { "system": "pf1", "topology": "standard", - "quantity" : "quantity", + "quantity": "quantity", "sources": { "Candle": { "name": "Candle", "type": "equipment", "consumable": true, "states": 2, - "light": [ - {"bright": 0, "dim": 5, "angle": 360} - ] + "light": [{ "bright": 0, "dim": 5, "angle": 360 }], }, "Lamp": { "name": "Lamp", "type": "equipment", "consumable": false, "states": 2, - "light": [ - {"bright": 15, "dim": 30, "angle": 360} - ] + "light": [{ "bright": 15, "dim": 30, "angle": 360 }], }, "Lantern": { "name": "Lantern", "type": "equipment", "consumable": false, "states": 2, - "light": [ - {"bright": 30, "dim": 60, "angle": 360} - ] + "light": [{ "bright": 30, "dim": 60, "angle": 360 }], }, "Bullseye Lantern": { "name": "Bullseye Lantern", "type": "equipment", "consumable": false, "states": 2, - "light": [ - {"bright": 60, "dim": 120, "angle": 90} - ] + "light": [{ "bright": 60, "dim": 120, "angle": 90 }], }, "Hooded Lantern": { "name": "Hooded Lantern", "type": "equipment", "consumable": false, "states": 2, - "light": [ - {"bright": 30, "dim": 60, "angle": 360} - ] + "light": [{ "bright": 30, "dim": 60, "angle": 360 }], }, "Miner's Lantern": { "name": "Miner's Lantern", "type": "equipment", "consumable": false, "states": 2, - "light": [ - {"bright": 30, "dim": 60, "angle": 90} - ] + "light": [{ "bright": 30, "dim": 60, "angle": 90 }], }, "Torch": { "name": "Torch", "type": "equipment", "consumable": true, "states": 2, - "light": [ - {"bright": 20, "dim": 40, "angle": 360} - ] - } - } + "light": [{ "bright": 20, "dim": 40, "angle": 360 }], + }, + }, }, "pf2e": { "system": "pf2e", "topology": "standard", - "quantity" : "quantity", + "quantity": "quantity", "sources": { "Candle": { "name": "Candle", "type": "equipment", "consumable": true, "states": 2, - "light": [ - {"bright": 0, "dim": 10, "angle": 360} - ] + "light": [{ "bright": 0, "dim": 10, "angle": 360 }], }, "Lantern (Hooded)": { "name": "Lantern (Hooded)", @@ -207,27 +171,23 @@ export default { "consumable": false, "states": 3, "light": [ - {"bright": 30, "dim": 60, "angle": 360}, - {"bright": 0, "dim": 5, "angle": 360} - ] + { "bright": 30, "dim": 60, "angle": 360 }, + { "bright": 0, "dim": 5, "angle": 360 }, + ], }, "Lantern (Bull's Eye)": { "name": "Lantern (Bull's Eye)", "type": "equipment", "consumable": false, "states": 2, - "light": [ - {"bright": 60, "dim": 120, "angle": 90} - ] + "light": [{ "bright": 60, "dim": 120, "angle": 90 }], }, "Torch": { "name": "Torch", "type": "equipment", "consumable": true, "states": 2, - "light": [ - {"bright": 20, "dim": 40, "angle": 360} - ] + "light": [{ "bright": 20, "dim": 40, "angle": 360 }], }, "Everburning Torch": { "name": "Everburning Torch", @@ -235,11 +195,14 @@ export default { "consumable": false, "states": 2, "light": [ - { "bright": 20, "dim": 40, "color":"#57cdff", "saturation":0.3, "contrast":0.3, "shadows":0.2, "angle": 360, - "animation": { "type": "torch", "speed": 1, "intensity": 7, "reverse": false }} - ] - } - } + { + // eslint-disable-next-line prettier/prettier + "bright": 20, "dim": 40, "color": "#57cdff", "saturation": 0.3, "contrast": 0.3, "shadows": 0.2, "angle": 360, + "animation": { "type": "torch", "speed": 1, "intensity": 7, "reverse": false }, + }, + ], + }, + }, }, "sfrpg": { "system": "sfrpg", @@ -251,70 +214,56 @@ export default { "type": "equipment", "consumable": false, "states": 2, - "light": [ - { "bright": 10, "dim": 10, "angle": 360, "color": "#555555", "alpha": 0.5 } - ] + "light": [{ "bright": 10, "dim": 10, "angle": 360, "color": "#555555", "alpha": 0.5 }], }, "Portable Light, Flashlight": { "name": "Portable Light, Flashlight", "type": "equipment", "consumable": false, "states": 2, - "light": [ - { "bright": 20, "dim": 20, "angle": 90, "color": "#555555", "alpha": 0.5 } - ] + "light": [{ "bright": 20, "dim": 20, "angle": 90, "color": "#555555", "alpha": 0.5 }], }, "Portable Light, Beacon": { "name": "Portable Light, Beacon", "type": "equipment", "consumable": false, "states": 2, - "light": [ - { "bright": 20, "dim": 50, "angle": 360, "color": "#555555", "alpha": 0.5 } - ] + "light": [{ "bright": 20, "dim": 50, "angle": 360, "color": "#555555", "alpha": 0.5 }], }, "Portable Light, Spotlight": { "name": "Portable Light, Spotlight", "type": "equipment", "consumable": false, "states": 2, - "light": [ - { "bright": 100, "dim": 100, "angle": 90, "color": "#555555", "alpha": 0.5 } - ] + "light": [{ "bright": 100, "dim": 100, "angle": 90, "color": "#555555", "alpha": 0.5 }], }, "Comm Unit, Personal": { "name": "Comm Unit, Personal", "type": "equipment", "consumable": false, "states": 2, - "light": [ - { "bright": 15, "dim": 15, "angle": 90, "color": "#555555", "alpha": 0.5 } - ] + "light": [{ "bright": 15, "dim": 15, "angle": 90, "color": "#555555", "alpha": 0.5 }], }, "Dancing Lights": { "name": "Dancing Lights", "type": "cantrip", "consumable": false, "states": 2, - "light": [ - { "bright": 0, "dim": 10, "angle": 360, "color": "#555555", "alpha": 0.5 } - ] - } - } + "light": [{ "bright": 0, "dim": 10, "angle": 360, "color": "#555555", "alpha": 0.5 }], + }, + }, }, "earthdawn4e": { "system": "earthdawn4e", "topology": "standard", - "quantity" : "amount", + "quantity": "amount", "sources": { "Candle": { "name": "Candle", "type": "equipment", "consumable": true, "states": 2, - "light": [ - {"bright": 0, "dim": 3, "angle": 360} - ] + "light": [{ "bright": 0, "dim": 3, "angle": 360 }], }, "Lantern (Hooded)": { "name": "Lantern (Hooded)", @@ -322,29 +271,25 @@ export default { "consumable": false, "states": 3, "light": [ - {"bright": 10, "dim": 10, "angle": 360}, - {"bright": 0, "dim": 10, "angle": 360} - ] + { "bright": 10, "dim": 10, "angle": 360 }, + { "bright": 0, "dim": 10, "angle": 360 }, + ], }, "Lantern (Bullseye)": { "name": "Lantern (Bullseye)", "type": "equipment", "consumable": false, "states": 2, - "light": [ - {"bright": 20, "dim": 20, "angle": 3} - ] + "light": [{ "bright": 20, "dim": 20, "angle": 3 }], }, "Torch": { "name": "Torch", "type": "equipment", "consumable": true, "states": 2, - "light": [ - {"bright": 10, "dim": 10, "angle": 360} - ] - } - } + "light": [{ "bright": 10, "dim": 10, "angle": 360 }], + }, + }, }, "gurps": { "system": "gurps", @@ -356,126 +301,100 @@ export default { "type": "equipment", "consumable": true, "states": 2, - "light": [ - {"bright": 0, "dim": 2, "angle": 360, "color": "#ff9329", "alpha": 0.6 } - ] + "light": [{ "bright": 0, "dim": 2, "angle": 360, "color": "#ff9329", "alpha": 0.6 }], }, "Flashlight, Heavy": { "name": "Flashlight, Heavy", "type": "equipment", "consumable": false, "states": 2, - "light": [ - {"bright": 30, "dim": 30, "angle": 6, "color": "#ffd6aa", "alpha": 1 } - ] + "light": [{ "bright": 30, "dim": 30, "angle": 6, "color": "#ffd6aa", "alpha": 1 }], }, "Mini Flashlight": { "name": "Mini Flashlight", "type": "equipment", "consumable": false, "states": 2, - "light": [ - {"bright": 4, "dim": 5, "angle": 6, "color": "#ffd6aa", "alpha": 1 } - ] + "light": [{ "bright": 4, "dim": 5, "angle": 6, "color": "#ffd6aa", "alpha": 1 }], }, "Micro Flashlight": { "name": "Micro Flashlight", "type": "equipment", "consumable": false, "states": 2, - "light": [ - {"bright": 1, "dim": 1, "angle": 6, "color": "#ffd6aa", "alpha": 1 } - ] + "light": [{ "bright": 1, "dim": 1, "angle": 6, "color": "#ffd6aa", "alpha": 1 }], }, "Survival Flashlight": { "name": "Survival Flashlight", "type": "equipment", "consumable": false, "states": 2, - "light": [ - {"bright": 1, "dim": 1, "angle": 6, "color": "#ffd6aa", "alpha": 1 } - ] + "light": [{ "bright": 1, "dim": 1, "angle": 6, "color": "#ffd6aa", "alpha": 1 }], }, "Lantern": { "name": "Lantern", "type": "equipment", "consumable": false, "states": 2, - "light": [ - {"bright": 4, "dim": 5, "angle": 360, "color": "#ff9329", "alpha": 1 } - ] + "light": [{ "bright": 4, "dim": 5, "angle": 360, "color": "#ff9329", "alpha": 1 }], }, "Torch": { "name": "Torch", "type": "equipment", "consumable": true, "states": 2, - "light": [ - {"bright": 9, "dim": 10, "angle": 360, "color": "#ff9329", "alpha": 1 } - ] + "light": [{ "bright": 9, "dim": 10, "angle": 360, "color": "#ff9329", "alpha": 1 }], }, "Bull's-Eye Lantern": { "name": "Bull's-Eye Lantern", "type": "equipment", "consumable": false, "states": 2, - "light": [ - {"bright": 9, "dim": 10, "angle": 57, "color": "#ff9329", "alpha": 1 } - ] + "light": [{ "bright": 9, "dim": 10, "angle": 57, "color": "#ff9329", "alpha": 1 }], }, "Electric Lantern, Small": { "name": "Electric Lantern, Small", "type": "equipment", "consumable": false, "states": 2, - "light": [ - {"bright": 3, "dim": 3, "angle": 360, "color": "#ff9329", "alpha": 1 } - ] + "light": [{ "bright": 3, "dim": 3, "angle": 360, "color": "#ff9329", "alpha": 1 }], }, "Electric Lantern, Large": { "name": "Electric Lantern, Large", "type": "equipment", "consumable": false, "states": 2, - "light": [ - {"bright": 4, "dim": 5, "angle": 360, "color": "#ff9329", "alpha": 1 } - ] + "light": [{ "bright": 4, "dim": 5, "angle": 360, "color": "#ff9329", "alpha": 1 }], }, "Small Tactical Light": { "name": "Small Tactical Light", "type": "equipment", "consumable": false, "states": 2, - "light": [ - {"bright": 22, "dim": 25, "angle": 6, "color": "#ffd6aa", "alpha": 1 } - ] + "light": [{ "bright": 22, "dim": 25, "angle": 6, "color": "#ffd6aa", "alpha": 1 }], }, "Large Tactical Light": { "name": "Large Tactical Light", "type": "equipment", "consumable": false, "states": 2, - "light": [ - {"bright": 95, "dim": 100, "angle": 6, "color": "#ffd6aa", "alpha": 1 } - ] + "light": [{ "bright": 95, "dim": 100, "angle": 6, "color": "#ffd6aa", "alpha": 1 }], }, "Floodlight": { "name": "Floodlight", "type": "equipment", "consumable": false, "states": 2, - "light": [ - {"bright": 190, "dim": 200, "angle": 6, "color": "#ffd6aa", "alpha": 1 } - ] - } - } + "light": [{ "bright": 190, "dim": 200, "angle": 6, "color": "#ffd6aa", "alpha": 1 }], + }, + }, }, "dcc": { "system": "dcc", "topology": "standard", - "quantity" : "quantity", + "quantity": "quantity", "aliases": { - "Lantern": "Oil" + "Lantern": "Oil", }, "sources": { "Torch, each": { @@ -484,11 +403,12 @@ export default { "consumable": true, "states": 2, "light": [ - { + { + // eslint-disable-next-line prettier/prettier "bright": 15, "dim": 30, "angle": 360, "color": "#ff9329", "alpha": 0.2, - "animation": { "type": "torch", "speed": 5, "intensity": 5, "reverse": false } - } - ] + "animation": { "type": "torch", "speed": 5, "intensity": 5, "reverse": false }, + }, + ], }, "Lantern": { "name": "Lantern", @@ -496,13 +416,14 @@ export default { "consumable": false, "states": 2, "light": [ - { + { + // eslint-disable-next-line prettier/prettier "bright": 15, "dim": 30, "angle": 360, "color": "#ff9329", "alpha": 0.2, - "animation": { "type": "torch", "speed": 5, "intensity": 5, "reverse": false } - } - ] - } - } + "animation": { "type": "torch", "speed": 5, "intensity": 5, "reverse": false }, + }, + ], + }, + }, }, "ose": { "topology": "standard", @@ -511,228 +432,248 @@ export default { "Torches": { "type": "item", "consumable": true, -"states": 2, + "states": 2, "light": [ { + // eslint-disable-next-line prettier/prettier "bright": 20, "dim": 30, "angle": 360, "color": "#ff9329", "alpha": 0.5, - "animation": { "type": "torch", "speed": 5, "intensity": 5, "reverse": false } - } - ] - }, + "animation": { "type": "torch", "speed": 5, "intensity": 5, "reverse": false }, + }, + ], + }, "Lantern": { "type": "item", "consumable": false, "states": 2, "light": [ { + // eslint-disable-next-line prettier/prettier "bright": 20, "dim": 30, "angle": 360, "color": "#ff9329", "alpha": 0.5, - "animation": { "type": "torch", "speed": 5, "intensity": 5, "reverse": false } - } - ] - } - } + "animation": { "type": "torch", "speed": 5, "intensity": 5, "reverse": false }, + }, + ], + }, + }, }, "reclaim-the-wild": { - "system": "reclaim-the-wild", - "topology": "standard", - "quantity" : "quantity", - "aliases": { - }, - "sources": { - "Candle": { - "name": "Candle", - "type": "equipment", - "consumable": true, - "states": 2, - "light": [ - { - "bright": 0, "dim": 1, "angle": 360, "color": "#ff9329", "alpha": 0.5, - "animation": { "type": "torch", "speed": 5, "intensity": 5, "reverse": false } - } - ] - }, - "Firewood": { - "name": "Firewood", - "type": "equipment", - "consumable": true, - "states": 2, - "light": [ - { - "bright": 2, "dim": 8, "angle": 360, "color": "#ff9329", "alpha": 0.5, - "animation": { "type": "torch", "speed": 5, "intensity": 5, "reverse": false } - } - ] - }, - "Lantern (1h, R0)": { - "name": "Lantern (1h, R0)", - "type": "equipment", - "consumable": false, - "states": 3, - "light": [ - { - "bright": 2, "dim": 0, "angle": 360, "color": "#ff9329", "alpha": 0.5, - "animation": { "type": "torch", "speed": 5, "intensity": 5, "reverse": false } - }, - { - "bright": 5, "dim": 0, "angle": 85, "color": "#ff9329", "alpha": 0.5, - "animation": { "type": "torch", "speed": 5, "intensity": 5, "reverse": false } - } - ] - }, - "Lantern (1h, R1)": { - "name": "Lantern (1h, R1)", - "type": "equipment", - "consumable": false, - "states": 3, - "light": [ - { - "bright": 2, "dim": 3, "angle": 360, "color": "#ff9329", "alpha": 0.5, - "animation": { "type": "torch", "speed": 5, "intensity": 5, "reverse": false } - }, - { - "bright": 6, "dim": 0, "angle": 85, "color": "#ff9329", "alpha": 0.5, - "animation": { "type": "torch", "speed": 5, "intensity": 5, "reverse": false } - } - ] - }, - "Lantern (1h, R2)": { - "name": "Lantern (1h, R2)", - "type": "equipment", - "consumable": false, - "states": 3, - "light": [ - { - "bright": 3, "dim": 0, "angle": 360, "color": "#ff9329", "alpha": 0.5, - "animation": { "type": "torch", "speed": 5, "intensity": 5, "reverse": false } - }, - { - "bright": 7, "dim": 0, "angle": 85, "color": "#ff9329", "alpha": 0.5, - "animation": { "type": "torch", "speed": 5, "intensity": 5, "reverse": false } - } - ] - }, - "Lantern (1h, R3)": { - "name": "Lantern (1h, R3)", - "type": "equipment", - "consumable": false, - "states": 3, - "light": [ - { - "bright": 3, "dim": 4, "angle": 360, "color": "#ff9329", "alpha": 0.5, - "animation": { "type": "torch", "speed": 5, "intensity": 5, "reverse": false } - }, - { - "bright": 8, "dim": 0, "angle": 85, "color": "#ff9329", "alpha": 0.5, - "animation": { "type": "torch", "speed": 5, "intensity": 5, "reverse": false } - } - ] - }, - "Lantern (1h, R4)": { - "name": "Lantern (1h, R4)", - "type": "equipment", - "consumable": false, - "states": 3, - "light": [ - { - "bright": 4, "dim": 0, "angle": 360, "color": "#ff9329", "alpha": 0.5, - "animation": { "type": "torch", "speed": 5, "intensity": 5, "reverse": false } - }, - { - "bright": 9, "dim": 0, "angle": 85, "color": "#ff9329", "alpha": 0.5, - "animation": { "type": "torch", "speed": 5, "intensity": 5, "reverse": false } - } - ] - }, - "Lantern (1h, R5)": { - "name": "Lantern (1h, R5)", - "type": "equipment", - "consumable": false, - "states": 3, - "light": [ - { - "bright": 4, "dim": 5, "angle": 360, "color": "#ff9329", "alpha": 0.5, - "animation": { "type": "torch", "speed": 5, "intensity": 5, "reverse": false } - }, - { - "bright": 10, "dim": 0, "angle": 85, "color": "#ff9329", "alpha": 0.5, - "animation": { "type": "torch", "speed": 5, "intensity": 5, "reverse": false } - } - ] - }, - "Torch (1h, R0)": { - "name": "Torch (1h, R0)", - "type": "equipment", - "consumable": false, - "states": 2, - "light": [ - { - "bright": 4, "dim": 0, "angle": 360, "color": "#ff9329", "alpha": 0.5, - "animation": { "type": "torch", "speed": 5, "intensity": 5, "reverse": false } - } - ] - }, - "Torch (1h, R1)": { - "name": "Torch (1h, R1)", - "type": "equipment", - "consumable": false, - "states": 2, - "light": [ - { - "bright": 4, "dim": 5, "angle": 360, "color": "#ff9329", "alpha": 0.5, - "animation": { "type": "torch", "speed": 5, "intensity": 5, "reverse": false } - } - ] - }, - "Torch (1h, R2)": { - "name": "Torch (1h, R2)", - "type": "equipment", - "consumable": false, - "states": 2, - "light": [ - { - "bright": 5, "dim": 0, "angle": 360, "color": "#ff9329", "alpha": 0.5, - "animation": { "type": "torch", "speed": 5, "intensity": 5, "reverse": false } - } - ] - }, - "Torch (1h, R3)": { - "name": "Torch (1h, R3)", - "type": "equipment", - "consumable": false, - "states": 2, - "light": [ - { - "bright": 5, "dim": 6, "angle": 360, "color": "#ff9329", "alpha": 0.5, - "animation": { "type": "torch", "speed": 5, "intensity": 5, "reverse": false } - } - ] - }, - "Torch (1h, R4)": { - "name": "Torch (1h, R4)", - "type": "equipment", - "consumable": false, - "states": 2, - "light": [ - { - "bright": 6, "dim": 0, "angle": 360, "color": "#ff9329", "alpha": 0.5, - "animation": { "type": "torch", "speed": 5, "intensity": 5, "reverse": false } - } - ] - }, - "Torch (1h, R5)": { - "name": "Torch (1h, R5)", - "type": "equipment", - "consumable": false, - "states": 2, - "light": [ - { - "bright": 6, "dim": 7, "angle": 360, "color": "#ff9329", "alpha": 0.5, - "animation": { "type": "torch", "speed": 5, "intensity": 5, "reverse": false } - } - ] - } - } - }, + "system": "reclaim-the-wild", + "topology": "standard", + "quantity": "quantity", + "sources": { + "Candle": { + "name": "Candle", + "type": "equipment", + "consumable": true, + "states": 2, + "light": [ + { + // eslint-disable-next-line prettier/prettier + "bright": 0, "dim": 1, "angle": 360, "color": "#ff9329", "alpha": 0.5, + "animation": { "type": "torch", "speed": 5, "intensity": 5, "reverse": false }, + }, + ], + }, + "Firewood": { + "name": "Firewood", + "type": "equipment", + "consumable": true, + "states": 2, + "light": [ + { + // eslint-disable-next-line prettier/prettier + "bright": 2, "dim": 8, "angle": 360, "color": "#ff9329", "alpha": 0.5, + "animation": { "type": "torch", "speed": 5, "intensity": 5, "reverse": false }, + }, + ], + }, + "Lantern (1h, R0)": { + "name": "Lantern (1h, R0)", + "type": "equipment", + "consumable": false, + "states": 3, + "light": [ + { + // eslint-disable-next-line prettier/prettier + "bright": 2, "dim": 0, "angle": 360, "color": "#ff9329", "alpha": 0.5, + "animation": { "type": "torch", "speed": 5, "intensity": 5, "reverse": false }, + }, + { + // eslint-disable-next-line prettier/prettier + "bright": 5, "dim": 0, "angle": 85, "color": "#ff9329", "alpha": 0.5, + "animation": { "type": "torch", "speed": 5, "intensity": 5, "reverse": false }, + }, + ], + }, + "Lantern (1h, R1)": { + "name": "Lantern (1h, R1)", + "type": "equipment", + "consumable": false, + "states": 3, + "light": [ + { + // eslint-disable-next-line prettier/prettier + "bright": 2, "dim": 3, "angle": 360, "color": "#ff9329", "alpha": 0.5, + "animation": { "type": "torch", "speed": 5, "intensity": 5, "reverse": false }, + }, + { + // eslint-disable-next-line prettier/prettier + "bright": 6, "dim": 0, "angle": 85, "color": "#ff9329", "alpha": 0.5, + "animation": { "type": "torch", "speed": 5, "intensity": 5, "reverse": false }, + }, + ], + }, + "Lantern (1h, R2)": { + "name": "Lantern (1h, R2)", + "type": "equipment", + "consumable": false, + "states": 3, + "light": [ + { + // eslint-disable-next-line prettier/prettier + "bright": 3, "dim": 0, "angle": 360, "color": "#ff9329", "alpha": 0.5, + "animation": { "type": "torch", "speed": 5, "intensity": 5, "reverse": false }, + }, + { + // eslint-disable-next-line prettier/prettier + "bright": 7, "dim": 0, "angle": 85, "color": "#ff9329", "alpha": 0.5, + "animation": { "type": "torch", "speed": 5, "intensity": 5, "reverse": false }, + }, + ], + }, + "Lantern (1h, R3)": { + "name": "Lantern (1h, R3)", + "type": "equipment", + "consumable": false, + "states": 3, + "light": [ + { + // eslint-disable-next-line prettier/prettier + "bright": 3, "dim": 4, "angle": 360, "color": "#ff9329", "alpha": 0.5, + "animation": { "type": "torch", "speed": 5, "intensity": 5, "reverse": false }, + }, + { + // eslint-disable-next-line prettier/prettier + "bright": 8, "dim": 0, "angle": 85, "color": "#ff9329", "alpha": 0.5, + "animation": { "type": "torch", "speed": 5, "intensity": 5, "reverse": false }, + }, + ], + }, + "Lantern (1h, R4)": { + "name": "Lantern (1h, R4)", + "type": "equipment", + "consumable": false, + "states": 3, + "light": [ + { + // eslint-disable-next-line prettier/prettier + "bright": 4, "dim": 0, "angle": 360, "color": "#ff9329", "alpha": 0.5, + "animation": { "type": "torch", "speed": 5, "intensity": 5, "reverse": false }, + }, + { + // eslint-disable-next-line prettier/prettier + "bright": 9, "dim": 0, "angle": 85, "color": "#ff9329", "alpha": 0.5, + "animation": { "type": "torch", "speed": 5, "intensity": 5, "reverse": false }, + }, + ], + }, + "Lantern (1h, R5)": { + "name": "Lantern (1h, R5)", + "type": "equipment", + "consumable": false, + "states": 3, + "light": [ + { + // eslint-disable-next-line prettier/prettier + "bright": 4, "dim": 5, "angle": 360, "color": "#ff9329", "alpha": 0.5, + "animation": { "type": "torch", "speed": 5, "intensity": 5, "reverse": false }, + }, + { + // eslint-disable-next-line prettier/prettier + "bright": 10, "dim": 0, "angle": 85, "color": "#ff9329", "alpha": 0.5, + "animation": { "type": "torch", "speed": 5, "intensity": 5, "reverse": false }, + }, + ], + }, + "Torch (1h, R0)": { + "name": "Torch (1h, R0)", + "type": "equipment", + "consumable": false, + "states": 2, + "light": [ + { + // eslint-disable-next-line prettier/prettier + "bright": 4, "dim": 0, "angle": 360, "color": "#ff9329", "alpha": 0.5, + "animation": { "type": "torch", "speed": 5, "intensity": 5, "reverse": false }, + }, + ], + }, + "Torch (1h, R1)": { + "name": "Torch (1h, R1)", + "type": "equipment", + "consumable": false, + "states": 2, + "light": [ + { + // eslint-disable-next-line prettier/prettier + "bright": 4, "dim": 5, "angle": 360, "color": "#ff9329", "alpha": 0.5, + "animation": { "type": "torch", "speed": 5, "intensity": 5, "reverse": false }, + }, + ], + }, + "Torch (1h, R2)": { + "name": "Torch (1h, R2)", + "type": "equipment", + "consumable": false, + "states": 2, + "light": [ + { + // eslint-disable-next-line prettier/prettier + "bright": 5, "dim": 0, "angle": 360, "color": "#ff9329", "alpha": 0.5, + "animation": { "type": "torch", "speed": 5, "intensity": 5, "reverse": false }, + }, + ], + }, + "Torch (1h, R3)": { + "name": "Torch (1h, R3)", + "type": "equipment", + "consumable": false, + "states": 2, + "light": [ + { + // eslint-disable-next-line prettier/prettier + "bright": 5, "dim": 6, "angle": 360, "color": "#ff9329", "alpha": 0.5, + "animation": { "type": "torch", "speed": 5, "intensity": 5, "reverse": false }, + }, + ], + }, + "Torch (1h, R4)": { + "name": "Torch (1h, R4)", + "type": "equipment", + "consumable": false, + "states": 2, + "light": [ + { + // eslint-disable-next-line prettier/prettier + "bright": 6, "dim": 0, "angle": 360, "color": "#ff9329", "alpha": 0.5, + "animation": { "type": "torch", "speed": 5, "intensity": 5, "reverse": false }, + }, + ], + }, + "Torch (1h, R5)": { + "name": "Torch (1h, R5)", + "type": "equipment", + "consumable": false, + "states": 2, + "light": [ + { + // eslint-disable-next-line prettier/prettier + "bright": 6, "dim": 7, "angle": 360, "color": "#ff9329", "alpha": 0.5, + "animation": { "type": "torch", "speed": 5, "intensity": 5, "reverse": false }, + }, + ], + }, + }, + }, "dragonbane": { "system": "dragonbane", "topology": "standard", @@ -744,10 +685,11 @@ export default { "consumable": false, "light": [ { - "bright": 10, "dim": 10, "angle": 360, "alpha": 0.1, "color":"#f9f06b", - "animation": { "type": "torch", "speed": 5, "intensity": 5, "reverse": false } - } - ] + // eslint-disable-next-line prettier/prettier + "bright": 10, "dim": 10, "angle": 360, "alpha": 0.1, "color": "#f9f06b", + "animation": { "type": "torch", "speed": 5, "intensity": 5, "reverse": false }, + }, + ], }, "Oil Lamp": { "name": "Oil Lamp", @@ -755,10 +697,11 @@ export default { "consumable": false, "light": [ { - "bright": 10, "dim": 10, "angle": 360, "alpha": 0.1, "color":"#f9f06b", - "animation": { "type": "torch", "speed": 5, "intensity": 5, "reverse": false } - } - ] + // eslint-disable-next-line prettier/prettier + "bright": 10, "dim": 10, "angle": 360, "alpha": 0.1, "color": "#f9f06b", + "animation": { "type": "torch", "speed": 5, "intensity": 5, "reverse": false }, + }, + ], }, "Torch": { "name": "Torch", @@ -766,10 +709,11 @@ export default { "consumable": false, "light": [ { - "bright": 10, "dim": 10, "angle": 360, "alpha": 0.1, "color":"#f9f06b", - "animation": { "type": "torch", "speed": 5, "intensity": 5, "reverse": false } - } - ] + // eslint-disable-next-line prettier/prettier + "bright": 10, "dim": 10, "angle": 360, "alpha": 0.1, "color": "#f9f06b", + "animation": { "type": "torch", "speed": 5, "intensity": 5, "reverse": false }, + }, + ], }, "Tallow Candle": { "name": "Tallow Candle", @@ -777,68 +721,80 @@ export default { "consumable": false, "light": [ { - "bright": 4, "dim": 4, "angle": 360, "alpha": 0.1, "color":"#f9f06b", - "animation": { "type": "torch", "speed": 5, "intensity": 3, "reverse": false } - } - ] - } - } + // eslint-disable-next-line prettier/prettier + "bright": 4, "dim": 4, "angle": 360, "alpha": 0.1, "color": "#f9f06b", + "animation": { "type": "torch", "speed": 5, "intensity": 3, "reverse": false }, + }, + ], + }, + }, }, "demonlord": { "system": "demonlord", "topology": "standard", "quantity": "quantity", "aliases": { - "Lantern, Spotlight": "Spotlight Lantern" + "Lantern, Spotlight": "Spotlight Lantern", }, "sources": { - "Candle": { - "name": "Candle", - "type": "item", - "consumable": true, - "states": 2, - "light": [ - { "bright": 1, "dim": 2, "angle": 360, "color": "#ff9329", "alpha": 0.1, - "animation": {"type": "torch", "speed": "3", "intensity": "1", "reverse": false} - } - ] - }, - "Torch": { - "name": "Torch", - "type": "item", - "consumable": true, - "states": 2, - "light": [ - { "bright": 5, "dim": 10, "angle": 360, "color": "#ff9329", "alpha": 0.1, - "animation": {"type": "torch", "speed": "1", "intensity": "5", "reverse": false}} - ] - }, - "Spotlight Lantern": { - "name": "Spotlight Lantern", - "type": "item", - "consumable": false, - "states": 2, - "light": [ - { "bright": 20, "dim": 40, "angle": 53, - "animation": {"type": "torch", "speed": "1", "intensity": "10", "reverse": false} } - ] - }, - "Lantern": { - "name": "Lantern", - "type": "item", - "consumable": false, - "states": 3, - "light": [ - { "bright": 10, "dim": 20, "angle": 360, - "animation": {"type": "torch", "speed": "1", "intensity": "10", "reverse": false} } - ] - } - } + "Candle": { + "name": "Candle", + "type": "item", + "consumable": true, + "states": 2, + "light": [ + { + // eslint-disable-next-line prettier/prettier + "bright": 1, "dim": 2, "angle": 360, "color": "#ff9329", "alpha": 0.1, + "animation": { "type": "torch", "speed": "3", "intensity": "1", "reverse": false }, + }, + ], + }, + "Torch": { + "name": "Torch", + "type": "item", + "consumable": true, + "states": 2, + "light": [ + { + // eslint-disable-next-line prettier/prettier + "bright": 5, "dim": 10, "angle": 360, "color": "#ff9329", "alpha": 0.1, + "animation": { "type": "torch", "speed": "1", "intensity": "5", "reverse": false }, + }, + ], + }, + "Spotlight Lantern": { + "name": "Spotlight Lantern", + "type": "item", + "consumable": false, + "states": 2, + "light": [ + { + // eslint-disable-next-line prettier/prettier + "bright": 20, "dim": 40, "angle": 53, + "animation": { "type": "torch", "speed": "1", "intensity": "10", "reverse": false }, + }, + ], + }, + "Lantern": { + "name": "Lantern", + "type": "item", + "consumable": false, + "states": 3, + "light": [ + { + // eslint-disable-next-line prettier/prettier + "bright": 10, "dim": 20, "angle": 360, + "animation": { "type": "torch", "speed": "1", "intensity": "10", "reverse": false }, + }, + ], + }, + }, }, "wwn": { "system": "wwn", "topology": "standard", - "quantity" : "quantity", + "quantity": "quantity", "sources": { "Torch": { "name": "Torch", @@ -847,10 +803,11 @@ export default { "states": 2, "light": [ { + // eslint-disable-next-line prettier/prettier "bright": 15, "dim": 30, "angle": 360, "color": "#ffad58", "alpha": 0.4, - "animation": { "type": "torch", "speed": 3, "intensity": 5, "reverse": false } - } - ] + "animation": { "type": "torch", "speed": 3, "intensity": 5, "reverse": false }, + }, + ], }, "Lantern": { "name": "Lantern", @@ -859,10 +816,11 @@ export default { "states": 2, "light": [ { + // eslint-disable-next-line prettier/prettier "bright": 15, "dim": 30, "angle": 360, "color": "#eccd8b", "alpha": 0.4, - "animation": { "type": "torch", "speed": 2, "intensity": 4, "reverse": false } - } - ] + "animation": { "type": "torch", "speed": 2, "intensity": 4, "reverse": false }, + }, + ], }, "Flamesight": { "name": "Flamesight", @@ -871,11 +829,12 @@ export default { "states": 2, "light": [ { + // eslint-disable-next-line prettier/prettier "bright": 15, "dim": 30, "angle": 360, "color": "#ffad58", "alpha": 0.4, - "animation": { "type": "torch", "speed": 3, "intensity": 5, "reverse": false } - } - ] - }, + "animation": { "type": "torch", "speed": 3, "intensity": 5, "reverse": false }, + }, + ], + }, "The Light of Faith": { "name": "The Light of Faith", "type": "art", @@ -883,27 +842,47 @@ export default { "states": 2, "light": [ { + // eslint-disable-next-line prettier/prettier "bright": 15, "dim": 30, "angle": 360, "color": "#eccd8b", "alpha": 0.4, - "animation": { "type": "torch", "speed": 3, "intensity": 5, "reverse": false } - } - ] - }, - } + "animation": { "type": "torch", "speed": 3, "intensity": 5, "reverse": false }, + }, + ], + }, + }, + }, + "everyday-heroes": { + "system": "everyday-heroes", + "topology": "standard", + "quantity": "quantity", + "sources": { + "Flashlight/Headlamp": { + "name": "Flashlight/Headlamp", + "type": "none", + "consumable": false, + "states": 2, + "light": [{ "bright": 60, "dim": 60, "angle": 360 }], + }, + "Glow Sticks": { + "name": "Glow Sticks", + "type": "none", + "consumable": false, + "states": 2, + "light": [{ "bright": 0, "dim": 20, "angle": 360 }], + }, + }, }, "default": { "system": "default", "topology": "none", - "quantity" : "quantity", + "quantity": "quantity", "sources": { "Self": { "name": "Self", "type": "none", "consumable": false, "states": 2, - "light": [ - {"bright": 40, "dim":20, "angle": 360} - ] - } - } - } -} \ No newline at end of file + "light": [{ "bright": 40, "dim": 20, "angle": 360 }], + }, + }, + }, +};