* 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)
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