mirror of
https://github.com/YouHaveTrouble/YHTMod.git
synced 2026-05-11 21:56:54 +00:00
update to newest tmodloader version
This commit is contained in:
+11
-11
@@ -1,32 +1,32 @@
|
||||
|
||||
using Terraria;
|
||||
using Terraria.GameContent.ItemDropRules;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using YHTMod.Items;
|
||||
using YHTMod.Items.ArcaneMissle;
|
||||
using YHTMod.Items.ArcaneMissile;
|
||||
|
||||
|
||||
namespace YHTMod.Changes;
|
||||
|
||||
public class NpcLoot : GlobalNPC
|
||||
{
|
||||
public override void ModifyNPCLoot(NPC npc, NPCLoot npcLoot) {
|
||||
int id = npc.type;
|
||||
|
||||
if (NPCID.Sets.CountsAsCritter[id]) {
|
||||
public override void ModifyNPCLoot(NPC npc, NPCLoot npcLoot)
|
||||
{
|
||||
var id = npc.type;
|
||||
|
||||
if (NPCID.Sets.CountsAsCritter[id])
|
||||
{
|
||||
npcLoot.Add(ItemDropRule.Common(ModContent.ItemType<MithrilPebbleOfPigSmiting>(), 400));
|
||||
}
|
||||
|
||||
switch (id) {
|
||||
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>()));
|
||||
npcLoot.Add(ItemDropRule.Common(ModContent.ItemType<ArcaneMissile>()));
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user