1 - Removed Divine Retribution by the dedicatee's request.
2 - Removed all mentions of Divine Retribution's dedicatee from the codebase, at their request.
This commit is contained in:
1 parent
3b90f36bf1
commit
f21b7f462e
9 files changed
+1
-224
No files matched your search
@@ -166,7 +166,6 @@ namespace CalamityMod.Items.Placeables.Furniture.DevPaintings
|
||||
"Phantasmal Deathray",
|
||||
"Phupperbat",
|
||||
"Pinkie Poss",
|
||||
"pixlgray",
|
||||
"Poly",
|
||||
"Popo",
|
||||
"President Waluigi",
|
||||
|
||||
@@ -1,68 +0,0 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Projectiles.Magic;
|
||||
using CalamityMod.Rarities;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Weapons.Magic
|
||||
{
|
||||
public class DivineRetribution : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Weapons.Magic";
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.staff[Type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 66;
|
||||
Item.height = 88;
|
||||
Item.damage = 48;
|
||||
Item.DamageType = DamageClass.Magic;
|
||||
Item.mana = 15;
|
||||
Item.useTime = 12;
|
||||
Item.useAnimation = 12;
|
||||
Item.useStyle = ItemUseStyleID.Shoot;
|
||||
Item.noMelee = true;
|
||||
Item.knockBack = 3.5f;
|
||||
|
||||
Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice;
|
||||
Item.rare = ModContent.RarityType<Turquoise>();
|
||||
Item.Calamity().donorItem = true;
|
||||
|
||||
Item.UseSound = SoundID.Item73;
|
||||
Item.autoReuse = true;
|
||||
Item.shootSpeed = 25f;
|
||||
Item.shoot = ModContent.ProjectileType<DivineRetributionSpear>();
|
||||
}
|
||||
|
||||
|
||||
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
|
||||
{
|
||||
// 5 projectiles total
|
||||
Vector2 mouse = player.ClampedMouseWorld();
|
||||
for (int i = -2; i < 3; i++)
|
||||
{
|
||||
Vector2 newPos = new Vector2(mouse.X + Main.rand.NextFloat(8f, 64f) * i, player.MountedCenter.Y + Main.rand.NextFloat(640f, 800f));
|
||||
Vector2 newVel = (mouse + Main.rand.NextVector2CircularEdge(4f, 4f) - newPos).SafeNormalize(Vector2.Zero) * velocity.Length() * Main.rand.NextFloat(1f, 1.25f);
|
||||
float velScale = 1f + Main.rand.NextFloat(0.02f, 0.08f) * i;
|
||||
Projectile.NewProjectile(source, newPos, newVel, type, damage, knockback, player.whoAmI, velScale);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient<UndinesRetribution>().
|
||||
AddIngredient<DivineGeode>(8).
|
||||
AddIngredient<UnholyEssence>(10).
|
||||
AddTile(TileID.MythrilAnvil).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 2.0 KiB |
@@ -250,11 +250,6 @@ DeathValleyDuster: {
|
||||
'''
|
||||
}
|
||||
|
||||
DivineRetribution: {
|
||||
DisplayName: Divine Retribution
|
||||
Tooltip: Mage is superior to rogue; look, we got a donor weapon to prove it!
|
||||
}
|
||||
|
||||
Downpour: {
|
||||
DisplayName: Downpour
|
||||
Tooltip:
|
||||
|
||||
@@ -250,7 +250,6 @@ namespace CalamityMod.NPCs
|
||||
};
|
||||
private static readonly string[] WizardNames =
|
||||
{
|
||||
"Mage One-Trick", // <@!340996105460514816> (pixlgray)
|
||||
"Inorim, son of Ivukey",
|
||||
"Jensen",
|
||||
"Merasmus", // <@!288066987819663360> (spiderprovidence)
|
||||
|
||||
@@ -1,147 +0,0 @@
|
||||
using System;
|
||||
using CalamityMod.Buffs.DamageOverTime;
|
||||
using CalamityMod.Dusts;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.Audio;
|
||||
using Terraria.GameContent;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Projectiles.Magic
|
||||
{
|
||||
public class DivineRetributionSpear : ModProjectile, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Projectiles.Magic";
|
||||
public Player Owner => Main.player[Projectile.owner];
|
||||
public ref float VelocityScale => ref Projectile.ai[0];
|
||||
public ref float Time => ref Projectile.ai[1];
|
||||
|
||||
public static float HomingSpeed => 20f;
|
||||
public static float HomingTime => 15f;
|
||||
public static float ReturnTime => 75f;
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
ProjectileID.Sets.TrailCacheLength[Type] = 15;
|
||||
ProjectileID.Sets.TrailingMode[Type] = 2;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Projectile.width = Projectile.height = 30;
|
||||
Projectile.friendly = true;
|
||||
Projectile.ignoreWater = true;
|
||||
Projectile.tileCollide = false;
|
||||
Projectile.DamageType = DamageClass.Magic;
|
||||
Projectile.penetrate = 1;
|
||||
Projectile.timeLeft = 210;
|
||||
}
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
Projectile.rotation = Projectile.velocity.ToRotation();
|
||||
|
||||
Time++;
|
||||
Projectile.Opacity = Utils.GetLerpValue(0f, 18f, Projectile.timeLeft, true);
|
||||
Lighting.AddLight(Projectile.Center, Color.Gold.ToVector3() * 0.7f * Projectile.Opacity);
|
||||
|
||||
if (Time % 2f == 1f)
|
||||
{
|
||||
Vector2 dustOffset = (Vector2.UnitY * MathF.Sin(Projectile.timeLeft * MathHelper.Pi * 0.05f) * 16f).RotatedBy(Projectile.velocity.ToRotation());
|
||||
Dust dust = Dust.NewDustPerfect(Projectile.Center + dustOffset, ModContent.DustType<LightDust>());
|
||||
dust.noGravity = true;
|
||||
dust.noLightEmittence = true;
|
||||
dust.color = Main.rand.NextBool() ? Color.Orange : Color.Goldenrod;
|
||||
dust.scale = Main.rand.NextFloat(0.4f, 0.6f);
|
||||
}
|
||||
|
||||
NPC potentialTarget = Projectile.Center.ClosestNPCAt(Time >= ReturnTime ? 480f : 320f);
|
||||
if (potentialTarget != null && Time >= HomingTime)
|
||||
{
|
||||
Vector2 idealVelocity = Projectile.SafeDirectionTo(potentialTarget.Center) * HomingSpeed * VelocityScale;
|
||||
Projectile.velocity = (Projectile.velocity * 29f + idealVelocity) / 30f;
|
||||
Projectile.velocity = Projectile.velocity.MoveTowards(idealVelocity, 3f);
|
||||
return;
|
||||
}
|
||||
else if (Owner.active && !Owner.dead && Time >= ReturnTime)
|
||||
{
|
||||
Vector2 idealVelocity = Projectile.SafeDirectionTo(Owner.MountedCenter) * HomingSpeed * VelocityScale * (1.2f - Utils.GetLerpValue(800f, 160f, Vector2.Distance(Projectile.Center, Owner.MountedCenter), true));
|
||||
Projectile.velocity = (Projectile.velocity * 29f + idealVelocity) / 30f;
|
||||
Projectile.velocity = Projectile.velocity.MoveTowards(idealVelocity, 3f);
|
||||
}
|
||||
if (!Owner.active || Owner.dead || (Vector2.Distance(Projectile.Center, Owner.MountedCenter) <= 240f && Time >= ReturnTime))
|
||||
{
|
||||
Projectile.timeLeft--;
|
||||
if (!Owner.active || Owner.dead || Vector2.Distance(Projectile.Center, Owner.MountedCenter) <= 80f)
|
||||
{
|
||||
if (Projectile.timeLeft > 30)
|
||||
Projectile.timeLeft = 30;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public override bool PreDraw(ref Color lightColor)
|
||||
{
|
||||
Texture2D spear = TextureAssets.Projectile[Type].Value;
|
||||
Vector2 drawPos = Projectile.Center - Main.screenPosition;
|
||||
|
||||
float cLerp = Utils.GetLerpValue(210, 160, Projectile.timeLeft, true);
|
||||
Color baseColor = Color.Lerp(Color.Goldenrod, new Color(255, 255, 150), cLerp) * Projectile.Opacity;
|
||||
Color glowColor = Color.Lerp(Color.OrangeRed, Color.Orange, cLerp) * Projectile.Opacity;
|
||||
|
||||
float squish = MathHelper.Clamp(Projectile.velocity.Length() * 0.04f, 0, 0.2f);
|
||||
Vector2 scale = new Vector2(1f + squish, 1f - squish);
|
||||
|
||||
Main.spriteBatch.EnterShaderRegion(BlendState.Additive);
|
||||
if (CalamityClientConfig.Instance.Afterimages)
|
||||
{
|
||||
for (int i = 0; i < Projectile.oldPos.Length; i++)
|
||||
{
|
||||
float completionRatio = i / (float)Projectile.oldPos.Length;
|
||||
Vector2 trailPos = Projectile.oldPos[i] + Projectile.Size * 0.5f - Main.screenPosition;
|
||||
|
||||
Color trailColor = Color.Lerp(glowColor, Color.Black, completionRatio) * 0.35f;
|
||||
Vector2 trailScale = scale * MathHelper.Lerp(1f, 0.15f, completionRatio);
|
||||
|
||||
Main.EntitySpriteDraw(spear, trailPos, null, trailColor, Projectile.oldRot[i], spear.Size() * 0.5f, trailScale, SpriteEffects.None);
|
||||
}
|
||||
}
|
||||
|
||||
for (int i = 0; i < 8; i++)
|
||||
{
|
||||
Vector2 offset = (MathHelper.TwoPi * i / 8f).ToRotationVector2() * 4f;
|
||||
Main.EntitySpriteDraw(spear, drawPos + offset, null, Color.Lerp(baseColor, glowColor, 0.8f) * 0.5f, Projectile.rotation, spear.Size() * 0.5f, scale, SpriteEffects.None);
|
||||
}
|
||||
Main.spriteBatch.ExitShaderRegion();
|
||||
|
||||
Main.EntitySpriteDraw(spear, drawPos, null, baseColor, Projectile.rotation, spear.Size() * 0.5f, scale, SpriteEffects.None);
|
||||
return false;
|
||||
}
|
||||
|
||||
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);
|
||||
|
||||
public override void OnKill(int timeLeft)
|
||||
{
|
||||
Projectile.ExpandHitboxBy(96);
|
||||
Projectile.maxPenetrate = -1;
|
||||
Projectile.penetrate = -1;
|
||||
Projectile.usesLocalNPCImmunity = true;
|
||||
Projectile.localNPCHitCooldown = 10;
|
||||
Projectile.Damage();
|
||||
SoundEngine.PlaySound(SoundID.Item74, Projectile.Center);
|
||||
for (int i = 0; i < 9; i++)
|
||||
{
|
||||
Dust dust = Dust.NewDustPerfect(Projectile.Center, ModContent.DustType<LightDust>(), Main.rand.NextVector2CircularEdge(5f, 5f));
|
||||
dust.noGravity = true;
|
||||
dust.noLightEmittence = true;
|
||||
dust.color = Main.rand.NextBool() ? Color.Orange : Color.Goldenrod;
|
||||
dust.scale = Main.rand.NextFloat(0.8f, 1.4f);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 552 B |
@@ -34,7 +34,6 @@ namespace CalamityMod.Systems.Collections
|
||||
"Hans Volter",
|
||||
"Krankwagon",
|
||||
"MishiroUsui",
|
||||
"pixlgray",
|
||||
"Arkhine",
|
||||
"Lodude",
|
||||
"DevAesthetic",
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace CalamityMod.TileEntities
|
||||
{
|
||||
/// Copied from ExampleMod for documentation if needed for later -pixl
|
||||
/// Copied from ExampleMod for documentation if needed for later
|
||||
/// <summary>
|
||||
/// This is an empty child class that acts exactly like the default implementation of the abstract <seealso cref="TEModdedPylon"/>
|
||||
/// class, which itself acts nearly identical to vanilla pylon TEs. This inheritance only exists so that modded pylon entities
|
||||
|
||||
Reference in new issue
Block a user