|
@ -291,8 +291,8 @@ fn main() { |
|
|
NewItemEntity {
|
|
|
NewItemEntity {
|
|
|
item: ItemDetail::Unit(
|
|
|
item: ItemDetail::Unit(
|
|
|
item::unit::Unit {
|
|
|
item::unit::Unit {
|
|
|
unit: item::unit::UnitType::PriestMind,
|
|
|
|
|
|
modifier: Some(item::unit::UnitModifier::Minus),
|
|
|
|
|
|
|
|
|
unit: item::unit::UnitType::PbIncrease,
|
|
|
|
|
|
modifier: None,
|
|
|
}
|
|
|
}
|
|
|
),
|
|
|
),
|
|
|
location: ItemLocation::Inventory {
|
|
|
location: ItemLocation::Inventory {
|
|
@ -304,8 +304,8 @@ fn main() { |
|
|
NewItemEntity {
|
|
|
NewItemEntity {
|
|
|
item: ItemDetail::Unit(
|
|
|
item: ItemDetail::Unit(
|
|
|
item::unit::Unit {
|
|
|
item::unit::Unit {
|
|
|
unit: item::unit::UnitType::PriestMind,
|
|
|
|
|
|
modifier: Some(item::unit::UnitModifier::Minus),
|
|
|
|
|
|
|
|
|
unit: item::unit::UnitType::PbIncrease,
|
|
|
|
|
|
modifier: None,
|
|
|
}
|
|
|
}
|
|
|
),
|
|
|
),
|
|
|
location: ItemLocation::Inventory {
|
|
|
location: ItemLocation::Inventory {
|
|
@ -317,8 +317,8 @@ fn main() { |
|
|
NewItemEntity {
|
|
|
NewItemEntity {
|
|
|
item: ItemDetail::Unit(
|
|
|
item: ItemDetail::Unit(
|
|
|
item::unit::Unit {
|
|
|
item::unit::Unit {
|
|
|
unit: item::unit::UnitType::PriestMind,
|
|
|
|
|
|
modifier: Some(item::unit::UnitModifier::Minus),
|
|
|
|
|
|
|
|
|
unit: item::unit::UnitType::PbIncrease,
|
|
|
|
|
|
modifier: None,
|
|
|
}
|
|
|
}
|
|
|
),
|
|
|
),
|
|
|
location: ItemLocation::Inventory {
|
|
|
location: ItemLocation::Inventory {
|
|
@ -330,8 +330,8 @@ fn main() { |
|
|
NewItemEntity {
|
|
|
NewItemEntity {
|
|
|
item: ItemDetail::Unit(
|
|
|
item: ItemDetail::Unit(
|
|
|
item::unit::Unit {
|
|
|
item::unit::Unit {
|
|
|
unit: item::unit::UnitType::PriestMind,
|
|
|
|
|
|
modifier: Some(item::unit::UnitModifier::Minus),
|
|
|
|
|
|
|
|
|
unit: item::unit::UnitType::PbIncrease,
|
|
|
|
|
|
modifier: None,
|
|
|
}
|
|
|
}
|
|
|
),
|
|
|
),
|
|
|
location: ItemLocation::Inventory {
|
|
|
location: ItemLocation::Inventory {
|
|
@ -350,12 +350,28 @@ fn main() { |
|
|
}
|
|
|
}
|
|
|
).await.unwrap();
|
|
|
).await.unwrap();
|
|
|
|
|
|
|
|
|
|
|
|
for _ in 0..100usize {
|
|
|
|
|
|
let fed_tool = entity_gateway.create_item(
|
|
|
|
|
|
NewItemEntity {
|
|
|
|
|
|
item: ItemDetail::Tool (
|
|
|
|
|
|
item::tool::Tool {
|
|
|
|
|
|
tool: item::tool::ToolType::Trimate,
|
|
|
|
|
|
}
|
|
|
|
|
|
),
|
|
|
|
|
|
location: item::ItemLocation::FedToMag {
|
|
|
|
|
|
mag: item13.id,
|
|
|
|
|
|
}
|
|
|
|
|
|
}).await.unwrap();
|
|
|
|
|
|
entity_gateway.feed_mag(&item13.id, &fed_tool.id).await.unwrap();
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let equipped = item::EquippedEntity {
|
|
|
let equipped = item::EquippedEntity {
|
|
|
weapon: Some(item2_w.id),
|
|
|
weapon: Some(item2_w.id),
|
|
|
armor: Some(item7_a.id),
|
|
|
armor: Some(item7_a.id),
|
|
|
shield: Some(item8_s.id),
|
|
|
shield: Some(item8_s.id),
|
|
|
unit: [Some(item9_u0.id), Some(item10_u1.id), Some(item11_u2.id), Some(item12_u3.id)],
|
|
|
unit: [Some(item9_u0.id), Some(item10_u1.id), Some(item11_u2.id), Some(item12_u3.id)],
|
|
|
mag: Some(item5_m.id),
|
|
|
|
|
|
|
|
|
mag: Some(item13.id),
|
|
|
};
|
|
|
};
|
|
|
entity_gateway.set_character_equips(&character.id, &equipped).await.unwrap();
|
|
|
entity_gateway.set_character_equips(&character.id, &equipped).await.unwrap();
|
|
|
|
|
|
|
|
|