|
|
@ -295,7 +295,7 @@ async fn test_deposit_individual_item() { |
|
|
|
&& player_no_longer_has_item.amount == 0
|
|
|
|
));
|
|
|
|
|
|
|
|
let items = entity_gateway.get_items_by_character(&char1).await.unwrap();
|
|
|
|
let items = entity_gateway.get_items_by_character(&char1.id).await.unwrap();
|
|
|
|
let bank_item_ids = items.iter()
|
|
|
|
.filter_map(|item| {
|
|
|
|
if let item::ItemLocation::Bank {..} = item.location {
|
|
|
@ -364,7 +364,7 @@ async fn test_deposit_stacked_item() { |
|
|
|
&& player_no_longer_has_item.amount == 3
|
|
|
|
));
|
|
|
|
|
|
|
|
let items = entity_gateway.get_items_by_character(&char1).await.unwrap();
|
|
|
|
let items = entity_gateway.get_items_by_character(&char1.id).await.unwrap();
|
|
|
|
let bank_item_ids = items.iter()
|
|
|
|
.filter_map(|item| {
|
|
|
|
if let item::ItemLocation::Bank {..} = item.location {
|
|
|
@ -433,7 +433,7 @@ async fn test_deposit_partial_stacked_item() { |
|
|
|
&& player_no_longer_has_item.amount == 2
|
|
|
|
));
|
|
|
|
|
|
|
|
let items = entity_gateway.get_items_by_character(&char1).await.unwrap();
|
|
|
|
let items = entity_gateway.get_items_by_character(&char1.id).await.unwrap();
|
|
|
|
let bank_item_ids = items.iter()
|
|
|
|
.filter_map(|item| {
|
|
|
|
if let item::ItemLocation::Bank {..} = item.location {
|
|
|
@ -528,7 +528,7 @@ async fn test_deposit_stacked_item_with_stack_already_in_bank() { |
|
|
|
&& player_no_longer_has_item.amount == 2
|
|
|
|
));
|
|
|
|
|
|
|
|
let items = entity_gateway.get_items_by_character(&char1).await.unwrap();
|
|
|
|
let items = entity_gateway.get_items_by_character(&char1.id).await.unwrap();
|
|
|
|
let bank_item_ids = items.iter()
|
|
|
|
.filter_map(|item| {
|
|
|
|
if let item::ItemLocation::Bank {..} = item.location {
|
|
|
@ -604,7 +604,7 @@ async fn test_deposit_stacked_item_with_full_stack_in_bank() { |
|
|
|
|
|
|
|
assert!(packets.is_err());
|
|
|
|
|
|
|
|
let items = entity_gateway.get_items_by_character(&char1).await.unwrap();
|
|
|
|
let items = entity_gateway.get_items_by_character(&char1.id).await.unwrap();
|
|
|
|
let bank_item_ids = items.iter()
|
|
|
|
.filter_map(|item| {
|
|
|
|
if let item::ItemLocation::Bank {..} = item.location {
|
|
|
@ -700,7 +700,7 @@ async fn test_deposit_individual_item_in_full_bank() { |
|
|
|
|
|
|
|
assert!(packets.is_err());
|
|
|
|
|
|
|
|
let items = entity_gateway.get_items_by_character(&char1).await.unwrap();
|
|
|
|
let items = entity_gateway.get_items_by_character(&char1.id).await.unwrap();
|
|
|
|
let bank_item_ids = items.iter()
|
|
|
|
.filter_map(|item| {
|
|
|
|
if let item::ItemLocation::Bank {..} = item.location {
|
|
|
@ -793,7 +793,7 @@ async fn test_deposit_stacked_item_in_full_bank() { |
|
|
|
|
|
|
|
assert!(packets.is_err());
|
|
|
|
|
|
|
|
let items = entity_gateway.get_items_by_character(&char1).await.unwrap();
|
|
|
|
let items = entity_gateway.get_items_by_character(&char1.id).await.unwrap();
|
|
|
|
let bank_item_ids = items.iter()
|
|
|
|
.filter_map(|item| {
|
|
|
|
if let item::ItemLocation::Bank {..} = item.location {
|
|
|
@ -899,7 +899,7 @@ async fn test_deposit_stacked_item_in_full_bank_with_partial_stack() { |
|
|
|
unknown: 0,
|
|
|
|
})))).await.unwrap().for_each(drop);
|
|
|
|
|
|
|
|
let items = entity_gateway.get_items_by_character(&char1).await.unwrap();
|
|
|
|
let items = entity_gateway.get_items_by_character(&char1.id).await.unwrap();
|
|
|
|
let bank_item_ids = items.iter()
|
|
|
|
.filter_map(|item| {
|
|
|
|
if let item::ItemLocation::Bank {..} = item.location {
|
|
|
@ -1096,7 +1096,7 @@ async fn test_withdraw_individual_item() { |
|
|
|
if create_item.item_id == 0x20000
|
|
|
|
));
|
|
|
|
|
|
|
|
let items = entity_gateway.get_items_by_character(&char1).await.unwrap();
|
|
|
|
let items = entity_gateway.get_items_by_character(&char1.id).await.unwrap();
|
|
|
|
let inventory_item_ids = items.iter()
|
|
|
|
.filter_map(|item| {
|
|
|
|
if let item::ItemLocation::Inventory{..} = item.location {
|
|
|
@ -1163,7 +1163,7 @@ async fn test_withdraw_stacked_item() { |
|
|
|
if create_item.item_id == 0x10002
|
|
|
|
));
|
|
|
|
|
|
|
|
let items = entity_gateway.get_items_by_character(&char1).await.unwrap();
|
|
|
|
let items = entity_gateway.get_items_by_character(&char1.id).await.unwrap();
|
|
|
|
let inventory_item_ids = items.iter()
|
|
|
|
.filter_map(|item| {
|
|
|
|
if let item::ItemLocation::Inventory {..} = item.location {
|
|
|
@ -1230,7 +1230,7 @@ async fn test_withdraw_partial_stacked_item() { |
|
|
|
if create_item.item_id == 0x10002
|
|
|
|
));
|
|
|
|
|
|
|
|
let items = entity_gateway.get_items_by_character(&char1).await.unwrap();
|
|
|
|
let items = entity_gateway.get_items_by_character(&char1.id).await.unwrap();
|
|
|
|
let bank_item_ids = items.iter()
|
|
|
|
.filter_map(|item| {
|
|
|
|
if let item::ItemLocation::Bank {..} = item.location {
|
|
|
@ -1323,7 +1323,7 @@ async fn test_withdraw_stacked_item_with_stack_already_in_inventory() { |
|
|
|
if create_item.item_id == 0x10000
|
|
|
|
));
|
|
|
|
|
|
|
|
let items = entity_gateway.get_items_by_character(&char1).await.unwrap();
|
|
|
|
let items = entity_gateway.get_items_by_character(&char1.id).await.unwrap();
|
|
|
|
let inventory_item_ids = items.iter()
|
|
|
|
.filter_map(|item| {
|
|
|
|
if let item::ItemLocation::Inventory {..} = item.location {
|
|
|
@ -1399,7 +1399,7 @@ async fn test_withdraw_stacked_item_with_full_stack_in_inventory() { |
|
|
|
|
|
|
|
assert!(packets.is_err());
|
|
|
|
|
|
|
|
let items = entity_gateway.get_items_by_character(&char1).await.unwrap();
|
|
|
|
let items = entity_gateway.get_items_by_character(&char1.id).await.unwrap();
|
|
|
|
let bank_item_ids = items.iter()
|
|
|
|
.filter_map(|item| {
|
|
|
|
if let item::ItemLocation::Bank {..} = item.location {
|
|
|
@ -1495,7 +1495,7 @@ async fn test_withdraw_individual_item_in_full_inventory() { |
|
|
|
|
|
|
|
assert!(packets.is_err());
|
|
|
|
|
|
|
|
let items = entity_gateway.get_items_by_character(&char1).await.unwrap();
|
|
|
|
let items = entity_gateway.get_items_by_character(&char1.id).await.unwrap();
|
|
|
|
let bank_item_ids = items.iter()
|
|
|
|
.filter_map(|item| {
|
|
|
|
if let item::ItemLocation::Bank {..} = item.location {
|
|
|
@ -1588,7 +1588,7 @@ async fn test_withdraw_stacked_item_in_full_inventory() { |
|
|
|
|
|
|
|
assert!(packets.is_err());
|
|
|
|
|
|
|
|
let items = entity_gateway.get_items_by_character(&char1).await.unwrap();
|
|
|
|
let items = entity_gateway.get_items_by_character(&char1.id).await.unwrap();
|
|
|
|
let bank_item_ids = items.iter()
|
|
|
|
.filter_map(|item| {
|
|
|
|
if let item::ItemLocation::Bank {..} = item.location {
|
|
|
@ -1695,7 +1695,7 @@ async fn test_withdraw_stacked_item_in_full_inventory_with_partial_stack() { |
|
|
|
unknown: 0,
|
|
|
|
})))).await.unwrap().for_each(drop);
|
|
|
|
|
|
|
|
let items = entity_gateway.get_items_by_character(&char1).await.unwrap();
|
|
|
|
let items = entity_gateway.get_items_by_character(&char1.id).await.unwrap();
|
|
|
|
let bank_item_ids = items.iter()
|
|
|
|
.filter_map(|item| {
|
|
|
|
if let item::ItemLocation::Bank {..} = item.location {
|
|
|
|