Fix still more issues with the Floral Paradise branch.

This commit is contained in:
Ozzatron committed 2024-06-02 17:57:04 -04:00
1 parent 9fd05aa721
commit 603a9e2fa3
18 files changed
+34 -55

No files matched your search

-5
View File
@@ -10,11 +10,6 @@ namespace CalamityMod.BiomeManagers
public override ModUndergroundBackgroundStyle UndergroundBackgroundStyle => ModContent.Find<ModUndergroundBackgroundStyle>("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;
+15 -16
View File
@@ -39,22 +39,21 @@ namespace CalamityMod.ILEditing
exoDoorClosed = ModContent.TileType<ExoDoorClosed>();
// 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;
+1 -2
View File
@@ -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()
+1 -2
View File
@@ -8,8 +8,7 @@ namespace CalamityMod.Items.Placeables
{
public override void SetStaticDefaults()
{
SacrificeTotal = 100;
DisplayName.SetDefault("Peat");
Item.ResearchUnlockCount = 100;
}
public override void SetDefaults()
+1 -2
View File
@@ -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()
@@ -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()
File renamed without changes.

Before

Width:  |  Height:  |  Size: 560 B

After

Width:  |  Height:  |  Size: 560 B

-2
View File
@@ -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;
-1
View File
@@ -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;
}
+1 -3
View File
@@ -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<AlgalSlateItem>();
HitSound = SoundID.Tink;
+1 -3
View File
@@ -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;
}
+1 -3
View File
@@ -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<PeatItem>();
AddMapEntry(new Color(72, 91, 47));
}
+1 -3
View File
@@ -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<PeatMossItem>();
HitSound = MineSound;
AddMapEntry(new Color(65, 142, 101));
+4 -2
View File
@@ -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<PinkFlowerItem>());
Item.NewItem(new EntitySource_TileBreak(i, j), i * 16, j * 16, 32, 48, ModContent.ItemType<ScintillatingBloom>());
}
public override void NumDust(int i, int j, bool fail, ref int num)
+3 -1
View File
@@ -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;
+1 -3
View File
@@ -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;
}
+1 -2
View File
@@ -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;
}
+1 -1
View File
@@ -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<ExoWorkbench>());
Item.NewItem(new EntitySource_TileBreak(i, j), i * 16, j * 16, 32, 16, ModContent.ItemType<ExoWorkBench>());
}
public override void PostDraw(int i, int j, SpriteBatch spriteBatch)