summaryrefslogtreecommitdiff
path: root/hotfix-01_fix-monsters-ignore-mechs-that-aren-t-being-piloted-.patch
diff options
context:
space:
mode:
authorjc_gargma <jc_gargma@iserlohn-fortress.net>2024-02-04 00:30:36 -0800
committerjc_gargma <jc_gargma@iserlohn-fortress.net>2024-02-04 00:30:36 -0800
commitc3829543091f66f9a47a02714ae11d7c579950ce (patch)
treec3896fd6e4efbc0fef5f7d68b6792622d59a3b06 /hotfix-01_fix-monsters-ignore-mechs-that-aren-t-being-piloted-.patch
parentUpdate vampirism mod with partial_deaf for the vamp_hearing trait. (diff)
downloadcataclysm-bn-c3829543091f66f9a47a02714ae11d7c579950ce.tar.xz
Apply hotfixes.
-monsters won't attack idle mechsuits -reloading no longer deletes empty containers -look around won't overlap text -no more safe reference error on save and quit -zombies no longer smell through glass
Diffstat (limited to 'hotfix-01_fix-monsters-ignore-mechs-that-aren-t-being-piloted-.patch')
-rw-r--r--hotfix-01_fix-monsters-ignore-mechs-that-aren-t-being-piloted-.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/hotfix-01_fix-monsters-ignore-mechs-that-aren-t-being-piloted-.patch b/hotfix-01_fix-monsters-ignore-mechs-that-aren-t-being-piloted-.patch
new file mode 100644
index 0000000..a03a172
--- /dev/null
+++ b/hotfix-01_fix-monsters-ignore-mechs-that-aren-t-being-piloted-.patch
@@ -0,0 +1,27 @@
+From 8618c68bafe113d8c6e301e8eb23d7df2292d91d Mon Sep 17 00:00:00 2001
+From: Chaosvolt <chaosvolt@users.noreply.github.com>
+Date: Tue, 9 Jan 2024 17:56:09 -0600
+Subject: [PATCH] fix: monsters ignore mechs that aren't being piloted (#4083)
+
+---
+ src/monster.cpp | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/src/monster.cpp b/src/monster.cpp
+index 5cadb78107f..1c8c755f760 100644
+--- a/src/monster.cpp
++++ b/src/monster.cpp
+@@ -1223,6 +1223,10 @@ Attitude monster::attitude_to( const Creature &other ) const
+ if( m == this ) {
+ return Attitude::A_FRIENDLY;
+ }
++ // Ignore inactive mechs
++ if( m->has_flag( MF_RIDEABLE_MECH ) && !m->has_effect( effect_ridden ) ) {
++ return Attitude::A_NEUTRAL;
++ }
+
+ static const string_id<monfaction> faction_zombie( "zombie" );
+ auto faction_att = faction.obj().attitude( m->faction );
+--
+2.43.0
+