Core/Refactor: Part 5

This commit is contained in:
hondacrx
2018-07-05 10:57:42 -04:00
parent badf6c2714
commit 7255455b22
24 changed files with 109 additions and 85 deletions
+7 -7
View File
@@ -724,7 +724,7 @@ namespace Game.Loots
if (item.reference > 0) // References processing
{
LootTemplate Referenced = LootManager.Reference.GetLootFor(item.reference);
LootTemplate Referenced = LootStorage.Reference.GetLootFor(item.reference);
if (Referenced == null)
continue; // Error message already printed at loading stage
@@ -849,8 +849,8 @@ namespace Game.Loots
{
if (item.reference > 0)
{
if (LootManager.Reference.GetLootFor(item.reference) == null)
LootManager.Reference.ReportNonExistingId(item.reference, item.itemid);
if (LootStorage.Reference.GetLootFor(item.reference) == null)
LootStorage.Reference.ReportNonExistingId(item.reference, item.itemid);
else if (ref_set != null)
ref_set.Remove(item.reference);
}
@@ -1005,8 +1005,8 @@ namespace Game.Loots
{
if (item.reference > 0)
{
if (LootManager.Reference.GetLootFor(item.reference) == null)
LootManager.Reference.ReportNonExistingId(item.reference, item.itemid);
if (LootStorage.Reference.GetLootFor(item.reference) == null)
LootStorage.Reference.ReportNonExistingId(item.reference, item.itemid);
else if (ref_set != null)
ref_set.Remove(item.reference);
}
@@ -1016,8 +1016,8 @@ namespace Game.Loots
{
if (item.reference > 0)
{
if (LootManager.Reference.GetLootFor(item.reference) == null)
LootManager.Reference.ReportNonExistingId(item.reference, item.itemid);
if (LootStorage.Reference.GetLootFor(item.reference) == null)
LootStorage.Reference.ReportNonExistingId(item.reference, item.itemid);
else if (ref_set != null)
ref_set.Remove(item.reference);
}