Go to file
Cédric Ronvel 81d6b8568b Fix a mod storage bug 2020-09-06 21:11:23 +02:00
src-textures initial publish 2020-09-02 16:04:41 +02:00
textures initial publish 2020-09-02 16:04:41 +02:00
README.md initial publish 2020-09-02 16:04:41 +02:00
astral.lua Fix a mod storage bug 2020-09-06 21:11:23 +02:00
commands.lua initial publish 2020-09-02 16:04:41 +02:00
init.lua initial publish 2020-09-02 16:04:41 +02:00
mod.conf initial publish 2020-09-02 16:04:41 +02:00
screenshot.png initial publish 2020-09-02 16:04:41 +02:00

README.md

Astral

This mod adds regular moon phases, as well as 9 special natural and surnatural Astral events to discover!

API

  • astral.get_moonth() return moonth, moonth_name This returns the moonth (not month!) number, from 1 to 12, and its user-friendly name.
  • astral.get_moon_phase() return moon_phase, moon_phase_name This returns the moon phase (number, from 0: new moon, to 7: waning crescent moon), and its user-friendly name.
  • astral.get_astral_event() return astral_event, astral_event_name If there is a special astral event in progress, it returns that astral event code, otherwise it returns "none". The second returned argument is the user-friendly name for that event. For 3rd party games, it would allow one to produce some (magical?) effects depending on astral events.