mirror of
https://github.com/raeleus/Hashtag-DnD.git
synced 2025-07-05 13:10:28 -04:00
Added default option to #itemshop
This commit is contained in:
parent
2896dc0362
commit
83790f66e0
2 changed files with 61 additions and 17 deletions
4
Input.js
4
Input.js
|
@ -1440,9 +1440,9 @@ function doBasicDeck(command) {
|
|||
function doItemShop(command) {
|
||||
command = command.replace(/very rare/gi, "phenomenal")
|
||||
|
||||
state.itemShopCategoryName = searchArgument(command, /weapons|armor|tools|gear|common|uncommon|rare|phenomenal|legendary|artifact/gi)
|
||||
state.itemShopCategoryName = searchArgument(command, /default|weapons|armor|tools|gear|common|uncommon|rare|phenomenal|legendary|artifact/gi)
|
||||
if (state.itemShopCategoryName == null && searchArgument(command, /weapon/) != null) state.itemShopCategoryName = "weapons"
|
||||
if (state.itemShopCategoryName == null) state.itemShopCategoryName = "common"
|
||||
if (state.itemShopCategoryName == null) state.itemShopCategoryName = "default"
|
||||
|
||||
let arg1 = searchArgument(command, /free/gi)
|
||||
state.itemShopIsFree = arg1 != null
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue