mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-08 05:34:58 +00:00
Made Player Transfer event command not cancel surfing/diving, so pbTransferSurfing and pbTransferUnderwater are deprecated.
This commit is contained in:
@@ -576,9 +576,9 @@ def pbUpdateVehicle
|
||||
end
|
||||
end
|
||||
|
||||
def pbCancelVehicles(destination=nil)
|
||||
$PokemonGlobal.surfing = false
|
||||
$PokemonGlobal.diving = false
|
||||
def pbCancelVehicles(destination = nil, cancel_swimming = true)
|
||||
$PokemonGlobal.surfing = false if cancel_swimming
|
||||
$PokemonGlobal.diving = false if cancel_swimming
|
||||
$PokemonGlobal.bicycle = false if !destination || !pbCanUseBike?(destination)
|
||||
pbUpdateVehicle
|
||||
end
|
||||
|
||||
@@ -329,31 +329,37 @@ end
|
||||
#===============================================================================
|
||||
# Deprecated methods
|
||||
#===============================================================================
|
||||
# @deprecated This method is slated to be removed in v21.
|
||||
def pbAddDependency2(event_id, name, common_event_id)
|
||||
Deprecation.warn_method('pbAddDependency2', 'v21', 'Followers.add(event_id, name, common_event_id)')
|
||||
Followers.add(event_id, name, common_event_id)
|
||||
end
|
||||
|
||||
# @deprecated This method is slated to be removed in v21.
|
||||
def pbAddDependency(event)
|
||||
Deprecation.warn_method('pbAddDependency', 'v21', 'Followers.add_event(event)')
|
||||
Followers.add_event(event)
|
||||
end
|
||||
|
||||
# @deprecated This method is slated to be removed in v21.
|
||||
def pbRemoveDependency2(name)
|
||||
Deprecation.warn_method('pbRemoveDependency2', 'v21', 'Followers.remove(name)')
|
||||
Followers.remove(name)
|
||||
end
|
||||
|
||||
# @deprecated This method is slated to be removed in v21.
|
||||
def pbRemoveDependency(event)
|
||||
Deprecation.warn_method('pbRemoveDependency', 'v21', 'Followers.remove_event(event)')
|
||||
Followers.remove_event(event)
|
||||
end
|
||||
|
||||
# @deprecated This method is slated to be removed in v21.
|
||||
def pbRemoveDependencies
|
||||
Deprecation.warn_method('pbRemoveDependencies', 'v21', 'Followers.clear')
|
||||
Followers.clear
|
||||
end
|
||||
|
||||
# @deprecated This method is slated to be removed in v21.
|
||||
def pbGetDependency(name)
|
||||
Deprecation.warn_method('pbGetDependency', 'v21', 'Followers.get(name)')
|
||||
Followers.get(name)
|
||||
|
||||
Reference in New Issue
Block a user