From 8a9e2d7d66d1828cb305c5ad8a40c87086923872 Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Tue, 6 Aug 2024 20:59:46 +0200 Subject: [PATCH] fix: some fixes to structure --- struct.lua | 48 ++++++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/struct.lua b/struct.lua index 13e4af9..16f4681 100644 --- a/struct.lua +++ b/struct.lua @@ -1,29 +1,29 @@ return { - name={contentType = "string", preParse = true}, - nomType={contentType = "string"}, - categorie={contentType = "string"}, - faiblesses={contentType = "string"}, - resistences={contentType = "string"}, - immunites={contentType = "string"}, + name={contentType = "string", preParse = true, to="name"}, + nomType={contentType = "string", to="type"}, + categorie={contentType = "string", to="categorie"}, + faiblesse={contentType = "list", args=1}, + resistence={contentType = "list", args=1}, + immunite={contentType = "list", args=1}, level={contentType = "number", default = 0, preParse = true}, - 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}, - int= {dataType= "stat", modulo= 5, default= 50, max=255, min=10}, - sag= {dataType= "stat", modulo= 5, default= 50, max=255, min=10}, - vol= {dataType= "stat", modulo= 5, default= 50, max=255, min=10}, - cha= {dataType= "stat", modulo= 5, default= 50, max=255, min=10}, - dis= {dataType= "stat", modulo= 5, default= 50, max=255, min=10}, - rel= {dataType= "stat", modulo= 5, default= 50, max=255, min=10}, - per= {dataType= "stat", modulo= 5, default= 50, max=255, min=10}, - pv= {dataType= "stat", modulo= 1, default= 12, max=9999999, min=1}, - pe= {dataType= "stat", modulo= 1, default= 12, max=9999999, min=1}, - eclat= {dataType= "stat", modulo= 1, default= 10, max=200, min=1}, - armurephy= {dataType= "stat", modulo= 1, default= 0, max=9999999, min=0}, - armurepsy= {dataType= "stat", modulo= 1, default= 0, max=9999999, min=0}, - armurespe= {dataType= "stat", modulo= 1, default= 0, max=9999999, min=0}, + pression={contentType = "number", default = 5}, + atk= {dataType= "stat", modulo= 5, default= 50, max=255, min=10, to="stats.for"}, + con= {dataType= "stat", modulo= 5, default= 50, max=255, min=10, to="stats.con"}, + hab= {dataType= "stat", modulo= 5, default= 50, max=255, min=10, to="stats.hab"}, + int= {dataType= "stat", modulo= 5, default= 50, max=255, min=10, to="stats.int"}, + sag= {dataType= "stat", modulo= 5, default= 50, max=255, min=10, to="stats.sag"}, + vol= {dataType= "stat", modulo= 5, default= 50, max=255, min=10, to="stats.vol"}, + cha= {dataType= "stat", modulo= 5, default= 50, max=255, min=10, to="stats.cha"}, + 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"}, + 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"}, + armurespe= {dataType= "stat", modulo= 1, default= 0, max=9999999, min=0, to="armure.spe"}, armes= {dataType= "list", args=2}, competence= {dataType= "comp", args=3}, -- on va le gérer différemment comme du code lol sinon c'est trop relou - skill= {dataType= "list", args=2}, -- on va le gérer différemment comme du code lol sinon c'est trop relou - armes= {dataType= "list", args=1}, + skill= {dataType= "list", args=2}, } \ No newline at end of file