landsandboat/scripts/enum/magian_element.lua
claywar fe43f00f92
[magian] Add support for day/weather condition to trials
* Add optional parameter to getWeather in CLuaBaseEntity to ignore scholar effects
* Remove unnecessary global exceptions in lua CI

Add support for multiple elements to support light or darkness trials

Add appropriate dayWeather groups and use those to support trial messages

Add mobSuperFamily condition

Return true if no dayWeather condition is set in a trial

Add Trial 82 for example usage of dayWeather and mobSuperFamily condition

Fix incorrect change for WS listener

Move magianElement to enum to correct load order
2023-09-19 11:31:23 -04:00

19 lines
456 B
Lua

xi = xi or {}
-- NOTE: These values align with the optParam in the event update for a trial, and are the
-- only groupings supported by the message. These enum is to be used in the dayWeather
-- condition for trial data.
xi.magianElement =
{
FIRE = 0,
ICE = 1,
WIND = 2,
EARTH = 3,
THUNDER = 4,
WATER = 5,
LIGHT = 6,
DARK = 7,
ANY_LIGHT = 8,
ANY_DARK = 9,
ANY = 10,
}