* 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:
Golisopod-User
2022-01-30 00:36:21 +05:30
committed by GitHub
parent af60c4df66
commit 617f685694
3 changed files with 11 additions and 11 deletions

View File

@@ -49,11 +49,19 @@ class AnimatedPlane < Plane
end
def set_panorama(file, hue = 0)
if file.is_a?(String) && file.length > 0
setBitmap("Graphics/Panoramas/" + file, hue)
else
clear_bitmap
end
end
def set_fog(file, hue = 0)
if file.is_a?(String) && file.length > 0
setBitmap("Graphics/Fogs/" + file, hue)
else
clear_bitmap
end
end
private

View File

@@ -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

View File

@@ -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