* The all-in-one hacking solution The thinking man's lockpick The iconic EMAG * emagged medbay's stasis bed * left med, emagged sec' apc * went back to chem, emagged the dispenser * emagged the fax while i was there * had a donut while waiting for emag to charge * i broke into the bridge then announced 'mandatory johnson inspection in medical' * get system instead of dependency * feedback * net suggestion Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> * use EnsureComp and import NetworkedComponent --------- Co-authored-by: deltanedas <user@zenith> Co-authored-by: deltanedas <deltanedas@laptop> Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
This commit is contained in:
@@ -10,6 +10,7 @@ using Content.Shared.Bed.Sleep;
|
||||
using Content.Shared.Body.Components;
|
||||
using Content.Shared.Buckle.Components;
|
||||
using Content.Shared.Damage;
|
||||
using Content.Shared.Emag.Components;
|
||||
using Content.Shared.Emag.Systems;
|
||||
using Content.Server.Construction;
|
||||
using Content.Shared.Mobs.Systems;
|
||||
@@ -114,7 +115,7 @@ namespace Content.Server.Bed
|
||||
|
||||
private void OnEmagged(EntityUid uid, StasisBedComponent component, ref GotEmaggedEvent args)
|
||||
{
|
||||
// Repeatable
|
||||
args.Repeatable = true;
|
||||
// Reset any metabolisms first so they receive the multiplier correctly
|
||||
UpdateMetabolisms(uid, component, false);
|
||||
component.Multiplier = 1 / component.Multiplier;
|
||||
@@ -139,7 +140,7 @@ namespace Content.Server.Bed
|
||||
{
|
||||
var metabolismRating = args.PartRatings[component.MachinePartMetabolismModifier];
|
||||
component.Multiplier = component.BaseMultiplier * metabolismRating; //linear scaling so it's not OP
|
||||
if (component.Emagged)
|
||||
if (HasComp<EmaggedComponent>(uid))
|
||||
component.Multiplier = 1f / component.Multiplier;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user