Browse Source

actually store meseta bank interaction

pull/127/head
jake 2 years ago
parent
commit
31ebc1af32
  1. 2
      src/ship/items/actions.rs

2
src/ship/items/actions.rs

@ -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), ()))
}) })

Loading…
Cancel
Save