From 1f177a044dfbff349af29212682c29925f263f46 Mon Sep 17 00:00:00 2001 From: Ephememory Date: Thu, 21 Nov 2019 09:23:09 -0500 Subject: [PATCH] Fix flashlight PointLight radius (#438) * Add radius to `HandheldLightComponent.cs` * Revert handheldlightcomponent and simply specify radius to flashlight in yaml. --- .../Components/Interactable/HandheldLightComponent.cs | 1 + Resources/Prototypes/Entities/items/flashlight.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/Content.Server/GameObjects/Components/Interactable/HandheldLightComponent.cs b/Content.Server/GameObjects/Components/Interactable/HandheldLightComponent.cs index 54fee05d1f..a2d11d706f 100644 --- a/Content.Server/GameObjects/Components/Interactable/HandheldLightComponent.cs +++ b/Content.Server/GameObjects/Components/Interactable/HandheldLightComponent.cs @@ -44,6 +44,7 @@ namespace Content.Server.GameObjects.Components.Interactable return cell; } } + public override string Name => "HandheldLight"; diff --git a/Resources/Prototypes/Entities/items/flashlight.yml b/Resources/Prototypes/Entities/items/flashlight.yml index a3ac37a74f..c0b21b011a 100644 --- a/Resources/Prototypes/Entities/items/flashlight.yml +++ b/Resources/Prototypes/Entities/items/flashlight.yml @@ -17,4 +17,5 @@ state: lantern_off - type: PointLight enabled: false + radius: 3 - type: Sound