AIDef:Query/WhatMoonName
Jump to navigation
Jump to search
AI definition | |
---|---|
Type | Query |
Returns the moon type:
- 0: Full Moon[1] or Blood Moon[2] or [on a Bloody Day after 04:00[3]] (see WorldMgr for details)
- 1: Waning gibbous
- 2: Third quarter[1]
- 3: "26th-day"[1]
- 4: New moon[1]
- 5: Waxing crescent[1]
- 6: "Seven-day"[1]
- 7: "13-day"[1]
The moon type is calculated based on the number of in-game days. The exact formula is (numberOfDays + x + 1) % 8
, 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.
Derived definitions
WhatMoonName (EventSystemActor)
No overridden parameters.