Skip to content

Commit

Permalink
Merge pull request #153 from DanielBoettner/patch-2
Browse files Browse the repository at this point in the history
Fix filter method after rolltable generation
  • Loading branch information
DanielBoettner authored Nov 18, 2021
2 parents 2844b02 + eddb8c5 commit fac3424
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 12 deletions.
24 changes: 16 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<img alt="GitHub release (latest by date)" src="https://img.shields.io/github/v/release/ultrakorne/better-rolltables?style=flat-square"> <img alt="GitHub" src="https://img.shields.io/github/license/ultrakorne/better-rolltables?style=flat-square"> <img alt="GitHub Releases" src="https://img.shields.io/github/downloads/ultrakorne/better-rolltables/latest/total?style=flat-square">

# Better Rolltables #
*better-rolltables* is Module for FoundryVTT to improve and add functionality to Rollable tables
Implementing for example the Treasure Hoard" Tables from the Dungeon master manual becomes possible!
*better-rolltables* is a module for [FoundryVTT](https://foundryvtt.com/) to improve and add functionality to rollable tables.
Implementing for example the "Treasure Hoard" Tables from the Dungeons Masters Guide becomes possible!

### Intro video
[![Overview video](https://img.youtube.com/vi/TRg4y0joOKA/0.jpg)](https://www.youtube.com/watch?v=TRg4y0joOKA)
Expand All @@ -13,19 +13,27 @@ Implementing for example the Treasure Hoard" Tables from the Dungeon master manu

* Roll on multiple tables with roll formulas
* Auto create a loot actor to store generated loot
* Populate loot on a token
* Auto roll random spells when a scroll is selected as loot
* A table can specify multiple currencies (with roll formulas) to always be awarded

### How to use it ###
## How to use Better Rolltables ##

Check the [**Wiki**](https://github.com/ultrakorne/better-rolltables/wiki) and start with [How to Loot Tables](https://github.com/ultrakorne/better-rolltables/wiki/Loot-Tables)
Please check the [**Wiki**](https://github.com/ultrakorne/better-rolltables/wiki) and start with [How to use Loot Tables](https://github.com/ultrakorne/better-rolltables/wiki/Loot-Tables)

To use the functionality in your macros, check out the [Macro guide](https://github.com/ultrakorne/better-rolltables/wiki/API-for-macros-and-modules#how-to-roll-tables-from-macros)
To use the functionality in macros or other modules, check out the [API/Macro guide](https://github.com/ultrakorne/better-rolltables/wiki/API-for-macros-and-modules#how-to-roll-tables-from-macros)

I suggest to use [loot sheet NPC module](https://github.com/jopeek/fvtt-loot-sheet-npc-5e). if you have that module installed, better rolltable will automatically use it.
## Recommended module(s)
I suggest to use [loot sheet NPC module](https://github.com/jopeek/fvtt-loot-sheet-npc-5e).
If the module is installed, Better Rolltable will automatically make use of it.

Also [Loot Populater NPC 5E](https://github.com/DanielBoettner/fvtt-loot-populator-npc-5e) has
Better Rolltables integration and allows to populate loot on tokens automatically based on certain rules and fallbacks.

[FAQs](https://github.com/ultrakorne/better-rolltables/wiki/FAQ)

### Contacts
Ultrakorne#6240
## Contacts
If you have any suggestions or feedback, please [submit an issue on GitHub](https://github.com/ultrakorne/better-rolltables/issues) or try to contact via Discord.

* Ultrakorne#6240
* JackPrince#0494 (on [Github](https://github.com/DanielBoettner))
4 changes: 2 additions & 2 deletions module.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "better-rolltables",
"title": "Better Roll Tables",
"description": "Adding functionality to roll tables, especially to roll treasure and magic items",
"version": "1.8.5",
"version": "1.8.6",
"authors": [
{
"name": "Ultrakorne#6240",
Expand Down Expand Up @@ -80,5 +80,5 @@
],
"url": "https://github.com/ultrakorne/better-rolltables",
"manifest": "https://raw.githubusercontent.com/ultrakorne/better-rolltables/master/module.json",
"download": "https://github.com/ultrakorne/better-rolltables/releases/download/v1.8.5/better-rolltables.zip"
"download": "https://github.com/ultrakorne/better-rolltables/releases/download/v1.8.6/better-rolltables.zip"
}
2 changes: 1 addition & 1 deletion scripts/better-tables.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ export class BetterTables {
})
.then(results => RollTable.create({
name: tableName,
results: results.filter(x => x !== undefined) // remove empty results due to null weight
results: results.filter(x => x.weight !== 0) // remove empty results due to null weight
}))
.then(rolltable => {
rolltable.normalize()
Expand Down
12 changes: 11 additions & 1 deletion templates/welcome-screen.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,21 @@ <h2>Bugs or Suggestions?</h2>

<h1>Patchnotes</h1>

<h2 id="v186">v1.8.6</h2>
<ul>
<li>Fixed a bug in <em>createTableFromCompendium()</em></li>
</ul>

<h2 id="v185">v1.8.5</h2>
<ul>
<li>various fixes</li>
</ul>

<h2 id="v184">v1.8.4</h2>
<ul>
<li>Added a method that allows populating tokens (e.g. via macro)</li>
</ul>

<h2 id="v183">v1.8.3</h2>
<ul>
<li>add option to disable message when generating loot to actor (disabled by default)</li>
Expand Down Expand Up @@ -86,7 +96,7 @@ <h2 id="v1613">v1.6.13</h2>
</ul>
<h2 id="v1612">v1.6.12</h2>
<ul>
<li>Another update from JackPrince # 0494 (<a href="https://github.com/DanielBoettner">github.com/DanielBoettner</a>) fixing generation of spellscrolls.</li>
<li>Another update from JackPrince#0494 (<a href="https://github.com/DanielBoettner">github.com/DanielBoettner</a>) fixing generation of spellscrolls.</li>
<li>Add link and description of spell to the spell scrolls</li>
<li>Updated the method to generate tables from a compendium</li>
<li>Added an entry to the contextmenu of a compendium to start generation</li>
Expand Down

0 comments on commit fac3424

Please sign in to comment.