# Walking on Boat Hulls, or around a boat-type vehicle gives Wet debuff and plays water splash sound effect

**URL:** <https://discourse.cataclysmdda.org/t/walking-on-boat-hulls-or-around-a-boat-type-vehicle-gives-wet-debuff-and-plays-water-splash-sound-effect/23433>\
**Category:** The Garage\
**Created:** [April 27, 2020, 4:32pm UTC](https://discourse.cataclysmdda.org/t/walking-on-boat-hulls-or-around-a-boat-type-vehicle-gives-wet-debuff-and-plays-water-splash-sound-effect/23433 "2020-04-27T16:32:48Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![draghi](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/draghi/32/11781_2.png) [@draghi](https://discourse.cataclysmdda.org/u/draghi)\
**Post date:** [April 27, 2020, 4:32pm UTC](https://discourse.cataclysmdda.org/t/walking-on-boat-hulls-or-around-a-boat-type-vehicle-gives-wet-debuff-and-plays-water-splash-sound-effect/23433/1 "2020-04-27T16:32:48Z")

</div>

Hello, it would seem walking around a boat vehicle constantly gives the wet debuff, walking on a boat interior shouldn’t keep you dry?

---

<div class="post-metadata">

**Author:** ![mlangsdorf](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/mlangsdorf/32/2462_2.png) [@mlangsdorf](https://discourse.cataclysmdda.org/u/mlangsdorf)\
**Post date:** [April 27, 2020, 4:52pm UTC](https://discourse.cataclysmdda.org/t/walking-on-boat-hulls-or-around-a-boat-type-vehicle-gives-wet-debuff-and-plays-water-splash-sound-effect/23433/2 "2020-04-27T16:52:42Z")

</div>

Yes, you’re absolutely right and I would fix this if I could figure out where in the code the morale buff is applied. I don’t think it’s in the vehicle code and I’m pretty sure it’s not in the suffer() code. I haven’t found it anywhere else but I haven’t looked hard.

---

<div class="post-metadata">

**Author:** ![int\_ua](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/int_ua/32/4402_2.png) [@int\_ua](https://discourse.cataclysmdda.org/u/int_ua)\
**Post date:** [April 27, 2020, 8:28pm UTC](https://discourse.cataclysmdda.org/t/walking-on-boat-hulls-or-around-a-boat-type-vehicle-gives-wet-debuff-and-plays-water-splash-sound-effect/23433/3 "2020-04-27T20:28:00Z")

</div>

Isn’t it a problem of them being not boardable?

---

<div class="post-metadata">

**Author:** ![GiggleGrassGatherer](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/gigglegrassgatherer/32/7743_2.png) [@GiggleGrassGatherer](https://discourse.cataclysmdda.org/u/GiggleGrassGatherer)\
**Post date:** [April 28, 2020, 3:17pm UTC](https://discourse.cataclysmdda.org/t/walking-on-boat-hulls-or-around-a-boat-type-vehicle-gives-wet-debuff-and-plays-water-splash-sound-effect/23433/4 "2020-04-28T15:17:09Z")

</div>

Seems to be it. I used inflatable boat couple days ago, and it was strange. Sometimes it allowed me to board it from one of top tiles only, and vertical movement only, any other approach resulted in “do you really want to drown in that deep water?”. Sometimes it was diagonal movement that did the trick. Sometimes it made my character wet (other place, with shallow water), sometimes it didn’t. There’s definitely something wrong with boarding boats but i couldn’t catch the pattern.

---

<div class="post-metadata">

**Author:** ![mlangsdorf](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/mlangsdorf/32/2462_2.png) [@mlangsdorf](https://discourse.cataclysmdda.org/u/mlangsdorf)\
**Post date:** [April 28, 2020, 3:57pm UTC](https://discourse.cataclysmdda.org/t/walking-on-boat-hulls-or-around-a-boat-type-vehicle-gives-wet-debuff-and-plays-water-splash-sound-effect/23433/5 "2020-04-28T15:57:27Z")

</div>

No, it’s a problem with the code that applies the wetness morale penalty not checking if you’re in a watertight vehicle. Boardable has nothing to do with it.

---

<div class="post-metadata">

**Author:** ![int\_ua](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/int_ua/32/4402_2.png) [@int\_ua](https://discourse.cataclysmdda.org/u/int_ua)\
**Post date:** [April 28, 2020, 7:56pm UTC](https://discourse.cataclysmdda.org/t/walking-on-boat-hulls-or-around-a-boat-type-vehicle-gives-wet-debuff-and-plays-water-splash-sound-effect/23433/6 "2020-04-28T19:56:25Z")

</div>

I opened code to check different function but noticed the drenching code in player.cpp and it already checks [`if ( !in_vehicle )`](https://github.com/CleverRaven/Cataclysm-DDA/blob/8c0724266ce12342fc53d65c1dbbcdc55d029ed6/src/player.cpp#L800)  
Maybe that `in_vehicle` variable is not set correctly somewhere, IDK. Will check later.

---

<div class="post-metadata">

**Author:** ![mlangsdorf](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/mlangsdorf/32/2462_2.png) [@mlangsdorf](https://discourse.cataclysmdda.org/u/mlangsdorf)\
**Post date:** [April 30, 2020, 11:16am UTC](https://discourse.cataclysmdda.org/t/walking-on-boat-hulls-or-around-a-boat-type-vehicle-gives-wet-debuff-and-plays-water-splash-sound-effect/23433/7 "2020-04-30T11:16:14Z")

</div>

Thanks, I’d missed that code. Fix posted: [https://github.com/CleverRaven/Cataclysm-DDA/pull/40026](https://github.com/CleverRaven/Cataclysm-DDA/pull/40026)
