The Alchemist Code Wiki

READ MORE

The Alchemist Code Wiki
Advertisement

Documentation for this module may be created at Module:Data/Model/doc

-- This models all the data pages, in how they declare, store, query and render
return {
  nodes = {
    MasterParam = {
      nodes = {
        Unit = {
          model = {
            Unit = {
              iname    = "String",
              img      = "String",
              mdl      = "String",
              birth_id = "Integer",
              elem     = "Integer",
              piece    = {"String", dataRef="MasterParam/Item"},
              rare     = "Integer",
              raremax  = "Integer",
              jobsets  = {"String", list=",", dataRef="MasterParam/JobSet"},
            }
          },
        },
        JobSet = {
          model = {
            JobSet = {
              iname    = "String",
              job      = {"String", dataRef="MasterParam/Job"},
              lrare    = "Integer",
            }
          },
        },
        Job = {
          model = {
            Job = {
              iname    = "String",
              atkskl   = {"String", dataRef="MasterParam/Skill"},
              fixabl   = {"String", dataRef="MasterParam/Ability"},
            }
          },
        },
        Ability = {
          model = {
            Ability = {
              iname    = "String",
            }
          },
        },
        Skill = {
          model = {
            Skill = require("Module:Data/Model/Skill")
          },
        },
        Artifact = {
          model = {
            Artifact = {
              iname    = "String",
              icon     = "String",
              rini     = "Integer",
              rmax     = "Integer",
            }
          },
        },
        ConceptCard = {
          model = {
            ConceptCard = {
              iname    = "String",
              icon     = "String",
              rare     = "Integer",
            }
          },
        },
        Item = {
          model = {
            Item = {
              iname    = "String",
              type     = "Integer",
            }
          },
        },
      },
    },
  },
}
--          nodes = function(k) return ({
--            Unit = {
--              test = "blah",
--            },
--          })[k] end,
Advertisement