Chance multisell price check adjustments.
This commit is contained in:
@@ -167,7 +167,14 @@ public class MultisellData implements IXmlReader
|
|||||||
final Item item = ItemTable.getInstance().getTemplate(id);
|
final Item item = ItemTable.getInstance().getTemplate(id);
|
||||||
if (item != null)
|
if (item != null)
|
||||||
{
|
{
|
||||||
totalPrice += ((item.getReferencePrice() / 2) * count);
|
if (chance > 0)
|
||||||
|
{
|
||||||
|
totalPrice += ((item.getReferencePrice() / 2) * count) * (chance / 100);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
totalPrice += ((item.getReferencePrice() / 2) * count);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@@ -167,7 +167,14 @@ public class MultisellData implements IXmlReader
|
|||||||
final Item item = ItemTable.getInstance().getTemplate(id);
|
final Item item = ItemTable.getInstance().getTemplate(id);
|
||||||
if (item != null)
|
if (item != null)
|
||||||
{
|
{
|
||||||
totalPrice += ((item.getReferencePrice() / 2) * count);
|
if (chance > 0)
|
||||||
|
{
|
||||||
|
totalPrice += ((item.getReferencePrice() / 2) * count) * (chance / 100);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
totalPrice += ((item.getReferencePrice() / 2) * count);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@@ -167,7 +167,14 @@ public class MultisellData implements IXmlReader
|
|||||||
final Item item = ItemTable.getInstance().getTemplate(id);
|
final Item item = ItemTable.getInstance().getTemplate(id);
|
||||||
if (item != null)
|
if (item != null)
|
||||||
{
|
{
|
||||||
totalPrice += ((item.getReferencePrice() / 2) * count);
|
if (chance > 0)
|
||||||
|
{
|
||||||
|
totalPrice += ((item.getReferencePrice() / 2) * count) * (chance / 100);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
totalPrice += ((item.getReferencePrice() / 2) * count);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@@ -167,7 +167,14 @@ public class MultisellData implements IXmlReader
|
|||||||
final Item item = ItemTable.getInstance().getTemplate(id);
|
final Item item = ItemTable.getInstance().getTemplate(id);
|
||||||
if (item != null)
|
if (item != null)
|
||||||
{
|
{
|
||||||
totalPrice += ((item.getReferencePrice() / 2) * count);
|
if (chance > 0)
|
||||||
|
{
|
||||||
|
totalPrice += ((item.getReferencePrice() / 2) * count) * (chance / 100);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
totalPrice += ((item.getReferencePrice() / 2) * count);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@@ -167,7 +167,14 @@ public class MultisellData implements IXmlReader
|
|||||||
final Item item = ItemTable.getInstance().getTemplate(id);
|
final Item item = ItemTable.getInstance().getTemplate(id);
|
||||||
if (item != null)
|
if (item != null)
|
||||||
{
|
{
|
||||||
totalPrice += ((item.getReferencePrice() / 2) * count);
|
if (chance > 0)
|
||||||
|
{
|
||||||
|
totalPrice += ((item.getReferencePrice() / 2) * count) * (chance / 100);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
totalPrice += ((item.getReferencePrice() / 2) * count);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@@ -167,7 +167,14 @@ public class MultisellData implements IXmlReader
|
|||||||
final Item item = ItemTable.getInstance().getTemplate(id);
|
final Item item = ItemTable.getInstance().getTemplate(id);
|
||||||
if (item != null)
|
if (item != null)
|
||||||
{
|
{
|
||||||
totalPrice += ((item.getReferencePrice() / 2) * count);
|
if (chance > 0)
|
||||||
|
{
|
||||||
|
totalPrice += ((item.getReferencePrice() / 2) * count) * (chance / 100);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
totalPrice += ((item.getReferencePrice() / 2) * count);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@@ -167,7 +167,14 @@ public class MultisellData implements IXmlReader
|
|||||||
final Item item = ItemTable.getInstance().getTemplate(id);
|
final Item item = ItemTable.getInstance().getTemplate(id);
|
||||||
if (item != null)
|
if (item != null)
|
||||||
{
|
{
|
||||||
totalPrice += ((item.getReferencePrice() / 2) * count);
|
if (chance > 0)
|
||||||
|
{
|
||||||
|
totalPrice += ((item.getReferencePrice() / 2) * count) * (chance / 100);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
totalPrice += ((item.getReferencePrice() / 2) * count);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@@ -167,7 +167,14 @@ public class MultisellData implements IXmlReader
|
|||||||
final Item item = ItemTable.getInstance().getTemplate(id);
|
final Item item = ItemTable.getInstance().getTemplate(id);
|
||||||
if (item != null)
|
if (item != null)
|
||||||
{
|
{
|
||||||
totalPrice += ((item.getReferencePrice() / 2) * count);
|
if (chance > 0)
|
||||||
|
{
|
||||||
|
totalPrice += ((item.getReferencePrice() / 2) * count) * (chance / 100);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
totalPrice += ((item.getReferencePrice() / 2) * count);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@@ -167,7 +167,14 @@ public class MultisellData implements IXmlReader
|
|||||||
final Item item = ItemTable.getInstance().getTemplate(id);
|
final Item item = ItemTable.getInstance().getTemplate(id);
|
||||||
if (item != null)
|
if (item != null)
|
||||||
{
|
{
|
||||||
totalPrice += ((item.getReferencePrice() / 2) * count);
|
if (chance > 0)
|
||||||
|
{
|
||||||
|
totalPrice += ((item.getReferencePrice() / 2) * count) * (chance / 100);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
totalPrice += ((item.getReferencePrice() / 2) * count);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@@ -167,7 +167,14 @@ public class MultisellData implements IXmlReader
|
|||||||
final Item item = ItemTable.getInstance().getTemplate(id);
|
final Item item = ItemTable.getInstance().getTemplate(id);
|
||||||
if (item != null)
|
if (item != null)
|
||||||
{
|
{
|
||||||
totalPrice += ((item.getReferencePrice() / 2) * count);
|
if (chance > 0)
|
||||||
|
{
|
||||||
|
totalPrice += ((item.getReferencePrice() / 2) * count) * (chance / 100);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
totalPrice += ((item.getReferencePrice() / 2) * count);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@@ -167,7 +167,14 @@ public class MultisellData implements IXmlReader
|
|||||||
final Item item = ItemTable.getInstance().getTemplate(id);
|
final Item item = ItemTable.getInstance().getTemplate(id);
|
||||||
if (item != null)
|
if (item != null)
|
||||||
{
|
{
|
||||||
totalPrice += ((item.getReferencePrice() / 2) * count);
|
if (chance > 0)
|
||||||
|
{
|
||||||
|
totalPrice += ((item.getReferencePrice() / 2) * count) * (chance / 100);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
totalPrice += ((item.getReferencePrice() / 2) * count);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@@ -167,7 +167,14 @@ public class MultisellData implements IXmlReader
|
|||||||
final Item item = ItemTable.getInstance().getTemplate(id);
|
final Item item = ItemTable.getInstance().getTemplate(id);
|
||||||
if (item != null)
|
if (item != null)
|
||||||
{
|
{
|
||||||
totalPrice += ((item.getReferencePrice() / 2) * count);
|
if (chance > 0)
|
||||||
|
{
|
||||||
|
totalPrice += ((item.getReferencePrice() / 2) * count) * (chance / 100);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
totalPrice += ((item.getReferencePrice() / 2) * count);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@@ -167,7 +167,14 @@ public class MultisellData implements IXmlReader
|
|||||||
final Item item = ItemTable.getInstance().getTemplate(id);
|
final Item item = ItemTable.getInstance().getTemplate(id);
|
||||||
if (item != null)
|
if (item != null)
|
||||||
{
|
{
|
||||||
totalPrice += ((item.getReferencePrice() / 2) * count);
|
if (chance > 0)
|
||||||
|
{
|
||||||
|
totalPrice += ((item.getReferencePrice() / 2) * count) * (chance / 100);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
totalPrice += ((item.getReferencePrice() / 2) * count);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@@ -167,7 +167,14 @@ public class MultisellData implements IXmlReader
|
|||||||
final Item item = ItemTable.getInstance().getTemplate(id);
|
final Item item = ItemTable.getInstance().getTemplate(id);
|
||||||
if (item != null)
|
if (item != null)
|
||||||
{
|
{
|
||||||
totalPrice += ((item.getReferencePrice() / 2) * count);
|
if (chance > 0)
|
||||||
|
{
|
||||||
|
totalPrice += ((item.getReferencePrice() / 2) * count) * (chance / 100);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
totalPrice += ((item.getReferencePrice() / 2) * count);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@@ -167,7 +167,14 @@ public class MultisellData implements IXmlReader
|
|||||||
final Item item = ItemTable.getInstance().getTemplate(id);
|
final Item item = ItemTable.getInstance().getTemplate(id);
|
||||||
if (item != null)
|
if (item != null)
|
||||||
{
|
{
|
||||||
totalPrice += ((item.getReferencePrice() / 2) * count);
|
if (chance > 0)
|
||||||
|
{
|
||||||
|
totalPrice += ((item.getReferencePrice() / 2) * count) * (chance / 100);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
totalPrice += ((item.getReferencePrice() / 2) * count);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@@ -167,7 +167,14 @@ public class MultisellData implements IXmlReader
|
|||||||
final Item item = ItemTable.getInstance().getTemplate(id);
|
final Item item = ItemTable.getInstance().getTemplate(id);
|
||||||
if (item != null)
|
if (item != null)
|
||||||
{
|
{
|
||||||
totalPrice += ((item.getReferencePrice() / 2) * count);
|
if (chance > 0)
|
||||||
|
{
|
||||||
|
totalPrice += ((item.getReferencePrice() / 2) * count) * (chance / 100);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
totalPrice += ((item.getReferencePrice() / 2) * count);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@@ -173,7 +173,14 @@ public class MultisellData implements IXmlReader
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
totalPrice += ((item.getReferencePrice() / 2) * count);
|
if (chance > 0)
|
||||||
|
{
|
||||||
|
totalPrice += ((item.getReferencePrice() / 2) * count) * (chance / 100);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
totalPrice += ((item.getReferencePrice() / 2) * count);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
products.add(product);
|
products.add(product);
|
||||||
|
@@ -167,7 +167,14 @@ public class MultisellData implements IXmlReader
|
|||||||
final Item item = ItemTable.getInstance().getTemplate(id);
|
final Item item = ItemTable.getInstance().getTemplate(id);
|
||||||
if (item != null)
|
if (item != null)
|
||||||
{
|
{
|
||||||
totalPrice += ((item.getReferencePrice() / 2) * count);
|
if (chance > 0)
|
||||||
|
{
|
||||||
|
totalPrice += ((item.getReferencePrice() / 2) * count) * (chance / 100);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
totalPrice += ((item.getReferencePrice() / 2) * count);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@@ -167,7 +167,14 @@ public class MultisellData implements IXmlReader
|
|||||||
final Item item = ItemTable.getInstance().getTemplate(id);
|
final Item item = ItemTable.getInstance().getTemplate(id);
|
||||||
if (item != null)
|
if (item != null)
|
||||||
{
|
{
|
||||||
totalPrice += ((item.getReferencePrice() / 2) * count);
|
if (chance > 0)
|
||||||
|
{
|
||||||
|
totalPrice += ((item.getReferencePrice() / 2) * count) * (chance / 100);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
totalPrice += ((item.getReferencePrice() / 2) * count);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user