From d82cb2d048bec8451fb96872e4b841b1d96a89ea Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Sun, 11 May 2025 12:38:55 -0400 Subject: [PATCH] Add support for unlocking all aetherytes --- src/bin/kawari-world.rs | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/src/bin/kawari-world.rs b/src/bin/kawari-world.rs index 4d77e6a..f2c3661 100644 --- a/src/bin/kawari-world.rs +++ b/src/bin/kawari-world.rs @@ -317,6 +317,11 @@ async fn client_loop( let common = connection.get_player_common_spawn(connection.exit_position, connection.exit_rotation); + let chara_details = database.find_chara_make(connection.player_data.content_id); + + connection.send_inventory(false).await; + connection.send_stats(&chara_details).await; + // send player spawn { let ipc = ServerZoneIpcSegment { @@ -564,8 +569,16 @@ async fn client_loop( let on = *arg0 == 0; let id = *arg1; - connection.actor_control_self(ActorControlSelf { - category: ActorControlCategory::LearnTeleport { id, unlocked: on } }).await; + // id == 0 means "all" + if id == 0 { + for i in 1..239 { + connection.actor_control_self(ActorControlSelf { + category: ActorControlCategory::LearnTeleport { id: i, unlocked: on } }).await; + } + } else { + connection.actor_control_self(ActorControlSelf { + category: ActorControlCategory::LearnTeleport { id, unlocked: on } }).await; + } } } }