Fix bug where fuel wouldn't be consumed
This commit is contained in:
@@ -35,12 +35,12 @@ namespace Content.Server.GameObjects.Components.Interactable
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Default Cost of using the welder fuel for an action
|
/// Default Cost of using the welder fuel for an action
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public const float DefaultFuelCost = 5;
|
public const float DefaultFuelCost = 10;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Rate at which we expunge fuel from ourselves when activated
|
/// Rate at which we expunge fuel from ourselves when activated
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public const float FuelLossRate = 0.2f;
|
public const float FuelLossRate = 0.5f;
|
||||||
|
|
||||||
#pragma warning disable 649
|
#pragma warning disable 649
|
||||||
[Dependency] private IEntitySystemManager _entitySystemManager;
|
[Dependency] private IEntitySystemManager _entitySystemManager;
|
||||||
@@ -200,8 +200,6 @@ namespace Content.Server.GameObjects.Components.Interactable
|
|||||||
|
|
||||||
_solutionComponent.TryRemoveReagent("chem.WeldingFuel", ReagentUnit.New(FuelLossRate * frameTime));
|
_solutionComponent.TryRemoveReagent("chem.WeldingFuel", ReagentUnit.New(FuelLossRate * frameTime));
|
||||||
|
|
||||||
Logger.Info(_solutionComponent.Solution.GetReagentQuantity("chem.WeldingFuel").ToString());
|
|
||||||
|
|
||||||
if (Fuel == 0)
|
if (Fuel == 0)
|
||||||
{
|
{
|
||||||
ToggleWelderStatus();
|
ToggleWelderStatus();
|
||||||
|
|||||||
@@ -54,12 +54,12 @@
|
|||||||
- type: MeleeWeapon
|
- type: MeleeWeapon
|
||||||
- type: ItemStatus
|
- type: ItemStatus
|
||||||
- type: Solution
|
- type: Solution
|
||||||
maxVol: 50
|
maxVol: 100
|
||||||
caps: 9
|
caps: 9
|
||||||
contents:
|
contents:
|
||||||
reagents:
|
reagents:
|
||||||
- ReagentId: chem.WeldingFuel
|
- ReagentId: chem.WeldingFuel
|
||||||
Quantity: 50
|
Quantity: 100
|
||||||
- type: Tool
|
- type: Tool
|
||||||
behavior: enum.Tool.Welder
|
behavior: enum.Tool.Welder
|
||||||
useSoundCollection: Welder
|
useSoundCollection: Welder
|
||||||
|
|||||||
Reference in New Issue
Block a user