# "connects\_to": "WATER"

**URL:** <https://discourse.cataclysmdda.org/t/connects-to-water/12025>\
**Category:** The Drawing Board\
**Created:** [June 10, 2016, 7:08am UTC](https://discourse.cataclysmdda.org/t/connects-to-water/12025 "2016-06-10T07:08:23Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kedryn](https://avatars.discourse-cdn.com/v4/letter/k/57b2e6/32.png) [@Kedryn](https://discourse.cataclysmdda.org/u/Kedryn)\
**Post date:** [June 10, 2016, 7:08am UTC](https://discourse.cataclysmdda.org/t/connects-to-water/12025/1 "2016-06-10T07:08:23Z")

</div>

Humble suggestion, not really important.

Like the “connects\_to”: “WOODFENCE”, so that shallow water could graphically ‘connect’ to deep water (but not really vice versa) using the AUTOWALL\_SYMBOL, or something smiliar.

Example image; on the left I temporarily added the woodfence-connect and autowall to t\_water\_sh and t\_water\_dp, on the right I undid it:

 ![](http://i.imgur.com/nOeAvwk.jpg?1)

---

<div class="post-metadata">

**Author:** ![Chezzo](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/chezzo/32/429_2.png) [@Chezzo](https://discourse.cataclysmdda.org/u/Chezzo)\
**Post date:** [August 16, 2016, 5:23pm UTC](https://discourse.cataclysmdda.org/t/connects-to-water/12025/2 "2016-08-16T17:23:28Z")

</div>

I made an issue of this a long time ago.

> <https://github.com/CleverRaven/Cataclysm-DDA/issues/13347>

It sucks, because the only way I can see making it work, unless one of us not pixelators gets their hands on it, is to tear out the shores completely. And nobody wants that.

---

<div class="post-metadata">

**Author:** ![Kedryn](https://avatars.discourse-cdn.com/v4/letter/k/57b2e6/32.png) [@Kedryn](https://discourse.cataclysmdda.org/u/Kedryn)\
**Post date:** [August 17, 2016, 2:49am UTC](https://discourse.cataclysmdda.org/t/connects-to-water/12025/3 "2016-08-17T02:49:13Z")

</div>

Oh wow, this was like my first or second post here before I ever even thought I could start modifying tiles for you.

I just made a mod for myself that has the WOODFENCE flag on the water tiles and hope no picket fences end up next to water. 😛

![](http://i.imgur.com/S3e21jB.jpg)

---

<div class="post-metadata">

**Author:** ![hit\_button](https://avatars.discourse-cdn.com/v4/letter/h/34f0e0/32.png) [@hit\_button](https://discourse.cataclysmdda.org/u/hit_button)\
**Post date:** [September 3, 2016, 1:01pm UTC](https://discourse.cataclysmdda.org/t/connects-to-water/12025/4 "2016-09-03T13:01:16Z")

</div>

Hey there, I added the “connects\_to” groups in this PR: [https://github.com/CleverRaven/Cataclysm-DDA/pull/14874](https://github.com/CleverRaven/Cataclysm-DDA/pull/14874)

I’m not working on Cata stuff at the moment, but it would be very simple to add a new connect group for “WATER”.

The new group would just have to be added to the relevant sections of mapdata.h (in the enum for ter\_connects) and mapdata.cpp (in the declaration of ter\_connects\_map).

---

<div class="post-metadata">

**Author:** ![Kedryn](https://avatars.discourse-cdn.com/v4/letter/k/57b2e6/32.png) [@Kedryn](https://discourse.cataclysmdda.org/u/Kedryn)\
**Post date:** [September 3, 2016, 6:31pm UTC](https://discourse.cataclysmdda.org/t/connects-to-water/12025/5 "2016-09-03T18:31:56Z")

</div>

[quote=“hit button, post:4, topic:12025”]Hey there, I added the “connects\_to” groups in this PR: [https://github.com/CleverRaven/Cataclysm-DDA/pull/14874](https://github.com/CleverRaven/Cataclysm-DDA/pull/14874)

I’m not working on Cata stuff at the moment, but it would be very simple to add a new connect group for “WATER”.

The new group would just have to be added to the relevant sections of mapdata.h (in the enum for ter\_connects) and mapdata.cpp (in the declaration of ter\_connects\_map).[/quote]

Thank you for pointing this out! I have linked to this from various posts about these things Chezzo or myself has made here and on Github so that anyone with the ability that is interested in addressing this can easily find how. \<-- Run on sentence and probably confusing; sorry.

Edit: Is there a way to add a ‘one-way’ “connects\_to”? So that, example, the deep water would use it’s “edge” tiles when touching shallow water but the shallow water wouldn’t use theirs when touching deep water?

---

<div class="post-metadata">

**Author:** ![hit\_button](https://avatars.discourse-cdn.com/v4/letter/h/34f0e0/32.png) [@hit\_button](https://discourse.cataclysmdda.org/u/hit_button)\
**Post date:** [September 9, 2016, 12:18pm UTC](https://discourse.cataclysmdda.org/t/connects-to-water/12025/6 "2016-09-09T12:18:34Z")

</div>

> [@Kedryn](#):
>
> Is there a way to add a ‘one-way’ “connects\_to”? So that, example, the deep water would use it’s “edge” tiles when touching shallow water but the shallow water wouldn’t use theirs when touching deep water?

Short answer: No.

---

<div class="post-metadata">

**Author:** ![Kedryn](https://avatars.discourse-cdn.com/v4/letter/k/57b2e6/32.png) [@Kedryn](https://discourse.cataclysmdda.org/u/Kedryn)\
**Post date:** [September 11, 2016, 8:45am UTC](https://discourse.cataclysmdda.org/t/connects-to-water/12025/7 "2016-09-11T08:45:37Z")

</div>

Addressed by Chezzo with the help of hit button in this pull request.

[https://github.com/CleverRaven/Cataclysm-DDA/pull/18266](https://github.com/CleverRaven/Cataclysm-DDA/pull/18266)

Huzzah.
