mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Fixed set movement type (#185)
This commit is contained in:
@@ -578,13 +578,13 @@ end
|
||||
|
||||
def pbUpdateVehicle
|
||||
if $PokemonGlobal&.diving
|
||||
$game_player.set_movement_type(:diving)
|
||||
$game_player.set_movement_type(:diving_stopped)
|
||||
elsif $PokemonGlobal&.surfing
|
||||
$game_player.set_movement_type(:surfing)
|
||||
$game_player.set_movement_type(:surfing_stopped)
|
||||
elsif $PokemonGlobal&.bicycle
|
||||
$game_player.set_movement_type(:cycling)
|
||||
$game_player.set_movement_type(:cycling_stopped)
|
||||
else
|
||||
$game_player.set_movement_type(:walking)
|
||||
$game_player.set_movement_type(:walking_stopped)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ def pbFishingEnd
|
||||
end
|
||||
end
|
||||
yield if block_given?
|
||||
$game_player.set_movement_type(($PokemonGlobal.surfing) ? :surfing : :walking)
|
||||
$game_player.set_movement_type(($PokemonGlobal.surfing) ? :surfing_stopped : :walking_stopped)
|
||||
$game_player.lock_pattern = false
|
||||
$game_player.straighten
|
||||
$PokemonGlobal.fishing = false
|
||||
|
||||
Reference in New Issue
Block a user