Enables items to be used while ventcrawling (#37432)

* Enables items to be used while ventcrawling

* dilt fix
This commit is contained in:
west3436
2025-03-14 16:59:36 -04:00
committed by GitHub
parent d8d1b29d10
commit af8bd14b6c
4 changed files with 7 additions and 5 deletions

View File

@@ -1047,12 +1047,12 @@ Use this proc preferably at the end of an equipment loadout
if(istype(loc,/obj/mecha))
return
if(isVentCrawling())
to_chat(src, "<span class='danger'>Not while we're vent crawling!</span>")
return
var/obj/item/W = get_held_item_by_index(active_hand)
if(W)
if(isVentCrawling() && !W.vent_use)
to_chat(src, "<span class='danger'>Not while we're vent crawling!</span>")
return
W.attack_self(src)
update_inv_hand(active_hand)