FastRandom rewrite (#3754)
This commit is contained in:
@@ -24,11 +24,11 @@ void cWitch::GetDrops(cItems & a_Drops, cEntity * a_Killer)
|
||||
{
|
||||
LootingLevel = a_Killer->GetEquippedWeapon().m_Enchantments.GetLevel(cEnchantments::enchLooting);
|
||||
}
|
||||
MTRand r1;
|
||||
int DropTypeCount = (r1.randInt() % 3) + 1;
|
||||
auto & r1 = GetRandomProvider();
|
||||
int DropTypeCount = r1.RandInt(1, 3);
|
||||
for (int i = 0; i < DropTypeCount; i++)
|
||||
{
|
||||
int DropType = r1.randInt() % 7;
|
||||
int DropType = r1.RandInt(6);
|
||||
switch (DropType)
|
||||
{
|
||||
case 0: AddRandomDropItem(a_Drops, 0, 2 + LootingLevel, E_ITEM_GLASS_BOTTLE); break;
|
||||
|
||||
Reference in New Issue
Block a user