From 28cdca600316bed3d017e3f5f5dca1a6efa49212 Mon Sep 17 00:00:00 2001 From: Andrea Rendine Date: Sun, 14 Feb 2016 16:09:15 +0100 Subject: [PATCH] Update world map on return World.seenAll must be updated only when committing state changes (i.e., on return home safe), not during exploration. --- script/world.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/script/world.js b/script/world.js index b36f93f..e97302d 100644 --- a/script/world.js +++ b/script/world.js @@ -618,7 +618,6 @@ var World = { } } } - World.seenAll = World.testMap(); }, testMap: function() { @@ -898,6 +897,8 @@ var World = { goHome: function() { // Home safe! Commit the changes. $SM.setM('game.world', World.state); + World.seenAll = World.testMap(); + if(World.state.sulphurmine && $SM.get('game.buildings["sulphur mine"]', true) === 0) { $SM.add('game.buildings["sulphur mine"]', 1); Engine.event('progress', 'sulphur mine');