forked from Forte40/openbee
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathopenbee.lua
More file actions
3052 lines (2997 loc) · 82.2 KB
/
openbee.lua
File metadata and controls
3052 lines (2997 loc) · 82.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
local version = {
["major"] = 2,
["minor"] = 2,
["patch"] = 1
}
function loadFile(fileName)
local f = fs.open(fileName, "r")
if f ~= nil then
local data = f.readAll()
f.close()
return textutils.unserialize(data)
end
end
function saveFile(fileName, data)
local f = fs.open(fileName, "w")
f.write(textutils.serialize(data))
f.close()
end
local config = loadFile("bee.config")
if config == nil then
config = {
["apiarySide"] = "left",
["chestSide"] = "top",
["chestDir"] = "up",
["productDir"] = "down",
["analyzerDir"] = "east",
["ignoreSpecies"] = {
"Leporine"
}
}
saveFile("bee.config", config)
end
local useAnalyzer = false
local useReferenceBees = false
local traitPriority = {
"speciesChance",
"speed",
"fertility",
"nocturnal",
"tolerantFlyer",
"caveDwelling",
"temperatureTolerance",
"humidityTolerance",
"effect",
"flowering",
"flowerProvider",
"territory"
}
function setPriorities(priority)
local species = nil
local priorityNum = 1
for traitNum, trait in ipairs(priority) do
local found = false
for traitPriorityNum = 1, #traitPriority do
if trait == traitPriority[traitPriorityNum] then
found = true
if priorityNum ~= traitPriorityNum then
table.remove(traitPriority, traitPriorityNum)
table.insert(traitPriority, priorityNum, trait)
end
priorityNum = priorityNum + 1
break
end
end
if not found then
species = trait
end
end
return species
end
-- logging ----------------------------
local logFile
function setupLog()
local logCount = 0
while fs.exists(string.format("bee.%d.log", logCount)) do
logCount = logCount + 1
end
logFile = fs.open(string.format("bee.%d.log", logCount), "w")
return string.format("bee.%d.log", logCount)
end
function log(msg)
msg = msg or ""
logFile.write(tostring(msg))
logFile.flush()
io.write(msg)
end
function logLine(...)
for i, msg in ipairs(arg) do
if msg == nil then
msg = ""
end
logFile.write(msg)
io.write(msg)
end
logFile.write("\n")
logFile.flush()
io.write("\n")
end
function getPeripherals()
local names = table.concat(peripheral.getNames(), ", ")
local chestPeripheral = peripheral.wrap(config.chestSide)
if chestPeripheral == nil then
error("Bee chest not found at " .. config.chestSide .. ". Valid config values are " .. names .. ".")
end
local apiaryPeripheral = peripheral.wrap(config.apiarySide)
if apiaryPeripheral == nil then
error("Apiary not found at " .. config.apiarySide .. ". Valid config values are " .. names .. ".")
end
-- check config directions
if not pcall(function () chestPeripheral.pullItem(config.analyzerDir, 9) end) then
logLine("Analyzer direction incorrect. Direction should be relative to bee chest.")
useAnalyzer = false
end
return chestPeripheral, apiaryPeripheral
end
-- utility functions ------------------
function choose(list1, list2)
local newList = {}
if list2 then
for i = 1, #list2 do
for j = 1, #list1 do
if list1[j] ~= list2[i] then
table.insert(newList, {list1[j], list2[i]})
end
end
end
else
for i = 1, #list1 do
for j = i, #list1 do
if list1[i] ~= list1[j] then
table.insert(newList, {list1[i], list1[j]})
end
end
end
end
return newList
end
-- fix for yet another API change from openp
function getAllBees(inv)
local notbees = inv.getAllStacks()
local bees = {}
for slot, bee in pairs(notbees) do
bees[slot] = bee.all()
end
return bees
end
function getBeeInSlot(inv, slot)
return inv.getStackInSlot(slot)
end
-- fix for some versions returning bees.species.*
local nameFix = {}
function fixName(name)
if type(name) == "table" then
name = name.name
end
local newName = name:gsub("bees%.species%.",""):gsub("^.", string.upper)
if name ~= newName then
nameFix[newName] = name
end
return newName
end
function fixBee(bee)
if bee.individual ~= nil then
bee.individual.displayName = fixName(bee.individual.displayName)
if bee.individual.isAnalyzed then
bee.individual.active.species.name = fixName(bee.individual.active.species.name)
bee.individual.inactive.species.name = fixName(bee.individual.inactive.species.name)
end
end
return bee
end
function fixParents(parents)
parents.allele1 = fixName(parents.allele1)
parents.allele2 = fixName(parents.allele2)
if parents.result then
parents.result = fixName(parents.result)
end
return parents
end
function beeName(bee)
if bee.individual.active then
return bee.slot .. "=" .. bee.individual.active.species.name:sub(1,3) .. "-" ..
bee.individual.inactive.species.name:sub(1,3)
else
return bee.slot .. "=" .. bee.individual.displayName:sub(1,3)
end
end
function printBee(bee)
if bee.individual.isAnalyzed then
local active = bee.individual.active
local inactive = bee.individual.inactive
if active.species.name ~= inactive.species.name then
log(string.format("%s-%s", active.species.name, inactive.species.name))
else
log(active.species.name)
end
if bee.raw_name == "item.for.beedronege" then
log(" Drone")
elseif bee.raw_name == "item.for.beeprincessge" then
log(" Princess")
else
log(" Queen")
end
--log((active.nocturnal and " Nocturnal" or " "))
--log((active.tolerantFlyer and " Flyer" or " "))
--log((active.caveDwelling and " Cave" or " "))
logLine()
--logLine(string.format("Fert: %d Speed: %d Lifespan: %d", active.fertility, active.speed, active.lifespan))
else
end
end
-- mutations and scoring --------------
function getBeeBreedingData()
breedingTable = {}
breedingTable[1] = {
['allele1'] = "Forest",
['specialConditions'] = {},
['allele2'] = "Meadows",
['result'] = "Common",
['chance'] = 15
}
breedingTable[2] = {
['allele1'] = "Modest",
['specialConditions'] = {},
['allele2'] = "Forest",
['result'] = "Common",
['chance'] = 15
}
breedingTable[3] = {
['allele1'] = "Modest",
['specialConditions'] = {},
['allele2'] = "Meadows",
['result'] = "Common",
['chance'] = 15
}
breedingTable[4] = {
['allele1'] = "Wintry",
['specialConditions'] = {},
['allele2'] = "Forest",
['result'] = "Common",
['chance'] = 15
}
breedingTable[5] = {
['allele1'] = "Wintry",
['specialConditions'] = {},
['allele2'] = "Meadows",
['result'] = "Common",
['chance'] = 15
}
breedingTable[6] = {
['allele1'] = "Wintry",
['specialConditions'] = {},
['allele2'] = "Modest",
['result'] = "Common",
['chance'] = 15
}
breedingTable[7] = {
['allele1'] = "Tropical",
['specialConditions'] = {},
['allele2'] = "Forest",
['result'] = "Common",
['chance'] = 15
}
breedingTable[8] = {
['allele1'] = "Tropical",
['specialConditions'] = {},
['allele2'] = "Meadows",
['result'] = "Common",
['chance'] = 15
}
breedingTable[9] = {
['allele1'] = "Tropical",
['specialConditions'] = {},
['allele2'] = "Modest",
['result'] = "Common",
['chance'] = 15
}
breedingTable[10] = {
['allele1'] = "Tropical",
['specialConditions'] = {},
['allele2'] = "Wintry",
['result'] = "Common",
['chance'] = 15
}
breedingTable[11] = {
['allele1'] = "Marshy",
['specialConditions'] = {},
['allele2'] = "Forest",
['result'] = "Common",
['chance'] = 15
}
breedingTable[12] = {
['allele1'] = "Marshy",
['specialConditions'] = {},
['allele2'] = "Meadows",
['result'] = "Common",
['chance'] = 15
}
breedingTable[13] = {
['allele1'] = "Marshy",
['specialConditions'] = {},
['allele2'] = "Modest",
['result'] = "Common",
['chance'] = 15
}
breedingTable[14] = {
['allele1'] = "Marshy",
['specialConditions'] = {},
['allele2'] = "Wintry",
['result'] = "Common",
['chance'] = 15
}
breedingTable[15] = {
['allele1'] = "Marshy",
['specialConditions'] = {},
['allele2'] = "Tropical",
['result'] = "Common",
['chance'] = 15
}
breedingTable[16] = {
['allele1'] = "Common",
['specialConditions'] = {},
['allele2'] = "Forest",
['result'] = "Cultivated",
['chance'] = 12
}
breedingTable[17] = {
['allele1'] = "Common",
['specialConditions'] = {},
['allele2'] = "Meadows",
['result'] = "Cultivated",
['chance'] = 12
}
breedingTable[18] = {
['allele1'] = "Common",
['specialConditions'] = {},
['allele2'] = "Modest",
['result'] = "Cultivated",
['chance'] = 12
}
breedingTable[19] = {
['allele1'] = "Common",
['specialConditions'] = {},
['allele2'] = "Wintry",
['result'] = "Cultivated",
['chance'] = 12
}
breedingTable[20] = {
['allele1'] = "Common",
['specialConditions'] = {},
['allele2'] = "Tropical",
['result'] = "Cultivated",
['chance'] = 12
}
breedingTable[21] = {
['allele1'] = "Common",
['specialConditions'] = {},
['allele2'] = "Marshy",
['result'] = "Cultivated",
['chance'] = 12
}
breedingTable[22] = {
['allele1'] = "Common",
['specialConditions'] = {},
['allele2'] = "Cultivated",
['result'] = "Noble",
['chance'] = 10
}
breedingTable[23] = {
['allele1'] = "Noble",
['specialConditions'] = {},
['allele2'] = "Cultivated",
['result'] = "Majestic",
['chance'] = 8
}
breedingTable[24] = {
['allele1'] = "Noble",
['specialConditions'] = {},
['allele2'] = "Majestic",
['result'] = "Imperial",
['chance'] = 8
}
breedingTable[25] = {
['allele1'] = "Common",
['specialConditions'] = {},
['allele2'] = "Cultivated",
['result'] = "Diligent",
['chance'] = 10
}
breedingTable[26] = {
['allele1'] = "Diligent",
['specialConditions'] = {},
['allele2'] = "Cultivated",
['result'] = "Unweary",
['chance'] = 8
}
breedingTable[27] = {
['allele1'] = "Diligent",
['specialConditions'] = {},
['allele2'] = "Unweary",
['result'] = "Industrious",
['chance'] = 8
}
breedingTable[28] = {
['allele1'] = "Steadfast",
['specialConditions'] = {[1] = "Is restricted to FOREST-like environments."},
['allele2'] = "Valiant",
['result'] = "Heroic",
['chance'] = 6
}
breedingTable[29] = {
['allele1'] = "Modest",
['specialConditions'] = {[1] = "Is restricted to NETHER-like environments."},
['allele2'] = "Cultivated",
['result'] = "Sinister",
['chance'] = 60
}
breedingTable[30] = {
['allele1'] = "Tropical",
['specialConditions'] = {},
['allele2'] = "Cultivated",
['result'] = "Sinister",
['chance'] = 60
}
breedingTable[31] = {
['allele1'] = "Sinister",
['specialConditions'] = {},
['allele2'] = "Cultivated",
['result'] = "Fiendish",
['chance'] = 40
}
breedingTable[32] = {
['allele1'] = "Sinister",
['specialConditions'] = {},
['allele2'] = "Modest",
['result'] = "Fiendish",
['chance'] = 40
}
breedingTable[33] = {
['allele1'] = "Sinister",
['specialConditions'] = {},
['allele2'] = "Tropical",
['result'] = "Fiendish",
['chance'] = 40
}
breedingTable[34] = {
['allele1'] = "Sinister",
['specialConditions'] = {},
['allele2'] = "Fiendish",
['result'] = "Demonic",
['chance'] = 25
}
breedingTable[35] = {
['allele1'] = "Modest",
['specialConditions'] = {
[1] = "Temperature between WARM and HOT.",
[2] = "Humidity ARID required.",
},
['allele2'] = "Sinister",
['result'] = "Frugal",
['chance'] = 16
}
breedingTable[36] = {
['allele1'] = "Modest",
['specialConditions'] = {},
['allele2'] = "Fiendish",
['result'] = "Frugal",
['chance'] = 10
}
breedingTable[37] = {
['allele1'] = "Modest",
['specialConditions'] = {},
['allele2'] = "Frugal",
['result'] = "Austere",
['chance'] = 8
}
breedingTable[38] = {
['allele1'] = "Austere",
['specialConditions'] = {},
['allele2'] = "Tropical",
['result'] = "Exotic",
['chance'] = 12
}
breedingTable[39] = {
['allele1'] = "Exotic",
['specialConditions'] = {},
['allele2'] = "Tropical",
['result'] = "Edenic",
['chance'] = 8
}
breedingTable[40] = {
['allele1'] = "Industrious",
['specialConditions'] = {[1] = "Temperature between ICY and COLD."},
['allele2'] = "Wintry",
['result'] = "Icy",
['chance'] = 12
}
breedingTable[41] = {
['allele1'] = "Icy",
['specialConditions'] = {},
['allele2'] = "Wintry",
['result'] = "Glacial",
['chance'] = 8
}
breedingTable[42] = {
['allele1'] = "Meadows",
['specialConditions'] = {},
['allele2'] = "Forest",
['result'] = "Leporine",
['chance'] = 10
}
breedingTable[43] = {
['allele1'] = "Wintry",
['specialConditions'] = {},
['allele2'] = "Forest",
['result'] = "Merry",
['chance'] = 10
}
breedingTable[44] = {
['allele1'] = "Wintry",
['specialConditions'] = {},
['allele2'] = "Meadows",
['result'] = "Tipsy",
['chance'] = 10
}
breedingTable[45] = {
['allele1'] = "Sinister",
['specialConditions'] = {},
['allele2'] = "Common",
['result'] = "Tricky",
['chance'] = 10
}
breedingTable[46] = {
['allele1'] = "Meadows",
['specialConditions'] = {[1] = "Is restricted to PLAINS-like environments."},
['allele2'] = "Diligent",
['result'] = "Rural",
['chance'] = 12
}
breedingTable[47] = {
['allele1'] = "Monastic",
['specialConditions'] = {},
['allele2'] = "Austere",
['result'] = "Secluded",
['chance'] = 12
}
breedingTable[48] = {
['allele1'] = "Monastic",
['specialConditions'] = {},
['allele2'] = "Secluded",
['result'] = "Hermitic",
['chance'] = 8
}
breedingTable[49] = {
['allele1'] = "Hermitic",
['specialConditions'] = {},
['allele2'] = "Ender",
['result'] = "Spectral",
['chance'] = 4
}
breedingTable[50] = {
['allele1'] = "Spectral",
['specialConditions'] = {},
['allele2'] = "Ender",
['result'] = "Phantasmal",
['chance'] = 2
}
breedingTable[51] = {
['allele1'] = "Monastic",
['specialConditions'] = {},
['allele2'] = "Demonic",
['result'] = "Vindictive",
['chance'] = 4
}
breedingTable[52] = {
['allele1'] = "Demonic",
['specialConditions'] = {},
['allele2'] = "Vindictive",
['result'] = "Vengeful",
['chance'] = 8
}
breedingTable[53] = {
['allele1'] = "Monastic",
['specialConditions'] = {},
['allele2'] = "Vindictive",
['result'] = "Vengeful",
['chance'] = 8
}
breedingTable[54] = {
['allele1'] = "Vengeful",
['specialConditions'] = {},
['allele2'] = "Vindictive",
['result'] = "Avenging",
['chance'] = 4
}
breedingTable[55] = {
['allele1'] = "Meadows",
['specialConditions'] = {},
['allele2'] = "Modest",
['result'] = "Arid",
['chance'] = 10
}
breedingTable[56] = {
['allele1'] = "Arid",
['specialConditions'] = {},
['allele2'] = "Common",
['result'] = "Barren",
['chance'] = 8
}
breedingTable[57] = {
['allele1'] = "Arid",
['specialConditions'] = {},
['allele2'] = "Barren",
['result'] = "Desolate",
['chance'] = 8
}
breedingTable[58] = {
['allele1'] = "Barren",
['specialConditions'] = {},
['allele2'] = "Forest",
['result'] = "Gnawing",
['chance'] = 15
}
breedingTable[59] = {
['allele1'] = "Desolate",
['specialConditions'] = {},
['allele2'] = "Modest",
['result'] = "Decaying",
['chance'] = 15
}
breedingTable[60] = {
['allele1'] = "Desolate",
['specialConditions'] = {},
['allele2'] = "Frugal",
['result'] = "Skeletal",
['chance'] = 15
}
breedingTable[61] = {
['allele1'] = "Desolate",
['specialConditions'] = {},
['allele2'] = "Austere",
['result'] = "Creepy",
['chance'] = 15
}
breedingTable[62] = {
['allele1'] = "Gnawing",
['specialConditions'] = {},
['allele2'] = "Common",
['result'] = "Decomposing",
['chance'] = 15
}
breedingTable[63] = {
['allele1'] = "Rocky",
['specialConditions'] = {},
['allele2'] = "Diligent",
['result'] = "Tolerant",
['chance'] = 15
}
breedingTable[64] = {
['allele1'] = "Rocky",
['specialConditions'] = {},
['allele2'] = "Tolerant",
['result'] = "Robust",
['chance'] = 15
}
breedingTable[65] = {
['allele1'] = "Imperial",
['specialConditions'] = {},
['allele2'] = "Robust",
['result'] = "Resilient",
['chance'] = 15
}
breedingTable[66] = {
['allele1'] = "Resilient",
['specialConditions'] = {},
['allele2'] = "Meadows",
['result'] = "Rusty",
['chance'] = 5
}
breedingTable[67] = {
['allele1'] = "Resilient",
['specialConditions'] = {},
['allele2'] = "Forest",
['result'] = "Corroded",
['chance'] = 5
}
breedingTable[68] = {
['allele1'] = "Resilient",
['specialConditions'] = {},
['allele2'] = "Marshy",
['result'] = "Tarnished",
['chance'] = 5
}
breedingTable[69] = {
['allele1'] = "Resilient",
['specialConditions'] = {},
['allele2'] = "Unweary",
['result'] = "Leaden",
['chance'] = 5
}
breedingTable[70] = {
['allele1'] = "Resilient",
['specialConditions'] = {},
['allele2'] = "Unweary",
['result'] = "Lustered",
['chance'] = 10
}
breedingTable[71] = {
['allele1'] = "Rusty",
['specialConditions'] = {},
['allele2'] = "Imperial",
['result'] = "Shining",
['chance'] = 2
}
breedingTable[72] = {
['allele1'] = "Corroded",
['specialConditions'] = {},
['allele2'] = "Imperial",
['result'] = "Glittering",
['chance'] = 2
}
breedingTable[73] = {
['allele1'] = "Glittering",
['specialConditions'] = {},
['allele2'] = "Shining",
['result'] = "Valuable",
['chance'] = 2
}
breedingTable[74] = {
['allele1'] = "Resilient",
['specialConditions'] = {},
['allele2'] = "Water",
['result'] = "Lapis",
['chance'] = 5
}
breedingTable[75] = {
['allele1'] = "Lapis",
['specialConditions'] = {},
['allele2'] = "Noble",
['result'] = "Emerald",
['chance'] = 5
}
breedingTable[76] = {
['allele1'] = "Emerald",
['specialConditions'] = {},
['allele2'] = "Austere",
['result'] = "Ruby",
['chance'] = 5
}
breedingTable[77] = {
['allele1'] = "Emerald",
['specialConditions'] = {},
['allele2'] = "Ocean",
['result'] = "Sapphire",
['chance'] = 5
}
breedingTable[78] = {
['allele1'] = "Lapis",
['specialConditions'] = {},
['allele2'] = "Imperial",
['result'] = "Diamond",
['chance'] = 5
}
breedingTable[79] = {
['allele1'] = "Austere",
['specialConditions'] = {},
['allele2'] = "Rocky",
['result'] = "Unstable",
['chance'] = 5
}
breedingTable[80] = {
['allele1'] = "Unstable",
['specialConditions'] = {},
['allele2'] = "Rusty",
['result'] = "Nuclear",
['chance'] = 5
}
breedingTable[81] = {
['allele1'] = "Nuclear",
['specialConditions'] = {},
['allele2'] = "Glittering",
['result'] = "Radioactive",
['chance'] = 5
}
breedingTable[82] = {
['allele1'] = "Noble",
['specialConditions'] = {},
['allele2'] = "Diligent",
['result'] = "Ancient",
['chance'] = 10
}
breedingTable[83] = {
['allele1'] = "Ancient",
['specialConditions'] = {},
['allele2'] = "Noble",
['result'] = "Primeval",
['chance'] = 8
}
breedingTable[84] = {
['allele1'] = "Primeval",
['specialConditions'] = {},
['allele2'] = "Majestic",
['result'] = "Prehistoric",
['chance'] = 8
}
breedingTable[85] = {
['allele1'] = "Prehistoric",
['specialConditions'] = {},
['allele2'] = "Imperial",
['result'] = "Relic",
['chance'] = 8
}
breedingTable[86] = {
['allele1'] = "Primeval",
['specialConditions'] = {},
['allele2'] = "Growing",
['result'] = "Fossilised",
['chance'] = 8
}
breedingTable[87] = {
['allele1'] = "Primeval",
['specialConditions'] = {},
['allele2'] = "Fungal",
['result'] = "Resinous",
['chance'] = 8
}
breedingTable[88] = {
['allele1'] = "Primeval",
['specialConditions'] = {},
['allele2'] = "Ocean",
['result'] = "Oily",
['chance'] = 8
}
breedingTable[89] = {
['allele1'] = "Primeval",
['specialConditions'] = {},
['allele2'] = "Boggy",
['result'] = "Preserved",
['chance'] = 8
}
breedingTable[90] = {
['allele1'] = "Oily",
['specialConditions'] = {},
['allele2'] = "Industrious",
['result'] = "Distilled",
['chance'] = 8
}
breedingTable[91] = {
['allele1'] = "Oily",
['specialConditions'] = {},
['allele2'] = "Distilled",
['result'] = "Refined",
['chance'] = 8
}
breedingTable[92] = {
['allele1'] = "Refined",
['specialConditions'] = {},
['allele2'] = "Fossilised",
['result'] = "Tarry",
['chance'] = 8
}
breedingTable[93] = {
['allele1'] = "Refined",
['specialConditions'] = {},
['allele2'] = "Resinous",
['result'] = "Elastic",
['chance'] = 8
}
breedingTable[94] = {
['allele1'] = "Water",
['specialConditions'] = {},
['allele2'] = "Common",
['result'] = "River",
['chance'] = 10
}
breedingTable[95] = {
['allele1'] = "Water",
['specialConditions'] = {
[1] = "Hive needs to be in Ocean",
},
['allele2'] = "Diligent",
['result'] = "Ocean",
['chance'] = 10
}
breedingTable[96] = {
['allele1'] = "Ebony",
['specialConditions'] = {},
['allele2'] = "Ocean",
['result'] = "Stained",
['chance'] = 8
}
breedingTable[97] = {
['allele1'] = "Diligent",
['specialConditions'] = {},
['allele2'] = "Forest",
['result'] = "Growing",
['chance'] = 10
}
breedingTable[98] = {
['allele1'] = "Growing",
['specialConditions'] = {},
['allele2'] = "Rural",
['result'] = "Thriving",
['chance'] = 10
}
breedingTable[99] = {
['allele1'] = "Thriving",
['specialConditions'] = {},
['allele2'] = "Growing",
['result'] = "Blooming",
['chance'] = 8
}
breedingTable[100] = {
['allele1'] = "Valiant",
['specialConditions'] = {},
['allele2'] = "Diligent",
['result'] = "Sweetened",
['chance'] = 15
}
breedingTable[101] = {
['allele1'] = "Sweetened",
['specialConditions'] = {},
['allele2'] = "Diligent",
['result'] = "Sugary",
['chance'] = 15
}
breedingTable[102] = {
['allele1'] = "Sugary",
['specialConditions'] = {},
['allele2'] = "Forest",
['result'] = "Ripening",
['chance'] = 5
}
breedingTable[103] = {
['allele1'] = "Ripening",
['specialConditions'] = {},
['allele2'] = "Rural",
['result'] = "Fruity",
['chance'] = 5
}
breedingTable[104] = {
['allele1'] = "Cultivated",
['specialConditions'] = {},
['allele2'] = "Rural",
['result'] = "Farmed",
['chance'] = 10
}
breedingTable[105] = {
['allele1'] = "Rural",
['specialConditions'] = {},
['allele2'] = "Water",
['result'] = "Bovine",
['chance'] = 10
}
breedingTable[106] = {
['allele1'] = "Tropical",
['specialConditions'] = {},
['allele2'] = "Rural",
['result'] = "Caffeinated",
['chance'] = 10
}
breedingTable[107] = {
['allele1'] = "Common",
['specialConditions'] = {},
['allele2'] = "Marshy",
['result'] = "Damp",
['chance'] = 10
}
breedingTable[108] = {
['allele1'] = "Damp",
['specialConditions'] = {},
['allele2'] = "Marshy",
['result'] = "Boggy",
['chance'] = 8
}
breedingTable[109] = {
['allele1'] = "Boggy",
['specialConditions'] = {},