feat: level default to 0

This commit is contained in:
Kazhnuz 2024-08-01 23:26:55 +02:00
parent 4f5e789dc3
commit 5daa5034a2
2 changed files with 2 additions and 2 deletions

View file

@ -34,7 +34,7 @@ for key, value in pairs(struct) do
elseif (value.dataType == "comp") then elseif (value.dataType == "comp") then
addListCommands(key, value) addListCommands(key, value)
else else
addCommands(key, key) addCommands(key, key, value.default)
end end
end end

View file

@ -1,6 +1,6 @@
return { return {
name={contentType = "string"}, name={contentType = "string"},
level={contentType = "number"}, level={contentType = "number", default = 0},
atk= {dataType= "stat", modulo= 5, default= 50, max=255, min=10}, atk= {dataType= "stat", modulo= 5, default= 50, max=255, min=10},
con= {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}, hab= {dataType= "stat", modulo= 5, default= 50, max=255, min=10},