diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index 690ec89480..337b5a9c2b 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -9038,7 +9038,7 @@ namespace CalamityMod.CalPlayer } else if (dashMod == 4) //Asgardian Aegis { - dashDistance = 23.9f; + dashDistance = 22.3f; int direction = 0; bool justDashed = false; if (dashTimeMod > 0) @@ -9227,7 +9227,7 @@ namespace CalamityMod.CalPlayer } else if (dashMod == 7) //Statis' Belt of Curses { - dashDistance = 21.9f; + dashDistance = 23.9f; int direction = 0; bool justDashed = false; if (dashTimeMod > 0) diff --git a/ILEditing/ILChanges.cs b/ILEditing/ILChanges.cs index b4056fd154..4f281010f4 100644 --- a/ILEditing/ILChanges.cs +++ b/ILEditing/ILChanges.cs @@ -203,6 +203,8 @@ namespace CalamityMod.ILEditing } Main.tile[i, j + dy].type = type; Main.tile[i, j + dy].frameY = frameY; + if (Main.netMode == NetmodeID.Server) + WorldGen.TileFrame(i, j + dy, false, false); frameY += 16; if ((int)frameY / 16 >= 4) break; diff --git a/Items/Weapons/DraedonsArsenal/GaussRifle.cs b/Items/Weapons/DraedonsArsenal/GaussRifle.cs index 9fdaf55ee9..70c88ba491 100644 --- a/Items/Weapons/DraedonsArsenal/GaussRifle.cs +++ b/Items/Weapons/DraedonsArsenal/GaussRifle.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal item.width = 112; item.height = 36; item.ranged = true; - item.damage = 170; + item.damage = 126; item.knockBack = 30f; item.useTime = item.useAnimation = 28; item.autoReuse = true; diff --git a/Items/Weapons/DraedonsArsenal/HydraulicVoltCrasher.cs b/Items/Weapons/DraedonsArsenal/HydraulicVoltCrasher.cs index 9d02de45dc..8af681e0d4 100644 --- a/Items/Weapons/DraedonsArsenal/HydraulicVoltCrasher.cs +++ b/Items/Weapons/DraedonsArsenal/HydraulicVoltCrasher.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal item.knockBack = 12f; item.width = 56; item.height = 24; - item.damage = 70; + item.damage = 65; item.hammer = 230; item.UseSound = SoundID.Item23; diff --git a/Items/Weapons/Magic/Apotheosis.cs b/Items/Weapons/Magic/Apotheosis.cs index 3c098dd83b..152067574a 100644 --- a/Items/Weapons/Magic/Apotheosis.cs +++ b/Items/Weapons/Magic/Apotheosis.cs @@ -50,7 +50,7 @@ namespace CalamityMod.Items.Weapons.Magic public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(ModContent.ItemType()); + recipe.AddIngredient(ItemID.SpellTome); recipe.AddIngredient(ModContent.ItemType()); recipe.AddIngredient(ModContent.ItemType(), 2); recipe.AddIngredient(ModContent.ItemType(), 2); diff --git a/Items/Weapons/Rogue/DeepSeaDumbbell.cs b/Items/Weapons/Rogue/DeepSeaDumbbell.cs index 5beb803159..7bf797548d 100644 --- a/Items/Weapons/Rogue/DeepSeaDumbbell.cs +++ b/Items/Weapons/Rogue/DeepSeaDumbbell.cs @@ -53,8 +53,6 @@ namespace CalamityMod.Items.Weapons.Rogue if (player.altFunctionUse == 2) { item.useStyle = ItemUseStyleID.HoldingUp; - item.useAnimation = 45; - item.useTime = 45; item.noMelee = false; item.noUseGraphic = false; item.autoReuse = false; @@ -63,8 +61,6 @@ namespace CalamityMod.Items.Weapons.Rogue else { item.useStyle = ItemUseStyleID.SwingThrow; - item.useAnimation = 25; - item.useTime = 25; item.noMelee = true; item.noUseGraphic = true; item.autoReuse = true; @@ -73,6 +69,13 @@ namespace CalamityMod.Items.Weapons.Rogue return base.CanUseItem(player); } + public override float UseTimeMultiplier (Player player) + { + if (player.altFunctionUse == 2) + return (5f/9f); + return 1f; + } + public override void ModifyWeaponDamage(Player player, ref float add, ref float mult, ref float flat) { if (player.Calamity().StealthStrikeAvailable() && player.altFunctionUse != 2) diff --git a/Items/Weapons/Rogue/SludgeSplotch.cs b/Items/Weapons/Rogue/SludgeSplotch.cs index 1da1868d16..ee70d93302 100644 --- a/Items/Weapons/Rogue/SludgeSplotch.cs +++ b/Items/Weapons/Rogue/SludgeSplotch.cs @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.autoReuse = true; item.height = 30; item.maxStack = 999; - item.value = Item.buyPrice(0, 1, 0, 0); + item.value = Item.sellPrice(0, 0, 0, 40); item.rare = 1; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 10f; diff --git a/Items/Weapons/Rogue/WulfrumKnife.cs b/Items/Weapons/Rogue/WulfrumKnife.cs index e3237c91dd..2eac7df65c 100644 --- a/Items/Weapons/Rogue/WulfrumKnife.cs +++ b/Items/Weapons/Rogue/WulfrumKnife.cs @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.autoReuse = true; item.height = 38; item.maxStack = 999; - item.value = Item.buyPrice(0, 0, 1, 0); + item.value = Item.sellPrice(0, 0, 0, 5); item.rare = 1; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; diff --git a/NPCs/CalamityGlobalNPC.cs b/NPCs/CalamityGlobalNPC.cs index 384d25e966..f63763bbfc 100644 --- a/NPCs/CalamityGlobalNPC.cs +++ b/NPCs/CalamityGlobalNPC.cs @@ -3129,14 +3129,14 @@ namespace CalamityMod.NPCs { damage = (int)(damage * 0.5); } - else if (projectile.type == ProjectileType()) - { - damage = (int)(damage * 0.45); - } else if (projectile.type == ProjectileType()) { damage = (int)(damage * 0.38); } + else if (projectile.type == ProjectileType()) + { + damage = (int)(damage * 0.3); + } else if (projectile.type == ProjectileType()) { damage = (int)(damage * 0.25); diff --git a/NPCs/CalamityGlobalTownNPC.cs b/NPCs/CalamityGlobalTownNPC.cs index 803a71e681..ee9a3ea1a7 100644 --- a/NPCs/CalamityGlobalTownNPC.cs +++ b/NPCs/CalamityGlobalTownNPC.cs @@ -57,6 +57,7 @@ namespace CalamityMod.NPCs private static readonly string[] GoblinTinkererNames = { "Verth", + "Gormer", // <@!287651204924833795> (Picasso's Bean#2819) }; private const int GuideVanillaNames = 34; private static readonly string[] GuideNames = @@ -125,6 +126,7 @@ namespace CalamityMod.NPCs "Inorim, son of Ivukey", "Jensen", "Merasmus", // <@!288066987819663360> (Spider pee pee#3328) + "Habolo", // <@!163028025494077441> (ChristmasGoat#7810) }; #endregion diff --git a/Projectiles/DraedonsArsenal/GaussRifleBlast.cs b/Projectiles/DraedonsArsenal/GaussRifleBlast.cs index 1854311c52..a528054db3 100644 --- a/Projectiles/DraedonsArsenal/GaussRifleBlast.cs +++ b/Projectiles/DraedonsArsenal/GaussRifleBlast.cs @@ -32,6 +32,7 @@ namespace CalamityMod.Projectiles.DraedonsArsenal public override void AI() { Time++; + projectile.tileCollide = Time > 3f; if (!Main.dedServ) { // Idle dust. diff --git a/Projectiles/DraedonsArsenal/GaussRifleExplosion.cs b/Projectiles/DraedonsArsenal/GaussRifleExplosion.cs index 6e5a7acee8..323085719b 100644 --- a/Projectiles/DraedonsArsenal/GaussRifleExplosion.cs +++ b/Projectiles/DraedonsArsenal/GaussRifleExplosion.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Projectiles.DraedonsArsenal projectile.friendly = true; projectile.ranged = true; projectile.tileCollide = false; - projectile.penetrate = -1; + projectile.penetrate = 3; projectile.timeLeft = 40; projectile.usesLocalNPCImmunity = true; projectile.localNPCHitCooldown = 8; diff --git a/Projectiles/DraedonsArsenal/HydraulicVoltCrasherProjectile.cs b/Projectiles/DraedonsArsenal/HydraulicVoltCrasherProjectile.cs index 7e3f51eeb4..ed214a60e2 100644 --- a/Projectiles/DraedonsArsenal/HydraulicVoltCrasherProjectile.cs +++ b/Projectiles/DraedonsArsenal/HydraulicVoltCrasherProjectile.cs @@ -20,14 +20,14 @@ namespace CalamityMod.Projectiles.DraedonsArsenal public override void SetDefaults() { projectile.width = 56; - projectile.height = 26; + projectile.height = 56; projectile.friendly = true; projectile.penetrate = -1; projectile.tileCollide = false; projectile.hide = true; projectile.ownerHitCheck = true; projectile.melee = true; - projectile.scale = 1.1f; + projectile.scale = 1.3f; } public override void AI() diff --git a/Projectiles/Ranged/TerraArrowMain.cs b/Projectiles/Ranged/TerraArrowMain.cs index 95adf35cc4..dfdd91da56 100644 --- a/Projectiles/Ranged/TerraArrowMain.cs +++ b/Projectiles/Ranged/TerraArrowMain.cs @@ -7,6 +7,7 @@ namespace CalamityMod.Projectiles.Ranged { public class TerraArrowMain : ModProjectile { + private bool initialized = false; public override void SetStaticDefaults() { DisplayName.SetDefault("Arrow"); @@ -21,25 +22,31 @@ namespace CalamityMod.Projectiles.Ranged projectile.arrow = true; projectile.penetrate = 1; projectile.timeLeft = 600; + projectile.extraUpdates = 1; } public override void AI() { - projectile.velocity *= 1.005f; - if (projectile.velocity.Length() >= 20f) - { - projectile.Kill(); - } + if (!initialized) + { + projectile.velocity *= 0.5f; + initialized = true; + } + if (projectile.FinalExtraUpdate() && initialized) + { + projectile.velocity *= 1.003f; + if (projectile.velocity.Length() >= 22f) + { + projectile.Kill(); + } + } projectile.rotation = projectile.velocity.ToRotation() + MathHelper.PiOver2; } public override void Kill(int timeLeft) { - projectile.position = projectile.Center; - projectile.width = projectile.height = 32; - projectile.position.X -= (float)(projectile.width / 2); - projectile.position.Y -= (float)(projectile.height / 2); - Main.PlaySound(SoundID.Item60, projectile.position); + CalamityGlobalProjectile.ExpandHitboxBy(projectile, 32); + Main.PlaySound(SoundID.Item60, projectile.Center); for (int d = 0; d < 3; d++) { int terra = Dust.NewDust(projectile.position, projectile.width, projectile.height, 107, 0f, 0f, 100, default, 2f); diff --git a/Projectiles/Summon/AndromedaRegislash.cs b/Projectiles/Summon/AndromedaRegislash.cs index ab3ec1904d..80946f58a3 100644 --- a/Projectiles/Summon/AndromedaRegislash.cs +++ b/Projectiles/Summon/AndromedaRegislash.cs @@ -12,8 +12,6 @@ namespace CalamityMod.Projectiles.Summon { DisplayName.SetDefault("Regislash"); Main.projFrames[projectile.type] = 6; - ProjectileID.Sets.TrailCacheLength[projectile.type] = 5; - ProjectileID.Sets.TrailingMode[projectile.type] = 2; } public override void SetDefaults() @@ -60,11 +58,26 @@ namespace CalamityMod.Projectiles.Summon { projectile.Kill(); } + projectile.direction = ((player.Center.X - projectile.Center.X) < 0).ToDirectionInt(); + projectile.spriteDirection = projectile.direction; } public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) { - CalamityGlobalProjectile.DrawCenteredAndAfterimage(projectile, lightColor, ProjectileID.Sets.TrailingMode[projectile.type]); + Texture2D texture = Main.projectileTexture[projectile.type]; + Vector2 startPos = projectile.Center - Main.screenPosition + new Vector2(0f, projectile.gfxOffY); + int frameHeight = texture.Height / Main.projFrames[projectile.type]; + int frameY = frameHeight * projectile.frame; + Rectangle rectangle = new Rectangle(0, frameY, texture.Width, frameHeight); + Vector2 origin = rectangle.Size() / 2f; + float rotation = projectile.rotation; + float scale = projectile.scale; + + SpriteEffects spriteEffects = SpriteEffects.None; + if (projectile.spriteDirection == -1) + spriteEffects = SpriteEffects.FlipVertically; + + Main.spriteBatch.Draw(texture, startPos, rectangle, projectile.GetAlpha(lightColor), rotation, origin, scale, spriteEffects, 0f); return false; } } diff --git a/World/CalamityWorld.cs b/World/CalamityWorld.cs index ff1a3217a5..97dc4e6db9 100644 --- a/World/CalamityWorld.cs +++ b/World/CalamityWorld.cs @@ -1481,9 +1481,9 @@ namespace CalamityMod.World tile.frameX = (short)(WorldGen.genRand.Next(18) * 18); } - WorldGen.SquareTileFrame(x, y, true); + WorldGen.SquareTileFrame(x, y); - if (Main.netMode == 2) + if (Main.netMode == NetmodeID.Server) NetMessage.SendTileSquare(-1, x, y, 1, TileChangeType.None); } }