slayer of the ancients, a god rises to the top

This commit is contained in:
termigator1359 committed 2020-02-26 16:58:08 -05:00
1 parent fbb23e2ed6
commit 5938795f54
14 files changed
+94

No files matched your search

@@ -0,0 +1,22 @@
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Items.Armor.Vanity
{
[AutoloadEquip(EquipType.Body)]
public class AncientGodSlayerChestplate : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Ancient God Slayer Chestplate");
}
public override void SetDefaults()
{
item.width = 28;
item.height = 20;
item.Calamity().customRarity = (CalamityRarity)14;
item.vanity = true;
item.value = Item.buyPrice(0, 60, 0, 0);
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 471 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

@@ -0,0 +1,32 @@
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Items.Armor.Vanity
{
[AutoloadEquip(EquipType.Head)]
public class AncientGodSlayerHelm : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Ancient God Slayer Helm");
}
public override void SetDefaults()
{
item.width = 28;
item.height = 20;
item.Calamity().customRarity = (CalamityRarity)14;
item.value = Item.buyPrice(0, 75, 0, 0);
item.vanity = true;
}
public override bool IsArmorSet(Item head, Item body, Item legs)
{
return body.type == ModContent.ItemType<AncientGodSlayerChestplate>() && legs.type == ModContent.ItemType<AncientGodSlayerLeggings>();
}
public override void ArmorSetShadows(Player player)
{
player.armorEffectDrawShadow = true;
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 384 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

@@ -0,0 +1,22 @@
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Items.Armor.Vanity
{
[AutoloadEquip(EquipType.Legs)]
public class AncientGodSlayerLeggings : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Ancient God Slayer Leggings");
}
public override void SetDefaults()
{
item.width = 28;
item.height = 20;
item.Calamity().customRarity = (CalamityRarity)14;
item.value = Item.buyPrice(0, 45, 0, 0);
item.vanity = true;
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 405 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

+6
View File
@@ -102,6 +102,12 @@ namespace CalamityMod.NPCs.CeaselessVoid
// Vanity
DropHelper.DropItemChance(npc, ModContent.ItemType<CeaselessVoidTrophy>(), 10);
DropHelper.DropItemChance(npc, ModContent.ItemType<CeaselessVoidMask>(), 7);
if (Main.rand.NextBool(20))
{
DropHelper.DropItem(npc, ModContent.ItemType<AncientGodSlayerHelm>());
DropHelper.DropItem(npc, ModContent.ItemType<AncientGodSlayerChestplate>());
DropHelper.DropItem(npc, ModContent.ItemType<AncientGodSlayerLeggings>());
}
// Other
bool lastSentinelKilled = !CalamityWorld.downedSentinel1 && CalamityWorld.downedSentinel2 && CalamityWorld.downedSentinel3;
+6
View File
@@ -757,6 +757,12 @@ namespace CalamityMod.NPCs.Signus
// Vanity
DropHelper.DropItemChance(npc, ModContent.ItemType<SignusTrophy>(), 10);
DropHelper.DropItemChance(npc, ModContent.ItemType<SignusMask>(), 7);
if (Main.rand.NextBool(20))
{
DropHelper.DropItem(npc, ModContent.ItemType<AncientGodSlayerHelm>());
DropHelper.DropItem(npc, ModContent.ItemType<AncientGodSlayerChestplate>());
DropHelper.DropItem(npc, ModContent.ItemType<AncientGodSlayerLeggings>());
}
// Other
bool lastSentinelKilled = CalamityWorld.downedSentinel1 && CalamityWorld.downedSentinel2 && !CalamityWorld.downedSentinel3;
+6
View File
@@ -624,6 +624,12 @@ namespace CalamityMod.NPCs.StormWeaver
// Vanity
DropHelper.DropItemChance(npc, ModContent.ItemType<WeaverTrophy>(), 10);
DropHelper.DropItemChance(npc, ModContent.ItemType<StormWeaverMask>(), 7);
if (Main.rand.NextBool(20))
{
DropHelper.DropItem(npc, ModContent.ItemType<AncientGodSlayerHelm>());
DropHelper.DropItem(npc, ModContent.ItemType<AncientGodSlayerChestplate>());
DropHelper.DropItem(npc, ModContent.ItemType<AncientGodSlayerLeggings>());
}
// Other
bool lastSentinelKilled = CalamityWorld.downedSentinel1 && !CalamityWorld.downedSentinel2 && CalamityWorld.downedSentinel3;