mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-06 23:55:24 +13:00
Merge branch 'master' of https://github.com/pret/pokered
This commit is contained in:
commit
772520c2c2
63 changed files with 4114 additions and 1216 deletions
|
|
@ -249,7 +249,7 @@ PlayAnimation:
|
|||
push af
|
||||
ld a, [wAnimPalette]
|
||||
ldh [rOBP0], a
|
||||
call LoadAnimationTileset
|
||||
call LoadMoveAnimationTiles
|
||||
vc_hook Reduce_move_anim_flashing_Mega_Punch_Self_Destruct_Explosion
|
||||
call LoadSubanimation
|
||||
call PlaySubanimation
|
||||
|
|
@ -352,11 +352,11 @@ GetSubanimationTransform2:
|
|||
ret
|
||||
|
||||
; loads tile patterns for battle animations
|
||||
LoadAnimationTileset:
|
||||
LoadMoveAnimationTiles:
|
||||
ld a, [wWhichBattleAnimTileset]
|
||||
add a
|
||||
add a
|
||||
ld hl, AnimationTilesetPointers
|
||||
ld hl, MoveAnimationTilesPointers
|
||||
ld e, a
|
||||
ld d, 0
|
||||
add hl, de
|
||||
|
|
@ -367,7 +367,7 @@ LoadAnimationTileset:
|
|||
ld a, [hl]
|
||||
ld d, a ; de = address of tileset
|
||||
ld hl, vSprites tile $31
|
||||
ld b, BANK(AnimationTileset1) ; ROM bank
|
||||
ld b, BANK(MoveAnimationTiles0) ; ROM bank
|
||||
ld a, [wTempTilesetNumTiles]
|
||||
ld c, a ; number of tiles
|
||||
jp CopyVideoData ; load tileset
|
||||
|
|
@ -378,17 +378,18 @@ MACRO anim_tileset
|
|||
db -1 ; padding
|
||||
ENDM
|
||||
|
||||
AnimationTilesetPointers:
|
||||
MoveAnimationTilesPointers:
|
||||
; number of tiles, gfx pointer
|
||||
anim_tileset 79, AnimationTileset1
|
||||
anim_tileset 79, AnimationTileset2
|
||||
anim_tileset 64, AnimationTileset1
|
||||
anim_tileset 79, MoveAnimationTiles0
|
||||
anim_tileset 79, MoveAnimationTiles1
|
||||
anim_tileset 64, MoveAnimationTiles2
|
||||
|
||||
AnimationTileset1:
|
||||
INCBIN "gfx/battle/attack_anim_1.2bpp"
|
||||
MoveAnimationTiles0:
|
||||
MoveAnimationTiles2:
|
||||
INCBIN "gfx/battle/move_anim_0.2bpp"
|
||||
|
||||
AnimationTileset2:
|
||||
INCBIN "gfx/battle/attack_anim_2.2bpp"
|
||||
MoveAnimationTiles1:
|
||||
INCBIN "gfx/battle/move_anim_1.2bpp"
|
||||
|
||||
SlotMachineTiles2:
|
||||
INCBIN "gfx/slots/slots_2.2bpp"
|
||||
|
|
@ -1109,7 +1110,7 @@ AnimationWaterDropletsEverywhere:
|
|||
; in Surf/Mist/Toxic.
|
||||
xor a
|
||||
ld [wWhichBattleAnimTileset], a
|
||||
call LoadAnimationTileset
|
||||
call LoadMoveAnimationTiles
|
||||
ld d, 32
|
||||
ld a, -16
|
||||
ld [wBaseCoordX], a
|
||||
|
|
@ -1628,7 +1629,7 @@ _AnimationShootBallsUpward:
|
|||
push bc
|
||||
xor a
|
||||
ld [wWhichBattleAnimTileset], a
|
||||
call LoadAnimationTileset
|
||||
call LoadMoveAnimationTiles
|
||||
pop bc
|
||||
ld d, $7a ; ball tile
|
||||
ld hl, wShadowOAM
|
||||
|
|
@ -2071,7 +2072,7 @@ InitMultipleObjectsOAM:
|
|||
push bc
|
||||
push de
|
||||
ld [wWhichBattleAnimTileset], a
|
||||
call LoadAnimationTileset
|
||||
call LoadMoveAnimationTiles
|
||||
pop de
|
||||
pop bc
|
||||
xor a
|
||||
|
|
|
|||
|
|
@ -3353,7 +3353,7 @@ CheckPlayerStatusConditions:
|
|||
; fast asleep
|
||||
xor a
|
||||
ld [wAnimationType], a
|
||||
ld a, SLP_ANIM - 1
|
||||
ld a, SLP_PLAYER_ANIM
|
||||
call PlayMoveAnimation
|
||||
ld hl, FastAsleepText
|
||||
call PrintText
|
||||
|
|
@ -3437,7 +3437,7 @@ CheckPlayerStatusConditions:
|
|||
call PrintText
|
||||
xor a
|
||||
ld [wAnimationType], a
|
||||
ld a, CONF_ANIM - 1
|
||||
ld a, CONF_PLAYER_ANIM
|
||||
call PlayMoveAnimation
|
||||
call BattleRandom
|
||||
cp 50 percent + 1 ; chance to hurt itself
|
||||
|
|
|
|||
|
|
@ -123,12 +123,12 @@ PoisonEffect:
|
|||
dec de
|
||||
ldh a, [hWhoseTurn]
|
||||
and a
|
||||
ld b, ANIM_C7
|
||||
ld b, SHAKE_SCREEN_ANIM
|
||||
ld hl, wPlayerBattleStatus3
|
||||
ld a, [de]
|
||||
ld de, wPlayerToxicCounter
|
||||
jr nz, .ok
|
||||
ld b, ANIM_A9
|
||||
ld b, ENEMY_HUD_SHAKE_ANIM
|
||||
ld hl, wEnemyBattleStatus3
|
||||
ld de, wEnemyToxicCounter
|
||||
.ok
|
||||
|
|
@ -232,14 +232,14 @@ FreezeBurnParalyzeEffect:
|
|||
ld a, 1 << PAR
|
||||
ld [wEnemyMonStatus], a
|
||||
call QuarterSpeedDueToParalysis ; quarter speed of affected mon
|
||||
ld a, ANIM_A9
|
||||
ld a, ENEMY_HUD_SHAKE_ANIM
|
||||
call PlayBattleAnimation
|
||||
jp PrintMayNotAttackText ; print paralysis text
|
||||
.burn1
|
||||
ld a, 1 << BRN
|
||||
ld [wEnemyMonStatus], a
|
||||
call HalveAttackDueToBurn ; halve attack of affected mon
|
||||
ld a, ANIM_A9
|
||||
ld a, ENEMY_HUD_SHAKE_ANIM
|
||||
call PlayBattleAnimation
|
||||
ld hl, BurnedText
|
||||
jp PrintText
|
||||
|
|
@ -247,7 +247,7 @@ FreezeBurnParalyzeEffect:
|
|||
call ClearHyperBeam ; resets hyper beam (recharge) condition from target
|
||||
ld a, 1 << FRZ
|
||||
ld [wEnemyMonStatus], a
|
||||
ld a, ANIM_A9
|
||||
ld a, ENEMY_HUD_SHAKE_ANIM
|
||||
call PlayBattleAnimation
|
||||
ld hl, FrozenText
|
||||
jp PrintText
|
||||
|
|
@ -802,7 +802,7 @@ ThrashPetalDanceEffect:
|
|||
inc a
|
||||
ld [de], a ; set thrash/petal dance counter to 2 or 3 at random
|
||||
ldh a, [hWhoseTurn]
|
||||
add ANIM_B0
|
||||
add SHRINKING_SQUARE_ANIM
|
||||
jp PlayBattleAnimation2
|
||||
|
||||
SwitchAndTeleportEffect:
|
||||
|
|
@ -1002,7 +1002,7 @@ ChargeEffect:
|
|||
jr z, .chargeEffect
|
||||
ld hl, wEnemyBattleStatus1
|
||||
ld de, wEnemyMoveEffect
|
||||
ld b, ANIM_AF
|
||||
ld b, XSTATITEM_DUPLICATE_ANIM
|
||||
.chargeEffect
|
||||
set CHARGING_UP, [hl]
|
||||
ld a, [de]
|
||||
|
|
@ -1016,7 +1016,7 @@ ChargeEffect:
|
|||
cp DIG
|
||||
jr nz, .notDigOrFly
|
||||
set INVULNERABLE, [hl] ; mon is now invulnerable to typical attacks (fly/dig)
|
||||
ld b, ANIM_C0
|
||||
ld b, SLIDE_DOWN_ANIM
|
||||
.notDigOrFly
|
||||
xor a
|
||||
ld [wAnimationType], a
|
||||
|
|
|
|||
|
|
@ -750,7 +750,7 @@ AIIncreaseStat:
|
|||
ld a, [hl]
|
||||
push af
|
||||
push hl
|
||||
ld a, ANIM_AF
|
||||
ld a, XSTATITEM_DUPLICATE_ANIM
|
||||
ld [hli], a
|
||||
ld [hl], b
|
||||
callfar StatModifierUpEffect
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue