bugfix/87-client-dc-on-char-deletion #90
1 changed files with 12 additions and 2 deletions
|
@ -71,8 +71,18 @@ public class ItemObjectPoolService : IHostedService
|
|||
{
|
||||
ItemId = itemId,
|
||||
Count = count,
|
||||
Slot = 0,
|
||||
InventoryTab = InventoryTab.WornEquipment,
|
||||
Slot = (byte)item.SlotNo1,
|
||||
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,
|
||||
Rarity = 0,
|
||||
AddOption = 0,
|
||||
|
|
Loading…
Add table
Reference in a new issue