From 6dd0b00512deb4c0266d2c8f97af1ea7ed4b488b Mon Sep 17 00:00:00 2001 From: zumorica Date: Wed, 29 Apr 2020 14:10:22 +0200 Subject: [PATCH] Fix bug where fuel wouldn't be consumed --- .../GameObjects/Components/Interactable/ToolComponent.cs | 6 ++---- Resources/Prototypes/Entities/Items/tools.yml | 4 ++-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/Content.Server/GameObjects/Components/Interactable/ToolComponent.cs b/Content.Server/GameObjects/Components/Interactable/ToolComponent.cs index 56cf116eb4..83feab60e4 100644 --- a/Content.Server/GameObjects/Components/Interactable/ToolComponent.cs +++ b/Content.Server/GameObjects/Components/Interactable/ToolComponent.cs @@ -35,12 +35,12 @@ namespace Content.Server.GameObjects.Components.Interactable /// /// Default Cost of using the welder fuel for an action /// - public const float DefaultFuelCost = 5; + public const float DefaultFuelCost = 10; /// /// Rate at which we expunge fuel from ourselves when activated /// - public const float FuelLossRate = 0.2f; + public const float FuelLossRate = 0.5f; #pragma warning disable 649 [Dependency] private IEntitySystemManager _entitySystemManager; @@ -200,8 +200,6 @@ namespace Content.Server.GameObjects.Components.Interactable _solutionComponent.TryRemoveReagent("chem.WeldingFuel", ReagentUnit.New(FuelLossRate * frameTime)); - Logger.Info(_solutionComponent.Solution.GetReagentQuantity("chem.WeldingFuel").ToString()); - if (Fuel == 0) { ToggleWelderStatus(); diff --git a/Resources/Prototypes/Entities/Items/tools.yml b/Resources/Prototypes/Entities/Items/tools.yml index 9ab807a6e6..ed87c27ee0 100644 --- a/Resources/Prototypes/Entities/Items/tools.yml +++ b/Resources/Prototypes/Entities/Items/tools.yml @@ -54,12 +54,12 @@ - type: MeleeWeapon - type: ItemStatus - type: Solution - maxVol: 50 + maxVol: 100 caps: 9 contents: reagents: - ReagentId: chem.WeldingFuel - Quantity: 50 + Quantity: 100 - type: Tool behavior: enum.Tool.Welder useSoundCollection: Welder