Browse Source

clipster

pull/134/head
andy 2 years ago
parent
commit
00bc001297
  1. 4
      src/entity/gateway/postgres/models.rs
  2. 1
      src/entity/item/mod.rs
  3. 4
      src/ship/items/actions.rs

4
src/entity/gateway/postgres/models.rs

@ -664,7 +664,7 @@ impl From<ItemNote> for PgItemNoteDetail {
}, },
ItemNote::FloorLimitReached { map_area } => { ItemNote::FloorLimitReached { map_area } => {
PgItemNoteDetail::FloorLimitReached { PgItemNoteDetail::FloorLimitReached {
map_area: map_area,
map_area,
} }
}, },
} }
@ -712,7 +712,7 @@ impl From<PgItemNoteDetail> for ItemNote {
bank, bank,
}, },
PgItemNoteDetail::FloorLimitReached { map_area } => ItemNote::FloorLimitReached { PgItemNoteDetail::FloorLimitReached { map_area } => ItemNote::FloorLimitReached {
map_area: map_area,
map_area,
}, },
} }
} }

1
src/entity/item/mod.rs

@ -10,7 +10,6 @@ pub mod esweapon;
use serde::{Serialize, Deserialize}; use serde::{Serialize, Deserialize};
use crate::entity::character::CharacterEntityId; use crate::entity::character::CharacterEntityId;
use crate::ship::items::ClientItemId;
use crate::ship::map::MapArea; use crate::ship::map::MapArea;
use crate::ship::drops::ItemDropType; use crate::ship::drops::ItemDropType;

4
src/ship/items/actions.rs

@ -1161,7 +1161,9 @@ where
Box::pin(async move { Box::pin(async move {
let transaction = floor_item.with_entity_id(transaction, |mut transaction, entity_id| { let transaction = floor_item.with_entity_id(transaction, |mut transaction, entity_id| {
async move { async move {
transaction.gateway().add_item_note(&entity_id, ItemNote::FloorLimitReached { map_area: map_area }).await?;
transaction.gateway().add_item_note(&entity_id, ItemNote::FloorLimitReached {
map_area
}).await?;
Ok(transaction) Ok(transaction)
}}).await?; }}).await?;
Ok(((item_state, transaction), ())) Ok(((item_state, transaction), ()))

Loading…
Cancel
Save