subduction slicer stealth strike (probably vores deus oops!)
This commit is contained in:
1 parent
2e78a2469f
commit
6b3fda6d4e
8 files changed
+38
-16
No files matched your search
@@ -12,7 +12,8 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Subduction Slicer");
|
||||
Tooltip.SetDefault("Throws a scythe that explodes on enemy hits");
|
||||
Tooltip.SetDefault("Throws a scythe that explodes on enemy hits\n" +
|
||||
"Stealth strikes also summon an orange pillar of fire on enemy hits");
|
||||
}
|
||||
|
||||
public override void SafeSetDefaults()
|
||||
|
||||
@@ -12,6 +12,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Mangrove Chakram");
|
||||
Tooltip.SetDefault("Stealth strikes leave a trail of lingering flowers");
|
||||
}
|
||||
|
||||
public override void SafeSetDefaults()
|
||||
|
||||
@@ -12,6 +12,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Seashell Boomerang");
|
||||
Tooltip.SetDefault("Stealth strikes fire seashells at nearby enemies");
|
||||
}
|
||||
|
||||
public override void SafeSetDefaults()
|
||||
|
||||
@@ -50,8 +50,13 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
}
|
||||
public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor)
|
||||
{
|
||||
Texture2D tex = Main.projectileTexture[projectile.type];
|
||||
if (projectile.ai[0] == 1f)
|
||||
{
|
||||
tex = ModContent.GetTexture("CalamityMod/Projectiles/Rogue/BlueFlamePillarScoria");
|
||||
}
|
||||
Rectangle frame = new Rectangle(frameX * 80, frameY * 322, 80, 322);
|
||||
spriteBatch.Draw(ModContent.GetTexture("CalamityMod/Projectiles/Rogue/BlueFlamePillar"), projectile.Center - Main.screenPosition, frame, Color.White, projectile.rotation, projectile.Size / 2, 1f, SpriteEffects.None, 0f);
|
||||
spriteBatch.Draw(tex, projectile.Center - Main.screenPosition, frame, Color.White, projectile.rotation, projectile.Size / 2, 1f, SpriteEffects.None, 0f);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 31 KiB |
@@ -4,6 +4,7 @@ using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.World.Generation;
|
||||
|
||||
namespace CalamityMod.Projectiles.Rogue
|
||||
{
|
||||
@@ -41,6 +42,8 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
int smoke = Gore.NewGore(goreVec, default, Main.rand.Next(375, 378), 0.75f);
|
||||
Main.gore[smoke].behindTiles = true;
|
||||
}
|
||||
if (projectile.localAI[0] > 0f)
|
||||
projectile.localAI[0]--;
|
||||
}
|
||||
|
||||
public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor)
|
||||
@@ -54,20 +57,30 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
{
|
||||
target.immune[projectile.owner] = 6;
|
||||
target.AddBuff(BuffID.OnFire, 300);
|
||||
if (projectile.owner == Main.myPlayer)
|
||||
{
|
||||
int proj = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType<FuckYou>(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0.85f + Main.rand.NextFloat() * 1.15f);
|
||||
Main.projectile[proj].Calamity().forceRogue = true;
|
||||
}
|
||||
OnHitEffects(target.Center);
|
||||
}
|
||||
|
||||
public override void OnHitPvp(Player target, int damage, bool crit)
|
||||
{
|
||||
target.AddBuff(BuffID.OnFire, 300);
|
||||
OnHitEffects(target.Center);
|
||||
}
|
||||
|
||||
private void OnHitEffects(Vector2 position)
|
||||
{
|
||||
if (projectile.owner == Main.myPlayer)
|
||||
{
|
||||
int proj = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType<FuckYou>(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0.85f + Main.rand.NextFloat() * 1.15f);
|
||||
int proj = Projectile.NewProjectile(position, Vector2.Zero, ModContent.ProjectileType<FuckYou>(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0.85f + Main.rand.NextFloat() * 1.15f);
|
||||
Main.projectile[proj].Calamity().forceRogue = true;
|
||||
if (projectile.Calamity().stealthStrike && projectile.localAI[0] <= 0f)
|
||||
{
|
||||
Point result;
|
||||
if (WorldUtils.Find(projectile.Top.ToTileCoordinates(), Searches.Chain((GenSearch)new Searches.Down(80), (GenCondition)new Conditions.IsSolid()), out result))
|
||||
{
|
||||
Projectile.NewProjectile(result.ToVector2() * 16f, Vector2.Zero, ModContent.ProjectileType<BlueFlamePillar>(), projectile.damage, 2f, projectile.owner, 1f);
|
||||
projectile.localAI[0] = 30f;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,14 +34,13 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 44, projectile.velocity.X * 0.5f, projectile.velocity.Y * 0.5f);
|
||||
if (projectile.Calamity().stealthStrike)
|
||||
{
|
||||
if (projectile.timeLeft % 20 == 0)
|
||||
projectile.localAI[0] += Main.rand.Next(0,3);
|
||||
if (projectile.localAI[0] >= 10f)
|
||||
{
|
||||
for (int i = 0; i < 2; i++)
|
||||
{
|
||||
Projectile.NewProjectile(projectile.Center + new Vector2(Main.rand.NextFloat(-5f,5f), Main.rand.NextFloat(-5f,5f)),
|
||||
(projectile.velocity).RotatedByRandom(0.1f) * 0.1f,
|
||||
ModContent.ProjectileType<MangroveChakramFlower>(), projectile.damage / 2, 0f, projectile.owner);
|
||||
}
|
||||
projectile.localAI[0] = 0f;
|
||||
Projectile.NewProjectile(projectile.Center + new Vector2(Main.rand.NextFloat(-10f,10f), Main.rand.NextFloat(-10f,10f)),
|
||||
(projectile.velocity).RotatedByRandom(0.1f) * 0.25f,
|
||||
ModContent.ProjectileType<MangroveChakramFlower>(), projectile.damage / 4, 0f, projectile.owner);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
using CalamityMod.Projectiles.Typeless;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
@@ -27,7 +29,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
public override void AI()
|
||||
{
|
||||
if (projectile.Calamity().stealthStrike)
|
||||
CalamityGlobalProjectile.MagnetSphereHitscan(projectile, 300f, 10f, 60f, 5, ModContent.ProjectileType<Seashell>());
|
||||
CalamityGlobalProjectile.MagnetSphereHitscan(projectile, 300f, 10f, 20f, 5, ModContent.ProjectileType<Seashell>());
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user