Changes
Jump to navigation
Jump to search
← Older edit
Modding:Weather data
(view source)
Revision as of 16:44, 14 May 2023
3 bytes removed
,
16:44, 14 May 2023
m
Changed the indent during the weather generation phsudocode section as it was causing some confusion as to what is was referencing
Line 156:
Line 156:
#### If it's not, the rain chance is .183
#### If it's not, the rain chance is .183
#### Else, it's .63
#### Else, it's .63
−
#
## If it is, it uses the following: Check if it's day 1.
+
## If it is, it uses the following: Check if it's day 1.
−
#
### If it's not, the chance is .12 + <samp>Game1::dayOfMonth</samp> * 3/1000
+
### If it's not, the chance is .12 + <samp>Game1::dayOfMonth</samp> * 3/1000
−
#
### If it is, the chance is 0. Which.. is kinda redundant, as the force days take care of this.
+
### If it is, the chance is 0. Which.. is kinda redundant, as the force days take care of this.
# Check to see if a random number is less than the odds. If it is, it follows the following algorithm
# Check to see if a random number is less than the odds. If it is, it follows the following algorithm
## Set <samp>Game1::weatherForTomorrow</samp> to <samp>weather_rain</samp>
## Set <samp>Game1::weatherForTomorrow</samp> to <samp>weather_rain</samp>
Sovietsupporter69
1
edit
Navigation menu
Personal tools
Create account
Log in
Namespaces
Modding
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Recent changes
Admin noticeboard
Help Editing
Random page
Official Links
Official Site
Official Forums
Official Merchandise
Discord
Reddit
Tools
Upload file
Special pages
Printable version