From 532871475286e4caaa6212d0f5196b138dbbc9c2 Mon Sep 17 00:00:00 2001 From: Ed Date: Sun, 15 Jun 2025 21:43:58 +0300 Subject: [PATCH] fix c# --- .../Trading/CP14StationEconomySystem.Price.cs | 30 ------------------- .../_CP14/Trading/CP14StationEconomySystem.cs | 1 - 2 files changed, 31 deletions(-) delete mode 100644 Content.Server/_CP14/Trading/CP14StationEconomySystem.Price.cs diff --git a/Content.Server/_CP14/Trading/CP14StationEconomySystem.Price.cs b/Content.Server/_CP14/Trading/CP14StationEconomySystem.Price.cs deleted file mode 100644 index fb8de8ca1e..0000000000 --- a/Content.Server/_CP14/Trading/CP14StationEconomySystem.Price.cs +++ /dev/null @@ -1,30 +0,0 @@ -using Content.Server.Cargo.Systems; -using Content.Shared.Weapons.Melee; - -namespace Content.Server._CP14.Trading; - -public sealed partial class CP14StationEconomySystem -{ - private void InitPriceEvents() - { - SubscribeLocalEvent(OnMeleeWeaponPriceCalculation); - } - - private void OnMeleeWeaponPriceCalculation(Entity ent, ref PriceCalculationEvent args) - { - //double price = 0; - //var dps = ent.Comp.Damage.GetTotal() * ent.Comp.AttackRate; - //if (dps <= 0) - // return; -// - //price += dps.Value; -// - //if (ent.Comp.ResetOnHandSelected == false) - // price *= 1.5; // If the weapon doesn't reset on hand selection, it's more valuable. -// - //if (ent.Comp.AltDisarm) - // price *= 1.5; // If the weapon has an alt disarm, it's more valuable. -// - //args.Price += price * 0.1f; - } -} diff --git a/Content.Server/_CP14/Trading/CP14StationEconomySystem.cs b/Content.Server/_CP14/Trading/CP14StationEconomySystem.cs index 93b8f67b61..b6cd524ed0 100644 --- a/Content.Server/_CP14/Trading/CP14StationEconomySystem.cs +++ b/Content.Server/_CP14/Trading/CP14StationEconomySystem.cs @@ -17,7 +17,6 @@ public sealed partial class CP14StationEconomySystem : CP14SharedStationEconomyS public override void Initialize() { base.Initialize(); - InitPriceEvents(); SubscribeLocalEvent(OnStationPostInit); SubscribeLocalEvent(OnPrototypesReloaded);