jeremyckahn / farmhand

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

add the ability for crops to have more than 1 growing phase #473

Closed lstebner closed 8 months ago

lstebner commented 8 months ago

What this PR does

this is a backwards compatible change that allows for the cropTimetable to support a growing phase that is an array of day lengths. each index in this array will be considered a "phase" and getPlotImage will use the phase to look for an image named <crop>-growing-<phase> instead of simply <crop>-growing.

if the GROWING phase is just a single value then this is considered "phase 0" by the code and this will use the default <crop>-growing image name.

this PR also updates the growing phase of every crop to the new array notation, and adds multiple phases to (with new art!) to a majority of them. everywhere that phases were added should not change the total growing time of any crop. the goal was to keep the duration the same, but just add more visual flair to the process.

How this change can be validated

in this PR every crop was updated to use the array notation for the growing stage, and a majority were updated to have multiple phases visually. all updated crops are shown in the gifs below (however some of the images are out of date with the final state of the PR.)

it's also important to test other crops that were not updated and ensure that they still grow as expected.

Additional information

video shared in discord cause github said it's too big

I went a little nuts updating a bunch of crops because I found it fun, so here are GIFS! note* these are slightly out of date but kind of a pain to regenerate so it is what it is 😄

asparagus-growing carrot-growing corn-growing garlic-growing jalapeno-growing onion-growing potato-growing pumpkin-growing sunflower-growing sweet-potato-growing tomato-growing

vercel[bot] commented 8 months 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 Jan 16, 2024 2:34am