Changes

Jump to navigation Jump to search
1,088 bytes added ,  20:48, 22 May 2022
→‎Game speed: re: from decompiled code
Line 59: Line 59:  
==Game speed==
 
==Game speed==
 
Hey there, I noticed in an [https://stardewvalleywiki.com/mediawiki/index.php?title=Day_Cycle&diff=133175&oldid=133132 edit to the day page] you changed the length of a day from 14:20 min (860sec) as it said previously to 14:00 (840s) and the corresponding rate of time to 0.716s to exactly 0.700s. You did point out in the edit summary that this was more accurate, so I'll take your word about that until I can set aside some time to test, but I just wanted to confirm that this was intentional because most other sources I've seen have said "about 0.7" and not exactly 0.700. Thanks in advance! [[User:Techhead7890|Techhead7890]] ([[User talk:Techhead7890|talk]]) 19:58, 22 May 2022 (UTC)
 
Hey there, I noticed in an [https://stardewvalleywiki.com/mediawiki/index.php?title=Day_Cycle&diff=133175&oldid=133132 edit to the day page] you changed the length of a day from 14:20 min (860sec) as it said previously to 14:00 (840s) and the corresponding rate of time to 0.716s to exactly 0.700s. You did point out in the edit summary that this was more accurate, so I'll take your word about that until I can set aside some time to test, but I just wanted to confirm that this was intentional because most other sources I've seen have said "about 0.7" and not exactly 0.700. Thanks in advance! [[User:Techhead7890|Techhead7890]] ([[User talk:Techhead7890|talk]]) 19:58, 22 May 2022 (UTC)
 +
 +
: Hi! The online info is mostly based on players experimenting in-game, which can be imprecise. The edit is based on the [[Modding:Modder Guide/Get Started#How do I decompile the game code?|decompiled game code]] instead, in particular these <samp>Game1</samp> constants used in the time code:
 +
: <syntaxhighlight lang="c#">
 +
public const int realMilliSecondsPerGameMinute = 700;
 +
public const int realMilliSecondsPerGameTenMinutes = realMilliSecondsPerGameMinute * 10;
 +
</syntaxhighlight>
 +
: and this <samp>MineShaft</samp> method for the Skull Cavern adjustment (the Skull Cavern is mine area 121, and despite the name this is the extra milliseconds per in-game ''ten minutes''):
 +
: <syntaxhighlight lang="c#">
 +
public override int getExtraMillisecondsPerInGameMinuteForThisLocation()
 +
{
 +
    if (Game1.IsMultiplayer)
 +
        return base.getExtraMillisecondsPerInGameMinuteForThisLocation();
 +
    if (this.getMineArea() != 121)
 +
        return 0;
 +
    return 2000;
 +
}
 +
</syntaxhighlight>
 +
: —<small>[[User:Pathoschild|Pathoschild]] ([[User talk:Pathoschild|talk]]) 20:48, 22 May 2022 (UTC)</small>
translators
8,403

edits

Navigation menu