add special job components back when cloning (#11045)
This commit is contained in:
@@ -22,6 +22,7 @@ using Content.Server.Fluids.EntitySystems;
|
|||||||
using Content.Server.Chat.Systems;
|
using Content.Server.Chat.Systems;
|
||||||
using Content.Server.Construction.Components;
|
using Content.Server.Construction.Components;
|
||||||
using Content.Server.Stack;
|
using Content.Server.Stack;
|
||||||
|
using Content.Server.Jobs;
|
||||||
using Robust.Server.GameObjects;
|
using Robust.Server.GameObjects;
|
||||||
using Robust.Server.Containers;
|
using Robust.Server.Containers;
|
||||||
using Robust.Server.Player;
|
using Robust.Server.Player;
|
||||||
@@ -233,6 +234,19 @@ namespace Content.Server.Cloning.Systems
|
|||||||
_euiManager.OpenEui(new AcceptCloningEui(mind, this), client);
|
_euiManager.OpenEui(new AcceptCloningEui(mind, this), client);
|
||||||
|
|
||||||
AddComp<ActiveCloningPodComponent>(uid);
|
AddComp<ActiveCloningPodComponent>(uid);
|
||||||
|
|
||||||
|
// TODO: Ideally, components like this should be on a mind entity so this isn't neccesary.
|
||||||
|
// Remove this when 'mind entities' are added.
|
||||||
|
// Add on special job components to the mob.
|
||||||
|
if (mind.CurrentJob != null)
|
||||||
|
{
|
||||||
|
foreach (var special in mind.CurrentJob.Prototype.Special)
|
||||||
|
{
|
||||||
|
if (special.GetType() == typeof(AddComponentSpecial))
|
||||||
|
special.AfterEquip(mob);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user