diff --git a/libs/commands.lua b/libs/commands.lua index 90ec74d..6f252e1 100644 --- a/libs/commands.lua +++ b/libs/commands.lua @@ -15,7 +15,7 @@ end local function addStatCommands(name, value) addCommands(name .. ".base", name, value.default) - addCommands(name .. ".lvl", name, 0) + addCommands(name .. ".lvl", name, value.lvl or 0) addCommands(name .. ".add", name, 0) addCommands(name .. ".bonus", name, 0) end diff --git a/struct.lua b/struct.lua index 16f4681..7208f4d 100644 --- a/struct.lua +++ b/struct.lua @@ -17,8 +17,8 @@ return { dis= {dataType= "stat", modulo= 5, default= 50, max=255, min=10, to="stats.dis"}, rel= {dataType= "stat", modulo= 5, default= 50, max=255, min=10, to="stats.rel"}, per= {dataType= "stat", modulo= 5, default= 50, max=255, min=10, to="stats.per"}, - pv= {dataType= "stat", modulo= 1, default= 12, max=9999999, min=1, to="vita.pv"}, - pe= {dataType= "stat", modulo= 1, default= 12, max=9999999, min=1, to="vita.pe"}, + pv= {dataType= "stat", modulo= 1, default= 12, max=9999999, min=1, to="vita.pv", lvl=3}, + pe= {dataType= "stat", modulo= 1, default= 12, max=9999999, min=1, to="vita.pe", lvl=3}, eclat= {dataType= "stat", modulo= 1, default= 10, max=200, min=1, to="vita.eclat"}, armurephy= {dataType= "stat", modulo= 1, default= 0, max=9999999, min=0, to="armure.phy"}, armurepsy= {dataType= "stat", modulo= 1, default= 0, max=9999999, min=0, to="armure.psy"},