|
|
@ -63,7 +63,7 @@ async fn test_pick_up_item_stack_of_items_already_in_inventory() { |
|
|
|
client: 0,
|
|
|
|
target: 0,
|
|
|
|
unknown1: 0,
|
|
|
|
area: 0,
|
|
|
|
map_area: 0,
|
|
|
|
item_id: 0x210000,
|
|
|
|
x: 0.0,
|
|
|
|
y: 0.0,
|
|
|
@ -74,7 +74,7 @@ async fn test_pick_up_item_stack_of_items_already_in_inventory() { |
|
|
|
client: 0,
|
|
|
|
target: 0,
|
|
|
|
item_id: 0x210000,
|
|
|
|
area: 0,
|
|
|
|
map_area: 0,
|
|
|
|
unknown: [0; 3]
|
|
|
|
})))).await.unwrap().for_each(drop);
|
|
|
|
|
|
|
@ -130,7 +130,7 @@ async fn test_pick_up_item_stack_of_items_not_already_held() { |
|
|
|
client: 0,
|
|
|
|
target: 0,
|
|
|
|
unknown1: 0,
|
|
|
|
area: 0,
|
|
|
|
map_area: 0,
|
|
|
|
item_id: 0x210000,
|
|
|
|
x: 0.0,
|
|
|
|
y: 0.0,
|
|
|
@ -141,7 +141,7 @@ async fn test_pick_up_item_stack_of_items_not_already_held() { |
|
|
|
client: 0,
|
|
|
|
target: 0,
|
|
|
|
item_id: 0x210000,
|
|
|
|
area: 0,
|
|
|
|
map_area: 0,
|
|
|
|
unknown: [0; 3]
|
|
|
|
})))).await.unwrap().for_each(drop);
|
|
|
|
|
|
|
@ -200,6 +200,7 @@ async fn test_pick_up_meseta_when_inventory_full() { |
|
|
|
target: 0,
|
|
|
|
item_id: 0xFFFFFFFF,
|
|
|
|
map_area: 0,
|
|
|
|
room: 0,
|
|
|
|
x: 0.0,
|
|
|
|
z: 0.0,
|
|
|
|
})))).await.unwrap().for_each(drop);
|
|
|
@ -215,7 +216,7 @@ async fn test_pick_up_meseta_when_inventory_full() { |
|
|
|
client: 0,
|
|
|
|
target: 0,
|
|
|
|
item_id: 0xF0000001,
|
|
|
|
area: 0,
|
|
|
|
map_area: 0,
|
|
|
|
unknown: [0; 3]
|
|
|
|
})))).await.unwrap().for_each(drop);
|
|
|
|
|
|
|
@ -298,7 +299,7 @@ async fn test_pick_up_partial_stacked_item_when_inventory_is_otherwise_full() { |
|
|
|
client: 0,
|
|
|
|
target: 0,
|
|
|
|
unknown1: 0,
|
|
|
|
area: 0,
|
|
|
|
map_area: 0,
|
|
|
|
item_id: 0x210000,
|
|
|
|
x: 0.0,
|
|
|
|
y: 0.0,
|
|
|
@ -309,7 +310,7 @@ async fn test_pick_up_partial_stacked_item_when_inventory_is_otherwise_full() { |
|
|
|
client: 0,
|
|
|
|
target: 0,
|
|
|
|
item_id: 0x210000,
|
|
|
|
area: 0,
|
|
|
|
map_area: 0,
|
|
|
|
unknown: [0; 3]
|
|
|
|
})))).await.unwrap().for_each(drop);
|
|
|
|
|
|
|
@ -385,7 +386,7 @@ async fn test_can_not_pick_up_item_when_inventory_full() { |
|
|
|
client: 0,
|
|
|
|
target: 0,
|
|
|
|
unknown1: 0,
|
|
|
|
area: 0,
|
|
|
|
map_area: 0,
|
|
|
|
item_id: 0x210000,
|
|
|
|
x: 0.0,
|
|
|
|
y: 0.0,
|
|
|
@ -396,7 +397,7 @@ async fn test_can_not_pick_up_item_when_inventory_full() { |
|
|
|
client: 0,
|
|
|
|
target: 0,
|
|
|
|
item_id: 0x210000,
|
|
|
|
area: 0,
|
|
|
|
map_area: 0,
|
|
|
|
unknown: [0; 3]
|
|
|
|
})))).await.unwrap().for_each(drop);
|
|
|
|
|
|
|
@ -410,7 +411,7 @@ async fn test_can_not_pick_up_item_when_inventory_full() { |
|
|
|
client: 0,
|
|
|
|
target: 0,
|
|
|
|
item_id: 0x210000,
|
|
|
|
area: 0,
|
|
|
|
map_area: 0,
|
|
|
|
unknown: [0; 3]
|
|
|
|
})))).await.unwrap().for_each(drop);
|
|
|
|
|
|
|
@ -439,6 +440,7 @@ async fn test_can_not_drop_more_meseta_than_is_held() { |
|
|
|
target: 0,
|
|
|
|
item_id: 0xFFFFFFFF,
|
|
|
|
map_area: 0,
|
|
|
|
room: 0,
|
|
|
|
x: 0.0,
|
|
|
|
z: 0.0,
|
|
|
|
})))).await.unwrap().for_each(drop);
|
|
|
@ -508,7 +510,7 @@ async fn test_pick_up_stack_that_would_exceed_stack_limit() { |
|
|
|
client: 0,
|
|
|
|
target: 0,
|
|
|
|
unknown1: 0,
|
|
|
|
area: 0,
|
|
|
|
map_area: 0,
|
|
|
|
item_id: 0x210000,
|
|
|
|
x: 0.0,
|
|
|
|
y: 0.0,
|
|
|
@ -519,7 +521,7 @@ async fn test_pick_up_stack_that_would_exceed_stack_limit() { |
|
|
|
client: 0,
|
|
|
|
target: 0,
|
|
|
|
item_id: 0x210000,
|
|
|
|
area: 0,
|
|
|
|
map_area: 0,
|
|
|
|
unknown: [0; 3]
|
|
|
|
})))).await.unwrap().collect::<Vec<_>>();
|
|
|
|
assert!(packets.len() == 0);
|
|
|
@ -558,6 +560,7 @@ async fn test_can_not_pick_up_meseta_when_full() { |
|
|
|
target: 0,
|
|
|
|
item_id: 0xFFFFFFFF,
|
|
|
|
map_area: 0,
|
|
|
|
room: 0,
|
|
|
|
x: 0.0,
|
|
|
|
z: 0.0,
|
|
|
|
})))).await.unwrap().for_each(drop);
|
|
|
@ -573,7 +576,7 @@ async fn test_can_not_pick_up_meseta_when_full() { |
|
|
|
client: 0,
|
|
|
|
target: 0,
|
|
|
|
item_id: 0xF0000001,
|
|
|
|
area: 0,
|
|
|
|
map_area: 0,
|
|
|
|
unknown: [0; 3]
|
|
|
|
})))).await.unwrap().collect::<Vec<_>>();
|
|
|
|
println!("pkts {:?}", packets);
|
|
|
@ -614,6 +617,7 @@ async fn test_meseta_caps_at_999999_when_trying_to_pick_up_more() { |
|
|
|
target: 0,
|
|
|
|
item_id: 0xFFFFFFFF,
|
|
|
|
map_area: 0,
|
|
|
|
room: 0,
|
|
|
|
x: 0.0,
|
|
|
|
z: 0.0,
|
|
|
|
})))).await.unwrap().for_each(drop);
|
|
|
@ -629,7 +633,7 @@ async fn test_meseta_caps_at_999999_when_trying_to_pick_up_more() { |
|
|
|
client: 0,
|
|
|
|
target: 0,
|
|
|
|
item_id: 0xF0000001,
|
|
|
|
area: 0,
|
|
|
|
map_area: 0,
|
|
|
|
unknown: [0; 3]
|
|
|
|
})))).await.unwrap().for_each(drop);
|
|
|
|
|
|
|
@ -679,6 +683,7 @@ async fn test_player_drops_partial_stack_and_other_player_picks_it_up() { |
|
|
|
target: 0,
|
|
|
|
item_id: 0x10000,
|
|
|
|
map_area: 0,
|
|
|
|
room: 0,
|
|
|
|
x: 0.0,
|
|
|
|
z: 0.0,
|
|
|
|
})))).await.unwrap().for_each(drop);
|
|
|
@ -694,7 +699,7 @@ async fn test_player_drops_partial_stack_and_other_player_picks_it_up() { |
|
|
|
client: 0,
|
|
|
|
target: 0,
|
|
|
|
item_id: 0xF0000001,
|
|
|
|
area: 0,
|
|
|
|
map_area: 0,
|
|
|
|
unknown: [0; 3]
|
|
|
|
})))).await.unwrap().for_each(drop);
|
|
|
|
|
|
|
|