- add: money is now sent with the character data sent to the client
This commit is contained in:
@@ -274,6 +274,7 @@ pub(crate) async fn handle_select_char_req(
|
||||
let character = character_data.character.unwrap_or_default();
|
||||
|
||||
let name = NullTerminatedString(character.name.clone());
|
||||
let money = character.money;
|
||||
let looks = character.looks.unwrap();
|
||||
let position = character.position.unwrap();
|
||||
let stats = character.stats.unwrap();
|
||||
@@ -376,7 +377,7 @@ pub(crate) async fn handle_select_char_req(
|
||||
|
||||
// here we build the inventory
|
||||
let data = SrvInventoryData {
|
||||
zuly: 0,
|
||||
zuly: money,
|
||||
items: inventory,
|
||||
};
|
||||
let response_packet = Packet::new(PacketType::PakwcInventoryData, &data)?;
|
||||
|
||||
Reference in New Issue
Block a user