コード例 #1
0
        public IActionResult Index()
        {
            QuestModel            quest          = _questLogic.GetCurrentQuest();
            List <QuestInventory> questInventory = _questLogic.GetQuestInventory();

            return(View(new Tuple <QuestModel, List <QuestInventory> >(quest, questInventory)));
        }
コード例 #2
0
ファイル: TaskLogic.cs プロジェクト: RubenHemmes/Mystivate
        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));
        }