From 7821bb10f586243f8ab40aa91a1b60c5a1d8d07b Mon Sep 17 00:00:00 2001 From: scarf Date: Sun, 10 Sep 2023 22:40:38 +0900 Subject: [PATCH] fix: allow speedloader capacity to be smaller than gun's --- 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 ); } }