From 005e142949e4c209c2e1ebbf27f0c674ed9b31c8 Mon Sep 17 00:00:00 2001 From: daniel-cr Date: Tue, 22 Dec 2020 23:31:04 -0600 Subject: [PATCH] Make handheld explosives affect tiles (#2806) If you are holding the explosive in your hard or inventory, this should make affect the tiles around you. At the moment it only affects entities. I will refactor this class a little more. --- Content.Server/Explosions/ExplosionHelper.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Server/Explosions/ExplosionHelper.cs b/Content.Server/Explosions/ExplosionHelper.cs index 91d5f4f76e..fd7abd3a90 100644 --- a/Content.Server/Explosions/ExplosionHelper.cs +++ b/Content.Server/Explosions/ExplosionHelper.cs @@ -77,7 +77,7 @@ namespace Content.Server.Explosions //TODO: make it into some sort of actual damage component or whatever the boys think is appropriate if (mapManager.TryGetGrid(coords.GetGridId(entityManager), out var mapGrid)) { - var circle = new Circle(coords.Position, maxRange); + var circle = new Circle(coords.ToMapPos(entityManager), maxRange); var tiles = mapGrid?.GetTilesIntersecting(circle); foreach (var tile in tiles) {