Skip to content

Commit

Permalink
Revert "Nyano port of digging (#400)" (#1452)
Browse files Browse the repository at this point in the history
This reverts commit 089398d
  • Loading branch information
NullWanderer authored Jul 1, 2024
1 parent 46d6c80 commit ee4dd88
Show file tree
Hide file tree
Showing 30 changed files with 3 additions and 370 deletions.
102 changes: 0 additions & 102 deletions Content.Server/Nyanotrasen/Digging/DiggingSystem.cs

This file was deleted.

4 changes: 0 additions & 4 deletions Content.Shared/Maps/ContentTileDefinition.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,6 @@ public sealed partial class ContentTileDefinition : IPrototype, IInheritingProto
[DataField]
public PrototypeFlags<ToolQualityPrototype> DeconstructTools { get; set; } = new();

// Delta V
[DataField("canShovel")] public bool CanShovel { get; private set; }
//Delta V

/// <remarks>
/// Legacy AF but nice to have.
/// </remarks>
Expand Down
15 changes: 0 additions & 15 deletions Content.Shared/Maps/TileSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,22 +104,7 @@ public bool PryTile(TileRef tileRef, bool pryPlating)

return DeconstructTile(tileRef);
}
// Delta V
public bool DigTile(TileRef tileRef)
{
var tile = tileRef.Tile;

if (tile.IsEmpty)
return false;

var tileDef = (ContentTileDefinition) _tileDefinitionManager[tile.TypeId];

if (!tileDef.CanShovel)
return false;

return DeconstructTile(tileRef);
}
// Delta V
public bool ReplaceTile(TileRef tileref, ContentTileDefinition replacementTile)
{
if (!TryComp<MapGridComponent>(tileref.GridUid, out var grid))
Expand Down
29 changes: 0 additions & 29 deletions Content.Shared/Nyanotrasen/Digging/DiggingEvents.cs

This file was deleted.

22 changes: 0 additions & 22 deletions Content.Shared/Nyanotrasen/Digging/EarthDiggingComponent.cs

This file was deleted.

4 changes: 0 additions & 4 deletions Resources/Audio/Nyanotrasen/Items/attributions.yml

This file was deleted.

Binary file removed Resources/Audio/Nyanotrasen/Items/shovel_dig.ogg
Binary file not shown.
7 changes: 0 additions & 7 deletions Resources/Prototypes/Entities/Objects/Tools/tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -562,13 +562,6 @@
Wood: 50
- type: StaticPrice
price: 25
# Delta V: Adds tool quality for digging
- type: Tool
qualities:
- Digging
useSound:
path: /Audio/Nyanotrasen/Items/shovel_dig.ogg
- type: EarthDigging
- type: Shovel

- type: entity
Expand Down
63 changes: 0 additions & 63 deletions Resources/Prototypes/Nyanotrasen/Entities/Objects/Misc/tiles.yml

This file was deleted.

23 changes: 0 additions & 23 deletions Resources/Prototypes/Nyanotrasen/Stacks/floor_tile_stacks.yml

This file was deleted.

20 changes: 0 additions & 20 deletions Resources/Prototypes/Nyanotrasen/Tiles/floors.yml

This file was deleted.

6 changes: 0 additions & 6 deletions Resources/Prototypes/Nyanotrasen/tool_qualities.yml

This file was deleted.

14 changes: 3 additions & 11 deletions Resources/Prototypes/Tiles/floors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@
collection: FootstepHull
itemDrop: FloorTileItemBrassFilled
heatCapacity: 10000

- type: tile
id: FloorBrassReebe
name: tiles-brass-floor-reebe
Expand Down Expand Up @@ -1446,7 +1446,6 @@
sprite: /Textures/Tiles/grass.png
baseTurf: FloorDirt
isSubfloor: true
canShovel: true #DV
footstepSounds:
collection: FootstepGrass
itemDrop: FloorTileItemGrass
Expand All @@ -1459,7 +1458,6 @@
sprite: /Textures/Tiles/grassjungle.png
baseTurf: FloorDirt
isSubfloor: true
canShovel: true # Delta V
footstepSounds:
collection: FootstepGrass
itemDrop: FloorTileItemGrassJungle
Expand All @@ -1478,10 +1476,8 @@
- 1.0
baseTurf: FloorDirt
isSubfloor: true
canShovel: true # Delta V
footstepSounds:
collection: FootstepGrass
itemDrop: FloorTileItemGrassDark # Delta V
heatCapacity: 10000
weather: true

Expand All @@ -1497,10 +1493,8 @@
- 1.0
baseTurf: FloorDirt
isSubfloor: true
canShovel: true # Delta V
footstepSounds:
collection: FootstepGrass
itemDrop: FloorTileItemGrassLight
heatCapacity: 10000
weather: true

Expand All @@ -1516,12 +1510,10 @@
- 1.0
baseTurf: Plating
isSubfloor: true
canShovel: true # Delta V
footstepSounds:
collection: FootstepAsteroid
itemDrop: FloorTileItemDirt # Delta V
heatCapacity: 10000
weather: True
weather: true

# Asteroid

Expand Down Expand Up @@ -1940,4 +1932,4 @@
barestepSounds:
collection: BarestepWood
itemDrop: FloorTileItemWoodLarge
heatCapacity: 10000
heatCapacity: 10000
Loading

0 comments on commit ee4dd88

Please sign in to comment.