When an agent dies from starvation, their sugar or spice can be negative. Attempting to pass on this negative wealth to children or other heirs results in the heirs losing wealth instead of gaining wealth. If heirs have already completed their timestep but this curse brings one of their resources into the negative, they will be removed from Sugarscape's self.agents by removeDeadAgents without going through the proper doDeath process. This results in zombie agents that are kept alive by their cells referencing them and eventually overwritten when a new agent enters the cell.
When an agent dies from starvation, their sugar or spice can be negative. Attempting to pass on this negative wealth to children or other heirs results in the heirs losing wealth instead of gaining wealth. If heirs have already completed their timestep but this curse brings one of their resources into the negative, they will be removed from
Sugarscape
'sself.agents
byremoveDeadAgents
without going through the properdoDeath
process. This results in zombie agents that are kept alive by their cells referencing them and eventually overwritten when a new agent enters the cell.