summaryrefslogtreecommitdiff
path: root/src-19_triffids-do-not-burrow.patch
diff options
context:
space:
mode:
Diffstat (limited to 'src-19_triffids-do-not-burrow.patch')
-rw-r--r--src-19_triffids-do-not-burrow.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/src-19_triffids-do-not-burrow.patch b/src-19_triffids-do-not-burrow.patch
new file mode 100644
index 0000000..b7d422b
--- /dev/null
+++ b/src-19_triffids-do-not-burrow.patch
@@ -0,0 +1,17 @@
+--- a/src/monattack.cpp
++++ b/src/monattack.cpp
+@@ -1450,9 +1450,12 @@
+ continue;
+ }
+
++ // 1 in 3 chance to terraform diggable terrain
+ if( g->m.is_bashable( p ) && one_in( 3 ) ) {
+- // Destroy everything
+- g->m.destroy( p );
++ if( g->m.has_furn( p ) ) {
++ // Destroy any furniture
++ g->m.destroy_furn( p );
++ }
+ // And then make the ground fertile
+ g->m.ter_set( p, t_dirtmound );
+ continue;