removed the consumable profaned core
This commit is contained in:
1 parent
e1cac76818
commit
7e89986ea6
5 files changed
+6
-69
No files matched your search
@@ -1,52 +0,0 @@
|
||||
using CalamityMod.NPCs.Providence;
|
||||
using CalamityMod.World;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.SummonItems
|
||||
{
|
||||
public class ProfanedCore : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Profaned Core");
|
||||
Tooltip.SetDefault("The core of the unholy flame\n" +
|
||||
"Summons Providence\n" +
|
||||
"Should be used during daytime");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 20;
|
||||
item.height = 20;
|
||||
item.maxStack = 20;
|
||||
item.useAnimation = 45;
|
||||
item.useTime = 45;
|
||||
item.useStyle = ItemUseStyleID.HoldingUp;
|
||||
item.consumable = true;
|
||||
item.rare = 10;
|
||||
item.Calamity().customRarity = CalamityRarity.Turquoise;
|
||||
}
|
||||
|
||||
public override bool CanUseItem(Player player)
|
||||
{
|
||||
return !NPC.AnyNPCs(ModContent.NPCType<Providence>()) && (player.ZoneHoly || player.ZoneUnderworldHeight) && CalamityWorld.downedBossAny;
|
||||
}
|
||||
|
||||
public override bool UseItem(Player player)
|
||||
{
|
||||
Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/ProvidenceSpawn"), (int)player.position.X, (int)player.position.Y);
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient)
|
||||
{
|
||||
int npc = NPC.NewNPC((int)(player.position.X + Main.rand.Next(-500, 501)), (int)(player.position.Y - 250f), ModContent.NPCType<Providence>(), 1);
|
||||
Main.npc[npc].timeLeft *= 20;
|
||||
CalamityUtils.BossAwakenMessage(npc);
|
||||
}
|
||||
else
|
||||
NetMessage.SendData(MessageID.SpawnBoss, -1, -1, null, player.whoAmI, ModContent.NPCType<Providence>());
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 524 B |
@@ -1,4 +1,3 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.NPCs.Providence;
|
||||
using CalamityMod.World;
|
||||
using Terraria;
|
||||
@@ -49,15 +48,5 @@ namespace CalamityMod.Items.SummonItems
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<ProfanedCore>());
|
||||
recipe.AddIngredient(ModContent.ItemType<UnholyEssence>(), 50);
|
||||
recipe.AddTile(TileID.LunarCraftingStation);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -415,7 +415,7 @@ namespace CalamityMod
|
||||
BossDifficulty.TryGetValue("ProfanedGuardians", out float order);
|
||||
int type = NPCType<ProfanedGuardianBoss>();
|
||||
int summon = ItemType<ProfanedShard>();
|
||||
List<int> loot = new List<int>() { ItemType<RelicOfResilience>(), ItemType<RelicOfConvergence>(), ItemType<RelicOfDeliverance>(), ItemType<ProfanedCore>(), ItemID.GreaterHealingPotion };
|
||||
List<int> loot = new List<int>() { ItemType<RelicOfResilience>(), ItemType<RelicOfConvergence>(), ItemType<RelicOfDeliverance>(), ItemType<ProfanedCoreUnlimited>(), ItemID.GreaterHealingPotion };
|
||||
List<int> collection = new List<int>() { ItemType<ProfanedGuardianTrophy>(), ItemType<ProfanedGuardianMask>(), ItemType<KnowledgeProfanedGuardians>() };
|
||||
string instructions = $"Use a [i:{summon}] in the Hallow or Underworld Biomes";
|
||||
string despawn = CalamityUtils.ColorMessage("The guardians must protect their goddess at all costs.", new Color(0xFF, 0xA5, 0x00));
|
||||
@@ -438,14 +438,14 @@ namespace CalamityMod
|
||||
// Providence
|
||||
{
|
||||
BossDifficulty.TryGetValue("Providence", out float order);
|
||||
List<int> bosses = new List<int>() { NPCType<Providence>(), NPCType<ProvSpawnOffense>(), NPCType<ProvSpawnDefense>(), NPCType<ProvSpawnHealer>() };
|
||||
List<int> summons = new List<int>() { ItemType<ProfanedCore>(), ItemType<ProfanedCoreUnlimited>() };
|
||||
int type = NPCType<Providence>();
|
||||
int summon = ItemType<ProfanedCoreUnlimited>();
|
||||
List<int> loot = new List<int>() { ItemType<ProvidenceBag>(), ItemType<UnholyEssence>(), ItemType<DivineGeode>(), ItemType<HolyCollider>(), ItemType<SolarFlare>(), ItemType<TelluricGlare>(), ItemType<BlissfulBombardier>(), ItemType<PurgeGuzzler>(), ItemType<MoltenAmputator>(), ItemType<DazzlingStabberStaff>(), ItemType<PristineFury>(), ItemType<ElysianWings>(), ItemType<ElysianAegis>(), ItemType<SamuraiBadge>(), ItemType<BlazingCore>(), ItemType<RuneofCos>(), ItemID.SuperHealingPotion };
|
||||
List<int> collection = new List<int>() { ItemType<ProvidenceTrophy>(), ItemType<ProvidenceMask>(), ItemType<KnowledgeProvidence>() };
|
||||
string instructions = $"Use either [i:{ItemType<ProfanedCore>()}] or [i:{ItemType<ProfanedCoreUnlimited>()}] in the Hallow or Underworld Biomes";
|
||||
string instructions = $"Use [i:{summon}] in the Hallow or Underworld Biomes";
|
||||
string despawn = CalamityUtils.ColorMessage("The Profaned Goddess vanishes in a burning blaze.", new Color(0xFF, 0xA5, 0x00));
|
||||
string bossLogTex = "CalamityMod/NPCs/Providence/Providence_BossChecklist";
|
||||
AddBoss(bossChecklist, calamity, "Providence", order, bosses, DownedProvidence, summons, loot, collection, instructions, despawn, bossLogTex);
|
||||
AddBoss(bossChecklist, calamity, "Providence", order, type, DownedProvidence, summon, loot, collection, instructions, despawn, bossLogTex);
|
||||
}
|
||||
|
||||
// Ceaseless Void
|
||||
|
||||
@@ -432,7 +432,7 @@ namespace CalamityMod.NPCs.ProfanedGuardians
|
||||
DropHelper.DropItemChance(npc, ModContent.ItemType<ProfanedGuardianMask>(), 7);
|
||||
DropHelper.DropItemChance(npc, ModContent.ItemType<ProfanedGuardianTrophy>(), 10);
|
||||
DropHelper.DropItemChance(npc, ModContent.ItemType<RelicOfDeliverance>(), 4);
|
||||
DropHelper.DropItem(npc, ModContent.ItemType<ProfanedCore>());
|
||||
DropHelper.DropItem(npc, ModContent.ItemType<ProfanedCoreUnlimited>());
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<KnowledgeProfanedGuardians>(), true, !CalamityWorld.downedGuardians);
|
||||
DropHelper.DropResidentEvilAmmo(npc, CalamityWorld.downedGuardians, 5, 2, 1);
|
||||
|
||||
|
||||
Reference in new issue
Block a user