<commit_before>
#include "Globals.h"  // NOTE: MSVC stupidness requires this to be the same across all modules

#include "cBlockToPickup.h"
#include "Defines.h"
#include "BlockID.h"
#include "MersenneTwister.h"





static void AddRandomDrop(cItems & a_Drops, MTRand & r1, int a_OneInNChance, ENUM_ITEM_ID a_ItemID)
{
	if (r1.randInt(a_OneInNChance - 1) != 0)
	{
		return;
	}
	a_Drops.push_back(cItem(a_ItemID));
}





void cBlockToPickup::ToPickup(BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta, ENUM_ITEM_ID a_UsedItemID, cItems & a_Drops)
{
	MTRand r1;

	switch (a_BlockType)
	{<commit_msg>Fixed random drops not occurring at all<commit_after>
#include "Globals.h"  // NOTE: MSVC stupidness requires this to be the same across all modules

#include "cBlockToPickup.h"
#include "Defines.h"
#include "BlockID.h"
#include "MersenneTwister.h"





static void AddRandomDrop(cItems & a_Drops, MTRand & r1, int a_OneInNChance, ENUM_ITEM_ID a_ItemID)
{
	if ((r1.randInt(16 * a_OneInNChance - 1) / 16) != 0)
	{
		return;
	}
	a_Drops.push_back(cItem(a_ItemID, 1));
}





void cBlockToPickup::ToPickup(BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta, ENUM_ITEM_ID a_UsedItemID, cItems & a_Drops)
{
	MTRand r1;

	switch (a_BlockType)
	{
{'fraction_non_alphanumeric': 0.1100244498777506, 'fraction_numerical': 0.012224938875305624, 'mean_word_length': 5.0492610837438425, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7525758', 'n_tokens_mistral': 552, 'n_tokens_neox': 509, 'n_words': 113}