From 62ed9f25c8fd655ff8712e7a1bf6c9c0e0b7e982 Mon Sep 17 00:00:00 2001 From: Michael Townsend Date: Thu, 28 Aug 2014 09:54:29 -0400 Subject: [PATCH] fix bad loot bug --- www/js/app/world.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/www/js/app/world.js b/www/js/app/world.js index 742f07d..0965eeb 100644 --- a/www/js/app/world.js +++ b/www/js/app/world.js @@ -566,6 +566,9 @@ define(['jquery', 'app/eventmanager', 'app/analytics', 'app/graphics/graphics', GameState.count('KILLED', 1); stuff.splice(i, 1); i--; + } else if(entity.lootable) { + stuff.splice(i, 1); + i--; } else if(entity == dude) { // Dude is dead. Long live the dude. stuff.splice(i, 1);