land#

Units#

import pandas
pandas.set_option('display.max_columns', 1000)
pandas.set_option('display.max_rows', 1000)
pandas.set_option('display.max_colwidth', 200)

import empire_earth.units.relationships.matrices

epoch = 7
theater = 'Land'
units = empire_earth.units.attackers(epoch).values()
units = [unit for unit in units if unit.theater == theater]

pandas.DataFrame(units).set_index('name').style.set_sticky('rows')
  id type_id family building button_id hitpoints speed range attack attack_mode seconds_per_attack weapon_hit_id armor_shock armor_arrow armor_pierce armor_gun armor_laser armor_missile epoch_start epoch_stop cost_food cost_wood cost_stone cost_iron cost_gold
name                                                  
Pikeman 26 5 40 Barracks 5 240 0.600000 0.500000 40 53 2.000000 2 6 0 4 0 0 0 6 7 30 0 0 30 0
Long Sword 23 5 13 Barracks 19 400 0.600000 0.500000 29 48 2.000000 0 0 6 0 0 0 0 6 7 30 0 0 30 0
Arquebus 28 5 12 Barracks 1 270 0.600000 5.000000 44 14 5.000000 3 0 0 10 0 0 0 7 7 40 0 0 40 0
Royal Cuirassier 236 5 15 Stable 3 605 0.800000 0.600000 40 49 2.000000 0 1 8 0 20 0 0 7 8 60 0 0 0 60
Knight 139 5 41 Stable 5 400 0.800000 0.800000 38 13 2.000000 2 10 0 8 0 0 0 6 7 60 0 0 0 60
Carabineer 311 5 19 Stable 7 425 0.800000 4.000000 55 16 5.000000 3 20 0 0 0 0 0 7 8 70 0 0 0 65
Long Bow 17 5 29 Archery Range 1 190 0.550000 6.000000 17 21 2.000000 1 0 3 7 0 0 0 6 7 0 40 0 0 30
Cavalry Archer 11 5 54 Archery Range 3 275 0.800000 5.000000 23 54 2.000000 1 6 0 4 0 0 0 6 7 0 60 0 0 45
Crossbow 16 5 29 Archery Range 24 125 0.500000 7.000000 40 39 10.000000 1 0 0 0 0 0 0 5 7 0 100 0 0 100
Heavy Ram 287 5 30 Siege Factory 18 325 0.500000 1.100000 200 19 4.000000 0 0 0 0 0 0 0 6 7 0 80 0 0 80
Trebuchet 105 5 31 Siege Factory 3 215 0.500000 8.000000 150 6 8.000000 3 0 13 4 17 0 4 6 7 0 150 0 0 150
Ballista 144 5 39 Siege Factory 19 200 0.400000 6.000000 75 10 10.000000 5 0 5 4 12 0 0 6 7 0 160 0 0 160
Basilisk 141 5 31 Siege Factory 7 360 0.500000 8.000000 145 6 8.000000 3 0 13 0 13 0 10 7 8 0 170 0 170 0
Culverin 106 5 11 Siege Factory 5 215 0.500000 7.000000 80 10 10.000000 3 0 11 0 43 0 0 7 8 0 200 0 175 0
Tower - Medieval 463 2 37 Citizen 20 3125 0.000000 5.000000 140 44 4.000000 5 0 0 0 0 0 0 6 7 0 0 175 0 0
Tower - Palisades 786 2 37 Citizen 28 1000 0.000000 5.000000 40 44 4.000000 5 0 0 0 0 0 0 3 9 0 175 0 0 0

Damage Dealt per Hit#

empire_earth.units.relationships.matrices.matrix_damage_dealt_per_hit(units)
  Pikeman Long Sword Arquebus Royal Cuirassier Knight Carabineer Long Bow Cavalry Archer Crossbow Heavy Ram Trebuchet Ballista Basilisk Culverin Tower - Medieval Tower - Palisades
Pikeman 36 60 18 83 32 40 33 36 40 60 36 36 40 40 40 40
Long Sword 23 43 24 42 19 9 43 37 43 29 29 29 29 29 21 21
Arquebus 74 132 39 24 66 66 44 44 44 8 27 2 31 3 33 33
Royal Cuirassier 34 60 60 59 30 20 60 99 60 40 50 40 50 50 40 40
Knight 34 114 28 57 49 38 31 34 38 57 34 34 38 38 38 38
Carabineer 82 137 35 117 110 55 55 55 55 11 38 70 42 12 55 55
Long Bow 25 11 17 9 25 17 14 17 17 1 4 1 4 1 4 4
Cavalry Archer 48 17 19 15 34 14 20 23 23 2 10 1 10 1 5 5
Crossbow 720 474 480 32 60 40 477 40 480 40 27 3 27 1 40 40
Heavy Ram 0 0 0 0 0 0 0 0 0 0 0 0 0 0 200 200
Trebuchet 150 150 150 130 150 150 150 150 150 150 133 190 137 159 450 450
Ballista 75 75 75 37 56 75 75 75 75 75 48 75 42 75 75 75
Basilisk 145 145 145 125 145 145 145 145 145 145 128 183 132 152 435 435
Culverin 80 80 80 20 60 80 80 80 80 80 39 68 43 37 80 80
Tower - Medieval 140 140 84 140 140 140 140 140 140 14 12 28 6 35 140 140
Tower - Palisades 40 40 24 40 40 40 40 40 40 4 1 8 1 10 40 40

Damage Dealt per Second#

empire_earth.units.relationships.matrices.matrix_damage_dealt_per_second(units)
  Pikeman Long Sword Arquebus Royal Cuirassier Knight Carabineer Long Bow Cavalry Archer Crossbow Heavy Ram Trebuchet Ballista Basilisk Culverin Tower - Medieval Tower - Palisades
Pikeman 18.00 30.00 9.00 41.50 16.00 20.00 16.50 18.00 20.00 30.00 18.00 18.00 20.00 20.00 20.00 20.00
Long Sword 11.50 21.50 12.00 21.00 9.50 4.50 21.50 18.50 21.50 14.50 14.50 14.50 14.50 14.50 10.50 10.50
Arquebus 14.80 26.40 7.80 4.80 13.20 13.20 8.80 8.80 8.80 1.60 5.40 0.40 6.20 0.60 6.60 6.60
Royal Cuirassier 17.00 30.00 30.00 29.50 15.00 10.00 30.00 49.50 30.00 20.00 25.00 20.00 25.00 25.00 20.00 20.00
Knight 17.00 57.00 14.00 28.50 24.50 19.00 15.50 17.00 19.00 28.50 17.00 17.00 19.00 19.00 19.00 19.00
Carabineer 16.40 27.40 7.00 23.40 22.00 11.00 11.00 11.00 11.00 2.20 7.60 14.00 8.40 2.40 11.00 11.00
Long Bow 12.50 5.50 8.50 4.50 12.50 8.50 7.00 8.50 8.50 0.50 2.00 0.50 2.00 0.50 2.00 2.00
Cavalry Archer 24.00 8.50 9.50 7.50 17.00 7.00 10.00 11.50 11.50 1.00 5.00 0.50 5.00 0.50 2.50 2.50
Crossbow 72.00 47.40 48.00 3.20 6.00 4.00 47.70 4.00 48.00 4.00 2.70 0.30 2.70 0.10 4.00 4.00
Heavy Ram 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 50.00 50.00
Trebuchet 18.75 18.75 18.75 16.25 18.75 18.75 18.75 18.75 18.75 18.75 16.62 23.75 17.12 19.88 56.25 56.25
Ballista 7.50 7.50 7.50 3.70 5.60 7.50 7.50 7.50 7.50 7.50 4.80 7.50 4.20 7.50 7.50 7.50
Basilisk 18.12 18.12 18.12 15.62 18.12 18.12 18.12 18.12 18.12 18.12 16.00 22.88 16.50 19.00 54.38 54.38
Culverin 8.00 8.00 8.00 2.00 6.00 8.00 8.00 8.00 8.00 8.00 3.90 6.80 4.30 3.70 8.00 8.00
Tower - Medieval 35.00 35.00 21.00 35.00 35.00 35.00 35.00 35.00 35.00 3.50 3.00 7.00 1.50 8.75 35.00 35.00
Tower - Palisades 10.00 10.00 6.00 10.00 10.00 10.00 10.00 10.00 10.00 1.00 0.25 2.00 0.25 2.50 10.00 10.00

Damage Dealt Out of Range#

empire_earth.units.relationships.matrices.matrix_damage_dealt_out_of_range(units)
  Pikeman Long Sword Arquebus Royal Cuirassier Knight Carabineer Long Bow Cavalry Archer Crossbow Heavy Ram Trebuchet Ballista Basilisk Culverin Tower - Medieval Tower - Palisades
Pikeman 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
Long Sword 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
Arquebus 111.00 198.00 0.00 26.40 69.30 16.50 0.00 0.00 0.00 12.48 0.00 0.00 0.00 0.00 0.00 0.00
Royal Cuirassier 2.83 5.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
Knight 8.50 28.50 0.00 7.12 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
Carabineer 95.67 159.83 0.00 99.45 88.00 0.00 0.00 0.00 0.00 12.76 0.00 0.00 0.00 0.00 0.00 0.00
Long Bow 114.58 50.42 14.17 30.37 81.25 21.25 0.00 10.62 0.00 4.90 0.00 0.00 0.00 0.00 inf inf
Cavalry Archer 180.00 63.75 0.00 41.25 89.25 8.75 0.00 0.00 0.00 7.80 0.00 0.00 0.00 0.00 0.00 0.00
Crossbow 780.00 513.50 160.00 25.60 46.50 15.00 86.73 10.00 0.00 47.20 0.00 0.75 0.00 0.00 inf inf
Heavy Ram 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
Trebuchet 234.37 234.37 93.75 150.31 168.75 93.75 68.18 70.31 37.50 258.75 0.00 118.75 0.00 39.75 inf inf
Ballista 68.75 68.75 12.50 24.97 36.40 18.75 0.00 9.37 0.00 73.50 0.00 0.00 0.00 0.00 inf inf
Basilisk 226.56 226.56 90.62 144.53 163.12 90.62 65.91 67.97 36.25 250.12 0.00 114.37 0.00 38.00 inf inf
Culverin 86.67 86.67 26.67 16.00 46.50 30.00 14.55 20.00 0.00 94.40 0.00 17.00 0.00 0.00 inf inf
Tower - Medieval 262.50 262.50 0.00 192.50 183.75 43.75 0.00 0.00 0.00 27.30 0.00 0.00 0.00 0.00 0.00 0.00
Tower - Palisades 75.00 75.00 0.00 55.00 52.50 12.50 0.00 0.00 0.00 7.80 0.00 0.00 0.00 0.00 0.00 0.00

Tactical Unit Relationships#

empire_earth.units.relationships.matrices.matrix_tactical(units)
  Pikeman Long Sword Arquebus Royal Cuirassier Knight Carabineer Long Bow Cavalry Archer Crossbow Heavy Ram Trebuchet Ballista Basilisk Culverin Tower - Medieval Tower - Palisades
Pikeman 1.00 1.57 0.29 0.96 0.54 0.41 0.87 0.16 0.00 inf 0.03 2.06 0.04 1.78 0.00 0.33
Long Sword 0.64 1.00 0.34 0.46 0.15 0.09 7.19 2.66 0.00 inf 0.60 3.20 0.39 2.64 0.01 0.34
Arquebus 3.44 2.94 1.00 0.07 0.77 1.25 1.39 0.91 0.16 inf 0.24 0.07 0.17 0.08 0.03 0.30
Royal Cuirassier 1.04 2.19 13.39 1.00 0.79 0.51 20.16 13.53 43.46 inf 3.25 15.68 2.05 34.24 0.08 1.10
Knight 1.84 6.46 1.30 1.27 1.00 0.63 2.08 1.13 8.96 inf 0.98 5.52 0.69 5.21 0.04 0.66
Carabineer 2.41 10.77 0.80 1.97 1.58 1.00 2.75 2.38 9.02 inf 0.62 3.79 0.43 0.55 0.04 0.45
Long Bow 1.15 0.14 0.72 0.05 0.48 0.36 1.00 0.61 0.15 inf 0.06 0.06 0.04 0.05 inf inf
Cavalry Archer 6.11 0.38 1.10 0.07 0.88 0.42 1.64 1.00 6.10 inf 0.25 0.09 0.16 0.07 0.01 0.07
Crossbow inf inf 6.20 0.02 0.11 0.11 6.79 0.16 1.00 inf 0.06 0.03 0.04 0.01 inf inf
Heavy Ram 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 nan 0.00 0.00 0.00 0.00 1.36 15.86
Trebuchet 39.81 1.68 4.24 0.31 1.03 1.60 16.55 3.94 17.06 inf 1.00 13.09 0.64 6.25 inf inf
Ballista 0.49 0.31 14.56 0.06 0.18 0.26 15.79 11.29 39.85 inf 0.08 1.00 0.04 0.94 inf inf
Basilisk 24.28 2.59 5.87 0.49 1.45 2.32 26.29 6.30 27.23 inf 1.56 22.90 1.00 8.99 inf inf
Culverin 0.56 0.38 11.78 0.03 0.19 1.81 19.61 13.49 137.60 inf 0.16 1.07 0.11 1.00 inf inf
Tower - Medieval inf 75.76 36.83 13.26 26.62 26.08 0.00 159.09 0.00 0.73 0.00 0.00 0.00 0.00 1.00 10.94
Tower - Palisades 3.03 2.93 3.37 0.91 1.51 2.20 0.00 14.55 0.00 0.06 0.00 0.00 0.00 0.00 0.09 1.00

Strategic Unit Relationships#

empire_earth.units.relationships.matrices.matrix_strategic(units)
  Pikeman Long Sword Arquebus Royal Cuirassier Knight Carabineer Long Bow Cavalry Archer Crossbow Heavy Ram Trebuchet Ballista Basilisk Culverin Tower - Medieval Tower - Palisades
Pikeman 1.00 1.57 0.39 1.91 1.09 0.93 1.02 0.29 0.00 inf 0.13 10.96 0.23 11.14 0.00 0.96
Long Sword 0.64 1.00 0.45 0.91 0.31 0.21 8.39 4.66 0.00 inf 2.98 17.08 2.18 16.51 0.04 1.00
Arquebus 2.58 2.21 1.00 0.11 1.15 2.10 1.22 1.19 0.40 inf 0.89 0.27 0.72 0.40 0.06 0.65
Royal Cuirassier 0.52 1.09 8.93 1.00 0.79 0.57 11.76 11.84 72.43 inf 8.13 41.80 5.80 107.01 0.11 1.60
Knight 0.92 3.23 0.87 1.27 1.00 0.71 1.21 0.99 14.93 inf 2.44 14.72 1.95 16.27 0.05 0.96
Carabineer 1.07 4.79 0.48 1.75 1.40 1.00 1.43 1.85 13.36 inf 1.39 8.99 1.08 1.53 0.05 0.59
Long Bow 0.98 0.12 0.82 0.09 0.82 0.70 1.00 0.92 0.42 inf 0.26 0.29 0.18 0.27 inf inf
Cavalry Archer 3.49 0.21 0.84 0.08 1.01 0.54 1.09 1.00 11.61 inf 0.73 0.27 0.51 0.26 0.01 0.11
Crossbow inf inf 2.48 0.01 0.07 0.07 2.38 0.09 1.00 inf 0.09 0.04 0.06 0.01 inf inf
Heavy Ram 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 nan 0.00 0.00 0.00 0.00 1.49 17.35
Trebuchet 7.96 0.34 1.13 0.12 0.41 0.72 3.86 1.38 11.38 inf 1.00 13.97 0.72 7.82 inf inf
Ballista 0.09 0.06 3.64 0.02 0.07 0.11 3.45 3.71 24.91 inf 0.07 1.00 0.05 1.10 inf inf
Basilisk 4.28 0.46 1.38 0.17 0.51 0.92 5.41 1.95 16.02 inf 1.38 21.55 1.00 9.91 inf inf
Culverin 0.09 0.06 2.51 0.01 0.06 0.65 3.66 3.78 73.39 inf 0.13 0.91 0.10 1.00 inf inf
Tower - Medieval inf 25.97 16.84 9.09 18.25 20.12 0.00 95.45 0.00 0.67 0.00 0.00 0.00 0.00 1.00 10.94
Tower - Palisades 1.04 1.00 1.54 0.62 1.04 1.70 0.00 8.73 0.00 0.06 0.00 0.00 0.00 0.00 0.09 1.00