mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2026-11-03 00:06:01 +00:00
Release 6.9.0
This commit is contained in:
@@ -74,9 +74,7 @@ def moveFancy(follower,direction)
|
||||
newY = follower.y + deltaY
|
||||
# Move if new position is the player's, or the new position is passable,
|
||||
# or the current position is not passable
|
||||
if ($game_player.x==newX && $game_player.y==newY) ||
|
||||
pbTestPass(follower,newX,newY,0) ||
|
||||
!pbTestPass(follower,follower.x,follower.y,0)
|
||||
if can_move_to_new_position(newX,newY,follower)
|
||||
oldThrough=follower.through
|
||||
follower.through=true
|
||||
case direction
|
||||
@@ -89,6 +87,13 @@ def moveFancy(follower,direction)
|
||||
end
|
||||
end
|
||||
|
||||
def can_move_to_new_position(newX,newY, follower)
|
||||
return true if ($game_player.x==newX && $game_player.y==newY)
|
||||
return true if pbTestPass(follower,newX,newY,0)
|
||||
return true unless !pbTestPass(follower,follower.x,follower.y,0)
|
||||
return false
|
||||
end
|
||||
|
||||
# Same map only
|
||||
def jumpFancy(follower,direction,leader)
|
||||
deltaX=(direction == 6 ? 2 : (direction == 4 ? -2 : 0))
|
||||
|
||||
Reference in New Issue
Block a user