@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.
Files changed (127) hide show
  1. package/dist/assets/{index-B1wiB17g.js → index-DgErVmlw.js} +9 -9
  2. package/dist/assets/{index-B1wiB17g.js.map → index-DgErVmlw.js.map} +1 -1
  3. package/dist/index.html +1 -1
  4. package/dist/service-worker.js +1 -1
  5. package/dist/service-worker.js.map +1 -1
  6. package/package.json +2 -2
  7. package/src/components/AppBar/AppBar.test.tsx +19 -0
  8. package/src/components/AppBar/AppBar.tsx +29 -1
  9. package/src/components/CowCard/Bloodline/Bloodline.tsx +7 -2
  10. package/src/components/CowPen/Cow.tsx +237 -225
  11. package/src/components/CowPen/CowPen.test.tsx +74 -0
  12. package/src/components/Farmhand/Farmhand.context.tsx +14 -6
  13. package/src/components/Farmhand/FarmhandReducers.tsx +3 -0
  14. package/src/components/Farmhand/hooks/useFarmhandNavigation.ts +4 -2
  15. package/src/components/Farmhand/useFarmhand.ts +10 -10
  16. package/src/components/Field/Field.test.tsx +2 -0
  17. package/src/components/Field/Field.tsx +29 -3
  18. package/src/components/ForestPlot/ForestPlot.test.tsx +1 -1
  19. package/src/components/ForestPlot/ForestPlot.tsx +7 -6
  20. package/src/components/Inventory/Inventory.tsx +1 -0
  21. package/src/components/Item/Item.test.tsx +145 -0
  22. package/src/components/Item/Item.tsx +32 -0
  23. package/src/components/Navigation/Navigation.tsx +4 -7
  24. package/src/components/Plot/Plot.test.tsx +56 -1
  25. package/src/components/Plot/Plot.tsx +51 -1
  26. package/src/components/Stage/Stage.test.tsx +55 -0
  27. package/src/components/Stage/Stage.tsx +58 -25
  28. package/src/components/Toolbelt/Toolbelt.tsx +5 -8
  29. package/src/components/WineRecipeList/WineRecipe.test.tsx +3 -1
  30. package/src/components/WineRecipeList/WineRecipe.tsx +1 -5
  31. package/src/components/Workshop/ForgeTabPanel.tsx +2 -2
  32. package/src/components/Workshop/Workshop.tsx +2 -2
  33. package/src/constants.ts +11 -3
  34. package/src/data/__mocks__/items.ts +10 -0
  35. package/src/data/achievements.test.ts +45 -0
  36. package/src/data/achievements.ts +42 -0
  37. package/src/data/crop.ts +18 -4
  38. package/src/data/crops/asparagus.ts +3 -1
  39. package/src/data/crops/carrot.ts +2 -1
  40. package/src/data/crops/corn.ts +3 -1
  41. package/src/data/crops/garlic.ts +3 -1
  42. package/src/data/crops/grape.ts +7 -5
  43. package/src/data/crops/jalapeno.ts +3 -1
  44. package/src/data/crops/olive.ts +3 -1
  45. package/src/data/crops/pea.ts +3 -1
  46. package/src/data/crops/potato.ts +3 -1
  47. package/src/data/crops/pumpkin.ts +3 -1
  48. package/src/data/crops/spinach.ts +3 -1
  49. package/src/data/crops/strawberry.ts +3 -1
  50. package/src/data/crops/sunflower.ts +3 -1
  51. package/src/data/crops/sweet-potato.ts +3 -1
  52. package/src/data/crops/tomato.ts +3 -1
  53. package/src/data/crops/watermelon.ts +3 -1
  54. package/src/data/maps.test.ts +13 -0
  55. package/src/data/recipes.ts +65 -0
  56. package/src/data/seasons.ts +38 -0
  57. package/src/enums.ts +55 -4
  58. package/src/factories/ResourceFactory.test.ts +25 -4
  59. package/src/factories/ResourceFactory.ts +10 -8
  60. package/src/farmhand.d.ts +51 -145
  61. package/src/game-logic/reducers/applyLoanInterest.ts +2 -1
  62. package/src/game-logic/reducers/applyPrecipitation.test.ts +228 -0
  63. package/src/game-logic/reducers/applyPrecipitation.ts +79 -1
  64. package/src/game-logic/reducers/chopForestPlot.test.ts +1 -1
  65. package/src/game-logic/reducers/chopForestPlot.ts +1 -1
  66. package/src/game-logic/reducers/clearPlot.test.ts +55 -1
  67. package/src/game-logic/reducers/clearPlot.ts +17 -0
  68. package/src/game-logic/reducers/computeStateForNextDay.test.ts +14 -12
  69. package/src/game-logic/reducers/computeStateForNextDay.ts +2 -2
  70. package/src/game-logic/reducers/helpers.tsx +28 -0
  71. package/src/game-logic/reducers/index.ts +1 -0
  72. package/src/game-logic/reducers/makeRecipe.ts +1 -1
  73. package/src/game-logic/reducers/mulchForestPlot.ts +1 -1
  74. package/src/game-logic/reducers/prependPendingPeerMessage.ts +2 -1
  75. package/src/game-logic/reducers/processLevelUp.ts +2 -1
  76. package/src/game-logic/reducers/sellItem.test.ts +106 -1
  77. package/src/game-logic/reducers/sellItem.ts +28 -8
  78. package/src/game-logic/reducers/setLightningRod.test.ts +67 -0
  79. package/src/game-logic/reducers/setLightningRod.ts +39 -0
  80. package/src/game-logic/reducers/showNotification.ts +2 -1
  81. package/src/game-logic/reducers/unlockTool.ts +2 -2
  82. package/src/game-logic/reducers/upgradeTool.test.ts +2 -2
  83. package/src/game-logic/reducers/upgradeTool.ts +2 -1
  84. package/src/handlers/peer-events.ts +1 -1
  85. package/src/handlers/ui-events.tsx +9 -12
  86. package/src/img/index.ts +7 -1
  87. package/src/img/items/lightning-rod-basic.piskel +1 -0
  88. package/src/img/items/lightning-rod-basic.png +0 -0
  89. package/src/img/items/lightning-rod-superior.piskel +1 -0
  90. package/src/img/items/lightning-rod-superior.png +0 -0
  91. package/src/img/items/lightning-rod-ultimate.piskel +1 -0
  92. package/src/img/items/lightning-rod-ultimate.png +0 -0
  93. package/src/interfaces/Factory.ts +2 -4
  94. package/src/mui-theme.ts +1 -0
  95. package/src/services/wine.ts +2 -2
  96. package/src/strings.ts +6 -0
  97. package/src/styles/tokens.ts +1 -0
  98. package/src/templates.ts +2 -2
  99. package/src/test-utils/index.ts +12 -11
  100. package/src/utils/generateCow.ts +1 -1
  101. package/src/utils/generateOffspringCow.ts +1 -1
  102. package/src/utils/getChopWoodYieldRange.ts +2 -1
  103. package/src/utils/getCowColorId.ts +2 -2
  104. package/src/utils/getCowFertilizerItem.ts +1 -1
  105. package/src/utils/getCowImage.ts +2 -2
  106. package/src/utils/getCowMilkItem.ts +1 -1
  107. package/src/utils/getCropLifeStage.ts +1 -3
  108. package/src/utils/getCurrentSeason.test.ts +16 -0
  109. package/src/utils/getCurrentSeason.ts +6 -0
  110. package/src/utils/getDayOfSeason.test.ts +19 -0
  111. package/src/utils/getDayOfSeason.ts +4 -0
  112. package/src/utils/getFruitLifeStage.ts +3 -3
  113. package/src/utils/getLifeStageForTimeline.ts +1 -1
  114. package/src/utils/getSeasonalDemandMultiplier.test.ts +41 -0
  115. package/src/utils/getSeasonalDemandMultiplier.ts +24 -0
  116. package/src/utils/getSeasonalDemandStatus.test.ts +33 -0
  117. package/src/utils/getSeasonalDemandStatus.ts +16 -0
  118. package/src/utils/getTreeLifeStage.ts +1 -3
  119. package/src/utils/getValidatedStageFocusFromHash.ts +2 -5
  120. package/src/utils/getViewList.ts +2 -2
  121. package/src/utils/getWineVarietiesAvailableToMake.ts +2 -1
  122. package/src/utils/getYeastRequiredForWine.ts +1 -1
  123. package/src/utils/isItemAFarmProduct.ts +1 -1
  124. package/src/utils/pluralize.test.ts +23 -0
  125. package/src/utils/pluralize.ts +5 -0
  126. package/src/utils/sortItems.ts +1 -3
  127. 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.