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",
              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",
            }
          },
        },
        Ability = {
          model = {
            Ability = {
              iname    = "String",
            }
          },
        },
        Skill = {
          model = {
            Skill = {
              iname    = "String",
            }
          },
        },
      },
    },
  },
}
--          nodes = function(k) return ({
--            Unit = {
--              test = "blah",
--            },
--          })[k] end,
Advertisement