Many more Rubocop-inspired code improvements

This commit is contained in:
Maruno17
2021-12-18 19:06:22 +00:00
parent d17fc40a47
commit 13a238cc6a
107 changed files with 651 additions and 652 deletions

View File

@@ -396,15 +396,17 @@ class Battle::Move
# Weather
case user.effectiveWeather
when :Sun, :HarshSun
if type == :FIRE
case type
when :FIRE
multipliers[:final_damage_multiplier] *= 1.5
elsif type == :WATER
when :WATER
multipliers[:final_damage_multiplier] /= 2
end
when :Rain, :HeavyRain
if type == :FIRE
case type
when :FIRE
multipliers[:final_damage_multiplier] /= 2
elsif type == :WATER
when :WATER
multipliers[:final_damage_multiplier] *= 1.5
end
when :Sandstorm

View File

@@ -490,9 +490,10 @@ class Battle::Move::CureUserPartyStatus < Battle::Move
def pbShowAnimation(id, user, targets, hitNum = 0, showAnimation = true)
super
if @id == :AROMATHERAPY
case @id
when :AROMATHERAPY
@battle.pbDisplay(_INTL("A soothing aroma wafted through the area!"))
elsif @id == :HEALBELL
when :HEALBELL
@battle.pbDisplay(_INTL("A bell chimed!"))
end
end