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); }
public void AddEquipment(int equipmentId) { _inventoryAccess.AddEquipment(_characterInfo.GetCharacterId(), equipmentId); }
public List <Equipment> GetEquipment(bool owned) { return(_equipmentAccess.GetAllEquipment().Where(e => e.InventorySlot.Any(i => i.CharacterId == _characterInfo.GetCharacterId()) == owned && e.Price.HasValue).ToList()); }