Adds YAML linter validators for content tiles.
- Removes invalid floor drops.
This commit is contained in:
@@ -14,6 +14,7 @@ using Robust.Shared.Maths;
|
||||
using Robust.Shared.Audio;
|
||||
using Robust.Shared.Player;
|
||||
using Robust.Shared.Serialization.Manager.Attributes;
|
||||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.List;
|
||||
|
||||
namespace Content.Server.GameObjects.Components.Items
|
||||
{
|
||||
@@ -23,7 +24,7 @@ namespace Content.Server.GameObjects.Components.Items
|
||||
[Dependency] private readonly ITileDefinitionManager _tileDefinitionManager = default!;
|
||||
|
||||
public override string Name => "FloorTile";
|
||||
[DataField("outputs")]
|
||||
[DataField("outputs", customTypeSerializer:typeof(PrototypeIdListSerializer<ContentTileDefinition>))]
|
||||
private List<string>? _outputTiles;
|
||||
|
||||
public override void Initialize()
|
||||
|
||||
@@ -4,6 +4,7 @@ using JetBrains.Annotations;
|
||||
using Robust.Shared.Map;
|
||||
using Robust.Shared.Prototypes;
|
||||
using Robust.Shared.Serialization.Manager.Attributes;
|
||||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
||||
using Robust.Shared.ViewVariables;
|
||||
|
||||
namespace Content.Shared.Maps
|
||||
@@ -35,7 +36,8 @@ namespace Content.Shared.Maps
|
||||
|
||||
[DataField("thermalConductivity")] public float ThermalConductivity { get; set; } = 0.05f;
|
||||
|
||||
[DataField("item_drop")] public string ItemDropPrototypeName { get; } = "FloorTileItemSteel";
|
||||
[DataField("item_drop", customTypeSerializer:typeof(PrototypeIdSerializer<EntityPrototype>))]
|
||||
public string ItemDropPrototypeName { get; } = "FloorTileItemSteel";
|
||||
|
||||
[DataField("is_space")] public bool IsSpace { get; private set; }
|
||||
|
||||
|
||||
@@ -102,7 +102,6 @@
|
||||
can_crowbar: true
|
||||
footstep_sounds: footstep_floor
|
||||
friction: 0.30
|
||||
item_drop: FloorTileItemRock
|
||||
|
||||
- type: tile
|
||||
name: floor_showroom
|
||||
@@ -185,7 +184,6 @@
|
||||
can_crowbar: true
|
||||
footstep_sounds: footstep_asteroid
|
||||
friction: 0.30
|
||||
item_drop: FloorTileItemAsteroid
|
||||
|
||||
- type: tile
|
||||
name: floor_asteroid_coarse_sand0
|
||||
|
||||
Reference in New Issue
Block a user