@jeremyckahn/farmhand 1.20.5 → 1.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{index-B1wiB17g.js → index-DgErVmlw.js} +9 -9
- package/dist/assets/{index-B1wiB17g.js.map → index-DgErVmlw.js.map} +1 -1
- package/dist/index.html +1 -1
- package/dist/service-worker.js +1 -1
- package/dist/service-worker.js.map +1 -1
- package/package.json +2 -2
- package/src/components/AppBar/AppBar.test.tsx +19 -0
- package/src/components/AppBar/AppBar.tsx +29 -1
- package/src/components/CowCard/Bloodline/Bloodline.tsx +7 -2
- package/src/components/CowPen/Cow.tsx +237 -225
- package/src/components/CowPen/CowPen.test.tsx +74 -0
- package/src/components/Farmhand/Farmhand.context.tsx +14 -6
- package/src/components/Farmhand/FarmhandReducers.tsx +3 -0
- package/src/components/Farmhand/hooks/useFarmhandNavigation.ts +4 -2
- package/src/components/Farmhand/useFarmhand.ts +10 -10
- package/src/components/Field/Field.test.tsx +2 -0
- package/src/components/Field/Field.tsx +29 -3
- package/src/components/ForestPlot/ForestPlot.test.tsx +1 -1
- package/src/components/ForestPlot/ForestPlot.tsx +7 -6
- package/src/components/Inventory/Inventory.tsx +1 -0
- package/src/components/Item/Item.test.tsx +145 -0
- package/src/components/Item/Item.tsx +32 -0
- package/src/components/Navigation/Navigation.tsx +4 -7
- package/src/components/Plot/Plot.test.tsx +56 -1
- package/src/components/Plot/Plot.tsx +51 -1
- package/src/components/Stage/Stage.test.tsx +55 -0
- package/src/components/Stage/Stage.tsx +58 -25
- package/src/components/Toolbelt/Toolbelt.tsx +5 -8
- package/src/components/WineRecipeList/WineRecipe.test.tsx +3 -1
- package/src/components/WineRecipeList/WineRecipe.tsx +1 -5
- package/src/components/Workshop/ForgeTabPanel.tsx +2 -2
- package/src/components/Workshop/Workshop.tsx +2 -2
- package/src/constants.ts +11 -3
- package/src/data/__mocks__/items.ts +10 -0
- package/src/data/achievements.test.ts +45 -0
- package/src/data/achievements.ts +42 -0
- package/src/data/crop.ts +18 -4
- package/src/data/crops/asparagus.ts +3 -1
- package/src/data/crops/carrot.ts +2 -1
- package/src/data/crops/corn.ts +3 -1
- package/src/data/crops/garlic.ts +3 -1
- package/src/data/crops/grape.ts +7 -5
- package/src/data/crops/jalapeno.ts +3 -1
- package/src/data/crops/olive.ts +3 -1
- package/src/data/crops/pea.ts +3 -1
- package/src/data/crops/potato.ts +3 -1
- package/src/data/crops/pumpkin.ts +3 -1
- package/src/data/crops/spinach.ts +3 -1
- package/src/data/crops/strawberry.ts +3 -1
- package/src/data/crops/sunflower.ts +3 -1
- package/src/data/crops/sweet-potato.ts +3 -1
- package/src/data/crops/tomato.ts +3 -1
- package/src/data/crops/watermelon.ts +3 -1
- package/src/data/maps.test.ts +13 -0
- package/src/data/recipes.ts +65 -0
- package/src/data/seasons.ts +38 -0
- package/src/enums.ts +55 -4
- package/src/factories/ResourceFactory.test.ts +25 -4
- package/src/factories/ResourceFactory.ts +10 -8
- package/src/farmhand.d.ts +51 -145
- package/src/game-logic/reducers/applyLoanInterest.ts +2 -1
- package/src/game-logic/reducers/applyPrecipitation.test.ts +228 -0
- package/src/game-logic/reducers/applyPrecipitation.ts +79 -1
- package/src/game-logic/reducers/chopForestPlot.test.ts +1 -1
- package/src/game-logic/reducers/chopForestPlot.ts +1 -1
- package/src/game-logic/reducers/clearPlot.test.ts +55 -1
- package/src/game-logic/reducers/clearPlot.ts +17 -0
- package/src/game-logic/reducers/computeStateForNextDay.test.ts +14 -12
- package/src/game-logic/reducers/computeStateForNextDay.ts +2 -2
- package/src/game-logic/reducers/helpers.tsx +28 -0
- package/src/game-logic/reducers/index.ts +1 -0
- package/src/game-logic/reducers/makeRecipe.ts +1 -1
- package/src/game-logic/reducers/mulchForestPlot.ts +1 -1
- package/src/game-logic/reducers/prependPendingPeerMessage.ts +2 -1
- package/src/game-logic/reducers/processLevelUp.ts +2 -1
- package/src/game-logic/reducers/sellItem.test.ts +106 -1
- package/src/game-logic/reducers/sellItem.ts +28 -8
- package/src/game-logic/reducers/setLightningRod.test.ts +67 -0
- package/src/game-logic/reducers/setLightningRod.ts +39 -0
- package/src/game-logic/reducers/showNotification.ts +2 -1
- package/src/game-logic/reducers/unlockTool.ts +2 -2
- package/src/game-logic/reducers/upgradeTool.test.ts +2 -2
- package/src/game-logic/reducers/upgradeTool.ts +2 -1
- package/src/handlers/peer-events.ts +1 -1
- package/src/handlers/ui-events.tsx +9 -12
- package/src/img/index.ts +7 -1
- package/src/img/items/lightning-rod-basic.piskel +1 -0
- package/src/img/items/lightning-rod-basic.png +0 -0
- package/src/img/items/lightning-rod-superior.piskel +1 -0
- package/src/img/items/lightning-rod-superior.png +0 -0
- package/src/img/items/lightning-rod-ultimate.piskel +1 -0
- package/src/img/items/lightning-rod-ultimate.png +0 -0
- package/src/interfaces/Factory.ts +2 -4
- package/src/mui-theme.ts +1 -0
- package/src/services/wine.ts +2 -2
- package/src/strings.ts +6 -0
- package/src/styles/tokens.ts +1 -0
- package/src/templates.ts +2 -2
- package/src/test-utils/index.ts +12 -11
- package/src/utils/generateCow.ts +1 -1
- package/src/utils/generateOffspringCow.ts +1 -1
- package/src/utils/getChopWoodYieldRange.ts +2 -1
- package/src/utils/getCowColorId.ts +2 -2
- package/src/utils/getCowFertilizerItem.ts +1 -1
- package/src/utils/getCowImage.ts +2 -2
- package/src/utils/getCowMilkItem.ts +1 -1
- package/src/utils/getCropLifeStage.ts +1 -3
- package/src/utils/getCurrentSeason.test.ts +16 -0
- package/src/utils/getCurrentSeason.ts +6 -0
- package/src/utils/getDayOfSeason.test.ts +19 -0
- package/src/utils/getDayOfSeason.ts +4 -0
- package/src/utils/getFruitLifeStage.ts +3 -3
- package/src/utils/getLifeStageForTimeline.ts +1 -1
- package/src/utils/getSeasonalDemandMultiplier.test.ts +41 -0
- package/src/utils/getSeasonalDemandMultiplier.ts +24 -0
- package/src/utils/getSeasonalDemandStatus.test.ts +33 -0
- package/src/utils/getSeasonalDemandStatus.ts +16 -0
- package/src/utils/getTreeLifeStage.ts +1 -3
- package/src/utils/getValidatedStageFocusFromHash.ts +2 -5
- package/src/utils/getViewList.ts +2 -2
- package/src/utils/getWineVarietiesAvailableToMake.ts +2 -1
- package/src/utils/getYeastRequiredForWine.ts +1 -1
- package/src/utils/isItemAFarmProduct.ts +1 -1
- package/src/utils/pluralize.test.ts +23 -0
- package/src/utils/pluralize.ts +5 -0
- package/src/utils/sortItems.ts +1 -3
- package/src/utils/transformStateDataForImport.ts +1 -1
There are too many changes on this page to be displayed.
The amount of changes on this page would crash your brower.
You can still verify the content by downloading the package file manually.