View source for Module:Modifiers
From Melvor Idle
You do not have permission to edit this page, for the following reason:
You can view and copy the source of this page.
-- Module responsible for handling modifiers
local p = {}
local GameData = require('Module:GameData')
local Shared = require('Module:Shared')
local Common = require('Module:Common')
local Num = require('Module:Number')
-- Initialisation
-- Index modifier definitions by their aliases & local IDs
p.ModifierIndex = {
["alias"] = {},
["localID"] = {}
}
for _, modDefn in ipairs(GameData.rawData.modifiers) do
-- Index by local ID
local ns, modLocalID = Shared.getLocalID(modDefn.id)
p.ModifierIndex.localID[modLocalID] = modDefn
-- Index by alias
000
1:0
Template used on this page:
Return to Module:Modifiers.