Resolve 'TransformComponent.MapPosition' is obsolete in content (#27939)
* Resolve `'TransformComponent.MapPosition' is obsolete: 'Use TransformSystem.GetMapCoordinates'` in content * build?
This commit is contained in:
@@ -2,6 +2,7 @@ using Content.Server.Explosion.EntitySystems;
|
||||
using Content.Server.Lightning;
|
||||
using Content.Server.Lightning.Components;
|
||||
using Content.Shared.Damage;
|
||||
using Robust.Server.GameObjects;
|
||||
|
||||
namespace Content.Server.Tesla.EntitySystems;
|
||||
|
||||
@@ -12,6 +13,7 @@ public sealed class LightningTargetSystem : EntitySystem
|
||||
{
|
||||
[Dependency] private readonly DamageableSystem _damageable = default!;
|
||||
[Dependency] private readonly ExplosionSystem _explosionSystem = default!;
|
||||
[Dependency] private readonly TransformSystem _transform = default!;
|
||||
|
||||
public override void Initialize()
|
||||
{
|
||||
@@ -29,7 +31,7 @@ public sealed class LightningTargetSystem : EntitySystem
|
||||
if (uid.Comp.LightningExplode)
|
||||
{
|
||||
_explosionSystem.QueueExplosion(
|
||||
Transform(uid).MapPosition,
|
||||
_transform.GetMapCoordinates(uid),
|
||||
uid.Comp.ExplosionPrototype,
|
||||
uid.Comp.TotalIntensity, uid.Comp.Dropoff,
|
||||
uid.Comp.MaxTileIntensity,
|
||||
|
||||
Reference in New Issue
Block a user