# The way spells interact with walls

**URL:** <https://discourse.cataclysmdda.org/t/the-way-spells-interact-with-walls/28739>\
**Category:** The Drawing Board\
**Created:** [May 17, 2023, 1:39pm UTC](https://discourse.cataclysmdda.org/t/the-way-spells-interact-with-walls/28739 "2023-05-17T13:39:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kyoufi](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/kyoufi/32/12363_2.png) [@Kyoufi](https://discourse.cataclysmdda.org/u/Kyoufi)\
**Post date:** [May 17, 2023, 1:39pm UTC](https://discourse.cataclysmdda.org/t/the-way-spells-interact-with-walls/28739/1 "2023-05-17T13:39:20Z")

</div>

For now spell will stop on a tile in front of wall no matter its power. So even paper wall can stop max level magic bolt that do damage similar to .50 BMG ammo. It is stupid, don’t you think?

I just made mod that adds terrain and furniture shatter effect, but because of this limitation i was not able to achieve the main goal - give player the ability to shatter doors and walls if his spells is powerful enough.

Im even ready to code that myself, if the developers will allow me

---

<div class="post-metadata">

**Author:** ![Profugo\_Barbatus](https://avatars.discourse-cdn.com/v4/letter/p/d26b3c/32.png) [@Profugo\_Barbatus](https://discourse.cataclysmdda.org/u/Profugo_Barbatus)\
**Post date:** [May 17, 2023, 2:05pm UTC](https://discourse.cataclysmdda.org/t/the-way-spells-interact-with-walls/28739/2 "2023-05-17T14:05:10Z")

</div>

You don’t need developer permission, its an open source project. Just do yer thing and then put in a [pull request in the repo](https://github.com/CleverRaven/Cataclysm-DDA/pulls) to get it brought in.

---

<div class="post-metadata">

**Author:** ![Kyoufi](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/kyoufi/32/12363_2.png) [@Kyoufi](https://discourse.cataclysmdda.org/u/Kyoufi)\
**Post date:** [May 17, 2023, 2:22pm UTC](https://discourse.cataclysmdda.org/t/the-way-spells-interact-with-walls/28739/3 "2023-05-17T14:22:11Z")

</div>

Can you please explain how it works? Do I need to fork main branch, change code and then put in a pull request with my fork and main branch as comparements?

---

<div class="post-metadata">

**Author:** ![Kyoufi](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/kyoufi/32/12363_2.png) [@Kyoufi](https://discourse.cataclysmdda.org/u/Kyoufi)\
**Post date:** [May 17, 2023, 2:24pm UTC](https://discourse.cataclysmdda.org/t/the-way-spells-interact-with-walls/28739/4 "2023-05-17T14:24:44Z")

</div>

Also  
How to add my mod to the base game? Make it in-built i mean  
With whom i need to contact about that?

---

<div class="post-metadata">

**Author:** ![Pupker](https://avatars.discourse-cdn.com/v4/letter/p/ad7895/32.png) [@Pupker](https://discourse.cataclysmdda.org/u/Pupker)\
**Post date:** [May 19, 2023, 6:44am UTC](https://discourse.cataclysmdda.org/t/the-way-spells-interact-with-walls/28739/5 "2023-05-19T06:44:04Z")

</div>

1. Examine how spell template json gets turned into a spell in the game
2. Change behaviour of the module that reads spell jsons to work the way you want
3. Send pull request to main repo with your changes
