mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-07 13:15:01 +00:00
Changing encounter_version now updates the encounter tables immediately, title screen now plays properly if there are no splashes, compiling is now forced if any dat files are missing, other tweaks
This commit is contained in:
@@ -35,7 +35,7 @@ class PokemonGlobalMetadata
|
||||
attr_accessor :bridge
|
||||
attr_accessor :repel
|
||||
attr_accessor :flashUsed
|
||||
attr_accessor :encounter_version
|
||||
attr_reader :encounter_version
|
||||
# Map transfers
|
||||
attr_accessor :healingSpot
|
||||
attr_accessor :escapePoint
|
||||
@@ -106,6 +106,13 @@ class PokemonGlobalMetadata
|
||||
# Save file
|
||||
@safesave = false
|
||||
end
|
||||
|
||||
def encounter_version=(value)
|
||||
validate value => Integer
|
||||
return if @encounter_version == value
|
||||
@encounter_version = value
|
||||
$PokemonEncounters.setup($game_map.map_id) if $PokemonEncounters && $game_map
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user