@@ -2,6 +2,7 @@ using Content.Shared.Arcade;
|
||||
using Robust.Server.GameObjects;
|
||||
using Robust.Shared.Random;
|
||||
using System.Linq;
|
||||
using Content.Shared.White.Mood;
|
||||
|
||||
namespace Content.Server.Arcade.BlockGame;
|
||||
|
||||
@@ -82,6 +83,10 @@ public sealed partial class BlockGame
|
||||
{
|
||||
_highScorePlacement = _arcadeSystem.RegisterHighScore(meta.EntityName, Points);
|
||||
SendHighscoreUpdate();
|
||||
//WD start
|
||||
var ev = new MoodEffectEvent("ArcadePlay");
|
||||
_entityManager.EventBus.RaiseLocalEvent(meta.Owner, ev);
|
||||
//WD end
|
||||
}
|
||||
SendMessage(new BlockGameMessages.BlockGameGameOverScreenMessage(Points, _highScorePlacement?.LocalPlacement, _highScorePlacement?.GlobalPlacement));
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using Content.Server.Power.Components;
|
||||
using Content.Server.UserInterface;
|
||||
using Content.Shared.White.Mood;
|
||||
using static Content.Shared.Arcade.SharedSpaceVillainArcadeComponent;
|
||||
using Robust.Server.GameObjects;
|
||||
using Robust.Shared.Audio;
|
||||
@@ -73,6 +74,9 @@ public sealed partial class SpaceVillainArcadeSystem : EntitySystem
|
||||
if (!TryComp<ApcPowerReceiverComponent>(uid, out var power) || !power.Powered)
|
||||
return;
|
||||
|
||||
if (msg.Session.AttachedEntity != null)
|
||||
RaiseLocalEvent(msg.Session.AttachedEntity.Value, new MoodEffectEvent("ArcadePlay")); //WD edit
|
||||
|
||||
switch (msg.PlayerAction)
|
||||
{
|
||||
case PlayerAction.Attack:
|
||||
|
||||
Reference in New Issue
Block a user