From 10ee78c72786450d8b907cc513dc823ae6d4e7fa Mon Sep 17 00:00:00 2001 From: RoyalFox <112293514+RoyalFox2140@users.noreply.github.com> Date: Fri, 3 Jan 2025 23:41:26 -0500 Subject: [PATCH] revert: "raise amount of itemgroup tests from 100 -> 1000" (#5872) Revert "feat: raise amount of itemgroup tests from 100 -> 1000 (#5033)" This reverts commit 8eab8a67aec2554e0f8acb770d69909ebd95e000. --- src/item_factory.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/item_factory.cpp b/src/item_factory.cpp index 02b9ca039b08..ef4c3f981ec0 100644 --- a/src/item_factory.cpp +++ b/src/item_factory.cpp @@ -3473,9 +3473,9 @@ void item_group::debug_spawn() if( index >= static_cast( groups.size() ) || index < 0 ) { break; } - // Spawn items from the group 1000 times + // Spawn items from the group 100 times std::map 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()]++; @@ -3487,7 +3487,7 @@ void item_group::debug_spawn() itemnames2.insert( std::pair( 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( menu2.entries.size() ), true, -2, string_format( _( "%d x %s" ), e.first, e.second ) );