Jump to content

Colony: Difference between revisions

881 bytes added ,  8 years ago
Line 41: Line 41:
* If there is no food in the nest the number of ants in the colony is decreased
* 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)
* Sometimes cave in-s and other accidents occur (decreasing capacity and killing ants)
== TO THINK ABOUT, KEEP IT SIMPLE! ==
Linear? Makes one colony "slow to turn" but using many colonies it gets done faster.
* capacity += r_expand * r_worker * (1 - r_secret) * const
* secret capacity += r_expand * r_worker * r_secret * const
* workers += r_breed * r_worker * const
* warriors += r_breed * r_warrior * const
* food += (r_food * r_worker - level) * (workers+warriors) * const, Gathering and eating, if r_food*r_worker kept at level or above the food increase, else it decreases.
Transform workers to warriors and vice versa
* if (to many warriors) warriors -= const, worker +=const
* if (to many workers) warriors += const, worker -=const
Starving:
* if (food <= 0) workers -= ?, warriors -= ?
* if (workers + warriors < 1) colony is dead
Decaying...
* if (capacity > 10) capacity pt at  decreases if not maintained? ~1%
* food turn bad, slowly decreases? ~1%