🔀 merge main

This commit is contained in:
Chase Manning 2023-11-29 14:16:23 +00:00
commit bcf9fc6a23
2 changed files with 5 additions and 1 deletions

View file

@ -6,7 +6,9 @@ const useBadges = () => {
const inventory = useSelector(selectInventory);
const itemData = useItemData();
return inventory.filter((item) => itemData[item.item].badge);
return inventory.filter(
(item) => itemData[item.item].badge && item.amount > 0
);
};
export default useBadges;

View file

@ -8,6 +8,7 @@ import {
consumeItem,
gainMoney,
healPokemon,
moveLeft,
selectCompletedQuests,
selectInventory,
selectPokemon,
@ -71,6 +72,7 @@ const useQuests = () => {
"Follow me!",
],
action: () => {
dispatch(moveLeft());
dispatch(setBlackScreen(true));
setTimeout(() => {
dispatch(setPos({ x: 14, y: 19 }));