added energy core & wulfrum drone banner now gives protection against the martian proj it fires
This commit is contained in:
1 parent
bb3e588149
commit
f6aca60e8f
15 files changed
+37
-3
No files matched your search
@@ -6907,7 +6907,7 @@ namespace CalamityMod.CalPlayer
|
||||
break;
|
||||
|
||||
case ProjectileID.MartianTurretBolt:
|
||||
if ((bannerNPCType == NPCID.MartianTurret && Main.invasionType == InvasionID.MartianMadness) || (bannerNPCType == ModContent.NPCType<ShockstormShuttle>() && Main.invasionType != InvasionID.MartianMadness))
|
||||
if ((bannerNPCType == NPCID.MartianTurret && Main.invasionType == InvasionID.MartianMadness) || ((bannerNPCType == ModContent.NPCType<ShockstormShuttle>() || bannerNPCType == ModContent.NPCType<WulfrumDrone>()) && Main.invasionType != InvasionID.MartianMadness))
|
||||
{
|
||||
reduceDamage = true;
|
||||
}
|
||||
|
||||
@@ -32,6 +32,7 @@ namespace CalamityMod.Items.Armor
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<WulfrumShard>(), 12);
|
||||
recipe.AddIngredient(ModContent.ItemType<EnergyCore>());
|
||||
recipe.AddTile(TileID.Anvils);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -48,6 +48,7 @@ namespace CalamityMod.Items.Armor
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<WulfrumShard>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<EnergyCore>());
|
||||
recipe.AddTile(TileID.Anvils);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -48,6 +48,7 @@ namespace CalamityMod.Items.Armor
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<WulfrumShard>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<EnergyCore>());
|
||||
recipe.AddTile(TileID.Anvils);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -49,6 +49,7 @@ namespace CalamityMod.Items.Armor
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<WulfrumShard>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<EnergyCore>());
|
||||
recipe.AddTile(TileID.Anvils);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -48,6 +48,7 @@ namespace CalamityMod.Items.Armor
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<WulfrumShard>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<EnergyCore>());
|
||||
recipe.AddTile(TileID.Anvils);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -32,6 +32,7 @@ namespace CalamityMod.Items.Armor
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<WulfrumShard>(), 8);
|
||||
recipe.AddIngredient(ModContent.ItemType<EnergyCore>());
|
||||
recipe.AddTile(TileID.Anvils);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -56,6 +56,7 @@ namespace CalamityMod.Items.Armor
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<WulfrumShard>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<EnergyCore>());
|
||||
recipe.AddTile(TileID.Anvils);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Materials
|
||||
{
|
||||
public class EnergyCore : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Energy Core");
|
||||
Tooltip.SetDefault("It pulses with energy");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = item.height = 22;
|
||||
item.maxStack = 999;
|
||||
item.value = Item.sellPrice(copper: 80);
|
||||
item.rare = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 595 B |
@@ -161,8 +161,9 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
public override void NPCLoot()
|
||||
{
|
||||
DropHelper.DropItem(npc, ModContent.ItemType<WulfrumShard>(), 1, 3);
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<WulfrumShard>(), Main.expertMode, 1, 1);
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<WulfrumShard>(), Main.expertMode);
|
||||
DropHelper.DropItemChance(npc, ModContent.ItemType<WulfrumBattery>(), 10);
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<EnergyCore>(), Supercharged);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -171,6 +171,7 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
public override void NPCLoot()
|
||||
{
|
||||
DropHelper.DropItem(npc, ModContent.ItemType<WulfrumShard>(), 1, 2);
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<EnergyCore>(), Supercharged);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -249,6 +249,7 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
public override void NPCLoot()
|
||||
{
|
||||
DropHelper.DropItem(npc, ModContent.ItemType<WulfrumShard>(), 2, 3);
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<EnergyCore>(), Supercharged);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -154,6 +154,7 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
public override void NPCLoot()
|
||||
{
|
||||
DropHelper.DropItem(npc, ModContent.ItemType<WulfrumShard>(), 2, 3);
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<EnergyCore>(), Supercharged);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -136,7 +136,8 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
|
||||
public override void NPCLoot()
|
||||
{
|
||||
DropHelper.DropItem(npc, ModContent.ItemType<WulfrumShard>(), 1, 1);
|
||||
DropHelper.DropItem(npc, ModContent.ItemType<WulfrumShard>());
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<EnergyCore>(), Supercharged);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user