Definition at line 379 of file Chest.cs.
380 {
381 if (Main.tile[X, Y] == null || Main.tile[X + 1, Y] == null || Main.tile[X, Y + 1] == null || Main.tile[X + 1, Y + 1] == null)
382 {
383 return false;
384 }
385 short num = 0;
389 int num2 = tileSafely.frameX / 36;
391 {
392 case 21:
394 {
395 case 2:
396 num = 36;
399 break;
400 case 4:
401 num = 36;
403 break;
404 case 23:
405 case 24:
406 case 25:
407 case 26:
408 case 27:
409 if (!
NPC.downedPlantBoss)
410 {
411 return false;
412 }
413 num = 180;
416 break;
417 case 36:
418 case 38:
419 case 40:
420 num = 36;
422 break;
423 default:
424 return false;
425 }
426 break;
427 case 467:
429 {
430 if (!
NPC.downedPlantBoss)
431 {
432 return false;
433 }
434 num = 36;
437 break;
438 }
439 return false;
440 }
442 for (
int i = X;
i <=
X + 1;
i++)
443 {
444 for (
int j = Y;
j <=
Y + 1;
j++)
445 {
448 {
449 tileSafely2.frameX -= num;
451 for (
int k = 0;
k < 4;
k++)
452 {
453 Dust.NewDust(
new Vector2(i * 16,
j * 16), 16, 16, type);
454 }
455 }
456 }
457 }
458 return true;
459 }
static void PlaySound(int type, Vector2 position, int style=1)
static void NotifyProgressionEvent(int eventID)
References Terraria.NPC.downedPlantBoss, Terraria.Framing.GetTileSafely(), Terraria.Dust.NewDust(), Terraria.GameContent.Achievements.AchievementsHelper.NotifyProgressionEvent(), Terraria.Audio.SoundEngine.PlaySound(), and Terraria.Main.tile.
Referenced by Terraria.MessageBuffer.GetData(), and Terraria.Player.TileInteractionsUse().