mirror of
https://github.com/brmlab/brmlife.git
synced 2025-08-02 18:03:37 +02:00
Spawn some herbs at startup
This commit is contained in:
parent
b80ccfdffd
commit
4d697adc83
4 changed files with 27 additions and 0 deletions
12
agent.h
12
agent.h
|
@ -48,4 +48,16 @@ public:
|
|||
~agent();
|
||||
};
|
||||
|
||||
class herb : public agent {
|
||||
public:
|
||||
herb(int id_, class map &map_)
|
||||
: agent(id_, NULL, map_)
|
||||
{
|
||||
energy = world::herb_energy;
|
||||
attr.move = 0;
|
||||
attr.attack = 0;
|
||||
attr.defense = 0;
|
||||
}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue