This commit is contained in:
Red
2025-06-01 21:55:20 +03:00
committed by GitHub
parent 5c5a473ec0
commit f6dd89ea7a
4 changed files with 18 additions and 13 deletions

View File

@@ -1,6 +1,4 @@
using Content.Server.Cargo.Systems;
using Content.Shared._CP14.MagicEnergy;
using Content.Shared._CP14.MagicEnergy.Components;
using Robust.Shared.Timing;
namespace Content.Server._CP14.MagicEnergy;
@@ -16,13 +14,6 @@ public sealed partial class CP14MagicEnergySystem : SharedCP14MagicEnergySystem
InitializeDraw();
InitializePortRelay();
SubscribeLocalEvent<CP14MagicEnergyContainerComponent, PriceCalculationEvent>(OnMagicPrice);
}
private void OnMagicPrice(Entity<CP14MagicEnergyContainerComponent> ent, ref PriceCalculationEvent args)
{
args.Price += ent.Comp.Energy.Double() * 0.1;
}
public override void Update(float frameTime)