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 |
| |||||
game.constants.ascendancy | Ascendancy class |
| |||||
game.constants.attributes | Attributes | ||||||
game.constants.damage_types | Damage type | ||||||
game.constants.difficulties | Difficulties |
| |||||
game.constants.passive_types | Passive skill |
| |||||
game.constants.tags | internal tags | ||||||
game.constants.item.rarity | Rarity | ||||||
game.constants.item.class | Item class | ||||||
game.constants.item.gem_tags | Gem tags | ||||||
game.constants.mod.domains | Mod Domain | ||||||
game.constants.mod.generation_types | Mod Generation Type |
Usage
This module should be loaded with mw.loadData()
.
The above documentation is transcluded from Module:Game/doc.
Editors can experiment in this module's sandbox and testcases pages.
Subpages of this module.
Editors can experiment in this module's sandbox and testcases pages.
Subpages of this module.
local game = {}
game.constants = {}
game.constants.attributes = {
{
long_upper = 'Strength',
long_lower = 'strength',
short_upper = 'Str',
short_lower = 'str',
},
{
long_upper = 'Dexterity',
long_lower = 'dexterity',
short_upper = 'Dex',
short_lower = 'dex',
},
{
long_upper = 'Intelligence',
long_lower = 'intelligence',
short_upper = 'Int',
short_lower = 'int',
},
}
game.constants.damage_types = {
{
short_upper = 'Physical',
short_lower = 'physical',
},
{
short_upper = 'Fire',
short_lower = 'fire',
},
{
short_upper = 'Cold',
short_lower = 'cold',
},
{
short_upper = 'Lightning',
short_lower = 'lightning',
},
{
short_upper = 'Chaos',
short_lower = 'chaos',
},
}
-- ModDomains.dat, reversed
game.constants.mod = {}
game.constants.mod.domains = {
[1] = {
short_upper = 'Item',
short_lower = 'item',
},
[2] = {
short_upper = 'Flask',
short_lower = 'flask',
},
[3] = {
short_upper = 'Monster',
short_lower = 'monster',
},
[4] = {
short_upper = 'Chest',
short_lower = 'chest',
},
[5] = {
short_upper = 'Map',
short_lower = 'map',
},
--[6] = {},
--[7] = {},
--[8] = {},
[9] = {
short_upper = 'Stance',
short_lower = 'stance',
},
[10] = {
short_upper = 'Master',
short_lower = 'master',
},
[11] = {
short_upper = 'Jewel',
short_lower = 'jewel',
},
}
game.constants.mod.generation_types = {
[1] = {
short_upper = 'Prefix',
short_lower = 'prefix',
},
[2] = {
short_upper = 'Suffix',
short_lower = 'suffix',
},
-- given mod
[3] = {
short_upper = 'Unique',
short_lower = 'unique',
},
--[4] = {},
[5] = {
short_upper = 'Corrupted',
short_lower = 'corrupted',
},
--[6] = {},
--[7] = {},
[8] = {
short_upper = 'Tempest',
short_lower = 'tempest',
},
}
return game