Updated Red Hot Spikes. (Sprite need fixes)

This commit is contained in:
FyloZ 2020-07-09 16:06:59 -04:00
parent 57423952bf
commit e2f2c82ada
4 changed files with 19 additions and 17 deletions

View File

@ -10,8 +10,9 @@ namespace Decimation.Content.Items.Placeable.ShrineoftheMoltenOne
protected override void InitPlaceable()
{
item.width = 12;
item.height = 12;
item.width = 14;
item.height = 16;
item.maxStack = 99;
}
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 189 B

After

Width:  |  Height:  |  Size: 225 B

View File

@ -1,5 +1,7 @@
using Decimation.Content.Buffs.Buffs;
using Decimation.Content.Buffs.Debuffs;
using Decimation.Lib.Tiles;
using Decimation.Lib.Util;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
@ -8,31 +10,30 @@ using Terraria.DataStructures;
namespace Decimation.Content.Tiles.ShrineoftheMoltenOne
{
class RedHotSpike : ModTile
class RedHotSpike : DecimationFramedTile
{
public override Color MapColor => new Color(196, 35, 0);
public override int TileItem => ModContent.ItemType<Items.Placeable.ShrineoftheMoltenOne.RedHotSpike>();
public override int DustType => DustID.Stone;
public override bool MergeDirt => true;
public override bool HasLight => true;
public override void SetDefaults()
private readonly Vector3 _lightColor = LightingUtils.Rgb255ToRgb1(255, 155, 48);
protected override void InitFramedTile()
{
Main.tileSolid[Type] = true;
Main.tileMergeDirt[Type] = true;
Main.tileBlockLight[Type] = true;
Main.tileLighted[Type] = true;
TileID.Sets.DrawsWalls[Type] = true;
TileID.Sets.NotReallySolid[Type] = true;
dustType = DustID.Stone;
drop = ModContent.ItemType<Items.Placeable.ShrineoftheMoltenOne.RedHotSpike>();
AddMapEntry(new Color(196, 35, 0));
}
public override void NumDust(int i, int j, bool fail, ref int num)
public override void ModifyLight(int i, int j, ref float r, ref float g, ref float b)
{
num = fail ? 1 : 3;
r = _lightColor.X;
g = _lightColor.Y;
b = _lightColor.Z;
}
public override bool Dangersense(int i, int j, Player player)
{
return true;
}
public override bool Dangersense(int i, int j, Player player) => true;
public override void NearbyEffects(int i, int j, bool closer)
{

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB