Inline Description

This commit is contained in:
Vera Aguilera Puerto
2021-12-03 11:15:12 +01:00
parent 70bbd8c502
commit f06bfc22ce
9 changed files with 16 additions and 11 deletions

View File

@@ -2,6 +2,7 @@ using Content.Server.Chemistry.Components.SolutionManager;
using Content.Shared.Chemistry.Reagent;
using Robust.Server.GameObjects;
using Robust.Shared.GameObjects;
using Robust.Shared.IoC;
using Robust.Shared.Utility;
namespace Content.Server.Chemistry.Components
@@ -29,7 +30,7 @@ namespace Content.Server.Chemistry.Components
}
InitialName = Owner.Name;
InitialDescription = Owner.Description;
InitialDescription = IoCManager.Resolve<IEntityManager>().GetComponent<MetaDataComponent>(Owner.Uid).EntityDescription;
}
protected override void Startup()

View File

@@ -57,7 +57,7 @@ namespace Content.Server.Chemistry.EntitySystems
}
ownerEntity.Name = proto.Name + " glass";
ownerEntity.Description = proto.Description;
IoCManager.Resolve<IEntityManager>().GetComponent<MetaDataComponent>(ownerEntity.Uid).EntityDescription = proto.Description;
component.CurrentReagent = proto;
component.Transformed = true;
}
@@ -75,7 +75,7 @@ namespace Content.Server.Chemistry.EntitySystems
}
component.Owner.Name = component.InitialName;
component.Owner.Description = component.InitialDescription;
IoCManager.Resolve<IEntityManager>().GetComponent<MetaDataComponent>(component.Owner.Uid).EntityDescription = component.InitialDescription;
}
}
}