Fixed previous commit always causing recompiling if shadow_pokemon.dat doesn't exist, also rubocopping

This commit is contained in:
Maruno17
2023-01-23 22:27:04 +00:00
parent f6213057d8
commit b0b6e675c3
103 changed files with 1099 additions and 1302 deletions

View File

@@ -46,6 +46,8 @@ class SpriteWindow < Window
end
attr_reader :compat
attr_reader :skinformat
attr_reader :skinrect
def compat=(value)
@compat = value
@@ -324,10 +326,6 @@ class SpriteWindow < Window
end
end
#############
attr_reader :skinformat
attr_reader :skinrect
def loadSkinFile(_file)
if (self.windowskin.width == 80 || self.windowskin.width == 96) &&
self.windowskin.height == 48
@@ -437,7 +435,8 @@ class SpriteWindow < Window
privRefresh
end
#############
#===============================================================================
private
def ensureBitmap(bitmap, dwidth, dheight)
@@ -813,8 +812,6 @@ class SpriteWindow < Window
end
end
#===============================================================================
#
#===============================================================================