From f66b12b267278465ae962533fa2ddf79583af730 Mon Sep 17 00:00:00 2001 From: Anton Simakov <67688115+GuardianDll@users.noreply.github.com> Date: Mon, 19 Aug 2024 15:41:00 +0200 Subject: [PATCH] backport #75364 --- src/monstergenerator.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/monstergenerator.cpp b/src/monstergenerator.cpp index d283e6e30dd48..c4ed6ee719460 100644 --- a/src/monstergenerator.cpp +++ b/src/monstergenerator.cpp @@ -1379,10 +1379,8 @@ void mtype::add_special_attack( const JsonObject &obj, const std::string &src ) if( iter != special_attacks_names.end() ) { special_attacks_names.erase( iter ); } - if( test_mode ) { - debugmsg( "%s specifies more than one attack of (sub)type %s, ignoring all but the last", - id.c_str(), new_attack->id.c_str() ); - } + debugmsg( "%s specifies more than one attack of (sub)type %s, ignoring all but the last. Add different `id`s to each attack of this type to prevent this.", + id.c_str(), new_attack->id.c_str() ); } special_attacks.emplace( new_attack->id, new_attack );