mirror of
https://github.com/raeleus/Hashtag-DnD.git
synced 2025-07-13 00:41:51 -04:00
Fixed #spellshop not giving properly randomized spells
This commit is contained in:
parent
83790f66e0
commit
737b2aa335
2 changed files with 3 additions and 2 deletions
|
@ -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)
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue