Comment out unused variables (#3713)
* Comment out unused variables * Address reviews * Address more reviews
This commit is contained in:
@@ -36,9 +36,6 @@ namespace Content.Server.GameObjects.Components.Atmos
|
|||||||
private const float MaxExplosionRange = 14f;
|
private const float MaxExplosionRange = 14f;
|
||||||
private const float DefaultOutputPressure = Atmospherics.OneAtmosphere;
|
private const float DefaultOutputPressure = Atmospherics.OneAtmosphere;
|
||||||
|
|
||||||
[DataField("pressureResistance")]
|
|
||||||
private float _pressureResistance = Atmospherics.OneAtmosphere * 5f;
|
|
||||||
|
|
||||||
private int _integrity = 3;
|
private int _integrity = 3;
|
||||||
|
|
||||||
[ComponentDependency] private readonly ItemActionsComponent? _itemActions = null;
|
[ComponentDependency] private readonly ItemActionsComponent? _itemActions = null;
|
||||||
|
|||||||
@@ -23,31 +23,31 @@ namespace Content.Server.GameObjects.Components.Body.Behavior
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether the liver is functional.
|
/// Whether the liver is functional.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[ViewVariables] private bool _liverFailing = false;
|
//[ViewVariables] private bool _liverFailing = false;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Modifier for alcohol damage.
|
/// Modifier for alcohol damage.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[DataField("alcoholLethality")]
|
//[DataField("alcoholLethality")]
|
||||||
[ViewVariables] private float _alcoholLethality = 0.005f;
|
//[ViewVariables] private float _alcoholLethality = 0.005f;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Modifier for alcohol damage.
|
/// Modifier for alcohol damage.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[DataField("alcoholExponent")]
|
//[DataField("alcoholExponent")]
|
||||||
[ViewVariables] private float _alcoholExponent = 1.6f;
|
//[ViewVariables] private float _alcoholExponent = 1.6f;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Toxin volume that can be purged without damage.
|
/// Toxin volume that can be purged without damage.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[DataField("toxinTolerance")]
|
//[DataField("toxinTolerance")]
|
||||||
[ViewVariables] private float _toxinTolerance = 3f;
|
//[ViewVariables] private float _toxinTolerance = 3f;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Toxin damage modifier.
|
/// Toxin damage modifier.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[DataField("toxinLethality")]
|
//[DataField("toxinLethality")]
|
||||||
[ViewVariables] private float _toxinLethality = 0.01f;
|
//[ViewVariables] private float _toxinLethality = 0.01f;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Loops through each reagent in _internalSolution,
|
/// Loops through each reagent in _internalSolution,
|
||||||
|
|||||||
@@ -155,9 +155,9 @@ namespace Content.Server.GameObjects.Components.Doors
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
private bool _beingWelded;
|
private bool _beingWelded;
|
||||||
|
|
||||||
[ViewVariables(VVAccess.ReadWrite)]
|
//[ViewVariables(VVAccess.ReadWrite)]
|
||||||
[DataField("canCrush")]
|
//[DataField("canCrush")]
|
||||||
private bool _canCrush = true;
|
//private bool _canCrush = true; // TODO implement door crushing
|
||||||
|
|
||||||
protected override void Startup()
|
protected override void Startup()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ namespace Content.Server.GameObjects.Components.Explosion
|
|||||||
/// Max distance grenades can be thrown.
|
/// Max distance grenades can be thrown.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[ViewVariables(VVAccess.ReadWrite)] [DataField("distance")]
|
[ViewVariables(VVAccess.ReadWrite)] [DataField("distance")]
|
||||||
private float _throwDistance = 3;
|
private float _throwDistance = 50;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// This is the end.
|
/// This is the end.
|
||||||
@@ -113,7 +113,7 @@ namespace Content.Server.GameObjects.Components.Explosion
|
|||||||
thrownCount++;
|
thrownCount++;
|
||||||
|
|
||||||
// TODO: Suss out throw strength
|
// TODO: Suss out throw strength
|
||||||
grenade.TryThrow(angle.ToVec().Normalized * 50);
|
grenade.TryThrow(angle.ToVec().Normalized * _throwDistance);
|
||||||
|
|
||||||
grenade.SpawnTimer(delay, () =>
|
grenade.SpawnTimer(delay, () =>
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#nullable enable
|
#nullable enable
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using Content.Server.GameObjects.Components.Items.Clothing;
|
using Content.Server.GameObjects.Components.Items.Clothing;
|
||||||
using Content.Shared.GameObjects.Components;
|
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
|
/// For a regular cigar, the temp approaches around 400°C or 580°C
|
||||||
/// dependant on where you measure.
|
/// dependant on where you measure.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[ViewVariables] [DataField("temperature")]
|
//[ViewVariables] [DataField("temperature")]
|
||||||
private float _temperature = 673.15f;
|
//private float _temperature = 673.15f;
|
||||||
|
|
||||||
[ViewVariables]
|
[ViewVariables]
|
||||||
private SharedBurningStates CurrentState
|
private SharedBurningStates CurrentState
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using Content.Server.GameObjects.Components.Chemistry;
|
using Content.Server.GameObjects.Components.Chemistry;
|
||||||
using Content.Server.GameObjects.Components.Weapon.Ranged.Barrels;
|
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";
|
public override string Name => "ChemicalAmmo";
|
||||||
|
|
||||||
[DataField("fractionTransfered")]
|
|
||||||
private float _fractionTransfered = 1;
|
|
||||||
|
|
||||||
public override void HandleMessage(ComponentMessage message, IComponent? component)
|
public override void HandleMessage(ComponentMessage message, IComponent? component)
|
||||||
{
|
{
|
||||||
base.HandleMessage(message, component);
|
base.HandleMessage(message, component);
|
||||||
|
|||||||
Reference in New Issue
Block a user