Skip to content

Commit

Permalink
Revert "feat: raise amount of itemgroup tests from 100 -> 1000 (#5033)"
Browse files Browse the repository at this point in the history
This reverts commit 8eab8a6.
  • Loading branch information
RoyalFox2140 authored Jan 4, 2025
1 parent 27ef8b0 commit bd1b6c6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/item_factory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3473,9 +3473,9 @@ void item_group::debug_spawn()
if( index >= static_cast<int>( groups.size() ) || index < 0 ) {
break;
}
// Spawn items from the group 1000 times
// Spawn items from the group 100 times
std::map<std::string, int> itemnames;
for( size_t a = 0; a < 1000; a++ ) {
for( size_t a = 0; a < 100; a++ ) {
const auto items = items_from( groups[index], calendar::turn );
for( auto &it : items ) {
itemnames[it->display_name()]++;
Expand All @@ -3487,7 +3487,7 @@ void item_group::debug_spawn()
itemnames2.insert( std::pair<int, std::string>( e.second, e.first ) );
}
uilist menu2;
menu2.text = _( "Result of 1000 spawns:" );
menu2.text = _( "Result of 100 spawns:" );
for( const auto &e : itemnames2 ) {
menu2.entries.emplace_back( static_cast<int>( menu2.entries.size() ), true, -2,
string_format( _( "%d x %s" ), e.first, e.second ) );
Expand Down

0 comments on commit bd1b6c6

Please sign in to comment.