Class PolymorphPrototype
Polymorphs generally describe any type of transformation that can be applied to an entity.
Inheritance
System.Object
PolymorphPrototype
Implements
Robust.Shared.Prototypes.IPrototype
Robust.Shared.Prototypes.IInheritingPrototype
Assembly: Content.Shared.dll
Syntax
public sealed class PolymorphPrototype : object, IPrototype, IInheritingPrototype
Fields
|
Improve this Doc
View Source
AllowRepeatedMorphs
Declaration
public bool AllowRepeatedMorphs
Field Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Delay
The delay between the polymorph's uses in seconds
Slightly weird as of right now.
Declaration
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Duration
The duration of the transformation in seconds
can be null if there is not one
Declaration
Field Value
Type |
Description |
System.Nullable<System.Int32> |
|
|
Improve this Doc
View Source
Entity
What entity the polymorph will turn the target into
must be in here because it makes no sense if it isn't
Declaration
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Forced
whether or not the target can transform as will
set to true for things like polymorph spells and curses
Declaration
Field Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Inventory
Whether or not the entity transfers its inventory and equipment between forms.
Declaration
public PolymorphInventoryChange Inventory
Field Value
|
Improve this Doc
View Source
RevertOnCrit
Whether or not the polymorph reverts when the entity goes into crit.
Declaration
Field Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
RevertOnDeath
Whether or not the polymorph reverts when the entity dies.
Declaration
public bool RevertOnDeath
Field Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
RevertOnEat
Whether or not the polymorph reverts when the entity is eaten or fully sliced.
Declaration
Field Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
TransferDamage
Whether or not the entity transfers its damage between forms.
Declaration
public bool TransferDamage
Field Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
TransferHumanoidAppearance
Whether or not the entity transfers its hair, skin color, hair color, etc.
Declaration
public bool TransferHumanoidAppearance
Field Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
TransferName
Whether or not the entity transfers its name between forms.
Declaration
Field Value
Type |
Description |
System.Boolean |
|
Properties
|
Improve this Doc
View Source
Abstract
Declaration
public bool Abstract { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
ID
Declaration
public string ID { get; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Name
Declaration
public string Name { get; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Parents
Declaration
public string[] Parents { get; }
Property Value
Type |
Description |
System.String[] |
|
Implements
Robust.Shared.Prototypes.IPrototype
Robust.Shared.Prototypes.IInheritingPrototype