Reproduce
This behavior causes an agent to produce a new child agent with the properties defined in the reproductionchildvalues property. The agent will produce reproduction_rate children each time step (defaulting to 1).
Published by
Shortname
@hash/reproduce.rs
Description

This behavior causes an agent to produce a new child agent with the properties defined in the reproduction_child_values property. The agent will produce reproduction_rate children each time step (defaulting to 1).

Example

This rabbit agent creates a new juvenile rabbit each time step:

const matureRabbit = {
    behaviors: ["mature_rabbit", "reproduce"],
    height: 2,
    reproduction_child_values: {
        behaviors: ["juvenile_rabbit"],
        height: 1,
    }
}