Implemented new Astral Infection lore

This commit is contained in:
Ozzatron committed 2023-01-23 11:58:02 -05:00
1 parent 9ed9bdde62
commit 2b659cc401
5 files changed
+45 -44

No files matched your search

@@ -1,41 +0,0 @@
using CalamityMod.Items.Materials;
using CalamityMod.Items.Placeables.Furniture.Trophies;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.LoreItems
{
public class KnowledgeAstralInfection : LoreItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Astral Infection");
Tooltip.SetDefault("This twisted dreamscape, surrounded by unnatural pillars under a dark and hazy sky.\n" +
"Natural law has been upturned. What will you make of it?");
SacrificeTotal = 1;
ItemID.Sets.ItemNoGravity[Item.type] = true;
}
public override void SetDefaults()
{
Item.width = 20;
Item.height = 20;
Item.rare = ItemRarityID.Cyan;
Item.consumable = false;
}
public override bool CanUseItem(Player player)
{
return false;
}
public override void AddRecipes()
{
CreateRecipe().
AddIngredient<AstrumDeusTrophy>().
AddTile(TileID.Bookcases).
Register();
}
}
}
+42
View File
@@ -0,0 +1,42 @@
using CalamityMod.Items.Placeables.Furniture.Trophies;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.LoreItems
{
[LegacyName("KnowledgeAstralInfection")]
public class LoreAstralInfection : LoreItem
{
public override string Lore =>
@"This twisted dreamscape is a starborne equivalent of the mundane rot you see in your lands.
I do not claim to understand the process in detail, but even the stars above can die. Left unchecked, their corpses bloat and fester.
Typically, some semblance of order is maintained. It is not unlike the circle of life.
Cosmic beings patrol the fathomless void and pick at the carrion, leaving clean bones.
The infection itself is a disturbance from deep space. It has a mind of its own, and projects its will upon life and land.
Those whose minds can grasp the true form of the universe, are largely immune.
They cannot be starstruck by a supposed higher truth, let alone one preached by a pustule.";
public override void SetStaticDefaults()
{
base.SetStaticDefaults();
DisplayName.SetDefault("Astral Infection");
}
public override void SetDefaults()
{
Item.width = 20;
Item.height = 20;
Item.rare = ItemRarityID.Cyan;
Item.consumable = false;
}
public override void AddRecipes()
{
CreateRecipe().
AddIngredient<AstrumDeusTrophy>().
AddTile(TileID.Bookcases).
Register();
}
}
}
File renamed without changes.

Before

Width:  |  Height:  |  Size: 572 B

After

Width:  |  Height:  |  Size: 572 B

+2 -2
View File
@@ -222,7 +222,7 @@ namespace CalamityMod
ItemRedirect(ModContent.ItemType<SandstormGun>(), "Sandstorm (weapon)");
ItemRedirect(ModContent.ItemType<Thunderstorm>(), "Thunderstorm (weapon)");
// Lore items
ItemRedirect(ModContent.ItemType<KnowledgeAstralInfection>(), "Lore#Lore_Items");
ItemRedirect(ModContent.ItemType<LoreAstralInfection>(), "Lore#Lore_Items");
ItemRedirect(ModContent.ItemType<LoreAbyss>(), "Lore#Lore_Items");
ItemRedirect(ModContent.ItemType<LoreAquaticScourge>(), "Lore#Lore_Items");
@@ -609,7 +609,7 @@ namespace CalamityMod
int summon2 = ItemType<Starcore>();
int altar = ItemType<AstralBeaconItem>();
List<int> summons = new List<int>() { summon1, summon2 };
List<int> collection = new List<int>() { ItemType<AstrumDeusTrophy>(), ItemType<AstrumDeusMask>(), ItemType<LoreAstrumDeus>(), ItemType<KnowledgeAstralInfection>(), ItemType<ChromaticOrb>(), ItemType<ThankYouPainting>() };
List<int> collection = new List<int>() { ItemType<AstrumDeusTrophy>(), ItemType<AstrumDeusMask>(), ItemType<LoreAstrumDeus>(), ItemType<LoreAstralInfection>(), ItemType<ChromaticOrb>(), ItemType<ThankYouPainting>() };
string instructions = $"Use a [i:{summon1}] or [i:{summon2}] as offering at an [i:{altar}]";
string despawn = CalamityUtils.ColorMessage("The infected deity retreats to the heavens.", new Color(0xFF, 0xD7, 0x00));
string bossLogTex = "CalamityMod/NPCs/AstrumDeus/AstrumDeusHead_Head_Boss";
+1 -1
View File
@@ -347,7 +347,7 @@ namespace CalamityMod.NPCs.AstrumDeus
// Lore
bool firstDeusKill(DropAttemptInfo info) => !DownedBossSystem.downedAstrumDeus && !ShouldNotDropThings(info.npc);
npcLoot.AddConditionalPerPlayer(firstDeusKill, ModContent.ItemType<LoreAstrumDeus>(), desc: DropHelper.FirstKillText);
npcLoot.AddConditionalPerPlayer(firstDeusKill, ModContent.ItemType<KnowledgeAstralInfection>(), desc: DropHelper.FirstKillText);
npcLoot.AddConditionalPerPlayer(firstDeusKill, ModContent.ItemType<LoreAstralInfection>(), desc: DropHelper.FirstKillText);
}
public override void OnHitPlayer(Player player, int damage, bool crit)