Fix night vision module (#92506)

<!-- Write **BELOW** The Headers and **ABOVE** The comments else it may
not be viewable. -->
<!-- You can view Contributing.MD for a detailed description of the pull
request process. -->

## About The Pull Request
Fix night vision module
before fix
<img width="666" height="78" alt="image"
src="https://github.com/user-attachments/assets/9f0548fb-5aa7-4484-b172-341057a41311"
/>
after fix


https://github.com/user-attachments/assets/620758c5-ba0d-46bb-b499-0340eea9d24b

## Why It's Good For The Game
item was broken, it will work now.
## Changelog

🆑
fix: night vision module can now be activated and turned off again.
/🆑

<!-- Both 🆑's are required for the changelog to work! You can put
your name to the right of the first 🆑 if you want to overwrite your
GitHub username as author ingame. -->
<!-- You can use multiple of the same prefix (they're only used for the
icon ingame) and delete the unneeded ones. Despite some of the tags,
changelogs should generally represent how a player might be affected by
the changes rather than a summary of the PR's contents. -->
This commit is contained in:
Maximal08
2025-08-11 20:17:02 +02:00
committed by GitHub
parent 525a7c1005
commit 47cc0a98e9
+2 -2
View File
@@ -92,9 +92,9 @@
required_slots = list(ITEM_SLOT_HEAD|ITEM_SLOT_EYES|ITEM_SLOT_MASK)
/obj/item/mod/module/night/on_activation()
mod.wearer.add_traits(TRAIT_TRUE_NIGHT_VISION, REF(src))
ADD_TRAIT(mod.wearer, TRAIT_TRUE_NIGHT_VISION, REF(src))
mod.wearer.update_sight()
/obj/item/mod/module/night/on_deactivation(display_message = TRUE, deleting = FALSE)
mod.wearer.remove_traits(TRAIT_TRUE_NIGHT_VISION, REF(src))
REMOVE_TRAIT(mod.wearer, TRAIT_TRUE_NIGHT_VISION, REF(src))
mod.wearer.update_sight()