Merge branch '1.4.4' of https://github.com/CalamityTeam/CalamityMod into 1.4.4
This commit is contained in:
commit
3d17a23311
33 files changed
+124
-50
No files matched your search
@@ -6431,6 +6431,7 @@ namespace CalamityMod.CalPlayer
|
||||
int proj = Projectile.NewProjectile(source, Player.Center, Vector2.Zero, ModContent.ProjectileType<LeviathanBomb>(), 9999, 10f, Player.whoAmI);
|
||||
if (Main.projectile[proj].whoAmI.WithinBounds(Main.maxProjectiles))
|
||||
{
|
||||
Main.projectile[proj].timeLeft = 10;
|
||||
Main.projectile[proj].scale = 6f;
|
||||
Main.projectile[proj].friendly = true;
|
||||
Main.projectile[proj].netUpdate = true;
|
||||
|
||||
@@ -132,11 +132,6 @@ namespace CalamityMod.Items
|
||||
}
|
||||
|
||||
#region SetDefaults
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
SetStaticDefaults_ShimmerRecipes();
|
||||
}
|
||||
|
||||
public override void SetDefaults(Item item)
|
||||
{
|
||||
#region Vanilla Wing Tweaks
|
||||
|
||||
@@ -1346,16 +1346,5 @@ namespace CalamityMod.Items
|
||||
#endregion
|
||||
#endregion
|
||||
#endregion
|
||||
|
||||
#region Shimmer Transmutations
|
||||
private void SetStaticDefaults_ShimmerRecipes()
|
||||
{
|
||||
var shimmerTransmute = ItemID.Sets.ShimmerTransformToItem;
|
||||
|
||||
shimmerTransmute[ItemID.AmberHook] = ItemID.SandstorminaBottle;
|
||||
shimmerTransmute[ItemID.SandstorminaBottle] = ItemID.FlyingCarpet;
|
||||
shimmerTransmute[ItemID.FlyingCarpet] = ItemID.AmberHook;
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -32,7 +32,8 @@ namespace CalamityMod.Items.Materials
|
||||
{
|
||||
CreateRecipe(10).
|
||||
AddIngredient(ItemID.BloodMoonStarter).
|
||||
Register();
|
||||
Register()
|
||||
.DisableDecraft();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -46,7 +46,8 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
AddIngredient<BloodOrb>(40).
|
||||
AddIngredient(ItemID.CrystalShard).
|
||||
AddTile(TileID.AlchemyTable).
|
||||
Register();
|
||||
Register()
|
||||
.DisableDecraft();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -37,7 +37,8 @@ namespace CalamityMod.Items.Potions
|
||||
AddIngredient(ItemID.BottledWater).
|
||||
AddIngredient<BloodOrb>(10).
|
||||
AddTile(TileID.AlchemyTable).
|
||||
Register();
|
||||
Register()
|
||||
.DisableDecraft();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -62,7 +62,8 @@ namespace CalamityMod.Items.Potions
|
||||
AddIngredient<BloodOrb>(5).
|
||||
AddIngredient<AureusCell>().
|
||||
AddTile(TileID.AlchemyTable).
|
||||
Register();
|
||||
Register()
|
||||
.DisableDecraft();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -44,7 +44,8 @@ namespace CalamityMod.Items.Potions
|
||||
AddIngredient(ItemID.BottledWater).
|
||||
AddIngredient<BloodOrb>(20).
|
||||
AddTile(TileID.AlchemyTable).
|
||||
Register();
|
||||
Register()
|
||||
.DisableDecraft();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -37,13 +37,15 @@ namespace CalamityMod.Items.Potions
|
||||
AddIngredient(ItemID.BottledWater, 4).
|
||||
AddIngredient<AncientBoneDust>().
|
||||
AddTile(TileID.Bottles).
|
||||
Register();
|
||||
Register()
|
||||
.DisableDecraft();
|
||||
|
||||
CreateRecipe(4).
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.BottledWater).
|
||||
AddIngredient<BloodOrb>().
|
||||
AddIngredient<BloodOrb>(10).
|
||||
AddTile(TileID.AlchemyTable).
|
||||
Register();
|
||||
Register()
|
||||
.DisableDecraft();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -47,7 +47,8 @@ namespace CalamityMod.Items.Potions
|
||||
AddIngredient<BloodOrb>(20).
|
||||
AddIngredient<DarkPlasma>().
|
||||
AddTile(TileID.AlchemyTable).
|
||||
Register();
|
||||
Register()
|
||||
.DisableDecraft();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -47,7 +47,8 @@ namespace CalamityMod.Items.Potions
|
||||
AddIngredient<BloodOrb>(10).
|
||||
AddIngredient<AureusCell>().
|
||||
AddTile(TileID.AlchemyTable).
|
||||
Register();
|
||||
Register()
|
||||
.DisableDecraft();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -38,7 +38,8 @@ namespace CalamityMod.Items.Potions
|
||||
AddIngredient<SupremeHealingPotion>(20).
|
||||
AddIngredient<AscendantSpiritEssence>().
|
||||
AddTile(TileID.Bottles).
|
||||
Register();
|
||||
Register()
|
||||
.DisableDecraft();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -46,7 +46,8 @@ namespace CalamityMod.Items.Potions
|
||||
AddIngredient<BloodOrb>(40).
|
||||
AddIngredient<EssenceofSunlight>().
|
||||
AddTile(TileID.AlchemyTable).
|
||||
Register();
|
||||
Register()
|
||||
.DisableDecraft();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -44,7 +44,8 @@ namespace CalamityMod.Items.Potions
|
||||
AddIngredient(ItemID.BottledWater).
|
||||
AddIngredient<BloodOrb>(20).
|
||||
AddTile(TileID.AlchemyTable).
|
||||
Register();
|
||||
Register()
|
||||
.DisableDecraft();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -13,7 +13,7 @@ namespace CalamityMod.Items.Potions
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 20;
|
||||
}
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
@@ -45,7 +45,8 @@ namespace CalamityMod.Items.Potions
|
||||
AddIngredient(ItemID.BottledWater).
|
||||
AddIngredient<BloodOrb>(10).
|
||||
AddTile(TileID.AlchemyTable).
|
||||
Register();
|
||||
Register()
|
||||
.DisableDecraft();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -48,7 +48,8 @@ namespace CalamityMod.Items.Potions
|
||||
AddIngredient<BloodOrb>(30).
|
||||
AddIngredient(ItemID.SoulofFlight).
|
||||
AddTile(TileID.AlchemyTable).
|
||||
Register();
|
||||
Register()
|
||||
.DisableDecraft();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -45,7 +45,8 @@ namespace CalamityMod.Items.Potions
|
||||
AddIngredient(ItemID.BottledWater).
|
||||
AddIngredient<BloodOrb>(10).
|
||||
AddTile(TileID.AlchemyTable).
|
||||
Register();
|
||||
Register()
|
||||
.DisableDecraft();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -36,7 +36,8 @@ namespace CalamityMod.Items.Potions
|
||||
AddIngredient(ItemID.SuperHealingPotion, 4).
|
||||
AddIngredient<Bloodstone>(3).
|
||||
AddTile(TileID.Bottles).
|
||||
Register();
|
||||
Register()
|
||||
.DisableDecraft();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -35,7 +35,8 @@ namespace CalamityMod.Items.Potions
|
||||
AddIngredient(ItemID.SuperManaPotion, 15).
|
||||
AddIngredient<Phantoplasm>().
|
||||
AddTile(TileID.Bottles).
|
||||
Register();
|
||||
Register()
|
||||
.DisableDecraft();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -49,7 +49,8 @@ namespace CalamityMod.Items.Potions
|
||||
AddIngredient<BloodOrb>(10).
|
||||
AddIngredient<PearlShard>().
|
||||
AddTile(TileID.AlchemyTable).
|
||||
Register();
|
||||
Register()
|
||||
.DisableDecraft();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -47,7 +47,8 @@ namespace CalamityMod.Items.Potions
|
||||
AddIngredient<BloodOrb>(20).
|
||||
AddIngredient<PurifiedGel>(2).
|
||||
AddTile(TileID.AlchemyTable).
|
||||
Register();
|
||||
Register()
|
||||
.DisableDecraft();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -47,7 +47,8 @@ namespace CalamityMod.Items.Potions
|
||||
AddIngredient<BloodOrb>(20).
|
||||
AddIngredient<PurifiedGel>(2).
|
||||
AddTile(TileID.AlchemyTable).
|
||||
Register();
|
||||
Register()
|
||||
.DisableDecraft();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -61,7 +61,8 @@ namespace CalamityMod.Items.SummonItems
|
||||
AddIngredient<TwistingNether>().
|
||||
AddIngredient<DarkPlasma>().
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
Register();
|
||||
Register()
|
||||
.DisableDecraft();
|
||||
|
||||
// sequence breaking recipe
|
||||
CreateRecipe().
|
||||
@@ -69,7 +70,8 @@ namespace CalamityMod.Items.SummonItems
|
||||
AddIngredient<GalacticaSingularity>(10).
|
||||
AddIngredient<Phantoplasm>(40).
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
Register();
|
||||
Register()
|
||||
.DisableDecraft();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -282,7 +282,8 @@ namespace CalamityMod.Items.Tools
|
||||
//Intentionally craftable anywhere.
|
||||
CreateRecipe().
|
||||
AddIngredient<WulfrumMetalScrap>(6).
|
||||
Register();
|
||||
Register()
|
||||
.DisableDecraft();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -255,6 +255,9 @@ namespace CalamityMod.NPCs.AquaticScourge
|
||||
npcLoot.Add(ModContent.ItemType<AquaticScourgeTrophy>(), 10);
|
||||
npcLoot.DefineConditionalDropSet(DropHelper.RevAndMaster).Add(ModContent.ItemType<AquaticScourgeRelic>());
|
||||
|
||||
// GFB troll drop
|
||||
npcLoot.DefineConditionalDropSet(DropHelper.GFB).Add(ModContent.ItemType<SupremeBaitTackleBoxFishingStation>());
|
||||
|
||||
// Lore
|
||||
bool firstASKill() => !DownedBossSystem.downedAquaticScourge;
|
||||
npcLoot.AddConditionalPerPlayer(firstASKill, ModContent.ItemType<LoreAquaticScourge>(), desc: DropHelper.FirstKillText);
|
||||
|
||||
@@ -385,6 +385,13 @@ namespace CalamityMod.NPCs.AstrumAureus
|
||||
// Relic
|
||||
npcLoot.DefineConditionalDropSet(DropHelper.RevAndMaster).Add(ModContent.ItemType<AstrumAureusRelic>());
|
||||
|
||||
// GFB Crab Banner and Asteroid Staff drop
|
||||
var GFBOnly = npcLoot.DefineConditionalDropSet(DropHelper.GFB);
|
||||
{
|
||||
GFBOnly.Add(ItemID.CrabBanner, 1, 1, 9999);
|
||||
GFBOnly.Add(ModContent.ItemType<AsteroidStaff>());
|
||||
}
|
||||
|
||||
// Lore
|
||||
npcLoot.AddConditionalPerPlayer(() => !DownedBossSystem.downedAstrumAureus, ModContent.ItemType<LoreAstrumAureus>(), desc: DropHelper.FirstKillText);
|
||||
}
|
||||
|
||||
@@ -227,6 +227,9 @@ namespace CalamityMod.NPCs.BrimstoneElemental
|
||||
// Relic
|
||||
npcLoot.DefineConditionalDropSet(DropHelper.RevAndMaster).Add(ModContent.ItemType<BrimstoneElementalRelic>());
|
||||
|
||||
// GFB Heart of the Elements drop
|
||||
npcLoot.DefineConditionalDropSet(DropHelper.GFB).Add(ModContent.ItemType<HeartoftheElements>());
|
||||
|
||||
// Lore
|
||||
npcLoot.AddConditionalPerPlayer(() => !DownedBossSystem.downedBrimstoneElemental, ModContent.ItemType<LoreAzafure>(), desc: DropHelper.FirstKillText);
|
||||
npcLoot.AddConditionalPerPlayer(() => !DownedBossSystem.downedBrimstoneElemental, ModContent.ItemType<LoreBrimstoneElemental>(), desc: DropHelper.FirstKillText);
|
||||
|
||||
@@ -221,6 +221,9 @@ namespace CalamityMod.NPCs.CalClone
|
||||
// Relic
|
||||
npcLoot.DefineConditionalDropSet(DropHelper.RevAndMaster).Add(ModContent.ItemType<CalamitasCloneRelic>());
|
||||
|
||||
// GFB Shadowspec Bar drop
|
||||
npcLoot.DefineConditionalDropSet(DropHelper.GFB).Add(ModContent.ItemType<ShadowspecBar>(), 1, 6, 9);
|
||||
|
||||
// Lore
|
||||
npcLoot.AddConditionalPerPlayer(() => !DownedBossSystem.downedCalamitasClone, ModContent.ItemType<LoreCalamitasClone>(), desc: DropHelper.FirstKillText);
|
||||
}
|
||||
|
||||
@@ -1314,6 +1314,9 @@ namespace CalamityMod.NPCs.Cryogen
|
||||
// Relic
|
||||
npcLoot.DefineConditionalDropSet(DropHelper.RevAndMaster).Add(ModContent.ItemType<CryogenRelic>());
|
||||
|
||||
// GFB Bloodflare Core drop
|
||||
npcLoot.DefineConditionalDropSet(DropHelper.GFB).Add(ModContent.ItemType<BloodflareCore>());
|
||||
|
||||
// Lore
|
||||
npcLoot.AddConditionalPerPlayer(() => !DownedBossSystem.downedCryogen, ModContent.ItemType<LoreArchmage>(), desc: DropHelper.FirstKillText);
|
||||
}
|
||||
|
||||
@@ -826,6 +826,15 @@ namespace CalamityMod.NPCs.Leviathan
|
||||
// Relic
|
||||
npcLoot.DefineConditionalDropSet(DropHelper.RevAndMaster).AddIf((info) => LastAnLStanding(), ModContent.ItemType<LeviathanAnahitaRelic>());
|
||||
|
||||
// GFB Boulder, Pizza and Ring drop
|
||||
var GFBOnly = npcLoot.DefineConditionalDropSet(DropHelper.GFB);
|
||||
{
|
||||
GFBOnly.Add(ItemID.BouncyBoulder, 1, 1, 9999);
|
||||
GFBOnly.Add(ItemID.Boulder, 1, 1, 9999);
|
||||
GFBOnly.Add(ItemID.Pizza, 1, 1, 9999);
|
||||
GFBOnly.Add(ItemID.GreedyRing);
|
||||
}
|
||||
|
||||
// Lore
|
||||
bool shouldDropLore(DropAttemptInfo info) => !DownedBossSystem.downedLeviathan && LastAnLStanding();
|
||||
npcLoot.AddConditionalPerPlayer(shouldDropLore, ModContent.ItemType<LoreAbyss>(), desc: DropHelper.FirstKillText);
|
||||
|
||||
@@ -3,6 +3,7 @@ using CalamityMod.Walls;
|
||||
using CalamityMod.Walls.DraedonStructures;
|
||||
using CalamityMod.World;
|
||||
using Microsoft.Xna.Framework;
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -28,6 +29,9 @@ namespace CalamityMod.Scenes.MusicScenes
|
||||
float iceLabDistance = Vector2.DistanceSquared(CalamityWorld.IceLabCenter, playerPosition);
|
||||
float cavernLabDistance = Vector2.DistanceSquared(CalamityWorld.CavernLabCenter, playerPosition);
|
||||
|
||||
// (Tile range * Pixels per tile)^2
|
||||
double labRadius = Math.Pow(80f * 16f, 2);
|
||||
|
||||
// Checks if the player is behind any wall that naturally generates in Bio Labs
|
||||
bool behindLabWall =
|
||||
backWall.WallType == WallID.ObsidianBrick ||
|
||||
@@ -53,14 +57,14 @@ namespace CalamityMod.Scenes.MusicScenes
|
||||
backWall.WallType == ModContent.WallType<RustedPlatePillar>() ||
|
||||
backWall.WallType == ModContent.WallType<RustedPlatingWall>();
|
||||
|
||||
// Checks if the player is within a circular area from the center point of any Bio Lab
|
||||
// Checks if the player is within a specified range from the center point of any Bio Lab
|
||||
bool nearBioLabPoint =
|
||||
sunkenSeaLabDistance <= 1020f * 1020f ||
|
||||
planetoidLabDistance <= 520f * 520f ||
|
||||
jungleLabDistance <= 620f * 620f ||
|
||||
hellLabDistance <= 700f * 700f ||
|
||||
iceLabDistance <= 720f * 720f ||
|
||||
cavernLabDistance <= 940f * 940f;
|
||||
sunkenSeaLabDistance <= labRadius ||
|
||||
planetoidLabDistance <= labRadius ||
|
||||
jungleLabDistance <= labRadius ||
|
||||
hellLabDistance <= labRadius ||
|
||||
iceLabDistance <= labRadius ||
|
||||
cavernLabDistance <= labRadius;
|
||||
|
||||
return BiomeTileCounterSystem.ArsenalLabTiles > 150 && behindLabWall && nearBioLabPoint;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
@@ -15,6 +15,11 @@ namespace CalamityMod.Systems
|
||||
#endregion
|
||||
|
||||
#region Recipes
|
||||
public override void PostSetupContent()
|
||||
{
|
||||
CalamityRecipes.AddShimmerRecipes();
|
||||
}
|
||||
|
||||
public override void AddRecipeGroups() => CalamityRecipes.AddRecipeGroups();
|
||||
|
||||
public override void AddRecipes() => CalamityRecipes.AddRecipes();
|
||||
|
||||
@@ -824,6 +824,7 @@ namespace CalamityMod
|
||||
|
||||
// Tier lock various items to a higher tier (sorted by progression)
|
||||
{ Vanilla(ItemID.BundleofBalloons), AddIngredient(ModContent.ItemType<AerialiteBar>(), 3) },
|
||||
{ r => r.HasResult(ItemID.HorseshoeBundle) && !r.HasIngredient(ItemID.BundleofBalloons), AddIngredient(ModContent.ItemType<AerialiteBar>(), 3) },
|
||||
{ Vanilla(ItemID.NightsEdge), AddIngredient(ModContent.ItemType<PurifiedGel>(), 5) },
|
||||
{ Vanilla(ItemID.SpiritFlame), AddGroup(AnyAdamantiteBar, 2) },
|
||||
{ Vanilla(ItemID.TerraBlade), AddIngredient(ModContent.ItemType<LivingShard>(), 12) },
|
||||
@@ -1227,6 +1228,7 @@ namespace CalamityMod
|
||||
r.AddRecipeGroup("AnyCopperBar", 3);
|
||||
r.AddTile(TileID.Anvils);
|
||||
r.Register();
|
||||
r.DisableDecraft();
|
||||
|
||||
// Staff of Regrowth
|
||||
r = Recipe.Create(ItemID.StaffofRegrowth);
|
||||
@@ -1846,5 +1848,32 @@ namespace CalamityMod
|
||||
r.Register();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Shimmer Recipes
|
||||
/// <summary>
|
||||
/// Adds a shimmer recipe, while having the result transform into the ingredient's original result.
|
||||
/// <para>This is used for inserting items into various shimmer result trees/loops, like the Class Emblem loop.</para>
|
||||
/// </summary>
|
||||
public static void InsertShimmerResult(int result, int ingredient)
|
||||
{
|
||||
ItemID.Sets.ShimmerTransformToItem[result] = ItemID.Sets.ShimmerTransformToItem[ingredient];
|
||||
ItemID.Sets.ShimmerTransformToItem[ingredient] = result;
|
||||
}
|
||||
public static void AddShimmerRecipes()
|
||||
{
|
||||
// shorthand for the ID set
|
||||
int[] convert = ItemID.Sets.ShimmerTransformToItem;
|
||||
|
||||
InsertShimmerResult(ModContent.ItemType<RogueEmblem>(), ItemID.SummonerEmblem);
|
||||
|
||||
// Pyramid loot edits. There's no good way to have this not be hardcoded.
|
||||
convert[ItemID.PharaohsMask] = ItemID.PharaohsRobe;
|
||||
convert[ItemID.PharaohsRobe] = ItemID.PharaohsMask;
|
||||
|
||||
convert[ItemID.AmberHook] = ItemID.SandstorminaBottle;
|
||||
convert[ItemID.SandstorminaBottle] = ItemID.FlyingCarpet;
|
||||
convert[ItemID.FlyingCarpet] = ItemID.AmberHook;
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user