mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2026-02-03 11:51:03 +00:00
egg sprites
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -23,7 +23,7 @@ module Settings
|
|||||||
FRONTSPRITE_POSITION_OFFSET = 15
|
FRONTSPRITE_POSITION_OFFSET = 15
|
||||||
FRONTSPRITE_SCALE = 0.6666666
|
FRONTSPRITE_SCALE = 0.6666666
|
||||||
BACKRPSPRITE_SCALE = 1
|
BACKRPSPRITE_SCALE = 1
|
||||||
|
EGGSPRITE_SCALE = 1
|
||||||
BACKSPRITE_POSITION_OFFSET = 20
|
BACKSPRITE_POSITION_OFFSET = 20
|
||||||
|
|
||||||
RIVAL_STARTER_PLACEHOLDER_SPECIES = :MEW #(MEW)
|
RIVAL_STARTER_PLACEHOLDER_SPECIES = :MEW #(MEW)
|
||||||
|
|||||||
@@ -57,9 +57,24 @@ module GameData
|
|||||||
return self.check_graphic_file("Graphics/Pokemon/", species, form, gender, shiny, shadow, "Back")
|
return self.check_graphic_file("Graphics/Pokemon/", species, form, gender, shiny, shadow, "Back")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# def self.egg_sprite_filename(species, form)
|
||||||
|
# ret = self.check_egg_graphic_file("Graphics/Pokemon/Eggs/", species, form)
|
||||||
|
# return (ret) ? ret : pbResolveBitmap("Graphics/Pokemon/Eggs/000")
|
||||||
|
# end
|
||||||
def self.egg_sprite_filename(species, form)
|
def self.egg_sprite_filename(species, form)
|
||||||
ret = self.check_egg_graphic_file("Graphics/Pokemon/Eggs/", species, form)
|
dexNum = getDexNumberForSpecies(species)
|
||||||
return (ret) ? ret : pbResolveBitmap("Graphics/Pokemon/Eggs/000")
|
bitmapFileName = sprintf("Graphics/Battlers/Eggs/%03d", dexNum) rescue nil
|
||||||
|
if !pbResolveBitmap(bitmapFileName)
|
||||||
|
if isTripleFusion?(dexNum)
|
||||||
|
bitmapFileName = "Graphics/Battlers/Eggs/egg_base"
|
||||||
|
else
|
||||||
|
bitmapFileName = sprintf("Graphics/Battlers/Eggs/%03d", dexNum)
|
||||||
|
if !pbResolveBitmap(bitmapFileName)
|
||||||
|
bitmapFileName = sprintf("Graphics/Battlers/Eggs/000")
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
return bitmapFileName
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.sprite_filename(species, form = 0, gender = 0, shiny = false, shadow = false, back = false, egg = false)
|
def self.sprite_filename(species, form = 0, gender = 0, shiny = false, shadow = false, back = false, egg = false)
|
||||||
|
|||||||
@@ -68,6 +68,10 @@ class Player < Trainer
|
|||||||
end
|
end
|
||||||
|
|
||||||
def isTripleFusion(num)
|
def isTripleFusion(num)
|
||||||
|
return isTripleFusion?(num)
|
||||||
|
end
|
||||||
|
|
||||||
|
def isTripleFusion?(num)
|
||||||
return num >= Settings::ZAPMOLCUNO_NB
|
return num >= Settings::ZAPMOLCUNO_NB
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -28,8 +28,8 @@ class PokemonEggHatch_Scene
|
|||||||
@pokemon.form, @pokemon.shiny?,
|
@pokemon.form, @pokemon.shiny?,
|
||||||
false, false, true) # Egg sprite
|
false, false, true) # Egg sprite
|
||||||
# Load egg cracks bitmap
|
# Load egg cracks bitmap
|
||||||
crackfilename = sprintf("Graphics/Pokemon/Eggs/%s_cracks", @pokemon.species)
|
crackfilename = sprintf("Graphics/Battlers/Eggs/%s_cracks", @pokemon.species)
|
||||||
crackfilename = sprintf("Graphics/Pokemon/Eggs/000_cracks") if !pbResolveBitmap(crackfilename)
|
crackfilename = sprintf("Graphics/Battlers/Eggs/000_cracks") if !pbResolveBitmap(crackfilename)
|
||||||
crackfilename=pbResolveBitmap(crackfilename)
|
crackfilename=pbResolveBitmap(crackfilename)
|
||||||
@hatchSheet=AnimatedBitmap.new(crackfilename)
|
@hatchSheet=AnimatedBitmap.new(crackfilename)
|
||||||
# Create egg cracks sprite
|
# Create egg cracks sprite
|
||||||
|
|||||||
@@ -913,6 +913,14 @@ class PokemonSummary_Scene
|
|||||||
def pbChangePokemon
|
def pbChangePokemon
|
||||||
@pokemon = @party[@partyindex]
|
@pokemon = @party[@partyindex]
|
||||||
@sprites["pokemon"].setPokemonBitmap(@pokemon)
|
@sprites["pokemon"].setPokemonBitmap(@pokemon)
|
||||||
|
if @pokemon.egg?
|
||||||
|
@sprites["pokemon"].zoom_x = Settings::EGGSPRITE_SCALE
|
||||||
|
@sprites["pokemon"].zoom_y = Settings::EGGSPRITE_SCALE
|
||||||
|
else
|
||||||
|
@sprites["pokemon"].zoom_x = Settings::FRONTSPRITE_SCALE
|
||||||
|
@sprites["pokemon"].zoom_y = Settings::FRONTSPRITE_SCALE
|
||||||
|
end
|
||||||
|
|
||||||
@sprites["itemicon"].item = @pokemon.item_id
|
@sprites["itemicon"].item = @pokemon.item_id
|
||||||
pbSEStop
|
pbSEStop
|
||||||
@pokemon.play_cry
|
@pokemon.play_cry
|
||||||
|
|||||||
@@ -123,6 +123,10 @@ def dexNum(species)
|
|||||||
return getDexNumberForSpecies(species)
|
return getDexNumberForSpecies(species)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def isTripleFusion?(num)
|
||||||
|
return num >= Settings::ZAPMOLCUNO_NB
|
||||||
|
end
|
||||||
|
|
||||||
def getRandomCustomFusion(returnRandomPokemonIfNoneFound = true, customPokeList = [], maxPoke = -1, recursionLimit = 3)
|
def getRandomCustomFusion(returnRandomPokemonIfNoneFound = true, customPokeList = [], maxPoke = -1, recursionLimit = 3)
|
||||||
if customPokeList.length == 0
|
if customPokeList.length == 0
|
||||||
customPokeList = getCustomSpeciesList()
|
customPokeList = getCustomSpeciesList()
|
||||||
|
|||||||
@@ -121,7 +121,6 @@ QUESTS = [
|
|||||||
#Cinnabar Island
|
#Cinnabar Island
|
||||||
Quest.new(29, "Powder metallurgy", "The scientist at the hotel wants you to find some Metal Powder.", questBranchHotels, "BW (82)","Cinnabar Island", defaultQuestColor),
|
Quest.new(29, "Powder metallurgy", "The scientist at the hotel wants you to find some Metal Powder.", questBranchHotels, "BW (82)","Cinnabar Island", defaultQuestColor),
|
||||||
Quest.new(30, "Diamonds and Pearls", "Find a Diamond Necklace to save the man's marriage.", questBranchHotels, "BW (71)","Cinnabar Island", defaultQuestColor),
|
Quest.new(30, "Diamonds and Pearls", "Find a Diamond Necklace to save the man's marriage.", questBranchHotels, "BW (71)","Cinnabar Island", defaultQuestColor),
|
||||||
Quest.new(42, "Stolen artifact", "Recover a stolen vase from a burglar in the Pokémon Mansion", questBranchHotels, "BW (21)","Cinnabar Island", defaultQuestColor),
|
|
||||||
|
|
||||||
#Goldenrod City
|
#Goldenrod City
|
||||||
Quest.new(31, "Hoenn Pokémon", "A woman wants you to show her a Pokémon native to the Hoenn region.", questBranchHotels, "BW (37)","Goldenrod City", defaultQuestColor),
|
Quest.new(31, "Hoenn Pokémon", "A woman wants you to show her a Pokémon native to the Hoenn region.", questBranchHotels, "BW (37)","Goldenrod City", defaultQuestColor),
|
||||||
@@ -143,10 +142,12 @@ QUESTS = [
|
|||||||
#Kin Island
|
#Kin Island
|
||||||
Quest.new(40, "Banana Slamma!", "Collect 30 bananas", questBranchHotels, "BW029","Kin Island", defaultQuestColor),
|
Quest.new(40, "Banana Slamma!", "Collect 30 bananas", questBranchHotels, "BW029","Kin Island", defaultQuestColor),
|
||||||
Quest.new(41, "Unova Pokémon", "A woman wants you to show her a Pokémon native to the Unova region.", questBranchHotels, "BW (37)","Kin Island", defaultQuestColor),
|
Quest.new(41, "Unova Pokémon", "A woman wants you to show her a Pokémon native to the Unova region.", questBranchHotels, "BW (37)","Kin Island", defaultQuestColor),
|
||||||
|
Quest.new(42, "Stolen artifact", "Recover a stolen vase from a burglar in the Pokémon Mansion", questBranchHotels, "BW (21)","Cinnabar Island", defaultQuestColor),
|
||||||
Quest.new(43, "Fallen Meteor", "Investigate a crater near Bond Bridge.", questBranchHotels, "BW009","Kin Island", defaultQuestColor),
|
Quest.new(43, "Fallen Meteor", "Investigate a crater near Bond Bridge.", questBranchHotels, "BW009","Kin Island", defaultQuestColor),
|
||||||
Quest.new(44, "First Contact", "Find the missing pieces of a fallen alien spaceship", questBranchHotels, "BW (92)","Bond Bridge", questBranchField),
|
Quest.new(44, "First Contact", "Find the missing pieces of a fallen alien spaceship", questBranchHotels, "BW (92)","Bond Bridge", questBranchField),
|
||||||
Quest.new(45, "First Contact (Part 2)", "Ask the sailor at Cinnabar Island's harbour to take you to the uncharted island where the spaceship might be located", questBranchHotels, "BW (92)","Bond Bridge", questBranchField),
|
Quest.new(45, "First Contact (Part 2)", "Ask the sailor at Cinnabar Island's harbour to take you to the uncharted island where the spaceship might be located", questBranchHotels, "BW (92)","Bond Bridge", questBranchField),
|
||||||
|
|
||||||
|
# attention: c'est un array et non un hash... l'id est en fait l'index, donc il est important de garder l'ordre
|
||||||
#out of order quests
|
#out of order quests
|
||||||
#42 (cinnabar)
|
#42 (cinnabar)
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
@@ -663,4 +663,5 @@
|
|||||||
655,TM118,TM118,TM118s,4,30000,"The target is hit with wings of steel. It may also raise the user's Defense stat.",3,0,0,STEELWING
|
655,TM118,TM118,TM118s,4,30000,"The target is hit with wings of steel. It may also raise the user's Defense stat.",3,0,0,STEELWING
|
||||||
656,TM119,TM119,TM119s,4,30000,"The user attacks driven by frustration. Power increases if the user's previous move failed.",3,0,0,STOMPINGTANTRUM
|
656,TM119,TM119,TM119s,4,30000,"The user attacks driven by frustration. Power increases if the user's previous move failed.",3,0,0,STOMPINGTANTRUM
|
||||||
657,TM120,TM120,TM120s,4,30000,"The user attacks the target's throat. The target cannot use sound-based moves for two turns.",3,0,0,THROATCHOP
|
657,TM120,TM120,TM120s,4,30000,"The user attacks the target's throat. The target cannot use sound-based moves for two turns.",3,0,0,THROATCHOP
|
||||||
|
658,TM00,TM00,TM00s,4,0,"A strange TM developped by Team Rocket. It appears to be related to Pokémon fusion.",3,0,0,FUSIONSWAP
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user