From c738342badaae9499225e5b5a0471e6aac68190c Mon Sep 17 00:00:00 2001 From: Michael Townsend Date: Thu, 31 Oct 2013 14:36:03 -0400 Subject: [PATCH] Update world.js Only add the cache if there is prestige data --- script/world.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/script/world.js b/script/world.js index f53e664..e51fd2a 100644 --- a/script/world.js +++ b/script/world.js @@ -128,7 +128,11 @@ var World = { World.LANDMARKS[World.TILE.BOREHOLE] = { num: 10, minRadius: 15, maxRadius: World.RADIUS * 1.5, scene: 'borehole', label: 'A Borehole'}; World.LANDMARKS[World.TILE.BATTLEFIELD] = { num: 5, minRadius: 18, maxRadius: World.RADIUS * 1.5, scene: 'battlefield', label: 'A Battlefield'}; World.LANDMARKS[World.TILE.SWAMP] = { num: 1, minRadius: 15, maxRadius: World.RADIUS * 1.5, scene: 'swamp', label: 'A Murky Swamp'}; - World.LANDMARKS[World.TILE.CACHE] = { num: 1, minRadius: 10, maxRadius: World.RADIUS * 1.5, scene: 'cache', label: 'A Destroyed Village'}; + + // Only add the cache if there is prestige data + if($SM.get('previous.stores')) { + World.LANDMARKS[World.TILE.CACHE] = { num: 1, minRadius: 10, maxRadius: World.RADIUS * 1.5, scene: 'cache', label: 'A Destroyed Village'}; + } if(typeof $SM.get('features.location.world') == 'undefined') { $SM.set('features.location.world', true);