From ed22f644d344b4d24bdea4d34a0e4aa5e977270e Mon Sep 17 00:00:00 2001 From: ymber Date: Thu, 26 Dec 2019 10:15:40 +0000 Subject: [PATCH] Remove all CROWS type turrets with computer action --- src/computer.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/computer.cpp b/src/computer.cpp index ec996580a8aee..1a5585df30c23 100644 --- a/src/computer.cpp +++ b/src/computer.cpp @@ -58,6 +58,8 @@ static const mtype_id mon_manhack( "mon_manhack" ); static const mtype_id mon_secubot( "mon_secubot" ); static const mtype_id mon_turret_rifle( "mon_turret_rifle" ); +static const mtype_id mon_turret_bmg( "mon_turret_bmg" ); +static const mtype_id mon_crows_m240( "mon_crows_m240" ); static const skill_id skill_computer( "computer" ); @@ -386,7 +388,8 @@ static void remove_submap_turrets() for( monster &critter : g->all_monsters() ) { // Check 1) same overmap coords, 2) turret, 3) hostile if( ms_to_omt_copy( g->m.getabs( critter.pos() ) ) == ms_to_omt_copy( g->m.getabs( g->u.pos() ) ) && - ( critter.type->id == mon_turret_rifle ) && + ( critter.type->id == mon_turret_rifle || critter.type->id == mon_turret_bmg || + critter.type->id == mon_crows_m240 ) && critter.attitude_to( g->u ) == Creature::Attitude::A_HOSTILE ) { g->remove_zombie( critter ); }