Module ORGM.Maintance

Maintance Functions.

This file contains functions for dealing with maintance kits.

It is very much a WIP.

File: shared/2LoadOrder/ORGMMaintance.lua

Info:

  • Release: 3.09
  • Author: Fenris_Wolf

Functions

register (name, repairData) Registers a maintance kit type with ORGM.
random ([thisTable]) Returns the name of a random maintance item.
getTable () Gets the table of registered maintance kits.
getData (itemType[, moduleName]) Gets the data of a registered maintance kit, supports module checking.


Functions

Methods
register (name, repairData)
Registers a maintance kit type with ORGM.

Parameters:

  • name string maintance kit name without module prefix
  • repairData table
        Valid table keys/value pairs are:
    
        moduleName = nil, or string module name this item is from. If nil, ORGM is used
    

Returns:

    bool true on success.
random ([thisTable])
Returns the name of a random maintance item.

Parameters:

  • thisTable table table to select from. (optional)

Returns:

    string the random maintance item name.
getTable ()
Gets the table of registered maintance kits.

Returns:

    table all registered maintance kits setup by ORGM.Maintance.register
getData (itemType[, moduleName])
Gets the data of a registered maintance kit, supports module checking.

Parameters:

  • itemType string or InventoryItem
  • moduleName string module to compare (optional)

Returns:

    nil or table data of a registered maintance kit setup by ORGM.Maintance.register

Usage:

    local repairData = ORGM.Maintance.getData('WD40')
generated by LDoc 1.4.3 Last updated 2019-04-11 18:37:45