WorldMgr: Difference between revisions

no edit summary
imported>Leoetlino
imported>Leoetlino
No edit summary
Line 176: Line 176:
|}
|}
Note: all intervals include the start time and exclude the end time.
Note: all intervals include the start time and exclude the end time.
=== Moon type ===
The moon type is calculated based on the number of in-game days (WM_NumberOfDays). The exact formula is <code>(numberOfDays + x + 1) % 8</code><ref>0x71010E8200</ref>, where x is equal to 1 if the current time is > 180.0 (noon) and % is the modulo operator.
If a moon type was set manually (for instance using [[AIDef:Action/EventSetMoonType]]), that value will be used as the moon type.


=== Lord of the Mountain ===
=== Lord of the Mountain ===
Anonymous user