From 5daa5034a2e106be642460e9e9b309e122e3a7e5 Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Thu, 1 Aug 2024 23:26:55 +0200 Subject: [PATCH] feat: level default to 0 --- libs/commands.lua | 2 +- struct.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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},