Пример #1
0
 private void OnItemRemoved(Item item)
 {
     if (item.ItemName == ItemName && !Quest.Completed)
     {
         CurrentAmount = InventoryController.instance.CountItemsHavingName(ItemName);
         Evaluate();
         Phase.CheckGoals();
         QuestEventHandler.GoalUpdated(this);
     }
 }
Пример #2
0
 void ItemPickedUp(Item item)
 {
     if (!Phase.Active)
     {
         return;
     }
     if (item.ItemName == ItemName && !Quest.Completed)
     {
         CurrentAmount = InventoryController.instance.CountItemsHavingName(ItemName);
         Evaluate();
         Phase.CheckGoals();
         QuestEventHandler.GoalUpdated(this);
     }
 }
Пример #3
0
 private void OnTalkedToNPC(string NPCName)
 {
     if (!Phase.Active)
     {
         return;
     }
     if (this.NPCName == NPCName && !Completed)
     {
         CurrentAmount++;
         Evaluate();
         Phase.CheckGoals();
         Navigation2D();
         QuestEventHandler.GoalUpdated(this);
     }
 }
Пример #4
0
 void EnemyDied(IEnemy enemy)
 {
     if (!Phase.Active)
     {
         return;
     }
     if (enemy.ID == EnemyID && !Completed)
     {
         CurrentAmount++;
         Evaluate();
         Phase.CheckGoals();
         Navigation2D();
         QuestEventHandler.GoalUpdated(this);
     }
 }