Considerations for single product at RequestPurchaseLimitShopItemBuy.
This commit is contained in:
parent
014863dd5f
commit
bb19f04e48
@ -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));
|
||||
player.addItem("LCoinShop", _product.getProductionId(), _amount, player, true);
|
||||
final int amount = (int) (_product.getCount() * _amount);
|
||||
rewards.add(new LimitShopRandomCraftReward(_product.getProductionId(), amount, 0));
|
||||
player.addItem("LCoinShop", _product.getProductionId(), amount, player, true);
|
||||
}
|
||||
|
||||
// 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));
|
||||
player.addItem("LCoinShop", _product.getProductionId(), _amount, player, true);
|
||||
final int amount = (int) (_product.getCount() * _amount);
|
||||
rewards.add(new LimitShopRandomCraftReward(_product.getProductionId(), amount, 0));
|
||||
player.addItem("LCoinShop", _product.getProductionId(), amount, player, true);
|
||||
}
|
||||
|
||||
// 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));
|
||||
player.addItem("LCoinShop", _product.getProductionId(), _amount, player, true);
|
||||
final int amount = (int) (_product.getCount() * _amount);
|
||||
rewards.add(new LimitShopRandomCraftReward(_product.getProductionId(), amount, 0));
|
||||
player.addItem("LCoinShop", _product.getProductionId(), amount, player, true);
|
||||
}
|
||||
|
||||
// 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));
|
||||
player.addItem("LCoinShop", _product.getProductionId(), _amount, player, true);
|
||||
final int amount = (int) (_product.getCount() * _amount);
|
||||
rewards.add(new LimitShopRandomCraftReward(_product.getProductionId(), amount, 0));
|
||||
player.addItem("LCoinShop", _product.getProductionId(), amount, player, true);
|
||||
}
|
||||
|
||||
// Update account variables.
|
||||
|
Loading…
Reference in New Issue
Block a user