|
@ -245,6 +245,7 @@ where |
|
|
let mut bank = item_state.bank(&character_id).await?;
|
|
|
let mut bank = item_state.bank(&character_id).await?;
|
|
|
bank.remove_meseta(amount)?;
|
|
|
bank.remove_meseta(amount)?;
|
|
|
transaction.gateway().set_bank_meseta(&character_id, &bank.name, bank.meseta).await?;
|
|
|
transaction.gateway().set_bank_meseta(&character_id, &bank.name, bank.meseta).await?;
|
|
|
|
|
|
item_state.set_bank(bank).await;
|
|
|
|
|
|
|
|
|
Ok(((item_state, transaction), ()))
|
|
|
Ok(((item_state, transaction), ()))
|
|
|
})
|
|
|
})
|
|
@ -286,6 +287,7 @@ where |
|
|
let mut bank = item_state.bank(&character_id).await?;
|
|
|
let mut bank = item_state.bank(&character_id).await?;
|
|
|
bank.add_meseta(amount)?;
|
|
|
bank.add_meseta(amount)?;
|
|
|
transaction.gateway().set_bank_meseta(&character_id, &bank.name, bank.meseta).await?;
|
|
|
transaction.gateway().set_bank_meseta(&character_id, &bank.name, bank.meseta).await?;
|
|
|
|
|
|
item_state.set_bank(bank).await;
|
|
|
|
|
|
|
|
|
Ok(((item_state, transaction), ()))
|
|
|
Ok(((item_state, transaction), ()))
|
|
|
})
|
|
|
})
|
|
|