Fixed previous commit always causing recompiling if shadow_pokemon.dat doesn't exist, also rubocopping

This commit is contained in:
Maruno17
2023-01-23 22:27:04 +00:00
parent f6213057d8
commit b0b6e675c3
103 changed files with 1099 additions and 1302 deletions

View File

@@ -38,8 +38,6 @@ class LocationWindow
end
end
#===============================================================================
# Visibility circle in dark maps
#===============================================================================
@@ -85,8 +83,6 @@ class DarknessSprite < Sprite
end
end
#===============================================================================
# Light effects
#===============================================================================
@@ -120,8 +116,9 @@ class LightEffect
end
end
#===============================================================================
#
#===============================================================================
class LightEffect_Lamp < LightEffect
def initialize(event, viewport = nil, map = nil)
lamp = AnimatedBitmap.new("Graphics/Pictures/LE")
@@ -138,8 +135,9 @@ class LightEffect_Lamp < LightEffect
end
end
#===============================================================================
#
#===============================================================================
class LightEffect_Basic < LightEffect
def initialize(event, viewport = nil, map = nil, filename = nil)
super
@@ -164,8 +162,9 @@ class LightEffect_Basic < LightEffect
end
end
#===============================================================================
#
#===============================================================================
class LightEffect_DayNight < LightEffect
def initialize(event, viewport = nil, map = nil, filename = nil)
super
@@ -203,8 +202,9 @@ class LightEffect_DayNight < LightEffect
end
end
#===============================================================================
#
#===============================================================================
EventHandlers.add(:on_new_spriteset_map, :add_light_effects,
proc { |spriteset, viewport|
map = spriteset.map # Map associated with the spriteset (not necessarily the current map)

View File

@@ -76,8 +76,6 @@ def pbCaveExit
pbCaveEntranceEx(true)
end
#===============================================================================
# Blacking out animation
#===============================================================================