Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/Engezerstorung/pokered-fr
Browse files Browse the repository at this point in the history
…into pokered-fr-master
  • Loading branch information
Engezerstorung committed Sep 19, 2024
2 parents 996eaeb + a246c51 commit cbb8926
Show file tree
Hide file tree
Showing 127 changed files with 426 additions and 576 deletions.
13 changes: 0 additions & 13 deletions .github/webhook.sh

This file was deleted.

7 changes: 0 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,6 @@ jobs:
return 1
fi
- name: Discord webhook
if: ${{ github.event_name == 'push' && github.repository_owner == 'pret' }}
env:
DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }}
run: |
.github/webhook.sh
- name: Checkout symbols
if: ${{ github.event_name == 'push' && github.repository_owner == 'pret' }}
uses: actions/checkout@master
Expand Down
2 changes: 1 addition & 1 deletion data/text/text_2.asm
Original file line number Diff line number Diff line change
Expand Up @@ -1868,7 +1868,7 @@ _WillBeTradedText::
done

_TextIDErrorText::
text_decimal hSpriteIndexOrTextID,1,2
text_decimal hTextID,1,2
text " ERREUR."
done

Expand Down
6 changes: 3 additions & 3 deletions engine/battle/animations.asm
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,7 @@ DoBallTossSpecialEffects:
ld a, [wIsInBattle]
cp 2 ; is it a trainer battle?
jr z, .isTrainerBattle
ld a, [wd11e]
ld a, [wPokeBallAnimData]
cp $10 ; is the enemy pokemon the Ghost Marowak?
ret nz
; if the enemy pokemon is the Ghost Marowak, make it dodge during the last 3 frames
Expand Down Expand Up @@ -2025,7 +2025,7 @@ ChangeMonPic:
jr z, .playerTurn
ld a, [wChangeMonPicEnemyTurnSpecies]
ld [wCurPartySpecies], a
ld [wd0b5], a
ld [wCurSpecies], a
xor a
ld [wSpriteFlipped], a
call GetMonHeader
Expand All @@ -2037,7 +2037,7 @@ ChangeMonPic:
push af
ld a, [wChangeMonPicPlayerTurnSpecies]
ld [wBattleMonSpecies2], a
ld [wd0b5], a
ld [wCurSpecies], a
call GetMonHeader
predef LoadMonBackPic
xor a ; TILEMAP_MON_PIC
Expand Down
2 changes: 1 addition & 1 deletion engine/battle/battle_transitions.asm
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ BattleTransition:
; Determine which OAM block is being used by the enemy trainer sprite (if there
; is one).
ld hl, wSpritePlayerStateData1ImageIndex
ldh a, [hSpriteIndexOrTextID] ; enemy trainer sprite index (0 if wild battle)
ldh a, [hSpriteIndex] ; enemy trainer sprite index (0 if wild battle)
ld c, a
ld b, 0
ld de, $10
Expand Down
44 changes: 22 additions & 22 deletions engine/battle/core.asm
Original file line number Diff line number Diff line change
Expand Up @@ -1421,7 +1421,7 @@ EnemySendOutFirstMon:
call PrintText
ld a, [wEnemyMonSpecies2]
ld [wCurPartySpecies], a
ld [wd0b5], a
ld [wCurSpecies], a
call GetMonHeader
ld de, vFrontPic
call LoadMonFrontSprite
Expand Down Expand Up @@ -1642,7 +1642,7 @@ LoadBattleMonFromParty:
ld bc, wBattleMonPP - wBattleMonLevel
call CopyData
ld a, [wBattleMonSpecies2]
ld [wd0b5], a
ld [wCurSpecies], a
call GetMonHeader
ld hl, wPartyMonNicks
ld a, [wPlayerMonNumber]
Expand Down Expand Up @@ -1686,7 +1686,7 @@ LoadEnemyMonFromParty:
ld bc, wEnemyMonPP - wEnemyMonLevel
call CopyData
ld a, [wEnemyMonSpecies]
ld [wd0b5], a
ld [wCurSpecies], a
call GetMonHeader
ld hl, wEnemyMonNicks
ld a, [wWhichPokemon]
Expand Down Expand Up @@ -2237,7 +2237,7 @@ DisplayBagMenu:
UseBagItem:
; either use an item from the bag or use a safari zone item
ld a, [wCurItem]
ld [wd11e], a
ld [wNamedObjectIndex], a
call GetItemName
call CopyToStringBuffer
xor a
Expand Down Expand Up @@ -2380,7 +2380,7 @@ PartyMenuOrRockOrRun:
; enemy mon is not minimised
ld a, [wEnemyMonSpecies]
ld [wCurPartySpecies], a
ld [wd0b5], a
ld [wCurSpecies], a
call GetMonHeader
ld de, vFrontPic
call LoadMonFrontSprite
Expand Down Expand Up @@ -3565,7 +3565,7 @@ CheckPlayerStatusConditions:
bit USING_RAGE, a ; is mon using rage?
jp z, .checkPlayerStatusConditionsDone ; if we made it this far, mon can move normally this turn
ld a, RAGE
ld [wd11e], a
ld [wNamedObjectIndex], a
call GetMoveName
call CopyToStringBuffer
xor a
Expand Down Expand Up @@ -3655,7 +3655,7 @@ PrintMoveIsDisabledText:
res CHARGING_UP, a ; end the pokemon's
ld [de], a
ld a, [hl]
ld [wd11e], a
ld [wNamedObjectIndex], a
call GetMoveName
ld hl, MoveIsDisabledText
jp PrintText
Expand Down Expand Up @@ -3729,13 +3729,13 @@ MonName1Text:
ld hl, wEnemyUsedMove
.playerTurn
ld [hl], a
ld [wd11e], a
ld [wMoveGrammar], a
call DetermineExclamationPointTextNum
ld a, [wMonIsDisobedient]
and a
ld hl, Used2Text
ret nz
ld a, [wd11e]
ld a, [wMoveGrammar]
cp 3
ld hl, Used2Text
ret c
Expand Down Expand Up @@ -3772,7 +3772,7 @@ _PrintMoveName:
text_far _MoveNameText
text_asm
ld hl, ExclamationPointPointerTable
ld a, [wd11e] ; exclamation point num
ld a, [wMoveGrammar]
add a
push bc
ld b, $0
Expand Down Expand Up @@ -3820,7 +3820,7 @@ ExclamationPoint5Text:
; but the functionality didn't get removed
DetermineExclamationPointTextNum:
push bc
ld a, [wd11e] ; move ID
ld a, [wMoveGrammar] ; move ID
ld c, a
ld b, $0
ld hl, ExclamationPointMoveSets
Expand All @@ -3836,7 +3836,7 @@ DetermineExclamationPointTextNum:
jr .loop
.done
ld a, b
ld [wd11e], a ; exclamation point num
ld [wMoveGrammar], a
pop bc
ret

Expand Down Expand Up @@ -4407,7 +4407,7 @@ GetEnemyMonStat:
ld a, [wEnemyMonLevel]
ld [wCurEnemyLevel], a
ld a, [wEnemyMonSpecies]
ld [wd0b5], a
ld [wCurSpecies], a
call GetMonHeader
ld hl, wEnemyMonDVs
ld de, wLoadedMonSpeedExp
Expand Down Expand Up @@ -4611,7 +4611,7 @@ CriticalHitTest:
jr nz, .handleEnemy
ld a, [wBattleMonSpecies]
.handleEnemy
ld [wd0b5], a
ld [wCurSpecies], a
call GetMonHeader
ld a, [wMonHBaseSpeed]
ld b, a
Expand Down Expand Up @@ -5121,7 +5121,7 @@ MirrorMoveFailedText:

; function used to reload move data for moves like Mirror Move and Metronome
ReloadMoveData:
ld [wd11e], a
ld [wNamedObjectIndex], a
dec a
ld hl, Moves
ld bc, MOVE_LENGTH
Expand Down Expand Up @@ -5626,7 +5626,7 @@ EnemyCanExecuteChargingMove:
res CHARGING_UP, [hl] ; no longer charging up for attack
res INVULNERABLE, [hl] ; no longer invulnerable to typical attacks
ld a, [wEnemyMoveNum]
ld [wd0b5], a
ld [wNameListIndex], a
ld a, BANK(MoveNames)
ld [wPredefBank], a
ld a, MOVE_NAME
Expand Down Expand Up @@ -6068,7 +6068,7 @@ CheckEnemyStatusConditions:
bit USING_RAGE, a ; is mon using rage?
jp z, .checkEnemyStatusConditionsDone ; if we made it this far, mon can move normally this turn
ld a, RAGE
ld [wd11e], a
ld [wNamedObjectIndex], a
call GetMoveName
call CopyToStringBuffer
xor a
Expand Down Expand Up @@ -6099,7 +6099,7 @@ GetCurrentMove:
jr nz, .selected
ld a, [wPlayerSelectedMove]
.selected
ld [wd0b5], a
ld [wNameListIndex], a
dec a
ld hl, Moves
ld bc, MOVE_LENGTH
Expand All @@ -6121,7 +6121,7 @@ LoadEnemyMonData:
jp z, LoadEnemyMonFromParty
ld a, [wEnemyMonSpecies2]
ld [wEnemyMonSpecies], a
ld [wd0b5], a
ld [wCurSpecies], a
call GetMonHeader
ld a, [wEnemyBattleStatus3]
bit TRANSFORMED, a ; is enemy mon transformed?
Expand Down Expand Up @@ -6246,16 +6246,16 @@ LoadEnemyMonData:
ld a, [hl] ; base exp
ld [de], a
ld a, [wEnemyMonSpecies2]
ld [wd11e], a
ld [wNamedObjectIndex], a
call GetMonName
ld hl, wNameBuffer
ld de, wEnemyMonNick
ld bc, NAME_LENGTH
call CopyData
ld a, [wEnemyMonSpecies2]
ld [wd11e], a
ld [wPokedexNum], a
predef IndexToPokedex
ld a, [wd11e]
ld a, [wPokedexNum]
dec a
ld c, a
ld b, FLAG_SET
Expand Down
6 changes: 3 additions & 3 deletions engine/battle/effects.asm
Original file line number Diff line number Diff line change
Expand Up @@ -1262,7 +1262,7 @@ MimicEffect:
add hl, bc
ld a, d
ld [hl], a
ld [wd11e], a
ld [wNamedObjectIndex], a
call GetMoveName
call PlayCurrentMoveAnimation
ld hl, MimicLearnedMoveText
Expand Down Expand Up @@ -1309,7 +1309,7 @@ DisableEffect:
pop hl
and a
jr z, .pickMoveToDisable ; loop until a non-00 move slot is found
ld [wd11e], a ; store move number
ld [wNamedObjectIndex], a ; store move number
push hl
ldh a, [hWhoseTurn]
and a
Expand Down Expand Up @@ -1354,7 +1354,7 @@ DisableEffect:
jr nz, .printDisableText
inc hl ; wEnemyDisabledMoveNumber
.printDisableText
ld a, [wd11e] ; move number
ld a, [wNamedObjectIndex] ; move number
ld [hl], a
call GetMoveName
ld hl, MoveWasDisabledText
Expand Down
18 changes: 9 additions & 9 deletions engine/battle/experience.asm
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ GainExperience:
ld b, 0
ld hl, wPartySpecies
add hl, bc
ld a, [hl] ; species
ld [wd0b5], a
ld a, [hl]
ld [wCurSpecies], a
call GetMonHeader
ld d, MAX_LEVEL
callfar CalcExperience ; get max exp
Expand Down Expand Up @@ -168,9 +168,9 @@ GainExperience:
ld [hl], a
ld bc, wPartyMon1Species - wPartyMon1Level
add hl, bc
ld a, [hl] ; species
ld [wd0b5], a
ld [wd11e], a
ld a, [hl]
ld [wCurSpecies], a
ld [wPokedexNum], a
call GetMonHeader
ld bc, (wPartyMon1MaxHP + 1) - wPartyMon1Species
add hl, bc
Expand Down Expand Up @@ -251,8 +251,8 @@ GainExperience:
call LoadScreenTilesFromBuffer1
xor a ; PLAYER_PARTY_DATA
ld [wMonDataLocation], a
ld a, [wd0b5]
ld [wd11e], a
ld a, [wCurSpecies]
ld [wPokedexNum], a
predef LearnMoveFromLevelUp
ld hl, wCanEvolveFlags
ld a, [wWhichPokemon]
Expand Down Expand Up @@ -306,15 +306,15 @@ DivideExpDataByNumMonsGainingExp:
jr nz, .countSetBitsLoop
cp $2
ret c ; return if only one mon is gaining exp
ld [wd11e], a ; store number of mons gaining exp
ld [wTempByteValue], a ; store number of mons gaining exp
ld hl, wEnemyMonBaseStats
ld c, wEnemyMonBaseExp + 1 - wEnemyMonBaseStats
.divideLoop
xor a
ldh [hDividend], a
ld a, [hl]
ldh [hDividend + 1], a
ld a, [wd11e]
ld a, [wTempByteValue]
ldh [hDivisor], a
ld b, $2
call Divide ; divide value by number of mons gaining exp
Expand Down
4 changes: 2 additions & 2 deletions engine/battle/get_trainer_name.asm
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
GetTrainerName_::
ld hl, wGrassRate
ld hl, wLinkEnemyTrainerName
ld a, [wLinkState]
and a
jr nz, .foundName
Expand All @@ -11,7 +11,7 @@ GetTrainerName_::
jr z, .foundName
cp RIVAL3
jr z, .foundName
ld [wd0b5], a
ld [wNameListIndex], a
ld a, TRAINER_NAME
ld [wNameListType], a
ld a, BANK(TrainerNames)
Expand Down
2 changes: 1 addition & 1 deletion engine/battle/misc.asm
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ FormatMovesString:
and a ; end of move list?
jr z, .printDashLoop ; print dashes when no moves are left
push hl
ld [wd0b5], a
ld [wNameListIndex], a
ld a, BANK(MoveNames)
ld [wPredefBank], a
ld a, MOVE_NAME
Expand Down
2 changes: 1 addition & 1 deletion engine/battle/move_effects/transform.asm
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ TransformEffect_:
; original (unmodified) stats and stat mods
pop hl
ld a, [hl]
ld [wd11e], a
ld [wNamedObjectIndex], a
call GetMonName
ld hl, wEnemyMonUnmodifiedAttack
ld de, wPlayerMonUnmodifiedAttack
Expand Down
2 changes: 1 addition & 1 deletion engine/battle/print_type.asm
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; [wd0b5] = pokemon ID
; [wCurSpecies] = pokemon ID
; hl = dest addr
PrintMonType:
call GetPredefRegisters
Expand Down
2 changes: 1 addition & 1 deletion engine/battle/safari_zone.asm
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ PrintSafariZoneBattleText:
jr nz, .done
push hl
ld a, [wEnemyMonSpecies]
ld [wd0b5], a
ld [wCurSpecies], a
call GetMonHeader
ld a, [wMonHCatchRate]
ld [wEnemyMonActualCatchRate], a
Expand Down
2 changes: 1 addition & 1 deletion engine/battle/trainer_ai.asm
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,7 @@ AIPrintItemUse:
AIPrintItemUse_:
; print "x used [wAIItem] on z!"
ld a, [wAIItem]
ld [wd11e], a
ld [wNamedObjectIndex], a
call GetItemName
ld hl, AIBattleUseItemText
jp PrintText
Expand Down
Loading

0 comments on commit cbb8926

Please sign in to comment.