set mag owner on character create
This commit is contained in:
parent
50c5699f34
commit
c3bf42d367
@ -224,9 +224,11 @@ async fn new_character<EG: EntityGateway>(entity_gateway: &mut EG, user: &UserAc
|
|||||||
equipped: true,
|
equipped: true,
|
||||||
}}).await;
|
}}).await;
|
||||||
|
|
||||||
|
let mut mag = Mag::baby_mag(character.appearance.skin);
|
||||||
|
mag.change_owner(character.char_class, character.section_id);
|
||||||
entity_gateway.create_item(
|
entity_gateway.create_item(
|
||||||
NewItemEntity {
|
NewItemEntity {
|
||||||
item: ItemDetail::Mag(Mag::baby_mag(character.appearance.skin)),
|
item: ItemDetail::Mag(mag),
|
||||||
location: ItemLocation::Inventory {
|
location: ItemLocation::Inventory {
|
||||||
character_id: character.id,
|
character_id: character.id,
|
||||||
slot: 2,
|
slot: 2,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user