mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2026-01-22 22:36:03 +00:00
Fixed previous commit always causing recompiling if shadow_pokemon.dat doesn't exist, also rubocopping
This commit is contained in:
@@ -888,7 +888,7 @@ module Compiler
|
||||
rescue SystemCallError
|
||||
mustCompile = true
|
||||
end
|
||||
else
|
||||
elsif filename != "shadow_pokemon.dat"
|
||||
mustCompile = true
|
||||
break
|
||||
end
|
||||
|
||||
@@ -99,7 +99,7 @@ module Compiler
|
||||
# Compile map connections
|
||||
#=============================================================================
|
||||
def compile_connections(*paths)
|
||||
records = []
|
||||
records = []
|
||||
paths.each do |path|
|
||||
compile_pbs_file_message_start(path)
|
||||
pbCompilerEachPreppedLine(path) { |line, lineno|
|
||||
|
||||
@@ -476,7 +476,7 @@ module Compiler
|
||||
end
|
||||
# Write each trainer property
|
||||
schema.each_key do |key|
|
||||
next if key == "SectionName" || key == "Pokemon"
|
||||
next if ["SectionName", "Pokemon"].include?(key)
|
||||
val = element.get_property_for_PBS(key)
|
||||
next if val.nil?
|
||||
f.write(sprintf("%s = ", key))
|
||||
|
||||
Reference in New Issue
Block a user