GithubHelp home page GithubHelp logo

Comments (3)

edrude avatar edrude commented on June 18, 2024

I think this suggestion might make the math work out for starfruit, but I may not be understanding how complicated the in-game growth calculations are. Not sure if the following is accurate, but it is making me questions some of the assumptions I made.

https://www.reddit.com/r/StardewValley/comments/49s736/the_math_and_pseudocode_behind_speed_gro_and/

from stardew-profits.

edrude avatar edrude commented on June 18, 2024

I found this in the stardew 1.11 code

float speedIncrease = (this.fertilizer == 465) ? 0.1f : ((this.fertilizer == 466) ? 0.25f : 0f);
if (who.professions.Contains(5))
{
speedIncrease += 0.1f;
}
int daysToRemove = (int)Math.Ceiling((double)((float)totalDaysOfCropGrowth * speedIncrease));

You'll find the excerpt I copied on line 214 of https://github.com/sndcode/stardewvalleycode/blob/master/Stardew%20Valley/TerrainFeatures/HoeDirt.cs

To me this suggests that the phases aren't as important like the reddit post says. I think it's just summing the days and calculating time to grow based on that. At least this makes it clear that they are using ceiling instead of floor.

from stardew-profits.

edrude avatar edrude commented on June 18, 2024

So, after finishing out the month I have 3 harvests on the starfruit. It's 9 days per harvest. I didn't take into account that we start on day 1, not day 0. Looks like I must not be understanding what is happening in the Stardew code. What I'm seeing on the site does reflect what I saw in game so I am closing this issue.

from stardew-profits.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.