Files
crystall-punk-14/Content.Server/RatKing/RatKingComponent.cs
2022-08-13 22:38:40 -07:00

55 lines
2.2 KiB
C#

using Content.Shared.Actions.ActionTypes;
using Content.Shared.Dataset;
using Content.Shared.Disease;
using Robust.Shared.Prototypes;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
namespace Content.Server.RatKing
{
[RegisterComponent]
public sealed class RatKingComponent : Component
{
/// <summary>
/// The action for the Raise Army ability
/// </summary>
[DataField("actionRaiseArmy", required: true)]
public InstantAction ActionRaiseArmy = new();
/// <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";
/// <summary>
/// The action for the Domain ability
/// </summary>
[ViewVariables, DataField("actionDomain", required: true)]
public InstantAction ActionDomain = new();
/// <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>
[ViewVariables, DataField("molesMiasmaPerDomain")]
public float MolesMiasmaPerDomain = 100f;
// Both of these are used to generate the random name for rat king.
[DataField("titleNameDataset", customTypeSerializer: typeof(PrototypeIdSerializer<DatasetPrototype>))]
public string TitleNameDataset = "RegalRatNameTitle";
[DataField("kingdomNameDataset", customTypeSerializer: typeof(PrototypeIdSerializer<DatasetPrototype>))]
public string KingdomNameDataset = "RegalRatNameKingdom";
}
};