mirror of
https://github.com/redstrate/Kawari.git
synced 2025-05-20 01:37:45 +00:00
Add support for unlocking all aetherytes
This commit is contained in:
parent
94ed036431
commit
d82cb2d048
1 changed files with 15 additions and 2 deletions
|
@ -317,6 +317,11 @@ async fn client_loop(
|
||||||
|
|
||||||
let common = connection.get_player_common_spawn(connection.exit_position, connection.exit_rotation);
|
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
|
// send player spawn
|
||||||
{
|
{
|
||||||
let ipc = ServerZoneIpcSegment {
|
let ipc = ServerZoneIpcSegment {
|
||||||
|
@ -564,11 +569,19 @@ async fn client_loop(
|
||||||
let on = *arg0 == 0;
|
let on = *arg0 == 0;
|
||||||
let id = *arg1;
|
let id = *arg1;
|
||||||
|
|
||||||
|
// 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 {
|
connection.actor_control_self(ActorControlSelf {
|
||||||
category: ActorControlCategory::LearnTeleport { id, unlocked: on } }).await;
|
category: ActorControlCategory::LearnTeleport { id, unlocked: on } }).await;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
ClientZoneIpcData::ZoneJump {
|
ClientZoneIpcData::ZoneJump {
|
||||||
exit_box,
|
exit_box,
|
||||||
position,
|
position,
|
||||||
|
|
Loading…
Add table
Reference in a new issue