Added decent spacing to all scripts thanks to Rubocop

This commit is contained in:
Maruno17
2021-12-18 15:25:40 +00:00
parent f7b76ae62e
commit d17fc40a47
207 changed files with 18577 additions and 18587 deletions

View File

@@ -1,10 +1,10 @@
module ScreenPosHelper
def self.pbScreenZoomX(ch)
return Game_Map::TILE_WIDTH/32.0
return Game_Map::TILE_WIDTH / 32.0
end
def self.pbScreenZoomY(ch)
return Game_Map::TILE_HEIGHT/32.0
return Game_Map::TILE_HEIGHT / 32.0
end
def self.pbScreenX(ch)
@@ -15,29 +15,29 @@ module ScreenPosHelper
return ch.screen_y
end
@heightcache={}
@heightcache = {}
def self.bmHeight(bm)
h=@heightcache[bm]
h = @heightcache[bm]
if !h
bmap=AnimatedBitmap.new("Graphics/Characters/"+bm,0)
h=bmap.height
@heightcache[bm]=h
bmap = AnimatedBitmap.new("Graphics/Characters/" + bm, 0)
h = bmap.height
@heightcache[bm] = h
bmap.dispose
end
return h
end
def self.pbScreenZ(ch,height = nil)
if height==nil
height=0
def self.pbScreenZ(ch, height = nil)
if height == nil
height = 0
if ch.tile_id > 0
height=32
elsif ch.character_name!=""
height=bmHeight(ch.character_name)/4
height = 32
elsif ch.character_name != ""
height = bmHeight(ch.character_name) / 4
end
end
ret=ch.screen_z(height)
ret = ch.screen_z(height)
return ret
end
end