Module:Game/doc: Difference between revisions

From Path of Exile 2 Wiki
Jump to navigation Jump to search
(exported data table)
Line 147: Line 147:
| game.constants.item.gem_tags
| game.constants.item.gem_tags
| [[Gem tags]]
| [[Gem tags]]
| <code>id</code><br>Numerical id.
| <code>id</code><br>Internal numerical id + 1.
<code>tag</code><br>Gem tag name.
<code>tag</code><br>Gem tag name.
| [[Module:Game/gem_tags|gem_tags]]
| [[Module:Game/gem_tags|gem_tags]]

Revision as of 10:21, 11 December 2025

This subpage provides documentation for Module:Game.

This is a meta module.

This module is meant to be used only by other modules. It should not be invoked in wikitext.

Overview

This module holds some constants and functions related to path of exile in general.

Stucture

The module has the following structure

game.constants General game constants, such as the attributes or classes
game.constants.item item constants
game.constants.mod Mod constants

Data

Table Id Description Available keys Extra keys
full long_upper long_lower short_upper short_lower
game.constants.characters Character No No No No No
  • id - internal id
game.constants.ascendancy Ascendancy class No No No No No
  • id - internal id
  • character - character id
game.constants.attributes Attributes No Yes Yes Yes Yes
game.constants.damage_types Damage type No No No Yes Yes
game.constants.difficulties Difficulties Yes Yes Yes No No
  • resistances - resist cap
  • minimum_level - minimum required level to enter
  • label - one letter label
game.constants.passive_types Passive skill No Yes No Yes No
  • type - 'normal' or 'ascendancy'
game.constants.item.rarity Rarity Yes Yes Yes No No
game.constants.item.class Item class Yes Yes Yes No No
game.constants.mod.domains Mod Domain No No No Yes Yes
game.constants.mod.generation_types Mod Generation Type Yes No No Yes Yes

Exported data

Data exported using pypoe.

Table Id Description Keys Subpage
game.constants.tags Internal tags name
Optional name.
tags
game.constants.item.gem_tags Gem tags id
Internal numerical id + 1.

tag
Gem tag name.

gem_tags
game.constants.item.gem_tags_lookup Lookup for gem tags gem_tags

Usage

This module should be loaded with mw.loadData().