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
|
end
|
||||||
|
|
||||||
def set_panorama(file, hue = 0)
|
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
|
end
|
||||||
|
|
||||||
def set_fog(file, hue = 0)
|
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
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|||||||
@@ -105,13 +105,7 @@ class Battle::Battler
|
|||||||
@effects[PBEffects::GastroAcid] = false if unstoppableAbility?
|
@effects[PBEffects::GastroAcid] = false if unstoppableAbility?
|
||||||
else
|
else
|
||||||
# These effects are passed on if Baton Pass is used
|
# These effects are passed on if Baton Pass is used
|
||||||
@stages[:ATTACK] = 0
|
GameData::Stat.each_battle { |stat| @stages[stat.id] = 0 }
|
||||||
@stages[:DEFENSE] = 0
|
|
||||||
@stages[:SPEED] = 0
|
|
||||||
@stages[:SPECIAL_ATTACK] = 0
|
|
||||||
@stages[:SPECIAL_DEFENSE] = 0
|
|
||||||
@stages[:ACCURACY] = 0
|
|
||||||
@stages[:EVASION] = 0
|
|
||||||
@effects[PBEffects::AquaRing] = false
|
@effects[PBEffects::AquaRing] = false
|
||||||
@effects[PBEffects::Confusion] = 0
|
@effects[PBEffects::Confusion] = 0
|
||||||
@effects[PBEffects::Curse] = false
|
@effects[PBEffects::Curse] = false
|
||||||
|
|||||||
@@ -14,13 +14,11 @@ def pbFishingBegin
|
|||||||
pbUpdateSceneMap
|
pbUpdateSceneMap
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
$game_player.lock_pattern = false
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def pbFishingEnd
|
def pbFishingEnd
|
||||||
if !pbCommonEvent(Settings::FISHING_END_COMMON_EVENT)
|
if !pbCommonEvent(Settings::FISHING_END_COMMON_EVENT)
|
||||||
$game_player.lock_pattern = true
|
|
||||||
4.times do |pattern|
|
4.times do |pattern|
|
||||||
$game_player.pattern = pattern
|
$game_player.pattern = pattern
|
||||||
(Graphics.frame_rate / 20).times do
|
(Graphics.frame_rate / 20).times do
|
||||||
|
|||||||
Reference in New Issue
Block a user