mirror of
https://github.com/chase-manning/pokemon-js.git
synced 2025-10-22 03:36:53 +00:00
🔀 merge main
This commit is contained in:
commit
bcf9fc6a23
2 changed files with 5 additions and 1 deletions
src/app
|
@ -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;
|
||||
|
|
|
@ -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 }));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue