mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2026-01-29 17:55:59 +00:00
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:
@@ -388,7 +388,7 @@ class Game_Player < Game_Character
|
|||||||
unless pbMapInterpreterRunning? or $game_temp.message_window_showing or
|
unless pbMapInterpreterRunning? or $game_temp.message_window_showing or
|
||||||
$PokemonTemp.miniupdate or $game_temp.in_menu
|
$PokemonTemp.miniupdate or $game_temp.in_menu
|
||||||
# Move player in the direction the directional button is being pressed
|
# 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
|
case dir
|
||||||
when 2; move_down
|
when 2; move_down
|
||||||
when 4; move_left
|
when 4; move_left
|
||||||
|
|||||||
@@ -37,15 +37,6 @@ class PokeBattle_Pokemon
|
|||||||
return pbGetFSpeciesFromForm(@species,formSimple)
|
return pbGetFSpeciesFromForm(@species,formSimple)
|
||||||
end
|
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
|
alias __mf_initialize initialize
|
||||||
def initialize(*args)
|
def initialize(*args)
|
||||||
@form = (pbGetSpeciesFromFSpecies(args[0])[1] rescue 0)
|
@form = (pbGetSpeciesFromFSpecies(args[0])[1] rescue 0)
|
||||||
|
|||||||
@@ -348,7 +348,7 @@ def pbDebugMenuActions(cmd="",sprites=nil,viewport=nil)
|
|||||||
params.setCancelValue(0)
|
params.setCancelValue(0)
|
||||||
level = pbMessageChooseNumber(_INTL("Set the wild {1}'s level.",PBSpecies.getName(species)),params)
|
level = pbMessageChooseNumber(_INTL("Set the wild {1}'s level.",PBSpecies.getName(species)),params)
|
||||||
if level>0
|
if level>0
|
||||||
pkmn.push(pbNewPkmn(species,level))
|
pkmn.push(pbGenerateWildPokemon(species,level))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
else # Edit a Pokémon
|
else # Edit a Pokémon
|
||||||
|
|||||||
Reference in New Issue
Block a user