-
Notifications
You must be signed in to change notification settings - Fork 1
Book Wyrms breeding
Up to date as of: 1.1.1
Just wanted to write down the numbers and tables somewhere.
Stats are:
- Color (gray, red, orange, green, blue, teal, purple): color of the wyrm, what enchantment it can give, and what scales it drops
- Enchanting level (3-50, configurable): at what level does it enchant books it gives
- Digesting speed (1-600 ticks/lvl, configurable): how fast does it digest levels
- Indigestion chance (0-100%, configurable): chance that the wyrm gives Chad Bolus instead of a book
- Gold eyes (yes/no): allows wyrm to give treasure enchantments
Color is 50% of being gray and 8.3% (1/12) of being any other individual color. Gold eyes is a 1% (1/100) chance.
For level, speed, and indigestion, each of them has an independant 33.3% (1/3) chance of being "exceptional", which gives a different value range. Values in the middle of the ranges are more likely than those at the edges. Each of the following 6 ranges is configurable.
- Level is 3-7, exceptional is 8-12
- Speed is 200-300 ticks/lvl, exceptional is 140-200
- Indigestion is 1-9%, exceptional is 50-70%
Each wyrm color has a table giving the probability that a parent of this color will give a child of a given color. One of the parents' table is chosen at random to roll the color of the offspring, unless exactly one parent is gray, in which case the other parent's table is automatically chosen (ie gray x red has the same distribution as red x red).
In this table, column is the color of the parent whose table was chosen, and the lines are the chances that this color is picked for the child.
Child color | Gray | Red | Orange | Green | Blue | Teal | Purple |
---|---|---|---|---|---|---|---|
Gray | 50% (1/2) | 20% (1/5) | 20% (1/5) | 20% (1/5) | 20% (1/5) | 20% (1/5) | 20% (1/5) |
Red | 8.33% (1/12) | 50% (1/2) | 12.5% (1/8) | 0% (0/1) | 6.25% (1/16) | 6.25% (1/16) | 6% (3/50) |
Orange | 8.33% (1/12) | 12.5% (1/8) | 50% (1/2) | 0% (0/1) | 6.25% (1/16) | 6.25% (1/16) | 6% (3/50) |
Green | 8.33% (1/12) | 0% (0/1) | 0% (0/1) | 50% (1/2) | 6.25% (1/16) | 6.25% (1/16) | 6% (3/50) |
Blue | 8.33% (1/12) | 12.5% (1/8) | 12.5% (1/8) | 12.5% (1/8) | 50% (1/2) | 6.25% (1/16) | 6% (3/50) |
Teal | 8.33% (1/12) | 0% (0/1) | 0% (0/1) | 12.5% (1/8) | 6.25% (1/16) | 50% (1/2) | 6% (3/50) |
Purple | 8.33% (1/12) | 5% (1/20) | 5% (1/20) | 5% (1/20) | 5% (1/20) | 5% (1/20) | 50% (1/2) |
Each of the 3 numerical stats of the offspring is a random number between each of its parents' stat, plus or minus a random number up to the (configurable) deviation. For level it's 3, speed it's 20, and indigestion chance it's 3%.
However, if both parents have a stat that is maxed out (for level if they're both at the maximum, for speed at the minimum ticks/level, and indigestion chance if it's within 1% of either the minimum or maximum), then the child will have those same stats maxed in the same way.
Wyrmutagen stat changes applies after that. They're a flat amount and are configurable. Level wyrmutagen increases/decreases by 8 levels, speed by 60 ticks/level, and indigestion by 10%.
The offspring of two gold-eyed wyrms has a 10% (1/10) chance of having gold eyes. The offspring of a gold-eyed and a non-gold-eyed has a 5% (1/20) chance. The offspring of two non-gold-eyed has a 1% (1/100) chance.