64 files changed
+166
-120
No files matched your search
@@ -101,7 +101,7 @@ namespace CalamityMod.CalPlayer
|
||||
player.lifeRegen = 0;
|
||||
|
||||
player.lifeRegenTime = 0;
|
||||
lifeRegenLost += 5;
|
||||
lifeRegenLost += 7;
|
||||
}
|
||||
|
||||
if (modPlayer.bFlames)
|
||||
|
||||
@@ -3428,7 +3428,7 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
if (modPlayer.gArtifact)
|
||||
{
|
||||
player.maxMinions += 8;
|
||||
player.maxMinions += 10;
|
||||
if (player.whoAmI == Main.myPlayer)
|
||||
{
|
||||
if (player.FindBuffIndex(ModContent.BuffType<YharonKindleBuff>()) == -1)
|
||||
|
||||
@@ -56,6 +56,9 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
|
||||
|
||||
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
|
||||
{
|
||||
if (player.Calamity().StealthStrikeAvailable())
|
||||
damage = (int)(damage * 0.9f);
|
||||
|
||||
int proj = Projectile.NewProjectile(position, new Vector2(speedX, speedY), type, damage, knockBack, player.whoAmI);
|
||||
if (proj.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[proj].Calamity().stealthStrike = player.Calamity().StealthStrikeAvailable();
|
||||
|
||||
@@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 2222;
|
||||
item.damage = 444;
|
||||
item.magic = true;
|
||||
item.noUseGraphic = true;
|
||||
item.channel = true;
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 82;
|
||||
item.damage = 88;
|
||||
item.magic = true;
|
||||
item.mana = 60;
|
||||
item.width = 130;
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 125;
|
||||
item.damage = 88;
|
||||
item.magic = true;
|
||||
item.mana = 15;
|
||||
item.width = 16;
|
||||
|
||||
@@ -24,7 +24,7 @@ Right click to fire two devastating barrages of five empowered fireballs.
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 80;
|
||||
item.damage = 124;
|
||||
item.knockBack = 1f;
|
||||
item.shootSpeed = 18f;
|
||||
item.useStyle = ItemUseStyleID.HoldingOut;
|
||||
|
||||
@@ -47,7 +47,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
//Check if stealth is full
|
||||
if (player.Calamity().StealthStrikeAvailable())
|
||||
{
|
||||
int p = Projectile.NewProjectile(position.X, position.Y, speedX, speedY, type, damage, knockBack, player.whoAmI);
|
||||
int p = Projectile.NewProjectile(position.X, position.Y, speedX, speedY, type, (int)(damage * 1.25f), knockBack, player.whoAmI);
|
||||
if (p.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[p].Calamity().stealthStrike = true;
|
||||
return false;
|
||||
|
||||
@@ -39,6 +39,9 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
|
||||
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
|
||||
{
|
||||
if (player.Calamity().StealthStrikeAvailable())
|
||||
damage = (int)(damage * 1.2f);
|
||||
|
||||
int star = Projectile.NewProjectile(player.Center, new Vector2(speedX, speedY), type, damage, knockBack, player.whoAmI);
|
||||
if (star.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[star].Calamity().stealthStrike = player.Calamity().StealthStrikeAvailable();
|
||||
|
||||
@@ -38,10 +38,10 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
}
|
||||
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
|
||||
{
|
||||
speedY *= 0.7f; //since the barrel is heavy
|
||||
speedY *= 0.85f;
|
||||
Vector2 initialVelocity = new Vector2(speedX, speedY);
|
||||
|
||||
//unitY additive is do it doesn't exploe initially
|
||||
// A vertical offset is added to ensure that the barrel does not immediately collide with tiles and explode.
|
||||
int p = Projectile.NewProjectile(position - Vector2.UnitY * 12f, initialVelocity, type, damage, knockBack, player.whoAmI);
|
||||
if (player.Calamity().StealthStrikeAvailable() && p.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[p].Calamity().stealthStrike = true;
|
||||
|
||||
@@ -47,6 +47,8 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
{
|
||||
if (item.stack != 1)
|
||||
{
|
||||
damage = (int)(damage * 1.55f);
|
||||
|
||||
for (int i = 0; i < item.stack; i++)
|
||||
{
|
||||
Vector2 perturbedSpeed = new Vector2(speedX, speedY).RotatedBy(MathHelper.Lerp(-MathHelper.ToRadians(8f), MathHelper.ToRadians(8f), i / (float)(item.stack - 1)));
|
||||
|
||||
@@ -39,7 +39,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
{
|
||||
if (player.Calamity().StealthStrikeAvailable()) //setting the stealth strike
|
||||
{
|
||||
int stealth = Projectile.NewProjectile(position, new Vector2(speedX, speedY), type, damage, knockBack, player.whoAmI);
|
||||
int stealth = Projectile.NewProjectile(position, new Vector2(speedX, speedY), type, (int)(damage * 0.85f), knockBack, player.whoAmI);
|
||||
if (stealth.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[stealth].Calamity().stealthStrike = true;
|
||||
return false;
|
||||
|
||||
@@ -46,7 +46,8 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
if (player.Calamity().StealthStrikeAvailable())
|
||||
{
|
||||
speedMult = 1.25f;
|
||||
}
|
||||
damage = (int)(damage * 1.3f);
|
||||
}
|
||||
int proj = Projectile.NewProjectile(position, new Vector2(speedX * speedMult, speedY * speedMult), type, damage, knockBack, player.whoAmI);
|
||||
if (player.Calamity().StealthStrikeAvailable() && proj.WithinBounds(Main.maxProjectiles))
|
||||
{
|
||||
|
||||
@@ -38,17 +38,19 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
|
||||
{
|
||||
if (player.Calamity().StealthStrikeAvailable())
|
||||
{
|
||||
for (int i = -6; i <= 6; i += 6)
|
||||
{
|
||||
Vector2 perturbedSpeed = new Vector2(speedX, speedY).RotatedBy(MathHelper.ToRadians(i));
|
||||
int stealth = Projectile.NewProjectile(position, perturbedSpeed, ModContent.ProjectileType<CobaltEnergy>(), damage, knockBack, player.whoAmI);
|
||||
if (stealth.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[stealth].Calamity().stealthStrike = true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
{
|
||||
damage = (int)(damage * 1.4f);
|
||||
|
||||
for (int i = -6; i <= 6; i += 6)
|
||||
{
|
||||
Vector2 perturbedSpeed = new Vector2(speedX, speedY).RotatedBy(MathHelper.ToRadians(i));
|
||||
int stealth = Projectile.NewProjectile(position, perturbedSpeed, ModContent.ProjectileType<CobaltEnergy>(), damage, knockBack, player.whoAmI);
|
||||
if (stealth.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[stealth].Calamity().stealthStrike = true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
|
||||
@@ -36,7 +36,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
item.rare = ItemRarityID.Yellow;
|
||||
item.Calamity().donorItem = true;
|
||||
item.shoot = ModContent.ProjectileType<CorpusAvertorProj>();
|
||||
item.shootSpeed = 5f;
|
||||
item.shootSpeed = 8.5f;
|
||||
item.Calamity().rogue = true;
|
||||
}
|
||||
|
||||
@@ -51,7 +51,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
{
|
||||
if (player.Calamity().StealthStrikeAvailable())
|
||||
{
|
||||
int dagger = Projectile.NewProjectile(position, new Vector2(speedX, speedY), ModContent.ProjectileType<CorpusAvertorStealth>(), damage * 2, knockBack * 2f, player.whoAmI);
|
||||
int dagger = Projectile.NewProjectile(position, new Vector2(speedX, speedY), ModContent.ProjectileType<CorpusAvertorStealth>(), (int)(damage * 3.5f), knockBack * 2f, player.whoAmI);
|
||||
if (dagger.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[dagger].Calamity().stealthStrike = true;
|
||||
return false;
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
public override void SafeSetDefaults()
|
||||
{
|
||||
item.width = 26;
|
||||
item.damage = 114;
|
||||
item.damage = 92;
|
||||
item.noMelee = true;
|
||||
item.noUseGraphic = true;
|
||||
item.useTime = 2;
|
||||
|
||||
@@ -39,6 +39,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
{
|
||||
if (player.Calamity().StealthStrikeAvailable())
|
||||
{
|
||||
damage = (int)(damage * 1.75f);
|
||||
type = ModContent.ProjectileType<CraniumSmasherStealth>();
|
||||
}
|
||||
else if (Main.rand.NextBool(5))
|
||||
|
||||
@@ -71,30 +71,25 @@ Stealth strikes launch all 4 sphere types at once");
|
||||
ProjectileType<SphereBlue>()
|
||||
});
|
||||
|
||||
//Kinda ugly but idk how to make it cleaner
|
||||
float SpeedX = speedX + Main.rand.NextFloat(-30, 30) * 0.05f;
|
||||
float SpeedY = speedY + Main.rand.NextFloat(-30, 30) * 0.05f;
|
||||
float SpeedX2 = speedX + Main.rand.NextFloat(-30, 30) * 0.05f;
|
||||
float SpeedY2 = speedY + Main.rand.NextFloat(-30, 30) * 0.05f;
|
||||
float SpeedX3 = speedX + Main.rand.NextFloat(-30, 30) * 0.05f;
|
||||
float SpeedY3 = speedY + Main.rand.NextFloat(-30, 30) * 0.05f;
|
||||
float SpeedX4 = speedX + Main.rand.NextFloat(-30, 30) * 0.05f;
|
||||
float SpeedY4 = speedY + Main.rand.NextFloat(-30, 30) * 0.05f;
|
||||
|
||||
if (player.Calamity().StealthStrikeAvailable())
|
||||
{
|
||||
int stealth = Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, type, damage / 2, knockBack, player.whoAmI);
|
||||
int stealth2 = Projectile.NewProjectile(position.X, position.Y, SpeedX2, SpeedY2, ProjectileType<SphereBladed>(), damage / 2, knockBack, player.whoAmI);
|
||||
int stealth3 = Projectile.NewProjectile(position.X, position.Y, SpeedX3, SpeedY3, ProjectileType<SphereYellow>(), damage / 2, knockBack, player.whoAmI);
|
||||
int stealth4 = Projectile.NewProjectile(position.X, position.Y, SpeedX4, SpeedY4, ProjectileType<SphereBlue>(), damage / 2, knockBack, player.whoAmI);
|
||||
if (stealth.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[stealth].Calamity().stealthStrike = true;
|
||||
if (stealth2.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[stealth2].Calamity().stealthStrike = true;
|
||||
if (stealth3.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[stealth3].Calamity().stealthStrike = true;
|
||||
if (stealth4.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[stealth4].Calamity().stealthStrike = true;
|
||||
// This is done to allow looping when creating projectiles, instead of having to create many projectile/velocity variables all at once,
|
||||
// which this shoot code used to do.
|
||||
int[] projectilesToShoot = new int[]
|
||||
{
|
||||
type,
|
||||
ProjectileType<SphereBladed>(),
|
||||
ProjectileType<SphereYellow>(),
|
||||
ProjectileType<SphereBlue>()
|
||||
};
|
||||
|
||||
foreach (int projectileType in projectilesToShoot)
|
||||
{
|
||||
Vector2 shootVelocity = new Vector2(speedX, speedY) + Main.rand.NextVector2Square(-1.5f, 1.5f);
|
||||
int stealth = Projectile.NewProjectile(position, shootVelocity, projectileType, (int)(damage * 0.625f), knockBack, player.whoAmI);
|
||||
if (stealth.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[stealth].Calamity().stealthStrike = true;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -20,7 +20,7 @@ Stealth strikes summon more lightning and travel faster");
|
||||
|
||||
public override void SafeSetDefaults()
|
||||
{
|
||||
item.damage = 457;
|
||||
item.damage = 466;
|
||||
item.knockBack = 10f;
|
||||
|
||||
item.width = 56;
|
||||
|
||||
@@ -38,6 +38,9 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
|
||||
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
|
||||
{
|
||||
if (player.Calamity().StealthStrikeAvailable())
|
||||
damage = (int)(damage * 1.2f);
|
||||
|
||||
int proj = Projectile.NewProjectile(position, new Vector2(speedX, speedY), type, damage, knockBack, player.whoAmI);
|
||||
if (Main.projectile.IndexInRange(proj))
|
||||
Main.projectile[proj].Calamity().stealthStrike = player.Calamity().StealthStrikeAvailable();
|
||||
|
||||
@@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
{
|
||||
item.width = 34;
|
||||
item.height = 34;
|
||||
item.damage = 52;
|
||||
item.damage = 80;
|
||||
item.noMelee = true;
|
||||
item.noUseGraphic = true;
|
||||
item.autoReuse = true;
|
||||
|
||||
@@ -41,7 +41,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
{
|
||||
if (player.Calamity().StealthStrikeAvailable())
|
||||
{
|
||||
int p = Projectile.NewProjectile(position.X, position.Y, speedX, speedY, type, damage, knockBack, player.whoAmI, 2f, damage);
|
||||
int p = Projectile.NewProjectile(position.X, position.Y, speedX, speedY, type, (int)(damage * 1.15f), knockBack, player.whoAmI, 2f, damage);
|
||||
if (p.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[p].Calamity().stealthStrike = true;
|
||||
}
|
||||
|
||||
@@ -43,7 +43,7 @@ Stealth strikes release more souls and leave behind souls as they travel");
|
||||
{
|
||||
if (player.Calamity().StealthStrikeAvailable()) //setting the stealth strike
|
||||
{
|
||||
int stealth = Projectile.NewProjectile(position, new Vector2(speedX, speedY), ModContent.ProjectileType<FantasyTalismanStealth>(), damage, knockBack, player.whoAmI);
|
||||
int stealth = Projectile.NewProjectile(position, new Vector2(speedX, speedY), ModContent.ProjectileType<FantasyTalismanStealth>(), (int)(damage * 0.8f), knockBack, player.whoAmI);
|
||||
if (stealth.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[stealth].Calamity().stealthStrike = true;
|
||||
return false;
|
||||
|
||||
@@ -54,7 +54,7 @@ Stealth strikes throw three short ranged boomerangs along with a spread of icicl
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
Vector2 perturbedspeed = new Vector2(speedX, speedY).RotatedBy(MathHelper.ToRadians(spread));
|
||||
int proj = Projectile.NewProjectile(position, perturbedspeed, type, Math.Max(damage / 3, 1), knockBack / 3f, player.whoAmI, 0f, 1f);
|
||||
int proj = Projectile.NewProjectile(position, perturbedspeed, type, Math.Max((int)(damage / 2.7272f), 1), knockBack / 3f, player.whoAmI, 0f, 1f);
|
||||
if (proj.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[proj].Calamity().stealthStrike = true;
|
||||
spread -= 10;
|
||||
@@ -64,7 +64,7 @@ Stealth strikes throw three short ranged boomerangs along with a spread of icicl
|
||||
for (int i = 0; i < icicleAmt; i++)
|
||||
{
|
||||
Vector2 perturbedspeed = new Vector2(speedX + Main.rand.Next(-3,4), speedY + Main.rand.Next(-3,4)).RotatedBy(MathHelper.ToRadians(spread2));
|
||||
Projectile.NewProjectile(position, perturbedspeed, (Main.rand.NextBool(2) ? ModContent.ProjectileType<Valaricicle>() : ModContent.ProjectileType<Valaricicle2>()), Math.Max(damage / 3, 1), 0f, player.whoAmI, 0f, 0f);
|
||||
Projectile.NewProjectile(position, perturbedspeed, (Main.rand.NextBool(2) ? ModContent.ProjectileType<Valaricicle>() : ModContent.ProjectileType<Valaricicle2>()), Math.Max((int)(damage / 2.7272f), 1), 0f, player.whoAmI, 0f, 0f);
|
||||
spread2 -= Main.rand.Next(1,4);
|
||||
}
|
||||
return false;
|
||||
|
||||
@@ -44,7 +44,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
{
|
||||
if (player.Calamity().StealthStrikeAvailable())
|
||||
{
|
||||
int flare = Projectile.NewProjectile(position, new Vector2(speedX, speedY), ModContent.ProjectileType<FrostyFlareStealth>(), damage, knockBack, player.whoAmI);
|
||||
int flare = Projectile.NewProjectile(position, new Vector2(speedX, speedY), ModContent.ProjectileType<FrostyFlareStealth>(), (int)(damage * 0.9f), knockBack, player.whoAmI);
|
||||
if (flare.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[flare].Calamity().stealthStrike = true;
|
||||
return false;
|
||||
|
||||
@@ -43,7 +43,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
{
|
||||
if (player.Calamity().StealthStrikeAvailable())
|
||||
{
|
||||
int proj = Projectile.NewProjectile(position.X, position.Y, 0f, -10f, type, damage, knockBack, player.whoAmI);
|
||||
int proj = Projectile.NewProjectile(position.X, position.Y, 0f, -10f, type, (int)(damage * 1.25f), knockBack, player.whoAmI);
|
||||
if (proj.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[proj].Calamity().stealthStrike = true;
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
{
|
||||
if (player.Calamity().StealthStrikeAvailable()) //setting the stealth strike
|
||||
{
|
||||
int stealth = Projectile.NewProjectile(position, new Vector2(speedX, speedY), type, damage, knockBack, player.whoAmI);
|
||||
int stealth = Projectile.NewProjectile(position, new Vector2(speedX, speedY), type, (int)(damage * 1.6), knockBack, player.whoAmI);
|
||||
if (stealth.WithinBounds(Main.maxProjectiles))
|
||||
{
|
||||
Main.projectile[stealth].Calamity().stealthStrike = true;
|
||||
|
||||
@@ -68,9 +68,11 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
|
||||
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
|
||||
{
|
||||
float stealthDamageFactor = player.Calamity().StealthStrikeAvailable() ? 1.25f : 1f;
|
||||
|
||||
if (player.Calamity().StealthStrikeAvailable() || player.altFunctionUse != 2)
|
||||
{
|
||||
int bomb = Projectile.NewProjectile(position, new Vector2(speedX, speedY), type, damage, knockBack, player.whoAmI);
|
||||
int bomb = Projectile.NewProjectile(position, new Vector2(speedX, speedY), type, (int)(damage * stealthDamageFactor), knockBack, player.whoAmI);
|
||||
if (bomb.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[bomb].Calamity().stealthStrike = player.Calamity().StealthStrikeAvailable();
|
||||
return false;
|
||||
@@ -81,7 +83,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
for (float i = -2.5f; i < 3f; ++i)
|
||||
{
|
||||
Vector2 perturbedSpeed = new Vector2(speedX, speedY).RotatedBy(MathHelper.ToRadians(i));
|
||||
Projectile.NewProjectile(position, perturbedSpeed, type, (int)(damage * dmgMult), knockBack, player.whoAmI);
|
||||
Projectile.NewProjectile(position, perturbedSpeed, type, (int)(damage * dmgMult * stealthDamageFactor), knockBack, player.whoAmI);
|
||||
}
|
||||
}
|
||||
return false;
|
||||
|
||||
@@ -44,6 +44,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
{
|
||||
teethCount = 3;
|
||||
stealthStrike = true;
|
||||
damage = (int)(damage * 1.3f);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -40,7 +40,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
|
||||
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
|
||||
{
|
||||
int proj = Projectile.NewProjectile(position, new Vector2(speedX, speedY), type, damage, knockBack, player.whoAmI);
|
||||
int proj = Projectile.NewProjectile(position, new Vector2(speedX, speedY), type, (int)(damage * 1.25f), knockBack, player.whoAmI);
|
||||
if (Main.projectile.IndexInRange(proj))
|
||||
Main.projectile[proj].Calamity().stealthStrike = player.Calamity().StealthStrikeAvailable();
|
||||
return false;
|
||||
|
||||
@@ -74,7 +74,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
for (float i = -6.5f; i <= 6.5f; i += 6.5f)
|
||||
{
|
||||
Vector2 perturbedSpeed = new Vector2(speedX, speedY).RotatedBy(MathHelper.ToRadians(i));
|
||||
int stealth = Projectile.NewProjectile(position, perturbedSpeed, type, damage, knockBack, player.whoAmI);
|
||||
int stealth = Projectile.NewProjectile(position, perturbedSpeed, type, damage * 2, knockBack, player.whoAmI);
|
||||
if (stealth.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[stealth].Calamity().stealthStrike = true;
|
||||
}
|
||||
|
||||
@@ -37,6 +37,9 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
|
||||
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
|
||||
{
|
||||
if (player.Calamity().StealthStrikeAvailable())
|
||||
damage = (int)(damage * 1.25f);
|
||||
|
||||
int proj = Projectile.NewProjectile(position, new Vector2(speedX, speedY), type, damage, knockBack, player.whoAmI);
|
||||
if (proj.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[proj].Calamity().stealthStrike = player.Calamity().StealthStrikeAvailable();
|
||||
|
||||
@@ -68,7 +68,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
p.Calamity().stealthStrike = true;
|
||||
int pID = p.identity;
|
||||
|
||||
CreateOrbs(position, (int)(orbDamage * 0.75f), knockBack, pID, player, true);
|
||||
CreateOrbs(position, (int)(orbDamage * 0.675f), knockBack, pID, player, true);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
@@ -38,7 +38,10 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
|
||||
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
|
||||
{
|
||||
int javelin = Projectile.NewProjectile(position, new Vector2(speedX, speedY), type, damage, knockBack, player.whoAmI);
|
||||
if (player.Calamity().StealthStrikeAvailable())
|
||||
damage = (int)(damage * 1.425f);
|
||||
|
||||
int javelin = Projectile.NewProjectile(position, new Vector2(speedX, speedY), type, damage, knockBack, player.whoAmI);
|
||||
if (javelin.WithinBounds(Main.maxProjectiles))
|
||||
{
|
||||
Main.projectile[javelin].Calamity().stealthStrike = player.Calamity().StealthStrikeAvailable();
|
||||
|
||||
@@ -47,7 +47,7 @@ Stealth strikes don't slow down and souls always deal full damage");
|
||||
{
|
||||
if (player.Calamity().StealthStrikeAvailable()) //setting the stealth strike
|
||||
{
|
||||
int stealth = Projectile.NewProjectile(position, new Vector2(speedX, speedY), type, damage, knockBack, player.whoAmI);
|
||||
int stealth = Projectile.NewProjectile(position, new Vector2(speedX, speedY), type, (int)(damage * 1.75f), knockBack, player.whoAmI);
|
||||
if (stealth.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[stealth].Calamity().stealthStrike = true;
|
||||
return false;
|
||||
|
||||
@@ -44,7 +44,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
{
|
||||
if (player.Calamity().StealthStrikeAvailable())
|
||||
{
|
||||
int proj = Projectile.NewProjectile(position, new Vector2(speedX, speedY), type, damage, knockBack, player.whoAmI);
|
||||
int proj = Projectile.NewProjectile(position, new Vector2(speedX, speedY), type, (int)(damage * 1.15f), knockBack, player.whoAmI);
|
||||
if (proj.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[proj].Calamity().stealthStrike = true;
|
||||
return false;
|
||||
|
||||
@@ -42,7 +42,7 @@ Stealth strikes explode into energy stars");
|
||||
{
|
||||
if (player.Calamity().StealthStrikeAvailable()) //setting the stealth strike
|
||||
{
|
||||
int stealth = Projectile.NewProjectile(position, new Vector2(speedX, speedY), type, damage, knockBack, player.whoAmI);
|
||||
int stealth = Projectile.NewProjectile(position, new Vector2(speedX, speedY), type, (int)(damage * 1.2f), knockBack, player.whoAmI);
|
||||
if (stealth.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[stealth].Calamity().stealthStrike = true;
|
||||
return false;
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
|
||||
public override void SafeSetDefaults()
|
||||
{
|
||||
item.damage = 150;
|
||||
item.damage = 260;
|
||||
item.knockBack = 5f;
|
||||
item.useAnimation = item.useTime = 25;
|
||||
item.useStyle = ItemUseStyleID.SwingThrow;
|
||||
@@ -40,8 +40,8 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
{
|
||||
if (player.Calamity().StealthStrikeAvailable())
|
||||
{
|
||||
// Directly nerf stealth strikes by 20%, but only stealth strikes.
|
||||
int stealthDamage = (int)(damage * 0.8f);
|
||||
// Directly nerf stealth strikes by 32%, but only stealth strikes.
|
||||
int stealthDamage = (int)(damage * 0.72f);
|
||||
int stealth = Projectile.NewProjectile(position, new Vector2(speedX, speedY), type, stealthDamage, knockBack, player.whoAmI);
|
||||
if (stealth.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[stealth].Calamity().stealthStrike = true;
|
||||
|
||||
@@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
item.value = Item.buyPrice(0, 1, 0, 0);
|
||||
item.rare = ItemRarityID.Yellow;
|
||||
item.shoot = ModContent.ProjectileType<ShockGrenadeProjectile>();
|
||||
item.shootSpeed = 7.5f;
|
||||
item.shootSpeed = 12.5f;
|
||||
item.Calamity().rogue = true;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
{
|
||||
if (player.Calamity().StealthStrikeAvailable()) //setting the stealth strike
|
||||
{
|
||||
int stealth = Projectile.NewProjectile(position, new Vector2(speedX, speedY), type, damage, knockBack, player.whoAmI, 0f, 1f);
|
||||
int stealth = Projectile.NewProjectile(position, new Vector2(speedX, speedY), type, (int)(damage * 0.8f), knockBack, player.whoAmI, 0f, 1f);
|
||||
if (stealth.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[stealth].Calamity().stealthStrike = true;
|
||||
return false;
|
||||
|
||||
@@ -45,15 +45,17 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
{
|
||||
if (player.Calamity().StealthStrikeAvailable() && player.ownedProjectileCounts[item.shoot] < knifeLimit)
|
||||
{
|
||||
int knifeAmt = knifeCount;
|
||||
if ((player.ownedProjectileCounts[item.shoot] + knifeCount) >= knifeLimit)
|
||||
knifeAmt = knifeLimit - player.ownedProjectileCounts[item.shoot];
|
||||
if (knifeAmt <= 0)
|
||||
{
|
||||
damage = (int)(damage * 1.1f);
|
||||
|
||||
int knifeAmt = knifeCount;
|
||||
if ((player.ownedProjectileCounts[item.shoot] + knifeCount) >= knifeLimit)
|
||||
knifeAmt = knifeLimit - player.ownedProjectileCounts[item.shoot];
|
||||
if (knifeAmt <= 0)
|
||||
{
|
||||
int knife = Projectile.NewProjectile(position, new Vector2(speedX, speedY), type, damage, knockBack, player.whoAmI);
|
||||
if (knife.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[knife].Calamity().stealthStrike = true;
|
||||
}
|
||||
if (knife.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[knife].Calamity().stealthStrike = true;
|
||||
}
|
||||
|
||||
int spread = 20;
|
||||
for (int i = 0; i < knifeCount; i++)
|
||||
@@ -61,9 +63,9 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
speedX *= 0.9f;
|
||||
Vector2 perturbedspeed = new Vector2(speedX, speedY + Main.rand.Next(-3, 4)).RotatedBy(MathHelper.ToRadians(spread));
|
||||
int knife2 = Projectile.NewProjectile(position, perturbedspeed, type, damage, knockBack, player.whoAmI, 1f, i % 5 == 0 ? 1f : 0f);
|
||||
if (knife2.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[knife2].Calamity().stealthStrike = true;
|
||||
spread -= Main.rand.Next(1, 3);
|
||||
if (knife2.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[knife2].Calamity().stealthStrike = true;
|
||||
spread -= Main.rand.Next(1, 3);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -57,7 +57,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
{
|
||||
if (player.Calamity().StealthStrikeAvailable())
|
||||
{
|
||||
int p = Projectile.NewProjectile(position, new Vector2(speedX * 1.6f, speedY * 1.6f), ModContent.ProjectileType<StormfrontRazorProjectile>(), damage, knockBack, player.whoAmI, 0, 40f);
|
||||
int p = Projectile.NewProjectile(position, new Vector2(speedX, speedY) * 1.6f, ModContent.ProjectileType<StormfrontRazorProjectile>(), (int)(damage * 1.1f), knockBack, player.whoAmI, 0, 40f);
|
||||
if (p.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[p].Calamity().stealthStrike = true;
|
||||
return false;
|
||||
|
||||
@@ -64,11 +64,12 @@ Stealth strikes travel slower and are rapidly orbited by the smaller disks");
|
||||
|
||||
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
|
||||
{
|
||||
if (player.Calamity().StealthStrikeAvailable())
|
||||
{
|
||||
speedX *= 0.75f;
|
||||
speedY *= 0.75f;
|
||||
}
|
||||
if (player.Calamity().StealthStrikeAvailable())
|
||||
{
|
||||
speedX *= 0.75f;
|
||||
speedY *= 0.75f;
|
||||
damage = (int)(damage * 0.9f);
|
||||
}
|
||||
int proj = Projectile.NewProjectile(position, new Vector2(speedX, speedY), type, damage, knockBack, player.whoAmI);
|
||||
if (player.Calamity().StealthStrikeAvailable() && proj.WithinBounds(Main.maxProjectiles))
|
||||
{
|
||||
|
||||
@@ -41,7 +41,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
{
|
||||
if (player.Calamity().StealthStrikeAvailable()) //setting the stealth strike
|
||||
{
|
||||
float stealthDamageMult = 3.25f;
|
||||
float stealthDamageMult = 4.875f;
|
||||
int stealth = Projectile.NewProjectile(position, new Vector2(speedX, speedY), ModContent.ProjectileType<TalonLargeProj>(), (int)(damage * stealthDamageMult), knockBack, player.whoAmI);
|
||||
if (stealth.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[stealth].Calamity().stealthStrike = true;
|
||||
|
||||
@@ -45,7 +45,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
{
|
||||
if (player.Calamity().StealthStrikeAvailable())
|
||||
{
|
||||
int stealth = Projectile.NewProjectile(position, new Vector2(speedX, speedY), type, damage, knockBack, player.whoAmI, 0f, 1f);
|
||||
int stealth = Projectile.NewProjectile(position, new Vector2(speedX, speedY), type, (int)(damage * 1.2f), knockBack, player.whoAmI, 0f, 1f);
|
||||
if (stealth.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[stealth].Calamity().stealthStrike = true;
|
||||
return false;
|
||||
|
||||
@@ -41,7 +41,7 @@ Stealth strikes leak tar as they fly");
|
||||
{
|
||||
if (player.Calamity().StealthStrikeAvailable()) //setting the stealth strike
|
||||
{
|
||||
int stealth = Projectile.NewProjectile(position, new Vector2(speedX, speedY), type, damage, knockBack, player.whoAmI);
|
||||
int stealth = Projectile.NewProjectile(position, new Vector2(speedX, speedY), type, (int)(damage * 1.15f), knockBack, player.whoAmI);
|
||||
if (stealth.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[stealth].Calamity().stealthStrike = true;
|
||||
return false;
|
||||
|
||||
@@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
item.value = 10000;
|
||||
item.rare = ItemRarityID.Cyan;
|
||||
item.shoot = ModContent.ProjectileType<AntumbraShardProjectile>();
|
||||
item.shootSpeed = 16f;
|
||||
item.shootSpeed = 24f;
|
||||
item.Calamity().rogue = true;
|
||||
}
|
||||
|
||||
@@ -41,7 +41,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
{
|
||||
if (player.Calamity().StealthStrikeAvailable())
|
||||
{
|
||||
int stealth = Projectile.NewProjectile(position, new Vector2(speedX, speedY), type, damage, knockBack, player.whoAmI);
|
||||
int stealth = Projectile.NewProjectile(position, new Vector2(speedX, speedY), type, (int)(damage * 1.5f), knockBack, player.whoAmI);
|
||||
if (stealth.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[stealth].Calamity().stealthStrike = true;
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace CalamityMod.Items.Weapons.Summon
|
||||
{
|
||||
DisplayName.SetDefault("Yharon's Kindle Staff");
|
||||
Tooltip.SetDefault("Summons the Son of Yharon to fight for you\n" +
|
||||
"Requires 4 minion slots to use");
|
||||
"Requires 5 minion slots to use");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace CalamityMod.Items.Weapons.Summon
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 333;
|
||||
item.damage = 150;
|
||||
item.mana = 10;
|
||||
item.width = item.height = 32;
|
||||
item.useTime = item.useAnimation = 10;
|
||||
|
||||
@@ -60,9 +60,15 @@ namespace CalamityMod.Projectiles.DraedonsArsenal
|
||||
// Every so often, generate some lightning at a nearby enemy, if one exists.
|
||||
if (Time % LightningFireRate == 0f && Main.myPlayer == projectile.owner)
|
||||
{
|
||||
int lightningDamage = projectile.damage;
|
||||
int totalSystemBanes = Main.player[projectile.owner].ownedProjectileCounts[projectile.type];
|
||||
|
||||
// Make the damage of the lightning have diminishing returns depending on how many systems are present.
|
||||
lightningDamage = (int)Math.Ceiling(lightningDamage / Math.Pow(totalSystemBanes, 1D / 3D));
|
||||
|
||||
NPC potentialTarget = projectile.Center.ClosestNPCAt(900f);
|
||||
if (potentialTarget != null)
|
||||
Projectile.NewProjectile(projectile.Center, projectile.SafeDirectionTo(potentialTarget.Center) * 15f, ModContent.ProjectileType<SystemBaneLightning>(), projectile.damage, projectile.knockBack, projectile.owner);
|
||||
Projectile.NewProjectile(projectile.Center, projectile.SafeDirectionTo(potentialTarget.Center) * 15f, ModContent.ProjectileType<SystemBaneLightning>(), lightningDamage, projectile.knockBack, projectile.owner);
|
||||
}
|
||||
|
||||
// Sometimes generate lightning from the outside of the energy field if the projectile was spawned by a stealth strike.
|
||||
|
||||
@@ -26,6 +26,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
projectile.magic = true;
|
||||
projectile.ignoreWater = true;
|
||||
projectile.hide = true;
|
||||
projectile.timeLeft = 90000;
|
||||
}
|
||||
|
||||
public override void AI()
|
||||
|
||||
@@ -29,6 +29,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
projectile.tileCollide = false;
|
||||
projectile.magic = true;
|
||||
projectile.ignoreWater = true;
|
||||
projectile.timeLeft = 90000;
|
||||
}
|
||||
|
||||
public override void AI()
|
||||
|
||||
@@ -331,7 +331,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
{
|
||||
for (int i = 0; i < projectile.oldPos.Length; i++)
|
||||
{
|
||||
float hitboxRadius = CongregationDiameter * MathHelper.Lerp(0.45f, 0.17f, i / (float)projectile.oldPos.Length);
|
||||
float hitboxRadius = CongregationDiameter * MathHelper.Lerp(0.45f, 0.17f, i / (float)projectile.oldPos.Length) * 1.4f;
|
||||
Vector2 hitboxCircle = Vector2.One * hitboxRadius;
|
||||
if (CalamityUtils.CircularHitboxCollision(projectile.oldPos[i] + hitboxCircle * 0.5f, hitboxRadius, targetHitbox))
|
||||
return true;
|
||||
|
||||
@@ -1,8 +1,11 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Projectiles.Melee
|
||||
{
|
||||
// TODO - Abstract away most of the direct vector math away in here into things like SafeDirectionTo calls.
|
||||
public class AtaraxiaHoming : ModProjectile
|
||||
{
|
||||
private static int NumAnimationFrames = 5;
|
||||
@@ -106,11 +109,14 @@ namespace CalamityMod.Projectiles.Melee
|
||||
dx *= homingFactor;
|
||||
dy *= homingFactor;
|
||||
|
||||
// The projectile loses 1/6th of its current velocity and replaces it with homing power.
|
||||
float homingStrength = 6f;
|
||||
// The projectile loses 1/5th of its current velocity and replaces it with homing power.
|
||||
float homingStrength = 5f;
|
||||
projectile.velocity.X = (projectile.velocity.X * (homingStrength - 1f) + dx) / homingStrength;
|
||||
projectile.velocity.Y = (projectile.velocity.Y * (homingStrength - 1f) + dy) / homingStrength;
|
||||
|
||||
// And then approaches the homing velocity by an increment of 0.3.
|
||||
projectile.velocity = projectile.velocity.MoveTowards(new Vector2(dx, dy), 0.3f);
|
||||
|
||||
// Re-scale resulting velocity to the projectile's set maximum speed
|
||||
projectile.velocity.Normalize();
|
||||
projectile.velocity *= speed;
|
||||
|
||||
@@ -69,7 +69,7 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
}
|
||||
}
|
||||
|
||||
int baseUseTime = 35;
|
||||
int baseUseTime = 38;
|
||||
int modifier = 3;
|
||||
bool timeToFire = false;
|
||||
if (projectile.ai[1] <= 0f)
|
||||
|
||||
@@ -58,7 +58,7 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
}
|
||||
|
||||
projectile.localAI[0]++;
|
||||
if (projectile.localAI[0] > 30f) //dragon dust trail counter, but only empowered proj spawns it
|
||||
if (projectile.localAI[0] > 60f) //dragon dust trail counter, but only empowered proj spawns it
|
||||
{
|
||||
projectile.localAI[0] = 0f;
|
||||
|
||||
@@ -231,7 +231,7 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
vel.X += Main.rand.Next(-100, 101);
|
||||
vel.Normalize();
|
||||
vel *= 30f;
|
||||
Projectile.NewProjectile(pos, vel + target.velocity, ModContent.ProjectileType<SkyFlareFriendly>(), projectile.damage * 3, projectile.knockBack * 5f, projectile.owner);
|
||||
Projectile.NewProjectile(pos, vel + target.velocity, ModContent.ProjectileType<SkyFlareFriendly>(), (int)(projectile.damage * 1.5f), projectile.knockBack * 5f, projectile.owner);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -46,8 +46,8 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
projectile.localAI[0] = 1f;
|
||||
}
|
||||
projectile.rotation += Math.Sign(projectile.velocity.X) * MathHelper.ToRadians(8f);
|
||||
if (projectile.velocity.Y < 15f)
|
||||
projectile.velocity.Y += 0.3f;
|
||||
if (projectile.velocity.Y < 10f)
|
||||
projectile.velocity.Y += 0.2f;
|
||||
|
||||
if (CollideX && BounceEffectCooldown == 0)
|
||||
{
|
||||
|
||||
@@ -60,6 +60,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
{
|
||||
Main.PlaySound(SoundID.Item, projectile.Center, 103);
|
||||
int proj = Projectile.NewProjectile(projectile.Center, Vector2.Zero, ModContent.ProjectileType<ShadowflameExplosionBig>(), (int)(projectile.damage * 0.33), projectile.knockBack, projectile.owner);
|
||||
Main.projectile[proj].timeLeft += 20;
|
||||
Main.projectile[proj].Center = projectile.Center;
|
||||
Main.projectile[proj].Calamity().rogue = true;
|
||||
}
|
||||
@@ -72,6 +73,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
{
|
||||
Main.PlaySound(SoundID.Item, projectile.Center, 103);
|
||||
int proj = Projectile.NewProjectile(projectile.Center, Vector2.Zero, ModContent.ProjectileType<ShadowflameExplosionBig>(), (int)(projectile.damage * 0.33), projectile.knockBack, projectile.owner);
|
||||
Main.projectile[proj].timeLeft += 20;
|
||||
Main.projectile[proj].Center = projectile.Center;
|
||||
Main.projectile[proj].Calamity().rogue = true;
|
||||
}
|
||||
|
||||
@@ -22,6 +22,8 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
projectile.penetrate = 2;
|
||||
projectile.aiStyle = 2;
|
||||
projectile.timeLeft = 300;
|
||||
projectile.usesLocalNPCImmunity = true;
|
||||
projectile.localNPCHitCooldown = 14;
|
||||
aiType = ProjectileID.ThrowingKnife;
|
||||
projectile.Calamity().rogue = true;
|
||||
}
|
||||
|
||||
@@ -79,7 +79,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
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<SubductionFlameburst>(), projectile.damage, 2f, projectile.owner, 1f);
|
||||
Projectile.NewProjectile(result.ToVector2() * 16f, Vector2.Zero, ModContent.ProjectileType<SubductionFlameburst>(), (int)(projectile.damage * 1.5f), 2f, projectile.owner, 1f);
|
||||
projectile.localAI[0] = 30f;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,15 +19,17 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
ProjectileID.Sets.TrailingMode[projectile.type] = 0;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
projectile.width = 30;
|
||||
projectile.height = 30;
|
||||
projectile.friendly = true;
|
||||
public override void SetDefaults()
|
||||
{
|
||||
projectile.width = 30;
|
||||
projectile.height = 30;
|
||||
projectile.friendly = true;
|
||||
projectile.ignoreWater = true;
|
||||
projectile.penetrate = 1;
|
||||
projectile.timeLeft = 120;
|
||||
projectile.Calamity().rogue = true;
|
||||
projectile.penetrate = 4;
|
||||
projectile.localNPCHitCooldown = 13;
|
||||
projectile.usesLocalNPCImmunity = true;
|
||||
projectile.timeLeft = 120;
|
||||
projectile.Calamity().rogue = true;
|
||||
}
|
||||
|
||||
public override void AI()
|
||||
|
||||
@@ -35,14 +35,18 @@ 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)
|
||||
{
|
||||
// Die early.
|
||||
if (projectile.timeLeft < 240)
|
||||
projectile.Kill();
|
||||
|
||||
projectile.localAI[0] += Main.rand.Next(0,3);
|
||||
if (projectile.localAI[0] >= 10f)
|
||||
{
|
||||
if (projectile.localAI[0] >= 10f)
|
||||
{
|
||||
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);
|
||||
}
|
||||
Vector2 flowerSpawnPosition = projectile.Center + Main.rand.NextVector2Square(-10f, 10f);
|
||||
Vector2 flowerShootVelocity = projectile.velocity.RotatedByRandom(0.1f) * 0.25f;
|
||||
Projectile.NewProjectile(flowerSpawnPosition, flowerShootVelocity, ModContent.ProjectileType<MangroveChakramFlower>(), projectile.damage / 4, 0f, projectile.owner);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -135,7 +135,7 @@ namespace CalamityMod.Projectiles.Summon
|
||||
cinder.scale = 1f + cinder.velocity.Length() * 0.17f;
|
||||
cinder.noGravity = true;
|
||||
|
||||
int shootRate = (int)MathHelper.Lerp(24f, 3f, Utils.InverseLerp(0f, 300f, AttackTime, true));
|
||||
int shootRate = (int)MathHelper.Lerp(24f, 6f, Utils.InverseLerp(0f, 300f, AttackTime, true));
|
||||
AttackTimer++;
|
||||
|
||||
if (AttackTimer < shootRate || Main.myPlayer != projectile.owner)
|
||||
|
||||
@@ -34,7 +34,7 @@ namespace CalamityMod.Projectiles.Summon
|
||||
projectile.ignoreWater = true;
|
||||
projectile.usesLocalNPCImmunity = true;
|
||||
projectile.localNPCHitCooldown = projectile.MaxUpdates * 9;
|
||||
projectile.minionSlots = 4f;
|
||||
projectile.minionSlots = 5f;
|
||||
projectile.timeLeft = 90000;
|
||||
projectile.penetrate = -1;
|
||||
projectile.tileCollide = false;
|
||||
|
||||
Reference in new issue
Block a user