Goodbye Sun of Hell

This commit is contained in:
Xyk committed 2024-11-09 17:29:00 -08:00
1 parent aa2b3d26a4
commit 31a7ca6938
16 files changed
+11 -294

No files matched your search

-3
View File
@@ -296,9 +296,6 @@ namespace CalamityMod.Balancing
#endregion
#region Providence
// 80% resist to Hell's Sun.
NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCType<Providence>(), new ProjectileResistBalancingRule(0.2f, ProjectileType<HellsSunProj>())));
// 35% resist to Vanishing Point. This thing desperately needs a rework.
NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCType<Providence>(), new ProjectileResistBalancingRule(0.65f, ProjectileType<SpatialSpear>(), ProjectileType<SpatialSpear2>(), ProjectileType<SpatialSpear3>(), ProjectileType<SpatialSpear4>())));
#endregion
+2 -1
View File
@@ -1515,7 +1515,8 @@ namespace CalamityMod.CalPlayer
theBeeCooldown = TheBee.CooldownLength;
}
if (rOfResilienceCooldown == 0 && rOfResilienceEffect > 0)
// TODO: If possible, find a way to make it so parries don't activate the hit
if (rOfResilienceCooldown == 0 && rOfResilienceEffect > 0 && hurtInfo.Damage > 1)
{
int cooldownTime = (Player.Calamity().profanedSoulRelicBuff ? 300 : 600);
rOfResilienceCooldown = cooldownTime;
-1
View File
@@ -2724,7 +2724,6 @@ namespace CalamityMod
ItemType<PoisonPack>(),
ItemType<SkyStabber>(),
ItemType<Nychthemeron>(),
ItemType<HellsSun>(),
ItemType<GodsParanoia>(),
ItemType<SlickCane>(),
ItemType<Mycoroot>(),
File renamed without changes.

Before

Width:  |  Height:  |  Size: 406 B

After

Width:  |  Height:  |  Size: 406 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 503 B

After

Width:  |  Height:  |  Size: 503 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 670 B

After

Width:  |  Height:  |  Size: 670 B

-85
View File
@@ -1,85 +0,0 @@
using CalamityMod.CalPlayer;
using CalamityMod.Items.Materials;
using CalamityMod.Projectiles.Rogue;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Weapons.Rogue
{
public class HellsSun : RogueWeapon
{
public override void SetDefaults()
{
Item.width = 22;
Item.height = 18;
Item.damage = 200;
Item.DamageType = RogueDamageClass.Instance;
Item.noMelee = true;
Item.noUseGraphic = true;
Item.useTime = 15;
Item.useAnimation = 15;
Item.useStyle = ItemUseStyleID.Swing;
Item.knockBack = 5;
Item.value = CalamityGlobalItem.RarityPurpleBuyPrice;
Item.rare = ItemRarityID.Purple;
Item.UseSound = SoundID.Item1;
Item.autoReuse = true;
Item.shootSpeed = 5f;
Item.shoot = ModContent.ProjectileType<HellsSunProj>();
}
public override bool CanUseItem(Player player)
{
if (player.altFunctionUse == 2)
{
Item.shoot = ProjectileID.None;
return player.ownedProjectileCounts[ModContent.ProjectileType<HellsSunProj>()] > 0;
}
else
{
Item.shoot = ModContent.ProjectileType<HellsSunProj>();
return player.ownedProjectileCounts[ModContent.ProjectileType<HellsSunProj>()] < 10;
}
}
public override float StealthDamageMultiplier => 0.10f;
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.killSpikyBalls = false;
if (modPlayer.StealthStrikeAvailable()) //setting the stealth strike
{
int stealth = Projectile.NewProjectile(source, position, velocity, ModContent.ProjectileType<HellsSunProj>(), damage, knockback, player.whoAmI);
if (stealth.WithinBounds(Main.maxProjectiles))
{
Main.projectile[stealth].Calamity().stealthStrike = true;
Main.projectile[stealth].penetrate = -1;
Main.projectile[stealth].timeLeft = 2400;
}
return false;
}
return true;
}
public override bool AltFunctionUse(Player player)
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.killSpikyBalls = true;
return true;
}
public override void AddRecipes()
{
CreateRecipe().
AddIngredient(ItemID.LunarBar, 10).
AddIngredient<UnholyEssence>(20).
AddTile(TileID.LunarCraftingStation).
Register();
}
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 499 B

+2 -3
View File
@@ -15,7 +15,7 @@ namespace CalamityMod.Items.Weapons.Rogue
{
Item.width = 56;
Item.height = 56;
Item.damage = 322;
Item.damage = 222;
Item.knockBack = 8f;
Item.useStyle = ItemUseStyleID.Swing;
Item.noMelee = true;
@@ -51,8 +51,7 @@ namespace CalamityMod.Items.Weapons.Rogue
public override void AddRecipes()
{
CreateRecipe().
AddIngredient<CrystalPiercer>(500).
AddIngredient<DivineGeode>(4).
AddIngredient<SpearofPaleolith>().
AddIngredient<UnholyEssence>(25).
AddTile(TileID.LunarCraftingStation).
Register();
@@ -433,9 +433,10 @@ RelicOfResilience: {
DisplayName: Relic Of Resilience
Tooltip:
'''
1...
2...
30...
rocks hmmmmmmm
While holding the item, rock shards surround you, dealing rapid damage to enemies they contact
While the shards are around you, your minimum defense is set to 150 and minimum dr to 10%
Nearby players gain this same bonus while you hold the item
Taking a hit or pressing <right> will pull in the shards, then blast them outward, inflicting a Profaned Weakness
This effect has a 10 second cooldown after you are hit
'''
}
@@ -538,18 +538,6 @@ HeavenfallenStardisk: {
'''
}
HellsSun: {
DisplayName: Hell's Sun
Tooltip:
'''
Hurls up to 10 gravity-defying spiky balls
Once stationary, periodically emit small suns that explode on hit
Stealth strikes emit suns at a faster rate and last for a longer amount of time
Press <right> to delete all existing spiky balls
'The Subterranean Sun in the palm of your hand'
'''
}
Hypothermia: {
DisplayName: Hypothermia
Tooltip:
@@ -99,7 +99,6 @@ ExecutionersBladeStealthProj.DisplayName: Executioner's Blade
ExorcismProj.DisplayName: Exorcism
ExorcismShockwave.DisplayName: Exorcism Shockwave
ExorcismStar.DisplayName: Exorcism Star
ExplosiveSun.DisplayName: Explosive Sun
FantasyTalismanProj.DisplayName: Talisman
FantasyTalismanStealth.DisplayName: Talisman
FeatherKnifeProjectile.DisplayName: Feather Knife
@@ -132,7 +131,6 @@ GrimreaverBat.DisplayName: Grim Bat
GrimreaverSkull.DisplayName: Grim Skull
HeavenfallenEnergy.DisplayName: Heavenfallen Energy
HeavenfallenStardiskBoomerang.DisplayName: Heavenfallen Stardisk
HellsSunProj.DisplayName: Hell's Sun
Honeycomb.DisplayName: Honeycomb
HoneycombFragment.DisplayName: Honeycomb Fragment
HypothermiaChunk.DisplayName: Ice Chunk
-94
View File
@@ -1,94 +0,0 @@
using CalamityMod.Buffs.DamageOverTime;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Terraria;
using Terraria.Audio;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Projectiles.Rogue
{
public class ExplosiveSun : ModProjectile, ILocalizedModType
{
public new string LocalizationCategory => "Projectiles.Rogue";
public override void SetDefaults()
{
Projectile.width = 22;
Projectile.height = 22;
//Projectile.aiStyle = ProjAIStyleID.TerrarianBeam;
Projectile.friendly = true;
Projectile.ignoreWater = true;
Projectile.penetrate = 1;
Projectile.light = 0.5f;
Projectile.alpha = 50;
Projectile.scale = 1.2f;
Projectile.timeLeft = 60;
Projectile.tileCollide = false;
Projectile.DamageType = RogueDamageClass.Instance;
}
public override void AI()
{
Projectile.velocity.X *= 0.985f;
Projectile.velocity.Y *= 0.985f;
}
public override bool PreDraw(ref Color lightColor)
{
//Changes the texture of the projectile
if (Projectile.ai[0] == 1f)
{
Texture2D texture = ModContent.Request<Texture2D>("CalamityMod/Projectiles/Rogue/ExplosiveSun2").Value;
Main.spriteBatch.Draw(texture, Projectile.Center - Main.screenPosition, new Rectangle?(new Rectangle(0, 0, texture.Width, texture.Height)), Projectile.GetAlpha(lightColor), Projectile.rotation, texture.Size() / 2f, Projectile.scale, SpriteEffects.None, 0);
return false;
}
if (Projectile.ai[0] == 2f)
{
Texture2D texture = ModContent.Request<Texture2D>("CalamityMod/Projectiles/Rogue/ExplosiveSun3").Value;
Main.spriteBatch.Draw(texture, Projectile.Center - Main.screenPosition, new Rectangle?(new Rectangle(0, 0, texture.Width, texture.Height)), Projectile.GetAlpha(lightColor), Projectile.rotation, texture.Size() / 2f, Projectile.scale, SpriteEffects.None, 0);
return false;
}
return true;
}
public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) => target.AddBuff(ModContent.BuffType<HolyFlames>(), 120);
public override void OnHitPlayer(Player target, Player.HurtInfo info) => target.AddBuff(ModContent.BuffType<HolyFlames>(), 120);
public override void OnKill(int timeLeft)
{
Projectile.position = Projectile.Center;
Projectile.width = Projectile.height = 192;
Projectile.position.X = Projectile.position.X - (float)(Projectile.width / 2);
Projectile.position.Y = Projectile.position.Y - (float)(Projectile.height / 2);
Projectile.maxPenetrate = -1;
Projectile.penetrate = -1;
Projectile.usesLocalNPCImmunity = true;
Projectile.localNPCHitCooldown = 10;
Projectile.damage /= 2;
Projectile.Damage();
if (Main.rand.NextBool(3))
{
SoundEngine.PlaySound(SoundID.Item14 with { Volume = SoundID.Item14.Volume * 0.5f }, Projectile.Center);
}
for (int i = 0; i < 5; i++)
{
int dust = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, DustID.CopperCoin, 0f, 0f, 100, default, 2f);
Main.dust[dust].velocity *= 3f;
if (Main.rand.NextBool())
{
Main.dust[dust].scale = 0.5f;
Main.dust[dust].fadeIn = 1f + (float)Main.rand.Next(10) * 0.1f;
}
}
for (int j = 0; j < 10; j++)
{
int dust2 = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, DustID.CopperCoin, 0f, 0f, 100, default, 3f);
Main.dust[dust2].noGravity = true;
Main.dust[dust2].velocity *= 5f;
dust2 = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, DustID.CopperCoin, 0f, 0f, 100, default, 2f);
Main.dust[dust2].velocity *= 2f;
}
}
}
}
-89
View File
@@ -1,89 +0,0 @@
using CalamityMod.Buffs.DamageOverTime;
using CalamityMod.CalPlayer;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Projectiles.Rogue
{
public class HellsSunProj : ModProjectile, ILocalizedModType
{
public new string LocalizationCategory => "Projectiles.Rogue";
public override string Texture => "CalamityMod/Items/Weapons/Rogue/HellsSun";
public override void SetDefaults()
{
Projectile.width = 15;
Projectile.height = 15;
Projectile.friendly = true;
Projectile.DamageType = RogueDamageClass.Instance;
Projectile.tileCollide = false;
Projectile.ignoreWater = true;
Projectile.penetrate = 20;
Projectile.timeLeft = 1200;
Projectile.usesLocalNPCImmunity = true;
Projectile.localNPCHitCooldown = 40;
}
public override void AI()
{
Projectile.ai[0] += 1f;
if (Projectile.ai[0] >= 70f)
{
Projectile.velocity.X *= 0.96f;
Projectile.velocity.Y *= 0.96f;
Projectile.localAI[1]++;
if (Projectile.Calamity().stealthStrike)
{
if (Projectile.localAI[1] >= 30f)
{
Vector2 velocity = Projectile.velocity;
Vector2 vector2_1 = new Vector2((float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101));
vector2_1.Normalize();
Vector2 vector2_2 = vector2_1 * ((float)Main.rand.Next(10, 41) * 0.1f);
if (Main.rand.NextBool(3))
vector2_2 *= 2f;
Vector2 vector2_3 = velocity * 0.25f + vector2_2;
Vector2 vector2_5 = vector2_3 * 0.8f;
Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center.X - vector2_5.X, Projectile.Center.Y - vector2_5.Y, vector2_5.X, vector2_5.Y, ModContent.ProjectileType<ExplosiveSun>(), Projectile.damage, Projectile.knockBack, Projectile.owner, Main.rand.Next(3), 0.0f);
Projectile.localAI[1] = 0.0f;
}
}
else
{
if (Projectile.localAI[1] >= 60f)
{
Vector2 velocity = Projectile.velocity;
Vector2 vector2_1 = new Vector2((float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101));
vector2_1.Normalize();
Vector2 vector2_2 = vector2_1 * ((float)Main.rand.Next(10, 41) * 0.1f);
if (Main.rand.NextBool(3))
vector2_2 *= 2f;
Vector2 vector2_3 = velocity * 0.25f + vector2_2;
Vector2 vector2_5 = vector2_3 * 0.8f;
Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center.X - vector2_5.X, Projectile.Center.Y - vector2_5.Y, vector2_5.X, vector2_5.Y, ModContent.ProjectileType<ExplosiveSun>(), Projectile.damage, Projectile.knockBack, Projectile.owner, Main.rand.Next(3), 0.0f);
Projectile.localAI[1] = 0.0f;
}
}
}
else
{
Projectile.rotation += 0.3f * (float)Projectile.direction;
}
Player player = Main.player[Projectile.owner];
CalamityPlayer modPlayer = player.Calamity();
if (modPlayer.killSpikyBalls == true)
{
Projectile.active = false;
Projectile.netUpdate = true;
}
}
public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) => target.AddBuff(ModContent.BuffType<HolyFlames>(), 180);
public override void OnHitPlayer(Player target, Player.HurtInfo info) => target.AddBuff(ModContent.BuffType<HolyFlames>(), 180);
}
}
@@ -41,6 +41,7 @@ namespace CalamityMod.Projectiles.Typeless
Projectile.timeLeft = 230;
Projectile.usesLocalNPCImmunity = true;
Projectile.localNPCHitCooldown = 30 * Projectile.MaxUpdates;
Projectile.ContinuouslyUpdateDamageStats = true;
}
public override void AI()
{
@@ -76,6 +76,7 @@ namespace CalamityMod.Projectiles.Typeless
Projectile.usesLocalNPCImmunity = true;
Projectile.localNPCHitCooldown = 50 * Projectile.MaxUpdates;
Projectile.extraUpdates = 3;
Projectile.ContinuouslyUpdateDamageStats = true;
}
public override void AI()
{