mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 04:30:44 +01:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user