diff --git a/Data/Map019.rxdata b/Data/Map019.rxdata index 9e58fb696..dde0a1ad1 100644 Binary files a/Data/Map019.rxdata and b/Data/Map019.rxdata differ diff --git a/Data/MapInfos.rxdata b/Data/MapInfos.rxdata index 398e1c619..efbfbb0f6 100644 Binary files a/Data/MapInfos.rxdata and b/Data/MapInfos.rxdata differ diff --git a/Data/Scripts/004_Game classes/001_Switches and Variables/001_Game_Temp.rb b/Data/Scripts/004_Game classes/001_Switches and Variables/001_Game_Temp.rb index 197ae32a6..98c4b0e46 100644 --- a/Data/Scripts/004_Game classes/001_Switches and Variables/001_Game_Temp.rb +++ b/Data/Scripts/004_Game classes/001_Switches and Variables/001_Game_Temp.rb @@ -26,6 +26,9 @@ class Game_Temp attr_accessor :background_bitmap attr_accessor :mart_prices attr_accessor :unimportedSprites + attr_accessor :nb_imported_sprites + attr_accessor :loading_screen + #----------------------------------------------------------------------------- # * Object Initialization #----------------------------------------------------------------------------- diff --git a/Data/Scripts/016_UI/001_Non-interactive UI/004_UI_Evolution.rb b/Data/Scripts/016_UI/001_Non-interactive UI/004_UI_Evolution.rb index e1397cdd9..85a28a605 100644 --- a/Data/Scripts/016_UI/001_Non-interactive UI/004_UI_Evolution.rb +++ b/Data/Scripts/016_UI/001_Non-interactive UI/004_UI_Evolution.rb @@ -601,7 +601,7 @@ class PokemonEvolutionScene @sprites["msgwindow"].text = "" # Check for consumed item and check if Pokémon should be duplicated - pbEvolutionMethodAfterEvolution + pbEvolutionMethodAfterEvolution if !reversing oldAbility = @pokemon.ability.id newSpecies = GameData::Species.get(@newspecies) diff --git a/Data/Scripts/048_Fusion/PokemonFusion.rb b/Data/Scripts/048_Fusion/PokemonFusion.rb index 9e4d94b08..481774960 100644 --- a/Data/Scripts/048_Fusion/PokemonFusion.rb +++ b/Data/Scripts/048_Fusion/PokemonFusion.rb @@ -756,6 +756,9 @@ class PokemonFusionScene removeItem = false if @pokemon2.isShiny? || @pokemon1.isShiny? @pokemon1.makeShiny + if !(@pokemon1.debug_shiny ||@pokemon2.debug_shiny) + @pokemon1.natural_shiny = true if @pokemon2.natural_shiny + end end #make it untraded, pour qu'on puisse le unfused après, même si un des 2 était traded diff --git a/Data/Scripts/050_AddOns/MultiSaves.rb b/Data/Scripts/050_AddOns/MultiSaves.rb index 632c56085..64873090a 100644 --- a/Data/Scripts/050_AddOns/MultiSaves.rb +++ b/Data/Scripts/050_AddOns/MultiSaves.rb @@ -299,9 +299,14 @@ class PokemonLoadScreen end def pbStartLoadScreen - if($game_temp.unimportedSprites.size >0) + if($game_temp.unimportedSprites && $game_temp.unimportedSprites.size >0) handleReplaceExistingSprites() end + if ($game_temp.nb_imported_sprites && $game_temp.nb_imported_sprites > 0) + pbMessage(_INTL("{1} new custom sprites were imported into the game",$game_temp.nb_imported_sprites.to_s)) + end + $game_temp.nb_imported_sprites=nil + copyKeybindings() save_file_list = SaveData::AUTO_SLOTS + SaveData::MANUAL_SLOTS first_time = true diff --git a/Data/Scripts/050_AddOns/New Items effects.rb b/Data/Scripts/050_AddOns/New Items effects.rb index 65fcc5dde..f8a499466 100644 --- a/Data/Scripts/050_AddOns/New Items effects.rb +++ b/Data/Scripts/050_AddOns/New Items effects.rb @@ -1411,7 +1411,6 @@ def pbFuse(pokemon, poke2, supersplicers = false) end def pbUnfuse(pokemon, scene, supersplicers, pcPosition = nil) - bodyPoke = getBasePokemonID(pokemon.species_data.id_number, true) headPoke = getBasePokemonID(pokemon.species_data.id_number, false) @@ -1468,12 +1467,16 @@ def pbUnfuse(pokemon, scene, supersplicers, pcPosition = nil) if pokemon.bodyShiny? && pokemon.headShiny? pokemon.shiny = true poke2.shiny = true + pokemon.natural_shiny = true if pokemon.natural_shiny && !pokemon.debug_shiny + poke2.natural_shiny = true if pokemon.natural_shiny && !pokemon.debug_shiny elsif pokemon.bodyShiny? pokemon.shiny = true poke2.shiny = false + pokemon.natural_shiny = true if pokemon.natural_shiny && !pokemon.debug_shiny elsif pokemon.headShiny? poke2.shiny = true pokemon.shiny = false + poke2.natural_shiny = true if pokemon.natural_shiny && !pokemon.debug_shiny else #shiny was obtained already fused if rand(2) == 0 pokemon.shiny = true @@ -1485,6 +1488,7 @@ def pbUnfuse(pokemon, scene, supersplicers, pcPosition = nil) pokemon.debug_shiny=true if pokemon.debug_shiny && pokemon.body_shiny poke2.debug_shiny=true if pokemon.debug_shiny && poke2.head_shiny + pokemon.body_shiny=false pokemon.head_shiny=false diff --git a/Data/Scripts/999_Main/999_Main.rb b/Data/Scripts/999_Main/999_Main.rb index 331f33a2d..b37ec9cdc 100644 --- a/Data/Scripts/999_Main/999_Main.rb +++ b/Data/Scripts/999_Main/999_Main.rb @@ -14,9 +14,9 @@ def handleReplaceExistingSprites() return if spritesToReplaceList.size==0 commands = [] #commands << "Pick which sprites to use as mains" + commands << "Do not import the new sprites" commands << "Replace all the old sprites with the new ones" #commands << "Import all the new sprites as alts" - commands << "Do not import the new sprites" messageSingular = "While importing custom sprites, the game has detected that {1} new custom sprite already has a version that exist in the game." messagePlural = "While importing custom sprites, the game has detected that {1} new custom sprites already have versions that exist in the game." @@ -27,15 +27,17 @@ def handleReplaceExistingSprites() command = pbMessage("What to do with the new sprites?",commands,commands.size-1) case command - when 0 #Replace olds + when 0 #Do not import + pbMessage("You can manually sort the new sprites in the /indexed folder to choose which ones you want to keep.") + pbMessage("You can also delete the ones you don't want to replace the main sprites and restart the game.") + return + when 1 #Replace olds spritesToReplaceList.each do |oldPath, newPath| File.rename(oldPath, newPath) + $game_temp.nb_imported_sprites+=1 echo "\nSorted " + oldPath + " into " + newPath end - #when 1 #Keep olds (rename new as alts) - when 1 #Do not import - pbMessage("You can manually sort the new sprites in the /indexed folder to choose which ones you want to keep.") - return + #when 2 #Keep olds (rename new as alts) end end @@ -56,6 +58,7 @@ end def sortCustomBattlers() + $game_temp.nb_imported_sprites=0 echo "Sorting CustomBattlers files..." alreadyExists = {} Dir.foreach(Settings::CUSTOM_BATTLERS_FOLDER) do |filename| @@ -71,6 +74,7 @@ def sortCustomBattlers() else File.rename(oldPath, newPath) + $game_temp.nb_imported_sprites+=1 echo "\nSorted " + filename + " into " + newPath end rescue @@ -81,9 +85,48 @@ def sortCustomBattlers() $game_temp.unimportedSprites=alreadyExists end +# def playInViewPort(viewport) +# @finished=false +# @currentFrame = 1 +# @initialTime = Time.now +# @timeElapsed = Time.now +# +# pbBGMPlay(@bgm) +# while (@currentFrame <= @maxFrame)# && !(@canStopEarly && Input::ACTION)) +# break if Input.trigger?(Input::C) && @canStopEarly +# frame = sprintf(@framesPath, @currentFrame) +# picture = Sprite.new(viewport) +# picture.bitmap = pbBitmap(frame) +# picture.visible=true +# pbWait(Graphics.frame_rate / 20) +# picture.dispose +# @currentFrame += 1 +# end +# @finished=true +# pbBGMStop +# end + + +def showLoadingScreen + intro_frames_path = "Graphics\\titles\\loading_screen" + picture = Sprite.new(@viewport) + picture.bitmap = pbBitmap(intro_frames_path) + picture.visible=true + pbWait(Graphics.frame_rate / 20) + picture.dispose +end + + +def showLoadMovie + path = "Graphics\\Pictures\\introMarill" + loading_screen = Sprite.new(@viewport) + loading_screen.bitmap = pbBitmap(path) + loading_screen.visible=true +end def mainFunctionDebug begin + showLoadingScreen MessageTypes.loadMessageFile("Data/messages.dat") if safeExists?("Data/messages.dat") PluginManager.runPlugins Compiler.main @@ -92,7 +135,6 @@ def mainFunctionDebug Graphics.update Graphics.freeze sortCustomBattlers() - $scene = pbCallTitle $scene.main until $scene.nil? Graphics.transition(20) diff --git a/Data/System.rxdata b/Data/System.rxdata index d9db424a6..94c780f43 100644 Binary files a/Data/System.rxdata and b/Data/System.rxdata differ diff --git a/Graphics/CustomBattlers/187.50.PNG b/Graphics/CustomBattlers/187.50.PNG new file mode 100644 index 000000000..edbdc3c65 Binary files /dev/null and b/Graphics/CustomBattlers/187.50.PNG differ diff --git a/Graphics/CustomBattlers/232-1.png b/Graphics/CustomBattlers/232-1.png new file mode 100644 index 000000000..0b0d28547 Binary files /dev/null and b/Graphics/CustomBattlers/232-1.png differ diff --git a/Graphics/CustomBattlers/243c.png b/Graphics/CustomBattlers/243c.png new file mode 100644 index 000000000..9df2bb2ce Binary files /dev/null and b/Graphics/CustomBattlers/243c.png differ diff --git a/Graphics/CustomBattlers/270c.png b/Graphics/CustomBattlers/270c.png new file mode 100644 index 000000000..b6cc5c9f3 Binary files /dev/null and b/Graphics/CustomBattlers/270c.png differ diff --git a/Graphics/CustomBattlers/282c.png b/Graphics/CustomBattlers/282c.png new file mode 100644 index 000000000..a2da9fd47 Binary files /dev/null and b/Graphics/CustomBattlers/282c.png differ diff --git a/Graphics/CustomBattlers/284c.png b/Graphics/CustomBattlers/284c.png new file mode 100644 index 000000000..f3b7f4454 Binary files /dev/null and b/Graphics/CustomBattlers/284c.png differ diff --git a/Graphics/CustomBattlers/374a.png b/Graphics/CustomBattlers/374a.png new file mode 100644 index 000000000..be959a0ea Binary files /dev/null and b/Graphics/CustomBattlers/374a.png differ diff --git a/Graphics/CustomBattlers/59a.png b/Graphics/CustomBattlers/59a.png new file mode 100644 index 000000000..daac9c937 Binary files /dev/null and b/Graphics/CustomBattlers/59a.png differ diff --git a/Graphics/CustomBattlers/67a.png b/Graphics/CustomBattlers/67a.png new file mode 100644 index 000000000..9a0cc894d Binary files /dev/null and b/Graphics/CustomBattlers/67a.png differ diff --git a/Graphics/CustomBattlers/indexed/173/173.200.png b/Graphics/CustomBattlers/indexed/173/173.200.png new file mode 100644 index 000000000..b1469d998 Binary files /dev/null and b/Graphics/CustomBattlers/indexed/173/173.200.png differ diff --git a/Graphics/CustomBattlers/indexed/188/188.50.png b/Graphics/CustomBattlers/indexed/188/188.50.png new file mode 100644 index 000000000..86e6e84d6 Binary files /dev/null and b/Graphics/CustomBattlers/indexed/188/188.50.png differ diff --git a/Graphics/CustomBattlers/indexed/188/188.51.png b/Graphics/CustomBattlers/indexed/188/188.51.png new file mode 100644 index 000000000..5ee669dcd Binary files /dev/null and b/Graphics/CustomBattlers/indexed/188/188.51.png differ diff --git a/Graphics/CustomBattlers/indexed/255/255.342.png b/Graphics/CustomBattlers/indexed/255/255.342.png new file mode 100644 index 000000000..aceb7ee2f Binary files /dev/null and b/Graphics/CustomBattlers/indexed/255/255.342.png differ diff --git a/Graphics/CustomBattlers/indexed/35/35.200.png b/Graphics/CustomBattlers/indexed/35/35.200.png new file mode 100644 index 000000000..ee03606f4 Binary files /dev/null and b/Graphics/CustomBattlers/indexed/35/35.200.png differ