From 77068a79cf7d6d5e468e34ddfa1565cb4760ad65 Mon Sep 17 00:00:00 2001 From: andy Date: Sun, 16 May 2021 19:46:21 +0000 Subject: [PATCH] change char class for tech testing --- src/bin/main.rs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/bin/main.rs b/src/bin/main.rs index f5b7823..accc86d 100644 --- a/src/bin/main.rs +++ b/src/bin/main.rs @@ -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 {