* 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:
Aviu00
2024-06-07 16:02:23 +00:00
committed by GitHub
parent bd60968a9c
commit 4fde7aedee
25 changed files with 6051 additions and 41 deletions

View File

@@ -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;