forked from jsabol/all-goblins-have-names
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from mnoreke/Development
Updated module for Foundry V11. Working for DnD5e system 2.4.1. Not all features tested, but will handle if bug reports come in.
- Loading branch information
Showing
6 changed files
with
208 additions
and
191 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
################################################################################ | ||
# This .gitignore file was automatically created by Microsoft(R) Visual Studio. | ||
################################################################################ | ||
|
||
/.vs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
export function isBetterTable(table) { | ||
return ( | ||
table.data.flags && | ||
table.data.flags["better-rolltables"] && | ||
table.data.flags["better-rolltables"]["table-type"] == "better" | ||
); | ||
return ( | ||
table.data.flags && | ||
table.data.flags["better-rolltables"] && | ||
table.data.flags["better-rolltables"]["table-type"] == "better" | ||
); | ||
} | ||
|
||
export function isStoryTable(table) { | ||
return ( | ||
table.data.flags && | ||
table.data.flags["better-rolltables"] && | ||
table.data.flags["better-rolltables"]["table-type"] == "story" | ||
); | ||
return ( | ||
table.data.flags && | ||
table.data.flags["better-rolltables"] && | ||
table.data.flags["better-rolltables"]["table-type"] == "story" | ||
); | ||
} | ||
|
||
export async function rollBetterTable(table) { | ||
const result = await game.betterTables.getBetterTableResults(table); | ||
return result; | ||
const result = await game.betterTables.getBetterTableResults(table); | ||
return result; | ||
} | ||
|
||
export async function rollStoryTable(table) { | ||
const result = await game.betterTables.getStoryResults(table); | ||
return result.storyHtml; | ||
const result = await game.betterTables.getStoryResults(table); | ||
return result.storyHtml; | ||
} |
Oops, something went wrong.