Fixes some YAML linter errors.

The remaining errors are mostly the linter being overzealous.
This commit is contained in:
Vera Aguilera Puerto
2021-11-12 11:22:36 +01:00
parent 14c1c0ea8c
commit 872bc79cf8
9 changed files with 38 additions and 14 deletions

View File

@@ -224,7 +224,7 @@ namespace Content.Server.Physics.Controllers
{ {
// Walking on a tile. // Walking on a tile.
var def = (ContentTileDefinition) _tileDefinitionManager[tile.Tile.TypeId]; var def = (ContentTileDefinition) _tileDefinitionManager[tile.Tile.TypeId];
soundToPlay = def.FootstepSounds.GetSound(); soundToPlay = def.FootstepSounds?.GetSound();
if (string.IsNullOrEmpty(soundToPlay)) if (string.IsNullOrEmpty(soundToPlay))
return; return;
} }

View File

@@ -32,7 +32,7 @@ namespace Content.Shared.Maps
[DataField("can_crowbar")] public bool CanCrowbar { get; private set; } [DataField("can_crowbar")] public bool CanCrowbar { get; private set; }
[DataField("footstep_sounds", required: true)] public SoundSpecifier FootstepSounds { get; } = default!; [DataField("footstep_sounds")] public SoundSpecifier? FootstepSounds { get; }
[DataField("friction")] public float Friction { get; set; } [DataField("friction")] public float Friction { get; set; }

View File

@@ -9,14 +9,3 @@
- type: Physics - type: Physics
- type: Clickable - type: Clickable
- type: InteractionOutline - type: InteractionOutline
- type: entity
name: somebody-messed-up frame
id: structureconstructionframe
abstract: true
components:
- type: Sprite
- type: Construction
- type: Physics
- type: Clickable
- type: InteractionOutline

View File

@@ -52,6 +52,7 @@
- type: Sprite - type: Sprite
state: glass state: glass
- type: Stack - type: Stack
stackType: Glass
count: 1 count: 1
- type: entity - type: entity
@@ -92,6 +93,7 @@
- type: Sprite - type: Sprite
state: rglass state: rglass
- type: Stack - type: Stack
stackType: ReinforcedGlass
count: 1 count: 1
- type: entity - type: entity
@@ -129,6 +131,7 @@
- type: Sprite - type: Sprite
state: pglass state: pglass
- type: Stack - type: Stack
stackType: PlasmaGlass
count: 1 count: 1
- type: entity - type: entity
@@ -166,6 +169,7 @@
- type: Sprite - type: Sprite
state: rpglass state: rpglass
- type: Stack - type: Stack
stackType: ReinforcedPlasmaGlass
count: 1 count: 1
- type: entity - type: entity
@@ -200,6 +204,7 @@
- type: Sprite - type: Sprite
state: titaniumglass state: titaniumglass
- type: Stack - type: Stack
stackType: TitaniumGlass
count: 1 count: 1
- type: entity - type: entity
@@ -234,4 +239,5 @@
- type: Sprite - type: Sprite
state: plastitaniumglass state: plastitaniumglass
- type: Stack - type: Stack
stackType: PlastitaniumGlass
count: 1 count: 1

View File

@@ -49,6 +49,7 @@
- type: Sprite - type: Sprite
state: steel state: steel
- type: Stack - type: Stack
stackType: Steel
count: 1 count: 1
- type: entity - type: entity
@@ -83,6 +84,7 @@
- type: Sprite - type: Sprite
state: plasteel state: plasteel
- type: Stack - type: Stack
stackType: Plasteel
count: 1 count: 1
- type: entity - type: entity
@@ -117,6 +119,7 @@
- type: Sprite - type: Sprite
state: titanium state: titanium
- type: Stack - type: Stack
stackType: Titanium
count: 1 count: 1
- type: entity - type: entity
@@ -151,6 +154,7 @@
- type: Sprite - type: Sprite
state: plastitanium state: plastitanium
- type: Stack - type: Stack
stackType: Plastitanium
count: 1 count: 1
- type: entity - type: entity
@@ -185,4 +189,5 @@
- type: Sprite - type: Sprite
state: brass state: brass
- type: Stack - type: Stack
stackType: Brass
count: 1 count: 1

View File

@@ -15,6 +15,7 @@
- type: DeleteOnTrigger - type: DeleteOnTrigger
- type: TriggerOnCollide - type: TriggerOnCollide
- type: Projectile - type: Projectile
damage: {}
deleteOnCollide: false deleteOnCollide: false
- type: Explosive - type: Explosive
devastationRange: 3 devastationRange: 3

View File

@@ -1,55 +1,69 @@
- type: stack - type: stack
id: FloorTileSteel id: FloorTileSteel
name: steel tile name: steel tile
spawn: FloorTileItemSteel
- type: stack - type: stack
id: FloorTileWood id: FloorTileWood
name: wood floor name: wood floor
spawn: FloorTileItemWood
- type: stack - type: stack
id: FloorTileWhite id: FloorTileWhite
name: white tile name: white tile
spawn: FloorTileItemWhite
- type: stack - type: stack
id: FloorTileDark id: FloorTileDark
name: dark tile name: dark tile
spawn: FloorTileItemDark
- type: stack - type: stack
id: FloorTileTechmaint id: FloorTileTechmaint
name: techmaint floor name: techmaint floor
spawn: FloorTileItemTechmaint
- type: stack - type: stack
id: FloorTileFreezer id: FloorTileFreezer
name: freezer tile name: freezer tile
spawn: FloorTileItemFreezer
- type: stack - type: stack
id: FloorTileShowroom id: FloorTileShowroom
name: showroom tile name: showroom tile
spawn: FloorTileItemShowroom
- type: stack - type: stack
id: FloorTileGCircuit id: FloorTileGCircuit
name: green-circuit floor name: green-circuit floor
spawn: FloorTileItemGCircuit
- type: stack - type: stack
id: FloorTileGold id: FloorTileGold
name: gold floor name: gold floor
spawn: FloorTileItemGold
- type: stack - type: stack
id: FloorTileReinforced id: FloorTileReinforced
name: reinforced tile name: reinforced tile
spawn: FloorTileItemReinforced
- type: stack - type: stack
id: FloorTileMono id: FloorTileMono
name: mono tile name: mono tile
spawn: FloorTileItemMono
- type: stack - type: stack
id: FloorTileLino id: FloorTileLino
name: linoleum floor name: linoleum floor
spawn: FloorTileItemLino
- type: stack - type: stack
id: FloorTileHydro id: FloorTileHydro
name: hydro tile name: hydro tile
spawn: FloorTileItemHydro
- type: stack - type: stack
id: FloorTileDirty id: FloorTileDirty
name: dirty tile name: dirty tile
spawn: FloorTileItemDirty

View File

@@ -1,11 +1,17 @@
- type: stack - type: stack
id: Ointment id: Ointment
name: ointment name: ointment
icon: "/Textures/Objects/Specific/Medical/medical.rsi/ointment.png"
spawn: Ointment
- type: stack - type: stack
id: Gauze id: Gauze
name: gauze name: gauze
icon: "/Textures/Objects/Specific/Medical/medical.rsi/gauze.png"
spawn: Gauze
- type: stack - type: stack
id: Brutepack id: Brutepack
name: brutepack name: brutepack
icon: "/Textures/Objects/Specific/Medical/medical.rsi/gauze.png"
spawn: Brutepack

View File

@@ -7,8 +7,11 @@
- type: stack - type: stack
id: CableMV id: CableMV
name: mv cable name: mv cable
spawn: CableHVStack1 icon: "/Textures/Objects/Tools/cable-coils.rsi/coilmv-30.png"
spawn: CableMVStack1
- type: stack - type: stack
id: CableHV id: CableHV
name: hv cable name: hv cable
icon: "/Textures/Objects/Tools/cable-coils.rsi/coilhv-30.png"
spawn: CableHVStack1