Skip to content

Commit

Permalink
Revert "Hotfix daily potion price"
Browse files Browse the repository at this point in the history
This reverts commit e77b9f5.
  • Loading branch information
niqore authored and BastLast committed Aug 24, 2020
1 parent 75ece99 commit 9e40c8b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/commands/player/ShopCommand.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ async function ShopCommand(language, message, args) {
id: ((Math.round(Date.now() / (1000 * 60 * 60 * 24))) % (numberOfPotions - 1)) + 1,
},
});
const potionPrice = getItemValue(potion) + JsonReader.commands.shop.prices.addedValue;
const potionPrice = Math.round(
(parseInt(JsonReader.values.raritiesValues[potion.rarity]) + parseInt(potion.power)) * 0.7
);

//Creating shop message
const shopMessage = await message.channel.send(
Expand Down

0 comments on commit 9e40c8b

Please sign in to comment.