Merge branch '0.6.x' into 'master'

[#36] Fix incorrect variable reference.

See merge request foundrynet/worldbuilding!19
This commit is contained in:
Kim Mantas 2021-12-21 15:18:10 +00:00
commit 93d86fc459
2 changed files with 3 additions and 3 deletions

View file

@ -8,7 +8,7 @@
export async function createWorldbuildingMacro(data, slot) {
const command = `const roll = new Roll("${data.roll}", actor ? actor.getRollData() : {});
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) {
macro = await Macro.create({
name: data.label,

View file

@ -2,7 +2,7 @@
"name": "worldbuilding",
"title": "Simple World-Building",
"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",
"compatibleCoreVersion": "9",
"author": "Atropos",
@ -22,6 +22,6 @@
"secondaryTokenAttribute": "power",
"url": "https://gitlab.com/foundrynet/worldbuilding/",
"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"
}