Class: StatusEffectsMetadata

StatusEffectsMetadata()

This class provides a cache for accessing status effects metadata stored in JSON files. This class must be initialised before using, as initialising it directly in globalscripts would introduce disk I/O every time e.g. a GUI page is loaded.

Constructor

new StatusEffectsMetadata()

Source:

Methods

getData(code) → {Object}

Parameters:
Name Type Description
code string The code of the Status Effect.
Source:
Returns:
- The JSON data corresponding to the code.
Type
Object