diff --git a/CaiBotMod/Common/Item.cs b/CaiBotMod/Common/Item.cs deleted file mode 100644 index bb8676a..0000000 --- a/CaiBotMod/Common/Item.cs +++ /dev/null @@ -1,48 +0,0 @@ -using Microsoft.Xna.Framework; -using System.Collections.Generic; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; - -namespace CaiBotMod.Common; - -internal class 法律鱼 : ModItem -{ - public override void SetStaticDefaults() - { - this.Item.ResearchUnlockCount = 666; - ItemID.Sets.CanBePlacedOnWeaponRacks[this.Type] = true; - } - - public override void ModifyTooltips(List tooltips) - { - TooltipLine tooltip = new (this.Mod, "CaiBot扩展", "卧槽爆金币了,感觉这鱼至少能爆50金币!") { OverrideColor = Color.Red }; - tooltips.Add(tooltip); - } - - public override void SetDefaults() - { - this.Item.DefaultToQuestFish(); - this.Item.width = 16; - this.Item.height = 16; - this.Item.rare = ItemRarityID.Master; - this.Item.value = Item.buyPrice(5, 50); - } - - public override bool IsQuestFish() - { - return true; - } - - public override bool IsAnglerQuestAvailable() - { - return true; - } - - public override void AnglerQuestChat(ref string description, ref string catchLocation) - { - description = "我靠我突然感觉到了爆金币的力量,难道这就是传说中的法律鱼?!\n" + - "*其实这是Cai群里一个管理,CaiBot其实一开始是Cai自己用的,后面就莫名其妙公开了,这段奇妙的物品代码也是,算是个彩蛋吧233..."; - catchLocation = "法律是无处不在的..."; - } -} \ No newline at end of file diff --git a/CaiBotMod/Common/MessageHandler.cs b/CaiBotMod/Common/MessageHandler.cs index 57b129a..4c5093f 100644 --- a/CaiBotMod/Common/MessageHandler.cs +++ b/CaiBotMod/Common/MessageHandler.cs @@ -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); - } } @@ -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)); diff --git "a/CaiBotMod/Common/\346\263\225\345\276\213\351\261\274.png" "b/CaiBotMod/Common/\346\263\225\345\276\213\351\261\274.png" deleted file mode 100644 index 383d90a..0000000 Binary files "a/CaiBotMod/Common/\346\263\225\345\276\213\351\261\274.png" and /dev/null differ