mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-07 13:15:01 +00:00
Bugfixes (#170)
* Fixed crash when setting Fogs or Panoramas to none * Generalised the initial setting of stat stages for battlers * Fixed fishing animation looking weird (especially when surfing)
This commit is contained in:
@@ -49,11 +49,19 @@ class AnimatedPlane < Plane
|
||||
end
|
||||
|
||||
def set_panorama(file, hue = 0)
|
||||
setBitmap("Graphics/Panoramas/" + file, hue)
|
||||
if file.is_a?(String) && file.length > 0
|
||||
setBitmap("Graphics/Panoramas/" + file, hue)
|
||||
else
|
||||
clear_bitmap
|
||||
end
|
||||
end
|
||||
|
||||
def set_fog(file, hue = 0)
|
||||
setBitmap("Graphics/Fogs/" + file, hue)
|
||||
if file.is_a?(String) && file.length > 0
|
||||
setBitmap("Graphics/Fogs/" + file, hue)
|
||||
else
|
||||
clear_bitmap
|
||||
end
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
@@ -105,13 +105,7 @@ class Battle::Battler
|
||||
@effects[PBEffects::GastroAcid] = false if unstoppableAbility?
|
||||
else
|
||||
# These effects are passed on if Baton Pass is used
|
||||
@stages[:ATTACK] = 0
|
||||
@stages[:DEFENSE] = 0
|
||||
@stages[:SPEED] = 0
|
||||
@stages[:SPECIAL_ATTACK] = 0
|
||||
@stages[:SPECIAL_DEFENSE] = 0
|
||||
@stages[:ACCURACY] = 0
|
||||
@stages[:EVASION] = 0
|
||||
GameData::Stat.each_battle { |stat| @stages[stat.id] = 0 }
|
||||
@effects[PBEffects::AquaRing] = false
|
||||
@effects[PBEffects::Confusion] = 0
|
||||
@effects[PBEffects::Curse] = false
|
||||
|
||||
@@ -14,13 +14,11 @@ def pbFishingBegin
|
||||
pbUpdateSceneMap
|
||||
end
|
||||
end
|
||||
$game_player.lock_pattern = false
|
||||
end
|
||||
end
|
||||
|
||||
def pbFishingEnd
|
||||
if !pbCommonEvent(Settings::FISHING_END_COMMON_EVENT)
|
||||
$game_player.lock_pattern = true
|
||||
4.times do |pattern|
|
||||
$game_player.pattern = pattern
|
||||
(Graphics.frame_rate / 20).times do
|
||||
|
||||
Reference in New Issue
Block a user