mirror of
https://github.com/OMGeeky/andors-trail.git
synced 2026-02-23 15:38:29 +01:00
Bugfix: do not reset NPCs on current map when resting.
This commit is contained in:
@@ -67,9 +67,9 @@ public final class Controller {
|
||||
if (lostExp < 0) lostExp = 0;
|
||||
player.addExperience(-lostExp);
|
||||
model.statistics.addPlayerDeath(lostExp);
|
||||
playerRested(world, null);
|
||||
final MainActivity act = view.mainActivity;
|
||||
MovementController.respawnPlayer(act.getResources(), world);
|
||||
playerRested(world, null);
|
||||
act.updateStatus();
|
||||
act.mainview.notifyMapChanged(world.model);
|
||||
act.message(act.getResources().getString(R.string.combat_hero_dies, lostExp));
|
||||
@@ -86,6 +86,9 @@ public final class Controller {
|
||||
player.spawnMap = world.model.currentMap.name;
|
||||
}
|
||||
resetMaps(world, false, true);
|
||||
if (area != null) {
|
||||
world.model.currentMap.spawnAll(world);
|
||||
}
|
||||
}
|
||||
|
||||
public static void ui_playerRested(final Activity currentActivity, final ViewContext viewContext, MapObject area) {
|
||||
|
||||
Reference in New Issue
Block a user