bugfix/87-client-dc-on-char-deletion #90

Merged
rainote merged 12 commits from bugfix/87-client-dc-on-char-deletion into master 2023-11-19 14:10:19 +00:00
Showing only changes of commit 600f4a2f50 - Show all commits

View file

@ -71,8 +71,18 @@ public class ItemObjectPoolService : IHostedService
{ {
ItemId = itemId, ItemId = itemId,
Count = count, Count = count,
Slot = 0, Slot = (byte)item.SlotNo1,
InventoryTab = InventoryTab.WornEquipment, InventoryTab =
item.ItemType switch
{
1 => InventoryTab.WornCashEquipment,
2 => isWorn ? InventoryTab.WornEquipment : InventoryTab.Equipment,
3 => InventoryTab.Etc,
4 => isWorn ? InventoryTab.WornCashEquipment : InventoryTab.Cash,
5 => InventoryTab.Warehouse,
0 => InventoryTab.WornEquipment,
_ => 0
},
Level = item.MinimumLevelRequirement, Level = item.MinimumLevelRequirement,
Rarity = 0, Rarity = 0,
AddOption = 0, AddOption = 0,