Inline UID
This commit is contained in:
@@ -114,9 +114,9 @@ public class LungSystem : EntitySystem
|
||||
EntityManager.TryGetComponent(mech.Body.OwnerUid, out InternalsComponent? internals) &&
|
||||
internals.BreathToolEntity != null &&
|
||||
internals.GasTankEntity != null &&
|
||||
IoCManager.Resolve<IEntityManager>().TryGetComponent(internals.BreathToolEntity.Uid, out BreathToolComponent? breathTool) &&
|
||||
IoCManager.Resolve<IEntityManager>().TryGetComponent(internals.BreathToolEntity, out BreathToolComponent? breathTool) &&
|
||||
breathTool.IsFunctional &&
|
||||
IoCManager.Resolve<IEntityManager>().TryGetComponent(internals.GasTankEntity.Uid, out GasTankComponent? gasTank))
|
||||
IoCManager.Resolve<IEntityManager>().TryGetComponent(internals.GasTankEntity, out GasTankComponent? gasTank))
|
||||
{
|
||||
TakeGasFrom(uid, frameTime, gasTank.RemoveAirVolume(Atmospherics.BreathVolume), lung);
|
||||
return;
|
||||
|
||||
@@ -165,7 +165,7 @@ namespace Content.Server.Body.Systems
|
||||
{
|
||||
var entity = EntityManager.GetEntity(args.SolutionEntity);
|
||||
_logSystem.Add(LogType.ReagentEffect, effect.LogImpact,
|
||||
$"Metabolism effect {effect.GetType().Name} of reagent {args.Reagent.Name:reagent} applied on entity {entity} at {IoCManager.Resolve<IEntityManager>().GetComponent<TransformComponent>(entity.Uid).Coordinates}");
|
||||
$"Metabolism effect {effect.GetType().Name} of reagent {args.Reagent.Name:reagent} applied on entity {entity} at {IoCManager.Resolve<IEntityManager>().GetComponent<TransformComponent>(entity).Coordinates}");
|
||||
}
|
||||
|
||||
effect.Effect(args);
|
||||
|
||||
Reference in New Issue
Block a user