forked from cameroncondry/cbc-kitten-scientists
-
Notifications
You must be signed in to change notification settings - Fork 0
/
kitten-scientists.user.js
5532 lines (4819 loc) · 255 KB
/
kitten-scientists.user.js
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
// ==UserScript==
// @name Kitten Scientists
// @namespace http://www.reddit.com/r/kittensgame/comments/34gb2u/kitten_scientists_automation_script/
// @description Launch Kitten Scientists
// @include *bloodrizer.ru/games/kittens/*
// @include file:///*kitten-game*
// @include *kittensgame.com/web/*
// @include *kittensgame.com/beta/*
// @include *kittensgame.com/alpha/*
// @version 1.5.0
// @grant none
// @copyright 2015, cameroncondry
// ==/UserScript==
// ==========================================
// Begin Kitten Scientist's Automation Engine
// ==========================================
var kg_version = 'Kitten Scientists version 1.5.0';
var address = '1HDV6VEnXH9m8PJuT4eQD7v8jRnucbneaq';
// Game will be referenced in loadTest function
var game = null;
var i18ng = null;
var lang = 'en';
var run = function() {
var i18nData = {
'en': {
'option.observe': 'Observe Astro Events',
'option.festival': 'Hold Festivals',
'option.praise': 'Auto Praise',
'option.shipOverride': 'Force Ships to 243',
'option.autofeed': 'Feed Leviathans',
'option.hunt': 'Hunt',
'option.crypto': 'Trade Blackcoin',
'option.embassies': 'Build Embassies (Beta)',
'option.style': 'View Full Width',
'option.steamworks': 'Turn on Production buildings',
'filter.build': 'Building',
'filter.craft': 'Crafting',
'filter.upgrade': 'Upgrading',
'filter.research': 'Researching',
'filter.trade': 'Trading',
'filter.hunt': 'Hunting',
'filter.praise': 'Praising',
'filter.faith': 'Order of the Sun',
'filter.festival': 'Festivals',
'filter.star': 'Astronomical Events',
'filter.misc': 'Miscellaneous',
'dispose.necrocorn': 'Kittens disposed of inefficient necrocorns',
'blackcoin.buy': 'Kittens sold your Relics and bought {0} Blackcoins',
'blackcoin.sell': 'Kittens sold your Blackcoins and bought {0} Relics',
'act.feed': 'Kittens fed the Elders. The elders are pleased',
'act.observe': 'Kitten Scientists have observed a star',
'act.hunt': 'Sent kittens on {0} hunts',
'act.build': 'Kittens have built a new {0}',
'act.builds': 'Kittens have built a new {0} {1} times.',
'act.craft': 'Kittens have crafted {0} {1}',
'act.trade': 'Kittens have traded {0}x with {1}',
'upgrade.space.mission': 'Kittens conducted a mission to {0}',
'upgrade.space': 'Kittens conducted a {0}',
'upgrade.race': 'Kittens met the {0}',
'upgrade.building.pasture': 'Upgraded pastures to solar farms!',
'upgrade.building.aqueduct': 'Upgraded aqueducts to hydro plants!',
'upgrade.building.library': 'Upgraded libraries to data centers!',
'upgrade.building.amphitheatre': 'Upgraded amphitheatres to broadcast towers!',
'upgrade.upgrade': 'Kittens have bought the upgrade {0}',
'upgrade.limited': 'Optimize {0}',
'upgrade.unlimited': 'All {0}',
'upgrade.tech': 'Kittens have bought the tech {0}',
'upgrade.policy': 'Kittens have passed {0}',
'festival.hold': 'Kittens begin holding a festival',
'festival.extend': 'Kittens extend the festival',
'build.embassy': 'Built {0} embassy for {1}',
'build.embassies': 'Built {0} embassies for {1}',
'act.praise': 'Praised the sun! Accumulated {0} faith to {1} worship',
'act.sun.discover': 'Kittens have discovered {0}',
'act.sun.discovers': 'Kittens have discovered {0} {1} times.',
'ui.items': 'items',
'ui.disable.all': 'disable all',
'ui.enable.all': 'enable all',
'ui.craft.resources': 'resources',
'ui.trigger': 'trigger',
'ui.trigger.set': 'Enter a new trigger value for {0}. Should be in the range of 0 to 1.',
'ui.limit': 'Limited',
'ui.trigger.missions.set': 'Enter a new trigger value for missions. Should be in the range of 0 to 13. Corresponds to each planet sort',
'ui.trigger.crypto.set': 'Enter a new trigger value for {0}. Corresponds to the amount of Relics needed before the exchange is made.',
'ui.engine': 'Enable Scientists',
'ui.build': 'Bonfire',
'ui.space': 'Space',
'ui.craft': 'Crafting',
'ui.upgrade': 'Unlocking',
'ui.trade': 'Trading',
'ui.faith': 'Religion',
'ui.time': 'Time',
'ui.options': 'Options',
'ui.filter': 'Filters',
'ui.distribute': 'Kitten Resources',
'ui.max': 'Max: {0}',
'ui.upgrade.upgrades': 'Upgrades',
'ui.upgrade.techs': 'Techs',
'ui.upgrade.races': 'Races',
'ui.upgrade.missions': 'Missions',
'ui.upgrade.buildings': 'Buildings',
'ui.upgrade.policies': 'Policies',
'ui.upgrade.policies.load': 'Load',
'ui.upgrade.policies.show': 'Show',
'ui.faith.addtion': 'addition',
'option.faith.best.unicorn': 'Build Best Unicorn Building First',
'option.faith.best.unicorn.desc': 'Include auto Sacrifice Unicorns if tears are not enough to build the best unicorn building',
'option.faith.transcend': 'Auto Transcend',
'act.transcend': 'Spend {0} epiphany, Transcend to T-level: {1}',
'summary.transcend': 'Transcend {0} times',
'filter.transcend': 'Transcend',
'option.faith.adore': 'Auto Adore the Galaxy',
'act.adore': 'Adore the galaxy! Accumulated {0} worship to {1} epiphany',
'summary.adore': 'Accumulated {0} epiphany by adore the galaxy',
'filter.adore': 'Adoring',
'adore.trigger.set': 'Enter a new trigger value for AutoAdore. Should be in the range of 0 to 1.\nKS will AutoAdore if the Solor Revolutuin Bonus brought by praising the sun once after adore can reach the trigger of maximum.\n\nNote: The solar revolution bonus will diminish after reaching 75% of the maximum.',
'resources.add': 'add resources',
'resources.clear.unused': 'clear unused',
'resources.stock': 'Stock: {0}',
'resources.consume': 'Comsume: {0}',
'resources.del': 'del',
'resources.stock.set': 'Stock for {0}',
'resources.consume.set': 'Consume rate for {0}',
'resources.del.confirm': 'Delete resource controls for {0}?',
'status.ks.enable': 'Enabling the kitten scientists!',
'status.ks.disable': 'Disabling the kitten scientists!',
'status.sub.enable': 'Enabled {0}',
'status.auto.enable': 'Enable Auto {0}',
'status.sub.disable': 'Disabled {0}',
'status.auto.disable': 'Disable Auto {0}',
'trade.limited': 'Trading with {0}: limited to only occur when profitable based off relative production time',
'trade.unlimited': 'Trading with {0}: unlimited',
'trade.seasons': 'seasons',
'trade.season.enable': 'Enabled trading with {0} in the {1}',
'trade.season.disable': 'Disabled trading with {0} in the {1}',
'filter.enable': 'Enable {0} Filter',
'filter.disable': 'Disabled {0} Filter',
'craft.limited': 'Crafting {0}: limited to be proportional to cost ratio',
'craft.unlimited': 'Crafting {0}: unlimited',
'distribute.limited': 'Distribute to {0}: stop when reach max',
'distribute.unlimited': 'Distribute to {0}: unlimited',
'distribute.leaderJob': 'Leader Job: {0} ',
'distribute.leaderTrait': 'Choose {0} Leader',
'distribute.makeLeader': 'Make Leader',
'act.distribute': 'Distribute a kitten to {0}',
'act.distributeLeader': 'Make a {0} kitten leader',
'ui.max.set': 'Maximum for {0}',
'summary.distribute': 'Help {0} kittens to find job',
'filter.distribute': 'Distribute',
'option.promote': 'Promote Leader',
'act.promote': 'Kittens\' leader has been promoted to rank {0}',
'filter.promote': 'Promote leader',
'summary.promote': 'Promoted leader {0} times',
'ui.timeCtrl': 'Time Control',
'option.accelerate': 'Tempus Fugit',
'act.accelerate': 'Accelerate time!',
'filter.accelerate': 'Tempus Fugit',
'summary.accelerate': 'Accelerate time {0} times',
'option.time.skip': 'Time Skip',
'act.time.skip': 'Kittens combuste Time crystal, {0} years skiped!',
'ui.cycles': 'cycles',
'ui.maximum': 'Maximum',
'time.skip.cycle.enable': 'Enable time skip in cycle {0} and allow skip over this cycle',
'time.skip.cycle.disable': 'Disable time skip in cycle {0} and disallow skip over this cycle',
'time.skip.season.enable': 'Enable time skip in the {0}',
'time.skip.season.disable': 'Disable time skip in the {0}',
'time.skip.trigger.set': 'Enter a new trigger value for Time Skip (Combust time crystal). Should be a positive integer.',
'summary.time.skip': 'Skip {0} years',
'filter.time.skip': 'Time Skip',
'option.time.reset': 'Reset Timeline (Danger!)',
'status.reset.check.enable': 'Enable check {0} before Reset Timeline',
'status.reset.check.disable': 'Disable check {0} before Reset Timeline',
'ui.min': 'Min: {0}',
'reset.check.trigger.set': 'Enter a new trigger value for {0}.\n-1 meaning must build this building until exceeding resource limit.',
'reset.check': 'Trigger for {0} : {1}, you have {2}',
'reset.checked': 'All conditions are met, the timeline will restart in next few seconds!',
'reset.tip': 'You can cancel this reset by disable "Kitten Scientists" or "Time Control" or "Reset Timeline"',
'reset.countdown.10': '10 - Harvesting catnip',
'reset.countdown.9': ' 9 - Sacrificing Unicorns',
'reset.countdown.8': ' 8 - Releasing lizards',
'reset.countdown.7': ' 7 - Disassembling railguns',
'reset.countdown.6': ' 6 - Starting time engines',
'reset.countdown.5': ' 5 - Melting blackcoins',
'reset.countdown.4': ' 4 - Turning off satellite',
'reset.countdown.3': ' 3 - Opening temporal rifts',
'reset.countdown.2': ' 2 - Boosting the chronoforge',
'reset.countdown.1': ' 1 - Time engine start',
'reset.countdown.0': ' 0 - Temporal rifts opened!',
'reset.last.message': 'See you next poincaré recurrence',
'reset.after': 'Nice to meet you, the cute Kittens Scientists will serve you',
'reset.cancel.message': 'Timeline Reset canceled.',
'reset.cancel.activity': 'Meoston, We Have a Problem.',
'summary.time.reset.title': 'Summary of the last {0} timelines',
'summary.time.reset.content': 'Gain {0} Karma.<br>Gain {1} Paragon.',
'ui.close': 'close',
'option.fix.cry': 'Fix Cryochamber',
'act.fix.cry': 'Kittens fix {0} Cryochambers',
'summary.fix.cry': 'Fix {0} Cryochambers',
'summary.festival': 'Held {0} festivals',
'summary.stars': 'Observed {0} stars',
'summary.praise': 'Accumulated {0} worship by praising the sun',
'summary.hunt': 'Sent adorable kitten hunters on {0} hunts',
'summary.embassy': 'Built {0} embassies',
'summary.feed': 'Fed the elders {0} necrocorns',
'summary.tech': 'Researched: {0}',
'summary.upgrade': 'Upgraded: {0}',
'summary.building': 'Built: +{0} {1}',
'summary.sun': 'Discovered: +{0} {1}',
'summary.craft': 'Crafted: +{0} {1}',
'summary.trade': 'Traded: {0}x {1}',
'summary.year': 'year',
'summary.years': 'years',
'summary.separator': ' and ',
'summary.day': 'day',
'summary.days': 'days',
'summary.head': 'Summary of the last {0}',
'summary.show': 'Show activity',
},
'zh': {
'option.observe': '观测天文事件',
'option.festival': '举办节日',
'option.praise': '赞美太阳',
'option.shipOverride': '强制243船',
'option.autofeed': '献祭上古神',
'option.hunt': '狩猎',
'option.crypto': '黑币交易',
'option.embassies': '建造大使馆 (Beta)',
'option.style': '占满屏幕',
'option.steamworks': '启动蒸汽工房',
'filter.build': '建筑',
'filter.craft': '工艺',
'filter.upgrade': '升级',
'filter.research': '研究',
'filter.trade': '贸易',
'filter.hunt': '狩猎',
'filter.praise': '赞美太阳',
'filter.faith': '太阳秩序',
'filter.festival': '节日',
'filter.star': '天文事件',
'filter.misc': '杂项',
'dispose.necrocorn': '小猫处理掉了影响效率的多余死灵兽',
'blackcoin.buy': '小猫出售遗物并买入 {0} 黑币',
'blackcoin.sell': '小猫出售黑币并买入了 {0} 遗物',
'act.feed': '小猫向上古神献上祭品。上古神很高兴',
'act.observe': '小猫珂学家观测到一颗流星',
'act.hunt': '派出 {0} 波小猫去打猎',
'act.build': '小猫建造了一个 {0}',
'act.builds': '小猫建造了 {1} 个新的 {0}',
'act.craft': '小猫制作了 {0} {1}',
'act.trade': '小猫与 {1} 交易 {0} 次',
'upgrade.space.mission': '小猫执行了 {0} 的任务',
'upgrade.space': '小猫执行了 {0}',
'upgrade.race': '小猫遇到了 {0}',
'upgrade.building.pasture': '牧场 升级为 太阳能发电站 !',
'upgrade.building.aqueduct': '水渠 升级为 水电站 !',
'upgrade.building.library': '图书馆 升级为 数据中心!',
'upgrade.building.amphitheatre': '剧场 升级为 广播塔!',
'upgrade.upgrade': '小猫发明了 {0}',
'upgrade.limited': '优化 {0}',
'upgrade.unlimited': '全部 {0}',
'upgrade.tech': '小猫掌握了 {0}',
'upgrade.policy': '小猫通过了 {0} 法案',
'festival.hold': '小猫开始举办节日',
'festival.extend': '小猫延长了节日',
'build.embassy': '在 {1} 设立了 {0} 个大使馆',
'build.embassies': '在 {1} 设立了 {0} 个大使馆',
'act.praise': '赞美太阳! 转化 {0} 信仰为 {1} 虔诚',
'act.sun.discover': '小猫在 {0} 方面获得顿悟',
'act.sun.discovers': '小猫在 {0} 方面获得 {1} 次顿悟',
'ui.items': '项目',
'ui.disable.all': '全部禁用',
'ui.enable.all': '全部启用',
'ui.craft.resources': '资源',
'ui.trigger': '触发条件',
'ui.trigger.set': '输入新的 {0} 触发值,取值范围为 0 到 1 的小数。',
'ui.limit': '限制',
'ui.trigger.missions.set': '输入一个新的 探索星球 触发值,取值范围为 0 到 13 的整数。\n分别对应13颗星球。',
'ui.trigger.crypto.set': '输入一个新的 {0} 触发值,\n遗物数量达到触发值时会进行黑笔交易。',
'ui.engine': '启用小猫珂学家',
'ui.build': '营火',
'ui.space': '太空',
'ui.craft': '工艺',
'ui.upgrade': '升级',
'ui.trade': '贸易',
'ui.faith': '宗教',
'ui.time': '时间',
'ui.options': '选项',
'ui.filter': '日志过滤',
'ui.distribute': '猫力资源',
'ui.max': 'Max: {0}',
'ui.upgrade.upgrades': '升级',
'ui.upgrade.techs': '科技',
'ui.upgrade.races': '探险队出发!',
'ui.upgrade.missions': '探索星球',
'ui.upgrade.buildings': '建筑',
'ui.upgrade.policies': '政策',
'ui.upgrade.policies.load': '读取',
'ui.upgrade.policies.show': '列表',
'ui.faith.addtion': '附加',
'option.faith.best.unicorn': '优先最佳独角兽建筑',
'option.faith.best.unicorn.desc': '当眼泪不够建造最佳独角兽建筑时也会自动献祭独角兽',
'option.faith.transcend': '自动超越',
'act.transcend': '消耗 {0} 顿悟,达到超越 {1}',
'summary.transcend': '超越了 {0} 次',
'filter.transcend': '超越',
'option.faith.adore': '赞美群星',
'act.adore': '赞美群星! 转化 {0} 虔诚为 {1} 顿悟',
'summary.adore': '通过赞美群星积累了 {0} 顿悟',
'filter.adore': '赞美群星',
'adore.trigger.set': '为自动赞美群星设定一个新触发值,取值范围为 0 到 1 的小数。\n如果赞美群星后第一次赞美太阳可将太阳革命加成恢复到(触发值*太阳革命太阳革命极限加成),那么珂学家将自动赞美群星。\n\n注意:太阳革命加成在到达上限的75%后便会收益递减。',
'resources.add': '添加资源',
'resources.clear.unused': '清除未使用',
'resources.stock': '库存: {0}',
'resources.consume': '消耗率: {0}',
'resources.del': '删除',
'resources.stock.set': '设置 {0} 的库存',
'resources.consume.set': '设置 {0} 的消耗率',
'resources.del.confirm': '确定要取消 {0} 的库存控制?',
'status.ks.enable': '神说,要有猫猫珂学家!',
'status.ks.disable': '太敬业了,该歇了',
'status.sub.enable': '启用 {0}',
'status.auto.enable': '启用自动化 {0}',
'status.sub.disable': '禁用 {0}',
'status.auto.disable': '禁用自动化 {0}',
'trade.limited': '与 {0} 的交易限制为比产量更优时才会触发',
'trade.unlimited': '取消与 {0} 交易的限制',
'trade.seasons': '季节',
'trade.season.enable': '启用在 {1} 与 {0} 的交易',
'trade.season.disable': '停止在 {1} 与 {0} 的交易',
'filter.enable': '过滤 {0}',
'filter.disable': '取消过滤 {0}',
'craft.limited': '制作 {0} 受库存消耗比率的限制',
'craft.unlimited': '制作 {0} 不受限制',
'distribute.limited': '分配 {0} 受限于最大值',
'distribute.leaderJob': '领袖工作为 {0} ',
'distribute.leaderTrait': '领袖的特质为 {0} ',
'distribute.unlimited': '分配 {0} 不受限',
'distribute.makeLeader': '分配领袖',
'act.distribute': '分配一只猫猫成为 {0}',
'act.distributeLeader': '分配一只 {0} 猫猫领袖',
'ui.max.set': '设置 {0} 的最大值',
'summary.distribute': '帮助 {0} 只猫猫找到工作',
'filter.distribute': '猫口分配',
'option.promote': '提拔领袖',
'act.promote': '领袖被提拔到 {0} 级',
'filter.promote': '提拔领袖',
'summary.promote': '提拔领袖 {0} 次',
'ui.timeCtrl': '时间操纵',
'option.accelerate': '时间加速',
'act.accelerate': '固有时制御,二倍速!',
'filter.accelerate': '时间加速',
'summary.accelerate': '加速时间 {0} 次',
'option.time.skip': '时间跳转',
'act.time.skip': '燃烧时间水晶, 跳过接下来的 {0} 年!',
'ui.cycles': '周期',
'ui.maximum': '上限',
'time.skip.cycle.enable': '启用在 {0} 跳转时间并允许跳过该周期',
'time.skip.cycle.disable': '停止在 {0} 跳转时间并禁止跳过该周期',
'time.skip.season.enable': '启用在 {0} 跳转时间',
'time.skip.season.disable': '停止在 {0} 跳转时间',
'time.skip.trigger.set': '为跳转时间(燃烧时间水晶)设定一个新触发值,取值范围为正整数',
'summary.time.skip': '跳过 {0} 年',
'filter.time.skip': '时间跳转',
'option.time.reset': '重启时间线 (危险!)',
'status.reset.check.enable': '在重启时间线前检查 {0}',
'status.reset.check.disable': '在重启时间线前不检查 {0}',
'ui.min': 'Min: {0}',
'reset.check.trigger.set': '为 {0} 设置新的触发值.\n-1 表示必须将此建筑建造至超过资源上限为止',
'reset.check': '{0} 的触发值: {1}, 现在共有 {2}',
'reset.checked': '所有条件都已满足,时间线将在几秒后重启!',
'reset.tip': '你可以通过取消 "启用小猫珂学家" 或 "时间操控" 或 "重启时间线" 以取消此次重启',
'reset.countdown.10': '10 - 正在收获猫薄荷',
'reset.countdown.9': ' 9 - 正在献祭独角兽',
'reset.countdown.8': ' 8 - 正在放生蜥蜴',
'reset.countdown.7': ' 7 - 正在拆解电磁炮',
'reset.countdown.6': ' 6 - 正在启动时间引擎',
'reset.countdown.5': ' 5 - 正在融化黑币',
'reset.countdown.4': ' 4 - 正在关闭卫星',
'reset.countdown.3': ' 3 - 正在打开时空裂隙',
'reset.countdown.2': ' 2 - 正在启动时间锻造',
'reset.countdown.1': ' 1 - 时间引擎已启动!',
'reset.countdown.0': ' 0 - 时空裂缝已打开!',
'reset.last.message': '我们下个庞加莱回归再见',
'reset.after': '初次见面,可爱的猫猫科学家为您服务',
'reset.cancel.message': '重启时间线计划取消.',
'reset.cancel.activity': '喵斯顿,我们有麻烦了.',
'summary.time.reset.title': '过去 {0} 个时间线的总结',
'summary.time.reset.content': '获得 {0} 业.<br>获得 {1} 领导力.',
'ui.close': '关闭',
'option.fix.cry': '修复冷冻仓',
'act.fix.cry': '小猫修复了 {0} 个冷冻仓',
'summary.fix.cry': '修复了 {0} 个冷冻仓',
'summary.festival': '举办了 {0} 次节日',
'summary.stars': '观测了 {0} 颗流星',
'summary.praise': '通过赞美太阳积累了 {0} 虔诚',
'summary.hunt': '派出了 {0} 批可爱的小猫猎人',
'summary.embassy': '设立了 {0} 个大使馆',
'summary.feed': '向上古神献祭 {0} 只死灵兽',
'summary.tech': '掌握了 {0}',
'summary.upgrade': '发明了 {0}',
'summary.building': '建造了 {0} 个 {1}',
'summary.sun': '在 {1} 方面顿悟 {0} 次',
'summary.craft': '制作了 {0} 个 {1}',
'summary.trade': '与 {1} 贸易了 {0} 次',
'summary.year': '年',
'summary.years': '年',
'summary.separator': ' ',
'summary.day': '天',
'summary.days': '天',
'summary.head': '过去 {0} 的总结',
'summary.show': '总结',
},
};
if (!i18nData[lang]) {
console.error(lang + ' not found')
i18nData[lang] = i18nData['en'];
}
var i18n = function(key, args) {
// i18n('$xx') mean load string from game
// i18n('xx') mean load string from ks
if (key[0] == "$")
return i18ng(key.slice(1));
value = i18nData[lang][key];
if (typeof value === 'undefined') {
value = i18nData['en'][key];
if (!value) {
console.error('key "' + key + '" not found')
return '$' + key;
}
console.error('Key "' + key + '" not found in ' + lang)
}
if (args)
for (var i = 0; i < args.length; i++)
value = value.replace('{' + i + '}', args[i])
return value;
}
var options = {
// When debug is enabled, messages that go to the game log are also logged using window.console.
debug: false,
// The interval at which the internal processing loop is run, in milliseconds.
interval: 2000,
// The default color for KS messages in the game log (like enabling and disabling items).
msgcolor: '#aa50fe', // dark purple
// The color for activity summaries.
summarycolor: '#009933', // light green
// The color for log messages that are about activities (like festivals and star observations).
activitycolor: '#E65C00', // orange
// The color for resources with stock counts higher than current resource max
stockwarncolor: '#DD1E00',
// The default consume rate.
consume: 0.6,
// The default settings for game automation.
auto: {
// Settings related to KS itself.
engine: {
// Should any automation run at all?
enabled: false
},
// split form faith to make "Best Unicorn Building" easily
unicorn: {
items: {
unicornPasture: {require: false, enabled: true, variant: 'zp', label: i18n('$buildings.unicornPasture.label'), checkForReset: true, triggerForReset: -1},
unicornTomb: {require: false, enabled: false, variant: 'z', label: i18n('$religion.zu.unicornTomb.label'), checkForReset: true, triggerForReset: -1},
ivoryTower: {require: false, enabled: false, variant: 'z', label: i18n('$religion.zu.ivoryTower.label'), checkForReset: true, triggerForReset: -1},
ivoryCitadel: {require: false, enabled: false, variant: 'z', label: i18n('$religion.zu.ivoryCitadel.label'), checkForReset: true, triggerForReset: -1},
skyPalace: {require: false, enabled: false, variant: 'z', label: i18n('$religion.zu.skyPalace.label'), checkForReset: true, triggerForReset: -1},
unicornUtopia: {require: 'gold', enabled: false, variant: 'z', label: i18n('$religion.zu.unicornUtopia.label'), checkForReset: true, triggerForReset: -1},
sunspire: {require: 'gold', enabled: false, variant: 'z', label: i18n('$religion.zu.sunspire.label'), checkForReset: true, triggerForReset: -1},
}
},
faith: {
// Should religion building be automated?
enabled: true,
// At what percentage of the storage capacity should KS build faith buildings?
trigger: 0,
// Additional options
addition: {
bestUnicornBuilding: {enabled: true, misc: true, label: i18n('option.faith.best.unicorn')},
autoPraise: {enabled: true, misc: true, label: i18n('option.praise'), subTrigger: 0.98},
// Former [Faith Reset]
adore: {enabled: false, misc: true, label: i18n('option.faith.adore'), subTrigger: 0.75},
transcend: {enabled: false, misc: true, label: i18n('option.faith.transcend')},
},
// Which religious upgrades should be researched?
items: {
// Variant denotes which category the building or upgrade falls within in the Religion tab.
// Ziggurats are variant z.
// UNICORN BUILDING START
// unicornPasture: {require: false, enabled: true, variant: 'zp', label: i18n('$buildings.unicornPasture.label')},
// unicornTomb: {require: false, enabled: false, variant: 'z'},
// ivoryTower: {require: false, enabled: false, variant: 'z'},
// ivoryCitadel: {require: false, enabled: false, variant: 'z'},
// skyPalace: {require: false, enabled: false, variant: 'z'},
// unicornUtopia: {require: 'gold', enabled: false, variant: 'z'},
// sunspire: {require: 'gold', enabled: false, variant: 'z'},
// UNICORN BUILDING END
marker: {require: 'unobtainium', enabled: false, variant: 'z', checkForReset: true, triggerForReset: -1},
unicornGraveyard: {require: false, enabled: false, variant: 'z', checkForReset: true, triggerForReset: -1},
unicornNecropolis: {require: false, enabled: false, variant: 'z', checkForReset: true, triggerForReset: -1},
blackPyramid: {require: 'unobtainium', enabled: false, variant: 'z', checkForReset: true, triggerForReset: -1},
// Order of the Sun is variant s.
solarchant: {require: 'faith', enabled: true, variant: 's', checkForReset: true, triggerForReset: -1},
scholasticism: {require: 'faith', enabled: true, variant: 's', checkForReset: true, triggerForReset: -1},
goldenSpire: {require: 'faith', enabled: true, variant: 's', checkForReset: true, triggerForReset: -1},
sunAltar: {require: 'faith', enabled: true, variant: 's', checkForReset: true, triggerForReset: -1},
stainedGlass: {require: 'faith', enabled: true, variant: 's', checkForReset: true, triggerForReset: -1},
solarRevolution: {require: 'faith', enabled: true, variant: 's', checkForReset: true, triggerForReset: -1},
basilica: {require: 'faith', enabled: true, variant: 's', checkForReset: true, triggerForReset: -1},
templars: {require: 'faith', enabled: true, variant: 's', checkForReset: true, triggerForReset: -1},
apocripha: {require: 'faith', enabled: false, variant: 's', checkForReset: true, triggerForReset: -1},
transcendence: {require: 'faith', enabled: true, variant: 's', checkForReset: true, triggerForReset: -1},
// Cryptotheology is variant c.
blackObelisk: {require: false, enabled: false, variant: 'c', checkForReset: true, triggerForReset: -1},
blackNexus: {require: false, enabled: false, variant: 'c', checkForReset: true, triggerForReset: -1},
blackCore: {require: false, enabled: false, variant: 'c', checkForReset: true, triggerForReset: -1},
singularity: {require: false, enabled: false, variant: 'c', checkForReset: true, triggerForReset: -1},
blackLibrary: {require: false, enabled: false, variant: 'c', checkForReset: true, triggerForReset: -1},
blackRadiance: {require: false, enabled: false, variant: 'c', checkForReset: true, triggerForReset: -1},
blazar: {require: false, enabled: false, variant: 'c', checkForReset: true, triggerForReset: -1},
darkNova: {require: false, enabled: false, variant: 'c', checkForReset: true, triggerForReset: -1},
holyGenocide: {require: false, enabled: false, variant: 'c', checkForReset: true, triggerForReset: -1},
}
},
build: {
// Should buildings be built automatically?
enabled: true,
// When a building requires a certain resource (this is what their *require* property refers to), then
// this is the percentage of the storage capacity of that resource, that has to be met for the building
// to be built.
trigger: 0,
// The items that be automatically built.
// Every item can define a required resource. This resource has to be available at a certain capacity for
// the building to be built. The capacity requirement is defined by the trigger value set for the section.
//
// Additionally, for upgradeable buildings, the item can define which upgrade stage it refers to.
// For upgraded buildings, the ID (or internal name) of the building can be controlled through the *name*
// property. For other buildings, the key of the item itself is used.
items: {
// housing
hut: {require: 'wood', enabled: false, max:-1, checkForReset: true, triggerForReset: -1},
logHouse: {require: 'minerals', enabled: false, max:-1, checkForReset: true, triggerForReset: -1},
mansion: {require: 'titanium', enabled: false, max:-1, checkForReset: true, triggerForReset: -1},
// craft bonuses
workshop: {require: 'minerals', enabled: true, max:-1, checkForReset: true, triggerForReset: -1},
factory: {require: 'titanium', enabled: true, max:-1, checkForReset: true, triggerForReset: -1},
// production
field: {require: 'catnip', enabled: true, max:-1, checkForReset: true, triggerForReset: -1},
pasture: {require: 'catnip', enabled: true, max:-1, stage: 0, checkForReset: true, triggerForReset: -1},
solarFarm: {require: 'titanium', enabled: true, max:-1, stage: 1, name: 'pasture', checkForReset: true, triggerForReset: -1},
mine: {require: 'wood', enabled: true, max:-1, checkForReset: true, triggerForReset: -1},
lumberMill: {require: 'minerals', enabled: true, max:-1, checkForReset: true, triggerForReset: -1},
aqueduct: {require: 'minerals', enabled: true, max:-1, stage: 0, checkForReset: true, triggerForReset: -1},
hydroPlant: {require: 'titanium', enabled: true, max:-1, stage: 1, name: 'aqueduct', checkForReset: true, triggerForReset: -1},
oilWell: {require: 'coal', enabled: true, max:-1, checkForReset: true, triggerForReset: -1},
quarry: {require: 'coal', enabled: true, max:-1, checkForReset: true, triggerForReset: -1},
// conversion
smelter: {require: 'minerals', enabled: true, max:-1, checkForReset: true, triggerForReset: -1},
biolab: {require: 'science', enabled: false, max:-1, checkForReset: true, triggerForReset: -1},
calciner: {require: 'titanium', enabled: false, max:-1, checkForReset: true, triggerForReset: -1},
reactor: {require: 'titanium', enabled: false, max:-1, checkForReset: true, triggerForReset: -1},
accelerator: {require: 'titanium', enabled: false, max:-1, checkForReset: true, triggerForReset: -1},
steamworks: {require: false, enabled: false, max:-1, checkForReset: true, triggerForReset: -1},
magneto: {require: false, enabled: false, max:-1, checkForReset: true, triggerForReset: -1},
// science
library: {require: 'wood', enabled: true, max:-1, stage: 0, checkForReset: true, triggerForReset: -1},
dataCenter: {require: false, enabled: true, max:-1, stage: 1, name: 'library', checkForReset: true, triggerForReset: -1},
academy: {require: 'wood', enabled: true, max:-1, checkForReset: true, triggerForReset: -1},
observatory: {require: 'iron', enabled: true, max:-1, checkForReset: true, triggerForReset: -1},
// other
amphitheatre: {require: 'minerals', enabled: true, max:-1, stage: 0, checkForReset: true, triggerForReset: -1},
broadcastTower: {require: 'titanium', enabled: true, max:-1, stage: 1, name: 'amphitheatre', checkForReset: true, triggerForReset: -1},
tradepost: {require: 'gold', enabled: true, max:-1, checkForReset: true, triggerForReset: -1},
chapel: {require: 'minerals', enabled: true, max:-1, checkForReset: true, triggerForReset: -1},
temple: {require: 'gold', enabled: true, max:-1, checkForReset: true, triggerForReset: -1},
mint: {require: false, enabled: false,max:-1, checkForReset: true, triggerForReset: -1},
// unicornPasture: {require: false, enabled: true},
ziggurat: {require: false, enabled: true, max:-1, checkForReset: true, triggerForReset: -1},
chronosphere: {require: 'unobtainium', enabled: true, max:-1, checkForReset: true, triggerForReset: -1},
aiCore: {require: false, enabled: false,max:-1, checkForReset: true, triggerForReset: -1},
brewery: {require: false, enabled: false,max:-1, checkForReset: true, triggerForReset: -1},
// storage
barn: {require: 'wood', enabled: true, max:-1, checkForReset: true, triggerForReset: -1},
harbor: {require: false, enabled: false,max:-1, checkForReset: true, triggerForReset: -1},
warehouse: {require: false, enabled: false,max:-1, checkForReset: true, triggerForReset: -1},
// zebras
zebraOutpost: {require: 'bloodstone', enabled: true, max:-1, checkForReset: true, triggerForReset: -1},
zebraWorkshop: {require: 'bloodstone', enabled: false, max:-1, checkForReset: true, triggerForReset: -1},
zebraForge: {require: 'bloodstone', enabled: false, max:-1, checkForReset: true, triggerForReset: -1}
}
},
space: {
// Should space buildings be built automatically?
enabled: false,
// The functionality of the space section is identical to the build section. It just needs to be treated
// seperately, because the game internals are slightly different.
trigger: 0,
items: {
// Cath
spaceElevator: {require: 'unobtainium', enabled: false, max:-1, checkForReset: true, triggerForReset: -1},
sattelite: {require: 'titanium', enabled: false, max:-1, checkForReset: true, triggerForReset: -1},
spaceStation: {require: 'oil', enabled: false, max:-1, checkForReset: true, triggerForReset: -1},
// Moon
moonOutpost: {require: 'uranium', enabled: false, max:-1, checkForReset: true, triggerForReset: -1},
moonBase: {require: 'unobtainium', enabled: false, max:-1, checkForReset: true, triggerForReset: -1},
// Dune
planetCracker: {require: 'science', enabled: false, max:-1, checkForReset: true, triggerForReset: -1},
hydrofracturer: {require: 'science', enabled: false, max:-1, checkForReset: true, triggerForReset: -1},
spiceRefinery: {require: 'science', enabled: false, max:-1, checkForReset: true, triggerForReset: -1},
// Piscine
researchVessel: {require: 'titanium', enabled: false, max:-1, checkForReset: true, triggerForReset: -1},
orbitalArray: {require: 'eludium', enabled: false, max:-1, checkForReset: true, triggerForReset: -1},
// Helios
sunlifter: {require: 'eludium', enabled: false, max:-1, checkForReset: true, triggerForReset: -1},
containmentChamber: {require: 'science', enabled: false, max:-1, checkForReset: true, triggerForReset: -1},
heatsink: {require: 'thorium', enabled: false, max:-1, checkForReset: true, triggerForReset: -1},
sunforge: {require: false, enabled: false, max:-1, checkForReset: true, triggerForReset: -1},
// T-Minus
cryostation: {require: 'eludium', enabled: false, max:-1, checkForReset: true, triggerForReset: -1},
// Kairo
spaceBeacon: {require: 'antimatter', enabled: false, max:-1, checkForReset: true, triggerForReset: -1},
// Yarn
terraformingStation: {require: 'antimatter', enabled: false, max:-1, checkForReset: true, triggerForReset: -1},
hydroponics: {require: 'kerosene', enabled: false, max:-1, checkForReset: true, triggerForReset: -1},
// Umbra
hrHarvester: {require: 'antimatter', enabled: false, max:-1, checkForReset: true, triggerForReset: -1},
// Charon
entangler: {require: 'antimatter', enabled: false, max:-1, checkForReset: true, triggerForReset: -1},
// Centaurus
tectonic: {require: 'antimatter', enabled: false, max:-1, checkForReset: true, triggerForReset: -1},
moltenCore: {require: 'uranium', enabled: false, max:-1, checkForReset: true, triggerForReset: -1}
}
},
time: {
// Should time upgrades be built automatically?
enabled: false,
trigger: 0,
items: {
// Variants denote whether these buildings fall within the Chronoforge or Void categories.
// Chronoforge has variant chrono.
temporalBattery: {require: false, enabled: false, variant: 'chrono', checkForReset: true, triggerForReset: -1},
blastFurnace: {require: false, enabled: false, variant: 'chrono', checkForReset: true, triggerForReset: -1},
timeBoiler: {require: false, enabled: false, variant: 'chrono', checkForReset: true, triggerForReset: -1},
temporalAccelerator: {require: false, enabled: false, variant: 'chrono', checkForReset: true, triggerForReset: -1},
temporalImpedance: {require: false, enabled: false, variant: 'chrono', checkForReset: true, triggerForReset: -1},
ressourceRetrieval: {require: false, enabled: false, variant: 'chrono', checkForReset: true, triggerForReset: -1},
// Void Space has variant void.
cryochambers: {require: false, enabled: false, variant: 'void', checkForReset: true, triggerForReset: -1},
voidHoover: {require: 'antimatter', enabled: false, variant: 'void', checkForReset: true, triggerForReset: -1},
voidRift: {require: false, enabled: false, variant: 'void', checkForReset: true, triggerForReset: -1},
chronocontrol: {require: 'temporalFlux', enabled: false, variant: 'void', checkForReset: true, triggerForReset: -1},
voidResonator: {require: false, enabled: false, variant: 'void', checkForReset: true, triggerForReset: -1}
}
},
timeCtrl: {
enabled: true,
items: {
accelerateTime: {enabled: true, subTrigger: 1, misc: true, label: i18n('option.accelerate')},
timeSkip: {enabled: false, subTrigger: 5, misc: true, label: i18n('option.time.skip'), maximum: 50,
0: false, 1: false, 2: false, 3: false, 4: false, 5: false, 6: false, 7: false, 8: false, 9: false,
spring: true, summer: false, autumn: false, winter: false},
reset: {enabled: false, subTrigger: 99999, misc: true, label: i18n('option.time.reset')}
}
},
craft: {
// Should resources be crafted automatically?
enabled: true,
// Every item can define a required resource with the *require* property.
// At what percentage of the storage capacity of that required resource should the listed resource be crafted?
trigger: 0.95,
// The items that can be crafted.
// In addition to the *require* property, which is explained above, items can also define a *max*. If they
// do, no more than that resource will be automatically produced. This feature can not be controlled through
// the UI and is not used for any resource by default.
// The *limited* property tells KS to craft resources whenever the ratio of the component cost of the stored resources
// to the number of stored components is greater than the limit ratio "limRat".
// This means that if limRat is 0.5, then if you have 1000 beams and 500 beams worth of scaffolds, 250 of the beams
// will be crafted into scaffolds. If instead limRat is 0.75, 625 of the beams will be crafted into scaffolds for a final result
// of 1125 beams-worth of scaffolds and 375 remaining beams.
// Currently, limRat is not modifiable through the UI, though if there is demand, perhaps this will be added in the future.
// Limited has a few other effects like balancing plates and steel while minimizing iron waste
// TLDR: The purpose of the limited property is to proportionally distribute raw materials
// across all crafted resources without wasting raw materials.
items: {
wood: {require: 'catnip', max: 0, limited: true, limRat: 0.5, enabled: true},
beam: {require: 'wood', max: 0, limited: true, limRat: 0.5, enabled: true},
slab: {require: 'minerals', max: 0, limited: true, limRat: 0.5, enabled: true},
steel: {require: 'coal', max: 0, limited: true, limRat: 0.5, enabled: true},
plate: {require: 'iron', max: 0, limited: true, limRat: 0.5, enabled: true},
alloy: {require: 'titanium', max: 0, limited: true, limRat: 0.5, enabled: true},
concrate: {require: false, max: 0, limited: true, limRat: 0.5, enabled: true},
gear: {require: false, max: 0, limited: true, limRat: 0.5, enabled: true},
scaffold: {require: false, max: 0, limited: true, limRat: 0.5, enabled: true},
ship: {require: false, max: 0, limited: true, limRat: 0.5, enabled: true},
tanker: {require: false, max: 0, limited: true, limRat: 0.5, enabled: true},
parchment: {require: false, max: 0, limited: false, limRat: 0.5, enabled: true},
manuscript: {require: 'culture', max: 0, limited: true, limRat: 0.5, enabled: true},
compedium: {require: 'science', max: 0, limited: true, limRat: 0.5, enabled: true},
blueprint: {require: 'science', max: 0, limited: true, limRat: 0.5, enabled: true},
kerosene: {require: 'oil', max: 0, limited: true, limRat: 0.5, enabled: true},
megalith: {require: false, max: 0, limited: true, limRat: 0.5, enabled: true},
eludium: {require: 'unobtainium', max: 0, limited: true, limRat: 0.5, enabled: true},
thorium: {require: 'uranium', max: 0, limited: true, limRat: 0.5, enabled: true}
}
},
trade: {
// Should KS automatically trade?
enabled: true,
// Every trade can define a required resource with the *require* property.
// At what percentage of the storage capacity of that required resource should the trade happen?
trigger: 0.98,
// Trades can be limited to only happen during specific seasons. This is because trades with certain races
// are more effective during specific seasons.
// The *allowcapped* property allows us to trade even if the sold resources are at their cap.
items: {
dragons: {enabled: true, require: 'titanium', allowcapped: false, limited: true,
summer: true, autumn: true, winter: true, spring: true},
zebras: {enabled: true, require: false, allowcapped: false, limited: true,
summer: true, autumn: true, winter: true, spring: true},
lizards: {enabled: true, require: 'minerals', allowcapped: false, limited: true,
summer: true, autumn: false, winter: false, spring: false},
sharks: {enabled: true, require: 'iron', allowcapped: false, limited: true,
summer: false, autumn: false, winter: true, spring: false},
griffins: {enabled: true, require: 'wood', allowcapped: false, limited: true,
summer: false, autumn: true, winter: false, spring: false},
nagas: {enabled: true, require: false, allowcapped: false, limited: true,
summer: false, autumn: false, winter: false, spring: true},
spiders: {enabled: true, require: false, allowcapped: false, limited: true,
summer: false, autumn: true, winter: false, spring: false},
leviathans: {enabled: true, require: 'unobtainium', allowcapped: true, limited: true,
summer: true, autumn: true, winter: true, spring: true}
}
},
upgrade: {
//Should KS automatically upgrade?
enabled: false,
items: {
upgrades: {enabled: true, limited: true},
techs: {enabled: true},
policies: {enabled: false},
races: {enabled: true},
missions: {enabled: true, subTrigger: 12},
buildings: {enabled: true},
}
},
options: {
//Which misc options should be enabled?
enabled: true,
items: {
observe: {enabled: true, misc: true, label: i18n('option.observe')},
festival: {enabled: true, misc: true, label: i18n('option.festival')},
shipOverride: {enabled: true, misc: true, label: i18n('option.shipOverride')},
autofeed: {enabled: true, misc: true, label: i18n('option.autofeed')},
hunt: {enabled: true, subTrigger: 0.98, misc: true, label: i18n('option.hunt')},
promote: {enabled: true, misc: true, label: i18n('option.promote')},
crypto: {enabled: true, subTrigger: 10000, misc: true, label: i18n('option.crypto')},
fixCry: {enabled: false, misc: true, label: i18n('option.fix.cry')},
buildEmbassies: {enabled: true, subTrigger: 0.9, misc: true, label: i18n('option.embassies')},
style: {enabled: true, misc: true, label: i18n('option.style')},
_steamworks: {enabled: false, misc: true, label: i18n('option.steamworks')}
}
},
distribute: {
// Should KS automatically distribute free kittens
enabled: false,
items: {
// dynamic priority. distribute to the job which have lowest (job.val / job.max) value.
// if all jobs reach the max, then distribute kittens to unlimited job.
woodcutter: {enabled: true, max: 1, limited: false},
farmer: {enabled: true, max: 1, limited: false},
scholar: {enabled: true, max: 1, limited: false},
hunter: {enabled: true, max: 1, limited: false},
miner: {enabled: true, max: 1, limited: false},
priest: {enabled: true, max: 1, limited: false},
geologist: {enabled: true, max: 1, limited: false},
engineer: {enabled: true, max: 1, limited: false},
leader: {enabled: true, leaderJob: 'farmer', leaderTrait: 'manager'},
}
},
filter: {
//What log messages should be filtered?
enabled: false,
items: {
buildFilter: {enabled: false, filter: true, label: i18n('filter.build'), variant: "ks-activity type_ks-build"},
craftFilter: {enabled: false, filter: true, label: i18n('filter.craft'), variant: "ks-activity type_ks-craft"},
upgradeFilter: {enabled: false, filter: true, label: i18n('filter.upgrade'), variant: "ks-activity type_ks-upgrade"},
researchFilter: {enabled: false, filter: true, label: i18n('filter.research'), variant: "ks-activity type_ks-research"},
tradeFilter: {enabled: false, filter: true, label: i18n('filter.trade'), variant: "ks-activity type_ks-trade"},
huntFilter: {enabled: false, filter: true, label: i18n('filter.hunt'), variant: "ks-activity type_ks-hunt"},
praiseFilter: {enabled: false, filter: true, label: i18n('filter.praise'), variant: "ks-activity type_ks-praise"},
adoreFilter: {enabled: false, filter: true, label: i18n('filter.adore'), variant: "ks-activity type_ks-adore"},
transcendFilter: {enabled: false, filter: true, label: i18n('filter.transcend'), variant: "ks-activity type_ks-transcend"},
faithFilter: {enabled: false, filter: true, label: i18n('filter.faith'), variant: "ks-activity type_ks-faith"},
accelerateFilter:{enabled: false, filter: true, label: i18n('filter.accelerate'), variant: "ks-activity type_ks-accelerate"},
timeSkipFilter: {enabled: false, filter: true, label: i18n('filter.time.skip'), variant: "ks-activity type_ks-timeSkip"},
festivalFilter: {enabled: false, filter: true, label: i18n('filter.festival'), variant: "ks-activity type_ks-festival"},
starFilter: {enabled: false, filter: true, label: i18n('filter.star'), variant: "ks-activity type_ks-star"},
distributeFilter:{enabled: false, filter: true, label: i18n('filter.distribute'), variant: "ks-activity type_ks-distribute"},
promoteFilter: {enabled: false, filter: true, label: i18n('filter.promote'), variant: "ks-activity type_ks-promote"},
miscFilter: {enabled: false, filter: true, label: i18n('filter.misc'), variant: "ks-activity"}
}
},
resources: {
furs: {enabled: true, stock: 1000, checkForReset: false, stockForReset: Infinity},
timeCrystal: {enabled: false, stock: 0, checkForReset: true, stockForReset: 500000}
},
policies: [],
cache: {
cache: [],
cacheSum: {}
}
}
};
// GameLog Modification
// ====================
// Increase messages displayed in log
game.console.maxMessages = 1000;
var printoutput = function (args) {
if (options.auto.filter.enabled) {
for (var filt in options.auto.filter.items) {
var filter = options.auto.filter.items[filt];
if (filter.enabled && filter.variant === args[1]) {return;}
}
}
var color = args.pop();
args[1] = args[1] || 'ks-default';
// update the color of the message immediately after adding
var msg = game.msg.apply(game, args);
$(msg.span).css('color', color);
if (options.debug && console) console.log(args);
};
// Used for option change messages and other special notifications
var message = function () {
var args = Array.prototype.slice.call(arguments);
args.push('ks-default');
args.push(options.msgcolor);
printoutput(args);
};
var activity = function () {
var args = Array.prototype.slice.call(arguments);
var activityClass = args.length > 1 ? ' type_' + args.pop() : '';
args.push('ks-activity' + activityClass);
args.push(options.activitycolor);
printoutput(args);
};
var summary = function () {
var args = Array.prototype.slice.call(arguments);
args.push('ks-summary');
args.push(options.summarycolor);
printoutput(args);
};
var warning = function () {
var args = Array.prototype.slice.call(arguments);
args.unshift('Warning!');
if (console) console.log(args);
};
// i18n support
var imessage = function(key, args, t) { message(i18n(key, args), t); }
var iactivity = function(key, args, t) { activity(i18n(key, args), t); }
var isummary = function(key, args, t) { summary(i18n(key, args), t); }
var iwarning = function(key, args, t) { warning(i18n(key, args), t); }
// Core Engine for Kitten Scientists
// =================================
var Engine = function () {
this.upgradeManager = new UpgradeManager();
this.buildManager = new BuildManager();
this.spaceManager = new SpaceManager();
this.craftManager = new CraftManager();
this.bulkManager = new BulkManager();
this.tradeManager = new TradeManager();
this.religionManager = new ReligionManager();
this.timeManager = new TimeManager();
this.villageManager = new TabManager('Village');
this.cacheManager = new CacheManager();
};
Engine.prototype = {
upgradeManager: undefined,
buildManager: undefined,
spaceManager: undefined,
craftManager: undefined,
bulkManager: undefined,
tradeManager: undefined,
religionManager: undefined,
timeManager: undefined,
villageManager: undefined,
cacheManager: undefined,
loop: undefined,
start: function (msg=true) {
if (this.loop) return;
this.loop = setInterval(this.iterate.bind(this), options.interval);
if(msg) imessage('status.ks.enable');
},
stop: function (msg=true) {
if (!this.loop) return;
clearInterval(this.loop);
this.loop = undefined;
if (msg) imessage('status.ks.disable');
},
iterate: async function () {
var subOptions = options.auto.options;
if (subOptions.enabled && subOptions.items.observe.enabled) {this.observeStars()};
if (options.auto.upgrade.enabled) {this.upgrade()};
if (subOptions.enabled && subOptions.items.festival.enabled) {this.holdFestival()};
if (options.auto.build.enabled) {this.build()};
if (options.auto.space.enabled) {this.space()};
if (options.auto.craft.enabled) {this.craft()};
if (subOptions.enabled && subOptions.items.hunt.enabled) {this.setHunt()};
if (options.auto.trade.enabled) {this.trade()};