Skip to content

Commit

Permalink
fix: allow speedloader capacity to be smaller than gun's (#3126)
Browse files Browse the repository at this point in the history
  • Loading branch information
scarf005 authored Sep 10, 2023
1 parent 387417c commit d70fe53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/item_factory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}
}
Expand Down

0 comments on commit d70fe53

Please sign in to comment.