2024-10-31 19:13:44 +03:00
|
|
|
using Content.Shared._CP14.Demiplane.Prototypes;
|
|
|
|
|
using Robust.Shared.Prototypes;
|
|
|
|
|
|
|
|
|
|
namespace Content.Server._CP14.Demiplane.Components;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2025-05-05 15:19:44 +03:00
|
|
|
/// Fills the DemiplaneDataComponent with random modifiers and location
|
2024-10-31 19:13:44 +03:00
|
|
|
/// </summary>
|
|
|
|
|
[RegisterComponent, Access(typeof(CP14DemiplaneSystem))]
|
2025-05-05 15:19:44 +03:00
|
|
|
public sealed partial class CP14DemiplaneRandomGeneratorComponent : Component
|
2024-10-31 19:13:44 +03:00
|
|
|
{
|
|
|
|
|
[DataField]
|
2025-05-05 15:19:44 +03:00
|
|
|
public bool OverrideLocation = false;
|
2024-11-01 18:08:57 +03:00
|
|
|
|
2024-12-16 00:38:29 +03:00
|
|
|
/// <summary>
|
2025-03-19 12:52:37 +03:00
|
|
|
/// Demiplane Difficulty Level. By design, the plan so far is for a framework of 1 to 10, but technically could support more.
|
2024-12-16 00:38:29 +03:00
|
|
|
/// </summary>
|
|
|
|
|
[DataField(required: true)]
|
2025-03-19 12:52:37 +03:00
|
|
|
public int Level = 1;
|
2024-11-01 18:08:57 +03:00
|
|
|
|
2024-12-16 00:38:29 +03:00
|
|
|
[DataField(required: true)]
|
2025-02-02 15:30:34 +03:00
|
|
|
public Dictionary<ProtoId<CP14DemiplaneModifierCategoryPrototype>, float> Limits = new();
|
2024-10-31 19:13:44 +03:00
|
|
|
}
|