From df764909734f00238ddcafcb97b677800c94a335 Mon Sep 17 00:00:00 2001 From: Jeremy Kahn Date: Fri, 13 Oct 2023 09:41:59 -0500 Subject: [PATCH] feat(experience): [#460] grant experience for selling stones --- src/game-logic/reducers/sellItem.test.js | 3 ++- src/utils/isItemAFarmProduct.js | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/game-logic/reducers/sellItem.test.js b/src/game-logic/reducers/sellItem.test.js index b201a45f3..fe16462a0 100644 --- a/src/game-logic/reducers/sellItem.test.js +++ b/src/game-logic/reducers/sellItem.test.js @@ -1,7 +1,7 @@ import { testItem } from '../../test-utils' import { LOAN_PAYOFF } from '../../templates' import { carrot } from '../../data/crops' -import { bronzeOre, coal, milk1 } from '../../data/items' +import { bronzeOre, coal, milk1, saltRock } from '../../data/items' import { carrotSoup } from '../../data/recipes' import { sellItem } from './sellItem' @@ -236,6 +236,7 @@ describe('sellItem', () => { coal, carrotSoup, bronzeOre, + saltRock, ].map(item => [item.type, item]) test.each(experienceTestArgs)( diff --git a/src/utils/isItemAFarmProduct.js b/src/utils/isItemAFarmProduct.js index 67a379a35..87fc6a799 100644 --- a/src/utils/isItemAFarmProduct.js +++ b/src/utils/isItemAFarmProduct.js @@ -8,6 +8,7 @@ const FARM_PRODUCT_TYPES = [ itemType.FUEL, itemType.MILK, itemType.ORE, + itemType.STONE, ] /**