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

@@ -19,7 +19,7 @@ namespace Content.Shared.Lathe
public override string Name => "ProtolatheDatabase";
[DataField("protolatherecipes", customTypeSerializer:typeof(PrototypeIdListSerializer<EntityPrototype>))]
[DataField("protolatherecipes", customTypeSerializer:typeof(PrototypeIdListSerializer<LatheRecipePrototype>))]
private List<string> _recipeIds = new();
/// <summary>

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();
}
}

View File

@@ -144,10 +144,10 @@
requiredTechnologies:
- SecurityTechnology
unlockedRecipes:
- CartridgePistolBase
- ShellShotgunBase
- CartridgeLRifleBase
- CartridgeMagnumBase
- CartridgePistol
- ShellShotgun
- CartridgeLRifle
- CartridgeMagnum
#- type: technology
# name: "ballistic technology"

View File

@@ -164,10 +164,10 @@
- Flash
- Handcuffs
- Stunbaton
- CartridgePistolBase
- ShellShotgunBase
- CartridgeLRifleBase
- CartridgeMagnumBase
- CartridgePistol
- ShellShotgun
- CartridgeLRifle
- CartridgeMagnum
- FirelockElectronics
- MicroManipulatorStockPart
- ScanningModuleStockPart

View File

@@ -10,7 +10,7 @@
Plastic: 100
- type: latheRecipe
id: Scythe
id: HydroponicsToolScythe
icon:
sprite: Objects/Tools/Hydroponics/scythe.rsi
state: icon
@@ -21,7 +21,7 @@
Plastic: 200
- type: latheRecipe
id: Hatchet
id: HydroponicsToolHatchet
icon:
sprite: Objects/Tools/Hydroponics/hatchet.rsi
state: icon

View File

@@ -1,5 +1,5 @@
- type: latheRecipe
id: ConveyorAssembly
id: ConveyorBeltAssembly
icon:
sprite: Structures/conveyor.rsi
state: conveyor_loose

View File

@@ -96,3 +96,12 @@
materials:
Steel: 100
Glass: 100
- type: latheRecipe
id: CrewMonitoringComputerCircuitboard
icon: Objects/Misc/module.rsi/id_mod.png
result: CrewMonitoringComputerCircuitboard
completetime: 1000
materials:
Steel: 100
Glass: 100

View File

@@ -57,7 +57,7 @@
Steel: 200
- type: latheRecipe
id: BoneSaw
id: Saw
icon: Objects/Specific/Medical/Surgery/saw.rsi/saw.png
result: Saw
completetime: 500

View File

@@ -32,41 +32,41 @@
Steel: 100
- type: latheRecipe
id: CartridgePistolBase
id: CartridgePistol
icon:
sprite: Objects/Weapons/Guns/Ammunition/Casings/ammo_casing.rsi
state: base
result: CartridgePistolBase
result: CartridgePistol
completetime: 500
materials:
Steel: 10
- type: latheRecipe
id: ShellShotgunBase
id: ShellShotgun
icon:
sprite: Objects/Weapons/Guns/Ammunition/Casings/shotgun_shell.rsi
state: base
result: ShellShotgunBase
result: ShellShotgun
completetime: 500
materials:
Steel: 20
- type: latheRecipe
id: CartridgeMagnumBase
id: CartridgeMagnum
icon:
sprite: Objects/Weapons/Guns/Ammunition/Casings/ammo_casing.rsi
state: base
result: CartridgeMagnumBase
result: CartridgeMagnum
completetime: 500
materials:
Steel: 20
- type: latheRecipe
id: CartridgeLRifleBase
id: CartridgeLRifle
icon:
sprite: Objects/Weapons/Guns/Ammunition/Casings/ammo_casing.rsi
state: base
result: CartridgeLRifleBase
result: CartridgeLRifle
completetime: 500
materials:
Steel: 30

View File

@@ -9,7 +9,7 @@
Steel: 100
- type: latheRecipe
id: GlassStack
id: SheetGlass1
icon:
sprite: Objects/Materials/Sheets/glass.rsi
state: glass