mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-09 06:04:59 +00:00
Added water ripple animation, removed second error message when the Compiler crashes
This commit is contained in:
@@ -154,6 +154,18 @@ EventHandlers.add(:on_step_taken, :grass_rustling,
|
||||
}
|
||||
)
|
||||
|
||||
# Show water ripple animation
|
||||
EventHandlers.add(:on_step_taken, :still_water_ripple,
|
||||
proc { |event|
|
||||
next if !$scene.is_a?(Scene_Map)
|
||||
event.each_occupied_tile do |x, y|
|
||||
next if !$map_factory.getTerrainTagFromCoords(event.map.map_id, x, y, true).shows_water_ripple
|
||||
spriteset = $scene.spriteset(event.map_id)
|
||||
spriteset&.addUserAnimation(Settings::WATER_RIPPLE_ANIMATION_ID, x, y, true, -1)
|
||||
end
|
||||
}
|
||||
)
|
||||
|
||||
# Auto-move the player over waterfalls and ice
|
||||
EventHandlers.add(:on_step_taken, :auto_move_player,
|
||||
proc { |event|
|
||||
|
||||
Reference in New Issue
Block a user