diff --git a/Items/Placeables/HardenedEutrophicSand.cs b/Items/Placeables/HardenedEutrophicSand.cs index 1bbc3b0132..9636caf304 100644 --- a/Items/Placeables/HardenedEutrophicSand.cs +++ b/Items/Placeables/HardenedEutrophicSand.cs @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Placeables { CreateRecipe(). AddIngredient(1). - AddIngredient(TileID.Dirt). + AddIngredient(ItemID.DirtBlock, 1). AddTile(TileID.Solidifier). Register(); } diff --git a/Items/Weapons/Magic/SubsumingVortex.cs b/Items/Weapons/Magic/SubsumingVortex.cs index d6058d496f..58d90ffed5 100644 --- a/Items/Weapons/Magic/SubsumingVortex.cs +++ b/Items/Weapons/Magic/SubsumingVortex.cs @@ -9,6 +9,7 @@ using Terraria.Audio; using Terraria.DataStructures; using Terraria.ID; using Terraria.ModLoader; +using Terraria.GameContent; namespace CalamityMod.Items.Weapons.Magic { @@ -51,20 +52,22 @@ namespace CalamityMod.Items.Weapons.Magic { Item.damage = 533; Item.DamageType = DamageClass.Magic; - Item.mana = 12; - Item.width = 38; - Item.height = 48; - Item.UseSound = SoundID.Item84; Item.useTime = Item.useAnimation = 20; - Item.autoReuse = true; - Item.useStyle = ItemUseStyleID.Shoot; - Item.noMelee = true; + Item.shootSpeed = 7f; + Item.mana = 12; Item.knockBack = 5f; + + Item.shoot = ModContent.ProjectileType(); + + Item.width = 86; + Item.height = 104; + Item.useStyle = ItemUseStyleID.Shoot; + Item.UseSound = SoundID.Item84; Item.rare = ModContent.RarityType(); Item.value = CalamityGlobalItem.Rarity15BuyPrice; + Item.noMelee = true; Item.channel = true; - Item.shoot = ModContent.ProjectileType(); - Item.shootSpeed = 7f; + Item.autoReuse = true; } public override void HoldItem(Player player) @@ -79,11 +82,30 @@ namespace CalamityMod.Items.Weapons.Magic public override bool? CanAutoReuseItem(Player player) => true; + public override bool PreDrawInInventory(SpriteBatch spriteBatch, Vector2 position, Rectangle frame, Color drawColor, Color itemColor, Vector2 origin, float scale) + { + CalamityUtils.DrawInventoryCustomScale( + spriteBatch, + texture: TextureAssets.Item[Type].Value, + position, + frame, + drawColor, + itemColor, + origin, + scale, + wantedScale: 0.4f, + drawOffset: default + ); + return false; + } + public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI) { Item.DrawItemGlowmaskSingleFrame(spriteBatch, rotation, ModContent.Request("CalamityMod/Items/Weapons/Magic/SubsumingVortexGlow").Value); } + public override Vector2? HoldoutOffset() => new Vector2(-6f, 0); + public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) { if (player.altFunctionUse != 2) diff --git a/Items/Weapons/Magic/SubsumingVortex.png b/Items/Weapons/Magic/SubsumingVortex.png index 276007c502..5161b7b63e 100644 Binary files a/Items/Weapons/Magic/SubsumingVortex.png and b/Items/Weapons/Magic/SubsumingVortex.png differ diff --git a/Items/Weapons/Magic/SubsumingVortexGlow.png b/Items/Weapons/Magic/SubsumingVortexGlow.png index 7174b787f2..9ea682c04e 100644 Binary files a/Items/Weapons/Magic/SubsumingVortexGlow.png and b/Items/Weapons/Magic/SubsumingVortexGlow.png differ diff --git a/Items/Weapons/Melee/MantisClaws.cs b/Items/Weapons/Melee/MantisClaws.cs index 517db912a7..d15e8bd582 100644 --- a/Items/Weapons/Melee/MantisClaws.cs +++ b/Items/Weapons/Melee/MantisClaws.cs @@ -11,7 +11,8 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetStaticDefaults() { DisplayName.SetDefault("Mantis Claws"); - Tooltip.SetDefault("Explodes on enemy hits"); + Tooltip.SetDefault("Explodes on enemy hit\n" + + "It's just that shrimple"); SacrificeTotal = 1; } diff --git a/NPCs/CalamityGlobalTownNPC.cs b/NPCs/CalamityGlobalTownNPC.cs index 6b85764d4d..3621e24259 100644 --- a/NPCs/CalamityGlobalTownNPC.cs +++ b/NPCs/CalamityGlobalTownNPC.cs @@ -92,6 +92,7 @@ namespace CalamityMod.NPCs "Izuna", "Jasmine", // <@!430532867479699456> (phantasmagoria#6777) "Cybil", // <@!486507232666845185> (Captain Doofus#????) + "Ruth", // <@!1001307586068492388> (Briny_Coffee#4393) }; private static readonly string[] DyeTraderNames = null; private static readonly string[] GoblinTinkererNames = diff --git a/Tiles/SunkenSea/EutrophicSand.cs b/Tiles/SunkenSea/EutrophicSand.cs index 777b88ab45..8ff8de8822 100644 --- a/Tiles/SunkenSea/EutrophicSand.cs +++ b/Tiles/SunkenSea/EutrophicSand.cs @@ -31,12 +31,34 @@ namespace CalamityMod.Tiles.SunkenSea ModTranslation name = CreateMapEntryName(); name.SetDefault("Eutrophic Sand"); AddMapEntry(new Color(92, 145, 167), name); - MineResist = 2f; TileFraming.SetUpUniversalMerge(Type, TileID.Sandstone, out tileAdjacency); TileFraming.SetUpUniversalMerge(Type, TileID.Sand, out secondTileAdjacency); TileFraming.SetUpUniversalMerge(Type, TileID.HardenedSand, out thirdTileAdjacency); } + public override void RandomUpdate(int i, int j) + { + Tile tile = Main.tile[i, j]; + Tile up = Main.tile[i, j - 1]; + Tile up2 = Main.tile[i, j - 2]; + + //place SmallCorals + if (WorldGen.genRand.Next(8) == 0 && !up.HasTile && !up2.HasTile && up.LiquidAmount > 0 && up2.LiquidAmount > 0 && !tile.LeftSlope && !tile.RightSlope && !tile.IsHalfBlock) + { + up.TileType = (ushort)ModContent.TileType(); + up.HasTile = true; + up.TileFrameY = 0; + + //6 different frames, choose a random one + up.TileFrameX = (short)(WorldGen.genRand.Next(6) * 18); + WorldGen.SquareTileFrame(i, j - 1, true); + + if (Main.netMode == NetmodeID.Server) + { + NetMessage.SendTileSquare(-1, i, j - 1, 3, TileChangeType.None); + } + } + } public override void NumDust(int i, int j, bool fail, ref int num) {