Core/Loot: Fixed getting to much loot sometimes.

This commit is contained in:
hondacrx
2018-03-09 23:30:55 -05:00
parent 8f870a0366
commit c650888eeb
3 changed files with 1 additions and 5 deletions
+1 -1
View File
@@ -81,7 +81,7 @@ public class RandomHelper
/// <returns></returns>
public static bool randChance(float i)
{
return i > rand.Next(0, 100);
return i > randChance();
}
public static double randChance()
-1
View File
@@ -213,7 +213,6 @@ namespace Game.Loots
return false;
LootTemplate tab = store.GetLootFor(lootId);
if (tab == null)
{
if (!noEmptyError)
-3
View File
@@ -764,7 +764,6 @@ namespace Game.Loots
}
}
public bool HasQuestDrop(LootTemplateMap store, byte groupId = 0)
{
if (groupId != 0) // Group reference
@@ -836,7 +835,6 @@ namespace Game.Loots
return false;
}
public void Verify(LootStore lootstore, uint id)
{
// Checking group chances
@@ -926,7 +924,6 @@ namespace Game.Loots
return false;//not found or not reference
}
LootStoreItemList Entries = new LootStoreItemList(); // not grouped only
Dictionary<int, LootGroup> Groups = new Dictionary<int,LootGroup>(); // groups have own (optimised) processing, grouped entries go there