From 467fe23795aba91815b3a0c564f044bc9b2f5e6f Mon Sep 17 00:00:00 2001 From: ScarKy0 <106310278+ScarKy0@users.noreply.github.com> Date: Mon, 21 Apr 2025 12:32:14 +0200 Subject: [PATCH] Further Allocation Tweaks (#36800) * init * fix lockboxes --- Content.Server/Cargo/Systems/CargoSystem.Shuttle.cs | 4 ++-- .../Cargo/Components/OverrideSellComponent.cs | 6 ++++++ .../Cargo/Components/StationBankAccountComponent.cs | 10 +++++----- 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/Content.Server/Cargo/Systems/CargoSystem.Shuttle.cs b/Content.Server/Cargo/Systems/CargoSystem.Shuttle.cs index aaa14d196f..ce2642e1b6 100644 --- a/Content.Server/Cargo/Systems/CargoSystem.Shuttle.cs +++ b/Content.Server/Cargo/Systems/CargoSystem.Shuttle.cs @@ -342,8 +342,8 @@ public sealed partial class CargoSystem { distribution = new Dictionary, double> { - { sellComponent.OverrideAccount, bankAccount.PrimaryCut }, - { bankAccount.PrimaryAccount, 1.0 - bankAccount.PrimaryCut }, + { sellComponent.OverrideAccount, sellComponent.OverrideCut }, + { bankAccount.PrimaryAccount, 1.0 - sellComponent.OverrideCut }, }; } else diff --git a/Content.Shared/Cargo/Components/OverrideSellComponent.cs b/Content.Shared/Cargo/Components/OverrideSellComponent.cs index 7d798c9ad1..13e72486ec 100644 --- a/Content.Shared/Cargo/Components/OverrideSellComponent.cs +++ b/Content.Shared/Cargo/Components/OverrideSellComponent.cs @@ -14,4 +14,10 @@ public sealed partial class OverrideSellComponent : Component /// [DataField(required: true)] public ProtoId OverrideAccount; + + /// + /// The cut that the OverrideAccount will get from the price. The rest is given to the primary station account. + /// + [DataField] + public float OverrideCut = 0.75f; } diff --git a/Content.Shared/Cargo/Components/StationBankAccountComponent.cs b/Content.Shared/Cargo/Components/StationBankAccountComponent.cs index 701238926b..a52f5ee61c 100644 --- a/Content.Shared/Cargo/Components/StationBankAccountComponent.cs +++ b/Content.Shared/Cargo/Components/StationBankAccountComponent.cs @@ -21,7 +21,7 @@ public sealed partial class StationBankAccountComponent : Component /// When giving funds to a particular account, the proportion of funds they should receive compared to remaining accounts. /// [DataField, AutoNetworkedField] - public double PrimaryCut = 0.75; + public double PrimaryCut = 0.50; /// /// A dictionary corresponding to the money held by each cargo account. @@ -44,11 +44,11 @@ public sealed partial class StationBankAccountComponent : Component public Dictionary, double> RevenueDistribution = new() { { "Cargo", 0.00 }, - { "Engineering", 0.25 }, - { "Medical", 0.25 }, - { "Science", 0.15 }, + { "Engineering", 0.20 }, + { "Medical", 0.20 }, + { "Science", 0.20 }, { "Security", 0.20 }, - { "Service", 0.15 }, + { "Service", 0.20 }, }; /// -- 2.51.2