Yet more Rubocopping

This commit is contained in:
Maruno17
2021-12-23 00:27:17 +00:00
parent 514fe13ca2
commit 132a16950d
171 changed files with 1455 additions and 1647 deletions

View File

@@ -208,10 +208,8 @@ module UIHelper
Graphics.update
Input.update
(block_given?) ? yield : cw.update
if !cw.busy?
if brief || (Input.trigger?(Input::USE) && cw.resume)
break
end
if !cw.busy? && (brief || (Input.trigger?(Input::USE) && cw.resume))
break
end
end
cw.visible = oldvisible
@@ -336,7 +334,7 @@ module UIHelper
oldvisible = helpwindow.visible
helpwindow.visible = helptext ? true : false
helpwindow.letterbyletter = false
helpwindow.text = helptext ? helptext : ""
helpwindow.text = helptext || ""
cmdwindow = Window_CommandPokemon.new(commands)
cmdwindow.index = initcmd
begin
@@ -361,7 +359,7 @@ module UIHelper
end
end
ensure
cmdwindow.dispose if cmdwindow
cmdwindow&.dispose
end
helpwindow.visible = oldvisible
return ret