-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcivclicker.html
998 lines (984 loc) · 60 KB
/
civclicker.html
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
<!DOCTYPE html>
<!--
CivClicker
Copyright (C) 2014 David Holley
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program (if you are reading this on the original
author's website, you can find a copy at <http://dhmholley.co.uk/gpl.txt>).
If not, see <http://www.gnu.org/licenses/>.
-->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>CivClicker (v1.1.20alpha)</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<link rel="stylesheet" type="text/css" href="civclicker.css" />
<link rel="canonical" href="http://civclicker.sourceforge.net/civclicker/civclicker.html" />
<meta name="description" content="CivClicker: Click to Build a Civilization" />
<script src="lz-string.js" type="text/javascript"></script>
<script src="jsutils.js" type="text/javascript"></script>
</head>
<body class="hasBackground">
<div id="strip">
<div id="stripInner">
<a href="civFAQ.html" target="_blank">FAQ / Instructions / Bugfixing</a> -
<a href="civUpdates.html" target="_blank">Game Updates Log</a> -
<a href="#" onclick="impExp()">Import/Export Save</a>
<span id="versionAlert"> - <span id="newVersionText" onclick="location.reload()">New Version Available</span></span>
</div>
</div>
<div id="impexp">
<textarea id="impexpField"></textarea>
<button id="expButton" onclick="save('export')">Export</button>
<button id="expSelect" onclick="document.getElementById('impexpField').select();">Select All</button>
<button id="impexpClose" onclick="impExp()">Close</button>
<button id="impButton" onclick="load('import')">Import</button>
</div>
<div id="header">
<h1>The <span id="civType">Thorp</span> of <span id="civName">Woodstock</span></h1>
<div id="ruler">Ruled by the <span id="appellation">mighty</span> <span id="rulerName">Orteil</span></div>
<div style="clear:both;"></div>
</div>
<div id="resources">
<div id="resourcesContainer">
<div id="basicResourcesContainer">
<h3>Basic Resources</h3>
<table id="basicResources">
<tr>
<td><button onmousedown="increment(food)">Gather Food</button></td>
<td>Food: </td>
<td class="number"><span data-action="display" data-target="food">0</span></td>
<td class="icon"><img src="images/food.png" class="icon icon-lg" alt="Food"/></td>
<td class="number">(Max storage: <span id="maxfood">200</span>)</td>
<td class="number net"><span data-action="displayNet" data-target="food">0</span>/s</td>
</tr>
<tr>
<td><button onmousedown="increment(wood)">Cut Wood</button></td>
<td>Wood: </td>
<td class="number"><span data-action="display" data-target="wood">0</span></td>
<td class="icon"><img src="images/wood.png" class="icon icon-lg" alt="Wood"/></td>
<td class="number">(Max storage: <span id="maxwood">200</span>)</td>
<td class="number net"><span data-action="displayNet" data-target="wood">0</span>/s</td>
</tr>
<tr>
<td><button onmousedown="increment(stone)">Mine Stone</button></td>
<td>Stone: </td>
<td class="number"><span data-action="display" data-target="stone">0</span></td>
<td class="icon"><img src="images/stone.png" class="icon icon-lg" alt="Stone"/></td>
<td class="number">(Max storage: <span id="maxstone">200</span>)</td>
<td class="number net"><span data-action="displayNet" data-target="stone">0</span>/s</td>
</tr>
</table>
</div>
<div id="specialResourcesContainer">
<h3>Special Resources</h3>
<table>
<tr>
<td>Skins: </td>
<td class="number"><span data-action="display" data-target="skins">0</span></td>
<td><img src="images/skins.png" class="icon icon-lg" alt="Skins"/></td>
<td>Leather: </td>
<td class="number"><span data-action="display" data-target="leather">0</span></td>
<td class="icon"><img src="images/leather.png" class="icon icon-lg" alt="Leather"/></td>
</tr>
<tr>
<td>Herbs: </td>
<td class="number"><span data-action="display" data-target="herbs">0</span></td>
<td><img src="images/herbs.png" class="icon icon-lg" alt="Herbs"/></td>
<td>Piety: </td>
<td class="number"><span data-action="display" data-target="piety">0</span></td>
<td class="icon"><img src="images/piety.png" class="icon icon-lg" alt="Piety"/></td>
</tr>
<tr>
<td>Ore: </td>
<td class="number"><span data-action="display" data-target="ore">0</span></td>
<td><img src="images/ore.png" class="icon icon-lg" alt="Ore"/></td>
<td>Metal: </td>
<td class="number"><span data-action="display" data-target="metal">0</span></td>
<td class="icon"><img src="images/metal.png" class="icon icon-lg" alt="Metal"/></td>
</tr>
<tr id="goldRow">
<td>Gold: </td>
<td class="number"><span data-action="display" data-target="gold">0</span></td>
<td class="icon"><img src="images/gold.png" class="icon icon-lg" alt="Gold"/></td>
<td colspan="3"></td>
</tr>
</table>
</div>
</div>
<div id="panesSelectors">
<div id="selectors">
<div id="buildingsSelect" class="paneSelector selected" onclick="paneSelect('buildings')">Buildings</div>
<div id="upgradesSelect" class="paneSelector" onclick="paneSelect('upgrades')">Upgrades</div>
<div id="deitySelect" class="paneSelector" onclick="paneSelect('deity')">Deity</div>
<div id="conquestSelect" class="paneSelector" onclick="paneSelect('conquest')">Conquest</div>
<div id="tradeSelect" class="paneSelector" onclick="paneSelect('trade')">Trade</div>
<div style="clear:both;"></div>
</div>
<div id="buildingsPane">
<p id="customBuildIncrement">
Increment: <input id="buildCustom" type="number" min="1" step="1" value="1" />
</p>
<span>Available Land: <span id="freeLand">1000</span></span>
<table id="buildings"></table>
</div>
<div id="upgradesPane">
<span id="skinningLine"><button id="skinning" onmousedown="upgrade('skinning')">Skinning<br />(10 skins)</button><span class="note">Farmers can collect skins</span><br /></span>
<span id="harvestingLine"><button id="harvesting" onmousedown="upgrade('harvesting')">Harvesting<br />(10 herbs)</button><span class="note">Woodcutters can collect herbs</span><br /></span>
<span id="prospectingLine"><button id="prospecting" onmousedown="upgrade('prospecting')">Prospecting<br />(10 ore)</button><span class="note">Miners can collect ore</span><br /><br /></span>
<div id="basicFarming">
<span id="domesticationLine"><button id="domestication" onmousedown="upgrade('domestication')">Domestication<br />(20 leather)</button><span class="note">Increase farmer food output</span><br /></span>
<span id="ploughsharesLine"><button id="ploughshares" onmousedown="upgrade('ploughshares')">Ploughshares<br />(20 metal)</button><span class="note">Increase farmer food output</span><br /></span>
<span id="irrigationLine"><button id="irrigation" onmousedown="upgrade('irrigation')">Irrigation<br />(500 wood, 200 stone)</button><span class="note">Increase farmer food output</span><br /><br /></span>
</div>
<div id="specialFarming">
<span id="butcheringLine"><button id="butchering" onmousedown="upgrade('butchering')" disabled>Butchering<br />(Skinning, 40 leather)</button><span class="note">More farmers collect more skins</span><br /></span>
<span id="gardeningLine"><button id="gardening" onmousedown="upgrade('gardening')" disabled>Gardening<br />(Harvesting, 40 herbs)</button><span class="note">More woodcutters collect more herbs</span><br /></span>
<span id="extractionLine"><button id="extraction" onmousedown="upgrade('extraction')" disabled>Extraction<br />(Prospecting, 40 metal)</button><span class="note">More miners collect more ore</span><br /><br /></span>
</div>
<div id="specFreq">
<span id="flensingLine"><button id="flensing" onmousedown="upgrade('flensing')">Flensing<br />(1000 metal)</button><span class="note">Collect skins more frequently</span><br /></span>
<span id="maceratingLine"><button id="macerating" onmousedown="upgrade('macerating')">Macerating<br />(500 leather, 500 stone)</button><span class="note">Collect ore more frequently</span><br /><br /></span>
</div>
<div id="improvedFarming">
<span id="croprotationLine"><button id="croprotation" onmousedown="upgrade('croprotation')">Crop Rotation<br />(5000 herbs, 1000 piety)</button><span class="note">Increase farmer food output</span><br /></span>
<span id="selectivebreedingLine"><button id="selectivebreeding" onmousedown="upgrade('selectivebreeding')">Selective Breeding<br />(5000 skins, 1000 piety)</button><span class="note">Increase farmer food output</span><br /></span>
<span id="fertilisersLine"><button id="fertilisers" onmousedown="upgrade('fertilisers')">Fertilisers<br />(5000 ore, 1000 piety)</button><span class="note">Increase farmer food output</span><br /><br /></span>
</div>
<span id="masonryLine"><button id="masonry" onmousedown="upgrade('masonry')">Masonry<br />(100 wood, 100 stone)</button><span class="note">Unlock more buildings and upgrades</span><br /></span>
<span id="constructionLine"><button id="construction" onmousedown="upgrade('construction')">Construction<br />(1000 wood, 1000 stone)</button><span class="note">Unlock more buildings and upgrades</span><br /></span>
<span id="architectureLine"><button id="architecture" onmousedown="upgrade('architecture')">Architecture<br />(10000 wood, 10000 stone)</button><span class="note">Unlock more buildings and upgrades</span><br /><br /></span>
<span id="tenementsLine"><button id="tenements" onmousedown="upgrade('tenements')">Tenements<br />(200 food, 500 wood, 500 stone)</button><span class="note">Houses support +2 workers</span><br /></span>
<span id="slumsLine"><button id="slums" onmousedown="upgrade('slums')">Slums<br />(500 food, 1000 wood, 1000 stone)</button><span class="note">Houses support +2 workers</span><br /></span>
<span id="granariesLine"><button id="granaries" onmousedown="upgrade('granaries')">Granaries<br />(1000 wood, 1000 stone)</button><span class="note">Barns store double the amount of food</span><br /></span>
<span id="palisadeLine"><button id="palisade" onmousedown="upgrade('palisade')">Palisade<br />(2000 wood, 1000 stone)</button><span class="note">Enemies do less damage</span><br /><br /></span>
<div id="masonryTech">
<span id="weaponryLine"><button id="weaponry" onmousedown="upgrade('weaponry')">Basic Weaponry<br />(500 wood, 500 metal)</button><span class="note">Improve soldiers</span><br /></span>
<span id="shieldsLine"><button id="shields" onmousedown="upgrade('shields')">Basic Shields<br />(500 wood, 500 leather)</button><span class="note">Improve soldiers</span><br /><br /></span>
<span id="horsebackLine"><button id="horseback" onmousedown="upgrade('horseback')">Horseback Riding<br />(500 food, 500 wood)</button><span class="note">Build stables</span><br /></span>
<span id="wheelLine"><button id="wheel" onmousedown="upgrade('wheel')">The Wheel<br />(500 wood, 500 stone)</button><span class="note">Build mills</span><br /><br /></span>
<span id="writingLine"><button id="writing" onmousedown="upgrade('writing')">Writing<br />(500 skins)</button><span class="note">Increase cleric piety generation</span><br /></span>
<div id="writingTech">
<span id="administrationLine"><button id="administration" onmousedown="upgrade('administration')">Administration<br />(1000 stone, 1000 skins)</button><span class="note">Increase land gained from raiding</span><br /></span>
<span id="codeoflawsLine"><button id="codeoflaws" onmousedown="upgrade('codeoflaws')">Code of Laws<br />(1000 stone, 1000 skins)</button><span class="note">Reduce unhappiness caused by overcrowding</span><br /></span>
<span id="mathematicsLine"><button id="mathematics" onmousedown="upgrade('mathematics')">Mathematics<br />(1000 herbs, 1000 piety)</button><span class="note">Create siege engines</span><br /></span>
<span id="aestheticsLine"><button id="aesthetics" onmousedown="upgrade('aesthetics')">Aesthetics<br />(5000 piety)</button><span class="note">Building temples increases happiness</span><br /><br /></span>
</div>
<span id="civilserviceLine"><button id="civilservice" onmousedown="upgrade('civilservice')">Civil Service<br />(5000 piety)</button><span class="note">Increase basic resources from clicking</span><br /></span>
<div id="civilTech">
<span id="feudalismLine"><button id="feudalism" onmousedown="upgrade('feudalism')">Feudalism<br />(10 000 piety)</button><span class="note">Further increase basic resources from clicking</span><br /></span>
<span id="guildsLine"><button id="guilds" onmousedown="upgrade('guilds')">Guilds<br />(10 000 piety)</button><span class="note">Increase special resources from clicking</span><br /></span>
<span id="serfsLine"><button id="serfs" onmousedown="upgrade('serfs')">Serfs<br />(20 000 piety)</button><span class="note">Unemployed workers increase resources from clicking</span><br /></span>
<span id="nationalismLine"><button id="nationalism" onmousedown="upgrade('nationalism')">Nationalism<br />(50 000 piety)</button><span class="note">Soldiers increase basic resources from clicking</span><br /></span>
</div>
<span id="wonderLine"><br /><button id="startWonder" onmousedown="startWonder()">Start Building Wonder</button><br /></span>
</div>
<h3>Purchased Upgrades</h3>
<div id="purchased">
<span id="Pskinning"><strong>Skinning</strong> - Farmers can collect skins<br/></span>
<span id="Pharvesting"><strong>Harvesting</strong> - Woodcutters can collect herbs<br/></span>
<span id="Pprospecting"><strong>Prospecting</strong> - Miners can collect ore<br/></span>
<span id="Pdomestication"><strong>Domestication</strong> - Increase farmer food output<br/></span>
<span id="Pploughshares"><strong>Ploughshares</strong> - Increase farmer food output<br/></span>
<span id="Pirrigation"><strong>Irrigation</strong> - Increase farmer food output<br/></span>
<span id="Pbutchering"><strong>Butchering</strong> - More farmers collect more skins<br/></span>
<span id="Pgardening"><strong>Gardening</strong> - More woodcutters collect more herbs<br/></span>
<span id="Pextraction"><strong>Extraction</strong> - More miners collect more ore<br/></span>
<span id="Pflensing"><strong>Flensing</strong> - Collect skins more frequently<br/></span>
<span id="Pmacerating"><strong>Macerating</strong> - Collect ore more frequently<br/></span>
<span id="Pcroprotation"><strong>Crop Rotation</strong> - Increase farmer food output<br/></span>
<span id="Pselectivebreeding"><strong>Selective Breeding</strong> - Increase farmer food output<br/></span>
<span id="Pfertilisers"><strong>Fertilisers</strong> - Increase farmer food output<br/></span>
<span id="Pmasonry"><strong>Masonry</strong> - Unlock more buildings and upgrades<br/></span>
<span id="Pconstruction"><strong>Construction</strong> - Unlock more buildings and upgrades<br/></span>
<span id="Parchitecture"><strong>Architecture</strong> - Unlock more buildings and upgrades<br/></span>
<span id="Ptenements"><strong>Tenements</strong> - Houses support +2 workers<br/></span>
<span id="Pslums"><strong>Slums</strong> - Houses support +2 workers<br/></span>
<span id="Pgranaries"><strong>Granaries</strong> - Barns store double the amount of food<br/></span>
<span id="Ppalisade"><strong>Palisade</strong> - Enemies do less damage<br/></span>
<span id="Pweaponry"><strong>Basic Weaponry</strong> - Improve soldiers<br/></span>
<span id="Pshields"><strong>Basic Shields</strong> - Improve soldiers<br/></span>
<span id="Phorseback"><strong>Horseback Riding</strong> - Build stables<br/></span>
<span id="Pwheel"><strong>The Wheel</strong> - Build mills<br/></span>
<span id="Pwriting"><strong>Writing</strong> - Increase cleric piety generation<br/></span>
<span id="Padministration"><strong>Administration</strong> - Increase land gained from raiding<br/></span>
<span id="Pcodeoflaws"><strong>Code of Laws</strong> - Reduce unhappiness caused by overcrowding<br/></span>
<span id="Pmathematics"><strong>Mathematics</strong> - Create siege engines<br/></span>
<span id="Paesthetics"><strong>Aesthetics</strong> - Building temples increases happiness<br/></span>
<span id="Pcivilservice"><strong>Civil Service</strong> - Increase basic resources from clicking<br/></span>
<span id="Pfeudalism"><strong>Feudalism</strong> - Further increase basic resources from clicking<br/></span>
<span id="Pguilds"><strong>Guilds</strong> - Increase special resources from clicking<br/></span>
<span id="Pserfs"><strong>Serfs</strong> - Unemployed workers increase resources from clicking<br/></span>
<span id="Pnationalism"><strong>Nationalism</strong> - Soldiers increase basic resources from clicking<br/></span>
<span id="Pworship"><strong>Worship</strong> - Allows you to worship a deity<br/></span>
<span id="Pstandard"><strong>Battle Standard</strong> - Allows you to assemble an army<br/></span>
<span id="Ptrade"><strong>Trade</strong> - Opens the trading post<br/></span>
<span id="Pcurrency"><strong>Currency</strong> - Traders arrive more frequently, stay longer<br/></span>
<span id="Pcommerce"><strong>Commerce</strong> - Traders arrive more frequently, stay longer<br/></span>
</div>
</div>
<div id="deityPane">
<span id="deityLine"><button id="deity" onmousedown="upgrade('deity')" disabled>Worship<br />(1000 piety)</button><span class="note">Begin worshipping a deity (requires temple)</span><br />
<br /></span>
<div id="deitySpecialisation">
<button id="deityBattle" onmousedown="upgrade('deityBattle')">Battle<br />(500 piety)</button><span class="note">Note: you can only pick one of these</span><br />
<button id="deityFields" onmousedown="upgrade('deityFields')">The Fields<br />(500 piety)</button><span class="note">Note: you can only pick one of these</span><br />
<button id="deityUnderworld" onmousedown="upgrade('deityUnderworld')">The Underworld<br />(500 piety)</button><span class="note">Note: you can only pick one of these</span><br />
<button id="deityCats" onmousedown="upgrade('deityCats')">Cats<br />(500 piety)</button><span class="note">Note: you can only pick one of these</span><br />
</div>
<div id="battleUpgrades">
<h3>The Strength of Battle</h3>
<table>
<tr>
<td class="devcost"></td>
<td id="battleAltarRow"><span><button onmousedown="createBuilding(battleAltar,1)">Build Altar</button></span></td>
<td><span id="battleAltarCost" class="cost">200 stone, 200 piety, 50 metal</span><span class="note">: +1 devotion</span></td>
</tr>
<tr>
<td class="devcost">10d </td>
<td><button id="riddle" onmousedown="upgrade('riddle')" disabled>Riddle of Steel</button></td>
<td><span class="cost">1000 piety</span><span class="note">: improve soldiers</span></td>
</tr>
<tr>
<td class="devcost">20d </td>
<td><button onmousedown="smite()" id="smiteInvaders" disabled>Smite Invaders</button></td>
<td><span class="cost">100 piety per invader</span></td>
</tr>
<tr>
<td class="devcost">30d </td>
<td><button id="throne" onmousedown="upgrade('throne')" disabled>Throne of Skulls</button></td>
<td><span class="cost">1000 piety</span><span class="note">: slaying enemies creates temples</span></td>
</tr>
<tr>
<td class="devcost">40d </td>
<td><button onmousedown="glory(180)" id="glory" disabled>For Glory!</button></td>
<td><span class="cost">1000 piety</span><span class="note">: Temporarily makes raids more difficult, increases rewards</span></td>
</tr>
<tr>
<td class="devcost">50d </td>
<td><button id="lament" onmousedown="upgrade('lament')" disabled>Lament of the Defeated</button></td>
<td><span class="cost">5000 piety</span><span class="note">: Successful raids delay future invasions</span></td>
</tr>
</table>
</div>
<div id="fieldsUpgrades">
<h3>The Bounty of the Fields</h3>
<table>
<tr>
<td class="devcost"></td>
<td id="fieldsAltarRow"><span><button onmousedown="createBuilding(fieldsAltar,1)">Build Altar</button></span></td>
<td><span id="fieldsAltarCost" class="cost">500 food, 500 wood, 200 stone, 200 piety</span><span class="note">: +1 devotion</span></td>
</tr>
<tr>
<td class="devcost">10d </td>
<td><button id="blessing" onmousedown="upgrade('blessing')" disabled>Blessing of Abundance</button></td>
<td><span class="cost">1000 piety</span><span class="note">: increase farmer food output</span></td>
</tr>
<tr>
<td class="devcost">20d </td>
<td><button id="wickerman" onmousedown="wickerman()" disabled>Burn Wicker Man</button></td>
<td><span class="cost">500 wood, 1 worker</span><span class="note">: random bonus to a resource</span></td>
</tr>
<tr>
<td class="devcost">30d </td>
<td><button id="waste" onmousedown="upgrade('waste')" disabled>Abide No Waste</button></td>
<td><span class="cost">1000 piety</span><span class="note">: workers will eat corpses if there is no food left</span></td>
</tr>
<tr>
<td class="devcost">40d </td>
<td><button id="walk" onmousedown="walk(1)" disabled>Walk Behind The Rows</button><br /><button id="ceaseWalk" onmousedown="walk(0)" disabled>Cease Walking</button></td>
<td><span class="cost">1 worker per second</span><span class="note">: boost food production</span></td>
</tr>
<tr>
<td class="devcost">50d </td>
<td><button id="stay" onmousedown="upgrade('stay')" disabled>Stay With Us</button></td>
<td><span class="cost">5000 piety</span><span class="note">: traders stay longer</span></td>
</tr>
</table>
</div>
<div id="underworldUpgrades">
<h3>The Dread Power of the Underworld</h3>
<table>
<tr>
<td class="devcost"></td>
<td id="underworldAltarRow"><span><button onmousedown="createBuilding(underworldAltar,1)">Build Altar</button></span></td>
<td><span id = "underworldAltarCost" class="cost">200 stone, 200 piety, 1 corpses</span><span class="note">: +1 devotion</span></td>
</tr>
<tr>
<td class="devcost">10d </td>
<td><button id="book" onmousedown="upgrade('book')" disabled>The Book of the Dead</button></td>
<td><span class="cost">1000 piety</span><span class="note">: gain piety with deaths</span></td>
</tr>
<tr>
<td class="devcost">20d </td>
<td><button onmousedown="raiseDead(1)" id="raiseDead" disabled>Raise Dead</button><button onmousedown="raiseDead(100)" id="raiseDead100" class="x100" disabled>x100</button><button onmousedown="raiseDead(Infinity)" id="raiseDeadMax" class="x100" disabled>Max</button></td>
<td><span id="zombieCost" class="cost">1</span><span class="cost"> piety, 1 corpse: to raise the next zombie</span></td>
</tr>
<tr>
<td class="devcost">30d </td>
<td><button id="feast" onmousedown="upgrade('feast')" disabled>A Feast for Crows</button></td>
<td><span class="cost">1000 piety</span><span class="note">: corpses are less likely to cause illness</span></td>
</tr>
<tr>
<td class="devcost">40d </td>
<td><button onmousedown="shade()" id="shade" disabled>Summon Shades</button></td>
<td><span class="cost">1000 piety</span><span class="note">: Souls of the defeated rise to fight for you</span></td>
</tr>
<tr>
<td class="devcost">50d </td>
<td><button id="secrets" onmousedown="upgrade('secrets')" disabled>Secrets of the Tombs</button></td>
<td><span class="cost">5000 piety</span><span class="note">: graveyards increase cleric piety generation</span></td>
</tr>
</table>
</div>
<div id="catsUpgrades">
<h3>The Grace of Cats</h3>
<table>
<tr>
<td class="devcost"></td>
<td id="catAltarRow"><span><button onmousedown="createBuilding(catAltar,1)">Build Altar</button></span></td>
<td><span id="catAltarCost" class="cost">200 stone, 200 piety, 100 herbs</span><span class="note">: +1 devotion</span></td>
</tr>
<tr>
<td class="devcost">10d </td>
<td><button id="lure" onmousedown="upgrade('lure')" disabled>Lure of Civilisation</button></td>
<td><span class="cost">1000 piety</span><span class="note">: increase chance to get cats</span></td>
</tr>
<tr>
<td class="devcost">20d </td>
<td><button onmousedown="pestControl(10)" id="pestControl" disabled>Pest Control</button></td>
<td><span class="cost">100 piety</span><span class="note">: Give temporary boost to food production</span></td>
</tr>
<tr>
<td class="devcost">30d </td>
<td><button id="companion" onmousedown="upgrade('companion')" disabled>Warmth of the Companion</button></td>
<td><span class="cost">1000 piety</span><span class="note">: cats help heal the sick</span></td>
</tr>
<tr>
<td class="devcost">40d </td>
<td><button onmousedown="grace(0.1)" id="grace" disabled>Grace</button></td>
<td><span class="cost"><span id="graceCost">1000</span> piety</span><span class="note">: Increase Happiness</span></td>
</tr>
<tr>
<td class="devcost">50d </td>
<td><button id="comfort" onmousedown="upgrade('comfort')" disabled>Comfort of the Hearthfires</button></td>
<td><span class="cost">5000 piety</span><span class="note">: traders marginally more frequent</span></td>
</tr>
</table>
</div>
<div id="iconoclasmGroup">
<br />
<button id="iconoclasm" onmousedown="iconoclasmList()">Iconoclasm<br />(1000 piety)</button><span class="note">Remove an old deity</span><br />
<div id="iconoclasmList"></div>
</div>
</div>
<div id="conquestPane">
<span id="standardLine"><button id="standard" onmousedown="upgrade('standard')" disabled>Battle Standard<br />(1000 metal & leather)</button><span class="note">Lets you build an army (requires barracks)</span><br /></span>
<div id="conquest">
<h4>Army</h4>
<table id="party">
<tr id="customArmyIncrement">
<td class="jobNone"></td>
<td class="jobCustom"></td>
<td class="job100"></td>
<td class="job10"></td>
<td></td>
<td>Increment:</td>
<td><input id="armyCustom" type="number" min="1" step="1" value="1" /></td>
<td></td>
<td class="job10"></td>
<td class="job100"></td>
<td class="jobCustom"></td>
<td class="jobAll"></td>
<td><span class="note"></span></td>
</tr>
<tr id="fsoldiergroup">
<td class="jobNone"><button onmousedown="party('soldiersParty',-Infinity);">-All</button></td>
<td class="jobCustom"><button onmousedown="party('soldiersParty','negcustom');">-Custom</button></td>
<td class="job100"><button onmousedown="party('soldiersParty',-100);">-100</button></td>
<td class="job10"><button onmousedown="party('soldiersParty',-10);">-10</button></td>
<td><button onmousedown="party('soldiersParty',-1);"><</button></td>
<td class="job">Soldiers: </td>
<td class="number"><span id="soldiersParty">0</span></td>
<td><button onmousedown="party('soldiersParty',1);">></button></td>
<td class="job10"><button onmousedown="party('soldiersParty',10);">+10</button></td>
<td class="job100"><button onmousedown="party('soldiersParty',100);">+100</button></td>
<td class="jobCustom"><button onmousedown="party('soldiersParty','custom');">+Custom</button></td>
<td class="jobAll"><button onmousedown="party('soldiersParty',Infinity);">All</button></td>
<td><span class="note"></span></td>
</tr>
<tr id="fcavalrygroup">
<td class="jobNone"><button onmousedown="party('cavalryParty',-Infinity);">-All</button></td>
<td class="jobCustom"><button onmousedown="party('cavalryParty','negcustom');">-Custom</button></td>
<td class="job100"><button onmousedown="party('cavalryParty',-100);">-100</button></td>
<td class="job10"><button onmousedown="party('cavalryParty',-10);">-10</button></td>
<td><button onmousedown="party('cavalryParty',-1);"><</button></td>
<td class="job">Cavalry: </td>
<td class="number"><span id="cavalryParty">0</span></td>
<td><button onmousedown="party('cavalryParty',1);">></button></td>
<td class="job10"><button onmousedown="party('cavalryParty',10);">+10</button></td>
<td class="job100"><button onmousedown="party('cavalryParty',100);">+100</button></td>
<td class="jobCustom"><button onmousedown="party('cavalryParty','custom');">+Custom</button></td>
<td class="jobAll"><button onmousedown="party('cavalryParty',Infinity);">All</button></td>
<td><span class="note"></span></td>
</tr>
<tr id="fsiegegroup">
<td class="jobNone"></td>
<td class="jobCustom"></td>
<td class="job100"></td>
<td class="job10"></td>
<td></td>
<td class="job">Siege Engines: </td>
<td class="number"><span id="siegeParty">0</span></td>
<td><button onmousedown="party('siegeParty',1);">></button></td>
<td class="job10"><button onmousedown="party('siegeParty',10);">+10</button></td>
<td class="job100"><button onmousedown="party('siegeParty',100);">+100</button></td>
<td class="jobCustom"><button onmousedown="party('siegeParty','custom');">+Custom</button></td>
<td></td>
<td><span class="cost">50 metal, 50 leather, 200 wood</span></td>
</tr>
<tr id="esoldiergroup">
<td class="jobNone"></td>
<td class="jobCustom"></td>
<td class="job100"></td>
<td class="job10"></td>
<td></td>
<td class="enemy">Enemy Soldiers: </td>
<td class="number"><span id="esoldiers">0</span></td>
<td></td>
<td class="job10"></td>
<td class="job100"></td>
<td class="jobCustom"></td>
<td class="jobAll"></td>
<td><span class="note"></span></td>
</tr>
<tr id="efortgroup">
<td class="jobNone"></td>
<td class="jobCustom"></td>
<td class="job100"></td>
<td class="job10"></td>
<td></td>
<td class="enemy">Fortifications: </td>
<td class="number"><span id="eforts">0</span></td>
<td></td>
<td class="job10"></td>
<td class="job100"></td>
<td class="jobCustom"></td>
<td class="jobAll"></td>
<td><span class="note"></span></td>
</tr>
</table>
<br />
<div id="raidGroup">
<h4>To War!</h4>
<p id="gloryGroup">
Glory: <span id="gloryTimer">0</span> seconds remain
</p>
<button class="raid" data-civtype="thorp" onmousedown="onInvade(event)">Raid Thorp</button><br />
<button class="raid" data-civtype="hamlet" onmousedown="onInvade(event)" disabled>Raid Hamlet</button><br />
<button class="raid" data-civtype="village" onmousedown="onInvade(event)" disabled>Raid Village</button><br />
<button class="raid" data-civtype="smallTown" onmousedown="onInvade(event)" disabled>Raid Small Town</button><br />
<button class="raid" data-civtype="largeTown" onmousedown="onInvade(event)" disabled>Raid Large Town</button><br />
<button class="raid" data-civtype="smallCity" onmousedown="onInvade(event)" disabled>Raid Small City</button><br />
<button class="raid" data-civtype="largeCity" onmousedown="onInvade(event)" disabled>Raid Large City</button><br />
<button class="raid" data-civtype="metropolis" onmousedown="onInvade(event)" disabled>Raid Metropolis</button><br />
<button class="raid" data-civtype="smallNation" onmousedown="onInvade(event)" disabled>Raid Small Nation</button><br />
<button class="raid" data-civtype="nation" onmousedown="onInvade(event)" disabled>Raid Nation</button><br />
<button class="raid" data-civtype="largeNation" onmousedown="onInvade(event)" disabled>Raid Large Nation</button><br />
<button class="raid" data-civtype="empire" onmousedown="onInvade(event)" disabled>Raid Empire</button><br />
</div>
<div id="victoryGroup">
<h4>Victory!</h4>
<button id="plunder" onmousedown="plunder()">Plunder Resources</button><br />
</div>
</div>
</div>
<div id="tradePane">
<span id="tradeLine"><button id="tradeUpgrade" onmousedown="upgrade('trade')" disabled>Trade<br />(1 gold)</button><span class="note">Open the trading post</span><br /><br /></span>
<div id="tradeUpgradeContainer">
<span id="currencyLine"><button id="currency" onmousedown="upgrade('currency')" disabled>Currency<br />(10 gold, 1000 ore)</button><span class="note">Traders arrive more frequently, stay longer</span><br /></span>
<span id="commerceLine"><button id="commerce" onmousedown="upgrade('commerce')" disabled>Commerce<br />(100 gold, 10000 piety)</button><span class="note">Traders arrive more frequently, stay longer</span><br /></span>
<div id="speedWonderGroup"><br /><button id="speedWonder" onmousedown="speedWonder()">Speed Wonder<br />(100 gold)</button><span class="note">Increase wonder progress</span></div>
<h4>Buy Resources (1 gold)</h4>
<button class="tradeResource" onmousedown="buy(food)">Buy 5000 Food</button><br />
<button class="tradeResource" onmousedown="buy(wood)">Buy 5000 Wood</button><br />
<button class="tradeResource" onmousedown="buy(stone)">Buy 5000 Stone</button><br />
<button class="tradeResource" onmousedown="buy(skins)">Buy 500 Skins</button><br />
<button class="tradeResource" onmousedown="buy(herbs)">Buy 500 Herbs</button><br />
<button class="tradeResource" onmousedown="buy(ore)">Buy 500 Ore</button><br />
<button class="tradeResource" onmousedown="buy(leather)">Buy 250 Leather</button><br />
<button class="tradeResource" onmousedown="buy(metal)">Buy 250 Metal</button><br />
</div>
</div>
</div>
</div>
<div id="population">
<div id="populationContainer">
<h3>Population</h3>
<div id="populationNumbers">
<table>
<tr>
<td>Current Population: </td>
<td class="number"><span id="popcurrent">0</span></td>
</tr>
<tr>
<td>Maximum Population: </td>
<td class="number"><span id="popcap">0</span></td>
</tr>
<tr id="zombieWorkers">
<td>Zombies: </td>
<td class="number"><span id="popzombies">0</span></td>
</tr>
<tr>
<td>Happiness: </td>
<td><span id="happiness">Content</span></td>
</tr>
</table>
<br />
</div>
<div id="populationCreate">
<div id="spawn1group"><button id="spawn1" onmousedown="spawn(1)" disabled>Create Worker</button><span class="cost"><span id="workerCost">20</span> food</span><span class="note">: Create a new worker</span><br /></div>
<div id='spawn10'><button id="spawn10button" onmousedown="spawn(10)">Create 10 Workers</button><span class="cost"><span id="workerCost10">200</span> food</span><span class="note">: Create 10 new workers</span></div>
<div id='spawn100'><button id="spawn100button" onmousedown="spawn(100)">Create 100 Workers</button><span class="cost"><span id="workerCost100">2000</span> food</span><span class="note">: Create 100 new workers</span></div>
<div id='spawn1000'><button id="spawn1000button" onmousedown="spawn(1000)">Create 1000 Workers</button><span class="cost"><span id="workerCost1000">20000</span> food</span><span class="note">: Create 1000 new workers</span></div>
<div id='spawnMax'><button id="spawnMaxbutton" onmousedown="spawn(Infinity)">Create <span id="workerNumMax">Max</span> Workers</button><span class="cost"><span id="workerCostMax"></span> food</span><span class="note">: Create as many new workers as possible</span></div>
<div id="customSpawnIncrement"><input id="spawnCustom" type="number" min="1" step="1" value="1" /><button id="spawnCustomButton" onmousedown="spawn('custom')">Create Workers</button></div>
</div>
</div>
<div id="jobsContainer">
<h3>Jobs</h3>
<table id="jobs">
<tr id="customJobIncrement">
<td class="jobNone"></td>
<td class="jobCustom"></td>
<td class="job100"></td>
<td class="job10"></td>
<td></td>
<td>Increment:</td>
<td><input id="jobCustom" type="number" min="1" step="1" value="1" /></td>
<td></td>
<td class="job10"></td>
<td class="job100"></td>
<td class="jobCustom"></td>
<td class="jobAll"></td>
<td><span class="note"></span></td>
</tr>
<tr id="unempgroup">
<td class="jobNone"></td>
<td class="jobCustom"></td>
<td class="job100"></td>
<td class="job10"></td>
<td></td>
<td>Unemployed: </td>
<td class="number"><span id="unemployed">0</span></td>
<td></td>
<td class="job10"></td>
<td class="job100"></td>
<td class="jobCustom"></td>
<td class="jobAll"></td>
<td><span class="note">Unassigned Workers</span></td>
</tr>
<tr id="sickGroup">
<td class="jobNone"></td>
<td class="jobCustom"></td>
<td class="job100"></td>
<td class="job10"></td>
<td></td>
<td>Sick: </td>
<td class="number"><span id="sickTotal">0</span></td>
<td></td>
<td class="job10"></td>
<td class="job100"></td>
<td class="jobCustom"></td>
<td class="jobAll"></td>
<td><span class="note">Sick workers</span></td>
</tr>
<tr id="farmergroup">
<td class="jobNone"><button onmousedown="hire('farmers',-Infinity);">-All</button></td>
<td class="jobCustom"><button onmousedown="hire('farmers','negcustom');">-Custom</button></td>
<td class="job100"><button onmousedown="hire('farmers',-100);">-100</button></td>
<td class="job10"><button onmousedown="hire('farmers',-10);">-10</button></td>
<td><button onmousedown="hire('farmers',-1);"><</button></td>
<td class="job">Farmers: </td>
<td class="number"><span id="farmers">0</span></td>
<td><button onmousedown="hire('farmers',1);">></button></td>
<td class="job10"><button onmousedown="hire('farmers',10);">+10</button></td>
<td class="job100"><button onmousedown="hire('farmers',100);">+100</button></td>
<td class="jobCustom"><button onmousedown="hire('farmers','custom');">+Custom</button></td>
<td class="jobAll"><button onmousedown="hire('farmers',Infinity);">Max</button></td>
<td><span class="note">Automatically gather food</span></td>
</tr>
<tr id="woodcuttergroup">
<td class="jobNone"><button onmousedown="hire('woodcutters',-Infinity);">-All</button></td>
<td class="jobCustom"><button onmousedown="hire('woodcutters','negcustom');">-Custom</button></td>
<td class="job100"><button onmousedown="hire('woodcutters',-100);">-100</button></td>
<td class="job10"><button onmousedown="hire('woodcutters',-10);">-10</button></td>
<td><button onmousedown="hire('woodcutters',-1);"><</button></td>
<td class="job">Woodcutters: </td>
<td class="number"><span id="woodcutters">0</span></td>
<td><button onmousedown="hire('woodcutters',1);">></button></td>
<td class="job10"><button onmousedown="hire('woodcutters',10);">+10</button></td>
<td class="job100"><button onmousedown="hire('woodcutters',100);">+100</button></td>
<td class="jobCustom"><button onmousedown="hire('woodcutters','custom');">+Custom</button></td>
<td class="jobAll"><button onmousedown="hire('woodcutters',Infinity);">Max</button></td>
<td><span class="note">Automatically gather wood</span></td>
</tr>
<tr id="minergroup">
<td class="jobNone"><button onmousedown="hire('miners',-Infinity);">-All</button></td>
<td class="jobCustom"><button onmousedown="hire('miners','negcustom');">-Custom</button></td>
<td class="job100"><button onmousedown="hire('miners',-100);">-100</button></td>
<td class="job10"><button onmousedown="hire('miners',-10);">-10</button></td>
<td><button onmousedown="hire('miners',-1);"><</button></td>
<td class="job">Miners: </td>
<td class="number"><span id="miners">0</span></td>
<td><button onmousedown="hire('miners',1);">></button></td>
<td class="job10"><button onmousedown="hire('miners',10);">+10</button></td>
<td class="job100"><button onmousedown="hire('miners',100);">+100</button></td>
<td class="jobCustom"><button onmousedown="hire('miners','custom');">+Custom</button></td>
<td class="jobAll"><button onmousedown="hire('miners',Infinity);">Max</button></td>
<td><span class="note">Automatically gather stone</span></td>
</tr>
<tr id="tannergroup">
<td class="jobNone"><button onmousedown="hire('tanners',-Infinity);">-All</button></td>
<td class="jobCustom"><button onmousedown="hire('tanners','negcustom');">-Custom</button></td>
<td class="job100"><button onmousedown="hire('tanners',-100);">-100</button></td>
<td class="job10"><button onmousedown="hire('tanners',-10);">-10</button></td>
<td><button onmousedown="hire('tanners',-1);"><</button></td>
<td class="job">Tanners: </td>
<td class="number"><span id="tanners">0</span></td>
<td><button onmousedown="hire('tanners',1);">></button></td>
<td class="job10"><button onmousedown="hire('tanners',10);">+10</button></td>
<td class="job100"><button onmousedown="hire('tanners',100);">+100</button></td>
<td class="jobCustom"><button onmousedown="hire('tanners','custom');">+Custom</button></td>
<td class="jobAll"><button onmousedown="hire('tanners',Infinity);">Max</button></td>
<td><span class="note">Convert skins to leather</span></td>
</tr>
<tr id="blacksmithgroup">
<td class="jobNone"><button onmousedown="hire('blacksmiths',-Infinity);">-All</button></td>
<td class="jobCustom"><button onmousedown="hire('blacksmiths','negcustom');">-Custom</button></td>
<td class="job100"><button onmousedown="hire('blacksmiths',-100);">-100</button></td>
<td class="job10"><button onmousedown="hire('blacksmiths',-10);">-10</button></td>
<td><button onmousedown="hire('blacksmiths',-1);"><</button></td>
<td class="job">Blacksmiths: </td>
<td class="number"><span id="blacksmiths">0</span></td>
<td><button onmousedown="hire('blacksmiths',1);">></button></td>
<td class="job10"><button onmousedown="hire('blacksmiths',10);">+10</button></td>
<td class="job100"><button onmousedown="hire('blacksmiths',100);">+100</button></td>
<td class="jobCustom"><button onmousedown="hire('blacksmiths','custom');">+Custom</button></td>
<td class="jobAll"><button onmousedown="hire('blacksmiths',Infinity);">Max</button></td>
<td><span class="note">Convert ore to metal</span></td>
</tr>
<tr id="healergroup">
<td class="jobNone"><button onmousedown="hire('healers',-Infinity);">-All</button></td>
<td class="jobCustom"><button onmousedown="hire('healers','negcustom');">-Custom</button></td>
<td class="job100"><button onmousedown="hire('healers',-100);">-100</button></td>
<td class="job10"><button onmousedown="hire('healers',-10);">-10</button></td>
<td><button onmousedown="hire('healers',-1);"><</button></td>
<td class="job">healers </td>
<td class="number"><span id="healers">0</span></td>
<td><button onmousedown="hire('healers',1);">></button></td>
<td class="job10"><button onmousedown="hire('healers',10);">+10</button></td>
<td class="job100"><button onmousedown="hire('healers',100);">+100</button></td>
<td class="jobCustom"><button onmousedown="hire('healers','custom');">+Custom</button></td>
<td class="jobAll"><button onmousedown="hire('healers',Infinity);">Max</button></td>
<td><span class="note">Cure sick workers</span></td>
</tr>
<tr id="clericgroup">
<td class="jobNone"><button onmousedown="hire('clerics',-Infinity);">-All</button></td>
<td class="jobCustom"><button onmousedown="hire('clerics','negcustom');">-Custom</button></td>
<td class="job100"><button onmousedown="hire('clerics',-100);">-100</button></td>
<td class="job10"><button onmousedown="hire('clerics',-10);">-10</button></td>
<td><button onmousedown="hire('clerics',-1);"><</button></td>
<td class="job">Clerics: </td>
<td class="number"><span id="clerics">0</span></td>
<td><button onmousedown="hire('clerics',1);">></button></td>
<td class="job10"><button onmousedown="hire('clerics',10);">+10</button></td>
<td class="job100"><button onmousedown="hire('clerics',100);">+100</button></td>
<td class="jobCustom"><button onmousedown="hire('clerics','custom');">+Custom</button></td>
<td class="jobAll"><button onmousedown="hire('clerics',Infinity);">Max</button></td>
<td><span class="note">Generate piety, bury corpses</span></td>
</tr>
<tr id="labourergroup">
<td class="jobNone"><button onmousedown="hire('labourers',-Infinity);">-All</button></td>
<td class="jobCustom"><button onmousedown="hire('labourers','negcustom');">-Custom</button></td>
<td class="job100"><button onmousedown="hire('labourers',-100);">-100</button></td>
<td class="job10"><button onmousedown="hire('labourers',-10);">-10</button></td>
<td><button onmousedown="hire('labourers',-1);"><</button></td>
<td class="job">Labourers: </td>
<td class="number"><span id="labourers">0</span></td>
<td><button onmousedown="hire('labourers',1);">></button></td>
<td class="job10"><button onmousedown="hire('labourers',10);">+10</button></td>
<td class="job100"><button onmousedown="hire('labourers',100);">+100</button></td>
<td class="jobCustom"><button onmousedown="hire('labourers','custom');">+Custom</button></td>
<td class="jobAll"><button onmousedown="hire('labourers',Infinity);">Max</button></td>
<td><span class="note">Use resources to build wonder</span></td>
</tr>
<tr id="soldiergroup">
<td class="jobNone"><button onmousedown="hire('soldiers',-Infinity);">-All</button></td>
<td class="jobCustom"><button onmousedown="hire('soldiers','negcustom');">-Custom</button></td>
<td class="job100"><button onmousedown="hire('soldiers',-100);">-100</button></td>
<td class="job10"><button onmousedown="hire('soldiers',-10);">-10</button></td>
<td><button onmousedown="hire('soldiers',-1);"><</button></td>
<td class="job">Soldiers: </td>
<td class="number"><span id="soldiers">0</span></td>
<td><button onmousedown="hire('soldiers',1);">></button></td>
<td class="job10"><button onmousedown="hire('soldiers',10);">+10</button></td>
<td class="job100"><button onmousedown="hire('soldiers',100);">+100</button></td>
<td class="jobCustom"><button onmousedown="hire('soldiers','custom');">+Custom</button></td>
<td class="jobAll"><button onmousedown="hire('soldiers',Infinity);">Max</button></td>
<td><span class="cost">10 metal, 10 leather</span><span class="note">: Protect from attack</span></td>
</tr>
<tr id="cavalrygroup">
<td class="jobNone"><button onmousedown="hire('cavalry',-Infinity);">-All</button></td>
<td class="jobCustom"><button onmousedown="hire('cavalry','negcustom');">-Custom</button></td>
<td class="job100"><button onmousedown="hire('cavalry',-100);">-100</button></td>
<td class="job10"><button onmousedown="hire('cavalry',-10);">-10</button></td>
<td><button onmousedown="hire('cavalry',-1);"><</button></td>
<td class="job"><span id="cavName">Cavalry</span>: </td>
<td class="number"><span id="cavalry">0</span></td>
<td><button onmousedown="hire('cavalry',1);">></button></td>
<td class="job10"><button onmousedown="hire('cavalry',10);">+10</button></td>
<td class="job100"><button onmousedown="hire('cavalry',100);">+100</button></td>
<td class="jobCustom"><button onmousedown="hire('cavalry','custom');">+Custom</button></td>
<td class="jobAll"><button onmousedown="hire('cavalry',Infinity);">Max</button></td>
<td><span class="cost">20 food, 20 leather</span><span class="note">: Protect from attack</span></td>
</tr>
<tr id="shadesgroup">
<td class="jobNone"></td>
<td class="jobCustom"></td>
<td class="job100"></td>
<td class="job10"></td>
<td></td>
<td>Shades: </td>
<td class="number"><span id="shades">0</span></td>
<td></td>
<td class="job10"></td>
<td class="job100"></td>
<td class="jobCustom"></td>
<td class="jobAll"></td>
<td><span class="note">Insubstantial spirits</span></td>
</tr>
<tr id="wolfgroup">
<td class="jobNone"></td>
<td class="jobCustom"></td>
<td class="job100"></td>
<td class="job10"></td>
<td></td>
<td class="enemy">Wolves: </td>
<td class="number"><span id="wolves">0</span></td>
<td></td>
<td class="job10"></td>
<td class="job100"></td>
<td class="jobCustom"></td>
<td class="jobAll"></td>
<td><span class="note"></span></td>
</tr>
<tr id="banditgroup">
<td class="jobNone"></td>
<td class="jobCustom"></td>
<td class="job100"></td>
<td class="job10"></td>
<td></td>
<td class="enemy">Bandits: </td>
<td class="number"><span id="bandits">0</span></td>
<td></td>
<td class="job10"></td>
<td class="job100"></td>
<td class="jobCustom"></td>
<td class="jobAll"></td>
<td><span class="note"></span></td>
</tr>
<tr id="barbariangroup">
<td class="jobNone"></td>
<td class="jobCustom"></td>
<td class="job100"></td>
<td class="job10"></td>
<td></td>
<td class="enemy">Barbarians: </td>
<td class="number"><span id="barbarians">0</span></td>
<td></td>
<td class="job10"></td>
<td class="job100"></td>
<td class="jobCustom"></td>
<td class="jobAll"></td>
<td><span class="note"></span></td>
</tr>
<tr id="esiegegroup">
<td class="jobNone"></td>
<td class="jobCustom"></td>
<td class="job100"></td>
<td class="job10"></td>
<td></td>
<td class="enemy">Siege Engines: </td>
<td class="number"><span id="esiege">0</span></td>
<td></td>
<td class="job10"></td>
<td class="job100"></td>
<td class="jobCustom"></td>
<td class="jobAll"></td>
<td><span class="note"></span></td>
</tr>
</table>
</div>
<div id="tradeContainer">
Trader offers 1 gold for <span id="tradeRequested">0</span> <span id="tradeType">food</span><br />
<button id="trade" onmousedown="trade()">Trade</button>
</div>
<div id="wondersContainer">
<div id="wonderBuilding">
<div id="inProgress">
<span class="wonderTitle">Progress on <span id="wonderNameP">Wonder</span> - <span id="progressNumber">0</span>%</span> - <button id="renameWonder" onmousedown="renameWonder()">Rename</button>
<div id="progressContainer"><div id="progressBar"></div></div>
<div id="lowResources">Limited<span id="limited"> by low resources</span></div>
</div>
<div id="completed">
<div class="wonderTitle"><span id="wonderNameC">Wonder</span> Completed! Choose Bonus:</div>
<button class="wonderBonus" onmousedown="wonderBonus('Food')">Food</button>
<button class="wonderBonus" onmousedown="wonderBonus('Wood')">Wood</button>
<button class="wonderBonus" onmousedown="wonderBonus('Stone')">Stone</button><br />
<button class="wonderBonus" onmousedown="wonderBonus('Skins')">Skins</button>
<button class="wonderBonus" onmousedown="wonderBonus('Herbs')">Herbs</button>
<button class="wonderBonus" onmousedown="wonderBonus('Ore')">Ore</button><br />
<button class="wonderBonus" onmousedown="wonderBonus('Leather')">Leather</button>
<button class="wonderBonus" onmousedown="wonderBonus('Piety')">Piety</button>
<button class="wonderBonus" onmousedown="wonderBonus('Metal')">Metal</button>
</div>
</div>
</div>
<div id="eventsContainer">
<h3>Events</h3>
<table id="logTable">
<tr id="log0"><td id="logT"></td><td id="logL"></td><td id="logR"></td></tr>
<tr id="log1"><td colspan="3"></td></tr>
<tr id="log2"><td colspan="3"></td></tr>
<tr id="log3"><td colspan="3"></td></tr>
<tr id="log4"><td colspan="3"></td></tr>
<!-- <tr id="log5"><td colspan="3"></td></tr>
<tr id="log6"><td colspan="3"></td></tr>
<tr id="log7"><td colspan="3"></td></tr>
<tr id="log8"><td colspan="3"></td></tr>
<tr id="log9"><td colspan="3"></td></tr> -->
</table>
</div>
<div id="pantheonContainer">
<h3>Pantheon</h3>
<table id="activeDeity">
<tr id="deity1">
<td><strong><span id="deity1Name">No deity</span></strong><span id="deity1Type" class="deityType"></span></td>
<td>Devotion: <span id="devotion1">0</span></td>
<td class="removeDeity"><button class="removeDeity" onmousedown="removeDeity(deity1)">X</button></td>
</tr>
</table>
<br />
<table id="oldDeities"><tr><td></td></tr></table>
</div>
<div id="permaUpgradeContainer">
<h3>Pantheon Upgrades</h3>
<table>
<tr id="Priddle"><td><strong>Riddle of Steel</strong>: </td><td>Improve soldiers</td></tr>
<tr id="Pthrone"><td><strong>Throne of Skulls</strong>: </td><td>Slaying enemies creates temples</td></tr>
<tr id="Plament"><td><strong>Lament of the Defeated</strong>: </td><td>Successful raids delay future invasions</td></tr>
<tr id="Pbook"><td><strong>The Book of the Dead</strong>: </td><td>Gain piety with deaths</td></tr>
<tr id="Pfeast"><td><strong>A Feast for Crows</strong>: </td><td>Corpses are less likely to cause illness</td></tr>
<tr id="Psecrets"><td><strong>Secrets of the Tombs</strong>: </td><td>Graveyards increase Cleric piety generation</td></tr>
<tr id="Plure"><td><strong>Lure of Civilisation</strong>: </td><td>Increase chance to get cats</td></tr>
<tr id="Pcompanion"><td><strong>Warmth of the Companion</strong>: </td><td>Cats help heal the sick</td></tr>
<tr id="Pcomfort"><td><strong>Comfort of the Hearthfires</strong>: </td><td>Traders arrive more frequently</td></tr>
<tr id="Pblessing"><td><strong>Blessing of Abundance</strong>: </td><td>Increase farmer food output</td></tr>
<tr id="Pwaste"><td><strong>Abide No Waste</strong>: </td><td>Workers will eat corpses if there is no food left</td></tr>
<tr id="Pstay"><td><strong>Stay With Us</strong>: </td><td>Traders stay longer</td></tr>
</table>
</div>
<div id="pastWondersContainer">
<h3>Wonders</h3>
<table id="pastWonders"><tr><td></td></tr></table>
</div>
<div id="settings">
<h3>Settings</h3>
<button onmousedown="save('manual')" title="Save your current stats">Manual Save</button><br />
<button id="toggleAutosave" onmousedown="toggleAutosave()" title="Autosave toggle">Disable Autosave</button><br />
<button onmousedown="deleteSave()" title="Delete your saved stats">Delete Save File</button><br />
<br />
<button onmousedown="reset()" title="Reset your game">Reset Game</button><span class="note"><span id="resetNote"><br/>Resetting allows you to </span><span id="resetDeity">gain another deity</span><span id="resetBoth"><br/> and </span><span id="resetWonder">build another Wonder</span></span><br />
<br />
<button onmousedown="renameCiv()" title="Rename your civilisation">Rename Civilisation</button><br />
<button onmousedown="renameRuler()" title="Rename yourself">Rename Yourself</button><br />
<button id="renameDeity" onmousedown="renameDeity()" title="Rename your deity" disabled>Rename Current Deity</button><br />
<br />
<button id="toggleCustomIncrements" onmousedown="toggleCustomIncrements()" title="Custom Increment toggle">Enable Custom Increments</button><br />
<br />
<button id="smallerText" onmousedown="text(-1)" title="Smaller Text">Smaller Text</button><br />
<button id="largerText" onmousedown="text(1)" title="Larger Text">Larger Text</button><br />
<button id="toggleDelimiters" onmousedown="toggleDelimiters()" title="Toggle Delimiters">Disable Delimiters</button><br />
<button id="textShadow" onmousedown="textShadow()" title="Toggle Text Shadow">Enable Text Shadow</button><br />
<button id="toggleNotes" onmousedown="toggleNotes()" title="Toggle Notes">Disable Notes</button><br />
<button id="toggleWorksafe" onmousedown="toggleWorksafe()" title="Toggle Worksafe Mode">Toggle Worksafe Mode</button><br />
<!--<button id="iconToggle" onmousedown="iconToggle()" title="Toggle Icons">Use Words</button><br />-->
</div>
<div id="stats">
<h3>Stats</h3>
Resource clicks: <span id="clicks">0</span><br />
Total Land: <span id="totalLand">1000</span><br />
Total Buildings: <span id="totalBuildings">0</span><br />
Enemies Slain: <span id="enemiesSlain">0</span><br />
Unburied Corpses: <span id="corpses">0</span><br />
<span id="gravesTotal">Unfilled Graves: <span id="graves">0</span><br /></span>
<span id="walkGroup"><br />Walk: <span id="walkStat">0</span> workers per second<br /></span>
<br />
Cats: <span id="cats">0</span><br />
</div>
<div style="clear:both;"><br /></div>
<div id="achievements">
<h3>Achievements</h3>
<span class="achievement" title="Hamlet"><span class="achUnlocked" id="achHamlet">Hamlet</span></span>
<span class="achievement" title="Village"><span class="achUnlocked" id="achVillage">Village</span></span>
<span class="achievement" title="Small Town"><span class="achUnlocked" id="achSmallTown">Small Town</span></span>
<span class="achievement" title="Large Town"><span class="achUnlocked" id="achLargeTown">Large Town</span></span>
<span class="achievement" title="Small City"><span class="achUnlocked" id="achSmallCity">Small City</span></span>
<span class="achievement" title="Large City"><span class="achUnlocked" id="achLargeCity">Large City</span></span>
<span class="achievement" title="Metropolis"><span class="achUnlocked" id="achMetropolis">Metro­polis</span></span>
<span class="achievement" title="Small Nation"><span class="achUnlocked" id="achSmallNation">Small Nation</span></span>
<span class="achievement" title="Nation"><span class="achUnlocked" id="achNation">Nation</span></span>
<span class="achievement" title="Large Nation"><span class="achUnlocked" id="achLargeNation">Large Nation</span></span>
<span class="achievement" title="Empire"><span class="achUnlocked" id="achEmpire">Empire</span></span>
<div style="clear:both;"><br /></div>
<span class="achievement" title="Raider"><span class="achUnlocked" id="achRaider">Raider</span></span>
<span class="achievement" title="Engineer"><span class="achUnlocked" id="achEngineer">Engi­neer</span></span>
<span class="achievement" title="Domination"><span class="achUnlocked" id="achDomination">Domi­nation</span></span>
<span class="break"> </span>
<span class="achievement" title="Hated"><span class="achUnlocked" id="achHated">Hated</span></span>
<span class="achievement" title="Loved"><span class="achUnlocked" id="achLoved">Loved</span></span>
<span class="break"> </span>
<span class="achievement" title="Cat!"><span class="achUnlocked" id="achCat">Cat!</span></span>
<span class="achievement" title="Glaring"><span class="achUnlocked" id="achGlaring">Glaring</span></span>
<span class="achievement" title="Clowder"><span class="achUnlocked" id="achClowder">Clowder</span></span>
<span class="break"> </span>
<span class="achievement" title="Plagued"><span class="achUnlocked" id="achPlague">Plagued</span></span>
<span class="break"> </span>
<span class="achievement" title="Ghost Town"><span class="achUnlocked" id="achGhostTown">Ghost Town</span></span>
<div style="clear:both;"><br /></div>
<span class="achievement" title="Battle"><span class="achUnlocked" id="achBattle">Battle</span></span>
<span class="achievement" title="Fields"><span class="achUnlocked" id="achFields">Fields</span></span>
<span class="achievement" title="Underworld"><span class="achUnlocked" id="achUnderworld">Under­world</span></span>
<span class="achievement" title="Cats"><span class="achUnlocked" id="achCats">Cats</span></span>
<span class="achievement" title="Full House"><span class="achUnlocked" id="achFullHouse">Full House</span></span>
<span class="break"> </span>
<span class="achievement" title="Wonder"><span class="achUnlocked" id="achWonder">Wonder</span></span>
<span class="achievement" title="Seven!"><span class="achUnlocked" id="achSeven">Seven!</span></span>
<span class="break"> </span>
<span class="achievement" title="Merchant"><span class="achUnlocked" id="achMerchant">Merch­ant</span></span>
<span class="achievement" title="Rushed"><span class="achUnlocked" id="achRushed">Rushed</span></span>
<span class="break"> </span>
<span class="achievement" title="Neverclick"><span class="achUnlocked" id="achNeverclick">Never­click</span></span>
</div>
</div>
<script type="text/javascript" src="civclicker.js"></script>
</body>
</html>