mirror of
https://github.com/OMGeeky/andors-trail.git
synced 2026-01-21 02:51:20 +01:00
Merge branch 'master' into stoutford_tests
This commit is contained in:
@@ -41,7 +41,7 @@
|
||||
android:orientation="vertical"
|
||||
android:gravity="left"
|
||||
>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
|
||||
@@ -55,9 +55,14 @@ public final class CombatController implements VisualEffectCompletedCallback {
|
||||
public void exitCombat(boolean pickupLootBags) {
|
||||
setCombatSelection(null, null);
|
||||
world.model.uiSelections.isInCombat = false;
|
||||
combatTurnListeners.onCombatEnded();
|
||||
world.model.uiSelections.selectedPosition = null;
|
||||
world.model.uiSelections.selectedMonster = null;
|
||||
endOfCombatRound();
|
||||
if (world.model.player.isDead()) {
|
||||
controllers.gameRoundController.resetRoundTimers();
|
||||
} else {
|
||||
endOfCombatRound();
|
||||
}
|
||||
if (pickupLootBags && totalExpThisFight > 0) {
|
||||
controllers.itemController.lootMonsterBags(killedMonsterBags, totalExpThisFight);
|
||||
} else {
|
||||
@@ -557,7 +562,6 @@ public final class CombatController implements VisualEffectCompletedCallback {
|
||||
}
|
||||
|
||||
public void endOfCombatRound() {
|
||||
combatTurnListeners.onCombatEnded();
|
||||
world.model.worldData.tickWorldTime();
|
||||
controllers.gameRoundController.resetRoundTimers();
|
||||
controllers.actorStatsController.applyConditionsToPlayer(world.model.player, false);
|
||||
|
||||
Reference in New Issue
Block a user