Colony: Difference between revisions

From DominAnt
(Marked this version for translation)
 
(25 intermediate revisions by the same user not shown)
Line 1: Line 1:
<languages/>
[[File:colony1.png]]
[[File:colony2.png]]
[[File:colony3.png]]
<translate>
<!--T:1-->
The ant colony means the ants living together but here the word colony is normally also used to refer to the physical [[nest]] built underground too.
The ant colony means the ants living together but here the word colony is normally also used to refer to the physical [[nest]] built underground too.


<!--T:2-->
The different owner status of colonies
The different owner status of colonies
* [[Nest]]
* [[Nest]]
Line 8: Line 16:
* [[Controlled Colony]]
* [[Controlled Colony]]


See also: [[UI Colony View]]
= Properties = <!--T:3-->
 
The colony has
= Settings =
* Population (the number of ants living there). This population is directly related to the zone of control (zoc) that may interfere with other colonies. The area of the zoc in propotional to the polulation, i.e. the radius is propotional to the square root of the population.
The player may set the settings of colonies from anywhere in the world.
 
* Ratio on how many [[Worker]] and [[Warrior]] ants. The colony strives towards that ratio and workers can be turned into warriors and vice versa. (Every minute a small shift is done)
* Ratio on what workers should do: Expand the nests capacity, get food, help breeding to increase population.
* If enough [[Experience]]: Ratio on the expanding: Normal or Secret. Secret chambers can not be destroyed by humans but are slow to build.
 
Over time the ratio will move towards just having workers getting food. You will have to look after your colonies from time to time. Purpose: Unattended colonies shall become weak and population shall decrease in the long run.
 
= Properties =
The colony has (all as float numbers):
* Population (the number of ants living there). This population is directly related to the zone of control (zoc) that may interfere with other colonies.
** [[Worker]] count
** [[Worker]] count
** [[Warrior]] count
** [[Warrior]] count
Inherited from the [[nest]]:
Inherited from the [[nest]]:
* Capacity (max ants and max food)
* Capacity (max ants and max food)
** [[Experience]]d players may build secret chambers too. (Can not be destroyed by players themselves, only by ants)  
** [[Experience]]d players may build secret chambers too. Those can not be destroyed by players themselves, only by ants.  
* [[Food]] (how much food is stored)
* [[Food]] (how much food is stored)
* Location information, what country and region it is in. (used for scoring)
* Name


= Founding =
<!--T:4-->
See [[Build Nest]] and [[Colonize]]
Implementation note: All numbers are stored as floating numbers but the user interface rounds values.


= Every minute =
= Orders = <!--T:5-->
* If colony has set its property to expand the nests capacity expands.
The player may set what the ants should be doing in the colony. See [[Colony Orders]]
* If colony has set its property to breed the nests size expands but no more than the 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 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)
* The ants in the colony eat and food is decreased by the number of 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! ==
= Founding = <!--T:6-->
Linear? Makes one colony "slow to turn" but using many colonies it gets done faster.
See [[Found New Colony]] (was [[Build Nest]] and [[Colonize]])
* capacity += r_expand * r_worker * (1 - r_secret) * const
* secret capacity += r_expand * r_worker * r_secret * const
* workers += min(capacity, r_breed * r_worker * const)
* warriors += r_breed * r_warrior * const
* 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. Level could be 0.5, 0.4, or something...


Transform workers to warriors and vice versa
= Competition for food = <!--T:8-->
* if (to many warriors compared to workers) warriors -= const, worker +=const
If 2 (or more) colonies areas overlap they compete for food making it harder to get enough food in both colonies. Both allied and enemy colonies have the same effect.
* if (to many workers compared to warriors) warriors += const, worker -=const


Starving:
= Over time = <!--T:7-->
* if (food == 0) workers -= ?, warriors -= ?, or maybe x = x * 0.99 - const ?
* Ordered to expand, the colony expands the nest's capacity.
* if (workers + warriors < 2) colony is dead
* Ordered to breed the colony do so if there is enough 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.
Decaying.  
* If the number of ants in the colony is bigger than the nest capacity limit, the number of ant is slowly decreased
* food turn bad, slowly decreases? -= const similar to setting 1%?
* Slowly migrating actual [[Worker]] and [[Warrior]] amount towards the setting (ants are given new tasks)
Decaying both inhabited and not inhabited
* Sometimes cave ins and other accidents occur (decreasing capacity and killing ants)
* if (capacity > 10) capacity slowly decreases if not maintained? -= const similar to setting 1%?
* See [[Technical Implementation]] for the actual calculations being done
* if (capacity < 2) nest is broken and destroyed. If inhabited the ants are killed.
</translate>

Latest revision as of 12:37, 24 March 2019

Other languages:

Colony1.png Colony2.png Colony3.png

The ant colony means the ants living together but here the word colony is normally also used to refer to the physical nest built underground too.

The different owner status of colonies

Properties

The colony has

  • Population (the number of ants living there). This population is directly related to the zone of control (zoc) that may interfere with other colonies. The area of the zoc in propotional to the polulation, i.e. the radius is propotional to the square root of the population.

Inherited from the nest:

  • Capacity (max ants and max food)
    • Experienced players may build secret chambers too. Those can not be destroyed by players themselves, only by ants.
  • Food (how much food is stored)
  • Location information, what country and region it is in. (used for scoring)
  • Name

Implementation note: All numbers are stored as floating numbers but the user interface rounds values.

Orders

The player may set what the ants should be doing in the colony. See Colony Orders

Founding

See Found New Colony (was Build Nest and Colonize)

Competition for food

If 2 (or more) colonies areas overlap they compete for food making it harder to get enough food in both colonies. Both allied and enemy colonies have the same effect.

Over time

  • Ordered to expand, the colony expands the nest's capacity.
  • Ordered to breed the colony do so if there is enough 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
  • Slowly migrating actual Worker and Warrior amount towards the setting (ants are given new tasks)
  • Sometimes cave ins and other accidents occur (decreasing capacity and killing ants)
  • See Technical Implementation for the actual calculations being done