mirror of
https://github.com/YouHaveTrouble/YHTMod.git
synced 2026-05-12 05:56:56 +00:00
planera drops chlorophyte ore
This commit is contained in:
@@ -12,8 +12,13 @@ public class NpcLoot : GlobalNPC
|
|||||||
{
|
{
|
||||||
public override void ModifyNPCLoot(NPC npc, NPCLoot npcLoot) {
|
public override void ModifyNPCLoot(NPC npc, NPCLoot npcLoot) {
|
||||||
int id = npc.type;
|
int id = npc.type;
|
||||||
|
|
||||||
if (NPCID.Sets.CountsAsCritter[id]) {
|
if (NPCID.Sets.CountsAsCritter[id]) {
|
||||||
npcLoot.Add(ItemDropRule.Common(ModContent.ItemType<MithrilPebbleOfPigSmiting>(), 400, 1, 1));
|
npcLoot.Add(ItemDropRule.Common(ModContent.ItemType<MithrilPebbleOfPigSmiting>(), 400, 1, 1));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (NPCID.Plantera == id) {
|
||||||
|
npcLoot.Add(ItemDropRule.Common(ItemID.ChlorophyteOre, 1, 60, 80));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user