Tile fixes (#14388)

- Set some of the defaults in the definition to what we use for most prototypes
- Added planet variant for dirt to avoid black space
- Dirt looks like literal poop but will have another sprite for it soon
This commit is contained in:
metalgearsloth
2023-03-05 12:11:19 +11:00
committed by GitHub
parent 581e8a0d12
commit 5dd9a3c9e5
5 changed files with 17 additions and 161 deletions

View File

@@ -9,12 +9,10 @@ using Robust.Shared.Utility;
namespace Content.Shared.Maps
{
[UsedImplicitly]
[Prototype("tile")]
public sealed class ContentTileDefinition : IPrototype, IInheritingPrototype, ITileDefinition
{
public const string SpaceID = "Space";
private string _name = string.Empty;
[ParentDataFieldAttribute(typeof(AbstractPrototypeIdArraySerializer<ContentTileDefinition>))]
public string[]? Parents { get; private set; }
@@ -53,7 +51,7 @@ namespace Content.Shared.Maps
/// </summary>
[DataField("barestepSounds")] public SoundSpecifier? BarestepSounds { get; } = new SoundCollectionSpecifier("BarestepHard");
[DataField("friction")] public float Friction { get; set; }
[DataField("friction")] public float Friction { get; set; } = 0.3f;
[DataField("variants")] public byte Variants { get; set; } = 1;
@@ -62,7 +60,7 @@ namespace Content.Shared.Maps
/// </summary>
[DataField("placementVariants")] public byte[] PlacementVariants { get; set; } = new byte[1] { 0 };
[DataField("thermalConductivity")] public float ThermalConductivity { get; set; } = 0.05f;
[DataField("thermalConductivity")] public float ThermalConductivity = 0.04f;
// Heat capacity is opt-in, not opt-out.
[DataField("heatCapacity")] public float HeatCapacity = Atmospherics.MinimumHeatCapacity;