* simple currency comp * stack support + weapon cost dnd port * add collect currency objective conditions * clean up
27 lines
702 B
C#
27 lines
702 B
C#
using Content.Server._CP14.Objectives.Systems;
|
|
using Robust.Shared.Utility;
|
|
|
|
namespace Content.Server._CP14.Objectives.Components;
|
|
|
|
[RegisterComponent, Access(typeof(CP14CurrencyCollectConditionSystem))]
|
|
public sealed partial class CP14CurrencyCollectConditionComponent : Component
|
|
{
|
|
[DataField]
|
|
public int Currency = 1000;
|
|
|
|
/// <summary>
|
|
/// Limits the goal to collecting values from a specific category.
|
|
/// </summary>
|
|
[DataField]
|
|
public string? Category;
|
|
|
|
[DataField(required: true)]
|
|
public LocId ObjectiveText;
|
|
|
|
[DataField(required: true)]
|
|
public LocId ObjectiveDescription;
|
|
|
|
[DataField(required: true)]
|
|
public SpriteSpecifier ObjectiveSprite;
|
|
}
|