So many tile changes, just have a look
No files matched your search
|
Before Width: | Height: | Size: 258 B After Width: | Height: | Size: 220 B |
@@ -2,6 +2,7 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using System;
|
||||
using Terraria.ID;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.GameContent.Metadata;
|
||||
@@ -46,9 +47,16 @@ namespace CalamityMod.Tiles.Abyss.AbyssAmbient
|
||||
Tile tile = Framing.GetTileSafely(i, j);
|
||||
if (tile.TileFrameX >= 72)
|
||||
{
|
||||
float brightness = 0.7f;
|
||||
brightness *= (float)MathF.Sin(-j / 8f + Main.GameUpdateCount * 0.01f + i);
|
||||
brightness *= (float)MathF.Sin(-i / 8f + Main.GameUpdateCount * 0.01f + j);
|
||||
brightness += 0.7f;
|
||||
r = 233f / 350f;
|
||||
g = 144f / 350f;
|
||||
b = 30f / 350f;
|
||||
r *= brightness;
|
||||
g *= brightness;
|
||||
b *= brightness;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 588 B |
@@ -1,4 +1,5 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.GameContent.Metadata;
|
||||
@@ -12,10 +13,12 @@ namespace CalamityMod.Tiles.Abyss
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Main.tileLighted[Type] = true;
|
||||
Main.tileBlockLight[Type] = false;
|
||||
Main.tileCut[Type] = true;
|
||||
Main.tileBlockLight[Type] = true;
|
||||
Main.tileLavaDeath[Type] = true;
|
||||
Main.tileNoFail[Type] = true;
|
||||
Main.tileNoSunLight[Type] = false;
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Sulphurous Vines");
|
||||
AddMapEntry(new Color(0, 50, 0), name);
|
||||
@@ -110,9 +113,16 @@ namespace CalamityMod.Tiles.Abyss
|
||||
}
|
||||
public override void ModifyLight(int i, int j, ref float r, ref float g, ref float b)
|
||||
{
|
||||
float brightness = 0.7f;
|
||||
brightness *= (float)MathF.Sin(-j / 40f + Main.GameUpdateCount * 0.01f + i);
|
||||
//brightness *= (float)MathF.Sin(-i / 50f + Main.GameUpdateCount * 0.01f);
|
||||
brightness += 0.5f;
|
||||
r = 173f / 255f;
|
||||
g = 1f;
|
||||
b = 200f / 255f;
|
||||
r *= brightness;
|
||||
g *= brightness;
|
||||
b *= brightness;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2,6 +2,8 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using ReLogic.Content;
|
||||
using Terraria.Audio;
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -10,6 +12,7 @@ namespace CalamityMod.Tiles.Abyss
|
||||
{
|
||||
public class Voidstone : ModTile
|
||||
{
|
||||
public static readonly SoundStyle MineSound = new("CalamityMod/Sounds/Custom/VoidstoneMine", 3);
|
||||
internal static Texture2D GlowTexture;
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
@@ -24,7 +27,7 @@ namespace CalamityMod.Tiles.Abyss
|
||||
CalamityUtils.MergeWithAbyss(Type);
|
||||
|
||||
TileID.Sets.ChecksForMerge[Type] = true;
|
||||
HitSound = SoundID.Tink;
|
||||
HitSound = MineSound;
|
||||
MineResist = 10f;
|
||||
MinPick = 180;
|
||||
ItemDrop = ModContent.ItemType<Items.Placeables.Voidstone>();
|
||||
@@ -35,7 +38,7 @@ namespace CalamityMod.Tiles.Abyss
|
||||
|
||||
public override bool CreateDust(int i, int j, ref int type)
|
||||
{
|
||||
Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 180, 0f, 0f, 1, new Color(255, 255, 255), 1f);
|
||||
Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 180, 0f, 0f, 1, new Color(128, 128, 128), 1f);
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -256,8 +259,14 @@ namespace CalamityMod.Tiles.Abyss
|
||||
xPos += xOffset;
|
||||
Vector2 zero = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange);
|
||||
Vector2 drawOffset = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + zero;
|
||||
Color drawColour = GetDrawColour(i, j, new Color(25, 25, 25, 25));
|
||||
Color drawColour = GetDrawColour(i, j, new Color(255, 255, 255, 255));
|
||||
Tile trackTile = Main.tile[i, j];
|
||||
float brightness = 1f;
|
||||
brightness *= (float)MathF.Sin(i / 18f + Main.GameUpdateCount * 0.007f);
|
||||
brightness *= (float)MathF.Sin(j / 18f + Main.GameUpdateCount * 0.007f);
|
||||
brightness *= (float)MathF.Sin(i * 18f + Main.GameUpdateCount * 0.007f);
|
||||
brightness *= (float)MathF.Sin(j * 18f + Main.GameUpdateCount * 0.007f);
|
||||
drawColour *= brightness;
|
||||
|
||||
if (!trackTile.IsHalfBlock && trackTile.Slope == 0)
|
||||
{
|
||||
|
||||
|
Before Width: | Height: | Size: 36 KiB After Width: | Height: | Size: 21 KiB |
|
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 24 KiB |
|
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.7 KiB |
@@ -1,6 +1,7 @@
|
||||
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ID;
|
||||
@@ -219,8 +220,14 @@ namespace CalamityMod.Tiles.FurnitureVoid
|
||||
Texture2D glowmask = ModContent.Request<Texture2D>("CalamityMod/Tiles/FurnitureVoid/SmoothVoidstoneGlow").Value;
|
||||
Vector2 zero = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange);
|
||||
Vector2 drawOffset = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + zero;
|
||||
Color drawColour = GetDrawColour(i, j, new Color(50, 50, 50, 50));
|
||||
Color drawColour = GetDrawColour(i, j, new Color(255, 255, 255, 255));
|
||||
Tile trackTile = Main.tile[i, j];
|
||||
float brightness = 1f;
|
||||
brightness *= (float)MathF.Sin(i / 18f + Main.GameUpdateCount * 0.007f);
|
||||
brightness *= (float)MathF.Sin(j / 18f + Main.GameUpdateCount * 0.007f);
|
||||
brightness *= (float)MathF.Sin(i * 18f + Main.GameUpdateCount * 0.007f);
|
||||
brightness *= (float)MathF.Sin(j * 18f + Main.GameUpdateCount * 0.007f);
|
||||
drawColour *= brightness;
|
||||
double num6 = Main.time * 0.08;
|
||||
if (!trackTile.IsHalfBlock && trackTile.Slope == 0)
|
||||
{
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using ReLogic.Content;
|
||||
using Terraria.Audio;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ID;
|
||||
@@ -10,6 +11,7 @@ namespace CalamityMod.Tiles.Ores
|
||||
{
|
||||
public class AerialiteOre : ModTile
|
||||
{
|
||||
public static readonly SoundStyle MineSound = new("CalamityMod/Sounds/Custom/MagicalRockMine", 3);
|
||||
internal static Texture2D GlowTexture;
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
@@ -37,11 +39,11 @@ namespace CalamityMod.Tiles.Ores
|
||||
DustType = 33;
|
||||
ItemDrop = ModContent.ItemType<Items.Placeables.Ores.AerialiteOre>();
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Aerialite Ore");
|
||||
name.SetDefault("Aerialite");
|
||||
AddMapEntry(new Color(145, 255, 255), name);
|
||||
MineResist = 2f;
|
||||
MinPick = 65;
|
||||
HitSound = SoundID.Tink;
|
||||
HitSound = MineSound;
|
||||
Main.tileSpelunker[Type] = true;
|
||||
}
|
||||
public override void PostSetDefaults()
|
||||
|
||||
@@ -34,7 +34,7 @@ namespace CalamityMod.Tiles.Ores
|
||||
DustType = 33;
|
||||
ItemDrop = ModContent.ItemType<Items.Placeables.Ores.AerialiteOreDisenchanted>();
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Disenchanted Aerialite Ore");
|
||||
name.SetDefault("Disenchanted Aerialite");
|
||||
AddMapEntry(new Color(204, 170, 81), name);
|
||||
MineResist = 2f;
|
||||
MinPick = 110;
|
||||
|
||||
@@ -3,6 +3,7 @@ using CalamityMod.Tiles.Astral;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using ReLogic.Content;
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -65,9 +66,18 @@ namespace CalamityMod.Tiles.Ores
|
||||
|
||||
public override void ModifyLight(int i, int j, ref float r, ref float g, ref float b)
|
||||
{
|
||||
r = 0.09f;
|
||||
g = 0.03f;
|
||||
b = 0.07f;
|
||||
float brightness = 0.7f;
|
||||
brightness *= (float)MathF.Sin(-j / 40f + Main.GameUpdateCount * 0.007f);
|
||||
brightness *= (float)MathF.Sin(-i / 40f + Main.GameUpdateCount * 0.005f);
|
||||
brightness *= (float)MathF.Sin(-j / 40f + Main.GameUpdateCount * 0.006f);
|
||||
brightness *= (float)MathF.Sin(-i / 40f + Main.GameUpdateCount * 0.009f);
|
||||
brightness += 0.5f;
|
||||
r = Main.DiscoR / 255f * 0.5f;
|
||||
g = 0.5f;
|
||||
b = (255 - Main.DiscoR) / 255f * 0.5f;
|
||||
r *= brightness;
|
||||
g *= brightness;
|
||||
b *= brightness;
|
||||
}
|
||||
|
||||
public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak)
|
||||
|
||||
@@ -39,7 +39,7 @@ namespace CalamityMod.Tiles.Ores
|
||||
DustType = 55;
|
||||
ItemDrop = ModContent.ItemType<Items.Placeables.Ores.AuricOre>();
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Auric Ore");
|
||||
name.SetDefault("Auric");
|
||||
AddMapEntry(new Color(255, 200, 0), name);
|
||||
MineResist = 10f;
|
||||
MinPick = 250;
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework;
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -18,6 +19,9 @@ namespace CalamityMod.Tiles.Ores
|
||||
TileID.Sets.Ore[Type] = true;
|
||||
TileID.Sets.OreMergesWithMud[Type] = true;
|
||||
|
||||
Main.tileShine[Type] = 2000;
|
||||
Main.tileShine2[Type] = true;
|
||||
|
||||
CalamityUtils.MergeWithGeneral(Type);
|
||||
ItemDrop = ModContent.ItemType<Items.Placeables.Ores.HallowedOre>();
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
@@ -38,12 +42,17 @@ namespace CalamityMod.Tiles.Ores
|
||||
{
|
||||
num = fail ? 1 : 3;
|
||||
}
|
||||
public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak)
|
||||
{
|
||||
TileFraming.CustomMergeFrame(i, j, Type, TileID.Pearlstone);
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void ModifyLight(int i, int j, ref float r, ref float g, ref float b)
|
||||
{
|
||||
r = 0.07f;
|
||||
g = 0.07f;
|
||||
b = 0.04f;
|
||||
r = 224f / 600f;
|
||||
g = 219f / 600f;
|
||||
b = 124f / 600f;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 12 KiB |
@@ -31,7 +31,7 @@ namespace CalamityMod.Tiles.Ores
|
||||
|
||||
ItemDrop = ModContent.ItemType<Items.Placeables.Ores.PerennialOre>();
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Perennial Ore");
|
||||
name.SetDefault("Perennial");
|
||||
AddMapEntry(new Color(200, 250, 100), name);
|
||||
MineResist = 3f;
|
||||
MinPick = 200;
|
||||
|
||||
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 7.5 KiB |
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 7.1 KiB |