diff --git a/Buffs/Placeables/CorruptionEffigyBuff.cs b/Buffs/Placeables/CorruptionEffigyBuff.cs index e4d2e0a39f..8214914087 100644 --- a/Buffs/Placeables/CorruptionEffigyBuff.cs +++ b/Buffs/Placeables/CorruptionEffigyBuff.cs @@ -1,4 +1,5 @@ using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Buffs.Placeables @@ -7,10 +8,11 @@ namespace CalamityMod.Buffs.Placeables { public override void SetStaticDefaults() { + Main.buffNoSave[Type] = false; Main.buffNoTimeDisplay[Type] = true; - Main.debuff[Type] = false; + Main.persistentBuff[Type] = true; Main.pvpBuff[Type] = true; - Main.buffNoSave[Type] = true; + BuffID.Sets.TimeLeftDoesNotDecrease[Type] = true; } public override void Update(Player player, ref int buffIndex) diff --git a/Buffs/Placeables/CrimsonEffigyBuff.cs b/Buffs/Placeables/CrimsonEffigyBuff.cs index a26c9e3f4e..6cfdcee075 100644 --- a/Buffs/Placeables/CrimsonEffigyBuff.cs +++ b/Buffs/Placeables/CrimsonEffigyBuff.cs @@ -1,4 +1,5 @@ using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Buffs.Placeables @@ -7,10 +8,11 @@ namespace CalamityMod.Buffs.Placeables { public override void SetStaticDefaults() { + Main.buffNoSave[Type] = false; Main.buffNoTimeDisplay[Type] = true; - Main.debuff[Type] = false; + Main.persistentBuff[Type] = true; Main.pvpBuff[Type] = true; - Main.buffNoSave[Type] = true; + BuffID.Sets.TimeLeftDoesNotDecrease[Type] = true; } public override void Update(Player player, ref int buffIndex) diff --git a/Items/Armor/Astral/AstralBreastplate.cs b/Items/Armor/Astral/AstralBreastplate.cs index 4b71e1d7bf..9785855ba4 100644 --- a/Items/Armor/Astral/AstralBreastplate.cs +++ b/Items/Armor/Astral/AstralBreastplate.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Armor.Astral { player.statLifeMax2 += 20; player.statManaMax2 += 80; - player.detectCreature = true; + player.GetDamage() += 0.1f; } public override void AddRecipes() diff --git a/Items/Armor/Astral/AstralHelm.cs b/Items/Armor/Astral/AstralHelm.cs index 7df783d9e1..d9a0cd32b8 100644 --- a/Items/Armor/Astral/AstralHelm.cs +++ b/Items/Armor/Astral/AstralHelm.cs @@ -34,16 +34,18 @@ namespace CalamityMod.Items.Armor.Astral player.setBonus = this.GetLocalizedValue("SetBonus"); var modPlayer = player.Calamity(); modPlayer.astralStarRain = true; + modPlayer.omniscience = true; player.moveSpeed += 0.05f; - player.GetDamage() += 0.35f; + player.GetDamage() += 0.1f; player.maxMinions += 3; - player.GetCritChance() += 25; + player.GetCritChance() += 10; player.Calamity().wearingRogueArmor = true; } public override void UpdateEquip(Player player) { - player.dangerSense = true; + player.GetDamage() += 0.05f; + player.GetCritChance() += 15; } public override void AddRecipes() diff --git a/Items/Armor/Astral/AstralLeggings.cs b/Items/Armor/Astral/AstralLeggings.cs index ff3e4af4a0..093563cbfc 100644 --- a/Items/Armor/Astral/AstralLeggings.cs +++ b/Items/Armor/Astral/AstralLeggings.cs @@ -20,8 +20,8 @@ namespace CalamityMod.Items.Armor.Astral public override void UpdateEquip(Player player) { - player.moveSpeed += 0.1f; - player.findTreasure = true; + player.moveSpeed += 0.15f; + player.GetDamage() += 0.1f; } public override void AddRecipes() diff --git a/Items/CalamityGlobalItem.cs b/Items/CalamityGlobalItem.cs index dfd4df9d5c..01c99c9c0e 100644 --- a/Items/CalamityGlobalItem.cs +++ b/Items/CalamityGlobalItem.cs @@ -1006,6 +1006,8 @@ namespace CalamityMod.Items { player.setBonus = CalamityUtils.GetTextValue("Vanilla.Armor.SetBonus.CrystalAssassin"); modPlayer.DashID = string.Empty; + modPlayer.rogueStealthMax += 0.9f; + modPlayer.wearingRogueArmor = true; } else if (set == "SquireTier2") { diff --git a/Localization/en-US/Mods.CalamityMod.Items.Armor.Hardmode.hjson b/Localization/en-US/Mods.CalamityMod.Items.Armor.Hardmode.hjson index eb17975d7f..9dd0f19240 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Armor.Hardmode.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Armor.Hardmode.hjson @@ -2,18 +2,19 @@ AstralBreastplate: { DisplayName: Astral Breastplate Tooltip: ''' + 10% increased damage +80 max mana and +20 max life - Creature detection ''' } AstralHelm: { DisplayName: Astral Helm - Tooltip: Danger detection + Tooltip: 5% increased damage and 15% increased critical strike chance SetBonus: ''' - 5% increased movement speed and +3 max minions - 35% increased damage and 25% increased critical strike chance + +3 max minions + 10% increased damage and critical strike chance + Detects nearby creatures, enemy projectiles, danger sources, and treasure Whenever you crit an enemy, a barrage of stars will rain down This effect has a 1 second cooldown before it can trigger again ''' @@ -23,8 +24,8 @@ AstralLeggings: { DisplayName: Astral Leggings Tooltip: ''' - 10% increased movement speed - Treasure and ore detection + 10% increased damage + 15% increased movement speed ''' } diff --git a/Localization/en-US/Mods.CalamityMod.Items.Placeables.hjson b/Localization/en-US/Mods.CalamityMod.Items.Placeables.hjson index 4e77a31e8b..9647aaee6f 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Placeables.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Placeables.hjson @@ -512,8 +512,8 @@ CorruptionEffigy: { DisplayName: Corruption Effigy Tooltip: ''' - When placed down, nearby players have their movement speed and crit chance increased by 10% - Nearby players also suffer a 5% decrease to their damage reduction + when placed to gain 10% increased movement speed and critical strike chance + However, this comes at a cost of 5% damage reduction ''' } @@ -605,8 +605,8 @@ CrimsonEffigy: { DisplayName: Crimson Effigy Tooltip: ''' - When placed down nearby players have their damage increased by 15% and defense by 10 - Nearby players also suffer a 10% decrease to their maximum health + when placed to gain 15% damage and 10 defense + However, this comes at a cost of 10% maximum health ''' } diff --git a/Localization/en-US/Mods.CalamityMod.Vanilla.Armor.hjson b/Localization/en-US/Mods.CalamityMod.Vanilla.Armor.hjson index e7a5ceade6..da33d395bd 100644 --- a/Localization/en-US/Mods.CalamityMod.Vanilla.Armor.hjson +++ b/Localization/en-US/Mods.CalamityMod.Vanilla.Armor.hjson @@ -137,6 +137,7 @@ SetBonus: { ''' Allows the ability to dash 10% increased damage and critical strike chance + +90 maximum stealth ''' SquireTier2: ''' diff --git a/Systems/Mechanic/RecipeSystem.cs b/Systems/Mechanic/RecipeSystem.cs index e2e260a317..fb4d790a98 100644 --- a/Systems/Mechanic/RecipeSystem.cs +++ b/Systems/Mechanic/RecipeSystem.cs @@ -1375,15 +1375,6 @@ namespace CalamityMod.Systems r.Register(); r.DisableDecraft(); - // Gelatin Crystal (Queen Slime summon) - r = Recipe.Create(ItemID.QueenSlimeCrystal); - r.AddIngredient(ItemID.CrystalShard, 10); - r.AddIngredient(ItemID.PinkGel, 5); - r.AddIngredient(ItemID.SoulofLight, 5); - r.AddTile(TileID.Solidifier); - r.Register(); - r.DisableDecraft(); - // Temple Key r = Recipe.Create(ItemID.TempleKey); r.AddIngredient(ItemID.JungleSpores, 15); diff --git a/Tiles/Furniture/CorruptionEffigy.cs b/Tiles/Furniture/CorruptionEffigy.cs index f0b28ff9f7..0e66e71ea8 100644 --- a/Tiles/Furniture/CorruptionEffigy.cs +++ b/Tiles/Furniture/CorruptionEffigy.cs @@ -1,8 +1,11 @@ using CalamityMod.Buffs.Placeables; using Microsoft.Xna.Framework; using Terraria; +using Terraria.Audio; using Terraria.DataStructures; using Terraria.Enums; +using Terraria.GameContent.ObjectInteractions; +using Terraria.ID; using Terraria.Localization; using Terraria.ModLoader; using Terraria.ObjectData; @@ -15,6 +18,7 @@ namespace CalamityMod.Tiles.Furniture { Main.tileFrameImportant[Type] = true; Main.tileLavaDeath[Type] = true; + TileID.Sets.HasOutlines[Type] = true; TileObjectData.newTile.Width = 2; TileObjectData.newTile.Height = 4; @@ -34,13 +38,30 @@ namespace CalamityMod.Tiles.Furniture AddMapEntry(new Color(126, 156, 134), CalamityUtils.GetItemName()); } - public override void NearbyEffects(int i, int j, bool closer) + public override bool HasSmartInteract(int i, int j, SmartInteractScanSettings settings) => true; + + public override bool RightClick(int i, int j) + { + Player p = Main.LocalPlayer; + + // Forcibly remove Crimson Effigy's buff. + p.ClearBuff(ModContent.BuffType()); + + // 108000 is the duration used by Ammo Box. + p.AddBuff(ModContent.BuffType(), 108000); + + // Play a sound. + SoundEngine.PlaySound(SoundID.NPCHit13 with { Pitch = -0.4f, PitchVariance = 0.2f }, new Vector2(i * 16, j * 16)); + + return true; + } + + public override void MouseOver(int i, int j) { Player player = Main.LocalPlayer; - if (player is null) - return; - if (!player.dead && player.active) - player.AddBuff(ModContent.BuffType(), 20); + player.noThrow = 2; + player.cursorItemIconEnabled = true; + player.cursorItemIconID = ModContent.ItemType(); } } } diff --git a/Tiles/Furniture/CorruptionEffigy_Highlight.png b/Tiles/Furniture/CorruptionEffigy_Highlight.png new file mode 100644 index 0000000000..00449db10a Binary files /dev/null and b/Tiles/Furniture/CorruptionEffigy_Highlight.png differ diff --git a/Tiles/Furniture/CrimsonEffigy.cs b/Tiles/Furniture/CrimsonEffigy.cs index c11e47db6c..ba57c2a318 100644 --- a/Tiles/Furniture/CrimsonEffigy.cs +++ b/Tiles/Furniture/CrimsonEffigy.cs @@ -1,8 +1,11 @@ using CalamityMod.Buffs.Placeables; using Microsoft.Xna.Framework; using Terraria; +using Terraria.Audio; using Terraria.DataStructures; using Terraria.Enums; +using Terraria.GameContent.ObjectInteractions; +using Terraria.ID; using Terraria.Localization; using Terraria.ModLoader; using Terraria.ObjectData; @@ -15,6 +18,7 @@ namespace CalamityMod.Tiles.Furniture { Main.tileFrameImportant[Type] = true; Main.tileLavaDeath[Type] = true; + TileID.Sets.HasOutlines[Type] = true; TileObjectData.newTile.Width = 2; TileObjectData.newTile.Height = 4; @@ -34,13 +38,30 @@ namespace CalamityMod.Tiles.Furniture AddMapEntry(new Color(238, 145, 105), CalamityUtils.GetItemName()); } - public override void NearbyEffects(int i, int j, bool closer) + public override bool HasSmartInteract(int i, int j, SmartInteractScanSettings settings) => true; + + public override bool RightClick(int i, int j) + { + Player p = Main.LocalPlayer; + + // Forcibly remove Corruption Effigy's buff. + p.ClearBuff(ModContent.BuffType()); + + // 108000 is the duration used by Ammo Box. + p.AddBuff(ModContent.BuffType(), 108000); + + // Play a sound. + SoundEngine.PlaySound(SoundID.NPCHit13 with { Pitch = 0.4f, PitchVariance = 0.2f }, new Vector2(i * 16, j * 16)); + + return true; + } + + public override void MouseOver(int i, int j) { Player player = Main.LocalPlayer; - if (player is null) - return; - if (!player.dead && player.active) - player.AddBuff(ModContent.BuffType(), 20); + player.noThrow = 2; + player.cursorItemIconEnabled = true; + player.cursorItemIconID = ModContent.ItemType(); } } } diff --git a/Tiles/Furniture/CrimsonEffigy_Highlight.png b/Tiles/Furniture/CrimsonEffigy_Highlight.png new file mode 100644 index 0000000000..65062f866a Binary files /dev/null and b/Tiles/Furniture/CrimsonEffigy_Highlight.png differ