Browse Source

give the lvl199 guy a handgun

pbs
jake 5 years ago
parent
commit
35cee3acc1
  1. 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…
Cancel
Save