Skip to content

Commit

Permalink
修复对查背包的支持
Browse files Browse the repository at this point in the history
  • Loading branch information
ACaiCat committed Nov 24, 2024
1 parent c754ba1 commit 961f424
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 60 deletions.
48 changes: 0 additions & 48 deletions CaiBotMod/Common/Item.cs

This file was deleted.

16 changes: 4 additions & 12 deletions CaiBotMod/Common/MessageHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,17 +76,9 @@ private static string GetItemDesc(Item item, bool isFlag = false)
if (item.netID == 0)
{
return "";
}
}
return GetItemDesc(item.netID, item.Name, item.stack, item.prefix, isFlag);

if (item.ModItem == null)
{
return GetItemDesc(item.netID, item.Name, item.stack, item.prefix, isFlag);
}
else
{
var name = item.ModItem.LocalizationCategory;
return GetItemDesc(item.netID, name, item.stack, item.prefix, isFlag);
}
}


Expand Down Expand Up @@ -755,8 +747,8 @@ public static async Task HandleMessageAsync(string receivedData)
{ "type", "lookbag_text" },
{ "name", name },
{ "exist", 1 },
// { "inventory", string.Join("\n", msgs) },
{ "inventory", string.Join("暂时无法使用") },
{ "inventory", string.Join("\n", msgs) },
//{ "inventory", string.Join("暂时无法使用") },
{ "group", (long) jsonObject["group"]! }
};
//Console.WriteLine(string.Join("\n", msgs));
Expand Down
Binary file removed CaiBotMod/Common/法律鱼.png
Binary file not shown.

0 comments on commit 961f424

Please sign in to comment.