Reorders Sound Systems signatures to match Popup Systems. (#8728)
This commit is contained in:
@@ -94,7 +94,7 @@ namespace Content.Server.Arcade.Components
|
||||
Game?.ExecutePlayerAction(msg.PlayerAction);
|
||||
break;
|
||||
case PlayerAction.NewGame:
|
||||
SoundSystem.Play(Filter.Pvs(Owner), _newGameSound.GetSound(), Owner, AudioParams.Default.WithVolume(-4f));
|
||||
SoundSystem.Play(_newGameSound.GetSound(), Filter.Pvs(Owner), Owner, AudioParams.Default.WithVolume(-4f));
|
||||
|
||||
Game = new SpaceVillainGame(this);
|
||||
UserInterface?.SendMessage(Game.GenerateMetaDataMessage());
|
||||
@@ -200,7 +200,7 @@ namespace Content.Server.Arcade.Components
|
||||
_latestPlayerActionMessage = Loc.GetString("space-villain-game-player-attack-message",
|
||||
("enemyName", _enemyName),
|
||||
("attackAmount", attackAmount));
|
||||
SoundSystem.Play(Filter.Pvs(_owner.Owner), _owner._playerAttackSound.GetSound(), _owner.Owner, AudioParams.Default.WithVolume(-4f));
|
||||
SoundSystem.Play(_owner._playerAttackSound.GetSound(), Filter.Pvs(_owner.Owner), _owner.Owner, AudioParams.Default.WithVolume(-4f));
|
||||
if (!_owner.EnemyInvincibilityFlag)
|
||||
_enemyHp -= attackAmount;
|
||||
_turtleTracker -= _turtleTracker > 0 ? 1 : 0;
|
||||
@@ -211,7 +211,7 @@ namespace Content.Server.Arcade.Components
|
||||
_latestPlayerActionMessage = Loc.GetString("space-villain-game-player-heal-message",
|
||||
("magicPointAmount", pointAmount),
|
||||
("healAmount", healAmount));
|
||||
SoundSystem.Play(Filter.Pvs(_owner.Owner), _owner._playerHealSound.GetSound(), _owner.Owner, AudioParams.Default.WithVolume(-4f));
|
||||
SoundSystem.Play(_owner._playerHealSound.GetSound(), Filter.Pvs(_owner.Owner), _owner.Owner, AudioParams.Default.WithVolume(-4f));
|
||||
if (!_owner.PlayerInvincibilityFlag)
|
||||
_playerMp -= pointAmount;
|
||||
_playerHp += healAmount;
|
||||
@@ -220,7 +220,7 @@ namespace Content.Server.Arcade.Components
|
||||
case PlayerAction.Recharge:
|
||||
var chargeAmount = _random.Next(4, 7);
|
||||
_latestPlayerActionMessage = Loc.GetString("space-villain-game-player-recharge-message", ("regainedPoints", chargeAmount));
|
||||
SoundSystem.Play(Filter.Pvs(_owner.Owner), _owner._playerChargeSound.GetSound(), _owner.Owner, AudioParams.Default.WithVolume(-4f));
|
||||
SoundSystem.Play(_owner._playerChargeSound.GetSound(), Filter.Pvs(_owner.Owner), _owner.Owner, AudioParams.Default.WithVolume(-4f));
|
||||
_playerMp += chargeAmount;
|
||||
_turtleTracker -= _turtleTracker > 0 ? 1 : 0;
|
||||
break;
|
||||
@@ -254,7 +254,7 @@ namespace Content.Server.Arcade.Components
|
||||
UpdateUi(Loc.GetString("space-villain-game-player-wins-message"),
|
||||
Loc.GetString("space-villain-game-enemy-dies-message", ("enemyName", _enemyName)),
|
||||
true);
|
||||
SoundSystem.Play(Filter.Pvs(_owner.Owner), _owner._winSound.GetSound(), _owner.Owner, AudioParams.Default.WithVolume(-4f));
|
||||
SoundSystem.Play(_owner._winSound.GetSound(), Filter.Pvs(_owner.Owner), _owner.Owner, AudioParams.Default.WithVolume(-4f));
|
||||
_owner.ProcessWin();
|
||||
return false;
|
||||
}
|
||||
@@ -267,7 +267,7 @@ namespace Content.Server.Arcade.Components
|
||||
UpdateUi(Loc.GetString("space-villain-game-player-loses-message"),
|
||||
Loc.GetString("space-villain-game-enemy-cheers-message", ("enemyName", _enemyName)),
|
||||
true);
|
||||
SoundSystem.Play(Filter.Pvs(_owner.Owner), _owner._gameOverSound.GetSound(), _owner.Owner, AudioParams.Default.WithVolume(-4f));
|
||||
SoundSystem.Play(_owner._gameOverSound.GetSound(), Filter.Pvs(_owner.Owner), _owner.Owner, AudioParams.Default.WithVolume(-4f));
|
||||
return false;
|
||||
}
|
||||
if (_enemyHp <= 0 || _enemyMp <= 0)
|
||||
@@ -276,7 +276,7 @@ namespace Content.Server.Arcade.Components
|
||||
UpdateUi(Loc.GetString("space-villain-game-player-loses-message"),
|
||||
Loc.GetString("space-villain-game-enemy-dies-with-player-message ", ("enemyName", _enemyName)),
|
||||
true);
|
||||
SoundSystem.Play(Filter.Pvs(_owner.Owner), _owner._gameOverSound.GetSound(), _owner.Owner, AudioParams.Default.WithVolume(-4f));
|
||||
SoundSystem.Play(_owner._gameOverSound.GetSound(), Filter.Pvs(_owner.Owner), _owner.Owner, AudioParams.Default.WithVolume(-4f));
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user