Fixed Advanced Wild Battles not generating true wild Pokémon, removed deprecated move compatibility code, fixed pauses when turning during continuous movement

This commit is contained in:
Maruno17
2020-10-07 21:11:30 +01:00
parent 9a8fae0168
commit 94a20e55f3
3 changed files with 2 additions and 11 deletions

View File

@@ -388,7 +388,7 @@ class Game_Player < Game_Character
unless pbMapInterpreterRunning? or $game_temp.message_window_showing or
$PokemonTemp.miniupdate or $game_temp.in_menu
# Move player in the direction the directional button is being pressed
if dir==@lastdir && Graphics.frame_count-@lastdirframe>Graphics.frame_rate/20
if @moved_last_frame || (dir==@lastdir && Graphics.frame_count-@lastdirframe>Graphics.frame_rate/20)
case dir
when 2; move_down
when 4; move_left

View File

@@ -37,15 +37,6 @@ class PokeBattle_Pokemon
return pbGetFSpeciesFromForm(@species,formSimple)
end
alias __mf_compatibleWithMove? compatibleWithMove? # Deprecated
def compatibleWithMove?(move)
v = MultipleForms.call("getMoveCompatibility",self)
if v!=nil
return v.any? { |j| j==move }
end
return __mf_compatibleWithMove?(move)
end
alias __mf_initialize initialize
def initialize(*args)
@form = (pbGetSpeciesFromFSpecies(args[0])[1] rescue 0)

View File

@@ -348,7 +348,7 @@ def pbDebugMenuActions(cmd="",sprites=nil,viewport=nil)
params.setCancelValue(0)
level = pbMessageChooseNumber(_INTL("Set the wild {1}'s level.",PBSpecies.getName(species)),params)
if level>0
pkmn.push(pbNewPkmn(species,level))
pkmn.push(pbGenerateWildPokemon(species,level))
end
end
else # Edit a Pokémon