Rewrote and refactored follower code, fixed follower glitchiness actoss connected maps, fixed follower glitchiness around bridges

This commit is contained in:
Maruno17
2021-10-02 22:57:54 +01:00
parent 0b656edffc
commit f35a51f975
15 changed files with 625 additions and 588 deletions

View File

@@ -454,7 +454,7 @@ def pbBikeCheck
pbMessage(_INTL("Can't use that here."))
return false
end
if $game_player.pbHasDependentEvents?
if $game_player.has_follower?
pbMessage(_INTL("It can't be used when you have someone with you."))
return false
end

View File

@@ -21,7 +21,7 @@ ItemHandlers::UseFromBag.add(:HONEY,proc { |item|
})
ItemHandlers::UseFromBag.add(:ESCAPEROPE,proc { |item|
if $game_player.pbHasDependentEvents?
if $game_player.has_follower?
pbMessage(_INTL("It can't be used when you have someone with you."))
next 0
end
@@ -66,7 +66,7 @@ ItemHandlers::ConfirmUseInField.add(:ESCAPEROPE,proc { |item|
pbMessage(_INTL("Can't use that here."))
next false
end
if $game_player.pbHasDependentEvents?
if $game_player.has_follower?
pbMessage(_INTL("It can't be used when you have someone with you."))
next false
end
@@ -158,7 +158,7 @@ ItemHandlers::UseInField.add(:ESCAPEROPE,proc { |item|
pbMessage(_INTL("Can't use that here."))
next false
end
if $game_player.pbHasDependentEvents?
if $game_player.has_follower?
pbMessage(_INTL("It can't be used when you have someone with you."))
next false
end