Drop occurrence counter should consider item drop chance.
This commit is contained in:
@@ -855,7 +855,7 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// finally
|
// finally
|
||||||
if (group.getChance() < 100)
|
if (dropItem.getChance() < 100)
|
||||||
{
|
{
|
||||||
dropOccurrenceCounter--;
|
dropOccurrenceCounter--;
|
||||||
}
|
}
|
||||||
|
@@ -855,7 +855,7 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// finally
|
// finally
|
||||||
if (group.getChance() < 100)
|
if (dropItem.getChance() < 100)
|
||||||
{
|
{
|
||||||
dropOccurrenceCounter--;
|
dropOccurrenceCounter--;
|
||||||
}
|
}
|
||||||
|
@@ -855,7 +855,7 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// finally
|
// finally
|
||||||
if (group.getChance() < 100)
|
if (dropItem.getChance() < 100)
|
||||||
{
|
{
|
||||||
dropOccurrenceCounter--;
|
dropOccurrenceCounter--;
|
||||||
}
|
}
|
||||||
|
@@ -855,7 +855,7 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// finally
|
// finally
|
||||||
if (group.getChance() < 100)
|
if (dropItem.getChance() < 100)
|
||||||
{
|
{
|
||||||
dropOccurrenceCounter--;
|
dropOccurrenceCounter--;
|
||||||
}
|
}
|
||||||
|
@@ -855,7 +855,7 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// finally
|
// finally
|
||||||
if (group.getChance() < 100)
|
if (dropItem.getChance() < 100)
|
||||||
{
|
{
|
||||||
dropOccurrenceCounter--;
|
dropOccurrenceCounter--;
|
||||||
}
|
}
|
||||||
|
@@ -855,7 +855,7 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// finally
|
// finally
|
||||||
if (group.getChance() < 100)
|
if (dropItem.getChance() < 100)
|
||||||
{
|
{
|
||||||
dropOccurrenceCounter--;
|
dropOccurrenceCounter--;
|
||||||
}
|
}
|
||||||
|
@@ -855,7 +855,7 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// finally
|
// finally
|
||||||
if (group.getChance() < 100)
|
if (dropItem.getChance() < 100)
|
||||||
{
|
{
|
||||||
dropOccurrenceCounter--;
|
dropOccurrenceCounter--;
|
||||||
}
|
}
|
||||||
|
@@ -855,7 +855,7 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// finally
|
// finally
|
||||||
if (group.getChance() < 100)
|
if (dropItem.getChance() < 100)
|
||||||
{
|
{
|
||||||
dropOccurrenceCounter--;
|
dropOccurrenceCounter--;
|
||||||
}
|
}
|
||||||
|
@@ -855,7 +855,7 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// finally
|
// finally
|
||||||
if (group.getChance() < 100)
|
if (dropItem.getChance() < 100)
|
||||||
{
|
{
|
||||||
dropOccurrenceCounter--;
|
dropOccurrenceCounter--;
|
||||||
}
|
}
|
||||||
|
@@ -855,7 +855,7 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// finally
|
// finally
|
||||||
if (group.getChance() < 100)
|
if (dropItem.getChance() < 100)
|
||||||
{
|
{
|
||||||
dropOccurrenceCounter--;
|
dropOccurrenceCounter--;
|
||||||
}
|
}
|
||||||
|
@@ -855,7 +855,7 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// finally
|
// finally
|
||||||
if (group.getChance() < 100)
|
if (dropItem.getChance() < 100)
|
||||||
{
|
{
|
||||||
dropOccurrenceCounter--;
|
dropOccurrenceCounter--;
|
||||||
}
|
}
|
||||||
|
@@ -855,7 +855,7 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// finally
|
// finally
|
||||||
if (group.getChance() < 100)
|
if (dropItem.getChance() < 100)
|
||||||
{
|
{
|
||||||
dropOccurrenceCounter--;
|
dropOccurrenceCounter--;
|
||||||
}
|
}
|
||||||
|
@@ -794,7 +794,7 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// finally
|
// finally
|
||||||
if (group.getChance() < 100)
|
if (dropItem.getChance() < 100)
|
||||||
{
|
{
|
||||||
dropOccurrenceCounter--;
|
dropOccurrenceCounter--;
|
||||||
}
|
}
|
||||||
|
@@ -794,7 +794,7 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// finally
|
// finally
|
||||||
if (group.getChance() < 100)
|
if (dropItem.getChance() < 100)
|
||||||
{
|
{
|
||||||
dropOccurrenceCounter--;
|
dropOccurrenceCounter--;
|
||||||
}
|
}
|
||||||
|
@@ -856,7 +856,7 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// finally
|
// finally
|
||||||
if (group.getChance() < 100)
|
if (dropItem.getChance() < 100)
|
||||||
{
|
{
|
||||||
dropOccurrenceCounter--;
|
dropOccurrenceCounter--;
|
||||||
}
|
}
|
||||||
|
@@ -856,7 +856,7 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// finally
|
// finally
|
||||||
if (group.getChance() < 100)
|
if (dropItem.getChance() < 100)
|
||||||
{
|
{
|
||||||
dropOccurrenceCounter--;
|
dropOccurrenceCounter--;
|
||||||
}
|
}
|
||||||
|
@@ -856,7 +856,7 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// finally
|
// finally
|
||||||
if (group.getChance() < 100)
|
if (dropItem.getChance() < 100)
|
||||||
{
|
{
|
||||||
dropOccurrenceCounter--;
|
dropOccurrenceCounter--;
|
||||||
}
|
}
|
||||||
|
@@ -871,7 +871,7 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// finally
|
// finally
|
||||||
if (group.getChance() < 100)
|
if (dropItem.getChance() < 100)
|
||||||
{
|
{
|
||||||
dropOccurrenceCounter--;
|
dropOccurrenceCounter--;
|
||||||
}
|
}
|
||||||
|
@@ -871,7 +871,7 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// finally
|
// finally
|
||||||
if (group.getChance() < 100)
|
if (dropItem.getChance() < 100)
|
||||||
{
|
{
|
||||||
dropOccurrenceCounter--;
|
dropOccurrenceCounter--;
|
||||||
}
|
}
|
||||||
|
@@ -871,7 +871,7 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// finally
|
// finally
|
||||||
if (group.getChance() < 100)
|
if (dropItem.getChance() < 100)
|
||||||
{
|
{
|
||||||
dropOccurrenceCounter--;
|
dropOccurrenceCounter--;
|
||||||
}
|
}
|
||||||
|
@@ -855,7 +855,7 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// finally
|
// finally
|
||||||
if (group.getChance() < 100)
|
if (dropItem.getChance() < 100)
|
||||||
{
|
{
|
||||||
dropOccurrenceCounter--;
|
dropOccurrenceCounter--;
|
||||||
}
|
}
|
||||||
|
@@ -870,7 +870,7 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// finally
|
// finally
|
||||||
if (group.getChance() < 100)
|
if (dropItem.getChance() < 100)
|
||||||
{
|
{
|
||||||
dropOccurrenceCounter--;
|
dropOccurrenceCounter--;
|
||||||
}
|
}
|
||||||
|
@@ -870,7 +870,7 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// finally
|
// finally
|
||||||
if (group.getChance() < 100)
|
if (dropItem.getChance() < 100)
|
||||||
{
|
{
|
||||||
dropOccurrenceCounter--;
|
dropOccurrenceCounter--;
|
||||||
}
|
}
|
||||||
|
@@ -870,7 +870,7 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// finally
|
// finally
|
||||||
if (group.getChance() < 100)
|
if (dropItem.getChance() < 100)
|
||||||
{
|
{
|
||||||
dropOccurrenceCounter--;
|
dropOccurrenceCounter--;
|
||||||
}
|
}
|
||||||
|
@@ -870,7 +870,7 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// finally
|
// finally
|
||||||
if (group.getChance() < 100)
|
if (dropItem.getChance() < 100)
|
||||||
{
|
{
|
||||||
dropOccurrenceCounter--;
|
dropOccurrenceCounter--;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user