mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-30 16:47:13 +01:00
Disables all Heretic Robes to be swapped to non-functional mode (neck slot) (#5053)
## About The Pull Request Could fix: https://github.com/Bubberstation/Bubberstation/issues/5050 This PR adds all heretic robes to the `only_functional` blacklist that makes the robe unable to be switched to Non-Functional mode. This is a soft hack-fix but ultimately should be implemented anyways. There is an issue preventing specifically heretic robes from being stripped if equipped on the neck slot; thus making the wearer put the hood on whenever for the focus. This PR prevents all heretic robes to be used on the neck slot and must be worn on the suit slot. Additionally, I've added a message sent to your chat if you attempt to swap a blacklisted piece of suit into non-functional mode. ## Why It's Good For The Game This keeps the forced functional blacklist updated with items that should remain functional due to its mechanical use. ## Proof Of Testing <details> <summary>Screenshots/Videos</summary> https://github.com/user-attachments/assets/7b6e0d9b-69b9-41c9-943f-5ada9c634b68 </details> ## Changelog 🆑 fix: Fixed heretic robes functioning on the neck slot. code: Added a message to the chat when a suit can't swap to non-functional mode. /🆑 --------- Co-authored-by: LT3 <83487515+lessthnthree@users.noreply.github.com>
This commit is contained in:
@@ -31,6 +31,7 @@ Use CTRL + SHIFT + LEFT CLICK to turn them on and off.
|
||||
if(!iscarbon(user))
|
||||
return NONE
|
||||
if(only_functional)
|
||||
to_chat(user, span_danger("[src] does not have a non-functional mode!"))
|
||||
return NONE
|
||||
var/mob/living/carbon/char = user
|
||||
if((char.get_item_by_slot(ITEM_SLOT_NECK) == src) || (char.get_item_by_slot(ITEM_SLOT_OCLOTHING) == src))
|
||||
@@ -103,3 +104,6 @@ Use CTRL + SHIFT + LEFT CLICK to turn them on and off.
|
||||
|
||||
/obj/item/clothing/suit/armor/abductor/vest
|
||||
only_functional = TRUE
|
||||
|
||||
/obj/item/clothing/suit/hooded/cultrobes/eldritch
|
||||
only_functional = TRUE
|
||||
|
||||
Reference in New Issue
Block a user