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 { [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(station, out var stationBankAccountComponent)) return; _cargoSystem.UpdateBankAccount(station, stationBankAccountComponent, 100000); } }