mirror of
https://github.com/doukutsu-rs/doukutsu-rs
synced 2024-11-29 16:53:00 +00:00
load teleporter slots
This commit is contained in:
parent
b212d6f74b
commit
705a47d61c
|
@ -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); }
|
||||
|
|
Loading…
Reference in a new issue