Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros

◆ KillWall_PlaySounds()

static void Terraria.WorldGen.KillWall_PlaySounds ( int i,
int j,
Tile tileCache )
inlinestaticprivate

Definition at line 51243 of file WorldGen.cs.

51244 {
51245 if (tileCache.wall == 241 || (tileCache.wall >= 88 && tileCache.wall <= 93) || tileCache.wall == 21 || tileCache.wall == 186 || tileCache.wall == 136 || tileCache.wall == 137 || tileCache.wall == 168 || tileCache.wall == 169 || tileCache.wall == 172 || tileCache.wall == 226 || tileCache.wall == 227 || tileCache.wall == 242 || tileCache.wall == 243)
51246 {
51247 SoundEngine.PlaySound(13, i * 16, j * 16);
51248 }
51249 else if ((tileCache.wall >= 63 && tileCache.wall <= 70) || tileCache.wall == 264 || tileCache.wall == 268 || tileCache.wall == 265)
51250 {
51251 SoundEngine.PlaySound(6, i * 16, j * 16);
51252 }
51253 else
51254 {
51255 SoundEngine.PlaySound(0, i * 16, j * 16);
51256 }
51257 }
static void PlaySound(int type, Vector2 position, int style=1)

References Terraria.Audio.SoundEngine.PlaySound(), and Terraria.Tile.wall.