mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2026-01-21 21:56:01 +00:00
Removed all excess whitespace and standardized line endings.
This commit is contained in:
@@ -55,4 +55,4 @@ class Sprite_Picture
|
||||
@sprite.angle = @picture.angle
|
||||
@sprite.tone = @picture.tone
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -41,4 +41,4 @@ class Sprite_Timer
|
||||
@timer.visible=false if @timer
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -33,10 +33,10 @@ class BushBitmap
|
||||
for i in 0...4
|
||||
y = i*charheight
|
||||
if cy>=0
|
||||
ret.blt(0,y,bitmap,Rect.new(0,y,ret.width,cy))
|
||||
ret.blt(0,y,bitmap,Rect.new(0,y,ret.width,cy))
|
||||
ret.blt(0,y+cy,bitmap,Rect.new(0,y+cy,ret.width,2),170)
|
||||
end
|
||||
ret.blt(0,y+cy+2,bitmap,Rect.new(0,y+cy+2,ret.width,2),85) if cy+2>=0
|
||||
ret.blt(0,y+cy+2,bitmap,Rect.new(0,y+cy+2,ret.width,2),85) if cy+2>=0
|
||||
end
|
||||
return ret
|
||||
end
|
||||
@@ -47,10 +47,10 @@ class BushBitmap
|
||||
cy = charheight-depth-2
|
||||
y = charheight
|
||||
if cy>=0
|
||||
ret.blt(0,y,bitmap,Rect.new(0,y,ret.width,cy))
|
||||
ret.blt(0,y,bitmap,Rect.new(0,y,ret.width,cy))
|
||||
ret.blt(0,y+cy,bitmap,Rect.new(0,y+cy,ret.width,2),170)
|
||||
end
|
||||
ret.blt(0,y+cy+2,bitmap,Rect.new(0,y+cy+2,ret.width,2),85) if cy+2>=0
|
||||
ret.blt(0,y+cy+2,bitmap,Rect.new(0,y+cy+2,ret.width,2),85) if cy+2>=0
|
||||
return ret
|
||||
end
|
||||
end
|
||||
@@ -171,4 +171,4 @@ class Sprite_Character < RPG::Sprite
|
||||
@reflection.update if @reflection
|
||||
@surfbase.update if @surfbase
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -40,7 +40,7 @@ class Sprite_Reflection
|
||||
return if disposed?
|
||||
shouldShow = @rsprite.visible
|
||||
if !shouldShow
|
||||
# Just-in-time disposal of sprite
|
||||
# Just-in-time disposal of sprite
|
||||
if @sprite
|
||||
@sprite.dispose
|
||||
@sprite = nil
|
||||
@@ -87,4 +87,4 @@ class Sprite_Reflection
|
||||
@sprite.src_rect = @rsprite.src_rect
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -38,7 +38,7 @@ class Sprite_SurfBase
|
||||
def update
|
||||
return if disposed?
|
||||
if !$PokemonGlobal.surfing && !$PokemonGlobal.diving
|
||||
# Just-in-time disposal of sprite
|
||||
# Just-in-time disposal of sprite
|
||||
if @sprite
|
||||
@sprite.dispose
|
||||
@sprite = nil
|
||||
@@ -74,4 +74,4 @@ class Sprite_SurfBase
|
||||
@sprite.opacity = @rsprite.opacity
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -164,4 +164,4 @@ class Spriteset_Map
|
||||
@@viewport1.update
|
||||
@@viewport3.update
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -31,4 +31,4 @@ class Spriteset_Global
|
||||
end
|
||||
@timer_sprite.update
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -91,4 +91,4 @@ class Spriteset_Map
|
||||
@usersprites[i].update if !@usersprites[i].disposed?
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -8,7 +8,7 @@ SHADOW_WARN = true
|
||||
|
||||
class Sprite_Shadow < RPG::Sprite
|
||||
attr_accessor :character
|
||||
|
||||
|
||||
def initialize(viewport, character = nil,params=[])
|
||||
super(viewport)
|
||||
@source = params[0]
|
||||
@@ -104,7 +104,7 @@ class Sprite_Shadow < RPG::Sprite
|
||||
if (@angle_trigo < @anglemin and @angle_trigo > @anglemax) and @anglemin > @anglemax
|
||||
self.opacity = 0
|
||||
return
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -179,7 +179,7 @@ end
|
||||
#===================================================
|
||||
class Spriteset_Map
|
||||
attr_accessor :shadows
|
||||
|
||||
|
||||
alias shadow_initialize initialize
|
||||
def initialize(map=nil)
|
||||
@shadows = []
|
||||
@@ -201,7 +201,7 @@ class Spriteset_Map
|
||||
sprite.setShadows(map, @shadows)
|
||||
end
|
||||
$scene.spritesetGlobal.playersprite.setShadows(map, @shadows)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -252,4 +252,4 @@ def XPML_read(map,markup,event,max_param_number=0)
|
||||
end
|
||||
end
|
||||
return parameter_list
|
||||
end
|
||||
end
|
||||
|
||||
@@ -33,12 +33,12 @@ class Particle_Engine
|
||||
return if disposed?
|
||||
for particle in @effect
|
||||
next if particle.nil?
|
||||
particle.dispose
|
||||
particle.dispose
|
||||
end
|
||||
@effect.clear
|
||||
@map = nil
|
||||
@disposed = true
|
||||
end
|
||||
end
|
||||
|
||||
def disposed?
|
||||
return @disposed
|
||||
@@ -64,7 +64,7 @@ class Particle_Engine
|
||||
cls = @effects[type]
|
||||
if cls.nil?
|
||||
particle.dispose if particle
|
||||
return nil
|
||||
return nil
|
||||
end
|
||||
if !particle || !particle.is_a?(cls)
|
||||
particle.dispose if particle
|
||||
@@ -94,7 +94,7 @@ class Particle_Engine
|
||||
particle = realloc_effect(event,particle)
|
||||
@effect[i] = particle
|
||||
end
|
||||
particle.update if particle
|
||||
particle.update if particle
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -208,7 +208,7 @@ class ParticleEffect_Event < ParticleEffect
|
||||
@opacity = []
|
||||
@startingx = self.x + @xoffset
|
||||
@startingy = self.y + @yoffset
|
||||
@screen_x = self.x
|
||||
@screen_x = self.x
|
||||
@screen_y = self.y
|
||||
@real_x = @event.real_x
|
||||
@real_y = @event.real_y
|
||||
@@ -299,7 +299,7 @@ class ParticleEffect_Event < ParticleEffect
|
||||
@particles[i].x = @startingx + @xoffset
|
||||
@particlex[i] = 0.0
|
||||
@particley[i] = 0.0
|
||||
end
|
||||
end
|
||||
if @fade == 0
|
||||
if @opacity[i] <= 0
|
||||
@opacity[i] = @originalopacity
|
||||
@@ -307,7 +307,7 @@ class ParticleEffect_Event < ParticleEffect
|
||||
@particles[i].x = @startingx + @xoffset
|
||||
@particlex[i] = 0.0
|
||||
@particley[i] = 0.0
|
||||
end
|
||||
end
|
||||
else
|
||||
if @opacity[i] <= 0
|
||||
@opacity[i] = 250
|
||||
@@ -315,7 +315,7 @@ class ParticleEffect_Event < ParticleEffect
|
||||
@particles[i].x = @startingx + @xoffset
|
||||
@particlex[i] = 0.0
|
||||
@particley[i] = 0.0
|
||||
end
|
||||
end
|
||||
end
|
||||
calcParticlePos(i)
|
||||
if @randomhue == 1
|
||||
@@ -349,7 +349,7 @@ class ParticleEffect_Event < ParticleEffect
|
||||
|
||||
def dispose
|
||||
for particle in @particles
|
||||
particle.dispose
|
||||
particle.dispose
|
||||
end
|
||||
for bitmap in @bitmaps.values
|
||||
bitmap.dispose
|
||||
@@ -558,7 +558,7 @@ class Particle_Engine::Splash < ParticleEffect_Event
|
||||
super
|
||||
for i in 0...@maxparticless
|
||||
@particles[i].opacity = 50
|
||||
@particles[i].update
|
||||
@particles[i].update
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -574,7 +574,7 @@ class Game_Event < Game_Character
|
||||
begin
|
||||
nf_particles_game_map_initialize(map_id, event, map)
|
||||
rescue ArgumentError
|
||||
nf_particles_game_map_initialize(map_id, event)
|
||||
nf_particles_game_map_initialize(map_id, event)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -583,4 +583,4 @@ class Game_Event < Game_Character
|
||||
nf_particles_game_map_refresh
|
||||
@pe_refresh = true
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user