Merge branch '1.4.4' into mutatedTruffle

This commit is contained in:
Memes committed 2023-09-18 15:22:03 +02:00
commit cdd235cea3
486 files changed
+8438 -5791

No files matched your search

+31 -23
View File
@@ -1,4 +1,5 @@
using CalamityMod.NPCs.CeaselessVoid;
using CalamityMod.NPCs.AstrumAureus;
using CalamityMod.NPCs.CeaselessVoid;
using CalamityMod.NPCs.Crabulon;
using CalamityMod.NPCs.ExoMechs.Apollo;
using CalamityMod.NPCs.ExoMechs.Artemis;
@@ -39,6 +40,9 @@ namespace CalamityMod.Balancing
IBalancingRule ResistTrueMelee(float f) => new ClassResistBalancingRule(f, TrueMeleeDamageClass.Instance);
// Declare specific filters.
bool BigGaelsSkullFilter(Projectile p) =>
p.type == ProjectileType<GaelSkull>() && p.ai[1] == 1;
bool DragonRageFilter(Projectile p) =>
p.type == ProjectileType<DragonRageStaff>() || p.type == ProjectileType<DragonRageFireball>() || (p.type == ProjectileType<FuckYou>() && p.CountsAsClass<MeleeDamageClass>());
@@ -48,12 +52,6 @@ namespace CalamityMod.Balancing
bool MushroomSpearFilter(Projectile p) =>
p.type == ProjectileID.Mushroom && Main.player[p.owner].ActiveItem().type == ItemID.MushroomSpear;
bool TrueNightsEdgeFilter(Projectile p) =>
p.type == ProjectileID.NightBeam && Main.player[p.owner].ActiveItem().type == ItemID.TrueNightsEdge;
bool TerraBladeFilter(Projectile p) =>
p.type == ProjectileID.TerraBeam && Main.player[p.owner].ActiveItem().type == ItemID.TerraBlade;
bool SpectreMaskSetBonusFilter(Projectile p) =>
p.type == ProjectileID.SpectreWrath && Main.player[p.owner].ghostHurt;
@@ -71,12 +69,6 @@ namespace CalamityMod.Balancing
// Nerf Cursed Dart flames by 50%.
Do(new ProjectileResistBalancingRule(0.5f, ProjectileID.CursedDartFlame)),
// Nerf True Night's Edge projectiles by 33% to cancel out the 1.5x multiplier it gets.
Do(new ProjectileSpecificRequirementBalancingRule(1f / 3f * 2f, TrueNightsEdgeFilter)),
// Nerf Terra Blade projectiles by 33% to cancel out the 1.5x multiplier it gets.
Do(new ProjectileSpecificRequirementBalancingRule(1f / 3f * 2f, TerraBladeFilter)),
// Nerf Mushroom Spear projectiles by 50%.
Do(new ProjectileSpecificRequirementBalancingRule(0.5f, MushroomSpearFilter)),
@@ -148,6 +140,11 @@ namespace CalamityMod.Balancing
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.DestroyerIDs, Do(new ProjectileResistBalancingRule(0.85f, ProjectileType<Snowflake>()))));
#endregion
#region Astrum Aureus
//35% resist to The Ballista's greatarrows.
NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCType<AstrumAureus>(), Do(new ProjectileResistBalancingRule(0.65f, ProjectileType<BallistaGreatArrow>()))));
#endregion
#region Ravager
// 50% resist to true melee.
NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCType<RavagerBody>(), ResistTrueMelee(0.5f)));
@@ -158,6 +155,11 @@ namespace CalamityMod.Balancing
NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCID.DukeFishron, Do(new ProjectileResistBalancingRule(1.35f, ProjectileType<SakuraBullet>(), ProjectileType<PurpleButterfly>()))));
#endregion
#region Empress of Light
// 30% resist to Plague Tainted SMG's drones.
NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCID.HallowBoss, Do(new ProjectileResistBalancingRule(0.7f, ProjectileType<PlagueTaintedDrone>()))));
#endregion
#region Lunatic Cultist
// 25% resist to Resurrection Butterfly.
NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCID.CultistBoss, Do(new ProjectileResistBalancingRule(0.75f, ProjectileType<SakuraBullet>(), ProjectileType<PurpleButterfly>()))));
@@ -210,8 +212,8 @@ namespace CalamityMod.Balancing
// 50% resist to Elemental Axes.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.StormWeaverIDs, Do(new ProjectileResistBalancingRule(0.5f, ProjectileType<ElementalAxeMinion>()))));
// 50% resist to Pristine Fury.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.StormWeaverIDs, Do(new ProjectileResistBalancingRule(0.5f, ProjectileType<PristineFire>()))));
// 50% resist to Pristine Fury's alt fire.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.StormWeaverIDs, Do(new ProjectileResistBalancingRule(0.5f, ProjectileType<PristineSecondary>()))));
// 50% resist to Tactician's Trump Card explosions.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.StormWeaverIDs, Do(new ProjectileResistBalancingRule(0.5f, ProjectileType<TacticiansElectricBoom>()))));
@@ -241,8 +243,6 @@ namespace CalamityMod.Balancing
// 10% resist to Old Reaper.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.AresIDs, Do(new ProjectileResistBalancingRule(0.9f, ProjectileType<ReaperProjectile>()))));
// 5% resist to Phantasmal Ruin.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.AresIDs, Do(new ProjectileResistBalancingRule(0.95f, ProjectileType<PhantasmalSoul>(), ProjectileType<PhantasmalRuinProj>(), ProjectileType<PhantasmalRuinGhost>()))));
#endregion
#region Exo Mechs: Ares
@@ -255,6 +255,9 @@ namespace CalamityMod.Balancing
// 30% resist to the Spin Throw part of the Ark of the Cosmos' combo.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.AresIDs, Do(new ProjectileSpecificRequirementBalancingRule(0.7f, AotCThrowCombo))));
// 25% resist to Aetherflux Cannon.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.AresIDs, Do(new ProjectileResistBalancingRule(0.75f, ProjectileType<PhasedGodRay>()))));
// 25% resist to Murasama.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.AresIDs, Do(new ProjectileResistBalancingRule(0.75f, ProjectileType<MurasamaSlash>()))));
@@ -320,9 +323,6 @@ namespace CalamityMod.Balancing
// 40% resist to Rancor.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.6f, ProjectileType<RancorLaserbeam>()))));
// 35% resist to Zenith.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.65f, ProjectileID.FinalFractal))));
// 30% resist to the Spin Throw part of the Ark of the Cosmos' combo.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileSpecificRequirementBalancingRule(0.7f, AotCThrowCombo))));
@@ -344,16 +344,21 @@ namespace CalamityMod.Balancing
// 25% resist to Dragon Rage projectiles.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileSpecificRequirementBalancingRule(0.75f, DragonRageFilter))));
// 25% resist to Gael's Greatsword's big skulls.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileSpecificRequirementBalancingRule(0.75f, BigGaelsSkullFilter))));
// 25% resist to Godslayer Slugs.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.75f, ProjectileType<GodSlayerSlugProj>()))));
// 25% resist to Luminite Bullets.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.75f, ProjectileID.MoonlordBullet))));
// 25% resist to Zenith.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.75f, ProjectileID.FinalFractal))));
// 20% resist to Blood Boiler fire.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.8f, ProjectileType<BloodBoilerFire>()))));
// 20% resist to Eradicator beams.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.8f, ProjectileType<NebulaShot>()))));
@@ -383,12 +388,15 @@ namespace CalamityMod.Balancing
// 85% resist to Chicken Cannon.
NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCType<SoulSeekerSupreme>(), new ProjectileResistBalancingRule(0.15f, ProjectileType<ChickenExplosion>())));
// 40% resist to Subsuming Vortex.
NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCType<SoulSeekerSupreme>(), new ProjectileResistBalancingRule(0.6f, ProjectileType<ExoVortex>(), ProjectileType<ExoVortex2>(), ProjectileType<EnormousConsumingVortex>())));
// 50% resist to Subsuming Vortex.
NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCType<SoulSeekerSupreme>(), new ProjectileResistBalancingRule(0.5f, ProjectileType<ExoVortex>(), ProjectileType<ExoVortex2>(), ProjectileType<EnormousConsumingVortex>())));
// 30% resist to Murasama.
NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCType<SoulSeekerSupreme>(), new ProjectileResistBalancingRule(0.7f, ProjectileType<MurasamaSlash>())));
// 30% resist to Zenith.
NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCType<SoulSeekerSupreme>(), new ProjectileResistBalancingRule(0.7f, ProjectileID.FinalFractal)));
// 25% resist to Yharim's Crystal.
NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCType<SoulSeekerSupreme>(), new ProjectileResistBalancingRule(0.75f, ProjectileType<YharimsCrystalBeam>())));
+12 -1
View File
@@ -59,7 +59,18 @@
// Rogue stealth
// If stealth is too weak, increase this number. If stealth is too strong, decrease this number.
// This value is intentionally not readonly.
public static double UniversalStealthStrikeDamageFactor = 0.5;
public static double UniversalStealthStrikeDamageFactor = 0.41;
// Shade - 07/09/2023
// Universal Stealth dmg factor was nerfed to 0.41 from 0.5
// Stealth damage prefixes were bugged, causing that stealth strikes with the Mighty, Hefty and most importantly Flawless
// dealt less damage than intended; idk how long this thing has been for but looking at #bug-reports and #known-bugs its
// likely at least 7 months old, buried deep beneath a lot other bugs due to being in the port and forgotten about.
// Due to how impactful the fix was, the change had to happen and thus the nerf was made.
//
// This nerf should be reversed once the stealth -> focus rogue rework or rogue/stealth III or however you want to call it occurs,
// as of today summoner is the priority class now but once we're done with the Summoner minion culling and its Whip Hell we should
// probably start working on rogue afterwards.
internal static readonly float BaseStealthGenTime = 4f; // 4 seconds
internal static readonly float MovingStealthGenRatio = 0.5f;
+14 -1
View File
@@ -182,7 +182,20 @@ namespace CalamityMod.Buffs
case BuffID.Mining:
tip = tip.Replace("25", "15");
break;
case BuffID.MonsterBanner: //Vanilla's wording is unclear and nondescript
var tooltipLines = tip.Split("\n");
var result = "";
foreach (var tooltip in tooltipLines)
{
if (tooltip == tooltipLines[0])
result += CalamityUtils.GetText("Vanilla.BuffDescription.Banner");
else
result += "\n" + tooltip;
}
tip = result;
break;
case BuffID.NebulaUpDmg1:
tip = tip.Replace("15", "7.5");
break;
Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 751 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 573 B

After

Width:  |  Height:  |  Size: 583 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 683 B

After

Width:  |  Height:  |  Size: 523 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 826 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 752 B

After

Width:  |  Height:  |  Size: 691 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 899 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 799 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 561 B

After

Width:  |  Height:  |  Size: 704 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 765 B

-34
View File
@@ -1,34 +0,0 @@
using CalamityMod.CalPlayer;
using CalamityMod.Projectiles.Summon;
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Buffs.Summon
{
public class Calamari : ModBuff
{
public override void SetStaticDefaults()
{
Main.buffNoTimeDisplay[Type] = true;
Main.buffNoSave[Type] = true;
//Main.persistentBuff[Type] = true;
}
public override void Update(Player player, ref int buffIndex)
{
CalamityPlayer modPlayer = player.Calamity();
if (player.ownedProjectileCounts[ModContent.ProjectileType<CalamariMinion>()] > 0)
{
modPlayer.calamari = true;
}
if (!modPlayer.calamari)
{
player.DelBuff(buffIndex);
buffIndex--;
}
else
{
player.buffTime[buffIndex] = 18000;
}
}
}
}
@@ -1,11 +1,11 @@
using CalamityMod.CalPlayer;
using CalamityMod.CalPlayer;
using CalamityMod.Projectiles.Summon;
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Buffs.Summon
{
public class BloodClot : ModBuff
public class CalamarisLamentBuff : ModBuff
{
public override void SetStaticDefaults()
{
@@ -17,11 +17,11 @@ namespace CalamityMod.Buffs.Summon
public override void Update(Player player, ref int buffIndex)
{
CalamityPlayer modPlayer = player.Calamity();
if (player.ownedProjectileCounts[ModContent.ProjectileType<BloodClotMinion>()] > 0)
if (player.ownedProjectileCounts[ModContent.ProjectileType<CalamarisLamentMinion>()] > 0)
{
modPlayer.bClot = true;
modPlayer.CalamarisLament = true;
}
if (!modPlayer.bClot)
if (!modPlayer.CalamarisLament)
{
player.DelBuff(buffIndex);
buffIndex--;
File renamed without changes.

Before

Width:  |  Height:  |  Size: 616 B

After

Width:  |  Height:  |  Size: 616 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 404 B

After

Width:  |  Height:  |  Size: 662 B

@@ -1,11 +1,12 @@
using CalamityMod.CalPlayer;
using CalamityMod.CalPlayer;
using CalamityMod.Projectiles.Summon;
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Buffs.Summon
{
public class PlantationBuff : ModBuff
[LegacyName("PlantationBuff")]
public class PlantationStaffBuff : ModBuff
{
public override void SetStaticDefaults()
{
@@ -17,11 +18,11 @@ namespace CalamityMod.Buffs.Summon
public override void Update(Player player, ref int buffIndex)
{
CalamityPlayer modPlayer = player.Calamity();
if (player.ownedProjectileCounts[ModContent.ProjectileType<PlantSummon>()] > 0)
if (player.ownedProjectileCounts[ModContent.ProjectileType<PlantationStaffSummon>()] > 0)
{
modPlayer.plantera = true;
modPlayer.PlantationSummon = true;
}
if (!modPlayer.plantera)
if (!modPlayer.PlantationSummon)
{
player.DelBuff(buffIndex);
buffIndex--;
File renamed without changes.

Before

Width:  |  Height:  |  Size: 621 B

After

Width:  |  Height:  |  Size: 621 B

@@ -4,7 +4,7 @@ using Terraria.ModLoader;
namespace CalamityMod.Buffs.Summon
{
public class ProfanedBabs : ModBuff //Buff name is reference to how I refer to the guardians as my babs ~Amber
public class ProfanedSoulGuardians : ModBuff
{
public override void SetStaticDefaults()
{
@@ -15,7 +15,7 @@ namespace CalamityMod.Buffs.Summon
public override void Update(Player player, ref int buffIndex)
{
CalamityPlayer modPlayer = player.Calamity();
if (!modPlayer.donutBabs || modPlayer.profanedCrystalBuffs)
if (!modPlayer.pSoulGuardians || modPlayer.profanedCrystalBuffs)
{
player.DelBuff(buffIndex);
buffIndex--;
File renamed without changes.

Before

Width:  |  Height:  |  Size: 684 B

After

Width:  |  Height:  |  Size: 684 B

+40 -60
View File
@@ -41,7 +41,7 @@ using CalamityMod.Projectiles.Ranged;
using CalamityMod.Projectiles.Rogue;
using CalamityMod.Projectiles.Summon;
using CalamityMod.Projectiles.Typeless;
using CalamityMod.Projectiles.Typless;
using CalamityMod.Projectiles.Healing;
using CalamityMod.UI;
using CalamityMod.World;
using Microsoft.Xna.Framework;
@@ -370,13 +370,13 @@ namespace CalamityMod.CalPlayer
#endregion
#region Energy Shields
public bool HasAnyEnergyShield => roverDrive || lunicCorpsSet || sponge;
public bool HasAnyEnergyShield => roverDrive || lunicCorpsSet || ((pSoulArtifact && !profanedCrystal) || profanedCrystalBuffs) || sponge;
public bool freeDodgeFromShieldAbsorption = false;
public bool drawnAnyShieldThisFrame = false;
// TODO -- Some way to show the player their total shield points.
public int TotalEnergyShielding => RoverDriveShieldDurability + LunicCorpsShieldDurability + SpongeShieldDurability;
public int TotalMaxShieldDurability => (roverDrive ? RoverDrive.ShieldDurabilityMax : 0) + (lunicCorpsSet ? LunicCorpsHelmet.ShieldDurabilityMax : 0) + (sponge ? TheSponge.ShieldDurabilityMax : 0);
public int TotalEnergyShielding => RoverDriveShieldDurability + LunicCorpsShieldDurability + pSoulShieldDurability + SpongeShieldDurability;
public int TotalMaxShieldDurability => (roverDrive ? RoverDrive.ShieldDurabilityMax : 0) + (lunicCorpsSet ? LunicCorpsHelmet.ShieldDurabilityMax : 0) + (profanedCrystalBuffs ? ProfanedSoulCrystal.ShieldDurabilityMax : ((pSoulArtifact && !profanedCrystal) ? ProfanedSoulArtifact.ShieldDurabilityMax : 0)) + (sponge ? TheSponge.ShieldDurabilityMax : 0);
public int RoverDriveShieldDurability = 0;
public int LunicCorpsShieldDurability = 0;
@@ -389,6 +389,12 @@ namespace CalamityMod.CalPlayer
// Lunic Corps shield comes from an armor set and its visibility is non optional
internal float lunicCorpsShieldPartialRechargeProgress = 0f;
internal bool playedLunicCorpsShieldSound = false;
//Profaned soul shield applies to psa and psc, with differing max hps for each
public int pSoulShieldDurability = 0;
public bool pSoulShieldVisible = false;
internal bool playedProfanedSoulShieldSound = false;
internal float pSoulShieldPartialRechargeProgress = 0f;
public bool sponge = false;
public bool spongeShieldVisible = false;
@@ -497,7 +503,6 @@ namespace CalamityMod.CalPlayer
public bool tracersElysian = false;
public bool tracersSeraph = false;
public bool frostFlare = false;
public bool beeResist = false;
public bool uberBees = false;
public bool evolution = false;
public int evolutionLifeRegenCounter = 0;
@@ -550,7 +555,7 @@ namespace CalamityMod.CalPlayer
public bool eArtifact = false;
public bool dArtifact = false;
public bool auricSArtifact = false;
public bool pArtifact = false;
public bool pSoulArtifact = false;
public bool giantPearl = false;
public bool normalityRelocator = false;
public bool flameLickedShell = false;
@@ -926,7 +931,7 @@ namespace CalamityMod.CalPlayer
public bool herring = false;
public bool blackhawk = false;
public bool cosmicViper = false;
public bool calamari = false;
public bool CalamarisLament = false;
public bool cEyes = false;
public bool cSlime = false;
public bool cSlime2 = false;
@@ -944,9 +949,9 @@ namespace CalamityMod.CalPlayer
public bool cLamp = false;
public bool pGuy = false;
public bool sandnado = false;
public bool plantera = false;
public bool PlantationSummon = false;
public bool astralProbe = false;
public bool donutBabs = false;
public bool pSoulGuardians = false;
public bool cEnergy = false;
public int healCounter = 300;
public bool shellfish = false;
@@ -1453,6 +1458,9 @@ namespace CalamityMod.CalPlayer
LunicCorpsShieldDurability = 0;
if (!sponge)
SpongeShieldDurability = 0;
if (!pSoulArtifact)
pSoulShieldDurability = 0;
pSoulShieldVisible = false;
roverDrive = false;
roverDriveShieldVisible = false;
sponge = false;
@@ -1589,7 +1597,6 @@ namespace CalamityMod.CalPlayer
aBrain = false;
amalgam = false;
frostFlare = false;
beeResist = false;
uberBees = false;
evolution = false;
nanotech = false;
@@ -1636,7 +1643,7 @@ namespace CalamityMod.CalPlayer
eArtifact = false;
dArtifact = false;
auricSArtifact = false;
pArtifact = false;
pSoulArtifact = false;
giantPearl = false;
normalityRelocator = false;
flameLickedShell = false;
@@ -1929,7 +1936,7 @@ namespace CalamityMod.CalPlayer
herring = false;
blackhawk = false;
cosmicViper = false;
calamari = false;
CalamarisLament = false;
cEyes = false;
cSlime = false;
cSlime2 = false;
@@ -1951,7 +1958,7 @@ namespace CalamityMod.CalPlayer
cLamp = false;
pGuy = false;
cEnergy = false;
donutBabs = false;
pSoulGuardians = false;
sWaifu = false;
dWaifu = false;
cWaifu = false;
@@ -1963,7 +1970,7 @@ namespace CalamityMod.CalPlayer
sCrystal = false;
sGod = false;
sandnado = false;
plantera = false;
PlantationSummon = false;
astralProbe = false;
victideSnail = false;
cSpirit = false;
@@ -2501,6 +2508,7 @@ namespace CalamityMod.CalPlayer
RoverDriveShieldDurability = 0;
LunicCorpsShieldDurability = 0;
SpongeShieldDurability = 0;
pSoulShieldDurability = 0;
#endregion
#region UI
@@ -3134,34 +3142,7 @@ namespace CalamityMod.CalPlayer
#endregion
#region TeleportMethods
public static Vector2? GetJunglePosition(Player player)
{
bool canSpawn = false;
int teleportStartX = Abyss.AtLeftSideOfWorld ? (int)(Main.maxTilesX * 0.65) : (int)(Main.maxTilesX * 0.2);
int teleportRangeX = (int)(Main.maxTilesX * 0.15);
int teleportStartY = (int)Main.worldSurface - 75;
int teleportRangeY = 50;
Player.RandomTeleportationAttemptSettings settings = new Player.RandomTeleportationAttemptSettings
{
mostlySolidFloor = true,
avoidAnyLiquid = true,
avoidLava = true,
avoidHurtTiles = true,
avoidWalls = true,
attemptsBeforeGivingUp = 1000,
maximumFallDistanceFromOrignalPoint = 30
};
Vector2 vector = player.CheckForGoodTeleportationSpot(ref canSpawn, teleportStartX, teleportRangeX, teleportStartY, teleportRangeY, settings);
if (canSpawn)
{
return (Vector2?)vector;
}
return null;
}
// Used for Boss Rush WoF
public static Vector2? GetUnderworldPosition(Player player)
{
bool canSpawn = false;
@@ -3598,7 +3579,7 @@ namespace CalamityMod.CalPlayer
public override bool CanSellItem(NPC vendor, Item[] shopInventory, Item item)
{
if (item.type == ModContent.ItemType<ProfanedSoulCrystal>())
return DownedBossSystem.downedCalamitas; //no easy moneycoins for post doggo/yhar
return DownedBossSystem.downedCalamitas && DownedBossSystem.downedExoMechs; //no easy moneycoins for post doggo/yhar
return base.CanSellItem(vendor, shopInventory, item);
}
@@ -3613,6 +3594,7 @@ namespace CalamityMod.CalPlayer
(lunicCorpsLegs ? 0.1f : 0f) +
(shadowSpeed ? 0.5f : 0f) +
(stressPills ? 0.05f : 0f) +
(aeroStone && Player.equippedWings != null && Player.wingTime == 0f ? 0.5f : 0f) +
((abyssalDivingSuit && Player.IsUnderwater()) ? 0.05f : 0f) +
(aquaticHeartWaterBuff ? 0.15f : 0f) +
((frostFlare && Player.statLife < (int)(Player.statLifeMax2 * 0.25)) ? 0.15f : 0f) +
@@ -3709,7 +3691,7 @@ namespace CalamityMod.CalPlayer
{
// Apply weapon modifier stealth strike damage bonus
if (item.Calamity().StealthStrikePrefixBonus != 0f && StealthStrikeAvailable())
damage += 1f - item.Calamity().StealthStrikePrefixBonus;
damage += 1f + item.Calamity().StealthStrikePrefixBonus;
}
}
@@ -4657,31 +4639,23 @@ namespace CalamityMod.CalPlayer
if (Player.whoAmI == Main.myPlayer && !endoCooper && randAmt > 0 && Main.rand.NextBool(randAmt) && chaseable)
{
int spearsFired = 0;
for (int i = 0; i < Main.projectile.Length; i++)
{
if (spearsFired == 2)
break;
if (Main.projectile[i].owner == Player.whoAmI && Main.projectile[i].friendly)
{
bool attack = Main.projectile[i].owner == Player.whoAmI && Main.projectile[i].type == ModContent.ProjectileType<MiniGuardianAttack>();
bool defense = Main.projectile[i].owner == Player.whoAmI && Main.projectile[i].type == ModContent.ProjectileType<MiniGuardianDefense>();
if (attack || defense)
bool attack = Main.projectile[i].owner == Player.whoAmI && Main.projectile[i].type == ModContent.ProjectileType<MiniGuardianAttack>();
if (attack)
{
int numSpears = attack ? 12 : 6;
int dam = Main.projectile[i].originalDamage;
if (!attack)
dam = (int)(dam * 0.5f);
float angleVariance = MathHelper.TwoPi / (float)numSpears;
float spinOffsetAngle = MathHelper.Pi / (2f * numSpears);
int numSpears = profanedCrystalBuffs ? 12 : 6;
int dam = (int)(Main.projectile[i].originalDamage * (profanedCrystalBuffs ? 1f : 0.25f));
for (int x = 0; x < numSpears; x++)
{
Vector2 posVec = new Vector2(8f, 0f).RotatedByRandom(MathHelper.TwoPi);
posVec = posVec.RotatedBy(angleVariance);
Vector2 velocity = new Vector2(posVec.X, posVec.Y).RotatedBy(spinOffsetAngle);
velocity.Normalize();
velocity *= 8f;
int proj = Projectile.NewProjectile(source, Main.projectile[i].Center + posVec, velocity, ModContent.ProjectileType<MiniGuardianSpear>(), dam, 0f, Player.whoAmI, 0f, 0f);
float angle = MathHelper.TwoPi / numSpears * x;
int proj = Projectile.NewProjectile(source, Main.projectile[i].Center, angle.ToRotationVector2().RotatedBy(Math.Atan(-45f)) * 8f, ModContent.ProjectileType<MiniGuardianSpear>(), dam, 0f, Player.whoAmI, 0f, 0f);
Main.projectile[proj].originalDamage = dam;
}
spearsFired++;
@@ -4730,7 +4704,6 @@ namespace CalamityMod.CalPlayer
public override void PostUpdate() //needs to be here else it doesn't work properly, otherwise i'd have stuck it with the wing anim stuffs
{
ProfanedSoulCrystal.DetermineTransformationEligibility(Player);
if (!profanedCrystalHide && (profanedCrystal || profanedCrystalForce) && Player.legs == EquipLoader.GetEquipSlot(Mod, "ProfanedSoulCrystal", EquipType.Legs))
{
bool usingCarpet = Player.carpetTime > 0 && Player.controlJump; //doesn't make sense for carpet to use jump frame since you have solid ground
@@ -4747,6 +4720,7 @@ namespace CalamityMod.CalPlayer
#endregion
#region Misc Stuff
private static int musicModDisplayDelay = -1;
// Triggers effects that must occur when the player enters the world. This sends a bunch of packets in multiplayer.
// It also starts the speedrun timer if applicable.
@@ -4765,6 +4739,12 @@ namespace CalamityMod.CalPlayer
CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.Misc.WikiStatus1");
CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.Misc.WikiStatus2");
}
// Set a random delay between 12 and 20 seconds. When this delay hits zero, the music mod reminder message displays
if (CalamityMod.Instance.musicMod is null && CalamityConfig.Instance.MusicModReminderMessage)
{
musicModDisplayDelay = Main.rand.Next(CalamityUtils.SecondsToFrames(12), CalamityUtils.SecondsToFrames(20) + 1);
}
}
/// <summary>
+1 -1
View File
@@ -666,7 +666,7 @@ namespace CalamityMod.CalPlayer
ModContent.ItemType<HalleysInferno>(),
ModContent.ItemType<CleansingBlaze>(),
ModContent.ItemType<ElementalEruption>(),
ModContent.ItemType<GodsBellows>(),
ModContent.ItemType<DeadSunsWind>(),
ModContent.ItemType<Meowthrower>(),
ModContent.ItemType<OverloadedBlaster>(),
ModContent.ItemType<TerraFlameburster>(),
+72 -26
View File
@@ -25,6 +25,7 @@ using CalamityMod.NPCs.Abyss;
using CalamityMod.NPCs.ExoMechs.Apollo;
using CalamityMod.NPCs.NormalNPCs;
using CalamityMod.NPCs.Other;
using CalamityMod.NPCs.ProfanedGuardians;
using CalamityMod.NPCs.Providence;
using CalamityMod.NPCs.SunkenSea;
using CalamityMod.NPCs.SupremeCalamitas;
@@ -764,12 +765,6 @@ namespace CalamityMod.CalPlayer
npc.Calamity().relicOfResilienceWeakness = 0;
}
if (beeResist)
{
if (CalamityLists.beeEnemyList.Contains(npc.type))
contactDamageReduction += 0.25;
}
if (eskimoSet)
{
if (npc.coldDamage)
@@ -1027,12 +1022,6 @@ namespace CalamityMod.CalPlayer
projectileDamageReduction += 0.5;
}
if (beeResist)
{
if (CalamityLists.beeProjectileList.Contains(proj.type))
projectileDamageReduction += 0.25;
}
if (trinketOfChiBuff)
projectileDamageReduction += 0.1;
@@ -1537,6 +1526,12 @@ namespace CalamityMod.CalPlayer
SoundEngine.PlaySound(TheSponge.ShieldHurtSound, Player.Center);
hurtSoundTimer = 20;
}
else if (((pSoulArtifact && !profanedCrystal) || profanedCrystalBuffs) && pSoulShieldDurability > 0)
{
modifiers.DisableSound();
SoundEngine.PlaySound(ProfanedGuardianDefender.ShieldDeathSound);
hurtSoundTimer = 20;
}
else if ((profanedCrystal || profanedCrystalForce) && !profanedCrystalHide)
{
modifiers.DisableSound();
@@ -1644,6 +1639,7 @@ namespace CalamityMod.CalPlayer
// Currently implemented energy shields:
// - Rover Drive
// - Lunic Corps Armor set bonus
// - Profaned Soul Artifact/Crystal
// - The Sponge
//
// If the shield(s) completely absorb the hit, iframes are granted on the spot and the hit is marked to be dodged.
@@ -1721,6 +1717,39 @@ namespace CalamityMod.CalPlayer
// Actually remove damage from the incoming hit, so that later shields have less damage incoming.
info.Damage -= masterChefDamageBlocked;
}
// PSA
if (pSoulArtifact && pSoulShieldDurability > 0 && !shieldsFullyAbsorbedHit)
{
// Check whether this shield can fully absorb the incoming hit (or what's left of it).
bool thisShieldCanFullyAbsorb = pSoulShieldDurability >= info.Damage;
// Tally up how much damage was blocked by this shield.
int pSoulDamageBlocked = Math.Min(pSoulShieldDurability, info.Damage);
totalDamageBlocked += pSoulDamageBlocked;
// Deal all incoming damage to this shield, because it is available.
pSoulShieldDurability -= info.Damage;
shieldsTookHit = true;
// Hits which break the PSA shield cause a sound and slight screen shake.
// Multiple shields breaking simultaneously has slightly stronger screen shake.
if (pSoulShieldDurability <= 0)
{
pSoulShieldDurability = 0;
SoundEngine.PlaySound(SoundID.Lavafall, Player.Center);
Player.Calamity().GeneralScreenShakePower += anyShieldBroke ? 0.5f : 2f;
anyShieldBroke = true;
}
// Mark the hit as being canceled if this shield has enough durability to fully absorb it.
// This prevents further shields from attempting to absorb the hit.
if (thisShieldCanFullyAbsorb)
shieldsFullyAbsorbedHit = true;
// Actually remove damage from the incoming hit, so that later shields have less damage incoming.
info.Damage -= pSoulDamageBlocked;
}
// THE SPONGE
if (sponge && SpongeShieldDurability > 0 && !shieldsFullyAbsorbedHit)
@@ -1768,20 +1797,33 @@ namespace CalamityMod.CalPlayer
// Spawn particles when hit with the shields up, regardless of whether or not the shields broke.
// More particles spawn if a shield broke.
int numParticles = Main.rand.Next(2, 6) + (anyShieldBroke ? 6 : 0);
for (int i = 0; i < numParticles; i++)
if (pSoulArtifact)
{
// Rover Drive has slightly higher particle velocity
float maxVelocity = roverDrive ? 14f : 7f;
Vector2 velocity = Main.rand.NextVector2CircularEdge(1f, 1f) * Main.rand.NextFloat(3f, maxVelocity);
velocity.X += 5f * info.HitDirection;
for (int i = 0; i < Main.rand.Next(4, 8); i++) //very light dust
{
Dust dust = Dust.NewDustDirect(Player.position, Player.width, Player.height, (int)CalamityDusts.ProfanedFire);
dust.velocity = Main.rand.NextVector2Circular(3.5f, 3.5f);
dust.velocity.Y -= Main.rand.NextFloat(1f, 3f);
dust.scale = Main.rand.NextFloat(1.15f, 1.45f);
}
}
else
{
int numParticles = Main.rand.Next(2, 6) + (anyShieldBroke ? 6 : 0);
for (int i = 0; i < numParticles; i++)
{
// Rover Drive has slightly higher particle velocity
float maxVelocity = roverDrive ? 14f : 7f;
Vector2 velocity = Main.rand.NextVector2CircularEdge(1f, 1f) * Main.rand.NextFloat(3f, maxVelocity);
velocity.X += 5f * info.HitDirection;
float scale = Main.rand.NextFloat(2.5f, 3f);
Color particleColor = Main.rand.NextBool() ? new Color(99, 255, 229) : new Color(25, 132, 247);
int lifetime = 25;
float scale = Main.rand.NextFloat(2.5f, 3f);
Color particleColor = Main.rand.NextBool() ? new Color(99, 255, 229) : new Color(25, 132, 247);
int lifetime = 25;
var shieldParticle = new TechyHoloysquareParticle(Player.Center, velocity, scale, particleColor, lifetime);
GeneralParticleHandler.SpawnParticle(shieldParticle);
var shieldParticle = new TechyHoloysquareParticle(Player.Center, velocity, scale, particleColor, lifetime);
GeneralParticleHandler.SpawnParticle(shieldParticle);
}
}
// Update Rover Drive durability on the cooldown rack.
@@ -1792,6 +1834,10 @@ namespace CalamityMod.CalPlayer
if (lunicCorpsSet && cooldowns.TryGetValue(Cooldowns.LunicCorpsShieldDurability.ID, out var masterChefDurabilityCD))
masterChefDurabilityCD.timeLeft = LunicCorpsShieldDurability;
// Update PSA/PSC durability on the cooldown rack
if ((pSoulArtifact && (!profanedCrystal || profanedCrystalBuffs)) && cooldowns.TryGetValue(Cooldowns.ProfanedSoulShield.ID, out var profanedSoulDurabilityCD))
profanedSoulDurabilityCD.timeLeft = pSoulShieldDurability;
// Update Sponge durability on the cooldown rack.
if (sponge && cooldowns.TryGetValue(SpongeDurability.ID, out var spongeDurabilityCD))
spongeDurabilityCD.timeLeft = SpongeShieldDurability;
@@ -1809,6 +1855,9 @@ namespace CalamityMod.CalPlayer
if (lunicCorpsSet)
Player.AddCooldown(LunicCorpsShieldRecharge.ID, LunicCorpsHelmet.ShieldRechargeDelay, true);
if (pSoulArtifact && (!profanedCrystal || profanedCrystalBuffs))
Player.AddCooldown(ProfanedSoulShieldRecharge.ID, profanedCrystalBuffs ? (60 * 5) : (60 * 10), true); // 5 seconds psc, 10 seconds psa
// Set The Sponge's recharge delay to full. Override any existing cooldown instance.
if (sponge)
Player.AddCooldown(SpongeRecharge.ID, TheSponge.ShieldRechargeDelay, true);
@@ -2186,9 +2235,6 @@ namespace CalamityMod.CalPlayer
#region Post Hurt
public override void PostHurt(Player.HurtInfo hurtInfo)
{
if (pArtifact && !profanedCrystal)
Player.AddCooldown(Cooldowns.ProfanedSoulArtifact.ID, CalamityUtils.SecondsToFrames(5));
// Silver Armor medkit timer
if (silverMedkit && hurtInfo.Damage >= SilverArmorSetChange.SetBonusMinimumDamageToHeal)
silverMedkitTimer = SilverArmorSetChange.SetBonusHealTime;
+99 -26
View File
@@ -139,6 +139,9 @@ namespace CalamityMod.CalPlayer
// Potions (Quick Buff && Potion Sickness)
HandlePotions();
// Display the Music Mod Reminder text in chat.
HandleTextChatMessages();
// Check if schematics are present on the mouse, for the sake of registering their recipes.
CheckIfMouseItemIsSchematic();
@@ -1037,19 +1040,13 @@ namespace CalamityMod.CalPlayer
Player.GetCritChance<GenericDamageClass>() += critUp;
}
bool profanedSoulBuffs = profanedCrystalBuffs || (!profanedCrystal && pArtifact) || (profanedCrystal && DownedBossSystem.downedCalamitas && DownedBossSystem.downedExoMechs);
bool profanedSoulBuffs = profanedCrystalBuffs || (!profanedCrystal && pSoulArtifact) || (profanedCrystal && DownedBossSystem.downedCalamitas && DownedBossSystem.downedExoMechs);
// Offense bonus. You always get the max minions, even during the effect of the burnout debuff
// Guardian bonuses
if (profanedSoulBuffs)
Player.maxMinions++;
// Guardian bonuses if not burnt out
if (profanedSoulBuffs && !Player.HasCooldown(Cooldowns.ProfanedSoulArtifact.ID))
{
// Defender bonus
Player.moveSpeed += 0.1f;
Player.endurance += 0.05f;
// Offense bonus
Player.maxMinions++;
// Healer bonus
if (healCounter > 0)
healCounter--;
@@ -1152,7 +1149,7 @@ namespace CalamityMod.CalPlayer
if (instance.timeLeft < 0)
{
handler.OnCompleted();
if (handler.EndSound != null)
if (handler.EndSound != null && handler.ShouldPlayEndSound)
SoundEngine.PlaySound(handler.EndSound.GetValueOrDefault());
expiredCooldowns.Add(id);
}
@@ -1563,8 +1560,8 @@ namespace CalamityMod.CalPlayer
// Absorber bonus
if (absorber)
{
Player.moveSpeed += 0.1f;
Player.jumpSpeedBoost += 0.5f;
Player.moveSpeed += 0.12f;
Player.jumpSpeedBoost += 0.6f;
Player.thorns += 3.5f;
}
@@ -2376,6 +2373,11 @@ namespace CalamityMod.CalPlayer
if (baroclaw)
Player.GetDamage<GenericDamageClass>() += 0.1f;
if (aeroStone)
{
Player.moveSpeed += (Player.equippedWings != null && Player.wingTime == 0f ? 0.25f : 0f);
}
if (gShell)
{
if (giantShellPostHit == 1)
@@ -2419,7 +2421,6 @@ namespace CalamityMod.CalPlayer
if (eGauntlet)
{
Player.kbGlove = true;
Player.magmaStone = true;
Player.GetDamage<MeleeDamageClass>() += 0.15f;
Player.GetCritChance<MeleeDamageClass>() += 5;
}
@@ -2578,7 +2579,6 @@ namespace CalamityMod.CalPlayer
(ZoneAstral ? 0.05 : 0D) +
(harpyRing ? 0.2 : 0D) +
(reaverSpeed ? 0.1 : 0D) +
(aeroStone ? 0.1 : 0D) +
(angelTreads ? 0.1 : 0D) +
(blueCandle ? 0.1 : 0D) +
(soaring ? 0.1 : 0D) +
@@ -2586,9 +2586,6 @@ namespace CalamityMod.CalPlayer
(plagueReaper ? 0.05 : 0D) +
(Player.empressBrooch ? 0.25 : 0D);
if (harpyRing)
Player.moveSpeed += 0.1f;
if (blueCandle)
Player.moveSpeed += 0.1f;
@@ -3004,15 +3001,15 @@ namespace CalamityMod.CalPlayer
if (auricSArtifact && Player.FindBuffIndex(ModContent.BuffType<FieryDraconidBuff>()) != -1)
Player.maxMinions += Player.ownedProjectileCounts[ModContent.ProjectileType<FieryDraconid>()];
if (pArtifact)
if (pSoulArtifact)
{
if (Player.whoAmI == Main.myPlayer)
{
var source = Player.GetSource_Accessory(FindAccessory(ModContent.ItemType<Items.Accessories.ProfanedSoulArtifact>()));
if (Player.FindBuffIndex(ModContent.BuffType<ProfanedBabs>()) == -1)
Player.AddBuff(ModContent.BuffType<ProfanedBabs>(), 3600, true);
var source = Player.GetSource_Accessory(FindAccessory(ModContent.ItemType<ProfanedSoulArtifact>()));
if (Player.FindBuffIndex(ModContent.BuffType<ProfanedSoulGuardians>()) == -1)
Player.AddBuff(ModContent.BuffType<ProfanedSoulGuardians>(), 3600, true);
donutBabs = true;
pSoulGuardians = true;
int guardianAmt = 1;
float babCheck = profanedCrystal ? 1f : 0f;
@@ -3029,7 +3026,8 @@ namespace CalamityMod.CalPlayer
if (Player.ownedProjectileCounts[ModContent.ProjectileType<MiniGuardianAttack>()] < guardianAmt)
{
var babO = Projectile.NewProjectileDirect(source, Player.Center, Vector2.UnitY * -1f, ModContent.ProjectileType<MiniGuardianAttack>(), 1, 1f, Main.myPlayer, babCheck);
float spearCounter = profanedCrystal ? 0f : 15f;
var babO = Projectile.NewProjectileDirect(source, Player.Center, Vector2.UnitY * -1f, ModContent.ProjectileType<MiniGuardianAttack>(), 1, 1f, Main.myPlayer, babCheck, spearCounter);
babO.originalDamage = babDamage;
}
}
@@ -3068,7 +3066,7 @@ namespace CalamityMod.CalPlayer
Lighting.AddLight(Player.Center, enrage ? 1.2f : offenseBuffs ? 1f : 0.2f, enrage ? 0.21f : offenseBuffs ? 0.2f : 0.01f, 0);
if (enrage)
{
bool special = Player.name == "Amber" || Player.name == "Nincity" || Player.name == "IbanPlay" || Player.name == "Chen"; //People who either helped create the item or test it.
bool special = ProfanedSoulCrystal.testerNames.Any(name => name.Equals(Player.name));
for (int i = 0; i < 3; i++)
{
int fire = Dust.NewDust(Player.position, Player.width, Player.height, special ? 231 : (int)CalamityDusts.ProfanedFire, 0f, 0f, 100, special ? Color.DarkRed : default, 1f);
@@ -3533,6 +3531,66 @@ namespace CalamityMod.CalPlayer
}
}
// If PSA/PSC is not equipped, obliterate its durability cooldown.
// The recharge cooldown is intentionally left in place to prevent hot swapping to recharge the shield
if (!pSoulArtifact)
{
if (cooldowns.TryGetValue(Cooldowns.ProfanedSoulShield.ID, out var cdDurability))
cdDurability.timeLeft = 0;
// As PSA/PSC's shield can be left in a partially recharged state, this is for safety.
// If the player does not have the accessory equipped for even one frame, discharge all shields.
pSoulShieldDurability = 0;
}
// Stuff to do if PSA/PSC is equipped
else
{
//Force check if profaned crystal buffs are active
ProfanedSoulCrystal.DetermineTransformationEligibility(Player);
int maxDurability = profanedCrystalBuffs
? ProfanedSoulCrystal.ShieldDurabilityMax
: ProfanedSoulArtifact.ShieldDurabilityMax;
if (pSoulShieldDurability == 0 && !cooldowns.ContainsKey(Cooldowns.ProfanedSoulShieldRecharge.ID))
Player.AddCooldown(ProfanedSoulShieldRecharge.ID, ProfanedSoulArtifact.ShieldRechargeDelay);
// If the shield has greater than zero durability but that durability is not on the cooldown rack, add it to the cooldown rack.
if (pSoulShieldDurability > 0 && !cooldowns.ContainsKey(Cooldowns.ProfanedSoulShield.ID))
{
var durabilityCooldown = Player.AddCooldown(Cooldowns.ProfanedSoulShield.ID, maxDurability);
durabilityCooldown.timeLeft = pSoulShieldDurability;
}
// If the shield has greater than zero durability and isn't in its recharge delay, actively replenish shield points.
// Play a sound on the first frame this occurs.
if (pSoulShieldDurability > 0 && !cooldowns.ContainsKey(ProfanedSoulShieldRecharge.ID))
{
if (!playedProfanedSoulShieldSound)
SoundEngine.PlaySound(ProvidenceBoss.BurnStartSound, Player.Center);
playedProfanedSoulShieldSound = true;
// This number is not an integer, and stores exact per-frame recharge progress.
pSoulShieldPartialRechargeProgress += maxDurability / (float)ProfanedSoulArtifact.TotalShieldRechargeTime;
// Floor the value to get whole number of shield points recharged this frame.
int pointsActuallyRecharged = (int)MathF.Floor(pSoulShieldPartialRechargeProgress);
// Give those points to the real shield durability, capping the result. Then remove them from recharge progress.
pSoulShieldDurability = Math.Min(pSoulShieldDurability + pointsActuallyRecharged, maxDurability);
pSoulShieldPartialRechargeProgress -= pointsActuallyRecharged;
// Update the cooldown rack's durability indicator.
if (cooldowns.TryGetValue(Cooldowns.ProfanedSoulShield.ID, out var cdDurability))
cdDurability.timeLeft = pSoulShieldDurability;
}
// Add light if this shield is currently active
if (pSoulShieldDurability > 0 && !shieldAddedLight)
{
Lighting.AddLight(Player.Center, Color.Orange.ToVector3() * 0.4f);
shieldAddedLight = true;
}
}
// If the Lunic Corps armor is not equipped, obliterate its durability cooldown.
// The recharge cooldown is intentionally left in place to prevent hot swapping to recharge the shield
if (!lunicCorpsSet)
@@ -3612,7 +3670,6 @@ namespace CalamityMod.CalPlayer
{
CooldownInstance durabilityCooldown = Player.AddCooldown(WulfrumRoverDriveDurability.ID, RoverDrive.ShieldDurabilityMax);
durabilityCooldown.timeLeft = RoverDriveShieldDurability;
SoundEngine.PlaySound(RoverDrive.ActivationSound, Player.Center);
}
// Add light if this shield is currently active
@@ -3902,6 +3959,22 @@ namespace CalamityMod.CalPlayer
}
#endregion
#region Text Chat Messages
private void HandleTextChatMessages()
{
if (Player.whoAmI != Main.myPlayer || Main.netMode == NetmodeID.Server)
return;
if (musicModDisplayDelay >= 0)
{
if (musicModDisplayDelay == 0)
CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.Misc.MusicModReminder");
--musicModDisplayDelay;
}
}
#endregion
#region Mouse Item Checks
public void CheckIfMouseItemIsSchematic()
{
+9 -23
View File
@@ -143,15 +143,6 @@ namespace CalamityMod.CalPlayer
target.AddBuff(BuffID.Poisoned, 240);
break;
case ItemID.NightsEdge:
target.AddBuff(BuffID.ShadowFlame, 120);
break;
case ItemID.TrueNightsEdge:
target.AddBuff(BuffID.CursedInferno, 60);
target.AddBuff(BuffID.ShadowFlame, 120);
break;
case ItemID.IceSickle:
case ItemID.Frostbrand:
target.AddBuff(BuffID.Frostburn, 300);
@@ -338,11 +329,6 @@ namespace CalamityMod.CalPlayer
if (Main.rand.NextBool())
target.AddBuff(BuffID.Frostburn, 60);
break;
case ProjectileID.NightBeam:
target.AddBuff(BuffID.CursedInferno, 60);
target.AddBuff(BuffID.ShadowFlame, 120);
break;
}
if ((proj.arrow && Player.hasMoltenQuiver) || hellfireTreads)
@@ -831,7 +817,7 @@ namespace CalamityMod.CalPlayer
}
}
if (modProj.stealthStrike && rogueCrownCooldown <= 0 && modProj.stealthStrikeHitCount < 5)
if (modProj.stealthStrike && rogueCrownCooldown <= 0 && modProj.stealthStrikeHitCount < 3)
{
bool spawnedFeathers = false;
if (nanotech)
@@ -840,7 +826,7 @@ namespace CalamityMod.CalPlayer
{
Vector2 source = new Vector2(position.X + Main.rand.Next(-201, 201), Main.screenPosition.Y - 600f - Main.rand.Next(50));
Vector2 velocity = (position - source) / 40f;
int damage = (int)Player.GetTotalDamage<RogueDamageClass>().ApplyTo(125);
int damage = (int)Player.GetTotalDamage<RogueDamageClass>().ApplyTo(120);
Projectile.NewProjectile(spawnSource, source, velocity, ProjectileType<NanoFlare>(), damage, 3f, proj.owner);
}
}
@@ -865,7 +851,7 @@ namespace CalamityMod.CalPlayer
float speedX = (position.X - source.X) / 30f;
float speedY = (position.Y - source.Y) * 8;
Vector2 velocity = new Vector2(speedX, speedY);
int featherDamage = (int)Player.GetTotalDamage<RogueDamageClass>().ApplyTo(15);
int featherDamage = (int)Player.GetTotalDamage<RogueDamageClass>().ApplyTo(25);
int feather = Projectile.NewProjectile(spawnSource, source, velocity, ProjectileType<StickyFeather>(), featherDamage, 3f, proj.owner);
if (feather.WithinBounds(Main.maxProjectiles))
{
@@ -878,7 +864,7 @@ namespace CalamityMod.CalPlayer
rogueCrownCooldown = spawnedFeathers ? 15 : 60;
}
if (forbiddenCirclet && modProj.stealthStrike && forbiddenCooldown <= 0 && modProj.stealthStrikeHitCount < 5)
if (forbiddenCirclet && modProj.stealthStrike && forbiddenCooldown <= 0 && modProj.stealthStrikeHitCount < 3)
{
for (int index2 = 0; index2 < 6; index2++)
{
@@ -894,7 +880,7 @@ namespace CalamityMod.CalPlayer
}
}
if (titanHeartSet && modProj.stealthStrike && titanCooldown <= 0 && modProj.stealthStrikeHitCount < 5)
if (titanHeartSet && modProj.stealthStrike && titanCooldown <= 0 && modProj.stealthStrikeHitCount < 3)
{
int damage = (int)Player.GetTotalDamage<RogueDamageClass>().ApplyTo(50);
Projectile.NewProjectile(spawnSource, proj.Center, Vector2.Zero, ProjectileType<SabatonBoom>(), damage, proj.knockBack, proj.owner, 1f, 0f);
@@ -910,7 +896,7 @@ namespace CalamityMod.CalPlayer
titanCooldown = 15;
}
if (corrosiveSpine && modProj.stealthStrikeHitCount < 5)
if (corrosiveSpine && modProj.stealthStrikeHitCount < 3)
{
for (int i = 0; i < 3; i++)
{
@@ -942,7 +928,7 @@ namespace CalamityMod.CalPlayer
}
}
if (shadow && shadowPotCooldown <= 0 && modProj.stealthStrikeHitCount < 5)
if (shadow && shadowPotCooldown <= 0 && modProj.stealthStrikeHitCount < 3)
{
int randrot = Main.rand.Next(-30, 391);
Vector2 SoulSpeed = new Vector2(13f, 13f).RotatedBy(MathHelper.ToRadians(randrot));
@@ -971,7 +957,7 @@ namespace CalamityMod.CalPlayer
int umbraBlastDamage = CalamityUtils.DamageSoftCap(proj.damage * 0.25, 50);
Projectile.NewProjectile(spawnSource, proj.Center, Vector2.Zero, ProjectileType<UmbraphileBoom>(), umbraBlastDamage, 0f, Player.whoAmI);
}
if (electricianGlove && modProj.stealthStrike && modProj.stealthStrikeHitCount < 5)
if (electricianGlove && modProj.stealthStrike && modProj.stealthStrikeHitCount < 3)
{
for (int s = 0; s < 3; s++)
{
@@ -1065,7 +1051,7 @@ namespace CalamityMod.CalPlayer
}
if (summon)
{
if (pArtifact && !profanedCrystal)
if (pSoulArtifact && !profanedCrystal)
target.AddBuff(BuffType<HolyFlames>(), 300);
if (profanedCrystalBuffs)
+16 -25
View File
@@ -1,24 +1,11 @@
using System.Collections.Generic;
using System.ComponentModel;
using System.Reflection;
using System.ComponentModel;
using System.Runtime.Serialization;
using CalamityMod.Items.Accessories;
using CalamityMod.Items.DifficultyItems;
using CalamityMod.Items.DraedonMisc;
using CalamityMod.Items.Dyes.HairDye;
using CalamityMod.Items.Potions;
using CalamityMod.Items.Weapons.DraedonsArsenal;
using CalamityMod.UI;
using Terraria;
using Terraria.ID;
using Terraria.Localization;
using Terraria.ModLoader;
using Terraria.ModLoader.Config;
using CalamityMod.Items.PermanentBoosters;
using CalamityMod.UI.Rippers;
using CalamityMod.UI.DraedonsArsenal;
using CalamityMod.UI.Rippers;
using CalamityMod.UI.SulphurousWaterMeter;
using CalamityMod.Items.Tools.ClimateChange;
using Terraria;
using Terraria.ModLoader.Config;
namespace CalamityMod
{
@@ -64,19 +51,23 @@ namespace CalamityMod
[BackgroundColor(192, 54, 64, 192)]
[DefaultValue(true)]
public bool StealthInvisibility { get; set; }
[BackgroundColor(192, 54, 64, 192)]
[DefaultValue(true)]
public bool ShopNewAlert { get; set; }
[BackgroundColor(192, 54, 64, 192)]
[DefaultValue(true)]
public bool WikiStatusMessage { get; set; }
#endregion
#region UI Changes
[Header("UI")]
[BackgroundColor(192, 54, 64, 192)]
[DefaultValue(true)]
public bool MusicModReminderMessage { get; set; }
[BackgroundColor(192, 54, 64, 192)]
[DefaultValue(true)]
public bool WikiStatusMessage { get; set; }
[BackgroundColor(192, 54, 64, 192)]
[DefaultValue(true)]
public bool ShopNewAlert { get; set; }
[BackgroundColor(192, 54, 64, 192)]
[DefaultValue(true)]
public bool BossHealthBarExtraInfo { get; set; }
+41 -68
View File
@@ -83,8 +83,6 @@ namespace CalamityMod
public static List<int> dungeonEnemyBuffList;
public static List<int> dungeonProjectileBuffList;
public static List<int> bossHPScaleList;
public static List<int> beeEnemyList;
public static List<int> beeProjectileList;
public static List<int> friendlyBeeList;
public static List<int> hardModeNerfList;
public static List<int> debuffList;
@@ -1051,33 +1049,6 @@ namespace CalamityMod
NPCID.MoonLordHand
};
beeEnemyList = new List<int>()
{
NPCID.GiantMossHornet,
NPCID.BigMossHornet,
NPCID.LittleMossHornet,
NPCID.TinyMossHornet,
NPCID.MossHornet,
NPCID.VortexHornetQueen,
NPCID.VortexHornet,
NPCID.Bee,
NPCID.BeeSmall,
NPCID.QueenBee,
NPCType<PlaguebringerGoliath>(),
NPCType<PlaguebringerMiniboss>(),
NPCType<PlagueChargerLarge>(),
NPCType<PlagueCharger>()
};
beeProjectileList = new List<int>()
{
ProjectileID.Stinger,
ProjectileID.HornetStinger,
ProjectileType<PlagueStingerGoliath>(),
ProjectileType<PlagueStingerGoliathV2>(),
ProjectileType<PlagueExplosion>()
};
friendlyBeeList = new List<int>()
{
ProjectileID.GiantBee,
@@ -1983,64 +1954,68 @@ namespace CalamityMod
pierceResistExceptionList = new List<int>()
{
ProjectileID.FlyingKnife,
ProjectileID.Arkhalis,
ProjectileID.Terragrim,
ProjectileID.MonkStaffT3,
ProjectileID.LastPrismLaser,
ProjectileID.ChargedBlasterLaser,
ProjectileID.PiercingStarlight,
ProjectileID.FinalFractal,
ProjectileType<FlakKrakenProj>(),
ProjectileType<MurasamaSlash>(),
ProjectileType<OmnibladeSwing>(),
ProjectileType<DragonRageStaff>(),
ProjectileType<YateveoBloomProj>(),
ProjectileType<UrchinBall>(),
ProjectileType<UrchinMaceProjectile>(),
ProjectileType<TyphonsGreedStaff>(),
ProjectileType<DevilsSunriseProj>(),
ProjectileType<DevilsSunriseCyclone>(),
ProjectileType<PhaseslayerProjectile>(),
ProjectileType<TaserHook>(),
ProjectileType<Snowflake>(),
ProjectileType<InsidiousHarpoon>(),
ProjectileType<PhotonRipperProjectile>(),
ProjectileID.FlyingKnife,
ProjectileID.LastPrismLaser,
ProjectileID.MechanicalPiranha,
ProjectileID.MonkStaffT3,
ProjectileID.PiercingStarlight,
ProjectileID.Terragrim,
ProjectileType<AcidicSaxBubble>(),
ProjectileType<WaterLeechProj>(),
ProjectileType<BallisticPoisonCloud>(),
ProjectileType<BlushieStaffProj>(),
ProjectileType<BonebreakerProjectile>(),
ProjectileType<UrchinBallSpike>(),
ProjectileType<EmesisGore>(),
ProjectileType<ExoFlareCluster>(),
ProjectileType<SulphuricBlast>(),
ProjectileType<DarkSparkBeam>(),
ProjectileType<DevilsSunriseCyclone>(),
ProjectileType<DevilsSunriseProj>(),
ProjectileType<DragonRageStaff>(),
ProjectileType<DuststormCloudHitbox>(),
ProjectileType<EclipsesStealth>(),
ProjectileType<EidolicWailSoundwave>(),
ProjectileType<EmesisGore>(),
ProjectileType<EradicatorProjectile>(),
ProjectileType<ExoFlareCluster>(),
ProjectileType<EyeOfNightCell>(),
ProjectileType<FantasyTalismanProj>(),
ProjectileType<FantasyTalismanStealth>(),
ProjectileType<FlakKrakenProj>(),
ProjectileType<GodsParanoiaProj>(),
ProjectileType<InsidiousHarpoon>(),
ProjectileType<JawsProjectile>(),
ProjectileType<LeviathanTooth>(),
ProjectileType<LionfishProj>(),
ProjectileType<MechanicalBarracuda>(),
ProjectileType<MetalShard>(),
ProjectileType<MurasamaSlash>(),
ProjectileType<NastyChollaBol>(),
ProjectileType<OmnibladeSwing>(),
ProjectileType<PhaseslayerProjectile>(),
ProjectileType<PhotonRipperProjectile>(),
ProjectileType<PlantationStaffSporeCloud>(),
ProjectileType<PrismaticBeam>(),
ProjectileType<RancorLaserbeam>(),
ProjectileType<ReaperProjectile>(),
ProjectileType<SacrificeProjectile>(),
ProjectileType<SnapClamProj>(),
ProjectileType<SnapClamStealth>(),
ProjectileType<StickyBol>(),
ProjectileType<UrchinStingerProj>(),
ProjectileType<EyeOfNightCell>(),
ProjectileType<ViolenceThrownProjectile>(),
ProjectileType<BlushieStaffProj>(),
ProjectileType<DarkSparkBeam>(),
ProjectileType<EidolicWailSoundwave>(),
ProjectileType<RancorLaserbeam>(),
ProjectileType<Snowflake>(),
ProjectileType<SparklingLaser>(),
ProjectileType<YharimsCrystalBeam>(),
ProjectileType<PrismaticBeam>(),
ProjectileType<SpiritCongregation>(),
ProjectileType<BallisticPoisonCloud>(),
ProjectileType<DuststormCloudHitbox>(),
ProjectileType<StarmageddonBinaryStarCenter>(),
ProjectileType<StickyBol>(),
ProjectileType<SulphuricBlast>(),
ProjectileType<TaserHook>(),
ProjectileType<TyphonsGreedStaff>(),
ProjectileType<UrchinBall>(),
ProjectileType<UrchinBallSpike>(),
ProjectileType<UrchinMaceProjectile>(),
ProjectileType<UrchinStingerProj>(),
ProjectileType<ViolenceThrownProjectile>(),
ProjectileType<WaterLeechProj>(),
ProjectileType<YateveoBloomProj>(),
ProjectileType<YharimsCrystalBeam>(),
};
// Lists of enemies that resist piercing to some extent (mostly worms).
@@ -2744,9 +2719,7 @@ namespace CalamityMod
dungeonEnemyBuffList = null;
dungeonProjectileBuffList = null;
bossHPScaleList = null;
beeEnemyList = null;
friendlyBeeList = null;
beeProjectileList = null;
hardModeNerfList = null;
debuffList = null;
fireDebuffList = null;
+7 -7
View File
@@ -4,8 +4,6 @@ using System.Diagnostics;
using System.IO;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Linq;
using CalamityMod.Systems;
using CalamityMod.Balancing;
using CalamityMod.Buffs.DamageOverTime;
using CalamityMod.Buffs.StatDebuffs;
@@ -16,11 +14,9 @@ using CalamityMod.DataStructures;
using CalamityMod.Effects;
using CalamityMod.Events;
using CalamityMod.FluidSimulation;
using CalamityMod.ILEditing;
using CalamityMod.Items;
using CalamityMod.Items.Dyes.HairDye;
using CalamityMod.Items.VanillaArmorChanges;
using CalamityMod.NPCs.PrimordialWyrm;
using CalamityMod.NPCs.AquaticScourge;
using CalamityMod.NPCs.AstrumAureus;
using CalamityMod.NPCs.AstrumDeus;
@@ -38,10 +34,12 @@ using CalamityMod.NPCs.ExoMechs.Artemis;
using CalamityMod.NPCs.ExoMechs.Thanatos;
using CalamityMod.NPCs.HiveMind;
using CalamityMod.NPCs.Leviathan;
using CalamityMod.NPCs.NormalNPCs;
using CalamityMod.NPCs.OldDuke;
using CalamityMod.NPCs.Perforator;
using CalamityMod.NPCs.PlaguebringerGoliath;
using CalamityMod.NPCs.Polterghast;
using CalamityMod.NPCs.PrimordialWyrm;
using CalamityMod.NPCs.ProfanedGuardians;
using CalamityMod.NPCs.Providence;
using CalamityMod.NPCs.Ravager;
@@ -61,7 +59,6 @@ using CalamityMod.UI.CalamitasEnchants;
using CalamityMod.UI.DraedonsArsenal;
using CalamityMod.UI.Rippers;
using CalamityMod.Waters;
using CalamityMod.World;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using ReLogic.Content;
@@ -73,8 +70,6 @@ using Terraria.Graphics.Shaders;
using Terraria.ID;
using Terraria.ModLoader;
using Terraria.ModLoader.Config;
using Terraria.DataStructures;
using CalamityMod.NPCs.NormalNPCs;
[assembly: InternalsVisibleTo("CalTestHelpers")]
[assembly: InternalsVisibleTo("InfernumMode")]
@@ -150,11 +145,13 @@ namespace CalamityMod
internal Mod musicMod = null; // This is Calamity's official music mod, CalamityModMusic
internal bool MusicAvailable => !(musicMod is null);
// Please keep this in alphabetical order so it's easy to read
internal Mod ancientsAwakened = null;
internal Mod bossChecklist = null;
internal Mod crouchMod = null;
internal Mod dialogueTweak = null;
internal Mod fargos = null;
internal Mod magicStorage = null;
internal Mod overhaul = null;
internal Mod redemption = null;
internal Mod soa = null;
@@ -187,6 +184,8 @@ namespace CalamityMod
ModLoader.TryGetMod("DialogueTweak", out dialogueTweak);
fargos = null;
ModLoader.TryGetMod("Fargowiltas", out fargos);
magicStorage = null;
ModLoader.TryGetMod("MagicStorage", out magicStorage);
overhaul = null;
ModLoader.TryGetMod("TerrariaOverhaul", out overhaul);
redemption = null;
@@ -418,6 +417,7 @@ namespace CalamityMod
crouchMod = null;
dialogueTweak = null;
fargos = null;
magicStorage = null;
overhaul = null;
redemption = null;
soa = null;
+5
View File
@@ -49,6 +49,11 @@ namespace CalamityMod.Cooldowns
/// When the cooldown instance ends, this sound is played. Leave at <b>null</b> for no sound.
/// </summary>
public virtual SoundStyle? EndSound => null;
/// <summary>
/// Set this to true to have the cooldown instance end sound play upon expiration. Defaults to <b>true</b>
/// </summary>
public virtual bool ShouldPlayEndSound => true;
#endregion
#region Display & Rendering
+1 -1
View File
@@ -52,7 +52,7 @@ namespace CalamityMod.Cooldowns
//var permafrostConcoction = Register<PermafrostConcoction>(PermafrostConcoction.ID);
//var plagueBlackout = Register<PlagueBlackout>(PlagueBlackout.ID);
//var prismaticLaser = Register<PrismaticLaser>(PrismaticLaser.ID);
//var profanedSoulArtifact = Register<ProfanedSoulArtifact>(ProfanedSoulArtifact.ID);
//var profanedSoulArtifact = Register<ProfanedSoulShield>(ProfanedSoulShield.ID);
//var relicOfResilience = Register<RelicOfResilience>(RelicOfResilience.ID);
//var rogueBooster = Register<RogueBooster>(RogueBooster.ID);
//var sandCloak = Register<SandCloak>(SandCloak.ID);
+1
View File
@@ -90,6 +90,7 @@ namespace CalamityMod.Cooldowns
public override Color CooldownStartColor => Color.Lerp(ringColorLerpStart, ringColorLerpEnd, instance.Completion);
public override Color CooldownEndColor => Color.Lerp(ringColorLerpStart, ringColorLerpEnd, instance.Completion);
public override SoundStyle? EndSound => LunicCorpsHelmet.ActivationSound;
public override bool ShouldPlayEndSound => instance.player.Calamity().lunicCorpsSet;
public override void Tick() => instance.player.Calamity().playedLunicCorpsShieldSound = false;
// When the recharge period completes, grant 1 point of shielding immediately so the rest my refill normally.
-16
View File
@@ -1,16 +0,0 @@
using Microsoft.Xna.Framework;
using Terraria.Localization;
namespace CalamityMod.Cooldowns
{
public class ProfanedSoulArtifact : CooldownHandler
{
public static new string ID => "ProfanedSoulArtifact";
public override bool ShouldDisplay => true;
public override LocalizedText DisplayName => CalamityUtils.GetText($"UI.Cooldowns.{ID}");
public override string Texture => "CalamityMod/Cooldowns/ProfanedSoulArtifact";
public override Color OutlineColor => new Color(255, 191, 73);
public override Color CooldownStartColor => new Color(181, 136, 177);
public override Color CooldownEndColor => new Color(255, 194, 161);
}
}
+127
View File
@@ -0,0 +1,127 @@
using System;
using CalamityMod.CalPlayer;
using CalamityMod.Items.Accessories;
using CalamityMod.NPCs.Providence;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Terraria;
using Terraria.Audio;
using Terraria.GameContent;
using Terraria.Graphics.Shaders;
using Terraria.Localization;
using static CalamityMod.CalamityUtils;
using static Terraria.ModLoader.ModContent;
namespace CalamityMod.Cooldowns
{
public class ProfanedSoulShield : CooldownHandler
{
private CalamityPlayer CalPlayer => instance.player.Calamity();
private int CorrectMaxDurability => CalPlayer.profanedCrystalBuffs
? ProfanedSoulCrystal.ShieldDurabilityMax
: ProfanedSoulArtifact.ShieldDurabilityMax;
//Slightly more readable and actually works which is nice
private Color GetColor(bool start)
{
Color result;
if (start)
{
result = CalPlayer.profanedCrystalBuffs ? new Color(247, 172, 131) : new Color(235, 178, 96);
}
else
{
result = CalPlayer.profanedCrystalBuffs ? new Color(255, 194, 161) : new Color(219, 179, 121);
}
return result;
}
private float AdjustedCompletion => instance.timeLeft / (float)CorrectMaxDurability;
public static new string ID => "ProfanedSoulShieldDurability";
public override bool CanTickDown => !CalPlayer.pSoulArtifact || instance.timeLeft <= 0;
public override bool ShouldDisplay => (CalPlayer.pSoulArtifact && !CalPlayer.profanedCrystal) || CalPlayer.profanedCrystalBuffs;
public override LocalizedText DisplayName => GetText($"UI.Cooldowns.{ID}");
public override string Texture => "CalamityMod/Cooldowns/ProfanedSoulShieldActive";
public override string OutlineTexture => "CalamityMod/Cooldowns/ProfanedSoulShieldOutline";
public override string OverlayTexture => "CalamityMod/Cooldowns/ProfanedSoulShieldOverlay";
public override Color OutlineColor => new Color(255, 191, 73);
public override Color CooldownStartColor => Color.Lerp(GetColor(true), GetColor(false), instance.Completion);
public override Color CooldownEndColor => Color.Lerp(GetColor(true), GetColor(false), instance.Completion);
public override bool SavedWithPlayer => false;
public override bool PersistsThroughDeath => false;
public override void ApplyBarShaders(float opacity)
{
// Use the adjusted completion
GameShaders.Misc["CalamityMod:CircularBarShader"].UseOpacity(opacity);
GameShaders.Misc["CalamityMod:CircularBarShader"].UseSaturation(AdjustedCompletion);
GameShaders.Misc["CalamityMod:CircularBarShader"].UseColor(CooldownStartColor);
GameShaders.Misc["CalamityMod:CircularBarShader"].UseSecondaryColor(CooldownEndColor);
GameShaders.Misc["CalamityMod:CircularBarShader"].Apply();
}
public override void DrawExpanded(SpriteBatch spriteBatch, Vector2 position, float opacity, float scale)
{
base.DrawExpanded(spriteBatch, position, opacity, scale);
float Xoffset = instance.timeLeft > 9 ? -10f : -5;
DrawBorderStringEightWay(spriteBatch, FontAssets.MouseText.Value, instance.timeLeft.ToString(), position + new Vector2(Xoffset, 4) * scale, Color.Lerp(GetColor(true), Color.OrangeRed, 1 - instance.Completion), Color.Black, scale);
}
public override void DrawCompact(SpriteBatch spriteBatch, Vector2 position, float opacity, float scale)
{
Texture2D sprite = Request<Texture2D>(Texture).Value;
Texture2D outline = Request<Texture2D>(OutlineTexture).Value;
Texture2D overlay = Request<Texture2D>(OverlayTexture).Value;
// Draw the outline
spriteBatch.Draw(outline, position, null, OutlineColor * opacity, 0, outline.Size() * 0.5f, scale, SpriteEffects.None, 0f);
// Draw the icon
spriteBatch.Draw(sprite, position, null, Color.White * opacity, 0, sprite.Size() * 0.5f, scale, SpriteEffects.None, 0f);
// Draw the small overlay
int lostHeight = (int)Math.Ceiling(overlay.Height * AdjustedCompletion);
Rectangle crop = new Rectangle(0, lostHeight, overlay.Width, overlay.Height - lostHeight);
spriteBatch.Draw(overlay, position + Vector2.UnitY * lostHeight * scale, crop, OutlineColor * opacity * 0.9f, 0, sprite.Size() * 0.5f, scale, SpriteEffects.None, 0f);
float Xoffset = instance.timeLeft > 9 ? -10f : -5;
DrawBorderStringEightWay(spriteBatch, FontAssets.MouseText.Value, instance.timeLeft.ToString(), position + new Vector2(Xoffset, 4) * scale, Color.Lerp(GetColor(true), Color.OrangeRed, 1 - instance.Completion), Color.Black, scale);
}
}
public class ProfanedSoulShieldRecharge : CooldownHandler
{
private static Color ringColorLerpStart = new Color(217, 159, 78);
private static Color ringColorLerpEnd = new Color(214, 185, 144);
public static new string ID => "ProfanedSoulShieldRecharge";
public override bool ShouldDisplay => true;
public override LocalizedText DisplayName => GetText($"UI.Cooldowns.{ID}");
public override string Texture => "CalamityMod/Cooldowns/ProfanedSoulShieldRecharge";
public override string OutlineTexture => "CalamityMod/Cooldowns/ProfanedSoulShieldOutline";
public override string OverlayTexture => "CalamityMod/Cooldowns/ProfanedSoulShieldOverlay";
public override bool SavedWithPlayer => false;
public override bool PersistsThroughDeath => false;
public override Color OutlineColor => new Color(57, 195, 237);
public override Color CooldownStartColor => Color.Lerp(ringColorLerpStart, ringColorLerpEnd, instance.Completion);
public override Color CooldownEndColor => Color.Lerp(ringColorLerpStart, ringColorLerpEnd, instance.Completion);
public override void Tick() => instance.player.Calamity().playedProfanedSoulShieldSound = false;
public override SoundStyle? EndSound => Providence.BurnStartSound;
public override bool ShouldPlayEndSound => instance.player.Calamity().pSoulArtifact;
// When the recharge period completes, grant 1 point of shielding immediately so the rest my refill normally.
// The shield durability cooldown is added elsewhere, in Misc Effects.
public override void OnCompleted()
{
CalamityPlayer modPlayer = instance.player.Calamity();
if (modPlayer.pSoulShieldDurability <= 0)
modPlayer.pSoulShieldDurability = 1;
}
}
}
File renamed without changes.

Before

Width:  |  Height:  |  Size: 356 B

After

Width:  |  Height:  |  Size: 356 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 184 B

After

Width:  |  Height:  |  Size: 184 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 159 B

After

Width:  |  Height:  |  Size: 159 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 248 B

+1
View File
@@ -90,6 +90,7 @@ namespace CalamityMod.Cooldowns
public override Color CooldownStartColor => Color.Lerp(ringColorLerpStart, ringColorLerpEnd, instance.Completion);
public override Color CooldownEndColor => Color.Lerp(ringColorLerpStart, ringColorLerpEnd, instance.Completion);
public override SoundStyle? EndSound => TheSponge.ActivationSound;
public override bool ShouldPlayEndSound => instance.player.Calamity().sponge;
public override void Tick() => instance.player.Calamity().playedSpongeShieldSound = false;
// When the recharge period completes, grant 1 point of shielding immediately so the rest my refill normally.
+2 -1
View File
@@ -98,6 +98,7 @@ namespace CalamityMod.Cooldowns
if (modPlayer.roverDrive)
modPlayer.RoverDriveShieldDurability = RoverDrive.ShieldDurabilityMax;
}
public override SoundStyle? EndSound => null;
public override SoundStyle? EndSound => RoverDrive.ActivationSound;
public override bool ShouldPlayEndSound => instance.player.Calamity().roverDrive;
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

+5 -44
View File
@@ -1,6 +1,9 @@
using System;
using CalamityMod.Balancing;
using CalamityMod.Items.Accessories;
using CalamityMod.Items.Placeables.FurniturePlagued;
using CalamityMod.Items.Potions;
using CalamityMod.NPCs.DraedonLabThings;
using Mono.Cecil.Cil;
using MonoMod.Cil;
using Terraria;
@@ -11,7 +14,7 @@ namespace CalamityMod.ILEditing
{
public partial class ILChanges
{
#region Rod of Harmony Changes
#region Shimmer Changes
private static bool AdjustShimmerRequirements(On_Item.orig_CanShimmer orig, Item item)
{
@@ -20,6 +23,7 @@ namespace CalamityMod.ILEditing
{
return DownedBossSystem.downedCalamitas && DownedBossSystem.downedExoMechs;
}
return orig(item);
}
@@ -70,49 +74,6 @@ namespace CalamityMod.ILEditing
}
#endregion
#region Magiluminescence Changes
private static void NerfMagiluminescence(ILContext il)
{
// Nerf the run acceleration boost from 1.75x to 1.25x.
var cursor = new ILCursor(il);
if (!cursor.TryGotoNext(MoveType.Before, i => i.MatchLdfld<Player>("hasMagiluminescence")))
{
LogFailure("Magiluminescence Nerf", "Could not locate the Magiluminescence bool.");
return;
}
if (!cursor.TryGotoNext(MoveType.Before, i => i.MatchLdcR4(1.75f)))
{
LogFailure("Magiluminescence Nerf", "Could not locate the Magiluminescence run acceleration multiplier.");
return;
}
cursor.Next.Operand = 1.25f;
// Nerf the max run speed boost from 1.15x to 1.05x.
if (!cursor.TryGotoNext(MoveType.Before, i => i.MatchLdcR4(1.15f)))
{
LogFailure("Magiluminescence Nerf", "Could not locate the Magiluminescence max run speed multiplier.");
return;
}
cursor.Next.Operand = 1.05f;
// Nerf the acc run speed boost from 1.15x to 1.05x.
if (!cursor.TryGotoNext(MoveType.Before, i => i.MatchLdcR4(1.15f)))
{
LogFailure("Magiluminescence Nerf", "Could not locate the Magiluminescence acc run speed multiplier.");
return;
}
cursor.Next.Operand = 1.05f;
// Nerf the run slowdown boost from 1.75x to 1.25x.
if (!cursor.TryGotoNext(MoveType.Before, i => i.MatchLdcR4(1.75f)))
{
LogFailure("Magiluminescence Nerf", "Could not locate the Magiluminescence run slowdown multiplier.");
return;
}
cursor.Next.Operand = 1.25f;
}
#endregion
#region Jump Height Changes
private static void FixJumpHeightBoosts(ILContext il)
{
+1 -1
View File
@@ -55,6 +55,7 @@ namespace CalamityMod.ILEditing
// Please order these hooks in the ordering priority you want energy shields to have
On_Main.DrawInfernoRings += RoverDrive.DrawRoverDriveShields;
On_Main.DrawInfernoRings += LunicCorpsHelmet.DrawHaloShields;
On_Main.DrawInfernoRings += ProfanedSoulArtifact.DrawProfanedSoulShields; //both psa and psc
On_Main.DrawInfernoRings += TheSponge.DrawSpongeShields;
// NPC behavior
@@ -101,7 +102,6 @@ namespace CalamityMod.ILEditing
IL_Player.UpdateJumpHeight += FixJumpHeightBoosts;
IL_Player.Update += BaseJumpHeightAdjustment;
IL_Player.Update += RunSpeedAdjustments;
IL_Player.Update += NerfMagiluminescence;
IL_Player.Update += NerfSoaringInsigniaRunAcceleration;
IL_Player.WingMovement += RemoveSoaringInsigniaInfiniteWingTime;
+4 -4
View File
@@ -21,16 +21,16 @@ namespace CalamityMod.Items.Accessories
{
Item.width = 40;
Item.height = 50;
Item.value = CalamityGlobalItem.Rarity2BuyPrice;
Item.rare = ItemRarityID.Green;
Item.value = CalamityGlobalItem.Rarity3BuyPrice;
Item.rare = ItemRarityID.Orange;
Item.accessory = true;
}
public override void UpdateAccessory(Player player, bool hideVisual)
{
player.Calamity().aeroStone = true;
player.moveSpeed += 0.1f;
player.jumpSpeedBoost += 0.5f;
player.wingTimeMax += 45;
}
public override bool PreDrawInInventory(SpriteBatch spriteBatch, Vector2 position, Rectangle frame, Color drawColor, Color itemColor, Vector2 origin, float scale)
+1 -1
View File
@@ -21,7 +21,7 @@ namespace CalamityMod.Items.Accessories
public override void SetStaticDefaults()
{
Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(6, 6));
Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(6, 6));
ItemID.Sets.AnimatesAsSoul[Type] = true;
}
+1 -1
View File
@@ -10,7 +10,7 @@ namespace CalamityMod.Items.Accessories
public new string LocalizationCategory => "Items.Accessories";
public override void SetStaticDefaults()
{
Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(8, 7));
Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(8, 7));
ItemID.Sets.AnimatesAsSoul[Type] = true;
}
+2 -2
View File
@@ -12,8 +12,8 @@ namespace CalamityMod.Items.Accessories
public new string LocalizationCategory => "Items.Accessories";
public override void SetDefaults()
{
Item.width = 20;
Item.height = 24;
Item.width = 18;
Item.height = 40;
Item.value = CalamityGlobalItem.Rarity1BuyPrice;
Item.rare = ItemRarityID.Blue;
Item.accessory = true;
Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 749 B

+1 -1
View File
@@ -14,7 +14,7 @@ namespace CalamityMod.Items.Accessories
public new string LocalizationCategory => "Items.Accessories";
public override void SetStaticDefaults()
{
Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(6, 4));
Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(6, 4));
ItemID.Sets.AnimatesAsSoul[Type] = true;
}
+1 -1
View File
@@ -10,7 +10,7 @@ namespace CalamityMod.Items.Accessories
public new string LocalizationCategory => "Items.Accessories";
public override void SetStaticDefaults()
{
Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(4, 4));
Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(4, 4));
ItemID.Sets.AnimatesAsSoul[Type] = true;
}
@@ -6,7 +6,8 @@ using Terraria.ModLoader;
namespace CalamityMod.Items.Accessories
{
public class DarkGodsSheath : ModItem, ILocalizedModType
[LegacyName("DarkGodsSheath")]
public class DarkMatterSheath : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Accessories";
public override void SetDefaults()
File renamed without changes.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

+1 -1
View File
@@ -36,7 +36,7 @@ namespace CalamityMod.Items.Accessories
{
CreateRecipe().
AddIngredient<AbyssalMirror>().
AddIngredient<DarkGodsSheath>().
AddIngredient<DarkMatterSheath>().
AddIngredient<DarksunFragment>(20).
AddTile<CosmicAnvil>().
Register();
+1 -1
View File
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Accessories
public new string LocalizationCategory => "Items.Accessories";
public override void SetStaticDefaults()
{
Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(5, 4));
Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(5, 4));
ItemID.Sets.AnimatesAsSoul[Type] = true;
}
+2 -1
View File
@@ -24,7 +24,8 @@ namespace CalamityMod.Items.Accessories
modPlayer.gloveOfRecklessness = true;
modPlayer.stealthGenStandstill += 0.15f;
modPlayer.stealthGenMoving += 0.15f;
player.GetDamage<RogueDamageClass>() -= 0.13f;
player.GetDamage<RogueDamageClass>() -= 0.10f;
player.GetCritChance<RogueDamageClass>() -= 10;
player.GetAttackSpeed<RogueDamageClass>() += 0.15f;
}
}
+2 -2
View File
@@ -22,9 +22,9 @@ namespace CalamityMod.Items.Accessories
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.gloveOfPrecision = true;
player.GetDamage<RogueDamageClass>() += 0.13f;
player.GetDamage<RogueDamageClass>() += 0.10f;
player.GetCritChance<RogueDamageClass>() += 15;
modPlayer.rogueVelocity += 0.25f;
modPlayer.rogueVelocity += 0.15f;
player.GetAttackSpeed<RogueDamageClass>() -= 0.15f;
}
}
+4 -4
View File
@@ -11,8 +11,8 @@ namespace CalamityMod.Items.Accessories
public new string LocalizationCategory => "Items.Accessories";
public override void SetDefaults()
{
Item.width = 20;
Item.height = 24;
Item.width = 34;
Item.height = 52;
Item.value = CalamityGlobalItem.Rarity5BuyPrice;
Item.rare = ItemRarityID.Pink;
Item.accessory = true;
@@ -22,8 +22,8 @@ namespace CalamityMod.Items.Accessories
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.GrandGelatin = true;
player.moveSpeed += 0.1f;
player.jumpSpeedBoost += 0.5f;
player.moveSpeed += 0.12f;
player.jumpSpeedBoost += 0.6f;
}
public override void AddRecipes()
Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

+1
View File
@@ -22,6 +22,7 @@ namespace CalamityMod.Items.Accessories
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.harpyRing = true;
player.moveSpeed += 0.1f;
}
public override void AddRecipes()
+1 -1
View File
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Accessories
public override void SetStaticDefaults()
{
Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(6, 4));
Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(6, 4));
ItemID.Sets.AnimatesAsSoul[Type] = true;
}
+1 -1
View File
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Accessories
public new string LocalizationCategory => "Items.Accessories";
public override void SetStaticDefaults()
{
Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(5, 8));
Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(5, 8));
ItemID.Sets.AnimatesAsSoul[Type] = true;
}
+1 -1
View File
@@ -20,7 +20,7 @@ namespace CalamityMod.Items.Accessories
public override void SetStaticDefaults()
{
Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(5, 4));
Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(5, 4));
ItemID.Sets.AnimatesAsSoul[Type] = true;
}
+2 -2
View File
@@ -11,8 +11,8 @@ namespace CalamityMod.Items.Accessories
public new string LocalizationCategory => "Items.Accessories";
public override void SetDefaults()
{
Item.width = 20;
Item.height = 24;
Item.width = 18;
Item.height = 40;
Item.value = CalamityGlobalItem.Rarity1BuyPrice;
Item.rare = ItemRarityID.Blue;
Item.accessory = true;
Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 754 B

+1
View File
@@ -26,6 +26,7 @@ namespace CalamityMod.Items.Accessories
CalamityPlayer modPlayer = player.Calamity();
modPlayer.abyssalAmulet = true;
modPlayer.lumenousAmulet = true;
player.buffImmune[ModContent.BuffType<RiptideDebuff>()] = true;
player.buffImmune[ModContent.BuffType<CrushDepth>()] = true;
}
+1 -1
View File
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Accessories
public new string LocalizationCategory => "Items.Accessories";
public override void SetStaticDefaults()
{
Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(5, 7));
Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(5, 7));
ItemID.Sets.AnimatesAsSoul[Type] = true;
}
+135 -5
View File
@@ -1,24 +1,148 @@
using CalamityMod.CalPlayer;
using System;
using System.Linq;
using CalamityMod.CalPlayer;
using CalamityMod.Items.Materials;
using CalamityMod.Items.Placeables.Plates;
using CalamityMod.Items.Placeables.Ores;
using CalamityMod.Rarities;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using ReLogic.Content;
using Terraria;
using Terraria.DataStructures;
using Terraria.Graphics.Effects;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Accessories
{
public class ProfanedSoulArtifact : ModItem, ILocalizedModType //My precious babs <3 ~Amber
public class ProfanedSoulArtifact : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Accessories";
public static Asset<Texture2D> HeatTex;
public static int ShieldRechargeDelay = CalamityUtils.SecondsToFrames(5);
public static int TotalShieldRechargeTime = CalamityUtils.SecondsToFrames(2);
public static int ShieldDurabilityMax = 25;
public override void SetStaticDefaults()
{
Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(6, 6));
ItemID.Sets.AnimatesAsSoul[Type] = true;
}
// Complex drawcode which draws Profaned Soul shields on ALL players who have it available. Supposedly.
// This is applied as IL (On hook) which draws right before Inferno Ring.
internal static void DrawProfanedSoulShields(On_Main.orig_DrawInfernoRings orig, Main mainObj)
{
// TODO -- Control flow analysis indicates that this hook is not stable (as it was copied from Rover Drive).
// Profaned Soul shields will be drawn for each player with the Profaned Soul artifact/crystal, yes.
// But there is no guarantee that the shields will be in the right condition for each player.
// Visibility is not net synced, for example.
bool alreadyDrawnShieldForPlayer = false;
for (int i = 0; i < Main.maxPlayers; i++)
{
Player player = Main.player[i];
if (player is null || !player.active || player.outOfRange || player.dead)
continue;
CalamityPlayer modPlayer = player.Calamity();
// Do not render the shield if its visibility is off (or it does not exist)
bool isVanityOnly = modPlayer.pSoulShieldVisible && !modPlayer.pSoulArtifact;
bool shieldExists = isVanityOnly || modPlayer.pSoulShieldDurability > 0;
if (!modPlayer.pSoulShieldVisible || modPlayer.drawnAnyShieldThisFrame || !shieldExists)
continue;
// Scale the shield is drawn at.
// The "i" parameter is to make different player's shields not be perfectly synced.
float scale = 0.15f + 0.03f * (0.5f + 0.5f * (float)Math.Sin(Main.GlobalTimeWrappedHourly * 0.5f + i * 0.2f));
if (!alreadyDrawnShieldForPlayer)
{
CalamityPlayer localModPlayer = Main.LocalPlayer.Calamity();
var psc = localModPlayer.profanedCrystalBuffs;
scale += psc ? 0.025f : 0f;
float visualShieldStrength = 1f;
if (!isVanityOnly)
{
float max = psc ? ProfanedSoulCrystal.ShieldDurabilityMax : ShieldDurabilityMax;
float shieldDurabilityRatio = localModPlayer.pSoulShieldDurability / (float)ShieldDurabilityMax;
visualShieldStrength = MathF.Pow(shieldDurabilityRatio, 0.5f);
}
// The scale used for the noise overlay polygons also grows and shrinks
// This is intentionally out of sync with the shield, and intentionally desynced per player
// Don't put this anywhere less than 0.25f or higher than 1f. The higher it is, the denser / more zoomed out the noise overlay is.
float noiseScale = MathHelper.Lerp(0.4f, 0.8f, (float)Math.Sin(Main.GlobalTimeWrappedHourly * 0.3f) * 0.5f + 0.5f);
// Define shader parameters
Effect shieldEffect = Filters.Scene["CalamityMod:RoverDriveShield"].GetShader().Shader;
shieldEffect.Parameters["time"].SetValue(Main.GlobalTimeWrappedHourly * 0.058f); // Scrolling speed of polygonal overlay
shieldEffect.Parameters["blowUpPower"].SetValue(2.8f);
shieldEffect.Parameters["blowUpSize"].SetValue(0.4f);
shieldEffect.Parameters["noiseScale"].SetValue(noiseScale);
// Shield opacity multiplier slightly changes, this is independent of current shield strength
float baseShieldOpacity = 0.9f + 0.1f * MathF.Sin(Main.GlobalTimeWrappedHourly * 1.95f);
float minShieldStrengthOpacityMultiplier = 0.5f;
float finalShieldOpacity = baseShieldOpacity * MathHelper.Lerp(minShieldStrengthOpacityMultiplier, 1f, visualShieldStrength);
shieldEffect.Parameters["shieldOpacity"].SetValue(finalShieldOpacity);
shieldEffect.Parameters["shieldEdgeBlendStrenght"].SetValue(4f);
// Profaned Soul shields are not team specific
Color shieldColor = new Color(231, 160, 56);
if (psc && ProfanedSoulCrystal.testerNames.Any(name => name.Equals(localModPlayer.Player.name)))
shieldColor = CalamityUtils.ColorSwap(new Color(255, 166, 0), new Color(25, 250, 25), 4f);
else if (psc)
shieldColor = new Color(255, 110, 56);
Color primaryEdgeColor = new Color(230, 199, 102) * 0.8f;
Color secondaryEdgeColor = new Color(249, 231, 217) * 0.8f;
Color edgeColor = CalamityUtils.MulticolorLerp(Main.GlobalTimeWrappedHourly * 0.2f, primaryEdgeColor, secondaryEdgeColor);
// Define shader parameters for shield color
shieldEffect.Parameters["shieldColor"].SetValue(shieldColor.ToVector3());
shieldEffect.Parameters["shieldEdgeColor"].SetValue(edgeColor.ToVector3());
// GOD I LOVE END BEGIN CAN THIS GAME PLEASE BE SWALLOWED BY THE FIRES OF HELL THANKS
// yes I copy pasted that comment, I hate end begin that much
// I also copy pasted that comment, this time for consistency :hdfailure:
Main.spriteBatch.End();
Main.spriteBatch.Begin(SpriteSortMode.Immediate, BlendState.Additive, Main.DefaultSamplerState, DepthStencilState.None, Main.Rasterizer, shieldEffect, Main.GameViewMatrix.TransformationMatrix);
// Fetch shield heat overlay texture (this is the neutrons fed to the shader)
HeatTex ??= ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/GreyscaleGradients/Neurons2");
Vector2 pos = player.MountedCenter + player.gfxOffY * Vector2.UnitY - Main.screenPosition;
Texture2D tex = HeatTex.Value;
Main.spriteBatch.Draw(tex, pos, null, Color.White, 0, tex.Size() / 2f, scale, 0, 0);
//The border circle MUST be drawn after otherwise it becomes visually fucked.
float shieldScale = scale * 1.75f;
Texture2D shieldTexture = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/GreyscaleOpenCircle").Value;
Rectangle shieldFrame = shieldTexture.Frame();
Vector2 origin = shieldFrame.Size() * 0.5f;
Main.spriteBatch.End();
Main.spriteBatch.Begin(SpriteSortMode.Immediate, BlendState.Additive, Main.DefaultSamplerState, DepthStencilState.None, Main.Rasterizer, null, Main.GameViewMatrix.TransformationMatrix);
Main.spriteBatch.Draw(shieldTexture, pos, shieldFrame, shieldColor * 0.5f, player.fullRotation, origin, shieldScale, SpriteEffects.None, 0f);
Main.spriteBatch.Draw(shieldTexture, pos, shieldFrame, secondaryEdgeColor * 0.5f, player.fullRotation, origin, shieldScale * 0.95f, SpriteEffects.None, 0f);
Main.spriteBatch.Draw(shieldTexture, pos, shieldFrame, shieldColor * 0.5f, player.fullRotation, origin, shieldScale, SpriteEffects.None, 0f);
Main.spriteBatch.Draw(shieldTexture, pos, shieldFrame, secondaryEdgeColor * 0.5f, player.fullRotation, origin, shieldScale * 0.95f, SpriteEffects.None, 0f);
}
alreadyDrawnShieldForPlayer = true;
modPlayer.drawnAnyShieldThisFrame = true;
}
if (alreadyDrawnShieldForPlayer)
{
Main.spriteBatch.End();
Main.spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, Main.DefaultSamplerState, DepthStencilState.None, Main.Rasterizer, null, Main.Transform);
}
orig(mainObj);
}
public override void SetDefaults()
{
Item.width = 32;
@@ -29,15 +153,21 @@ namespace CalamityMod.Items.Accessories
Item.Calamity().donorItem = true;
}
public override bool CanEquipAccessory(Player player, int slot, bool modded)
public override bool CanAccessoryBeEquippedWith(Item equippedItem, Item incomingItem, Player player)
{
return !player.Calamity().pArtifact;
return incomingItem.type != ModContent.ItemType<ProfanedSoulCrystal>();
}
public override void UpdateAccessory(Player player, bool hideVisual)
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.pArtifact = true;
modPlayer.pSoulArtifact = true;
modPlayer.pSoulShieldVisible = !hideVisual;
}
public override void UpdateVanity(Player player)
{
player.Calamity().pSoulShieldVisible = true;
}
public override void AddRecipes()
+15 -6
View File
@@ -18,7 +18,12 @@ namespace CalamityMod.Items.Accessories
//Developer item, dedicatee: Mishiro Usui/Amber Sienna
public class ProfanedSoulCrystal : ModItem, ILocalizedModType
{
public static string[] testerNames = new[] { "IbanPlay", "Chen", "Nincity", "Amber", "Mishiro" };
public static int ShieldDurabilityMax = 125;
public new string LocalizationCategory => "Items.Accessories";
internal const int maxMinionRequirement = 10;
/**
* Notes: Drops from providence if the only damage source during the fight is from typeless damage or the profaned soul and the owners of those babs do not have profaned crystal.
* All projectiles are in ProfanedSoulCrystalProjectiles.cs in the summon projectile directory
@@ -67,9 +72,9 @@ namespace CalamityMod.Items.Accessories
Item.Calamity().devItem = true;
}
public override bool CanEquipAccessory(Player player, int slot, bool modded)
public override bool CanAccessoryBeEquippedWith(Item equippedItem, Item incomingItem, Player player)
{
return !player.Calamity().pArtifact;
return incomingItem.type != ModContent.ItemType<ProfanedSoulArtifact>();
}
public override void ModifyTooltips(List<TooltipLine> tooltips)
@@ -97,22 +102,26 @@ namespace CalamityMod.Items.Accessories
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.pArtifact = true;
modPlayer.pSoulArtifact = true;
modPlayer.profanedCrystal = true;
if (hideVisual)
modPlayer.profanedCrystalHide = true;
modPlayer.profanedCrystalHide = hideVisual;
modPlayer.pSoulShieldVisible = !hideVisual;
DetermineTransformationEligibility(player);
}
public override void UpdateVanity(Player player)
{
player.Calamity().profanedCrystalHide = false;
player.Calamity().profanedCrystalForce = true;
player.Calamity().pSoulShieldVisible = true;
}
internal static void DetermineTransformationEligibility(Player player)
{
if (DownedBossSystem.downedCalamitas && DownedBossSystem.downedExoMechs && (player.maxMinions - player.slotsMinions) >= 10 && !player.Calamity().profanedCrystalForce && player.HasBuff<ProfanedCrystalBuff>())
//short circuit immediately if profanedcrystalbuffs has already been set
if (!player.Calamity().profanedCrystalBuffs && DownedBossSystem.downedCalamitas && DownedBossSystem.downedExoMechs && (player.maxMinions - player.slotsMinions) >= 10 && !player.Calamity().profanedCrystalForce && player.HasBuff<ProfanedCrystalBuff>())
{
player.Calamity().profanedCrystalBuffs = true;
}
+10 -2
View File
@@ -4,6 +4,8 @@ using CalamityMod.Rarities;
using CalamityMod.Tiles.Furniture.CraftingStations;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Accessories
@@ -12,6 +14,12 @@ namespace CalamityMod.Items.Accessories
public class Purity : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Accessories";
public override void SetStaticDefaults()
{
Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(5, 7));
ItemID.Sets.AnimatesAsSoul[Type] = true;
}
public override void SetDefaults()
{
Item.defense = 8;
@@ -45,8 +53,8 @@ namespace CalamityMod.Items.Accessories
CreateRecipe().
AddIngredient<AmbrosialAmpoule>().
AddIngredient<InfectedJewel>().
AddIngredient<AuricBar>(4).
AddIngredient<AscendantSpiritEssence>(5).
AddIngredient<AuricBar>(5).
AddIngredient<AscendantSpiritEssence>(4).
AddTile(ModContent.TileType<CosmicAnvil>()).
Register();
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 4.9 KiB

+3 -4
View File
@@ -17,10 +17,10 @@ namespace CalamityMod.Items.Accessories
{
Item.width = 64;
Item.height = 62;
Item.value = CalamityGlobalItem.Rarity14BuyPrice;
Item.value = CalamityGlobalItem.Rarity15BuyPrice;
Item.defense = 18;
Item.accessory = true;
Item.rare = ModContent.RarityType<DarkBlue>();
Item.rare = ModContent.RarityType<Violet>();
}
public override void UpdateAccessory(Player player, bool hideVisual)
@@ -57,8 +57,7 @@ namespace CalamityMod.Items.Accessories
CreateRecipe().
AddIngredient(ItemID.FrozenShield).
AddIngredient<DeificAmulet>().
AddIngredient<DivineGeode>(10).
AddIngredient<CosmiliteBar>(10).
AddIngredient<AuricBar>(5).
AddIngredient<AscendantSpiritEssence>(4).
AddTile<CosmicAnvil>().
Register();
+1 -1
View File
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Accessories
public new string LocalizationCategory => "Items.Accessories";
public override void SetStaticDefaults()
{
Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(6, 8));
Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(6, 8));
ItemID.Sets.AnimatesAsSoul[Type] = true;
}
+1 -1
View File
@@ -16,7 +16,7 @@ namespace CalamityMod.Items.Accessories
public new string LocalizationCategory => "Items.Accessories";
public override void SetStaticDefaults()
{
Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(8, 4));
Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(8, 4));
ItemID.Sets.AnimatesAsSoul[Type] = true;
}
+1 -1
View File
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Accessories
public new string LocalizationCategory => "Items.Accessories";
public override void SetStaticDefaults()
{
Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(8, 3));
Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(8, 3));
ItemID.Sets.AnimatesAsSoul[Type] = true;
}
+1
View File
@@ -34,6 +34,7 @@ namespace CalamityMod.Items.Accessories
AddIngredient<Baroclaw>().
AddIngredient<GiantTortoiseShell>().
AddIngredient<MolluskHusk>(5).
AddIngredient<MeldConstruct>(6).
AddTile(TileID.LunarCraftingStation).
Register();
}
+1 -1
View File
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Accessories
public new string LocalizationCategory => "Items.Accessories";
public override void SetStaticDefaults()
{
Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(9, 6));
Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(9, 6));
ItemID.Sets.AnimatesAsSoul[Type] = true;
}
+1 -1
View File
@@ -15,7 +15,7 @@ namespace CalamityMod.Items.Accessories
public new string LocalizationCategory => "Items.Accessories";
public override void SetStaticDefaults()
{
Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(6, 6));
Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(6, 6));
ItemID.Sets.AnimatesAsSoul[Type] = true;
}
+2 -2
View File
@@ -33,9 +33,9 @@ namespace CalamityMod.Items.Accessories
public static int ShieldRechargeDelay = CalamityUtils.SecondsToFrames(9); // was 6
public static int TotalShieldRechargeTime = CalamityUtils.SecondsToFrames(6);
// While active, The Sponge gives 30 defense and 30% DR
// While active, The Sponge gives 30 defense and 10% DR
public static int ShieldActiveDefense = 30;
public static float ShieldActiveDamageReduction = 0.3f;
public static float ShieldActiveDamageReduction = 0.1f;
public override void SetStaticDefaults()
+1 -1
View File
@@ -14,7 +14,7 @@ namespace CalamityMod.Items.Accessories
public new string LocalizationCategory => "Items.Accessories";
public override void SetStaticDefaults()
{
Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(6, 16));
Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(6, 16));
ItemID.Sets.AnimatesAsSoul[Type] = true;
}
+1 -1
View File
@@ -12,7 +12,7 @@ namespace CalamityMod.Items.Accessories
public new string LocalizationCategory => "Items.Accessories";
public override void SetStaticDefaults()
{
Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(7, 5));
Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(7, 5));
ItemID.Sets.AnimatesAsSoul[Type] = true;
}
+4 -4
View File
@@ -9,8 +9,8 @@ namespace CalamityMod.Items.Accessories
public new string LocalizationCategory => "Items.Accessories";
public override void SetDefaults()
{
Item.width = 20;
Item.height = 24;
Item.width = 18;
Item.height = 40;
Item.value = CalamityGlobalItem.Rarity1BuyPrice;
Item.rare = ItemRarityID.Blue;
Item.accessory = true;
@@ -18,8 +18,8 @@ namespace CalamityMod.Items.Accessories
public override void UpdateAccessory(Player player, bool hideVisual)
{
player.moveSpeed += 0.1f;
player.jumpSpeedBoost += 0.5f;
player.moveSpeed += 0.12f;
player.jumpSpeedBoost += 0.6f;
}
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 725 B

+1 -1
View File
@@ -20,7 +20,7 @@ namespace CalamityMod.Items.Accessories
public override void SetStaticDefaults()
{
Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(6, 5));
Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(6, 5));
ItemID.Sets.AnimatesAsSoul[Type] = true;
}
+7 -6
View File
@@ -12,9 +12,10 @@ namespace CalamityMod.Items.Accessories.Wings
public class DrewsWings : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Accessories.Wings";
public override void SetStaticDefaults()
{
ArmorIDs.Wing.Sets.Stats[Item.wingSlot] = new WingStats(361, 12f, 3f);
ArmorIDs.Wing.Sets.Stats[Item.wingSlot] = new WingStats(361, 11.5f, 2.9f);
}
public override void SetDefaults()
@@ -49,11 +50,11 @@ namespace CalamityMod.Items.Accessories.Wings
public override void VerticalWingSpeeds(Player player, ref float ascentWhenFalling, ref float ascentWhenRising, ref float maxCanAscendMultiplier, ref float maxAscentMultiplier, ref float constantAscend)
{
ascentWhenFalling = 1f; //0.85
ascentWhenRising = 0.175f; //0.15
maxCanAscendMultiplier = 1.2f; //1
maxAscentMultiplier = 3.25f; //3
constantAscend = 0.15f; //0.135
ascentWhenFalling = 1f;
ascentWhenRising = 0.17f;
maxCanAscendMultiplier = 1.2f;
maxAscentMultiplier = 3.25f;
constantAscend = 0.15f;
}
}
}
+1
View File
@@ -11,6 +11,7 @@ namespace CalamityMod.Items.Accessories.Wings
public class ElysianWings : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Accessories.Wings";
public override void SetStaticDefaults()
{
ArmorIDs.Wing.Sets.Stats[Item.wingSlot] = new WingStats(240, 9.5f, 2.7f);
+1
View File
@@ -13,6 +13,7 @@ namespace CalamityMod.Items.Accessories.Wings
public class ExodusWings : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Accessories.Wings";
public override void SetStaticDefaults()
{
ArmorIDs.Wing.Sets.Stats[Item.wingSlot] = new WingStats(180, 9f, 2.5f);
+7 -6
View File
@@ -16,9 +16,10 @@ namespace CalamityMod.Items.Accessories.Wings
public class SilvaWings : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Accessories.Wings";
public override void SetStaticDefaults()
{
ArmorIDs.Wing.Sets.Stats[Item.wingSlot] = new WingStats(270, 11f, 2.8f);
ArmorIDs.Wing.Sets.Stats[Item.wingSlot] = new WingStats(270, 10.5f, 2.8f);
}
public override void SetDefaults()
@@ -59,11 +60,11 @@ namespace CalamityMod.Items.Accessories.Wings
public override void VerticalWingSpeeds(Player player, ref float ascentWhenFalling, ref float ascentWhenRising, ref float maxCanAscendMultiplier, ref float maxAscentMultiplier, ref float constantAscend)
{
ascentWhenFalling = 1f; //0.85
ascentWhenRising = 0.16f; //0.15
maxCanAscendMultiplier = 1.2f; //1
maxAscentMultiplier = 3.25f; //3
constantAscend = 0.14f; //0.135
ascentWhenFalling = 0.95f;
ascentWhenRising = 0.16f;
maxCanAscendMultiplier = 1.1f;
maxAscentMultiplier = 3.2f;
constantAscend = 0.145f;
}
public override void AddRecipes()
+1
View File
@@ -15,6 +15,7 @@ namespace CalamityMod.Items.Accessories.Wings
public class TarragonWings : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Accessories.Wings";
public override void SetStaticDefaults()
{
ArmorIDs.Wing.Sets.Stats[Item.wingSlot] = new WingStats(250, 9.5f, 2.5f);
+3 -2
View File
@@ -15,6 +15,7 @@ namespace CalamityMod.Items.Accessories.Wings
public class TracersCelestial : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Accessories.Wings";
public override void SetStaticDefaults()
{
ArmorIDs.Wing.Sets.Stats[Item.wingSlot] = new WingStats(140, 9f, 2.6f);
@@ -48,8 +49,8 @@ namespace CalamityMod.Items.Accessories.Wings
Main.dust[num60].shader = GameShaders.Armor.GetSecondaryShader(player.cWings, player);
}
CalamityPlayer modPlayer = player.Calamity();
player.accRunSpeed = 8.5f;
player.moveSpeed += 0.16f;
player.accRunSpeed = 8f;
player.moveSpeed += 0.14f;
player.iceSkate = true;
player.waterWalk = true;
player.fireWalk = true;
+7 -6
View File
@@ -18,9 +18,10 @@ namespace CalamityMod.Items.Accessories.Wings
public class TracersElysian : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Accessories.Wings";
public override void SetStaticDefaults()
{
ArmorIDs.Wing.Sets.Stats[Item.wingSlot] = new WingStats(180, 10.5f, 2.75f);
ArmorIDs.Wing.Sets.Stats[Item.wingSlot] = new WingStats(180, 10f, 2.7f);
}
public override void SetDefaults()
@@ -51,8 +52,8 @@ namespace CalamityMod.Items.Accessories.Wings
Main.dust[num60].shader = GameShaders.Armor.GetSecondaryShader(player.cWings, player);
}
CalamityPlayer modPlayer = player.Calamity();
player.accRunSpeed = 9.25f;
player.moveSpeed += 0.2f;
player.accRunSpeed = 8.5f;
player.moveSpeed += 0.16f;
player.iceSkate = true;
player.waterWalk = true;
player.fireWalk = true;
@@ -66,10 +67,10 @@ namespace CalamityMod.Items.Accessories.Wings
public override void VerticalWingSpeeds(Player player, ref float ascentWhenFalling, ref float ascentWhenRising, ref float maxCanAscendMultiplier, ref float maxAscentMultiplier, ref float constantAscend)
{
ascentWhenFalling = 0.95f; //0.85
ascentWhenFalling = 0.85f;
ascentWhenRising = 0.15f;
maxCanAscendMultiplier = 1.1f; //1
maxAscentMultiplier = 3.15f; //3
maxCanAscendMultiplier = 1.1f;
maxAscentMultiplier = 2.7f;
constantAscend = 0.135f;
}
+9 -8
View File
@@ -18,9 +18,10 @@ namespace CalamityMod.Items.Accessories.Wings
public class TracersSeraph : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Accessories.Wings";
public override void SetStaticDefaults()
{
ArmorIDs.Wing.Sets.Stats[Item.wingSlot] = new WingStats(250, 12f, 3f);
ArmorIDs.Wing.Sets.Stats[Item.wingSlot] = new WingStats(250, 11f, 2.8f);
}
public override void SetDefaults()
@@ -51,8 +52,8 @@ namespace CalamityMod.Items.Accessories.Wings
Main.dust[num60].shader = GameShaders.Armor.GetSecondaryShader(player.cWings, player);
}
CalamityPlayer modPlayer = player.Calamity();
player.accRunSpeed = 10f;
player.moveSpeed += 0.24f;
player.accRunSpeed = 9f;
player.moveSpeed += 0.18f;
player.iceSkate = true;
player.waterWalk = true;
player.fireWalk = true;
@@ -66,11 +67,11 @@ namespace CalamityMod.Items.Accessories.Wings
public override void VerticalWingSpeeds(Player player, ref float ascentWhenFalling, ref float ascentWhenRising, ref float maxCanAscendMultiplier, ref float maxAscentMultiplier, ref float constantAscend)
{
ascentWhenFalling = 1f; //0.85
ascentWhenRising = 0.175f; //0.15
maxCanAscendMultiplier = 1.2f; //1
maxAscentMultiplier = 3.25f; //3
constantAscend = 0.15f; //0.135
ascentWhenFalling = 0.95f;
ascentWhenRising = 0.16f;
maxCanAscendMultiplier = 1.2f;
maxAscentMultiplier = 2.9f;
constantAscend = 0.145f;
}
public override void AddRecipes()
+6 -3
View File
@@ -36,7 +36,6 @@ using Terraria.ID;
using Terraria.ModLoader;
using Terraria.ModLoader.IO;
using Terraria.Utilities;
using CalamityMod.Projectiles.Typless;
namespace CalamityMod.Items
{
@@ -625,7 +624,7 @@ namespace CalamityMod.Items
if (player.HasBuff(BuffID.ParryDamageBuff))
{
if (item.type != ItemID.DD2SquireDemonSword)
if (item.type != ItemID.DD2SquireDemonSword && item.type != ItemID.BouncingShield)
{
player.parryDamageBuff = false;
player.ClearBuff(BuffID.ParryDamageBuff);
@@ -653,6 +652,9 @@ namespace CalamityMod.Items
NPC closest = Main.MouseWorld.ClosestNPCAt(1000f, true);
if (closest != null)
{
//TODO look into this, it does not work as expected!
//Does not draw the ring, mostly, which leads to uncertainty of it's functionality
//Maybe just move it to a whip transform :wires:
player.MinionAttackTargetNPC = closest.whoAmI;
player.UpdateMinionTarget();
}
@@ -788,7 +790,8 @@ namespace CalamityMod.Items
}
// Conversion for Profaned Soul Crystal
ProfanedSoulCrystal.DetermineTransformationEligibility(player);
// DO NOT CHECK TRANSFORM ELIGIBILITY HERE
// It causes issues with actually restricting the transformed attacks when the player fails the ~~vibe check~~ minion requirement check
if (modPlayer.profanedCrystalBuffs && item.pick == 0 && item.axe == 0 && item.hammer == 0 && item.autoReuse && (item.CountsAsClass<ThrowingDamageClass>() || item.CountsAsClass<MagicDamageClass>() || item.CountsAsClass<RangedDamageClass>() || item.CountsAsClass<MeleeDamageClass>()))
return player.altFunctionUse == 0 ? ProfanedSoulCrystal.TransformItemUsage(item, player) : AltFunctionUse(item, player);
+9 -12
View File
@@ -442,7 +442,7 @@ namespace CalamityMod.Items
// Palladium
if (item.type == ItemID.PalladiumSword || item.type == ItemID.PalladiumPike)
EditTooltipByName("Knockback", (line) => line.Text += "\nIncreases life regen on hit");
EditTooltipByName("Knockback", (line) => line.Text += "\nIncreases natural life regen on hit");
// Mythril
if (item.type == ItemID.MythrilSword || item.type == ItemID.MythrilHalberd)
@@ -478,9 +478,6 @@ namespace CalamityMod.Items
if (item.type == ItemID.AntlionClaw || item.type == ItemID.BoneSword || item.type == ItemID.BreakerBlade)
EditTooltipByName("Knockback", (line) => line.Text += "\nIgnores 50% of enemy defense");
if (item.type == ItemID.NightsEdge || item.type == ItemID.TrueNightsEdge)
EditTooltipByName("Knockback", (line) => line.Text += "\nInflicts Shadowflame on hit");
if (item.type == ItemID.DeathSickle)
EditTooltipByNum(0, (line) => line.Text += "\nInflicts Whispering Death on hit");
#endregion
@@ -588,7 +585,7 @@ namespace CalamityMod.Items
// Fairy Boots buff.
if (item.type == ItemID.FairyBoots)
EditTooltipByNum(2, (line) => line.Text += "\nFairies can spawn at any time on the surface and spawn far more frequently\n" +
"Nearby fairies grant increased life regen, defense and movement speed\n" +
"Nearby fairies grant +2 HP/s life regen, 10 defense and 10% movement speed\n" +
"Fairies are immune to damage and will no longer flee");
// Armor Crunch immunity pre-Golem.
@@ -623,8 +620,8 @@ namespace CalamityMod.Items
// Magiluminescence nerf and clear explanation of what it actually does.
if (item.type == ItemID.Magiluminescence)
EditTooltipByNum(0, (line) => line.Text = "Increases movement acceleration and deceleration by 1.25x\n" +
"Increases movement speed by 1.05x. This bonus applies to running boot accessories");
EditTooltipByNum(0, (line) => line.Text = "Increases movement acceleration and deceleration by 1.75x\n" +
"Increases movement speed by 1.15x. This bonus applies to running boot accessories");
// Soaring Insignia nerf and clear explanation of what it actually does.
if (item.type == ItemID.EmpressFlightBooster)
@@ -729,7 +726,7 @@ namespace CalamityMod.Items
if (item.type == ItemID.TinHelmet)
AddTooltip("3% increased critical strike chance");
if (item.type == ItemID.TinChainmail)
AddTooltip("+1 life regen");
AddTooltip("+0.5 HP/s life regen");
if (item.type == ItemID.TinGreaves)
AddTooltip("5% increased movement speed");
@@ -745,7 +742,7 @@ namespace CalamityMod.Items
if (item.type == ItemID.SilverHelmet)
AddTooltip("5% increased critical strike chance");
if (item.type == ItemID.SilverChainmail)
AddTooltip("+2 life regen");
AddTooltip("+1 HP/s life regen");
if (item.type == ItemID.SilverGreaves)
AddTooltip("8% increased movement speed");
@@ -753,7 +750,7 @@ namespace CalamityMod.Items
if (item.type == ItemID.TungstenHelmet)
AddTooltip("7% increased damage");
if (item.type == ItemID.TungstenChainmail)
AddTooltip("+1 life regen");
AddTooltip("+0.5 HP/s life regen");
if (item.type == ItemID.TungstenGreaves)
AddTooltip("8% increased movement speed");
@@ -782,7 +779,7 @@ namespace CalamityMod.Items
{
EditTooltipByNum(0, (line) => {
string newTooltip = line.Text.Replace("2%", "5%");
newTooltip += "\n+1 life regen";
newTooltip += "\n+0.5 HP/s life regen";
line.Text = newTooltip;
});
}
@@ -945,7 +942,7 @@ namespace CalamityMod.Items
AddWingStats(3f, 1f, 0, 25);
if (item.type == ItemID.AngelWings)
AddWingStats(6.25f, 1f, 1, 100, "+20 max life, +10 defense and +2 life regen");
AddWingStats(6.25f, 1f, 1, 100, "+20 max life, +10 defense and +1 HP/s life regen");
if (item.type == ItemID.DemonWings)
AddWingStats(6.25f, 1f, 1, 100, "5% increased damage and critical strike chance");
+27 -25
View File
@@ -44,7 +44,7 @@ namespace CalamityMod.Items
{ ItemID.AntlionClaw, Do(UseExact(14)) }, // Mandible Blade
{ ItemID.Bananarang, Do(DamageExact(98), UseExact(14)) },
{ ItemID.BatScepter, Do(DamageExact(56)) },
{ ItemID.BeamSword, Do(UseMeleeSpeed, DamageExact(200), UseAnimationExact(60), ShootSpeedExact(23f)) },
{ ItemID.BeamSword, Do(UseMeleeSpeed, UseTurn, DamageExact(180), UseAnimationExact(60), ShootSpeedExact(23f)) },
{ ItemID.BeeGun, Do(DamageExact(11)) },
{ ItemID.BeesKnees, Do(PointBlank, DamageExact(18), UseExact(38)) },
{ ItemID.Bladetongue, Do(UseTurn, UseRatio(0.8f), DamageExact(120), ScaleRatio(1.75f)) },
@@ -145,7 +145,7 @@ namespace CalamityMod.Items
{ ItemID.MagnetSphere, Do(DamageRatio(1.1f)) },
{ ItemID.Marrow, Do(PointBlank, DamageExact(69)) },
{ ItemID.MedusaHead, Do(ManaExact(6), DamageRatio(1.2f)) },
{ ItemID.Meowmere, Do(UseMeleeSpeed/*, DamageRatio(1.33f) */) },
{ ItemID.Meowmere, Do(UseMeleeSpeed, DamageExact(240)/*, DamageRatio(1.33f) */) },
{ ItemID.MeteorStaff, Do(DamageExact(58), ManaExact(7), ShootSpeedExact(13f)) },
{ ItemID.Minishark, Do(PointBlank, DamageExact(4)) },
{ ItemID.MoltenFury, Do(PointBlank, UseExact(29), AutoReuse) },
@@ -173,6 +173,7 @@ namespace CalamityMod.Items
{ ItemID.PearlwoodSword, Do(UseTurn, DamageRatio(1.5f)) },
{ ItemID.PewMaticHorn, Do(DamageExact(24)) },
{ ItemID.PhoenixBlaster, Do(AutoReuse, PointBlank, UseExact(18)) },
{ ItemID.PiranhaGun, Do(DamageExact(48)) },
{ ItemID.PlatinumBow, Do(PointBlank, DamageExact(12)) },
{ ItemID.PlatinumShortsword, Do(AutoReuse, TrueMelee, DamageExact(18)) },
{ ItemID.PoisonStaff, Do(DamageExact(57)) },
@@ -188,6 +189,7 @@ namespace CalamityMod.Items
{ ItemID.RedRyder, Do(PointBlank, DamageExact(24)) },
{ ItemID.RocketIII, Do(DamageRatio(0.75f)) },
{ ItemID.RocketIV, Do(DamageRatio(0.75f)) },
{ ItemID.Sandgun, Do(PointBlank, DamageExact(22), UseExact(20)) },
{ ItemID.SapphireStaff, Do(DamageExact(25)) },
{ ItemID.Seedler, Do(UseMeleeSpeed, DamageRatio(1.5f)) },
{ ItemID.ShadowbeamStaff, Do(DamageExact(100)) },
@@ -220,7 +222,7 @@ namespace CalamityMod.Items
{ ItemID.TendonBow, Do(PointBlank, DamageExact(17), AutoReuse) },
// Vanilla damage 190. After fixing iframes so yoyo and shots can hit simultaneously,
// Terrarian is extremely overpowered and requires a heavy nerf.
{ ItemID.Terrarian, Do(AutoReuse, DamageExact(94)) },
{ ItemID.Terrarian, Do(AutoReuse, DamageExact(86)) },
{ ItemID.TheRottedFork, Do(AutoReuse, TrueMelee, DamageExact(20)) },
{ ItemID.TheUndertaker, Do(PointBlank, AutoReuse, DamageExact(15)) },
{ ItemID.ThunderSpear, Do(AutoReuse, UseMeleeSpeed) }, // Storm Spear
@@ -247,6 +249,7 @@ namespace CalamityMod.Items
{ ItemID.Xenopopper, Do(DamageRatio(0.75f)) },
{ ItemID.YellowPhaseblade, Do(AutoReuse, UseTurn, DamageExact(32)) },
{ ItemID.YellowPhasesaber, Do(ScaleRatio(1.5f), DamageExact(60)) },
{ ItemID.Zenith, Do(DamageExact(210)) },
{ ItemID.ZombieArm, Do(AutoReuse, UseTurn, ScaleRatio(1.25f), KnockbackExact(12f)) },
#endregion
@@ -282,31 +285,31 @@ namespace CalamityMod.Items
#region CATEGORY 3: Tool Balancing
{ ItemID.AcornAxe, Do(AxePower(125)) }, // Axe of Regrowth
{ ItemID.AdamantiteChainsaw, Do(TrueMeleeNoSpeed, AxePower(90), UseTimeExact(4), TileBoostExact(+0)) },
{ ItemID.AdamantiteDrill, Do(TrueMeleeNoSpeed, PickPower(180), UseTimeExact(4), TileBoostExact(+1)) },
{ ItemID.AdamantiteChainsaw, Do(TrueMeleeNoSpeed, AxePower(90), UseTimeExact(4), TileBoostExact(+0), DamageExact(75)) },
{ ItemID.AdamantiteDrill, Do(TrueMeleeNoSpeed, PickPower(180), UseTimeExact(4), TileBoostExact(+1), DamageExact(32)) },
{ ItemID.AdamantitePickaxe, Do(PickPower(180), UseTimeExact(8), TileBoostExact(+1)) },
{ ItemID.AdamantiteWaraxe, Do(AxePower(160), UseTimeExact(10), TileBoostExact(+1)) },
{ ItemID.BloodLustCluster, Do(AxePower(100), UseTimeExact(13), TileBoostExact(+0)) },
{ ItemID.BonePickaxe, Do(PickPower(55), UseTimeExact(6)) },
{ ItemID.BorealWoodHammer, Do(HammerPower(25), UseTimeExact(11), TileBoostExact(+0)) },
{ ItemID.ButchersChainsaw, Do(TrueMeleeNoSpeed, AxePower(150), UseTimeExact(3), TileBoostExact(+0)) },
{ ItemID.ButchersChainsaw, Do(TrueMeleeNoSpeed, AxePower(150), UseTimeExact(3), TileBoostExact(+0), DamageExact(194)) },
{ ItemID.CactusPickaxe, Do(PickPower(34), UseTimeExact(9)) },
{ ItemID.CnadyCanePickaxe, Do(PickPower(55), UseTimeExact(9), TileBoostExact(+1)) }, // Candy Cane Pickaxe
{ ItemID.ChlorophyteChainsaw, Do(TrueMeleeNoSpeed, AxePower(120), UseTimeExact(3), TileBoostExact(+0)) },
{ ItemID.ChlorophyteDrill, Do(TrueMeleeNoSpeed, PickPower(200), UseTimeExact(4), TileBoostExact(+2)) },
{ ItemID.ChlorophyteChainsaw, Do(TrueMeleeNoSpeed, AxePower(120), UseTimeExact(3), TileBoostExact(+0), DamageExact(112)) },
{ ItemID.ChlorophyteDrill, Do(TrueMeleeNoSpeed, PickPower(200), UseTimeExact(4), TileBoostExact(+2), DamageExact(43)) },
{ ItemID.ChlorophyteGreataxe, Do(AxePower(165), UseTimeExact(7), TileBoostExact(+2)) },
{ ItemID.ChlorophyteJackhammer, Do(TrueMeleeNoSpeed, HammerPower(90), UseTimeExact(5), TileBoostExact(+0)) },
{ ItemID.ChlorophytePickaxe, Do(PickPower(200), UseTimeExact(7), TileBoostExact(+2)) },
{ ItemID.ChlorophyteWarhammer, Do(HammerPower(90), UseTimeExact(8), TileBoostExact(+2)) },
{ ItemID.CobaltChainsaw, Do(TrueMeleeNoSpeed, AxePower(70), UseTimeExact(4), TileBoostExact(-1)) },
{ ItemID.CobaltDrill, Do(TrueMeleeNoSpeed, PickPower(130), UseTimeExact(5)) },
{ ItemID.CobaltChainsaw, Do(TrueMeleeNoSpeed, AxePower(70), UseTimeExact(4), TileBoostExact(-1), DamageExact(51)) },
{ ItemID.CobaltDrill, Do(TrueMeleeNoSpeed, PickPower(130), UseTimeExact(5), DamageExact(21)) },
{ ItemID.CobaltPickaxe, Do(PickPower(130), UseTimeExact(9)) },
{ ItemID.CobaltWaraxe, Do(AxePower(125), UseTimeExact(12), TileBoostExact(+0)) },
{ ItemID.CopperAxe, Do(AxePower(50), UseTimeExact(16), TileBoostExact(+0)) },
{ ItemID.CopperHammer, Do(HammerPower(35), UseTimeExact(12), TileBoostExact(+0)) },
{ ItemID.CopperPickaxe, Do(PickPower(35), UseTimeExact(10), TileBoostExact(+0)) },
{ ItemID.DeathbringerPickaxe, Do(PickPower(70), UseTimeExact(10)) },
{ ItemID.Drax, Do(TrueMeleeNoSpeed, PickPower(200), AxePower(110), UseTimeExact(4), TileBoostExact(+1)) },
{ ItemID.Drax, Do(TrueMeleeNoSpeed, PickPower(200), AxePower(110), UseTimeExact(4), TileBoostExact(+1), DamageExact(80)) },
{ ItemID.EbonwoodHammer, Do(HammerPower(25), UseTimeExact(9), TileBoostExact(+0)) },
{ ItemID.FleshGrinder, Do(HammerPower(70), UseTimeExact(13), TileBoostExact(+0)) },
{ ItemID.GoldAxe, Do(AxePower(80), UseTimeExact(14), TileBoostExact(+0)) },
@@ -316,7 +319,7 @@ namespace CalamityMod.Items
{ ItemID.IronAxe, Do(AxePower(60), UseTimeExact(15), TileBoostExact(+0)) },
{ ItemID.IronHammer, Do(HammerPower(45), UseTimeExact(11), TileBoostExact(+0)) },
{ ItemID.IronPickaxe, Do(PickPower(40), UseTimeExact(8)) },
{ ItemID.LaserDrill, Do(PickPower(220), AxePower(120), UseTimeExact(4)) },
{ ItemID.LaserDrill, Do(PickPower(220), AxePower(120), UseTimeExact(4), DamageExact(54)) },
{ ItemID.LeadAxe, Do(AxePower(60), UseTimeExact(15), TileBoostExact(+0)) },
{ ItemID.LeadHammer, Do(HammerPower(45), UseTimeExact(11), TileBoostExact(+0)) },
{ ItemID.LeadPickaxe, Do(PickPower(40), UseTimeExact(8)) },
@@ -328,20 +331,20 @@ namespace CalamityMod.Items
{ ItemID.MeteorHamaxe, Do(HammerPower(70), AxePower(100), UseTimeExact(16), TileBoostExact(+0)) },
{ ItemID.MoltenHamaxe, Do(HammerPower(75), AxePower(125), UseTimeExact(14), TileBoostExact(+0)) },
{ ItemID.MoltenPickaxe, Do(PickPower(100), UseTimeExact(10)) },
{ ItemID.MythrilChainsaw, Do(TrueMeleeNoSpeed, AxePower(80), UseTimeExact(4), TileBoostExact(-1)) },
{ ItemID.MythrilDrill, Do(TrueMeleeNoSpeed, PickPower(160), UseTimeExact(4)) },
{ ItemID.MythrilChainsaw, Do(TrueMeleeNoSpeed, AxePower(80), UseTimeExact(4), TileBoostExact(-1), DamageExact(63)) },
{ ItemID.MythrilDrill, Do(TrueMeleeNoSpeed, PickPower(160), UseTimeExact(4), DamageExact(26)) },
{ ItemID.MythrilPickaxe, Do(PickPower(160), UseTimeExact(8)) },
{ ItemID.MythrilWaraxe, Do(AxePower(140), UseTimeExact(11), TileBoostExact(+0)) },
{ ItemID.NebulaDrill, Do(TrueMeleeNoSpeed, PickPower(225), UseTimeExact(3), TileBoostExact(+4)) },
{ ItemID.NebulaDrill, Do(TrueMeleeNoSpeed, PickPower(225), UseTimeExact(3), TileBoostExact(+4), DamageExact(95)) },
{ ItemID.NebulaPickaxe, Do(PickPower(225), UseTimeExact(6), TileBoostExact(+4)) },
{ ItemID.NettleBurst, Do(ManaExact(10), DamageExact(43)) },
{ ItemID.NightmarePickaxe, Do(PickPower(66), UseTimeExact(9)) },
{ ItemID.OrichalcumChainsaw, Do(TrueMeleeNoSpeed, AxePower(80), UseTimeExact(4), TileBoostExact(-1)) },
{ ItemID.OrichalcumDrill, Do(TrueMeleeNoSpeed, PickPower(160), UseTimeExact(4)) },
{ ItemID.OrichalcumChainsaw, Do(TrueMeleeNoSpeed, AxePower(80), UseTimeExact(4), TileBoostExact(-1), DamageExact(63)) },
{ ItemID.OrichalcumDrill, Do(TrueMeleeNoSpeed, PickPower(160), UseTimeExact(4), DamageExact(26)) },
{ ItemID.OrichalcumPickaxe, Do(PickPower(160), UseTimeExact(8)) },
{ ItemID.OrichalcumWaraxe, Do(AxePower(140), UseTimeExact(11), TileBoostExact(+0)) },
{ ItemID.PalladiumChainsaw, Do(TrueMeleeNoSpeed, AxePower(70), UseTimeExact(4), TileBoostExact(-1)) },
{ ItemID.PalladiumDrill, Do(TrueMeleeNoSpeed, PickPower(130), UseTimeExact(5)) },
{ ItemID.PalladiumChainsaw, Do(TrueMeleeNoSpeed, AxePower(70), UseTimeExact(4), TileBoostExact(-1), DamageExact(51)) },
{ ItemID.PalladiumDrill, Do(TrueMeleeNoSpeed, PickPower(130), UseTimeExact(5), DamageExact(21)) },
{ ItemID.PalladiumPickaxe, Do(PickPower(130), UseTimeExact(9)) },
{ ItemID.PalladiumWaraxe, Do(AxePower(125), UseTimeExact(12), TileBoostExact(+0)) },
{ ItemID.PalmWoodHammer, Do(HammerPower(25), UseTimeExact(11), TileBoostExact(+0)) },
@@ -361,25 +364,25 @@ namespace CalamityMod.Items
{ ItemID.SilverAxe, Do(AxePower(70), UseTimeExact(14), TileBoostExact(+0)) },
{ ItemID.SilverHammer, Do(HammerPower(55), UseTimeExact(10), TileBoostExact(+0)) },
{ ItemID.SilverPickaxe, Do(PickPower(50), UseTimeExact(11)) },
{ ItemID.SolarFlareDrill, Do(TrueMeleeNoSpeed, PickPower(225), UseTimeExact(3), TileBoostExact(+4)) },
{ ItemID.SolarFlareDrill, Do(TrueMeleeNoSpeed, PickPower(225), UseTimeExact(3), TileBoostExact(+4), DamageExact(95)) },
{ ItemID.SolarFlarePickaxe, Do(PickPower(225), UseTimeExact(6), TileBoostExact(+4)) },
{ ItemID.SpectreHamaxe, Do(HammerPower(90), AxePower(170), TileBoostExact(+4)) },
{ ItemID.SpectrePickaxe, Do(PickPower(200), TileBoostExact(+4)) },
{ ItemID.StardustDrill, Do(TrueMeleeNoSpeed, PickPower(225), UseTimeExact(3), TileBoostExact(+4)) },
{ ItemID.StardustDrill, Do(TrueMeleeNoSpeed, PickPower(225), UseTimeExact(3), TileBoostExact(+4), DamageExact(95)) },
{ ItemID.StardustPickaxe, Do(PickPower(225), UseTimeExact(6), TileBoostExact(+4)) },
{ ItemID.TheAxe, Do(HammerPower(100), AxePower(175), UseTimeExact(7), TileBoostExact(+1)) },
{ ItemID.TheBreaker, Do(HammerPower(70), UseTimeExact(13), TileBoostExact(+0)) },
{ ItemID.TinAxe, Do(AxePower(50), UseTimeExact(16), TileBoostExact(+0)) },
{ ItemID.TinHammer, Do(HammerPower(35), UseTimeExact(12), TileBoostExact(+0)) },
{ ItemID.TinPickaxe, Do(PickPower(35), UseTimeExact(10), TileBoostExact(+0)) },
{ ItemID.TitaniumChainsaw, Do(TrueMeleeNoSpeed, AxePower(90), UseTimeExact(4), TileBoostExact(+0)) },
{ ItemID.TitaniumDrill, Do(TrueMeleeNoSpeed, PickPower(180), UseTimeExact(4), TileBoostExact(+1)) },
{ ItemID.TitaniumChainsaw, Do(TrueMeleeNoSpeed, AxePower(90), UseTimeExact(4), TileBoostExact(+0), DamageExact(75)) },
{ ItemID.TitaniumDrill, Do(TrueMeleeNoSpeed, PickPower(180), UseTimeExact(4), TileBoostExact(+1), DamageExact(32)) },
{ ItemID.TitaniumPickaxe, Do(PickPower(180), UseTimeExact(8), TileBoostExact(+1)) },
{ ItemID.TitaniumWaraxe, Do(AxePower(160), UseTimeExact(10), TileBoostExact(+1)) },
{ ItemID.TungstenAxe, Do(AxePower(70), UseTimeExact(14), TileBoostExact(+0)) },
{ ItemID.TungstenHammer, Do(HammerPower(55), UseTimeExact(10), TileBoostExact(+0)) },
{ ItemID.TungstenPickaxe, Do(PickPower(50), UseTimeExact(11)) },
{ ItemID.VortexDrill, Do(TrueMeleeNoSpeed, PickPower(225), UseTimeExact(3), TileBoostExact(+4)) },
{ ItemID.VortexDrill, Do(TrueMeleeNoSpeed, PickPower(225), UseTimeExact(3), TileBoostExact(+4), DamageExact(95)) },
{ ItemID.VortexPickaxe, Do(PickPower(225), UseTimeExact(6), TileBoostExact(+4)) },
{ ItemID.WarAxeoftheNight, Do(AxePower(100), UseTimeExact(13), TileBoostExact(+0)) },
{ ItemID.WoodenHammer, Do(HammerPower(25), UseTimeExact(11), TileBoostExact(+0)) },
@@ -429,7 +432,6 @@ namespace CalamityMod.Items
{ ItemID.QuadBarrelShotgun, pointBlank },
{ ItemID.Revolver, Do(PointBlank, AutoReuse) },
{ ItemID.RichMahoganyBow, pointBlank },
{ ItemID.Sandgun, pointBlank },
{ ItemID.SDMG, pointBlank },
{ ItemID.ShadewoodBow, pointBlank },
{ ItemID.SilverBow, pointBlank },
@@ -0,0 +1,33 @@
using CalamityMod.NPCs.Abyss;
using Terraria;
using Terraria.ModLoader;
using Terraria.ID;
namespace CalamityMod.Items.Critters
{
public class BabyCannonballJellyfishItem : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Misc";
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 5;
}
//Intentionally NOT bait due to bestiary entry on them being used as ammunition, although dynamite fishing in terraria does sound pretty fun
public override void SetDefaults()
{
Item.useStyle = ItemUseStyleID.Swing;
Item.autoReuse = true;
Item.useTurn = true;
Item.useAnimation = 15;
Item.useTime = 10;
Item.maxStack = 9999;
Item.consumable = true;
Item.noUseGraphic = true;
Item.value = Item.buyPrice(0, 0, 30, 0);
Item.width = 26;
Item.height = 24;
Item.makeNPC = (short)ModContent.NPCType<BabyCannonballJellyfish>();
Item.rare = ItemRarityID.Green;
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 475 B

-24
View File
@@ -1,24 +0,0 @@
using Terraria;
using Terraria.ModLoader;
using Terraria.ID;
namespace CalamityMod.Items.Materials
{
public class BeetleJuice : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Materials";
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 5;
}
public override void SetDefaults()
{
Item.width = 20;
Item.height = 20;
Item.maxStack = 9999;
Item.value = Item.sellPrice(silver: 1);
Item.rare = ItemRarityID.Blue;
}
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 440 B

+2 -1
View File
@@ -19,5 +19,6 @@ namespace CalamityMod.Items.Materials
Item.maxStack = 9999;
Item.value = Item.sellPrice(silver: 16);
Item.rare = ItemRarityID.LightRed;
} }
}
}
}
@@ -0,0 +1,28 @@
using CalamityMod.Tiles;
using Terraria;
using Terraria.ModLoader;
using Terraria.ID;
namespace CalamityMod.Items.Placeables.Banners
{
public class BabyCannonballJellyfishBanner : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Placeables";
public override void SetDefaults()
{
Item.width = 10;
Item.height = 24;
Item.maxStack = 9999;
Item.useTurn = true;
Item.autoReuse = true;
Item.useAnimation = 15;
Item.useTime = 10;
Item.useStyle = ItemUseStyleID.Swing;
Item.consumable = true;
Item.rare = ItemRarityID.Blue;
Item.value = Item.buyPrice(0, 0, 10, 0);
Item.createTile = ModContent.TileType<MonsterBanner>();
Item.placeStyle = 128;
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 417 B

Loaded 100 of 486 files, more files were not shown because too many files have changed in this diff. Show more