Jump to content

Colony: Difference between revisions

Line 46: Line 46:
* capacity += r_expand * r_worker * (1 - r_secret) * const
* capacity += r_expand * r_worker * (1 - r_secret) * const
* secret capacity += r_expand * r_worker * r_secret * const
* secret capacity += r_expand * r_worker * r_secret * const
* workers += r_breed * r_worker * const
* workers += min(capacity, r_breed * r_worker * const)
* warriors += r_breed * r_warrior * 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.
* food += max(0, min(capacity, (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
Transform workers to warriors and vice versa
* if (to many warriors) warriors -= const, worker +=const  
* if (to many warriors compared to workers) warriors -= const, worker +=const  
* if (to many workers) warriors += const, worker -=const  
* if (to many workers compared to warriors) warriors += const, worker -=const  


Starving:
Starving: