summaryrefslogtreecommitdiff
path: root/src-17_monsters-can-go-down-ramps.patch
diff options
context:
space:
mode:
authorjc_gargma <jc_gargma@iserlohn-fortress.net>2024-08-03 23:04:51 -0700
committerjc_gargma <jc_gargma@iserlohn-fortress.net>2024-08-03 23:04:51 -0700
commit1b6f7d799ef99ca5861cb3d66e3a4e5628e18bcc (patch)
tree47c4d538abf5adde841d0d49d59aa0bdf42badd0 /src-17_monsters-can-go-down-ramps.patch
parentAdd patch fixing NPCs failing to wield weapons from worn holsters. (diff)
downloadcataclysm-bn-1b6f7d799ef99ca5861cb3d66e3a4e5628e18bcc.tar.xz
Add patch to fix monsters not travelling down ramps.
Diffstat (limited to 'src-17_monsters-can-go-down-ramps.patch')
-rw-r--r--src-17_monsters-can-go-down-ramps.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/src-17_monsters-can-go-down-ramps.patch b/src-17_monsters-can-go-down-ramps.patch
new file mode 100644
index 0000000..a8c3588
--- /dev/null
+++ b/src-17_monsters-can-go-down-ramps.patch
@@ -0,0 +1,12 @@
+--- a/src/monmove.cpp
++++ b/src/monmove.cpp
+@@ -244,6 +244,9 @@
+ return false;
+ }
+ } else if( p.z < pos().z && z_is_valid( pos().z ) ) {
++ if( here.has_flag( TFLAG_RAMP_DOWN, tripoint( p.xy(), p.z + 1 ) ) ) {
++ return true;
++ }
+ if( !here.has_flag( TFLAG_GOES_DOWN, pos() ) ) {
+ // can't go through the floor
+ // you would fall anyway if there was no floor, so no need to check for that here