mirror of
https://github.com/YouHaveTrouble/YHTMod.git
synced 2026-05-11 21:56:54 +00:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 4495fd9cc3 | |||
| eb73f74f1d | |||
| 25a76fd921 |
@@ -12,8 +12,13 @@ public class NpcLoot : GlobalNPC
|
||||
{
|
||||
public override void ModifyNPCLoot(NPC npc, NPCLoot npcLoot) {
|
||||
int id = npc.type;
|
||||
|
||||
if (NPCID.Sets.CountsAsCritter[id]) {
|
||||
npcLoot.Add(ItemDropRule.Common(ModContent.ItemType<MithrilPebbleOfPigSmiting>(), 400, 1, 1));
|
||||
}
|
||||
|
||||
if (NPCID.Plantera == id) {
|
||||
npcLoot.Add(ItemDropRule.Common(ItemID.ChlorophyteOre, 1, 60, 80));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.GameContent.Creative;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using YHTMod.Buffs;
|
||||
@@ -15,6 +16,7 @@ public class ToclafaneStaff : ModItem {
|
||||
Tooltip.SetDefault("Summons a toclafane to remove population for you");
|
||||
ItemID.Sets.GamepadWholeScreenUseRange[Item.type] = true; // This lets the player target anywhere on the whole screen while using a controller.
|
||||
ItemID.Sets.LockOnIgnoresCollision[Item.type] = true;
|
||||
CreativeItemSacrificesCatalog.Instance.SacrificeCountNeededByItemId[Type] = 1;
|
||||
}
|
||||
|
||||
public override void SetDefaults() {
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
Bunch of random additions ranging from QoL to random references
|
||||
|
||||
Wiki: https://github.com/YouHaveTrouble/YHTMod/wiki
|
||||
Source: https://github.com/YouHaveTrouble/YHTMod
|
||||
|
||||
Code: YouHaveTrouble
|
||||
|
||||
Reference in New Issue
Block a user