mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-09 14:14:59 +00:00
Tidied up semicolon use, refactored random dungeon generation code, fixed visual bug in Day Care debug screen
This commit is contained in:
@@ -157,9 +157,12 @@ def pbPrepareBattle(battle)
|
||||
battle.time = 2 # This makes Dusk Balls work properly in caves
|
||||
elsif Settings::TIME_SHADING
|
||||
timeNow = pbGetTimeNow
|
||||
if PBDayNight.isNight?(timeNow); battle.time = 2
|
||||
elsif PBDayNight.isEvening?(timeNow); battle.time = 1
|
||||
else; battle.time = 0
|
||||
if PBDayNight.isNight?(timeNow)
|
||||
battle.time = 2
|
||||
elsif PBDayNight.isEvening?(timeNow)
|
||||
battle.time = 1
|
||||
else
|
||||
battle.time = 0
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -79,8 +79,10 @@ def pbBattleAnimation(bgm=nil,battletype=0,foe=nil)
|
||||
2.times do
|
||||
viewport.color.alpha = 0
|
||||
for i in 0...halfFlashTime*2
|
||||
if i<halfFlashTime; viewport.color.alpha += alphaDiff
|
||||
else; viewport.color.alpha -= alphaDiff
|
||||
if i<halfFlashTime
|
||||
viewport.color.alpha += alphaDiff
|
||||
else
|
||||
viewport.color.alpha -= alphaDiff
|
||||
end
|
||||
Graphics.update
|
||||
pbUpdateSceneMap
|
||||
|
||||
Reference in New Issue
Block a user