mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Synced FPS to monitor's refresh rate, fixed broken waterfall movement
This commit is contained in:
@@ -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
|
||||
|
||||
#===============================================================================
|
||||
|
||||
Reference in New Issue
Block a user