Path of Exile Wiki

Please consider helping keep the wiki up to date. Check the to-do list of updates needed for version 3.14.0.

Game data exports will becoming later as the technical changes in addition to regular changes take some more time.

READ MORE

Path of Exile Wiki
Advertisement
Module documentation[view] [edit] [history] [purge]

--
-- Module for harvest templates
--

local m_cargo = require('Module:Cargo')
local m_util = require('Module:Util')
local getArgs = require('Module:Arguments').getArgs

local p = {}

-- ----------------------------------------------------------------------------
-- Strings
-- ----------------------------------------------------------------------------

local i18n = {
}

-- ----------------------------------------------------------------------------
-- Helper functions and globals
-- ----------------------------------------------------------------------------

-- ----------------------------------------------------------------------------
-- Cargo tables
-- ----------------------------------------------------------------------------
local tables = {}

tables.harvest_craft_options = {
    table = 'harvest_craft_options',
    order = {'id'},
    fields = {
        id = {
            field = 'id',
            type = 'String',
        },
        text = {
            field = 'text',
            type = 'Text',
        },
        harvest_object = {
            field = 'harvest_object',
            type = 'String',
        },
        tier = {
            field = 'tier',
            type = 'Integer',
        }
    },
}
-- ----------------------------------------------------------------------------
-- Page functions
-- ----------------------------------------------------------------------------

local p = {}

p.table_harvest_craft_options = m_cargo.declare_factory{data=tables.harvest_craft_options}

p.store_data = m_cargo.store_from_lua{tables=tables, module='Harvest'}

-- ----------------------------------------------------------------------------
-- End
-- ----------------------------------------------------------------------------

return p
Advertisement