summaryrefslogtreecommitdiff
path: root/src-19_triffids-do-not-burrow.patch
diff options
context:
space:
mode:
authorjc_gargma <jc_gargma@iserlohn-fortress.net>2024-08-13 14:02:17 -0700
committerjc_gargma <jc_gargma@iserlohn-fortress.net>2024-08-13 14:02:17 -0700
commit2d38b12399a2d88f748ff6f203189d70742b4255 (patch)
tree2515c840f2002335cd39e0cb8faa3d95a85c7d3b /src-19_triffids-do-not-burrow.patch
parentAdd patch to fix monsters not travelling down ramps. (diff)
downloadcataclysm-bn-2d38b12399a2d88f748ff6f203189d70742b4255.tar.xz
Add patch fixing triffid queens digging into the center of the Earth.
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;