1,297
edits
Line 43: | Line 43: | ||
== TO THINK ABOUT, KEEP IT SIMPLE! == | == TO THINK ABOUT, KEEP IT SIMPLE! == | ||
Linear? Makes one colony "slow to turn" but using many colonies it gets done faster. Use 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. | 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. | ||
* capacity += r_expand * | * capacity += r_expand * ar_worker * (1 - r_secret) * const | ||
* secret capacity += r_expand * | * secret capacity += r_expand * ar_worker * r_secret * const | ||
* workers += if ( | * workers += if (worker+warrior < capacity) r_breed * r_worker * const | ||
* warriors += if ( | * warriors += if (worker+warrior < capacity) r_breed * r_warrior * const | ||
* food += max(0, min(capacity, (r_food * | * food += max(0, min(capacity, (r_food * ar_worker - level) * (workers+warriors) * const)), Gathering and eating, if r_food*ar_worker kept at level or above the food increase, else it decreases. Level could be 0.5, 0.4, or something... | ||
Transform workers to warriors and vice versa | Transform workers to warriors and vice versa | ||
* if (to many warriors compared to workers) warriors -= const, worker +=const | * if (to many warriors compared to workers) warriors -= const, worker +=const , i.e. if ar_worker > r_worker + 0.01 | ||
* if (to many workers compared to warriors) warriors += const, worker -=const | * if (to many workers compared to warriors) warriors += const, worker -=const , i.e. if ar_worker < r_worker - 0.01 | ||
Starving: | Starving: | ||
Line 61: | Line 61: | ||
* food turn bad, slowly decreases? -= const similar to setting 1%? | * food turn bad, slowly decreases? -= const similar to setting 1%? | ||
Decaying both inhabited and not inhabited | Decaying both inhabited and not inhabited | ||
* if (capacity > 10) capacity slowly decreases | * if (capacity > 10 or not inhabited) capacity slowly decreases -= const similar to setting 1%? | ||
* if (capacity < 2) nest is broken and destroyed | * if (capacity < 2 and not inhabited) nest is broken and destroyed | ||
TODO Sligtly different values for different species? If one is better at breeding, one at exanding and the other at fighting? | |||
== Every N minutes | == Every N minutes | ||
* Animal attacks (or moves) | * Animal attacks (or moves) |