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
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:
@@ -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()
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user