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

@@ -1,7 +1,11 @@
#===============================================================================
#
#===============================================================================
class Hangup < Exception; end
#===============================================================================
#
#===============================================================================
module RPG
module Cache
def self.debug
@@ -106,8 +110,9 @@ module RPG
end
end
#===============================================================================
#
#===============================================================================
class BitmapWrapper < Bitmap
attr_reader :refcount
attr_accessor :never_dispose

View File

@@ -1,3 +1,6 @@
#===============================================================================
#
#===============================================================================
module MessageConfig
LIGHT_TEXT_MAIN_COLOR = Color.new(248, 248, 248)
LIGHT_TEXT_SHADOW_COLOR = Color.new(72, 80, 88)
@@ -163,8 +166,6 @@ module MessageConfig
end
end
#===============================================================================
# Position a window
#===============================================================================
@@ -759,10 +760,8 @@ def addBackgroundOrColoredPlane(sprites, planename, background, color, viewport
end
end
#===============================================================================
# Ensure required method definitions
# Ensure required method definitions.
#===============================================================================
module Graphics
if !self.respond_to?("width")
@@ -773,8 +772,9 @@ module Graphics
end
end
#===============================================================================
# Ensure required method definitions.
#===============================================================================
if !defined?(_INTL)
def _INTL(*args)
string = args[0].clone

View File

@@ -1,3 +1,6 @@
#===============================================================================
#
#===============================================================================
class WindowCursorRect < Rect
def initialize(window)
super(0, 0, 0, 0)
@@ -46,7 +49,9 @@ class WindowCursorRect < Rect
end
end
#===============================================================================
#
#===============================================================================
class Window
attr_reader :tone
attr_reader :color

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
#===============================================================================
#
#===============================================================================

View File

@@ -1,8 +1,7 @@
#===============================================================================
#
#===============================================================================
# Represents a window with no formatting capabilities. Its text color can be set,
# though, and line breaks are supported, but the text is generally unformatted.
#===============================================================================
class Window_UnformattedTextPokemon < SpriteWindow_Base
attr_reader :text
attr_reader :baseColor
@@ -106,8 +105,6 @@ class Window_UnformattedTextPokemon < SpriteWindow_Base
end
end
#===============================================================================
#
#===============================================================================
@@ -602,8 +599,6 @@ class Window_AdvancedTextPokemon < SpriteWindow_Base
end
end
#===============================================================================
#
#===============================================================================
@@ -723,8 +718,6 @@ class Window_InputNumberPokemon < SpriteWindow_Base
end
end
#===============================================================================
#
#===============================================================================
@@ -951,8 +944,6 @@ class SpriteWindow_Selectable < SpriteWindow_Base
end
end
#===============================================================================
#
#===============================================================================
@@ -1016,8 +1007,6 @@ module UpDownArrowMixin
end
end
#===============================================================================
#
#===============================================================================
@@ -1030,8 +1019,6 @@ class SpriteWindow_SelectableEx < SpriteWindow_Selectable
end
end
#===============================================================================
#
#===============================================================================
@@ -1137,8 +1124,6 @@ class Window_DrawableCommand < SpriteWindow_SelectableEx
end
end
#===============================================================================
#
#===============================================================================
@@ -1229,15 +1214,12 @@ class Window_CommandPokemon < Window_DrawableCommand
end
end
#===============================================================================
#
#===============================================================================
class Window_CommandPokemonEx < Window_CommandPokemon
end
#===============================================================================
#
#===============================================================================
@@ -1350,8 +1332,6 @@ class Window_AdvancedCommandPokemon < Window_DrawableCommand
end
end
#===============================================================================
#
#===============================================================================

View File

@@ -51,8 +51,6 @@ class IconWindow < SpriteWindow_Base
end
end
#===============================================================================
# Displays an icon bitmap in a window. Supports animated images.
# Accepts bitmaps and paths to bitmap files in its constructor.

View File

@@ -88,8 +88,6 @@ class SpriteWrapper
end
end
#===============================================================================
# Sprite class that maintains a bitmap of its own.
# This bitmap can't be changed to a different one.
@@ -111,8 +109,6 @@ class BitmapSprite < Sprite
end
end
#===============================================================================
#
#===============================================================================
@@ -237,8 +233,6 @@ class AnimatedSprite < Sprite
end
end
#===============================================================================
# Displays an icon bitmap in a sprite. Supports animated images.
#===============================================================================
@@ -310,8 +304,6 @@ class IconSprite < Sprite
end
end
#===============================================================================
# Sprite class that stores multiple bitmaps, and displays only one at once.
#===============================================================================

View File

@@ -54,8 +54,6 @@ def getContrastColor(color)
return color.get_contrast_color
end
#===============================================================================
# Format text
#===============================================================================
@@ -248,8 +246,6 @@ def getLastColors(colorstack, opacitystack, defaultcolors)
return colors
end
#===============================================================================
# Formats a string of text and returns an array containing a list of formatted
# characters.
@@ -317,7 +313,6 @@ In addition, the syntax supports the following:
To draw the characters, pass the returned array to the
_drawFormattedChars_ function.
=end
def getFormattedText(bitmap, xDst, yDst, widthDst, heightDst, text, lineheight = 32,
newlineBreaks = true, explicitBreaksOnly = false,
collapseAlignments = false)
@@ -774,8 +769,6 @@ def getFormattedText(bitmap, xDst, yDst, widthDst, heightDst, text, lineheight =
return characters
end
#===============================================================================
# Draw text and images on a bitmap
#===============================================================================
@@ -1109,8 +1102,6 @@ def pbDrawTextPositions(bitmap, textpos)
end
end
#===============================================================================
# Draw images on a bitmap
#===============================================================================

View File

@@ -49,8 +49,6 @@ def pbCurrentEventCommentInput(elements, trigger)
return pbEventCommentInput(event, elements, trigger)
end
#===============================================================================
#
#===============================================================================
@@ -164,8 +162,9 @@ class ChooseNumberParams
end
end
#===============================================================================
#
#===============================================================================
def pbChooseNumber(msgwindow, params)
return 0 if !params
ret = 0
@@ -208,8 +207,6 @@ def pbChooseNumber(msgwindow, params)
return ret
end
#===============================================================================
#
#===============================================================================
@@ -244,8 +241,6 @@ class FaceWindowVX < SpriteWindow_Base
end
end
#===============================================================================
#
#===============================================================================
@@ -311,8 +306,6 @@ def pbCsvPosInt!(str)
return ret.to_i
end
#===============================================================================
# Money and coins windows
#===============================================================================
@@ -368,8 +361,6 @@ def pbDisplayBattlePointsWindow(msgwindow)
return pointswindow
end
#===============================================================================
#
#===============================================================================
@@ -410,8 +401,6 @@ def pbDisposeMessageWindow(msgwindow)
msgwindow.dispose
end
#===============================================================================
# Main message-displaying function
#===============================================================================
@@ -701,8 +690,6 @@ def pbMessageDisplay(msgwindow, message, letterbyletter = true, commandProc = ni
return ret
end
#===============================================================================
# Message-displaying functions
#===============================================================================

View File

@@ -81,8 +81,6 @@ class CharacterEntryHelper
end
end
#===============================================================================
#
#===============================================================================
@@ -217,8 +215,6 @@ class Window_TextEntry < SpriteWindow_Base
end
end
#===============================================================================
#
#===============================================================================
@@ -253,8 +249,6 @@ class Window_TextEntry_Keyboard < Window_TextEntry
end
end
#===============================================================================
#
#===============================================================================