Fix missing import and damage change

This commit is contained in:
Debug 2024-01-28 00:26:00 +01:00
parent acfbdc267b
commit 777b074fed
No known key found for this signature in database
GPG Key ID: 271270A74EF9C350
2 changed files with 4 additions and 3 deletions

View File

@ -33,7 +33,8 @@ using Robust.Shared.Containers;
using Robust.Shared.Physics.Components;
using Robust.Shared.Prototypes;
using Robust.Shared.Random;
using Content.Server.Psionics; //Nyano - Summary: allows the potential psionic ability to be written to the character.
using Content.Server.Psionics;
using Content.Server.Traits.Assorted; //Nyano - Summary: allows the potential psionic ability to be written to the character.
namespace Content.Server.Cloning
{
@ -227,7 +228,7 @@ namespace Content.Server.Cloning
var mob = Spawn(speciesPrototype.Prototype, Transform(uid).MapPosition);
_humanoidSystem.CloneAppearance(bodyToClone, mob);
///Nyano - Summary: adds the potential psionic trait to the reanimated mob.
///Nyano - Summary: adds the potential psionic trait to the reanimated mob.
EnsureComp<PotentialPsionicComponent>(mob);
var ev = new CloningEvent(bodyToClone, mob);

View File

@ -223,7 +223,7 @@ public sealed partial class DeepFryerSystem : SharedDeepfryerSystem
CookingDamageAmount);
var result = _damageableSystem.TryChangeDamage(item, damage, origin: uid);
if (result?.Total > FixedPoint2.Zero)
if (result?.GetTotal() > FixedPoint2.Zero)
{
// TODO: Smoke, waste, sound, or some indication.
}