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:
2025-02-05 20:37:12 -03:00
parent 5289910270
commit f553196ca0
5 changed files with 32 additions and 17 deletions

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