From 2c726beb79ce83fd621c9a2b135e385168da79cd Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Tue, 6 Aug 2024 21:12:28 +0200 Subject: [PATCH] fix: adapt le viewer --- view.lua | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/view.lua b/view.lua index 114a0d0..1d51565 100644 --- a/view.lua +++ b/view.lua @@ -6,15 +6,15 @@ local beast = BeastFile("data", arg[1] .. ".beast", tonumber(arg[2])) local creature = beast:getRawData() -print(creature.name, "Lvl:" .. creature.level, "Pression:" .. creature.pression, creature.nomType, creature.categorie) +print(creature.name, "Lvl:" .. creature.level, "Pression:" .. creature.pression, creature["type"], creature.categorie) print(" ", "------") -print("FOR:" .. creature.atk, "INT:" .. creature.int, "CHA:" .. creature.cha) -print("CON:" .. creature.con, "SAG:" .. creature.sag, "DIS:" .. creature.dis) -print("HAB:" .. creature.hab, "VOL:" .. creature.vol, "REL:" .. creature.rel) -print(" ", "PER:" .. creature.per) +print("FOR:" .. creature.stats["for"], "INT:" .. creature.stats.int, "CHA:" .. creature.stats.cha) +print("CON:" .. creature.stats.con, "SAG:" .. creature.stats.sag, "DIS:" .. creature.stats.dis) +print("HAB:" .. creature.stats.hab, "VOL:" .. creature.stats.vol, "REL:" .. creature.stats.rel) +print(" ", "PER:" .. creature.stats.per) print(" ", "------") -print("PV:" .. creature.pv, "PE:" .. creature.pe, "Eclat : " .. creature.eclat) -print("Armure", "Phy:" .. creature.armurephy, "Psy:" .. creature.armurepsy, "Spe:" .. creature.armurespe) +print("PV:" .. creature.vita.pv, "PE:" .. creature.vita.pe, "Eclat : " .. creature.vita.eclat) +print("Armure", "Phy:" .. creature.armure.phy, "Psy:" .. creature.armure.psy, "Spe:" .. creature.armure.spe) print(" ", "------") print("Armes:") for key, value in ipairs(creature.armes) do