|
|
@ -7,7 +7,7 @@ use elseware::login::character::CharacterServerState; |
|
|
|
use elseware::ship::ship::ShipServerStateBuilder;
|
|
|
|
use elseware::entity::account::{NewUserAccountEntity, NewUserSettingsEntity};
|
|
|
|
use elseware::entity::gateway::{EntityGateway, InMemoryGateway, PostgresGateway};
|
|
|
|
use elseware::entity::character::NewCharacterEntity;
|
|
|
|
use elseware::entity::character::{NewCharacterEntity, CharacterClass};
|
|
|
|
use elseware::entity::item::{NewItemEntity, ItemDetail, ItemLocation};
|
|
|
|
use elseware::common::interserver::AuthToken;
|
|
|
|
|
|
|
@ -69,6 +69,7 @@ fn main() { |
|
|
|
entity_gateway.create_character(character).await.unwrap();
|
|
|
|
let mut character = NewCharacterEntity::new(fake_user.id);
|
|
|
|
character.slot = 2;
|
|
|
|
character.char_class = CharacterClass::HUnewearl;
|
|
|
|
character.name = "ItemRefactor".into();
|
|
|
|
character.exp = 80000000;
|
|
|
|
character.meseta = 999999;
|
|
|
@ -165,7 +166,7 @@ fn main() { |
|
|
|
item::weapon::Weapon {
|
|
|
|
weapon: item::weapon::WeaponType::Vulcan,
|
|
|
|
grind: 5,
|
|
|
|
special: Some(item::weapon::WeaponSpecial::Charge),
|
|
|
|
special: Some(item::weapon::WeaponSpecial::Berserk),
|
|
|
|
attrs: [Some(item::weapon::WeaponAttribute{attr: item::weapon::Attribute::Hit, value: 100}),
|
|
|
|
Some(item::weapon::WeaponAttribute{attr: item::weapon::Attribute::Dark, value: 100}),
|
|
|
|
None,],
|
|
|
@ -291,8 +292,8 @@ fn main() { |
|
|
|
NewItemEntity {
|
|
|
|
item: ItemDetail::Unit(
|
|
|
|
item::unit::Unit {
|
|
|
|
unit: item::unit::UnitType::PriestMind,
|
|
|
|
modifier: Some(item::unit::UnitModifier::Minus),
|
|
|
|
unit: item::unit::UnitType::HeavenlyPower,
|
|
|
|
modifier: None,
|
|
|
|
}
|
|
|
|
),
|
|
|
|
location: ItemLocation::Inventory {
|
|
|
@ -304,8 +305,8 @@ fn main() { |
|
|
|
NewItemEntity {
|
|
|
|
item: ItemDetail::Unit(
|
|
|
|
item::unit::Unit {
|
|
|
|
unit: item::unit::UnitType::PriestMind,
|
|
|
|
modifier: Some(item::unit::UnitModifier::Minus),
|
|
|
|
unit: item::unit::UnitType::HeavenlyBattle,
|
|
|
|
modifier: None,
|
|
|
|
}
|
|
|
|
),
|
|
|
|
location: ItemLocation::Inventory {
|
|
|
|