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

@@ -157,7 +157,7 @@ class Pokemon
@ability = nil
MultipleForms.call("onSetForm", self, value, oldForm)
calc_stats
$player.pokedex.register(self) if $player
$player&.pokedex&.register(self)
end
# The same as def form=, but yields to a given block in the middle so that a
@@ -170,7 +170,7 @@ class Pokemon
yield if block_given?
MultipleForms.call("onSetForm", self, value, oldForm)
calc_stats
$player.pokedex.register(self) if $player
$player&.pokedex&.register(self)
end
def form_simple=(value)