[ // Info according to Civilization Wiki and https://www.civfanatics.com/civ5/info/units/ /* Ancient Era */ { name:"Worker", unitType:"Civilian", movement:2, hurryCostModifier:20, uniques:["Can build improvements on tiles"] cost:70 }, { name:"Settler", unitType:"Civilian", movement:2, cost:106, uniques:["Founds a new city"] hurryCostModifier:20 }, { name:"Scout", unitType:"Scout", movement:2, strength:5, cost:25, uniques:["Ignores terrain cost"], attackSound:"nonmetalhit" }, { name:"Warrior", unitType:"Melee", movement:2, strength:8, cost: 40, hurryCostModifier:20, obsoleteTech:"Metal Casting", upgradesTo:"Swordsman", attackSound:"nonmetalhit" }, { name:"Archer", unitType:"Ranged", movement:2, strength:5, rangedStrength:7, cost: 40, hurryCostModifier:20, requiredTech:"Archery", obsoleteTech:"Machinery", upgradesTo:"Crossbowman", attackSound:"arrow" }, { name:"Bowman", unitType:"Ranged", movement:2, strength:7, rangedStrength:9, cost: 40, hurryCostModifier:20, requiredTech:"Archery", obsoleteTech:"Machinery", replaces:"Archer", uniqueTo:"Babylon", upgradesTo:"Crossbowman", attackSound:"arrow" }, { name:"Work Boats", unitType:"WaterCivilian", movement:4, cost: 30, requiredTech:"Sailing", uniques:["Cannot enter ocean tiles until Astronomy","May create improvements on water resources"] hurryCostModifier:20 }, { name:"Trireme", unitType:"WaterMelee", movement:4, strength:10, cost: 45, requiredTech:"Sailing", uniques:["Cannot enter ocean tiles"] upgradesTo:"Caravel", obsoleteTech:"Astronomy", hurryCostModifier:20, attackSound:"nonmetalhit" }, { name:"Chariot Archer", unitType:"Ranged", movement:4, strength:6, rangedStrength:10, cost: 56, requiredTech:"The Wheel", requiredResource:"Horses", upgradesTo:"Knight", obsoleteTech:"Chivalry", uniques:["No defensive terrain bonus","Rough terrain penalty"], hurryCostModifier:20, attackSound:"arrow" }, { name:"Spearman", unitType:"Melee", movement:2, strength:11, cost: 56, requiredTech:"Bronze Working", obsoleteTech:"Civil Service", upgradesTo: "Pikeman", uniques:["Bonus vs Mounted 50%"], hurryCostModifier:20, attackSound:"metalhit" }, { name:"Hoplite", replaces:"Spearman", uniqueTo:"Greece", unitType:"Melee", movement:2, strength:13, cost: 56, requiredTech:"Bronze Working", obsoleteTech:"Civil Service", upgradesTo: "Pikeman", uniques:["Bonus vs Mounted 50%"], hurryCostModifier:20, attackSound:"metalhit" }, /* Classical Era */ { name:"Catapult", unitType:"Siege", movement:2, strength:7, rangedStrength:8, cost: 75, requiredTech:"Mathematics", obsoleteTech:"Physics", upgradesTo: "Trebuchet", uniques:["Bonus vs City 200%","No defensive terrain bonus","Must set up to ranged attack"], hurryCostModifier:20, attackSound:"throw" }, { name:"Ballista", unitType:"Siege", uniqueTo:"Rome", replaces:"Catapult", movement:2, strength:8, rangedStrength:10, cost: 75, requiredTech:"Mathematics", obsoleteTech:"Physics", upgradesTo: "Trebuchet", uniques:["Bonus vs City 200%","No defensive terrain bonus","Must set up to ranged attack"], hurryCostModifier:20, attackSound:"throw" }, { name:"Swordsman", unitType:"Melee", movement:2, strength:14, cost: 75, requiredTech:"Iron Working", upgradesTo:"Longswordsman", obsoleteTech:"Steel", requiredResource:"Iron", hurryCostModifier:20, attackSound:"metalhit" }, { name:"Horseman", unitType:"Mounted", movement:4, strength:12, cost: 75, requiredTech:"Horseback Riding", requiredResource:"Horses", upgradesTo:"Knight", obsoleteTech:"Metallurgy", uniques:["Can move after attacking","No defensive terrain bonus","Penalty vs City 33%" ], hurryCostModifier:20, attackSound:"horse" }, { name:"Companion Cavalry", unitType:"Mounted", uniqueTo:"Greece", replaces:"Horseman", movement:5, strength:14, cost: 75, requiredTech:"Horseback Riding", upgradesTo:"Knight", obsoleteTech:"Metallurgy", requiredResource:"Horses", uniques:["Can move after attacking","No defensive terrain bonus","Penalty vs City 33%" ], hurryCostModifier:20, attackSound:"horse" }, // Medieval Era { name:"Crossbowman", unitType:"Ranged", movement:2, strength:13, rangedStrength:18, cost: 120, requiredTech:"Machinery", upgradesTo:"Gatling Gun", obsoleteTech:"Industrialization", hurryCostModifier:20, attackSound:"arrow" }, { name:"Longbowman", unitType:"Ranged", range:3, movement:2, strength:13, rangedStrength:18, replaces:"Crossbowman", uniqueTo:"England", cost: 120, requiredTech:"Machinery", upgradesTo:"Gatling Gun", obsoleteTech:"Industrialization", hurryCostModifier:20, attackSound:"arrow" }, { name:"Trebuchet", unitType:"Siege", movement:2, strength:12, rangedStrength:14, cost: 120, requiredTech:"Physics", obsoleteTech:"Chemistry", upgradesTo:"Cannon", uniques:["Bonus vs City 200%","No defensive terrain bonus","Must set up to ranged attack","Limited Visibility"], hurryCostModifier:20, attackSound:"throw" }, { name:"Longswordsman", unitType:"Melee", movement:2, strength:21, cost: 120, requiredTech:"Steel", upgradesTo:"Musketman", obsoleteTech:"Gunpowder", requiredResource:"Iron", hurryCostModifier:20, attackSound:"metalhit" }, { name:"Pikeman", unitType:"Melee", movement:2, strength:16, cost: 90, requiredTech:"Civil Service", uniques:["Bonus vs Mounted 50%"], upgradesTo:"Musketman", obsoleteTech:"Gunpowder", hurryCostModifier:20, attackSound:"metalhit" }, { name:"Galleass", unitType:"WaterRanged", movement:3, strength:16, rangedStrength:17 cost: 100, requiredTech:"Compass", obsoleteTech:"Navigation", upgradesTo:"Frigate", uniques:["Cannot enter ocean tiles"] hurryCostModifier:20, attackSound:"arrow" }, { name:"Knight", unitType:"Mounted", movement:3, strength:20, cost: 120, requiredTech:"Chivalry", obsoleteTech:"Military science", upgradesTo:"Cavalry", requiredResource:"Horses", uniques:["Can move after attacking","No defensive terrain bonus","Penalty vs City 33%" ], hurryCostModifier:20, attackSound:"horse" }, { name:"Camel Archer", replaces:"Knight", uniqueTo:"Arabia", unitType:"Ranged", movement:4, strength:17, rangedStrength:21, cost: 120, requiredTech:"Chivalry", requiredResource:"Horses", upgradesTo:"Cavalry", obsoleteTech:"Military science", uniques:["Can move after attacking","No defensive terrain bonus"], hurryCostModifier:20, attackSound:"arrow" }, // Rennaisance Era { name:"Caravel", unitType:"WaterMelee", movement:4, strength:20, cost: 120, requiredTech:"Astronomy", upgradesTo:"Ironclad", obsoleteTech:"Combustion", uniques:["+1 Visibility Range"], hurryCostModifier:20 }, { name:"Cannon", unitType:"Siege", movement:2, strength:14, rangedStrength:20, cost: 185, requiredTech:"Chemistry", upgradesTo:"Artillery", obsoleteTech:"Dynamite", uniques:["Bonus vs City 200%","No defensive terrain bonus","Must set up to ranged attack","Limited Visibility"], hurryCostModifier:20 }, { name:"Musketman", unitType:"Melee", movement:2, strength:24, cost: 150, requiredTech:"Gunpowder", upgradesTo:"Rifleman" obsoleteTech:"Rifling", hurryCostModifier:20, attackSound:"shot" }, { name:"Musketeer", unitType:"Melee", replaces:"Musketman", uniqueTo:"France", movement:2, strength:28, cost: 150, requiredTech:"Gunpowder", upgradesTo:"Rifleman" obsoleteTech:"Rifling", hurryCostModifier:20, attackSound:"shot" }, { name:"Minuteman", unitType:"Melee", replaces:"Musketman", uniqueTo:"America", movement:2, strength:24, cost: 150, requiredTech:"Gunpowder", upgradesTo:"Rifleman" obsoleteTech:"Rifling", uniques:["Bonus vs units in rough terrain 15%","Ignores terrain cost"] hurryCostModifier:20, attackSound:"shot" }, { name:"Frigate", unitType:"WaterRanged", movement:5, strength:25, rangedStrength:28, cost: 185, requiredResource:"Iron", requiredTech:"Navigation", obsoleteTech:"Electronics", upgradesTo:"Battleship", hurryCostModifier:20 }, { name:"Lancer", unitType:"Mounted", movement:4, strength:25, cost: 185, requiredTech:"Metallurgy", requiredResource:"Horses", hurryCostModifier:20, uniques:["Can move after attacking","No defensive terrain bonus", "Penalty vs City 33%","Bonus vs Mounted 33%" ], upgradesTo:"Anti-Tank Gun", obsoleteTech:"Combined Arms", attackSound:"horse" }, // Industrial Era { name:"Gatling Gun", unitType:"Ranged", range:1, movement:2, strength:30, rangedStrength:30, cost: 225, requiredTech:"Industrialization", hurryCostModifier:20, attackSound:"machinegun" }, { name:"Rifleman", unitType:"Melee", movement:2, strength:34, cost: 225, requiredTech:"Rifling", obsoleteTech:"Replacable Parts", upgradesTo:"Great War Infantry", hurryCostModifier:20, attackSound:"shot" }, { name:"Cavalry", unitType:"Mounted", movement:4, strength:34, cost: 225, requiredTech:"Military Science", requiredResource:"Horses", upgradesTo:"Landship", uniques:["Can move after attacking","No defensive terrain bonus","Penalty vs City 33%" ], hurryCostModifier:20, attackSound:"horse" }, { name:"Artillery", unitType:"Siege", movement:2, strength:21, rangedStrength:28, range:3, cost: 320, requiredTech:"Dynamite", uniques:["Bonus vs City 200%","No defensive terrain bonus", "Must set up to ranged attack","Limited Visibility","Indirect Fire"], hurryCostModifier:20 }, { name:"Ironclad", unitType:"WaterMelee", movement:3, strength:45, cost: 250, requiredTech:"Steam Power", requiredResource:"Coal", upgradesTo:"Destroyer", obsoleteTech:"Combustion", uniques:["Bonus vs City 33%","Double movement in coast"], hurryCostModifier:20 }, // Modern era { name:"Landship", unitType:"Armor", movement:4, strength:60, cost: 350, requiredTech:"Combustion", requiredResource:"Oil", uniques:["Can move after attacking","No defensive terrain bonus"], hurryCostModifier:20 }, { name:"Destroyer", unitType:"WaterMelee", movement:6, strength:55, cost: 375, requiredTech:"Combustion", uniques:["Can attack submarines"], // todo: add interception and bonus vs submarines once we have air and submarine units hurryCostModifier:20 }, { name: "Battleship", unitType: "WaterRanged", movement: 5, strength: 55, rangedStrength: 55, range: 3, cost: 375, requiredResource:"Oil", requiredTech:"Electronics", uniques:["Indirect Fire", "Bonus vs City 30%"], hurryCostModifier:20 }, { name: "Submarine", unitType: "WaterSubmarine", movement: 5, strength: 35, rangedStrength: 60, cost: 325, requiredTech:"Refrigeration", uniques:["Bonus as Attacker 75%", "Invisible to others", "Can only attack water", "Can attack submarines"], hurryCostModifier:20 }, { name:"Great War Infantry", unitType:"Melee", movement:2, strength:50, cost: 320, requiredTech:"Replacable Parts", hurryCostModifier:20, upgradesTo:"Infantry", obsoleteTech:"Plastics" attackSound:"shot" }, { name:"Infantry", unitType:"Melee", movement:2, strength:70, cost: 375, requiredTech:"Plastics", hurryCostModifier:20, attackSound:"shot" }, { name:"Machine Gun", unitType:"Ranged", range:1, movement:2, strength:60, rangedStrength:60, cost: 350, requiredTech:"Ballistics", hurryCostModifier:20, attackSound:"machinegun" }, { name:"Tank", unitType:"Armor", movement:5, strength:70, cost: 375, requiredTech:"Combined Arms", requiredResource:"Oil", uniques:["Can move after attacking","No defensive terrain bonus"] hurryCostModifier:20, }, { name:"Anti-Tank Gun", unitType:"Melee", movement:2, strength:50, cost: 300, requiredTech:"Combined Arms", uniques:["Bonus vs Armor 100%"] hurryCostModifier:20, }, { name:"Rocket Artillery", unitType:"Siege", movement:2, strength:45, rangedStrength:60, range:3, cost: 425, requiredTech:"Rocketry", requiredResource:"Aluminum", uniques:["Bonus vs City 200%","No defensive terrain bonus", "Limited Visibility","Indirect Fire"], hurryCostModifier:20 }, { name:"Mechanized Infantry", unitType:"Melee", movement:3, strength:90, cost: 375, requiredTech:"Nuclear Fission", hurryCostModifier:20, }, { name:"Modern Armor", unitType:"Armor", movement:5, strength:100, cost: 425, requiredTech:"Robotics", requiredResource:"Aluminum", uniques:["Can move after attacking","No defensive terrain bonus"] hurryCostModifier:20, }, /* Great people */ { name:"Great Artist", unbuildable:true, unitType:"Civilian", uniques:["Can start an 8-turn golden age","Can build improvement: Landmark"] movement:2 }, { name:"Great Scientist", unbuildable:true, unitType:"Civilian", uniques:["Can discover a technology","Can build improvement: Academy"] movement:2 }, { name:"Great Merchant", unbuildable:true, unitType:"Civilian", uniques:["Can undertake a trade mission, giving a large sum of gold","Can build improvement: Customs house"] movement:2 }, { name:"Great Engineer", unbuildable:true, unitType:"Civilian", uniques:["Can speed up construction of a wonder","Can build improvement: Manufactory"] movement:2 }, { name:"Great General", unbuildable:true, unitType:"Civilian", uniques:["Can start an 8-turn golden age","Bonus for land units in 2 radius 15%"] //to do : should be able to build mega-fort movement:2 }, ]