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:
Maruno17
2021-12-12 23:10:01 +00:00
parent 2444b70ef6
commit 3da8b563da
5 changed files with 30 additions and 13 deletions

View File

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