Comment out unused variables (#3713)

* Comment out unused variables

* Address reviews

* Address more reviews
This commit is contained in:
ShadowCommander
2021-05-31 15:01:13 -07:00
committed by GitHub
parent 67ae601863
commit 1d94ebdca5
6 changed files with 18 additions and 24 deletions

View File

@@ -36,9 +36,6 @@ namespace Content.Server.GameObjects.Components.Atmos
private const float MaxExplosionRange = 14f;
private const float DefaultOutputPressure = Atmospherics.OneAtmosphere;
[DataField("pressureResistance")]
private float _pressureResistance = Atmospherics.OneAtmosphere * 5f;
private int _integrity = 3;
[ComponentDependency] private readonly ItemActionsComponent? _itemActions = null;

View File

@@ -23,31 +23,31 @@ namespace Content.Server.GameObjects.Components.Body.Behavior
/// <summary>
/// Whether the liver is functional.
/// </summary>
[ViewVariables] private bool _liverFailing = false;
//[ViewVariables] private bool _liverFailing = false;
/// <summary>
/// Modifier for alcohol damage.
/// </summary>
[DataField("alcoholLethality")]
[ViewVariables] private float _alcoholLethality = 0.005f;
//[DataField("alcoholLethality")]
//[ViewVariables] private float _alcoholLethality = 0.005f;
/// <summary>
/// Modifier for alcohol damage.
/// </summary>
[DataField("alcoholExponent")]
[ViewVariables] private float _alcoholExponent = 1.6f;
//[DataField("alcoholExponent")]
//[ViewVariables] private float _alcoholExponent = 1.6f;
/// <summary>
/// Toxin volume that can be purged without damage.
/// </summary>
[DataField("toxinTolerance")]
[ViewVariables] private float _toxinTolerance = 3f;
//[DataField("toxinTolerance")]
//[ViewVariables] private float _toxinTolerance = 3f;
/// <summary>
/// Toxin damage modifier.
/// </summary>
[DataField("toxinLethality")]
[ViewVariables] private float _toxinLethality = 0.01f;
//[DataField("toxinLethality")]
//[ViewVariables] private float _toxinLethality = 0.01f;
/// <summary>
/// Loops through each reagent in _internalSolution,

View File

@@ -155,9 +155,9 @@ namespace Content.Server.GameObjects.Components.Doors
/// </summary>
private bool _beingWelded;
[ViewVariables(VVAccess.ReadWrite)]
[DataField("canCrush")]
private bool _canCrush = true;
//[ViewVariables(VVAccess.ReadWrite)]
//[DataField("canCrush")]
//private bool _canCrush = true; // TODO implement door crushing
protected override void Startup()
{

View File

@@ -51,7 +51,7 @@ namespace Content.Server.GameObjects.Components.Explosion
/// Max distance grenades can be thrown.
/// </summary>
[ViewVariables(VVAccess.ReadWrite)] [DataField("distance")]
private float _throwDistance = 3;
private float _throwDistance = 50;
/// <summary>
/// This is the end.
@@ -113,7 +113,7 @@ namespace Content.Server.GameObjects.Components.Explosion
thrownCount++;
// TODO: Suss out throw strength
grenade.TryThrow(angle.ToVec().Normalized * 50);
grenade.TryThrow(angle.ToVec().Normalized * _throwDistance);
grenade.SpawnTimer(delay, () =>
{

View File

@@ -1,4 +1,4 @@
#nullable enable
#nullable enable
using System.Threading.Tasks;
using Content.Server.GameObjects.Components.Items.Clothing;
using Content.Shared.GameObjects.Components;
@@ -47,8 +47,8 @@ namespace Content.Server.GameObjects.Components.Nutrition
/// For a regular cigar, the temp approaches around 400°C or 580°C
/// dependant on where you measure.
/// </summary>
[ViewVariables] [DataField("temperature")]
private float _temperature = 673.15f;
//[ViewVariables] [DataField("temperature")]
//private float _temperature = 673.15f;
[ViewVariables]
private SharedBurningStates CurrentState

View File

@@ -1,4 +1,4 @@
using System.Collections.Generic;
using System.Collections.Generic;
using System.Linq;
using Content.Server.GameObjects.Components.Chemistry;
using Content.Server.GameObjects.Components.Weapon.Ranged.Barrels;
@@ -12,9 +12,6 @@ namespace Content.Server.GameObjects.Components.Weapon.Ranged.Ammunition
{
public override string Name => "ChemicalAmmo";
[DataField("fractionTransfered")]
private float _fractionTransfered = 1;
public override void HandleMessage(ComponentMessage message, IComponent? component)
{
base.HandleMessage(message, component);