Fixed #spellshop not giving properly randomized spells

This commit is contained in:
raeleus 2025-04-03 22:38:47 -07:00
parent 83790f66e0
commit 737b2aa335
2 changed files with 3 additions and 2 deletions

View file

@ -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)
}

View file

@ -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