mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2026-01-25 07:46:06 +00:00
Yet more Rubocopping
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user