Smart Cursor and Echo Coating support
No files matched your search
|
After Width: | Height: | Size: 405 B |
|
After Width: | Height: | Size: 414 B |
|
After Width: | Height: | Size: 336 B |
|
After Width: | Height: | Size: 381 B |
|
After Width: | Height: | Size: 396 B |
|
After Width: | Height: | Size: 342 B |
|
After Width: | Height: | Size: 405 B |
|
After Width: | Height: | Size: 438 B |
|
After Width: | Height: | Size: 363 B |
|
After Width: | Height: | Size: 396 B |
|
After Width: | Height: | Size: 396 B |
|
After Width: | Height: | Size: 420 B |
|
After Width: | Height: | Size: 417 B |
|
After Width: | Height: | Size: 306 B |
|
After Width: | Height: | Size: 405 B |
|
After Width: | Height: | Size: 399 B |
|
After Width: | Height: | Size: 384 B |
|
After Width: | Height: | Size: 441 B |
|
After Width: | Height: | Size: 396 B |
|
After Width: | Height: | Size: 444 B |
|
After Width: | Height: | Size: 435 B |
|
After Width: | Height: | Size: 411 B |
|
After Width: | Height: | Size: 396 B |
|
After Width: | Height: | Size: 405 B |
|
After Width: | Height: | Size: 411 B |
|
After Width: | Height: | Size: 426 B |
|
After Width: | Height: | Size: 462 B |
|
After Width: | Height: | Size: 414 B |
|
After Width: | Height: | Size: 432 B |
|
After Width: | Height: | Size: 393 B |
|
After Width: | Height: | Size: 456 B |
|
After Width: | Height: | Size: 375 B |
|
After Width: | Height: | Size: 510 B |
|
After Width: | Height: | Size: 405 B |
|
After Width: | Height: | Size: 450 B |
|
After Width: | Height: | Size: 363 B |
|
After Width: | Height: | Size: 366 B |
|
After Width: | Height: | Size: 351 B |
|
After Width: | Height: | Size: 420 B |
|
After Width: | Height: | Size: 327 B |
|
After Width: | Height: | Size: 351 B |
@@ -2,10 +2,13 @@ using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.GameContent.Drawing;
|
||||
using Terraria.GameContent.ObjectInteractions;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ObjectData;
|
||||
using Terraria.Utilities;
|
||||
|
||||
namespace CalamityModMusic.Tiles
|
||||
{
|
||||
@@ -15,13 +18,14 @@ namespace CalamityModMusic.Tiles
|
||||
{
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
Main.tileObsidianKill[Type] = true;
|
||||
TileID.Sets.HasOutlines[Type] = true;
|
||||
TileID.Sets.DisableSmartCursor[Type] = true;
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2);
|
||||
TileObjectData.newTile.Origin = new Point16(0, 1);
|
||||
TileObjectData.newTile.LavaDeath = false;
|
||||
TileObjectData.newTile.DrawYOffset = 2;
|
||||
TileObjectData.newTile.StyleLineSkip = 2;
|
||||
TileObjectData.addTile(Type);
|
||||
TileID.Sets.DisableSmartCursor[Type] = true;
|
||||
|
||||
AddMapEntry(new Color(191, 142, 111), Language.GetText("ItemName.MusicBox"));
|
||||
}
|
||||
@@ -33,26 +37,26 @@ namespace CalamityModMusic.Tiles
|
||||
player.cursorItemIconEnabled = true;
|
||||
player.cursorItemIconID = TileLoader.GetItemDropFromTypeAndStyle(Type);
|
||||
}
|
||||
|
||||
|
||||
public override bool HasSmartInteract(int i, int j, SmartInteractScanSettings settings) => true;
|
||||
public override bool CreateDust(int i, int j, ref int type) => false;
|
||||
|
||||
public override void DrawEffects(int i, int j, SpriteBatch spriteBatch, ref TileDrawInfo drawData)
|
||||
{
|
||||
if (Main.gamePaused || !Main.instance.IsActive || Lighting.UpdateEveryFrame && !Main.rand.NextBool(4))
|
||||
if (Lighting.UpdateEveryFrame && new FastRandom(Main.TileFrameSeed).WithModifier(i, j).Next(4) != 0)
|
||||
return;
|
||||
|
||||
Tile tile = Main.tile[i, j];
|
||||
if (tile.TileFrameX == 36 && tile.TileFrameY % 36 == 0 && (int)Main.timeForVisualEffects % 7 == 0 && Main.rand.NextBool(3))
|
||||
if (TileDrawing.IsVisible(tile) && tile.TileFrameX == 36 && tile.TileFrameY % 36 == 0 && (int)Main.timeForVisualEffects % 7 == 0 && Main.rand.NextBool(3))
|
||||
{
|
||||
int goreType = Main.rand.Next(570, 573);
|
||||
Vector2 position = new Vector2(i * 16 + 8, j * 16 - 8);
|
||||
Vector2 velocity = new Vector2(Main.WindForVisuals * 2f, -0.5f);
|
||||
velocity.X *= 1f + Main.rand.NextFloat(-0.5f, 0.5f);
|
||||
velocity.Y *= 1f + Main.rand.NextFloat(-0.5f, 0.5f);
|
||||
velocity.X *= Main.rand.NextFloat(0.5f, 1.5f);
|
||||
velocity.Y *= Main.rand.NextFloat(0.5f, 1.5f);
|
||||
if (goreType == 572)
|
||||
position.X -= 8f;
|
||||
|
||||
if (goreType == 571)
|
||||
else if (goreType == 571)
|
||||
position.X -= 4f;
|
||||
|
||||
Gore.NewGore(new EntitySource_TileUpdate(i, j), position, velocity, goreType, 0.8f);
|
||||
|
||||
|
After Width: | Height: | Size: 372 B |
|
After Width: | Height: | Size: 408 B |
|
After Width: | Height: | Size: 390 B |
|
After Width: | Height: | Size: 384 B |
|
After Width: | Height: | Size: 366 B |
|
After Width: | Height: | Size: 462 B |
|
After Width: | Height: | Size: 462 B |
|
After Width: | Height: | Size: 372 B |
|
After Width: | Height: | Size: 327 B |
|
After Width: | Height: | Size: 354 B |
|
After Width: | Height: | Size: 420 B |
|
After Width: | Height: | Size: 423 B |
|
After Width: | Height: | Size: 318 B |
|
After Width: | Height: | Size: 327 B |
|
After Width: | Height: | Size: 387 B |
|
After Width: | Height: | Size: 339 B |
|
After Width: | Height: | Size: 399 B |
|
After Width: | Height: | Size: 447 B |