fix c#
This commit is contained in:
@@ -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<MeleeWeaponComponent, PriceCalculationEvent>(OnMeleeWeaponPriceCalculation);
|
||||
}
|
||||
|
||||
private void OnMeleeWeaponPriceCalculation(Entity<MeleeWeaponComponent> 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;
|
||||
}
|
||||
}
|
||||
@@ -17,7 +17,6 @@ public sealed partial class CP14StationEconomySystem : CP14SharedStationEconomyS
|
||||
public override void Initialize()
|
||||
{
|
||||
base.Initialize();
|
||||
InitPriceEvents();
|
||||
|
||||
SubscribeLocalEvent<CP14StationEconomyComponent, StationPostInitEvent>(OnStationPostInit);
|
||||
SubscribeLocalEvent<PrototypesReloadedEventArgs>(OnPrototypesReloaded);
|
||||
|
||||
Reference in New Issue
Block a user