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
addListCommands(key, value)
else
addCommands(key, key)
addCommands(key, key, value.default)
end
end

View file

@ -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},