diff --git a/Output.js b/Output.js index 53d3f48..863d36a 100644 --- a/Output.js +++ b/Output.js @@ -1094,7 +1094,6 @@ function spellShopPushDeal(items, name, price) { price: price, bought: false }) - if (!state.spellShopAll) items.splice(index, 1) } var spellShopSeed @@ -1111,6 +1110,7 @@ function spellShopSelectSpells(spells, price, numberOfSpells) { return } + shuffle(spells, spellShopSeed) for (let i = 0; i < numberOfSpells; i++) { spellShopPushDeal(spells, spells[i], price) } diff --git a/README.md b/README.md index 07a998d..e27afed 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,8 @@ Watch the [tutorial video](https://youtu.be/E5TYU7rDaBQ). v. 0.6.0 * Added Item Shop - Make sure to import the latest story cards: https://github.com/raeleus/Hashtag-DnD/blob/master/story-cards.json * Added commands #takeweapon, #takearmor, and #equip to allow automatic stat changes when using gear -* Added descriptions for all DnD Player's Handbook and Dungeon Master's Guide items to story cards. +* Added descriptions for all DnD Player's Handbook and Dungeon Master's Guide items to story cards +* Fixed #spellshop not giving properly randomized spells v. 0.5.0 * Added Mastermind/Lockpicking Game