ADAPTATION
This commit is contained in:
@@ -3,16 +3,13 @@ using Content.Shared.Bed.Sleep;
|
||||
using Content.Shared.Damage;
|
||||
using Content.Shared.IdentityManagement;
|
||||
using Content.Shared.Popups;
|
||||
using Content.Shared.StatusEffect;
|
||||
using Content.Shared.StatusEffectNew;
|
||||
|
||||
namespace Content.Shared._CP14.MagicWeakness;
|
||||
|
||||
public abstract class CP14SharedMagicWeaknessSystem : EntitySystem
|
||||
{
|
||||
[ValidatePrototypeId<StatusEffectPrototype>]
|
||||
private const string StatusEffectKey = "ForcedSleep";
|
||||
|
||||
[Dependency] private readonly StatusEffectsSystem _statusEffects = default!;
|
||||
[Dependency] private readonly SharedStatusEffectsSystem _statusEffects = default!;
|
||||
[Dependency] private readonly DamageableSystem _damageable = default!;
|
||||
[Dependency] private readonly SharedPopupSystem _popup = default!;
|
||||
|
||||
@@ -36,10 +33,10 @@ public abstract class CP14SharedMagicWeaknessSystem : EntitySystem
|
||||
ent,
|
||||
ent,
|
||||
PopupType.LargeCaution);
|
||||
_statusEffects.TryAddStatusEffect<ForcedSleepingComponent>(ent,
|
||||
StatusEffectKey,
|
||||
TimeSpan.FromSeconds(ent.Comp.SleepPerEnergy * (float)args.BurnOutEnergy),
|
||||
false);
|
||||
_statusEffects.TryAddStatusEffectDuration(
|
||||
ent,
|
||||
SleepingSystem.StatusEffectForcedSleeping,
|
||||
TimeSpan.FromSeconds(ent.Comp.SleepPerEnergy * (float)args.BurnOutEnergy));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -52,10 +49,10 @@ public abstract class CP14SharedMagicWeaknessSystem : EntitySystem
|
||||
ent,
|
||||
ent,
|
||||
PopupType.LargeCaution);
|
||||
_statusEffects.TryAddStatusEffect<ForcedSleepingComponent>(ent,
|
||||
StatusEffectKey,
|
||||
TimeSpan.FromSeconds(ent.Comp.SleepPerEnergy * (float)args.OverloadEnergy),
|
||||
false);
|
||||
_statusEffects.TryAddStatusEffectDuration(
|
||||
ent,
|
||||
SleepingSystem.StatusEffectForcedSleeping,
|
||||
TimeSpan.FromSeconds(ent.Comp.SleepPerEnergy * (float)args.OverloadEnergy));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user