Attack, defense rates

This commit is contained in:
Petr Baudis 2011-11-27 05:18:52 +01:00
parent ceb16277fb
commit b80ccfdffd
5 changed files with 33 additions and 9 deletions

View file

@ -16,6 +16,8 @@ public:
struct {
double move;
double attack;
double defense;
} attr;
int energy;
@ -27,6 +29,8 @@ public:
energy = world::newborn_energy;
dead = false;
attr.move = 1.0;
attr.attack = 0.5;
attr.defense = 0.5;
};
void spawn(void);
void spawn_at(class tile &tile);