mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-27 22:06:05 -04:00
parent
6c203d68f7
commit
d7b2436bcf
@ -1156,12 +1156,12 @@
|
|||||||
"name": "Paratrooper",
|
"name": "Paratrooper",
|
||||||
"unitType": "Melee",
|
"unitType": "Melee",
|
||||||
"movement": 2,
|
"movement": 2,
|
||||||
"strength": 40,
|
"strength": 65,
|
||||||
"cost": 375,
|
"cost": 375,
|
||||||
"requiredTech": "Radar",
|
"requiredTech": "Radar",
|
||||||
"uniques": ["May Paradrop up to [5] tiles from inside friendly territory"],
|
"uniques": ["May Paradrop up to [5] tiles from inside friendly territory"],
|
||||||
"attackSound": "shot"
|
"attackSound": "shot"
|
||||||
// 65 strength in expansions, upgradesTo "XCOM Squad", "No Movement Cost to Pillage" in BNW
|
// upgradesTo "XCOM Squad", "No Movement Cost to Pillage" in BNW
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Infantry",
|
"name": "Infantry",
|
||||||
|
@ -249,14 +249,15 @@ class UnitMovementAlgorithms(val unit:MapUnit) {
|
|||||||
unit.putInTile(destination)
|
unit.putInTile(destination)
|
||||||
unit.currentMovement = 0f
|
unit.currentMovement = 0f
|
||||||
return
|
return
|
||||||
} else if (unit.action == Constants.unitActionParadrop) { // paratrooping move differently
|
} else if (unit.action == Constants.unitActionParadrop) { // paratroopers move differently
|
||||||
unit.action = null
|
unit.action = null
|
||||||
unit.removeFromTile()
|
unit.removeFromTile()
|
||||||
unit.putInTile(destination)
|
unit.putInTile(destination)
|
||||||
unit.currentMovement -= 1f
|
unit.currentMovement -= 1f
|
||||||
|
unit.attacksThisTurn += 1
|
||||||
// Check if unit maintenance changed
|
// Check if unit maintenance changed
|
||||||
// Is also done for other units, but because we skip everything else, we have to manually check it
|
// Is also done for other units, but because we skip everything else, we have to manually check it
|
||||||
// The reasong we skip everything, is that otherwise `getPathToTile()` throws an exception
|
// The reason we skip everything, is that otherwise `getPathToTile()` throws an exception
|
||||||
// As we can not reach our destination in a single turn
|
// As we can not reach our destination in a single turn
|
||||||
if (unit.canGarrison()
|
if (unit.canGarrison()
|
||||||
&& (unit.getTile().isCityCenter() || destination.isCityCenter())
|
&& (unit.getTile().isCityCenter() || destination.isCityCenter())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user