Added custom gfx for Ped and Murahdahla
This commit is contained in:
32
elder.asm
32
elder.asm
@@ -142,19 +142,35 @@ MasterSword_CheckIfPulled:
|
|||||||
|
|
||||||
MasterSword_ConditionalActivateCutscene:
|
MasterSword_ConditionalActivateCutscene:
|
||||||
LDA.w SpriteMovement,X : BNE .specialCutscene
|
LDA.w SpriteMovement,X : BNE .specialCutscene
|
||||||
|
PHX
|
||||||
|
REP #$30
|
||||||
|
LDA.w SprRedrawFlag, X : BNE .doNormalPed
|
||||||
|
INC.w SprRedrawFlag, X
|
||||||
|
LDA.l PedPullGfx : BEQ .doNormalPed
|
||||||
|
LDX.w ItemStackPtr : STA.l ItemGFXStack,X
|
||||||
|
LDA.w #$BCE0>>1 : STA.l ItemTargetStack,X
|
||||||
|
TXA : INC #2 : STA.w ItemStackPtr
|
||||||
|
.doNormalPed
|
||||||
|
SEP #$30
|
||||||
|
PLX
|
||||||
JML Sprite_CheckDamageToPlayerSameLayerLong ; what we wrote over
|
JML Sprite_CheckDamageToPlayerSameLayerLong ; what we wrote over
|
||||||
.specialCutscene
|
.specialCutscene
|
||||||
LDA.b #$02 : STA.w ItemReceiptPose ; Link's 2-hands-up pose
|
LDA.b #$02 : STA.w ItemReceiptPose ; Link's 2-hands-up pose
|
||||||
STA.b LinkLayer ; draw Link on top
|
STA.b LinkLayer ; draw Link on top
|
||||||
; draw Triforce piece in VRAM
|
; draw Triforce piece in VRAM
|
||||||
|
LDA.w SprRedrawFlag, X : BNE .skipTransfer
|
||||||
|
INC.w SprRedrawFlag, X
|
||||||
PHX
|
PHX
|
||||||
REP #$30
|
REP #$30
|
||||||
LDX.w #$006A<<1
|
LDA.l MurahdahlaGfx : BNE .submitRequest
|
||||||
LDA.l StandingItemGraphicsOffsets,X : LDX.w ItemStackPtr : STA.l ItemGFXStack,X
|
LDX.w #$006A<<1 : LDA.l StandingItemGraphicsOffsets,X
|
||||||
|
.submitRequest
|
||||||
|
LDX.w ItemStackPtr : STA.l ItemGFXStack,X
|
||||||
LDA.w #$9CE0>>1 : STA.l ItemTargetStack,X
|
LDA.w #$9CE0>>1 : STA.l ItemTargetStack,X
|
||||||
TXA : INC #2 : STA.w ItemStackPtr
|
TXA : INC #2 : STA.w ItemStackPtr
|
||||||
SEP #$30
|
SEP #$30
|
||||||
PLX
|
PLX
|
||||||
|
.skipTransfer
|
||||||
PLA : PLA : PLA : JML MasterSword_InPedestal_DoCutscene ; do cutscene
|
PLA : PLA : PLA : JML MasterSword_InPedestal_DoCutscene ; do cutscene
|
||||||
|
|
||||||
MasterSword_ConditionalGrabPose:
|
MasterSword_ConditionalGrabPose:
|
||||||
@@ -171,10 +187,20 @@ RTL
|
|||||||
MasterSword_SpawnPendantProp_ChangePalette:
|
MasterSword_SpawnPendantProp_ChangePalette:
|
||||||
STA.w SpriteVelocityY,Y : PLX ; what we wrote over
|
STA.w SpriteVelocityY,Y : PLX ; what we wrote over
|
||||||
LDA.w SpriteMovement,X : BNE .specialCutscene
|
LDA.w SpriteMovement,X : BNE .specialCutscene
|
||||||
|
LDA.l PedPullGfx : BNE .customPedGfx
|
||||||
|
LDA.l PedPullGfx+1 : BNE .customPedGfx
|
||||||
BRA .done
|
BRA .done
|
||||||
|
.customPedGfx
|
||||||
|
LDA.l PedPullPalette : ASL : INC : BRA .setPalette
|
||||||
.specialCutscene
|
.specialCutscene
|
||||||
LDA.b #$08 : STA.w SpriteOAMProp,Y ; change palette
|
|
||||||
LDA.b #$02 : STA.w SpriteLayer,Y ; change layer
|
LDA.b #$02 : STA.w SpriteLayer,Y ; change layer
|
||||||
|
LDA.l MurahdahlaGfx : BNE .customGfx
|
||||||
|
LDA.l MurahdahlaGfx+1 : BNE .customGfx
|
||||||
|
LDA.b #$08 : BRA .setPalette
|
||||||
|
.customGfx
|
||||||
|
LDA.l MurahdahlaPalette : ASL
|
||||||
|
.setPalette
|
||||||
|
STA.w SpriteOAMProp,Y ; change palette
|
||||||
.done
|
.done
|
||||||
JML MasterSword_SpawnPendantProp_ChangePalette_return
|
JML MasterSword_SpawnPendantProp_ChangePalette_return
|
||||||
|
|
||||||
|
|||||||
@@ -953,21 +953,21 @@ dw $0000, $0000, $0000, $0000, $0000, $0000
|
|||||||
GanonsTowerOpenPalette: ; 0x1801E6-0x1801EC
|
GanonsTowerOpenPalette: ; 0x1801E6-0x1801EC
|
||||||
db $00 ; Palette for GanonsTowerOpenGfx
|
db $00 ; Palette for GanonsTowerOpenGfx
|
||||||
db $00, $00, $00, $00, $00, $00
|
db $00, $00, $00, $00, $00, $00
|
||||||
; VHPP CCCO (VertFlip, HorizFlip, Priority, ColorPalette, OAM Sheet)
|
; -VHPPCCC (VertFlip, HorizFlip, Priority, ColorPalette)
|
||||||
PedPullGfx: ; 0x1801ED-0x1801F2
|
PedPullGfx: ; 0x1801ED-0x1801F2
|
||||||
dw $0000 ; Gfx used for ped pull animation, similar to StandingItemGraphicsOffsets
|
dw $0000 ; Gfx used for ped pull animation, similar to StandingItemGraphicsOffsets
|
||||||
dw $0000, $0000
|
dw $0000, $0000
|
||||||
PedPullPalette: ; 0x1801F3-0x1801F5
|
PedPullPalette: ; 0x1801F3-0x1801F5
|
||||||
db $00 ; Palette for PedPullGfx
|
db $00 ; Palette for PedPullGfx
|
||||||
db $00, $00
|
db $00, $00
|
||||||
; VHPP CCCO (VertFlip, HorizFlip, Priority, ColorPalette, OAM Sheet)
|
; -VHPPCCC (VertFlip, HorizFlip, Priority, ColorPalette)
|
||||||
MurahdahlaGfx: ; 0x1801F6-0x1801FB
|
MurahdahlaGfx: ; 0x1801F6-0x1801FB
|
||||||
dw $0000 ; Gfx used for ped pull animation, similar to StandingItemGraphicsOffsets
|
dw $0000 ; Gfx used for ped pull animation, similar to StandingItemGraphicsOffsets
|
||||||
dw $0000, $0000
|
dw $0000, $0000
|
||||||
MurahdahlaPalette: ; 0x1801FC-0x1801FE
|
MurahdahlaPalette: ; 0x1801FC-0x1801FE
|
||||||
db $00 ; Palette for MurahdahlaGfx
|
db $00 ; Palette for MurahdahlaGfx
|
||||||
db $00, $00
|
db $00, $00
|
||||||
; VHPP CCCO (VertFlip, HorizFlip, Priority, ColorPalette, OAM Sheet)
|
; -VHPPCCCO (VertFlip, HorizFlip, Priority, ColorPalette)
|
||||||
;--------------------------------------------------------------------------------
|
;--------------------------------------------------------------------------------
|
||||||
; 0x1801FF (unused)
|
; 0x1801FF (unused)
|
||||||
;================================================================================
|
;================================================================================
|
||||||
|
|||||||
Reference in New Issue
Block a user