diff --git a/libs/commands.lua b/libs/commands.lua index 294bb78..4c6a78a 100644 --- a/libs/commands.lua +++ b/libs/commands.lua @@ -34,7 +34,7 @@ for key, value in pairs(struct) do elseif (value.dataType == "comp") then addListCommands(key, value) else - addCommands(key, key) + addCommands(key, key, value.default) end end diff --git a/struct.lua b/struct.lua index 2316878..27a0976 100644 --- a/struct.lua +++ b/struct.lua @@ -1,6 +1,6 @@ return { name={contentType = "string"}, - level={contentType = "number"}, + level={contentType = "number", default = 0}, atk= {dataType= "stat", modulo= 5, default= 50, max=255, min=10}, con= {dataType= "stat", modulo= 5, default= 50, max=255, min=10}, hab= {dataType= "stat", modulo= 5, default= 50, max=255, min=10},