bdd-creature/view.lua

32 lines
1.2 KiB
Lua
Raw Normal View History

2024-08-06 21:00:05 +02:00
require "libs"
local config = require "config"
local BeastFile = require "classes.beastfile"
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(" ", "------")
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(" ", "------")
print("PV:" .. creature.pv, "PE:" .. creature.pe, "Eclat : " .. creature.eclat)
print("Armure", "Phy:" .. creature.armurephy, "Psy:" .. creature.armurepsy, "Spe:" .. creature.armurespe)
print(" ", "------")
print("Armes:")
for key, value in ipairs(creature.armes) do
print(value[1], value[2])
end
print(" ", "------")
print("Competences:")
for key, value in ipairs(creature.competence) do
print(value.name, value.value)
end
print(" ", "------")
print("Skills:")
for key, value in ipairs(creature.skill) do
print(value[1], value[2])
end