Code improvements.

This commit is contained in:
MobiusDev
2016-04-24 16:30:15 +00:00
parent 8bd51aba1c
commit 2dd14bef9b
860 changed files with 8865 additions and 17041 deletions

View File

@@ -353,12 +353,9 @@ public class Q00177_SplitDestiny extends Quest
}
case 2:
{
if (Util.contains(GIANTS_HAND_MONSTERS, npc.getId()))
if (Util.contains(GIANTS_HAND_MONSTERS, npc.getId()) && giveItemRandomly(killer, npc, PETRIFIED_GIANTS_HAND_PIECE, 1, 10, 1.0, true))
{
if (giveItemRandomly(killer, npc, PETRIFIED_GIANTS_HAND_PIECE, 1, 10, 1.0, true))
{
qs.setCond(3, true);
}
qs.setCond(3, true);
}
break;
}
@@ -373,12 +370,9 @@ public class Q00177_SplitDestiny extends Quest
}
case 5:
{
if (Util.contains(GIANTS_FOOT_MONSTERS, npc.getId()))
if (Util.contains(GIANTS_FOOT_MONSTERS, npc.getId()) && giveItemRandomly(killer, npc, PETRIFIED_GIANTS_FOOT_PIECE, 1, 10, 1.0, true))
{
if (giveItemRandomly(killer, npc, PETRIFIED_GIANTS_FOOT_PIECE, 1, 10, 1.0, true))
{
qs.setCond(6, true);
}
qs.setCond(6, true);
}
break;
}