Skip to content

Commit

Permalink
fixed crash with timiblack on semi-inverted
Browse files Browse the repository at this point in the history
  • Loading branch information
kurayamiblackheart committed Dec 25, 2023
1 parent a152484 commit 99da882
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Data/Scripts/001_Settings.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module Settings
# The version of your game. It has to adhere to the MAJOR.MINOR.PATCH format.
GAME_VERSION = '6.0.0'
IF_VERSION = "6.0.4"
GAME_VERSION_NUMBER = "0.11.7"
GAME_VERSION_NUMBER = "0.11.8"

POKERADAR_LIGHT_ANIMATION_RED_ID = 17
POKERADAR_LIGHT_ANIMATION_GREEN_ID = 18
Expand Down
8 changes: 4 additions & 4 deletions Data/Scripts/007_Objects and windows/008_AnimatedBitmap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -242,13 +242,13 @@ def pbGiveFinaleColor(shinyR, shinyG, shinyB, offset, shinyKRS)

if $PokemonSystem.shinyadvanced != nil && $PokemonSystem.shinyadvanced == 2
if shinyKRS[3] > 0
redShiny = self.krsapply(redShiny, shinyKRS[3])
redShiny = self.krsapply(redShiny, shinyKRS[3], 0)
end
if shinyKRS[4] > 0
greenShiny = self.krsapply(greenShiny, shinyKRS[4])
greenShiny = self.krsapply(greenShiny, shinyKRS[4], 1)
end
if shinyKRS[5] > 0
blueShiny = self.krsapply(blueShiny, shinyKRS[5])
blueShiny = self.krsapply(blueShiny, shinyKRS[5], 2)
end
end

Expand Down Expand Up @@ -281,7 +281,7 @@ def pbGiveFinaleColor(shinyR, shinyG, shinyB, offset, shinyKRS)
# end
end

def krsapply(channel, condif)
def krsapply(channel, condif, idcol)
timidblack = shinyKRS[idcol + 6]
if condif == 1
channel = channel.map{|v| v >= 127 ? v-127.0: v}#127 -> 0 / 255 -> 127
Expand Down
2 changes: 1 addition & 1 deletion Data/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.11.7
0.11.8

0 comments on commit 99da882

Please sign in to comment.