Correct chance display in chance multisells.
Contributed by Index.
This commit is contained in:
@@ -112,7 +112,7 @@ public class MultiSellList extends AbstractItemPacket
|
|||||||
}
|
}
|
||||||
packet.writeQ(_list.getProductCount(product));
|
packet.writeQ(_list.getProductCount(product));
|
||||||
packet.writeH(product.getEnchantmentLevel() > 0 ? product.getEnchantmentLevel() : displayItemEnchantment != null ? displayItemEnchantment.getEnchantLevel() : 0); // enchant level
|
packet.writeH(product.getEnchantmentLevel() > 0 ? product.getEnchantmentLevel() : displayItemEnchantment != null ? displayItemEnchantment.getEnchantLevel() : 0); // enchant level
|
||||||
packet.writeD((int) Math.ceil(product.getChance())); // chance
|
packet.writeD((int) product.getChance() * 1000000); // chance
|
||||||
writeItemAugment(packet, displayItemEnchantment);
|
writeItemAugment(packet, displayItemEnchantment);
|
||||||
writeItemElemental(packet, displayItemEnchantment);
|
writeItemElemental(packet, displayItemEnchantment);
|
||||||
writeItemEnsoulOptions(packet, displayItemEnchantment);
|
writeItemEnsoulOptions(packet, displayItemEnchantment);
|
||||||
|
@@ -112,7 +112,7 @@ public class MultiSellList extends AbstractItemPacket
|
|||||||
}
|
}
|
||||||
packet.writeQ(_list.getProductCount(product));
|
packet.writeQ(_list.getProductCount(product));
|
||||||
packet.writeH(product.getEnchantmentLevel() > 0 ? product.getEnchantmentLevel() : displayItemEnchantment != null ? displayItemEnchantment.getEnchantLevel() : 0); // enchant level
|
packet.writeH(product.getEnchantmentLevel() > 0 ? product.getEnchantmentLevel() : displayItemEnchantment != null ? displayItemEnchantment.getEnchantLevel() : 0); // enchant level
|
||||||
packet.writeD((int) Math.ceil(product.getChance())); // chance
|
packet.writeD((int) product.getChance() * 1000000); // chance
|
||||||
writeItemAugment(packet, displayItemEnchantment);
|
writeItemAugment(packet, displayItemEnchantment);
|
||||||
writeItemElemental(packet, displayItemEnchantment);
|
writeItemElemental(packet, displayItemEnchantment);
|
||||||
writeItemEnsoulOptions(packet, displayItemEnchantment);
|
writeItemEnsoulOptions(packet, displayItemEnchantment);
|
||||||
|
Reference in New Issue
Block a user