mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-25 06:00:16 +01:00
Fix MOD NVG (non-visor variant) (#93343)
## About The Pull Request Someone mixed `ADD_TRAIT` and `add_traits` in their head. <img width="1266" height="998" alt="изображение" src="https://github.com/user-attachments/assets/c6055629-ee76-4b31-a7e8-41a1fbb4ef5e" /> ## Why It's Good For The Game bug bad, runtime bad, working nukie suits gud closes https://github.com/tgstation/tgstation/issues/93216 ## Changelog 🆑 fix: fixed not working MOD suit NVGs /🆑
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(mob/activator)
|
||||
mod.wearer.add_traits(mod.wearer, 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(mob/activator, display_message = TRUE, deleting = FALSE)
|
||||
mod.wearer.remove_traits(mod.wearer, 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