Adding inventory stacking and overflow to gather mechanic
Deploy Promiscuity Auth API / deploy (push) Successful in 47s
Deploy Promiscuity Character API / deploy (push) Successful in 44s
Deploy Promiscuity Inventory API / deploy (push) Successful in 58s
Deploy Promiscuity Locations API / deploy (push) Successful in 58s
k8s smoke test / test (push) Successful in 9s

This commit is contained in:
2026-03-19 17:24:10 -05:00
parent 69ff204c5d
commit b8ce13f1d2
6 changed files with 344 additions and 98 deletions
@@ -124,12 +124,15 @@ public class InventoryController : ControllerBase
if (definition is null)
return BadRequest("Unknown itemKey");
var items = await _inventory.GrantAsync(access, req, definition);
var grant = await _inventory.GrantAsync(access, req, definition);
return Ok(new InventoryOwnerResponse
{
OwnerType = access.OwnerType,
OwnerId = access.OwnerId,
Items = items.Select(InventoryItemResponse.FromModel).ToList()
RequestedQuantity = grant.RequestedQuantity,
GrantedQuantity = grant.GrantedQuantity,
OverflowQuantity = grant.OverflowQuantity,
Items = grant.Items.Select(InventoryItemResponse.FromModel).ToList()
});
}