typing on fusion preview window overlay

This commit is contained in:
infinitefusion
2021-12-29 12:47:47 -05:00
parent 4170738933
commit a447238b70
11 changed files with 62 additions and 3 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.

View File

@@ -666,7 +666,31 @@ def calculateUnfuseLevelOldMethod(pokemon, supersplicers)
return lev.floor return lev.floor
end end
def drawPokemonType(pokemon_id, x_pos = 192, y_pos = 264)
width = 66
viewport = Viewport.new(0, 0, Graphics.width, Graphics.height)
viewport.z = 1000001
overlay = BitmapSprite.new(Graphics.width, Graphics.height, viewport).bitmap
pokemon = GameData::Species.get(pokemon_id)
typebitmap = AnimatedBitmap.new(_INTL("Graphics/Pictures/types"))
type1_number = GameData::Type.get(pokemon.type1).id_number
type2_number = GameData::Type.get(pokemon.type2).id_number
type1rect = Rect.new(0, type1_number * 28, 64, 28)
type2rect = Rect.new(0, type2_number * 28, 64, 28)
if pokemon.type1 == pokemon.type2
overlay.blt(x_pos + (width / 2), y_pos, typebitmap.bitmap, type1rect)
else
overlay.blt(x_pos, y_pos, typebitmap.bitmap, type1rect)
overlay.blt(x_pos + width, y_pos, typebitmap.bitmap, type2rect)
end
return viewport
end
def pbFuse(pokemon, poke2, supersplicers = false) def pbFuse(pokemon, poke2, supersplicers = false)
newid = (pokemon.species) * NB_POKEMON + poke2.species newid = (pokemon.species) * NB_POKEMON + poke2.species
playingBGM = $game_system.getPlayingBGM playingBGM = $game_system.getPlayingBGM
@@ -1291,7 +1315,9 @@ def pbDNASplicing(pokemon, scene, supersplicers = false, superSplicer = false)
previewwindow = PictureWindow.new(picturePath) previewwindow = PictureWindow.new(picturePath)
if hasCustom typeWindow = drawPokemonType(newid)
if hasCustom§
previewwindow.picture.pbSetColor(220, 255, 220, 200) previewwindow.picture.pbSetColor(220, 255, 220, 200)
else else
previewwindow.picture.pbSetColor(255, 255, 255, 200) previewwindow.picture.pbSetColor(255, 255, 255, 200)
@@ -1302,6 +1328,7 @@ def pbDNASplicing(pokemon, scene, supersplicers = false, superSplicer = false)
if (Kernel.pbConfirmMessage(_INTL("Fuse the two Pokémon?", newid))) if (Kernel.pbConfirmMessage(_INTL("Fuse the two Pokémon?", newid)))
previewwindow.dispose previewwindow.dispose
typeWindow.dispose
fus = PokemonFusionScene.new fus = PokemonFusionScene.new
if (fus.pbStartScreen(pokemon, poke2, newid)) if (fus.pbStartScreen(pokemon, poke2, newid))
returnItemsToBag(pokemon, poke2) returnItemsToBag(pokemon, poke2)
@@ -1316,6 +1343,7 @@ def pbDNASplicing(pokemon, scene, supersplicers = false, superSplicer = false)
end end
else else
previewwindow.dispose previewwindow.dispose
typeWindow.dispose
return false return false
end end
@@ -1377,8 +1405,8 @@ def pbDNASplicing(pokemon, scene, supersplicers = false, superSplicer = false)
poke1.exp = exp_body poke1.exp = exp_body
poke2.exp = exp_head poke2.exp = exp_head
end end
body_level=poke1.level body_level = poke1.level
head_level=poke2.level head_level = poke2.level
if $Trainer.party.length >= 6 if $Trainer.party.length >= 6
if (keepInParty == 0) if (keepInParty == 0)
$PokemonStorage.pbStoreCaught(poke2) $PokemonStorage.pbStoreCaught(poke2)

Binary file not shown.

View File

@@ -4642,3 +4642,25 @@ Pokemon = GIRATINA,25
[COOLTRAINER_F,lounge_member_single] [COOLTRAINER_F,lounge_member_single]
Pokemon = DIALGA,25 Pokemon = DIALGA,25
########################MT SILVER##########################
[RIVAL1,Blue,24]
Pokemon = B248H59,69 #Arcaitar
Moves = THRASH,FIREFANG,CRUNCH,ROAR
AbilityIndex = 0
Item = SMOOTHROCK
Pokemon = B142H329,69 #Aegidactyl,
Moves = STEELWING,DRAGONDANCE,TAILWIND,KINGSSHIELD
AbilityIndex = 1
Item = METALCOAT
Pokemon = B65H255,69 #Mismakazam,
Moves = CALMMIND,MYSTICALFIRE,TRICKROOM,PSYCHIC
AbilityIndex = 0
Item = WISEGLASSES
Pokemon = B18H169,68 #Crogeot
Moves = WHIRLWIND,CROSSPOISON,UTURN,AIRSLASH
AbilityIndex = 10 Item = WISEGLASSES
Item=RAZORFANG
Pokemon = MEW,72 #Starter
Item = LEFTOVERS
#######################
#[CHAMPION_Sinnoh,Cynthia]

View File

@@ -115,3 +115,4 @@
112,LEADER_Jasmine,Gym Leader,100,gymleader,,,Female,, 112,LEADER_Jasmine,Gym Leader,100,gymleader,,,Female,,
113,POLICE,Officer,32,,,,Male,, 113,POLICE,Officer,32,,,,Male,,
114,SKIER_F,Skier,16,,,,Female,32, 114,SKIER_F,Skier,16,,,,Female,32,
115,CHAMPION_Sinnoh,Champion,16,,,,Female,100,

View File

@@ -4,11 +4,14 @@ Many, many bugfixes
## Re-added features ## ## Re-added features ##
In-game clock In-game clock
Speed-up button Speed-up button
Reverse mode
Easy and Hard difficulties
#Removals #Removals
Removed Trainer House Removed Trainer House
Removed the Convert Pokemon option from the update menu Removed the Convert Pokemon option from the update menu
Oak no longer gives a Johto starter after beating the league Oak no longer gives a Johto starter after beating the league
Removed Pokedex key item
##New Stuff ##New Stuff
Added Quick Surf option Added Quick Surf option
@@ -23,6 +26,11 @@ Added egg move tutor in Battle Factory
Battle Factory now gives Factory Points instead of Rare Candies Battle Factory now gives Factory Points instead of Rare Candies
Updated critical hits to gen 6 mechanics Updated critical hits to gen 6 mechanics
Added gen 6 status move immunity from certain types Added gen 6 status move immunity from certain types
Implemented Multitype ability for fusions
5.0 5.0
########################## ##########################