51 lines
2.0 KiB
C#
51 lines
2.0 KiB
C#
using Robust.Shared.Prototypes;
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
|
|
|
namespace Content.Server.RatKing
|
|
{
|
|
[RegisterComponent]
|
|
public sealed partial class RatKingComponent : Component
|
|
{
|
|
[DataField("actionRaiseArmy", customTypeSerializer: typeof(PrototypeIdSerializer<EntityPrototype>))]
|
|
public string ActionRaiseArmy = "ActionRatKingRaiseArmy";
|
|
|
|
/// <summary>
|
|
/// The action for the Raise Army ability
|
|
/// </summary>
|
|
[DataField("actionRaiseArmyEntity")] public EntityUid? ActionRaiseArmyEntity;
|
|
|
|
/// <summary>
|
|
/// The amount of hunger one use of Raise Army consumes
|
|
/// </summary>
|
|
[ViewVariables(VVAccess.ReadWrite), DataField("hungerPerArmyUse", required: true)]
|
|
public float HungerPerArmyUse = 25f;
|
|
|
|
/// <summary>
|
|
/// The entity prototype of the mob that Raise Army summons
|
|
/// </summary>
|
|
[ViewVariables(VVAccess.ReadWrite), DataField("armyMobSpawnId", customTypeSerializer: typeof(PrototypeIdSerializer<EntityPrototype>))]
|
|
public string ArmyMobSpawnId = "MobRatServant";
|
|
|
|
[DataField("actionDomain", customTypeSerializer: typeof(PrototypeIdSerializer<EntityPrototype>))]
|
|
public string ActionDomain = "ActionRatKingDomain";
|
|
|
|
/// <summary>
|
|
/// The action for the Domain ability
|
|
/// </summary>
|
|
[DataField("actionDomainEntity")]
|
|
public EntityUid? ActionDomainEntity;
|
|
|
|
/// <summary>
|
|
/// The amount of hunger one use of Domain consumes
|
|
/// </summary>
|
|
[ViewVariables(VVAccess.ReadWrite), DataField("hungerPerDomainUse", required: true)]
|
|
public float HungerPerDomainUse = 50f;
|
|
|
|
/// <summary>
|
|
/// How many moles of Miasma are released after one us of Domain
|
|
/// </summary>
|
|
[DataField("molesMiasmaPerDomain")]
|
|
public float MolesMiasmaPerDomain = 100f;
|
|
}
|
|
}
|