Removed unused vars (just some) from script.

This commit is contained in:
Cekis
2016-05-23 16:07:20 +01:00
parent 4066d3961a
commit 2af36b3537
@@ -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;
}