mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 03:38:01 +00:00
Support undeploying by tapping commander row
This commit is contained in:
@@ -267,6 +267,13 @@ public class CommandCenterScreen extends FScreen implements IVCommandCenter {
|
|||||||
if (model.setCurrentRegion(commander.getDeployedRegion())) {
|
if (model.setCurrentRegion(commander.getDeployedRegion())) {
|
||||||
regionDisplay.onRegionChanged();
|
regionDisplay.onRegionChanged();
|
||||||
}
|
}
|
||||||
|
else if (commander.getCurrentDayAction() != ConquestAction.Undeploy) {
|
||||||
|
//if already on commander's region, change action to undeploy
|
||||||
|
commander.setCurrentDayAction(ConquestAction.Undeploy);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
commander.setCurrentDayAction(null);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (model.getCurrentPlaneData().getWins() >= panel.getWinsToUnlock()) {
|
else if (model.getCurrentPlaneData().getWins() >= panel.getWinsToUnlock()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user