Изменения

Перейти к навигации Перейти к поиску
Нет описания правки
Строка 2: Строка 2:  
{{Переведите}}
 
{{Переведите}}
   −
This page documents how the game generates [[weather]] in the game.
+
Данная страница документирует генерацию внутриигровой [[Погода|погоды]].
    
==Данные==
 
==Данные==
The weather is controlled by the integer field <samp>Game1::weatherForTomorrow</samp>. The possible values are:
+
Погода управляется целым числом <samp>Game1::weatherForTomorrow</samp>. Возможные значения погоды:
    
{|class="wikitable"
 
{|class="wikitable"
Строка 15: Строка 15:  
| 0
 
| 0
 
| <samp>weather_sunny</samp>
 
| <samp>weather_sunny</samp>
| sunny
+
| Солнечно
 
|-
 
|-
 
| 1
 
| 1
 
| <samp>weather_rain</samp>
 
| <samp>weather_rain</samp>
| rain
+
| Дождь
 
|-
 
|-
 
| 2
 
| 2
 
| <samp>weather_debris</samp>
 
| <samp>weather_debris</samp>
| windy
+
| Ветер
 
|-
 
|-
 
| 3
 
| 3
 
| <samp>weather_lightning</samp>
 
| <samp>weather_lightning</samp>
| lightning
+
| Гроза
 
|-
 
|-
 
| 4
 
| 4
 
| <samp>weather_festival</samp>
 
| <samp>weather_festival</samp>
| festival
+
| Фестиваль
 
|-
 
|-
 
| 5
 
| 5
 
| <samp>weather_snow</samp>
 
| <samp>weather_snow</samp>
| snow
+
| Снегопад
 
|-
 
|-
 
| 6
 
| 6
 
| <samp>weather_wedding</samp>
 
| <samp>weather_wedding</samp>
| wedding
+
| Свадьба
 
|}
 
|}
    
==Алгоритм==
 
==Алгоритм==
===Forced weather===
+
===Фиксированная погода===
Certain dates always have the same weather:
+
На определённые даты погода уже предопределена:
    
{|class="wikitable"
 
{|class="wikitable"
 
|-
 
|-
! date
+
! дата
! weather
+
! погода
! overridden by
+
! переопределено
 
|-
 
|-
| spring 1
+
| весна 1
 
| <samp>weather_sunny</samp>
 
| <samp>weather_sunny</samp>
 
| <samp>newday</samp> and <samp>tv</samp>
 
| <samp>newday</samp> and <samp>tv</samp>
 
|-
 
|-
| spring 2 (year 1)
+
| весна 2 (год 1)
 
| <samp>weather_sunny</samp>
 
| <samp>weather_sunny</samp>
 
| <samp>newday</samp>
 
| <samp>newday</samp>
 
|-
 
|-
| spring 3 (year 1)
+
| весна 3 (год 1)
 
| <samp>weather_rain</samp>
 
| <samp>weather_rain</samp>
 
| <samp>newday</samp>
 
| <samp>newday</samp>
 
|-
 
|-
| spring 4 (year 1)
+
| весна 4 (год 1)
 
| <samp>weather_sunny</samp>
 
| <samp>weather_sunny</samp>
 
| <samp>newday</samp>
 
| <samp>newday</samp>
 
|-
 
|-
| spring 13
+
| весна 13
 
| <samp>weather_festival</samp>
 
| <samp>weather_festival</samp>
 
| <samp>newday</samp>
 
| <samp>newday</samp>
 
|-
 
|-
| spring 24
+
| весна 24
 
| <samp>weather_festival</samp>
 
| <samp>weather_festival</samp>
 
| <samp>newday</samp>
 
| <samp>newday</samp>
 
|-
 
|-
| summer 1
+
| лето 1
 
| <samp>weather_sunny</samp>
 
| <samp>weather_sunny</samp>
 
| <samp>newday</samp> and <samp>tv</samp>
 
| <samp>newday</samp> and <samp>tv</samp>
 
|-
 
|-
| summer 11
+
| лето 11
 
| <samp>weather_festival</samp>
 
| <samp>weather_festival</samp>
 
| <samp>newday</samp>
 
| <samp>newday</samp>
 
|-
 
|-
| summer 13
+
| лето 13
 
| <samp>weather_lightning</samp>
 
| <samp>weather_lightning</samp>
 
| <samp>newday</samp>
 
| <samp>newday</samp>
 
|-
 
|-
| summer 26
+
| лето 26
 
| <samp>weather_lightning</samp>
 
| <samp>weather_lightning</samp>
 
| <samp>newday</samp>
 
| <samp>newday</samp>
 
|-
 
|-
| summer 28
+
| лето 28
 
| <samp>weather_festival</samp>
 
| <samp>weather_festival</samp>
 
| <samp>newday</samp>
 
| <samp>newday</samp>
 
|-
 
|-
| fall 1
+
| осень 1
 
| <samp>weather_sunny</samp>
 
| <samp>weather_sunny</samp>
 
| <samp>newday</samp> and <samp>tv</samp>
 
| <samp>newday</samp> and <samp>tv</samp>
 
|-
 
|-
| fall 16
+
| осень 16
 
| <samp>weather_festival</samp>
 
| <samp>weather_festival</samp>
 
| <samp>newday</samp>
 
| <samp>newday</samp>
 
|-
 
|-
| fall 27
+
| осень 27
 
| <samp>weather_festival</samp>
 
| <samp>weather_festival</samp>
 
| <samp>newday</samp>
 
| <samp>newday</samp>
 
|-
 
|-
| winter 1
+
| зима 1
 
| <samp>weather_sunny</samp>
 
| <samp>weather_sunny</samp>
 
| <samp>newday</samp> and <samp>tv</samp>
 
| <samp>newday</samp> and <samp>tv</samp>
 
|-
 
|-
| winter 8
+
| зима 8
 
| <samp>weather_festival</samp>
 
| <samp>weather_festival</samp>
 
| <samp>newday</samp>
 
| <samp>newday</samp>
 
|-
 
|-
| winter 14
+
| зима 14
 
| <samp>weather_sunny</samp>
 
| <samp>weather_sunny</samp>
 
| <samp>newday</samp>
 
| <samp>newday</samp>
 
|-
 
|-
| winter 15
+
| зима 15
 
| <samp>weather_sunny</samp>
 
| <samp>weather_sunny</samp>
 
| <samp>newday</samp>
 
| <samp>newday</samp>
 
|-
 
|-
| winter 16
+
| зима 16
| <samp>weather_sunny</samp>
+
| <samp
 +
 
 +
>weather_sunny</samp>
 
| <samp>newday</samp>
 
| <samp>newday</samp>
 
|-
 
|-
| winter 25
+
| зима 25
 
| <samp>weather_festival</samp>
 
| <samp>weather_festival</samp>
 
| <samp>newday</samp>
 
| <samp>newday</samp>
 
|}
 
|}
   −
===Generated weather===
+
===Генерируемая погода===
 
Weather in Stardew Valley is set within the <samp>Game1::newDayAfterFade()</samp> function (after the day change code, but before SMAPI's <samp>SaveEvents.BeforeSave</samp> event).
 
Weather in Stardew Valley is set within the <samp>Game1::newDayAfterFade()</samp> function (after the day change code, but before SMAPI's <samp>SaveEvents.BeforeSave</samp> event).
   Строка 181: Строка 183:  
At this point, the main function is done setting weather.
 
At this point, the main function is done setting weather.
   −
===TV Channel===
+
===Телевидение===
The TV checks the weather, but will occasionally set it on certain days. It follows the following chart:
+
Телевизор проверяет погоду, но иногда устанавливает ее в определенные дни. It follows the following chart:
    
The TV force sets by:
 
The TV force sets by:
Строка 209: Строка 211:  
<small>¹ Also set (and thus overridden) by the <samp>Game1::newDayAfterFade()</samp> method.</small><br />
 
<small>¹ Also set (and thus overridden) by the <samp>Game1::newDayAfterFade()</samp> method.</small><br />
   −
The TV will check the weather and show the following message:
+
Телевизор проверит погоду и покажет соответствующее описание:
    
{|class="wikitable"
 
{|class="wikitable"
 
|-
 
|-
! weather
+
! погода
! message
+
! описание
 
|-
 
|-
| sunny or wedding
+
| солнечно или день свадьбы
 
| 50% chance each:
 
| 50% chance each:
* "It's going to be clear and sunny all day."
+
* "Завтра весь день будет ясно и солнечно."
* "It's going to be a beautiful, sunny day tommorow!"
+
* "Завтра будет прекрасный солнечный день!"
 
|-
 
|-
| rain
+
| дождь
| "It's going to rain all day tomorrow"
+
| "Завтра весь день будет идти дождь."
 
|-
 
|-
| debris
+
| ветер
| Per conditions:
+
| В соответствии:
# If spring: "Partially cloudy with a light breeze. Expect lots of pollen!"
+
# Весна: "Переменная облачность с лёгким ветерком. В воздухе будет много пыльцы!"
# If not fall: "It's going to snow all day. Make sure you bundle up, folks!" and defaults with: "It's going to be cloudy, with gusts of wind throught the day."
+
# Осень: "Завтра будет облачно, с порывами ветра на протяжении всего дня."
# If storm: "Looks like a storm is approaching. Thunder and lightning is expected."
+
# Гроза: "Похоже, приближается буря. Ожидаются гром и молнии."
 
# If festival, it attempts to read the festival data. If it fails, it will say "Um... that's odd. My information sheet just says 'null'. This is embarrassing..." If it succeeds, it will read out where it is and when it is.
 
# If festival, it attempts to read the festival data. If it fails, it will say "Um... that's odd. My information sheet just says 'null'. This is embarrassing..." If it succeeds, it will read out where it is and when it is.
# If snow, a 50% chance of one of two strings: "Expect a few inches of snow tomorrow" or "Bundle up, folks. It's going to snow tomorrow!"
+
# Снегопад: "Завтра ожидается пара дюймов снега." или "Одевайтесь потеплее, ребята, завтра будет снег!" или "Завтра весь день будет идти снег. Одевайтесь потеплее, ребята!"
 
|-
 
|-
 
| ''any other''
 
| ''any other''
Строка 274: Строка 276:  
* Winter: never rains.
 
* Winter: never rains.
   −
===Debris===
+
===Ветер===
 
Debris weather covers weather variable 2.
 
Debris weather covers weather variable 2.
   −
* Spring: there's a 20% chance of this after rain, so approximately 16.6% chance of debris weather.
+
* Весна: после дождя шанс 20%, поэтому приблизительный шанс 16.6%.
* Summer: no debris weather.
+
* Лето: не бывает ветра.
* Fall: there's a 60% chance for this after rain, so approximately 49.8% chance of debris weather.
+
* Осень: после дождя шанс 60%, поэтому приблизительный шанс 49.8%.
* Winter: no debris weather.
+
* Зима: не бывает ветра.
   −
===Stormy===
+
===Гроза===
 
Stormy weather covers weather variable 3.
 
Stormy weather covers weather variable 3.
   −
* Spring: 4.57% chance of storms.
+
* Весна: 4.57% шанс грозы.
* Summer: variable chance of storms; starts at 10.71% and increases to 17.085%.
+
* Лето: переменный шанс грозы; начиная от 10.71% и до 17.085%.
* Fall: 4.57% chance of storms.
+
* Осень: 4.57% шанс грозы.
* Winter: no stormy weather.
+
* Зима: не бывает грозы.
   −
===Snowy===
+
===Снегопад===
In winter, there's a 63% chance of snow. No other season has snow.
+
Зимой шанс выпадения снега 63%. Снегопад может пойти только зимой.
    
==Сохранения==
 
==Сохранения==

Навигация