various fixes

This commit is contained in:
infinitefusion
2021-11-20 12:39:41 -05:00
parent fc5a71b46f
commit 383734a497
36 changed files with 92 additions and 25 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.

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.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -358,6 +358,17 @@ class PokemonEncounters
level = rand(encounter[2]..encounter[3])
return [encounter[1], level]
end
def listPossibleEncounters(enctype)
if !enctype
raise ArgumentError.new(_INTL("Encounter type out of range"))
end
return @encounter_tables[enctype]
end
end

View File

@@ -53,6 +53,40 @@ def pbPokeRadarCancel
$PokemonTemp.pokeradar = nil
end
def listUnseenPokemonInCurrentRoute(encounterType)
processed = []
unseen = []
for encounter in $PokemonEncounters.listPossibleEncounters(encounterType)
species = encounter[0]
if !processed.include?(species)
if $Trainer.seen?(species)
processed<<species
else
unseen<<species
processed<<species
end
end
end
return unseen
end
#can only encounter rare if have seen every encounterable land pokemon on the route
def canEncounterRarePokemon()
processed = []
for encounter in $PokemonEncounters.listPossibleEncounters($PokemonEncounters.pbEncounterType)
species = encounter[0]
if !processed.include?(species)
if $Trainer.seen[species]
processed<<species
else
return false
end
end
end
return true
end
def pbPokeRadarHighlightGrass(showmessage=true)
grasses = [] # x, y, ring (0-3 inner to outer), rarity
# Choose 1 random tile from each ring around the player
@@ -237,3 +271,5 @@ ItemHandlers::UseInField.add(:POKERADAR,proc { |item|
ItemHandlers::UseFromBag.add(:POKERADAR,proc { |item|
next (pbCanUsePokeRadar?) ? 2 : 0
})

View File

@@ -102,7 +102,7 @@ ItemHandlers::UseInField.add(:TELEPORTER, proc { |item|
})
def useTeleporter()
if HiddenMoveHandlers.triggerCanUseMove(:TELEPORT, 0)
if HiddenMoveHandlers.triggerCanUseMove(:TELEPORT, 0,true)
Kernel.pbMessage(_INTL("Teleport to where?", $Trainer.name))
scene = PokemonRegionMapScene.new(-1, false)
screen = PokemonRegionMap.new(scene)

View File

@@ -0,0 +1,19 @@
#Eevee quest
Events.onStepTaken+=proc {|sender,e|
next if !$game_switches[173]
next if !$game_switches[179] #If not outside of building
$game_variables[102]+=1
if $game_variables[102] % 100 == 0 then
$game_variables[101]+=1
end
if $game_variables[102] >= 400 then
if $game_variables[102] % 100 == 0 then
Kernel.pbMessage(_INTL("Eevee is getting tired. You should head back soon!"))
cry=pbResolveAudioSE(pbCryFile(133))
pbSEPlay(cry,100,100)
end
end
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -1802,45 +1802,45 @@ Pokemon = BELLSPROUT,77
######################################
[TEAMROCKET_M,Phillip]
Pokemon = B88H42,28 #Golmer,
Pokemon = B88H42,26 #Golmer,
######################
[TEAMROCKET_M,Paul]
Pokemon = B109H33,28 #Nidofing,
Pokemon = B109H33,26 #Nidofing,
########################
[TEAMROCKET_M,Joffrey]
Pokemon = KOFFING,21 #Tentata,
Pokemon = B20H73,25 #Tentaicate,
Pokemon = B20H73,23 #Tentaicate,
########################
[TEAMROCKET_F,Virginia]
Pokemon = KOFFING,28 #Koffduo,
Pokemon = KOFFING,26 #Koffduo,
#######################
[TEAMROCKET_M,Lionel]
Pokemon = B20H70,24 #Weepinicate,
Pokemon = B88H44,24 #Gloomer,
Pokemon = B20H70,22 #Weepinicate,
Pokemon = B88H44,22 #Gloomer,
######################
[TEAMROCKET_M,Richard]
Pokemon = KOFFING,24 #Koffcruel,
Pokemon = B88H81,24 #Magnemer,
Pokemon = KOFFING,22 #Koffcruel,
Pokemon = B88H81,22 #Magnemer,
#####################
[TEAMROCKET_F,Kaitlin]
Pokemon = B100H132,28 #Ditorb,
Pokemon = B100H132,26 #Ditorb,
Moves = TRANSFORM,CHARGEBEAM,LIGHTSCREEN,SONICBOOM
AbilityIndex = 0
Pokemon = B147H88,29 #Gritini,
Pokemon = B147H88,25 #Gritini,
#######################
[TEAMROCKET_M,Omar]
Pokemon = B17H109,28 #Koffeoto,
Pokemon = B17H109,26 #Koffeoto,
###################
[TEAMROCKET_M,Max]
Pokemon = B110H100,27 #Voltzing,
Pokemon = B110H100,25 #Voltzing,
####################
#####################################
@@ -1927,23 +1927,23 @@ Pokemon = B142H142,55 #mega aerodactyl
###################
[TEAMROCKET_M,Doug]
Pokemon = B15H81,30 #Magnedrill,
Pokemon = B15H81,28 #Magnedrill,
###################
[TEAMROCKET_M,Chad]
Pokemon = GOLBAT,30 #Goleotto,
Pokemon = EKANS,30 #Ratkans,
Pokemon = B88H116,30 #horsmer,
Pokemon = GOLBAT,24 #Goleotto,
Pokemon = EKANS,24 #Ratkans,
Pokemon = B88H116,25 #horsmer,
###################
[TEAMROCKET_M,Stephan]
Pokemon = B24H53,35 #Perbok,
Pokemon = B24H53,30 #Perbok,
###################
[TEAMROCKET_M,Romeo]
Pokemon = DROWZEE,31 #Drowicate,
Pokemon = KOFFING,31 #Psyfing,
Pokemon = B67H72,33 #Tentachoke,
Pokemon = DROWZEE,29 #Drowicate,
Pokemon = KOFFING,29 #Psyfing,
Pokemon = B67H72,31 #Tentachoke,
#####################################
####
@@ -1951,9 +1951,9 @@ Pokemon = B67H72,33 #Tentachoke,
[ROCKETBOSS,Giovanni,0]
Items = MAXPOTION
Pokemon = B95H24,34 #Arbix,
Pokemon = B131H111,34 #Rhyras,
Pokemon = B115H93,37 #Hauntkan,
Pokemon = B95H24,32 #Arbix,
Pokemon = B131H111,32 #Rhyras,
Pokemon = B115H93,35 #Hauntkan,
##############################
##################

View File

@@ -48,7 +48,7 @@ Added Features
- Added 12 new TMs and 5 new Move tutors
- Removed the Mt. Silver requirement for making triple fusions
- Added an option to set the default battle type (single, double, triple) - Only available if beat the game at least once
- Traded Pokémon now become owned by player when fused
## Maps ##
- Changed some tiles in Vermillion City
@@ -65,6 +65,7 @@ Added Features
- Renamed Spring boots to Golbat Boots
- New debug options
- Item stack limit increased to 999
- Added overworld animations for Cut and Rock Smash
#################
# Bug fixes #