mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Tweaked the Level 101+ equations for some growth rates, moved code that plays the overworld dust animation
This commit is contained in:
@@ -940,9 +940,6 @@ class Game_Character
|
||||
end
|
||||
# End of a step, so perform events that happen at this time
|
||||
if !jumping? && !moving?
|
||||
if was_jumping && !(self.is_a?(Game_Player) && $PokemonGlobal.surfing && !$game_temp.ending_surf)
|
||||
$scene.spriteset.addUserAnimation(Settings::DUST_ANIMATION_ID, @x, @y, true, 1)
|
||||
end
|
||||
EventHandlers.trigger(:on_step_taken, self)
|
||||
calculate_bush_depth
|
||||
@stopped_this_frame = true
|
||||
|
||||
@@ -271,4 +271,13 @@ class Game_Event < Game_Character
|
||||
@interpreter.update
|
||||
end
|
||||
end
|
||||
|
||||
def update_move
|
||||
was_jumping = jumping?
|
||||
super
|
||||
if was_jumping && !jumping? && !@transparent && (@tile_id > 0 || @character_name != "")
|
||||
spriteset = $scene.spriteset(map_id)
|
||||
spriteset&.addUserAnimation(Settings::DUST_ANIMATION_ID, self.x, self.y, true, 1)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -461,7 +461,14 @@ class Game_Player < Game_Character
|
||||
end
|
||||
end
|
||||
end
|
||||
was_jumping = jumping?
|
||||
super
|
||||
if was_jumping && !jumping? && !@transparent && (@tile_id > 0 || @character_name != "")
|
||||
if !$PokemonGlobal.surfing || $game_temp.ending_surf
|
||||
spriteset = $scene.spriteset(map_id)
|
||||
spriteset&.addUserAnimation(Settings::DUST_ANIMATION_ID, self.x, self.y, true, 1)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def update_stop
|
||||
|
||||
@@ -148,17 +148,6 @@ class Game_Follower < Game_Event
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
|
||||
def update_move
|
||||
was_jumping = jumping?
|
||||
super
|
||||
if was_jumping && !jumping?
|
||||
spriteset = $scene.spriteset(map_id)
|
||||
spriteset&.addUserAnimation(Settings::DUST_ANIMATION_ID, self.x, self.y, true, 1)
|
||||
end
|
||||
end
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
|
||||
private
|
||||
|
||||
def location_passable?(x, y, direction)
|
||||
|
||||
Reference in New Issue
Block a user