This commit is contained in:
Quanteey 2025-08-04 19:07:04 +02:00
parent 564dc62fe1
commit 45e76947cc
3 changed files with 5 additions and 4 deletions

View File

@ -16,6 +16,7 @@ using Robust.Shared.Map;
using Robust.Shared.Physics.Components;
using Robust.Shared.Utility;
using System.Linq;
using Content.Server.Shuttles.Systems;
namespace Content.Server.Cargo.Systems;
@ -25,9 +26,9 @@ namespace Content.Server.Cargo.Systems;
public sealed partial class CargoSystem
{
[Dependency] private readonly GameTicker _ticker = default!;
[Dependency] private readonly IComponentFactory _factory = default!;
[Dependency] private readonly MapLoaderSystem _mapLoader = default!;
[Dependency] private readonly SharedMapSystem _map = default!;
[Dependency] private readonly ShuttleConsoleSystem _console = default!;
public EntityUid? CargoMap;
@ -88,7 +89,7 @@ public sealed partial class CargoSystem
{
Components =
[
_factory.GetComponentName(typeof(CargoShuttleComponent))
Factory.GetComponentName(typeof(CargoShuttleComponent))
]
};

View File

@ -13,7 +13,7 @@ public sealed partial class PricingSystem
/// <returns>The modified price.</returns>
private double ApplyPrototypePriceModifier(EntityPrototype prototype, double basePrice)
{
if (prototype.Components.TryGetValue(_factory.GetComponentName(typeof(PriceModifierComponent)),
if (prototype.Components.TryGetValue(Factory.GetComponentName(typeof(PriceModifierComponent)),
out var modProto))
{
var priceModifier = (PriceModifierComponent)modProto.Component;

View File

@ -154,7 +154,7 @@ namespace Content.Shared.StatusEffect
if (TryAddStatusEffect(uid, key, time, refresh, status))
{
EntityManager.AddComponent(uid, component, true);
status.ActiveEffects[key].RelevantComponent = _componentFactory.GetComponentName(component.GetType());
status.ActiveEffects[key].RelevantComponent = Factory.GetComponentName(component.GetType());
return true;
}