Addition of NpcTemplate removeDrops method.
This commit is contained in:
@ -614,6 +614,8 @@ public class NpcData implements IXmlReader
|
|||||||
|
|
||||||
if (dropLists != null)
|
if (dropLists != null)
|
||||||
{
|
{
|
||||||
|
template.removeDrops();
|
||||||
|
|
||||||
// Drops are sorted by chance (high to low).
|
// Drops are sorted by chance (high to low).
|
||||||
Collections.sort(dropLists, (d1, d2) -> Double.valueOf(d2.getChance()).compareTo(Double.valueOf(d1.getChance())));
|
Collections.sort(dropLists, (d1, d2) -> Double.valueOf(d2.getChance()).compareTo(Double.valueOf(d1.getChance())));
|
||||||
for (DropHolder dropHolder : dropLists)
|
for (DropHolder dropHolder : dropLists)
|
||||||
|
@ -649,6 +649,12 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
_ignoreClanNpcIds = ignoreClanNpcIds != null ? Collections.unmodifiableSet(ignoreClanNpcIds) : null;
|
_ignoreClanNpcIds = ignoreClanNpcIds != null ? Collections.unmodifiableSet(ignoreClanNpcIds) : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void removeDrops()
|
||||||
|
{
|
||||||
|
_dropListDeath = null;
|
||||||
|
_dropListSpoil = null;
|
||||||
|
}
|
||||||
|
|
||||||
public void addDrop(DropHolder dropHolder)
|
public void addDrop(DropHolder dropHolder)
|
||||||
{
|
{
|
||||||
if (_dropListDeath == null)
|
if (_dropListDeath == null)
|
||||||
|
@ -614,6 +614,8 @@ public class NpcData implements IXmlReader
|
|||||||
|
|
||||||
if (dropLists != null)
|
if (dropLists != null)
|
||||||
{
|
{
|
||||||
|
template.removeDrops();
|
||||||
|
|
||||||
// Drops are sorted by chance (high to low).
|
// Drops are sorted by chance (high to low).
|
||||||
Collections.sort(dropLists, (d1, d2) -> Double.valueOf(d2.getChance()).compareTo(Double.valueOf(d1.getChance())));
|
Collections.sort(dropLists, (d1, d2) -> Double.valueOf(d2.getChance()).compareTo(Double.valueOf(d1.getChance())));
|
||||||
for (DropHolder dropHolder : dropLists)
|
for (DropHolder dropHolder : dropLists)
|
||||||
|
@ -649,6 +649,12 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
_ignoreClanNpcIds = ignoreClanNpcIds != null ? Collections.unmodifiableSet(ignoreClanNpcIds) : null;
|
_ignoreClanNpcIds = ignoreClanNpcIds != null ? Collections.unmodifiableSet(ignoreClanNpcIds) : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void removeDrops()
|
||||||
|
{
|
||||||
|
_dropListDeath = null;
|
||||||
|
_dropListSpoil = null;
|
||||||
|
}
|
||||||
|
|
||||||
public void addDrop(DropHolder dropHolder)
|
public void addDrop(DropHolder dropHolder)
|
||||||
{
|
{
|
||||||
if (_dropListDeath == null)
|
if (_dropListDeath == null)
|
||||||
|
@ -614,6 +614,8 @@ public class NpcData implements IXmlReader
|
|||||||
|
|
||||||
if (dropLists != null)
|
if (dropLists != null)
|
||||||
{
|
{
|
||||||
|
template.removeDrops();
|
||||||
|
|
||||||
// Drops are sorted by chance (high to low).
|
// Drops are sorted by chance (high to low).
|
||||||
Collections.sort(dropLists, (d1, d2) -> Double.valueOf(d2.getChance()).compareTo(Double.valueOf(d1.getChance())));
|
Collections.sort(dropLists, (d1, d2) -> Double.valueOf(d2.getChance()).compareTo(Double.valueOf(d1.getChance())));
|
||||||
for (DropHolder dropHolder : dropLists)
|
for (DropHolder dropHolder : dropLists)
|
||||||
|
@ -649,6 +649,12 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
_ignoreClanNpcIds = ignoreClanNpcIds != null ? Collections.unmodifiableSet(ignoreClanNpcIds) : null;
|
_ignoreClanNpcIds = ignoreClanNpcIds != null ? Collections.unmodifiableSet(ignoreClanNpcIds) : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void removeDrops()
|
||||||
|
{
|
||||||
|
_dropListDeath = null;
|
||||||
|
_dropListSpoil = null;
|
||||||
|
}
|
||||||
|
|
||||||
public void addDrop(DropHolder dropHolder)
|
public void addDrop(DropHolder dropHolder)
|
||||||
{
|
{
|
||||||
if (_dropListDeath == null)
|
if (_dropListDeath == null)
|
||||||
|
@ -614,6 +614,8 @@ public class NpcData implements IXmlReader
|
|||||||
|
|
||||||
if (dropLists != null)
|
if (dropLists != null)
|
||||||
{
|
{
|
||||||
|
template.removeDrops();
|
||||||
|
|
||||||
// Drops are sorted by chance (high to low).
|
// Drops are sorted by chance (high to low).
|
||||||
Collections.sort(dropLists, (d1, d2) -> Double.valueOf(d2.getChance()).compareTo(Double.valueOf(d1.getChance())));
|
Collections.sort(dropLists, (d1, d2) -> Double.valueOf(d2.getChance()).compareTo(Double.valueOf(d1.getChance())));
|
||||||
for (DropHolder dropHolder : dropLists)
|
for (DropHolder dropHolder : dropLists)
|
||||||
|
@ -649,6 +649,12 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
_ignoreClanNpcIds = ignoreClanNpcIds != null ? Collections.unmodifiableSet(ignoreClanNpcIds) : null;
|
_ignoreClanNpcIds = ignoreClanNpcIds != null ? Collections.unmodifiableSet(ignoreClanNpcIds) : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void removeDrops()
|
||||||
|
{
|
||||||
|
_dropListDeath = null;
|
||||||
|
_dropListSpoil = null;
|
||||||
|
}
|
||||||
|
|
||||||
public void addDrop(DropHolder dropHolder)
|
public void addDrop(DropHolder dropHolder)
|
||||||
{
|
{
|
||||||
if (_dropListDeath == null)
|
if (_dropListDeath == null)
|
||||||
|
@ -614,6 +614,8 @@ public class NpcData implements IXmlReader
|
|||||||
|
|
||||||
if (dropLists != null)
|
if (dropLists != null)
|
||||||
{
|
{
|
||||||
|
template.removeDrops();
|
||||||
|
|
||||||
// Drops are sorted by chance (high to low).
|
// Drops are sorted by chance (high to low).
|
||||||
Collections.sort(dropLists, (d1, d2) -> Double.valueOf(d2.getChance()).compareTo(Double.valueOf(d1.getChance())));
|
Collections.sort(dropLists, (d1, d2) -> Double.valueOf(d2.getChance()).compareTo(Double.valueOf(d1.getChance())));
|
||||||
for (DropHolder dropHolder : dropLists)
|
for (DropHolder dropHolder : dropLists)
|
||||||
|
@ -649,6 +649,12 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
_ignoreClanNpcIds = ignoreClanNpcIds != null ? Collections.unmodifiableSet(ignoreClanNpcIds) : null;
|
_ignoreClanNpcIds = ignoreClanNpcIds != null ? Collections.unmodifiableSet(ignoreClanNpcIds) : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void removeDrops()
|
||||||
|
{
|
||||||
|
_dropListDeath = null;
|
||||||
|
_dropListSpoil = null;
|
||||||
|
}
|
||||||
|
|
||||||
public void addDrop(DropHolder dropHolder)
|
public void addDrop(DropHolder dropHolder)
|
||||||
{
|
{
|
||||||
if (_dropListDeath == null)
|
if (_dropListDeath == null)
|
||||||
|
@ -614,6 +614,8 @@ public class NpcData implements IXmlReader
|
|||||||
|
|
||||||
if (dropLists != null)
|
if (dropLists != null)
|
||||||
{
|
{
|
||||||
|
template.removeDrops();
|
||||||
|
|
||||||
// Drops are sorted by chance (high to low).
|
// Drops are sorted by chance (high to low).
|
||||||
Collections.sort(dropLists, (d1, d2) -> Double.valueOf(d2.getChance()).compareTo(Double.valueOf(d1.getChance())));
|
Collections.sort(dropLists, (d1, d2) -> Double.valueOf(d2.getChance()).compareTo(Double.valueOf(d1.getChance())));
|
||||||
for (DropHolder dropHolder : dropLists)
|
for (DropHolder dropHolder : dropLists)
|
||||||
|
@ -649,6 +649,12 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
_ignoreClanNpcIds = ignoreClanNpcIds != null ? Collections.unmodifiableSet(ignoreClanNpcIds) : null;
|
_ignoreClanNpcIds = ignoreClanNpcIds != null ? Collections.unmodifiableSet(ignoreClanNpcIds) : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void removeDrops()
|
||||||
|
{
|
||||||
|
_dropListDeath = null;
|
||||||
|
_dropListSpoil = null;
|
||||||
|
}
|
||||||
|
|
||||||
public void addDrop(DropHolder dropHolder)
|
public void addDrop(DropHolder dropHolder)
|
||||||
{
|
{
|
||||||
if (_dropListDeath == null)
|
if (_dropListDeath == null)
|
||||||
|
@ -614,6 +614,8 @@ public class NpcData implements IXmlReader
|
|||||||
|
|
||||||
if (dropLists != null)
|
if (dropLists != null)
|
||||||
{
|
{
|
||||||
|
template.removeDrops();
|
||||||
|
|
||||||
// Drops are sorted by chance (high to low).
|
// Drops are sorted by chance (high to low).
|
||||||
Collections.sort(dropLists, (d1, d2) -> Double.valueOf(d2.getChance()).compareTo(Double.valueOf(d1.getChance())));
|
Collections.sort(dropLists, (d1, d2) -> Double.valueOf(d2.getChance()).compareTo(Double.valueOf(d1.getChance())));
|
||||||
for (DropHolder dropHolder : dropLists)
|
for (DropHolder dropHolder : dropLists)
|
||||||
|
@ -649,6 +649,12 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
_ignoreClanNpcIds = ignoreClanNpcIds != null ? Collections.unmodifiableSet(ignoreClanNpcIds) : null;
|
_ignoreClanNpcIds = ignoreClanNpcIds != null ? Collections.unmodifiableSet(ignoreClanNpcIds) : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void removeDrops()
|
||||||
|
{
|
||||||
|
_dropListDeath = null;
|
||||||
|
_dropListSpoil = null;
|
||||||
|
}
|
||||||
|
|
||||||
public void addDrop(DropHolder dropHolder)
|
public void addDrop(DropHolder dropHolder)
|
||||||
{
|
{
|
||||||
if (_dropListDeath == null)
|
if (_dropListDeath == null)
|
||||||
|
@ -614,6 +614,8 @@ public class NpcData implements IXmlReader
|
|||||||
|
|
||||||
if (dropLists != null)
|
if (dropLists != null)
|
||||||
{
|
{
|
||||||
|
template.removeDrops();
|
||||||
|
|
||||||
// Drops are sorted by chance (high to low).
|
// Drops are sorted by chance (high to low).
|
||||||
Collections.sort(dropLists, (d1, d2) -> Double.valueOf(d2.getChance()).compareTo(Double.valueOf(d1.getChance())));
|
Collections.sort(dropLists, (d1, d2) -> Double.valueOf(d2.getChance()).compareTo(Double.valueOf(d1.getChance())));
|
||||||
for (DropHolder dropHolder : dropLists)
|
for (DropHolder dropHolder : dropLists)
|
||||||
|
@ -649,6 +649,12 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
_ignoreClanNpcIds = ignoreClanNpcIds != null ? Collections.unmodifiableSet(ignoreClanNpcIds) : null;
|
_ignoreClanNpcIds = ignoreClanNpcIds != null ? Collections.unmodifiableSet(ignoreClanNpcIds) : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void removeDrops()
|
||||||
|
{
|
||||||
|
_dropListDeath = null;
|
||||||
|
_dropListSpoil = null;
|
||||||
|
}
|
||||||
|
|
||||||
public void addDrop(DropHolder dropHolder)
|
public void addDrop(DropHolder dropHolder)
|
||||||
{
|
{
|
||||||
if (_dropListDeath == null)
|
if (_dropListDeath == null)
|
||||||
|
@ -614,6 +614,8 @@ public class NpcData implements IXmlReader
|
|||||||
|
|
||||||
if (dropLists != null)
|
if (dropLists != null)
|
||||||
{
|
{
|
||||||
|
template.removeDrops();
|
||||||
|
|
||||||
// Drops are sorted by chance (high to low).
|
// Drops are sorted by chance (high to low).
|
||||||
Collections.sort(dropLists, (d1, d2) -> Double.valueOf(d2.getChance()).compareTo(Double.valueOf(d1.getChance())));
|
Collections.sort(dropLists, (d1, d2) -> Double.valueOf(d2.getChance()).compareTo(Double.valueOf(d1.getChance())));
|
||||||
for (DropHolder dropHolder : dropLists)
|
for (DropHolder dropHolder : dropLists)
|
||||||
|
@ -649,6 +649,12 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
_ignoreClanNpcIds = ignoreClanNpcIds != null ? Collections.unmodifiableSet(ignoreClanNpcIds) : null;
|
_ignoreClanNpcIds = ignoreClanNpcIds != null ? Collections.unmodifiableSet(ignoreClanNpcIds) : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void removeDrops()
|
||||||
|
{
|
||||||
|
_dropListDeath = null;
|
||||||
|
_dropListSpoil = null;
|
||||||
|
}
|
||||||
|
|
||||||
public void addDrop(DropHolder dropHolder)
|
public void addDrop(DropHolder dropHolder)
|
||||||
{
|
{
|
||||||
if (_dropListDeath == null)
|
if (_dropListDeath == null)
|
||||||
|
@ -614,6 +614,8 @@ public class NpcData implements IXmlReader
|
|||||||
|
|
||||||
if (dropLists != null)
|
if (dropLists != null)
|
||||||
{
|
{
|
||||||
|
template.removeDrops();
|
||||||
|
|
||||||
// Drops are sorted by chance (high to low).
|
// Drops are sorted by chance (high to low).
|
||||||
Collections.sort(dropLists, (d1, d2) -> Double.valueOf(d2.getChance()).compareTo(Double.valueOf(d1.getChance())));
|
Collections.sort(dropLists, (d1, d2) -> Double.valueOf(d2.getChance()).compareTo(Double.valueOf(d1.getChance())));
|
||||||
for (DropHolder dropHolder : dropLists)
|
for (DropHolder dropHolder : dropLists)
|
||||||
|
@ -649,6 +649,12 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
_ignoreClanNpcIds = ignoreClanNpcIds != null ? Collections.unmodifiableSet(ignoreClanNpcIds) : null;
|
_ignoreClanNpcIds = ignoreClanNpcIds != null ? Collections.unmodifiableSet(ignoreClanNpcIds) : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void removeDrops()
|
||||||
|
{
|
||||||
|
_dropListDeath = null;
|
||||||
|
_dropListSpoil = null;
|
||||||
|
}
|
||||||
|
|
||||||
public void addDrop(DropHolder dropHolder)
|
public void addDrop(DropHolder dropHolder)
|
||||||
{
|
{
|
||||||
if (_dropListDeath == null)
|
if (_dropListDeath == null)
|
||||||
|
@ -614,6 +614,8 @@ public class NpcData implements IXmlReader
|
|||||||
|
|
||||||
if (dropLists != null)
|
if (dropLists != null)
|
||||||
{
|
{
|
||||||
|
template.removeDrops();
|
||||||
|
|
||||||
// Drops are sorted by chance (high to low).
|
// Drops are sorted by chance (high to low).
|
||||||
Collections.sort(dropLists, (d1, d2) -> Double.valueOf(d2.getChance()).compareTo(Double.valueOf(d1.getChance())));
|
Collections.sort(dropLists, (d1, d2) -> Double.valueOf(d2.getChance()).compareTo(Double.valueOf(d1.getChance())));
|
||||||
for (DropHolder dropHolder : dropLists)
|
for (DropHolder dropHolder : dropLists)
|
||||||
|
@ -649,6 +649,12 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
_ignoreClanNpcIds = ignoreClanNpcIds != null ? Collections.unmodifiableSet(ignoreClanNpcIds) : null;
|
_ignoreClanNpcIds = ignoreClanNpcIds != null ? Collections.unmodifiableSet(ignoreClanNpcIds) : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void removeDrops()
|
||||||
|
{
|
||||||
|
_dropListDeath = null;
|
||||||
|
_dropListSpoil = null;
|
||||||
|
}
|
||||||
|
|
||||||
public void addDrop(DropHolder dropHolder)
|
public void addDrop(DropHolder dropHolder)
|
||||||
{
|
{
|
||||||
if (_dropListDeath == null)
|
if (_dropListDeath == null)
|
||||||
|
@ -632,6 +632,8 @@ public class NpcData implements IXmlReader
|
|||||||
|
|
||||||
if (dropLists != null)
|
if (dropLists != null)
|
||||||
{
|
{
|
||||||
|
template.removeDrops();
|
||||||
|
|
||||||
// Drops are sorted by chance (high to low).
|
// Drops are sorted by chance (high to low).
|
||||||
Collections.sort(dropLists, (d1, d2) -> Double.valueOf(d2.getChance()).compareTo(Double.valueOf(d1.getChance())));
|
Collections.sort(dropLists, (d1, d2) -> Double.valueOf(d2.getChance()).compareTo(Double.valueOf(d1.getChance())));
|
||||||
for (DropHolder dropHolder : dropLists)
|
for (DropHolder dropHolder : dropLists)
|
||||||
|
@ -588,6 +588,12 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
_ignoreClanNpcIds = ignoreClanNpcIds != null ? Collections.unmodifiableSet(ignoreClanNpcIds) : null;
|
_ignoreClanNpcIds = ignoreClanNpcIds != null ? Collections.unmodifiableSet(ignoreClanNpcIds) : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void removeDrops()
|
||||||
|
{
|
||||||
|
_dropListDeath = null;
|
||||||
|
_dropListSpoil = null;
|
||||||
|
}
|
||||||
|
|
||||||
public void addDrop(DropHolder dropHolder)
|
public void addDrop(DropHolder dropHolder)
|
||||||
{
|
{
|
||||||
if (_dropListDeath == null)
|
if (_dropListDeath == null)
|
||||||
|
@ -632,6 +632,8 @@ public class NpcData implements IXmlReader
|
|||||||
|
|
||||||
if (dropLists != null)
|
if (dropLists != null)
|
||||||
{
|
{
|
||||||
|
template.removeDrops();
|
||||||
|
|
||||||
// Drops are sorted by chance (high to low).
|
// Drops are sorted by chance (high to low).
|
||||||
Collections.sort(dropLists, (d1, d2) -> Double.valueOf(d2.getChance()).compareTo(Double.valueOf(d1.getChance())));
|
Collections.sort(dropLists, (d1, d2) -> Double.valueOf(d2.getChance()).compareTo(Double.valueOf(d1.getChance())));
|
||||||
for (DropHolder dropHolder : dropLists)
|
for (DropHolder dropHolder : dropLists)
|
||||||
|
@ -588,6 +588,12 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
_ignoreClanNpcIds = ignoreClanNpcIds != null ? Collections.unmodifiableSet(ignoreClanNpcIds) : null;
|
_ignoreClanNpcIds = ignoreClanNpcIds != null ? Collections.unmodifiableSet(ignoreClanNpcIds) : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void removeDrops()
|
||||||
|
{
|
||||||
|
_dropListDeath = null;
|
||||||
|
_dropListSpoil = null;
|
||||||
|
}
|
||||||
|
|
||||||
public void addDrop(DropHolder dropHolder)
|
public void addDrop(DropHolder dropHolder)
|
||||||
{
|
{
|
||||||
if (_dropListDeath == null)
|
if (_dropListDeath == null)
|
||||||
|
@ -614,6 +614,8 @@ public class NpcData implements IXmlReader
|
|||||||
|
|
||||||
if (dropLists != null)
|
if (dropLists != null)
|
||||||
{
|
{
|
||||||
|
template.removeDrops();
|
||||||
|
|
||||||
// Drops are sorted by chance (high to low).
|
// Drops are sorted by chance (high to low).
|
||||||
Collections.sort(dropLists, (d1, d2) -> Double.valueOf(d2.getChance()).compareTo(Double.valueOf(d1.getChance())));
|
Collections.sort(dropLists, (d1, d2) -> Double.valueOf(d2.getChance()).compareTo(Double.valueOf(d1.getChance())));
|
||||||
for (DropHolder dropHolder : dropLists)
|
for (DropHolder dropHolder : dropLists)
|
||||||
|
@ -650,6 +650,12 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
_ignoreClanNpcIds = ignoreClanNpcIds != null ? Collections.unmodifiableSet(ignoreClanNpcIds) : null;
|
_ignoreClanNpcIds = ignoreClanNpcIds != null ? Collections.unmodifiableSet(ignoreClanNpcIds) : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void removeDrops()
|
||||||
|
{
|
||||||
|
_dropListDeath = null;
|
||||||
|
_dropListSpoil = null;
|
||||||
|
}
|
||||||
|
|
||||||
public void addDrop(DropHolder dropHolder)
|
public void addDrop(DropHolder dropHolder)
|
||||||
{
|
{
|
||||||
if (_dropListDeath == null)
|
if (_dropListDeath == null)
|
||||||
|
@ -614,6 +614,8 @@ public class NpcData implements IXmlReader
|
|||||||
|
|
||||||
if (dropLists != null)
|
if (dropLists != null)
|
||||||
{
|
{
|
||||||
|
template.removeDrops();
|
||||||
|
|
||||||
// Drops are sorted by chance (high to low).
|
// Drops are sorted by chance (high to low).
|
||||||
Collections.sort(dropLists, (d1, d2) -> Double.valueOf(d2.getChance()).compareTo(Double.valueOf(d1.getChance())));
|
Collections.sort(dropLists, (d1, d2) -> Double.valueOf(d2.getChance()).compareTo(Double.valueOf(d1.getChance())));
|
||||||
for (DropHolder dropHolder : dropLists)
|
for (DropHolder dropHolder : dropLists)
|
||||||
|
@ -650,6 +650,12 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
_ignoreClanNpcIds = ignoreClanNpcIds != null ? Collections.unmodifiableSet(ignoreClanNpcIds) : null;
|
_ignoreClanNpcIds = ignoreClanNpcIds != null ? Collections.unmodifiableSet(ignoreClanNpcIds) : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void removeDrops()
|
||||||
|
{
|
||||||
|
_dropListDeath = null;
|
||||||
|
_dropListSpoil = null;
|
||||||
|
}
|
||||||
|
|
||||||
public void addDrop(DropHolder dropHolder)
|
public void addDrop(DropHolder dropHolder)
|
||||||
{
|
{
|
||||||
if (_dropListDeath == null)
|
if (_dropListDeath == null)
|
||||||
|
@ -614,6 +614,8 @@ public class NpcData implements IXmlReader
|
|||||||
|
|
||||||
if (dropLists != null)
|
if (dropLists != null)
|
||||||
{
|
{
|
||||||
|
template.removeDrops();
|
||||||
|
|
||||||
// Drops are sorted by chance (high to low).
|
// Drops are sorted by chance (high to low).
|
||||||
Collections.sort(dropLists, (d1, d2) -> Double.valueOf(d2.getChance()).compareTo(Double.valueOf(d1.getChance())));
|
Collections.sort(dropLists, (d1, d2) -> Double.valueOf(d2.getChance()).compareTo(Double.valueOf(d1.getChance())));
|
||||||
for (DropHolder dropHolder : dropLists)
|
for (DropHolder dropHolder : dropLists)
|
||||||
|
@ -650,6 +650,12 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
_ignoreClanNpcIds = ignoreClanNpcIds != null ? Collections.unmodifiableSet(ignoreClanNpcIds) : null;
|
_ignoreClanNpcIds = ignoreClanNpcIds != null ? Collections.unmodifiableSet(ignoreClanNpcIds) : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void removeDrops()
|
||||||
|
{
|
||||||
|
_dropListDeath = null;
|
||||||
|
_dropListSpoil = null;
|
||||||
|
}
|
||||||
|
|
||||||
public void addDrop(DropHolder dropHolder)
|
public void addDrop(DropHolder dropHolder)
|
||||||
{
|
{
|
||||||
if (_dropListDeath == null)
|
if (_dropListDeath == null)
|
||||||
|
@ -617,6 +617,8 @@ public class NpcData implements IXmlReader
|
|||||||
|
|
||||||
if (dropLists != null)
|
if (dropLists != null)
|
||||||
{
|
{
|
||||||
|
template.removeDrops();
|
||||||
|
|
||||||
// Drops are sorted by chance (high to low).
|
// Drops are sorted by chance (high to low).
|
||||||
Collections.sort(dropLists, (d1, d2) -> Double.valueOf(d2.getChance()).compareTo(Double.valueOf(d1.getChance())));
|
Collections.sort(dropLists, (d1, d2) -> Double.valueOf(d2.getChance()).compareTo(Double.valueOf(d1.getChance())));
|
||||||
for (DropHolder dropHolder : dropLists)
|
for (DropHolder dropHolder : dropLists)
|
||||||
|
@ -665,6 +665,12 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
_ignoreClanNpcIds = ignoreClanNpcIds != null ? Collections.unmodifiableSet(ignoreClanNpcIds) : null;
|
_ignoreClanNpcIds = ignoreClanNpcIds != null ? Collections.unmodifiableSet(ignoreClanNpcIds) : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void removeDrops()
|
||||||
|
{
|
||||||
|
_dropListDeath = null;
|
||||||
|
_dropListSpoil = null;
|
||||||
|
}
|
||||||
|
|
||||||
public void addDrop(DropHolder dropHolder)
|
public void addDrop(DropHolder dropHolder)
|
||||||
{
|
{
|
||||||
if (_dropListDeath == null)
|
if (_dropListDeath == null)
|
||||||
|
@ -617,6 +617,8 @@ public class NpcData implements IXmlReader
|
|||||||
|
|
||||||
if (dropLists != null)
|
if (dropLists != null)
|
||||||
{
|
{
|
||||||
|
template.removeDrops();
|
||||||
|
|
||||||
// Drops are sorted by chance (high to low).
|
// Drops are sorted by chance (high to low).
|
||||||
Collections.sort(dropLists, (d1, d2) -> Double.valueOf(d2.getChance()).compareTo(Double.valueOf(d1.getChance())));
|
Collections.sort(dropLists, (d1, d2) -> Double.valueOf(d2.getChance()).compareTo(Double.valueOf(d1.getChance())));
|
||||||
for (DropHolder dropHolder : dropLists)
|
for (DropHolder dropHolder : dropLists)
|
||||||
|
@ -665,6 +665,12 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
_ignoreClanNpcIds = ignoreClanNpcIds != null ? Collections.unmodifiableSet(ignoreClanNpcIds) : null;
|
_ignoreClanNpcIds = ignoreClanNpcIds != null ? Collections.unmodifiableSet(ignoreClanNpcIds) : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void removeDrops()
|
||||||
|
{
|
||||||
|
_dropListDeath = null;
|
||||||
|
_dropListSpoil = null;
|
||||||
|
}
|
||||||
|
|
||||||
public void addDrop(DropHolder dropHolder)
|
public void addDrop(DropHolder dropHolder)
|
||||||
{
|
{
|
||||||
if (_dropListDeath == null)
|
if (_dropListDeath == null)
|
||||||
|
@ -617,6 +617,8 @@ public class NpcData implements IXmlReader
|
|||||||
|
|
||||||
if (dropLists != null)
|
if (dropLists != null)
|
||||||
{
|
{
|
||||||
|
template.removeDrops();
|
||||||
|
|
||||||
// Drops are sorted by chance (high to low).
|
// Drops are sorted by chance (high to low).
|
||||||
Collections.sort(dropLists, (d1, d2) -> Double.valueOf(d2.getChance()).compareTo(Double.valueOf(d1.getChance())));
|
Collections.sort(dropLists, (d1, d2) -> Double.valueOf(d2.getChance()).compareTo(Double.valueOf(d1.getChance())));
|
||||||
for (DropHolder dropHolder : dropLists)
|
for (DropHolder dropHolder : dropLists)
|
||||||
|
@ -665,6 +665,12 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
_ignoreClanNpcIds = ignoreClanNpcIds != null ? Collections.unmodifiableSet(ignoreClanNpcIds) : null;
|
_ignoreClanNpcIds = ignoreClanNpcIds != null ? Collections.unmodifiableSet(ignoreClanNpcIds) : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void removeDrops()
|
||||||
|
{
|
||||||
|
_dropListDeath = null;
|
||||||
|
_dropListSpoil = null;
|
||||||
|
}
|
||||||
|
|
||||||
public void addDrop(DropHolder dropHolder)
|
public void addDrop(DropHolder dropHolder)
|
||||||
{
|
{
|
||||||
if (_dropListDeath == null)
|
if (_dropListDeath == null)
|
||||||
|
@ -624,6 +624,8 @@ public class NpcData implements IXmlReader
|
|||||||
|
|
||||||
if (dropLists != null)
|
if (dropLists != null)
|
||||||
{
|
{
|
||||||
|
template.removeDrops();
|
||||||
|
|
||||||
// Drops are sorted by chance (high to low).
|
// Drops are sorted by chance (high to low).
|
||||||
Collections.sort(dropLists, (d1, d2) -> Double.valueOf(d2.getChance()).compareTo(Double.valueOf(d1.getChance())));
|
Collections.sort(dropLists, (d1, d2) -> Double.valueOf(d2.getChance()).compareTo(Double.valueOf(d1.getChance())));
|
||||||
for (DropHolder dropHolder : dropLists)
|
for (DropHolder dropHolder : dropLists)
|
||||||
|
@ -649,6 +649,12 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
_ignoreClanNpcIds = ignoreClanNpcIds != null ? Collections.unmodifiableSet(ignoreClanNpcIds) : null;
|
_ignoreClanNpcIds = ignoreClanNpcIds != null ? Collections.unmodifiableSet(ignoreClanNpcIds) : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void removeDrops()
|
||||||
|
{
|
||||||
|
_dropListDeath = null;
|
||||||
|
_dropListSpoil = null;
|
||||||
|
}
|
||||||
|
|
||||||
public void addDrop(DropHolder dropHolder)
|
public void addDrop(DropHolder dropHolder)
|
||||||
{
|
{
|
||||||
if (_dropListDeath == null)
|
if (_dropListDeath == null)
|
||||||
|
@ -620,6 +620,8 @@ public class NpcData implements IXmlReader
|
|||||||
|
|
||||||
if (dropLists != null)
|
if (dropLists != null)
|
||||||
{
|
{
|
||||||
|
template.removeDrops();
|
||||||
|
|
||||||
// Add LCoin drop for bosses.
|
// Add LCoin drop for bosses.
|
||||||
if (type.contains("boss"))
|
if (type.contains("boss"))
|
||||||
{
|
{
|
||||||
|
@ -664,6 +664,12 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
_ignoreClanNpcIds = ignoreClanNpcIds != null ? Collections.unmodifiableSet(ignoreClanNpcIds) : null;
|
_ignoreClanNpcIds = ignoreClanNpcIds != null ? Collections.unmodifiableSet(ignoreClanNpcIds) : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void removeDrops()
|
||||||
|
{
|
||||||
|
_dropListDeath = null;
|
||||||
|
_dropListSpoil = null;
|
||||||
|
}
|
||||||
|
|
||||||
public void addDrop(DropHolder dropHolder)
|
public void addDrop(DropHolder dropHolder)
|
||||||
{
|
{
|
||||||
if (_dropListDeath == null)
|
if (_dropListDeath == null)
|
||||||
|
@ -620,6 +620,8 @@ public class NpcData implements IXmlReader
|
|||||||
|
|
||||||
if (dropLists != null)
|
if (dropLists != null)
|
||||||
{
|
{
|
||||||
|
template.removeDrops();
|
||||||
|
|
||||||
// Add LCoin drop for bosses.
|
// Add LCoin drop for bosses.
|
||||||
if (type.contains("boss"))
|
if (type.contains("boss"))
|
||||||
{
|
{
|
||||||
|
@ -664,6 +664,12 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
_ignoreClanNpcIds = ignoreClanNpcIds != null ? Collections.unmodifiableSet(ignoreClanNpcIds) : null;
|
_ignoreClanNpcIds = ignoreClanNpcIds != null ? Collections.unmodifiableSet(ignoreClanNpcIds) : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void removeDrops()
|
||||||
|
{
|
||||||
|
_dropListDeath = null;
|
||||||
|
_dropListSpoil = null;
|
||||||
|
}
|
||||||
|
|
||||||
public void addDrop(DropHolder dropHolder)
|
public void addDrop(DropHolder dropHolder)
|
||||||
{
|
{
|
||||||
if (_dropListDeath == null)
|
if (_dropListDeath == null)
|
||||||
|
@ -620,6 +620,8 @@ public class NpcData implements IXmlReader
|
|||||||
|
|
||||||
if (dropLists != null)
|
if (dropLists != null)
|
||||||
{
|
{
|
||||||
|
template.removeDrops();
|
||||||
|
|
||||||
// Add LCoin drop for bosses.
|
// Add LCoin drop for bosses.
|
||||||
if (type.contains("boss"))
|
if (type.contains("boss"))
|
||||||
{
|
{
|
||||||
|
@ -664,6 +664,12 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
_ignoreClanNpcIds = ignoreClanNpcIds != null ? Collections.unmodifiableSet(ignoreClanNpcIds) : null;
|
_ignoreClanNpcIds = ignoreClanNpcIds != null ? Collections.unmodifiableSet(ignoreClanNpcIds) : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void removeDrops()
|
||||||
|
{
|
||||||
|
_dropListDeath = null;
|
||||||
|
_dropListSpoil = null;
|
||||||
|
}
|
||||||
|
|
||||||
public void addDrop(DropHolder dropHolder)
|
public void addDrop(DropHolder dropHolder)
|
||||||
{
|
{
|
||||||
if (_dropListDeath == null)
|
if (_dropListDeath == null)
|
||||||
|
Reference in New Issue
Block a user