From 35cee3acc15a32fd230e936babdf7fc2861c089e Mon Sep 17 00:00:00 2001 From: jake Date: Fri, 31 Jan 2020 09:13:52 -0800 Subject: [PATCH] give the lvl199 guy a handgun --- src/main.rs | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 78e1b75..4c81c71 100644 --- a/src/main.rs +++ b/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(),