Skip to content

Commit

Permalink
V1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
SoaringGecko committed Dec 1, 2020
1 parent 5e0fe40 commit 54de422
Show file tree
Hide file tree
Showing 76 changed files with 13,561 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .vs/VSWorkspaceState.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"ExpandedNodes": [
""
],
"PreviewInSolutionExplorer": false
}
Binary file not shown.
Binary file added .vs/calamityVanillaItemRecipeChanges/v16/.suo
Binary file not shown.
Binary file added .vs/slnx.sqlite
Binary file not shown.
152 changes: 152 additions & 0 deletions GlobalNPC.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,152 @@
using calamityVanillaItemRecipeChanges.Items;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;

namespace calamityVanillaItemRecipeChanges
{
class MyGlobalNPC : GlobalNPC
{
public override void NPCLoot(NPC npc)
{
if (npc.type == NPCID.Vulture)
{
if (Main.rand.NextFloat() < .50f) {
Item.NewItem(npc.getRect(), mod.ItemType("DesertFeather"));
}
}

if (npc.type == NPCID.BloodZombie)
{
if (Main.rand.NextFloat() < .50f) {
Item.NewItem(npc.getRect(), mod.ItemType("BloodOrb"));
}
}

if (npc.type == NPCID.Drippler)
{
if (Main.rand.NextFloat() < .50f) {
Item.NewItem(npc.getRect(), mod.ItemType("BloodOrb"));
}
}

if (npc.type == NPCID.TheBride)
{
if (Main.rand.NextFloat() < .50f) {
Item.NewItem(npc.getRect(), mod.ItemType("BloodOrb"));
}
}

if (npc.type == NPCID.TheGroom)
{
if (Main.rand.NextFloat() < .50f)
{
Item.NewItem(npc.getRect(), mod.ItemType("BloodOrb"));
}
}

if (npc.type == NPCID.Clown)
{
if (Main.rand.NextFloat() < .50f)
{
Item.NewItem(npc.getRect(), mod.ItemType("BloodOrb"));
}
}

if (npc.type == NPCID.Arapaima)
{
if (Main.rand.NextFloat() < .25f)
{
Item.NewItem(npc.getRect(), mod.ItemType("MurkyPaste"));
}
}

if (npc.type == NPCID.SpikedJungleSlime)
{
if (Main.rand.NextFloat() < .25f)
{
Item.NewItem(npc.getRect(), mod.ItemType("MurkyPaste"));
}
}

if (npc.type == NPCID.Derpling)
{
if (Main.rand.NextFloat() < .25f)
{
Item.NewItem(npc.getRect(), mod.ItemType("BeetleJuice"));
}
}

if (npc.type == NPCID.WanderingEye)
{
if (Main.rand.NextFloat() < .50f)
{
Item.NewItem(npc.getRect(), mod.ItemType("BlightedLens"));
}
}

if (npc.type == NPCID.Skeleton)
{
if (Main.rand.NextFloat() < .25f)
{
Item.NewItem(npc.getRect(), mod.ItemType("AncientBoneDust"));
}
}

if (npc.type == NPCID.GreekSkeleton)
{
if (Main.rand.NextFloat() < .25f)
{
Item.NewItem(npc.getRect(), mod.ItemType("AncientBoneDust"));
}
}

if (npc.type == NPCID.ArmoredSkeleton)
{
if (Main.rand.NextFloat() < .25f)
{
Item.NewItem(npc.getRect(), mod.ItemType("AncientBoneDust"));
}
}

if (npc.type == NPCID.SkeletonArcher)
{
if (Main.rand.NextFloat() < .25f)
{
Item.NewItem(npc.getRect(), mod.ItemType("AncientBoneDust"));
}
}

if (npc.type == NPCID.IceTortoise)
{
if (Main.rand.NextFloat() < .50f)
{
Item.NewItem(npc.getRect(), mod.ItemType("EssenceOfEleum"));
}
}

if (npc.type == NPCID.IcyMerman)
{
if (Main.rand.NextFloat() < .50f)
{
Item.NewItem(npc.getRect(), mod.ItemType("EssenceOfEleum"));
}
}

if (npc.type == NPCID.IceElemental)
{
if (Main.rand.NextFloat() < .50f)
{
Item.NewItem(npc.getRect(), mod.ItemType("EssenceOfEleum"));
}
}

if (npc.type == NPCID.IceGolem)
{
Item.NewItem(npc.getRect(), mod.ItemType("EssenceOfEleum"), 2);
}
// Addtional if statements here if you would like to add drops to other vanilla npc.
}
}
}
18 changes: 18 additions & 0 deletions Items/AncientBoneDust.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
using Terraria.ID;
using Terraria.ModLoader;

namespace calamityVanillaItemRecipeChanges.Items
{
class AncientBoneDust : ModItem
{
public override void SetDefaults()
{
item.maxStack = 999;
item.consumable = false;
item.value = 100;
item.rare = 1;
}


}
}
Binary file added Items/AncientBoneDust.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions Items/BeetleJuice.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
using Terraria.ID;
using Terraria.ModLoader;

namespace calamityVanillaItemRecipeChanges.Items
{
class BeetleJuice : ModItem
{
public override void SetDefaults()
{
item.maxStack = 999;
item.consumable = false;
item.value = 1600;
item.rare = 5;
}


}
}
Binary file added Items/BeetleJuice.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions Items/BlightedLens.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
using Terraria.ID;
using Terraria.ModLoader;

namespace calamityVanillaItemRecipeChanges.Items
{
class BlightedLens : ModItem
{
public override void SetDefaults()
{
item.maxStack = 999;
item.consumable = false;
item.value = 5600;
item.rare = 5;
}


}
}
Binary file added Items/BlightedLens.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions Items/BloodOrb.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
using Terraria.ID;
using Terraria.ModLoader;

namespace calamityVanillaItemRecipeChanges.Items
{
class BloodOrb : ModItem
{
public override void SetDefaults()
{
item.maxStack = 999;
item.consumable = false;
item.value = 120;
item.rare = 1;
}


}
}
Binary file added Items/BloodOrb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions Items/DesertFeather.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
using Terraria.ID;
using Terraria.ModLoader;

namespace calamityVanillaItemRecipeChanges.Items
{
class DesertFeather : ModItem
{
public override void SetDefaults()
{
item.maxStack = 999;
item.consumable = false;
item.value = 20;
item.rare = 1;
}


}
}
Binary file added Items/DesertFeather.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions Items/EssenceOfEleum.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
using Terraria.ID;
using Terraria.ModLoader;

namespace calamityVanillaItemRecipeChanges.Items
{
class EssenceOfEleum : ModItem
{
public override void SetDefaults()
{
item.maxStack = 999;
item.consumable = false;
item.value = 4000;
item.rare = 5;
}


}
}
Binary file added Items/EssenceOfEleum.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions Items/MurkyPaste.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
using Terraria.ID;
using Terraria.ModLoader;

namespace calamityVanillaItemRecipeChanges.Items
{
class MurkyPaste : ModItem
{
public override void SetDefaults()
{
item.maxStack = 999;
item.consumable = false;
item.value = 200;
item.rare = 1;
}


}
}
Binary file added Items/MurkyPaste.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
31 changes: 31 additions & 0 deletions Items/Placeable/AlchemicalMaterialManipulator.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;

namespace calamityVanillaItemRecipeChanges.Items.Placeable
{
public class AlchemicalMaterialManipulator : ModItem
{
public override void SetStaticDefaults()
{
Tooltip.SetDefault("An Ancient Manipulator with the power to change water into potions.");
}

public override void SetDefaults()
{
item.width = 28;
item.height = 14;
item.maxStack = 99;
item.useTurn = true;
item.autoReuse = true;
item.useAnimation = 15;
item.useTime = 10;
item.useStyle = ItemUseStyleID.SwingThrow;
item.consumable = true;
item.value = 150;
item.rare = 10;
item.createTile = ModContent.TileType<Tiles.AlchemicalMaterialManipulator>();
}

}
}
Binary file added Items/Placeable/AlchemicalMaterialManipulator.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 54de422

Please sign in to comment.