Minor Rnd method usage corrections.
This commit is contained in:
		@@ -653,7 +653,7 @@ public class Anakim extends AbstractNpcAI
 | 
			
		||||
	@Override
 | 
			
		||||
	public String onSkillSee(L2Npc npc, L2PcInstance caster, Skill skill, L2Object[] targets, boolean isPet)
 | 
			
		||||
	{
 | 
			
		||||
		if (CommonUtil.contains(ANAKIM_MINIONS, npc.getId()) && (Rnd.get(2) == 1))
 | 
			
		||||
		if (CommonUtil.contains(ANAKIM_MINIONS, npc.getId()) && Rnd.nextBoolean())
 | 
			
		||||
		{
 | 
			
		||||
			if (skill.getAbnormalType() == AbnormalType.HP_RECOVER)
 | 
			
		||||
			{
 | 
			
		||||
 
 | 
			
		||||
@@ -669,7 +669,7 @@ public class Lilith extends AbstractNpcAI
 | 
			
		||||
	@Override
 | 
			
		||||
	public String onSkillSee(L2Npc npc, L2PcInstance caster, Skill skill, L2Object[] targets, boolean isPet)
 | 
			
		||||
	{
 | 
			
		||||
		if (CommonUtil.contains(LILITH_MINIONS, npc.getId()) && (Rnd.get(2) == 1))
 | 
			
		||||
		if (CommonUtil.contains(LILITH_MINIONS, npc.getId()) && Rnd.nextBoolean())
 | 
			
		||||
		{
 | 
			
		||||
			if (skill.getAbnormalType() == AbnormalType.HP_RECOVER)
 | 
			
		||||
			{
 | 
			
		||||
 
 | 
			
		||||
@@ -76,7 +76,7 @@ public class Q00181_DevilsStrikeBackAdventOfBalok extends Quest
 | 
			
		||||
				giveAdena(player, 37128000, true);
 | 
			
		||||
				playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
 | 
			
		||||
				qs.exitQuest(QuestType.ONE_TIME, true);
 | 
			
		||||
				switch (Rnd.get(2))
 | 
			
		||||
				switch (Rnd.get(3))
 | 
			
		||||
				{
 | 
			
		||||
					case 0:
 | 
			
		||||
					{
 | 
			
		||||
 
 | 
			
		||||
@@ -469,7 +469,7 @@ public class Q00620_FourGoblets extends Quest
 | 
			
		||||
					}
 | 
			
		||||
					else if (reward == 0)
 | 
			
		||||
					{
 | 
			
		||||
						if (Rnd.get(2) == 0)
 | 
			
		||||
						if (Rnd.nextBoolean())
 | 
			
		||||
						{
 | 
			
		||||
							htmltext = "31454-14.htm";
 | 
			
		||||
						}
 | 
			
		||||
@@ -918,7 +918,7 @@ public class Q00620_FourGoblets extends Quest
 | 
			
		||||
				}
 | 
			
		||||
				if (reward == 0)
 | 
			
		||||
				{
 | 
			
		||||
					if (Rnd.get(2) == 0)
 | 
			
		||||
					if (Rnd.nextBoolean())
 | 
			
		||||
					{
 | 
			
		||||
						htmltext = "31919-4.htm";
 | 
			
		||||
					}
 | 
			
		||||
 
 | 
			
		||||
@@ -63,8 +63,8 @@ public final class L2ControllableMobAI extends L2AttackableAI
 | 
			
		||||
		
 | 
			
		||||
		if (!Util.checkIfInRange(MobGroupTable.FOLLOW_RANGE, me, getForcedTarget(), true))
 | 
			
		||||
		{
 | 
			
		||||
			final int signX = (Rnd.get(2) == 0) ? -1 : 1;
 | 
			
		||||
			final int signY = (Rnd.get(2) == 0) ? -1 : 1;
 | 
			
		||||
			final int signX = Rnd.nextBoolean() ? -1 : 1;
 | 
			
		||||
			final int signY = Rnd.nextBoolean() ? -1 : 1;
 | 
			
		||||
			final int randX = Rnd.get(MobGroupTable.FOLLOW_RANGE);
 | 
			
		||||
			final int randY = Rnd.get(MobGroupTable.FOLLOW_RANGE);
 | 
			
		||||
			
 | 
			
		||||
 
 | 
			
		||||
@@ -147,8 +147,8 @@ public final class MobGroup
 | 
			
		||||
			{
 | 
			
		||||
				final L2GroupSpawn spawn = new L2GroupSpawn(_npcTemplate);
 | 
			
		||||
				
 | 
			
		||||
				final int signX = (Rnd.get(2) == 0) ? -1 : 1;
 | 
			
		||||
				final int signY = (Rnd.get(2) == 0) ? -1 : 1;
 | 
			
		||||
				final int signX = Rnd.nextBoolean() ? -1 : 1;
 | 
			
		||||
				final int signY = Rnd.nextBoolean() ? -1 : 1;
 | 
			
		||||
				final int randX = Rnd.get(MobGroupTable.RANDOM_RANGE);
 | 
			
		||||
				final int randY = Rnd.get(MobGroupTable.RANDOM_RANGE);
 | 
			
		||||
				
 | 
			
		||||
@@ -321,8 +321,8 @@ public final class MobGroup
 | 
			
		||||
				continue;
 | 
			
		||||
			}
 | 
			
		||||
			
 | 
			
		||||
			final int signX = (Rnd.get(2) == 0) ? -1 : 1;
 | 
			
		||||
			final int signY = (Rnd.get(2) == 0) ? -1 : 1;
 | 
			
		||||
			final int signX = Rnd.nextBoolean() ? -1 : 1;
 | 
			
		||||
			final int signY = Rnd.nextBoolean() ? -1 : 1;
 | 
			
		||||
			final int randX = Rnd.get(MobGroupTable.RANDOM_RANGE);
 | 
			
		||||
			final int randY = Rnd.get(MobGroupTable.RANDOM_RANGE);
 | 
			
		||||
			
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user