Skip to content

Timespans

Timespans can be used to change things based on the time of day.

The definition follows the following scheme

An Timespan definition object
  • type: One of the timespan definition types defined below
  • Additional fields depending on the value of type, see the respective timespan type documentation for more details.

Supported Types

Simple (catharsis:simple)

A timespan with a fixed start and end.

Example

A simple timespan that only matches nighttime.

json
{
  "type": "simple",
  "begin": 0,
  "end": 12000
}
Root simple object
  • type: catharsis:simple
  • begin: The starting point of the timespan in ticks, relative to the day.
  • end: The ending point of the timespan in ticks, relative to the day.

Included Timespans

  • catharsis:is_day
  • catharsis:is_night