From 2af36b3537e266bb6ac3d240f9cdd4ef394668f3 Mon Sep 17 00:00:00 2001 From: Cekis Date: Mon, 23 May 2016 16:07:20 +0100 Subject: [PATCH] Removed unused vars (just some) from script. --- .../game/script/systems/npc_lair/npc_lair.java | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/sku.0/sys.server/compiled/game/script/systems/npc_lair/npc_lair.java b/sku.0/sys.server/compiled/game/script/systems/npc_lair/npc_lair.java index fa52ca895..0b79ee857 100755 --- a/sku.0/sys.server/compiled/game/script/systems/npc_lair/npc_lair.java +++ b/sku.0/sys.server/compiled/game/script/systems/npc_lair/npc_lair.java @@ -866,16 +866,6 @@ public class npc_lair extends script.theme_park.poi.base mobile = poiCreateObject(name, x, y, level); stopFloating(mobile); } - boolean tamable = (utils.dataTableGetFloat(CREATURE_TABLE, name, "canTame") > 0.0f); - boolean npcLair = hasObjVar(getSelf(), "npc_lair.isNotCreatureLair"); - if (hasObjVar(getSelf(), "npc_lair.isCreatureLair")) - { - npcLair = false; - } - if (hasObjVar(objBase, "objMission")) - { - tamable = false; - } if (isIdValid(mobile)) { if ((!randomLoc) && (!boolMobSpawners)) @@ -903,13 +893,8 @@ public class npc_lair extends script.theme_park.poi.base setObjVar(mobile, "npc_lair.target", target); } if (!ai_lib.isMonster(mobile)) - { - tamable = false; - } - if (!ai_lib.isMonster(mobile)) { setObjVar(getSelf(), "npc_lair.isNotCreatureLair", true); - npcLair = true; } return mobile; }