File: table.def

package info (click to toggle)
xconq 7.2.2-2
  • links: PTS
  • area: main
  • in suites: slink
  • size: 8,296 kB
  • ctags: 9,199
  • sloc: ansic: 107,849; sh: 2,108; perl: 2,057; makefile: 1,177; sed: 161; csh: 50; awk: 49; lisp: 39
file content (819 lines) | stat: -rw-r--r-- 33,124 bytes parent folder | download | duplicates (2)
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
/* Definitions of all the tables in Xconq GDL.
   Copyright (C) 1991-1997 Stanley T. Shebs.

Xconq 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 2, or (at your option)
any later version.  See the file COPYING.  */

DEF_UT_TABLE("accident-damage", ut_accident_damage,
	"damage from an accident",
	utaccidentdamage, constaccidentdamage, 0, 0, TABHI, TABINT)

DEF_UT_TABLE("accident-hit-chance", ut_accident_hit,
	"chance to be hit in given terrain type, as .01% chance",
	utaccidenthit, constaccidenthit, 0, 0, TABHI, TABINT)

DEF_UT_TABLE("accident-vanish-chance", ut_accident_vanish,
	"chance to vanish in given terrain type, as .01% chance",
	utaccidentvanish, constaccidentvanish, 0, 0, TABHI, TABINT)

DEF_UU_TABLE("acp-for-retreat", uu_acp_retreat,
	"extra acp available when retreating",
	uuacpretreat, constuuacpretreat, TABLO, 0, TABHI, TABINT)

DEF_UT_TABLE("acp-night-effect", ut_acp_night_effect,
	"effect of night on acp",
	utacpnighteffect, constutacpnighteffect, 0, 100, TABHI, TABINT)

DEF_UU_TABLE("acp-occupant-effect", uu_acp_occ_effect,
	"effect of occupants on acp",
	uuacpocceffect, constuuacpocceffect, 0, 100, TABHI, TABINT)

DEF_UT_TABLE("acp-to-add-terrain", ut_acp_to_add_terrain,
	"the acp needed by a type of unit to add a type of terrain",
	utacptoaddterrain, constutacptoaddterrain, 0, 0, TABHI, TABINT)

DEF_UU_TABLE("acp-to-attack", uu_acp_to_attack,
	"acp needed by a type of unit to attack another type",
	uuacptoattack, constuuacptoattack, 0, 1, TABHI, TABINT)

DEF_UU_TABLE("acp-to-be-fired-on", uu_acp_to_be_fired_on,
	"acp used up by a type of unit when fired on by another type",
	uuacptobefiredon, constuuacptobefiredon, 0, 1, TABHI, TABINT)

DEF_UU_TABLE("acp-to-build", uu_acp_to_build,
	"acp needed by a type of unit to work on another type",
	uuacptobuild, constuuacptobuild, 0, 0, TABHI, TABINT)

DEF_UU_TABLE("acp-to-capture", uu_acp_to_capture,
	"acp needed by a type of unit to capture another type",
	uuacptocapture, constuuacptocapture, 0, 0, TABHI, TABINT)

DEF_UU_TABLE("acp-to-change-type", uu_acp_to_change_type,
	"acp needed by one type of unit to change to another type",
	uuacptochangetype, constuuacptochangetype, 0, 0, TABHI, TABINT)

DEF_UU_TABLE("acp-to-create", uu_acp_to_create,
	"acp needed by one type of unit to create another type",
	uuacptocreate, constuuacptocreate, 0, 0, TABHI, TABINT)

DEF_UU_TABLE("acp-to-defend", uu_acp_to_defend,
	"acp used up by a type of unit to defend against another type",
	uuacptodefend, constuuacptodefend, 0, 1, TABHI, TABINT)

DEF_UU_TABLE("acp-to-enter-unit", uu_acp_to_enter,
	"acp needed by one type of unit to enter another type",
	uuacptoenter, constuuacptoenter, 0, 1, TABHI, TABINT)

DEF_UM_TABLE("acp-to-load", um_acp_to_load,
	"",
	umacptoload, constumacptoload, 0, 0, TABHI, TABINT)

DEF_UT_TABLE("acp-to-remove-terrain", ut_acp_to_remove_terrain,
	"acp needed to remove a type of terrain",
	utacptoremoveterrain, constutacptoremoveterrain, 0, 0, TABHI, TABINT)

DEF_UM_TABLE("acp-to-produce", um_acp_to_produce,
	"",
	umacptoproduce, constumacptoproduce, 0, 0, TABHI, TABINT)

DEF_UU_TABLE("acp-to-repair", uu_acp_to_repair,
	"acp needed by one type of unit to repair another type",
	uuacptorepair, constuuacptorepair, 0, 0, TABHI, TABINT)

DEF_UU_TABLE("acp-to-research", uu_acp_to_research,
	"acp needed by one type of unit to research another type",
	uuacptoresearch, constuuacptoresearch, 0, 0, TABHI, TABINT)

DEF_UU_TABLE("acp-to-toolup", uu_acp_to_toolup,
	"acp needed by one type of unit to toolup another type",
	uuacptotoolup, constuuacptotoolup, 0, 0, TABHI, TABINT)

DEF_UM_TABLE("acp-to-unload", um_acp_to_unload,
	"",
	umacptounload, constumacptounload, 0, 0, TABHI, TABINT)

DEF_TT_TABLE("adjacent-terrain-effect", tt_adj_terr_effect,
	"effect of adjacent terrain on another",
	ttadjterreffect, constttadjterreffect, -1, -1, MAXTTYPES, TABINT)

DEF_UT_TABLE("alter-terrain-range", ut_alter_range,
	"distance at which a unit can alter terrain",
	utalterrange, constutalterrange, 0, 0, TABHI, TABINT)

DEF_UT_TABLE("altitude-max", ut_alt_max,
	"how high unit can go in the terrain",
	utaltmax, constutaltmax, TABLO, 0, TABHI, TABINT)

DEF_UT_TABLE("altitude-min", ut_alt_min,
	"how low unit can go in the terrain",
	utaltmin, constutaltmin, TABLO, 0, TABHI, TABINT)

DEF_UU_TABLE("attack-range", uu_attack_range,
	"maximum distance at which a unit may attack",
	uuattackrange, constuuattackrange, -1, 1, TABHI, TABINT)

DEF_UU_TABLE("attack-range-min", uu_attack_range_min,
	"minimum distance at which a unit may attack",
	uuattackrangemin, constuuattackrangemin, -1, 0, TABHI, TABINT)

DEF_UT_TABLE("attack-terrain-effect", ut_attack_terrain_effect,
	"effect of terrain on an attack's hit chance",
	utattackterraineffect, constutattackterraineffect, 0, 100, TABHI, TABINT)

DEF_UT_TABLE("attrition", ut_attrition,
	"base chance to lose hp in given terrain type",
	utattrition, constutattrition, 0, 0, TABHI, TABINT)

DEF_UU_TABLE("auto-repair", uu_auto_repair,
	"amount of automatic repair of damage",
	uuautorepair, constuuautorepair, 0, 0, TABHI, TABINT)

DEF_UU_TABLE("auto-repair-range", uu_auto_repair_range,
	"distance up to which automatic repair of damage can occur",
	uuautorepairrange, constuuautorepairrange, -1, 0, TABHI, TABINT)

DEF_UM_TABLE("base-consumption", um_base_consumption,
	"basic amount of supply consumption in each turn",
	umbaseconsumption, constumbaseconsumption, 0, 0, TABHI, TABINT)

DEF_UM_TABLE("base-production", um_base_production,
	"basic amount of supply production",
	umbaseproduction, constumbaseproduction, 0, 0, TABHI, TABINT)

DEF_UT_TABLE("body-height", ut_body_height,
	"effective height of a unit's body in a type of terrain",
	utbodyheight, constutbodyheight, TABLO, 0, TABHI, TABINT)

DEF_UU_TABLE("bridge", uu_bridge,
	"whether an assault can cross to a unit on impassable terrain",
	uubridge, constbridge, 0, 0, TABHI, TABINT)

DEF_UU_TABLE("build-range", uu_build_range,
	"max distance between unit and unit being worked on",
	uubuildrange, constuubuildrange, -1, 0, TABHI, TABINT)

DEF_UU_TABLE("can-enter-independent", uu_can_enter_indep,
	"true if the type can enter an indep of some other type",
	uucanenterindep, constuucanenterindep, 0, 0, 1, TABINT)

DEF_UT_TABLE("capacity-negation", ut_capacity_neg,
	"true if the unit negates capacity of connections of the terrain type",
	utcapacityneg, constutcapacityneg, 0, 0, 1, TABINT)

DEF_UU_TABLE("capture-chance", uu_capture,
	"base chance for one type of unit to capture another type",
	uucapture, constuucapture, 0, 0, 100, TABINT)

DEF_TM_TABLE("change-on-exhaustion-chance", tm_change_on_exhaust,
	"chance that terrain will change type if no more of material",
	tmchangeonexhaust, consttmchangeonexhaust, 0, 0, 100, TABINT)

DEF_TT_TABLE("coating-depth-max", tt_coat_max,
	"max depth of coating type over another type of terrain",
	ttcoatmax, constttcoatmax, 0, 0, TABHI, TABINT)

DEF_TT_TABLE("coating-depth-min", tt_coat_min,
	"min depth of coating type over another type of terrain",
	ttcoatmin, constttcoatmin, 0, 0, TABHI, TABINT)

DEF_UM_TABLE("consumption-as-occupant", um_consumption_as_occupant,
	"effect of being an occupant on base consumption",
	umconsumpasoccupant, constumconsumpasoccupant, 0, 100, TABHI, TABINT)

DEF_UM_TABLE("consumption-on-creation", um_consumption_on_creation,
	"amount of material used by any creator to create a type of unit",
	umconsumponcreation, constumconsumponcreation, TABLO, 0, TABHI, TABINT)

DEF_TM_TABLE("consumption-per-add-terrain", tm_consumption_per_add_terrain,
	"amount of material consumed by adding terrain",
	tmconsumpperaddterr, consttmconsumpperaddterr, 0, 0, TABHI, TABINT)

DEF_UM_TABLE("consumption-per-attack", um_consumption_per_attack,
	"amount of material used up by an attack action",
	umconsumpperattack, constumconsumpperattack, TABLO, 0, TABHI, TABINT)

DEF_UM_TABLE("consumption-per-build", um_consumption_per_build,
	"amount of material used up by a build action",
	umconsumpperbuild, constumconsumpperbuild, TABLO, 0, TABHI, TABINT)

DEF_UM_TABLE("consumption-per-fire", um_consumption_per_fire,
	"amount of material used up by a fire action",
	umconsumpperfire, constumconsumpperfire, TABLO, -1, TABHI, TABINT)

DEF_UM_TABLE("consumption-per-move", um_consumption_per_move,
	"amount of material used up by a move action",
	umconsumppermove, constumconsumppermove, TABLO, 0, TABHI, TABINT)

DEF_UM_TABLE("consumption-per-repair", um_consumption_per_repair,
	"amount of material used up by any repair action on a type of unit",
	umconsumpoperrepair, constumconsumpperrepair, TABLO, 0, TABHI, TABINT)

DEF_UT_TABLE("control-range", ut_control_range,
	"distance out to which a unit can get control of terrain",
	utcontrolrange, constutcontrolrange, -1, -1, TABHI, TABINT)

DEF_UT_TABLE("keep-control-range", ut_keep_control_range,
	"distance out to which a unit can keep control of terrain",
	utkeepcontrolrange, constutkeepcontrolrange, -1, -1, TABHI, TABINT)

DEF_UU_TABLE("counterattack", uu_counterattack,
	"normal strength of reaction to direct attack",
	uucounterattack, constuucounterattack, 0, 100, TABHI, TABINT)

DEF_UU_TABLE("countercapture", uu_countercapture,
	"normal strength of reaction to capture attempts",
	uucountercapture, constuucountercapture, 0, 0, TABHI, TABINT)

DEF_UU_TABLE("cp-on-creation", uu_creation_cp,
	"completeness point of the unit when first created",
	uucreationcp, constuucreationcp, 0, 1, TABHI, TABINT)

DEF_UU_TABLE("cp-per-build", uu_cp_per_build,
	"completeness points added by one build action",
	uucpperbuild, constuucpperbuild, 0, 1, TABHI, TABINT)

DEF_UU_TABLE("create-range", uu_create_range,
	"max distance between unit and unit being created",
	uucreaterange, constuucreaterange, 0, 0, TABHI, TABINT)

DEF_UU_TABLE("cxp-per-capture", uu_cxp_per_capture,
	"combat experience gained from attempting to capture",
	uucxppercapture, constuucxppercapture, 0, 0, TABHI, TABINT)

DEF_UU_TABLE("cxp-per-combat", uu_cxp_per_combat,
	"combat experience gained from attack or defense",
	uucxppercombat, constuucxppercombat, 0, 0, TABHI, TABINT)

DEF_UU_TABLE("damage", uu_damage,
	"points of damage that one unit will inflict on another",
	uudamage, constuudamage, 0, 0, TABHI, TABDICE)

DEF_UU_TABLE("damage-cxp-effect", uu_damage_cxp,
	"effect of combat experience on damage",
	uudamagecxp, constuudamagecxp, 0, 100, TABHI, TABINT)

DEF_UT_TABLE("defend-terrain-effect", ut_defend_terrain_effect,
	"effect of defender's terrain on attack results",
	utdefendterraineffect, constutdefendterraineffect, 0, 100, TABHI, TABINT)

DEF_UU_TABLE("detonate-on-approach-range", uu_detonate_approach_range,
	"range at which a unit will detonate if another approaches",
	uudetonateapproachrange, constdetonateapproachrange, -1, -1, TABHI, TABINT)

DEF_UU_TABLE("detonate-on-capture", uu_detonate_on_capture,
	"chance that a unit will detonate when captured",
	uudetonateoncapture, constdetonateoncapture, 0, 0, 100, TABINT)

DEF_UU_TABLE("detonate-on-hit", uu_detonate_on_hit,
	"chance that a unit will detonate when hit in combat",
	uudetonateonhit, constdetonateonhit, 0, 0, 100, TABINT)

DEF_UT_TABLE("detonation-accident-chance", ut_detonation_accident,
	"chance of an accidental detonation",
	utdetonationaccident, constutdetonationaccident, 0, 0, TABHI, TABINT)

DEF_UU_TABLE("detonation-damage-adjacent", uu_detonation_damage_adj,
	"damage done to units adjacent to a detonation",
	uudetonationdamageadj, constuudetonationdamageadj, 0, 0, TABHI, TABINT)

DEF_UU_TABLE("detonation-damage-at", uu_detonation_damage_at,
	"damage done to units in the same cell as a detonation",
	uudetonationdamageat, constuudetonationdamageat, 0, 0, TABHI, TABINT)

DEF_UT_TABLE("detonation-terrain-range", ut_detonation_range,
	"distance for detonation effects on terrain",
	utdetonationrange, constutdetonationrange, 0, 0, TABHI, TABINT)

DEF_UU_TABLE("detonation-unit-range", uu_detonation_range,
	"distance for detonation effects on units",
	uudetonationrange, constuudetonationrange, 0, 0, TABHI, TABINT)

DEF_UT_TABLE("detonation-terrain-damage-chance", ut_detonation_damage,
	"chance that detonation will damage a type of terrain",
	utdetonationdamage, constutdetonationdamage, 0, 0, 100, TABINT)

DEF_UT_TABLE("eye-height", ut_eye_height,
	"effective height of a unit's eyes in a type of terrain",
	uteyeheight, constuteyeheight, TABLO, 0, TABHI, TABINT)

DEF_UT_TABLE("favored-terrain", ut_favored,
	"the chance for a unit to be placed on a type of terrain",
	utfavored, constfavored, 0, 100, 100, TABINT)

DEF_UU_TABLE("ferry-on-entry", uu_ferry_on_enter,
	"amount of intervening terrain that transport will take entering units over",
	uuferryonenter, constuuferryonenter, 0, 2, 3, TABINT)

DEF_UU_TABLE("ferry-on-departure", uu_ferry_on_leave,
	"amount of intervening terrain that transport will take leaving units over",
	uuferryonleave, constuuferryonleave, 0, 2, 3, TABINT)

DEF_UT_TABLE("fire-attack-terrain-effect", ut_fire_attack_terrain_effect,
	"effect of attacking unit's terrain on fire hit chance",
	utfireattackterraineffect, constfireutattackterraineffect, 0, 100, TABHI, TABINT)

DEF_UU_TABLE("fire-damage", uu_fire_damage,
	"damage that a unit will inflict on another by firing at it",
	uufiredamage, constuufiredamage, -1, -1, 32767, TABINT)

DEF_UT_TABLE("fire-defend-terrain-effect", ut_fire_defend_terrain_effect,
	"effect of defending unit's terrain on fire hit chance",
	utfiredefendterraineffect, constfireutdefendterraineffect, 0, 100, TABHI, TABINT)

DEF_UU_TABLE("fire-hit-chance", uu_fire_hit,
	"base chance for a unit to hit another unit by firing at it",
	uufirehitchance, constuufirehitchance, -1, -1, 100, TABINT)

DEF_UU_TABLE("hp-min", uu_hp_min,
	"minimum below which attacker cannot reduce a defender's HP",
	uuhpmin, constuuhpmin, 0, 0, TABHI, TABINT)

DEF_UU_TABLE("hp-to-garrison", uu_hp_to_garrison,
	"hp of a unit that gets used up to garrison a capture",
	uuhptogarrison, constuuhptogarrison, 0, 0, TABHI, TABINT)

DEF_UU_TABLE("hit-at-max-range-effect", uu_hit_max_range_effect,
	"chance for a type of unit to hit another type of unit at longest range",
	uuhitatmaxrangeeffect, constuuhitatmaxrangeeffect, 0, 100, TABHI, TABINT)

DEF_UM_TABLE("hit-by", um_hit_by,
	"kind of ammo that hits unit",
	umhitby, constumhitby, 0, 0, TABHI, TABINT)

DEF_UU_TABLE("hit-chance", uu_hit,
	"base chance for a type of unit to hit another type of unit",
	uuhitchance, constuuhitchance, 0, 0, 100, TABINT)

DEF_UU_TABLE("hit-cxp-effect", uu_hit_cxp,
	"effect of combat experience on hit chance",
	uuhitcxp, constuuhitcxp, 0, 100, TABHI, TABINT)

DEF_UU_TABLE("hp-per-repair", uu_repair,
	"HP restored by a repair action",
	uuhprepair, constuuhprepair, 0, 0, TABHI, TABINT)

DEF_UU_TABLE("hp-to-repair", uu_hp_to_repair,
	"minimum HP to be able to do repairs to another unit",
	uuhptorepair, constuuhptorepair, 1, 1, TABHI, TABINT)

DEF_UM_TABLE("hp-per-starve", um_hp_per_starve,
	"HP lost/gained per turn of starvation",
	umhpstarve, constumhpstarve, TABLO, 0, TABHI, TABINT)

DEF_UM_TABLE("in-length", um_inlength,
	"length of supply line coming in",
	uminlength, constuminlength, -1, 0, TABHI, TABINT)

DEF_UU_TABLE("independent-capture-chance", uu_indep_capture,
	"base chance for one type of unit to capture another indep type",
	uuindepcapture, constuuindepcapture, -1, -1, 100, TABINT)

DEF_UT_TABLE("independent-density", ut_indep_density,
	"likelihood of an indep unit type on a terrain type",
	utindepdensity, constutindepdensity, 0, 0, 10000, TABINT)

DEF_UM_TABLE("load-max", um_load_max,
	"maximum of material that may be added by a transfer action",
	umloadmax, constumloadmax, -1, -1, TABHI, TABINT)

DEF_UU_TABLE("looks-like", uu_looks_like,
	"weights for resemblance of units to each other",
	uulookslike, constuulookslike, 0, 0, TABHI, TABINT)

DEF_UT_TABLE("lose-track-chance", ut_lose_track,
	"chance to lose track of a unit in some terrain",
	utlosetrack, constutlosetracks, 0, 0, 10000, TABINT)

DEF_UU_TABLE("lost-surrender-chance", uu_lost_surrender,
	"chance that a unit on a losing side will surrender to another",
	uulostsurrender, constuulostsurrender, 0, 0, 10000, TABINT)

DEF_UM_TABLE("material-per-production", um_material_per_production,
	"amount of material created by a production action",
	umperproduction, constumperproduction, 0, 0, TABHI, TABINT)

DEF_TM_TABLE("material-per-remove-terrain", tm_material_per_remove_terrain,
	"amount of material created by terrain removal",
	tmperremoveterr, consttmperremoveterr, 0, 0, TABHI, TABINT)

DEF_UM_TABLE("material-to-act", um_to_act,
	"supplies needed to be able to act at all",
	umtoact, constumtact, 0, 0, TABHI, TABINT)

DEF_UM_TABLE("material-to-build", um_to_build,
	"supplies needed to be able to work on a unit",
	umtobuild, constumtobuild, 0, 0, TABHI, TABINT)

DEF_UM_TABLE("material-to-add-terrain", um_to_add_terrain,
	"supplies needed to be able to add terrain",
	umtoaddterrain, constumtoaddterrain, 0, 0, TABHI, TABINT)

DEF_UM_TABLE("material-to-attack", um_to_attack,
	"supplies needed to be able to do close combat",
	umtoattack, constumtoattack, 0, 0, TABHI, TABINT)

DEF_UM_TABLE("material-to-change-type", um_to_change_type,
	"supplies needed to be able to change type",
	umtochangetype, constumtochangetype, 0, 0, TABHI, TABINT)

DEF_UM_TABLE("material-to-create", um_to_create,
	"supplies needed to be able to create",
	umtocreate, constumtocreate, 0, 0, TABHI, TABINT)

DEF_UM_TABLE("material-to-fire", um_to_fire,
	"supplies needed to be able to fire at anything",
	umtofire, constumtofire, -1, -1, TABHI, TABINT)

DEF_UM_TABLE("material-to-move", um_to_move,
	"supplies needed to be able to move",
	umtomove, constumtomove, 0, 0, TABHI, TABINT)

DEF_UM_TABLE("material-to-produce", um_to_produce,
	"supplies needed to be able to produce anything",
	umtoproduce, constumtoproduce, 0, 0, TABHI, TABINT)

DEF_UM_TABLE("material-to-remove-terrain", um_to_remove_terrain,
	"supplies needed to be able to remove terrain",
	umtoremoveterrain, constumtoremoveterrain, 0, 0, TABHI, TABINT)

DEF_UM_TABLE("material-to-research", um_to_research,
	"supplies needed to be able to do research",
	umtoresearch, constumtoresearch, 0, 0, TABHI, TABINT)

DEF_UM_TABLE("material-to-repair", um_to_repair,
	"supplies needed to be able to repair anything",
	umtorepair, constumtorepair, 0, 0, TABHI, TABINT)

DEF_UU_TABLE("morale-hit", uu_morale_hit,
	"morale gained from successful hit",
	uumoralehit, constuumoralehit, TABLO, 0, TABHI, TABINT)

DEF_UU_TABLE("morale-hit-by", uu_morale_hit_by,
	"morale lost when hit by another",
	uumoralehitby, constuumoralehitby, TABLO, 0, TABHI, TABINT)

DEF_UU_TABLE("morale-on-creation", uu_creation_morale,
	"morale of the unit when first created, as ratio of creator's morale",
	uucreationmorale, constuucreationmorale, 0, 100, TABHI, TABINT)

DEF_UT_TABLE("morale-terrain-effect", ut_morale_terrain_effect,
	"effect of terrain on morale",
	utmoraleterraineffect, constutmoraleterraineffect, TABLO, 0, TABHI, TABINT)

DEF_UU_TABLE("mp-to-enter-own", uu_mp_to_enter_own,
	"mp needed to enter the same cell as another type of unit",
	uumptoenterown, constuumptoenterown, -1, -1, TABHI, TABINT)

DEF_UT_TABLE("mp-to-enter-terrain", ut_mp_to_enter,
	"mp needed to enter the terrain",
	utmptoenter, constutmptoenter, -1, 1, TABHI, TABINT)

DEF_UU_TABLE("mp-to-enter-unit", uu_mp_to_enter,
	"mp needed to enter a type of unit",
	uumptoenter, constuumptoenter, -1, 0, TABHI, TABINT)

DEF_UU_TABLE("mp-to-enter-zoc", uu_mp_to_enter_zoc,
	"mp needed to enter the zoc of a type of unit",
	uumptoenterzoc, constuumptoenterzoc, -1, -1, TABHI, TABINT)

DEF_UT_TABLE("mp-to-leave-terrain", ut_mp_to_leave,
	"mp needed to leave a type of terrain",
	utmptoleave, constutmptoleave, -1, 0, TABHI, TABINT)

DEF_UU_TABLE("mp-to-leave-unit", uu_mp_to_leave,
	"mp needed to leave a type of unit",
	uumptoleave, constuumptoleave, -1, 0, TABHI, TABINT)

DEF_UU_TABLE("mp-to-leave-zoc", uu_mp_to_leave_zoc,
	"mp needed to leave the zoc of a type of unit",
	uumptoleavezoc, constuumptoleavezoc, -1, 0, TABHI, TABINT)

DEF_UT_TABLE("mp-to-traverse", ut_mp_to_traverse,
	"mp needed to move along a connection",
	utmptotraverse, constutmptotraverse, 0, 1, TABHI, TABINT)

DEF_UU_TABLE("mp-to-traverse-zoc", uu_mp_to_traverse_zoc,
	"mp needed to move within the zoc of a type of unit",
	uumptotraversezoc, constuumptotraversezoc, -1, 0, TABHI, TABINT)

DEF_UM_TABLE("occupant-base-production", um_occ_production,
	"amount of material automatically produced by an occupant",
	umoccproduction, constumoccproduction, -1, -1, TABHI, TABINT)

DEF_UU_TABLE("occupant-can-construct", uu_occ_can_build,
	"true if a type of occupant can build",
	uuocccanbuild, constuuocccanbuild, 0, 1, 1, TABINT)

DEF_UU_TABLE("occupant-can-have-occupants", uu_occ_can_have_occs,
	"true if a type of occupant can have occupants itself",
	uuocccanhaveoccs, constuuocccanhaveoccs, 0, 1, 1, TABINT)

DEF_UU_TABLE("occupant-combat", uu_occ_combat,
	"effect of being an occupant on combat performance",
	uuocccombat, constuuocccombat, 0, 100, TABHI, TABINT)

DEF_UU_TABLE("occupant-escape-chance", uu_occ_escape,
	"base chance for a type of unit to move to avoid capture",
	uuoccescape, constuuoccescape, 0, 0, 100, TABINT)

DEF_UU_TABLE("occupant-max", uu_occ_max,
	"extra ceiling on total number of a type",
	uuoccmax, constuuoccmax, -1, -1, TABHI, TABINT)

DEF_UU_TABLE("occupant-vision", uu_occ_can_see,
	"true if a type of occupant can see",
	uuocccansee, constuuocccansee, 0, 1, 1, TABINT)

DEF_UU_TABLE("opinions-on-creation", uu_creation_opinions,
	"opinions of the unit when first created, as ratio of creator's opinions",
	uucreationopinions, constuucreationopinions, 0, 100, TABHI, TABINT)

DEF_UM_TABLE("out-length", um_outlength,
	"length of supply line going out",
	umoutlength, constoutlength, -1, 0, TABHI, TABINT)

DEF_MM_TABLE("people-consumption", mm_people_consumption,
	"amount of material consumption by people",
	mmpeopleconsumption, constmmpeopleconsumption, 0, 0, TABHI, TABINT)

DEF_MM_TABLE("people-production", mm_people_production,
	"amount of material production by people",
	mmpeopleproduction, constmmpeopleproduction, 0, 0, TABHI, TABINT)

DEF_UM_TABLE("people-see-chance", um_people_see,
	"base chance for a type of people to see unit",
	umpeoplesee, constumpeoplesee, 0, 100, 100, TABINT)

DEF_UT_TABLE("people-surrender-chance", ut_people_surrender,
	"Chance that people will surrender to occupying unit",
	utpeoplesurrender, constutpeoplesurrender, 0, 0, 100, TABINT)

DEF_UM_TABLE("people-surrender-effect", um_people_surrender,
	"effect of people type on surrender chance",
	umpeoplesurrender, constumpeoplesurrender, 0, 100, TABHI, TABINT)

DEF_UT_TABLE("productivity", ut_productivity,
	"effect of terrain on production",
	utproductivity, constproductivity, 0, 100, TABHI, TABINT)

DEF_UT_TABLE("productivity-adjacent", ut_productivity_adj,
	"effect of adjacent terrain on production",
	utproductivityadj, constproductivityadj, 0, 0, TABHI, TABINT)

DEF_UM_TABLE("productivity-max", um_productivity_max,
	"upper limit on productivity for a material",
	umproductivitymax, constumproductivitymax, 0, TABHI, TABHI, TABINT)

DEF_UM_TABLE("productivity-min", um_productivity_min,
	"lower limit on productivity for a material",
	umproductivitymin, constumproductivitymin, 0, 0, TABHI, TABINT)

DEF_UU_TABLE("protection", uu_protection,
	"The degree to which transports protect occupants and vice versa",
	uuprotection, constuuprotection, 0, 100, TABHI, TABINT)

DEF_UM_TABLE("recycleable-material", um_recycleable,
	"amount of material recoverable from a unit being disbanded",
	umrecycleable, constumrecycleable, 0, 0, TABHI, TABINT)

DEF_UU_TABLE("retreat-chance", uu_retreat_chance,
	"chance to retreat after combat",
	uuretreatchance, constuuretreatchance, 0, 0, 100, TABINT)

DEF_UU_TABLE("road-chance", uu_road_chance,
	"chance for a road from one type to another",
	uuroadchance, constuuroadchance, 0, 0, 100, TABINT)

DEF_TT_TABLE("road-into-chance", tt_road_into_chance,
	"chance for type of road into type of terrain",
	ttroadintochance, constttroadintochance, 0, 0, 100, TABINT)

DEF_UU_TABLE("scuttle-chance", uu_scuttle,
	"base chance for u1 to wreck self to avoid capture by u2",
	uuscuttle, constscuttle, 0, 0, 100, TABINT)

DEF_UU_TABLE("see-chance", uu_see,
	"chance for a type of unit to see another type at a distance",
	uusee, constuusee, 0, 100, 100, TABINT)

DEF_UU_TABLE("see-chance-adjacent", uu_see_adj,
	"chance for a type of unit to see another type in the same cell",
	uuseeadj, constuuseeadj, 0, 100, 100, TABINT)

DEF_UU_TABLE("see-chance-at", uu_see_at,
	"chance for a type of unit to see another type in an adjacent cell",
	uuseeat, constuuseeat, 0, 100, 100, TABINT)

DEF_TM_TABLE("see-material-always", tm_see_always,
	"true if material in terrain accurately seen all the time",
	tmseealways, consttmseealways, 0, 1, 1, TABINT)

DEF_UU_TABLE("see-mistake-chance", uu_see_mistake,
	"chance for a type of unit to identify another type wrongly",
	uuseemistake, constuuseemistake, 0, 0, 10000, TABINT)

DEF_UU_TABLE("see-others-if-captured", uu_see_others_captured,
	"chance to see other units when one captured",
	uuseeotherscap, constuuseeotherscap, 0, 0, 100, TABINT)

DEF_UU_TABLE("speed-occupant-effect", uu_speed_occ_effect,
	"effect of occupants on transport speed",
	uuspeedocceffect, constuuspeedocceffect, 0, 100, TABHI, TABINT)

DEF_UU_TABLE("spy-quality", uu_spy_quality,
	"chance for u1 to return info about u2 when spied upon",
	uuspyquality, constspyquality, 0, 100, 100, TABINT)

DEF_UU_TABLE("spy-track-chance", uu_spy_track,
	"chance that a spy will gain tracking on a unit",
	uuspytrack, constuuspytrack, 0, 0, 10000, TABINT)

DEF_UU_TABLE("stack-protection", uu_stack_protection,
	"the degree to which units in same cell protect each other",
	uustackprotection, constuustackprotection, 0, 100, TABHI, TABINT)

DEF_UM_TABLE("supply-on-creation", um_created_supply,
	"materials created for a newly created unit",
	umcreatedsupply, constumcreatedsupply, 0, 0, TABHI, TABINT)

DEF_UM_TABLE("supply-on-completion", um_completed_supply,
	"materials created for a newly completed unit",
	umcompletedsupply, constumcompletedsupply, 0, 0, TABHI, TABINT)

DEF_UM_TABLE("supply-per-disband", um_supply_per_disband,
	"amount of supply recovered from a disband action",
	umsupplyperdisband, constumsupplyperdisband, 0, 0, TABHI, TABINT)

DEF_UU_TABLE("surrender-chance", uu_surrender_chance,
	"base chance for a unit to surrender to another nearby",
	uusurrenderchance, constuusurrenderchance, 0, 0, TABHI, TABINT)

DEF_UU_TABLE("surrender-chance-per-attack", uu_surrender_per_attack,
	"chance that a unit will surrender upon being attacked",
	uusurrenderattack, constuusurrenderattack, 0, 0, 100, TABINT)

DEF_UU_TABLE("surrender-range", uu_surrender_range,
	"distance out to which a unit will surrender",
	uusurrenderrange, constuusurrenderrange, 0, 0, TABHI, TABINT)

DEF_UU_TABLE("tech-crossover", uu_tech_crossover,
	"effect of tech for one type on tech for another type",
	uutechcross, constuutechcross, 0, 0, 100, TABINT)

DEF_UU_TABLE("tech-per-research", uu_tech_per_research,
	".01 tech increase from one research action",
	uutechperresearch, constuutechperresearch, 0, 0, TABHI, TABINT)

DEF_UU_TABLE("temperature-protection", uu_temp_protect,
	"true if the transport protects the occupant from temperature effects",
	uutempprotect, constuutempprotect, 0, 0, 1, TABINT)

DEF_TM_TABLE("terrain-consumption", tm_consumption,
	"amount of material consumption by a cell each turn",
	tmconsumption, consttmconsumption, 0, 0, TABHI, TABINT)

DEF_TM_TABLE("terrain-production", tm_production,
	"amount of material production by a cell each turn",
	tmproduction, consttmproduction, 0, 0, TABHI, TABINT)

DEF_UT_TABLE("terrain-capacity-x", ut_capacity_x,
	"number of units that can always be in terrain",
	utcapacityx, constutcapacityx, 0, 0, TABHI, TABINT)

DEF_TT_TABLE("terrain-damaged-type", tt_damaged_type,
	"chance that a type of terrain will change into another type if damaged",
	ttdamagedtype, constttdamagedtype, 0, 0, TABHI, TABINT)

DEF_TM_TABLE("terrain-exhaustion-type", tm_exhaust_type,
	"type of terrain that will replace terrain that loses all of a material",
	tmexhausttype, consttmexhausttype, 0, NONTTYPE, NONTTYPE, TABINT)

DEF_TM_TABLE("terrain-initial-supply", tm_initial,
	"amount of each material that a cell starts with",
	tminitial, consttminitial, 0, 0, TABHI, TABINT)

DEF_TM_TABLE("terrain-storage-x", tm_storage_x,
	"amount of each material that a cell can hold",
	tmstoragex, consttmstoragex, 0, 0, TABHI, TABINT)

DEF_UU_TABLE("tp-damage", uu_tp_damage,
	"possible damage to tooling as a result of being hit",
	uutpdamage, constuutpdamage, TABLO, 0, TABHI, TABDICE)

DEF_UU_TABLE("tp-max", uu_tp_max,
	"maximum possible tooling",
	uutpmax, constuutpmax, 0, 0, TABHI, TABINT)

DEF_UU_TABLE("tp-per-toolup", uu_tp_per_toolup,
	"tooling points gained from a toolup action",
	uutppertoolup, constuutppertoolup, 0, 1, TABHI, TABINT)

DEF_UU_TABLE("tp-to-build", uu_tp_to_build,
	"tooling points needed to build a unit",
	uutptobuild, constuutptobuild, 0, 0, TABHI, TABINT)

DEF_UU_TABLE("tp-attrition", uu_tp_attrition,
	"loss of tooling points each turn",
	uutpattrition, constuutpattrition, 0, 0, TABHI, TABINT)

DEF_UU_TABLE("tp-crossover", uu_tp_crossover,
	"effect of tooling for one type on tooling for another type",
	uutpcrossover, constuutpcrossover, 0, 0, 100, TABINT)

DEF_UU_TABLE("track-chance", uu_track,
	"chance that a unit will gain tracking on another",
	uutrackchance, constuutrackchance, 0, 0, 10000, TABINT)

DEF_UU_TABLE("unit-control-chance", uu_control,
	"base chance that a unit can control another",
	uucontrol, constuucontrol, -1, 0, 100, TABINT)

DEF_UU_TABLE("unit-control-chance-adjacent", uu_control_adj,
	"base chance that a unit can control another in an adjacent cell",
	uucontroladj, constuucontroladj, -1, 0, 100, TABINT)

DEF_UU_TABLE("unit-control-chance-at", uu_control_at,
	"base chance that a unit can control another in the same cell",
	uucontrolat, constuucontrolat, -1, 0, 100, TABINT)

DEF_UU_TABLE("unit-control-range", uu_control_range,
	"distance out to which a unit can control another unit",
	uucontrolrange, constuucontrolrange, -1, 0, TABHI, TABINT)

DEF_UM_TABLE("unit-initial-supply", um_initial,
	"amount of each material that a unit starts with",
	utinitial, constinitial, 0, 0, TABHI, TABINT)

DEF_UU_TABLE("unit-capacity-x", uu_capacity_x,
	"carrying capacity reserved for unit type",
	uucapacityx, constuucapacityx, 0, 0, TABHI, TABINT)

DEF_UU_TABLE("unit-size-as-occupant", uu_size,
	"how much space an occupant takes up in the given transport",
	uusize, constuusize, 0, 1, TABHI, TABINT)

DEF_UT_TABLE("unit-size-in-terrain", ut_size,
	"how much space a unit takes up in a cell",
	utsize, constutsize, 0, 1, TABHI, TABINT)

DEF_UM_TABLE("unit-storage-x", um_storage_x,
	"capacity for each material type",
	umstoragex, constumstoragex, 0, 0, TABHI, TABINT)

DEF_UM_TABLE("unload-max", um_unload_max,
	"maximum amount of material that may be removed by a transfer action",
	umunloadmax, constumunloadmax, -1, -1, TABHI, TABINT)

DEF_UT_TABLE("vanishes-on", ut_vanishes_on,
	"true if a unit in the terrain simply vanishes",
	utvanisheson, constutvanisheson, 0, 0, 1, TABINT)
 
DEF_UT_TABLE("visibility", ut_visibility,
	"base chance to see unit when in terrain",
	utvisibility, constutvisibility, 0, 100, 100, TABINT)

DEF_UT_TABLE("vision-night-effect", ut_vision_night_effect,
	"effect of night on vision",
	utvisionnighteffect, constutvisionnighteffect, 0, 100, TABHI, TABINT)

DEF_UT_TABLE("weapon-height", ut_weapon_height,
	"effective height of a unit's weapons in a type of terrain",
	utweaponheight, constutweaponheight, TABLO, 0, TABHI, TABINT)

DEF_UU_TABLE("withdraw-chance-per-attack", uu_withdraw_per_attack,
	"chance that a unit will retreat to avoid an attack",
	uuwithdrawattack, constuuwithdrawattack, 0, 0, 100, TABINT)

DEF_UT_TABLE("wrecks-on", ut_wrecks_on,
	"true if a unit in the terrain becomes wrecked",
	utwreckson, constutwreckson, 0, 0, 1, TABINT)
 
DEF_UT_TABLE("zoc-into-terrain", ut_zoc_into,
	"true if a unit exerts its ZOC into a type of terrain",
	utzocinto, constutzocinto, 0, 1, 1, TABINT)

DEF_UT_TABLE("zoc-from-terrain-effect", ut_zoc_from_terrain,
	"effects of a unit's terrain on its ZOC",
	utzocfromterrain, constutzocfromterrain, 0, 100, TABHI, TABINT)

DEF_UU_TABLE("zoc-range", uu_zoc_range,
	"distance to which ZOC is exerted",
	uuzocrange, constuuzocrange, -1, 0, TABHI, TABINT)

DEF_UU_TABLE("zz-basic-hit-worth", uu_zz_bhw,
	"",
	uuzzbhw, constuuzzbhw, 0, 0, 0, TABINT)

DEF_UU_TABLE("zz-basic-fire-worth", uu_zz_bfw,
	"",
	uuzzbfw, constuuzzbfw, 0, 0, 0, TABINT)

DEF_UU_TABLE("zz-basic-capture-worth", uu_zz_bcw,
	"",
	uuzzbcw, constuuzzbcw, 0, 0, 0, TABINT)

DEF_UU_TABLE("zz-basic-transport-worth", uu_zz_btw,
	"",
	uuzzbtw, constuuzzbtw, 0, 0, 0, TABINT)