WorldMgr: Difference between revisions
Jump to navigation
Jump to search
→Blood Moon
imported>Leoetlino |
imported>Leoetlino |
||
Line 66: | Line 66: | ||
* Update [[#Lord of the Mountain]] flags. | * Update [[#Lord of the Mountain]] flags. | ||
=== Blood Moon === | === "New day" checks === | ||
The following actions happen every time the timer reaches 360.0 (midnight). | |||
WM_NumberOfDays is incremented. | |||
'''If a Blood Moon is scheduled''' (WM_BloodyDay is true): | |||
*If Blood Moons are prohibited (see conditions below), set the Blood Moon timer to 2880.0. | |||
*If they are allowed to happen, call [https://eventviewer.zeldamods.org/viewer.html?data=/d/Demo011_0.json¶ms=1 Demo011_0] and set the Blood Moon timer to 0.0. | |||
'''Scheduling new Blood Moons''': | |||
*If the FirstTouchdown flag is set (i.e. if the player has left the Great Plateau), and if the Blood Moon timer is > 2520.0 (7 in-game days): | |||
**WM_BloodyDay is set to true, which means that a Blood Moon is scheduled for the next night. | |||
**The Blood Moon timer is reset to 0.0. | |||
* Otherwise, the "Bloody end reserve timer" is set to 150. This ensures that the WM_BloodyDay flag is cleared 5 in-game minutes (= 5 seconds in real life) after a Blood Moon occurs. | |||
=== Day/night time flag === | === Day/night time flag === |