handle dialogue ID changes in exits
This commit is contained in:
parent
0a7ed21ea6
commit
a969368a8f
|
@ -477,6 +477,15 @@ impl Game {
|
|||
if change.is_some() {
|
||||
exit.exit.room_id = change.unwrap().clone();
|
||||
}
|
||||
|
||||
if exit.dialogue_id.is_some() {
|
||||
let key = exit.dialogue_id.clone().unwrap();
|
||||
let dialogue_change = dialogue_id_changes.get(&key);
|
||||
if dialogue_change.is_some() {
|
||||
exit.dialogue_id = Some(dialogue_change.unwrap().clone());
|
||||
}
|
||||
}
|
||||
|
||||
exit
|
||||
}).collect();
|
||||
|
||||
|
|
Loading…
Reference in New Issue