Resolved many Rubocop warnings

This commit is contained in:
Maruno17
2020-09-06 17:31:12 +01:00
parent 6c4670eaa3
commit 681a8331ab
137 changed files with 921 additions and 1200 deletions

View File

@@ -113,7 +113,7 @@ class Window_CommandPokemonColor < Window_CommandPokemon
super(commands,width)
end
def drawItem(index,count,rect)
def drawItem(index,_count,rect)
pbSetSystemFont(self.contents) if @starting
rect = drawCursor(index,rect)
base = self.baseColor
@@ -134,7 +134,7 @@ end
class PokemonPartyBlankPanel < SpriteWrapper
attr_accessor :text
def initialize(pokemon,index,viewport=nil)
def initialize(_pokemon,index,viewport=nil)
super(viewport)
self.x = [0,256,0,256,0,256][index]
self.y = [0,16,96,112,192,208][index]
@@ -165,7 +165,7 @@ class PokemonPartyPanel < SpriteWrapper
attr_reader :selected
attr_reader :preselected
attr_reader :switching
attr_accessor :text
attr_reader :text
def initialize(pokemon,index,viewport=nil)
super(viewport)
@@ -832,7 +832,7 @@ class PokemonPartyScreen
@party = party
end
def pbStartScene(helptext,numBattlersOut,annotations=nil)
def pbStartScene(helptext,_numBattlersOut,annotations=nil)
@scene.pbStartScene(@party,helptext,annotations)
end