]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Tile fixes (#14388)
authormetalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Sun, 5 Mar 2023 01:11:19 +0000 (12:11 +1100)
committerGitHub <noreply@github.com>
Sun, 5 Mar 2023 01:11:19 +0000 (19:11 -0600)
- 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

Content.Shared/Maps/ContentTileDefinition.cs
Resources/Prototypes/Tiles/floors.yml
Resources/Prototypes/Tiles/planet.yml
Resources/Prototypes/Tiles/plating.yml
Resources/Prototypes/biomes.yml

index 8676d63e6eea47fb9d64cf1caea42ba263d7d514..e0b37f4dc603ac031b98fbdd9800ca27a772fe8f 100644 (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;
index 58ec00eeb9fadc7deac33c9011463d5998c2ac2f..0da280c0b2645defb5563ee295f148d777e495f3 100644 (file)
@@ -10,9 +10,7 @@
   canCrowbar: true
   footstepSounds:
     collection: FootstepFloor
-  friction: 0.30
   itemDrop: FloorTileItemSteel
-  thermalConductivity: 0.04
   heatCapacity: 10000
 
 - type: tile
@@ -27,9 +25,7 @@
   canCrowbar: true
   footstepSounds:
     collection: FootstepFloor
-  friction: 0.30
   itemDrop: FloorTileItemSteel
-  thermalConductivity: 0.04
   heatCapacity: 10000
 
 - type: tile
@@ -44,9 +40,7 @@
   canCrowbar: true
   footstepSounds:
     collection: FootstepFloor
-  friction: 0.30
   itemDrop: FloorTileItemSteel
-  thermalConductivity: 0.04
   heatCapacity: 10000
 
 - type: tile
@@ -61,9 +55,7 @@
   canCrowbar: true
   footstepSounds:
     collection: FootstepFloor
-  friction: 0.30
   itemDrop: FloorTileItemSteel
-  thermalConductivity: 0.04
   heatCapacity: 10000
 
 - type: tile
@@ -78,9 +70,7 @@
   canCrowbar: true
   footstepSounds:
     collection: FootstepFloor
-  friction: 0.30
   itemDrop: FloorTileItemSteel
-  thermalConductivity: 0.04
   heatCapacity: 10000
 
 - type: tile
@@ -97,7 +87,6 @@
     collection: FootstepTile
   friction: 0.25
   itemDrop: FloorTileItemSteel
-  thermalConductivity: 0.04
   heatCapacity: 10000
 
 - type: tile
     collection: FootstepTile
   friction: 0.25
   itemDrop: FloorTileItemSteel
-  thermalConductivity: 0.04
   heatCapacity: 10000
 
 - type: tile
     collection: FootstepTile
   friction: 0.25
   itemDrop: FloorTileItemSteel
-  thermalConductivity: 0.04
   heatCapacity: 10000
 
 - type: tile
     collection: FootstepTile
   friction: 0.25
   itemDrop: FloorTileItemSteel
-  thermalConductivity: 0.04
   heatCapacity: 10000
 
 - type: tile
   canCrowbar: true
   footstepSounds:
     collection: FootstepFloor
-  friction: 0.30
   itemDrop: FloorTileItemSteel
-  thermalConductivity: 0.04
   heatCapacity: 10000
 
 - type: tile
     collection: FootstepWood
   barestepSounds:
     collection: BarestepWood
-  friction: 0.30
   itemDrop: FloorTileItemWood
-  thermalConductivity: 0.04
   heatCapacity: 10000
 
 - type: tile
     collection: FootstepTile
   friction: 0.25
   itemDrop: FloorTileItemWhite
-  thermalConductivity: 0.04
   heatCapacity: 10000
 
 - type: tile
     collection: FootstepTile
   friction: 0.25
   itemDrop: FloorTileItemWhite
-  thermalConductivity: 0.04
   heatCapacity: 10000
 
 - type: tile
     collection: FootstepTile
   friction: 0.25
   itemDrop: FloorTileItemWhite
-  thermalConductivity: 0.04
   heatCapacity: 10000
 
 - type: tile
     collection: FootstepTile
   friction: 0.25
   itemDrop: FloorTileItemWhite
-  thermalConductivity: 0.04
   heatCapacity: 10000
 
 - type: tile
     collection: FootstepTile
   friction: 0.25
   itemDrop: FloorTileItemWhite
-  thermalConductivity: 0.04
   heatCapacity: 10000
 
 - type: tile
     collection: FootstepTile
   friction: 0.25
   itemDrop: FloorTileItemWhite
-  thermalConductivity: 0.04
   heatCapacity: 10000
 
 - type: tile
     collection: FootstepTile
   friction: 0.25
   itemDrop: FloorTileItemWhite
-  thermalConductivity: 0.04
   heatCapacity: 10000
 
 - type: tile
     collection: FootstepTile
   friction: 0.25
   itemDrop: FloorTileItemWhite
-  thermalConductivity: 0.04
   heatCapacity: 10000
 
 - type: tile
     collection: FootstepTile
   friction: 0.25
   itemDrop: FloorTileItemWhite
-  thermalConductivity: 0.04
   heatCapacity: 10000
 
 - type: tile
     collection: FootstepTile
   friction: 0.25
   itemDrop: FloorTileItemWhite
-  thermalConductivity: 0.04
   heatCapacity: 10000
 
 - type: tile
   canCrowbar: true
   footstepSounds:
     collection: FootstepTile
-  friction: 0.30
   itemDrop: FloorTileItemDark
-  thermalConductivity: 0.04
   heatCapacity: 10000
 
 - type: tile
   canCrowbar: true
   footstepSounds:
     collection: FootstepTile
-  friction: 0.30
   itemDrop: FloorTileItemDark
-  thermalConductivity: 0.04
   heatCapacity: 10000
 
 - type: tile
   canCrowbar: true
   footstepSounds:
     collection: FootstepTile
-  friction: 0.30
   itemDrop: FloorTileItemDark
-  thermalConductivity: 0.04
   heatCapacity: 10000
 
 - type: tile
   canCrowbar: true
   footstepSounds:
     collection: FootstepTile
-  friction: 0.30
   itemDrop: FloorTileItemDark
-  thermalConductivity: 0.04
   heatCapacity: 10000
 
 - type: tile
     collection: FootstepTile
   friction: 0.25
   itemDrop: FloorTileItemDark
-  thermalConductivity: 0.04
   heatCapacity: 10000
 
 - type: tile
     collection: FootstepTile
   friction: 0.25
   itemDrop: FloorTileItemDark
-  thermalConductivity: 0.04
   heatCapacity: 10000
 
 - type: tile
     collection: FootstepTile
   friction: 0.25
   itemDrop: FloorTileItemDark
-  thermalConductivity: 0.04
   heatCapacity: 10000
 
 - type: tile
     collection: FootstepTile
   friction: 0.25
   itemDrop: FloorTileItemDark
-  thermalConductivity: 0.04
   heatCapacity: 10000
 
 - type: tile
     collection: FootstepTile
   friction: 0.25
   itemDrop: FloorTileItemDark
-  thermalConductivity: 0.04
   heatCapacity: 10000
 
 - type: tile
   canCrowbar: true
   footstepSounds:
     collection: FootstepTile
-  friction: 0.30
   itemDrop: FloorTileItemDark
-  thermalConductivity: 0.04
   heatCapacity: 10000
 
 - type: tile
   canCrowbar: true
   footstepSounds:
     collection: FootstepHull
-  friction: 0.30
   itemDrop: FloorTileItemTechmaint
-  thermalConductivity: 0.04
   heatCapacity: 10000
 
 - type: tile
   canCrowbar: true
   footstepSounds:
     collection: FootstepHull
-  friction: 0.30
   itemDrop: FloorTileItemReinforced
-  thermalConductivity: 0.04
   heatCapacity: 10000
 
 - type: tile
   canCrowbar: true
   footstepSounds:
     collection: FootstepTile
-  friction: 0.30
   itemDrop: FloorTileItemMono
-  thermalConductivity: 0.04
   heatCapacity: 10000
 
 - type: tile
   canCrowbar: true
   footstepSounds:
     collection: FootstepTile
-  friction: 0.30
   itemDrop: FloorTileItemLino
-  thermalConductivity: 0.04
   heatCapacity: 10000
 
 - type: tile
   canCrowbar: true
   footstepSounds:
     collection: FootstepPlating
-  friction: 0.30
   itemDrop: FloorTileItemDirty
-  thermalConductivity: 0.04
   heatCapacity: 10000
 
 - type: tile
   canCrowbar: true
   footstepSounds:
     collection: FootstepHull
-  friction: 0.30
   itemDrop: FloorTileItemElevatorShaft
-  thermalConductivity: 0.04
   heatCapacity: 10000
 
 - type: tile
   canCrowbar: true
   footstepSounds:
     collection: FootstepHull
-  friction: 0.30
   itemDrop: FloorTileItemMetalDiamond
-  thermalConductivity: 0.04
   heatCapacity: 10000
 
 - type: tile
   canCrowbar: true
   footstepSounds:
     collection: FootstepAsteroid
-  friction: 0.30
   itemDrop: FloorTileItemRockVault
-  thermalConductivity: 0.04
   heatCapacity: 10000
 
 - type: tile
   canCrowbar: true
   footstepSounds:
     collection: FootstepTile
-  friction: 0.30
   itemDrop: FloorTileItemBlue
-  thermalConductivity: 0.04
   heatCapacity: 10000
 
 # Departamental
   canCrowbar: true
   footstepSounds:
     collection: FootstepHull
-  friction: 0.30
   itemDrop: FloorTileItemFreezer
-  thermalConductivity: 0.04
   heatCapacity: 10000
 
 - type: tile
   canCrowbar: true
   footstepSounds:
     collection: FootstepFloor
-  friction: 0.30
   itemDrop: FloorTileItemShowroom
-  thermalConductivity: 0.04
   heatCapacity: 10000
 
 - type: tile
   canCrowbar: true
   footstepSounds:
     collection: FootstepFloor
-  friction: 0.30
   itemDrop: FloorTileItemHydro
-  thermalConductivity: 0.04
   heatCapacity: 10000
 
 - type: tile
   canCrowbar: true
   footstepSounds:
     collection: FootstepFloor
-  friction: 0.30
   itemDrop: FloorTileItemBar
-  thermalConductivity: 0.04
   heatCapacity: 10000
 
 - type: tile
   canCrowbar: true
   footstepSounds:
     collection: FootstepFloor
-  friction: 0.30
   itemDrop: FloorTileItemClown
-  thermalConductivity: 0.04
   heatCapacity: 10000
 
 - type: tile
   canCrowbar: true
   footstepSounds:
     collection: FootstepFloor
-  friction: 0.30
   itemDrop: FloorTileItemMime
-  thermalConductivity: 0.04
   heatCapacity: 10000
 
 - type: tile
   canCrowbar: true
   footstepSounds:
     collection: FootstepTile
-  friction: 0.30
   itemDrop: FloorTileItemKitchen
-  thermalConductivity: 0.04
   heatCapacity: 10000
 
 - type: tile
   canCrowbar: true
   footstepSounds:
     collection: FootstepTile
-  friction: 0.30
   itemDrop: FloorTileItemLaundry
-  thermalConductivity: 0.04
   heatCapacity: 10000
 
 # Carpets (non smoothing)
     collection: BarestepCarpet
   friction: 0.40
   itemDrop: FloorTileItemArcadeBlue
-  thermalConductivity: 0.04
   heatCapacity: 10000
 
 - type: tile
     collection: BarestepCarpet
   friction: 0.40
   itemDrop: FloorTileItemArcadeBlue2
-  thermalConductivity: 0.04
   heatCapacity: 10000
 
 - type: tile
     collection: BarestepCarpet
   friction: 0.40
   itemDrop: FloorTileItemArcadeRed
-  thermalConductivity: 0.04
   heatCapacity: 10000
 
 - type: tile
     collection: BarestepCarpet
   friction: 0.40
   itemDrop: FloorTileItemEighties
-  thermalConductivity: 0.04
   heatCapacity: 10000
 
 - type: tile
     collection: BarestepCarpet
   friction: 0.40
   itemDrop: FloorTileItemCarpetClown
-  thermalConductivity: 0.04
   heatCapacity: 10000
 
 - type: tile
     collection: BarestepCarpet
   friction: 0.40
   itemDrop: FloorTileItemCarpetOffice
-  thermalConductivity: 0.04
   heatCapacity: 10000
 
 - type: tile
     collection: FootstepFloor
   friction: 0.40
   itemDrop: FloorTileItemBoxing
-  thermalConductivity: 0.04
   heatCapacity: 10000
 
 - type: tile
     collection: FootstepFloor
   friction: 0.40
   itemDrop: FloorTileItemGym
-  thermalConductivity: 0.04
   heatCapacity: 10000
 
 # Shuttle
   canCrowbar: true
   footstepSounds:
     collection: FootstepFloor
-  friction: 0.30
   itemDrop: FloorTileItemShuttleWhite
-  thermalConductivity: 0.04
   heatCapacity: 10000
 
 - type: tile
   canCrowbar: true
   footstepSounds:
     collection: FootstepFloor
-  friction: 0.30
   itemDrop: FloorTileItemShuttleBlue
-  thermalConductivity: 0.04
   heatCapacity: 10000
 
 - type: tile
   canCrowbar: true
   footstepSounds:
     collection: FootstepFloor
-  friction: 0.30
   itemDrop: FloorTileItemShuttleOrange
-  thermalConductivity: 0.04
   heatCapacity: 10000
 
 - type: tile
   canCrowbar: true
   footstepSounds:
     collection: FootstepFloor
-  friction: 0.30
   itemDrop: FloorTileItemShuttlePurple
-  thermalConductivity: 0.04
   heatCapacity: 10000
 
 - type: tile
   canCrowbar: true
   footstepSounds:
     collection: FootstepFloor
-  friction: 0.30
   itemDrop: FloorTileItemShuttleRed
-  thermalConductivity: 0.04
   heatCapacity: 10000
 
 
   canCrowbar: true
   footstepSounds:
     collection: FootstepTile
-  friction: 0.30
   itemDrop: FloorTileItemGold
-  thermalConductivity: 0.04
   heatCapacity: 10000
 
 - type: tile
   canCrowbar: true
   footstepSounds:
     collection: FootstepTile
-  friction: 0.30
   itemDrop: FloorTileItemSilver
-  thermalConductivity: 0.04
   heatCapacity: 10000
 
 - type: tile
   canCrowbar: true
   footstepSounds:
     collection: FootstepTile
-  friction: 0.30
   itemDrop: SheetGlass1
-  thermalConductivity: 0.04
   heatCapacity: 10000
 
 - type: tile
   canCrowbar: true
   footstepSounds:
     collection: FootstepTile
-  friction: 0.30
   itemDrop: SheetRGlass1
-  thermalConductivity: 0.04
   heatCapacity: 10000
 
 # Circuits
   canCrowbar: true
   footstepSounds:
     collection: FootstepHull
-  friction: 0.30
   itemDrop: FloorTileItemGCircuit
-  thermalConductivity: 0.04
   heatCapacity: 10000
 
 - type: tile
   canCrowbar: true
   footstepSounds:
     collection: FootstepHull
-  friction: 0.30
   itemDrop: FloorTileItemBCircuit
-  thermalConductivity: 0.04
   heatCapacity: 10000
 
 # Terrain
   canCrowbar: false
   footstepSounds:
     collection: FootstepGrass
-  friction: 0.30
   itemDrop: FloorTileItemGrass
-  thermalConductivity: 0.04
   heatCapacity: 10000
   weather: true
 
   canCrowbar: false
   footstepSounds:
     collection: FootstepGrass
-  friction: 0.30
   itemDrop: FloorTileItemGrassJungle
-  thermalConductivity: 0.04
   heatCapacity: 10000
   weather: true
 
   canCrowbar: false
   footstepSounds:
     collection: FootstepGrass
-  friction: 0.30
-  thermalConductivity: 0.04
   heatCapacity: 10000
   weather: true
 
   canCrowbar: false
   footstepSounds:
     collection: FootstepGrass
-  friction: 0.30
-  thermalConductivity: 0.04
   heatCapacity: 10000
   weather: true
 
   canCrowbar: false
   footstepSounds:
     collection: FootstepAsteroid
-  friction: 0.30
-  thermalConductivity: 0.04
   heatCapacity: 10000
   weather: true
 
   canCrowbar: false
   footstepSounds:
     collection: FootstepAsteroid
-  friction: 0.30
-  thermalConductivity: 0.04
   heatCapacity: 10000
   weather: true
 
   canCrowbar: true
   footstepSounds:
     collection: FootstepAsteroid
-  friction: 0.30
-  thermalConductivity: 0.04
   heatCapacity: 10000
   weather: true
 
   canCrowbar: false
   footstepSounds:
     collection: FootstepAsteroid
-  friction: 0.30
-  thermalConductivity: 0.04
   heatCapacity: 10000
   weather: true
 
   canCrowbar: false
   footstepSounds:
     collection: FootstepAsteroid
-  friction: 0.30
-  thermalConductivity: 0.04
   heatCapacity: 10000
   weather: true
 
   canCrowbar: false
   footstepSounds:
     collection: FootstepAsteroid
-  friction: 0.30
-  thermalConductivity: 0.04
   heatCapacity: 10000
   weather: true
 
   canCrowbar: false
   footstepSounds:
     collection: FootstepAsteroid
-  friction: 0.30
-  thermalConductivity: 0.04
   heatCapacity: 10000
   weather: true
 
   canCrowbar: false
   footstepSounds:
     collection: FootstepAsteroid
-  friction: 0.30
-  thermalConductivity: 0.04
   heatCapacity: 10000
   weather: true
 
   canCrowbar: false
   footstepSounds:
     collection: FootstepAsteroid
-  friction: 0.30
-  thermalConductivity: 0.04
   heatCapacity: 10000
   weather: true
 
   canCrowbar: false
   footstepSounds:
     collection: FootstepAsteroid
-  friction: 0.30
-  thermalConductivity: 0.04
   heatCapacity: 10000
 
 - type: tile
   canCrowbar: false
   footstepSounds:
     collection: FootstepAsteroid
-  friction: 0.30
-  thermalConductivity: 0.04
   heatCapacity: 10000
 
 - type: tile
   footstepSounds:
     collection: BarestepCarpet
   friction: 0.20 #slippy
-  thermalConductivity: 0.04
   heatCapacity: 10000
 
 - type: tile
   canCrowbar: true
   footstepSounds:
     collection: FootstepHull
-  friction: 0.30
   itemDrop: FloorTileItemSteelMaint
-  thermalConductivity: 0.04
   heatCapacity: 10000
 
 - type: tile
   canCrowbar: true
   footstepSounds:
     collection: FootstepHull
-  friction: 0.30
   itemDrop: FloorTileItemGratingMaint
-  thermalConductivity: 0.04
   heatCapacity: 10000
 
 - type: tile
     collection: FootstepWood
   barestepSounds:
     collection: BarestepWood
-  friction: 0.30
   itemDrop: FloorTileItemWoodPattern
-  thermalConductivity: 0.04
   heatCapacity: 10000
index c67c7994d47dea432b59d467cec0a39922e3a3b3..dab33732ab4681ba0e06bcc71784d35bdefc0ce9 100644 (file)
@@ -1,3 +1,16 @@
+- type: tile
+  id: FloorPlanetDirt
+  name: tiles-dirt-floor
+  sprite: /Textures/Tiles/dirt.png
+  variants: 4
+  placementVariants: [0, 1, 2, 3]
+  isSubfloor: true
+  canCrowbar: false
+  footstepSounds:
+    collection: FootstepAsteroid
+  heatCapacity: 10000
+  weather: true
+
 # Desert
 - type: tile
   id: FloorDesert
@@ -9,8 +22,6 @@
   canCrowbar: false
   footstepSounds:
     collection: FootstepAsteroid
-  friction: 0.30
-  thermalConductivity: 0.04
   heatCapacity: 10000
   weather: true
 
@@ -24,8 +35,6 @@
   canCrowbar: false
   footstepSounds:
     collection: FootstepAsteroid
-  friction: 0.30
-  thermalConductivity: 0.04
   heatCapacity: 10000
   weather: true
 
   cardinalSprites:
   - /Textures/Tiles/Planet/Grass/double_edge.png
   baseTurfs:
-  - FloorDirt
+  - FloorPlanetDirt
   isSubfloor: true
   canCrowbar: false
   footstepSounds:
     collection: FootstepGrass
-  friction: 0.30
   itemDrop: FloorTileItemGrass
-  thermalConductivity: 0.04
   heatCapacity: 10000
   weather: true
 
@@ -61,8 +68,6 @@
   canCrowbar: false
   footstepSounds:
     collection: FootstepAsteroid
-  friction: 0.30
-  thermalConductivity: 0.04
   heatCapacity: 10000
   weather: true
 
@@ -82,7 +87,6 @@
   footstepSounds:
     collection: FootstepSnow
   friction: 0.20
-  thermalConductivity: 0.04
   heatCapacity: 10000
   weather: true
 
index 43989050613bf6671708913bf821c73b1fbff57e..191069c1940a380a2ecc1788b15a8405590ff6e9 100644 (file)
@@ -8,7 +8,6 @@
   footstepSounds:
     collection: FootstepPlating
   friction: 0.5
-  thermalConductivity: 0.04
   heatCapacity: 10000
 
 - type: tile
@@ -24,7 +23,6 @@
   friction: 0.5
   isSpace: true
   itemDrop: PartRodMetal1
-  thermalConductivity: 0.04
   heatCapacity: 10000
 
 # The final step in underplating's deprecation before it gets completely wiped from the codebase.
index 59b1c3acaeb0273a20db141e16a48d53df67f1d1..c769a8fa996bc0686346d77bea510aad46480fca 100644 (file)
@@ -97,7 +97,7 @@
     # Fill remainder with sand.
     - !type:BiomeTileLayer
       threshold: 0
-      tile: FloorAsteroidSand
+      tile: FloorPlanetDirt
     - !type:BiomeTileLayer
       threshold: 0.5
       tile: FloorPlanetGrass