give the lvl199 guy a handgun
This commit is contained in:
parent
8c42bc03b9
commit
35cee3acc1
22
src/main.rs
22
src/main.rs
@ -23,7 +23,8 @@ use entity::account::{UserAccount, UserSettings};
|
||||
use entity::gateway::{EntityGateway, InMemoryGateway};
|
||||
use entity::item::ItemLocation;
|
||||
use libpso::{utf8_to_array, utf8_to_utf16_array};
|
||||
//use crate::utf8_to_utf16_array;
|
||||
|
||||
use crate::entity::item;
|
||||
|
||||
use libpso::item::*;
|
||||
|
||||
@ -83,6 +84,25 @@ fn main() {
|
||||
character.exp = 80000000;
|
||||
entity_gateway.set_character(&character);
|
||||
|
||||
entity_gateway.new_item(
|
||||
item::ItemDetail::Weapon(
|
||||
item::Weapon {
|
||||
equipped: true,
|
||||
weapon: weapon::Weapon {
|
||||
weapon: weapon::WeaponType::Handgun,
|
||||
grind: 5,
|
||||
special: None,
|
||||
attrs: [None; 3],
|
||||
}
|
||||
}
|
||||
),
|
||||
ItemLocation::Inventory {
|
||||
character_id: character.id,
|
||||
index: 0,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
let fake_user2 = UserAccount {
|
||||
id: 2,
|
||||
username: "hi2".to_string(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user