From 6eeaa589887f6169ec90024cd9b17b498e18fd1d Mon Sep 17 00:00:00 2001 From: Swept Date: Thu, 7 Jan 2021 10:35:39 +0000 Subject: [PATCH] HandheldLights no longer drain their batteries in 20 seconds. (#2942) * Initial * Update Content.Server/GameObjects/Components/Interactable/HandheldLightComponent.cs Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> --- .../Components/Interactable/HandheldLightComponent.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Content.Server/GameObjects/Components/Interactable/HandheldLightComponent.cs b/Content.Server/GameObjects/Components/Interactable/HandheldLightComponent.cs index 7c3862ccd5..3c080701cb 100644 --- a/Content.Server/GameObjects/Components/Interactable/HandheldLightComponent.cs +++ b/Content.Server/GameObjects/Components/Interactable/HandheldLightComponent.cs @@ -1,4 +1,4 @@ -#nullable enable +#nullable enable using System.Threading.Tasks; using Content.Server.GameObjects.Components.Atmos; using Content.Server.GameObjects.Components.GUI; @@ -38,7 +38,7 @@ namespace Content.Server.GameObjects.Components.Interactable [RegisterComponent] internal sealed class HandheldLightComponent : SharedHandheldLightComponent, IUse, IExamine, IInteractUsing { - [ViewVariables(VVAccess.ReadWrite)] public float Wattage { get; set; } = 10f; + [ViewVariables(VVAccess.ReadWrite)] public float Wattage { get; set; } [ViewVariables] private PowerCellSlotComponent _cellSlot = default!; private PowerCellComponent? Cell => _cellSlot.Cell; @@ -64,7 +64,7 @@ namespace Content.Server.GameObjects.Components.Interactable public override void ExposeData(ObjectSerializer serializer) { base.ExposeData(serializer); - serializer.DataField(this, x => x.Wattage, "wattage", 10f); + serializer.DataField(this, x => x.Wattage, "wattage", 3f); serializer.DataField(ref TurnOnSound, "turnOnSound", "/Audio/Items/flashlight_toggle.ogg"); serializer.DataField(ref TurnOnFailSound, "turnOnFailSound", "/Audio/Machines/button.ogg"); serializer.DataField(ref TurnOffSound, "turnOffSound", "/Audio/Items/flashlight_toggle.ogg");