Update 6.8

This commit is contained in:
chardub
2026-07-10 15:42:06 -04:00
parent 5b85e72cb2
commit 6a6f126a18
7871 changed files with 493194 additions and 224826 deletions
@@ -1,17 +1,22 @@
PUDDLE_ANIMATION_ID = 22
PUDDLE_ANIMATION_ID = 31
Events.onStepTakenFieldMovement += proc { |_sender, e|
event = e[0] # Get the event affected by field movement
event = e[0]
if $scene.is_a?(Scene_Map)
event.each_occupied_tile do |x, y|
mapTerrainTag = $MapFactory.getTerrainTag(event.map.map_id, x, y, false)
if $PokemonGlobal.surfing
if isWaterTerrain?(mapTerrainTag) #&& $PokemonGlobal.stepcount % 2 ==0
if isWaterTerrain?(mapTerrainTag) && !event.always_on_top
$scene.spriteset.addUserAnimation(PUDDLE_ANIMATION_ID, event.x, event.y, true, 0)
break
end
elsif $PokemonGlobal.boat
$scene.spriteset.addUserAnimation(PUDDLE_ANIMATION_ID, event.x, event.y-2, true, 0)
break
else
if mapTerrainTag == 16 #puddle
pbSEPlay("puddle", 100) if event == $game_player && !$PokemonGlobal.surfing #only play sound effect in puddle
if mapTerrainTag == 16
pbSEPlay("puddle", 100) if event == $game_player && !$PokemonGlobal.surfing
$scene.spriteset.addUserAnimation(PUDDLE_ANIMATION_ID, event.x, event.y, true, 0)
break
end
end
end
@@ -19,5 +24,5 @@ Events.onStepTakenFieldMovement += proc { |_sender, e|
}
def isWaterTerrain?(tag)
return [5, 6, 17, 7, 9, 16].include?(tag)
return [5, 6, 7, 9, 16, 27].include?(tag)
end