diff --git a/BiomeManagers/FloralParadiseBiome.cs b/BiomeManagers/FloralParadiseBiome.cs index b93f61190c..9789259705 100644 --- a/BiomeManagers/FloralParadiseBiome.cs +++ b/BiomeManagers/FloralParadiseBiome.cs @@ -10,11 +10,6 @@ namespace CalamityMod.BiomeManagers public override ModUndergroundBackgroundStyle UndergroundBackgroundStyle => ModContent.Find("CalamityMod/FloralParadiseBGStyle"); public override SceneEffectPriority Priority => SceneEffectPriority.BiomeHigh; - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Floral Paradise"); - } - public override bool IsBiomeActive(Player player) { return BiomeTileCounterSystem.FloralParadiseTiles >= 300; diff --git a/ILEditing/ILChangesLoading.cs b/ILEditing/ILChangesLoading.cs index 1714415ae8..d448d79d77 100644 --- a/ILEditing/ILChangesLoading.cs +++ b/ILEditing/ILChangesLoading.cs @@ -39,22 +39,21 @@ namespace CalamityMod.ILEditing exoDoorClosed = ModContent.TileType(); // Graphics - IL.Terraria.Main.DoDraw += AdditiveDrawing; - IL.Terraria.Main.DoDraw += DrawFloralParadiseFog; - On.Terraria.Main.DrawGore += DrawForegroundStuff; - On.Terraria.Main.DrawCursor += UseCoolFireCursorEffect; - On.Terraria.Main.SetDisplayMode += ResetRenderTargetSizes; - On.Terraria.Main.SortDrawCacheWorms += DrawFusableParticles; - On.Terraria.Main.DrawInfernoRings += DrawForegroundParticles; - IL.Terraria.Main.DrawInterface_40_InteractItemIcon += MakeMouseHoverItemsSupportAnimations; - On.Terraria.GameContent.Drawing.TileDrawing.DrawPartialLiquid += DrawCustomLava; - IL.Terraria.WaterfallManager.DrawWaterfall += DrawCustomLavafalls; - IL.Terraria.GameContent.Liquid.LiquidRenderer.InternalDraw += ChangeWaterQuadColors; - IL.Terraria.Main.oldDrawWater += DrawCustomLava3; - On.Terraria.Graphics.Light.TileLightScanner.GetTileLight += MakeSulphSeaWaterBetter; - On.Terraria.GameContent.Drawing.TileDrawing.PreDrawTiles += ClearForegroundStuff; - On.Terraria.GameContent.Drawing.TileDrawing.Draw += ClearTilePings; - On.Terraria.GameContent.ItemDropRules.CommonCode.ModifyItemDropFromNPC += ColorBlightedGel; + IL_Main.DoDraw += AdditiveDrawing; + IL_Main.DoDraw += DrawFloralParadiseFog; + On_Main.DrawGore += DrawForegroundStuff; + On_Main.DrawCursor += UseCoolFireCursorEffect; + On_Main.SortDrawCacheWorms += DrawFusableParticles; + On_Main.DrawInfernoRings += DrawForegroundParticles; + On_TileDrawing.DrawPartialLiquid += DrawCustomLava; + On_WaterfallManager.DrawWaterfall_int_int_int_float_Vector2_Rectangle_Color_SpriteEffects += DrawCustomLavafalls; + On_Main.RenderWater += CacheLavaStyle; + IL_LiquidRenderer.DrawNormalLiquids += ChangeWaterQuadColors; + IL_Main.oldDrawWater += DrawCustomLava3; + On_TileLightScanner.GetTileLight += MakeSulphSeaWaterBetter; + On_TileDrawing.PreDrawTiles += ClearForegroundStuff; + On_TileDrawing.Draw += ClearTilePings; + On_CommonCode.ModifyItemDropFromNPC += ColorBlightedGel; // Graphics (dyeable shader stuff) On_Player.UpdateItemDye += DyeableShadersRenderer.FindDyesDetour; diff --git a/Items/Placeables/AlgalSlateItem.cs b/Items/Placeables/AlgalSlateItem.cs index d448e3400d..dd448217d2 100644 --- a/Items/Placeables/AlgalSlateItem.cs +++ b/Items/Placeables/AlgalSlateItem.cs @@ -8,8 +8,7 @@ namespace CalamityMod.Items.Placeables { public override void SetStaticDefaults() { - SacrificeTotal = 100; - DisplayName.SetDefault("Algal Slate"); + Item.ResearchUnlockCount = 100; } public override void SetDefaults() diff --git a/Items/Placeables/PeatItem.cs b/Items/Placeables/PeatItem.cs index d528db09de..a47ae0a30a 100644 --- a/Items/Placeables/PeatItem.cs +++ b/Items/Placeables/PeatItem.cs @@ -8,8 +8,7 @@ namespace CalamityMod.Items.Placeables { public override void SetStaticDefaults() { - SacrificeTotal = 100; - DisplayName.SetDefault("Peat"); + Item.ResearchUnlockCount = 100; } public override void SetDefaults() diff --git a/Items/Placeables/PeatMossItem.cs b/Items/Placeables/PeatMossItem.cs index a835875e44..d83fe66ff0 100644 --- a/Items/Placeables/PeatMossItem.cs +++ b/Items/Placeables/PeatMossItem.cs @@ -8,8 +8,7 @@ namespace CalamityMod.Items.Placeables { public override void SetStaticDefaults() { - SacrificeTotal = 100; - DisplayName.SetDefault("Peat Moss"); + Item.ResearchUnlockCount = 100; } public override void SetDefaults() diff --git a/Items/Placeables/PinkFlowerItem.cs b/Items/Placeables/ScintillatingBloom.cs similarity index 79% rename from Items/Placeables/PinkFlowerItem.cs rename to Items/Placeables/ScintillatingBloom.cs index 4a68cf8e74..273fdea912 100644 --- a/Items/Placeables/PinkFlowerItem.cs +++ b/Items/Placeables/ScintillatingBloom.cs @@ -5,13 +5,11 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Placeables { - // TODO -- Come up with a better name for this. - public class PinkFlowerItem : ModItem + public class ScintillatingBloom : ModItem { public override void SetStaticDefaults() { - DisplayName.SetDefault("Pink Flower"); - SacrificeTotal = 10; + Item.ResearchUnlockCount = 10; } public override void SetDefaults() diff --git a/Items/Placeables/PinkFlowerItem.png b/Items/Placeables/ScintillatingBloom.png similarity index 100% rename from Items/Placeables/PinkFlowerItem.png rename to Items/Placeables/ScintillatingBloom.png diff --git a/Projectiles/Environment/Lilyglow.cs b/Projectiles/Environment/Lilyglow.cs index d33f47209f..0fea8ea1d4 100644 --- a/Projectiles/Environment/Lilyglow.cs +++ b/Projectiles/Environment/Lilyglow.cs @@ -11,8 +11,6 @@ namespace CalamityMod.Projectiles.Environment public override string Texture => "CalamityMod/Particles/Metaballs/FusableParticleBase"; - public override void SetStaticDefaults() => DisplayName.SetDefault("Lilyglow"); - public override void SetDefaults() { Projectile.width = 360; diff --git a/Projectiles/Environment/WaterAlgae.cs b/Projectiles/Environment/WaterAlgae.cs index 9e80e0d57c..99b305f764 100644 --- a/Projectiles/Environment/WaterAlgae.cs +++ b/Projectiles/Environment/WaterAlgae.cs @@ -10,7 +10,6 @@ namespace CalamityMod.Projectiles.Environment public ref float Direction => ref Projectile.ai[0]; public override void SetStaticDefaults() { - DisplayName.SetDefault("Algae"); Main.projFrames[Projectile.type] = 3; ProjectileID.Sets.CanDistortWater[Projectile.type] = false; } diff --git a/Tiles/FloralParadise/AlgalSlate.cs b/Tiles/FloralParadise/AlgalSlate.cs index d97f6568de..da26933f6f 100644 --- a/Tiles/FloralParadise/AlgalSlate.cs +++ b/Tiles/FloralParadise/AlgalSlate.cs @@ -1,5 +1,4 @@ -using CalamityMod.Items.Placeables; -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -22,7 +21,6 @@ namespace CalamityMod.Tiles.FloralParadise CalamityUtils.MergeWithFloralParadise(Type); DustType = 78; - ItemDrop = ModContent.ItemType(); HitSound = SoundID.Tink; diff --git a/Tiles/FloralParadise/LushVines.cs b/Tiles/FloralParadise/LushVines.cs index 015b088898..eeb8817853 100644 --- a/Tiles/FloralParadise/LushVines.cs +++ b/Tiles/FloralParadise/LushVines.cs @@ -15,9 +15,7 @@ namespace CalamityMod.Tiles.FloralParadise Main.tileLavaDeath[Type] = true; Main.tileNoFail[Type] = true; Main.tileFrameImportant[Type] = true; - ModTranslation name = CreateMapEntryName(); - name.SetDefault("Vines"); - AddMapEntry(new Color(47, 75, 32), name); + AddMapEntry(new Color(47, 75, 32)); HitSound = SoundID.Grass; DustType = 2; } diff --git a/Tiles/FloralParadise/Peat.cs b/Tiles/FloralParadise/Peat.cs index 7e9184437b..b65eba8b6d 100644 --- a/Tiles/FloralParadise/Peat.cs +++ b/Tiles/FloralParadise/Peat.cs @@ -1,5 +1,4 @@ -using CalamityMod.Items.Placeables; -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -22,7 +21,6 @@ namespace CalamityMod.Tiles.FloralParadise CalamityUtils.MergeWithFloralParadise(Type); DustType = 78; - ItemDrop = ModContent.ItemType(); AddMapEntry(new Color(72, 91, 47)); } diff --git a/Tiles/FloralParadise/PeatMoss.cs b/Tiles/FloralParadise/PeatMoss.cs index 8f6491fcd7..b92e58ecff 100644 --- a/Tiles/FloralParadise/PeatMoss.cs +++ b/Tiles/FloralParadise/PeatMoss.cs @@ -1,5 +1,4 @@ -using CalamityMod.Items.Placeables; -using CalamityMod.Projectiles.Environment; +using CalamityMod.Projectiles.Environment; using Microsoft.Xna.Framework; using Terraria; using Terraria.Audio; @@ -32,7 +31,6 @@ namespace CalamityMod.Tiles.FloralParadise CalamityUtils.MergeWithFloralParadise(Type); DustType = 39; - ItemDrop = ModContent.ItemType(); HitSound = MineSound; AddMapEntry(new Color(65, 142, 101)); diff --git a/Tiles/FloralParadise/PinkFlower.cs b/Tiles/FloralParadise/PinkFlower.cs index 5ec8b3397f..9ce0123ad4 100644 --- a/Tiles/FloralParadise/PinkFlower.cs +++ b/Tiles/FloralParadise/PinkFlower.cs @@ -50,7 +50,9 @@ namespace CalamityMod.Tiles.FloralParadise public override void SpecialDraw(int i, int j, SpriteBatch spriteBatch) { - ILChanges.Windgrid.GetWindTime(i, j, WindPushLifetime, out int windTimeLeft, out int direction); + // 02JUN2024: Ozzatron: directionY did not exist at the time of the creation of this content. As such, it is ignored here. + ILChanges.Windgrid.GetWindTime(i, j, WindPushLifetime, out int windTimeLeft, out int direction, out _); + float windInterpolant = windTimeLeft / (float)WindPushLifetime; float windRotation = Utils.GetLerpValue(0f, 0.5f, windInterpolant, true) * Utils.GetLerpValue(1f, 0.5f, windInterpolant, true) * direction * 0.34f; @@ -76,7 +78,7 @@ namespace CalamityMod.Tiles.FloralParadise public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(new EntitySource_TileBreak(i, j), i * 16, j * 16, 32, 48, ModContent.ItemType()); + Item.NewItem(new EntitySource_TileBreak(i, j), i * 16, j * 16, 32, 48, ModContent.ItemType()); } public override void NumDust(int i, int j, bool fail, ref int num) diff --git a/Tiles/FloralParadise/PinkFlowerBig.cs b/Tiles/FloralParadise/PinkFlowerBig.cs index 816cda0c1b..ce416e6c8f 100644 --- a/Tiles/FloralParadise/PinkFlowerBig.cs +++ b/Tiles/FloralParadise/PinkFlowerBig.cs @@ -59,7 +59,9 @@ namespace CalamityMod.Tiles.FloralParadise public override void SpecialDraw(int i, int j, SpriteBatch spriteBatch) { - ILChanges.Windgrid.GetWindTime(i, j, WindPushLifetime, out int windTimeLeft, out int direction); + // 02JUN2024: Ozzatron: directionY did not exist at the time of the creation of this content. As such, it is ignored here. + ILChanges.Windgrid.GetWindTime(i, j, WindPushLifetime, out int windTimeLeft, out int direction, out _); + float windInterpolant = windTimeLeft / (float)WindPushLifetime; float windRotation = Utils.GetLerpValue(0f, 0.5f, windInterpolant, true) * Utils.GetLerpValue(1f, 0.5f, windInterpolant, true) * direction * 0.34f; diff --git a/Tiles/FloralParadise/SmallVines.cs b/Tiles/FloralParadise/SmallVines.cs index c936546391..8cdbfd28dd 100644 --- a/Tiles/FloralParadise/SmallVines.cs +++ b/Tiles/FloralParadise/SmallVines.cs @@ -15,9 +15,7 @@ namespace CalamityMod.Tiles.FloralParadise Main.tileLavaDeath[Type] = true; Main.tileNoFail[Type] = true; Main.tileFrameImportant[Type] = true; - ModTranslation name = CreateMapEntryName(); - name.SetDefault("Vines"); - AddMapEntry(new Color(100, 151, 31), name); + AddMapEntry(new Color(100, 151, 31)); HitSound = SoundID.Grass; DustType = 2; } diff --git a/Tiles/FloralParadise/VineLoops.cs b/Tiles/FloralParadise/VineLoops.cs index 0f26727990..f2350cc926 100644 --- a/Tiles/FloralParadise/VineLoops.cs +++ b/Tiles/FloralParadise/VineLoops.cs @@ -26,8 +26,7 @@ namespace CalamityMod.Tiles.FloralParadise TileObjectData.newTile.RandomStyleRange = Variants; TileObjectData.addTile(Type); - ModTranslation name = CreateMapEntryName(); - AddMapEntry(new Color(47, 75, 32), name); + AddMapEntry(new Color(47, 75, 32)); HitSound = SoundID.Grass; DustType = 2; } diff --git a/Tiles/FurnitureExo/ExoWorkBenchTile.cs b/Tiles/FurnitureExo/ExoWorkBenchTile.cs index 86a0b0a665..9347c89993 100644 --- a/Tiles/FurnitureExo/ExoWorkBenchTile.cs +++ b/Tiles/FurnitureExo/ExoWorkBenchTile.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Tiles.FurnitureExo public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(new EntitySource_TileBreak(i, j), i * 16, j * 16, 32, 16, ModContent.ItemType()); + Item.NewItem(new EntitySource_TileBreak(i, j), i * 16, j * 16, 32, 16, ModContent.ItemType()); } public override void PostDraw(int i, int j, SpriteBatch spriteBatch)