Core/Refactor: Part 1

This commit is contained in:
hondacrx
2018-05-07 18:56:09 -04:00
parent b2c1554065
commit 216db1c23a
83 changed files with 298 additions and 296 deletions
@@ -30,11 +30,6 @@ namespace Game.Entities
{
public partial class Player
{
public override void SetMap(Map map)
{
base.SetMap(map);
}
public Difficulty GetDifficultyID(MapRecord mapEntry)
{
if (!mapEntry.IsRaid())
+6 -3
View File
@@ -1683,9 +1683,12 @@ namespace Game.Entities
}
bool destroyItem = true;
foreach (QuestObjective obj in quest.Objectives)
if (obj.Type == QuestObjectiveType.Item && srcItemId == obj.ObjectID)
destroyItem = false;
if (item.GetStartQuest() == questId)
{
foreach (QuestObjective obj in quest.Objectives)
if (obj.Type == QuestObjectiveType.Item && srcItemId == obj.ObjectID)
destroyItem = false;
}
if (destroyItem)
DestroyItemCount(srcItemId, count, true, true);