Support weighted tile variantize (#18940)
* Support weighted tile variantize * Remove unused using * Use an array
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
using Content.Shared.Administration;
|
using Content.Shared.Administration;
|
||||||
using Content.Shared.Maps;
|
using Content.Shared.Maps;
|
||||||
using Robust.Shared.Console;
|
using Robust.Shared.Console;
|
||||||
using Robust.Shared.Map;
|
using Robust.Shared.Map;
|
||||||
@@ -42,7 +42,7 @@ public sealed class VariantizeCommand : IConsoleCommand
|
|||||||
foreach (var tile in gridComp.GetAllTiles())
|
foreach (var tile in gridComp.GetAllTiles())
|
||||||
{
|
{
|
||||||
var def = tile.GetContentTileDefinition();
|
var def = tile.GetContentTileDefinition();
|
||||||
var newTile = new Tile(tile.Tile.TypeId, tile.Tile.Flags, random.Pick(def.PlacementVariants));
|
var newTile = new Tile(tile.Tile.TypeId, tile.Tile.Flags, def.PickVariant(random));
|
||||||
gridComp.SetTile(tile.GridIndices, newTile);
|
gridComp.SetTile(tile.GridIndices, newTile);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
using System.Numerics;
|
using System.Numerics;
|
||||||
using Content.Server.Decals;
|
using Content.Server.Decals;
|
||||||
using Content.Shared.Coordinates.Helpers;
|
using Content.Shared.Coordinates.Helpers;
|
||||||
using Content.Shared.Decals;
|
using Content.Shared.Decals;
|
||||||
@@ -26,7 +26,7 @@ public sealed class TileSystem : EntitySystem
|
|||||||
var tileRef = grid.GetTileRef(indices);
|
var tileRef = grid.GetTileRef(indices);
|
||||||
return PryTile(tileRef);
|
return PryTile(tileRef);
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool PryTile(TileRef tileRef)
|
public bool PryTile(TileRef tileRef)
|
||||||
{
|
{
|
||||||
return PryTile(tileRef, false);
|
return PryTile(tileRef, false);
|
||||||
@@ -74,7 +74,7 @@ public sealed class TileSystem : EntitySystem
|
|||||||
if (!Resolve(grid, ref component))
|
if (!Resolve(grid, ref component))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
var variant = _robustRandom.Pick(replacementTile.PlacementVariants);
|
var variant = replacementTile.PickVariant();
|
||||||
var decals = _decal.GetDecalsInRange(tileref.GridUid, _turf.GetTileCenter(tileref).Position, 0.5f);
|
var decals = _decal.GetDecalsInRange(tileref.GridUid, _turf.GetTileCenter(tileref).Position, 0.5f);
|
||||||
foreach (var (id, _) in decals)
|
foreach (var (id, _) in decals)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using Content.Server.Worldgen.Components.Debris;
|
using Content.Server.Worldgen.Components.Debris;
|
||||||
using Content.Shared.Maps;
|
using Content.Shared.Maps;
|
||||||
using Robust.Shared.Map;
|
using Robust.Shared.Map;
|
||||||
@@ -56,7 +56,7 @@ public sealed class BlobFloorPlanBuilderSystem : BaseWorldSystem
|
|||||||
spawnPoints.Add(west);
|
spawnPoints.Add(west);
|
||||||
|
|
||||||
var tileDef = _tileDefinition[_random.Pick(comp.FloorTileset)];
|
var tileDef = _tileDefinition[_random.Pick(comp.FloorTileset)];
|
||||||
taken.Add(point, new Tile(tileDef.TileId, 0, _random.Pick(((ContentTileDefinition)tileDef).PlacementVariants)));
|
taken.Add(point, new Tile(tileDef.TileId, 0, ((ContentTileDefinition)tileDef).PickVariant(_random)));
|
||||||
}
|
}
|
||||||
|
|
||||||
PlaceTile(Vector2i.Zero);
|
PlaceTile(Vector2i.Zero);
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
using Content.Shared.Atmos;
|
using Content.Shared.Atmos;
|
||||||
using JetBrains.Annotations;
|
|
||||||
using Robust.Shared.Audio;
|
using Robust.Shared.Audio;
|
||||||
using Robust.Shared.Map;
|
using Robust.Shared.Map;
|
||||||
using Robust.Shared.Prototypes;
|
using Robust.Shared.Prototypes;
|
||||||
@@ -37,7 +36,7 @@ namespace Content.Shared.Maps
|
|||||||
public string BaseTurf { get; } = string.Empty;
|
public string BaseTurf { get; } = string.Empty;
|
||||||
|
|
||||||
[DataField("canCrowbar")] public bool CanCrowbar { get; private set; }
|
[DataField("canCrowbar")] public bool CanCrowbar { get; private set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether this tile can be pried by an advanced prying tool if not pryable otherwise.
|
/// Whether this tile can be pried by an advanced prying tool if not pryable otherwise.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -62,7 +61,7 @@ namespace Content.Shared.Maps
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// This controls what variants the `variantize` command is allowed to use.
|
/// This controls what variants the `variantize` command is allowed to use.
|
||||||
/// </summary>
|
/// </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;
|
[DataField("thermalConductivity")] public float ThermalConductivity = 0.04f;
|
||||||
|
|
||||||
|
|||||||
@@ -89,6 +89,30 @@ namespace Content.Shared.Maps
|
|||||||
return tile.Tile.IsSpace(tileDefinitionManager);
|
return tile.Tile.IsSpace(tileDefinitionManager);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns a weighted pick of a tile variant.
|
||||||
|
/// </summary>
|
||||||
|
public static byte PickVariant(this ContentTileDefinition tile, IRobustRandom? random = null)
|
||||||
|
{
|
||||||
|
IoCManager.Resolve(ref random);
|
||||||
|
var variants = tile.PlacementVariants;
|
||||||
|
|
||||||
|
var sum = variants.Sum();
|
||||||
|
var accumulated = 0f;
|
||||||
|
var rand = random.NextFloat() * sum;
|
||||||
|
|
||||||
|
for (byte i = 0; i < variants.Length; ++i)
|
||||||
|
{
|
||||||
|
accumulated += variants[i];
|
||||||
|
|
||||||
|
if (accumulated >= rand)
|
||||||
|
return i;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Shouldn't happen
|
||||||
|
throw new InvalidOperationException($"Invalid weighted variantize tile pick for {tile.ID}!");
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Helper that returns all entities in a turf.
|
/// Helper that returns all entities in a turf.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -177,7 +177,7 @@ public sealed class FloorTileSystem : EntitySystem
|
|||||||
{
|
{
|
||||||
_adminLogger.Add(LogType.Action, LogImpact.Low, $"{ToPrettyString(user):actor} placed tile {_tileDefinitionManager[tileId].Name} at {ToPrettyString(gridUid)} {location}");
|
_adminLogger.Add(LogType.Action, LogImpact.Low, $"{ToPrettyString(user):actor} placed tile {_tileDefinitionManager[tileId].Name} at {ToPrettyString(gridUid)} {location}");
|
||||||
|
|
||||||
var variant = _random.Pick(((ContentTileDefinition) _tileDefinitionManager[tileId]).PlacementVariants);
|
var variant = ((ContentTileDefinition) _tileDefinitionManager[tileId]).PickVariant();
|
||||||
mapGrid.SetTile(location.Offset(new Vector2(offset, offset)), new Tile(tileId, 0, variant));
|
mapGrid.SetTile(location.Offset(new Vector2(offset, offset)), new Tile(tileId, 0, variant));
|
||||||
|
|
||||||
_audio.PlayPredicted(placeSound, location, user, AudioHelpers.WithVariation(0.125f, _random));
|
_audio.PlayPredicted(placeSound, location, user, AudioHelpers.WithVariation(0.125f, _random));
|
||||||
|
|||||||
@@ -3,7 +3,11 @@
|
|||||||
name: tiles-steel-floor
|
name: tiles-steel-floor
|
||||||
sprite: /Textures/Tiles/steel.png
|
sprite: /Textures/Tiles/steel.png
|
||||||
variants: 4
|
variants: 4
|
||||||
placementVariants: [0, 1, 2, 3]
|
placementVariants:
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
baseTurf: Plating
|
baseTurf: Plating
|
||||||
isSubfloor: false
|
isSubfloor: false
|
||||||
canCrowbar: true
|
canCrowbar: true
|
||||||
@@ -17,7 +21,11 @@
|
|||||||
name: tiles-steel-floor-checker-light
|
name: tiles-steel-floor-checker-light
|
||||||
sprite: /Textures/Tiles/cafeteria.png
|
sprite: /Textures/Tiles/cafeteria.png
|
||||||
variants: 4
|
variants: 4
|
||||||
placementVariants: [0, 1, 2, 3]
|
placementVariants:
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
baseTurf: Plating
|
baseTurf: Plating
|
||||||
isSubfloor: false
|
isSubfloor: false
|
||||||
canCrowbar: true
|
canCrowbar: true
|
||||||
@@ -31,7 +39,11 @@
|
|||||||
name: tiles-steel-floor-checker-dark
|
name: tiles-steel-floor-checker-dark
|
||||||
sprite: /Textures/Tiles/checker_dark.png
|
sprite: /Textures/Tiles/checker_dark.png
|
||||||
variants: 4
|
variants: 4
|
||||||
placementVariants: [0, 1, 2, 3]
|
placementVariants:
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
baseTurf: Plating
|
baseTurf: Plating
|
||||||
isSubfloor: false
|
isSubfloor: false
|
||||||
canCrowbar: true
|
canCrowbar: true
|
||||||
@@ -45,7 +57,11 @@
|
|||||||
name: tiles-steel-floor-mini
|
name: tiles-steel-floor-mini
|
||||||
sprite: /Textures/Tiles/steel_mini.png
|
sprite: /Textures/Tiles/steel_mini.png
|
||||||
variants: 4
|
variants: 4
|
||||||
placementVariants: [0, 1, 2, 3]
|
placementVariants:
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
baseTurf: Plating
|
baseTurf: Plating
|
||||||
isSubfloor: false
|
isSubfloor: false
|
||||||
canCrowbar: true
|
canCrowbar: true
|
||||||
@@ -59,7 +75,11 @@
|
|||||||
name: tiles-steel-floor-pavement
|
name: tiles-steel-floor-pavement
|
||||||
sprite: /Textures/Tiles/steel_pavement.png
|
sprite: /Textures/Tiles/steel_pavement.png
|
||||||
variants: 4
|
variants: 4
|
||||||
placementVariants: [0, 1, 2, 3]
|
placementVariants:
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
baseTurf: Plating
|
baseTurf: Plating
|
||||||
isSubfloor: false
|
isSubfloor: false
|
||||||
canCrowbar: true
|
canCrowbar: true
|
||||||
@@ -73,7 +93,11 @@
|
|||||||
name: tiles-steel-floor-diagonal
|
name: tiles-steel-floor-diagonal
|
||||||
sprite: /Textures/Tiles/steel_diagonal.png
|
sprite: /Textures/Tiles/steel_diagonal.png
|
||||||
variants: 4
|
variants: 4
|
||||||
placementVariants: [0, 1, 2, 3]
|
placementVariants:
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
baseTurf: Plating
|
baseTurf: Plating
|
||||||
isSubfloor: false
|
isSubfloor: false
|
||||||
canCrowbar: true
|
canCrowbar: true
|
||||||
@@ -86,8 +110,6 @@
|
|||||||
id: FloorSteelOffset
|
id: FloorSteelOffset
|
||||||
name: tiles-steel-floor-offset
|
name: tiles-steel-floor-offset
|
||||||
sprite: /Textures/Tiles/steel_offset.png
|
sprite: /Textures/Tiles/steel_offset.png
|
||||||
variants: 1
|
|
||||||
placementVariants: [0]
|
|
||||||
baseTurf: Plating
|
baseTurf: Plating
|
||||||
isSubfloor: false
|
isSubfloor: false
|
||||||
canCrowbar: true
|
canCrowbar: true
|
||||||
@@ -101,7 +123,11 @@
|
|||||||
name: tiles-steel-floor-mono
|
name: tiles-steel-floor-mono
|
||||||
sprite: /Textures/Tiles/steel_mono.png
|
sprite: /Textures/Tiles/steel_mono.png
|
||||||
variants: 4
|
variants: 4
|
||||||
placementVariants: [0,1,2,3]
|
placementVariants:
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
baseTurf: Plating
|
baseTurf: Plating
|
||||||
isSubfloor: false
|
isSubfloor: false
|
||||||
canCrowbar: true
|
canCrowbar: true
|
||||||
@@ -115,7 +141,11 @@
|
|||||||
name: tiles-steel-floor-pavement-vertical
|
name: tiles-steel-floor-pavement-vertical
|
||||||
sprite: /Textures/Tiles/steel_pavement_vertical.png
|
sprite: /Textures/Tiles/steel_pavement_vertical.png
|
||||||
variants: 4
|
variants: 4
|
||||||
placementVariants: [0,1,2,3]
|
placementVariants:
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
baseTurf: Plating
|
baseTurf: Plating
|
||||||
isSubfloor: false
|
isSubfloor: false
|
||||||
canCrowbar: true
|
canCrowbar: true
|
||||||
@@ -129,7 +159,11 @@
|
|||||||
name: tiles-steel-floor-herringbone
|
name: tiles-steel-floor-herringbone
|
||||||
sprite: /Textures/Tiles/steel_herringbone.png
|
sprite: /Textures/Tiles/steel_herringbone.png
|
||||||
variants: 4
|
variants: 4
|
||||||
placementVariants: [0,1,2,3]
|
placementVariants:
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
baseTurf: Plating
|
baseTurf: Plating
|
||||||
isSubfloor: false
|
isSubfloor: false
|
||||||
canCrowbar: true
|
canCrowbar: true
|
||||||
@@ -143,7 +177,11 @@
|
|||||||
name: tiles-steel-floor-diagonal-mini
|
name: tiles-steel-floor-diagonal-mini
|
||||||
sprite: /Textures/Tiles/steel_diagonal_mini.png
|
sprite: /Textures/Tiles/steel_diagonal_mini.png
|
||||||
variants: 4
|
variants: 4
|
||||||
placementVariants: [0,1,2,3]
|
placementVariants:
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
baseTurf: Plating
|
baseTurf: Plating
|
||||||
isSubfloor: false
|
isSubfloor: false
|
||||||
canCrowbar: true
|
canCrowbar: true
|
||||||
@@ -157,7 +195,11 @@
|
|||||||
name: tiles-plastic-floor
|
name: tiles-plastic-floor
|
||||||
sprite: /Textures/Tiles/plastic.png
|
sprite: /Textures/Tiles/plastic.png
|
||||||
variants: 4
|
variants: 4
|
||||||
placementVariants: [0, 1, 2, 3]
|
placementVariants:
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
baseTurf: Plating
|
baseTurf: Plating
|
||||||
isSubfloor: false
|
isSubfloor: false
|
||||||
canCrowbar: true
|
canCrowbar: true
|
||||||
@@ -171,7 +213,11 @@
|
|||||||
name: tiles-wood
|
name: tiles-wood
|
||||||
sprite: /Textures/Tiles/wood.png
|
sprite: /Textures/Tiles/wood.png
|
||||||
variants: 4
|
variants: 4
|
||||||
placementVariants: [0, 1, 2, 3]
|
placementVariants:
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
baseTurf: Plating
|
baseTurf: Plating
|
||||||
isSubfloor: false
|
isSubfloor: false
|
||||||
canCrowbar: true
|
canCrowbar: true
|
||||||
@@ -187,7 +233,11 @@
|
|||||||
name: tiles-white-floor
|
name: tiles-white-floor
|
||||||
sprite: /Textures/Tiles/white.png
|
sprite: /Textures/Tiles/white.png
|
||||||
variants: 4
|
variants: 4
|
||||||
placementVariants: [0, 1, 2, 3]
|
placementVariants:
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
baseTurf: Plating
|
baseTurf: Plating
|
||||||
isSubfloor: false
|
isSubfloor: false
|
||||||
canCrowbar: true
|
canCrowbar: true
|
||||||
@@ -201,7 +251,11 @@
|
|||||||
name: tiles-white-floor-mini
|
name: tiles-white-floor-mini
|
||||||
sprite: /Textures/Tiles/white_mini.png
|
sprite: /Textures/Tiles/white_mini.png
|
||||||
variants: 4
|
variants: 4
|
||||||
placementVariants: [0, 1, 2, 3]
|
placementVariants:
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
baseTurf: Plating
|
baseTurf: Plating
|
||||||
isSubfloor: false
|
isSubfloor: false
|
||||||
canCrowbar: true
|
canCrowbar: true
|
||||||
@@ -215,7 +269,11 @@
|
|||||||
name: tiles-white-floor-pavement
|
name: tiles-white-floor-pavement
|
||||||
sprite: /Textures/Tiles/white_pavement.png
|
sprite: /Textures/Tiles/white_pavement.png
|
||||||
variants: 4
|
variants: 4
|
||||||
placementVariants: [0, 1, 2, 3]
|
placementVariants:
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
baseTurf: Plating
|
baseTurf: Plating
|
||||||
isSubfloor: false
|
isSubfloor: false
|
||||||
canCrowbar: true
|
canCrowbar: true
|
||||||
@@ -229,7 +287,11 @@
|
|||||||
name: tiles-white-floor-diagonal
|
name: tiles-white-floor-diagonal
|
||||||
sprite: /Textures/Tiles/white_diagonal.png
|
sprite: /Textures/Tiles/white_diagonal.png
|
||||||
variants: 4
|
variants: 4
|
||||||
placementVariants: [0, 1, 2, 3]
|
placementVariants:
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
baseTurf: Plating
|
baseTurf: Plating
|
||||||
isSubfloor: false
|
isSubfloor: false
|
||||||
canCrowbar: true
|
canCrowbar: true
|
||||||
@@ -242,8 +304,6 @@
|
|||||||
id: FloorWhiteOffset
|
id: FloorWhiteOffset
|
||||||
name: tiles-white-floor-offset
|
name: tiles-white-floor-offset
|
||||||
sprite: /Textures/Tiles/white_offset.png
|
sprite: /Textures/Tiles/white_offset.png
|
||||||
variants: 1
|
|
||||||
placementVariants: [0]
|
|
||||||
baseTurf: Plating
|
baseTurf: Plating
|
||||||
isSubfloor: false
|
isSubfloor: false
|
||||||
canCrowbar: true
|
canCrowbar: true
|
||||||
@@ -257,7 +317,11 @@
|
|||||||
name: tiles-white-floor-mono
|
name: tiles-white-floor-mono
|
||||||
sprite: /Textures/Tiles/white_mono.png
|
sprite: /Textures/Tiles/white_mono.png
|
||||||
variants: 4
|
variants: 4
|
||||||
placementVariants: [0,1,2,3]
|
placementVariants:
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
baseTurf: Plating
|
baseTurf: Plating
|
||||||
isSubfloor: false
|
isSubfloor: false
|
||||||
canCrowbar: true
|
canCrowbar: true
|
||||||
@@ -271,7 +335,11 @@
|
|||||||
name: tiles-white-floor-pavement-vertical
|
name: tiles-white-floor-pavement-vertical
|
||||||
sprite: /Textures/Tiles/white_pavement_vertical.png
|
sprite: /Textures/Tiles/white_pavement_vertical.png
|
||||||
variants: 4
|
variants: 4
|
||||||
placementVariants: [0,1,2,3]
|
placementVariants:
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
baseTurf: Plating
|
baseTurf: Plating
|
||||||
isSubfloor: false
|
isSubfloor: false
|
||||||
canCrowbar: true
|
canCrowbar: true
|
||||||
@@ -285,7 +353,11 @@
|
|||||||
name: tiles-white-floor-herringbone
|
name: tiles-white-floor-herringbone
|
||||||
sprite: /Textures/Tiles/white_herringbone.png
|
sprite: /Textures/Tiles/white_herringbone.png
|
||||||
variants: 4
|
variants: 4
|
||||||
placementVariants: [0,1,2,3]
|
placementVariants:
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
baseTurf: Plating
|
baseTurf: Plating
|
||||||
isSubfloor: false
|
isSubfloor: false
|
||||||
canCrowbar: true
|
canCrowbar: true
|
||||||
@@ -299,7 +371,11 @@
|
|||||||
name: tiles-white-floor-diagonal-mini
|
name: tiles-white-floor-diagonal-mini
|
||||||
sprite: /Textures/Tiles/white_diagonal_mini.png
|
sprite: /Textures/Tiles/white_diagonal_mini.png
|
||||||
variants: 4
|
variants: 4
|
||||||
placementVariants: [0,1,2,3]
|
placementVariants:
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
baseTurf: Plating
|
baseTurf: Plating
|
||||||
isSubfloor: false
|
isSubfloor: false
|
||||||
canCrowbar: true
|
canCrowbar: true
|
||||||
@@ -313,7 +389,11 @@
|
|||||||
name: tiles-plastic-white-floor
|
name: tiles-plastic-white-floor
|
||||||
sprite: /Textures/Tiles/white_plastic.png
|
sprite: /Textures/Tiles/white_plastic.png
|
||||||
variants: 4
|
variants: 4
|
||||||
placementVariants: [0, 1, 2, 3]
|
placementVariants:
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
baseTurf: Plating
|
baseTurf: Plating
|
||||||
isSubfloor: false
|
isSubfloor: false
|
||||||
canCrowbar: true
|
canCrowbar: true
|
||||||
@@ -327,7 +407,11 @@
|
|||||||
name: tiles-dark-floor
|
name: tiles-dark-floor
|
||||||
sprite: /Textures/Tiles/dark.png
|
sprite: /Textures/Tiles/dark.png
|
||||||
variants: 4
|
variants: 4
|
||||||
placementVariants: [ 0, 1, 2, 3 ]
|
placementVariants:
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
baseTurf: Plating
|
baseTurf: Plating
|
||||||
isSubfloor: false
|
isSubfloor: false
|
||||||
canCrowbar: true
|
canCrowbar: true
|
||||||
@@ -341,7 +425,11 @@
|
|||||||
name: tiles-dark-floor-mini
|
name: tiles-dark-floor-mini
|
||||||
sprite: /Textures/Tiles/dark_mini.png
|
sprite: /Textures/Tiles/dark_mini.png
|
||||||
variants: 4
|
variants: 4
|
||||||
placementVariants: [ 0, 1, 2, 3 ]
|
placementVariants:
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
baseTurf: Plating
|
baseTurf: Plating
|
||||||
isSubfloor: false
|
isSubfloor: false
|
||||||
canCrowbar: true
|
canCrowbar: true
|
||||||
@@ -355,7 +443,11 @@
|
|||||||
name: tiles-dark-floor-pavement
|
name: tiles-dark-floor-pavement
|
||||||
sprite: /Textures/Tiles/dark_pavement.png
|
sprite: /Textures/Tiles/dark_pavement.png
|
||||||
variants: 4
|
variants: 4
|
||||||
placementVariants: [ 0, 1, 2, 3 ]
|
placementVariants:
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
baseTurf: Plating
|
baseTurf: Plating
|
||||||
isSubfloor: false
|
isSubfloor: false
|
||||||
canCrowbar: true
|
canCrowbar: true
|
||||||
@@ -369,7 +461,11 @@
|
|||||||
name: tiles-dark-floor-diagonal
|
name: tiles-dark-floor-diagonal
|
||||||
sprite: /Textures/Tiles/dark_diagonal.png
|
sprite: /Textures/Tiles/dark_diagonal.png
|
||||||
variants: 4
|
variants: 4
|
||||||
placementVariants: [ 0, 1, 2, 3 ]
|
placementVariants:
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
baseTurf: Plating
|
baseTurf: Plating
|
||||||
isSubfloor: false
|
isSubfloor: false
|
||||||
canCrowbar: true
|
canCrowbar: true
|
||||||
@@ -382,8 +478,6 @@
|
|||||||
id: FloorDarkOffset
|
id: FloorDarkOffset
|
||||||
name: tiles-dark-floor-offset
|
name: tiles-dark-floor-offset
|
||||||
sprite: /Textures/Tiles/dark_offset.png
|
sprite: /Textures/Tiles/dark_offset.png
|
||||||
variants: 1
|
|
||||||
placementVariants: [0]
|
|
||||||
baseTurf: Plating
|
baseTurf: Plating
|
||||||
isSubfloor: false
|
isSubfloor: false
|
||||||
canCrowbar: true
|
canCrowbar: true
|
||||||
@@ -397,7 +491,11 @@
|
|||||||
name: tiles-dark-floor-mono
|
name: tiles-dark-floor-mono
|
||||||
sprite: /Textures/Tiles/dark_mono.png
|
sprite: /Textures/Tiles/dark_mono.png
|
||||||
variants: 4
|
variants: 4
|
||||||
placementVariants: [0,1,2,3]
|
placementVariants:
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
baseTurf: Plating
|
baseTurf: Plating
|
||||||
isSubfloor: false
|
isSubfloor: false
|
||||||
canCrowbar: true
|
canCrowbar: true
|
||||||
@@ -411,7 +509,11 @@
|
|||||||
name: tiles-dark-floor-pavement-vertical
|
name: tiles-dark-floor-pavement-vertical
|
||||||
sprite: /Textures/Tiles/dark_pavement_vertical.png
|
sprite: /Textures/Tiles/dark_pavement_vertical.png
|
||||||
variants: 4
|
variants: 4
|
||||||
placementVariants: [0,1,2,3]
|
placementVariants:
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
baseTurf: Plating
|
baseTurf: Plating
|
||||||
isSubfloor: false
|
isSubfloor: false
|
||||||
canCrowbar: true
|
canCrowbar: true
|
||||||
@@ -425,7 +527,11 @@
|
|||||||
name: tiles-dark-floor-herringbone
|
name: tiles-dark-floor-herringbone
|
||||||
sprite: /Textures/Tiles/dark_herringbone.png
|
sprite: /Textures/Tiles/dark_herringbone.png
|
||||||
variants: 4
|
variants: 4
|
||||||
placementVariants: [0,1,2,3]
|
placementVariants:
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
baseTurf: Plating
|
baseTurf: Plating
|
||||||
isSubfloor: false
|
isSubfloor: false
|
||||||
canCrowbar: true
|
canCrowbar: true
|
||||||
@@ -439,7 +545,11 @@
|
|||||||
name: tiles-dark-floor-diagonal-mini
|
name: tiles-dark-floor-diagonal-mini
|
||||||
sprite: /Textures/Tiles/dark_diagonal_mini.png
|
sprite: /Textures/Tiles/dark_diagonal_mini.png
|
||||||
variants: 4
|
variants: 4
|
||||||
placementVariants: [0,1,2,3]
|
placementVariants:
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
baseTurf: Plating
|
baseTurf: Plating
|
||||||
isSubfloor: false
|
isSubfloor: false
|
||||||
canCrowbar: true
|
canCrowbar: true
|
||||||
@@ -453,7 +563,11 @@
|
|||||||
name: tiles-plastic-dark-floor
|
name: tiles-plastic-dark-floor
|
||||||
sprite: /Textures/Tiles/dark_plastic.png
|
sprite: /Textures/Tiles/dark_plastic.png
|
||||||
variants: 4
|
variants: 4
|
||||||
placementVariants: [ 0, 1, 2, 3 ]
|
placementVariants:
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
baseTurf: Plating
|
baseTurf: Plating
|
||||||
isSubfloor: false
|
isSubfloor: false
|
||||||
canCrowbar: true
|
canCrowbar: true
|
||||||
@@ -612,7 +726,11 @@
|
|||||||
name: tiles-bar-floor
|
name: tiles-bar-floor
|
||||||
sprite: /Textures/Tiles/bar.png
|
sprite: /Textures/Tiles/bar.png
|
||||||
variants: 4
|
variants: 4
|
||||||
placementVariants: [ 0, 1, 2, 3 ]
|
placementVariants:
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
baseTurf: Plating
|
baseTurf: Plating
|
||||||
isSubfloor: false
|
isSubfloor: false
|
||||||
canCrowbar: true
|
canCrowbar: true
|
||||||
@@ -765,7 +883,11 @@
|
|||||||
name: tiles-boxing-ring-floor
|
name: tiles-boxing-ring-floor
|
||||||
sprite: /Textures/Tiles/boxing.png
|
sprite: /Textures/Tiles/boxing.png
|
||||||
variants: 4
|
variants: 4
|
||||||
placementVariants: [0, 1, 2, 3]
|
placementVariants:
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
baseTurf: Plating
|
baseTurf: Plating
|
||||||
isSubfloor: false
|
isSubfloor: false
|
||||||
canCrowbar: true
|
canCrowbar: true
|
||||||
@@ -780,7 +902,11 @@
|
|||||||
name: tiles-gym-floor
|
name: tiles-gym-floor
|
||||||
sprite: /Textures/Tiles/gym.png
|
sprite: /Textures/Tiles/gym.png
|
||||||
variants: 4
|
variants: 4
|
||||||
placementVariants: [0, 1, 2, 3]
|
placementVariants:
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
baseTurf: Plating
|
baseTurf: Plating
|
||||||
isSubfloor: false
|
isSubfloor: false
|
||||||
canCrowbar: true
|
canCrowbar: true
|
||||||
@@ -882,7 +1008,11 @@
|
|||||||
name: tiles-glass-floor
|
name: tiles-glass-floor
|
||||||
sprite: /Textures/Tiles/glass.png
|
sprite: /Textures/Tiles/glass.png
|
||||||
variants: 4
|
variants: 4
|
||||||
placementVariants: [0, 1, 2, 3]
|
placementVariants:
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
baseTurf: Plating
|
baseTurf: Plating
|
||||||
isSubfloor: false
|
isSubfloor: false
|
||||||
canCrowbar: true
|
canCrowbar: true
|
||||||
@@ -896,7 +1026,11 @@
|
|||||||
name: tiles-reinforced-glass-floor
|
name: tiles-reinforced-glass-floor
|
||||||
sprite: /Textures/Tiles/rglass.png
|
sprite: /Textures/Tiles/rglass.png
|
||||||
variants: 4
|
variants: 4
|
||||||
placementVariants: [0, 1, 2, 3]
|
placementVariants:
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
baseTurf: Plating
|
baseTurf: Plating
|
||||||
isSubfloor: false
|
isSubfloor: false
|
||||||
canCrowbar: true
|
canCrowbar: true
|
||||||
@@ -962,7 +1096,11 @@
|
|||||||
name: tiles-dark-grass-floor
|
name: tiles-dark-grass-floor
|
||||||
sprite: /Textures/Tiles/grassdark.png
|
sprite: /Textures/Tiles/grassdark.png
|
||||||
variants: 4
|
variants: 4
|
||||||
placementVariants: [0, 1, 2, 3]
|
placementVariants:
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
baseTurf: FloorDirt
|
baseTurf: FloorDirt
|
||||||
isSubfloor: true
|
isSubfloor: true
|
||||||
canCrowbar: false
|
canCrowbar: false
|
||||||
@@ -976,7 +1114,11 @@
|
|||||||
name: tiles-light-grass-floor
|
name: tiles-light-grass-floor
|
||||||
sprite: /Textures/Tiles/grasslight.png
|
sprite: /Textures/Tiles/grasslight.png
|
||||||
variants: 4
|
variants: 4
|
||||||
placementVariants: [0, 1, 2, 3]
|
placementVariants:
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
baseTurf: FloorDirt
|
baseTurf: FloorDirt
|
||||||
isSubfloor: true
|
isSubfloor: true
|
||||||
canCrowbar: false
|
canCrowbar: false
|
||||||
@@ -990,7 +1132,11 @@
|
|||||||
name: tiles-dirt-floor
|
name: tiles-dirt-floor
|
||||||
sprite: /Textures/Tiles/dirt.png
|
sprite: /Textures/Tiles/dirt.png
|
||||||
variants: 4
|
variants: 4
|
||||||
placementVariants: [0, 1, 2, 3]
|
placementVariants:
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
baseTurf: Plating
|
baseTurf: Plating
|
||||||
isSubfloor: true
|
isSubfloor: true
|
||||||
canCrowbar: false
|
canCrowbar: false
|
||||||
@@ -1074,7 +1220,10 @@
|
|||||||
name: tiles-asteroid-coarse-sand
|
name: tiles-asteroid-coarse-sand
|
||||||
sprite: /Textures/Tiles/Asteroid/asteroid_coarse_sand.png
|
sprite: /Textures/Tiles/Asteroid/asteroid_coarse_sand.png
|
||||||
variants: 3
|
variants: 3
|
||||||
placementVariants: [ 0, 1, 2 ]
|
placementVariants:
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
baseTurf: Space
|
baseTurf: Space
|
||||||
isSubfloor: true
|
isSubfloor: true
|
||||||
canCrowbar: false
|
canCrowbar: false
|
||||||
@@ -1161,7 +1310,14 @@
|
|||||||
name: tiles-cave
|
name: tiles-cave
|
||||||
sprite: /Textures/Tiles/cave.png
|
sprite: /Textures/Tiles/cave.png
|
||||||
variants: 7
|
variants: 7
|
||||||
placementVariants: [0, 1, 2, 3, 4, 5, 6]
|
placementVariants:
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
baseTurf: Space
|
baseTurf: Space
|
||||||
isSubfloor: true
|
isSubfloor: true
|
||||||
canCrowbar: false
|
canCrowbar: false
|
||||||
@@ -1174,7 +1330,15 @@
|
|||||||
name: tiles-cave-drought
|
name: tiles-cave-drought
|
||||||
sprite: /Textures/Tiles/cavedrought.png
|
sprite: /Textures/Tiles/cavedrought.png
|
||||||
variants: 8
|
variants: 8
|
||||||
placementVariants: [0, 1, 2, 3, 4, 5, 6, 7]
|
placementVariants:
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
baseTurf: Space
|
baseTurf: Space
|
||||||
isSubfloor: true
|
isSubfloor: true
|
||||||
canCrowbar: false
|
canCrowbar: false
|
||||||
@@ -1187,7 +1351,11 @@
|
|||||||
name: tiles-flesh-floor
|
name: tiles-flesh-floor
|
||||||
sprite: /Textures/Tiles/meat.png
|
sprite: /Textures/Tiles/meat.png
|
||||||
variants: 4
|
variants: 4
|
||||||
placementVariants: [0, 1, 2, 3]
|
placementVariants:
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
baseTurf: Plating
|
baseTurf: Plating
|
||||||
isSubfloor: false
|
isSubfloor: false
|
||||||
canCrowbar: true
|
canCrowbar: true
|
||||||
@@ -1214,7 +1382,11 @@
|
|||||||
name: tiles-techmaint3-floor
|
name: tiles-techmaint3-floor
|
||||||
sprite: /Textures/Tiles/grating_maint.png
|
sprite: /Textures/Tiles/grating_maint.png
|
||||||
variants: 4
|
variants: 4
|
||||||
placementVariants: [0, 1, 2, 3]
|
placementVariants:
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
baseTurf: Plating
|
baseTurf: Plating
|
||||||
isSubfloor: false
|
isSubfloor: false
|
||||||
canCrowbar: true
|
canCrowbar: true
|
||||||
@@ -1228,7 +1400,11 @@
|
|||||||
name: tiles-wood2
|
name: tiles-wood2
|
||||||
sprite: /Textures/Tiles/wood_tile.png
|
sprite: /Textures/Tiles/wood_tile.png
|
||||||
variants: 4
|
variants: 4
|
||||||
placementVariants: [0, 1, 2, 3]
|
placementVariants:
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
baseTurf: Plating
|
baseTurf: Plating
|
||||||
isSubfloor: false
|
isSubfloor: false
|
||||||
canCrowbar: true
|
canCrowbar: true
|
||||||
@@ -1244,7 +1420,14 @@
|
|||||||
name: tiles-wood3
|
name: tiles-wood3
|
||||||
sprite: /Textures/Tiles/wood_broken.png
|
sprite: /Textures/Tiles/wood_broken.png
|
||||||
variants: 7
|
variants: 7
|
||||||
placementVariants: [0, 1, 2, 3, 4, 5, 6]
|
placementVariants:
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
baseTurf: Plating
|
baseTurf: Plating
|
||||||
isSubfloor: false
|
isSubfloor: false
|
||||||
canCrowbar: true
|
canCrowbar: true
|
||||||
@@ -1292,4 +1475,4 @@
|
|||||||
canAxe: false
|
canAxe: false
|
||||||
footstepSounds:
|
footstepSounds:
|
||||||
collection: FootstepHull
|
collection: FootstepHull
|
||||||
itemDrop: FloorTileItemReinforced #same case as FloorHull
|
itemDrop: FloorTileItemReinforced #same case as FloorHull
|
||||||
|
|||||||
@@ -16,7 +16,13 @@
|
|||||||
name: tiles-desert-floor
|
name: tiles-desert-floor
|
||||||
sprite: /Textures/Tiles/Planet/Desert/desert.png
|
sprite: /Textures/Tiles/Planet/Desert/desert.png
|
||||||
variants: 6
|
variants: 6
|
||||||
placementVariants: [0, 1, 2, 3, 4, 5]
|
placementVariants:
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
isSubfloor: true
|
isSubfloor: true
|
||||||
canCrowbar: false
|
canCrowbar: false
|
||||||
footstepSounds:
|
footstepSounds:
|
||||||
@@ -30,7 +36,13 @@
|
|||||||
name: tiles-low-desert-floor
|
name: tiles-low-desert-floor
|
||||||
sprite: /Textures/Tiles/Planet/Desert/low_desert.png
|
sprite: /Textures/Tiles/Planet/Desert/low_desert.png
|
||||||
variants: 6
|
variants: 6
|
||||||
placementVariants: [0, 1, 2, 3, 4, 5]
|
placementVariants:
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
isSubfloor: true
|
isSubfloor: true
|
||||||
canCrowbar: false
|
canCrowbar: false
|
||||||
footstepSounds:
|
footstepSounds:
|
||||||
@@ -45,7 +57,11 @@
|
|||||||
name: tiles-grass-planet-floor
|
name: tiles-grass-planet-floor
|
||||||
sprite: /Textures/Tiles/Planet/Grass/grass.png
|
sprite: /Textures/Tiles/Planet/Grass/grass.png
|
||||||
variants: 4
|
variants: 4
|
||||||
placementVariants: [0, 1, 2, 3]
|
placementVariants:
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
edgeSprites:
|
edgeSprites:
|
||||||
SouthEast: /Textures/Tiles/Planet/Grass/single_edge.png
|
SouthEast: /Textures/Tiles/Planet/Grass/single_edge.png
|
||||||
NorthEast: /Textures/Tiles/Planet/Grass/single_edge.png
|
NorthEast: /Textures/Tiles/Planet/Grass/single_edge.png
|
||||||
@@ -84,7 +100,20 @@
|
|||||||
name: tiles-snow-floor
|
name: tiles-snow-floor
|
||||||
sprite: /Textures/Tiles/Planet/Snow/snow.png
|
sprite: /Textures/Tiles/Planet/Snow/snow.png
|
||||||
variants: 13
|
variants: 13
|
||||||
placementVariants: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
|
placementVariants:
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
|
- 1.0
|
||||||
#cornerSprites:
|
#cornerSprites:
|
||||||
# - /Textures/Tiles/Planet/Snow/single_edge.png
|
# - /Textures/Tiles/Planet/Snow/single_edge.png
|
||||||
#cardinalSprites:
|
#cardinalSprites:
|
||||||
|
|||||||
Reference in New Issue
Block a user