diff --git a/Items/Mounts/OnyxExcavator.cs b/Items/Mounts/OnyxExcavator.cs index 6370488fc6..e159bdbe57 100644 --- a/Items/Mounts/OnyxExcavator.cs +++ b/Items/Mounts/OnyxExcavator.cs @@ -138,11 +138,11 @@ namespace CalamityMod.Items.Mounts { if (tile != null && tile.active() && tile.type != (ushort)mod.TileType("AbyssGravel") && tile.type != (ushort)mod.TileType("Voidstone") && (tile.type != TileID.Hellstone || Main.hardMode) && - (tile.type != TileID.LihzahrdBrick || NPC.downedGolemBoss) && tile.type != TileID.BlueDungeonBrick && - tile.type != TileID.GreenDungeonBrick && tile.type != TileID.PinkDungeonBrick && tile.type != TileID.DemonAltar && - (tile.type != (ushort)mod.TileType("AstralOre") || CalamityWorld.downedStarGod) && + (tile.type != TileID.LihzahrdBrick || NPC.downedGolemBoss) && (tile.type != TileID.BlueDungeonBrick || NPC.downedBoss3) && + (tile.type != TileID.GreenDungeonBrick || NPC.downedBoss3) && (tile.type != TileID.PinkDungeonBrick || NPC.downedBoss3) && + tile.type != TileID.DemonAltar && (tile.type != (ushort)mod.TileType("AstralOre") || CalamityWorld.downedStarGod) && ((tile.type != (ushort)mod.TileType("Tenebris") && tile.type != (ushort)mod.TileType("PlantyMush")) || NPC.downedPlantBoss || CalamityWorld.downedCalamitas) && - (!player.Calamity().ZoneSunkenSea || CalamityWorld.downedDesertScourge) && + (!player.Calamity().ZoneSunkenSea || CalamityWorld.downedDesertScourge) && tile.type != (ushort)mod.TileType("ArenaTile") && (Main.tileValue[tile.type] < tileValueLimit || tile.type == TileID.Heart || tile.type == TileID.LifeFruit) && !player.noBuilding && tile.type != TileID.ElderCrystalStand && tile.type != TileID.Containers) { diff --git a/Items/Placeables/AstralSand.cs b/Items/Placeables/AstralSand.cs index af2af86287..371dcdb31c 100644 --- a/Items/Placeables/AstralSand.cs +++ b/Items/Placeables/AstralSand.cs @@ -21,6 +21,9 @@ namespace CalamityMod.Items.Placeables item.width = 16; item.height = 16; item.maxStack = 999; + item.shoot = mod.ProjectileType("AstralFallingSand"); + item.shootSpeed = 8f; + item.ammo = 169; } } } diff --git a/Items/StarterBag.cs b/Items/StarterBag.cs index 7c8013b2a3..9cdd73d0de 100644 --- a/Items/StarterBag.cs +++ b/Items/StarterBag.cs @@ -45,6 +45,7 @@ namespace CalamityMod.Items DropHelper.DropItem(player, ItemID.SwiftnessPotion, 3); DropHelper.DropItem(player, ItemID.GillsPotion, 2); DropHelper.DropItem(player, ItemID.ShinePotion); + DropHelper.DropItem(player, ItemID.RecallPotion, 3); // Tiles / Placeables DropHelper.DropItem(player, ItemID.Torch, 25); diff --git a/Items/SummonsAndClimateChange/AridArtifact.cs b/Items/SummonsAndClimateChange/AridArtifact.cs index 2e5c841623..537b9daf5b 100644 --- a/Items/SummonsAndClimateChange/AridArtifact.cs +++ b/Items/SummonsAndClimateChange/AridArtifact.cs @@ -3,6 +3,7 @@ using Terraria; using Terraria.GameContent.Events; using Terraria.ID; using Terraria.ModLoader; +using CalamityMod.World; namespace CalamityMod.Items.SummonsAndClimateChange { @@ -12,7 +13,8 @@ namespace CalamityMod.Items.SummonsAndClimateChange { DisplayName.SetDefault("Arid Artifact"); Tooltip.SetDefault("Summons a sandstorm\n" + - "The sandstorm will happen shortly after the item is used"); + "The sandstorm will happen shortly after the item is used\n" + + "Cancels a sandstorm if one is active"); } public override void SetDefaults() @@ -30,12 +32,15 @@ namespace CalamityMod.Items.SummonsAndClimateChange public override bool CanUseItem(Player player) { - return !Sandstorm.Happening; + return CalamityWorld.downedDesertScourge; } public override bool UseItem(Player player) { - typeof(Sandstorm).GetMethod("StartSandstorm", BindingFlags.Static | BindingFlags.NonPublic).Invoke(null, null); + if (!Sandstorm.Happening) + typeof(Sandstorm).GetMethod("StartSandstorm", BindingFlags.Static | BindingFlags.NonPublic).Invoke(null, null); + else + Sandstorm.TimeLeft = 0; return true; } diff --git a/Projectiles/CalamityGlobalProjectile.cs b/Projectiles/CalamityGlobalProjectile.cs index b4628e8b1e..6132c1a7ac 100644 --- a/Projectiles/CalamityGlobalProjectile.cs +++ b/Projectiles/CalamityGlobalProjectile.cs @@ -522,6 +522,8 @@ namespace CalamityMod.Projectiles } else if (projectile.type == ProjectileID.FallingStar && Main.player[projectile.owner].inventory[Main.player[projectile.owner].selectedItem].type == ItemID.StarCannon) projectile.ranged = true; + else if (projectile.type == mod.ProjectileType("AstralFallingSand") && Main.player[projectile.owner].inventory[Main.player[projectile.owner].selectedItem].type == ItemID.Sandgun) + forceRanged = true; else if (projectile.type == ProjectileID.SoulDrain) projectile.magic = true; diff --git a/Utilities/CalamityRecipes.cs b/Utilities/CalamityRecipes.cs index ee87b50694..2c8967eef3 100644 --- a/Utilities/CalamityRecipes.cs +++ b/Utilities/CalamityRecipes.cs @@ -92,6 +92,13 @@ namespace CalamityMod.Utilities r.AddTile(TileID.CookingPots); r.SetResult(2426); r.AddRecipe(); + + // Glass + r = GetNewRecipe(); + r.AddIngredient(null, "AstralSand", 2); + r.AddTile(TileID.Furnaces); + r.SetResult(ItemID.Glass); + r.AddRecipe(); } // Change Terra Blade's recipe to require 7 Living Shards (forces the Blade to be post-Plantera) @@ -489,6 +496,16 @@ namespace CalamityMod.Utilities r.SetResult(ItemID.LavaCharm); r.AddRecipe(); + // Obsidian Rose + r = GetNewRecipe(); + r.AddIngredient(ItemID.JungleRose); + r.AddIngredient(ItemID.Obsidian, 10); + r.AddIngredient(ItemID.Hellstone, 10); + r.anyIronBar = true; + r.AddTile(TileID.Anvils); + r.SetResult(ItemID.ObsidianRose); + r.AddRecipe(); + // Feral Claws r = GetNewRecipe(); r.AddIngredient(ItemID.Leather, 10);