Jump to content

Colony: Difference between revisions

93 bytes removed ,  8 years ago
Line 32: Line 32:
See [[Build Nest]] and [[Colonize]]
See [[Build Nest]] and [[Colonize]]


= Every minute =
= Over time =
* If colony has set its property to expand the nests capacity expands.
* Ordered to expand, the colony expands the nest's capacity.
* If colony has set its property to breed the nests size expands but no more than the capacity.
* Ordered to breed the colony do so if there is enough capacity.
* If colony has set its property to get food the food is added (if there is food available) but no more than the capacity.
* If the food level (r_workers * r_food) is above 40% the food increases. If lower it decreases and when out of food, ants start dying. NOTE: This is one way to kill your colony.
* If the number of ants in the colony is bigger than the nest capacity limit, the number of ant is slowly decreased
* If the number of ants in the colony is bigger than the nest capacity limit, the number of ant is slowly decreased
* Slowly migrating actual [[Worker]] and [[Warrior]] amount towards the setting (ants are given new tasks)
* Slowly migrating actual [[Worker]] and [[Warrior]] amount towards the setting (ants are given new tasks)
* The ants in the colony eat and food is decreased by the number of ants
* Sometimes cave ins and other accidents occur (decreasing capacity and killing ants)
* If there is no food in the nest the number of ants in the colony is decreased
* Sometimes cave in-s and other accidents occur (decreasing capacity and killing ants)


== TO THINK ABOUT, KEEP IT SIMPLE! ==
== Calculations done ==
Linear? Makes one colony "slow to turn" but using many colonies it gets done faster. Use ar_worker=worker/(worker+warrior) in some formulas instead of r_worker to reflect the actual population? The may be stored in one of the calculations as a column.  
For now calculations take place every other minute. r_nnn below is the ratio on that order setting. Using a linear model. This makes one colony "slow to turn" but by using many colonies it gets done faster. Use ar_worker=worker/(worker+warrior) in some formulas instead of r_worker to reflect the actual population.
* capacity += r_expand * ar_worker * const
* capacity += r_expand * ar_worker * const
* secret capacity += r_expand * ar_worker * r_secret * const  (NOTE: secret is a part of the capacity)
* secret capacity += r_expand * ar_worker * r_secret * const  (NOTE: secret is a part of the capacity)