set mag owner when creating a char
This commit is contained in:
parent
1fb0abce09
commit
6ef5ea6681
@ -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
|
||||
|
@ -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…
x
Reference in New Issue
Block a user