Zombie Rework & Polymorph Expansion (#8413)
Co-authored-by: Kara <lunarautomaton6@gmail.com> Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
This commit is contained in:
@@ -53,11 +53,28 @@ namespace Content.Shared.Polymorph
|
||||
public bool Forced = false;
|
||||
|
||||
/// <summary>
|
||||
/// Whether or not the target will drop their inventory
|
||||
/// when they are polymorphed (includes items in hands)
|
||||
/// Whether or not the entity transfers its damage between forms.
|
||||
/// </summary>
|
||||
[DataField("dropInventory", serverOnly: true)]
|
||||
public bool DropInventory = false;
|
||||
[DataField("transferDamage", serverOnly: true)]
|
||||
public bool TransferDamage = true;
|
||||
|
||||
/// <summary>
|
||||
/// Whether or not the entity transfers its name between forms.
|
||||
/// </summary>
|
||||
[DataField("transferName", serverOnly: true)]
|
||||
public bool TransferName = false;
|
||||
|
||||
/// <summary>
|
||||
/// Whether or not the entity transfers its hair, skin color, hair color, etc.
|
||||
/// </summary>
|
||||
[DataField("transferHumanoidAppearance", serverOnly: true)]
|
||||
public bool TransferHumanoidAppearance = false;
|
||||
|
||||
/// <summary>
|
||||
/// Whether or not the entity transfers its inventory and equipment between forms.
|
||||
/// </summary>
|
||||
[DataField("inventory", serverOnly: true)]
|
||||
public PolymorphInventoryChange Inventory = PolymorphInventoryChange.None;
|
||||
|
||||
/// <summary>
|
||||
/// Whether or not the polymorph reverts when the entity goes into crit.
|
||||
@@ -71,4 +88,11 @@ namespace Content.Shared.Polymorph
|
||||
[DataField("revertOnDeath", serverOnly: true)]
|
||||
public bool RevertOnDeath = true;
|
||||
}
|
||||
|
||||
public enum PolymorphInventoryChange : byte
|
||||
{
|
||||
None,
|
||||
Drop,
|
||||
Transfer,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user