|
|
@ -137,8 +137,8 @@ where |
|
|
|
let (item, floor_type) = item_manager.get_floor_item_by_id(&client.character, ClientItemId(pickup_item.item_id))?;
|
|
|
|
let remove_item = builder::message::remove_item_from_floor(area_client, item)?;
|
|
|
|
let create_item = match item {
|
|
|
|
FloorItem::Individual(individual_floor_item) => Some(builder::message::create_item(area_client, item.item_id(), &individual_floor_item.item)?),
|
|
|
|
FloorItem::Stacked(stacked_floor_item) => Some(builder::message::create_item(area_client, item.item_id(), &item::ItemDetail::Tool(stacked_floor_item.tool))?),
|
|
|
|
FloorItem::Individual(individual_floor_item) => Some(builder::message::create_individual_item(area_client, item.item_id(), &individual_floor_item.item)?),
|
|
|
|
FloorItem::Stacked(stacked_floor_item) => Some(builder::message::create_stacked_item(area_client, item.item_id(), &stacked_floor_item.tool, stacked_floor_item.count())?),
|
|
|
|
FloorItem::Meseta(_) => None,
|
|
|
|
//_ => Some(builder::message::create_item(area_client, &item)?),
|
|
|
|
};
|
|
|
@ -480,7 +480,7 @@ where |
|
|
|
};
|
|
|
|
let weapon = item_manager.replace_item_with_tekked(entity_gateway, &client.character, item_id, modifier).await?;
|
|
|
|
|
|
|
|
let create_item_pkt = builder::message::create_item(area_client, item_id, &item::ItemDetail::Weapon(weapon))?;
|
|
|
|
let create_item_pkt = builder::message::create_individual_item(area_client, item_id, &item::ItemDetail::Weapon(weapon))?;
|
|
|
|
|
|
|
|
let neighbors = client_location.get_client_neighbors(id).map_err(|err| -> ClientLocationError { err.into() })?;
|
|
|
|
Ok(Box::new(neighbors.into_iter()
|
|
|
|