additional triple fusions + small pokedex fixes

This commit is contained in:
infinitefusion
2022-04-24 13:49:58 -04:00
parent b190416123
commit c01641e73c
28 changed files with 50 additions and 20 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.

View File

@@ -172,7 +172,11 @@ class Pokemon
end
def isFusion?
return species_data.id_number > NB_POKEMON
return species_data.id_number > NB_POKEMON && !self.isTripleFusion?
end
def isTripleFusion?
return species_data.id_number >= Settings::ZAPMOLCUNO_NB
end
def form

View File

@@ -87,7 +87,11 @@ class Player < Trainer
end
def set_seen_triple(species)
species_id = GameData::Species.try_get(species)&.species
if species.is_a?(Pokemon)
species_id = species.species
else
species_id = GameData::Species.try_get(species)&.species
end
return if species_id.nil?
@seen_triple[species_id] = true
end

View File

@@ -359,6 +359,9 @@ class PokemonPokedex_Scene
end
def pbRefreshDexList(index=0)
if index == nil
index = 0
end
dexlist = pbGetDexList
case $PokemonGlobal.pokedexMode
when MODENUMERICAL

View File

@@ -213,11 +213,11 @@ class PokemonPokedexInfo_Scene
species_data = GameData::Species.get_species_form(@species, @form)
# Write various bits of text
indexText = "???"
if @dexlist[@index][4] > 0
#if @dexlist[@index][4] > 0
indexNumber = @dexlist[@index][4]
indexNumber -= 1 if @dexlist[@index][5]
indexText = sprintf("%03d", indexNumber)
end
# end
textpos = [
[_INTL("{1}{2} {3}", indexText, " ", species_data.name),
246, 36, 0, Color.new(248, 248, 248), Color.new(0, 0, 0)],

View File

@@ -398,19 +398,19 @@ class PokemonSummary_Scene
# Write the Regional/National Dex number
dexnum = GameData::Species.get(@pokemon.species).id_number
dexnumshift = false
if $Trainer.pokedex.unlocked?(-1) # National Dex is unlocked
dexnumshift = true if Settings::DEXES_WITH_OFFSETS.include?(-1)
else
dexnum = 0
for i in 0...$Trainer.pokedex.dexes_count - 1
next if !$Trainer.pokedex.unlocked?(i)
num = pbGetRegionalNumber(i,@pokemon.species)
next if num<=0
dexnum = num
dexnumshift = true if Settings::DEXES_WITH_OFFSETS.include?(i)
break
end
end
# if $Trainer.pokedex.unlocked?(-1) # National Dex is unlocked
# dexnumshift = true if Settings::DEXES_WITH_OFFSETS.include?(-1)
# else
# dexnum = 0
# for i in 0...$Trainer.pokedex.dexes_count - 1
# next if !$Trainer.pokedex.unlocked?(i)
# num = pbGetRegionalNumber(i,@pokemon.species)
# next if num<=0
# dexnum = num
# dexnumshift = true if Settings::DEXES_WITH_OFFSETS.include?(i)
# break
# end
# end
if dexnum<=0
textpos.push(["???",435,74,2,dexNumBase,dexNumShadow])
else

View File

@@ -284,7 +284,7 @@ class PokemonLoadScreen
cmd_debug = -1
cmd_quit = -1
show_continue = !@save_data.empty?
new_game_plus = show_continue && @save_data[:player].new_game_plus_unlocked
new_game_plus = show_continue && (@save_data[:player].new_game_plus_unlocked || $DEBUG)
if show_continue
commands[cmd_continue = commands.length] = _INTL('Continue')
if @save_data[:player].mystery_gift_unlocked

View File

@@ -1,7 +1,7 @@
module PBSpecies
#couldn't figure out how to get the size of GameData::Species so fuck it, here's the hardcoded value
def PBSpecies.maxValue
return 176832
return 176840
end
def PBSpecies.getName(species)

View File

@@ -54,6 +54,8 @@ module GameData
return sprintf(base_path +"349.350.351")
when Settings::ZAPMOLCUNO_NB+6
return sprintf(base_path +"151.251.381")
when Settings::ZAPMOLCUNO_NB+11
return sprintf(base_path +"150.348.380")
#starters
when Settings::ZAPMOLCUNO_NB+7
return sprintf(base_path +"3.6.9")
@@ -63,6 +65,23 @@ module GameData
return sprintf(base_path +"278.281.284")
when Settings::ZAPMOLCUNO_NB+10
return sprintf(base_path +"318.321.324")
#starters prevos
when Settings::ZAPMOLCUNO_NB+12
return sprintf(base_path +"1.4.7")
when Settings::ZAPMOLCUNO_NB+13
return sprintf(base_path +"2.5.8")
when Settings::ZAPMOLCUNO_NB+14
return sprintf(base_path +"152.155.158")
when Settings::ZAPMOLCUNO_NB+15
return sprintf(base_path +"153.156.159")
when Settings::ZAPMOLCUNO_NB+16
return sprintf(base_path +"276.279.282")
when Settings::ZAPMOLCUNO_NB+17
return sprintf(base_path +"277.280.283")
when Settings::ZAPMOLCUNO_NB+18
return sprintf(base_path +"316.319.322")
when Settings::ZAPMOLCUNO_NB+19
return sprintf(base_path +"317.320.323")
else
return sprintf(base_path + "000")
end

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.

Binary file not shown.

Binary file not shown.

View File

@@ -696,4 +696,4 @@
677,FAINTATTACK,Feint Attack,0A5,60,DARK,Physical,0,20,0,NearOther,0,abef,"The user draws up to the foe disarmingly, then throws a sucker punch. It hits without fail."
678,HIDDENPOWER2,Hidden Power,090,60,NORMAL,Special,100,15,0,NearOther,0,bef,"A unique attack that varies in type and intensity depending on the Pokémon using it."
679,TRIATTACK2,Tri Attack,017,70,NORMAL,Special,100,10,20,NearOther,0,bef,"The user strikes with a simultaneous three-beam attack. May also paralyze, burn, or freeze the target."
680,FUSIONSWAP,Fusion Beam,017,0,QMARKS,Special,100,5,20,NearOther,0,bef,"A strange move developped by Team Rocket. It temporarily inverts an opposing fused Pokémon."
680,FUSIONSWAP,Fusion Beam,017,091,QMARKS,Special,100,5,20,NearOther,0,bef,"A strange move developped by Team Rocket. It temporarily inverts an opposing fused Pokémon."