From d70fe539fcf0f9cd1a3a0e36bd86f6617e3d81a0 Mon Sep 17 00:00:00 2001 From: scarf Date: Mon, 11 Sep 2023 01:45:36 +0900 Subject: [PATCH] fix: allow speedloader capacity to be smaller than gun's (#3126) --- src/item_factory.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/item_factory.cpp b/src/item_factory.cpp index 3c8b3b6b5ddb..928b528321c3 100644 --- a/src/item_factory.cpp +++ b/src/item_factory.cpp @@ -1440,9 +1440,9 @@ void Item_factory::check_definitions() const } else if( !mag_ptr->magazine->type.count( ammo_variety.first ) ) { msg += string_format( "magazine \"%s\" does not take compatible ammo\n", magazine ); } else if( mag_ptr->has_flag( "SPEEDLOADER" ) && - mag_ptr->magazine->capacity != type->gun->clip ) { + mag_ptr->magazine->capacity > type->gun->clip ) { msg += string_format( - "speedloader %s capacity (%d) does not match gun capacity (%d).\n", + "speedloader %s capacity (%d) is bigger than gun capacity (%d).\n", magazine.str(), mag_ptr->magazine->capacity, type->gun->clip ); } }