Merge branch 'master' of https://github.com/UncleDanny/CalamityMod
No files matched your search
@@ -285,6 +285,9 @@ namespace CalamityMod.CalPlayer
|
||||
public bool DoGLore = false;
|
||||
public bool yharonLore = false;
|
||||
public bool SCalLore = false;
|
||||
public bool oceanLore = false;
|
||||
public bool corruptionLore = false;
|
||||
public bool crimsonLore = false;
|
||||
|
||||
// Accessory
|
||||
public bool fasterMeleeLevel = false;
|
||||
@@ -1207,6 +1210,9 @@ namespace CalamityMod.CalPlayer
|
||||
DoGLore = false;
|
||||
yharonLore = false;
|
||||
SCalLore = false;
|
||||
oceanLore = false;
|
||||
corruptionLore = false;
|
||||
crimsonLore = false;
|
||||
|
||||
luxorsGift = false;
|
||||
fungalSymbiote = false;
|
||||
@@ -10431,7 +10437,7 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
internal void rollBabSpears(int randAmt, bool chaseable)
|
||||
{
|
||||
if (player.whoAmI == Main.myPlayer && randAmt > 0 && Main.rand.NextBool(randAmt) && chaseable)
|
||||
if (player.whoAmI == Main.myPlayer && !endoCooper && randAmt > 0 && Main.rand.NextBool(randAmt) && chaseable)
|
||||
{
|
||||
int spearsFired = 0;
|
||||
for (int i = 0; i < Main.projectile.Length; i++)
|
||||
|
||||
@@ -314,7 +314,7 @@ namespace CalamityMod.CalPlayer
|
||||
#region Misc Effects
|
||||
private static void MiscEffects(Player player, CalamityPlayer modPlayer, Mod mod)
|
||||
{
|
||||
if (modPlayer.stealthUIAlpha > 0f && modPlayer.rogueStealthMax <= 0f)
|
||||
if (modPlayer.stealthUIAlpha > 0f && (modPlayer.rogueStealth <= 0f || modPlayer.rogueStealthMax <= 0f))
|
||||
{
|
||||
modPlayer.stealthUIAlpha -= 0.035f;
|
||||
modPlayer.stealthUIAlpha = MathHelper.Clamp(modPlayer.stealthUIAlpha, 0f, 1f);
|
||||
@@ -3517,11 +3517,11 @@ namespace CalamityMod.CalPlayer
|
||||
Rectangle rectangle = new Rectangle((int)((double)player.position.X + (double)player.velocity.X * 0.5 - 4.0), (int)((double)player.position.Y + (double)player.velocity.Y * 0.5 - 4.0), player.width + 8, player.height + 8);
|
||||
for (int i = 0; i < Main.maxNPCs; i++)
|
||||
{
|
||||
if (Main.npc[i].active && !Main.npc[i].dontTakeDamage && !Main.npc[i].friendly && !Main.npc[i].townNPC && Main.npc[i].immune[player.whoAmI] <= 0 && Main.npc[i].damage > 0)
|
||||
NPC npc = Main.npc[i];
|
||||
if (npc.active && !npc.dontTakeDamage && !npc.friendly && !npc.townNPC && npc.immune[player.whoAmI] <= 0 && npc.damage > 0)
|
||||
{
|
||||
NPC nPC = Main.npc[i];
|
||||
Rectangle rect = nPC.getRect();
|
||||
if (rectangle.Intersects(rect) && (nPC.noTileCollide || player.CanHit(nPC)))
|
||||
Rectangle rect = npc.getRect();
|
||||
if (rectangle.Intersects(rect) && (npc.noTileCollide || player.CanHit(npc)))
|
||||
{
|
||||
if (Main.rand.NextBool(10) && player.immuneTime <= 0)
|
||||
{
|
||||
|
||||
@@ -57,6 +57,7 @@ using CalamityMod.NPCs.SupremeCalamitas;
|
||||
using CalamityMod.NPCs.Yharon;
|
||||
using CalamityMod.Projectiles.Boss;
|
||||
using CalamityMod.Projectiles.Enemy;
|
||||
using CalamityMod.Projectiles.Hybrid;
|
||||
using CalamityMod.Projectiles.Magic;
|
||||
using CalamityMod.Projectiles.Melee;
|
||||
using CalamityMod.Projectiles.Ranged;
|
||||
|
||||
@@ -40,6 +40,23 @@ namespace CalamityMod
|
||||
[Tooltip("Enables the visibility of the stealth bar")]
|
||||
public bool StealthBar { get; set; }
|
||||
|
||||
[Label("Stealth Meter Position X")]
|
||||
[Tooltip("Changes the X position of the Stealth Meter")]
|
||||
[Range(0f, 1660f)]
|
||||
[DefaultValue(730f)]
|
||||
public float StealthMeterPosX { get; set; }
|
||||
|
||||
[Label("Stealth Meter Position Y")]
|
||||
[Tooltip("Changes the Y position of the Stealth Meter")]
|
||||
[Range(0f, 1100f)]
|
||||
[DefaultValue(30f)]
|
||||
public float StealthMeterPosY { get; set; }
|
||||
|
||||
[DefaultValue(false)]
|
||||
[Label("Meter Position Lock")]
|
||||
[Tooltip("Prevents the movement of the Adrenaline, Rage and Stealth bars with the Mouse")]
|
||||
public bool MeterPosLock { get; set; }
|
||||
|
||||
[DefaultValue(true)]
|
||||
[Label("Boss Health Bar Small Text")]
|
||||
[Tooltip("Enables the small text below the health bar\nThis displays the exact health amount or remaining boss parts")]
|
||||
@@ -92,33 +109,28 @@ namespace CalamityMod
|
||||
|
||||
[Label("Rage Meter Position X")]
|
||||
[Tooltip("Changes the X position of the Rage Meter")]
|
||||
[Range(0f, 1000f)]
|
||||
[Range(0f, 1660f)]
|
||||
[DefaultValue(500f)]
|
||||
public float RageMeterPosX { get; set; }
|
||||
|
||||
[Label("Rage Meter Position Y")]
|
||||
[Tooltip("Changes the Y position of the Rage Meter")]
|
||||
[Range(0f, 1000f)]
|
||||
[Range(0f, 1100f)]
|
||||
[DefaultValue(30f)]
|
||||
public float RageMeterPosY { get; set; }
|
||||
|
||||
[Label("Adrenaline Meter Position X")]
|
||||
[Tooltip("Changes the X position of the Adrenaline Meter")]
|
||||
[Range(0f, 1000f)]
|
||||
[Range(0f, 1660f)]
|
||||
[DefaultValue(650f)]
|
||||
public float AdrenalineMeterPosX { get; set; }
|
||||
|
||||
[Label("Adrenaline Meter Position Y")]
|
||||
[Tooltip("Changes the Y position of the Adrenaline Meter")]
|
||||
[Range(0f, 1000f)]
|
||||
[Range(0f, 1100f)]
|
||||
[DefaultValue(30f)]
|
||||
public float AdrenalineMeterPosY { get; set; }
|
||||
|
||||
[DefaultValue(false)]
|
||||
[Label("Meter Position Lock")]
|
||||
[Tooltip("Prevents the movement of the Adrenaline and Rage bars with the Mouse")]
|
||||
public bool MeterPosLock { get; set; }
|
||||
|
||||
[DefaultValue(false)]
|
||||
[Label("Revengeance and Death Thorium Boss buff")]
|
||||
[Tooltip("Buffs the health of Thorium bosses if Revengeance or Death is enabled")]
|
||||
|
||||
@@ -63,18 +63,18 @@ namespace CalamityMod.Events
|
||||
( ModContent.NPCType<SulfurousSkater>(), 1, false )
|
||||
};
|
||||
|
||||
public static List<int> PossibleMinibossesAS = new List<int>()
|
||||
public static List<(int, bool)> PossibleMinibossesAS = new List<(int, bool)>()
|
||||
{
|
||||
ModContent.NPCType<CragmawMire>()
|
||||
(ModContent.NPCType<CragmawMire>(), true)
|
||||
};
|
||||
|
||||
public static List<int> PossibleMinibossesPolter = new List<int>()
|
||||
public static List<(int, bool)> PossibleMinibossesPolter = new List<(int, bool)>()
|
||||
{
|
||||
ModContent.NPCType<CragmawMire>(),
|
||||
ModContent.NPCType<NuclearTerror>()
|
||||
(ModContent.NPCType<CragmawMire>(), true),
|
||||
(ModContent.NPCType<NuclearTerror>(), false)
|
||||
};
|
||||
|
||||
public static readonly List<int> AllMinibosses = PossibleMinibossesAS.Concat(PossibleMinibossesPolter).Distinct().ToList();
|
||||
public static readonly List<int> AllMinibosses = PossibleMinibossesAS.Select(miniboss => miniboss.Item1).ToList().Concat(PossibleMinibossesPolter.Select(miniboss => miniboss.Item1)).Distinct().ToList();
|
||||
|
||||
public static bool AnyRainMinibosses
|
||||
{
|
||||
@@ -82,7 +82,8 @@ namespace CalamityMod.Events
|
||||
{
|
||||
for (int i = 0; i < Main.npc.Length; i++)
|
||||
{
|
||||
if (Main.npc[i].active && (PossibleMinibossesAS.Contains(Main.npc[i].type)) || PossibleMinibossesPolter.Contains(Main.npc[i].type))
|
||||
if (Main.npc[i].active && (PossibleMinibossesAS.Select(miniboss => miniboss.Item1).Contains(Main.npc[i].type) ||
|
||||
PossibleMinibossesPolter.Select(miniboss => miniboss.Item1).Contains(Main.npc[i].type)))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@@ -141,7 +142,7 @@ namespace CalamityMod.Events
|
||||
/// <summary>
|
||||
/// Attempts to start the Acid Rain event. Will fail if there is another invasion going on or the EoC has not been killed yet (unless you're in hardmode).
|
||||
/// </summary>
|
||||
public static void TryStartEvent()
|
||||
public static void TryStartEvent(bool forceRain = false)
|
||||
{
|
||||
if (CalamityWorld.rainingAcid || (!NPC.downedBoss1 && !Main.hardMode) || CalamityWorld.bossRushActive)
|
||||
return;
|
||||
@@ -161,6 +162,19 @@ namespace CalamityMod.Events
|
||||
CalamityWorld.acidRainPoints = (int)(180 * Math.Log(playerCount + Math.E - 1));
|
||||
|
||||
// Make it rain normally
|
||||
if (forceRain)
|
||||
{
|
||||
Main.raining = true;
|
||||
Main.cloudBGActive = 1f;
|
||||
Main.numCloudsTemp = Main.cloudLimit;
|
||||
Main.numClouds = Main.numCloudsTemp;
|
||||
Main.windSpeedTemp = 0.72f;
|
||||
Main.windSpeedSet = Main.windSpeedTemp;
|
||||
Main.weatherCounter = 600;
|
||||
Main.maxRaining = 0.89f;
|
||||
CalamityWorld.forcedDownpourWithTear = true;
|
||||
CalamityMod.UpdateServerBoolean();
|
||||
}
|
||||
if (CalamityWorld.startAcidicDownpour)
|
||||
{
|
||||
Main.raining = true;
|
||||
@@ -203,7 +217,7 @@ namespace CalamityMod.Events
|
||||
|
||||
// You will be tempted to turn this into a single if conditional.
|
||||
// Don't do this. Doing so has caused so much misery, with various things being read instead
|
||||
// of the correct thing, look booleans being mixed up in the sending and receiving process.
|
||||
// of the correct thing, like booleans being mixed up in the sending and receiving process.
|
||||
// In short, leave this alone.
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
{
|
||||
|
||||
|
Before Width: | Height: | Size: 9.1 KiB After Width: | Height: | Size: 8.3 KiB |
|
After Width: | Height: | Size: 8.3 KiB |
|
After Width: | Height: | Size: 380 B |
|
After Width: | Height: | Size: 322 B |
|
After Width: | Height: | Size: 397 B |
|
After Width: | Height: | Size: 845 B |
|
After Width: | Height: | Size: 569 B |
|
After Width: | Height: | Size: 623 B |
|
Before Width: | Height: | Size: 744 B |
|
Before Width: | Height: | Size: 801 B |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 726 B |
|
Before Width: | Height: | Size: 456 B |
|
Before Width: | Height: | Size: 357 B |
|
Before Width: | Height: | Size: 390 B |
|
Before Width: | Height: | Size: 480 B |
|
Before Width: | Height: | Size: 654 B |
|
Before Width: | Height: | Size: 852 B |
|
After Width: | Height: | Size: 397 B |
|
After Width: | Height: | Size: 490 B |
|
After Width: | Height: | Size: 374 B |
|
After Width: | Height: | Size: 413 B |
@@ -11,13 +11,13 @@ namespace CalamityMod.Items.Accessories
|
||||
DisplayName.SetDefault("Cryo Stone");
|
||||
Tooltip.SetDefault("One of the ancient relics\n" +
|
||||
"Increases damage reduction by 5% and all damage by 3%");
|
||||
Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(6, 5));
|
||||
Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(4, 4));
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 20;
|
||||
item.height = 20;
|
||||
item.width = 40;
|
||||
item.height = 40;
|
||||
item.value = Item.buyPrice(0, 15, 0, 0);
|
||||
item.rare = 5;
|
||||
item.defense = 6;
|
||||
|
||||
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 457 B |
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Accessories
|
||||
"Being below 25% life grants the player 10 defense and 15% increased max movement speed and acceleration\n" +
|
||||
"Provides heat and cold protection in Death Mode\n" +
|
||||
"Revengeance drop");
|
||||
Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(5, 10));
|
||||
Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(5, 4));
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 513 B |
@@ -1,4 +1,6 @@
|
||||
using CalamityMod.NPCs;
|
||||
using CalamityMod.CalPlayer;
|
||||
using CalamityMod.NPCs;
|
||||
using CalamityMod.World;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
@@ -27,8 +29,11 @@ namespace CalamityMod.Items.Accessories
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
if (CalamityGlobalNPC.AnyBossNPCS())
|
||||
if (CalamityPlayer.areThereAnyDamnBosses)
|
||||
{ return; }
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.dashMod = modPlayer.dashMod == 7 ? 0 : modPlayer.dashMod; //statis belt memes for projectile spam :feelsgreat:
|
||||
|
||||
if (player.velocity.X > 5f)
|
||||
{
|
||||
player.velocity.X *= 1.025f;
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace CalamityMod.Items.Accessories
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Scuttler's Jewel");
|
||||
Tooltip.SetDefault("Rogue javelin projectiles have a chance spawn a jewel spike when destroyed");
|
||||
Tooltip.SetDefault("Rogue javelin projectiles have a chance to spawn a jewel spike when destroyed");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -23,7 +23,7 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
"All melee attacks and projectiles inflict frostburn\n" +
|
||||
"Icicles rain down as you fly\n" +
|
||||
"Provides heat and cold protection in Death Mode");
|
||||
Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(8, 4));
|
||||
Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(6, 3));
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
|
Before Width: | Height: | Size: 960 B After Width: | Height: | Size: 543 B |
|
Before Width: | Height: | Size: 240 B After Width: | Height: | Size: 438 B |
|
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 3.2 KiB |
@@ -11,9 +11,9 @@ namespace CalamityMod.Items.Fishing.BrimstoneCragCatches
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Bloodfin");
|
||||
Tooltip.SetDefault(@"Grants a buff that boosts life regen for 10 seconds
|
||||
The life regen boost is stronger if below 75% health
|
||||
Angiogenesis");
|
||||
Tooltip.SetDefault(@"The wonders of angiogenesis
|
||||
Grants a buff that boosts life regen for 10 seconds
|
||||
The life regen boost is stronger if below 75% health");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
@@ -34,10 +34,7 @@ Angiogenesis");
|
||||
item.potion = true;
|
||||
}
|
||||
|
||||
public override bool CanUseItem(Player player)
|
||||
{
|
||||
return player.FindBuffIndex(BuffID.PotionSickness) == -1;
|
||||
}
|
||||
public override bool CanUseItem(Player player) => player.FindBuffIndex(BuffID.PotionSickness) == -1;
|
||||
|
||||
public override void OnConsumeItem(Player player)
|
||||
{
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using Terraria;
|
||||
using CalamityMod.CalPlayer;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.LoreItems
|
||||
@@ -9,7 +10,8 @@ namespace CalamityMod.Items.LoreItems
|
||||
{
|
||||
DisplayName.SetDefault("The Corruption");
|
||||
Tooltip.SetDefault("The rotten and forever-deteriorating landscape of infected life, brought upon by a deadly microbe long ago.\n" +
|
||||
"It is rumored that the microbe was created through experimentation by a long-dead race, predating the Terrarians.");
|
||||
"It is rumored that the microbe was created through experimentation by a long-dead race, predating the Terrarians.\n" +
|
||||
"Place in your inventory to prevent the hive cysts from spawning.");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
@@ -24,5 +26,11 @@ namespace CalamityMod.Items.LoreItems
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void UpdateInventory(Player player)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.corruptionLore = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
using Terraria;
|
||||
using CalamityMod.CalPlayer;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.LoreItems
|
||||
@@ -9,7 +10,8 @@ namespace CalamityMod.Items.LoreItems
|
||||
{
|
||||
DisplayName.SetDefault("The Crimson");
|
||||
Tooltip.SetDefault("This bloody hell, spawned from a formless mass of flesh that fell from the stars eons ago.\n" +
|
||||
"It is now home to many hideous creatures, spawned from the pumping blood and lurching organs deep within.");
|
||||
"It is now home to many hideous creatures, spawned from the pumping blood and lurching organs deep within.\n" +
|
||||
"Place in your inventory to prevent the perforator cysts from spawning.");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
@@ -24,5 +26,11 @@ namespace CalamityMod.Items.LoreItems
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void UpdateInventory(Player player)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.crimsonLore = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 345 B After Width: | Height: | Size: 512 B |
@@ -1,4 +1,5 @@
|
||||
using Terraria;
|
||||
using CalamityMod.CalPlayer;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.LoreItems
|
||||
@@ -9,7 +10,8 @@ namespace CalamityMod.Items.LoreItems
|
||||
{
|
||||
DisplayName.SetDefault("The Ocean");
|
||||
Tooltip.SetDefault("Take care to not disturb the deep waters of this world.\n" +
|
||||
"You may awaken something more terrifying than death itself.");
|
||||
"You may awaken something more terrifying than death itself.\n" +
|
||||
"Place in your inventory to prevent the mysterious siren lure from spawning.");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
@@ -24,5 +26,11 @@ namespace CalamityMod.Items.LoreItems
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void UpdateInventory(Player player)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.oceanLore = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 304 B After Width: | Height: | Size: 641 B |
|
Before Width: | Height: | Size: 390 B After Width: | Height: | Size: 553 B |
|
Before Width: | Height: | Size: 615 B After Width: | Height: | Size: 769 B |
|
Before Width: | Height: | Size: 534 B After Width: | Height: | Size: 758 B |
@@ -33,7 +33,8 @@ namespace CalamityMod.Items.SummonItems.Invasion
|
||||
|
||||
public override bool UseItem(Player player)
|
||||
{
|
||||
AcidRainEvent.TryStartEvent();
|
||||
CalamityMod.UpdateServerBoolean();
|
||||
AcidRainEvent.TryStartEvent(true);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@ namespace CalamityMod.Items.SummonItems.Invasion
|
||||
{
|
||||
if (!CalamityWorld.rainingAcid)
|
||||
{
|
||||
AcidRainEvent.TryStartEvent();
|
||||
AcidRainEvent.TryStartEvent(true);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace CalamityMod.Items.Tools
|
||||
private static int HammerPower = 130;
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Flamebeak Hampick");
|
||||
DisplayName.SetDefault("Seismic Hampick");
|
||||
Tooltip.SetDefault(@"Capable of mining Lihzahrd Bricks
|
||||
Left click to use as a pickaxe
|
||||
Right click to use as a hammer");
|
||||
|
||||
|
Before Width: | Height: | Size: 498 B After Width: | Height: | Size: 740 B |
|
Before Width: | Height: | Size: 579 B After Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 570 B After Width: | Height: | Size: 916 B |
@@ -1,5 +1,6 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Projectiles.Melee;
|
||||
using CalamityMod.Projectiles.Hybrid;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -30,11 +31,18 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
item.height = 38;
|
||||
item.value = Item.buyPrice(1, 20, 0, 0);
|
||||
item.rare = 10;
|
||||
item.shoot = ModContent.ProjectileType<AccretionDiskMeleeProj>();
|
||||
item.shoot = ModContent.ProjectileType<AccretionDiskProj>();
|
||||
item.shootSpeed = 13f;
|
||||
item.Calamity().customRarity = CalamityRarity.Turquoise;
|
||||
}
|
||||
|
||||
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);
|
||||
Main.projectile[proj].Calamity().forceMelee = true;
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
|
||||
|
Before Width: | Height: | Size: 810 B After Width: | Height: | Size: 1.3 KiB |
@@ -35,20 +35,13 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
|
||||
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
|
||||
{
|
||||
switch (Main.rand.Next(3))
|
||||
{
|
||||
case 0:
|
||||
type = ModContent.ProjectileType<CalamityAura>();
|
||||
break;
|
||||
case 1:
|
||||
type = ModContent.ProjectileType<CalamityAuraType2>();
|
||||
break;
|
||||
case 2:
|
||||
type = ModContent.ProjectileType<CalamityAuraType3>();
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
type = Utils.SelectRandom(Main.rand, new int[]
|
||||
{
|
||||
ModContent.ProjectileType<CalamityAura>(),
|
||||
ModContent.ProjectileType<CalamityAuraType2>(),
|
||||
ModContent.ProjectileType<CalamityAuraType3>()
|
||||
});
|
||||
|
||||
Projectile.NewProjectile(position.X, position.Y, speedX, speedY, type, damage, knockBack, Main.myPlayer);
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Chaotrix");
|
||||
DisplayName.SetDefault("Fault Line");
|
||||
Tooltip.SetDefault("Explodes on enemy hits\n" +
|
||||
"A very agile yoyo");
|
||||
ItemID.Sets.Yoyo[item.type] = true;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using CalamityMod.Projectiles.Typeless;
|
||||
using CalamityMod.Projectiles.Hybrid;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 58;
|
||||
item.damage = 55;
|
||||
item.damage = 33;
|
||||
item.melee = true;
|
||||
item.useAnimation = 24;
|
||||
item.useStyle = 1;
|
||||
@@ -37,7 +37,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
|
||||
{
|
||||
type = Main.rand.NextBool(2) ? type : ModContent.ProjectileType<LightBeam>();
|
||||
Projectile.NewProjectile(position.X, position.Y, speedX, speedY, type, (int)((double)damage * 0.6), knockBack, player.whoAmI, 0f, 0f);
|
||||
Projectile.NewProjectile(position.X, position.Y, speedX, speedY, type, damage, knockBack, player.whoAmI, 0f, 0f);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
item.autoReuse = true;
|
||||
item.value = Item.buyPrice(0, 2, 0, 0);
|
||||
item.rare = 2;
|
||||
item.hammer = 70;
|
||||
item.hammer = 50;
|
||||
}
|
||||
|
||||
public override void MeleeEffects(Player player, Rectangle hitbox)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Weapons.Ranged;
|
||||
using CalamityMod.Projectiles.Rogue;
|
||||
using CalamityMod.Projectiles.Hybrid;
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using Microsoft.Xna.Framework;
|
||||
using System;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using CalamityMod.Projectiles.Melee;
|
||||
using CalamityMod.Projectiles.Hybrid;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
@@ -31,11 +31,18 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
item.height = 54;
|
||||
item.value = Item.buyPrice(1, 40, 0, 0);
|
||||
item.rare = 10;
|
||||
item.shoot = ModContent.ProjectileType<EradicatorMeleeProjectile>();
|
||||
item.shoot = ModContent.ProjectileType<EradicatorProjectile>();
|
||||
item.shootSpeed = 12f;
|
||||
item.Calamity().customRarity = CalamityRarity.PureGreen;
|
||||
}
|
||||
|
||||
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);
|
||||
Main.projectile[proj].Calamity().forceMelee = true;
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI)
|
||||
{
|
||||
Vector2 origin = new Vector2(31f, 29f);
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Exsanguination Lance");
|
||||
DisplayName.SetDefault("Vulcanite Lance");
|
||||
Tooltip.SetDefault("Explodes on enemy hits and summons homing flares on critical hits");
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Projectiles.Melee;
|
||||
using CalamityMod.Projectiles.Hybrid;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -10,7 +11,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Flame Scythe");
|
||||
DisplayName.SetDefault("Subduction Slicer");
|
||||
Tooltip.SetDefault("Throws a scythe that explodes on enemy hits");
|
||||
}
|
||||
|
||||
@@ -30,10 +31,17 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
item.height = 48;
|
||||
item.value = Item.buyPrice(0, 80, 0, 0);
|
||||
item.rare = 8;
|
||||
item.shoot = ModContent.ProjectileType<FlameScytheProjectileMelee>();
|
||||
item.shoot = ModContent.ProjectileType<FlameScytheProjectile>();
|
||||
item.shootSpeed = 16f;
|
||||
}
|
||||
|
||||
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);
|
||||
Main.projectile[proj].Calamity().forceMelee = true;
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Projectiles.Typeless;
|
||||
using CalamityMod.Projectiles.Hybrid;
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
|
||||
|
Before Width: | Height: | Size: 738 B After Width: | Height: | Size: 997 B |
@@ -4,7 +4,7 @@ using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Weapons.Magic;
|
||||
using CalamityMod.Items.Weapons.Ranged;
|
||||
using CalamityMod.Items.Weapons.Rogue;
|
||||
using CalamityMod.Projectiles.Typeless;
|
||||
using CalamityMod.Projectiles.Hybrid;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Projectiles.Melee;
|
||||
using CalamityMod.Projectiles.Hybrid;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -29,10 +30,17 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
item.height = 38;
|
||||
item.value = Item.buyPrice(0, 60, 0, 0);
|
||||
item.rare = 7;
|
||||
item.shoot = ModContent.ProjectileType<MangroveChakramProjectileMelee>();
|
||||
item.shoot = ModContent.ProjectileType<MangroveChakramProjectile>();
|
||||
item.shootSpeed = 16f;
|
||||
}
|
||||
|
||||
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);
|
||||
Main.projectile[proj].Calamity().forceMelee = true;
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Weapons.Rogue;
|
||||
using CalamityMod.Projectiles.Typeless;
|
||||
using CalamityMod.Projectiles.Hybrid;
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using CalamityMod.Projectiles.Melee;
|
||||
using CalamityMod.Projectiles.Hybrid;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -29,10 +30,17 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
item.height = 68;
|
||||
item.value = Item.buyPrice(0, 48, 0, 0);
|
||||
item.rare = 6;
|
||||
item.shoot = ModContent.ProjectileType<PwnagehammerMeleeProj>();
|
||||
item.shoot = ModContent.ProjectileType<PwnagehammerProj>();
|
||||
item.shootSpeed = 12f;
|
||||
}
|
||||
|
||||
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);
|
||||
Main.projectile[proj].Calamity().forceMelee = true;
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Weapons.Rogue;
|
||||
using CalamityMod.Projectiles.Melee;
|
||||
using CalamityMod.Projectiles.Hybrid;
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Projectiles.Melee;
|
||||
using CalamityMod.Projectiles.Hybrid;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -28,10 +29,17 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
item.height = 34;
|
||||
item.value = Item.buyPrice(0, 2, 0, 0);
|
||||
item.rare = 2;
|
||||
item.shoot = ModContent.ProjectileType<SeashellBoomerangProjectileMelee>();
|
||||
item.shoot = ModContent.ProjectileType<SeashellBoomerangProjectile>();
|
||||
item.shootSpeed = 11.5f;
|
||||
}
|
||||
|
||||
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);
|
||||
Main.projectile[proj].Calamity().forceMelee = true;
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using CalamityMod.Projectiles.Typeless;
|
||||
using CalamityMod.Projectiles.Hybrid;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 74;
|
||||
item.damage = 95;
|
||||
item.damage = 80;
|
||||
item.melee = true;
|
||||
item.useAnimation = 25;
|
||||
item.useTime = 25;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Weapons.Rogue;
|
||||
using CalamityMod.Projectiles.Typeless;
|
||||
using CalamityMod.Projectiles.Hybrid;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Projectiles.Melee;
|
||||
using CalamityMod.Projectiles.Hybrid;
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -31,11 +32,18 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
item.height = 160;
|
||||
item.value = Item.buyPrice(5, 0, 0, 0);
|
||||
item.rare = 10;
|
||||
item.shoot = ModContent.ProjectileType<TriactisOPHammerMelee>();
|
||||
item.shoot = ModContent.ProjectileType<TriactisOPHammer>();
|
||||
item.shootSpeed = 25f;
|
||||
item.Calamity().customRarity = CalamityRarity.Developer;
|
||||
}
|
||||
|
||||
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);
|
||||
Main.projectile[proj].Calamity().forceMelee = true;
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Projectiles.Melee;
|
||||
using CalamityMod.Projectiles.Hybrid;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -30,10 +31,17 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
item.height = 28;
|
||||
item.value = Item.buyPrice(0, 80, 0, 0);
|
||||
item.rare = 8;
|
||||
item.shoot = ModContent.ProjectileType<OPHammerMelee>();
|
||||
item.shoot = ModContent.ProjectileType<OPHammer>();
|
||||
item.shootSpeed = 14f;
|
||||
}
|
||||
|
||||
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);
|
||||
Main.projectile[proj].Calamity().forceMelee = true;
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
|
||||
@@ -61,25 +61,15 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
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 card = ModContent.ProjectileType<CardHeart>();
|
||||
switch (Main.rand.Next(4))
|
||||
{
|
||||
case 0:
|
||||
card = ModContent.ProjectileType<CardHeart>();
|
||||
break;
|
||||
case 1:
|
||||
card = ModContent.ProjectileType<CardSpade>();
|
||||
break;
|
||||
case 2:
|
||||
card = ModContent.ProjectileType<CardDiamond>();
|
||||
break;
|
||||
case 3:
|
||||
card = ModContent.ProjectileType<CardClub>();
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
Projectile.NewProjectile(position.X, position.Y, speedX, speedY, card, damage, knockBack, player.whoAmI, 0.0f, 0.0f);
|
||||
int card = Utils.SelectRandom(Main.rand, new int[]
|
||||
{
|
||||
ModContent.ProjectileType<CardHeart>(),
|
||||
ModContent.ProjectileType<CardSpade>(),
|
||||
ModContent.ProjectileType<CardDiamond>(),
|
||||
ModContent.ProjectileType<CardClub>()
|
||||
});
|
||||
|
||||
Projectile.NewProjectile(position.X, position.Y, speedX, speedY, card, damage, knockBack, player.whoAmI, 0f, 0f);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
Before Width: | Height: | Size: 645 B After Width: | Height: | Size: 1.1 KiB |
@@ -10,7 +10,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Greatbow of Turmoil");
|
||||
DisplayName.SetDefault("Continental Greatbow");
|
||||
Tooltip.SetDefault("Wooden arrows are set alight with fire\n" +
|
||||
"Fires 3 arrows at once\n" +
|
||||
"Fires 2 additional cursed, hellfire, or ichor arrows");
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Projectiles.Rogue;
|
||||
using CalamityMod.Projectiles.Hybrid;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using CalamityMod.Projectiles.Typeless;
|
||||
using CalamityMod.Projectiles.Hybrid;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Weapons.Ranged;
|
||||
using CalamityMod.Projectiles.Rogue;
|
||||
using CalamityMod.Projectiles.Hybrid;
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using Microsoft.Xna.Framework;
|
||||
using System;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using CalamityMod.Projectiles.Rogue;
|
||||
using CalamityMod.Projectiles.Hybrid;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Projectiles.Rogue;
|
||||
using CalamityMod.Projectiles.Hybrid;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -10,7 +10,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Flame Scythe");
|
||||
DisplayName.SetDefault("Subduction Slicer");
|
||||
Tooltip.SetDefault("Throws a scythe that explodes on enemy hits");
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Projectiles.Typeless;
|
||||
using CalamityMod.Projectiles.Hybrid;
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
|
||||
|
Before Width: | Height: | Size: 936 B After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 747 B After Width: | Height: | Size: 1.1 KiB |
@@ -4,7 +4,7 @@ using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Weapons.Magic;
|
||||
using CalamityMod.Items.Weapons.Melee;
|
||||
using CalamityMod.Items.Weapons.Ranged;
|
||||
using CalamityMod.Projectiles.Typeless;
|
||||
using CalamityMod.Projectiles.Hybrid;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Projectiles.Rogue;
|
||||
using CalamityMod.Projectiles.Hybrid;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Weapons.Melee;
|
||||
using CalamityMod.Projectiles.Typeless;
|
||||
using CalamityMod.Projectiles.Hybrid;
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using CalamityMod.Projectiles.Rogue;
|
||||
using CalamityMod.Projectiles.Hybrid;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Projectiles.Melee;
|
||||
using CalamityMod.Projectiles.Hybrid;
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Projectiles.Rogue;
|
||||
using CalamityMod.Projectiles.Hybrid;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using CalamityMod.Projectiles.Typeless;
|
||||
using CalamityMod.Projectiles.Hybrid;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Projectiles.Typeless;
|
||||
using CalamityMod.Projectiles.Hybrid;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Projectiles.Rogue;
|
||||
using CalamityMod.Projectiles.Hybrid;
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Projectiles.Rogue;
|
||||
using CalamityMod.Projectiles.Hybrid;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
@@ -43,33 +43,33 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
{
|
||||
if (player.Calamity().StealthStrikeAvailable())
|
||||
{
|
||||
int p = Projectile.NewProjectile(position.X, position.Y, (int)((double)speedX * 1.2), (int)((double)speedY * 1.2), ModContent.ProjectileType<ButcherKnife>(), (int)(damage * 1.4), knockBack, Main.myPlayer);
|
||||
Main.projectile[p].Calamity().stealthStrike = true;
|
||||
if (Main.rand.NextBool(3))
|
||||
{
|
||||
Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType<Fork>(), (int)((double)damage * 1.1), knockBack * 2f, Main.myPlayer);
|
||||
}
|
||||
else if (Main.rand.NextBool(2))
|
||||
{
|
||||
Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType<Knife>(), (int)((double)damage * 1.2), knockBack, Main.myPlayer);
|
||||
}
|
||||
else
|
||||
{
|
||||
Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType<CarvingFork>(), damage, knockBack, Main.myPlayer);
|
||||
}
|
||||
}
|
||||
else if (Main.rand.NextBool(3))
|
||||
{
|
||||
Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType<Fork>(), (int)((double)damage * 1.1), knockBack * 2f, Main.myPlayer);
|
||||
}
|
||||
else if (Main.rand.NextBool(2))
|
||||
{
|
||||
Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType<Knife>(), (int)((double)damage * 1.2), knockBack, Main.myPlayer);
|
||||
}
|
||||
else
|
||||
{
|
||||
Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType<CarvingFork>(), damage, knockBack, Main.myPlayer);
|
||||
int stealth = Projectile.NewProjectile(position.X, position.Y, speedX * 1.2f, speedY * 1.2f, ModContent.ProjectileType<ButcherKnife>(), (int)(damage * 1.4), knockBack, Main.myPlayer);
|
||||
Main.projectile[stealth].Calamity().stealthStrike = true;
|
||||
}
|
||||
int utensil = item.shoot;
|
||||
float dmgMult = 1f;
|
||||
float kbMult = 1f;
|
||||
switch (Main.rand.Next(3))
|
||||
{
|
||||
case 0:
|
||||
utensil = item.shoot;
|
||||
dmgMult = 1.1f;
|
||||
kbMult = 2f;
|
||||
break;
|
||||
case 1:
|
||||
utensil = ModContent.ProjectileType<Knife>();
|
||||
dmgMult = 1.2f;
|
||||
kbMult = 1f;
|
||||
break;
|
||||
case 2:
|
||||
utensil = ModContent.ProjectileType<CarvingFork>();
|
||||
dmgMult = 1f;
|
||||
kbMult = 1f;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
Projectile.NewProjectile(position.X, position.Y, speedX, speedY, utensil, (int)(damage * dmgMult), knockBack * kbMult, Main.myPlayer);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -42,7 +42,7 @@ namespace CalamityMod.Items.Weapons.Summon
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.Fireblossom, 5);
|
||||
recipe.AddIngredient(ItemID.LavaBucket, 10);
|
||||
recipe.AddIngredient(ItemID.LavaBucket, 2);
|
||||
recipe.AddIngredient(ItemID.HellstoneBar, 10);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddTile(TileID.Anvils);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Weapons.Magic;
|
||||
using CalamityMod.Items.Weapons.Ranged;
|
||||
using CalamityMod.Projectiles.Magic;
|
||||
using CalamityMod.Projectiles.Hybrid;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
|
||||