Browse Source

set mag owner when creating a char

pull/127/head
jake 2 years ago
parent
commit
6ef5ea6681
  1. 2
      src/entity/item/mag.rs
  2. 2
      src/login/character.rs

2
src/entity/item/mag.rs

@ -521,7 +521,7 @@ pub enum MagCellError {
#[derive(Debug, Clone, PartialEq, Eq)]
pub enum MagModifier {
FeedMag{
FeedMag {
food: ItemEntityId,
},
BankMag, // when putting a mag in the bank it truncates the values which has applications when raising degenerate mags

2
src/login/character.rs

@ -266,6 +266,8 @@ async fn new_character<EG: EntityGateway + Clone>(entity_gateway: &mut EG, user:
character_id: character.id,
}).await?;
entity_gateway.change_mag_owner(&mag.id, &character).await?;
let mut monomates = Vec::new();
for _ in 0..4usize {
let monomate = entity_gateway.create_item(

Loading…
Cancel
Save