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:
1 parent
5289910270
commit
f553196ca0
5 files changed
+32
-17
No files matched your search
@@ -62,12 +62,12 @@ namespace PetCompanion.Controllers
|
||||
}
|
||||
}
|
||||
|
||||
[HttpPut("{petId}/{equipTarget}/unequip")]
|
||||
public IActionResult UnequipItem(string petId, ItemEquipTarget equipTarget)
|
||||
[HttpPut("{petId}/{itemId}/unequip")]
|
||||
public IActionResult UnequipItem(string petId, int itemId)
|
||||
{
|
||||
try
|
||||
{
|
||||
var updatedPet = inventoryService.UnequipItem(petId, userId.ToString(), equipTarget);
|
||||
var updatedPet = inventoryService.UnequipItem(petId, userId.ToString(), itemId);
|
||||
return Ok(updatedPet);
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
||||
Reference in new issue
Block a user