5 Commits

Author SHA1 Message Date
chardub
e5e1ec5b0e Map fixes 2025-04-10 19:53:03 -04:00
chardub
9dffb6f99d Adds debug option to set a pokemon's level to current level cap 2025-04-10 19:52:56 -04:00
chardub
9853b8d6e4 Fixes quest icons showing up on invisible events 2025-04-10 19:52:35 -04:00
chardub
be2edbef70 Fixes move remembering issue when unfusing 2025-04-10 19:52:18 -04:00
chardub
e1b6d7e7a9 Fixes move remembering issue when unfusing 2025-04-10 19:52:11 -04:00
23 changed files with 20 additions and 9 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.

View File

@@ -51,7 +51,6 @@ class Game_System
def bgm_play_internal2(name,volume,pitch,position) # :nodoc: def bgm_play_internal2(name,volume,pitch,position) # :nodoc:
vol = volume vol = volume
vol *= $PokemonSystem.bgmvolume/100.0 vol *= $PokemonSystem.bgmvolume/100.0
vol+=30
vol = vol.to_i vol = vol.to_i
begin begin
Audio.bgm_play(name,vol,pitch,position) Audio.bgm_play(name,vol,pitch,position)

View File

@@ -445,7 +445,6 @@ def pbLearnMove(pkmn, move, ignoreifknown = false, bymachine = false, fast = fal
end end
pkmnname = pkmn.name pkmnname = pkmn.name
movename = GameData::Move.get(move).name movename = GameData::Move.get(move).name
pkmn.add_learned_move(move) if !bymachine
if pkmn.hasMove?(move) if pkmn.hasMove?(move)
pbMessage(_INTL("{1} already knows {2}.", pkmnname, movename), &block) if !ignoreifknown pbMessage(_INTL("{1} already knows {2}.", pkmnname, movename), &block) if !ignoreifknown
return false return false

View File

@@ -62,6 +62,7 @@ class PokeRadar_UI
def addPokemonIcon(species, blackened = false, rare=false) def addPokemonIcon(species, blackened = false, rare=false)
pokemonId=dexNum(species) pokemonId=dexNum(species)
return if !pokemonId
iconId = _INTL("{1}", species) iconId = _INTL("{1}", species)
pokemonBitmap = pbCheckPokemonIconFiles(species) pokemonBitmap = pbCheckPokemonIconFiles(species)

View File

@@ -977,8 +977,10 @@ class Pokemon
end end
def pokemon_can_learn_move(species_data, move_data) def pokemon_can_learn_move(species_data, move_data)
moveset = species_data.moves.map { |pair| pair[1] }
return species_data.tutor_moves.include?(move_data.id) || return species_data.tutor_moves.include?(move_data.id) ||
species_data.moves.include?(move_data.id) || species_data.moves.include?(move_data.id) || ##this is formatted as such [[1, :PECK],[etc.]] so it never finds anything when move_data is just the symbol. Leaving it there in case something depends on that for some reason.
moveset.include?(move_data.id) ||
species_data.egg_moves.include?(move_data.id) species_data.egg_moves.include?(move_data.id)
end end
@@ -1599,7 +1601,6 @@ class Pokemon
@hat_y = 0 @hat_y = 0
@size_category = determine_size_category() @size_category = determine_size_category()
@sprite_scale=determine_scale() @sprite_scale=determine_scale()
echoln @sprite_scale
calc_stats calc_stats
if @form == 0 && recheck_form if @form == 0 && recheck_form
f = MultipleForms.call("getFormOnCreation", self) f = MultipleForms.call("getFormOnCreation", self)

View File

@@ -1196,7 +1196,6 @@ class PokemonPartyScreen
#exclude current moves #exclude current moves
echoln "learned moves: #{learnable_moves}" echoln "learned moves: #{learnable_moves}"
for current_move in pokemon.moves for current_move in pokemon.moves
echoln current_move.id
if learnable_moves.include?(current_move.id) if learnable_moves.include?(current_move.id)
learnable_moves.delete(current_move.id) learnable_moves.delete(current_move.id)
end end
@@ -1204,7 +1203,7 @@ class PokemonPartyScreen
move_ids = [] move_ids = []
for move in learnable_moves for move in learnable_moves
if move.is_a?(Symbol) if move.is_a?(Symbol)
move_ids << move move_ids << move if pokemon.compatible_with_move?(move)
end end
end end

View File

@@ -481,10 +481,15 @@ def get_difficulty_text
end end
end end
def pokemonExceedsLevelCap(pokemon) def getCurrentLevelCap()
return false if $Trainer.badge_count >= Settings::NB_BADGES
current_max_level = Settings::LEVEL_CAPS[$Trainer.badge_count] current_max_level = Settings::LEVEL_CAPS[$Trainer.badge_count]
current_max_level *= Settings::HARD_MODE_LEVEL_MODIFIER if $game_switches[SWITCH_GAME_DIFFICULTY_HARD] current_max_level *= Settings::HARD_MODE_LEVEL_MODIFIER if $game_switches[SWITCH_GAME_DIFFICULTY_HARD]
return current_max_level
end
def pokemonExceedsLevelCap(pokemon)
return false if $Trainer.badge_count >= Settings::NB_BADGES
current_max_level = getCurrentLevelCap()
return pokemon.level >= current_max_level return pokemon.level >= current_max_level
end end

View File

@@ -1626,6 +1626,10 @@ def pbUnfuse(pokemon, scene, supersplicers, pcPosition = nil)
end end
end end
fused_pokemon_learned_moved = pokemon.learned_moves
pokemon.learned_moves = fused_pokemon_learned_moved
poke2.learned_moves = fused_pokemon_learned_moved
pokemon.ability_index = pokemon.body_original_ability_index if pokemon.body_original_ability_index pokemon.ability_index = pokemon.body_original_ability_index if pokemon.body_original_ability_index
poke2.ability_index = pokemon.head_original_ability_index if pokemon.head_original_ability_index poke2.ability_index = pokemon.head_original_ability_index if pokemon.head_original_ability_index

View File

@@ -61,13 +61,16 @@ class Game_Event < Game_Character
echoln "MATCH" echoln "MATCH"
echoln quest_id echoln quest_id
return nil if isQuestAlreadyAccepted?(quest_id) return nil if isQuestAlreadyAccepted?(quest_id)
return quest_id return quest_id
end end
def validateEventIsCompatibleWithIcons(event) def validateEventIsCompatibleWithIcons(event)
return false if event.is_a?(Game_Player) return false if event.is_a?(Game_Player)
return false if event.erased return false if event.erased
return false unless pbGetActiveEventPage(event) page = pbGetActiveEventPage(event)
return false unless page
return false if page.graphic.character_name.empty?
return true return true
end end

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.