Genes - ACCBDD/complicated_bees GitHub Wiki

There are a variety of genes available for bees. Add-ons can add their own genes - that process is outside the scope of this wiki, though.

Genes

Each of these genes is present in every bee. By default, they are the default (obviously) value of the gene. A gene definition in the described format can be added to a Species' default chromosome definition. A species' default chromosome is overlain on top of one of a bee's chromosomes when it has offspring that mutates into said species.

Lifespan

The lifespan gene affects how long a bee lives:

Value Lifespan (in work ticks)
shortest 15
shorter 25
short 35
average 50
long 65
longer 75
longest 90

Definition:

{
  "complicated_bees:lifespan": {
    "data": "ONE OF THE FOLLOWING: shortest, shorter, short, average, long, longer, longest",
    "dominant": "BOOLEAN - OPTIONAL"
  }
}

Default:

{
  "complicated_bees:lifespan": {
    "data": "shortest",
    "dominant": "true"
  }
}

Productivity

The productivity gene affects the base chance a bee will produce one of its products:

Value Product chance multiplier
slowest 0.3x
slower 0.5x
slow 0.8x
average 1x
fast 1.2x
faster 1.5x
fastest 1.7x

Definition:

{
  "complicated_bees:productivity": {
    "data": "ONE OF THE FOLLOWING: slowest, slower, slow, average, fast, faster, fastest",
    "dominant": "BOOLEAN - OPTIONAL"
  }
}

Default:

{
  "complicated_bees:productivity": {
    "data": "slowest",
    "dominant": "true"
  }
}

Flower

The flower gene affects what Flower type a bee needs to be satisfied.

Definition:

{
  "complicated_bees:flower": {
    "data": "A FLOWER RESOURCE KEY",
    "dominant": "BOOLEAN - OPTIONAL"
  }
}

Default:

{
  "complicated_bees:flower": {
    "data": "invalid",
    "dominant": "true"
  }
}

If the data field is "invalid" the bee's flower condition is always satisfied.

Fertility

The fertility gene affects how many drones a queen produces when she dies.

Definition:

{
  "complicated_bees:fertility": {
    "data": "A POSITIVE INTEGER",
    "dominant": "BOOLEAN - OPTIONAL"
  }
}

Default:

{
  "complicated_bees:fertility": {
    "data": "2",
    "dominant": "true"
  }
}

Temperature

The temperature gene affects what temperature ranges a bee needs to be satisfied.

Definition:

{
  "complicated_bees:temperature": {
    "data": "ONE OF THE FOLLOWING: frozen, icy, cold, normal, warm, hot, hellish",
    "dominant": "BOOLEAN - OPTIONAL",
    "tolerance": "ONE OF THE FOLLOWING: none, both_5, both_4, both_3, both_2, both_1, up_5, up_4, up_3, up_2, up_1, down_5, down_4, down_3, down_2, down_1 - OPTIONAL"
  }
}

Default:

{
  "complicated_bees:temperature": {
    "data": "normal",
    "dominant": "true",
    "tolerance": "none"
  }
}

Humidity

The humidity gene affects what humidity ranges a bee needs to be satisfied.

Definition:

{
  "complicated_bees:humidity": {
    "data": "ONE OF THE FOLLOWING: dry, normal, wet",
    "dominant": "BOOLEAN - OPTIONAL",
    "tolerance": "ONE OF THE FOLLOWING: none, both_5, both_4, both_3, both_2, both_1, up_5, up_4, up_3, up_2, up_1, down_5, down_4, down_3, down_2, down_1 - OPTIONAL"
  }
}

Default:

{
  "complicated_bees:humidity": {
    "data": "normal",
    "dominant": "true",
    "tolerance": "none"
  }
}

Effect

The effect gene affects what effect a satisfied bee has on its environment. For a list of effects, see the source code.

Definition:

{
  "complicated_bees:effect": {
    "data": "AN EFFECT RESOURCE KEY",
    "dominant": "BOOLEAN - OPTIONAL"
  }
}

Default:

{
  "complicated_bees:effect": {
    "data": null,
    "dominant": "true"
  }
}

Territory

The territory gene affects how big the area a bee searches for flowers and applies effects in is.

Definition:

{
  "complicated_bees:territory": {
    "data": [HORIZONTAL RADIUS, VERTICAL RADIUS],
    "dominant": "BOOLEAN - OPTIONAL"
  }
}

Default:

{
  "complicated_bees:territory": {
    "data": [4, 2],
    "dominant": "true"
  }
}

Active Time

The active_time gene affects what times a bee is active during:

Value Active during (ticks in the 24000-tick day cycle)
diurnal 0-12000
nocturnal 13000-24000
matutinal 22300-24000
vespertine 12000-13702
crepuscular 12000-13702, 22300-24000
cathemeral 50% chance at any given time
never_sleeps 0-24000

Definition:

{
  "complicated_bees:active_time": {
    "data": "ONE OF THE FOLLOWING: diurnal, nocturnal, matutinal, vespertine, crepuscular, cathemeral, never_sleeps",
    "dominant": "BOOLEAN - OPTIONAL"
  }
}

Default:

{
  "complicated_bees:active_time": {
    "data": "diurnal",
    "dominant": "true"
  }
}

Cave-dwelling

The cave_dwelling gene affects whether a bee can work without seeing the sky.

Definition:

{
  "complicated_bees:cave_dwelling": {
    "data": "BOOLEAN",
    "dominant": "BOOLEAN - OPTIONAL"
  }
}

Default:

{
  "complicated_bees:cave_dwelling": {
    "data": "false",
    "dominant": "true"
  }
}

Weatherproof

The weatherproof gene affects whether a bee can work through downfall.

Definition:

{
  "complicated_bees:weatherproof": {
    "data": "BOOLEAN",
    "dominant": "BOOLEAN - OPTIONAL"
  }
}

Default:

{
  "complicated_bees:weatherproof": {
    "data": "false",
    "dominant": "true"
  }
}