예제 #1
0
        public QuestModel GetCurrentQuest()
        {
            Quest quest = _questAccess.GetCurrentQuest(_characterInfo.GetCharacterId());

            if (quest != null)
            {
                return(new QuestModel
                {
                    Id = quest.Id,
                    Name = quest.Name,
                    Image = quest.BossImage,
                    Health = quest.Health,
                    RecLevel = quest.RecLevel.Value,
                    CoinReward = quest.CoinReward,
                    ExperienceReward = quest.ExperienceReward
                });
            }
            return(null);
        }
예제 #2
0
 public void AddEquipment(int equipmentId)
 {
     _inventoryAccess.AddEquipment(_characterInfo.GetCharacterId(), equipmentId);
 }
예제 #3
0
 public List <Equipment> GetEquipment(bool owned)
 {
     return(_equipmentAccess.GetAllEquipment().Where(e => e.InventorySlot.Any(i => i.CharacterId == _characterInfo.GetCharacterId()) == owned && e.Price.HasValue).ToList());
 }