Changes

Line 254: Line 254:     
:Do you happen to know when this changed? If I remember correctly, the growth discount used to be capped by the number of growth stages (sans the final day), so the maximum anything could have been reduced by was 5. But that's good that it works this way now. It makes sense for some of the longer growing craps. --[[User:Eienshi09|Eienshi09]] 14:26, 25 April 2018 (PST)
 
:Do you happen to know when this changed? If I remember correctly, the growth discount used to be capped by the number of growth stages (sans the final day), so the maximum anything could have been reduced by was 5. But that's good that it works this way now. It makes sense for some of the longer growing craps. --[[User:Eienshi09|Eienshi09]] 14:26, 25 April 2018 (PST)
 +
 +
== Speed-Gro Glitch ==
 +
 +
Apart from [[#Speed-Gro Mechanics|Speed-Gro Mechanics]], there's another bug in ConcernedApe's codes. When he calculates the days to be removed, he doesn't consider the situation where days of the stage is less than 0 day.
 +
 +
Let's take grape as an example. The stage of grape is <code>{1, 1, 2, 3 ,3}</code> in the <tt>crops.xnb</tt>. When we have Hyper Speed-Gro and Agriculturist at the same time, the speed increase should be 0.43. 0.43 * (1+1+2+3+3) = 4.3 ≈ 5. Therefore, 5 days should be removed from the grapes' growth stage. It should take 5 days to grow and can be harvested on the 6th day. The following is the normal process:
 +
 +
<code>{1, 1, 2, 3 ,3}</code> --step 1-->
 +
<code>{1, 0, 2, 3 ,3}</code> --step 2-->
 +
 +
<code>{1, 0, 1, 3 ,3}</code> --step 3-->
 +
<code>{1, 0, 1, 2 ,3}</code> --step 4-->
 +
 +
<code>{1, 0, 1, 2 ,2}</code> --step 5-->
 +
<code>{1, 0, 0, 2 ,2}</code>
 +
 +
While in the code and game, the actual process is:
 +
 +
... --step 4--> 
 +
 +
<code>{1, 0, 1, 2 ,2}</code> --step 5-->
 +
<code>{1, -1, 1, 2 ,2}</code>
 +
 +
Therefore, the grapes take 1 + 0 + 1 + 2 + 2 = 6 days to grow, and can be harvested on the 7th day. I have tested this in the game, and it actually takes 6 days to grow.
 +
 +
The growth calendar of grapes is now correct. The purpose of editing this topic is to explain how this happened. [[User:Horizon98|Horizon98]] ([[User talk:Horizon98|talk]]) 16:38, 20 April 2021 (UTC)
1,078

edits