Add some constants to the API

This commit is contained in:
GriffinR
2024-01-03 16:34:55 -05:00
parent eecdd8c331
commit d2a0d9299f
3 changed files with 33 additions and 8 deletions

View File

@@ -2082,6 +2082,14 @@ All constants are accessible via the global ``constants`` object.
The maximum number of metatiles in a secondary tileset.
.. js:attribute:: constants.num_primary_palettes
The number of palettes in a primary tileset.
.. js:attribute:: constants.num_secondary_palettes
The number of palettes in a secondary tileset.
.. js:attribute:: constants.layers_per_metatile
The number of tile layers used in each metatile. This will either be ``2`` or ``3``, depending on the config setting ``enable_triple_layer_metatiles``.
@@ -2090,6 +2098,10 @@ All constants are accessible via the global ``constants`` object.
The number of tiles in each metatile. This will either be ``8`` or ``12``, depending on the config setting ``enable_triple_layer_metatiles``.
.. js:attribute:: constants.metatile_behaviors
An object mapping metatile behavior names to their values. For example, ``constants.metatile_behaviors["MB_TALL_GRASS"]`` would normally be ``2``.
.. js:attribute:: constants.base_game_version
The string value of the config setting ``base_game_version``. This will either be ``pokeruby``, ``pokefirered``, or ``pokeemerald``.