Refactor inventory unequip logic to use item ID instead of equip target; update README for inventory and skill tree progress

This commit is contained in:
ivanch committed 2025-02-05 20:37:12 -03:00
1 parent 5289910270
commit f553196ca0
5 files changed
+32 -17

No files matched your search

+7
View File
@@ -13,6 +13,13 @@ namespace PetCompanion.Repositories
_context = context;
}
public Skill GetSkill(int id)
{
return _context.Skills
.Include(s => s.Effects)
.FirstOrDefault(s => s.Id == id);
}
public IEnumerable<PetSkill> GetPetSkills(string petId)
{
return _context.PetSkills