fixed various furniture producing light when turned off
This commit is contained in:
1 parent
920d19d527
commit
05508e01ae
18 files changed
+26
-18
No files matched your search
@@ -59,7 +59,8 @@ namespace CalamityMod.Tiles.Furniture
|
||||
|
||||
public override void DrawEffects(int i, int j, SpriteBatch spriteBatch, ref Color drawColor, ref int nextSpecialDrawIndex)
|
||||
{
|
||||
CalamityUtils.DrawFlameSparks(235, 5, i, j);
|
||||
if (Main.tile[i, j].frameX < 18)
|
||||
CalamityUtils.DrawFlameSparks(235, 5, i, j);
|
||||
}
|
||||
|
||||
public override void PostDraw(int i, int j, SpriteBatch spriteBatch)
|
||||
|
||||
@@ -59,7 +59,8 @@ namespace CalamityMod.Tiles.Furniture
|
||||
|
||||
public override void DrawEffects(int i, int j, SpriteBatch spriteBatch, ref Color drawColor, ref int nextSpecialDrawIndex)
|
||||
{
|
||||
CalamityUtils.DrawFlameSparks(62, 5, i, j);
|
||||
if (Main.tile[i, j].frameX < 18)
|
||||
CalamityUtils.DrawFlameSparks(62, 5, i, j);
|
||||
}
|
||||
|
||||
public override void PostDraw(int i, int j, SpriteBatch spriteBatch)
|
||||
|
||||
@@ -70,7 +70,8 @@ namespace CalamityMod.Tiles.FurnitureAbyss
|
||||
}
|
||||
public override void DrawEffects(int i, int j, SpriteBatch spriteBatch, ref Color drawColor, ref int nextSpecialDrawIndex)
|
||||
{
|
||||
CalamityUtils.DrawFlameSparks(187, 5, i, j);
|
||||
if (Main.tile[i, j].frameX < 66)
|
||||
CalamityUtils.DrawFlameSparks(187, 5, i, j);
|
||||
}
|
||||
|
||||
public override bool NewRightClick(int i, int j)
|
||||
|
||||
@@ -79,7 +79,7 @@ namespace CalamityMod.Tiles.FurnitureAncient
|
||||
public override void DrawEffects(int i, int j, SpriteBatch spriteBatch, ref Color drawColor, ref int nextSpecialDrawIndex)
|
||||
{
|
||||
Tile tile = Main.tile[i, j];
|
||||
if (tile.frameY == 18)
|
||||
if (tile.frameY == 18 && tile.frameX < 54)
|
||||
{
|
||||
CalamityUtils.DrawFlameSparks(60, 5, i, j);
|
||||
}
|
||||
|
||||
@@ -44,7 +44,7 @@ namespace CalamityMod.Tiles.FurnitureAncient
|
||||
public override void DrawEffects(int i, int j, SpriteBatch spriteBatch, ref Color drawColor, ref int nextSpecialDrawIndex)
|
||||
{
|
||||
Tile tile = Main.tile[i, j];
|
||||
if (tile.frameX == 18 && tile.frameY == 36)
|
||||
if (tile.frameX < 54 && tile.frameY == 36)
|
||||
{
|
||||
CalamityUtils.DrawFlameSparks(60, 5, i, j);
|
||||
}
|
||||
|
||||
@@ -56,7 +56,7 @@ namespace CalamityMod.Tiles.FurnitureAncient
|
||||
public override void DrawEffects(int i, int j, SpriteBatch spriteBatch, ref Color drawColor, ref int nextSpecialDrawIndex)
|
||||
{
|
||||
Tile tile = Main.tile[i, j];
|
||||
if (tile.frameY == 18)
|
||||
if (tile.frameY == 18 && tile.frameX < 18)
|
||||
{
|
||||
CalamityUtils.DrawFlameSparks(60, 5, i, j);
|
||||
}
|
||||
|
||||
@@ -65,7 +65,7 @@ namespace CalamityMod.Tiles.FurnitureAncient
|
||||
public override void DrawEffects(int i, int j, SpriteBatch spriteBatch, ref Color drawColor, ref int nextSpecialDrawIndex)
|
||||
{
|
||||
Tile tile = Main.tile[i, j];
|
||||
if (tile.frameY == 18)
|
||||
if (tile.frameY == 18 && tile.frameX < 18)
|
||||
{
|
||||
CalamityUtils.DrawFlameSparks(60, 5, i, j);
|
||||
}
|
||||
|
||||
@@ -80,7 +80,7 @@ namespace CalamityMod.Tiles.FurnitureAshen
|
||||
public override void DrawEffects(int i, int j, SpriteBatch spriteBatch, ref Color drawColor, ref int nextSpecialDrawIndex)
|
||||
{
|
||||
Tile tile = Main.tile[i, j];
|
||||
if (tile.frameY == 18)
|
||||
if (tile.frameY == 18 && tile.frameX < 54)
|
||||
{
|
||||
CalamityUtils.DrawFlameSparks(60, 5, i, j);
|
||||
}
|
||||
|
||||
@@ -77,7 +77,8 @@ namespace CalamityMod.Tiles.FurnitureAshen
|
||||
|
||||
public override void DrawEffects(int i, int j, SpriteBatch spriteBatch, ref Color drawColor, ref int nextSpecialDrawIndex)
|
||||
{
|
||||
CalamityUtils.DrawFlameSparks(60, 5, i, j);
|
||||
if (Main.tile[i, j].frameX < 35)
|
||||
CalamityUtils.DrawFlameSparks(60, 5, i, j);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -73,7 +73,8 @@ namespace CalamityMod.Tiles.FurnitureAshen
|
||||
|
||||
public override void DrawEffects(int i, int j, SpriteBatch spriteBatch, ref Color drawColor, ref int nextSpecialDrawIndex)
|
||||
{
|
||||
CalamityUtils.DrawFlameSparks(60, 5, i, j);
|
||||
if (Main.tile[i, j].frameX < 18)
|
||||
CalamityUtils.DrawFlameSparks(60, 5, i, j);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -77,7 +77,7 @@ namespace CalamityMod.Tiles.FurnitureAshen
|
||||
public override void DrawEffects(int i, int j, SpriteBatch spriteBatch, ref Color drawColor, ref int nextSpecialDrawIndex)
|
||||
{
|
||||
Tile tile = Main.tile[i, j];
|
||||
if (tile.frameY == 18)
|
||||
if (tile.frameY == 18 && tile.frameX < 54)
|
||||
{
|
||||
CalamityUtils.DrawFlameSparks(60, 5, i, j);
|
||||
}
|
||||
|
||||
@@ -65,7 +65,7 @@ namespace CalamityMod.Tiles.FurnitureAshen
|
||||
public override void DrawEffects(int i, int j, SpriteBatch spriteBatch, ref Color drawColor, ref int nextSpecialDrawIndex)
|
||||
{
|
||||
Tile tile = Main.tile[i, j];
|
||||
if (tile.frameY == 0)
|
||||
if (tile.frameY == 0 && tile.frameX < 18)
|
||||
{
|
||||
CalamityUtils.DrawFlameSparks(60, 5, i, j);
|
||||
}
|
||||
|
||||
@@ -65,7 +65,7 @@ namespace CalamityMod.Tiles.FurnitureAshen
|
||||
public override void DrawEffects(int i, int j, SpriteBatch spriteBatch, ref Color drawColor, ref int nextSpecialDrawIndex)
|
||||
{
|
||||
Tile tile = Main.tile[i, j];
|
||||
if (tile.frameY == 18)
|
||||
if (tile.frameY == 18 && tile.frameX < 18)
|
||||
{
|
||||
CalamityUtils.DrawFlameSparks(60, 5, i, j);
|
||||
}
|
||||
|
||||
@@ -83,7 +83,7 @@ namespace CalamityMod.Tiles.FurnitureCosmilite
|
||||
public override void DrawEffects(int i, int j, SpriteBatch spriteBatch, ref Color drawColor, ref int nextSpecialDrawIndex)
|
||||
{
|
||||
Tile tile = Main.tile[i, j];
|
||||
if (tile.frameY == 18)
|
||||
if (tile.frameY == 18 && tile.frameX < 54)
|
||||
{
|
||||
CalamityUtils.DrawFlameSparks((int)CalamityDusts.PurpleCosmilite, 5, i, j);
|
||||
}
|
||||
|
||||
@@ -64,7 +64,8 @@ namespace CalamityMod.Tiles.FurnitureProfaned
|
||||
|
||||
public override void DrawEffects(int i, int j, SpriteBatch spriteBatch, ref Color drawColor, ref int nextSpecialDrawIndex)
|
||||
{
|
||||
CalamityUtils.DrawFlameSparks(246, 5, i, j);
|
||||
if (Main.tile[i, j].frameX < 35)
|
||||
CalamityUtils.DrawFlameSparks(246, 5, i, j);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -74,7 +74,8 @@ namespace CalamityMod.Tiles.FurnitureProfaned
|
||||
|
||||
public override void DrawEffects(int i, int j, SpriteBatch spriteBatch, ref Color drawColor, ref int nextSpecialDrawIndex)
|
||||
{
|
||||
CalamityUtils.DrawFlameSparks(246, 5, i, j);
|
||||
if (Main.tile[i, j].frameX < 18)
|
||||
CalamityUtils.DrawFlameSparks(246, 5, i, j);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -65,7 +65,7 @@ namespace CalamityMod.Tiles.FurnitureProfaned
|
||||
|
||||
public override void DrawEffects(int i, int j, SpriteBatch spriteBatch, ref Color drawColor, ref int nextSpecialDrawIndex)
|
||||
{
|
||||
if (Main.tile[i, j].frameY == 0)
|
||||
if (Main.tile[i, j].frameY == 0 && Main.tile[i, j].frameX < 18)
|
||||
{
|
||||
CalamityUtils.DrawFlameSparks(246, 5, i, j);
|
||||
}
|
||||
|
||||
@@ -65,7 +65,8 @@ namespace CalamityMod.Tiles.FurnitureProfaned
|
||||
|
||||
public override void DrawEffects(int i, int j, SpriteBatch spriteBatch, ref Color drawColor, ref int nextSpecialDrawIndex)
|
||||
{
|
||||
CalamityUtils.DrawFlameSparks(246, 5, i, j);
|
||||
if (Main.tile[i, j].frameX < 18)
|
||||
CalamityUtils.DrawFlameSparks(246, 5, i, j);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user