Resolved many Rubocop warnings

This commit is contained in:
Maruno17
2020-09-06 17:31:12 +01:00
parent 6c4670eaa3
commit 681a8331ab
137 changed files with 921 additions and 1200 deletions

View File

@@ -72,7 +72,7 @@ module PBDayNight
def self.getShade
time = pbGetDayNightMinutes
time = (24*60)-time if time>(12*60)
shade=255*time/(12*60)
return 255*time/(12*60)
end
# Gets a Tone object representing a suggested shading
@@ -97,7 +97,7 @@ module PBDayNight
# Internal function
def self.getToneInternal
def getToneInternal
# Calculates the tone for the current frame, used for day/night effects
realMinutes = pbGetDayNightMinutes
hour = realMinutes/60