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

@@ -174,12 +174,7 @@ public class Q00463_IMustBeaGenius extends Quest
if (qs.isCond(1))
{
boolean msg = false;
int number = MOBS.get(npc.getId()).getCount();
if (MOBS.get(npc.getId()).getSpecialChance() == qs.getInt("chance"))
{
number = getRandom(100) + 1;
}
final int number = MOBS.get(npc.getId()).getSpecialChance() == qs.getInt("chance") ? getRandom(100) + 1 : MOBS.get(npc.getId()).getCount();
if (number > 0)
{