1
0
Fork 0
mirror of https://github.com/doukutsu-rs/doukutsu-rs synced 2024-11-30 01:02:51 +00:00

load teleporter slots

This commit is contained in:
Alula 2020-10-03 01:52:52 +02:00
parent b212d6f74b
commit 705a47d61c
No known key found for this signature in database
GPG key ID: 3E00485503A1D8BA

View file

@ -75,6 +75,10 @@ impl GameProfile {
game_scene.inventory.get_item(item as u16);
}
for slot in self.teleporter_slots.iter() {
state.teleporter_slots.push((slot.index as u16, slot.event_num as u16));
}
for (idx, &flags) in self.flags.iter().enumerate() {
if flags & 0b00000001 != 0 { state.game_flags.set(idx * 8, true); }
if flags & 0b00000010 != 0 { state.game_flags.set(idx * 8 + 1, true); }