mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-07 00:41:39 +07:00
Added Dynamite tech with Artillery
This commit is contained in:
@ -329,6 +329,11 @@
|
||||
name:"Steam Power",
|
||||
row:7,
|
||||
prerequisites:["Industrialization","Scientific Theory","Chemistry"]
|
||||
},
|
||||
{
|
||||
name:"Dynamite",
|
||||
row:9,
|
||||
prerequisites:["Fertilizer"]
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -353,7 +358,7 @@
|
||||
{
|
||||
name:"Combustion",
|
||||
row:8,
|
||||
prerequisites:["Steam Power"]
|
||||
prerequisites:["Steam Power","Dynamite"]
|
||||
}
|
||||
]
|
||||
},
|
||||
|
@ -249,6 +249,18 @@
|
||||
},
|
||||
*/
|
||||
|
||||
{
|
||||
name:"Artillery",
|
||||
unitType:"Siege",
|
||||
movement:2,
|
||||
strength:21,
|
||||
rangedStrength:28,
|
||||
range:3,
|
||||
cost: 120,
|
||||
requiredTech:"Dynamite",
|
||||
uniques:["Bonus vs City 200%","No defensive terrain bonus","Must set up to ranged attack","Limited Visibility"],
|
||||
hurryCostModifier:20
|
||||
},
|
||||
|
||||
/* Great people */
|
||||
|
||||
|
@ -96,7 +96,8 @@ class UnitAutomation{
|
||||
if (enemyTileToAttack != null) {
|
||||
val enemy = Battle().getMapCombatantOfTile(enemyTileToAttack.tileToAttack)!!
|
||||
unit.moveToTile(enemyTileToAttack.tileToAttackFrom)
|
||||
val setupAction = UnitActions().getUnitActions(unit, UnCivGame.Current.worldScreen).firstOrNull{ it.name == "Set up" }
|
||||
val setupAction = UnitActions().getUnitActions(unit, UnCivGame.Current.worldScreen)
|
||||
.firstOrNull{ it.name == "Set up" }
|
||||
if(setupAction!=null) setupAction.action()
|
||||
if(unit.currentMovement>0) // This can be 0, if the set up action took away what action points we had left...
|
||||
Battle(unit.civInfo.gameInfo).attack(MapUnitCombatant(unit), enemy)
|
||||
|
Reference in New Issue
Block a user