Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ PlayGuitarChord()

void Terraria.Player.PlayGuitarChord ( float range)
inline

Definition at line 44459 of file Player.cs.

44460 {
44461 int num = 6;
44462 float num2 = 1f / (float)num;
44463 if (range > num2 * 5f)
44464 {
44465 SoundEngine.PlaySound(49, base.Center);
44466 }
44467 else if (range > num2 * 4f)
44468 {
44469 SoundEngine.PlaySound(48, base.Center);
44470 }
44471 else if (range > num2 * 3f)
44472 {
44473 SoundEngine.PlaySound(47, base.Center);
44474 }
44475 else if (range > num2 * 2f)
44476 {
44477 SoundEngine.PlaySound(51, base.Center);
44478 }
44479 else if (range > num2 * 1f)
44480 {
44481 SoundEngine.PlaySound(52, base.Center);
44482 }
44483 else
44484 {
44485 SoundEngine.PlaySound(50, base.Center);
44486 }
44487 }
static void PlaySound(int type, Vector2 position, int style=1)

References Terraria.Audio.SoundEngine.PlaySound().