From aa32e79fea42388cbff451165d054f7dfff7c4b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Fri, 9 Apr 2010 02:14:47 +0200 Subject: [PATCH] Physical attributes in creaturedump --- examples/creaturedump.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/examples/creaturedump.cpp b/examples/creaturedump.cpp index 754068860..1d9bdd694 100644 --- a/examples/creaturedump.cpp +++ b/examples/creaturedump.cpp @@ -205,8 +205,15 @@ void printCreature(DFHack::API & DF, const DFHack::t_creature & creature) } */ cout << endl; - cout << "happiness: " << creature.happiness /*<< ", strength: " << creature.strength << ", agility: " - << creature.agility << ", toughness: " << creature.toughness << ", money: " << creature.money*/ << ", id: " << creature.id; + cout << "happiness: " << creature.happiness + << ", strength: " << creature.strength.level + << ", agility: " << creature.agility.level + << ", toughness: " << creature.toughness.level + << ", endurance: " << creature.endurance.level + << ", recuperation: " << creature.recuperation.level + << ", disease resistance: " << creature.disease_resistance.level + //<< ", money: " << creature.money + << ", id: " << creature.id; /* if(creature.squad_leader_id != -1) {