Considerations for single product at RequestPurchaseLimitShopItemBuy.
This commit is contained in:
@ -241,10 +241,11 @@ public class RequestPurchaseLimitShopItemBuy implements IClientIncomingPacket
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else if (Rnd.get(100) < _product.getChance())
|
||||||
{
|
{
|
||||||
rewards.add(new LimitShopRandomCraftReward(_product.getProductionId(), _amount, 0));
|
final int amount = (int) (_product.getCount() * _amount);
|
||||||
player.addItem("LCoinShop", _product.getProductionId(), _amount, player, true);
|
rewards.add(new LimitShopRandomCraftReward(_product.getProductionId(), amount, 0));
|
||||||
|
player.addItem("LCoinShop", _product.getProductionId(), amount, player, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update account variables.
|
// Update account variables.
|
||||||
|
@ -232,10 +232,11 @@ public class RequestPurchaseLimitShopItemBuy implements IClientIncomingPacket
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else if (Rnd.get(100) < _product.getChance())
|
||||||
{
|
{
|
||||||
rewards.add(new LimitShopRandomCraftReward(_product.getProductionId(), _amount, 0));
|
final int amount = (int) (_product.getCount() * _amount);
|
||||||
player.addItem("LCoinShop", _product.getProductionId(), _amount, player, true);
|
rewards.add(new LimitShopRandomCraftReward(_product.getProductionId(), amount, 0));
|
||||||
|
player.addItem("LCoinShop", _product.getProductionId(), amount, player, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update account variables.
|
// Update account variables.
|
||||||
|
@ -252,10 +252,11 @@ public class RequestPurchaseLimitShopItemBuy implements IClientIncomingPacket
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else if (Rnd.get(100) < _product.getChance())
|
||||||
{
|
{
|
||||||
rewards.add(new LimitShopRandomCraftReward(_product.getProductionId(), _amount, 0));
|
final int amount = (int) (_product.getCount() * _amount);
|
||||||
player.addItem("LCoinShop", _product.getProductionId(), _amount, player, true);
|
rewards.add(new LimitShopRandomCraftReward(_product.getProductionId(), amount, 0));
|
||||||
|
player.addItem("LCoinShop", _product.getProductionId(), amount, player, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update account variables.
|
// Update account variables.
|
||||||
|
@ -252,10 +252,11 @@ public class RequestPurchaseLimitShopItemBuy implements IClientIncomingPacket
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else if (Rnd.get(100) < _product.getChance())
|
||||||
{
|
{
|
||||||
rewards.add(new LimitShopRandomCraftReward(_product.getProductionId(), _amount, 0));
|
final int amount = (int) (_product.getCount() * _amount);
|
||||||
player.addItem("LCoinShop", _product.getProductionId(), _amount, player, true);
|
rewards.add(new LimitShopRandomCraftReward(_product.getProductionId(), amount, 0));
|
||||||
|
player.addItem("LCoinShop", _product.getProductionId(), amount, player, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update account variables.
|
// Update account variables.
|
||||||
|
Reference in New Issue
Block a user