Synced FPS to monitor's refresh rate, fixed broken waterfall movement

This commit is contained in:
Maruno17
2023-06-03 22:33:49 +01:00
parent 1901675e33
commit 3470f9769c
6 changed files with 49 additions and 31 deletions

View File

@@ -8,6 +8,8 @@ class PokemonGlobalMetadata
attr_accessor :surfing
attr_accessor :diving
attr_accessor :ice_sliding
attr_accessor :descending_waterfall
attr_accessor :ascending_waterfall
attr_accessor :fishing
# Player data
attr_accessor :startTime
@@ -59,6 +61,8 @@ class PokemonGlobalMetadata
@surfing = false
@diving = false
@ice_sliding = false
@descending_waterfall = false
@ascending_waterfall = false
@fishing = false
# Player data
@startTime = Time.now
@@ -113,6 +117,10 @@ class PokemonGlobalMetadata
@encounter_version = value
$PokemonEncounters.setup($game_map.map_id) if $PokemonEncounters && $game_map
end
def forced_movement?
return @ice_sliding || @descending_waterfall || @ascending_waterfall
end
end
#===============================================================================