3 Commits

4 changed files with 15 additions and 0 deletions
+5
View File
@@ -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));
}
} }
} }
+2
View File
@@ -1,6 +1,7 @@
using Microsoft.Xna.Framework; using Microsoft.Xna.Framework;
using Terraria; using Terraria;
using Terraria.DataStructures; using Terraria.DataStructures;
using Terraria.GameContent.Creative;
using Terraria.ID; using Terraria.ID;
using Terraria.ModLoader; using Terraria.ModLoader;
using YHTMod.Buffs; using YHTMod.Buffs;
@@ -15,6 +16,7 @@ public class ToclafaneStaff : ModItem {
Tooltip.SetDefault("Summons a toclafane to remove population for you"); 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.GamepadWholeScreenUseRange[Item.type] = true; // This lets the player target anywhere on the whole screen while using a controller.
ItemID.Sets.LockOnIgnoresCollision[Item.type] = true; ItemID.Sets.LockOnIgnoresCollision[Item.type] = true;
CreativeItemSacrificesCatalog.Instance.SacrificeCountNeededByItemId[Type] = 1;
} }
public override void SetDefaults() { public override void SetDefaults() {
+1
View File
@@ -1,5 +1,6 @@
Bunch of random additions ranging from QoL to random references Bunch of random additions ranging from QoL to random references
Wiki: https://github.com/YouHaveTrouble/YHTMod/wiki
Source: https://github.com/YouHaveTrouble/YHTMod Source: https://github.com/YouHaveTrouble/YHTMod
Code: YouHaveTrouble Code: YouHaveTrouble
+7
View File
@@ -0,0 +1,7 @@
A bunch of random additions ranging from QoL to random references
Mod wiki: https://github.com/YouHaveTrouble/YHTMod/wiki
Code: YouHaveTrouble
Sprites: YouHaveTrouble, Patrxon