From 3e51471b0bf3d8520d1f1764ce552bac87e4e1a2 Mon Sep 17 00:00:00 2001 From: Andrea Rendine Date: Sun, 14 Feb 2016 11:53:29 +0100 Subject: [PATCH] Remove State outfit on death Supplies are not removed from state when embarking, so they remain in place in case the game is closed during exploration. So it now happens in case of death, along with Path.outfit reset. --- script/world.js | 1 + 1 file changed, 1 insertion(+) diff --git a/script/world.js b/script/world.js index f0f21d9..ec48383 100644 --- a/script/world.js +++ b/script/world.js @@ -851,6 +851,7 @@ var World = { Notifications.notify(World, _('the world fades')); World.state = null; Path.outfit = {}; + $SM.remove('outfit'); $('#outerSlider').animate({opacity: '0'}, 600, 'linear', function() { $('#outerSlider').css('left', '0px'); $('#locationSlider').css('left', '0px');