mirror of
https://github.com/RoY7x/worldbuilding.git
synced 2025-04-30 02:31:41 -04:00
[#36] Fix incorrect variable reference.
This commit is contained in:
parent
57f7c67272
commit
e8aa4a462e
2 changed files with 3 additions and 3 deletions
|
@ -8,7 +8,7 @@
|
||||||
export async function createWorldbuildingMacro(data, slot) {
|
export async function createWorldbuildingMacro(data, slot) {
|
||||||
const command = `const roll = new Roll("${data.roll}", actor ? actor.getRollData() : {});
|
const command = `const roll = new Roll("${data.roll}", actor ? actor.getRollData() : {});
|
||||||
roll.toMessage({speaker, flavor: "${data.label}"});`;
|
roll.toMessage({speaker, flavor: "${data.label}"});`;
|
||||||
let macro = game.macros.find(m => (m.name === item.label) && (m.command === command));
|
let macro = game.macros.find(m => (m.name === data.label) && (m.command === command));
|
||||||
if (!macro) {
|
if (!macro) {
|
||||||
macro = await Macro.create({
|
macro = await Macro.create({
|
||||||
name: data.label,
|
name: data.label,
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"name": "worldbuilding",
|
"name": "worldbuilding",
|
||||||
"title": "Simple World-Building",
|
"title": "Simple World-Building",
|
||||||
"description": "A minimalist game system which provides configurable Actor and Item templates to support free-form system agnostic game-play.",
|
"description": "A minimalist game system which provides configurable Actor and Item templates to support free-form system agnostic game-play.",
|
||||||
"version": "0.6.1",
|
"version": "0.6.2",
|
||||||
"minimumCoreVersion": "0.8.9",
|
"minimumCoreVersion": "0.8.9",
|
||||||
"compatibleCoreVersion": "9",
|
"compatibleCoreVersion": "9",
|
||||||
"author": "Atropos",
|
"author": "Atropos",
|
||||||
|
@ -22,6 +22,6 @@
|
||||||
"secondaryTokenAttribute": "power",
|
"secondaryTokenAttribute": "power",
|
||||||
"url": "https://gitlab.com/foundrynet/worldbuilding/",
|
"url": "https://gitlab.com/foundrynet/worldbuilding/",
|
||||||
"manifest": "https://gitlab.com/foundrynet/worldbuilding/raw/0.6.x/system.json",
|
"manifest": "https://gitlab.com/foundrynet/worldbuilding/raw/0.6.x/system.json",
|
||||||
"download": "https://gitlab.com/foundrynet/worldbuilding/-/archive/release-061/worldbuilding-release-061.zip",
|
"download": "https://gitlab.com/foundrynet/worldbuilding/-/archive/release-062/worldbuilding-release-062.zip",
|
||||||
"license": "LICENSE.txt"
|
"license": "LICENSE.txt"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue