This commit is contained in:
infinitefusion
2023-07-16 20:17:06 -04:00
20 changed files with 111 additions and 64 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -6,7 +6,7 @@
module Settings module Settings
# The version of your game. It has to adhere to the MAJOR.MINOR.PATCH format. # The version of your game. It has to adhere to the MAJOR.MINOR.PATCH format.
GAME_VERSION = '5.0.0' GAME_VERSION = '5.0.0'
GAME_VERSION_NUMBER = "5.3.0.6" GAME_VERSION_NUMBER = "5.3.0.7"
POKERADAR_LIGHT_ANIMATION_RED_ID = 17 POKERADAR_LIGHT_ANIMATION_RED_ID = 17
POKERADAR_LIGHT_ANIMATION_GREEN_ID = 18 POKERADAR_LIGHT_ANIMATION_GREEN_ID = 18

View File

@@ -741,6 +741,7 @@ class SpriteWindow_Selectable < SpriteWindow_Base
@row_height = 32 @row_height = 32
@column_spacing = 32 @column_spacing = 32
@ignore_input = false @ignore_input = false
@allow_arrows_jump=false
end end
def itemCount def itemCount
@@ -767,6 +768,10 @@ class SpriteWindow_Selectable < SpriteWindow_Base
end end
end end
def setAllowArrowsJump(value)
@allow_arrows_jump=value
end
def columns def columns
return @column_max || 1 return @column_max || 1
end end
@@ -848,6 +853,22 @@ class SpriteWindow_Selectable < SpriteWindow_Base
super super
if self.active && @item_max > 0 && @index >= 0 && !@ignore_input if self.active && @item_max > 0 && @index >= 0 && !@ignore_input
if Input.repeat?(Input::UP) if Input.repeat?(Input::UP)
scroll_up()
elsif Input.repeat?(Input::DOWN)
scroll_down()
elsif Input.repeat?(Input::LEFT) && !@allow_arrows_jump
scroll_left()
elsif Input.repeat?(Input::RIGHT) && !@allow_arrows_jump
scroll_right()
elsif Input.repeat?(Input::JUMPUP) || (Input.repeat?(Input::LEFT) && @allow_arrows_jump)
jump_up()
elsif Input.repeat?(Input::JUMPDOWN) || (Input.repeat?(Input::RIGHT) && @allow_arrows_jump)
jump_down()
end
end
end
def scroll_up()
if @index >= @column_max || if @index >= @column_max ||
(Input.trigger?(Input::UP) && (@item_max % @column_max)==0) (Input.trigger?(Input::UP) && (@item_max % @column_max)==0)
oldindex = @index oldindex = @index
@@ -857,7 +878,9 @@ class SpriteWindow_Selectable < SpriteWindow_Base
update_cursor_rect update_cursor_rect
end end
end end
elsif Input.repeat?(Input::DOWN) end
def scroll_down()
if @index < @item_max - @column_max || if @index < @item_max - @column_max ||
(Input.trigger?(Input::DOWN) && (@item_max % @column_max)==0) (Input.trigger?(Input::DOWN) && (@item_max % @column_max)==0)
oldindex = @index oldindex = @index
@@ -867,16 +890,9 @@ class SpriteWindow_Selectable < SpriteWindow_Base
update_cursor_rect update_cursor_rect
end end
end end
elsif Input.repeat?(Input::LEFT)
if @column_max >= 2 && @index > 0
oldindex = @index
@index -= 1
if @index!=oldindex
pbPlayCursorSE()
update_cursor_rect
end end
end
elsif Input.repeat?(Input::RIGHT) def scroll_left()
if @column_max >= 2 && @index < @item_max - 1 if @column_max >= 2 && @index < @item_max - 1
oldindex = @index oldindex = @index
@index += 1 @index += 1
@@ -885,7 +901,21 @@ class SpriteWindow_Selectable < SpriteWindow_Base
update_cursor_rect update_cursor_rect
end end
end end
elsif Input.repeat?(Input::JUMPUP) end
def scroll_right()
if @column_max >= 2 && @index > 0
oldindex = @index
@index -= 1
if @index!=oldindex
pbPlayCursorSE()
update_cursor_rect
end
end
end
def jump_up()
if @index > 0 if @index > 0
oldindex = @index oldindex = @index
@index = [self.index-self.page_item_max, 0].max @index = [self.index-self.page_item_max, 0].max
@@ -895,7 +925,10 @@ class SpriteWindow_Selectable < SpriteWindow_Base
update_cursor_rect update_cursor_rect
end end
end end
elsif Input.repeat?(Input::JUMPDOWN) end
def jump_down()
if @index < @item_max-1 if @index < @item_max-1
oldindex = @index oldindex = @index
@index = [self.index+self.page_item_max, @item_max-1].min @index = [self.index+self.page_item_max, @item_max-1].min
@@ -906,8 +939,6 @@ class SpriteWindow_Selectable < SpriteWindow_Base
end end
end end
end end
end
end
private private

View File

@@ -588,6 +588,9 @@ class PokemonEvolutionScene
end end
# Success jingle/message # Success jingle/message
pbMEPlay("Evolution success") pbMEPlay("Evolution success")
sprite_bitmap=@sprites["rsprite2"].getBitmap
drawSpriteCredits(sprite_bitmap.filename,sprite_bitmap.path, @viewport)
newspeciesname = GameData::Species.get(@newspecies).name newspeciesname = GameData::Species.get(@newspecies).name
if !reversing if !reversing
pbMessageDisplay(@sprites["msgwindow"], pbMessageDisplay(@sprites["msgwindow"],
@@ -599,6 +602,7 @@ class PokemonEvolutionScene
@pokemon.name,newspeciesname)) { pbUpdate } @pokemon.name,newspeciesname)) { pbUpdate }
end end
@sprites["msgwindow"].text = "" @sprites["msgwindow"].text = ""
# Check for consumed item and check if Pokémon should be duplicated # Check for consumed item and check if Pokémon should be duplicated
pbEvolutionMethodAfterEvolution if !reversing pbEvolutionMethodAfterEvolution if !reversing

View File

@@ -8,6 +8,7 @@ class Window_Pokedex < Window_DrawableCommand
@selarrow = AnimatedBitmap.new("Graphics/Pictures/Pokedex/cursor_list") @selarrow = AnimatedBitmap.new("Graphics/Pictures/Pokedex/cursor_list")
@pokeballOwn = AnimatedBitmap.new("Graphics/Pictures/Pokedex/icon_own") @pokeballOwn = AnimatedBitmap.new("Graphics/Pictures/Pokedex/icon_own")
@pokeballSeen = AnimatedBitmap.new("Graphics/Pictures/Pokedex/icon_seen") @pokeballSeen = AnimatedBitmap.new("Graphics/Pictures/Pokedex/icon_seen")
@allow_arrows_jump=true
self.baseColor = Color.new(88,88,80) self.baseColor = Color.new(88,88,80)
self.shadowColor = Color.new(168,184,184) self.shadowColor = Color.new(168,184,184)
self.windowskin = nil self.windowskin = nil

View File

@@ -113,9 +113,14 @@ class PokemonPokedexInfo_Scene
@sprites["infosprite"].x = 104 @sprites["infosprite"].x = 104
@sprites["infosprite"].y = 136 @sprites["infosprite"].y = 136
@sprites["overlay"] = BitmapSprite.new(Graphics.width,Graphics.height,@viewport) @sprites["overlay"] = BitmapSprite.new(Graphics.width,Graphics.height,@viewport)
pbSetSystemFont(@sprites["overlay"].bitmap) pbSetSystemFont(@sprites["overlay"].bitmap)
pbUpdateDummyPokemon pbUpdateDummyPokemon
drawPage(@page) drawPage(@page)
sprite_bitmap= @sprites["infosprite"].getBitmap
pbFadeInAndShow(@sprites) { pbUpdate } pbFadeInAndShow(@sprites) { pbUpdate }
end end

View File

@@ -199,6 +199,7 @@ class Window_PokemonOption < Window_DrawableCommand
@mustUpdateOptions = false @mustUpdateOptions = false
@mustUpdateDescription = false @mustUpdateDescription = false
@selected_position = 0 @selected_position = 0
@allow_arrows_jump=false
for i in 0...@options.length for i in 0...@options.length
@optvalues[i] = 0 @optvalues[i] = 0
end end

View File

@@ -3,6 +3,7 @@
#=============================================================================== #===============================================================================
def pbListWindow(cmds, width = Graphics.width / 2) def pbListWindow(cmds, width = Graphics.width / 2)
list = Window_CommandPokemon.newWithSize(cmds, 0, 0, width, Graphics.height) list = Window_CommandPokemon.newWithSize(cmds, 0, 0, width, Graphics.height)
list.setAllowArrowsJump(true)
list.index = 0 list.index = 0
list.rowHeight = 24 list.rowHeight = 24
pbSetSmallFont(list.contents) pbSetSmallFont(list.contents)

View File

@@ -691,7 +691,7 @@ class PokemonFusionScene
overlay = BitmapSprite.new(Graphics.width, Graphics.height, @viewport).bitmap overlay = BitmapSprite.new(Graphics.width, Graphics.height, @viewport).bitmap
sprite_bitmap = @sprites["rsprite2"].getBitmap sprite_bitmap = @sprites["rsprite2"].getBitmap
drawSpriteCredits(sprite_bitmap.filename,sprite_bitmap.path, overlay) drawSpriteCredits(sprite_bitmap.filename,sprite_bitmap.path, @viewport)
Kernel.pbMessageDisplay(@sprites["msgwindow"], Kernel.pbMessageDisplay(@sprites["msgwindow"],
_INTL("\\se[]Congratulations! Your Pokémon were fused into {2}!\\wt[80]", @pokemon1.name, newspeciesname)) _INTL("\\se[]Congratulations! Your Pokémon were fused into {2}!\\wt[80]", @pokemon1.name, newspeciesname))
@@ -770,7 +770,9 @@ class PokemonFusionScene
end end
end end
def drawSpriteCredits(filename,path,overlay) def drawSpriteCredits(filename,path,viewport)
overlay = BitmapSprite.new(Graphics.width, Graphics.height, @viewport).bitmap
return if path.start_with?(Settings::BATTLERS_FOLDER) return if path.start_with?(Settings::BATTLERS_FOLDER)
x= Graphics.width/2 x= Graphics.width/2
y=240 y=240

View File

@@ -50,7 +50,7 @@ class FusionQuiz
prompt_quit = pbMessage(_INTL("You still have {1} rounds to go. You'll only keep your points if you finish all {2} rounds. Do you really want to quit now?", rounds_left, nb_rounds), ["Yes", "No"]) prompt_quit = pbMessage(_INTL("You still have {1} rounds to go. You'll only keep your points if you finish all {2} rounds. Do you really want to quit now?", rounds_left, nb_rounds), ["Yes", "No"])
if prompt_quit if prompt_quit
@abandonned = true @abandonned = true
return break
end end
end end
round_multiplier += round_multiplier_increase round_multiplier += round_multiplier_increase
@@ -63,12 +63,14 @@ class FusionQuiz
end end
def end_quiz() def end_quiz()
hide_fusion_picture
Kernel.pbClearText() Kernel.pbClearText()
previous_highest = pbGet(VAR_STAT_FUSION_QUIZ_HIGHEST_SCORE) previous_highest = pbGet(VAR_STAT_FUSION_QUIZ_HIGHEST_SCORE)
pbSet(VAR_STAT_FUSION_QUIZ_HIGHEST_SCORE,@score) if @score > previous_highest pbSet(VAR_STAT_FUSION_QUIZ_HIGHEST_SCORE,@score) if @score > previous_highest
previous_total = pbGet(VAR_STAT_FUSION_QUIZ_TOTAL_PTS) previous_total = pbGet(VAR_STAT_FUSION_QUIZ_TOTAL_PTS)
pbSet(VAR_STAT_FUSION_QUIZ_TOTAL_PTS,previous_total+@score) pbSet(VAR_STAT_FUSION_QUIZ_TOTAL_PTS,previous_total+@score)
dispose
end end
def start_quiz_new_round(round_multiplier = 1) def start_quiz_new_round(round_multiplier = 1)

Binary file not shown.

Binary file not shown.