Merge pull request #1596 from CalamityTeam/new-miscell

Another miscell
This commit is contained in:
Altixal authored and GitHub committed 2026-07-28 10:45:53 +07:00
commit 7e05764dfb
97 files changed
+405 -372

No files matched your search

+22 -13
View File
@@ -842,7 +842,7 @@ namespace CalamityMod.CalPlayer
public int theBeeCooldown = 0;
public bool aFossil = false;
public bool fallingBlockProtection = false;
public bool trapProtection = false;
public bool archaicPowder = false;
public bool alluringBait = false;
public bool enchantedPearl = false;
public bool rBrain = false;
@@ -1070,10 +1070,10 @@ namespace CalamityMod.CalPlayer
public bool dynamoStemCells = false;
public bool etherealExtorter = false;
public Item AccessoryParryItem = null;
public bool blazingCore = false;
public int blazingCoreParry = 0;
public int blazingCoreSuccessfulParry = 0;
public bool blazingCoreEmpoweredParry = false;
public bool divineProvidence = false;
public int divineProvParry = 0;
public int divineProvSuccessfulParry = 0;
public bool divineProvEmpoweredParry = false;
public bool voltaicJelly = false;
public bool jellyChargedBattery = false;
/// <summary> General cooldown for accessories which spawn projectiles on minion hits. </summary>
@@ -2363,7 +2363,7 @@ namespace CalamityMod.CalPlayer
protolithBangleVisual = false;
aFossil = false;
fallingBlockProtection = false;
trapProtection = false;
archaicPowder = false;
alluringBait = false;
enchantedPearl = false;
rBrain = false;
@@ -2478,7 +2478,7 @@ namespace CalamityMod.CalPlayer
dynamoStemCells = false;
etherealExtorter = false;
AccessoryParryItem = null;
blazingCore = false;
divineProvidence = false;
voltaicJelly = false;
jellyChargedBattery = false;
starbusterCore = false;
@@ -3399,9 +3399,9 @@ namespace CalamityMod.CalPlayer
xerocSet = false;
tracersDust = false;
GemTechState.OnDeathEffects();
blazingCoreParry = 0;
blazingCoreEmpoweredParry = false;
blazingCoreSuccessfulParry = 0;
divineProvParry = 0;
divineProvEmpoweredParry = false;
divineProvSuccessfulParry = 0;
flameLickedShellParry = 0;
flameLickedShellEmpoweredParry = false;
profanedCrystalAnim = -1;
@@ -3754,7 +3754,7 @@ namespace CalamityMod.CalPlayer
if (AccessoryParryItem != null && AccessoryParryItem.JustPressedKeybind())
{
if (blazingCore && blazingCoreParry == 0 && blazingCoreSuccessfulParry == 0)
if (divineProvidence && divineProvParry == 0 && divineProvSuccessfulParry == 0)
{
//minor cheese prevention with standing on a spike with later game gear spamming parry :skull:
//because of ordering, if they do not have the cooldown, it will not check the projectile array. Likewise if there are no bosses alive.
@@ -3762,8 +3762,8 @@ namespace CalamityMod.CalPlayer
if (!Player.HasCooldown(ParryCooldown.ID) || Player.ownedProjectileCounts[ProjectileType<BlazingStarHeal>()] == 0)
{
Player.SetScreenshake(3.5f);
blazingCoreParry = 30;
SoundEngine.PlaySound(BlazingCore.ParryActivateSound, Player.Center);
divineProvParry = 30;
SoundEngine.PlaySound(DivineProvidence.ParryActivateSound, Player.Center);
var mySourceIsIMadeItUp = Player.GetSource_FromThis();
int blazingSun = Projectile.NewProjectile(mySourceIsIMadeItUp, Player.Center, Vector2.Zero, ProjectileType<BlazingSun>(), 0, 0f, Player.whoAmI, 0f, 0f);
Main.projectile[blazingSun].Center = Player.Center;
@@ -5219,6 +5219,15 @@ namespace CalamityMod.CalPlayer
if (Player.chiselSpeed)
Player.pickSpeed += 0.1f;
// Prevent Archaic Powder mining speed from stacking with Ancient Chisel or Ancient Fossil
if (archaicPowder)
{
if (Player.chiselSpeed)
Player.pickSpeed += 0.15f;
if (aFossil)
Player.pickSpeed += AncientFossil.MiningSpeedBoost;
}
if (oceanCrest)
{
bool surface = Player.Center.Y < Main.worldSurface * 16.0;
+12 -12
View File
@@ -896,11 +896,11 @@ namespace CalamityMod.CalPlayer
modifiers.Cancel();
bool isIgnoredTrap = (proj.type == ProjectileID.PoisonDartTrap) || (proj.type == ProjectileID.VenomDartTrap) || (proj.type == ProjectileID.PoisonDart);
if (Player.Calamity().trapProtection && isIgnoredTrap)
if (Player.Calamity().archaicPowder && isIgnoredTrap)
modifiers.Cancel();
bool isReducedTrap = (proj.trap || proj.type == ProjectileID.RollingCactusSpike || proj.type == ProjectileID.Landmine) && !isIgnoredTrap;
if (Player.Calamity().trapProtection && isReducedTrap)
if (Player.Calamity().archaicPowder && isReducedTrap)
modifiers.SourceDamage *= (1f - ArchaicPowder.TrapDamageReduction);
// Reduce damage dealt by rainbow trails
@@ -1563,23 +1563,23 @@ namespace CalamityMod.CalPlayer
// It has not yet been mitigated by any means.
//
if (blazingCoreParry > 0) //check for active parry
if (divineProvParry > 0) //check for active parry
{
if (blazingCoreParry >= 12) //only the first 18 frames (0.3 seconds) counts for a valid parry
if (divineProvParry >= 12) //only the first 18 frames (0.3 seconds) counts for a valid parry
{
if (!Player.HasCooldown(ParryCooldown.ID))
{
// 17APR2024: Ozzatron: Blazing Core is a parry. It uses vanilla parry iframes and benefits from Cross Necklace.
int blazingCoreParryIFrames = Player.ComputeParryIFrames();
Player.GiveUniversalIFrames(blazingCoreParryIFrames, true);
// 17APR2024: Ozzatron: Divine Providence is a parry. It uses vanilla parry iframes and benefits from Cross Necklace.
int divineProvParryIFrames = Player.ComputeParryIFrames();
Player.GiveUniversalIFrames(divineProvParryIFrames, true);
blazingCoreEmpoweredParry = true;
divineProvEmpoweredParry = true;
modifiers.Cancel();
modifiers.DisableSound(); //prevents hurt sound from playing, had no idea this was a thing
}
SoundEngine.PlaySound(BlazingCore.ParrySuccessSound, Player.Center);
SoundEngine.PlaySound(DivineProvidence.ParrySuccessSound, Player.Center);
float power = 2;
for (int i = 0; i < (int)(20 * power); i++)
@@ -1609,12 +1609,12 @@ namespace CalamityMod.CalPlayer
Particle orb2 = new CustomPulse(Player.Center, Vector2.Zero, Color.Khaki, "CalamityMod/Particles/BloomRing", new Vector2(1f, 0.5f), 0, 0, 2.1f * power, 25);
GeneralParticleHandler.SpawnParticle(orb2);
blazingCoreSuccessfulParry = 60;
divineProvSuccessfulParry = 60;
Player.AddCooldown(ParryCooldown.ID, 60 * 30, false, "blazingcore"); //cooldown is frames in seconds multiplied by the desired amount of seconds
}
if (blazingCoreParry > 1)
blazingCoreParry = 1; //schedule parry to end next frame
if (divineProvParry > 1)
divineProvParry = 1; //schedule parry to end next frame
}
else if (flameLickedShellParry > 0)
{
+7 -7
View File
@@ -2535,15 +2535,15 @@ namespace CalamityMod.CalPlayer
if (auralisAuroraCooldown > 0)
auralisAuroraCooldown--;
if (blazingCore)
if (divineProvidence)
{
if (blazingCoreSuccessfulParry > 0)
BlazingCore.HandleStars(Player);
else if (blazingCoreParry > 0)
BlazingCore.HandleParryCountdown(Player);
if (divineProvSuccessfulParry > 0)
DivineProvidence.HandleStars(Player);
else if (divineProvParry > 0)
DivineProvidence.HandleParryCountdown(Player);
}
else if (blazingCoreParry > 0)
blazingCoreParry--;
else if (divineProvParry > 0)
divineProvParry--;
else if (flameLickedShellParry > 0)
{
if (flameLickedShell)
+3 -3
View File
@@ -15,7 +15,7 @@ namespace CalamityMod.CalPlayer.DrawLayers
}
public override Position GetDefaultPosition() => new BeforeParent(PlayerDrawLayers.FrontAccFront); //me when the player layer is called front acc front :skull:
public EncasementType GetEncasementTypeFor(CalamityPlayer modPlayer) => modPlayer.blazingCore ? EncasementType.BlazingCore : EncasementType.FlameLickedShell;
public EncasementType GetEncasementTypeFor(CalamityPlayer modPlayer) => modPlayer.divineProvidence ? EncasementType.BlazingCore : EncasementType.FlameLickedShell;
public override bool GetDefaultVisibility(PlayerDrawSet drawInfo)
{
@@ -25,7 +25,7 @@ namespace CalamityMod.CalPlayer.DrawLayers
bool visible = drawInfo.shadow == 0f && !drawPlayer.dead;
visible = encasement switch
{
EncasementType.BlazingCore => visible && modPlayer.blazingCoreParry > 0,
EncasementType.BlazingCore => visible && modPlayer.divineProvParry > 0,
EncasementType.FlameLickedShell => visible && modPlayer.flameLickedShellParry > 0,
_ => false
};
@@ -45,7 +45,7 @@ namespace CalamityMod.CalPlayer.DrawLayers
{
case EncasementType.BlazingCore:
tex += "BlazingCoreCrystal";
currentParry = calPlayer.blazingCoreParry;
currentParry = calPlayer.divineProvParry;
defaultOpacity = 0.725f;
scale = 1.15f;
break;
Binary file not shown.

Before

Width:  |  Height:  |  Size: 472 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 299 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 404 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 507 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 468 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 335 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 246 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 232 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 345 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 500 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 587 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 314 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 255 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 714 B

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 809 B

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 672 B

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 516 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 420 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 858 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 742 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 267 B

+2
View File
@@ -142,6 +142,8 @@ namespace CalamityMod.ILEditing
IL_UIWorldCreation.AddWorldSizeOptions += SwapSmallDescriptionKey;
On_WorldGen.MakeDungeon += LimitDungeonEntranceXPosition;
IL_WorldGen.DungeonHalls += LimitDungeonHallsXPosition;
IL_WorldGen.IslandHouse += MakeFledgingWingsMoreCommon;
IL_WorldGen.AddBuriedChest_int_int_int_bool_int_bool_ushort += DisableFledglingWingsSecondary;
// Removal of vanilla stupidity
IL_Player.StatusFromNPC += RemoveExpertBrainRandomDebuffs;
+67
View File
@@ -208,5 +208,72 @@ namespace CalamityMod.ILEditing
}
#endregion Prevent Abyss/Dungeon Interactions
#region Fledgling Wings Loot Changes
/// <summary>
/// Changes the primary loot of Floating Island chests to include Fledging Wings
/// </summary>
private static void MakeFledgingWingsMoreCommon(ILContext il)
{
var cursor = new ILCursor(il);
// How the code we are moving to works:
// Set num13 equal to the number of islands generated. If greater than 3, set to a random number between 0-3 inclusive. Then use that value in a 4-branch switch statement.
// This makes num13 always be a value between 0-3, for the 4 primary items in island loot.
// To accomodate for Fledgling Wings, we must change this to check for being greater than 4, then to set to a random number between 0-4 inclusive, then make the switch have 5 branches.
if (!cursor.TryGotoNext(MoveType.After, i => i.MatchStloc(13)))
{
LogFailure("Fledgling Wings", "Could not move to the location of determining Floating Island primary loot 1.");
return;
}
// Emit a delegate which reimplements the logic for choosing the primary loot of floating islands with Fledgling Wings, then return the ID of the item.
var label = il.DefineLabel();
cursor.EmitDelegate<Func<int>>(() =>
{
int island = GenVars.skyIslandHouseCount;
if (island > 4)
island = Main.rand.Next(5);
return island switch
{
1 => 65, // Starfury
2 => 158, // Lucky Horseshoe
3 => 2219, // Celestial Magnet
4 => 4978, // Fledgling Wings
_ => 159, // Shiny Red Balloon
};
});
// Store this value in the variable which holds the ID of the item, then branch past the original logic.
cursor.Emit(OpCodes.Stloc, 13);
cursor.Emit(OpCodes.Br, label);
if (!cursor.TryGotoNext(MoveType.AfterLabel, i => i.MatchLdsfld<WorldGen>("getGoodWorldGen")))
{
LogFailure("Fledgling Wings", "Could not move after the switch statement.");
return;
}
cursor.MarkLabel(label);
}
/// <summary>
/// Disables Fledgling Wings being added as secondary loot in floating island chests
/// </summary>
private static void DisableFledglingWingsSecondary(ILContext il)
{
var cursor = new ILCursor(il);
if (!cursor.TryGotoNext(MoveType.After, i => i.MatchLdloc(9)))
{
LogFailure("Fledgling Wings", "Could not move to the code adding Fledgling Wings as secondary loot.");
return;
}
// AND with 0 (false) so that the code to add Fledgling Wings as secondary loot never runs.
cursor.Emit(OpCodes.Ldc_I4_0);
cursor.Emit(OpCodes.And);
}
#endregion
}
}
+1 -7
View File
@@ -28,13 +28,7 @@ namespace CalamityMod.Items.Accessories
{
player.pickSpeed -= MiningSpeedBoost;
player.Calamity().fallingBlockProtection = true;
player.Calamity().trapProtection = true;
// Doesn't stack with downgrades
if (player.chiselSpeed)
player.pickSpeed += 0.15f;
if (player.Calamity().aFossil)
player.pickSpeed += AncientFossil.MiningSpeedBoost;
player.Calamity().archaicPowder = true;
}
public override void AddRecipes()
+2 -1
View File
@@ -71,7 +71,8 @@ namespace CalamityMod.Items.Accessories
CreateRecipe().
AddIngredient<BloodPact>().
AddIngredient(ItemID.CharmofMyths).
AddIngredient<BloodstoneCore>(5).
AddIngredient<Bloodstone>(12).
AddIngredient<BloodOrb>(5).
AddIngredient<AscendantSpiritEssence>(4).
AddTile<CosmicAnvil>().
Register();
@@ -13,7 +13,8 @@ using Terraria.ModLoader;
namespace CalamityMod.Items.Accessories
{
public class BlazingCore : ModItem, ILocalizedModType
[LegacyName("BlazingCore")]
public class DivineProvidence : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Accessories";
@@ -42,22 +43,22 @@ namespace CalamityMod.Items.Accessories
public override void UpdateAccessory(Player player, bool hideVisual)
{
player.Calamity().blazingCore = true;
player.Calamity().divineProvidence = true;
player.Calamity().AccessoryParryItem = Item;
player.noKnockback = true;
}
public static void HandleStars(Player player)
{
bool empowered = player.Calamity().blazingCoreEmpoweredParry;
bool empowered = player.Calamity().divineProvEmpoweredParry;
float divisor = 3f;
int totalFlameProjectiles = 45;
int chains = 3;
float interval = totalFlameProjectiles / chains * divisor;
double patternInterval = Math.Floor(player.Calamity().blazingCoreSuccessfulParry / interval);
double patternInterval = Math.Floor(player.Calamity().divineProvSuccessfulParry / interval);
if (player.Calamity().blazingCoreSuccessfulParry % 4 == 0) //play sound every 4 frames
if (player.Calamity().divineProvSuccessfulParry % 4 == 0) //play sound every 4 frames
{
SoundEngine.PlaySound(SoundID.DD2_BetsyFireballImpact, player.Center);
}
@@ -90,19 +91,19 @@ namespace CalamityMod.Items.Accessories
offset += 10f;
}
player.Calamity().blazingCoreSuccessfulParry--;
if (player.Calamity().blazingCoreSuccessfulParry <= 0)
player.Calamity().divineProvSuccessfulParry--;
if (player.Calamity().divineProvSuccessfulParry <= 0)
{
offset = 0f;
player.Calamity().blazingCoreEmpoweredParry = false;
player.Calamity().divineProvEmpoweredParry = false;
}
}
public static void HandleParryCountdown(Player player)
{
player.Calamity().blazingCoreParry--;
player.Calamity().divineProvParry--;
if (player.Calamity().blazingCoreParry > 0)
if (player.Calamity().divineProvParry > 0)
{
player.controlJump = false;
player.controlDown = false;
File renamed without changes.

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

+2 -1
View File
@@ -34,7 +34,8 @@ namespace CalamityMod.Items.Ammo
public override void AddRecipes()
{
CreateRecipe(333).
AddIngredient<BloodstoneCore>().
AddIngredient<Bloodstone>().
AddIngredient<BloodOrb>().
AddTile(TileID.MythrilAnvil).
Register();
}
+2 -1
View File
@@ -34,7 +34,8 @@ namespace CalamityMod.Items.Ammo
public override void AddRecipes()
{
CreateRecipe(333).
AddIngredient<BloodstoneCore>().
AddIngredient<Bloodstone>().
AddIngredient<BloodOrb>().
AddTile(TileID.MythrilAnvil).
Register();
}
@@ -34,7 +34,8 @@ namespace CalamityMod.Items.Armor.Bloodflare
public override void AddRecipes()
{
CreateRecipe().
AddIngredient<BloodstoneCore>(20).
AddIngredient<Bloodstone>(50).
AddIngredient<BloodOrb>(20).
AddIngredient<RuinousSoul>(4).
AddTile(TileID.MythrilAnvil).
Register();
+2 -1
View File
@@ -36,7 +36,8 @@ namespace CalamityMod.Items.Armor.Bloodflare
public override void AddRecipes()
{
CreateRecipe().
AddIngredient<BloodstoneCore>(15).
AddIngredient<Bloodstone>(35).
AddIngredient<BloodOrb>(15).
AddIngredient<RuinousSoul>(3).
AddTile(TileID.MythrilAnvil).
Register();
@@ -59,7 +59,8 @@ namespace CalamityMod.Items.Armor.Bloodflare
public override void AddRecipes()
{
CreateRecipe().
AddIngredient<BloodstoneCore>(10).
AddIngredient<Bloodstone>(25).
AddIngredient<BloodOrb>(10).
AddIngredient<RuinousSoul>(2).
AddTile(TileID.MythrilAnvil).
SortBeforeFirstRecipesOf(ModContent.ItemType<BloodflareBodyArmor>()).
@@ -59,7 +59,8 @@ namespace CalamityMod.Items.Armor.Bloodflare
public override void AddRecipes()
{
CreateRecipe().
AddIngredient<BloodstoneCore>(10).
AddIngredient<Bloodstone>(25).
AddIngredient<BloodOrb>(10).
AddIngredient<RuinousSoul>(2).
AddTile(TileID.MythrilAnvil).
SortBeforeFirstRecipesOf(ModContent.ItemType<BloodflareHeadMagic>()).
@@ -60,7 +60,8 @@ namespace CalamityMod.Items.Armor.Bloodflare
public override void AddRecipes()
{
CreateRecipe().
AddIngredient<BloodstoneCore>(10).
AddIngredient<Bloodstone>(25).
AddIngredient<BloodOrb>(10).
AddIngredient<RuinousSoul>(2).
AddTile(TileID.MythrilAnvil).
SortBeforeFirstRecipesOf(ModContent.ItemType<BloodflareHeadMagic>()).
@@ -55,7 +55,8 @@ namespace CalamityMod.Items.Armor.Bloodflare
public override void AddRecipes()
{
CreateRecipe().
AddIngredient<BloodstoneCore>(10).
AddIngredient<Bloodstone>(25).
AddIngredient<BloodOrb>(10).
AddIngredient<RuinousSoul>(2).
AddTile(TileID.MythrilAnvil).
SortBeforeFirstRecipesOf(ModContent.ItemType<BloodflareBodyArmor>()).
@@ -59,7 +59,8 @@ namespace CalamityMod.Items.Armor.Bloodflare
public override void AddRecipes()
{
CreateRecipe().
AddIngredient<BloodstoneCore>(10).
AddIngredient<Bloodstone>(25).
AddIngredient<BloodOrb>(10).
AddIngredient<RuinousSoul>(2).
AddTile(TileID.MythrilAnvil).
SortBeforeFirstRecipesOf(ModContent.ItemType<BloodflareHeadRogue>()).
+36
View File
@@ -301,9 +301,17 @@ namespace CalamityMod.Items
loot.Add(ModContent.ItemType<EssenceofEleum>(), 2, 2, 5);
break;
// Reimplement primary loot rule to include Fledgling Wings
case ItemID.FloatingIslandFishingCrate:
RemoveLootRuleFromSkyCrates(loot);
loot.Add(ItemDropRule.OneFromOptionsNotScalingWithLuck(1, ItemID.ShinyRedBalloon, ItemID.LuckyHorseshoe, ItemID.Starfury, ItemID.CelestialMagnet, ItemID.CreativeWings));
break;
// 2-5 Essences of Sunlight @ 50%
// This is our equivalent to Souls of Light/Night
case ItemID.FloatingIslandFishingCrateHard:
RemoveLootRuleFromSkyCrates(loot);
loot.Add(ItemDropRule.OneFromOptionsNotScalingWithLuck(1, ItemID.ShinyRedBalloon, ItemID.LuckyHorseshoe, ItemID.Starfury, ItemID.CelestialMagnet, ItemID.CreativeWings));
RemoveHardmodeOresFromBiomeCrates(loot);
loot.AddHardmodeOresToCrates(HardmodeCrateType.Biome);
loot.Add(ModContent.ItemType<EssenceofSunlight>(), 2, 2, 5);
@@ -584,6 +592,34 @@ namespace CalamityMod.Items
ItemID.BandofRegeneration,
ItemID.ShoeSpikes,
ModContent.ItemType<EnchantedKnifeStaff>()); // Climbing Claws is in Wooden/Pearlwood (vanilla) in case you're curious
private static void RemoveLootRuleFromSkyCrates(ItemLoot loot)
{
List<IItemDropRule> rules = loot.Get(false);
AlwaysAtleastOneSuccessDropRule main = null;
foreach (IItemDropRule rule in rules)
{
if (rule is AlwaysAtleastOneSuccessDropRule a)
main = a;
}
if (main is null)
return;
// Remove the primary loot rule and the rule for Fledgling Wings
foreach (IItemDropRule rule in main.rules)
{
if (rule is OneFromOptionsNotScaledWithLuckDropRule one && one.chanceDenominator == 1)
{
one.chanceNumerator = 0;
continue;
}
if (rule is CommonDrop c && c.itemId == ItemID.CreativeWings)
{
c.chanceNumerator = 0;
continue;
}
}
}
#endregion
#region Goodie Bag Bat Hook
+1
View File
@@ -5,6 +5,7 @@ using Terraria.ModLoader;
namespace CalamityMod.Items.Materials
{
[LegacyName("BloodstoneCore")]
public class Bloodstone : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Materials";
-36
View File
@@ -1,36 +0,0 @@
using CalamityMod.Rarities;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Materials
{
public class BloodstoneCore : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Materials";
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 25;
ItemID.Sets.SortingPriorityMaterials[Type] = 113;
}
public override void SetDefaults()
{
Item.width = 15;
Item.height = 12;
Item.maxStack = Item.CommonMaxStack;
Item.value = Item.sellPrice(gold: 2);
Item.rare = ModContent.RarityType<Turquoise>();
}
public override void AddRecipes()
{
CreateRecipe(2).
AddIngredient<Bloodstone>(5).
AddIngredient<BloodOrb>().
AddIngredient<Necroplasm>().
AddTile(TileID.MythrilAnvil).
Register();
}
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 681 B

+1 -1
View File
@@ -25,7 +25,7 @@ namespace CalamityMod.Items.Tools
{
CreateRecipe().
AddIngredient<AshesofAnnihilation>().
AddIngredient<BloodstoneCore>(3).
AddIngredient<Bloodstone>(10).
Register();
}
}
+1 -1
View File
@@ -75,7 +75,7 @@ namespace CalamityMod.Items.TreasureBags
itemLoot.Add(ModContent.ItemType<PristineFury>(), 10);
// Equipment
itemLoot.Add(ModContent.ItemType<BlazingCore>());
itemLoot.Add(ModContent.ItemType<DivineProvidence>());
itemLoot.AddRevBagAccessories();
// Vanity
+1 -1
View File
@@ -46,7 +46,7 @@ namespace CalamityMod.Items.Weapons.Magic
{
CreateRecipe().
AddIngredient(ItemID.DemonScythe).
AddIngredient<BloodstoneCore>(8).
AddIngredient<Bloodstone>(20).
AddIngredient<EssenceofHavoc>(8).
AddTile(TileID.Bookcases).
Register();
+2 -1
View File
@@ -49,7 +49,8 @@ namespace CalamityMod.Items.Weapons.Magic
public override void AddRecipes()
{
CreateRecipe().
AddIngredient<BloodstoneCore>(10).
AddIngredient<Bloodstone>(25).
AddIngredient<BloodOrb>(10).
AddTile(TileID.MythrilAnvil).
Register();
}
+2 -1
View File
@@ -61,7 +61,8 @@ namespace CalamityMod.Items.Weapons.Magic
public override void AddRecipes()
{
CreateRecipe().
AddIngredient<BloodstoneCore>(10).
AddIngredient<Bloodstone>(25).
AddIngredient<BloodOrb>(10).
AddTile(TileID.MythrilAnvil).
Register();
}
+1 -1
View File
@@ -54,7 +54,7 @@ namespace CalamityMod.Items.Weapons.Melee
{
CreateRecipe().
AddIngredient(ItemID.Terragrim).
AddIngredient<BloodstoneCore>(25).
AddIngredient<Bloodstone>(50).
AddIngredient<ScorchedBone>(10).
AddTile(TileID.MythrilAnvil).
Register();
+2 -2
View File
@@ -17,8 +17,8 @@ namespace CalamityMod.Items.Weapons.Melee
}
public override void SetDefaults()
{
Item.width = 64;
Item.height = 66;
Item.width = 82;
Item.height = 90;
Item.damage = 125;
Item.DamageType = DamageClass.Melee;
Item.useAnimation = Item.useTime = 29;
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

+2 -1
View File
@@ -56,7 +56,8 @@ namespace CalamityMod.Items.Weapons.Melee
public override void AddRecipes()
{
CreateRecipe().
AddIngredient<BloodstoneCore>(10).
AddIngredient<Bloodstone>(25).
AddIngredient<BloodOrb>(10).
AddTile(TileID.MythrilAnvil).
Register();
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

+2 -1
View File
@@ -85,7 +85,8 @@ namespace CalamityMod.Items.Weapons.Melee
public override void AddRecipes()
{
CreateRecipe().
AddIngredient<BloodstoneCore>(10).
AddIngredient<Bloodstone>(25).
AddIngredient<BloodOrb>(10).
AddTile(TileID.MythrilAnvil).
Register();
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

+2 -1
View File
@@ -54,7 +54,8 @@ namespace CalamityMod.Items.Weapons.Ranged
public override void AddRecipes()
{
CreateRecipe().
AddIngredient<BloodstoneCore>(10).
AddIngredient<Bloodstone>(25).
AddIngredient<BloodOrb>(10).
AddTile(TileID.MythrilAnvil).
Register();
}
+2 -1
View File
@@ -65,7 +65,8 @@ namespace CalamityMod.Items.Weapons.Ranged
public override void AddRecipes()
{
CreateRecipe().
AddIngredient<BloodstoneCore>(10).
AddIngredient<Bloodstone>(25).
AddIngredient<BloodOrb>(10).
AddTile(TileID.MythrilAnvil).
Register();
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 935 B

After

Width:  |  Height:  |  Size: 666 B

+2 -1
View File
@@ -49,7 +49,8 @@ namespace CalamityMod.Items.Weapons.Rogue
{
CreateRecipe().
AddIngredient<CrushsawCrasher>().
AddIngredient<BloodstoneCore>(10).
AddIngredient<Bloodstone>(25).
AddIngredient<BloodOrb>(10).
AddTile(TileID.MythrilAnvil).
Register();
}
+1 -1
View File
@@ -48,7 +48,7 @@ namespace CalamityMod.Items.Weapons.Rogue
AddIngredient<Wrathwing>().
AddIngredient<RealityRupture>().
AddIngredient<ShadowspecBar>(5).
AddIngredient<BloodstoneCore>(15).
AddIngredient<Bloodstone>(50).
AddIngredient(ItemID.SoulofNight, 15).
AddTile<DraedonsForge>().
Register();
+2 -1
View File
@@ -53,7 +53,8 @@ namespace CalamityMod.Items.Weapons.Summon
public override void AddRecipes()
{
CreateRecipe().
AddIngredient<BloodstoneCore>(10).
AddIngredient<Bloodstone>(25).
AddIngredient<BloodOrb>(10).
AddTile(TileID.MythrilAnvil).
Register();
}
+2 -1
View File
@@ -65,7 +65,8 @@ namespace CalamityMod.Items.Weapons.Typeless
public override void AddRecipes()
{
CreateRecipe().
AddIngredient<BloodstoneCore>(10).
AddIngredient<Bloodstone>(25).
AddIngredient<BloodOrb>(10).
AddTile(TileID.MythrilAnvil).
Register();
}
@@ -128,6 +128,16 @@ TarragonWings: {
'''
}
TiredTail: {
DisplayName: Tired Tail
Tooltip:
'''
{$CommonItemTooltip.FlightAndSlowfall}
{$CommonItemTooltip.PressDownToHover}
{$CommonItemTooltip.PressUpToBooster}
'''
}
VoidStriders: {
DisplayName: Void Striders
TreadsName: Void Kicks
@@ -150,13 +160,3 @@ WingsofRebirth: {
'Resplendent to the very end'
'''
}
TiredTail: {
DisplayName: Tired Tail
Tooltip:
'''
{$CommonItemTooltip.FlightAndSlowfall}
{$CommonItemTooltip.PressDownToHover}
{$CommonItemTooltip.PressUpToBooster}
'''
}
@@ -252,15 +252,6 @@ AsgardsValor: {
'''
}
FadedIdolatry: {
DisplayName: Faded Idolatry
Tooltip:
'''
Summoned [i:CalamityMod/YharonsKindleStaff] Fiery Draconids cost one less minion slot
[c/ffe100:'Once everything has crumbled to dust, what will be left of the world you created?']
'''
}
BadgeofBravery: {
DisplayName: Badge of Bravery
Tooltip:
@@ -301,20 +292,6 @@ BlackGlassBand: {
'''
}
BlazingCore: {
DisplayName: Blazing Core
Tooltip:
'''
{$Common.KnockbackImmunity}
The searing core of the Profaned Goddess
Pressing [KEY] will activate a parry, encasing you in luminous profaned crystal
Being hit shortly after encasement will shatter the crystal
Upon shattering, holy stars spiral outwards and damage taken is negated
After shattering, this damage reduction effect goes on cooldown
Damage parried whilst on cooldown summons additional healing stars, and will not be reduced
'''
}
BloodflareCore: {
DisplayName: Bloodflare Core
Tooltip:
@@ -474,6 +451,15 @@ CrownJewel: {
'''
}
CrushingEgo: {
DisplayName: Crushing Ego
Tooltip:
'''
Multiplies all damage by 1.3x, but at the cost of taking 20% increased damage
[c/ff00ff:'Don the mask of arrogance, and dance by your lonesome. Once the ball has gone quiet, you'll be the last man standing.']
'''
}
CryoStone: {
DisplayName: Cryo Stone
Tooltip:
@@ -593,12 +579,17 @@ DiamondOfTheDeep: {
'''
}
CrushingEgo: {
DisplayName: Crushing Ego
DivineProvidence: {
DisplayName: Divine Providence
Tooltip:
'''
Multiplies all damage by 1.3x, but at the cost of taking 20% increased damage
[c/ff00ff:'Don the mask of arrogance, and dance by your lonesome. Once the ball has gone quiet, you'll be the last man standing.']
{$Common.KnockbackImmunity}
Pressing [KEY] will activate a parry, encasing you in luminous profaned crystal
Being hit shortly after encasement will shatter the crystal
Upon shattering, holy stars spiral outwards and damage taken is negated
After shattering, this damage reduction effect goes on cooldown
Damage parried whilst on cooldown summons additional healing stars, and will not be reduced
[c/FF8C00:The searing core of the Profaned Goddess]
'''
}
@@ -663,20 +654,6 @@ EclipseMirror: {
FlavorTooltip: "'Its reflection shows naught but darkness'"
}
FragmentsOfAnotherWorld: {
DisplayName: Fragments of Another World
Tooltip:
'''
Grants immunity to [cbuffplr:CalamityMod/WhisperingDeath]
{0}% increased melee speed
{1}x specialist ranged damage
{2}% reduced mana usage
+{3} maximum sentries
{4}% increased rogue attack speed
[c/ff0000:'Don't speak of your desires to the shadows, they listen.']
'''
}
ElectriciansGlove: {
DisplayName: Electrician's Glove
Tooltip:
@@ -769,6 +746,15 @@ EyeoftheStorm: {
'''
}
FadedIdolatry: {
DisplayName: Faded Idolatry
Tooltip:
'''
Summoned [i:CalamityMod/YharonsKindleStaff] Fiery Draconids cost one less minion slot
[c/ffe100:'Once everything has crumbled to dust, what will be left of the world you created?']
'''
}
FeatherCrown: {
DisplayName: Feather Crown
Tooltip:
@@ -848,6 +834,20 @@ FleshTotem: {
'''
}
FragmentsOfAnotherWorld: {
DisplayName: Fragments of Another World
Tooltip:
'''
Grants immunity to [cbuffplr:CalamityMod/WhisperingDeath]
{0}% increased melee speed
{1}x specialist ranged damage
{2}% reduced mana usage
+{3} maximum sentries
{4}% increased rogue attack speed
[c/ff0000:'Don't speak of your desires to the shadows, they listen.']
'''
}
FrostBarrier: {
DisplayName: Frost Barrier
Tooltip:
@@ -868,6 +868,24 @@ FrostFlare: {
'''
}
FrozenCube: {
DisplayName: Frozen Cube
Tooltip:
'''
A frozen block of ice with something inside
Summons an Elumphant to sit atop your head and protect you
The Elumphant will cycle between shooting cold air that inflicts [cbuff:CalamityMod/WindChilled], and headbutting enemies
Elumphant's headbutts only target enemies inflicted with [cbuff:CalamityMod/WindChilled]
Reduces your defense by 33%, but uses that defense to boost the Elumphant's power and your cold debuff damage
[DAMAGELINE]
[c/7497ED:'What I wanna know is, where's the mammoth?']
'''
SalesPitch: "{$Common.SalesmanShrinePitch}"
EquippedDebuff: Current Cold Debuff boost: +{0}%
EquippedElumphant: Current Elumphant Power: {0}%
Unequipped: Equip this accessory to view its statistics
}
FungalClump: {
DisplayName: Fungal Clump
Tooltip:
@@ -1257,6 +1275,16 @@ Nucleogenesis: {
'''
}
OasisElementalinaBottle: {
DisplayName: Oasis Elemental in a Bottle
Tooltip:
'''
Summons an oasis elemental to assist you
The elemental fires healing orbs that restore 10 health while you are damaged
The elemental has reduced opacity if visibility is disabled
'''
}
OccultSkullCrown: {
DisplayName: Occult Skull Crown
Tooltip:
@@ -1491,16 +1519,6 @@ RampartofDeities: {
ToggleEffect: ", increases movement speed,"
}
OasisElementalinaBottle: {
DisplayName: Oasis Elemental in a Bottle
Tooltip:
'''
Summons an oasis elemental to assist you
The elemental fires healing orbs that restore 10 health while you are damaged
The elemental has reduced opacity if visibility is disabled
'''
}
ReaperToothNecklace: {
DisplayName: Reaper Tooth Necklace
Tooltip:
@@ -2251,6 +2269,11 @@ GhostBracelet: {
Tooltip: Wow.... It looks at me with its hollow eyes full of curiosity
}
GlimmeringRibbon: {
DisplayName: Glimmering Ribbon
Tooltip: "'We are born colorless. It's the people we meet who give us color.'"
}
HapuFruit: {
DisplayName: Ha-pu Fruit
Tooltip: "'A fruit that calms your nerves (may have unintended side effects)'"
@@ -2282,12 +2305,7 @@ Popo: {
SharkyPlush: {
DisplayName: Sharky Plush
Tooltip: "[c/696969:'Look out, for the force without form...']"
}
GlimmeringRibbon: {
DisplayName: Glimmering Ribbon
Tooltip: "'We are born colorless. It's the people we meet who give us color.'"
Tooltip: "[c/696969:'Like lovers and heroes, and the restless part of everyone...']"
}
TheComb: {
@@ -2327,21 +2345,3 @@ XyksBlessingOrange: {
ArmorDisabled: "[c/D44748:DISABLED]"
ArmorEnabled: "[c/58D447:ENABLED]"
}
FrozenCube: {
DisplayName: Frozen Cube
Tooltip:
'''
A frozen block of ice with something inside
Summons an Elumphant to sit atop your head and protect you
The Elumphant will cycle between shooting cold air that inflicts [cbuff:CalamityMod/WindChilled], and headbutting enemies
Elumphant's headbutts only target enemies inflicted with [cbuff:CalamityMod/WindChilled]
Reduces your defense by 33%, but uses that defense to boost the Elumphant's power and your cold debuff damage
[DAMAGELINE]
[c/7497ED:'What I wanna know is, where's the mammoth?']
'''
SalesPitch: "{$Common.SalesmanShrinePitch}"
EquippedDebuff: Current Cold Debuff boost: +{0}%
EquippedElumphant: Current Elumphant Power: {0}%
Unequipped: Equip this accessory to view its statistics
}
@@ -58,11 +58,6 @@ Bloodstone: {
Tooltip: ""
}
BloodstoneCore: {
DisplayName: Bloodstone Core
Tooltip: ""
}
CoreofCalamity: {
DisplayName: Core of Calamity
Tooltip: ""
@@ -218,7 +213,7 @@ PlagueCellCanister: {
}
PlasmaDriveCore: {
DisplayName: Prototype Plasma Drive Core
DisplayName: Prototype Plasma Drive
Tooltip: Despite all the time it spent in storage, its furnace still burns strong
}
@@ -23,11 +23,6 @@ AethersWhisper: {
Tooltip: Fires void beams that gain damage as they travel and split on tile hits
}
AlulaAustralis: {
DisplayName: Alula Australis
Tooltip: Fires a beautiful aurora that spreads the [cbuff:CalamityMod/AstralInfectionDebuff] and is trailed by a star shower
}
AlphaDraconis: {
DisplayName: Alpha Draconis
Tooltip:
@@ -41,6 +36,11 @@ AlphaDraconis: {
'''
}
AlulaAustralis: {
DisplayName: Alula Australis
Tooltip: Fires a beautiful aurora that spreads the [cbuff:CalamityMod/AstralInfectionDebuff] and is trailed by a star shower
}
AnahitasArpeggio: {
DisplayName: Anahita's Arpeggio
Tooltip: "[GFB]"
@@ -65,6 +65,11 @@ AntiMaterielRifle: {
'''
}
AquashardShotgun: {
DisplayName: Aquashard Shotgun
Tooltip: Converts musket balls into aquashards that split upon hitting an enemy
}
Arbalest: {
DisplayName: Arbalest
Tooltip:
@@ -75,11 +80,6 @@ Arbalest: {
'''
}
AquashardShotgun: {
DisplayName: Aquashard Shotgun
Tooltip: Converts musket balls into aquashards that split upon hitting an enemy
}
Archerfish: {
DisplayName: Archerfish
Tooltip:
@@ -820,6 +820,23 @@ NullificationPistol: {
'''
}
OmniGun: {
DisplayName: The Omnigun
Tooltip:
'''
A multipurpose weapon with several modes which are used in sequence
The first shot is a sniper round which gains damage over time and always critically strikes
The second shot is a burst of 10 standard bullets
The third shot is a devastating point blank spread
The fourth shot is a dangerous but powerful grenade which destroys everything, including you
'''
SalesPitch:
'''
'Why carry four different guns when you can carry just one? That's what I used to ask myself!'
'With this thing-a-beauty, even a bumbling moron can become invincible - and for the right price, it can be yours!'
'''
}
OntologicalDespoiler: {
DisplayName: Ontological Despoiler
Tooltip:
@@ -853,23 +870,6 @@ Onyxia: {
'''
}
OmniGun: {
DisplayName: The Omnigun
Tooltip:
'''
A multipurpose weapon with several modes which are used in sequence
The first shot is a sniper round which gains damage over time and always critically strikes
The second shot is a burst of 10 standard bullets
The third shot is a devastating point blank spread
The fourth shot is a dangerous but powerful grenade which destroys everything, including you
'''
SalesPitch:
'''
'Why carry four different guns when you can carry just one? That's what I used to ask myself!'
'With this thing-a-beauty, even a bumbling moron can become invincible - and for the right price, it can be yours!'
'''
}
OpalStriker: {
DisplayName: Opal Striker
Tooltip:
@@ -683,6 +683,19 @@ LeadTomahawk: {
'''
}
LemonNade: {
DisplayName: Lemon 'nade
Tooltip:
'''
Disables normal stealth generation
Hold <left> to pull the pin and generate stealth, and release to throw
The longer it is held, the shorter the fuse once the 'nade is thrown
Will explode in your hand if the fuse is held too long
Stealth strikes explode into exploding lemon seeds
'Burn their house down!'
'''
}
LeonidProgenitor: {
DisplayName: Leonid Progenitor
Tooltip:
@@ -890,6 +903,15 @@ ProfanedPartisan: {
'''
}
Pumpkaboom: {
DisplayName: Pumpkaboom
Tooltip:
'''
Throws a pumpkin which sticks to enemies and explodes after a delay
Stealth strikes throw larger pumpkins which pull enemies in before releasing a larger explosion
'''
}
RadiantStar: {
DisplayName: Radiant Star
Tooltip:
@@ -1408,25 +1430,3 @@ WulfrumKnife: {
Returning knives also temporarily allows using stealth strikes without rogue armor
'''
}
Pumpkaboom: {
DisplayName: Pumpkaboom
Tooltip:
'''
Throws a pumpkin which sticks to enemies and explodes after a delay
Stealth strikes throw larger pumpkins which pull enemies in before releasing a larger explosion
'''
}
LemonNade: {
DisplayName: Lemon 'nade
Tooltip:
'''
Disables normal stealth generation
Hold <left> to pull the pin and generate stealth, and release to throw
The longer it is held, the shorter the fuse once the 'nade is thrown
Will explode in your hand if the fuse is held too long
Stealth strikes explode into exploding lemon seeds
'Burn their house down!'
'''
}
@@ -43,6 +43,9 @@ BloodRay.DisplayName: Blood Ray
BlueBubble.DisplayName: Bubble
BlushieStaffProj.DisplayName: Staff of Blushie
BrimroseBeam.DisplayName: Brimrose Beam
CalamitousDartFriendly.DisplayName: Calamitous Dart Friendly
CalamitousExplosionFriendly.DisplayName: Calamitous Explosion Friendly
CalamitousFireballFriendly.DisplayName: Calamitous Fireball Friendly
CauldronProj.DisplayName: Smauldron
CauldronProjSmall.DisplayName: Smaullerdron
ChronoIcicleLarge.DisplayName: Chrono Icicle
@@ -76,6 +79,8 @@ ExoVortex2.DisplayName: Subsuming Vortex
FatesRevealFlame.DisplayName: Fate's Reveal
FireImplosion.DisplayName: Swirling Backdraft
FlareBoltProjectile.DisplayName: Flare Bolt
FleshTotemMinion.DisplayName: Flesh Totem Minion
FleshTotemSoul.DisplayName: Flesh Totem Soul
ForbiddenAxeBlade.DisplayName: Ruin Blade
ForbiddenSunburst.DisplayName: Sunburst
ForbiddenSunProjectile.DisplayName: Forbidden Sun
@@ -147,6 +152,7 @@ MelterNote2.DisplayName: Melter Song
MeteorStar.DisplayName: Meteor Star
MeteorStarExplosion.DisplayName: Explosion
MiasmaGas.DisplayName: Miasma Gas
MoonSigil.DisplayName: Moon Sigil
NanoPurgeLaser.DisplayName: Nano Beam
NebulaCloud.DisplayName: Nebula Cloud
NebulaCloudCore.DisplayName: Nebula Cloud Core
@@ -225,6 +231,7 @@ SoulPiercerBeam.DisplayName: Soul Piercer
SoulPiercerBolt.DisplayName: Soul Piercer
SparkInfernal.DisplayName: Spark
SparklingLaser.DisplayName: Sparkling Laser
SpectralFeather.DisplayName: Spectral Feather
SpiritCongregation.DisplayName: Spirit Monster
SpiritDust.DisplayName: Spirit Dust
Starblast.DisplayName: Star
@@ -285,10 +292,3 @@ WyvernFeatherPurple.DisplayName: Feather
WyvernProjectile.DisplayName: Wyvern
YharimsCrystalBeam.DisplayName: Yharim's Beam
YharimsCrystalPrism.DisplayName: Yermes Christal
FleshTotemMinion.DisplayName: Flesh Totem Minion
FleshTotemSoul.DisplayName: Flesh Totem Soul
SpectralFeather.DisplayName: Spectral Feather
MoonSigil.DisplayName: Moon Sigil
CalamitousDartFriendly.DisplayName: Calamitous Dart Friendly
CalamitousExplosionFriendly.DisplayName: Calamitous Explosion Friendly
CalamitousFireballFriendly.DisplayName: Calamitous Fireball Friendly
@@ -105,6 +105,7 @@ EmpyreanKnife.DisplayName: Empyrean Knife
EntropicFlechette.DisplayName: Entropic Flechette
EonBolt.DisplayName: Eon Bolt
EssenceScythe.DisplayName: Essence Scythe
EvilSmasherProjectile.DisplayName: Evil Smasher
ExaltedOathbladeThrownBlade.DisplayName: Exalted Oathblade Thrown Blade
MawOfInfinityHoldout.DisplayName: Maw of Infinity
MawOfInfinityJaws.DisplayName: Divinity Devourer
@@ -186,6 +187,8 @@ NeptuneOrb.DisplayName: Neptune's Trident
NeptunesBountyProjectile.DisplayName: Neptune's Bounty
NeptunesBountySplitProjectile.DisplayName: Neptune's Bounty Jet
OathswordFlame.DisplayName: Oathsword Flame
OblivionFire.DisplayName: Oblivion Fire
OblivionBolt.DisplayName: Oblivion Bolt
Orbacle.DisplayName: Auric Orb
OrderbringerBeam.DisplayName: Orderbringer Beam
OrderbringerWaveProj.DisplayName: Order-bringing Wave
@@ -311,6 +314,3 @@ WulfrumScrew.DisplayName: Wulfrum Screw
WulfrumScrewdriverProj.DisplayName: Wulfrum Screwdriver
YinYoDark.DisplayName: Dark Shard
YinYoLight.DisplayName: Light Shard
EvilSmasherProjectile.DisplayName: Evil Smasher
OblivionFire.DisplayName: Oblivion Fire
OblivionBolt.DisplayName: Oblivion Bolt
@@ -1,3 +1,4 @@
AbyssalFire.DisplayName: Abyssal Fire
AcidRocket.DisplayName: Acid Rocket
AdamAcceleratorBeam.DisplayName: Adamantite Particle Beam
AMR2.DisplayName: AMR
@@ -21,6 +22,7 @@ AuroraFire.DisplayName: Aurora Blaze
BallistaGreatArrow.DisplayName: Ballista Great Arrow
BallistaShard.DisplayName: Ballista Shard
BarinadeArrow.DisplayName: Fin Arrow
BlahajBlast.DisplayName: Blahaj Blast
BlightFlames.DisplayName: Blight Flames
BlissfulBombardierSplitProjectile.DisplayName: Profaned Mini-Rocket
BloodBoilerFire.DisplayName: Blood Fire
@@ -131,6 +133,7 @@ MagnomalyExplosion.DisplayName: Explosion
MagnomalyRocket.DisplayName: Nuke
MarksmanShot.DisplayName: Marksman Shot
MechanicalBarracuda.DisplayName: Barracuda
MegalodonRocket.DisplayName: Megalodon Rocket
MegalodonShot.DisplayName: Megalodon Shot
MeowCreature.DisplayName: the creature :3
MeowFire.DisplayName: Purr Fire
@@ -149,6 +152,9 @@ NovaShot.DisplayName: Nova Bolt
NukeOfBliss.DisplayName: Profaned Nuke
NullFlash.DisplayName: Null Flash
NullShot.DisplayName: Null
OmniSniperShot.DisplayName: Omni Sniper Shot
OmniGrenade.DisplayName: Omni Grenade
OmniShotgunShot.DisplayName: Omni Shotgun Shot
OntologicalDespoilerBeam.DisplayName: Null-Annihilation Beam
OntoligicalDespoilerBurst.DisplayName: Disruption Blast
OntologicalDespoilerGrenade.DisplayName: Disruption Sphere
@@ -260,14 +266,8 @@ VanquisherArrowMain.DisplayName: Vanquisher Arrow
VanquisherArrowProj.DisplayName: Vanquisher Arrow Proj
VeriumBoltProj.DisplayName: Verium Bolt
VernalBolt.DisplayName: Vernal Bolt
VoidBlast.DisplayName: Void Blast
WaterSpout.DisplayName: Spout
WildfireBloomFire.DisplayName: Wildfire Fire
WildfireBloomFlare.DisplayName: Wildfire Flare
WulfrumScrapBullet.DisplayName: High Speed Scrap
AbyssalFire.DisplayName: Abyssal Fire
BlahajBlast.DisplayName: Blahaj Blast
MegalodonRocket.DisplayName: Megalodon Rocket
VoidBlast.DisplayName: Void Blast
OmniSniperShot.DisplayName: Omni Sniper Shot
OmniGrenade.DisplayName: Omni Grenade
OmniShotgunShot.DisplayName: Omni Shotgun Shot
@@ -159,6 +159,8 @@ Knife.DisplayName: Knife
KylieBoomerang.DisplayName: Kylie
LanceofDestiny.DisplayName: Holy Lance
LeadTomahawkProj.DisplayName: Lead Tomahawk
LemonNadeHoldout.DisplayName: Lemon 'nade
LemonNadeProjectile.DisplayName: Lemon 'nade
LeonidCometBig.DisplayName: Leonid Comet
LeonidCometSmall.DisplayName: Leonid Comet
LeonidProgenitorBombshell.DisplayName: Leonid Bombshell
@@ -189,6 +191,7 @@ NanoblackLightspeedCarve: {
Standard: Light-speed Carve
}
NanoblackLightspeedCarveSlashVisual.DisplayName: Nanoblack Light-speed Carve Visuals
NanoblackMain.DisplayName: Nanoblack Reaper
NanoblackPiercingStrike.DisplayName: Zero-Point Energy Strike
NanoblackStrike.DisplayName: Zero-Point Energy Strike
@@ -196,6 +199,7 @@ NanoblackTesselation.DisplayName: Nanoblack Tesselation
NastyChollaBol.DisplayName: Nasty Cholla
NastyChollaNeedle.DisplayName: Cactus Needle
OrichalcumSpikedGemstoneProjectile.DisplayName: Orichalcum Gemstone
PaleoShatterExplosion.DisplayName: Paleo Shatter Explosion
PalladiumJavelinProjectile.DisplayName: Palladium Javelin
PartisanExplosion.DisplayName: Profaned Explosion
PenumbraBomb.DisplayName: Penumbra Bomb
@@ -275,11 +279,12 @@ SludgeSplotchProj2.DisplayName: Sludge Splotch
SmallCoral.DisplayName: Small Coral
SnapClamProj.DisplayName: Snap Clam
SnapClamStealth.DisplayName: Snap Clam
SpadefishHoldout.DisplayName: Spinfish
SpadefishThrown.DisplayName: Spadefish
SpearofDestinyProjectile.DisplayName: Destiny Spear
SpearofDestinyStealth.DisplayName: Empowered Holy Lance
SpearofDestinyStealthExplosion.DisplayName: Strong Burst
SpearofPaleolithProj.DisplayName: Paleolith Spear
PaleoShatterExplosion.DisplayName: Paleo Shatter Explosion
SpentFuelContainerProjectile.DisplayName: Spent Fuel Container
SphereBladed.DisplayName: Bladed Sphere
SphereBlue.DisplayName: Blue Thruster Sphere
@@ -343,8 +348,3 @@ WrathwingCinder.DisplayName: Wrathwing Eruption
WrathwingFireball.DisplayName: Wrathwing Fireball
WrathwingSpear.DisplayName: Wrathwing
WulfrumKnifeProj.DisplayName: Wulfrum Knife
NanoblackLightspeedCarveSlashVisual.DisplayName: Nanoblack Light-speed Carve Visuals
LemonNadeHoldout.DisplayName: Lemon 'nade
LemonNadeProjectile.DisplayName: Lemon 'nade
SpadefishHoldout.DisplayName: Spinfish
SpadefishThrown.DisplayName: Spadefish
@@ -519,7 +519,7 @@ TownNPCMood: {
PartyGirl: {
Monument: Yeeesh, we're gonna have an ugly statue of big money around? That like, totally kills the party mood around here.
GiftPositive: PARTY GIFTS? FOR ME? Oh just you wait, I'm gonna throw the BIGGEST party this town has ever seen, forever and always!
GiftNegative: I knew you were trouble when you walked in that suspicious looking box! It's too late now to say sorry!
GiftNegative: I knew you were trouble when you walked in with that suspicious looking box! It's too late now to say sorry!
}
Pirate: {
+2 -2
View File
@@ -2002,7 +2002,7 @@ namespace CalamityMod.NPCs.Providence
// Equipment
// 16NOV2025: Ozzatron: item has been chosen as the "Expert gatekept" item for this Calamity boss
// normalOnly.Add(DropHelper.PerPlayer(ModContent.ItemType<BlazingCore>()));
// normalOnly.Add(DropHelper.PerPlayer(ModContent.ItemType<DivineProvidence>()));
// Materials
normalOnly.Add(ModContent.ItemType<DivineGeode>(), 1, 50, 60);
@@ -2675,7 +2675,7 @@ namespace CalamityMod.NPCs.Providence
// Equipment
ModContent.ItemType<ElysianWings>(),
ModContent.ItemType<ElysianAegis>(),
ModContent.ItemType<BlazingCore>(),
ModContent.ItemType<DivineProvidence>(),
ModContent.ItemType<ProfanedSoulCrystal>(),
// Vanity
+28 -68
View File
@@ -876,27 +876,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
rumbleSound.Stop();
canDespawn = true;
for (int x = 0; x < Main.maxProjectiles; x++)
{
Projectile projectile = Main.projectile[x];
if (projectile.active)
{
if (projectile.type == bulletHellblast ||
projectile.type == barrage ||
projectile.type == wave)
{
if (projectile.timeLeft > 60)
projectile.timeLeft = 60;
}
else if (projectile.type == fireblast || projectile.type == gigablast)
{
projectile.ai[2] = 1f;
if (projectile.timeLeft > 15)
projectile.timeLeft = 15;
}
}
}
DespawnProjectiles();
NPC.Opacity = MathHelper.Lerp(NPC.Opacity, 0f, 0.065f);
NPC.velocity = Vector2.Lerp(Vector2.UnitY * -4f, Vector2.Zero, (float)Math.Sin(MathHelper.Pi * NPC.Opacity));
@@ -1883,32 +1863,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
if (!gettingTired5 && IsAtHp_Acceptance)
{
for (int x = 0; x < Main.maxProjectiles; x++)
{
Projectile projectile = Main.projectile[x];
if (projectile.active)
{
if (projectile.type == ModContent.ProjectileType<BrimstoneMonster>())
{
if (projectile.timeLeft > 90)
projectile.timeLeft = 90;
}
if (projectile.type == bulletHellblast ||
projectile.type == barrage ||
projectile.type == wave)
{
if (projectile.timeLeft > 60)
projectile.timeLeft = 60;
}
else if (projectile.type == fireblast || projectile.type == gigablast)
{
projectile.ai[2] = 1f;
if (projectile.timeLeft > 15)
projectile.timeLeft = 15;
}
}
}
DespawnProjectiles(true);
if (!BossRushEvent.BossRushActive)
{
@@ -1989,6 +1944,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
castFire.noGravity = true;
}
DespawnProjectiles();
SoundEngine.PlaySound(SoundID.DD2_DarkMageCastHeal, player.Center);
gettingTired = true;
return;
@@ -1998,27 +1954,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
#region DespawnProjectiles
if (bulletHellCounter2 % BulletHellDuration == 0 && despawnProj)
{
for (int x = 0; x < Main.maxProjectiles; x++)
{
Projectile projectile = Main.projectile[x];
if (projectile.active)
{
if (projectile.type == bulletHellblast ||
projectile.type == barrage ||
projectile.type == wave)
{
if (projectile.timeLeft > 60)
projectile.timeLeft = 60;
}
else if (projectile.type == fireblast || projectile.type == gigablast)
{
projectile.ai[2] = 1f;
if (projectile.timeLeft > 15)
projectile.timeLeft = 15;
}
}
}
DespawnProjectiles();
despawnProj = false;
}
#endregion
@@ -3186,6 +3122,30 @@ namespace CalamityMod.NPCs.SupremeCalamitas
#endregion
}
private static void DespawnProjectiles(bool despawnMaelstrom = false)
{
foreach (Projectile p in Main.ActiveProjectiles)
{
if (despawnMaelstrom && p.type == ModContent.ProjectileType<BrimstoneMonster>())
{
if (p.timeLeft > 90)
p.timeLeft = 90;
}
if (p.type == ModContent.ProjectileType<BrimstoneHellblast2>() || p.type == ModContent.ProjectileType<BrimstoneBarrage>() || p.type == ModContent.ProjectileType<BrimstoneWave>())
{
if (p.timeLeft > 60)
p.timeLeft = 60;
}
else if (p.type == ModContent.ProjectileType<SCalBrimstoneFireblast>() || p.type == ModContent.ProjectileType<SCalBrimstoneGigablast>())
{
p.ai[2] = 1f;
if (p.timeLeft > 15)
p.timeLeft = 15;
}
}
}
public void DoHeartsSpawningCastAnimation(Player target, bool death)
{
int tempSpawnY = spawnY;
Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

+2 -2
View File
@@ -138,8 +138,8 @@ namespace CalamityMod.Projectiles.Melee
public void StickToOwner()
{
// Glue the sword to its owner. This applies a handful of offsets to make the blade look like it's roughly inside of the owner's hand.
Projectile.Center = Owner.RotatedRelativePoint(Owner.MountedCenter, true) + SwordDirection * new Vector2(7f, 16f) * Projectile.scale;
Projectile.Center -= Projectile.velocity.SafeNormalize(Vector2.UnitY) * new Vector2(66f, 54f + Projectile.scale * 8f);
Projectile.Center = Owner.RotatedRelativePoint(Owner.MountedCenter, true) + SwordDirection * new Vector2(7f, 7f) * Projectile.scale;
Projectile.Center -= Projectile.velocity.SafeNormalize(Vector2.UnitY) * new Vector2(44f, 54f + Projectile.scale * 8f);
// Set the owner's held projectile to this and register a false item time calculation.
Owner.heldProj = Projectile.whoAmI;
+6 -13
View File
@@ -52,24 +52,17 @@ namespace CalamityMod.Projectiles.Ranged
// Consumes a coin, stores it, then calculates what effect will be executed
if (Projectile.ai[1] == 0)
{
// These checks are here so that the weapon doesn't consume two coins when first used
if (shotonce)
// Ensure the method doesn't consumes ammo on first shot to avoid consuming two coins
if (player.PickAmmo(player.HeldItem, out shot, out scaleFactor, out weaponDamage, out weaponKnockback, out _, !shotonce))
{
if (player.PickAmmo(player.HeldItem, out shot, out scaleFactor, out weaponDamage, out weaponKnockback, out _))
{
Projectile.ai[0] = shot;
Projectile.ai[1] = CalculateOutcome();
}
else
{
Projectile.Kill();
}
Projectile.ai[0] = shot;
Projectile.ai[1] = CalculateOutcome();
}
else
{
Projectile.ai[1] = CalculateOutcome();
shotonce = true;
Projectile.Kill();
}
shotonce = true;
}
rolltimer--;
Binary file not shown.

Before

Width:  |  Height:  |  Size: 240 B

After

Width:  |  Height:  |  Size: 291 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 603 B

After

Width:  |  Height:  |  Size: 695 B

+1 -1
View File
@@ -176,7 +176,7 @@ namespace CalamityMod.Systems.Collections
/// </summary>
public static bool[] HasAccessoryKeybind = Factory.CreateNamedSet("HasAccessoryKeybind")
.Description("Counts this item as having an accessory keybind. Used for assigning which keybind goes to which accessory.")
.RegisterBoolSet(ItemType<AngelicAlliance>(), ItemType<AscendantInsignia>(), ItemType<BlazingCore>(), ItemType<BlunderBooster>(), ItemType<DeadshotBrooch>(), ItemType<FlameLickedShell>(),
.RegisterBoolSet(ItemType<AngelicAlliance>(), ItemType<AscendantInsignia>(), ItemType<DivineProvidence>(), ItemType<BlunderBooster>(), ItemType<DeadshotBrooch>(), ItemType<FlameLickedShell>(),
ItemType<InterstellarStompers>(),ItemType<PlaguedFuelPack>(), ItemType<PlanebreakersPouch>(), ItemType<SpectralVeil>(), ItemType<SpringStool>(), ItemType<ThePointer>(), ItemType<TheTransformer>());
}
}
-8
View File
@@ -1541,14 +1541,6 @@ namespace CalamityMod.Systems
r.Register();
r.DisableDecraft();
// Fledgling Wings
r = Recipe.Create(ItemID.CreativeWings);
r.AddIngredient<AncientBoneDust>(2);
r.AddIngredient(ItemID.Cloud, 5);
r.AddIngredient(ItemID.Feather, 10);
r.AddTile(TileID.Anvils);
r.Register();
// Flying Carpet
r = Recipe.Create(ItemID.FlyingCarpet);
r.AddIngredient(ItemID.Silk, 10);