Skip to content

Commit

Permalink
Ancient Forges/Hellforges now glow! (version bump)
Browse files Browse the repository at this point in the history
  • Loading branch information
gardenappl committed Jul 29, 2018
1 parent 9b4f623 commit 821e26b
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 4 deletions.
17 changes: 15 additions & 2 deletions Tiles/AncientForge.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public override void SetDefaults()
{
Main.tileFrameImportant[Type] = true;
Main.tileNoAttach[Type] = true;
Main.tileLighted[Type] = true;
TileObjectData.newTile.CopyFrom(TileObjectData.Style3x2);
TileObjectData.newTile.CoordinateHeights = new []{ 16, 18 };
TileObjectData.addTile(Type);
Expand All @@ -33,10 +34,22 @@ public override void KillMultiTile(int i, int j, int frameX, int frameY)
{
Item.NewItem(i * 16, j * 16, 48, 32, mod.ItemType(GetType().Name));
}

public override void RandomUpdate(int i, int j)
{
base.RandomUpdate(i, j);
int amount = Main.rand.Next(1, 4);
for(int a = 0; a < amount; a++)
Dust.NewDust(new Vector2(i * 16, j * 16), 16, 16, DustID.Fire);
}

public override void ModifyLight(int i, int j, ref float r, ref float g, ref float b)
{
float rand = 0f;
//float rand = (float)Main.rand.Next(28, 42) * 0.005f;
//rand += (float)(270 - (int)Main.mouseTextColor) / 700f;
r = 0.5f + rand;
g = 0.8f + rand;
b = 0.35f + rand;
}
}
}
19 changes: 18 additions & 1 deletion Tiles/AncientHellforge.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public override void SetDefaults()
Main.tileObsidianKill[Type] = true;
Main.tileLighted[Type] = true;
Main.tileFrameImportant[Type] = true;
// Main.tileNoAttach[Type] = true;
Main.tileNoAttach[Type] = true;
TileObjectData.newTile.CopyFrom(TileObjectData.Style3x2);
TileObjectData.newTile.CoordinateHeights = new []{ 16, 18 };
TileObjectData.newTile.LavaDeath = false;
Expand All @@ -35,5 +35,22 @@ public override void KillMultiTile(int i, int j, int frameX, int frameY)
{
Item.NewItem(i * 16, j * 16, 48, 32, mod.ItemType(GetType().Name));
}

public override void RandomUpdate(int i, int j)
{
int amount = Main.rand.Next(1, 4);
for(int a = 0; a < amount; a++)
Dust.NewDust(new Vector2(i * 16, j * 16), 16, 16, DustID.Fire);
}

public override void ModifyLight(int i, int j, ref float r, ref float g, ref float b)
{
float rand = 0f;
//float rand = (float)Main.rand.Next(28, 42) * 0.005f;
//rand += (float)(270 - (int)Main.mouseTextColor) / 700f;
r = 0.5f + rand;
g = 0.8f + rand;
b = 0.35f + rand;
}
}
}
2 changes: 1 addition & 1 deletion build.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
displayName = Miscellania
author = goldenapple
version = 1.6
version = 1.6.1
homepage = http://forums.terraria.org/index.php?threads/miscellania.39500/
hideResources = false
hideCode = false
Expand Down

0 comments on commit 821e26b

Please sign in to comment.