feat: level default to 0
This commit is contained in:
parent
4f5e789dc3
commit
5daa5034a2
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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},
|
||||
|
|
Loading…
Reference in a new issue