mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-26 06:22:26 +01:00
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user