* base

* remove redudant shit

* implement needed

* doc

* manager

* Commands

* Update AspectManager.cs

* oops, hardcoded!

* fix

* похуй

* да похуй

* увфывфывфывфыв

* Update AspectManager.cs

* RandomAccentAspect

* avoid repeating

* FastAndFuriousAccent

* Update Aspects.yml

* Update FastandFuriousAspect.cs

* RandomAppearanceAspect

* helpers and some shit

* Bombassssssss

* DrunkAspect

* CargoRich

* TraitoredAspect

* require info and feature to force aspect

* add exec only in lobby

* deforce command

* Update TraitoredAspect.cs

* Prepare for Bloody and Weak Aspects.

* comments

* WeakWallsAspect

* tweak

* NoEngineAspect

* airunlock aspect

* BloodyAspect

* WeakAspect

* BattledAspect

* I Have Two Butts But I must Seat

* веса

* Update WhiteCVars.cs
This commit is contained in:
rhailrake
2023-09-17 18:51:42 +06:00
committed by Aviu00
parent 015bb02e86
commit 6db5d91e1c
52 changed files with 1902 additions and 9 deletions

View File

@@ -8,6 +8,8 @@ using Content.Shared.Mobs.Components;
using Content.Shared.Mobs.Systems;
using Content.Shared.Radiation.Events;
using Content.Shared.Rejuvenate;
using Content.Shared.White;
using Robust.Shared.Configuration;
using Robust.Shared.GameStates;
using Robust.Shared.Network;
using Robust.Shared.Prototypes;
@@ -22,6 +24,12 @@ namespace Content.Shared.Damage
[Dependency] private readonly SharedAppearanceSystem _appearance = default!;
[Dependency] private readonly INetManager _netMan = default!;
[Dependency] private readonly MobThresholdSystem _mobThreshold = default!;
[Dependency] private readonly IConfigurationManager _cfg = default!;
private float DamageGetModifier { get; set; }
private void SetDamage(float value) => DamageGetModifier = value;
private EntityQuery<AppearanceComponent> _appearanceQuery;
private EntityQuery<DamageableComponent> _damageableQuery;
@@ -29,6 +37,8 @@ namespace Content.Shared.Damage
public override void Initialize()
{
_cfg.OnValueChanged(WhiteCVars.DamageGetModifier, SetDamage, true);
SubscribeLocalEvent<DamageableComponent, ComponentInit>(DamageableInit);
SubscribeLocalEvent<DamageableComponent, ComponentHandleState>(DamageableHandleState);
SubscribeLocalEvent<DamageableComponent, ComponentGetState>(DamageableGetState);
@@ -139,6 +149,7 @@ namespace Content.Shared.Damage
return damage;
}
damage *= DamageGetModifier;
var before = new BeforeDamageChangedEvent(damage, origin);
RaiseLocalEvent(uid.Value, ref before);