private void OnItemRemoved(Item item) { if (item.ItemName == ItemName && !Quest.Completed) { CurrentAmount = InventoryController.instance.CountItemsHavingName(ItemName); Evaluate(); Phase.CheckGoals(); QuestEventHandler.GoalUpdated(this); } }
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); } }
private void OnTalkedToNPC(string NPCName) { if (!Phase.Active) { return; } if (this.NPCName == NPCName && !Completed) { CurrentAmount++; Evaluate(); Phase.CheckGoals(); Navigation2D(); QuestEventHandler.GoalUpdated(this); } }
void EnemyDied(IEnemy enemy) { if (!Phase.Active) { return; } if (enemy.ID == EnemyID && !Completed) { CurrentAmount++; Evaluate(); Phase.CheckGoals(); Navigation2D(); QuestEventHandler.GoalUpdated(this); } }