Fix for [20593] (#20663)
This commit is contained in:
@@ -56,7 +56,7 @@ public sealed partial class BodyPartComponent : Component
|
|||||||
|
|
||||||
foreach (var slotId in Children.Keys)
|
foreach (var slotId in Children.Keys)
|
||||||
{
|
{
|
||||||
temp.Add((ContainerSlot) containerSystem.GetContainer(Owner, slotId));
|
temp.Add((ContainerSlot) containerSystem.GetContainer(Owner, SharedBodySystem.PartSlotContainerIdPrefix+slotId));
|
||||||
}
|
}
|
||||||
|
|
||||||
return temp;
|
return temp;
|
||||||
@@ -73,7 +73,7 @@ public sealed partial class BodyPartComponent : Component
|
|||||||
|
|
||||||
foreach (var slotId in Organs.Keys)
|
foreach (var slotId in Organs.Keys)
|
||||||
{
|
{
|
||||||
temp.Add((ContainerSlot) containerSystem.GetContainer(Owner, slotId));
|
temp.Add((ContainerSlot) containerSystem.GetContainer(Owner, SharedBodySystem.OrganSlotContainerIdPrefix+slotId));
|
||||||
}
|
}
|
||||||
|
|
||||||
return temp;
|
return temp;
|
||||||
|
|||||||
@@ -15,17 +15,17 @@ public abstract partial class SharedBodySystem : EntitySystem
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Container ID prefix for any body parts.
|
/// Container ID prefix for any body parts.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
protected const string PartSlotContainerIdPrefix = "body_part_slot_";
|
public const string PartSlotContainerIdPrefix = "body_part_slot_";
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Container ID for the ContainerSlot on the body entity itself.
|
/// Container ID for the ContainerSlot on the body entity itself.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
protected const string BodyRootContainerId = "body_root_part";
|
public const string BodyRootContainerId = "body_root_part";
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Container ID prefix for any body organs.
|
/// Container ID prefix for any body organs.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
protected const string OrganSlotContainerIdPrefix = "body_organ_slot_";
|
public const string OrganSlotContainerIdPrefix = "body_organ_slot_";
|
||||||
|
|
||||||
[Dependency] protected readonly IPrototypeManager Prototypes = default!;
|
[Dependency] protected readonly IPrototypeManager Prototypes = default!;
|
||||||
[Dependency] protected readonly DamageableSystem Damageable = default!;
|
[Dependency] protected readonly DamageableSystem Damageable = default!;
|
||||||
|
|||||||
Reference in New Issue
Block a user