mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-02 20:26:03 +08:00
feat: Add item type ``FindChest`` (#3)
This commit is contained in:
@@ -127,7 +127,9 @@ public class CommandGiveall : ICommand
|
||||
var materialList = GameData.ItemConfigData.Values;
|
||||
var items = new List<ItemData>();
|
||||
foreach (var material in materialList)
|
||||
if (material.ItemMainType == ItemMainTypeEnum.Material || material.ItemSubType == ItemSubTypeEnum.Food)
|
||||
if (material.ItemMainType == ItemMainTypeEnum.Material ||
|
||||
material.ItemSubType == ItemSubTypeEnum.Food ||
|
||||
material.ItemSubType == ItemSubTypeEnum.FindChest)
|
||||
items.Add(new ItemData
|
||||
{
|
||||
ItemId = material.ID,
|
||||
|
||||
@@ -76,6 +76,7 @@ public class InventoryManager(PlayerInstance player) : BasePlayerManager(player)
|
||||
break;
|
||||
case ItemSubTypeEnum.Food:
|
||||
case ItemSubTypeEnum.Book:
|
||||
case ItemSubTypeEnum.FindChest:
|
||||
itemData = await PutItem(itemId, count);
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user