Emaggable vendors + Familiars for Chaplain (#6961)
This commit is contained in:
23
Content.Server/Bible/Components/SummonableComponent.cs
Normal file
23
Content.Server/Bible/Components/SummonableComponent.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
||||
using Robust.Shared.Prototypes;
|
||||
|
||||
namespace Content.Server.Bible.Components
|
||||
{
|
||||
/// <summary>
|
||||
/// This lets you summon a mob or item with an alternative verb on the item
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
public sealed class SummonableComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// Used for a special item only the Chaplain can summon. Usually a mob, but supports regular items too.
|
||||
/// </summary>
|
||||
[DataField("specialItem", customTypeSerializer: typeof(PrototypeIdSerializer<EntityPrototype>))]
|
||||
public string? SpecialItemPrototype = null;
|
||||
public bool AlreadySummoned = false;
|
||||
|
||||
[DataField("requriesBibleUser")]
|
||||
public bool RequiresBibleUser = true;
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user