45323 {
45324
45325
45326
45327
45328
45329
45330
45333 {
45336 {
45337 if (Main.netMode != 1 &&
Wiring.running)
45338 {
45340 Wiring.SkipWire(x, y + 1);
45341 Wiring.SkipWire(x + 1, y);
45342 Wiring.SkipWire(x + 1, y + 1);
45343 }
45345 {
45346 return false;
45347 }
45349 for (int i = 0; i < 2; i++)
45350 {
45351 Framing.GetTileSafely(x + i, y).ClearTile();
45352 }
45353 for (
int j = 0;
j < 2;
j++)
45354 {
45355 tileSafely = Framing.GetTileSafely(x +
j, y + 1);
45356 tileSafely.type = 387;
45357 tileSafely.frameX = (short)(
j * 18);
45359 }
45360 for (
int k = -1;
k < 3;
k++)
45361 {
45362 for (
int l = 0;
l < 3;
l++)
45363 {
45365 }
45366 }
45367 return true;
45368 }
45370 {
45371 if (Main.netMode != 1 &&
Wiring.running)
45372 {
45373 Wiring.SkipWire(x, y - 1);
45375 Wiring.SkipWire(x + 1, y - 1);
45376 Wiring.SkipWire(x + 1, y);
45377 }
45379 {
45380 return false;
45381 }
45383 for (
int m = 0;
m < 2;
m++)
45384 {
45385 Framing.GetTileSafely(x +
m, y + 1).ClearTile();
45386 }
45387 for (
int n = 0;
n < 2;
n++)
45388 {
45390 tileSafely.type = 387;
45391 tileSafely.frameX = (short)(
n * 18);
45393 }
45395 {
45397 {
45399 }
45400 }
45401 return true;
45402 }
45403 }
45405 {
45409 {
45412 {
45413 return false;
45414 }
45415 }
45416 if (Main.netMode != 1 &&
Wiring.running)
45417 {
45420 Wiring.SkipWire(x + 1, y);
45422 }
45425 {
45428 {
45430 }
45431 }
45433 {
45434 TileColorCache
cache = Framing.GetTileSafely(x +
num6, y).BlockColorAndCoating();
45436 {
45438 tileSafely.type = 386;
45440 tileSafely.frameY = (short)(
num7 * 18);
45443 }
45444 }
45446 {
45448 {
45450 }
45451 }
45452 return true;
45453 }
45455 return false;
45456 }
static SlotId PlaySound(in SoundStyle? style, Vector2? position=null, SoundUpdateCallback? updateCallback=null)
Attempts to play a sound style with the provided sound style (if it's not null), and returns a valid ...
static void KillTile(int i, int j, bool fail=false, bool effectOnly=false, bool noItem=false)
static void TileFrame(int i, int j, bool resetFrame=false, bool noBreak=false)
static Point GetTopLeftAndStyles(ref int x, ref int y, int w, int h, int frameXinc, int frameYinc)