Disable potion drops when player has one in their inventory already
This commit is contained in:
parent
a489b22d68
commit
ba3cd35ae6
@ -875,7 +875,7 @@ namespace DiIiS_NA.GameServer.GSSystem.MapSystem
|
||||
}
|
||||
public void SpawnRandomPotion(Actor source, Player player)
|
||||
{
|
||||
if (player != null && !player.Inventory.HaveEnough(DiIiS_NA.Core.Helpers.Hash.StringHashHelper.HashItemName("HealthPotionBottomless"), 100))
|
||||
if (player != null && !player.Inventory.HaveEnough(DiIiS_NA.Core.Helpers.Hash.StringHashHelper.HashItemName("HealthPotionBottomless"), 1))
|
||||
{
|
||||
var item = ItemGenerator.GenerateRandomPotion(player);
|
||||
if (item == null) return;
|
||||
|
||||
Loading…
Reference in New Issue
user.block.title