Fix bug where fuel wouldn't be consumed

This commit is contained in:
zumorica
2020-04-29 14:10:22 +02:00
parent 0a44490acb
commit 6dd0b00512
2 changed files with 4 additions and 6 deletions

View File

@@ -35,12 +35,12 @@ namespace Content.Server.GameObjects.Components.Interactable
/// <summary>
/// Default Cost of using the welder fuel for an action
/// </summary>
public const float DefaultFuelCost = 5;
public const float DefaultFuelCost = 10;
/// <summary>
/// Rate at which we expunge fuel from ourselves when activated
/// </summary>
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();