Added conversion to fix incorrect phone contacts data, fixed being unable to call people, fixed crash when writing a Battle Facility PBS file

This commit is contained in:
Maruno17
2021-05-07 21:09:22 +01:00
parent 5618607afa
commit 43eddaa5da
8 changed files with 38 additions and 21 deletions

View File

@@ -686,7 +686,7 @@ def pbChooseItem(var = 0, *args)
screen = PokemonBagScreen.new(scene,$PokemonBag)
ret = screen.pbChooseItemScreen
}
$game_variables[var] = ret if var > 0
$game_variables[var] = ret || :NONE if var > 0
return ret
end
@@ -697,7 +697,7 @@ def pbChooseApricorn(var = 0)
screen = PokemonBagScreen.new(scene,$PokemonBag)
ret = screen.pbChooseItemScreen(Proc.new { |item| GameData::Item.get(item).is_apricorn? })
}
$game_variables[var] = ret if var > 0
$game_variables[var] = ret || :NONE if var > 0
return ret
end
@@ -708,7 +708,7 @@ def pbChooseFossil(var = 0)
screen = PokemonBagScreen.new(scene,$PokemonBag)
ret = screen.pbChooseItemScreen(Proc.new { |item| GameData::Item.get(item).is_fossil? })
}
$game_variables[var] = ret if var > 0
$game_variables[var] = ret || :NONE if var > 0
return ret
end