mirror of
https://github.com/raeleus/Hashtag-DnD.git
synced 2025-07-05 13:10:28 -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue