jeremyckahn / farmhand

A resource management game that puts a farm in your hand
https://www.farmhand.life
GNU General Public License v2.0
95 stars 23 forks source link

feat(closes #491): Winemaking #497

Closed jeremyckahn closed 3 weeks ago

jeremyckahn commented 1 month ago

What this PR does

For #491, this PR implements Winemaking. Wine works similarly to fermented crop recipes: Once the player purchases a cellar, they can combine Yeast and Grapes to produce a Wine keg. Wine kegs compound in value but top out at 100 days after maturity. Unlike fermented crops, wines do not spoil.

This PR also changes how Bread-related recipes work. Previously, Wheat could be made directly into Bread. Now, Wheat must be made into Flour which can then be made into Bread. This was changed to allow Flour to be made into Yeast, which is a new ingredient of Bread but also Wine. This has the downstream effect of raising the value of all Bread-derived recipes.

This PR also makes a few small tweaks throughout the UX. Specifically, the Items Sold list under Farm Stats is ordered alphabetically by name, and the Quantity Input UX has been improved to work more consistently.

This PR also updates and improves various type annotations throughout the project.

How this change can be validated

I recommend modifying the game state to give yourself a lot of money, grape items, and wheat. Here's a save file that can be used to get a head start.

Additional information

This is just the first iteration of this feature and I'm sure it will be improved and expanded over time.

This PR introduces a lot of commented-out wine recipes. These will be enabled in a future update.

Screenshot of wine recipes

Screenshot of wine kegs at peak maturity

vercel[bot] commented 1 month ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
farmhand ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 9, 2024 3:17pm