Я скучаю так очень, забери меня срочно
This commit is contained in:
@@ -16,7 +16,7 @@ public abstract class SharedInjectorSystem : EntitySystem
|
||||
/// <summary>
|
||||
/// Default transfer amounts for the set-transfer verb.
|
||||
/// </summary>
|
||||
public static readonly FixedPoint2[] TransferAmounts = [1, 5, 10, 15];
|
||||
public static readonly FixedPoint2[] TransferAmounts = { 1, 5, 10, 15 };
|
||||
|
||||
[Dependency] protected readonly SharedPopupSystem Popup = default!;
|
||||
[Dependency] protected readonly SharedSolutionContainerSystem SolutionContainers = default!;
|
||||
|
||||
@@ -11,9 +11,9 @@ public abstract partial class SharedPuddleSystem
|
||||
[ValidatePrototypeId<ReagentPrototype>]
|
||||
private const string HolyWater = "Holywater";
|
||||
|
||||
public static readonly string[] EvaporationReagents = [Water, HolyWater];
|
||||
public static readonly string[] EvaporationReagents = { Water, HolyWater };
|
||||
|
||||
public bool CanFullyEvaporate(Solution solution)
|
||||
public bool CanFullyEvaporate(Solution solution)
|
||||
{
|
||||
return solution.GetTotalPrototypeQuantity(EvaporationReagents) == solution.Volume;
|
||||
}
|
||||
|
||||
@@ -106,7 +106,7 @@ public sealed partial class SpeciesPrototype : IPrototype
|
||||
public SpeciesNaming Naming { get; private set; } = SpeciesNaming.FirstLast;
|
||||
|
||||
[DataField]
|
||||
public List<Sex> Sexes { get; private set; } = [Sex.Male, Sex.Female];
|
||||
public List<Sex> Sexes { get; private set; } = new() { Sex.Male, Sex.Female };
|
||||
|
||||
/// <summary>
|
||||
/// Characters younger than this are too young to be hired by Nanotrasen.
|
||||
|
||||
@@ -87,8 +87,8 @@ namespace Content.Shared.Preferences
|
||||
|
||||
/// <summary>Copy constructor</summary>
|
||||
private HumanoidCharacterProfile(HumanoidCharacterProfile other) : this(other,
|
||||
new Dictionary<string, JobPriority>(other.JobPriorities), [..other.AntagPreferences],
|
||||
[..other.TraitPreferences])
|
||||
new Dictionary<string, JobPriority>(other.JobPriorities), new List<string>(other.AntagPreferences),
|
||||
new List<string>(other.TraitPreferences))
|
||||
{
|
||||
}
|
||||
|
||||
@@ -114,7 +114,7 @@ namespace Content.Shared.Preferences
|
||||
IReadOnlyList<string> traitPreferences)
|
||||
: this(name, clownName, mimeName, borgName, flavortext, species, age, sex, voice, gender, bodyType,
|
||||
appearance, clothing, backpack, spawnPriority, new Dictionary<string, JobPriority>(jobPriorities),
|
||||
preferenceUnavailable, [..antagPreferences], [..traitPreferences])
|
||||
preferenceUnavailable, new List<string>(antagPreferences), new List<string>(traitPreferences))
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ public sealed partial class JukeboxComponent : Component
|
||||
public Container TapeContainer = default!;
|
||||
|
||||
[DataField]
|
||||
public List<string> DefaultTapes = [];
|
||||
public List<string> DefaultTapes = new() { };
|
||||
|
||||
[ViewVariables(VVAccess.ReadOnly)]
|
||||
public Container DefaultSongsContainer = default!;
|
||||
@@ -104,7 +104,7 @@ public sealed class JukeboxStopPlaying : EntityEventArgs
|
||||
public sealed class JukeboxSongUploadRequest : EntityEventArgs
|
||||
{
|
||||
public string SongName = string.Empty;
|
||||
public List<byte> SongBytes = [];
|
||||
public List<byte> SongBytes = new() { };
|
||||
public NetEntity TapeCreatorUid = default!;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user