mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-09 14:14:59 +00:00
Removes several unused maps
This commit is contained in:
@@ -155,7 +155,7 @@ Events.onStepTakenFieldMovement += proc { |_sender, e|
|
||||
end
|
||||
if event == $game_player
|
||||
currentTag = $game_player.pbTerrainTag
|
||||
if currentTag.waterfall_crest || currentTag.waterfall
|
||||
if isTerrainWaterfall(currentTag)
|
||||
pbDescendWaterfall
|
||||
elsif currentTag.ice && !$PokemonGlobal.sliding
|
||||
pbSlideOnIce
|
||||
@@ -166,6 +166,10 @@ Events.onStepTakenFieldMovement += proc { |_sender, e|
|
||||
end
|
||||
}
|
||||
|
||||
def isTerrainWaterfall(currentTag)
|
||||
return currentTag.waterfall_crest || currentTag.waterfall
|
||||
end
|
||||
|
||||
def isRepelActive()
|
||||
return false if $game_switches[SWITCH_USED_AN_INCENSE]
|
||||
return ($PokemonGlobal.repel > 0) || $PokemonTemp.pokeradar
|
||||
|
||||
@@ -1137,13 +1137,20 @@ end
|
||||
|
||||
Events.onAction += proc { |_sender, _e|
|
||||
terrain = $game_player.pbFacingTerrainTag
|
||||
if terrain.waterfall
|
||||
if terrain.waterfall || isFacingTempWaterfall()
|
||||
pbWaterfall
|
||||
elsif terrain.waterfall_crest
|
||||
pbMessage(_INTL("A wall of water is crashing down with a mighty roar."))
|
||||
end
|
||||
}
|
||||
|
||||
def isFacingTempWaterfall()
|
||||
return if !$game_temp.temp_waterfall
|
||||
player_coordinates = [$game_player.x, $game_player.y]
|
||||
echoln $game_temp.temp_waterfall.include?(player_coordinates)
|
||||
return $game_temp.temp_waterfall.include?(player_coordinates)
|
||||
end
|
||||
|
||||
HiddenMoveHandlers::CanUseMove.add(:WATERFALL, proc { |move, pkmn, showmsg|
|
||||
next false if !pbCheckHiddenMoveBadge(Settings::BADGE_FOR_WATERFALL, showmsg)
|
||||
if !$game_player.pbFacingTerrainTag.waterfall
|
||||
|
||||
Reference in New Issue
Block a user