mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2026-01-22 14:26:01 +00:00
Many more Rubocop-inspired code improvements
This commit is contained in:
@@ -515,7 +515,7 @@ MultipleForms.register(:SILVALLY, {
|
||||
|
||||
MultipleForms.register(:MINIOR, {
|
||||
"getFormOnCreation" => proc { |pkmn|
|
||||
next 7 + rand(7) # Meteor forms are 0-6, Core forms are 7-13
|
||||
next rand(7..13) # Meteor forms are 0-6, Core forms are 7-13
|
||||
},
|
||||
"getFormOnEnteringBattle" => proc { |pkmn, wild|
|
||||
next pkmn.form - 7 if pkmn.form >= 7 && wild # Wild Minior always appear in Meteor form
|
||||
|
||||
@@ -10,7 +10,7 @@ class Pokemon
|
||||
attr_accessor :shadow_moves
|
||||
attr_accessor :heart_gauge_step_counter
|
||||
|
||||
alias :__shadow_expeq :exp=
|
||||
alias __shadow_expeq exp=
|
||||
def exp=(value)
|
||||
if shadowPokemon?
|
||||
@saved_exp += value - @exp
|
||||
@@ -19,7 +19,7 @@ class Pokemon
|
||||
end
|
||||
end
|
||||
|
||||
alias :__shadow_hpeq :hp=
|
||||
alias __shadow_hpeq hp=
|
||||
def hp=(value)
|
||||
__shadow_hpeq(value)
|
||||
@hyper_mode = false if @hp <= 0
|
||||
@@ -212,7 +212,7 @@ class Pokemon
|
||||
end
|
||||
end
|
||||
|
||||
alias :__shadow_clone :clone
|
||||
alias __shadow_clone clone
|
||||
def clone
|
||||
ret = __shadow_clone
|
||||
if @saved_ev
|
||||
|
||||
Reference in New Issue
Block a user