Correct chance display in chance multisells.

Contributed by Index.
This commit is contained in:
MobiusDevelopment 2022-03-10 20:49:36 +00:00
parent 2daa3a6b01
commit b2ba6e89d5
2 changed files with 2 additions and 2 deletions

View File

@ -112,7 +112,7 @@ public class MultiSellList extends AbstractItemPacket
}
packet.writeQ(_list.getProductCount(product));
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);
writeItemElemental(packet, displayItemEnchantment);
writeItemEnsoulOptions(packet, displayItemEnchantment);

View File

@ -112,7 +112,7 @@ public class MultiSellList extends AbstractItemPacket
}
packet.writeQ(_list.getProductCount(product));
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);
writeItemElemental(packet, displayItemEnchantment);
writeItemEnsoulOptions(packet, displayItemEnchantment);