diff options
Diffstat (limited to 'src-17_monsters-can-go-down-ramps.patch')
-rw-r--r-- | src-17_monsters-can-go-down-ramps.patch | 12 |
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 |