I’ve done a few PRs now, and I’m pondering adding more seeds/crops for my next. I looked at jokermatt’s farming update, and while I think I’ve got an idea of how this works, I’m not certain enough to begin.
One, it looks like the game gets the identity of the crop the seed is supposed to produce by subtracting “seed_” from the start of the seed’s item ID, and the rest had better match the crop’s item ID. Is this the case?
Two, growth time is part of the seed’s entry and relative to a 91-day season. The game will compress the growth time proportionally for shorter seasons, right? I do think this is the case given that when I tried actually doing some farming in-game, the crops grew really fast–I was playing with 30-day seasons and fertilised the crops.
Three, for crops where the seed is the crop, like beans, is there any support for a crop that can be planted and produces more of itself without a separate seed item, or would the code still require a separate “seed” item? I’m going to guess the answer is the latter, but figured I’d ask.
Four, it looks like adding new crop seeds can be done entirely JSON-side. Am I correct?
Like I say, I’m not sure of the above, but if I’m correct, I can go ahead and see about adding some more crops soon. I’m thinking things like oats and rice, and maybe zucchini and broccoli for the V8-drinkers out there; maybe even beans (might be hard to find “seeds,” since apparently the beans that would grow best in New England, fava beans, aren’t super-common in the United States) and/or soybeans. I’d prefer to keep any necessary recipes simple at this point–all the different potential applications of soybeans could probably be a PR in and of itself–but at least some basic things like processing oats into flour and/or oatmeal would naturally be included.