AIDef:Query/WhatMoonName: Difference between revisions
Jump to navigation
Jump to search
no edit summary
imported>Leoetlino (import AI definitions from 1.5.0 (fixed)) |
imported>Leoetlino No edit summary |
||
Line 3: | Line 3: | ||
|type=Query | |type=Query | ||
}} | }} | ||
Returns the moon type: | |||
* 0: Full Moon<ref name="hino">[https://eventviewer.zeldamods.org/viewer.html?data=/d/Npc_SouthHateru007.json¶ms=1&entry=Moon Hino's event flow]</ref> or Blood Moon<ref>wm::TimeMgr::getMoonType{{un}} at 0x71010E8290 (Switch 1.5.0)</ref> or [on a Bloody Day after 04:00<ref>0x71010E8234</ref>] (see [[WorldMgr]] for details) | |||
* 1: Waning gibbous | |||
* 2: Third quarter<ref name="hino">[https://eventviewer.zeldamods.org/viewer.html?data=/d/Npc_SouthHateru007.json¶ms=1&entry=Moon Hino's event flow]</ref> | |||
* 3: "26th-day"<ref name="hino"/> | |||
* 4: New moon<ref name="hino"/> | |||
* 5: Waxing crescent<ref name="hino"/> | |||
* 6: "Seven-day"<ref name="hino"/> | |||
* 7: "13-day"<ref name="hino"/> | |||
The moon type is calculated based on the number of in-game days. The exact formula is <code>(numberOfDays + x + 1) % 8</code>, 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 == | == Derived definitions == |