This commit is contained in:
Andrew Marheine committed 2019-11-05 19:26:24 -06:00
commit 63569c9bf0
86 files changed
+495 -115

No files matched your search

+36
View File
@@ -12,6 +12,8 @@ using CalamityMod.Items.Accessories;
using CalamityMod.Items.Accessories.Vanity;
using CalamityMod.Items.DifficultyItems;
using CalamityMod.Items.Fishing;
using CalamityMod.Items.Fishing.AstralCatches;
using CalamityMod.Items.Fishing.FishingRods;
using CalamityMod.Items.Mounts;
using CalamityMod.Items.Pets;
using CalamityMod.Items.Placeables;
@@ -7490,6 +7492,38 @@ namespace CalamityMod.CalPlayer
caughtType = ModContent.ItemType<TwinklingPollox>();
}
}
if ((player.ZoneCrimson || player.ZoneCorrupt) && player.ZoneRockLayerHeight)
{
if (Main.rand.NextBool(10))
{
caughtType = ModContent.ItemType<FishofNight>();
}
}
if (player.ZoneHoly && player.ZoneRockLayerHeight)
{
if (Main.rand.NextBool(10))
{
caughtType = ModContent.ItemType<FishofLight>();
}
}
if (player.ZoneSkyHeight)
{
if (Main.rand.NextBool(15))
{
caughtType = ModContent.ItemType<FishofFlight>();
}
}
if (player.ZoneOverworldHeight && !Main.dayTime)
{
if (Main.rand.NextBool(10))
{
caughtType = ModContent.ItemType<EnchantedStarfish>();
}
}
if (junk)
{
@@ -7578,6 +7612,8 @@ namespace CalamityMod.CalPlayer
fishingLevel = (int)(fishingLevel * 1.1f);
if (Main.player[Main.myPlayer].ZoneSnow && fishingRod.type == ModContent.ItemType<VerstaltiteFishingRod>())
fishingLevel = (int)(fishingLevel * 1.1f);
if (Main.player[Main.myPlayer].ZoneSkyHeight && fishingRod.type == ModContent.ItemType<HeronRod>())
fishingLevel = (int)(fishingLevel * 1.1f);
}
#endregion
Binary file not shown.

After

Width:  |  Height:  |  Size: 198 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 312 B

@@ -1,7 +1,7 @@
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Items.Fishing
namespace CalamityMod.Items.Fishing.AstralCatches
{
public class ArcturusAstroidean : ModItem
{
File renamed without changes.

Before

Width:  |  Height:  |  Size: 549 B

After

Width:  |  Height:  |  Size: 549 B

@@ -13,7 +13,7 @@ using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Fishing
namespace CalamityMod.Items.Fishing.AstralCatches
{
public class AstralCrate : ModItem
{
File renamed without changes.

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB

@@ -4,7 +4,7 @@ using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Fishing
namespace CalamityMod.Items.Fishing.AstralCatches
{
public class AstrophageItem : ModItem
{
File renamed without changes.

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

@@ -3,8 +3,9 @@ using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using CalamityMod.Items.Weapons.Rogue;
namespace CalamityMod.Items.Weapons.Rogue
namespace CalamityMod.Items.Fishing.AstralCatches
{
public class GacruxianMollusk : RogueWeapon
{
File renamed without changes.

Before

Width:  |  Height:  |  Size: 651 B

After

Width:  |  Height:  |  Size: 651 B

@@ -4,7 +4,7 @@ using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Items.Fishing
namespace CalamityMod.Items.Fishing.AstralCatches
{
public class PolarisParrotfish : ModItem
{
File renamed without changes.

Before

Width:  |  Height:  |  Size: 900 B

After

Width:  |  Height:  |  Size: 900 B

@@ -1,7 +1,7 @@
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Items.Fishing
namespace CalamityMod.Items.Fishing.AstralCatches
{
public class ProcyonidPrawn : ModItem
{
File renamed without changes.

Before

Width:  |  Height:  |  Size: 795 B

After

Width:  |  Height:  |  Size: 795 B

@@ -2,7 +2,7 @@
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Items.Fishing
namespace CalamityMod.Items.Fishing.AstralCatches
{
public class TwinklerItem : ModItem
{
File renamed without changes.

Before

Width:  |  Height:  |  Size: 650 B

After

Width:  |  Height:  |  Size: 650 B

@@ -1,7 +1,7 @@
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Items.Fishing
namespace CalamityMod.Items.Fishing.AstralCatches
{
public class TwinklingPollox : ModItem
{
File renamed without changes.

Before

Width:  |  Height:  |  Size: 709 B

After

Width:  |  Height:  |  Size: 709 B

@@ -3,7 +3,7 @@ using CalamityMod.CalPlayer;
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Items.Fishing
namespace CalamityMod.Items.Fishing.AstralCatches
{
public class UrsaSergeant : ModItem
{
File renamed without changes.

Before

Width:  |  Height:  |  Size: 776 B

After

Width:  |  Height:  |  Size: 776 B

+47
View File
@@ -0,0 +1,47 @@
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.Localization;
using Terraria.ModLoader;
using Terraria.GameContent.Achievements;
namespace CalamityMod.Items.Fishing
{
public class EnchantedStarfish : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Enchanted Starfish");
Tooltip.SetDefault("Permanently increases maximum mana by 20");
}
public override void SetDefaults()
{
item.rare = 2;
item.width = 30;
item.height = 26;
item.useAnimation = 30;
item.useTime = 30;
item.useStyle = 4;
item.UseSound = SoundID.Item29;
item.consumable = true;
item.maxStack = 999;
item.value = Item.sellPrice(silver: 50);
}
public override bool UseItem(Player player)
{
if (player.itemAnimation > 0 && (player.statManaMax < 200 && player.itemTime == 0))
{
player.itemTime = item.useTime;
player.statManaMax = player.statManaMax + 20;
player.statManaMax2 = player.statManaMax2 + 20;
player.statMana = player.statMana + 20;
if (Main.myPlayer == player.whoAmI)
player.ManaEffect(20);
AchievementsHelper.HandleSpecialEvent(player, 1);
}
return false;
}
}
}
@@ -6,7 +6,7 @@ using Terraria.ID;
using Terraria.Localization;
using Terraria.ModLoader;
using CalamityMod.Items.Materials;
namespace CalamityMod.Items.Fishing
namespace CalamityMod.Items.Fishing.FishingRods
{
public class ChaoticSpreadRod : ModItem
{
@@ -14,7 +14,7 @@ namespace CalamityMod.Items.Fishing
{
DisplayName.SetDefault("Chaotic Spread Rod");
Tooltip.SetDefault("Fires three to five lines at once. Can fish in lava.\n" +
"The battlefield is a scene of constant chaos.\n" +
"The battlefield is a scene of constant chaos.\n" + //Napoleon Bonaparte quote reference
"The winner will be the one who controls that chaos, both the pole and the fish.");
}
File renamed without changes.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

@@ -6,7 +6,7 @@ using Terraria.ID;
using Terraria.Localization;
using Terraria.ModLoader;
using CalamityMod.Items.Materials;
namespace CalamityMod.Items.Fishing
namespace CalamityMod.Items.Fishing.FishingRods
{
public class EarlyBloomRod : ModItem
{
File renamed without changes.

Before

Width:  |  Height:  |  Size: 884 B

After

Width:  |  Height:  |  Size: 884 B

@@ -6,7 +6,7 @@ using Terraria.ID;
using Terraria.Localization;
using Terraria.ModLoader;
using CalamityMod.Items.Materials;
namespace CalamityMod.Items.Fishing
namespace CalamityMod.Items.Fishing.FishingRods
{
public class FeralDoubleRod : ModItem
{
File renamed without changes.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

+47
View File
@@ -0,0 +1,47 @@
using CalamityMod.Projectiles.Typeless;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.Localization;
using Terraria.ModLoader;
using CalamityMod.Items.Materials;
namespace CalamityMod.Items.Fishing.FishingRods
{
public class HeronRod : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Heron Rod");
Tooltip.SetDefault("Increased fishing power in space.\n" + //John Steinbeck quote but fish instead of snake
"A silent head and beak lanced down and plucked it out by the head,\n" +
"and the beak swallowed the little fish while its tail waved frantically.");
}
public override void SetDefaults()
{
//item.CloneDefaults(2289); //Wooden Fishing Pole
item.width = 24;
item.height = 28;
item.useAnimation = 8;
item.useTime = 8;
item.useStyle = 1;
item.UseSound = SoundID.Item1;
item.fishingPole = 25;
item.shootSpeed = 14.5f;
item.shoot = ModContent.ProjectileType<HeronBobber>();
item.value = Item.buyPrice(0, 4, 0, 0);
item.rare = 3;
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ModContent.ItemType<AerialiteBar>(), 7);
recipe.AddIngredient(ItemID.SunplateBlock, 5);
recipe.AddTile(TileID.SkyMill);
recipe.SetResult(this);
recipe.AddRecipe();
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

@@ -6,7 +6,7 @@ using Terraria.ID;
using Terraria.Localization;
using Terraria.ModLoader;
using CalamityMod.Items.Placeables;
namespace CalamityMod.Items.Fishing
namespace CalamityMod.Items.Fishing.FishingRods
{
public class NavyFishingRod : ModItem
{
@@ -27,7 +27,7 @@ namespace CalamityMod.Items.Fishing
item.useTime = 8;
item.useStyle = 1;
item.UseSound = SoundID.Item1;
item.fishingPole = 25;
item.fishingPole = 20;
item.shootSpeed = 13f;
item.shoot = ModContent.ProjectileType<NavyBobber>();
item.value = Item.buyPrice(0, 2, 0, 0);
File renamed without changes.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

@@ -6,14 +6,14 @@ using Terraria.ID;
using Terraria.Localization;
using Terraria.ModLoader;
using CalamityMod.Items.Materials;
namespace CalamityMod.Items.Fishing
namespace CalamityMod.Items.Fishing.FishingRods
{
public class SlurperPole : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Slurper Pole");
Tooltip.SetDefault("Can fish in lava.\n" +
Tooltip.SetDefault("Can fish in lava.\n" + //Charles Spurgeon quote
"It is the burning lava of the soul that has a furnace within--a very volcano of grief and sorrow.");
}
File renamed without changes.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

@@ -6,15 +6,15 @@ using Terraria.ID;
using Terraria.Localization;
using Terraria.ModLoader;
using CalamityMod.Items.Materials;
namespace CalamityMod.Items.Fishing
namespace CalamityMod.Items.Fishing.FishingRods
{
public class EaterofShoals : ModItem
public class TheDevourerofCods : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Eater of Shoals");
DisplayName.SetDefault("The Devourer of Cods");
Tooltip.SetDefault("Fires ten lines at once. Line never snaps and can fish from lava.\n" +
"The devourer enjoyed eating fish as much as eating gods.");
"The devourer was once just an Eater of Shoals.");
}
public override void SetDefaults()
@@ -28,7 +28,7 @@ namespace CalamityMod.Items.Fishing
item.UseSound = SoundID.Item1;
item.fishingPole = 75;
item.shootSpeed = 20f;
item.shoot = ModContent.ProjectileType<EaterofShoalsBobber>();
item.shoot = ModContent.ProjectileType<DevourerofCodsBobber>();
item.value = Item.buyPrice(1, 80, 0, 0);
item.rare = 10;
item.Calamity().postMoonLordRarity = 14;
File renamed without changes.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

@@ -6,7 +6,7 @@ using Terraria.ID;
using Terraria.Localization;
using Terraria.ModLoader;
using CalamityMod.Items.Materials;
namespace CalamityMod.Items.Fishing
namespace CalamityMod.Items.Fishing.FishingRods
{
public class VerstaltiteFishingRod : ModItem
{
File renamed without changes.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

@@ -6,7 +6,7 @@ using Terraria.ID;
using Terraria.Localization;
using Terraria.ModLoader;
using CalamityMod.Items.Materials;
namespace CalamityMod.Items.Fishing
namespace CalamityMod.Items.Fishing.FishingRods
{
public class WulfrumRod : ModItem
{
File renamed without changes.

Before

Width:  |  Height:  |  Size: 654 B

After

Width:  |  Height:  |  Size: 654 B

+35
View File
@@ -0,0 +1,35 @@
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Fishing
{
public class FishofFlight : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Fish of Flight");
Tooltip.SetDefault("Right click to extract souls");
}
public override void SetDefaults()
{
item.maxStack = 999;
item.consumable = true;
item.width = 30;
item.height = 30;
item.rare = 3;
item.value = Item.sellPrice(gold: 1);
}
public override bool CanRightClick()
{
return true;
}
public override void RightClick(Player player)
{
DropHelper.DropItem(player, ItemID.SoulofFlight, 5, 10);
}
}
}
+35
View File
@@ -0,0 +1,35 @@
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Fishing
{
public class FishofLight : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Fish of Light");
Tooltip.SetDefault("Right click to extract souls");
}
public override void SetDefaults()
{
item.maxStack = 999;
item.consumable = true;
item.width = 34;
item.height = 34;
item.rare = 3;
item.value = Item.sellPrice(gold: 1);
}
public override bool CanRightClick()
{
return true;
}
public override void RightClick(Player player)
{
DropHelper.DropItem(player, ItemID.SoulofLight, 5, 10);
}
}
}
+35
View File
@@ -0,0 +1,35 @@
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Fishing
{
public class FishofNight : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Fish of Night");
Tooltip.SetDefault("Right click to extract souls");
}
public override void SetDefaults()
{
item.maxStack = 999;
item.consumable = true;
item.width = 34;
item.height = 34;
item.rare = 3;
item.value = Item.sellPrice(gold: 1);
}
public override bool CanRightClick()
{
return true;
}
public override void RightClick(Player player)
{
DropHelper.DropItem(player, ItemID.SoulofNight, 5, 10);
}
}
}
File renamed without changes.

Before

Width:  |  Height:  |  Size: 726 B

After

Width:  |  Height:  |  Size: 726 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 640 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 799 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 840 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 662 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 657 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 830 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 938 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 512 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 510 B

+3 -4
View File
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Weapons.Rogue
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Bouncing Betty");
Tooltip.SetDefault("Act like grenades, but bounce on explosion\n" +
Tooltip.SetDefault("Throws a grenade which bounces after exploding\n" +
"Stealth Strike Effect: Explodes into a violent blast of fire and shrapnel on bounce");
}
@@ -39,11 +39,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)
{
Vector2 velocity = new Vector2(speedX, speedY);
float strikeValue = player.Calamity().StealthStrikeAvailable().ToInt(); //0 if false, 1 if true
int projectileIndex = Projectile.NewProjectile(position, velocity, ModContent.ProjectileType<BouncingBettyProjectile>(), damage, knockBack, player.whoAmI, ai1: strikeValue);
int projectileIndex = Projectile.NewProjectile(position, velocity, type, damage, knockBack, player.whoAmI);
if (player.Calamity().StealthStrikeAvailable())
{
Main.projectile[projectileIndex].Calamity().stealthStrike = strikeValue == 1f;
Main.projectile[projectileIndex].Calamity().stealthStrike = true;
}
return false;
}
+9 -2
View File
@@ -51,8 +51,15 @@ namespace CalamityMod.Items.Weapons.Rogue
{
if (player.altFunctionUse == 2)
{
return true;
}
if (player.ownedProjectileCounts[item.shoot] > 0)
{
return true;
}
else
{
return false;
}
}
else
{
int UseMax = item.stack - 1;
+9 -2
View File
@@ -49,8 +49,15 @@ namespace CalamityMod.Items.Weapons.Rogue
{
if (player.altFunctionUse == 2)
{
return true;
}
if (player.ownedProjectileCounts[item.shoot] > 0)
{
return true;
}
else
{
return false;
}
}
else
{
int UseMax = item.stack - 1;
+1 -1
View File
@@ -1,5 +1,5 @@
using CalamityMod.Dusts;
using CalamityMod.Items.Fishing;
using CalamityMod.Items.Fishing.AstralCatches;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
+1 -1
View File
@@ -1,7 +1,7 @@
using CalamityMod.Buffs.StatDebuffs;
using CalamityMod.Items.Materials;
using CalamityMod.Items.Placeables.Banners;
using CalamityMod.Items.Fishing;
using CalamityMod.Items.Fishing.FishingRods;
using CalamityMod.Projectiles.Boss;
using CalamityMod.World;
using Microsoft.Xna.Framework;
+36 -60
View File
@@ -19,11 +19,44 @@ namespace CalamityMod.Projectiles.Rogue
projectile.width = 16;
projectile.height = 22;
projectile.friendly = true;
projectile.penetrate = -1;
projectile.timeLeft = 600;
projectile.penetrate = 3;
projectile.Calamity().rogue = true;
}
//This is definitely not a near copy of the Blast Barrel nosiree :>
private void Explode()
{
Main.PlaySound(2, projectile.Center, 14);
//This is definitely not a near copy of the Blast Barrel nosiree :>
bool stealthS = projectile.Calamity().stealthStrike;
int projectileCount = 2;
if (stealthS)
{
projectileCount += 2;
}
for (int i = 0; i < projectileCount; i++)
{
if (Main.rand.NextBool(4))
{
Vector2 shrapnelVelocity = (Vector2.UnitY * (-16f + Main.rand.NextFloat(-7, 4f))).RotatedByRandom((double)MathHelper.ToRadians(30f));
Projectile.NewProjectile(projectile.Center, projectile.velocity + shrapnelVelocity,
ModContent.ProjectileType<BouncingBettyShrapnel>(), BouncingBetty.BaseDamage, 3f, projectile.owner);
}
else
{
Vector2 fireVelocity = (Vector2.UnitY * (-16f + Main.rand.NextFloat(-7, 4f))).RotatedByRandom((double)MathHelper.ToRadians(40f));
int fireIndex = Projectile.NewProjectile(projectile.Center, projectile.velocity + fireVelocity,
Main.rand.Next(ProjectileID.MolotovFire, ProjectileID.MolotovFire3 + 1),
BlastBarrel.BaseDamage, 1f, projectile.owner);
Main.projectile[fireIndex].thrown = false;
Main.projectile[fireIndex].Calamity().forceRogue = true;
Main.projectile[fireIndex].penetrate = -1;
Main.projectile[fireIndex].usesLocalNPCImmunity = true;
Main.projectile[fireIndex].localNPCHitCooldown = 9;
Main.projectile[fireIndex].timeLeft = 120;
}
}
}
public override void AI()
{
projectile.rotation = projectile.velocity.ToRotation() + MathHelper.PiOver2;
@@ -32,36 +65,7 @@ namespace CalamityMod.Projectiles.Rogue
WorldGen.SolidTile(Main.tile[tileCoords.X, tileCoords.Y + 1]) &&
projectile.timeLeft < 575)
{
Main.PlaySound(2, projectile.Center, 14);
//This is definitely not a near copy of the Blast Barrel nosiree :>
bool stealthS = projectile.Calamity().stealthStrike;
int projectileCount = 2;
if (stealthS)
{
projectileCount += 2;
}
for (int i = 0; i < projectileCount; i++)
{
if (Main.rand.NextBool(4))
{
Vector2 shrapnelVelocity = (Vector2.UnitY * (-16f + Main.rand.NextFloat(-7, 4f))).RotatedByRandom((double)MathHelper.ToRadians(30f));
Projectile.NewProjectile(projectile.Center, projectile.velocity + shrapnelVelocity,
ModContent.ProjectileType<BarrelShrapnel>(), BlastBarrel.BaseDamage, 3f, projectile.owner);
}
else
{
Vector2 fireVelocity = (Vector2.UnitY * (-16f + Main.rand.NextFloat(-7, 4f))).RotatedByRandom((double)MathHelper.ToRadians(40f));
int fireIndex = Projectile.NewProjectile(projectile.Center, projectile.velocity + fireVelocity,
Main.rand.Next(ProjectileID.MolotovFire, ProjectileID.MolotovFire3 + 1),
BlastBarrel.BaseDamage, 1f, projectile.owner);
Main.projectile[fireIndex].thrown = false;
Main.projectile[fireIndex].Calamity().forceRogue = true;
Main.projectile[fireIndex].penetrate = -1;
Main.projectile[fireIndex].usesLocalNPCImmunity = true;
Main.projectile[fireIndex].localNPCHitCooldown = 9;
Main.projectile[fireIndex].timeLeft = 120;
}
}
Explode();
projectile.Kill();
}
else
@@ -77,35 +81,7 @@ namespace CalamityMod.Projectiles.Rogue
public override void OnHitNPC(NPC target, int damage, float knockback, bool crit)
{
Main.PlaySound(2, projectile.Center, 14);
//This is definitely not a near copy of the Blast Barrel nosiree :>
bool stealthS = projectile.Calamity().stealthStrike;
int projectileCount = 2;
if (stealthS)
{
projectileCount += 2;
}
for (int i = 0; i < projectileCount; i++)
{
if (Main.rand.NextBool(4))
{
Vector2 shrapnelVelocity = (Vector2.UnitY * (-16f + Main.rand.NextFloat(-3, 12f))).RotatedByRandom((double)MathHelper.ToRadians(30f));
Projectile.NewProjectile(projectile.Center, projectile.velocity + shrapnelVelocity,
ModContent.ProjectileType<BarrelShrapnel>(), BlastBarrel.BaseDamage, 3f, projectile.owner);
}
else
{
Vector2 fireVelocity = (Vector2.UnitY * (-16f + Main.rand.NextFloat(-3, 12f))).RotatedByRandom((double)MathHelper.ToRadians(40f));
int fireIndex = Projectile.NewProjectile(projectile.Center, projectile.velocity + fireVelocity,
Main.rand.Next(ProjectileID.MolotovFire, ProjectileID.MolotovFire3 + 1),
BlastBarrel.BaseDamage, 1f, projectile.owner);
Main.projectile[fireIndex].thrown = false;
Main.projectile[fireIndex].Calamity().forceRogue = true;
Main.projectile[fireIndex].penetrate = -1;
Main.projectile[fireIndex].usesLocalNPCImmunity = true;
Main.projectile[fireIndex].localNPCHitCooldown = 9;
Main.projectile[fireIndex].timeLeft = 120;
}
}
Explode();
projectile.velocity *= -1f;
}
}
@@ -31,6 +31,10 @@ namespace CalamityMod.Projectiles.Rogue
{
projectile.rotation = projectile.velocity.ToRotation() + MathHelper.PiOver2;
}
else
{
projectile.rotation = MathHelper.PiOver2;
}
projectile.velocity.Y += 0.2f;
}
}
+1 -1
View File
@@ -18,7 +18,7 @@ namespace CalamityMod.Projectiles.Rogue
projectile.friendly = true;
projectile.tileCollide = false;
projectile.penetrate = 2;
projectile.timeLeft = 600;
projectile.timeLeft = 150;
projectile.usesLocalNPCImmunity = true;
projectile.localNPCHitCooldown = -1;
projectile.Calamity().rogue = true;
Binary file not shown.

After

Width:  |  Height:  |  Size: 330 B

+1 -1
View File
@@ -4,7 +4,7 @@ using System;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using CalamityMod.Items.Fishing;
using CalamityMod.Items.Fishing.FishingRods;
namespace CalamityMod.Projectiles.Typeless
{
public class ChaoticSpreadBobber : ModProjectile
@@ -4,10 +4,10 @@ using System;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using CalamityMod.Items.Fishing;
using CalamityMod.Items.Fishing.FishingRods;
namespace CalamityMod.Projectiles.Typeless
{
public class EaterofShoalsBobber : ModProjectile
public class DevourerofCodsBobber : ModProjectile
{
private static int red = 252;
private static int green = 109;
@@ -15,7 +15,7 @@ namespace CalamityMod.Projectiles.Typeless
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Eater of Shoals Bobber"); //dodger blue line
DisplayName.SetDefault("Devourer of Cods Bobber");
}
public override void SetDefaults()
@@ -32,7 +32,7 @@ namespace CalamityMod.Projectiles.Typeless
/*public override void PostDraw(SpriteBatch spriteBatch, Color lightColor)
{
Vector2 origin = new Vector2(6.5f, 6.5f);
spriteBatch.Draw(ModContent.GetTexture("CalamityMod/Projectiles/Typeless/EaterofShoalsBobberGlow"), projectile.Center - Main.screenPosition, null, Color.White, projectile.rotation, origin, 1f, SpriteEffects.None, 0f);
spriteBatch.Draw(ModContent.GetTexture("CalamityMod/Projectiles/Typeless/DevourerofCodsGlow"), projectile.Center - Main.screenPosition, null, Color.White, projectile.rotation, origin, 1f, SpriteEffects.None, 0f);
}*/
public override bool PreDrawExtras(SpriteBatch spriteBatch)
@@ -48,7 +48,7 @@ namespace CalamityMod.Projectiles.Typeless
int type = Main.player[projectile.owner].inventory[Main.player[projectile.owner].selectedItem].type;
float gravDir = Main.player[projectile.owner].gravDir;
if (type == ModContent.ItemType<EaterofShoals>())
if (type == ModContent.ItemType<TheDevourerofCods>())
{
pPosX += (float)(45 * Main.player[projectile.owner].direction);
if (Main.player[projectile.owner].direction < 0)
File renamed without changes.

Before

Width:  |  Height:  |  Size: 487 B

After

Width:  |  Height:  |  Size: 487 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB

+1 -1
View File
@@ -4,7 +4,7 @@ using System;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using CalamityMod.Items.Fishing;
using CalamityMod.Items.Fishing.FishingRods;
namespace CalamityMod.Projectiles.Typeless
{
public class EarlyBloomBobber : ModProjectile
+1 -1
View File
@@ -4,7 +4,7 @@ using System;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using CalamityMod.Items.Fishing;
using CalamityMod.Items.Fishing.FishingRods;
namespace CalamityMod.Projectiles.Typeless
{
public class FeralDoubleBobber : ModProjectile
+151
View File
@@ -0,0 +1,151 @@
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using System;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using CalamityMod.Items.Fishing.FishingRods;
namespace CalamityMod.Projectiles.Typeless
{
public class HeronBobber : ModProjectile
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Heron Bobber");
}
public override void SetDefaults()
{
//projectile.CloneDefaults(360); //Wooden Bobber
projectile.width = 14;
projectile.height = 14;
projectile.aiStyle = 61;
projectile.bobber = true;
projectile.penetrate = -1;
}
public override bool PreDrawExtras(SpriteBatch spriteBatch)
{
Player player = Main.player[projectile.owner];
if (projectile.bobber && Main.player[projectile.owner].inventory[Main.player[projectile.owner].selectedItem].holdStyle > 0)
{
float pPosX = player.MountedCenter.X;
float pPosY = player.MountedCenter.Y;
pPosY += Main.player[projectile.owner].gfxOffY;
int type = Main.player[projectile.owner].inventory[Main.player[projectile.owner].selectedItem].type;
float gravDir = Main.player[projectile.owner].gravDir;
if (type == ModContent.ItemType<HeronRod>())
{
pPosX += (float)(45 * Main.player[projectile.owner].direction);
if (Main.player[projectile.owner].direction < 0)
{
pPosX -= 13f;
}
pPosY -= 35f * gravDir;
}
if (gravDir == -1f)
{
pPosY -= 12f;
}
Vector2 value = new Vector2(pPosX, pPosY);
value = Main.player[projectile.owner].RotatedRelativePoint(value + new Vector2(8f), true) - new Vector2(8f);
float projPosX = projectile.position.X + (float)projectile.width * 0.5f - value.X;
float projPosY = projectile.position.Y + (float)projectile.height * 0.5f - value.Y;
Math.Sqrt((double)(projPosX * projPosX + projPosY * projPosY));
float rotation2 = (float)Math.Atan2((double)projPosY, (double)projPosX) - 1.57f;
bool flag2 = true;
if (projPosX == 0f && projPosY == 0f)
{
flag2 = false;
}
else
{
float projPosXY = (float)Math.Sqrt((double)(projPosX * projPosX + projPosY * projPosY));
projPosXY = 12f / projPosXY;
projPosX *= projPosXY;
projPosY *= projPosXY;
value.X -= projPosX;
value.Y -= projPosY;
projPosX = projectile.position.X + (float)projectile.width * 0.5f - value.X;
projPosY = projectile.position.Y + (float)projectile.height * 0.5f - value.Y;
}
while (flag2)
{
float num = 12f;
float num2 = (float)Math.Sqrt((double)(projPosX * projPosX + projPosY * projPosY));
float num3 = num2;
if (float.IsNaN(num2) || float.IsNaN(num3))
{
flag2 = false;
}
else
{
if (num2 < 20f)
{
num = num2 - 8f;
flag2 = false;
}
num2 = 12f / num2;
projPosX *= num2;
projPosY *= num2;
value.X += projPosX;
value.Y += projPosY;
projPosX = projectile.position.X + (float)projectile.width * 0.5f - value.X;
projPosY = projectile.position.Y + (float)projectile.height * 0.1f - value.Y;
if (num3 > 12f)
{
float num4 = 0.3f;
float num5 = Math.Abs(projectile.velocity.X) + Math.Abs(projectile.velocity.Y);
if (num5 > 16f)
{
num5 = 16f;
}
num5 = 1f - num5 / 16f;
num4 *= num5;
num5 = num3 / 80f;
if (num5 > 1f)
{
num5 = 1f;
}
num4 *= num5;
if (num4 < 0f)
{
num4 = 0f;
}
num5 = 1f - projectile.localAI[0] / 100f;
num4 *= num5;
if (projPosY > 0f)
{
projPosY *= 1f + num4;
projPosX *= 1f - num4;
}
else
{
num5 = Math.Abs(projectile.velocity.X) / 3f;
if (num5 > 1f)
{
num5 = 1f;
}
num5 -= 0.5f;
num4 *= num5;
if (num4 > 0f)
{
num4 *= 2f;
}
projPosY *= 1f + num4;
projPosX *= 1f - num4;
}
}
rotation2 = (float)Math.Atan2((double)projPosY, (double)projPosX) - 1.57f;
Microsoft.Xna.Framework.Color color2 = Lighting.GetColor((int)value.X / 16, (int)(value.Y / 16f), new Microsoft.Xna.Framework.Color(101, 149, 154, 100)); //aerialite blue
Main.spriteBatch.Draw(Main.fishingLineTexture, new Vector2(value.X - Main.screenPosition.X + (float)Main.fishingLineTexture.Width * 0.5f, value.Y - Main.screenPosition.Y + (float)Main.fishingLineTexture.Height * 0.5f), new Microsoft.Xna.Framework.Rectangle?(new Microsoft.Xna.Framework.Rectangle(0, 0, Main.fishingLineTexture.Width, (int)num)), color2, rotation2, new Vector2((float)Main.fishingLineTexture.Width * 0.5f, 0f), 1f, SpriteEffects.None, 0f);
}
}
}
return false;
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 416 B

+1 -1
View File
@@ -4,7 +4,7 @@ using System;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using CalamityMod.Items.Fishing;
using CalamityMod.Items.Fishing.FishingRods;
namespace CalamityMod.Projectiles.Typeless
{
public class NavyBobber : ModProjectile
Binary file not shown.

After

Width:  |  Height:  |  Size: 486 B

+1 -1
View File
@@ -4,7 +4,7 @@ using System;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using CalamityMod.Items.Fishing;
using CalamityMod.Items.Fishing.FishingRods;
namespace CalamityMod.Projectiles.Typeless
{
public class SlurperBobber : ModProjectile
+1 -1
View File
@@ -4,7 +4,7 @@ using System;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using CalamityMod.Items.Fishing;
using CalamityMod.Items.Fishing.FishingRods;
namespace CalamityMod.Projectiles.Typeless
{
public class VerstaltiteBobber : ModProjectile
+1 -1
View File
@@ -4,7 +4,7 @@ using System;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using CalamityMod.Items.Fishing;
using CalamityMod.Items.Fishing.FishingRods;
namespace CalamityMod.Projectiles.Typeless
{
public class WulfrumBobber : ModProjectile
+1 -1
View File
@@ -21,7 +21,7 @@ namespace CalamityMod.Tiles.Abyss
TileID.Sets.ChecksForMerge[Type] = true;
soundType = 21;
mineResist = 10f;
minPick = 190;
minPick = 180;
drop = ModContent.ItemType<Items.Placeables.Voidstone>();
AddMapEntry(new Color(10, 10, 10));
}
+1 -1
View File
@@ -1,5 +1,5 @@
using CalamityMod.Dusts;
using CalamityMod.Items.Fishing;
using CalamityMod.Items.Fishing.AstralCatches;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ModLoader;
+1 -1
View File
@@ -20,7 +20,7 @@ namespace CalamityMod.Tiles.FurnitureProfaned
TileMerge.MergeSmoothTiles(Type);
soundType = 21;
mineResist = 15f;
mineResist = 4f;
minPick = 225;
drop = ModContent.ItemType<Items.Placeables.FurnitureProfaned.ProfanedRock>();
AddMapEntry(new Color(84, 38, 33));
+1 -1
View File
@@ -19,7 +19,7 @@ namespace CalamityMod.Tiles.FurnitureProfaned
TileMerge.MergeTile(Type, ModContent.TileType<ProfanedRock>());
soundType = 21;
mineResist = 10f;
mineResist = 4f;
minPick = 225;
drop = ModContent.ItemType<Items.Placeables.FurnitureProfaned.ProfanedSlab>();
AddMapEntry(new Color(122, 66, 59));
@@ -19,7 +19,7 @@ namespace CalamityMod.Tiles.FurnitureProfaned
TileMerge.MergeSmoothTiles(Type);
soundType = 21;
mineResist = 10f;
mineResist = 4f;
minPick = 225;
drop = ModContent.ItemType<Items.Placeables.FurnitureProfaned.RunicProfanedBrick>();
AddMapEntry(new Color(122, 66, 59));
+1 -1
View File
@@ -20,7 +20,7 @@ namespace CalamityMod.Tiles.FurnitureVoid
soundType = 21;
mineResist = 7f;
minPick = 190;
minPick = 180;
drop = ModContent.ItemType<Items.Placeables.FurnitureVoid.SmoothVoidstone>();
AddMapEntry(new Color(27, 24, 31));
}
+1 -1
View File
@@ -13,7 +13,7 @@ namespace CalamityMod.Tiles.FurnitureVoid
Main.tileBlockLight[Type] = true;
soundType = 21;
mineResist = 7f;
minPick = 190;
minPick = 180;
drop = ModContent.ItemType<Items.Placeables.FurnitureVoid.VoidstoneSlab>();
AddMapEntry(new Color(27, 24, 31));
animationFrameHeight = 270;
Binary file not shown.

After

Width:  |  Height:  |  Size: 1012 B

+1 -1
View File
@@ -1,6 +1,6 @@
using CalamityMod.Items.Accessories;
using CalamityMod.Items.Accessories.Wings;
using CalamityMod.Items.Fishing;
using CalamityMod.Items.Fishing.AstralCatches;
using CalamityMod.Items.Materials;
using CalamityMod.Items.Placeables;
using CalamityMod.Items.Weapons.Melee;