Fixes flashlight lighting direction mismatch when dropped (#22417)

## About PR

Makes it so lighting system recognizes the direction flashlight is
facing when dropped, so it no longer defaults to south

The reasoning behind this method is,


https://github.com/Aurorastation/Aurora.3/blob/38a5988115e33594fcc9e9fafd08d474bbf76967/code/datums/components/overlay_lighting.dm#L503-L509

items don't update their directions when held and carried around, and
`set_dir()` is where the signal is sent which system listens to

also removes an unused var
This commit is contained in:
Kano
2026-05-11 18:13:03 +00:00
committed by GitHub
parent 417e969ce4
commit 4285cc90ea
3 changed files with 16 additions and 2 deletions
+5
View File
@@ -24,6 +24,11 @@
drop_sound = 'sound/items/drop/helm.ogg'
pickup_sound = 'sound/items/pickup/helm.ogg'
/obj/item/clothing/head/hardhat/dropped(mob/user)
. = ..()
if(user?.dir)
set_dir(user.dir)
/obj/item/clothing/head/hardhat/orange
icon_state = "hardhat_orange"
item_state = "hardhat_orange"