Merge branch 'master' of https://github.com/CalamityTeam/CalamityMod
This commit is contained in:
commit
cc2802d46c
41 files changed
+46
-53
No files matched your search
@@ -1338,7 +1338,9 @@ namespace CalamityMod.CalPlayer
|
||||
// Raider Talisman bonus
|
||||
if (modPlayer.raiderTalisman)
|
||||
{
|
||||
float damageMult = modPlayer.nanotech ? 0.1f : 0.15f;
|
||||
// Nanotech use to have an exclusive nerf here, but since they are currently equal, there
|
||||
// is no check to indicate such.
|
||||
float damageMult = 0.15f;
|
||||
modPlayer.throwingDamage += modPlayer.raiderStack / 150f * damageMult;
|
||||
}
|
||||
|
||||
|
||||
@@ -15,10 +15,10 @@ namespace CalamityMod.Items.Accessories
|
||||
Tooltip.SetDefault("Rogue projectiles create nanoblades as they travel\n" +
|
||||
"Stealth strikes summon nanobeams and sparks on enemy hits\n" +
|
||||
"Stealth strikes have +20 armor penetration, deal 5% more damage, and heal for 1 HP\n" +
|
||||
"12% increased rogue damage and 15% increased rogue velocity\n" +
|
||||
"15% increased rogue damage and 15% increased rogue velocity\n" +
|
||||
"Whenever you crit an enemy with a rogue weapon your rogue damage increases\n" +
|
||||
"This effect can stack up to 150 times\n" +
|
||||
"Max rogue damage boost is 10%\n" +
|
||||
"Max rogue damage boost is 15%\n" +
|
||||
"This line is modified below");
|
||||
}
|
||||
|
||||
@@ -49,7 +49,7 @@ namespace CalamityMod.Items.Accessories
|
||||
modPlayer.nanotech = true;
|
||||
modPlayer.raiderTalisman = true;
|
||||
modPlayer.electricianGlove = true;
|
||||
player.Calamity().throwingDamage += 0.12f;
|
||||
player.Calamity().throwingDamage += 0.15f;
|
||||
player.Calamity().throwingVelocity += 0.15f;
|
||||
}
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
|
||||
{
|
||||
public class Phaseslayer : ModItem
|
||||
{
|
||||
public const int Damage = 1440;
|
||||
public const int Damage = 1080;
|
||||
// When below this percentage of charge, the sword is small instead of big.
|
||||
public const float SizeChargeThreshold = 0.25f;
|
||||
// The small sword barely affects damage on its own because damage is already dropping significantly at low charge.
|
||||
|
||||
@@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
|
||||
|
||||
item.width = 22;
|
||||
item.height = 28;
|
||||
item.damage = 1963;
|
||||
item.damage = 1640;
|
||||
item.noMelee = true;
|
||||
item.noUseGraphic = true;
|
||||
item.consumable = true;
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
|
||||
CalamityGlobalItem modItem = item.Calamity();
|
||||
|
||||
item.shootSpeed = 10f;
|
||||
item.damage = 367;
|
||||
item.damage = 356;
|
||||
item.mana = 12;
|
||||
item.width = 38;
|
||||
item.height = 24;
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
|
||||
{
|
||||
public class TeslaCannon : ModItem
|
||||
{
|
||||
private int BaseDamage = 1120;
|
||||
private int BaseDamage = 1060;
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 126;
|
||||
item.damage = 132;
|
||||
item.magic = true;
|
||||
item.mana = 12;
|
||||
item.width = 80;
|
||||
|
||||
@@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
item.Calamity().customRarity = CalamityRarity.DarkBlue;
|
||||
item.Calamity().donorItem = true;
|
||||
|
||||
item.damage = 2320;
|
||||
item.damage = 2250;
|
||||
item.knockBack = 6f;
|
||||
item.useTime = 300;
|
||||
item.useAnimation = 300;
|
||||
|
||||
@@ -40,8 +40,8 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
|
||||
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 num6 = Main.rand.Next(2, 5);
|
||||
for (int index = 0; index < num6; ++index)
|
||||
int totalBeads = Main.rand.Next(2, 3 + 1);
|
||||
for (int index = 0; index < totalBeads; index++)
|
||||
{
|
||||
float SpeedX = speedX + (float)Main.rand.Next(-50, 51) * 0.05f;
|
||||
float SpeedY = speedY + (float)Main.rand.Next(-50, 51) * 0.05f;
|
||||
|
||||
@@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
item.mana = 24;
|
||||
item.width = 38;
|
||||
item.height = 34;
|
||||
item.damage = 138;
|
||||
item.damage = 125;
|
||||
item.noMelee = true;
|
||||
item.useAnimation = 18;
|
||||
item.useStyle = ItemUseStyleID.HoldingOut;
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 99;
|
||||
item.damage = 128;
|
||||
item.magic = true;
|
||||
item.mana = 19;
|
||||
item.width = 64;
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 120;
|
||||
item.damage = 150;
|
||||
item.magic = true;
|
||||
item.mana = 10;
|
||||
item.width = 20;
|
||||
|
||||
@@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
{
|
||||
item.width = 118;
|
||||
item.height = 118;
|
||||
item.damage = 170;
|
||||
item.damage = 166;
|
||||
item.melee = true;
|
||||
item.useAnimation = 20;
|
||||
item.useTime = 20;
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
{
|
||||
public class GalaxySmasherMelee : ModItem
|
||||
{
|
||||
public static int BaseDamage = 240;
|
||||
public static int BaseDamage = 264;
|
||||
public static float Speed = 18f;
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = item.height = 102;
|
||||
item.damage = 120;
|
||||
item.damage = 125;
|
||||
item.melee = true;
|
||||
item.useAnimation = 18;
|
||||
item.useStyle = ItemUseStyleID.SwingThrow;
|
||||
|
||||
@@ -55,7 +55,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
{
|
||||
item.damage = 662;
|
||||
item.useStyle = ItemUseStyleID.SwingThrow;
|
||||
item.useTime = item.useAnimation = 15;
|
||||
item.useTime = item.useAnimation = 13;
|
||||
item.useTurn = true;
|
||||
item.melee = true;
|
||||
item.knockBack = 7f;
|
||||
@@ -105,7 +105,6 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
{
|
||||
if (player.altFunctionUse == 2)
|
||||
{
|
||||
item.useTime = item.useAnimation = 13;
|
||||
item.UseSound = SoundID.Item1;
|
||||
item.useStyle = ItemUseStyleID.SwingThrow;
|
||||
item.useTurn = true;
|
||||
@@ -115,7 +114,6 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
}
|
||||
else
|
||||
{
|
||||
item.useTime = item.useAnimation = 15;
|
||||
item.UseSound = mod.GetLegacySoundSlot(SoundType.Item, "Sounds/Item/CrystylCharge");
|
||||
item.useStyle = ItemUseStyleID.HoldingOut;
|
||||
item.useTurn = false;
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 100;
|
||||
item.damage = 115;
|
||||
item.damage = 112;
|
||||
item.melee = true;
|
||||
item.noMelee = true;
|
||||
item.useTurn = true;
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
item.width = 42;
|
||||
item.height = 40;
|
||||
item.melee = true;
|
||||
item.damage = 303;
|
||||
item.damage = 276;
|
||||
item.knockBack = 7.5f;
|
||||
item.useTime = 20;
|
||||
item.useAnimation = 20;
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 2800;
|
||||
item.damage = 3200;
|
||||
item.ranged = true;
|
||||
item.width = 76;
|
||||
item.height = 30;
|
||||
|
||||
@@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 50;
|
||||
item.damage = 80;
|
||||
item.ranged = true;
|
||||
item.width = 60;
|
||||
item.height = 90;
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 130;
|
||||
item.damage = 150;
|
||||
item.ranged = true;
|
||||
item.width = 64;
|
||||
item.height = 32;
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 345;
|
||||
item.damage = 275;
|
||||
item.ranged = true;
|
||||
item.width = 40;
|
||||
item.height = 82;
|
||||
@@ -54,7 +54,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
}
|
||||
else
|
||||
{
|
||||
int num121 = Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, type, damage, knockBack, player.whoAmI, 0f, 0f);
|
||||
int num121 = Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, type, (int)(damage * 0.8), knockBack, player.whoAmI, 0f, 0f);
|
||||
Main.projectile[num121].noDropItem = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
item.width = 94;
|
||||
item.height = 44;
|
||||
item.ranged = true;
|
||||
item.damage = 800;
|
||||
item.damage = 1040;
|
||||
item.knockBack = 12f;
|
||||
item.useTime = 52;
|
||||
item.useAnimation = 52;
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 100;
|
||||
item.damage = 90;
|
||||
item.ranged = true;
|
||||
item.width = 84;
|
||||
item.height = 34;
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 112;
|
||||
item.damage = 125;
|
||||
item.width = 20;
|
||||
item.height = 12;
|
||||
item.useTime = 12;
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 1425;
|
||||
item.damage = 1280;
|
||||
item.ranged = true;
|
||||
item.knockBack = 10f;
|
||||
item.useTime = 30;
|
||||
|
||||
@@ -47,7 +47,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
if (type == ProjectileID.Bullet)
|
||||
Projectile.NewProjectile(position, new Vector2(speedX, speedY), ModContent.ProjectileType<AMRShot>(), damage, knockBack, player.whoAmI);
|
||||
else
|
||||
Projectile.NewProjectile(position, new Vector2(speedX, speedY), (int)(damage * 1.3), damage, knockBack, player.whoAmI);
|
||||
Projectile.NewProjectile(position, new Vector2(speedX, speedY), type, (int)(damage * 1.3), knockBack, player.whoAmI);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 100;
|
||||
item.damage = 130;
|
||||
item.knockBack = 15f;
|
||||
item.shootSpeed = 16f;
|
||||
item.useStyle = ItemUseStyleID.HoldingOut;
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 1150;
|
||||
item.damage = 1000;
|
||||
item.ranged = true;
|
||||
item.width = 96;
|
||||
item.height = 40;
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
public override void SafeSetDefaults()
|
||||
{
|
||||
item.width = 38;
|
||||
item.damage = 300;
|
||||
item.damage = 270;
|
||||
item.noMelee = true;
|
||||
item.noUseGraphic = true;
|
||||
item.autoReuse = true;
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
public override void SafeSetDefaults()
|
||||
{
|
||||
item.width = 64;
|
||||
item.damage = 187;
|
||||
item.damage = 168;
|
||||
item.noMelee = true;
|
||||
item.noUseGraphic = true;
|
||||
item.useTime = 3;
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
{
|
||||
public class GodsParanoia : RogueWeapon
|
||||
{
|
||||
private static int damage = 60;
|
||||
private static int damage = 66;
|
||||
private static int knockBack = 5;
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
|
||||
@@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
item.value = Item.buyPrice(1, 80, 0, 0);
|
||||
item.rare = ItemRarityID.Red;
|
||||
|
||||
item.damage = 768;
|
||||
item.damage = 806;
|
||||
item.useAnimation = 40;
|
||||
item.useTime = 40;
|
||||
item.knockBack = 8f;
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Summon
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 142;
|
||||
item.damage = 139;
|
||||
item.mana = 10;
|
||||
item.width = 46;
|
||||
item.height = 28;
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace CalamityMod.Items.Weapons.Summon
|
||||
public class StaffoftheMechworm : ModItem
|
||||
{
|
||||
// This value is also referenced by the God Slayer and Auric summoner helmets.
|
||||
public const int BaseDamage = 166; // originally 325
|
||||
public const int BaseDamage = 161; // originally 325
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Staff of the Mechworm");
|
||||
|
||||
@@ -2949,7 +2949,7 @@ namespace CalamityMod.NPCs.Yharon
|
||||
public override void ModifyHitByProjectile(Projectile projectile, ref int damage, ref float knockback, ref bool crit, ref int hitDirection)
|
||||
{
|
||||
if (projectile.type == ModContent.ProjectileType<ReaperProjectile>())
|
||||
damage = (int)(damage * 0.95);
|
||||
damage = (int)(damage * 0.85);
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
@@ -1,16 +1,10 @@
|
||||
using CalamityMod.Buffs.DamageOverTime;
|
||||
using CalamityMod.Buffs.StatDebuffs;
|
||||
using CalamityMod.CalPlayer;
|
||||
using CalamityMod.Dusts;
|
||||
using CalamityMod.Events;
|
||||
using CalamityMod.NPCs.NormalNPCs;
|
||||
using CalamityMod.Projectiles.Boss;
|
||||
using CalamityMod.Projectiles.Healing;
|
||||
using CalamityMod.Projectiles.Magic;
|
||||
using CalamityMod.Projectiles.Melee;
|
||||
using CalamityMod.Projectiles.Melee.Yoyos;
|
||||
using CalamityMod.Projectiles.Rogue;
|
||||
using CalamityMod.Projectiles.Summon;
|
||||
using CalamityMod.Projectiles.Typeless;
|
||||
using CalamityMod.World;
|
||||
using Microsoft.Xna.Framework;
|
||||
@@ -1215,7 +1209,7 @@ namespace CalamityMod.Projectiles
|
||||
{
|
||||
if (projectile.owner == Main.myPlayer && player.ownedProjectileCounts[ProjectileType<Nanotech>()] < 25)
|
||||
{
|
||||
Projectile.NewProjectile(projectile.Center, Vector2.Zero, ProjectileType<Nanotech>(), (int)(projectile.damage * 0.1), 0f, projectile.owner, 0f, 0f);
|
||||
Projectile.NewProjectile(projectile.Center, Vector2.Zero, ProjectileType<Nanotech>(), (int)(projectile.damage * 0.15), 0f, projectile.owner, 0f, 0f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
projectile.magic = true;
|
||||
projectile.tileCollide = false;
|
||||
projectile.usesLocalNPCImmunity = true;
|
||||
projectile.localNPCHitCooldown = 8;
|
||||
projectile.localNPCHitCooldown = 12;
|
||||
}
|
||||
|
||||
public override void AI()
|
||||
|
||||
@@ -76,7 +76,6 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
{
|
||||
type = ModContent.ProjectileType<UltimaRay>();
|
||||
shotVelocity = shotVelocity.RotatedByRandom(0.03f);
|
||||
damage = (int)(damage * 1.5);
|
||||
}
|
||||
// Sometimes fire little sparks if the bow is fully charged.
|
||||
if (Time >= Ultima.FullChargeTime * 0.7f && Main.rand.NextBool(6))
|
||||
|
||||
@@ -32,7 +32,7 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
public override void AI()
|
||||
{
|
||||
projectile.rotation = projectile.velocity.ToRotation() - MathHelper.PiOver2;
|
||||
if (projectile.timeLeft % 30 == 0)
|
||||
if (projectile.timeLeft % 45 == 0)
|
||||
{
|
||||
if (projectile.owner == Main.myPlayer && Main.player[projectile.owner].ownedProjectileCounts[ModContent.ProjectileType<VanquisherArrowSplit>()] < 6)
|
||||
Projectile.NewProjectile(projectile.Center, projectile.velocity * 0.25f, ModContent.ProjectileType<VanquisherArrowSplit>(), projectile.damage / 2, projectile.knockBack, projectile.owner);
|
||||
|
||||
@@ -46,7 +46,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
Main.dust[num137].noGravity = true;
|
||||
}
|
||||
|
||||
projectile.StickyProjAI(30);
|
||||
projectile.StickyProjAI(50);
|
||||
|
||||
if (projectile.ai[0] == 1f)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user