Alterações

Saltar para a navegação Saltar para a pesquisa
sem resumo de edição
Linha 1: Linha 1:  
← [[Modificações:Índice|Índice]]
 
← [[Modificações:Índice|Índice]]
 
{{Traduzir}}
 
{{Traduzir}}
This page documents how the game generates [[clima]] in the game.
+
Esta página documenta como é gerado o [[clima]] dentro do jogo.
   −
==Data==
+
==Dados==
The weather is controlled by the integer field <tt>Game1::weatherForTomorrow</tt>. The possible values are:
+
O clima é controlado integralmente pelo campo <tt>Game1::weatherForTomorrow</tt>. Os possível valores são:
    
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
! value
+
! valor
! constant
+
! constante
! weather
+
! clima
 
|-
 
|-
 
| 0
 
| 0
 
| <tt>weather_sunny</tt>
 
| <tt>weather_sunny</tt>
| sunny
+
| Ensolarado
 
|-
 
|-
 
| 1
 
| 1
 
| <tt>weather_rain</tt>
 
| <tt>weather_rain</tt>
| rain
+
| Chovendo
 
|-
 
|-
 
| 2
 
| 2
 
| <tt>weather_debris</tt>
 
| <tt>weather_debris</tt>
| windy
+
| Ventando
 
|-
 
|-
 
| 3
 
| 3
 
| <tt>weather_lightning</tt>
 
| <tt>weather_lightning</tt>
| lightning
+
| Tempestade
 
|-
 
|-
 
| 4
 
| 4
 
| <tt>weather_festival</tt>
 
| <tt>weather_festival</tt>
| festival
+
| Festival
 
|-
 
|-
 
| 5
 
| 5
 
| <tt>weather_snow</tt>
 
| <tt>weather_snow</tt>
| snow
+
| Neve
 
|-
 
|-
 
| 6
 
| 6
 
| <tt>weather_wedding</tt>
 
| <tt>weather_wedding</tt>
| wedding
+
| Casamento
 
|}
 
|}
   −
==Algorithm==
+
==Algoritmo==
===Forced weather===
+
===Clima fixo===
Certain dates always have the same weather:
+
Certas dadas possuem sempre o mesmo clima:
    
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
! date
+
! data
! weather
+
! clima
! overridden by
+
! sobrescrito por
 
|-
 
|-
| spring 1
+
| primavera 1
 
| <tt>weather_sunny</tt>
 
| <tt>weather_sunny</tt>
| <tt>newday</tt> and <tt>tv</tt>
+
| <tt>newday</tt> e <tt>tv</tt>
 
|-
 
|-
| spring 2 (year 1)
+
| primevera 2 (ano 1)
 
| <tt>weather_sunny</tt>
 
| <tt>weather_sunny</tt>
 
| <tt>newday</tt>
 
| <tt>newday</tt>
 
|-
 
|-
| spring 3 (year 1)
+
| primavera 3 (ano 1)
 
| <tt>weather_rain</tt>
 
| <tt>weather_rain</tt>
 
| <tt>newday</tt>
 
| <tt>newday</tt>
 
|-
 
|-
| spring 4 (year 1)
+
| primavera 4 (ano 1)
 
| <tt>weather_sunny</tt>
 
| <tt>weather_sunny</tt>
 
| <tt>newday</tt>
 
| <tt>newday</tt>
 
|-
 
|-
| spring 13
+
| primavera 13
 
| <tt>weather_festival</tt>
 
| <tt>weather_festival</tt>
 
| <tt>newday</tt>
 
| <tt>newday</tt>
 
|-
 
|-
| spring 24
+
| primavera 24
 
| <tt>weather_festival</tt>
 
| <tt>weather_festival</tt>
 
| <tt>newday</tt>
 
| <tt>newday</tt>
 
|-
 
|-
| summer 1
+
| verão 1
 
| <tt>weather_sunny</tt>
 
| <tt>weather_sunny</tt>
 
| <tt>newday</tt> and <tt>tv</tt>
 
| <tt>newday</tt> and <tt>tv</tt>
 
|-
 
|-
| summer 11
+
| verão 11
 
| <tt>weather_festival</tt>
 
| <tt>weather_festival</tt>
 
| <tt>newday</tt>
 
| <tt>newday</tt>
 
|-
 
|-
| summer 13
+
| verão 13
 
| <tt>weather_lightning</tt>
 
| <tt>weather_lightning</tt>
 
| <tt>newday</tt>
 
| <tt>newday</tt>
 
|-
 
|-
| summer 26
+
| verão 26
 
| <tt>weather_lightning</tt>
 
| <tt>weather_lightning</tt>
 
| <tt>newday</tt>
 
| <tt>newday</tt>
 
|-
 
|-
| summer 28
+
| verão 28
 
| <tt>weather_festival</tt>
 
| <tt>weather_festival</tt>
 
| <tt>newday</tt>
 
| <tt>newday</tt>
 
|-
 
|-
| fall 1
+
| outono 1
 
| <tt>weather_sunny</tt>
 
| <tt>weather_sunny</tt>
 
| <tt>newday</tt> and <tt>tv</tt>
 
| <tt>newday</tt> and <tt>tv</tt>
 
|-
 
|-
| fall 16
+
| outono 16
 
| <tt>weather_festival</tt>
 
| <tt>weather_festival</tt>
 
| <tt>newday</tt>
 
| <tt>newday</tt>
 
|-
 
|-
| fall 27
+
| outono 27
 
| <tt>weather_festival</tt>
 
| <tt>weather_festival</tt>
 
| <tt>newday</tt>
 
| <tt>newday</tt>
 
|-
 
|-
| winter 1
+
| inverno 1
 
| <tt>weather_sunny</tt>
 
| <tt>weather_sunny</tt>
 
| <tt>newday</tt> and <tt>tv</tt>
 
| <tt>newday</tt> and <tt>tv</tt>
 
|-
 
|-
| winter 8
+
| inverno 8
 
| <tt>weather_festival</tt>
 
| <tt>weather_festival</tt>
 
| <tt>newday</tt>
 
| <tt>newday</tt>
 
|-
 
|-
| winter 14
+
| inverno 14
 
| <tt>weather_sunny</tt>
 
| <tt>weather_sunny</tt>
 
| <tt>newday</tt>
 
| <tt>newday</tt>
 
|-
 
|-
| winter 15
+
| inverno 15
 
| <tt>weather_sunny</tt>
 
| <tt>weather_sunny</tt>
 
| <tt>newday</tt>
 
| <tt>newday</tt>
 
|-
 
|-
| winter 16
+
| inverno 16
 
| <tt>weather_sunny</tt>
 
| <tt>weather_sunny</tt>
 
| <tt>newday</tt>
 
| <tt>newday</tt>
 
|-
 
|-
| winter 25
+
| inverno 25
 
| <tt>weather_festival</tt>
 
| <tt>weather_festival</tt>
 
| <tt>newday</tt>
 
| <tt>newday</tt>
 
|}
 
|}
   −
===Generated weather===
+
===Geração do clima===
Weather in Stardew Valley is set within the <tt>Game1::newDayAfterFade()</tt> function (after the day change code, but before SMAPI's <tt>SaveEvents.BeforeSave</tt> event).
+
O clima em Stardew Valley é definido dentro da função <tt>Game1::newDayAfterFade()</tt> (após o código de mudança de dia, mas antes do evento do SMAPI <tt>SaveEvents.BeforeSave</tt>).
   −
The game follows these steps to decide which weather and debris to set for the next day:
+
O jogo segue estes passos para decidir que clima e detritos serão definidos para o dia seguinte:
   −
# Check for [[#Forced weather|forced weather]].
+
# Verifique o [[#Forced weather|clima fixo]].
# If today is a festival, set the weather to <tt>weather_festival</tt>.
+
# Se hoje é um festival, define o clima como <tt>weather_festival</tt>.
# If today is a wedding, set the weather to <tt>weather_wedding</tt>.
+
# Se hoje é um casamento, define o clima como <tt>weather_wedding</tt>.
# Set <tt>Game1::wasRainingYesterday</tt> based on whether it was raining or storming.
+
# Define <tt>Game1::wasRainingYesterday</tt> com base em se havia chuva ou tempestade.
# Reset all weather flags, and sets them in the following pattern
+
# Redefine todos os sinalizadores de tempo e os coloca no seguinte padrão
## If it is going to rain or storm, set the rain flag to true
+
## Se vai haver chuva ou tempestade, ajusta o sinal de chuva para true
## If it is going to storm, set the storm flag to true
+
## Se vai haver uma tempestade, ajusta o sinal de tempestade para true
## If the weather is (sunny, debris) or (festival || snowy || wedding), clear all the flags
+
## Se o tempo é (ensolarado, detritos) ou (festival, nevando, casamento), limpa todos os sinalizadores
## and then if it's snowy, set snowy to true
+
## Se estiver negando, define nevando para true
## It then sets the song based on this
+
## Em seguida, define a música com base nisto
## Clear the debris weather array and clear the flag
+
## Limpa a matriz meteorológica de detritos e os sinalizadores
 
## if bloom isn't null, clear it's visibility
 
## if bloom isn't null, clear it's visibility
 
## If the wedding is debris, populate the debris array.
 
## If the wedding is debris, populate the debris array.
143

edições

Menu de navegação