expedition rewards (#16972)

Co-authored-by: deltanedas <@deltanedas:kde.org>
Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
This commit is contained in:
deltanedas
2023-06-16 05:19:02 +00:00
committed by GitHub
parent f7e4a69b65
commit b9f24b2681
19 changed files with 845 additions and 1582 deletions

View File

@@ -1,6 +1,8 @@
using Content.Shared.Random;
using Content.Shared.Salvage;
using Robust.Shared.Audio;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
namespace Content.Server.Salvage.Expeditions;
@@ -27,7 +29,7 @@ public sealed class SalvageExpeditionComponent : Component
/// <summary>
/// Station whose mission this is.
/// </summary>
[ViewVariables, DataField("station")]
[DataField("station")]
public EntityUid Station;
[ViewVariables] public bool Completed = false;
@@ -48,6 +50,12 @@ public sealed class SalvageExpeditionComponent : Component
{
Params = AudioParams.Default.WithVolume(-15),
};
/// <summary>
/// The difficulty this mission had or, in the future, was selected.
/// </summary>
[ViewVariables(VVAccess.ReadWrite), DataField("difficulty")]
public DifficultyRating Difficulty;
}
public enum ExpeditionStage : byte