Больше лучше
This commit is contained in:
@@ -9,10 +9,10 @@ public sealed partial class DirectBallsHitComponent : Component
|
|||||||
public TimeSpan KnockdownTime = TimeSpan.FromSeconds(2.0f);
|
public TimeSpan KnockdownTime = TimeSpan.FromSeconds(2.0f);
|
||||||
|
|
||||||
[DataField]
|
[DataField]
|
||||||
public TimeSpan JitterTime = TimeSpan.FromSeconds(2.0f);
|
public TimeSpan JitterTime = TimeSpan.FromSeconds(4.0f);
|
||||||
|
|
||||||
[DataField]
|
[DataField]
|
||||||
public TimeSpan StutterTime = TimeSpan.FromSeconds(2.0f);
|
public TimeSpan StutterTime = TimeSpan.FromSeconds(4.0f);
|
||||||
|
|
||||||
[DataField]
|
[DataField]
|
||||||
public SharedStandingStateSystem.DropHeldItemsBehavior KnockDownBehavior = SharedStandingStateSystem.DropHeldItemsBehavior.AlwaysDrop;
|
public SharedStandingStateSystem.DropHeldItemsBehavior KnockDownBehavior = SharedStandingStateSystem.DropHeldItemsBehavior.AlwaysDrop;
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ using Content.Shared.Popups;
|
|||||||
using Content.Shared._White.Implants.NeuroControl;
|
using Content.Shared._White.Implants.NeuroControl;
|
||||||
using Robust.Shared.Timing;
|
using Robust.Shared.Timing;
|
||||||
using Content.Server.Chat.Systems;
|
using Content.Server.Chat.Systems;
|
||||||
|
using Content.Server._White.Mood;
|
||||||
|
|
||||||
namespace Content.Server._White._Engi.DirectBallsHit;
|
namespace Content.Server._White._Engi.DirectBallsHit;
|
||||||
|
|
||||||
@@ -21,6 +22,7 @@ public sealed class DirectBallsHitSystem : EntitySystem
|
|||||||
[Dependency] private readonly SharedElectrocutionSystem _electrocution = default!;
|
[Dependency] private readonly SharedElectrocutionSystem _electrocution = default!;
|
||||||
[Dependency] private readonly SharedPopupSystem _popupSystem = default!;
|
[Dependency] private readonly SharedPopupSystem _popupSystem = default!;
|
||||||
[Dependency] private readonly ChatSystem _chat = default!;
|
[Dependency] private readonly ChatSystem _chat = default!;
|
||||||
|
[Dependency] private readonly MoodSystem _mood = default!;
|
||||||
|
|
||||||
public override void Initialize()
|
public override void Initialize()
|
||||||
{
|
{
|
||||||
@@ -42,10 +44,15 @@ public sealed class DirectBallsHitSystem : EntitySystem
|
|||||||
|
|
||||||
foreach (var uid in args.HitEntities)
|
foreach (var uid in args.HitEntities)
|
||||||
{
|
{
|
||||||
_popupSystem.PopupEntity(
|
if (TryComp<MoodComponent>(uid, out var mood))
|
||||||
Loc.GetString("direct-balls-hit", ("uid", uid)),
|
{
|
||||||
uid,
|
_popupSystem.PopupEntity(
|
||||||
PopupType.SmallCaution);
|
Loc.GetString("direct-balls-hit", ("uid", uid)),
|
||||||
|
uid,
|
||||||
|
PopupType.SmallCaution);
|
||||||
|
|
||||||
|
_mood.ApplyEffect(uid, mood, "GotHitInTheBalls");
|
||||||
|
}
|
||||||
|
|
||||||
Timer.Spawn(TimeSpan.FromSeconds(0.5f), () => _chat.TryEmoteWithChat(uid, "Scream"));
|
Timer.Spawn(TimeSpan.FromSeconds(0.5f), () => _chat.TryEmoteWithChat(uid, "Scream"));
|
||||||
|
|
||||||
|
|||||||
@@ -41,3 +41,9 @@
|
|||||||
id: MobHighPressure
|
id: MobHighPressure
|
||||||
description: "На меня оказывается огромное давление!"
|
description: "На меня оказывается огромное давление!"
|
||||||
moodChange: enum.MoodChangeLevel.Medium
|
moodChange: enum.MoodChangeLevel.Medium
|
||||||
|
|
||||||
|
- type: moodEffect
|
||||||
|
id: GotHitInTheBalls
|
||||||
|
description: "Господи... Как же больно..."
|
||||||
|
moodChange: enum.MoodChangeLevel.Large
|
||||||
|
timeout: 1
|
||||||
|
|||||||
Reference in New Issue
Block a user