1
Fork 0
mirror of https://github.com/redstrate/Kawari.git synced 2025-06-08 17:37:46 +00:00

Spawn the player with at least SOME health

This commit is contained in:
Joshua Goins 2025-03-12 18:22:17 -04:00
parent 60e4713b96
commit 181d127fb5

View file

@ -361,9 +361,13 @@ async fn main() {
op_code: IPCOpCode::PlayerSpawn, op_code: IPCOpCode::PlayerSpawn,
server_id: 0, server_id: 0,
timestamp: timestamp_secs(), timestamp: timestamp_secs(),
data: IPCStructData::PlayerSpawn( data: IPCStructData::PlayerSpawn(PlayerSpawn {
PlayerSpawn::default(), hp_curr: 100,
), hp_max: 100,
mp_curr: 100,
mp_max: 100,
..Default::default()
}),
}; };
let response_packet = PacketSegment { let response_packet = PacketSegment {