Tweaked the Level 101+ equations for some growth rates, moved code that plays the overworld dust animation

This commit is contained in:
Maruno17
2023-04-29 18:10:26 +01:00
parent 4bab130785
commit 5f20121e59
7 changed files with 31 additions and 29 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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)