Fix some lathe recipes (#5941)

This commit is contained in:
Leon Friedrich
2021-12-30 03:19:49 +13:00
committed by GitHub
parent 88bdf0ce61
commit 2a7c84a8dd
11 changed files with 35 additions and 27 deletions

View File

@@ -34,7 +34,7 @@ namespace Content.Shared.Research.Prototypes
[DataField("completetime")]
private int _completeTime = 2500;
[DataField("materials", customTypeSerializer:typeof(PrototypeIdDictionarySerializer<int, MaterialPrototype>))]
[DataField("materials", customTypeSerializer: typeof(PrototypeIdDictionarySerializer<int, MaterialPrototype>))]
private Dictionary<string, int> _requiredMaterials = new();
/// <summary>

View File

@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using Robust.Shared.Prototypes;
using Robust.Shared.Serialization;
@@ -49,15 +49,14 @@ namespace Content.Shared.Research.Prototypes
/// <summary>
/// A list of technology IDs required to unlock this technology.
/// </summary>
[ViewVariables]
[DataField("requiredTechnologies")]
[DataField("requiredTechnologies", customTypeSerializer: typeof(PrototypeIdListSerializer<TechnologyPrototype>))]
public List<string> RequiredTechnologies { get; } = new();
/// <summary>
/// A list of recipe IDs this technology unlocks.
/// </summary>
[ViewVariables]
[DataField("unlockedRecipes", customTypeSerializer:typeof(PrototypeIdListSerializer<EntityPrototype>))]
[DataField("unlockedRecipes", customTypeSerializer:typeof(PrototypeIdListSerializer<LatheRecipePrototype>))]
public List<string> UnlockedRecipes { get; } = new();
}
}