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

@@ -181,8 +181,8 @@ def pbTimeEventValid(variableNumber)
value = $game_variables[variableNumber]
if value.is_a?(Array)
timenow = pbGetTimeNow
ret = (timenow.to_f - value[0] > value[1]) # value[1] is age in seconds
ret = false if value[1] <= 0 # zero age
ret = (timenow.to_f - value[0] > value[1]) # value[1] is age in seconds
ret = false if value[1] <= 0 # zero age
end
if !ret
$game_variables[variableNumber] = 0
@@ -212,8 +212,8 @@ def pbExclaim(event, id = Settings::EXCLAMATION_ANIMATION_ID, tinting = false)
end
end
def pbNoticePlayer(event)
if !pbFacingEachOther(event, $game_player)
def pbNoticePlayer(event, always_show_exclaim = false)
if always_show_exclaim || !pbFacingEachOther(event, $game_player)
pbExclaim(event)
end
pbTurnTowardEvent($game_player, event)