-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCreatureModifier.cs
1113 lines (1095 loc) · 36.8 KB
/
CreatureModifier.cs
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
using System.Collections.Generic;
public class CreatureModifier
{
public string name = string.Empty;
public string descrip = string.Empty;
public string partPath = null;
public bool showInCombat = false;
public CreatureModifierType type = CreatureModifierType.General;
public CreatureModifierId id = CreatureModifierId.None;
public int powerChange = 0;
public int speedChange = 0;
public int foodConsumptionChange = 0;
public float eatBonusChange = 0f;
public int childFoodConsumptionChange = 0;
public int maxFoodChange = 0;
public float enemyPctChanceChange = 0f;
public float matePctChanceChange = 0f;
public float wheelSpeedPctChange = 0f;
public int theyLoseFoodChange = 0;
public int mateSliceBonusChange = 0;
public int tribePopulationBonus = 0;
public int? appearsAfter = null; //have to be this many steps through the stage to see it
public int? guaranteedAfterRuns = null; //After completing this many runs, guarantee the mod gets shown
public bool reduceAppearsAfterByRuns = false; //Reduce the appears after by the number of runs completed
public bool repeatable = false;
public bool persistent = false; //mod always gets passed to the next generation
public bool restrictFromEnemies = false; //When set to true prevent enemies from getting this mod
public bool restrictFromMates = false; //When set to true prevent mates from getting this mod
public bool restrictFromPlayer = false; //Prevent the player from getting this mod or passing it on
public CreatureModifierId[] prereqMods; //must have all of the mods to get this mod
public CreatureModifierId[] excludeMods; //can't have any of the mods to get this mod
public CreatureModifierId[] replaceMods; //remove all these mods from the creature
public static Dictionary<CreatureModifierId, CreatureModifier> allModifiers = new Dictionary<CreatureModifierId, CreatureModifier>{
//General
{
CreatureModifierId.TribalNature,
new CreatureModifier(){
name = "Tribal Nature",
descrip = "Your tribes population takes one less wave to grow. Persistent",
type = CreatureModifierType.StageProgression,
id = CreatureModifierId.TribalNature,
persistent = true,
restrictFromEnemies = true,
restrictFromMates = true,
appearsAfter = 17,
guaranteedAfterRuns = 5,
reduceAppearsAfterByRuns = true,
tribePopulationBonus = 1,
}
},
{
CreatureModifierId.TribalNature2,
new CreatureModifier(){
name = "Tribal Nature II",
descrip = "Your tribes population takes one less wave to grow. Persistent",
type = CreatureModifierType.StageProgression,
id = CreatureModifierId.TribalNature2,
persistent = true,
restrictFromEnemies = true,
tribePopulationBonus = 1,
prereqMods = new CreatureModifierId[] { CreatureModifierId.TribalNature },
replaceMods = new CreatureModifierId[] { CreatureModifierId.TribalNature },
}
},
{
CreatureModifierId.TribalNature3,
new CreatureModifier(){
name = "Tribal Nature III",
descrip = "Your tribes population takes one less wave to grow. Persistent",
type = CreatureModifierType.StageProgression,
id = CreatureModifierId.TribalNature3,
persistent = true,
restrictFromEnemies = true,
tribePopulationBonus = 1,
prereqMods = new CreatureModifierId[] { CreatureModifierId.TribalNature2 },
replaceMods = new CreatureModifierId[] {
CreatureModifierId.TribalNature,
CreatureModifierId.TribalNature2,
},
}
},
{
CreatureModifierId.TribalNature4,
new CreatureModifier(){
name = "Tribal Nature IV",
descrip = "Your tribes population takes one less wave to grow. Persistent",
type = CreatureModifierType.StageProgression,
id = CreatureModifierId.TribalNature4,
persistent = true,
restrictFromEnemies = true,
tribePopulationBonus = 1,
appearsAfter = 15,
prereqMods = new CreatureModifierId[] { CreatureModifierId.TribalNature3 },
replaceMods = new CreatureModifierId[] {
CreatureModifierId.TribalNature,
CreatureModifierId.TribalNature2,
CreatureModifierId.TribalNature3,
},
}
},
{
CreatureModifierId.TribalNature5,
new CreatureModifier(){
name = "Tribal Nature V",
descrip = "Your tribes population takes one less wave to grow. Persistent",
type = CreatureModifierType.StageProgression,
id = CreatureModifierId.TribalNature5,
persistent = true,
restrictFromEnemies = true,
tribePopulationBonus = 1,
appearsAfter = 15,
prereqMods = new CreatureModifierId[] { CreatureModifierId.TribalNature4 },
replaceMods = new CreatureModifierId[] {
CreatureModifierId.TribalNature,
CreatureModifierId.TribalNature2,
CreatureModifierId.TribalNature3,
CreatureModifierId.TribalNature4
},
}
},
{
CreatureModifierId.TribalNature6,
new CreatureModifier(){
name = "Tribal Nature VI",
descrip = "Your tribes population takes one less wave to grow. Persistent",
type = CreatureModifierType.StageProgression,
id = CreatureModifierId.TribalNature6,
persistent = true,
restrictFromEnemies = true,
tribePopulationBonus = 1,
appearsAfter = 15,
prereqMods = new CreatureModifierId[] { CreatureModifierId.TribalNature5 },
replaceMods = new CreatureModifierId[] {
CreatureModifierId.TribalNature,
CreatureModifierId.TribalNature2,
CreatureModifierId.TribalNature3,
CreatureModifierId.TribalNature4,
CreatureModifierId.TribalNature5
},
}
},
{
CreatureModifierId.Scavenger,
new CreatureModifier(){
name = "Scavenger",
descrip = "Find 10% more food when eating. Food Consumption +1",
type = CreatureModifierType.General,
id = CreatureModifierId.Scavenger,
eatBonusChange = 0.10f,
foodConsumptionChange = 1,
}
},
{
CreatureModifierId.Scavenger2,
new CreatureModifier(){
name = "Scavenger II",
descrip = "Find 10% more food when eating. Food Consumption +2",
type = CreatureModifierType.General,
id = CreatureModifierId.Scavenger2,
eatBonusChange = 0.20f,
foodConsumptionChange = 3,
prereqMods = new CreatureModifierId[] { CreatureModifierId.Scavenger },
replaceMods = new CreatureModifierId[] { CreatureModifierId.Scavenger },
}
},
{
CreatureModifierId.NurturingParent,
new CreatureModifier(){
name = "Nurturing Parent",
descrip = "Reduce food each child needs by 2.",
type = CreatureModifierType.General,
id = CreatureModifierId.NurturingParent,
childFoodConsumptionChange = -2,
restrictFromEnemies = true,
}
},
{
CreatureModifierId.NurturingParent2,
new CreatureModifier(){
name = "Nurturing Parent II",
descrip = "Reduce food each child needs by 2.",
type = CreatureModifierType.General,
id = CreatureModifierId.NurturingParent2,
childFoodConsumptionChange = -4,
restrictFromEnemies = true,
prereqMods = new CreatureModifierId[] { CreatureModifierId.NurturingParent },
replaceMods = new CreatureModifierId[] { CreatureModifierId.NurturingParent }
}
},
{
CreatureModifierId.NurturingParent3,
new CreatureModifier(){
name = "Nurturing Parent III",
descrip = "Reduce food each child needs by 2.",
type = CreatureModifierType.General,
id = CreatureModifierId.NurturingParent3,
childFoodConsumptionChange = -6,
restrictFromEnemies = true,
prereqMods = new CreatureModifierId[] { CreatureModifierId.NurturingParent2 },
replaceMods = new CreatureModifierId[] {
CreatureModifierId.NurturingParent,
CreatureModifierId.NurturingParent2
}
}
},
//Make sure to sync the text with the CreatureCanRun logic
{
CreatureModifierId.Ambush,
new CreatureModifier(){
name = "Ambush",
descrip = "Creatures with speed less than your power can't run away",
showInCombat = true,
type = CreatureModifierType.General,
id = CreatureModifierId.Ambush,
}
},
{
CreatureModifierId.Stubborn,
new CreatureModifier(){
name = "Stubborn",
descrip = "Convert \"You run away\" to \"Win\" in combat.",
showInCombat = true,
appearsAfter = 10,
type = CreatureModifierType.General,
id = CreatureModifierId.Stubborn,
}
},
{
CreatureModifierId.Hunter,
new CreatureModifier(){
name = "Hunter",
descrip = "Find 10% more enemy creatures. Food Consumption +1",
restrictFromEnemies = true,
type = CreatureModifierType.General,
id = CreatureModifierId.Hunter,
foodConsumptionChange = 1,
enemyPctChanceChange = 0.1f,
prereqMods = new CreatureModifierId[] { CreatureModifierId.Carnivore }
}
},
{
CreatureModifierId.Hunter2,
new CreatureModifier(){
name = "Hunter II",
descrip = "Find 10% more enemy creatures. Food Consumption +2",
restrictFromEnemies = true,
type = CreatureModifierType.General,
id = CreatureModifierId.Hunter2,
foodConsumptionChange = 3,
enemyPctChanceChange = 0.2f,
prereqMods = new CreatureModifierId[] { CreatureModifierId.Carnivore, CreatureModifierId.Hunter },
replaceMods = new CreatureModifierId[] { CreatureModifierId.Hunter }
}
},
{
CreatureModifierId.Hunter3,
new CreatureModifier(){
name = "Hunter III",
descrip = "Find 10% more enemy creatures. Food Consumption +3",
restrictFromEnemies = true,
type = CreatureModifierType.General,
id = CreatureModifierId.Hunter3,
foodConsumptionChange = 6,
enemyPctChanceChange = 0.3f,
prereqMods = new CreatureModifierId[] { CreatureModifierId.Carnivore, CreatureModifierId.Hunter2 },
replaceMods = new CreatureModifierId[] {
CreatureModifierId.Hunter,
CreatureModifierId.Hunter2
}
}
},
{
CreatureModifierId.Cardio,
new CreatureModifier(){
name = "Cardio",
descrip = "Speed +1. Food Consumption +1",
showInCombat = true,
type = CreatureModifierType.General,
id = CreatureModifierId.Cardio,
foodConsumptionChange = 1,
speedChange = 1,
}
},
{
CreatureModifierId.Cardio2,
new CreatureModifier(){
name = "Cardio II",
descrip = "Speed +2. Food Consumption +2",
showInCombat = true,
type = CreatureModifierType.General,
id = CreatureModifierId.Cardio2,
foodConsumptionChange = 3,
speedChange = 3,
prereqMods = new CreatureModifierId[] { CreatureModifierId.Cardio },
replaceMods = new CreatureModifierId[] { CreatureModifierId.Cardio },
}
},
{
CreatureModifierId.Cardio3,
new CreatureModifier(){
name = "Cardio III",
descrip = "Speed +3. Food Consumption +3",
showInCombat = true,
type = CreatureModifierType.General,
id = CreatureModifierId.Cardio3,
foodConsumptionChange = 6,
speedChange = 6,
prereqMods = new CreatureModifierId[] { CreatureModifierId.Cardio },
replaceMods = new CreatureModifierId[] {
CreatureModifierId.Cardio,
CreatureModifierId.Cardio2
},
}
},
{
CreatureModifierId.LeanMetabolism,
new CreatureModifier(){
name = "Lean Metabolism",
descrip = "Reduce food consumption by 5, and your food capacity by 25.",
type = CreatureModifierType.General,
id = CreatureModifierId.LeanMetabolism,
foodConsumptionChange = -5,
maxFoodChange = -25
}
},
{
CreatureModifierId.QuickReflexes,
new CreatureModifier(){
name = "Quick Reflexes",
descrip = "Slow down combat wheel by 10%.",
type = CreatureModifierType.General,
id = CreatureModifierId.QuickReflexes,
showInCombat = true,
wheelSpeedPctChange = 0.10f,
appearsAfter = 8,
}
},
{
CreatureModifierId.QuickReflexes2,
new CreatureModifier(){
name = "Quick Reflexes II",
descrip = "Slow down combat wheel by 10%.",
type = CreatureModifierType.General,
id = CreatureModifierId.QuickReflexes2,
showInCombat = true,
wheelSpeedPctChange = 0.2f,
appearsAfter = 10,
prereqMods = new CreatureModifierId[]{ CreatureModifierId.QuickReflexes },
replaceMods = new CreatureModifierId[] { CreatureModifierId.QuickReflexes },
}
},
{
CreatureModifierId.QuickReflexes3,
new CreatureModifier(){
name = "Quick Reflexes III",
descrip = "Slow down combat wheel by 10%.",
type = CreatureModifierType.General,
id = CreatureModifierId.QuickReflexes3,
showInCombat = true,
wheelSpeedPctChange = 0.3f,
appearsAfter = 12,
prereqMods = new CreatureModifierId[]{ CreatureModifierId.QuickReflexes2 },
replaceMods = new CreatureModifierId[] {
CreatureModifierId.QuickReflexes,
CreatureModifierId.QuickReflexes2
},
}
},
{
CreatureModifierId.QuickReflexes4,
new CreatureModifier(){
name = "Quick Reflexes IV",
descrip = "Slow down combat wheel by 10%.",
type = CreatureModifierType.General,
id = CreatureModifierId.QuickReflexes4,
showInCombat = true,
wheelSpeedPctChange = 0.4f,
appearsAfter = 12,
prereqMods = new CreatureModifierId[]{ CreatureModifierId.QuickReflexes3 },
replaceMods = new CreatureModifierId[] {
CreatureModifierId.QuickReflexes,
CreatureModifierId.QuickReflexes2,
CreatureModifierId.QuickReflexes3
},
}
},
{
CreatureModifierId.EnhancedGenome,
new CreatureModifier(){
name = "Enhanced Genome",
descrip = "Save one more adaptation each successful child rearing. Persistent.",
type = CreatureModifierType.General,
id = CreatureModifierId.EnhancedGenome,
repeatable = true,
persistent = true,
//Disable this from everyone now, don't want to remove because all of the dictionary lookups that assume it's here
restrictFromEnemies = true,
restrictFromPlayer = true,
restrictFromMates = true,
appearsAfter = 8,
}
},
{
CreatureModifierId.SmoothMoves,
new CreatureModifier(){
name = "Smooth Moves",
descrip = "Slices in mating are 1 larger",
type = CreatureModifierType.General,
id = CreatureModifierId.SmoothMoves,
mateSliceBonusChange = 1,
restrictFromEnemies = true,
}
},
{
CreatureModifierId.SmoothMoves2,
new CreatureModifier(){
name = "Smooth Moves II",
descrip = "Slices in mating are 1 larger",
type = CreatureModifierType.General,
id = CreatureModifierId.SmoothMoves2,
mateSliceBonusChange = 2,
restrictFromEnemies = true,
prereqMods = new CreatureModifierId[]{ CreatureModifierId.SmoothMoves },
replaceMods = new CreatureModifierId[] { CreatureModifierId.SmoothMoves },
}
},
{
CreatureModifierId.SmoothMoves3,
new CreatureModifier(){
name = "Smooth Moves III",
descrip = "Slices in mating are 1 larger",
type = CreatureModifierType.General,
id = CreatureModifierId.SmoothMoves3,
mateSliceBonusChange = 5,
restrictFromEnemies = true,
prereqMods = new CreatureModifierId[]{ CreatureModifierId.SmoothMoves2 },
replaceMods = new CreatureModifierId[] {
CreatureModifierId.SmoothMoves,
CreatureModifierId.SmoothMoves2
},
}
},
//Body
{
CreatureModifierId.SmallBody,
new CreatureModifier(){
name = "Small Body",
descrip = string.Empty,
partPath = "small",
type = CreatureModifierType.Body,
id = CreatureModifierId.SmallBody,
appearsAfter = 9999, //hack to never show
}
},
{
CreatureModifierId.MediumBody,
new CreatureModifier(){
name = "Medium Body",
descrip = "Power +2. Food Consumption +4. Speed -1. Food Capacity +25",
partPath = "medium",
type = CreatureModifierType.Body,
id = CreatureModifierId.MediumBody,
powerChange = 2,
foodConsumptionChange = 4,
speedChange = -1,
maxFoodChange = 25,
replaceMods = new CreatureModifierId[] { CreatureModifierId.SmallBody },
}
},
{
CreatureModifierId.LargeBody,
new CreatureModifier(){
name = "Large Body",
descrip = "Power +2. Food Consumption +4. Speed -2. Food Capacity +25",
partPath = "large",
type = CreatureModifierType.Body,
id = CreatureModifierId.LargeBody,
powerChange = 4,
foodConsumptionChange = 8,
speedChange = -2,
maxFoodChange = 50,
prereqMods = new CreatureModifierId[]{ CreatureModifierId.MediumBody },
replaceMods = new CreatureModifierId[] {
CreatureModifierId.SmallBody,
CreatureModifierId.MediumBody
},
}
},
{
CreatureModifierId.LongNeck,
new CreatureModifier(){
name = "Long Neck",
descrip = "Can now eat tall foliage. Speed -1.",
type = CreatureModifierType.BodyAccessory,
id = CreatureModifierId.LongNeck,
speedChange = -1,
prereqMods = new CreatureModifierId[]{ CreatureModifierId.Herbivore },
excludeMods = new CreatureModifierId[]{ CreatureModifierId.SmallBody }
}
},
{
CreatureModifierId.LongerNeck,
new CreatureModifier(){
name = "Longer Neck",
descrip = "Find 40% more food. Speed -2.",
//Special case for this one
partPath = "tall body",
type = CreatureModifierType.BodyAccessory,
id = CreatureModifierId.LongerNeck,
speedChange = -3,
eatBonusChange = 0.40f,
prereqMods = new CreatureModifierId[]{ CreatureModifierId.Herbivore, CreatureModifierId.LongNeck, CreatureModifierId.LargeBody },
replaceMods = new CreatureModifierId[] { CreatureModifierId.LongNeck },
}
},
{
CreatureModifierId.ThickHide,
new CreatureModifier(){
name = "Thick Hide",
descrip = "Power +2. Speed -1. Food Consumption +2",
type = CreatureModifierType.BodyAccessory,
id = CreatureModifierId.ThickHide,
powerChange = 2,
speedChange = -1,
foodConsumptionChange = 2,
}
},
{
CreatureModifierId.ArmorHide,
new CreatureModifier(){
name = "Armor Hide",
descrip = "Power +2. Speed -2. Food Consumption +4",
type = CreatureModifierType.BodyAccessory,
id = CreatureModifierId.ArmorHide,
powerChange = 4,
speedChange = -3,
foodConsumptionChange = 6,
prereqMods = new CreatureModifierId[]{ CreatureModifierId.ThickHide },
replaceMods = new CreatureModifierId[] { CreatureModifierId.ThickHide },
}
},
{
CreatureModifierId.DorsalSail,
new CreatureModifier(){
name = "Dorsal Sail",
descrip = "Reduce Food Consumption by 2. Find 8% more mates",
type = CreatureModifierType.Back,
id = CreatureModifierId.DorsalSail,
partPath = "DorsalSail",
foodConsumptionChange = -2,
matePctChanceChange = 0.08f,
excludeMods = new CreatureModifierId[]{
CreatureModifierId.Bipedalism,
CreatureModifierId.LargeBody,
CreatureModifierId.DorsalSpines
},
}
},
{
CreatureModifierId.DorsalSail2,
new CreatureModifier(){
name = "Dorsal Sail II",
descrip = "Reduce Food Consumption by 2. Find 8% more mates",
type = CreatureModifierType.Back,
id = CreatureModifierId.DorsalSail2,
partPath = "DorsalSail2",
foodConsumptionChange = -4,
matePctChanceChange = 0.16f,
excludeMods = new CreatureModifierId[]{
CreatureModifierId.Bipedalism,
CreatureModifierId.LargeBody,
CreatureModifierId.DorsalSpines
},
prereqMods = new CreatureModifierId[]{ CreatureModifierId.DorsalSail },
replaceMods = new CreatureModifierId[]{ CreatureModifierId.DorsalSail }
}
},
{
CreatureModifierId.DorsalSpines,
new CreatureModifier(){
name = "Dorsal Spines",
descrip = "Power +2",
type = CreatureModifierType.Back,
id = CreatureModifierId.DorsalSpines,
partPath = "DorsalSpines",
powerChange = 2,
excludeMods = new CreatureModifierId[]{
CreatureModifierId.Bipedalism,
CreatureModifierId.LargeBody,
CreatureModifierId.DorsalSail,
CreatureModifierId.DorsalSail2,
},
}
},
{
CreatureModifierId.DoubleStomach,
new CreatureModifier(){
name = "Double Stomach",
descrip = "+50% food from foliage. Food Consumption +4",
type = CreatureModifierType.BodyAccessory,
id = CreatureModifierId.DoubleStomach,
eatBonusChange = 0.5f,
foodConsumptionChange = 4,
prereqMods = new CreatureModifierId[]{ CreatureModifierId.Herbivore }
}
},
{
CreatureModifierId.FatReserves,
new CreatureModifier(){
name = "Fat Reserves",
descrip = "Food capacity +50. Speed -2.",
type = CreatureModifierType.BodyAccessory,
id = CreatureModifierId.FatReserves,
maxFoodChange = 50,
speedChange = -2,
}
},
{
CreatureModifierId.TailSpikes,
new CreatureModifier(){
name = "Tail Spikes",
descrip = "Power +1",
type = CreatureModifierType.Tail,
id = CreatureModifierId.TailSpikes,
powerChange = 1,
partPath = "TailSpikes"
}
},
{
CreatureModifierId.TailClub,
new CreatureModifier(){
name = "Tail Club",
descrip = "Power +1. Food Consumption +2",
partPath = "TailClub",
type = CreatureModifierType.Tail,
id = CreatureModifierId.TailClub,
powerChange = 2,
foodConsumptionChange = 2,
prereqMods = new CreatureModifierId[]{ CreatureModifierId.TailSpikes },
replaceMods = new CreatureModifierId[] { CreatureModifierId.TailSpikes },
}
},
//Head
{
CreatureModifierId.Omnivore,
new CreatureModifier(){
name = "Omnivore",
descrip = "Can eat foliage and other creatures.",
partPath = "Omnivore Head",
type = CreatureModifierType.Head,
id = CreatureModifierId.Omnivore,
appearsAfter = 9999,
}
},
{
CreatureModifierId.Herbivore,
new CreatureModifier(){
name = "Herbivore",
descrip = "Power +1. Food consumption +3. Unlocks eating medium foliage. Can no longer eat creatures.",
partPath = "Herbivore Head",
type = CreatureModifierType.Head,
id = CreatureModifierId.Herbivore,
powerChange = 1,
foodConsumptionChange = 3,
excludeMods = new CreatureModifierId[]{ CreatureModifierId.Carnivore },
replaceMods = new CreatureModifierId[] { CreatureModifierId.Omnivore },
}
},
{
CreatureModifierId.Carnivore,
new CreatureModifier(){
name = "Carnivore",
descrip = "Power +1. Food consumption +5. +10 food eating creatures. Can no longer eat foliage.",
partPath = "Carnivore Head",
type = CreatureModifierType.Head,
id = CreatureModifierId.Carnivore,
powerChange = 1,
foodConsumptionChange = 5,
excludeMods = new CreatureModifierId[]{ CreatureModifierId.Herbivore },
replaceMods = new CreatureModifierId[] { CreatureModifierId.Omnivore },
}
},
{
CreatureModifierId.SmallHorns,
new CreatureModifier(){
name = "Small Horns",
descrip = "Power +1. Add +10 to \"They Lose Food\"",
type = CreatureModifierType.HeadAccessory,
id = CreatureModifierId.SmallHorns,
partPath = "SmallHorns",
powerChange = 1,
theyLoseFoodChange = 10,
excludeMods = new CreatureModifierId[]{ CreatureModifierId.Plume }
}
},
{
CreatureModifierId.MediumHorns,
new CreatureModifier(){
name = "Medium Horns",
descrip = "Power +1. Add +10 to \"They Lose Food\"",
type = CreatureModifierType.HeadAccessory,
id = CreatureModifierId.MediumHorns,
partPath = "MediumHorns",
powerChange = 2,
theyLoseFoodChange = 20,
prereqMods = new CreatureModifierId[] { CreatureModifierId.SmallHorns },
replaceMods = new CreatureModifierId[] { CreatureModifierId.SmallHorns },
}
},
{
CreatureModifierId.LargeHorns,
new CreatureModifier(){
name = "Large Horns",
descrip = "Power +1. Add +10 to \"They Lose Food\"",
type = CreatureModifierType.HeadAccessory,
id = CreatureModifierId.LargeHorns,
partPath = "LargeHorns",
powerChange = 3,
theyLoseFoodChange = 30,
prereqMods = new CreatureModifierId[] { CreatureModifierId.MediumHorns },
replaceMods = new CreatureModifierId[] {
CreatureModifierId.SmallHorns,
CreatureModifierId.MediumHorns
},
}
},
{
CreatureModifierId.ImprovedHearing,
new CreatureModifier(){
name = "Improved Hearing",
descrip = "Speed +1. Find 10% fewer enemy creatures",
type = CreatureModifierType.HeadAccessory,
id = CreatureModifierId.ImprovedHearing,
speedChange = 1,
enemyPctChanceChange = -0.1f,
}
},
{
CreatureModifierId.EnhancedHearing,
new CreatureModifier(){
name = "Enhanced Hearing",
descrip = "Speed +1. Find 10% fewer enemy creatures",
type = CreatureModifierType.HeadAccessory,
id = CreatureModifierId.EnhancedHearing,
speedChange = 2,
enemyPctChanceChange = -0.2f,
prereqMods = new CreatureModifierId[] { CreatureModifierId.ImprovedHearing },
replaceMods = new CreatureModifierId[] { CreatureModifierId.ImprovedHearing },
}
},
{
CreatureModifierId.IncredibleHearing,
new CreatureModifier(){
name = "Incredible Hearing",
descrip = "Speed +1. Find 10% fewer enemy creatures",
type = CreatureModifierType.HeadAccessory,
id = CreatureModifierId.IncredibleHearing,
speedChange = 3,
enemyPctChanceChange = -0.3f,
prereqMods = new CreatureModifierId[] { CreatureModifierId.EnhancedHearing },
replaceMods = new CreatureModifierId[] {
CreatureModifierId.ImprovedHearing,
CreatureModifierId.EnhancedHearing
},
}
},
{
CreatureModifierId.Plume,
new CreatureModifier(){
name = "Plume",
descrip = "Find 15% more mates.",
partPath = "SmallPlume",
type = CreatureModifierType.HeadAccessory,
id = CreatureModifierId.Plume,
matePctChanceChange = 0.15f,
excludeMods = new CreatureModifierId[] { CreatureModifierId.SmallHorns }
}
},
{
CreatureModifierId.Plume2,
new CreatureModifier(){
name = "Plume II",
descrip = "Find 15% more mates.",
partPath = "MediumPlume",
type = CreatureModifierType.HeadAccessory,
id = CreatureModifierId.Plume2,
matePctChanceChange = 0.3f,
prereqMods = new CreatureModifierId[] { CreatureModifierId.Plume },
replaceMods = new CreatureModifierId[] { CreatureModifierId.Plume },
}
},
{
CreatureModifierId.Plume3,
new CreatureModifier(){
name = "Plume III",
descrip = "Find 15% more mates.",
partPath = "LargePlume",
type = CreatureModifierType.HeadAccessory,
id = CreatureModifierId.Plume3,
matePctChanceChange = 0.45f,
prereqMods = new CreatureModifierId[] { CreatureModifierId.Plume2 },
replaceMods = new CreatureModifierId[] {
CreatureModifierId.Plume,
CreatureModifierId.Plume2
},
}
},
{
CreatureModifierId.SharpTeeth,
new CreatureModifier(){
name = "Sharp Teeth",
descrip = "Power +1",
type = CreatureModifierType.HeadAccessory,
id = CreatureModifierId.SharpTeeth,
powerChange = 1,
prereqMods = new CreatureModifierId[] { CreatureModifierId.Carnivore }
}
},
{
CreatureModifierId.SharperTeeth,
new CreatureModifier(){
name = "Sharper Teeth",
descrip = "Power +1",
type = CreatureModifierType.HeadAccessory,
id = CreatureModifierId.SharperTeeth,
powerChange = 2,
prereqMods = new CreatureModifierId[] { CreatureModifierId.SharpTeeth },
replaceMods = new CreatureModifierId[] { CreatureModifierId.SharpTeeth },
}
},
{
CreatureModifierId.RazorTeeth,
new CreatureModifier(){
name = "Razor Teeth",
descrip = "Power +1",
type = CreatureModifierType.HeadAccessory,
id = CreatureModifierId.RazorTeeth,
powerChange = 3,
prereqMods = new CreatureModifierId[] { CreatureModifierId.SharperTeeth },
replaceMods = new CreatureModifierId[] {
CreatureModifierId.SharpTeeth,
CreatureModifierId.SharperTeeth
},
}
},
{
CreatureModifierId.ImprovedSmell,
new CreatureModifier(){
name = "Improved Sense of Smell",
descrip = "Speed +1. Find 5% more mates",
type = CreatureModifierType.HeadAccessory,
id = CreatureModifierId.ImprovedSmell,
speedChange = 1,
matePctChanceChange = 0.05f,
}
},
{
CreatureModifierId.EnhancedSmell,
new CreatureModifier(){
name = "Enhanced Sense of Smell",
descrip = "Speed +1. Find 5% more mates",
type = CreatureModifierType.HeadAccessory,
id = CreatureModifierId.EnhancedSmell,
speedChange = 2,
matePctChanceChange = 0.10f,
prereqMods = new CreatureModifierId[] { CreatureModifierId.ImprovedSmell },
replaceMods = new CreatureModifierId[] { CreatureModifierId.ImprovedSmell },
}
},
{
CreatureModifierId.IncredibleSmell,
new CreatureModifier(){
name = "Incredible Sense of Smell",
descrip = "Speed +1. Find 5% more mates",
type = CreatureModifierType.HeadAccessory,
id = CreatureModifierId.IncredibleSmell,
speedChange = 3,
matePctChanceChange = 0.15f,
prereqMods = new CreatureModifierId[] { CreatureModifierId.EnhancedSmell },
replaceMods = new CreatureModifierId[] {
CreatureModifierId.ImprovedSmell,
CreatureModifierId.EnhancedSmell
},
}
},
{
CreatureModifierId.SharpEyesight,
new CreatureModifier(){
name = "Sharp Eyesight",
descrip = "Speed +1",
type = CreatureModifierType.HeadAccessory,
id = CreatureModifierId.SharpEyesight,
speedChange = 1
}
},
//Appendages
{
CreatureModifierId.SharpClaws,
new CreatureModifier(){
name = "Sharp Claws",
descrip = "Power +1",
type = CreatureModifierType.Arm,
id = CreatureModifierId.SharpClaws,
powerChange = 1
}
},
{
CreatureModifierId.Talons,
new CreatureModifier(){
name = "Talons",
descrip = "Power +1. Speed -1",
type = CreatureModifierType.Arm,
id = CreatureModifierId.Talons,
powerChange = 2,
speedChange = -1,
prereqMods = new CreatureModifierId[]{ CreatureModifierId.SharpClaws },
replaceMods = new CreatureModifierId[] { CreatureModifierId.SharpClaws },
}
},
{
CreatureModifierId.QuickLegs,
new CreatureModifier(){
name = "Quick Legs",
descrip = "Speed +1",
type = CreatureModifierType.Leg,
id = CreatureModifierId.QuickLegs,
speedChange = 1
}
},
{
CreatureModifierId.SpeedyLegs,
new CreatureModifier(){
name = "Speedy Legs",
descrip = "Speed +2. Power -1",
type = CreatureModifierType.Leg,
id = CreatureModifierId.SpeedyLegs,
speedChange = 3,
powerChange = -1,
prereqMods = new CreatureModifierId[]{ CreatureModifierId.QuickLegs },
replaceMods = new CreatureModifierId[] { CreatureModifierId.QuickLegs },
}
},
{
CreatureModifierId.SwiftLegs,
new CreatureModifier(){
name = "Swift Legs",
descrip = "Speed +2",
type = CreatureModifierType.Leg,
id = CreatureModifierId.SwiftLegs,
speedChange = 5,
powerChange = -1,
prereqMods = new CreatureModifierId[]{ CreatureModifierId.SpeedyLegs },
replaceMods = new CreatureModifierId[] {
CreatureModifierId.QuickLegs,
CreatureModifierId.SpeedyLegs
},
excludeMods = new CreatureModifierId[]{
CreatureModifierId.MediumBody,
CreatureModifierId.LargeBody
},
}
},
{
CreatureModifierId.Bipedalism,
new CreatureModifier(){
name = "Bipedalism",
descrip = "Speed +2. Food Consumption +2",
type = CreatureModifierType.Leg,
id = CreatureModifierId.Bipedalism,
speedChange = 2,
foodConsumptionChange = 2,
excludeMods = new CreatureModifierId[]{ CreatureModifierId.ArmorHide }
}
},
{
CreatureModifierId.Climbing,
new CreatureModifier(){
name = "Climbing",
descrip = "Can now eat tall foliage.",
type = CreatureModifierType.Arm,
id = CreatureModifierId.Climbing,
prereqMods = new CreatureModifierId[]{ CreatureModifierId.Herbivore },
excludeMods = new CreatureModifierId[]{ CreatureModifierId.MediumBody, CreatureModifierId.LargeBody }
}
},
};
public static Dictionary<CreatureModifierType, string> modifierIcons = new Dictionary<CreatureModifierType, string>(){
{CreatureModifierType.General, "Art/stage4/parts/icons/general_icon"},
{CreatureModifierType.Body, "Art/stage4/parts/icons/body_icon"},
{CreatureModifierType.BodyAccessory, "Art/stage4/parts/icons/body_icon"},