- add: money is now sent with the character data sent to the client

This commit is contained in:
2025-03-09 13:53:26 -04:00
parent 8ba8fce20b
commit dfd98e96d2
7 changed files with 52 additions and 43 deletions

View File

@@ -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)?;