Changed some function names on IMapGrid.

UnitTesting project is now filtered out of the code coverage.
This commit is contained in:
Acruid
2019-04-28 22:08:27 -07:00
parent b16768fd0b
commit 25b50ebb27
4 changed files with 7 additions and 5 deletions

View File

@@ -24,12 +24,12 @@ namespace Content.Server.GameObjects.Components.Interactable.Tools
public void AfterAttack(AfterAttackEventArgs eventArgs)
{
var mapGrid = _mapManager.GetGrid(eventArgs.ClickLocation.GridID);
var tile = mapGrid.GetTile(eventArgs.ClickLocation);
var tile = mapGrid.GetTileRef(eventArgs.ClickLocation);
var tileDef = (ContentTileDefinition)_tileDefinitionManager[tile.Tile.TypeId];
if (tileDef.CanCrowbar)
{
var underplating = _tileDefinitionManager["underplating"];
mapGrid.SetTile(eventArgs.ClickLocation, underplating.TileId);
mapGrid.SetTile(eventArgs.ClickLocation, new Tile(underplating.TileId));
_entitySystemManager.GetEntitySystem<AudioSystem>().Play("/Audio/items/crowbar.ogg", Owner);
}
}