This commit is contained in:
termigator1359 committed 2019-10-20 14:28:03 -04:00
1 parent 5b4300a49a
commit 63e48fd24a
7 files changed
+21 -4

No files matched your search

+1 -1
View File
@@ -2401,7 +2401,7 @@ namespace CalamityMod.Items
#region Goblin Money Theft (PostReforge)
public override void PostReforge(Item item)
{
if (NPC.AnyNPCs(ModContent.NPCType<Bandit>()))
if (NPC.AnyNPCs(ModContent.NPCType<THIEF>()))
{
int value = item.value;
ItemLoader.ReforgePrice(item, ref value, ref Main.LocalPlayer.discount);
+1 -1
View File
@@ -57,7 +57,7 @@ namespace CalamityMod
if (censusMod != null)
{
censusMod.Call("TownNPCCondition", ModContent.NPCType<SEAHOE>(), "Defeat a Giant Clam");
censusMod.Call("TownNPCCondition", ModContent.NPCType<Bandit>(), "Have a [i:" + ItemID.PlatinumCoin + "] in your inventory after defeating Skeletron");
censusMod.Call("TownNPCCondition", ModContent.NPCType<THIEF>(), "Have a [i:" + ItemID.PlatinumCoin + "] in your inventory after defeating Skeletron");
censusMod.Call("TownNPCCondition", ModContent.NPCType<FAP>(), "Have [i:" + ModContent.ItemType<FabsolsVodka>() + "] in your inventory in Hardmode");
censusMod.Call("TownNPCCondition", ModContent.NPCType<DILF>(), "Defeat Cryogen");
}
+1 -1
View File
@@ -3190,7 +3190,7 @@ namespace CalamityMod.NPCs
break;
case NPCID.GoblinTinkerer:
int banditIndex = NPC.FindFirstNPC(ModContent.NPCType<Bandit>());
int banditIndex = NPC.FindFirstNPC(ModContent.NPCType<THIEF>());
if (Main.rand.NextBool(10) && banditIndex != -1 && Main.LocalPlayer.Calamity().reforges >= 10)
{
var thief = Main.npc[banditIndex];
@@ -10,7 +10,7 @@ using CalamityMod.Projectiles.Rogue;
namespace CalamityMod.NPCs
{
[AutoloadHead]
public class Bandit : ModNPC
public class THIEF : ModNPC
{
public static List<string> PossibleNames = new List<string>()
{
@@ -273,6 +273,23 @@ namespace CalamityMod.NPCs
}
}
public override void HitEffect(int hitDirection, double damage)
{
if (npc.life <= 0)
{
Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/Bandit/Bandit"), 1f);
Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/Bandit/Bandit2"), 1f);
Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/Bandit/Bandit3"), 1f);
Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/Bandit/Bandit4"), 1f);
}
}
// Make this Town NPC teleport to the King and/or Queen statue when triggered.
public override bool CanGoToStatue(bool toKingStatue) //I don't think you can differentiate male vs female with this.
{
return true;
}
public override void TownNPCAttackStrength(ref int damage, ref float knockback)
{
damage = 50;
File renamed without changes.

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 3.6 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 386 B

After

Width:  |  Height:  |  Size: 386 B