working arcane missle

This commit is contained in:
2022-12-14 23:45:26 +01:00
parent 4a0f37f652
commit eb1bf9014d
4 changed files with 48 additions and 9 deletions
+11 -3
View File
@@ -4,6 +4,7 @@ using Terraria.GameContent.ItemDropRules;
using Terraria.ID;
using Terraria.ModLoader;
using YHTMod.Items;
using YHTMod.Items.ArcaneMissle;
namespace YHTMod.Changes;
@@ -14,11 +15,18 @@ public class NpcLoot : GlobalNPC
int id = npc.type;
if (NPCID.Sets.CountsAsCritter[id]) {
npcLoot.Add(ItemDropRule.Common(ModContent.ItemType<MithrilPebbleOfPigSmiting>(), 400, 1, 1));
npcLoot.Add(ItemDropRule.Common(ModContent.ItemType<MithrilPebbleOfPigSmiting>(), 400));
}
if (NPCID.Plantera == id) {
npcLoot.Add(ItemDropRule.Common(ItemID.ChlorophyteOre, 1, 60, 80));
switch (id) {
case NPCID.Plantera:
npcLoot.Add(ItemDropRule.Common(ItemID.ChlorophyteOre, 1, 60, 80));
break;
case NPCID.Tim:
npcLoot.Add(ItemDropRule.Common(ModContent.ItemType<ArcaneMissle>()));
break;
}
}
}