Cloning Refactor and bugfixes (#35555)
* cloning refactor * cleanup and fixes * don't pick from 0 * give dwarves the correct species * fix dna and bloodstream reagent data cloning * don't copy helmets * be less redundant
This commit is contained in:
13
Content.Shared/Cloning/CloningEvents.cs
Normal file
13
Content.Shared/Cloning/CloningEvents.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
namespace Content.Shared.Cloning.Events;
|
||||
|
||||
/// <summary>
|
||||
/// Raised before a mob is cloned. Cancel to prevent cloning.
|
||||
/// </summary>
|
||||
[ByRefEvent]
|
||||
public record struct CloningAttemptEvent(CloningSettingsPrototype Settings, bool Cancelled = false);
|
||||
|
||||
/// <summary>
|
||||
/// Raised after a new mob got spawned when cloning a humanoid.
|
||||
/// </summary>
|
||||
[ByRefEvent]
|
||||
public record struct CloningEvent(CloningSettingsPrototype Settings, EntityUid CloneUid);
|
||||
Reference in New Issue
Block a user