mirror of
https://github.com/brmlab/brmlife.git
synced 2025-08-02 18:03:37 +02:00
world::move_idle_cost: Introduce, based on attr.move
This commit is contained in:
parent
2907cb6791
commit
ceb16277fb
2 changed files with 3 additions and 0 deletions
1
agent.cc
1
agent.cc
|
@ -114,6 +114,7 @@ agent::on_tick(void)
|
|||
|
||||
if (!dead) {
|
||||
chenergy(world::sun_energy);
|
||||
chenergy(attr.move * world::move_idle_cost);
|
||||
|
||||
} else {
|
||||
energy += world::dead_decay;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue