mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Added decent spacing to all scripts thanks to Rubocop
This commit is contained in:
@@ -10,7 +10,7 @@ class Scene_Map
|
||||
def spriteset(map_id = -1)
|
||||
return @spritesets[map_id] if map_id > 0 && @spritesets[map_id]
|
||||
for i in @spritesets.values
|
||||
return i if i.map==$game_map
|
||||
return i if i.map == $game_map
|
||||
end
|
||||
return @spritesets.values[0]
|
||||
end
|
||||
@@ -56,13 +56,13 @@ class Scene_Map
|
||||
map = load_data(sprintf("Data/Map%03d.rxdata", mapid))
|
||||
if playingBGM && map.autoplay_bgm
|
||||
if (PBDayNight.isNight? rescue false)
|
||||
pbBGMFade(0.8) if playingBGM.name!=map.bgm.name && playingBGM.name!=map.bgm.name+"_n"
|
||||
pbBGMFade(0.8) if playingBGM.name != map.bgm.name && playingBGM.name != map.bgm.name + "_n"
|
||||
else
|
||||
pbBGMFade(0.8) if playingBGM.name!=map.bgm.name
|
||||
pbBGMFade(0.8) if playingBGM.name != map.bgm.name
|
||||
end
|
||||
end
|
||||
if playingBGS && map.autoplay_bgs
|
||||
pbBGMFade(0.8) if playingBGS.name!=map.bgs.name
|
||||
pbBGMFade(0.8) if playingBGS.name != map.bgs.name
|
||||
end
|
||||
Graphics.frame_reset
|
||||
end
|
||||
@@ -73,7 +73,7 @@ class Scene_Map
|
||||
autofade($game_temp.player_new_map_id)
|
||||
pbBridgeOff
|
||||
@spritesetGlobal.playersprite.clearShadows
|
||||
if $game_map.map_id!=$game_temp.player_new_map_id
|
||||
if $game_map.map_id != $game_temp.player_new_map_id
|
||||
$map_factory.setup($game_temp.player_new_map_id)
|
||||
end
|
||||
$game_player.moveto($game_temp.player_new_x, $game_temp.player_new_y)
|
||||
|
||||
Reference in New Issue
Block a user