public IActionResult Index() { QuestModel quest = _questLogic.GetCurrentQuest(); List <QuestInventory> questInventory = _questLogic.GetQuestInventory(); return(View(new Tuple <QuestModel, List <QuestInventory> >(quest, questInventory))); }
public ITaskReturn CheckDaily(int dailyId) { _taskAccess.CheckDaily(dailyId); int xp = 40; _characterManager.AddExperience(xp); int damage = 0; if (_questLogic.GetCurrentQuest() != null) { damage = 60; _questLogic.AddDamage(damage); } return(new TaskReturn(xp, damage)); }