Skip to content

Commit af8bd14

Browse files
authored
Enables items to be used while ventcrawling (#37432)
* Enables items to be used while ventcrawling * dilt fix
1 parent d8d1b29 commit af8bd14

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

code/game/objects/items.dm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@
9292
var/list/quick_equip_priority = list() //stuff to override the quick equip thing so it goes in this first
9393

9494
var/last_burn
95+
var/vent_use = FALSE //can this be used while ventcrawling
9596

9697
/obj/item/New()
9798
..()

code/game/objects/items/devices/sound_synth.dm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
flags = FPRINT
99
siemens_coefficient = 1
1010
flammable = TRUE
11+
vent_use = TRUE
1112

1213
var/tmp/spam_flag = 0 //To prevent mashing the button to cause annoyance like a huge idiot.
1314
var/selected_sound = "sound/items/bikehorn.ogg"

code/modules/mob/mob.dm

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1047,12 +1047,12 @@ Use this proc preferably at the end of an equipment loadout
10471047
if(istype(loc,/obj/mecha))
10481048
return
10491049

1050-
if(isVentCrawling())
1051-
to_chat(src, "<span class='danger'>Not while we're vent crawling!</span>")
1052-
return
1053-
10541050
var/obj/item/W = get_held_item_by_index(active_hand)
1051+
10551052
if(W)
1053+
if(isVentCrawling() && !W.vent_use)
1054+
to_chat(src, "<span class='danger'>Not while we're vent crawling!</span>")
1055+
return
10561056
W.attack_self(src)
10571057
update_inv_hand(active_hand)
10581058

tgui/public/tgui-panel.bundle.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)