This wiki is a read-only version of the Stardew Valley Wiki. The official editable wiki maintained by ConcernedApe can be found at stardewvalleywiki.com

Alterações

Ir para: navegação, pesquisa

Modificações:Dados climáticos

134 bytes adicionados, 08h36min de 28 de janeiro de 2019
sem sumário de edição
← [[Modificações:Índice|Índice]]
{{Traduzir}}
This page documents how the game generates Esta página documenta como é gerado o [[clima]] in the gamedentro do jogo.
==DataDados==The weather is controlled by the integer field O clima é controlado integralmente pelo campo <tt>Game1::weatherForTomorrow</tt>. The possible values areOs possível valores são:
{| class="wikitable"
|-
! valuevalor! constantconstante! weatherclima
|-
| 0
| <tt>weather_sunny</tt>
| sunnyEnsolarado
|-
| 1
| <tt>weather_rain</tt>
| rainChovendo
|-
| 2
| <tt>weather_debris</tt>
| windyVentando
|-
| 3
| <tt>weather_lightning</tt>
| lightningTempestade
|-
| 4
| <tt>weather_festival</tt>
| festivalFestival
|-
| 5
| <tt>weather_snow</tt>
| snowNeve
|-
| 6
| <tt>weather_wedding</tt>
| weddingCasamento
|}
==AlgorithmAlgoritmo=====Forced weatherClima fixo===Certain dates always have the same weatherCertas dadas possuem sempre o mesmo clima:
{| class="wikitable"
|-
! datedata! weatherclima! overridden bysobrescrito por
|-
| spring primavera 1
| <tt>weather_sunny</tt>
| <tt>newday</tt> and e <tt>tv</tt>
|-
| spring primevera 2 (year ano 1)
| <tt>weather_sunny</tt>
| <tt>newday</tt>
|-
| spring primavera 3 (year ano 1)
| <tt>weather_rain</tt>
| <tt>newday</tt>
|-
| spring primavera 4 (year ano 1)
| <tt>weather_sunny</tt>
| <tt>newday</tt>
|-
| spring primavera 13
| <tt>weather_festival</tt>
| <tt>newday</tt>
|-
| spring primavera 24
| <tt>weather_festival</tt>
| <tt>newday</tt>
|-
| summer verão 1
| <tt>weather_sunny</tt>
| <tt>newday</tt> and <tt>tv</tt>
|-
| summer verão 11
| <tt>weather_festival</tt>
| <tt>newday</tt>
|-
| summer verão 13
| <tt>weather_lightning</tt>
| <tt>newday</tt>
|-
| summer verão 26
| <tt>weather_lightning</tt>
| <tt>newday</tt>
|-
| summer verão 28
| <tt>weather_festival</tt>
| <tt>newday</tt>
|-
| fall outono 1
| <tt>weather_sunny</tt>
| <tt>newday</tt> and <tt>tv</tt>
|-
| fall outono 16
| <tt>weather_festival</tt>
| <tt>newday</tt>
|-
| fall outono 27
| <tt>weather_festival</tt>
| <tt>newday</tt>
|-
| winter inverno 1
| <tt>weather_sunny</tt>
| <tt>newday</tt> and <tt>tv</tt>
|-
| winter inverno 8
| <tt>weather_festival</tt>
| <tt>newday</tt>
|-
| winter inverno 14
| <tt>weather_sunny</tt>
| <tt>newday</tt>
|-
| winter inverno 15
| <tt>weather_sunny</tt>
| <tt>newday</tt>
|-
| winter inverno 16
| <tt>weather_sunny</tt>
| <tt>newday</tt>
|-
| winter inverno 25
| <tt>weather_festival</tt>
| <tt>newday</tt>
|}
===Generated weatherGeração do clima===Weather in O clima em Stardew Valley is set within the é definido dentro da função <tt>Game1::newDayAfterFade()</tt> function (after the day change codeapós o código de mudança de dia, but before mas antes do evento do SMAPI's <tt>SaveEvents.BeforeSave</tt> event).
The game follows these steps to decide which weather and debris to set for the next dayO jogo segue estes passos para decidir que clima e detritos serão definidos para o dia seguinte:
# Check for Verifique o [[#Forced weather|forced weatherclima fixo]].# If today is a Se hoje é um festival, set the weather to define o clima como <tt>weather_festival</tt>.# If today is a weddingSe hoje é um casamento, set the weather to define o clima como <tt>weather_wedding</tt>.# Set Define <tt>Game1::wasRainingYesterday</tt> based on whether it was raining or stormingcom base em se havia chuva ou tempestade.# Reset all weather flags, and sets them in the following patternRedefine todos os sinalizadores de tempo e os coloca no seguinte padrão## If it is going to rain or stormSe vai haver chuva ou tempestade, set the rain flag to ajusta o sinal de chuva para true## If it is going to stormSe vai haver uma tempestade, set the storm flag to ajusta o sinal de tempestade para true## If the weather is Se o tempo é (sunnyensolarado, debrisdetritos) or ou (festival || snowy || wedding, nevando, casamento), clear all the flagslimpa todos os sinalizadores## and then if it's snowySe estiver negando, set snowy to define nevando para true## It then sets the song based on thisEm seguida, define a música com base nisto## Clear the debris weather array and clear the flagLimpa a matriz meteorológica de detritos e os sinalizadores
## if bloom isn't null, clear it's visibility
## If the wedding is debris, populate the debris array.
157
edições

Menu de navegação