Support weighted tile variantize (#18940)

* Support weighted tile variantize

* Remove unused using

* Use an array
This commit is contained in:
Vordenburg
2023-08-13 03:25:54 -04:00
committed by GitHub
parent ade5cace12
commit 1df650871d
8 changed files with 302 additions and 67 deletions

View File

@@ -1,5 +1,4 @@
using Content.Shared.Atmos;
using JetBrains.Annotations;
using Robust.Shared.Audio;
using Robust.Shared.Map;
using Robust.Shared.Prototypes;
@@ -37,7 +36,7 @@ namespace Content.Shared.Maps
public string BaseTurf { get; } = string.Empty;
[DataField("canCrowbar")] public bool CanCrowbar { get; private set; }
/// <summary>
/// Whether this tile can be pried by an advanced prying tool if not pryable otherwise.
/// </summary>
@@ -62,7 +61,7 @@ namespace Content.Shared.Maps
/// <summary>
/// This controls what variants the `variantize` command is allowed to use.
/// </summary>
[DataField("placementVariants")] public byte[] PlacementVariants { get; set; } = new byte[1] { 0 };
[DataField("placementVariants")] public float[] PlacementVariants { get; set; } = new [] { 1f };
[DataField("thermalConductivity")] public float ThermalConductivity = 0.04f;