mirror of
https://github.com/yairm210/Unciv.git
synced 2025-03-12 19:10:12 +07:00
Removed the crutches for unit attack bugs - we want to figure them out!
This commit is contained in:
parent
3a2b8453d5
commit
1adb19787a
@ -115,7 +115,7 @@ class LoadGameScreen(previousScreen:CameraStageBaseScreen) : PickerScreen() {
|
|||||||
private fun updateLoadableGames(showAutosaves:Boolean) {
|
private fun updateLoadableGames(showAutosaves:Boolean) {
|
||||||
saveTable.clear()
|
saveTable.clear()
|
||||||
for (save in GameSaver.getSaves().sortedByDescending { GameSaver.getSave(it).lastModified() }) {
|
for (save in GameSaver.getSaves().sortedByDescending { GameSaver.getSave(it).lastModified() }) {
|
||||||
if(save.startsWith("Autosave") && !showAutosaves) continue
|
if (save.startsWith("Autosave") && !showAutosaves) continue
|
||||||
val textButton = TextButton(save, skin)
|
val textButton = TextButton(save, skin)
|
||||||
textButton.onClick {
|
textButton.onClick {
|
||||||
selectedSave = save
|
selectedSave = save
|
||||||
|
@ -208,14 +208,9 @@ class BattleTable(val worldScreen: WorldScreen): Table() {
|
|||||||
|
|
||||||
else {
|
else {
|
||||||
attackButton.onClick {
|
attackButton.onClick {
|
||||||
try {
|
Battle.moveAndAttack(attacker, attackableTile)
|
||||||
Battle.moveAndAttack(attacker, attackableTile)
|
worldScreen.mapHolder.unitActionOverlay?.remove() // the overlay was one of attacking
|
||||||
worldScreen.mapHolder.unitActionOverlay?.remove() // the overlay was one of attacking
|
worldScreen.shouldUpdate = true
|
||||||
worldScreen.shouldUpdate = true
|
|
||||||
}
|
|
||||||
catch (ex:Exception){
|
|
||||||
openBugReportPopup()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -285,15 +280,9 @@ class BattleTable(val worldScreen: WorldScreen): Table() {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
attackButton.onClick {
|
attackButton.onClick {
|
||||||
try {
|
Battle.nuke(attacker, targetTile)
|
||||||
Battle.nuke(attacker, targetTile)
|
worldScreen.mapHolder.unitActionOverlay?.remove() // the overlay was one of attacking
|
||||||
worldScreen.mapHolder.unitActionOverlay?.remove() // the overlay was one of attacking
|
worldScreen.shouldUpdate = true
|
||||||
worldScreen.shouldUpdate = true
|
|
||||||
|
|
||||||
}
|
|
||||||
catch (ex:Exception){
|
|
||||||
openBugReportPopup()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user