Module:Modifier compatibility/config: Difference between revisions
Jump to navigation
Jump to search
(Created page with "------------------------------------------------------------------------------- -- -- Configuration for Module:Modifier compatibility -- ------------------------------------------------------------------------------- local cfg = {} -- ---------------------------------------------------------------------------- -- i18n -- ---------------------------------------------------------------------------- cfg.i18n = {} cfg.i18n.item_mod_list = { collapse_all = 'Collapse...") |
Mefisto1029 (talk | contribs) (veiled -> desecrated) |
||
| (19 intermediate revisions by 4 users not shown) | |||
| Line 4: | Line 4: | ||
-- | -- | ||
------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ||
local m_util = require('Module:Util') | |||
local cfg = {} | local cfg = {} | ||
| Line 13: | Line 15: | ||
cfg.i18n = {} | cfg.i18n = {} | ||
cfg.i18n. | cfg.i18n.item_mods = { | ||
standard_mods = 'Standard modifiers', | |||
desecrated_mods = 'Desecrated modifiers', | |||
corruption_implicit_mods = 'Corruption implicit modifiers', | |||
prefixes = 'Prefixes', | |||
suffixes = 'Suffixes', | |||
modifiers = 'Modifiers', | |||
group = 'Group:', | |||
modifier = 'Modifier', | |||
required_level = m_util.html.tooltip('iLvl', 'The minimum item level required for the modifier to be randomly generated on an item'), | |||
stats = 'Stats', | |||
tags = 'Tags', | |||
prefixes_no_results = 'Item cannot roll prefixes for this type of modifier.', | |||
suffixes_no_results = 'Item cannot roll suffixes for this type of modifier.', | |||
} | } | ||
| Line 53: | Line 42: | ||
-- Wrapper templates | -- Wrapper templates | ||
cfg.wrappers = { | cfg.wrappers = { | ||
item_mods = { | |||
'Template:Item modifier compatibility', | 'Template:Item modifier compatibility', | ||
}, | }, | ||
} | |||
-- Map item classes to mod domains | |||
cfg.mod_domains_by_item_class = { | |||
['LifeFlask'] = 2, | |||
['ManaFlask'] = 2, | |||
['UtilityFlask'] = 2, | |||
['Relic'] = 8, | |||
['Jewel'] = 11, | |||
['Tablet'] = 34, | |||
} | |||
-- Other relevant mod domains | |||
cfg.mod_domains = { | |||
item = 1, | |||
desecrated = 28, | |||
} | |||
-- Relevant mod generation types | |||
cfg.mod_generation_types = { | |||
prefix = 1, | |||
suffix = 2, | |||
corrupted = 5, | |||
} | |||
cfg.desecrated_addon_tags = { | |||
} | } | ||
return cfg | return cfg | ||
Latest revision as of 09:47, 11 December 2025
This is the configuration file for Module:Modifier compatibility. This file can be edited to allow easy translation/porting of the module to other wikis.
The above documentation is transcluded from Module:Modifier compatibility/config/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.
-------------------------------------------------------------------------------
--
-- Configuration for Module:Modifier compatibility
--
-------------------------------------------------------------------------------
local m_util = require('Module:Util')
local cfg = {}
-- ----------------------------------------------------------------------------
-- i18n
-- ----------------------------------------------------------------------------
cfg.i18n = {}
cfg.i18n.item_mods = {
standard_mods = 'Standard modifiers',
desecrated_mods = 'Desecrated modifiers',
corruption_implicit_mods = 'Corruption implicit modifiers',
prefixes = 'Prefixes',
suffixes = 'Suffixes',
modifiers = 'Modifiers',
group = 'Group:',
modifier = 'Modifier',
required_level = m_util.html.tooltip('iLvl', 'The minimum item level required for the modifier to be randomly generated on an item'),
stats = 'Stats',
tags = 'Tags',
prefixes_no_results = 'Item cannot roll prefixes for this type of modifier.',
suffixes_no_results = 'Item cannot roll suffixes for this type of modifier.',
}
cfg.i18n.errors = {
}
-- ----------------------------------------------------------------------------
-- Constants
-- ----------------------------------------------------------------------------
-- Wrapper templates
cfg.wrappers = {
item_mods = {
'Template:Item modifier compatibility',
},
}
-- Map item classes to mod domains
cfg.mod_domains_by_item_class = {
['LifeFlask'] = 2,
['ManaFlask'] = 2,
['UtilityFlask'] = 2,
['Relic'] = 8,
['Jewel'] = 11,
['Tablet'] = 34,
}
-- Other relevant mod domains
cfg.mod_domains = {
item = 1,
desecrated = 28,
}
-- Relevant mod generation types
cfg.mod_generation_types = {
prefix = 1,
suffix = 2,
corrupted = 5,
}
cfg.desecrated_addon_tags = {
}
return cfg