This commit is contained in:
Ozzatron committed 2019-10-18 20:41:48 -04:00
commit adaa74fbce
26 files changed
+153 -64

No files matched your search

File renamed without changes.

Before

Width:  |  Height:  |  Size: 556 B

After

Width:  |  Height:  |  Size: 556 B

+2 -1
View File
@@ -9,7 +9,7 @@ namespace CalamityMod.Items.Accessories
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Glove Of Recklessness");
Tooltip.SetDefault("Increases rogue speed by 20% but decreases damage by 10%\n" +
Tooltip.SetDefault("Increases rogue attack speed by 20% but decreases damage by 10%\n" +
"Adds inaccuracy to rogue weapons");
}
@@ -26,6 +26,7 @@ namespace CalamityMod.Items.Accessories
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.gloveOfRecklessness = true;
modPlayer.throwingDamage *= 0.9f;
}
}
}
+4 -1
View File
@@ -9,7 +9,7 @@ namespace CalamityMod.Items.Accessories
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Glove Of Precision");
Tooltip.SetDefault("Decreases rogue speed by 20% but increases damage and crit by 12% and velocity by 25%");
Tooltip.SetDefault("Decreases rogue attack speed by 20% but increases damage and crit by 12% and velocity by 25%");
}
public override void SetDefaults()
@@ -25,6 +25,9 @@ namespace CalamityMod.Items.Accessories
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.gloveOfPrecision = true;
modPlayer.throwingDamage *= 1.12f;
modPlayer.throwingCrit += 12;
modPlayer.throwingVelocity *= 1.2f;
}
}
}
+1 -1
View File
@@ -9,7 +9,7 @@ namespace CalamityMod.Items.Accessories
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Momentum Capacitor");
Tooltip.SetDefault("Pressing U, for the cost of 25% of max stealth, causes an energy field to appear at the cursor position\n" +
Tooltip.SetDefault("Pressing U, for the cost of 30% of max stealth, causes an energy field to appear at the cursor position\n" +
"Rogue projectiles that enter the field get a constant acceleration and 15% damage boost\n" +
"These boosts can only happen to a projectile once\n" +
"There can only be one field");
+1 -1
View File
@@ -10,7 +10,7 @@ namespace CalamityMod.Items.Accessories
{
DisplayName.SetDefault("Old Die");
Tooltip.SetDefault("Increases randomness of attack damage \n" +
"'Lucky for you, the curse doesn't affect you.Mostly.'");
"'Lucky for you, the curse doesn't affect you. Mostly.'");
}
public override void SetDefaults()
+1
View File
@@ -2,6 +2,7 @@ using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ModLoader;
using CalamityMod.CalPlayer;
using CalamityMod.Projectiles.Ranged;
namespace CalamityMod.Items.Fishing
{
+2 -1
View File
@@ -1,6 +1,7 @@
using CalamityMod.CalPlayer;
using Terraria;
using Terraria.ModLoader;
using CalamityMod.Buffs.DamageOverTime;
namespace CalamityMod.Items.Fishing
{
public class UrsaSergeant : ModItem
@@ -8,7 +9,7 @@ namespace CalamityMod.Items.Fishing
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Ursa Sergeant");
Tooltip.SetDefault("+20 defense but 20% reduced movement speed\n" +
Tooltip.SetDefault("+20 defense but 35% reduced movement speed\n" +
"Immune to Astral Infection and Feral Bite\n" +
"Increased regeneration at lower health");
}
+1
View File
@@ -2,6 +2,7 @@ using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ModLoader;
using Terraria.ID;
using CalamityMod.Projectiles.Melee;
namespace CalamityMod.Items.Weapons.Melee
{
+2 -1
View File
@@ -2,12 +2,13 @@ using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ModLoader;
using Terraria.ID;
using CalamityMod.Projectiles.Rogue;
namespace CalamityMod.Items.Weapons.Rogue
{
public class BlastBarrel : RogueWeapon
{
public const int BaseDamage = 60;
public const int BaseDamage = 45;
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Blast Barrel");
+6 -5
View File
@@ -33,13 +33,14 @@ namespace CalamityMod.Items.Weapons.Rogue
{
crit = item.crit + player.Calamity().throwingCrit;
}
public override void MeleeEffects(Player player, Rectangle hitbox)
public override float UseTimeMultiplier(Player player)
{
float rogueAS = 1f;
if (player.Calamity().gloveOfPrecision)
{
item.useTime = (int)(item.useTime * 0.8f);
item.useAnimation = (int)(item.useAnimation * 0.8f);
}
rogueAS -= 0.2f;
if (player.Calamity().gloveOfRecklessness)
rogueAS += 0.2f;
return rogueAS;
}
// Not needed because the weapon is now internally thrown instead of ranged
/*
+4 -2
View File
@@ -2,6 +2,8 @@ using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ModLoader;
using Terraria.ID;
using CalamityMod.Items.Materials;
using CalamityMod.Projectiles.Rogue;
namespace CalamityMod.Items.Weapons.Rogue
{
@@ -18,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Rogue
public override void SafeSetDefaults()
{
item.width = 40;
item.damage = 30;
item.damage = 23;
item.noMelee = true;
item.noUseGraphic = true;
item.useAnimation = 15;
@@ -32,7 +34,7 @@ namespace CalamityMod.Items.Weapons.Rogue
item.value = 1000;
item.rare = 3;
item.value = Item.buyPrice(0, 4, 0, 0);
item.shoot = ModContent.ProjectileType<Projectiles.EnchantedAxe>();
item.shoot = ModContent.ProjectileType<Projectiles.Rogue.EnchantedAxe>();
item.shootSpeed = 30f;
item.Calamity().rogue = true;
}
+4 -4
View File
@@ -2,12 +2,12 @@ using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ModLoader;
using Terraria.ID;
using CalamityMod.Projectiles.Rogue;
namespace CalamityMod.Items.Weapons.Rogue
{
public class GacruxianMollusk : RogueWeapon
{
public static int BaseDamage = 39;
public static int BaseDamage = 38;
public static float Knockback = 5f;
public static float Speed = 15f;
@@ -24,8 +24,8 @@ namespace CalamityMod.Items.Weapons.Rogue
item.rare = 4;
item.knockBack = Knockback;
item.autoReuse = true;
item.useTime = 15;
item.useAnimation = 15;
item.useTime = 22;
item.useAnimation = 22;
item.useStyle = 1;
item.width = 24;
item.height = 22;
+1 -13
View File
@@ -3,6 +3,7 @@ using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ModLoader;
using Terraria.ID;
using CalamityMod.Projectiles.Rogue;
namespace CalamityMod.Items.Weapons.Rogue
{
@@ -54,18 +55,5 @@ namespace CalamityMod.Items.Weapons.Rogue
}
return true;
}
public override bool CanUseItem(Player player)
{
//If you have more than one boomerang, you cant shoot another
int MAX = 1;
int launched = 0;
foreach (Projectile projectile in Main.projectile)
if (projectile.type == item.shoot && projectile.owner == item.owner && projectile.active)
{
launched++;
}
return (launched >= MAX) ? false : true;
}
}
}
+4 -3
View File
@@ -2,6 +2,7 @@
using Terraria;
using Terraria.ModLoader;
using Terraria.ID;
using CalamityMod.Projectiles.Rogue;
namespace CalamityMod.Items.Weapons.Rogue
{
@@ -15,7 +16,7 @@ namespace CalamityMod.Items.Weapons.Rogue
public override void SafeSetDefaults()
{
item.damage = 50;
item.damage = 130;
item.knockBack = 4;
item.crit = 18;
item.noMelee = true;
@@ -26,8 +27,8 @@ namespace CalamityMod.Items.Weapons.Rogue
item.height = 27;
item.useStyle = 1;
item.UseSound = SoundID.Item1;
item.useTime = 30;
item.useAnimation = 30;
item.useTime = 20;
item.useAnimation = 20;
item.value = Item.buyPrice(0, 0, 1, 0);
item.rare = 3;
item.shootSpeed = 10.5f;
+3 -2
View File
@@ -2,6 +2,7 @@ using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ModLoader;
using Terraria.ID;
using CalamityMod.Projectiles.Rogue;
namespace CalamityMod.Items.Weapons.Rogue
{
@@ -19,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Rogue
{
item.width = 44;
item.height = 66;
item.damage = 500;
item.damage = 575;
item.Calamity().rogue = true;
item.knockBack = 8f;
item.noMelee = true;
@@ -41,7 +42,7 @@ 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)((double)damage * 3), knockBack, Main.myPlayer);
int p = Projectile.NewProjectile(position.X, position.Y, (int)((double)speedX * 1.2), (int)((double)speedY * 1.2), ModContent.ProjectileType<ButcherKnife>(), (int)(damage * 1.8), knockBack, Main.myPlayer);
Main.projectile[p].Calamity().stealthStrike = true;
if (Main.rand.NextBool(3))
{
+2 -1
View File
@@ -2,6 +2,7 @@ using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ModLoader;
using Terraria.ID;
using CalamityMod.Projectiles.Summon;
namespace CalamityMod.Items.Weapons.Summon
{
@@ -15,7 +16,7 @@ namespace CalamityMod.Items.Weapons.Summon
public override void SetDefaults()
{
item.damage = 30;
item.damage = 36;
item.mana = 10;
item.width = 46;
item.height = 28;