From d93787d9420e87616bcd9dbd518a9b6740d67041 Mon Sep 17 00:00:00 2001 From: AlumiuN Date: Fri, 21 Apr 2023 12:16:54 +1200 Subject: [PATCH] Fix inaccurate handling of D2 super laser damage with quad-lasers (as D2 was bugged and didn't apply the intended penalty to them) --- similar/main/laser.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/similar/main/laser.cpp b/similar/main/laser.cpp index 2610cdbe1..80727a8ac 100644 --- a/similar/main/laser.cpp +++ b/similar/main/laser.cpp @@ -656,14 +656,13 @@ static void do_omega_stuff(fvmsegptridx &vmsegptridx, const vmobjptridx_t parent } } +// Note that this is only used for determining if the quad laser per-bolt damage penalty should be applied, and consequently excludes super lasers static int is_laser_weapon_type(const weapon_id_type weapon_type) { return weapon_type == weapon_id_type::LASER_ID_L1 || weapon_type == weapon_id_type::LASER_ID_L2 || weapon_type == weapon_id_type::LASER_ID_L3 || - weapon_type == weapon_id_type::LASER_ID_L4 || - weapon_type == weapon_id_type::LASER_ID_L5 || - weapon_type == weapon_id_type::LASER_ID_L6; + weapon_type == weapon_id_type::LASER_ID_L4; } }