Pokémon sent into battle now default to the Fight option, fixed bugs in Instruct, fixed some AI bugs, fixed parameter mixup for def pbMoveCanTarget?, renamed function to function_code everywhere, fixed black party Pokémon icons in storage, added some more AI testing code

This commit is contained in:
Maruno17
2023-06-18 20:12:36 +01:00
parent 9c2a9130a5
commit b5e37248b9
42 changed files with 305 additions and 174 deletions

View File

@@ -393,7 +393,8 @@ class Battle::Scene
shadowSprite.visible = pkmn.species_data.shows_shadow? if shadowSprite && !back
end
def pbResetMoveIndex(idxBattler)
def pbResetCommandsIndex(idxBattler)
@lastCmd[idxBattler] = 0
@lastMove[idxBattler] = 0
end

View File

@@ -346,7 +346,7 @@ class Battle::Scene
when :BothSides
showName = true
else
showName = @battle.pbMoveCanTarget?(i, idxBattler, target_data)
showName = @battle.pbMoveCanTarget?(idxBattler, i, target_data)
end
next nil if !showName
next (@battle.battlers[i].fainted?) ? "" : @battle.battlers[i].name

View File

@@ -65,7 +65,7 @@ class Battle::DebugSceneNoVisuals
def pbSendOutBattlers(sendOuts, startBattle = false); end
def pbRecall(idxBattler); end
def pbItemMenu(idxBattler, firstAction); return -1; end
def pbResetMoveIndex(idxBattler); end
def pbResetCommandsIndex(idxBattler); end
def pbHPChanged(battler, oldHP, showAnim = false); end
def pbChangePokemon(idxBattler, pkmn); end