Stuff (#874)
@@ -9,10 +9,10 @@ public sealed partial class DirectBallsHitComponent : Component
|
||||
public TimeSpan KnockdownTime = TimeSpan.FromSeconds(2.0f);
|
||||
|
||||
[DataField]
|
||||
public TimeSpan JitterTime = TimeSpan.FromSeconds(2.0f);
|
||||
public TimeSpan JitterTime = TimeSpan.FromSeconds(4.0f);
|
||||
|
||||
[DataField]
|
||||
public TimeSpan StutterTime = TimeSpan.FromSeconds(2.0f);
|
||||
public TimeSpan StutterTime = TimeSpan.FromSeconds(4.0f);
|
||||
|
||||
[DataField]
|
||||
public SharedStandingStateSystem.DropHeldItemsBehavior KnockDownBehavior = SharedStandingStateSystem.DropHeldItemsBehavior.AlwaysDrop;
|
||||
|
||||
@@ -10,6 +10,7 @@ using Content.Shared.Popups;
|
||||
using Content.Shared._White.Implants.NeuroControl;
|
||||
using Robust.Shared.Timing;
|
||||
using Content.Server.Chat.Systems;
|
||||
using Content.Server._White.Mood;
|
||||
|
||||
namespace Content.Server._White._Engi.DirectBallsHit;
|
||||
|
||||
@@ -21,6 +22,7 @@ public sealed class DirectBallsHitSystem : EntitySystem
|
||||
[Dependency] private readonly SharedElectrocutionSystem _electrocution = default!;
|
||||
[Dependency] private readonly SharedPopupSystem _popupSystem = default!;
|
||||
[Dependency] private readonly ChatSystem _chat = default!;
|
||||
[Dependency] private readonly MoodSystem _mood = default!;
|
||||
|
||||
public override void Initialize()
|
||||
{
|
||||
@@ -42,10 +44,15 @@ public sealed class DirectBallsHitSystem : EntitySystem
|
||||
|
||||
foreach (var uid in args.HitEntities)
|
||||
{
|
||||
_popupSystem.PopupEntity(
|
||||
Loc.GetString("direct-balls-hit", ("uid", uid)),
|
||||
uid,
|
||||
PopupType.SmallCaution);
|
||||
if (TryComp<MoodComponent>(uid, out var mood))
|
||||
{
|
||||
_popupSystem.PopupEntity(
|
||||
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"));
|
||||
|
||||
|
||||
@@ -136,7 +136,7 @@ public sealed class HungerSystem : EntitySystem
|
||||
return;
|
||||
|
||||
//WD start
|
||||
if (_net.IsServer && component.CurrentThreshold != HungerThreshold.Overfed)
|
||||
if (_net.IsServer)
|
||||
{
|
||||
var ev = new MoodEffectEvent("Hunger" + component.CurrentThreshold);
|
||||
RaiseLocalEvent(uid, ev);
|
||||
|
||||
@@ -10,6 +10,7 @@ using Robust.Shared.Random;
|
||||
using Robust.Shared.Timing;
|
||||
using Content.Shared._White.Mood;
|
||||
using Robust.Shared.Utility;
|
||||
using Robust.Shared.Network;
|
||||
|
||||
namespace Content.Shared.Nutrition.EntitySystems;
|
||||
|
||||
@@ -22,6 +23,7 @@ public sealed class ThirstSystem : EntitySystem
|
||||
[Dependency] private readonly AlertsSystem _alerts = default!;
|
||||
[Dependency] private readonly MovementSpeedModifierSystem _movement = default!;
|
||||
[Dependency] private readonly SharedJetpackSystem _jetpack = default!;
|
||||
[Dependency] private readonly INetManager _net = default!; // WD edit
|
||||
|
||||
[ValidatePrototypeId<StatusIconPrototype>]
|
||||
private const string ThirstIconOverhydratedId = "ThirstIconOverhydrated";
|
||||
@@ -65,7 +67,7 @@ public sealed class ThirstSystem : EntitySystem
|
||||
UpdateEffects(uid, component);
|
||||
|
||||
TryComp(uid, out MovementSpeedModifierComponent? moveMod);
|
||||
_movement.RefreshMovementSpeedModifiers(uid, moveMod);
|
||||
_movement.RefreshMovementSpeedModifiers(uid, moveMod);
|
||||
}
|
||||
|
||||
private void OnRefreshMovespeed(EntityUid uid, ThirstComponent component, RefreshMovementSpeedModifiersEvent args)
|
||||
@@ -172,7 +174,7 @@ public sealed class ThirstSystem : EntitySystem
|
||||
}
|
||||
|
||||
// WD start
|
||||
if (component.CurrentThirstThreshold != ThirstThreshold.OverHydrated)
|
||||
if (_net.IsServer)
|
||||
{
|
||||
var ev = new MoodEffectEvent("Thirst" + component.CurrentThirstThreshold);
|
||||
RaiseLocalEvent(uid, ev);
|
||||
|
||||
@@ -7,3 +7,5 @@ generic-reagent-effect-tearing-up = Ваши глаза начинают сле
|
||||
generic-reagent-effect-nauseous = Вы чувствуете тошноту.
|
||||
generic-reagent-effect-parched = У вас першит в горле.
|
||||
generic-reagent-effect-thirsty = Вы чувствуете жажду.
|
||||
generic-reagent-effect-sick = Вы чувствуете себя плохо после употребления этого...
|
||||
generic-reagent-effect-slicing-insides = Вы чувствуете невероятно острую боль в животе!
|
||||
|
||||
@@ -17,14 +17,12 @@
|
||||
- !type:SpeciesRequirement
|
||||
species:
|
||||
- Human
|
||||
- Felinid
|
||||
weight: 10
|
||||
icon: "JobIconInspector"
|
||||
arrivalNotificationPrototype: InspectorArrivalNotification
|
||||
supervisors: job-supervisors-captain
|
||||
whitelistedSpecies:
|
||||
- Human
|
||||
- Felinid
|
||||
canBeAntag: true
|
||||
access:
|
||||
- Service
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
- type: Spillable
|
||||
solution: beaker
|
||||
- type: StaticPrice
|
||||
price: 150
|
||||
price: 15
|
||||
- type: Label
|
||||
originalName: химический картридж
|
||||
- type: Tag
|
||||
|
||||
@@ -347,7 +347,7 @@
|
||||
- type: MeleeWeapon
|
||||
soundHit:
|
||||
path: /Audio/White/Items/hit/chainhit.ogg
|
||||
range: 1.5
|
||||
range: 2
|
||||
attackRate: 0.5
|
||||
damage:
|
||||
types:
|
||||
|
||||
@@ -41,3 +41,9 @@
|
||||
id: MobHighPressure
|
||||
description: "На меня оказывается огромное давление!"
|
||||
moodChange: enum.MoodChangeLevel.Medium
|
||||
|
||||
- type: moodEffect
|
||||
id: GotHitInTheBalls
|
||||
description: "Господи... Как же больно..."
|
||||
moodChange: enum.MoodChangeLevel.Large
|
||||
timeout: 1
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
#Hunger
|
||||
- type: moodEffect
|
||||
id: HungerOverfed
|
||||
description: "Во мне столько жира..."
|
||||
moodChange: enum.MoodChangeLevel.Small
|
||||
description: "Мой желудок полон!"
|
||||
moodChange: enum.MoodChangeLevel.Medium
|
||||
positive: true
|
||||
category: "Hunger"
|
||||
|
||||
- type: moodEffect
|
||||
@@ -24,11 +25,18 @@
|
||||
moodChange: enum.MoodChangeLevel.Big
|
||||
category: "Hunger"
|
||||
|
||||
- type: moodEffect
|
||||
id: HungerDead
|
||||
description: "Умираю от голода!"
|
||||
moodChange: enum.MoodChangeLevel.Huge
|
||||
category: "Hunger"
|
||||
|
||||
#Thirst
|
||||
- type: moodEffect
|
||||
id: ThirstOverHydrated
|
||||
description: "СЛИШКОМ МНОГО ВОДЫ..."
|
||||
moodChange: enum.MoodChangeLevel.Small
|
||||
description: "Не хочу пить."
|
||||
moodChange: enum.MoodChangeLevel.Medium
|
||||
positive: true
|
||||
category: "Thirst"
|
||||
|
||||
- type: moodEffect
|
||||
@@ -46,10 +54,16 @@
|
||||
|
||||
- type: moodEffect
|
||||
id: ThirstParched
|
||||
description: "ВОДЫ!"
|
||||
description: "Хочу пить!"
|
||||
moodChange: enum.MoodChangeLevel.Big
|
||||
category: "Thirst"
|
||||
|
||||
- type: moodEffect
|
||||
id: ThirstDead
|
||||
description: "Умираю от жажды!"
|
||||
moodChange: enum.MoodChangeLevel.Huge
|
||||
category: "Thirst"
|
||||
|
||||
#Health
|
||||
- type: moodEffect
|
||||
id: HealthNoDamage
|
||||
|
||||
|
Before Width: | Height: | Size: 375 B After Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 293 B After Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 276 B After Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 277 B After Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 258 B After Width: | Height: | Size: 1.8 KiB |