Маг (#336)
* GameRule, a lot of prototypes and FTL pending * some protos * - add: Magic additions, tweaks and bugfixes. * - add: Wizard gamerule. * - tweak: Do not call shuttle. --------- Co-authored-by: melano <92106367+melanoTurbo@users.noreply.github.com>
This commit is contained in:
@@ -540,12 +540,18 @@ public abstract class SharedActionsSystem : EntitySystem
|
||||
handled = actionEvent.Handled;
|
||||
}
|
||||
|
||||
_audio.PlayPredicted(action.Sound, performer,predicted ? performer : null);
|
||||
handled |= action.Sound != null;
|
||||
if (action.AlwaysPlaySound) // WD EDIT
|
||||
{
|
||||
_audio.PlayPredicted(action.Sound, performer,predicted ? performer : null);
|
||||
handled |= action.Sound != null;
|
||||
}
|
||||
|
||||
if (!handled)
|
||||
return; // no interaction occurred.
|
||||
|
||||
if (!action.AlwaysPlaySound) // WD
|
||||
_audio.PlayPvs(action.Sound, performer);
|
||||
|
||||
// reduce charges, start cooldown, and mark as dirty (if required).
|
||||
|
||||
var dirty = toggledBefore == action.Toggled;
|
||||
|
||||
Reference in New Issue
Block a user