using Content.Server.Cargo.Components;
using Content.Server.Cargo.Systems;
using Content.Server.GameTicking.Rules.Components;
using Content.Server._White.AspectsSystem.Aspects.Components;
using Content.Server._White.AspectsSystem.Base;
using Content.Server.GameTicking.Components;
namespace Content.Server._White.AspectsSystem.Aspects;
public sealed class CargoRichAspect : AspectSystem<CargoRichAspectComponent>
{
[Dependency] private readonly CargoSystem _cargoSystem = default!;
protected override void Added(EntityUid uid, CargoRichAspectComponent component, GameRuleComponent gameRule, GameRuleAddedEvent args)
base.Added(uid, component, gameRule, args);
if (!TryGetRandomStation(out var station))
return;
if (!TryComp<StationBankAccountComponent>(station, out var stationBankAccountComponent))
_cargoSystem.UpdateBankAccount(station, stationBankAccountComponent, 100000);
}