Merge branch '1.4' of https://github.com/CalamityTeam/CalamityMod into 1.4
This commit is contained in:
commit
f4ece7fcc8
40 files changed
+265
-62
No files matched your search
+69
-45
@@ -1,6 +1,7 @@
|
||||
using CalamityMod.NPCs.AcidRain;
|
||||
using CalamityMod.NPCs.OldDuke;
|
||||
using CalamityMod.Projectiles.Boss;
|
||||
using CalamityMod.UI;
|
||||
using CalamityMod.World;
|
||||
using Microsoft.Xna.Framework;
|
||||
using System;
|
||||
@@ -33,7 +34,7 @@ namespace CalamityMod.Events
|
||||
}
|
||||
}
|
||||
|
||||
public class AcidRainEvent
|
||||
public class AcidRainEvent : ModSystem
|
||||
{
|
||||
public static int MaxNuclearToadCount = 5; // To prevent the things from spamming. This happens frequently in pre-HM.
|
||||
|
||||
@@ -46,55 +47,17 @@ namespace CalamityMod.Events
|
||||
|
||||
public const float BloodwormSpawnRate = 0.1f;
|
||||
|
||||
// Not a readonly collection so that if anyone else wants to add stuff in here with their own mod, they can.
|
||||
public static Dictionary<int, AcidRainSpawnData> PossibleEnemiesPreHM = new()
|
||||
{
|
||||
{ ModContent.NPCType<NuclearToad>(), new AcidRainSpawnData(1, 0.75f, AcidRainSpawnRequirement.Anywhere) },
|
||||
{ ModContent.NPCType<AcidEel>(), new AcidRainSpawnData(1, 1f, AcidRainSpawnRequirement.Water) },
|
||||
{ ModContent.NPCType<Radiator>(), new AcidRainSpawnData(1, 1f, AcidRainSpawnRequirement.Water) },
|
||||
{ ModContent.NPCType<Skyfin>(), new AcidRainSpawnData(1, 1f, AcidRainSpawnRequirement.Water) },
|
||||
{ ModContent.NPCType<WaterLeech>(), new AcidRainSpawnData(1, 1f, AcidRainSpawnRequirement.Water) }
|
||||
};
|
||||
// Collections are not readonly so that if anyone else wants to add stuff to them with their own mod, they can.
|
||||
public static Dictionary<int, AcidRainSpawnData> PossibleEnemiesPreHM = new();
|
||||
|
||||
// Note: Irradiated Slimes spawn naturally
|
||||
public static Dictionary<int, AcidRainSpawnData> PossibleEnemiesAS = new()
|
||||
{
|
||||
{ ModContent.NPCType<Radiator>(), new AcidRainSpawnData(0, 1f, AcidRainSpawnRequirement.Water) },
|
||||
{ ModContent.NPCType<AcidEel>(), new AcidRainSpawnData(0, 1f, AcidRainSpawnRequirement.Water) },
|
||||
{ ModContent.NPCType<NuclearToad>(), new AcidRainSpawnData(0, 0.75f, AcidRainSpawnRequirement.Anywhere) },
|
||||
{ ModContent.NPCType<FlakCrab>(), new AcidRainSpawnData(1, 1f, AcidRainSpawnRequirement.Water) },
|
||||
{ ModContent.NPCType<Orthocera>(), new AcidRainSpawnData(1, 1f, AcidRainSpawnRequirement.Water) },
|
||||
{ ModContent.NPCType<Skyfin>(), new AcidRainSpawnData(1, 1f, AcidRainSpawnRequirement.Water) },
|
||||
{ ModContent.NPCType<Trilobite>(), new AcidRainSpawnData(1, 1f, AcidRainSpawnRequirement.Water) },
|
||||
{ ModContent.NPCType<WaterLeech>(), new AcidRainSpawnData(1, 1f, AcidRainSpawnRequirement.Water) },
|
||||
{ ModContent.NPCType<SulphurousSkater>(), new AcidRainSpawnData(1, 0.4f, AcidRainSpawnRequirement.Anywhere) }
|
||||
};
|
||||
public static Dictionary<int, AcidRainSpawnData> PossibleEnemiesAS = new();
|
||||
|
||||
public static Dictionary<int, AcidRainSpawnData> PossibleEnemiesPolter = new()
|
||||
{
|
||||
{ ModContent.NPCType<Radiator>(), new AcidRainSpawnData(0, 1f, AcidRainSpawnRequirement.Water) },
|
||||
{ ModContent.NPCType<AcidEel>(), new AcidRainSpawnData(0, 1f, AcidRainSpawnRequirement.Water) },
|
||||
{ ModContent.NPCType<NuclearToad>(), new AcidRainSpawnData(0, 0.75f, AcidRainSpawnRequirement.Anywhere) },
|
||||
{ ModContent.NPCType<FlakCrab>(), new AcidRainSpawnData(1, 1f, AcidRainSpawnRequirement.Water) },
|
||||
{ ModContent.NPCType<Orthocera>(), new AcidRainSpawnData(1, 1f, AcidRainSpawnRequirement.Water) },
|
||||
{ ModContent.NPCType<Skyfin>(), new AcidRainSpawnData(1, 1f, AcidRainSpawnRequirement.Water) },
|
||||
{ ModContent.NPCType<Trilobite>(), new AcidRainSpawnData(1, 1f, AcidRainSpawnRequirement.Water) },
|
||||
{ ModContent.NPCType<WaterLeech>(), new AcidRainSpawnData(1, 1f, AcidRainSpawnRequirement.Water) },
|
||||
{ ModContent.NPCType<SulphurousSkater>(), new AcidRainSpawnData(1, 0.4f, AcidRainSpawnRequirement.Anywhere) },
|
||||
{ ModContent.NPCType<GammaSlime>(), new AcidRainSpawnData(1, 1f, AcidRainSpawnRequirement.Anywhere) }
|
||||
};
|
||||
public static Dictionary<int, AcidRainSpawnData> PossibleEnemiesPolter = new();
|
||||
|
||||
public static Dictionary<int, AcidRainSpawnData> PossibleMinibossesAS = new()
|
||||
{
|
||||
{ ModContent.NPCType<CragmawMire>(), new AcidRainSpawnData(5, 0.08f, AcidRainSpawnRequirement.Water) }
|
||||
};
|
||||
public static Dictionary<int, AcidRainSpawnData> PossibleMinibossesAS = new();
|
||||
|
||||
public static Dictionary<int, AcidRainSpawnData> PossibleMinibossesPolter = new()
|
||||
{
|
||||
{ ModContent.NPCType<CragmawMire>(), new AcidRainSpawnData(4, 0.08f, AcidRainSpawnRequirement.Water) },
|
||||
{ ModContent.NPCType<Mauler>(), new AcidRainSpawnData(4, 0.07f, AcidRainSpawnRequirement.Water) },
|
||||
{ ModContent.NPCType<NuclearTerror>(), new AcidRainSpawnData(8, 0.045f, AcidRainSpawnRequirement.Anywhere) }
|
||||
};
|
||||
public static Dictionary<int, AcidRainSpawnData> PossibleMinibossesPolter = new();
|
||||
|
||||
public static readonly List<int> AllMinibosses = PossibleMinibossesAS.Select(miniboss => miniboss.Key).ToList().Concat(PossibleMinibossesPolter.Select(miniboss => miniboss.Key)).Distinct().ToList();
|
||||
|
||||
@@ -160,6 +123,67 @@ namespace CalamityMod.Events
|
||||
return (int)(Math.Log(playerCount + Math.E - 1) * 110f);
|
||||
}
|
||||
}
|
||||
|
||||
// Populate the enemy caches safely, after the mod's core content has been fully loaded.
|
||||
public override void OnModLoad()
|
||||
{
|
||||
PossibleEnemiesPreHM = new()
|
||||
{
|
||||
{ ModContent.NPCType<NuclearToad>(), new AcidRainSpawnData(1, 0.75f, AcidRainSpawnRequirement.Anywhere) },
|
||||
{ ModContent.NPCType<AcidEel>(), new AcidRainSpawnData(1, 1f, AcidRainSpawnRequirement.Water) },
|
||||
{ ModContent.NPCType<Radiator>(), new AcidRainSpawnData(1, 1f, AcidRainSpawnRequirement.Water) },
|
||||
{ ModContent.NPCType<Skyfin>(), new AcidRainSpawnData(1, 1f, AcidRainSpawnRequirement.Water) },
|
||||
{ ModContent.NPCType<WaterLeech>(), new AcidRainSpawnData(1, 1f, AcidRainSpawnRequirement.Water) }
|
||||
};
|
||||
PossibleEnemiesAS = new()
|
||||
{
|
||||
{ ModContent.NPCType<Radiator>(), new AcidRainSpawnData(0, 1f, AcidRainSpawnRequirement.Water) },
|
||||
{ ModContent.NPCType<AcidEel>(), new AcidRainSpawnData(0, 1f, AcidRainSpawnRequirement.Water) },
|
||||
{ ModContent.NPCType<NuclearToad>(), new AcidRainSpawnData(0, 0.75f, AcidRainSpawnRequirement.Anywhere) },
|
||||
{ ModContent.NPCType<FlakCrab>(), new AcidRainSpawnData(1, 1f, AcidRainSpawnRequirement.Water) },
|
||||
{ ModContent.NPCType<Orthocera>(), new AcidRainSpawnData(1, 1f, AcidRainSpawnRequirement.Water) },
|
||||
{ ModContent.NPCType<Skyfin>(), new AcidRainSpawnData(1, 1f, AcidRainSpawnRequirement.Water) },
|
||||
{ ModContent.NPCType<Trilobite>(), new AcidRainSpawnData(1, 1f, AcidRainSpawnRequirement.Water) },
|
||||
{ ModContent.NPCType<WaterLeech>(), new AcidRainSpawnData(1, 1f, AcidRainSpawnRequirement.Water) },
|
||||
{ ModContent.NPCType<SulphurousSkater>(), new AcidRainSpawnData(1, 0.4f, AcidRainSpawnRequirement.Anywhere) }
|
||||
};
|
||||
PossibleEnemiesPolter = new()
|
||||
{
|
||||
{ ModContent.NPCType<Radiator>(), new AcidRainSpawnData(0, 1f, AcidRainSpawnRequirement.Water) },
|
||||
{ ModContent.NPCType<AcidEel>(), new AcidRainSpawnData(0, 1f, AcidRainSpawnRequirement.Water) },
|
||||
{ ModContent.NPCType<NuclearToad>(), new AcidRainSpawnData(0, 0.75f, AcidRainSpawnRequirement.Anywhere) },
|
||||
{ ModContent.NPCType<FlakCrab>(), new AcidRainSpawnData(1, 1f, AcidRainSpawnRequirement.Water) },
|
||||
{ ModContent.NPCType<Orthocera>(), new AcidRainSpawnData(1, 1f, AcidRainSpawnRequirement.Water) },
|
||||
{ ModContent.NPCType<Skyfin>(), new AcidRainSpawnData(1, 1f, AcidRainSpawnRequirement.Water) },
|
||||
{ ModContent.NPCType<Trilobite>(), new AcidRainSpawnData(1, 1f, AcidRainSpawnRequirement.Water) },
|
||||
{ ModContent.NPCType<WaterLeech>(), new AcidRainSpawnData(1, 1f, AcidRainSpawnRequirement.Water) },
|
||||
{ ModContent.NPCType<SulphurousSkater>(), new AcidRainSpawnData(1, 0.4f, AcidRainSpawnRequirement.Anywhere) },
|
||||
{ ModContent.NPCType<GammaSlime>(), new AcidRainSpawnData(1, 1f, AcidRainSpawnRequirement.Anywhere) }
|
||||
};
|
||||
|
||||
PossibleMinibossesAS = new()
|
||||
{
|
||||
{ ModContent.NPCType<CragmawMire>(), new AcidRainSpawnData(5, 0.08f, AcidRainSpawnRequirement.Water) }
|
||||
};
|
||||
PossibleMinibossesPolter = new()
|
||||
{
|
||||
{ ModContent.NPCType<CragmawMire>(), new AcidRainSpawnData(4, 0.08f, AcidRainSpawnRequirement.Water) },
|
||||
{ ModContent.NPCType<Mauler>(), new AcidRainSpawnData(4, 0.07f, AcidRainSpawnRequirement.Water) },
|
||||
{ ModContent.NPCType<NuclearTerror>(), new AcidRainSpawnData(8, 0.045f, AcidRainSpawnRequirement.Anywhere) }
|
||||
};
|
||||
BossHealthBarManager.MinibossHPBarList.AddRange(AllMinibosses);
|
||||
}
|
||||
|
||||
// Clear enemy cache lists.
|
||||
public override void Unload()
|
||||
{
|
||||
PossibleEnemiesPreHM = new();
|
||||
PossibleEnemiesAS = new();
|
||||
PossibleEnemiesPolter = new();
|
||||
PossibleMinibossesAS = new();
|
||||
PossibleMinibossesPolter = new();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Attempts to start the Acid Rain event. Will fail if there is another invasion or boss rush going on. It will also fail if the EoC, WoF, or AS has not been killed yet.
|
||||
/// </summary>
|
||||
|
||||
@@ -50,7 +50,6 @@ namespace CalamityMod.ILEditing
|
||||
IL.Terraria.Player.QuickHeal += ConditionallyReplaceManaSickness;
|
||||
IL.Terraria.Player.QuickMana += ConditionallyReplaceManaSickness;
|
||||
IL.Terraria.Player.ItemCheck_Inner += ConditionallyReplaceManaSickness;
|
||||
On.Terraria.Main.DrawInterface += DrawGeneralParticles;
|
||||
On.Terraria.Main.SortDrawCacheWorms += DrawFusableParticles;
|
||||
On.Terraria.Main.SetDisplayMode += ResetRenderTargetSizes;
|
||||
IL.Terraria.GameContent.Drawing.TileDrawing.DrawPartialLiquid += DrawCustomLava;
|
||||
@@ -147,7 +146,6 @@ namespace CalamityMod.ILEditing
|
||||
IL.Terraria.Player.QuickHeal -= ConditionallyReplaceManaSickness;
|
||||
IL.Terraria.Player.QuickMana -= ConditionallyReplaceManaSickness;
|
||||
IL.Terraria.Player.ItemCheck_Inner -= ConditionallyReplaceManaSickness;
|
||||
On.Terraria.Main.DrawInterface -= DrawGeneralParticles;
|
||||
On.Terraria.Main.SortDrawCacheWorms -= DrawFusableParticles;
|
||||
On.Terraria.Main.SetDisplayMode -= ResetRenderTargetSizes;
|
||||
IL.Terraria.GameContent.Drawing.TileDrawing.DrawPartialLiquid -= DrawCustomLava;
|
||||
|
||||
@@ -515,8 +515,8 @@ namespace CalamityMod.ILEditing
|
||||
#region Fire Cursor Effect for the Calamity Accessory
|
||||
private static void UseCoolFireCursorEffect(On.Terraria.Main.orig_DrawCursor orig, Vector2 bonus, bool smart)
|
||||
{
|
||||
// Do nothing special if the player has a regular mouse or is on the menu.
|
||||
if (Main.gameMenu || !Main.LocalPlayer.Calamity().blazingCursorVisuals)
|
||||
// Do nothing special if the player has a regular mouse or is on the menu/map.
|
||||
if (Main.gameMenu || Main.mapFullscreen || !Main.LocalPlayer.Calamity().blazingCursorVisuals)
|
||||
{
|
||||
orig(bonus, smart);
|
||||
return;
|
||||
@@ -642,21 +642,15 @@ namespace CalamityMod.ILEditing
|
||||
#endregion Fire Cursor Effect for the Calamity Accessory
|
||||
|
||||
#region General Particle Rendering
|
||||
private static void DrawGeneralParticles(On.Terraria.Main.orig_DrawInterface orig, Main self, GameTime gameTime)
|
||||
private static void DrawFusableParticles(On.Terraria.Main.orig_SortDrawCacheWorms orig, Main self)
|
||||
{
|
||||
GeneralParticleHandler.DrawAllParticles(Main.spriteBatch);
|
||||
DeathAshParticle.DrawAll();
|
||||
FusableParticleManager.RenderAllFusableParticles();
|
||||
|
||||
if (Main.LocalPlayer.dye.Any(dyeItem => dyeItem.type == ModContent.ItemType<ProfanedMoonlightDye>()))
|
||||
Main.LocalPlayer.Calamity().ProfanedMoonlightAuroraDrawer?.Draw(Main.LocalPlayer.Center - Main.screenPosition, false, Main.GameViewMatrix.TransformationMatrix, Matrix.Identity);
|
||||
|
||||
orig(self, gameTime);
|
||||
}
|
||||
|
||||
private static void DrawFusableParticles(On.Terraria.Main.orig_SortDrawCacheWorms orig, Main self)
|
||||
{
|
||||
FusableParticleManager.RenderAllFusableParticles();
|
||||
|
||||
orig(self);
|
||||
}
|
||||
|
||||
|
||||
@@ -53,7 +53,29 @@ namespace CalamityMod.MainMenu
|
||||
public override bool PreDrawLogo(SpriteBatch spriteBatch, ref Vector2 logoDrawCenter, ref float logoRotation, ref float logoScale, ref Color drawColor)
|
||||
{
|
||||
Texture2D texture = ModContent.Request<Texture2D>("CalamityMod/MainMenu/MenuBackground").Value;
|
||||
spriteBatch.Draw(texture, new Vector2(0f, 0f), null, Color.White, 0f, Vector2.Zero, (float)Main.screenWidth / texture.Width, SpriteEffects.None, 0f);
|
||||
|
||||
// Calculate the draw position offset and scale in the event that someone is using a non-16:9 monitor
|
||||
Vector2 drawOffset = Vector2.Zero;
|
||||
float xScale = (float)Main.screenWidth / texture.Width;
|
||||
float yScale = (float)Main.screenHeight / texture.Height;
|
||||
float scale = xScale;
|
||||
|
||||
// if someone's monitor isn't in wacky dimensions, no calculations need to be performed at all
|
||||
if (xScale != yScale)
|
||||
{
|
||||
// If someone's monitor is tall, it needs to be shifted to the left so that it's still centered on screen
|
||||
// Additionally the Y scale is used so that it still covers the entire screen
|
||||
if (yScale > xScale)
|
||||
{
|
||||
scale = yScale;
|
||||
drawOffset.X -= (texture.Width - Main.screenWidth * scale) * 0.5f;
|
||||
}
|
||||
else
|
||||
// The opposite is true if someone's monitor is widescreen
|
||||
drawOffset.Y -= (texture.Height - Main.screenHeight * scale) * 0.5f;
|
||||
}
|
||||
|
||||
spriteBatch.Draw(texture, drawOffset, null, Color.White, 0f, Vector2.Zero, scale, SpriteEffects.None, 0f);
|
||||
|
||||
static Color selectCinderColor()
|
||||
{
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
using CalamityMod.BiomeManagers;
|
||||
using CalamityMod.Dusts;
|
||||
using CalamityMod.Items.Accessories;
|
||||
using CalamityMod.Items.Placeables.Furniture.BossRelics;
|
||||
using CalamityMod.Projectiles.Enemy;
|
||||
using CalamityMod.World;
|
||||
using Microsoft.Xna.Framework;
|
||||
@@ -506,6 +507,7 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
postPolter.Add(ModContent.ItemType<SpentFuelContainer>(), 10);
|
||||
postPolter.OnFailedConditions(ItemDropRule.Common(ModContent.ItemType<NuclearRod>()));
|
||||
postPolter.OnFailedConditions(ItemDropRule.Common(ModContent.ItemType<SpentFuelContainer>()));
|
||||
npcLoot.AddIf(() => Main.masterMode || CalamityWorld.revenge, ModContent.ItemType<CragmawMireRelic>(), 4);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,7 @@
|
||||
using CalamityMod.BiomeManagers;
|
||||
using CalamityMod.Buffs.StatDebuffs;
|
||||
using CalamityMod.Items.Placeables.Banners;
|
||||
using CalamityMod.Items.Placeables.Furniture.BossRelics;
|
||||
using CalamityMod.Items.Weapons.Ranged;
|
||||
using CalamityMod.Projectiles.Enemy;
|
||||
using CalamityMod.World;
|
||||
@@ -452,6 +453,7 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
{
|
||||
npcLoot.Add(ItemID.SharkFin, 1, 2, 4);
|
||||
npcLoot.Add(ModContent.ItemType<SulphuricAcidCannon>(), 3);
|
||||
npcLoot.AddIf(() => Main.masterMode || CalamityWorld.revenge, ModContent.ItemType<MaulerRelic>(), 4);
|
||||
}
|
||||
|
||||
public override void HitEffect(int hitDirection, double damage)
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
using CalamityMod.BiomeManagers;
|
||||
using CalamityMod.Dusts;
|
||||
using CalamityMod.Items.Placeables.Furniture.BossRelics;
|
||||
using CalamityMod.Items.Weapons.Summon;
|
||||
using CalamityMod.Projectiles.Enemy;
|
||||
using CalamityMod.World;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using System;
|
||||
@@ -521,6 +523,7 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
{
|
||||
npcLoot.Add(ModContent.ItemType<GammaHeart>(), 3);
|
||||
npcLoot.Add(ModContent.ItemType<PhosphorescentGauntlet>(), 3);
|
||||
npcLoot.AddIf(() => Main.masterMode || CalamityWorld.revenge, ModContent.ItemType<NuclearTerrorRelic>(), 4);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -4,6 +4,7 @@ using CalamityMod.Events;
|
||||
using CalamityMod.Items.Accessories;
|
||||
using CalamityMod.Items.LoreItems;
|
||||
using CalamityMod.Items.Placeables;
|
||||
using CalamityMod.Items.Placeables.Furniture.BossRelics;
|
||||
using CalamityMod.Items.Placeables.Furniture.Trophies;
|
||||
using CalamityMod.Items.TreasureBags;
|
||||
using CalamityMod.Items.Weapons.Magic;
|
||||
@@ -248,6 +249,7 @@ namespace CalamityMod.NPCs.AquaticScourge
|
||||
|
||||
npcLoot.Add(DropHelper.PerPlayer(ItemID.GreaterHealingPotion, 1, 8, 14));
|
||||
npcLoot.Add(ModContent.ItemType<AquaticScourgeTrophy>(), 10);
|
||||
npcLoot.AddIf(() => Main.masterMode || CalamityWorld.revenge, ModContent.ItemType<AquaticScourgeRelic>());
|
||||
|
||||
// Lore
|
||||
bool firstASKill() => !DownedBossSystem.downedAquaticScourge;
|
||||
|
||||
@@ -5,6 +5,7 @@ using CalamityMod.Items.Accessories;
|
||||
using CalamityMod.Items.Armor.Vanity;
|
||||
using CalamityMod.Items.LoreItems;
|
||||
using CalamityMod.Items.Mounts;
|
||||
using CalamityMod.Items.Placeables.Furniture.BossRelics;
|
||||
using CalamityMod.Items.Placeables.Furniture.Trophies;
|
||||
using CalamityMod.Items.Potions;
|
||||
using CalamityMod.Items.TreasureBags;
|
||||
@@ -360,6 +361,9 @@ namespace CalamityMod.NPCs.AstrumAureus
|
||||
|
||||
npcLoot.Add(ModContent.ItemType<AstrumAureusTrophy>(), 10);
|
||||
|
||||
// Relic
|
||||
npcLoot.AddIf(() => Main.masterMode || CalamityWorld.revenge, ModContent.ItemType<AstrumAureusRelic>());
|
||||
|
||||
// Lore
|
||||
npcLoot.AddConditionalPerPlayer(() => !DownedBossSystem.downedAstrumAureus, ModContent.ItemType<KnowledgeAstrumAureus>());
|
||||
}
|
||||
|
||||
@@ -7,6 +7,7 @@ using CalamityMod.Items.Armor.Vanity;
|
||||
using CalamityMod.Items.LoreItems;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Pets;
|
||||
using CalamityMod.Items.Placeables.Furniture.BossRelics;
|
||||
using CalamityMod.Items.Placeables.Furniture.Trophies;
|
||||
using CalamityMod.Items.TreasureBags;
|
||||
using CalamityMod.Items.Weapons.Melee;
|
||||
@@ -309,7 +310,7 @@ namespace CalamityMod.NPCs.AstrumDeus
|
||||
normalOnly.Add(DropHelper.CalamityStyle(DropHelper.NormalWeaponDropRateFraction, weapons));
|
||||
|
||||
// Equipment
|
||||
normalOnly.Add(ModContent.ItemType<AstrumAureusMask>(), 7);
|
||||
normalOnly.Add(ModContent.ItemType<AstrumDeusMask>(), 7);
|
||||
normalOnly.Add(DropHelper.PerPlayer(ModContent.ItemType<HideofAstrumDeus>()));
|
||||
normalOnly.Add(ModContent.ItemType<ChromaticOrb>(), 5);
|
||||
|
||||
@@ -321,6 +322,10 @@ namespace CalamityMod.NPCs.AstrumDeus
|
||||
npcLoot.Add(DropHelper.PerPlayer(ItemID.GreaterHealingPotion, 1, 8, 14));
|
||||
npcLoot.Add(ModContent.ItemType<AstrumDeusTrophy>(), 10);
|
||||
|
||||
// Relic
|
||||
bool shouldDropRelic(DropAttemptInfo info) => (CalamityWorld.revenge || Main.masterMode) && !ShouldNotDropThings(info.npc);
|
||||
npcLoot.AddIf(shouldDropRelic, ModContent.ItemType<AstrumDeusRelic>());
|
||||
|
||||
// Fragments
|
||||
npcLoot.Add(DropHelper.NormalVsExpertQuantity(ItemID.FragmentSolar, 1, 16, 24, 20, 32));
|
||||
npcLoot.Add(DropHelper.NormalVsExpertQuantity(ItemID.FragmentVortex, 1, 16, 24, 20, 32));
|
||||
|
||||
@@ -7,12 +7,14 @@ using CalamityMod.Items.Armor.Vanity;
|
||||
using CalamityMod.Items.LoreItems;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Mounts;
|
||||
using CalamityMod.Items.Placeables.Furniture.BossRelics;
|
||||
using CalamityMod.Items.Placeables.Furniture.Trophies;
|
||||
using CalamityMod.Items.TreasureBags;
|
||||
using CalamityMod.Items.Weapons.Magic;
|
||||
using CalamityMod.Items.Weapons.Melee;
|
||||
using CalamityMod.Items.Weapons.Ranged;
|
||||
using CalamityMod.Items.Weapons.Summon;
|
||||
using CalamityMod.World;
|
||||
using Microsoft.Xna.Framework;
|
||||
using System.IO;
|
||||
using Terraria;
|
||||
@@ -212,6 +214,9 @@ namespace CalamityMod.NPCs.BrimstoneElemental
|
||||
|
||||
npcLoot.Add(ModContent.ItemType<BrimstoneElementalTrophy>(), 10);
|
||||
|
||||
// Relic
|
||||
npcLoot.AddIf(() => Main.masterMode || CalamityWorld.revenge, ModContent.ItemType<BrimstoneElementalRelic>());
|
||||
|
||||
// Lore
|
||||
npcLoot.AddConditionalPerPlayer(() => !DownedBossSystem.downedBrimstoneElemental, ModContent.ItemType<KnowledgeBrimstoneElemental>());
|
||||
}
|
||||
|
||||
@@ -4,6 +4,7 @@ using CalamityMod.Items.Armor.Vanity;
|
||||
using CalamityMod.Items.LoreItems;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Mounts;
|
||||
using CalamityMod.Items.Placeables.Furniture.BossRelics;
|
||||
using CalamityMod.Items.Placeables.Furniture.Trophies;
|
||||
using CalamityMod.Items.Potions;
|
||||
using CalamityMod.Items.TreasureBags;
|
||||
@@ -436,6 +437,9 @@ namespace CalamityMod.NPCs.Bumblebirb
|
||||
|
||||
npcLoot.Add(ModContent.ItemType<DragonfollyTrophy>(), 10);
|
||||
|
||||
// Relic
|
||||
npcLoot.AddIf(() => Main.masterMode || CalamityWorld.revenge, ModContent.ItemType<DragonfollyRelic>());
|
||||
|
||||
// Lore
|
||||
npcLoot.AddConditionalPerPlayer(() => !DownedBossSystem.downedDragonfolly, ModContent.ItemType<KnowledgeDragonfolly>());
|
||||
}
|
||||
|
||||
@@ -5,6 +5,7 @@ using CalamityMod.Items.Accessories;
|
||||
using CalamityMod.Items.Armor.Vanity;
|
||||
using CalamityMod.Items.LoreItems;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables.Furniture.BossRelics;
|
||||
using CalamityMod.Items.Placeables.Furniture.Trophies;
|
||||
using CalamityMod.Items.TreasureBags;
|
||||
using CalamityMod.Items.Weapons.Magic;
|
||||
@@ -221,6 +222,9 @@ namespace CalamityMod.NPCs.Calamitas
|
||||
|
||||
npcLoot.Add(ModContent.ItemType<CalamitasTrophy>(), 10);
|
||||
|
||||
// Relic
|
||||
npcLoot.AddIf(() => Main.masterMode || CalamityWorld.revenge, ModContent.ItemType<CalamitasCloneRelic>());
|
||||
|
||||
// Lore
|
||||
npcLoot.AddConditionalPerPlayer(() => !DownedBossSystem.downedCalamitas, ModContent.ItemType<KnowledgeCalamitasClone>());
|
||||
}
|
||||
|
||||
@@ -3,6 +3,7 @@ using CalamityMod.Items.Accessories;
|
||||
using CalamityMod.Items.Armor.Vanity;
|
||||
using CalamityMod.Items.LoreItems;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables.Furniture.BossRelics;
|
||||
using CalamityMod.Items.Placeables.Furniture.Trophies;
|
||||
using CalamityMod.Items.Potions;
|
||||
using CalamityMod.Items.TreasureBags;
|
||||
@@ -19,6 +20,7 @@ using System.IO;
|
||||
using Terraria.Audio;
|
||||
using Terraria.GameContent.ItemDropRules;
|
||||
using CalamityMod.Sounds;
|
||||
using CalamityMod.World;
|
||||
|
||||
namespace CalamityMod.NPCs.CeaselessVoid
|
||||
{
|
||||
@@ -222,6 +224,9 @@ namespace CalamityMod.NPCs.CeaselessVoid
|
||||
|
||||
npcLoot.Add(ModContent.ItemType<CeaselessVoidTrophy>(), 10);
|
||||
|
||||
// Relic
|
||||
npcLoot.AddIf(() => Main.masterMode || CalamityWorld.revenge, ModContent.ItemType<CeaselessVoidRelic>());
|
||||
|
||||
// Lore
|
||||
npcLoot.AddConditionalPerPlayer(LastSentinelKilled, ModContent.ItemType<KnowledgeSentinels>());
|
||||
}
|
||||
|
||||
@@ -3,6 +3,7 @@ using CalamityMod.Events;
|
||||
using CalamityMod.Items.Accessories;
|
||||
using CalamityMod.Items.Armor.Vanity;
|
||||
using CalamityMod.Items.LoreItems;
|
||||
using CalamityMod.Items.Placeables.Furniture.BossRelics;
|
||||
using CalamityMod.Items.Placeables.Furniture.Trophies;
|
||||
using CalamityMod.Items.TreasureBags;
|
||||
using CalamityMod.Items.Weapons.Magic;
|
||||
@@ -842,6 +843,9 @@ namespace CalamityMod.NPCs.Crabulon
|
||||
|
||||
npcLoot.Add(ModContent.ItemType<CrabulonTrophy>(), 10);
|
||||
|
||||
// Relic
|
||||
npcLoot.AddIf(() => Main.masterMode || CalamityWorld.revenge, ModContent.ItemType<CrabulonRelic>());
|
||||
|
||||
// Lore
|
||||
npcLoot.AddConditionalPerPlayer(() => !DownedBossSystem.downedCrabulon, ModContent.ItemType<KnowledgeCrabulon>());
|
||||
}
|
||||
|
||||
@@ -4,6 +4,7 @@ using CalamityMod.Items.Accessories.Wings;
|
||||
using CalamityMod.Items.Armor.Vanity;
|
||||
using CalamityMod.Items.LoreItems;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables.Furniture.BossRelics;
|
||||
using CalamityMod.Items.Placeables.Furniture.Trophies;
|
||||
using CalamityMod.Items.TreasureBags;
|
||||
using CalamityMod.Items.Weapons.Magic;
|
||||
@@ -1167,6 +1168,9 @@ namespace CalamityMod.NPCs.Cryogen
|
||||
// Trophy (always directly from boss, never in bag)
|
||||
npcLoot.Add(ModContent.ItemType<CryogenTrophy>(), 10);
|
||||
|
||||
// Relic
|
||||
npcLoot.AddIf(() => Main.masterMode || CalamityWorld.revenge, ModContent.ItemType<CryogenRelic>());
|
||||
|
||||
// Lore
|
||||
npcLoot.AddConditionalPerPlayer(() => !DownedBossSystem.downedCryogen, ModContent.ItemType<KnowledgeCryogen>());
|
||||
}
|
||||
|
||||
@@ -3,6 +3,7 @@ using CalamityMod.Items.Accessories;
|
||||
using CalamityMod.Items.Armor.Vanity;
|
||||
using CalamityMod.Items.LoreItems;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables.Furniture.BossRelics;
|
||||
using CalamityMod.Items.Placeables.Furniture.Trophies;
|
||||
using CalamityMod.Items.TreasureBags;
|
||||
using CalamityMod.Items.Weapons.Magic;
|
||||
@@ -720,6 +721,9 @@ namespace CalamityMod.NPCs.DesertScourge
|
||||
// Trophy (always directly from boss, never in bag)
|
||||
npcLoot.Add(ModContent.ItemType<DesertScourgeTrophy>(), 10);
|
||||
|
||||
// Relic
|
||||
npcLoot.AddIf(() => Main.masterMode || CalamityWorld.revenge, ModContent.ItemType<DesertScourgeRelic>());
|
||||
|
||||
// Lore
|
||||
npcLoot.AddConditionalPerPlayer(() => !DownedBossSystem.downedDesertScourge, ModContent.ItemType<KnowledgeDesertScourge>());
|
||||
}
|
||||
|
||||
@@ -7,6 +7,7 @@ using CalamityMod.Items.Armor.Vanity;
|
||||
using CalamityMod.Items.LoreItems;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Mounts;
|
||||
using CalamityMod.Items.Placeables.Furniture.BossRelics;
|
||||
using CalamityMod.Items.Placeables.Furniture.Trophies;
|
||||
using CalamityMod.Items.Placeables.FurnitureCosmilite;
|
||||
using CalamityMod.Items.Potions;
|
||||
@@ -2397,6 +2398,9 @@ namespace CalamityMod.NPCs.DevourerofGods
|
||||
normalOnly.Add(DropHelper.PerPlayer(ModContent.ItemType<NebulousCore>()));
|
||||
}
|
||||
|
||||
// Relic
|
||||
npcLoot.AddIf(() => Main.masterMode || CalamityWorld.revenge, ModContent.ItemType<DevourerOfGodsRelic>());
|
||||
|
||||
// Trophy (always directly from boss, never in bag)
|
||||
npcLoot.Add(ModContent.ItemType<DevourerofGodsTrophy>(), 10);
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@ using CalamityMod.Items.Armor.Vanity;
|
||||
using CalamityMod.Items.LoreItems;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Mounts;
|
||||
using CalamityMod.Items.Placeables.Furniture.BossRelics;
|
||||
using CalamityMod.Items.Placeables.Furniture.Trophies;
|
||||
using CalamityMod.Items.Potions;
|
||||
using CalamityMod.Items.TreasureBags;
|
||||
@@ -1341,6 +1342,9 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
|
||||
mainDrops.Add(ItemDropRule.ByCondition(DropHelper.If(info => info.npc.type == ModContent.NPCType<Apollo.Apollo>()), ModContent.ItemType<ArtemisTrophy>()));
|
||||
mainDrops.Add(ItemDropRule.ByCondition(DropHelper.If(info => info.npc.type == ModContent.NPCType<Apollo.Apollo>()), ModContent.ItemType<ApolloTrophy>()));
|
||||
|
||||
// Relic
|
||||
npcLoot.AddIf(() => Main.masterMode || CalamityWorld.revenge, ModContent.ItemType<DraedonRelic>());
|
||||
|
||||
// Lore item
|
||||
mainDrops.Add(ItemDropRule.ByCondition(DropHelper.If(() => !DownedBossSystem.downedExoMechs), ModContent.ItemType<KnowledgeExoMechs>()));
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables.Banners;
|
||||
using CalamityMod.Items.Placeables.Furniture.BossRelics;
|
||||
using CalamityMod.Projectiles.Boss;
|
||||
using CalamityMod.World;
|
||||
using Microsoft.Xna.Framework;
|
||||
@@ -634,6 +635,9 @@ namespace CalamityMod.NPCs.GreatSandShark
|
||||
|
||||
npcLoot.Add(ItemID.LightShard, 2);
|
||||
npcLoot.Add(ItemID.DarkShard, 2);
|
||||
|
||||
// Relic
|
||||
npcLoot.AddIf(() => Main.masterMode || CalamityWorld.revenge, ModContent.ItemType<GreatSandSharkRelic>(), 4);
|
||||
}
|
||||
|
||||
public override void OnKill()
|
||||
|
||||
@@ -4,6 +4,7 @@ using CalamityMod.Items.Armor.Vanity;
|
||||
using CalamityMod.Items.LoreItems;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Pets;
|
||||
using CalamityMod.Items.Placeables.Furniture.BossRelics;
|
||||
using CalamityMod.Items.Placeables.Furniture.Trophies;
|
||||
using CalamityMod.Items.TreasureBags;
|
||||
using CalamityMod.Items.Weapons.Magic;
|
||||
@@ -1163,6 +1164,9 @@ namespace CalamityMod.NPCs.HiveMind
|
||||
|
||||
npcLoot.Add(ModContent.ItemType<HiveMindTrophy>(), 10);
|
||||
|
||||
// Relic
|
||||
npcLoot.AddIf(() => Main.masterMode || CalamityWorld.revenge, ModContent.ItemType<HiveMindRelic>());
|
||||
|
||||
// Lore
|
||||
npcLoot.AddConditionalPerPlayer(() => !DownedBossSystem.downedHiveMind, ModContent.ItemType<KnowledgeHiveMind>());
|
||||
}
|
||||
|
||||
@@ -4,6 +4,7 @@ using CalamityMod.Events;
|
||||
using CalamityMod.Items.Accessories;
|
||||
using CalamityMod.Items.Armor.Vanity;
|
||||
using CalamityMod.Items.LoreItems;
|
||||
using CalamityMod.Items.Placeables.Furniture.BossRelics;
|
||||
using CalamityMod.Items.Placeables.Furniture.Trophies;
|
||||
using CalamityMod.Items.TreasureBags;
|
||||
using CalamityMod.Items.Weapons.Magic;
|
||||
@@ -799,6 +800,9 @@ namespace CalamityMod.NPCs.Leviathan
|
||||
normalOnly.Add(ItemID.CratePotion, 5, 5, 8);
|
||||
}
|
||||
|
||||
// Relic
|
||||
npcLoot.AddIf(() => (Main.masterMode || CalamityWorld.revenge) && LastAnLStanding(), ModContent.ItemType<LeviathanAnahitaRelic>());
|
||||
|
||||
// Lore
|
||||
bool shouldDropLore(DropAttemptInfo info) => !DownedBossSystem.downedLeviathan && LastAnLStanding();
|
||||
npcLoot.AddConditionalPerPlayer(shouldDropLore, ModContent.ItemType<KnowledgeOcean>());
|
||||
|
||||
@@ -3,6 +3,7 @@ using CalamityMod.Buffs.StatDebuffs;
|
||||
using CalamityMod.Items.Accessories;
|
||||
using CalamityMod.Items.Armor.Vanity;
|
||||
using CalamityMod.Items.LoreItems;
|
||||
using CalamityMod.Items.Placeables.Furniture.BossRelics;
|
||||
using CalamityMod.Items.Placeables.Furniture.Trophies;
|
||||
using CalamityMod.Items.Potions;
|
||||
using CalamityMod.Items.TreasureBags;
|
||||
@@ -12,6 +13,7 @@ using CalamityMod.Items.Weapons.Ranged;
|
||||
using CalamityMod.Items.Weapons.Rogue;
|
||||
using CalamityMod.Items.Weapons.Summon;
|
||||
using CalamityMod.NPCs.TownNPCs;
|
||||
using CalamityMod.World;
|
||||
using System;
|
||||
using System.IO;
|
||||
using Microsoft.Xna.Framework;
|
||||
@@ -445,6 +447,9 @@ namespace CalamityMod.NPCs.OldDuke
|
||||
|
||||
npcLoot.Add(ModContent.ItemType<OldDukeTrophy>(), 10);
|
||||
|
||||
// Relic
|
||||
npcLoot.AddIf(() => Main.masterMode || CalamityWorld.revenge, ModContent.ItemType<OldDukeRelic>());
|
||||
|
||||
// Lore
|
||||
npcLoot.AddConditionalPerPlayer(() => !DownedBossSystem.downedBoomerDuke, ModContent.ItemType<KnowledgeOldDuke>());
|
||||
}
|
||||
|
||||
@@ -5,6 +5,7 @@ using CalamityMod.Items.Armor.Vanity;
|
||||
using CalamityMod.Items.LoreItems;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Pets;
|
||||
using CalamityMod.Items.Placeables.Furniture.BossRelics;
|
||||
using CalamityMod.Items.Placeables.Furniture.Trophies;
|
||||
using CalamityMod.Items.TreasureBags;
|
||||
using CalamityMod.Items.Weapons.Magic;
|
||||
@@ -540,6 +541,9 @@ namespace CalamityMod.NPCs.Perforator
|
||||
|
||||
npcLoot.Add(ModContent.ItemType<PerforatorTrophy>(), 10);
|
||||
|
||||
// Relic
|
||||
npcLoot.AddIf(() => Main.masterMode || CalamityWorld.revenge, ModContent.ItemType<PerforatorsRelic>());
|
||||
|
||||
// Lore
|
||||
npcLoot.AddConditionalPerPlayer(() => !DownedBossSystem.downedPerforator, ModContent.ItemType<KnowledgePerforators>());
|
||||
}
|
||||
|
||||
@@ -7,6 +7,7 @@ using CalamityMod.Items.Armor.Vanity;
|
||||
using CalamityMod.Items.LoreItems;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Pets;
|
||||
using CalamityMod.Items.Placeables.Furniture.BossRelics;
|
||||
using CalamityMod.Items.Placeables.Furniture.Trophies;
|
||||
using CalamityMod.Items.TreasureBags;
|
||||
using CalamityMod.Items.Weapons.Magic;
|
||||
@@ -1277,6 +1278,9 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath
|
||||
|
||||
npcLoot.Add(ModContent.ItemType<PlaguebringerGoliathTrophy>(), 10);
|
||||
|
||||
// Relic
|
||||
npcLoot.AddIf(() => Main.masterMode || CalamityWorld.revenge, ModContent.ItemType<PlaguebringerGoliathRelic>());
|
||||
|
||||
// Lore
|
||||
npcLoot.AddConditionalPerPlayer(() => !DownedBossSystem.downedPlaguebringer, ModContent.ItemType<KnowledgePlaguebringerGoliath>());
|
||||
}
|
||||
|
||||
@@ -4,6 +4,7 @@ using CalamityMod.Items.Accessories;
|
||||
using CalamityMod.Items.Armor.Vanity;
|
||||
using CalamityMod.Items.LoreItems;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables.Furniture.BossRelics;
|
||||
using CalamityMod.Items.Placeables.Furniture.Trophies;
|
||||
using CalamityMod.Items.Potions;
|
||||
using CalamityMod.Items.TreasureBags;
|
||||
@@ -1046,6 +1047,9 @@ namespace CalamityMod.NPCs.Polterghast
|
||||
|
||||
npcLoot.Add(ModContent.ItemType<PolterghastTrophy>(), 10);
|
||||
|
||||
// Relic
|
||||
npcLoot.AddIf(() => Main.masterMode || CalamityWorld.revenge, ModContent.ItemType<PolterghastRelic>());
|
||||
|
||||
// Lore
|
||||
npcLoot.AddConditionalPerPlayer(() => !DownedBossSystem.downedPolterghast, ModContent.ItemType<KnowledgePolterghast>());
|
||||
}
|
||||
|
||||
@@ -16,6 +16,7 @@ using Terraria.GameContent;
|
||||
using Terraria.GameContent.Bestiary;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.Items.Placeables.Furniture.BossRelics;
|
||||
using CalamityMod.Items.Placeables.Furniture.Trophies;
|
||||
using CalamityMod.Events;
|
||||
using Terraria.Audio;
|
||||
@@ -510,6 +511,9 @@ namespace CalamityMod.NPCs.ProfanedGuardians
|
||||
npcLoot.Add(ModContent.ItemType<ProfanedGuardianTrophy>(), 10);
|
||||
npcLoot.Add(ModContent.ItemType<ProfanedCore>());
|
||||
|
||||
// Relic
|
||||
npcLoot.AddIf(() => Main.masterMode || CalamityWorld.revenge, ModContent.ItemType<ProfanedGuardiansRelic>());
|
||||
|
||||
// Lore
|
||||
npcLoot.AddConditionalPerPlayer(() => !DownedBossSystem.downedGuardians, ModContent.ItemType<KnowledgeProfanedGuardians>());
|
||||
}
|
||||
|
||||
@@ -7,6 +7,7 @@ using CalamityMod.Items.Accessories.Wings;
|
||||
using CalamityMod.Items.Armor.Vanity;
|
||||
using CalamityMod.Items.Dyes;
|
||||
using CalamityMod.Items.LoreItems;
|
||||
using CalamityMod.Items.Placeables.Furniture.BossRelics;
|
||||
using CalamityMod.Items.Placeables.Furniture.Trophies;
|
||||
using CalamityMod.Items.Potions;
|
||||
using CalamityMod.Items.SummonItems;
|
||||
@@ -1598,6 +1599,9 @@ namespace CalamityMod.NPCs.Providence
|
||||
|
||||
npcLoot.Add(ModContent.ItemType<ProvidenceTrophy>(), 10);
|
||||
|
||||
// Relic
|
||||
npcLoot.AddIf(() => Main.masterMode || CalamityWorld.revenge, ModContent.ItemType<ProvidenceRelic>());
|
||||
|
||||
// Lore
|
||||
npcLoot.AddConditionalPerPlayer(() => !DownedBossSystem.downedProvidence, ModContent.ItemType<KnowledgeProvidence>());
|
||||
}
|
||||
|
||||
@@ -3,6 +3,7 @@ using CalamityMod.Events;
|
||||
using CalamityMod.Items.Accessories;
|
||||
using CalamityMod.Items.Armor.Vanity;
|
||||
using CalamityMod.Items.LoreItems;
|
||||
using CalamityMod.Items.Placeables.Furniture.BossRelics;
|
||||
using CalamityMod.Items.Placeables.Furniture.Trophies;
|
||||
using CalamityMod.Items.TreasureBags;
|
||||
using CalamityMod.Items.Weapons.Magic;
|
||||
@@ -880,6 +881,9 @@ namespace CalamityMod.NPCs.Ravager
|
||||
|
||||
npcLoot.Add(ModContent.ItemType<RavagerTrophy>(), 10);
|
||||
|
||||
// Relic
|
||||
npcLoot.AddIf(() => Main.masterMode || CalamityWorld.revenge, ModContent.ItemType<RavagerRelic>());
|
||||
|
||||
// Lore
|
||||
npcLoot.AddConditionalPerPlayer(() => !DownedBossSystem.downedRavager, ModContent.ItemType<KnowledgeRavager>());
|
||||
}
|
||||
|
||||
@@ -5,6 +5,7 @@ using CalamityMod.Items.Accessories;
|
||||
using CalamityMod.Items.Armor.Vanity;
|
||||
using CalamityMod.Items.LoreItems;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables.Furniture.BossRelics;
|
||||
using CalamityMod.Items.Placeables.Furniture.Trophies;
|
||||
using CalamityMod.Items.Potions;
|
||||
using CalamityMod.Items.TreasureBags;
|
||||
@@ -805,6 +806,9 @@ namespace CalamityMod.NPCs.Signus
|
||||
|
||||
npcLoot.Add(ModContent.ItemType<SignusTrophy>(), 10);
|
||||
|
||||
// Relic
|
||||
npcLoot.AddIf(() => Main.masterMode || CalamityWorld.revenge, ModContent.ItemType<SignusRelic>());
|
||||
|
||||
// Lore
|
||||
npcLoot.AddConditionalPerPlayer(LastSentinelKilled, ModContent.ItemType<KnowledgeSentinels>());
|
||||
}
|
||||
|
||||
@@ -4,6 +4,7 @@ using CalamityMod.Items.Accessories;
|
||||
using CalamityMod.Items.Armor.Vanity;
|
||||
using CalamityMod.Items.LoreItems;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables.Furniture.BossRelics;
|
||||
using CalamityMod.Items.Placeables.Furniture.Trophies;
|
||||
using CalamityMod.Items.Potions;
|
||||
using CalamityMod.Items.TreasureBags;
|
||||
@@ -705,6 +706,9 @@ namespace CalamityMod.NPCs.SlimeGod
|
||||
|
||||
mainDrops.Add(ModContent.ItemType<SlimeGodTrophy>(), 10);
|
||||
|
||||
// Relic
|
||||
npcLoot.AddIf(() => (Main.masterMode || CalamityWorld.revenge) && LastSlimeGodStanding(), ModContent.ItemType<SlimeGodRelic>());
|
||||
|
||||
// Lore
|
||||
npcLoot.AddConditionalPerPlayer(() => LastSlimeGodStanding() && !DownedBossSystem.downedSlimeGod, ModContent.ItemType<KnowledgeSlimeGod>());
|
||||
}
|
||||
|
||||
@@ -4,6 +4,7 @@ using CalamityMod.Items.Armor.Vanity;
|
||||
using CalamityMod.Items.LoreItems;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Pets;
|
||||
using CalamityMod.Items.Placeables.Furniture.BossRelics;
|
||||
using CalamityMod.Items.Placeables.Furniture.Trophies;
|
||||
using CalamityMod.Items.Potions;
|
||||
using CalamityMod.Items.TreasureBags;
|
||||
@@ -979,6 +980,9 @@ namespace CalamityMod.NPCs.StormWeaver
|
||||
|
||||
npcLoot.Add(ModContent.ItemType<WeaverTrophy>(), 10);
|
||||
|
||||
// Relic
|
||||
npcLoot.AddIf(() => Main.masterMode || CalamityWorld.revenge, ModContent.ItemType<StormWeaverRelic>());
|
||||
|
||||
// Lore
|
||||
npcLoot.AddConditionalPerPlayer(LastSentinelKilled, ModContent.ItemType<KnowledgeSentinels>());
|
||||
}
|
||||
|
||||
@@ -4,12 +4,14 @@ using CalamityMod.Items.Accessories;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables;
|
||||
using CalamityMod.Items.Placeables.Banners;
|
||||
using CalamityMod.Items.Placeables.Furniture.BossRelics;
|
||||
using CalamityMod.Items.Weapons.Magic;
|
||||
using CalamityMod.Items.Weapons.Melee;
|
||||
using CalamityMod.Items.Weapons.Ranged;
|
||||
using CalamityMod.Items.Weapons.Summon;
|
||||
using CalamityMod.NPCs.TownNPCs;
|
||||
using CalamityMod.Projectiles.Enemy;
|
||||
using CalamityMod.World;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using System;
|
||||
@@ -471,6 +473,9 @@ namespace CalamityMod.NPCs.SunkenSea
|
||||
postDesertScourge.Add(ModContent.ItemType<GiantPearl>(), 3);
|
||||
postDesertScourge.Add(ModContent.ItemType<AmidiasPendant>(), 3);
|
||||
|
||||
// Relic
|
||||
npcLoot.AddIf(() => Main.masterMode || CalamityWorld.revenge, ModContent.ItemType<GiantClamRelic>(), 4);
|
||||
|
||||
npcLoot.Add(postDesertScourge);
|
||||
npcLoot.Add(hardmode);
|
||||
}
|
||||
|
||||
@@ -6,6 +6,7 @@ using CalamityMod.Items.Armor.Vanity;
|
||||
using CalamityMod.Items.LoreItems;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Pets;
|
||||
using CalamityMod.Items.Placeables.Furniture.BossRelics;
|
||||
using CalamityMod.Items.Placeables.Furniture.Trophies;
|
||||
using CalamityMod.Items.Potions;
|
||||
using CalamityMod.Items.TreasureBags;
|
||||
@@ -2541,6 +2542,9 @@ namespace CalamityMod.NPCs.SupremeCalamitas
|
||||
|
||||
npcLoot.Add(ModContent.ItemType<SupremeCalamitasTrophy>(), 10);
|
||||
|
||||
// Relic
|
||||
npcLoot.AddIf(() => Main.masterMode || CalamityWorld.revenge, ModContent.ItemType<CalamitasRelic>());
|
||||
|
||||
// Lore
|
||||
npcLoot.AddConditionalPerPlayer(() => !DownedBossSystem.downedSCal, ModContent.ItemType<KnowledgeCalamitas>());
|
||||
}
|
||||
|
||||
@@ -6,6 +6,7 @@ using CalamityMod.Items.Armor.Vanity;
|
||||
using CalamityMod.Items.LoreItems;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Pets;
|
||||
using CalamityMod.Items.Placeables.Furniture.BossRelics;
|
||||
using CalamityMod.Items.Placeables.Furniture.Trophies;
|
||||
using CalamityMod.Items.Potions;
|
||||
using CalamityMod.Items.TreasureBags;
|
||||
@@ -2831,6 +2832,9 @@ namespace CalamityMod.NPCs.Yharon
|
||||
// Trophy (always directly from boss, never in bag)
|
||||
npcLoot.Add(ModContent.ItemType<YharonTrophy>(), 10);
|
||||
|
||||
// Relic
|
||||
npcLoot.AddIf(() => Main.masterMode || CalamityWorld.revenge, ModContent.ItemType<YharonRelic>());
|
||||
|
||||
// Lore
|
||||
npcLoot.AddConditionalPerPlayer(() => !DownedBossSystem.downedYharon, ModContent.ItemType<KnowledgeYharon>());
|
||||
}
|
||||
|
||||
@@ -268,7 +268,6 @@ namespace CalamityMod.UI
|
||||
NPCType<ProfanedGuardianDefender>(),
|
||||
NPCType<ProfanedGuardianHealer>()
|
||||
};
|
||||
MinibossHPBarList.AddRange(AcidRainEvent.AllMinibosses);
|
||||
}
|
||||
|
||||
public static void SetupExtensionHandlerList()
|
||||
|
||||
@@ -838,6 +838,10 @@ namespace CalamityMod.World
|
||||
ConvertToAstral(x, topMost + 1);
|
||||
break;
|
||||
}
|
||||
case TileID.OasisPlants:
|
||||
Main.tile[x, y].Get<TileWallWireStateData>().HasTile = false;
|
||||
NetMessage.SendTileSquare(-1, x, y, 1);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
The Calamity Mod is a vast content mod for Terraria.
|
||||
It adds three new difficulty modes, multiple entire biomes, thousands of items, hundreds of weapons, and dozens of bosses.
|
||||
It adds two new difficulty modes, multiple entire biomes, thousands of items, hundreds of weapons, and dozens of bosses.
|
||||
The mod also makes hundreds of adjustments to vanilla items, features and mechanics to improve balance, quality of life and overall gameplay consistency.
|
||||
|
||||
A more detailed breakdown of the content available in Calamity:
|
||||
@@ -14,7 +14,7 @@ A more detailed breakdown of the content available in Calamity:
|
||||
- 100+ blocks
|
||||
- 200+ pieces of furniture
|
||||
- 11 ores
|
||||
- 3 full difficulty settings above Expert, separate from Master
|
||||
- 2 full difficulty settings above Expert, separate from Master
|
||||
- 50+ changes to vanilla mechanics
|
||||
- 30+ new recipes for vanilla items
|
||||
- 450+ tweaks and improvements to vanilla items
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
[h1]Calamity Mod[/h1]
|
||||
[url=https://discord.gg/calamity]Discord[/url] [url=https://calamitymod.wiki.gg]Official Wiki[/url]
|
||||
|
||||
The Calamity Mod is a vast content mod that creates a new and refreshing experience for Terraria!
|
||||
|
||||
With this mod comes a slew of new bosses, unique and challenging difficulty modes, over a thousand new items, new NPCs, and entire new biomes to explore! Calamity also massively expands the endgame of Terraria, creating an entirely original, intense experience for players to enjoy.
|
||||
|
||||
The mod additionally tweaks tons of vanilla features whilst adding new ones to aid the player's experience and heavily expand on the base game, including but not limited to:
|
||||
[olist]
|
||||
[*] Reworked reforging with the Goblin Tinkerer
|
||||
[*] Reworked gameplay progression in early Hardmode
|
||||
[*] Dozens of extra crafting recipes for existing vanilla items
|
||||
[*] Dozens more quality of life and balance changes!
|
||||
[/olist]
|
||||
|
||||
[i]Please note that this mod does [b]NOT[/b] include Calamity's soundtrack! You will need to download "Calamity Mod Music" for the full intended experience![/i]
|
||||
|
||||
[b]Be sure to join our Discord server linked above to keep up with the latest news about upcoming updates and features.[/b]
|
||||
|
||||
[hr]
|
||||
|
||||
A more detailed breakdown of the content available in Calamity:
|
||||
[olist]
|
||||
[*] 27 bosses and 12 minibosses
|
||||
[*] 100+ enemies
|
||||
[*] 5 town NPCs
|
||||
[*] 5 biomes and many new structures
|
||||
[*] 1 event
|
||||
[*] 1 new playable class (based on Throwing from Terraria 1.3)
|
||||
[*] 1800+ items
|
||||
[*] 700+ weapons
|
||||
[*] 100+ blocks
|
||||
[*] 200+ pieces of furniture
|
||||
[*] 11 ores
|
||||
[*] 2 full difficulty settings above Expert, separate from Master
|
||||
[*] 50+ changes to vanilla mechanics
|
||||
[*] 30+ new recipes for vanilla items
|
||||
[*] 450+ tweaks and improvements to vanilla items
|
||||
[*] Cross-mod support for the Thorium Mod
|
||||
[/olist]
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 18 KiB |
Reference in new issue
Block a user