update inventory for ingame selling tests
This commit is contained in:
parent
8acbb91416
commit
d48494d5b3
@ -241,22 +241,13 @@ fn main() {
|
||||
}).await.unwrap();
|
||||
entity_gateway.use_mag_cell(&item5_m.id, &cell.id).await.unwrap();
|
||||
|
||||
entity_gateway.create_item(
|
||||
let item6_1 = entity_gateway.create_item(
|
||||
NewItemEntity {
|
||||
item: ItemDetail::Weapon(
|
||||
item::weapon::Weapon {
|
||||
weapon: item::weapon::WeaponType::Autogun,
|
||||
grind: 5,
|
||||
special: Some(item::weapon::WeaponSpecial::Hell),
|
||||
attrs: [Some(item::weapon::WeaponAttribute{attr: item::weapon::Attribute::Hit, value: 70}),
|
||||
Some(item::weapon::WeaponAttribute{attr: item::weapon::Attribute::Dark, value: 80}),
|
||||
None,],
|
||||
tekked: false,
|
||||
}
|
||||
item: ItemDetail::ESWeapon(
|
||||
item::esweapon::ESWeapon::new(item::esweapon::ESWeaponType::Saber)
|
||||
),
|
||||
location: ItemLocation::Bank {
|
||||
location: ItemLocation::Inventory {
|
||||
character_id: character.id,
|
||||
name: item::BankName("".to_string()),
|
||||
}
|
||||
}).await.unwrap();
|
||||
let item7_a = entity_gateway.create_item(
|
||||
@ -264,8 +255,8 @@ fn main() {
|
||||
item: ItemDetail::Armor(
|
||||
item::armor::Armor {
|
||||
armor: item::armor::ArmorType::Frame,
|
||||
dfp: 0,
|
||||
evp: 0,
|
||||
dfp: 2,
|
||||
evp: 2,
|
||||
slots: 4,
|
||||
}
|
||||
),
|
||||
@ -279,8 +270,8 @@ fn main() {
|
||||
item: ItemDetail::Shield(
|
||||
item::shield::Shield {
|
||||
shield: item::shield::ShieldType::Barrier,
|
||||
dfp: 0,
|
||||
evp: 0,
|
||||
dfp: 5,
|
||||
evp: 5,
|
||||
}
|
||||
),
|
||||
location: ItemLocation::Inventory {
|
||||
@ -293,7 +284,7 @@ fn main() {
|
||||
item: ItemDetail::Unit(
|
||||
item::unit::Unit {
|
||||
unit: item::unit::UnitType::PriestMind,
|
||||
modifier: Some(item::unit::UnitModifier::Minus),
|
||||
modifier: Some(item::unit::UnitModifier::PlusPlus),
|
||||
}
|
||||
),
|
||||
location: ItemLocation::Inventory {
|
||||
@ -306,7 +297,7 @@ fn main() {
|
||||
item: ItemDetail::Unit(
|
||||
item::unit::Unit {
|
||||
unit: item::unit::UnitType::PriestMind,
|
||||
modifier: Some(item::unit::UnitModifier::Minus),
|
||||
modifier: Some(item::unit::UnitModifier::Plus),
|
||||
}
|
||||
),
|
||||
location: ItemLocation::Inventory {
|
||||
@ -332,7 +323,7 @@ fn main() {
|
||||
item: ItemDetail::Unit(
|
||||
item::unit::Unit {
|
||||
unit: item::unit::UnitType::PriestMind,
|
||||
modifier: Some(item::unit::UnitModifier::Minus),
|
||||
modifier: Some(item::unit::UnitModifier::MinusMinus),
|
||||
}
|
||||
),
|
||||
location: ItemLocation::Inventory {
|
||||
@ -377,7 +368,7 @@ fn main() {
|
||||
};
|
||||
entity_gateway.set_character_equips(&character.id, &equipped).await.unwrap();
|
||||
|
||||
let inventory = item::InventoryEntity::new(vec![item0, item1, item2_w, item3, item4, item5_m, item6, item7_a, item8_s, item9_u0, item10_u1, item11_u2, item12_u3, item13, item14]);
|
||||
let inventory = item::InventoryEntity::new(vec![item0, item1, item2_w, item3, item4, item5_m, item6, item6_1, item7_a, item8_s, item9_u0, item10_u1, item11_u2, item12_u3, item13, item14]);
|
||||
entity_gateway.set_character_inventory(&character.id, &inventory).await.unwrap();
|
||||
entity_gateway.set_character_bank(&character.id, &item::BankEntity::default(), item::BankName("".into())).await.unwrap();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user